client/game/ccr.dll/lifted-0007.c (766999B)
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_270142DF(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(0x270142DFu); 17 18 L_270142DF: 19 eax = MEM32(0x27048B70); /* 0x270142DF: mov eax, dword ptr [0x27048b70] */ 20 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21 edi = 0; /* 0x270142E4: xor edi, edi */ 22 _cf = 0; 23 _flag_k = FK_TEST; 24 /* cmp eax, edi */ /* 0x270142E6: cmp eax, edi */ 25 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 26 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27 _flag_k = FK_CMP; 28 if (CMP_NE(_flag_a, _flag_b)) goto L_27014313; /* 0x270142E8: jne 0x27014313 */ 29 L_270142EA: 30 PUSH32(esp, 0x20u); /* 0x270142EA: push 0x20 */ 31 RECOMP_ICALL(0x27026EA4u); /* 0x270142EC: call 0x27026ea4 */ /* not lifted */ 32 RECOMP_FLAGS_IN(); 33 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 34 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35 esp = esp + 4; /* 0x270142F1: add esp, 4 */ 36 _flag_k = FK_ADD; 37 MEM32(ebp + 0x10) = eax; /* 0x270142F4: mov dword ptr [ebp + 0x10], eax */ 38 /* cmp eax, edi */ /* 0x270142F7: cmp eax, edi */ 39 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 40 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41 _flag_k = FK_CMP; 42 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x270142F9: mov byte ptr [ebp - 4], 2 */ 43 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014308; /* 0x270142FD: je 0x27014308 */ 44 L_270142FF: 45 ecx = eax; /* 0x270142FF: mov ecx, eax */ 46 RECOMP_ICALL(0x2700E3B0u); /* 0x27014301: call 0x2700e3b0 */ /* not lifted */ 47 RECOMP_FLAGS_IN(); 48 goto L_2701430A; /* 0x27014306: jmp 0x2701430a */ 49 L_27014308: 50 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 51 eax = 0; /* 0x27014308: xor eax, eax */ 52 _cf = 0; 53 _flag_k = FK_TEST; 54 L_2701430A: 55 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2701430A: mov byte ptr [ebp - 4], 1 */ 56 MEM32(0x27048B70) = eax; /* 0x2701430E: mov dword ptr [0x27048b70], eax */ 57 L_27014313: 58 ecx = MEM32(eax + 0x18); /* 0x27014313: mov ecx, dword ptr [eax + 0x18] */ 59 eax = MEM32(ebp + 0x8); /* 0x27014316: mov eax, dword ptr [ebp + 8] */ 60 eax = MEM32(eax + 0x4); /* 0x27014319: mov eax, dword ptr [eax + 4] */ 61 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701431C: cdq */ 62 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ecx + 0xFF0); /* 0x2701431D: idiv dword ptr [ecx + 0xff0] */ 63 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 64 else { eax = 0; edx = 0; } } 65 MEM32(ebx + 0x6C) = edi; /* 0x27014323: mov dword ptr [ebx + 0x6c], edi */ 66 MEM32(ebx + 0x64) = eax; /* 0x27014326: mov dword ptr [ebx + 0x64], eax */ 67 ecx = MEM32(ebx + 0x64); /* 0x27014329: mov ecx, dword ptr [ebx + 0x64] */ 68 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 69 eax = 0; /* 0x2701432C: xor eax, eax */ 70 _cf = 0; 71 _flag_k = FK_TEST; 72 /* cmp ecx, edi */ /* 0x2701432E: cmp ecx, edi */ 73 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 74 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 75 _flag_k = FK_CMP; 76 if (CMP_BE(_flag_a, _flag_b)) goto L_270143EB; /* 0x27014330: jbe 0x270143eb */ 77 L_27014336: 78 edi = eax + 0x1; /* 0x27014336: lea edi, [eax + 1] */ 79 eax = MEM32(ebx + 0x60); /* 0x27014339: mov eax, dword ptr [ebx + 0x60] */ 80 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 81 edx = 0; /* 0x2701433C: xor edx, edx */ 82 _cf = 0; 83 _flag_k = FK_TEST; 84 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x2701433E: div ecx */ 85 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 86 else { eax = 0; edx = 0; } } 87 ecx = ebp + (-0x6C); /* 0x27014340: lea ecx, [ebp - 0x6c] */ 88 MEM32(ebp + 0x10) = edi; /* 0x27014343: mov dword ptr [ebp + 0x10], edi */ 89 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 90 eax = eax + 1; /* 0x27014346: inc eax */ 91 _flag_k = FK_INC; 92 PUSH32(esp, eax); /* 0x27014347: push eax */ 93 PUSH32(esp, edi); /* 0x27014348: push edi */ 94 PUSH32(esp, 0x27048580u); /* 0x27014349: push 0x27048580 */ 95 PUSH32(esp, ecx); /* 0x2701434E: push ecx */ 96 RECOMP_ICALL(MEM32(0x270290F8)); /* 0x2701434F: call dword ptr [0x270290f8] */ 97 RECOMP_FLAGS_IN(); 98 SET_LO8(edx, MEM8(ebp + 0x13)); /* 0x27014355: mov dl, byte ptr [ebp + 0x13] */ 99 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 101 esp = esp + 0x10u; /* 0x27014358: add esp, 0x10 */ 102 _flag_k = FK_ADD; 103 PUSH32(esp, 0); /* 0x2701435B: push 0 */ 104 ecx = ebp + (-0x2C); /* 0x2701435D: lea ecx, [ebp - 0x2c] */ 105 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(edx)); /* 0x27014360: mov byte ptr [ebp - 0x2c], dl */ 106 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x27014363: call dword ptr [0x270290c8] */ 107 RECOMP_FLAGS_IN(); 108 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 109 ecx = ecx | 0xFFFFFFFFu; /* 0x27014369: or ecx, 0xffffffff */ 110 _cf = 0; 111 _flag_k = FK_TEST; 112 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 113 eax = 0; /* 0x2701436C: xor eax, eax */ 114 _cf = 0; 115 _flag_k = FK_TEST; 116 edi = ebp + (-0x6C); /* 0x2701436E: lea edi, [ebp - 0x6c] */ 117 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; } /* 0x27014371: repne scasb al, byte ptr es:[edi] */ 118 ecx = ~ecx; /* 0x27014373: not ecx */ 119 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 120 ecx = ecx - 1; /* 0x27014375: dec ecx */ 121 _flag_k = FK_DEC; 122 PUSH32(esp, ecx); /* 0x27014376: push ecx */ 123 eax = ebp + (-0x6C); /* 0x27014377: lea eax, [ebp - 0x6c] */ 124 PUSH32(esp, eax); /* 0x2701437A: push eax */ 125 ecx = ebp + (-0x2C); /* 0x2701437B: lea ecx, [ebp - 0x2c] */ 126 RECOMP_ICALL(MEM32(0x27029098)); /* 0x2701437E: call dword ptr [0x27029098] */ 127 RECOMP_FLAGS_IN(); 128 MEM32(ebp + (-0x1C)) = 0; /* 0x27014384: mov dword ptr [ebp - 0x1c], 0 */ 129 PUSH32(esp, 0xFFFFFFFFu); /* 0x2701438B: push -1 */ 130 PUSH32(esp, 0); /* 0x2701438D: push 0 */ 131 PUSH32(esp, 6); /* 0x2701438F: push 6 */ 132 ecx = ebp + (-0x2C); /* 0x27014391: lea ecx, [ebp - 0x2c] */ 133 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x27014394: mov byte ptr [ebp - 4], 3 */ 134 RECOMP_ICALL(0x27007210u); /* 0x27014398: call 0x27007210 */ /* not lifted */ 135 RECOMP_FLAGS_IN(); 136 /* cmp eax, MEM32(ebx + 0x6C) */ /* 0x2701439D: cmp eax, dword ptr [ebx + 0x6c] */ 137 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x6C)); 138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 139 _flag_k = FK_CMP; 140 if (CMP_LE(_flag_a, _flag_b)) goto L_270143A5; /* 0x270143A0: jle 0x270143a5 */ 141 L_270143A2: 142 MEM32(ebx + 0x6C) = eax; /* 0x270143A2: mov dword ptr [ebx + 0x6c], eax */ 143 L_270143A5: 144 eax = MEM32(ebp + (-0x1C)); /* 0x270143A5: mov eax, dword ptr [ebp - 0x1c] */ 145 /* test eax, eax */ /* 0x270143A8: test eax, eax */ 146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 147 _cf = 0; 148 _flag_k = FK_TEST; 149 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x270143AA: mov byte ptr [ebp - 4], 4 */ 150 if (TEST_Z(_flag_a, _flag_b)) goto L_270143CC; /* 0x270143AE: je 0x270143cc */ 151 L_270143B0: 152 edi = MEM32(eax + 0x2C); /* 0x270143B0: mov edi, dword ptr [eax + 0x2c] */ 153 ecx = eax; /* 0x270143B3: mov ecx, eax */ 154 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 155 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 156 eax = eax + 0x2Cu; /* 0x270143B5: add eax, 0x2c */ 157 _flag_k = FK_ADD; 158 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 159 edi = edi - 1; /* 0x270143B8: dec edi */ 160 _flag_k = FK_DEC; 161 edx = edi; /* 0x270143B9: mov edx, edi */ 162 /* test edx, edx */ /* 0x270143BB: test edx, edx */ 163 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 164 _cf = 0; 165 _flag_k = FK_TEST; 166 MEM32(eax) = edi; /* 0x270143BD: mov dword ptr [eax], edi */ 167 if (TEST_NZ(_flag_a, _flag_b)) goto L_270143CC; /* 0x270143BF: jne 0x270143cc */ 168 L_270143C1: 169 /* test ecx, ecx */ /* 0x270143C1: test ecx, ecx */ 170 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 171 _cf = 0; 172 _flag_k = FK_TEST; 173 if (TEST_Z(_flag_a, _flag_b)) goto L_270143CC; /* 0x270143C3: je 0x270143cc */ 174 L_270143C5: 175 PUSH32(esp, 1); /* 0x270143C5: push 1 */ 176 RECOMP_ICALL(0x27014C30u); /* 0x270143C7: call 0x27014c30 */ /* not lifted */ 177 RECOMP_FLAGS_IN(); 178 L_270143CC: 179 PUSH32(esp, 1); /* 0x270143CC: push 1 */ 180 ecx = ebp + (-0x2C); /* 0x270143CE: lea ecx, [ebp - 0x2c] */ 181 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x270143D1: mov byte ptr [ebp - 4], 1 */ 182 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x270143D5: call dword ptr [0x270290c8] */ 183 RECOMP_FLAGS_IN(); 184 eax = MEM32(ebp + 0x10); /* 0x270143DB: mov eax, dword ptr [ebp + 0x10] */ 185 ecx = MEM32(ebx + 0x64); /* 0x270143DE: mov ecx, dword ptr [ebx + 0x64] */ 186 /* cmp eax, ecx */ /* 0x270143E1: cmp eax, ecx */ 187 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 189 _flag_k = FK_CMP; 190 RECOMP_BACKEDGE(); 191 if (CMP_B(_flag_a, _flag_b)) goto L_27014336; /* 0x270143E3: jb 0x27014336 */ 192 L_270143E9: 193 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 194 edi = 0; /* 0x270143E9: xor edi, edi */ 195 _cf = 0; 196 _flag_k = FK_TEST; 197 L_270143EB: 198 _flag_a = (uint32_t)(MEM32(ebx + 0x6C)); _flag_b = (uint32_t)(0x14u); 199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 200 MEM32(ebx + 0x6C) = MEM32(ebx + 0x6C) + 0x14u; /* 0x270143EB: add dword ptr [ebx + 0x6c], 0x14 */ 201 _flag_k = FK_ADD; 202 MEM32(ebp + 0xC) = edi; /* 0x270143EF: mov dword ptr [ebp + 0xc], edi */ 203 MEM32(ebp + 0x10) = edi; /* 0x270143F2: mov dword ptr [ebp + 0x10], edi */ 204 L_270143F5: 205 eax = MEM32(esi + 0x4); /* 0x270143F5: mov eax, dword ptr [esi + 4] */ 206 /* test eax, eax */ /* 0x270143F8: test eax, eax */ 207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 208 _cf = 0; 209 _flag_k = FK_TEST; 210 if (TEST_Z(_flag_a, _flag_b)) goto L_2701443A; /* 0x270143FA: je 0x2701443a */ 211 L_270143FC: 212 ecx = MEM32(esi + 0x8); /* 0x270143FC: mov ecx, dword ptr [esi + 8] */ 213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 215 ecx = ecx - eax; /* 0x270143FF: sub ecx, eax */ 216 _flag_k = FK_CMP; 217 eax = 0x66666667u; /* 0x27014401: mov eax, 0x66666667 */ 218 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x27014406: imul ecx */ 219 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 220 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 221 eax = MEM32(ebp + 0x10); /* 0x27014408: mov eax, dword ptr [ebp + 0x10] */ 222 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2701440B: sar edx, 3 */ 223 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 224 edx = (uint32_t)((int32_t)edx >> 3u); 225 ecx = edx; /* 0x2701440E: mov ecx, edx */ 226 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x27014410: shr ecx, 0x1f */ 227 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 228 ecx = ecx >> 31u; /* 0x27014410: shr ecx, 0x1f */ 229 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 230 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 231 edx = edx + ecx; /* 0x27014413: add edx, ecx */ 232 _flag_k = FK_ADD; 233 /* cmp eax, edx */ /* 0x27014415: cmp eax, edx */ 234 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 236 _flag_k = FK_CMP; 237 if (CMP_AE(_flag_a, _flag_b)) goto L_2701443A; /* 0x27014417: jae 0x2701443a */ 238 L_27014419: 239 eax = MEM32(ebx + 0x54); /* 0x27014419: mov eax, dword ptr [ebx + 0x54] */ 240 PUSH32(esp, 0xFFFFFFFFu); /* 0x2701441C: push -1 */ 241 PUSH32(esp, 0); /* 0x2701441E: push 0 */ 242 PUSH32(esp, 6); /* 0x27014420: push 6 */ 243 ecx = edi + eax; /* 0x27014422: lea ecx, [edi + eax] */ 244 RECOMP_ICALL(0x27007210u); /* 0x27014425: call 0x27007210 */ /* not lifted */ 245 RECOMP_FLAGS_IN(); 246 /* cmp eax, MEM32(ebp + 0xC) */ /* 0x2701442A: cmp eax, dword ptr [ebp + 0xc] */ 247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 249 _flag_k = FK_CMP; 250 if (CMP_LE(_flag_a, _flag_b)) goto L_27014432; /* 0x2701442D: jle 0x27014432 */ 251 L_2701442F: 252 MEM32(ebp + 0xC) = eax; /* 0x2701442F: mov dword ptr [ebp + 0xc], eax */ 253 L_27014432: 254 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1); 255 MEM32(ebp + 0x10) = MEM32(ebp + 0x10) + 1; /* 0x27014432: inc dword ptr [ebp + 0x10] */ 256 _flag_k = FK_INC; 257 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 259 edi = edi + 0x14u; /* 0x27014435: add edi, 0x14 */ 260 _flag_k = FK_ADD; 261 RECOMP_BACKEDGE(); 262 goto L_270143F5; /* 0x27014438: jmp 0x270143f5 */ 263 L_2701443A: 264 edx = MEM32(ebx + 0x6C); /* 0x2701443A: mov edx, dword ptr [ebx + 0x6c] */ 265 eax = MEM32(ebp + 0xC); /* 0x2701443D: mov eax, dword ptr [ebp + 0xc] */ 266 ecx = edx + eax + 0x4; /* 0x27014440: lea ecx, [edx + eax + 4] */ 267 edx = MEM32(ebp + 0x8); /* 0x27014444: mov edx, dword ptr [ebp + 8] */ 268 eax = MEM32(edx + 0x4); /* 0x27014447: mov eax, dword ptr [edx + 4] */ 269 MEM32(ebp + (-0x18)) = ecx; /* 0x2701444A: mov dword ptr [ebp - 0x18], ecx */ 270 ecx = ebp + (-0x18); /* 0x2701444D: lea ecx, [ebp - 0x18] */ 271 PUSH32(esp, ecx); /* 0x27014450: push ecx */ 272 ecx = ebx; /* 0x27014451: mov ecx, ebx */ 273 MEM32(ebp + (-0x14)) = eax; /* 0x27014453: mov dword ptr [ebp - 0x14], eax */ 274 RECOMP_ICALL(0x27018720u); /* 0x27014456: call 0x27018720 */ /* not lifted */ 275 RECOMP_FLAGS_IN(); 276 ecx = ebx; /* 0x2701445B: mov ecx, ebx */ 277 RECOMP_ICALL(0x27014700u); /* 0x2701445D: call 0x27014700 */ /* not lifted */ 278 RECOMP_FLAGS_IN(); 279 ecx = MEM32(ebp + (-0xC)); /* 0x27014462: mov ecx, dword ptr [ebp - 0xc] */ 280 edi = POP32_VAL(esp); /* 0x27014465: pop edi */ 281 esi = POP32_VAL(esp); /* 0x27014466: pop esi */ 282 eax = ebx; /* 0x27014467: mov eax, ebx */ 283 ebx = POP32_VAL(esp); /* 0x27014469: pop ebx */ 284 MEM32(FS_BASE + (0)) = ecx; /* 0x2701446A: mov dword ptr fs:[0], ecx */ 285 esp = ebp; /* 0x27014471: mov esp, ebp */ 286 ebp = POP32_VAL(esp); /* 0x27014473: pop ebp */ 287 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27014474: ret 0x10 */ 288 RECOMP_REGS_OUT(); 289 } 290 291 void sub_2701430A(void) { 292 int _fpu_cmp = 0; 293 uint32_t _cf = 0; 294 int _df = 1; 295 uint32_t _flag_k = FK_NONE; 296 uint32_t _flag_a = 0, _flag_b = 0; 297 uint32_t _itail_tgt = 0; 298 RECOMP_REGS_LOCALS 299 RECOMP_ENTER(0x2701430Au); 300 301 L_2701430A: 302 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2701430A: mov byte ptr [ebp - 4], 1 */ 303 MEM32(0x27048B70) = eax; /* 0x2701430E: mov dword ptr [0x27048b70], eax */ 304 ecx = MEM32(eax + 0x18); /* 0x27014313: mov ecx, dword ptr [eax + 0x18] */ 305 eax = MEM32(ebp + 0x8); /* 0x27014316: mov eax, dword ptr [ebp + 8] */ 306 eax = MEM32(eax + 0x4); /* 0x27014319: mov eax, dword ptr [eax + 4] */ 307 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701431C: cdq */ 308 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)MEM32(ecx + 0xFF0); /* 0x2701431D: idiv dword ptr [ecx + 0xff0] */ 309 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 310 else { eax = 0; edx = 0; } } 311 MEM32(ebx + 0x6C) = edi; /* 0x27014323: mov dword ptr [ebx + 0x6c], edi */ 312 MEM32(ebx + 0x64) = eax; /* 0x27014326: mov dword ptr [ebx + 0x64], eax */ 313 ecx = MEM32(ebx + 0x64); /* 0x27014329: mov ecx, dword ptr [ebx + 0x64] */ 314 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 315 eax = 0; /* 0x2701432C: xor eax, eax */ 316 _cf = 0; 317 _flag_k = FK_TEST; 318 /* cmp ecx, edi */ /* 0x2701432E: cmp ecx, edi */ 319 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 321 _flag_k = FK_CMP; 322 if (CMP_BE(_flag_a, _flag_b)) goto L_270143EB; /* 0x27014330: jbe 0x270143eb */ 323 L_27014336: 324 edi = eax + 0x1; /* 0x27014336: lea edi, [eax + 1] */ 325 eax = MEM32(ebx + 0x60); /* 0x27014339: mov eax, dword ptr [ebx + 0x60] */ 326 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 327 edx = 0; /* 0x2701433C: xor edx, edx */ 328 _cf = 0; 329 _flag_k = FK_TEST; 330 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x2701433E: div ecx */ 331 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 332 else { eax = 0; edx = 0; } } 333 ecx = ebp + (-0x6C); /* 0x27014340: lea ecx, [ebp - 0x6c] */ 334 MEM32(ebp + 0x10) = edi; /* 0x27014343: mov dword ptr [ebp + 0x10], edi */ 335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 336 eax = eax + 1; /* 0x27014346: inc eax */ 337 _flag_k = FK_INC; 338 PUSH32(esp, eax); /* 0x27014347: push eax */ 339 PUSH32(esp, edi); /* 0x27014348: push edi */ 340 PUSH32(esp, 0x27048580u); /* 0x27014349: push 0x27048580 */ 341 PUSH32(esp, ecx); /* 0x2701434E: push ecx */ 342 RECOMP_ICALL(MEM32(0x270290F8)); /* 0x2701434F: call dword ptr [0x270290f8] */ 343 RECOMP_FLAGS_IN(); 344 SET_LO8(edx, MEM8(ebp + 0x13)); /* 0x27014355: mov dl, byte ptr [ebp + 0x13] */ 345 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 346 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 347 esp = esp + 0x10u; /* 0x27014358: add esp, 0x10 */ 348 _flag_k = FK_ADD; 349 PUSH32(esp, 0); /* 0x2701435B: push 0 */ 350 ecx = ebp + (-0x2C); /* 0x2701435D: lea ecx, [ebp - 0x2c] */ 351 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(edx)); /* 0x27014360: mov byte ptr [ebp - 0x2c], dl */ 352 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x27014363: call dword ptr [0x270290c8] */ 353 RECOMP_FLAGS_IN(); 354 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 355 ecx = ecx | 0xFFFFFFFFu; /* 0x27014369: or ecx, 0xffffffff */ 356 _cf = 0; 357 _flag_k = FK_TEST; 358 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 359 eax = 0; /* 0x2701436C: xor eax, eax */ 360 _cf = 0; 361 _flag_k = FK_TEST; 362 edi = ebp + (-0x6C); /* 0x2701436E: lea edi, [ebp - 0x6c] */ 363 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; } /* 0x27014371: repne scasb al, byte ptr es:[edi] */ 364 ecx = ~ecx; /* 0x27014373: not ecx */ 365 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 366 ecx = ecx - 1; /* 0x27014375: dec ecx */ 367 _flag_k = FK_DEC; 368 PUSH32(esp, ecx); /* 0x27014376: push ecx */ 369 eax = ebp + (-0x6C); /* 0x27014377: lea eax, [ebp - 0x6c] */ 370 PUSH32(esp, eax); /* 0x2701437A: push eax */ 371 ecx = ebp + (-0x2C); /* 0x2701437B: lea ecx, [ebp - 0x2c] */ 372 RECOMP_ICALL(MEM32(0x27029098)); /* 0x2701437E: call dword ptr [0x27029098] */ 373 RECOMP_FLAGS_IN(); 374 MEM32(ebp + (-0x1C)) = 0; /* 0x27014384: mov dword ptr [ebp - 0x1c], 0 */ 375 PUSH32(esp, 0xFFFFFFFFu); /* 0x2701438B: push -1 */ 376 PUSH32(esp, 0); /* 0x2701438D: push 0 */ 377 PUSH32(esp, 6); /* 0x2701438F: push 6 */ 378 ecx = ebp + (-0x2C); /* 0x27014391: lea ecx, [ebp - 0x2c] */ 379 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x27014394: mov byte ptr [ebp - 4], 3 */ 380 RECOMP_ICALL(0x27007210u); /* 0x27014398: call 0x27007210 */ /* not lifted */ 381 RECOMP_FLAGS_IN(); 382 /* cmp eax, MEM32(ebx + 0x6C) */ /* 0x2701439D: cmp eax, dword ptr [ebx + 0x6c] */ 383 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x6C)); 384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 385 _flag_k = FK_CMP; 386 if (CMP_LE(_flag_a, _flag_b)) goto L_270143A5; /* 0x270143A0: jle 0x270143a5 */ 387 L_270143A2: 388 MEM32(ebx + 0x6C) = eax; /* 0x270143A2: mov dword ptr [ebx + 0x6c], eax */ 389 L_270143A5: 390 eax = MEM32(ebp + (-0x1C)); /* 0x270143A5: mov eax, dword ptr [ebp - 0x1c] */ 391 /* test eax, eax */ /* 0x270143A8: test eax, eax */ 392 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 393 _cf = 0; 394 _flag_k = FK_TEST; 395 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x270143AA: mov byte ptr [ebp - 4], 4 */ 396 if (TEST_Z(_flag_a, _flag_b)) goto L_270143CC; /* 0x270143AE: je 0x270143cc */ 397 L_270143B0: 398 edi = MEM32(eax + 0x2C); /* 0x270143B0: mov edi, dword ptr [eax + 0x2c] */ 399 ecx = eax; /* 0x270143B3: mov ecx, eax */ 400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 402 eax = eax + 0x2Cu; /* 0x270143B5: add eax, 0x2c */ 403 _flag_k = FK_ADD; 404 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 405 edi = edi - 1; /* 0x270143B8: dec edi */ 406 _flag_k = FK_DEC; 407 edx = edi; /* 0x270143B9: mov edx, edi */ 408 /* test edx, edx */ /* 0x270143BB: test edx, edx */ 409 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 410 _cf = 0; 411 _flag_k = FK_TEST; 412 MEM32(eax) = edi; /* 0x270143BD: mov dword ptr [eax], edi */ 413 if (TEST_NZ(_flag_a, _flag_b)) goto L_270143CC; /* 0x270143BF: jne 0x270143cc */ 414 L_270143C1: 415 /* test ecx, ecx */ /* 0x270143C1: test ecx, ecx */ 416 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 417 _cf = 0; 418 _flag_k = FK_TEST; 419 if (TEST_Z(_flag_a, _flag_b)) goto L_270143CC; /* 0x270143C3: je 0x270143cc */ 420 L_270143C5: 421 PUSH32(esp, 1); /* 0x270143C5: push 1 */ 422 RECOMP_ICALL(0x27014C30u); /* 0x270143C7: call 0x27014c30 */ /* not lifted */ 423 RECOMP_FLAGS_IN(); 424 L_270143CC: 425 PUSH32(esp, 1); /* 0x270143CC: push 1 */ 426 ecx = ebp + (-0x2C); /* 0x270143CE: lea ecx, [ebp - 0x2c] */ 427 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x270143D1: mov byte ptr [ebp - 4], 1 */ 428 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x270143D5: call dword ptr [0x270290c8] */ 429 RECOMP_FLAGS_IN(); 430 eax = MEM32(ebp + 0x10); /* 0x270143DB: mov eax, dword ptr [ebp + 0x10] */ 431 ecx = MEM32(ebx + 0x64); /* 0x270143DE: mov ecx, dword ptr [ebx + 0x64] */ 432 /* cmp eax, ecx */ /* 0x270143E1: cmp eax, ecx */ 433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 435 _flag_k = FK_CMP; 436 RECOMP_BACKEDGE(); 437 if (CMP_B(_flag_a, _flag_b)) goto L_27014336; /* 0x270143E3: jb 0x27014336 */ 438 L_270143E9: 439 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 440 edi = 0; /* 0x270143E9: xor edi, edi */ 441 _cf = 0; 442 _flag_k = FK_TEST; 443 L_270143EB: 444 _flag_a = (uint32_t)(MEM32(ebx + 0x6C)); _flag_b = (uint32_t)(0x14u); 445 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 446 MEM32(ebx + 0x6C) = MEM32(ebx + 0x6C) + 0x14u; /* 0x270143EB: add dword ptr [ebx + 0x6c], 0x14 */ 447 _flag_k = FK_ADD; 448 MEM32(ebp + 0xC) = edi; /* 0x270143EF: mov dword ptr [ebp + 0xc], edi */ 449 MEM32(ebp + 0x10) = edi; /* 0x270143F2: mov dword ptr [ebp + 0x10], edi */ 450 L_270143F5: 451 eax = MEM32(esi + 0x4); /* 0x270143F5: mov eax, dword ptr [esi + 4] */ 452 /* test eax, eax */ /* 0x270143F8: test eax, eax */ 453 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 454 _cf = 0; 455 _flag_k = FK_TEST; 456 if (TEST_Z(_flag_a, _flag_b)) goto L_2701443A; /* 0x270143FA: je 0x2701443a */ 457 L_270143FC: 458 ecx = MEM32(esi + 0x8); /* 0x270143FC: mov ecx, dword ptr [esi + 8] */ 459 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 461 ecx = ecx - eax; /* 0x270143FF: sub ecx, eax */ 462 _flag_k = FK_CMP; 463 eax = 0x66666667u; /* 0x27014401: mov eax, 0x66666667 */ 464 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x27014406: imul ecx */ 465 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 466 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 467 eax = MEM32(ebp + 0x10); /* 0x27014408: mov eax, dword ptr [ebp + 0x10] */ 468 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2701440B: sar edx, 3 */ 469 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 470 edx = (uint32_t)((int32_t)edx >> 3u); 471 ecx = edx; /* 0x2701440E: mov ecx, edx */ 472 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x27014410: shr ecx, 0x1f */ 473 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 474 ecx = ecx >> 31u; /* 0x27014410: shr ecx, 0x1f */ 475 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 477 edx = edx + ecx; /* 0x27014413: add edx, ecx */ 478 _flag_k = FK_ADD; 479 /* cmp eax, edx */ /* 0x27014415: cmp eax, edx */ 480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 482 _flag_k = FK_CMP; 483 if (CMP_AE(_flag_a, _flag_b)) goto L_2701443A; /* 0x27014417: jae 0x2701443a */ 484 L_27014419: 485 eax = MEM32(ebx + 0x54); /* 0x27014419: mov eax, dword ptr [ebx + 0x54] */ 486 PUSH32(esp, 0xFFFFFFFFu); /* 0x2701441C: push -1 */ 487 PUSH32(esp, 0); /* 0x2701441E: push 0 */ 488 PUSH32(esp, 6); /* 0x27014420: push 6 */ 489 ecx = edi + eax; /* 0x27014422: lea ecx, [edi + eax] */ 490 RECOMP_ICALL(0x27007210u); /* 0x27014425: call 0x27007210 */ /* not lifted */ 491 RECOMP_FLAGS_IN(); 492 /* cmp eax, MEM32(ebp + 0xC) */ /* 0x2701442A: cmp eax, dword ptr [ebp + 0xc] */ 493 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 495 _flag_k = FK_CMP; 496 if (CMP_LE(_flag_a, _flag_b)) goto L_27014432; /* 0x2701442D: jle 0x27014432 */ 497 L_2701442F: 498 MEM32(ebp + 0xC) = eax; /* 0x2701442F: mov dword ptr [ebp + 0xc], eax */ 499 L_27014432: 500 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1); 501 MEM32(ebp + 0x10) = MEM32(ebp + 0x10) + 1; /* 0x27014432: inc dword ptr [ebp + 0x10] */ 502 _flag_k = FK_INC; 503 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 505 edi = edi + 0x14u; /* 0x27014435: add edi, 0x14 */ 506 _flag_k = FK_ADD; 507 RECOMP_BACKEDGE(); 508 goto L_270143F5; /* 0x27014438: jmp 0x270143f5 */ 509 L_2701443A: 510 edx = MEM32(ebx + 0x6C); /* 0x2701443A: mov edx, dword ptr [ebx + 0x6c] */ 511 eax = MEM32(ebp + 0xC); /* 0x2701443D: mov eax, dword ptr [ebp + 0xc] */ 512 ecx = edx + eax + 0x4; /* 0x27014440: lea ecx, [edx + eax + 4] */ 513 edx = MEM32(ebp + 0x8); /* 0x27014444: mov edx, dword ptr [ebp + 8] */ 514 eax = MEM32(edx + 0x4); /* 0x27014447: mov eax, dword ptr [edx + 4] */ 515 MEM32(ebp + (-0x18)) = ecx; /* 0x2701444A: mov dword ptr [ebp - 0x18], ecx */ 516 ecx = ebp + (-0x18); /* 0x2701444D: lea ecx, [ebp - 0x18] */ 517 PUSH32(esp, ecx); /* 0x27014450: push ecx */ 518 ecx = ebx; /* 0x27014451: mov ecx, ebx */ 519 MEM32(ebp + (-0x14)) = eax; /* 0x27014453: mov dword ptr [ebp - 0x14], eax */ 520 RECOMP_ICALL(0x27018720u); /* 0x27014456: call 0x27018720 */ /* not lifted */ 521 RECOMP_FLAGS_IN(); 522 ecx = ebx; /* 0x2701445B: mov ecx, ebx */ 523 RECOMP_ICALL(0x27014700u); /* 0x2701445D: call 0x27014700 */ /* not lifted */ 524 RECOMP_FLAGS_IN(); 525 ecx = MEM32(ebp + (-0xC)); /* 0x27014462: mov ecx, dword ptr [ebp - 0xc] */ 526 edi = POP32_VAL(esp); /* 0x27014465: pop edi */ 527 esi = POP32_VAL(esp); /* 0x27014466: pop esi */ 528 eax = ebx; /* 0x27014467: mov eax, ebx */ 529 ebx = POP32_VAL(esp); /* 0x27014469: pop ebx */ 530 MEM32(FS_BASE + (0)) = ecx; /* 0x2701446A: mov dword ptr fs:[0], ecx */ 531 esp = ebp; /* 0x27014471: mov esp, ebp */ 532 ebp = POP32_VAL(esp); /* 0x27014473: pop ebp */ 533 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27014474: ret 0x10 */ 534 RECOMP_REGS_OUT(); 535 } 536 537 void sub_270143F5(void) { 538 int _fpu_cmp = 0; 539 uint32_t _cf = 0; 540 int _df = 1; 541 uint32_t _flag_k = FK_NONE; 542 uint32_t _flag_a = 0, _flag_b = 0; 543 uint32_t _itail_tgt = 0; 544 RECOMP_REGS_LOCALS 545 RECOMP_ENTER(0x270143F5u); 546 547 L_270143F5: 548 eax = MEM32(esi + 0x4); /* 0x270143F5: mov eax, dword ptr [esi + 4] */ 549 /* test eax, eax */ /* 0x270143F8: test eax, eax */ 550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 551 _cf = 0; 552 _flag_k = FK_TEST; 553 if (TEST_Z(_flag_a, _flag_b)) goto L_2701443A; /* 0x270143FA: je 0x2701443a */ 554 L_270143FC: 555 ecx = MEM32(esi + 0x8); /* 0x270143FC: mov ecx, dword ptr [esi + 8] */ 556 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 558 ecx = ecx - eax; /* 0x270143FF: sub ecx, eax */ 559 _flag_k = FK_CMP; 560 eax = 0x66666667u; /* 0x27014401: mov eax, 0x66666667 */ 561 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x27014406: imul ecx */ 562 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 563 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 564 eax = MEM32(ebp + 0x10); /* 0x27014408: mov eax, dword ptr [ebp + 0x10] */ 565 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2701440B: sar edx, 3 */ 566 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 567 edx = (uint32_t)((int32_t)edx >> 3u); 568 ecx = edx; /* 0x2701440E: mov ecx, edx */ 569 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x27014410: shr ecx, 0x1f */ 570 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 571 ecx = ecx >> 31u; /* 0x27014410: shr ecx, 0x1f */ 572 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 574 edx = edx + ecx; /* 0x27014413: add edx, ecx */ 575 _flag_k = FK_ADD; 576 /* cmp eax, edx */ /* 0x27014415: cmp eax, edx */ 577 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 579 _flag_k = FK_CMP; 580 if (CMP_AE(_flag_a, _flag_b)) goto L_2701443A; /* 0x27014417: jae 0x2701443a */ 581 L_27014419: 582 eax = MEM32(ebx + 0x54); /* 0x27014419: mov eax, dword ptr [ebx + 0x54] */ 583 PUSH32(esp, 0xFFFFFFFFu); /* 0x2701441C: push -1 */ 584 PUSH32(esp, 0); /* 0x2701441E: push 0 */ 585 PUSH32(esp, 6); /* 0x27014420: push 6 */ 586 ecx = edi + eax; /* 0x27014422: lea ecx, [edi + eax] */ 587 RECOMP_ICALL(0x27007210u); /* 0x27014425: call 0x27007210 */ /* not lifted */ 588 RECOMP_FLAGS_IN(); 589 /* cmp eax, MEM32(ebp + 0xC) */ /* 0x2701442A: cmp eax, dword ptr [ebp + 0xc] */ 590 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 592 _flag_k = FK_CMP; 593 if (CMP_LE(_flag_a, _flag_b)) goto L_27014432; /* 0x2701442D: jle 0x27014432 */ 594 L_2701442F: 595 MEM32(ebp + 0xC) = eax; /* 0x2701442F: mov dword ptr [ebp + 0xc], eax */ 596 L_27014432: 597 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1); 598 MEM32(ebp + 0x10) = MEM32(ebp + 0x10) + 1; /* 0x27014432: inc dword ptr [ebp + 0x10] */ 599 _flag_k = FK_INC; 600 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 601 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 602 edi = edi + 0x14u; /* 0x27014435: add edi, 0x14 */ 603 _flag_k = FK_ADD; 604 RECOMP_BACKEDGE(); 605 goto L_270143F5; /* 0x27014438: jmp 0x270143f5 */ 606 L_2701443A: 607 edx = MEM32(ebx + 0x6C); /* 0x2701443A: mov edx, dword ptr [ebx + 0x6c] */ 608 eax = MEM32(ebp + 0xC); /* 0x2701443D: mov eax, dword ptr [ebp + 0xc] */ 609 ecx = edx + eax + 0x4; /* 0x27014440: lea ecx, [edx + eax + 4] */ 610 edx = MEM32(ebp + 0x8); /* 0x27014444: mov edx, dword ptr [ebp + 8] */ 611 eax = MEM32(edx + 0x4); /* 0x27014447: mov eax, dword ptr [edx + 4] */ 612 MEM32(ebp + (-0x18)) = ecx; /* 0x2701444A: mov dword ptr [ebp - 0x18], ecx */ 613 ecx = ebp + (-0x18); /* 0x2701444D: lea ecx, [ebp - 0x18] */ 614 PUSH32(esp, ecx); /* 0x27014450: push ecx */ 615 ecx = ebx; /* 0x27014451: mov ecx, ebx */ 616 MEM32(ebp + (-0x14)) = eax; /* 0x27014453: mov dword ptr [ebp - 0x14], eax */ 617 RECOMP_ICALL(0x27018720u); /* 0x27014456: call 0x27018720 */ /* not lifted */ 618 RECOMP_FLAGS_IN(); 619 ecx = ebx; /* 0x2701445B: mov ecx, ebx */ 620 RECOMP_ICALL(0x27014700u); /* 0x2701445D: call 0x27014700 */ /* not lifted */ 621 RECOMP_FLAGS_IN(); 622 ecx = MEM32(ebp + (-0xC)); /* 0x27014462: mov ecx, dword ptr [ebp - 0xc] */ 623 edi = POP32_VAL(esp); /* 0x27014465: pop edi */ 624 esi = POP32_VAL(esp); /* 0x27014466: pop esi */ 625 eax = ebx; /* 0x27014467: mov eax, ebx */ 626 ebx = POP32_VAL(esp); /* 0x27014469: pop ebx */ 627 MEM32(FS_BASE + (0)) = ecx; /* 0x2701446A: mov dword ptr fs:[0], ecx */ 628 esp = ebp; /* 0x27014471: mov esp, ebp */ 629 ebp = POP32_VAL(esp); /* 0x27014473: pop ebp */ 630 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27014474: ret 0x10 */ 631 RECOMP_REGS_OUT(); 632 } 633 634 void sub_27014480(void) { 635 int _fpu_cmp = 0; 636 uint32_t _cf = 0; 637 int _df = 1; 638 uint32_t _flag_k = FK_NONE; 639 uint32_t _flag_a = 0, _flag_b = 0; 640 uint32_t _itail_tgt = 0; 641 RECOMP_REGS_LOCALS 642 RECOMP_ENTER(0x27014480u); 643 644 L_27014480: 645 PUSH32(esp, ebp); /* 0x27014480: push ebp */ 646 ebp = esp; /* 0x27014481: mov ebp, esp */ 647 PUSH32(esp, ecx); /* 0x27014483: push ecx */ 648 eax = MEM32(ebp + 0xC); /* 0x27014484: mov eax, dword ptr [ebp + 0xc] */ 649 PUSH32(esp, ebx); /* 0x27014487: push ebx */ 650 ebx = MEM32(ebp + 0x8); /* 0x27014488: mov ebx, dword ptr [ebp + 8] */ 651 PUSH32(esp, esi); /* 0x2701448B: push esi */ 652 PUSH32(esp, edi); /* 0x2701448C: push edi */ 653 edi = ecx + 0x50; /* 0x2701448D: lea edi, [ecx + 0x50] */ 654 /* cmp edi, ebx */ /* 0x27014490: cmp edi, ebx */ 655 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 657 _flag_k = FK_CMP; 658 MEM32(ebp + (-0x4)) = ecx; /* 0x27014492: mov dword ptr [ebp - 4], ecx */ 659 MEM32(ecx + 0x68) = eax; /* 0x27014495: mov dword ptr [ecx + 0x68], eax */ 660 if (CMP_EQ(_flag_a, _flag_b)) goto L_270146EA; /* 0x27014498: je 0x270146ea */ 661 L_2701449E: 662 esi = MEM32(ebx + 0x4); /* 0x2701449E: mov esi, dword ptr [ebx + 4] */ 663 /* test esi, esi */ /* 0x270144A1: test esi, esi */ 664 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 665 _cf = 0; 666 _flag_k = FK_TEST; 667 if (TEST_NZ(_flag_a, _flag_b)) goto L_270144AA; /* 0x270144A3: jne 0x270144aa */ 668 L_270144A5: 669 MEM32(ebp + 0xC) = esi; /* 0x270144A5: mov dword ptr [ebp + 0xc], esi */ 670 goto L_270144C3; /* 0x270144A8: jmp 0x270144c3 */ 671 L_270144AA: 672 ecx = MEM32(ebx + 0x8); /* 0x270144AA: mov ecx, dword ptr [ebx + 8] */ 673 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 675 ecx = ecx - esi; /* 0x270144AD: sub ecx, esi */ 676 _flag_k = FK_CMP; 677 eax = 0x66666667u; /* 0x270144AF: mov eax, 0x66666667 */ 678 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x270144B4: imul ecx */ 679 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 680 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 681 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x270144B6: sar edx, 3 */ 682 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 683 edx = (uint32_t)((int32_t)edx >> 3u); 684 ecx = edx; /* 0x270144B9: mov ecx, edx */ 685 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x270144BB: shr ecx, 0x1f */ 686 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 687 ecx = ecx >> 31u; /* 0x270144BB: shr ecx, 0x1f */ 688 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 690 edx = edx + ecx; /* 0x270144BE: add edx, ecx */ 691 _flag_k = FK_ADD; 692 MEM32(ebp + 0xC) = edx; /* 0x270144C0: mov dword ptr [ebp + 0xc], edx */ 693 L_270144C3: 694 ecx = MEM32(edi + 0x4); /* 0x270144C3: mov ecx, dword ptr [edi + 4] */ 695 /* test ecx, ecx */ /* 0x270144C6: test ecx, ecx */ 696 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 697 _cf = 0; 698 _flag_k = FK_TEST; 699 if (TEST_NZ(_flag_a, _flag_b)) goto L_270144CE; /* 0x270144C8: jne 0x270144ce */ 700 L_270144CA: 701 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 702 edx = 0; /* 0x270144CA: xor edx, edx */ 703 _cf = 0; 704 _flag_k = FK_TEST; 705 goto L_270144E4; /* 0x270144CC: jmp 0x270144e4 */ 706 L_270144CE: 707 edx = MEM32(edi + 0x8); /* 0x270144CE: mov edx, dword ptr [edi + 8] */ 708 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 710 edx = edx - ecx; /* 0x270144D1: sub edx, ecx */ 711 _flag_k = FK_CMP; 712 eax = 0x66666667u; /* 0x270144D3: mov eax, 0x66666667 */ 713 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x270144D8: imul edx */ 714 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 715 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 716 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x270144DA: sar edx, 3 */ 717 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 718 edx = (uint32_t)((int32_t)edx >> 3u); 719 eax = edx; /* 0x270144DD: mov eax, edx */ 720 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x270144DF: shr eax, 0x1f */ 721 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 722 eax = eax >> 31u; /* 0x270144DF: shr eax, 0x1f */ 723 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 724 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 725 edx = edx + eax; /* 0x270144E2: add edx, eax */ 726 _flag_k = FK_ADD; 727 L_270144E4: 728 /* cmp MEM32(ebp + 0xC), edx */ /* 0x270144E4: cmp dword ptr [ebp + 0xc], edx */ 729 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(edx); 730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 731 _flag_k = FK_CMP; 732 if (CMP_A(_flag_a, _flag_b)) goto L_27014577; /* 0x270144E7: ja 0x27014577 */ 733 L_270144ED: 734 eax = MEM32(ebx + 0x8); /* 0x270144ED: mov eax, dword ptr [ebx + 8] */ 735 /* cmp esi, eax */ /* 0x270144F0: cmp esi, eax */ 736 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 738 _flag_k = FK_CMP; 739 MEM32(ebp + 0x8) = eax; /* 0x270144F2: mov dword ptr [ebp + 8], eax */ 740 edi = ecx; /* 0x270144F5: mov edi, ecx */ 741 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701450E; /* 0x270144F7: je 0x2701450e */ 742 L_270144F9: 743 PUSH32(esp, esi); /* 0x270144F9: push esi */ 744 ecx = edi; /* 0x270144FA: mov ecx, edi */ 745 RECOMP_ICALL(0x27006160u); /* 0x270144FC: call 0x27006160 */ /* not lifted */ 746 RECOMP_FLAGS_IN(); 747 eax = MEM32(ebp + 0x8); /* 0x27014501: mov eax, dword ptr [ebp + 8] */ 748 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 749 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 750 esi = esi + 0x14u; /* 0x27014504: add esi, 0x14 */ 751 _flag_k = FK_ADD; 752 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 753 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 754 edi = edi + 0x14u; /* 0x27014507: add edi, 0x14 */ 755 _flag_k = FK_ADD; 756 /* cmp esi, eax */ /* 0x2701450A: cmp esi, eax */ 757 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 759 _flag_k = FK_CMP; 760 RECOMP_BACKEDGE(); 761 if (CMP_NE(_flag_a, _flag_b)) goto L_270144F9; /* 0x2701450C: jne 0x270144f9 */ 762 L_2701450E: 763 ecx = MEM32(ebp + (-0x4)); /* 0x2701450E: mov ecx, dword ptr [ebp - 4] */ 764 eax = ecx + 0x50; /* 0x27014511: lea eax, [ecx + 0x50] */ 765 eax = MEM32(eax + 0x8); /* 0x27014514: mov eax, dword ptr [eax + 8] */ 766 /* cmp edi, eax */ /* 0x27014517: cmp edi, eax */ 767 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 769 _flag_k = FK_CMP; 770 MEM32(ebp + 0x8) = eax; /* 0x27014519: mov dword ptr [ebp + 8], eax */ 771 esi = edi; /* 0x2701451C: mov esi, edi */ 772 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014533; /* 0x2701451E: je 0x27014533 */ 773 L_27014520: 774 PUSH32(esp, 0); /* 0x27014520: push 0 */ 775 ecx = esi; /* 0x27014522: mov ecx, esi */ 776 RECOMP_ICALL(0x27014C00u); /* 0x27014524: call 0x27014c00 */ /* not lifted */ 777 RECOMP_FLAGS_IN(); 778 eax = MEM32(ebp + 0x8); /* 0x27014529: mov eax, dword ptr [ebp + 8] */ 779 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 780 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 781 esi = esi + 0x14u; /* 0x2701452C: add esi, 0x14 */ 782 _flag_k = FK_ADD; 783 /* cmp esi, eax */ /* 0x2701452F: cmp esi, eax */ 784 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 786 _flag_k = FK_CMP; 787 RECOMP_BACKEDGE(); 788 if (CMP_NE(_flag_a, _flag_b)) goto L_27014520; /* 0x27014531: jne 0x27014520 */ 789 L_27014533: 790 eax = MEM32(ebx + 0x4); /* 0x27014533: mov eax, dword ptr [ebx + 4] */ 791 /* test eax, eax */ /* 0x27014536: test eax, eax */ 792 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 793 _cf = 0; 794 _flag_k = FK_TEST; 795 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701453E; /* 0x27014538: jne 0x2701453e */ 796 L_2701453A: 797 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 798 edx = 0; /* 0x2701453A: xor edx, edx */ 799 _cf = 0; 800 _flag_k = FK_TEST; 801 goto L_27014554; /* 0x2701453C: jmp 0x27014554 */ 802 L_2701453E: 803 ecx = MEM32(ebx + 0x8); /* 0x2701453E: mov ecx, dword ptr [ebx + 8] */ 804 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 806 ecx = ecx - eax; /* 0x27014541: sub ecx, eax */ 807 _flag_k = FK_CMP; 808 eax = 0x66666667u; /* 0x27014543: mov eax, 0x66666667 */ 809 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x27014548: imul ecx */ 810 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 811 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 812 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2701454A: sar edx, 3 */ 813 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 814 edx = (uint32_t)((int32_t)edx >> 3u); 815 eax = edx; /* 0x2701454D: mov eax, edx */ 816 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x2701454F: shr eax, 0x1f */ 817 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 818 eax = eax >> 31u; /* 0x2701454F: shr eax, 0x1f */ 819 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 820 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 821 edx = edx + eax; /* 0x27014552: add edx, eax */ 822 _flag_k = FK_ADD; 823 L_27014554: 824 ecx = edx + edx * 4; /* 0x27014554: lea ecx, [edx + edx*4] */ 825 edx = MEM32(ebp + (-0x4)); /* 0x27014557: mov edx, dword ptr [ebp - 4] */ 826 eax = edx + 0x50; /* 0x2701455A: lea eax, [edx + 0x50] */ 827 edx = MEM32(eax + 0x4); /* 0x2701455D: mov edx, dword ptr [eax + 4] */ 828 ecx = edx + ecx * 4; /* 0x27014560: lea ecx, [edx + ecx*4] */ 829 MEM32(eax + 0x8) = ecx; /* 0x27014563: mov dword ptr [eax + 8], ecx */ 830 ecx = MEM32(ebp + (-0x4)); /* 0x27014566: mov ecx, dword ptr [ebp - 4] */ 831 RECOMP_ICALL(0x27014700u); /* 0x27014569: call 0x27014700 */ /* not lifted */ 832 RECOMP_FLAGS_IN(); 833 edi = POP32_VAL(esp); /* 0x2701456E: pop edi */ 834 esi = POP32_VAL(esp); /* 0x2701456F: pop esi */ 835 ebx = POP32_VAL(esp); /* 0x27014570: pop ebx */ 836 esp = ebp; /* 0x27014571: mov esp, ebp */ 837 ebp = POP32_VAL(esp); /* 0x27014573: pop ebp */ 838 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27014574: ret 8 */ 839 L_27014577: 840 /* test esi, esi */ /* 0x27014577: test esi, esi */ 841 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 842 _cf = 0; 843 _flag_k = FK_TEST; 844 if (TEST_NZ(_flag_a, _flag_b)) goto L_27014580; /* 0x27014579: jne 0x27014580 */ 845 L_2701457B: 846 MEM32(ebp + 0xC) = esi; /* 0x2701457B: mov dword ptr [ebp + 0xc], esi */ 847 goto L_27014599; /* 0x2701457E: jmp 0x27014599 */ 848 L_27014580: 849 edx = MEM32(ebx + 0x8); /* 0x27014580: mov edx, dword ptr [ebx + 8] */ 850 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 852 edx = edx - esi; /* 0x27014583: sub edx, esi */ 853 _flag_k = FK_CMP; 854 eax = 0x66666667u; /* 0x27014585: mov eax, 0x66666667 */ 855 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2701458A: imul edx */ 856 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 857 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 858 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x2701458C: sar edx, 3 */ 859 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 860 edx = (uint32_t)((int32_t)edx >> 3u); 861 eax = edx; /* 0x2701458F: mov eax, edx */ 862 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x27014591: shr eax, 0x1f */ 863 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 864 eax = eax >> 31u; /* 0x27014591: shr eax, 0x1f */ 865 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 867 edx = edx + eax; /* 0x27014594: add edx, eax */ 868 _flag_k = FK_ADD; 869 MEM32(ebp + 0xC) = edx; /* 0x27014596: mov dword ptr [ebp + 0xc], edx */ 870 L_27014599: 871 /* test ecx, ecx */ /* 0x27014599: test ecx, ecx */ 872 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 873 _cf = 0; 874 _flag_k = FK_TEST; 875 if (TEST_NZ(_flag_a, _flag_b)) goto L_270145A1; /* 0x2701459B: jne 0x270145a1 */ 876 L_2701459D: 877 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 878 edx = 0; /* 0x2701459D: xor edx, edx */ 879 _cf = 0; 880 _flag_k = FK_TEST; 881 goto L_270145B7; /* 0x2701459F: jmp 0x270145b7 */ 882 L_270145A1: 883 edx = MEM32(edi + 0xC); /* 0x270145A1: mov edx, dword ptr [edi + 0xc] */ 884 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 886 edx = edx - ecx; /* 0x270145A4: sub edx, ecx */ 887 _flag_k = FK_CMP; 888 eax = 0x66666667u; /* 0x270145A6: mov eax, 0x66666667 */ 889 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x270145AB: imul edx */ 890 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 891 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 892 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x270145AD: sar edx, 3 */ 893 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 894 edx = (uint32_t)((int32_t)edx >> 3u); 895 eax = edx; /* 0x270145B0: mov eax, edx */ 896 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x270145B2: shr eax, 0x1f */ 897 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 898 eax = eax >> 31u; /* 0x270145B2: shr eax, 0x1f */ 899 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 901 edx = edx + eax; /* 0x270145B5: add edx, eax */ 902 _flag_k = FK_ADD; 903 L_270145B7: 904 /* cmp MEM32(ebp + 0xC), edx */ /* 0x270145B7: cmp dword ptr [ebp + 0xc], edx */ 905 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(edx); 906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 907 _flag_k = FK_CMP; 908 if (CMP_A(_flag_a, _flag_b)) goto L_2701466E; /* 0x270145BA: ja 0x2701466e */ 909 L_270145C0: 910 /* test ecx, ecx */ /* 0x270145C0: test ecx, ecx */ 911 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 912 _cf = 0; 913 _flag_k = FK_TEST; 914 if (TEST_NZ(_flag_a, _flag_b)) goto L_270145C8; /* 0x270145C2: jne 0x270145c8 */ 915 L_270145C4: 916 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 917 edx = 0; /* 0x270145C4: xor edx, edx */ 918 _cf = 0; 919 _flag_k = FK_TEST; 920 goto L_270145DE; /* 0x270145C6: jmp 0x270145de */ 921 L_270145C8: 922 edx = MEM32(edi + 0x8); /* 0x270145C8: mov edx, dword ptr [edi + 8] */ 923 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 925 edx = edx - ecx; /* 0x270145CB: sub edx, ecx */ 926 _flag_k = FK_CMP; 927 eax = 0x66666667u; /* 0x270145CD: mov eax, 0x66666667 */ 928 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x270145D2: imul edx */ 929 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 930 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 931 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x270145D4: sar edx, 3 */ 932 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 933 edx = (uint32_t)((int32_t)edx >> 3u); 934 eax = edx; /* 0x270145D7: mov eax, edx */ 935 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x270145D9: shr eax, 0x1f */ 936 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 937 eax = eax >> 31u; /* 0x270145D9: shr eax, 0x1f */ 938 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 939 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 940 edx = edx + eax; /* 0x270145DC: add edx, eax */ 941 _flag_k = FK_ADD; 942 L_270145DE: 943 edx = edx + edx * 4; /* 0x270145DE: lea edx, [edx + edx*4] */ 944 edi = esi + edx * 4; /* 0x270145E1: lea edi, [esi + edx*4] */ 945 /* cmp esi, edi */ /* 0x270145E4: cmp esi, edi */ 946 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 948 _flag_k = FK_CMP; 949 ebx = ecx; /* 0x270145E6: mov ebx, ecx */ 950 if (CMP_EQ(_flag_a, _flag_b)) goto L_270145FC; /* 0x270145E8: je 0x270145fc */ 951 L_270145EA: 952 PUSH32(esp, esi); /* 0x270145EA: push esi */ 953 ecx = ebx; /* 0x270145EB: mov ecx, ebx */ 954 RECOMP_ICALL(0x27006160u); /* 0x270145ED: call 0x27006160 */ /* not lifted */ 955 RECOMP_FLAGS_IN(); 956 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 957 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 958 esi = esi + 0x14u; /* 0x270145F2: add esi, 0x14 */ 959 _flag_k = FK_ADD; 960 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u); 961 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 962 ebx = ebx + 0x14u; /* 0x270145F5: add ebx, 0x14 */ 963 _flag_k = FK_ADD; 964 /* cmp esi, edi */ /* 0x270145F8: cmp esi, edi */ 965 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 967 _flag_k = FK_CMP; 968 RECOMP_BACKEDGE(); 969 if (CMP_NE(_flag_a, _flag_b)) goto L_270145EA; /* 0x270145FA: jne 0x270145ea */ 970 L_270145FC: 971 eax = MEM32(ebp + 0x8); /* 0x270145FC: mov eax, dword ptr [ebp + 8] */ 972 ecx = MEM32(eax + 0x8); /* 0x270145FF: mov ecx, dword ptr [eax + 8] */ 973 edx = MEM32(ebp + (-0x4)); /* 0x27014602: mov edx, dword ptr [ebp - 4] */ 974 ebx = MEM32(edx + 0x58); /* 0x27014605: mov ebx, dword ptr [edx + 0x58] */ 975 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x50u); 976 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 977 edx = edx + 0x50u; /* 0x27014608: add edx, 0x50 */ 978 _flag_k = FK_ADD; 979 /* cmp edi, ecx */ /* 0x2701460B: cmp edi, ecx */ 980 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 982 _flag_k = FK_CMP; 983 MEM32(ebp + 0xC) = ecx; /* 0x2701460D: mov dword ptr [ebp + 0xc], ecx */ 984 esi = edi; /* 0x27014610: mov esi, edi */ 985 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701462E; /* 0x27014612: je 0x2701462e */ 986 L_27014614: 987 PUSH32(esp, esi); /* 0x27014614: push esi */ 988 PUSH32(esp, ebx); /* 0x27014615: push ebx */ 989 RECOMP_ICALL(0x27014BB0u); /* 0x27014616: call 0x27014bb0 */ /* not lifted */ 990 RECOMP_FLAGS_IN(); 991 eax = MEM32(ebp + 0xC); /* 0x2701461B: mov eax, dword ptr [ebp + 0xc] */ 992 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 994 esi = esi + 0x14u; /* 0x2701461E: add esi, 0x14 */ 995 _flag_k = FK_ADD; 996 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 997 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 998 esp = esp + 8; /* 0x27014621: add esp, 8 */ 999 _flag_k = FK_ADD; 1000 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u); 1001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1002 ebx = ebx + 0x14u; /* 0x27014624: add ebx, 0x14 */ 1003 _flag_k = FK_ADD; 1004 /* cmp esi, eax */ /* 0x27014627: cmp esi, eax */ 1005 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1007 _flag_k = FK_CMP; 1008 RECOMP_BACKEDGE(); 1009 if (CMP_NE(_flag_a, _flag_b)) goto L_27014614; /* 0x27014629: jne 0x27014614 */ 1010 L_2701462B: 1011 eax = MEM32(ebp + 0x8); /* 0x2701462B: mov eax, dword ptr [ebp + 8] */ 1012 L_2701462E: 1013 edx = MEM32(eax + 0x4); /* 0x2701462E: mov edx, dword ptr [eax + 4] */ 1014 /* test edx, edx */ /* 0x27014631: test edx, edx */ 1015 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1016 _cf = 0; 1017 _flag_k = FK_TEST; 1018 if (TEST_Z(_flag_a, _flag_b)) goto L_2701464B; /* 0x27014633: je 0x2701464b */ 1019 L_27014635: 1020 ecx = MEM32(eax + 0x8); /* 0x27014635: mov ecx, dword ptr [eax + 8] */ 1021 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1023 ecx = ecx - edx; /* 0x27014638: sub ecx, edx */ 1024 _flag_k = FK_CMP; 1025 eax = 0x66666667u; /* 0x2701463A: mov eax, 0x66666667 */ 1026 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x2701463F: imul ecx */ 1027 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1028 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1029 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x27014641: sar edx, 3 */ 1030 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1031 edx = (uint32_t)((int32_t)edx >> 3u); 1032 eax = edx; /* 0x27014644: mov eax, edx */ 1033 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x27014646: shr eax, 0x1f */ 1034 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1035 eax = eax >> 31u; /* 0x27014646: shr eax, 0x1f */ 1036 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1037 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1038 edx = edx + eax; /* 0x27014649: add edx, eax */ 1039 _flag_k = FK_ADD; 1040 L_2701464B: 1041 ecx = edx + edx * 4; /* 0x2701464B: lea ecx, [edx + edx*4] */ 1042 edx = MEM32(ebp + (-0x4)); /* 0x2701464E: mov edx, dword ptr [ebp - 4] */ 1043 eax = edx + 0x50; /* 0x27014651: lea eax, [edx + 0x50] */ 1044 edx = MEM32(eax + 0x4); /* 0x27014654: mov edx, dword ptr [eax + 4] */ 1045 ecx = edx + ecx * 4; /* 0x27014657: lea ecx, [edx + ecx*4] */ 1046 MEM32(eax + 0x8) = ecx; /* 0x2701465A: mov dword ptr [eax + 8], ecx */ 1047 ecx = MEM32(ebp + (-0x4)); /* 0x2701465D: mov ecx, dword ptr [ebp - 4] */ 1048 RECOMP_ICALL(0x27014700u); /* 0x27014660: call 0x27014700 */ /* not lifted */ 1049 RECOMP_FLAGS_IN(); 1050 edi = POP32_VAL(esp); /* 0x27014665: pop edi */ 1051 esi = POP32_VAL(esp); /* 0x27014666: pop esi */ 1052 ebx = POP32_VAL(esp); /* 0x27014667: pop ebx */ 1053 esp = ebp; /* 0x27014668: mov esp, ebp */ 1054 ebp = POP32_VAL(esp); /* 0x2701466A: pop ebp */ 1055 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2701466B: ret 8 */ 1056 L_2701466E: 1057 edi = MEM32(edi + 0x8); /* 0x2701466E: mov edi, dword ptr [edi + 8] */ 1058 esi = ecx; /* 0x27014671: mov esi, ecx */ 1059 /* cmp esi, edi */ /* 0x27014673: cmp esi, edi */ 1060 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1062 _flag_k = FK_CMP; 1063 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014687; /* 0x27014675: je 0x27014687 */ 1064 L_27014677: 1065 PUSH32(esp, 0); /* 0x27014677: push 0 */ 1066 ecx = esi; /* 0x27014679: mov ecx, esi */ 1067 RECOMP_ICALL(0x27014C00u); /* 0x2701467B: call 0x27014c00 */ /* not lifted */ 1068 RECOMP_FLAGS_IN(); 1069 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 1070 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1071 esi = esi + 0x14u; /* 0x27014680: add esi, 0x14 */ 1072 _flag_k = FK_ADD; 1073 /* cmp esi, edi */ /* 0x27014683: cmp esi, edi */ 1074 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1076 _flag_k = FK_CMP; 1077 RECOMP_BACKEDGE(); 1078 if (CMP_NE(_flag_a, _flag_b)) goto L_27014677; /* 0x27014685: jne 0x27014677 */ 1079 L_27014687: 1080 edx = MEM32(ebp + (-0x4)); /* 0x27014687: mov edx, dword ptr [ebp - 4] */ 1081 eax = MEM32(edx + 0x54); /* 0x2701468A: mov eax, dword ptr [edx + 0x54] */ 1082 esi = edx + 0x50; /* 0x2701468D: lea esi, [edx + 0x50] */ 1083 PUSH32(esp, eax); /* 0x27014690: push eax */ 1084 RECOMP_ICALL(0x27026DA4u); /* 0x27014691: call 0x27026da4 */ /* not lifted */ 1085 RECOMP_FLAGS_IN(); 1086 eax = MEM32(ebx + 0x4); /* 0x27014696: mov eax, dword ptr [ebx + 4] */ 1087 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1088 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1089 esp = esp + 4; /* 0x27014699: add esp, 4 */ 1090 _flag_k = FK_ADD; 1091 /* test eax, eax */ /* 0x2701469C: test eax, eax */ 1092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1093 _cf = 0; 1094 _flag_k = FK_TEST; 1095 if (TEST_NZ(_flag_a, _flag_b)) goto L_270146A4; /* 0x2701469E: jne 0x270146a4 */ 1096 L_270146A0: 1097 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1098 edx = 0; /* 0x270146A0: xor edx, edx */ 1099 _cf = 0; 1100 _flag_k = FK_TEST; 1101 goto L_270146BA; /* 0x270146A2: jmp 0x270146ba */ 1102 L_270146A4: 1103 ecx = MEM32(ebx + 0x8); /* 0x270146A4: mov ecx, dword ptr [ebx + 8] */ 1104 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1106 ecx = ecx - eax; /* 0x270146A7: sub ecx, eax */ 1107 _flag_k = FK_CMP; 1108 eax = 0x66666667u; /* 0x270146A9: mov eax, 0x66666667 */ 1109 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x270146AE: imul ecx */ 1110 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1111 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1112 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x270146B0: sar edx, 3 */ 1113 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1114 edx = (uint32_t)((int32_t)edx >> 3u); 1115 ecx = edx; /* 0x270146B3: mov ecx, edx */ 1116 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x270146B5: shr ecx, 0x1f */ 1117 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1118 ecx = ecx >> 31u; /* 0x270146B5: shr ecx, 0x1f */ 1119 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1120 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1121 edx = edx + ecx; /* 0x270146B8: add edx, ecx */ 1122 _flag_k = FK_ADD; 1123 L_270146BA: 1124 /* test edx, edx */ /* 0x270146BA: test edx, edx */ 1125 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1126 _cf = 0; 1127 _flag_k = FK_TEST; 1128 eax = edx; /* 0x270146BC: mov eax, edx */ 1129 if (TEST_NS(_flag_a, _flag_b)) goto L_270146C2; /* 0x270146BE: jge 0x270146c2 */ 1130 L_270146C0: 1131 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1132 eax = 0; /* 0x270146C0: xor eax, eax */ 1133 _cf = 0; 1134 _flag_k = FK_TEST; 1135 L_270146C2: 1136 edx = eax + eax * 4; /* 0x270146C2: lea edx, [eax + eax*4] */ 1137 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x270146C5: shl edx, 2 */ 1138 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1139 edx = edx << 2u; /* 0x270146C5: shl edx, 2 */ 1140 PUSH32(esp, edx); /* 0x270146C8: push edx */ 1141 RECOMP_ICALL(0x27026EA4u); /* 0x270146C9: call 0x27026ea4 */ /* not lifted */ 1142 RECOMP_FLAGS_IN(); 1143 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1144 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1145 esp = esp + 4; /* 0x270146CE: add esp, 4 */ 1146 _flag_k = FK_ADD; 1147 MEM32(esi + 0x4) = eax; /* 0x270146D1: mov dword ptr [esi + 4], eax */ 1148 ecx = MEM32(ebx + 0x8); /* 0x270146D4: mov ecx, dword ptr [ebx + 8] */ 1149 ebx = MEM32(ebx + 0x4); /* 0x270146D7: mov ebx, dword ptr [ebx + 4] */ 1150 PUSH32(esp, eax); /* 0x270146DA: push eax */ 1151 PUSH32(esp, ecx); /* 0x270146DB: push ecx */ 1152 PUSH32(esp, ebx); /* 0x270146DC: push ebx */ 1153 ecx = esi; /* 0x270146DD: mov ecx, esi */ 1154 RECOMP_ICALL(0x27014B30u); /* 0x270146DF: call 0x27014b30 */ /* not lifted */ 1155 RECOMP_FLAGS_IN(); 1156 MEM32(esi + 0x8) = eax; /* 0x270146E4: mov dword ptr [esi + 8], eax */ 1157 MEM32(esi + 0xC) = eax; /* 0x270146E7: mov dword ptr [esi + 0xc], eax */ 1158 L_270146EA: 1159 ecx = MEM32(ebp + (-0x4)); /* 0x270146EA: mov ecx, dword ptr [ebp - 4] */ 1160 RECOMP_ICALL(0x27014700u); /* 0x270146ED: call 0x27014700 */ /* not lifted */ 1161 RECOMP_FLAGS_IN(); 1162 edi = POP32_VAL(esp); /* 0x270146F2: pop edi */ 1163 esi = POP32_VAL(esp); /* 0x270146F3: pop esi */ 1164 ebx = POP32_VAL(esp); /* 0x270146F4: pop ebx */ 1165 esp = ebp; /* 0x270146F5: mov esp, ebp */ 1166 ebp = POP32_VAL(esp); /* 0x270146F7: pop ebp */ 1167 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270146F8: ret 8 */ 1168 RECOMP_REGS_OUT(); 1169 } 1170 1171 void sub_27014700(void) { 1172 int _fpu_cmp = 0; 1173 uint32_t _cf = 0; 1174 int _df = 1; 1175 uint32_t _flag_k = FK_NONE; 1176 uint32_t _flag_a = 0, _flag_b = 0; 1177 uint32_t _itail_tgt = 0; 1178 RECOMP_REGS_LOCALS 1179 RECOMP_ENTER(0x27014700u); 1180 1181 L_27014700: 1182 PUSH32(esp, ebp); /* 0x27014700: push ebp */ 1183 ebp = esp; /* 0x27014701: mov ebp, esp */ 1184 PUSH32(esp, 0xFFFFFFFFu); /* 0x27014703: push -1 */ 1185 PUSH32(esp, 0x27027A9Du); /* 0x27014705: push 0x27027a9d */ 1186 eax = MEM32(FS_BASE + (0)); /* 0x2701470A: mov eax, dword ptr fs:[0] */ 1187 PUSH32(esp, eax); /* 0x27014710: push eax */ 1188 MEM32(FS_BASE + (0)) = esp; /* 0x27014711: mov dword ptr fs:[0], esp */ 1189 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xC4u); 1190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1191 esp = esp - 0xC4u; /* 0x27014718: sub esp, 0xc4 */ 1192 _flag_k = FK_CMP; 1193 PUSH32(esp, ebx); /* 0x2701471E: push ebx */ 1194 ebx = ecx; /* 0x2701471F: mov ebx, ecx */ 1195 ecx = MEM32(ebx + 0x64); /* 0x27014721: mov ecx, dword ptr [ebx + 0x64] */ 1196 eax = MEM32(ebx + 0x68); /* 0x27014724: mov eax, dword ptr [ebx + 0x68] */ 1197 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1198 edx = 0; /* 0x27014727: xor edx, edx */ 1199 _cf = 0; 1200 _flag_k = FK_TEST; 1201 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x27014729: div ecx */ 1202 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 1203 else { eax = 0; edx = 0; } } 1204 PUSH32(esp, esi); /* 0x2701472B: push esi */ 1205 PUSH32(esp, edi); /* 0x2701472C: push edi */ 1206 edi = MEM32(0x27029270); /* 0x2701472D: mov edi, dword ptr [0x27029270] */ 1207 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1208 esi = 0; /* 0x27014733: xor esi, esi */ 1209 _cf = 0; 1210 _flag_k = FK_TEST; 1211 PUSH32(esp, esi); /* 0x27014735: push esi */ 1212 PUSH32(esp, 0x00A0A0A0u); /* 0x27014736: push 0xa0a0a0 */ 1213 PUSH32(esp, esi); /* 0x2701473B: push esi */ 1214 eax = (uint32_t)((int32_t)eax * (int32_t)ecx); /* 0x2701473C: imul eax, ecx */ 1215 ecx = MEM32(ebx + 0x28); /* 0x2701473F: mov ecx, dword ptr [ebx + 0x28] */ 1216 MEM32(ebx + 0x60) = eax; /* 0x27014742: mov dword ptr [ebx + 0x60], eax */ 1217 RECOMP_ICALL(edi); /* 0x27014745: call edi */ 1218 RECOMP_FLAGS_IN(); 1219 eax = MEM32(ebx + 0x38); /* 0x27014747: mov eax, dword ptr [ebx + 0x38] */ 1220 ecx = MEM32(ebx + 0x28); /* 0x2701474A: mov ecx, dword ptr [ebx + 0x28] */ 1221 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1222 eax = eax - 1; /* 0x2701474D: dec eax */ 1223 _flag_k = FK_DEC; 1224 PUSH32(esp, esi); /* 0x2701474E: push esi */ 1225 MEM32(ebp + (-0x14)) = eax; /* 0x2701474F: mov dword ptr [ebp - 0x14], eax */ 1226 PUSH32(esp, 0x00F0F0F0u); /* 0x27014752: push 0xf0f0f0 */ 1227 eax = ebp + (-0x20); /* 0x27014757: lea eax, [ebp - 0x20] */ 1228 PUSH32(esp, eax); /* 0x2701475A: push eax */ 1229 MEM32(ebp + (-0x20)) = esi; /* 0x2701475B: mov dword ptr [ebp - 0x20], esi */ 1230 MEM32(ebp + (-0x1C)) = esi; /* 0x2701475E: mov dword ptr [ebp - 0x1c], esi */ 1231 MEM32(ebp + (-0x18)) = 1; /* 0x27014761: mov dword ptr [ebp - 0x18], 1 */ 1232 RECOMP_ICALL(edi); /* 0x27014768: call edi */ 1233 RECOMP_FLAGS_IN(); 1234 eax = MEM32(ebx + 0x34); /* 0x2701476A: mov eax, dword ptr [ebx + 0x34] */ 1235 ecx = MEM32(ebx + 0x28); /* 0x2701476D: mov ecx, dword ptr [ebx + 0x28] */ 1236 PUSH32(esp, esi); /* 0x27014770: push esi */ 1237 PUSH32(esp, 0x00F0F0F0u); /* 0x27014771: push 0xf0f0f0 */ 1238 edx = ebp + (-0x20); /* 0x27014776: lea edx, [ebp - 0x20] */ 1239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1240 eax = eax - 1; /* 0x27014779: dec eax */ 1241 _flag_k = FK_DEC; 1242 PUSH32(esp, edx); /* 0x2701477A: push edx */ 1243 MEM32(ebp + (-0x20)) = esi; /* 0x2701477B: mov dword ptr [ebp - 0x20], esi */ 1244 MEM32(ebp + (-0x1C)) = esi; /* 0x2701477E: mov dword ptr [ebp - 0x1c], esi */ 1245 MEM32(ebp + (-0x18)) = eax; /* 0x27014781: mov dword ptr [ebp - 0x18], eax */ 1246 MEM32(ebp + (-0x14)) = 1; /* 0x27014784: mov dword ptr [ebp - 0x14], 1 */ 1247 RECOMP_ICALL(edi); /* 0x2701478B: call edi */ 1248 RECOMP_FLAGS_IN(); 1249 eax = MEM32(ebx + 0x34); /* 0x2701478D: mov eax, dword ptr [ebx + 0x34] */ 1250 edx = MEM32(ebx + 0x38); /* 0x27014790: mov edx, dword ptr [ebx + 0x38] */ 1251 ecx = eax + (-0x1); /* 0x27014793: lea ecx, [eax - 1] */ 1252 PUSH32(esp, esi); /* 0x27014796: push esi */ 1253 MEM32(ebp + (-0x18)) = eax; /* 0x27014797: mov dword ptr [ebp - 0x18], eax */ 1254 PUSH32(esp, 0x00202020u); /* 0x2701479A: push 0x202020 */ 1255 eax = ebp + (-0x20); /* 0x2701479F: lea eax, [ebp - 0x20] */ 1256 MEM32(ebp + (-0x20)) = ecx; /* 0x270147A2: mov dword ptr [ebp - 0x20], ecx */ 1257 ecx = MEM32(ebx + 0x28); /* 0x270147A5: mov ecx, dword ptr [ebx + 0x28] */ 1258 PUSH32(esp, eax); /* 0x270147A8: push eax */ 1259 MEM32(ebp + (-0x1C)) = esi; /* 0x270147A9: mov dword ptr [ebp - 0x1c], esi */ 1260 MEM32(ebp + (-0x14)) = edx; /* 0x270147AC: mov dword ptr [ebp - 0x14], edx */ 1261 RECOMP_ICALL(edi); /* 0x270147AF: call edi */ 1262 RECOMP_FLAGS_IN(); 1263 ecx = MEM32(ebx + 0x38); /* 0x270147B1: mov ecx, dword ptr [ebx + 0x38] */ 1264 eax = MEM32(ebx + 0x34); /* 0x270147B4: mov eax, dword ptr [ebx + 0x34] */ 1265 edx = ecx + (-0x1); /* 0x270147B7: lea edx, [ecx - 1] */ 1266 PUSH32(esp, esi); /* 0x270147BA: push esi */ 1267 MEM32(ebp + (-0x1C)) = edx; /* 0x270147BB: mov dword ptr [ebp - 0x1c], edx */ 1268 PUSH32(esp, 0x00202020u); /* 0x270147BE: push 0x202020 */ 1269 edx = ebp + (-0x20); /* 0x270147C3: lea edx, [ebp - 0x20] */ 1270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1271 eax = eax - 1; /* 0x270147C6: dec eax */ 1272 _flag_k = FK_DEC; 1273 MEM32(ebp + (-0x14)) = ecx; /* 0x270147C7: mov dword ptr [ebp - 0x14], ecx */ 1274 ecx = MEM32(ebx + 0x28); /* 0x270147CA: mov ecx, dword ptr [ebx + 0x28] */ 1275 PUSH32(esp, edx); /* 0x270147CD: push edx */ 1276 MEM32(ebp + (-0x20)) = esi; /* 0x270147CE: mov dword ptr [ebp - 0x20], esi */ 1277 MEM32(ebp + (-0x18)) = eax; /* 0x270147D1: mov dword ptr [ebp - 0x18], eax */ 1278 RECOMP_ICALL(edi); /* 0x270147D4: call edi */ 1279 RECOMP_FLAGS_IN(); 1280 eax = MEM32(ebx + 0x28); /* 0x270147D6: mov eax, dword ptr [ebx + 0x28] */ 1281 PUSH32(esp, eax); /* 0x270147D9: push eax */ 1282 PUSH32(esp, 2); /* 0x270147DA: push 2 */ 1283 PUSH32(esp, 6); /* 0x270147DC: push 6 */ 1284 ecx = ebp + (-0x90); /* 0x270147DE: lea ecx, [ebp - 0x90] */ 1285 RECOMP_ICALL(0x27023B30u); /* 0x270147E4: call 0x27023b30 */ /* not lifted */ 1286 RECOMP_FLAGS_IN(); 1287 ecx = MEM32(ebx + 0x60); /* 0x270147E9: mov ecx, dword ptr [ebx + 0x60] */ 1288 MEM32(ebp + (-0x4)) = esi; /* 0x270147EC: mov dword ptr [ebp - 4], esi */ 1289 MEM32(ebp + (-0x24)) = 2; /* 0x270147EF: mov dword ptr [ebp - 0x24], 2 */ 1290 MEM32(ebp + (-0x60)) = 0x00FFFFFFu; /* 0x270147F6: mov dword ptr [ebp - 0x60], 0xffffff */ 1291 MEM32(ebp + (-0x28)) = ecx; /* 0x270147FD: mov dword ptr [ebp - 0x28], ecx */ 1292 eax = ecx + ecx * 4; /* 0x27014800: lea eax, [ecx + ecx*4] */ 1293 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x27014803: shl eax, 2 */ 1294 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1295 eax = eax << 2u; /* 0x27014803: shl eax, 2 */ 1296 MEM32(ebp + (-0x30)) = eax; /* 0x27014806: mov dword ptr [ebp - 0x30], eax */ 1297 L_27014809: 1298 eax = MEM32(ebx + 0x54); /* 0x27014809: mov eax, dword ptr [ebx + 0x54] */ 1299 /* cmp eax, esi */ /* 0x2701480C: cmp eax, esi */ 1300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1302 _flag_k = FK_CMP; 1303 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014A2C; /* 0x2701480E: je 0x27014a2c */ 1304 L_27014814: 1305 edx = MEM32(ebx + 0x58); /* 0x27014814: mov edx, dword ptr [ebx + 0x58] */ 1306 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1308 edx = edx - eax; /* 0x27014817: sub edx, eax */ 1309 _flag_k = FK_CMP; 1310 eax = 0x66666667u; /* 0x27014819: mov eax, 0x66666667 */ 1311 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2701481E: imul edx */ 1312 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1313 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1314 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x27014820: sar edx, 3 */ 1315 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1316 edx = (uint32_t)((int32_t)edx >> 3u); 1317 eax = edx; /* 0x27014823: mov eax, edx */ 1318 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x27014825: shr eax, 0x1f */ 1319 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1320 eax = eax >> 31u; /* 0x27014825: shr eax, 0x1f */ 1321 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1323 edx = edx + eax; /* 0x27014828: add edx, eax */ 1324 _flag_k = FK_ADD; 1325 /* cmp ecx, edx */ /* 0x2701482A: cmp ecx, edx */ 1326 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1328 _flag_k = FK_CMP; 1329 if (CMP_AE(_flag_a, _flag_b)) goto L_27014A2C; /* 0x2701482C: jae 0x27014a2c */ 1330 L_27014832: 1331 /* cmp ecx, MEM32(ebx + 0x68) */ /* 0x27014832: cmp ecx, dword ptr [ebx + 0x68] */ 1332 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebx + 0x68)); 1333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1334 _flag_k = FK_CMP; 1335 if (CMP_NE(_flag_a, _flag_b)) goto L_2701487C; /* 0x27014835: jne 0x2701487c */ 1336 L_27014837: 1337 eax = MEM32(ebx + 0x34); /* 0x27014837: mov eax, dword ptr [ebx + 0x34] */ 1338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 1339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1340 eax = eax - 3; /* 0x2701483A: sub eax, 3 */ 1341 _flag_k = FK_CMP; 1342 ecx = ebp + (-0x90); /* 0x2701483D: lea ecx, [ebp - 0x90] */ 1343 MEM32(ebp + (-0x60)) = 0x00FF0000u; /* 0x27014843: mov dword ptr [ebp - 0x60], 0xff0000 */ 1344 MEM32(ebp + (-0x2C)) = eax; /* 0x2701484A: mov dword ptr [ebp - 0x2c], eax */ 1345 RECOMP_ICALL(0x27024680u); /* 0x2701484D: call 0x27024680 */ /* not lifted */ 1346 RECOMP_FLAGS_IN(); 1347 ecx = MEM32(ebp + (-0x24)); /* 0x27014852: mov ecx, dword ptr [ebp - 0x24] */ 1348 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1349 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1350 eax = eax + ecx; /* 0x27014855: add eax, ecx */ 1351 _flag_k = FK_ADD; 1352 MEM32(ebp + (-0x1C)) = ecx; /* 0x27014857: mov dword ptr [ebp - 0x1c], ecx */ 1353 ecx = MEM32(ebp + (-0x2C)); /* 0x2701485A: mov ecx, dword ptr [ebp - 0x2c] */ 1354 PUSH32(esp, esi); /* 0x2701485D: push esi */ 1355 PUSH32(esp, 0x00707070u); /* 0x2701485E: push 0x707070 */ 1356 edx = ebp + (-0x20); /* 0x27014863: lea edx, [ebp - 0x20] */ 1357 MEM32(ebp + (-0x18)) = ecx; /* 0x27014866: mov dword ptr [ebp - 0x18], ecx */ 1358 ecx = MEM32(ebx + 0x28); /* 0x27014869: mov ecx, dword ptr [ebx + 0x28] */ 1359 PUSH32(esp, edx); /* 0x2701486C: push edx */ 1360 MEM32(ebp + (-0x20)) = 2; /* 0x2701486D: mov dword ptr [ebp - 0x20], 2 */ 1361 MEM32(ebp + (-0x14)) = eax; /* 0x27014874: mov dword ptr [ebp - 0x14], eax */ 1362 RECOMP_ICALL(edi); /* 0x27014877: call edi */ 1363 RECOMP_FLAGS_IN(); 1364 ecx = MEM32(ebp + (-0x28)); /* 0x27014879: mov ecx, dword ptr [ebp - 0x28] */ 1365 L_2701487C: 1366 edi = MEM32(ebx + 0x60); /* 0x2701487C: mov edi, dword ptr [ebx + 0x60] */ 1367 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1368 edx = 0; /* 0x2701487F: xor edx, edx */ 1369 _cf = 0; 1370 _flag_k = FK_TEST; 1371 eax = edi; /* 0x27014881: mov eax, edi */ 1372 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(ebx + 0x64); /* 0x27014883: div dword ptr [ebx + 0x64] */ 1373 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 1374 else { eax = 0; edx = 0; } } 1375 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1377 ecx = ecx - edi; /* 0x27014886: sub ecx, edi */ 1378 _flag_k = FK_CMP; 1379 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1380 eax = eax + 1; /* 0x27014888: inc eax */ 1381 _flag_k = FK_INC; 1382 PUSH32(esp, eax); /* 0x27014889: push eax */ 1383 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1384 ecx = ecx + 1; /* 0x2701488A: inc ecx */ 1385 _flag_k = FK_INC; 1386 PUSH32(esp, ecx); /* 0x2701488B: push ecx */ 1387 eax = ebp + (-0xD0); /* 0x2701488C: lea eax, [ebp - 0xd0] */ 1388 PUSH32(esp, 0x27048580u); /* 0x27014892: push 0x27048580 */ 1389 PUSH32(esp, eax); /* 0x27014897: push eax */ 1390 RECOMP_ICALL(MEM32(0x270290F8)); /* 0x27014898: call dword ptr [0x270290f8] */ 1391 RECOMP_FLAGS_IN(); 1392 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2701489E: mov cl, byte ptr [ebp - 0xd] */ 1393 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1395 esp = esp + 0x10u; /* 0x270148A1: add esp, 0x10 */ 1396 _flag_k = FK_ADD; 1397 MEM8(ebp + (-0x58)) = (uint8_t)(LO8(ecx)); /* 0x270148A4: mov byte ptr [ebp - 0x58], cl */ 1398 PUSH32(esp, esi); /* 0x270148A7: push esi */ 1399 ecx = ebp + (-0x58); /* 0x270148A8: lea ecx, [ebp - 0x58] */ 1400 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x270148AB: call dword ptr [0x270290c8] */ 1401 RECOMP_FLAGS_IN(); 1402 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1403 ecx = ecx | 0xFFFFFFFFu; /* 0x270148B1: or ecx, 0xffffffff */ 1404 _cf = 0; 1405 _flag_k = FK_TEST; 1406 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1407 eax = 0; /* 0x270148B4: xor eax, eax */ 1408 _cf = 0; 1409 _flag_k = FK_TEST; 1410 edi = ebp + (-0xD0); /* 0x270148B6: lea edi, [ebp - 0xd0] */ 1411 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; } /* 0x270148BC: repne scasb al, byte ptr es:[edi] */ 1412 ecx = ~ecx; /* 0x270148BE: not ecx */ 1413 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1414 ecx = ecx - 1; /* 0x270148C0: dec ecx */ 1415 _flag_k = FK_DEC; 1416 edi = ecx; /* 0x270148C1: mov edi, ecx */ 1417 PUSH32(esp, 1); /* 0x270148C3: push 1 */ 1418 PUSH32(esp, edi); /* 0x270148C5: push edi */ 1419 ecx = ebp + (-0x58); /* 0x270148C6: lea ecx, [ebp - 0x58] */ 1420 MEM32(ebp + (-0x2C)) = edi; /* 0x270148C9: mov dword ptr [ebp - 0x2c], edi */ 1421 RECOMP_ICALL(MEM32(0x270290C0)); /* 0x270148CC: call dword ptr [0x270290c0] */ 1422 RECOMP_FLAGS_IN(); 1423 /* test LO8(eax), LO8(eax) */ /* 0x270148D2: test al, al */ 1424 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1425 _cf = 0; 1426 _flag_k = FK_NARROW(FK_TEST, 24); 1427 if (TEST_Z(_flag_a, _flag_b)) goto L_270148FD; /* 0x270148D4: je 0x270148fd */ 1428 L_270148D6: 1429 ecx = edi; /* 0x270148D6: mov ecx, edi */ 1430 edi = MEM32(ebp + (-0x54)); /* 0x270148D8: mov edi, dword ptr [ebp - 0x54] */ 1431 edx = ecx; /* 0x270148DB: mov edx, ecx */ 1432 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x270148DD: shr ecx, 2 */ 1433 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1434 ecx = ecx >> 2u; /* 0x270148DD: shr ecx, 2 */ 1435 esi = ebp + (-0xD0); /* 0x270148E0: lea esi, [ebp - 0xd0] */ 1436 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x270148E6: 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; } 1437 ecx = edx; /* 0x270148E8: mov ecx, edx */ 1438 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1439 ecx = ecx & 3; /* 0x270148EA: and ecx, 3 */ 1440 _cf = 0; 1441 _flag_k = FK_TEST; 1442 eax = edx; /* 0x270148ED: mov eax, edx */ 1443 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x270148EF: 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; } 1444 PUSH32(esp, eax); /* 0x270148F1: push eax */ 1445 ecx = ebp + (-0x58); /* 0x270148F2: lea ecx, [ebp - 0x58] */ 1446 RECOMP_ICALL(MEM32(0x270290A8)); /* 0x270148F5: call dword ptr [0x270290a8] */ 1447 RECOMP_FLAGS_IN(); 1448 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1449 esi = 0; /* 0x270148FB: xor esi, esi */ 1450 _cf = 0; 1451 _flag_k = FK_TEST; 1452 L_270148FD: 1453 MEM32(ebp + (-0x48)) = esi; /* 0x270148FD: mov dword ptr [ebp - 0x48], esi */ 1454 ecx = MEM32(ebp + (-0x24)); /* 0x27014900: mov ecx, dword ptr [ebp - 0x24] */ 1455 PUSH32(esp, esi); /* 0x27014903: push esi */ 1456 PUSH32(esp, esi); /* 0x27014904: push esi */ 1457 PUSH32(esp, ecx); /* 0x27014905: push ecx */ 1458 PUSH32(esp, 2); /* 0x27014906: push 2 */ 1459 edx = ebp + (-0x58); /* 0x27014908: lea edx, [ebp - 0x58] */ 1460 PUSH32(esp, edx); /* 0x2701490B: push edx */ 1461 ecx = ebp + (-0x90); /* 0x2701490C: lea ecx, [ebp - 0x90] */ 1462 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x27014912: mov byte ptr [ebp - 4], 1 */ 1463 RECOMP_ICALL(0x27024460u); /* 0x27014916: call 0x27024460 */ /* not lifted */ 1464 RECOMP_FLAGS_IN(); 1465 eax = MEM32(ebp + (-0x48)); /* 0x2701491B: mov eax, dword ptr [ebp - 0x48] */ 1466 /* cmp eax, esi */ /* 0x2701491E: cmp eax, esi */ 1467 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1469 _flag_k = FK_CMP; 1470 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x27014920: mov byte ptr [ebp - 4], 2 */ 1471 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014942; /* 0x27014924: je 0x27014942 */ 1472 L_27014926: 1473 edi = MEM32(eax + 0x2C); /* 0x27014926: mov edi, dword ptr [eax + 0x2c] */ 1474 ecx = eax; /* 0x27014929: mov ecx, eax */ 1475 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 1476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1477 eax = eax + 0x2Cu; /* 0x2701492B: add eax, 0x2c */ 1478 _flag_k = FK_ADD; 1479 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1480 edi = edi - 1; /* 0x2701492E: dec edi */ 1481 _flag_k = FK_DEC; 1482 edx = edi; /* 0x2701492F: mov edx, edi */ 1483 /* cmp edx, esi */ /* 0x27014931: cmp edx, esi */ 1484 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 1485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1486 _flag_k = FK_CMP; 1487 MEM32(eax) = edi; /* 0x27014933: mov dword ptr [eax], edi */ 1488 if (CMP_NE(_flag_a, _flag_b)) goto L_27014942; /* 0x27014935: jne 0x27014942 */ 1489 L_27014937: 1490 /* cmp ecx, esi */ /* 0x27014937: cmp ecx, esi */ 1491 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 1492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1493 _flag_k = FK_CMP; 1494 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014942; /* 0x27014939: je 0x27014942 */ 1495 L_2701493B: 1496 PUSH32(esp, 1); /* 0x2701493B: push 1 */ 1497 RECOMP_ICALL(0x27014C30u); /* 0x2701493D: call 0x27014c30 */ /* not lifted */ 1498 RECOMP_FLAGS_IN(); 1499 L_27014942: 1500 PUSH32(esp, 1); /* 0x27014942: push 1 */ 1501 ecx = ebp + (-0x58); /* 0x27014944: lea ecx, [ebp - 0x58] */ 1502 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x27014947: mov byte ptr [ebp - 4], 0 */ 1503 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x2701494B: call dword ptr [0x270290c8] */ 1504 RECOMP_FLAGS_IN(); 1505 eax = MEM32(ebx + 0x54); /* 0x27014951: mov eax, dword ptr [ebx + 0x54] */ 1506 ecx = MEM32(ebp + (-0x30)); /* 0x27014954: mov ecx, dword ptr [ebp - 0x30] */ 1507 edx = MEM32(ecx + eax + 0x4); /* 0x27014957: mov edx, dword ptr [ecx + eax + 4] */ 1508 /* cmp edx, esi */ /* 0x2701495B: cmp edx, esi */ 1509 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 1510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1511 _flag_k = FK_CMP; 1512 if (CMP_NE(_flag_a, _flag_b)) goto L_27014965; /* 0x2701495D: jne 0x27014965 */ 1513 L_2701495F: 1514 edx = MEM32(0x27029064); /* 0x2701495F: mov edx, dword ptr [0x27029064] */ 1515 L_27014965: 1516 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x27014965: mov al, byte ptr [ebp - 0xd] */ 1517 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1518 ecx = ecx | 0xFFFFFFFFu; /* 0x27014968: or ecx, 0xffffffff */ 1519 _cf = 0; 1520 _flag_k = FK_TEST; 1521 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(eax)); /* 0x2701496B: mov byte ptr [ebp - 0x44], al */ 1522 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1523 eax = 0; /* 0x2701496E: xor eax, eax */ 1524 _cf = 0; 1525 _flag_k = FK_TEST; 1526 edi = edx; /* 0x27014970: mov edi, edx */ 1527 MEM32(ebp + (-0x40)) = esi; /* 0x27014972: mov dword ptr [ebp - 0x40], esi */ 1528 MEM32(ebp + (-0x3C)) = esi; /* 0x27014975: mov dword ptr [ebp - 0x3c], esi */ 1529 MEM32(ebp + (-0x38)) = esi; /* 0x27014978: mov dword ptr [ebp - 0x38], esi */ 1530 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; } /* 0x2701497B: repne scasb al, byte ptr es:[edi] */ 1531 ecx = ~ecx; /* 0x2701497D: not ecx */ 1532 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1533 ecx = ecx - 1; /* 0x2701497F: dec ecx */ 1534 _flag_k = FK_DEC; 1535 PUSH32(esp, ecx); /* 0x27014980: push ecx */ 1536 PUSH32(esp, edx); /* 0x27014981: push edx */ 1537 ecx = ebp + (-0x44); /* 0x27014982: lea ecx, [ebp - 0x44] */ 1538 RECOMP_ICALL(MEM32(0x27029098)); /* 0x27014985: call dword ptr [0x27029098] */ 1539 RECOMP_FLAGS_IN(); 1540 MEM32(ebp + (-0x34)) = esi; /* 0x2701498B: mov dword ptr [ebp - 0x34], esi */ 1541 ecx = MEM32(ebp + (-0x24)); /* 0x2701498E: mov ecx, dword ptr [ebp - 0x24] */ 1542 edx = MEM32(ebx + 0x6C); /* 0x27014991: mov edx, dword ptr [ebx + 0x6c] */ 1543 PUSH32(esp, esi); /* 0x27014994: push esi */ 1544 PUSH32(esp, esi); /* 0x27014995: push esi */ 1545 PUSH32(esp, ecx); /* 0x27014996: push ecx */ 1546 PUSH32(esp, edx); /* 0x27014997: push edx */ 1547 eax = ebp + (-0x44); /* 0x27014998: lea eax, [ebp - 0x44] */ 1548 PUSH32(esp, eax); /* 0x2701499B: push eax */ 1549 ecx = ebp + (-0x90); /* 0x2701499C: lea ecx, [ebp - 0x90] */ 1550 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x270149A2: mov byte ptr [ebp - 4], 3 */ 1551 RECOMP_ICALL(0x27024460u); /* 0x270149A6: call 0x27024460 */ /* not lifted */ 1552 RECOMP_FLAGS_IN(); 1553 eax = MEM32(ebp + (-0x34)); /* 0x270149AB: mov eax, dword ptr [ebp - 0x34] */ 1554 /* cmp eax, esi */ /* 0x270149AE: cmp eax, esi */ 1555 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1557 _flag_k = FK_CMP; 1558 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x270149B0: mov byte ptr [ebp - 4], 4 */ 1559 if (CMP_EQ(_flag_a, _flag_b)) goto L_270149DB; /* 0x270149B4: je 0x270149db */ 1560 L_270149B6: 1561 edx = MEM32(eax + 0x2C); /* 0x270149B6: mov edx, dword ptr [eax + 0x2c] */ 1562 edi = eax; /* 0x270149B9: mov edi, eax */ 1563 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 1564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1565 eax = eax + 0x2Cu; /* 0x270149BB: add eax, 0x2c */ 1566 _flag_k = FK_ADD; 1567 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1568 edx = edx - 1; /* 0x270149BE: dec edx */ 1569 _flag_k = FK_DEC; 1570 ecx = edx; /* 0x270149BF: mov ecx, edx */ 1571 /* cmp ecx, esi */ /* 0x270149C1: cmp ecx, esi */ 1572 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 1573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1574 _flag_k = FK_CMP; 1575 MEM32(eax) = edx; /* 0x270149C3: mov dword ptr [eax], edx */ 1576 if (CMP_NE(_flag_a, _flag_b)) goto L_270149DB; /* 0x270149C5: jne 0x270149db */ 1577 L_270149C7: 1578 /* cmp edi, esi */ /* 0x270149C7: cmp edi, esi */ 1579 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 1580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1581 _flag_k = FK_CMP; 1582 if (CMP_EQ(_flag_a, _flag_b)) goto L_270149DB; /* 0x270149C9: je 0x270149db */ 1583 L_270149CB: 1584 ecx = edi; /* 0x270149CB: mov ecx, edi */ 1585 RECOMP_ICALL(0x270096D0u); /* 0x270149CD: call 0x270096d0 */ /* not lifted */ 1586 RECOMP_FLAGS_IN(); 1587 PUSH32(esp, edi); /* 0x270149D2: push edi */ 1588 RECOMP_ICALL(0x27026DA4u); /* 0x270149D3: call 0x27026da4 */ /* not lifted */ 1589 RECOMP_FLAGS_IN(); 1590 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1592 esp = esp + 4; /* 0x270149D8: add esp, 4 */ 1593 _flag_k = FK_ADD; 1594 L_270149DB: 1595 PUSH32(esp, 1); /* 0x270149DB: push 1 */ 1596 ecx = ebp + (-0x44); /* 0x270149DD: lea ecx, [ebp - 0x44] */ 1597 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x270149E0: mov byte ptr [ebp - 4], 0 */ 1598 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x270149E4: call dword ptr [0x270290c8] */ 1599 RECOMP_FLAGS_IN(); 1600 ecx = MEM32(ebp + (-0x28)); /* 0x270149EA: mov ecx, dword ptr [ebp - 0x28] */ 1601 /* cmp ecx, MEM32(ebx + 0x68) */ /* 0x270149ED: cmp ecx, dword ptr [ebx + 0x68] */ 1602 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebx + 0x68)); 1603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1604 _flag_k = FK_CMP; 1605 if (CMP_NE(_flag_a, _flag_b)) goto L_270149F9; /* 0x270149F0: jne 0x270149f9 */ 1606 L_270149F2: 1607 MEM32(ebp + (-0x60)) = 0x00FFFFFFu; /* 0x270149F2: mov dword ptr [ebp - 0x60], 0xffffff */ 1608 L_270149F9: 1609 ecx = ebp + (-0x90); /* 0x270149F9: lea ecx, [ebp - 0x90] */ 1610 RECOMP_ICALL(0x27024680u); /* 0x270149FF: call 0x27024680 */ /* not lifted */ 1611 RECOMP_FLAGS_IN(); 1612 ecx = MEM32(ebp + (-0x24)); /* 0x27014A04: mov ecx, dword ptr [ebp - 0x24] */ 1613 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1615 ecx = ecx + eax; /* 0x27014A07: add ecx, eax */ 1616 _flag_k = FK_ADD; 1617 /* cmp ecx, MEM32(ebx + 0x38) */ /* 0x27014A09: cmp ecx, dword ptr [ebx + 0x38] */ 1618 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebx + 0x38)); 1619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1620 _flag_k = FK_CMP; 1621 MEM32(ebp + (-0x24)) = ecx; /* 0x27014A0C: mov dword ptr [ebp - 0x24], ecx */ 1622 if (CMP_GE(_flag_a, _flag_b)) goto L_27014A2C; /* 0x27014A0F: jge 0x27014a2c */ 1623 L_27014A11: 1624 ecx = MEM32(ebp + (-0x28)); /* 0x27014A11: mov ecx, dword ptr [ebp - 0x28] */ 1625 eax = MEM32(ebp + (-0x30)); /* 0x27014A14: mov eax, dword ptr [ebp - 0x30] */ 1626 edi = MEM32(0x27029270); /* 0x27014A17: mov edi, dword ptr [0x27029270] */ 1627 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1628 ecx = ecx + 1; /* 0x27014A1D: inc ecx */ 1629 _flag_k = FK_INC; 1630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 1631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1632 eax = eax + 0x14u; /* 0x27014A1E: add eax, 0x14 */ 1633 _flag_k = FK_ADD; 1634 MEM32(ebp + (-0x28)) = ecx; /* 0x27014A21: mov dword ptr [ebp - 0x28], ecx */ 1635 MEM32(ebp + (-0x30)) = eax; /* 0x27014A24: mov dword ptr [ebp - 0x30], eax */ 1636 RECOMP_BACKEDGE(); 1637 goto L_27014809; /* 0x27014A27: jmp 0x27014809 */ 1638 L_27014A2C: 1639 ecx = ebx; /* 0x27014A2C: mov ecx, ebx */ 1640 RECOMP_ICALL(0x270185F0u); /* 0x27014A2E: call 0x270185f0 */ /* not lifted */ 1641 RECOMP_FLAGS_IN(); 1642 ecx = ebp + (-0x90); /* 0x27014A33: lea ecx, [ebp - 0x90] */ 1643 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27014A39: mov dword ptr [ebp - 4], 0xffffffff */ 1644 RECOMP_ICALL(0x27023BC0u); /* 0x27014A40: call 0x27023bc0 */ /* not lifted */ 1645 RECOMP_FLAGS_IN(); 1646 ecx = MEM32(ebp + (-0xC)); /* 0x27014A45: mov ecx, dword ptr [ebp - 0xc] */ 1647 edi = POP32_VAL(esp); /* 0x27014A48: pop edi */ 1648 esi = POP32_VAL(esp); /* 0x27014A49: pop esi */ 1649 ebx = POP32_VAL(esp); /* 0x27014A4A: pop ebx */ 1650 MEM32(FS_BASE + (0)) = ecx; /* 0x27014A4B: mov dword ptr fs:[0], ecx */ 1651 esp = ebp; /* 0x27014A52: mov esp, ebp */ 1652 ebp = POP32_VAL(esp); /* 0x27014A54: pop ebp */ 1653 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014A55: ret */ 1654 RECOMP_REGS_OUT(); 1655 } 1656 1657 void sub_27014809(void) { 1658 int _fpu_cmp = 0; 1659 uint32_t _cf = 0; 1660 int _df = 1; 1661 uint32_t _flag_k = FK_NONE; 1662 uint32_t _flag_a = 0, _flag_b = 0; 1663 uint32_t _itail_tgt = 0; 1664 RECOMP_REGS_LOCALS 1665 RECOMP_ENTER(0x27014809u); 1666 1667 L_27014809: 1668 eax = MEM32(ebx + 0x54); /* 0x27014809: mov eax, dword ptr [ebx + 0x54] */ 1669 /* cmp eax, esi */ /* 0x2701480C: cmp eax, esi */ 1670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1672 _flag_k = FK_CMP; 1673 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014A2C; /* 0x2701480E: je 0x27014a2c */ 1674 L_27014814: 1675 edx = MEM32(ebx + 0x58); /* 0x27014814: mov edx, dword ptr [ebx + 0x58] */ 1676 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1678 edx = edx - eax; /* 0x27014817: sub edx, eax */ 1679 _flag_k = FK_CMP; 1680 eax = 0x66666667u; /* 0x27014819: mov eax, 0x66666667 */ 1681 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x2701481E: imul edx */ 1682 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1683 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1684 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x27014820: sar edx, 3 */ 1685 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1686 edx = (uint32_t)((int32_t)edx >> 3u); 1687 eax = edx; /* 0x27014823: mov eax, edx */ 1688 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x27014825: shr eax, 0x1f */ 1689 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1690 eax = eax >> 31u; /* 0x27014825: shr eax, 0x1f */ 1691 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1692 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1693 edx = edx + eax; /* 0x27014828: add edx, eax */ 1694 _flag_k = FK_ADD; 1695 /* cmp ecx, edx */ /* 0x2701482A: cmp ecx, edx */ 1696 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1698 _flag_k = FK_CMP; 1699 if (CMP_AE(_flag_a, _flag_b)) goto L_27014A2C; /* 0x2701482C: jae 0x27014a2c */ 1700 L_27014832: 1701 /* cmp ecx, MEM32(ebx + 0x68) */ /* 0x27014832: cmp ecx, dword ptr [ebx + 0x68] */ 1702 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebx + 0x68)); 1703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1704 _flag_k = FK_CMP; 1705 if (CMP_NE(_flag_a, _flag_b)) goto L_2701487C; /* 0x27014835: jne 0x2701487c */ 1706 L_27014837: 1707 eax = MEM32(ebx + 0x34); /* 0x27014837: mov eax, dword ptr [ebx + 0x34] */ 1708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 1709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1710 eax = eax - 3; /* 0x2701483A: sub eax, 3 */ 1711 _flag_k = FK_CMP; 1712 ecx = ebp + (-0x90); /* 0x2701483D: lea ecx, [ebp - 0x90] */ 1713 MEM32(ebp + (-0x60)) = 0x00FF0000u; /* 0x27014843: mov dword ptr [ebp - 0x60], 0xff0000 */ 1714 MEM32(ebp + (-0x2C)) = eax; /* 0x2701484A: mov dword ptr [ebp - 0x2c], eax */ 1715 RECOMP_ICALL(0x27024680u); /* 0x2701484D: call 0x27024680 */ /* not lifted */ 1716 RECOMP_FLAGS_IN(); 1717 ecx = MEM32(ebp + (-0x24)); /* 0x27014852: mov ecx, dword ptr [ebp - 0x24] */ 1718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1720 eax = eax + ecx; /* 0x27014855: add eax, ecx */ 1721 _flag_k = FK_ADD; 1722 MEM32(ebp + (-0x1C)) = ecx; /* 0x27014857: mov dword ptr [ebp - 0x1c], ecx */ 1723 ecx = MEM32(ebp + (-0x2C)); /* 0x2701485A: mov ecx, dword ptr [ebp - 0x2c] */ 1724 PUSH32(esp, esi); /* 0x2701485D: push esi */ 1725 PUSH32(esp, 0x00707070u); /* 0x2701485E: push 0x707070 */ 1726 edx = ebp + (-0x20); /* 0x27014863: lea edx, [ebp - 0x20] */ 1727 MEM32(ebp + (-0x18)) = ecx; /* 0x27014866: mov dword ptr [ebp - 0x18], ecx */ 1728 ecx = MEM32(ebx + 0x28); /* 0x27014869: mov ecx, dword ptr [ebx + 0x28] */ 1729 PUSH32(esp, edx); /* 0x2701486C: push edx */ 1730 MEM32(ebp + (-0x20)) = 2; /* 0x2701486D: mov dword ptr [ebp - 0x20], 2 */ 1731 MEM32(ebp + (-0x14)) = eax; /* 0x27014874: mov dword ptr [ebp - 0x14], eax */ 1732 RECOMP_ICALL(edi); /* 0x27014877: call edi */ 1733 RECOMP_FLAGS_IN(); 1734 ecx = MEM32(ebp + (-0x28)); /* 0x27014879: mov ecx, dword ptr [ebp - 0x28] */ 1735 L_2701487C: 1736 edi = MEM32(ebx + 0x60); /* 0x2701487C: mov edi, dword ptr [ebx + 0x60] */ 1737 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1738 edx = 0; /* 0x2701487F: xor edx, edx */ 1739 _cf = 0; 1740 _flag_k = FK_TEST; 1741 eax = edi; /* 0x27014881: mov eax, edi */ 1742 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)MEM32(ebx + 0x64); /* 0x27014883: div dword ptr [ebx + 0x64] */ 1743 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 1744 else { eax = 0; edx = 0; } } 1745 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1747 ecx = ecx - edi; /* 0x27014886: sub ecx, edi */ 1748 _flag_k = FK_CMP; 1749 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1750 eax = eax + 1; /* 0x27014888: inc eax */ 1751 _flag_k = FK_INC; 1752 PUSH32(esp, eax); /* 0x27014889: push eax */ 1753 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1754 ecx = ecx + 1; /* 0x2701488A: inc ecx */ 1755 _flag_k = FK_INC; 1756 PUSH32(esp, ecx); /* 0x2701488B: push ecx */ 1757 eax = ebp + (-0xD0); /* 0x2701488C: lea eax, [ebp - 0xd0] */ 1758 PUSH32(esp, 0x27048580u); /* 0x27014892: push 0x27048580 */ 1759 PUSH32(esp, eax); /* 0x27014897: push eax */ 1760 RECOMP_ICALL(MEM32(0x270290F8)); /* 0x27014898: call dword ptr [0x270290f8] */ 1761 RECOMP_FLAGS_IN(); 1762 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x2701489E: mov cl, byte ptr [ebp - 0xd] */ 1763 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1764 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1765 esp = esp + 0x10u; /* 0x270148A1: add esp, 0x10 */ 1766 _flag_k = FK_ADD; 1767 MEM8(ebp + (-0x58)) = (uint8_t)(LO8(ecx)); /* 0x270148A4: mov byte ptr [ebp - 0x58], cl */ 1768 PUSH32(esp, esi); /* 0x270148A7: push esi */ 1769 ecx = ebp + (-0x58); /* 0x270148A8: lea ecx, [ebp - 0x58] */ 1770 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x270148AB: call dword ptr [0x270290c8] */ 1771 RECOMP_FLAGS_IN(); 1772 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1773 ecx = ecx | 0xFFFFFFFFu; /* 0x270148B1: or ecx, 0xffffffff */ 1774 _cf = 0; 1775 _flag_k = FK_TEST; 1776 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1777 eax = 0; /* 0x270148B4: xor eax, eax */ 1778 _cf = 0; 1779 _flag_k = FK_TEST; 1780 edi = ebp + (-0xD0); /* 0x270148B6: lea edi, [ebp - 0xd0] */ 1781 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; } /* 0x270148BC: repne scasb al, byte ptr es:[edi] */ 1782 ecx = ~ecx; /* 0x270148BE: not ecx */ 1783 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1784 ecx = ecx - 1; /* 0x270148C0: dec ecx */ 1785 _flag_k = FK_DEC; 1786 edi = ecx; /* 0x270148C1: mov edi, ecx */ 1787 PUSH32(esp, 1); /* 0x270148C3: push 1 */ 1788 PUSH32(esp, edi); /* 0x270148C5: push edi */ 1789 ecx = ebp + (-0x58); /* 0x270148C6: lea ecx, [ebp - 0x58] */ 1790 MEM32(ebp + (-0x2C)) = edi; /* 0x270148C9: mov dword ptr [ebp - 0x2c], edi */ 1791 RECOMP_ICALL(MEM32(0x270290C0)); /* 0x270148CC: call dword ptr [0x270290c0] */ 1792 RECOMP_FLAGS_IN(); 1793 /* test LO8(eax), LO8(eax) */ /* 0x270148D2: test al, al */ 1794 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1795 _cf = 0; 1796 _flag_k = FK_NARROW(FK_TEST, 24); 1797 if (TEST_Z(_flag_a, _flag_b)) goto L_270148FD; /* 0x270148D4: je 0x270148fd */ 1798 L_270148D6: 1799 ecx = edi; /* 0x270148D6: mov ecx, edi */ 1800 edi = MEM32(ebp + (-0x54)); /* 0x270148D8: mov edi, dword ptr [ebp - 0x54] */ 1801 edx = ecx; /* 0x270148DB: mov edx, ecx */ 1802 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x270148DD: shr ecx, 2 */ 1803 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1804 ecx = ecx >> 2u; /* 0x270148DD: shr ecx, 2 */ 1805 esi = ebp + (-0xD0); /* 0x270148E0: lea esi, [ebp - 0xd0] */ 1806 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x270148E6: 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; } 1807 ecx = edx; /* 0x270148E8: mov ecx, edx */ 1808 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1809 ecx = ecx & 3; /* 0x270148EA: and ecx, 3 */ 1810 _cf = 0; 1811 _flag_k = FK_TEST; 1812 eax = edx; /* 0x270148ED: mov eax, edx */ 1813 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x270148EF: 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; } 1814 PUSH32(esp, eax); /* 0x270148F1: push eax */ 1815 ecx = ebp + (-0x58); /* 0x270148F2: lea ecx, [ebp - 0x58] */ 1816 RECOMP_ICALL(MEM32(0x270290A8)); /* 0x270148F5: call dword ptr [0x270290a8] */ 1817 RECOMP_FLAGS_IN(); 1818 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1819 esi = 0; /* 0x270148FB: xor esi, esi */ 1820 _cf = 0; 1821 _flag_k = FK_TEST; 1822 L_270148FD: 1823 MEM32(ebp + (-0x48)) = esi; /* 0x270148FD: mov dword ptr [ebp - 0x48], esi */ 1824 ecx = MEM32(ebp + (-0x24)); /* 0x27014900: mov ecx, dword ptr [ebp - 0x24] */ 1825 PUSH32(esp, esi); /* 0x27014903: push esi */ 1826 PUSH32(esp, esi); /* 0x27014904: push esi */ 1827 PUSH32(esp, ecx); /* 0x27014905: push ecx */ 1828 PUSH32(esp, 2); /* 0x27014906: push 2 */ 1829 edx = ebp + (-0x58); /* 0x27014908: lea edx, [ebp - 0x58] */ 1830 PUSH32(esp, edx); /* 0x2701490B: push edx */ 1831 ecx = ebp + (-0x90); /* 0x2701490C: lea ecx, [ebp - 0x90] */ 1832 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x27014912: mov byte ptr [ebp - 4], 1 */ 1833 RECOMP_ICALL(0x27024460u); /* 0x27014916: call 0x27024460 */ /* not lifted */ 1834 RECOMP_FLAGS_IN(); 1835 eax = MEM32(ebp + (-0x48)); /* 0x2701491B: mov eax, dword ptr [ebp - 0x48] */ 1836 /* cmp eax, esi */ /* 0x2701491E: cmp eax, esi */ 1837 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1839 _flag_k = FK_CMP; 1840 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x27014920: mov byte ptr [ebp - 4], 2 */ 1841 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014942; /* 0x27014924: je 0x27014942 */ 1842 L_27014926: 1843 edi = MEM32(eax + 0x2C); /* 0x27014926: mov edi, dword ptr [eax + 0x2c] */ 1844 ecx = eax; /* 0x27014929: mov ecx, eax */ 1845 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 1846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1847 eax = eax + 0x2Cu; /* 0x2701492B: add eax, 0x2c */ 1848 _flag_k = FK_ADD; 1849 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1850 edi = edi - 1; /* 0x2701492E: dec edi */ 1851 _flag_k = FK_DEC; 1852 edx = edi; /* 0x2701492F: mov edx, edi */ 1853 /* cmp edx, esi */ /* 0x27014931: cmp edx, esi */ 1854 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 1855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1856 _flag_k = FK_CMP; 1857 MEM32(eax) = edi; /* 0x27014933: mov dword ptr [eax], edi */ 1858 if (CMP_NE(_flag_a, _flag_b)) goto L_27014942; /* 0x27014935: jne 0x27014942 */ 1859 L_27014937: 1860 /* cmp ecx, esi */ /* 0x27014937: cmp ecx, esi */ 1861 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 1862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1863 _flag_k = FK_CMP; 1864 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014942; /* 0x27014939: je 0x27014942 */ 1865 L_2701493B: 1866 PUSH32(esp, 1); /* 0x2701493B: push 1 */ 1867 RECOMP_ICALL(0x27014C30u); /* 0x2701493D: call 0x27014c30 */ /* not lifted */ 1868 RECOMP_FLAGS_IN(); 1869 L_27014942: 1870 PUSH32(esp, 1); /* 0x27014942: push 1 */ 1871 ecx = ebp + (-0x58); /* 0x27014944: lea ecx, [ebp - 0x58] */ 1872 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x27014947: mov byte ptr [ebp - 4], 0 */ 1873 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x2701494B: call dword ptr [0x270290c8] */ 1874 RECOMP_FLAGS_IN(); 1875 eax = MEM32(ebx + 0x54); /* 0x27014951: mov eax, dword ptr [ebx + 0x54] */ 1876 ecx = MEM32(ebp + (-0x30)); /* 0x27014954: mov ecx, dword ptr [ebp - 0x30] */ 1877 edx = MEM32(ecx + eax + 0x4); /* 0x27014957: mov edx, dword ptr [ecx + eax + 4] */ 1878 /* cmp edx, esi */ /* 0x2701495B: cmp edx, esi */ 1879 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 1880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1881 _flag_k = FK_CMP; 1882 if (CMP_NE(_flag_a, _flag_b)) goto L_27014965; /* 0x2701495D: jne 0x27014965 */ 1883 L_2701495F: 1884 edx = MEM32(0x27029064); /* 0x2701495F: mov edx, dword ptr [0x27029064] */ 1885 L_27014965: 1886 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x27014965: mov al, byte ptr [ebp - 0xd] */ 1887 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1888 ecx = ecx | 0xFFFFFFFFu; /* 0x27014968: or ecx, 0xffffffff */ 1889 _cf = 0; 1890 _flag_k = FK_TEST; 1891 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(eax)); /* 0x2701496B: mov byte ptr [ebp - 0x44], al */ 1892 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1893 eax = 0; /* 0x2701496E: xor eax, eax */ 1894 _cf = 0; 1895 _flag_k = FK_TEST; 1896 edi = edx; /* 0x27014970: mov edi, edx */ 1897 MEM32(ebp + (-0x40)) = esi; /* 0x27014972: mov dword ptr [ebp - 0x40], esi */ 1898 MEM32(ebp + (-0x3C)) = esi; /* 0x27014975: mov dword ptr [ebp - 0x3c], esi */ 1899 MEM32(ebp + (-0x38)) = esi; /* 0x27014978: mov dword ptr [ebp - 0x38], esi */ 1900 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; } /* 0x2701497B: repne scasb al, byte ptr es:[edi] */ 1901 ecx = ~ecx; /* 0x2701497D: not ecx */ 1902 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1903 ecx = ecx - 1; /* 0x2701497F: dec ecx */ 1904 _flag_k = FK_DEC; 1905 PUSH32(esp, ecx); /* 0x27014980: push ecx */ 1906 PUSH32(esp, edx); /* 0x27014981: push edx */ 1907 ecx = ebp + (-0x44); /* 0x27014982: lea ecx, [ebp - 0x44] */ 1908 RECOMP_ICALL(MEM32(0x27029098)); /* 0x27014985: call dword ptr [0x27029098] */ 1909 RECOMP_FLAGS_IN(); 1910 MEM32(ebp + (-0x34)) = esi; /* 0x2701498B: mov dword ptr [ebp - 0x34], esi */ 1911 ecx = MEM32(ebp + (-0x24)); /* 0x2701498E: mov ecx, dword ptr [ebp - 0x24] */ 1912 edx = MEM32(ebx + 0x6C); /* 0x27014991: mov edx, dword ptr [ebx + 0x6c] */ 1913 PUSH32(esp, esi); /* 0x27014994: push esi */ 1914 PUSH32(esp, esi); /* 0x27014995: push esi */ 1915 PUSH32(esp, ecx); /* 0x27014996: push ecx */ 1916 PUSH32(esp, edx); /* 0x27014997: push edx */ 1917 eax = ebp + (-0x44); /* 0x27014998: lea eax, [ebp - 0x44] */ 1918 PUSH32(esp, eax); /* 0x2701499B: push eax */ 1919 ecx = ebp + (-0x90); /* 0x2701499C: lea ecx, [ebp - 0x90] */ 1920 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x270149A2: mov byte ptr [ebp - 4], 3 */ 1921 RECOMP_ICALL(0x27024460u); /* 0x270149A6: call 0x27024460 */ /* not lifted */ 1922 RECOMP_FLAGS_IN(); 1923 eax = MEM32(ebp + (-0x34)); /* 0x270149AB: mov eax, dword ptr [ebp - 0x34] */ 1924 /* cmp eax, esi */ /* 0x270149AE: cmp eax, esi */ 1925 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1927 _flag_k = FK_CMP; 1928 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x270149B0: mov byte ptr [ebp - 4], 4 */ 1929 if (CMP_EQ(_flag_a, _flag_b)) goto L_270149DB; /* 0x270149B4: je 0x270149db */ 1930 L_270149B6: 1931 edx = MEM32(eax + 0x2C); /* 0x270149B6: mov edx, dword ptr [eax + 0x2c] */ 1932 edi = eax; /* 0x270149B9: mov edi, eax */ 1933 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Cu); 1934 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1935 eax = eax + 0x2Cu; /* 0x270149BB: add eax, 0x2c */ 1936 _flag_k = FK_ADD; 1937 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1938 edx = edx - 1; /* 0x270149BE: dec edx */ 1939 _flag_k = FK_DEC; 1940 ecx = edx; /* 0x270149BF: mov ecx, edx */ 1941 /* cmp ecx, esi */ /* 0x270149C1: cmp ecx, esi */ 1942 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 1943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1944 _flag_k = FK_CMP; 1945 MEM32(eax) = edx; /* 0x270149C3: mov dword ptr [eax], edx */ 1946 if (CMP_NE(_flag_a, _flag_b)) goto L_270149DB; /* 0x270149C5: jne 0x270149db */ 1947 L_270149C7: 1948 /* cmp edi, esi */ /* 0x270149C7: cmp edi, esi */ 1949 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 1950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1951 _flag_k = FK_CMP; 1952 if (CMP_EQ(_flag_a, _flag_b)) goto L_270149DB; /* 0x270149C9: je 0x270149db */ 1953 L_270149CB: 1954 ecx = edi; /* 0x270149CB: mov ecx, edi */ 1955 RECOMP_ICALL(0x270096D0u); /* 0x270149CD: call 0x270096d0 */ /* not lifted */ 1956 RECOMP_FLAGS_IN(); 1957 PUSH32(esp, edi); /* 0x270149D2: push edi */ 1958 RECOMP_ICALL(0x27026DA4u); /* 0x270149D3: call 0x27026da4 */ /* not lifted */ 1959 RECOMP_FLAGS_IN(); 1960 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1961 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1962 esp = esp + 4; /* 0x270149D8: add esp, 4 */ 1963 _flag_k = FK_ADD; 1964 L_270149DB: 1965 PUSH32(esp, 1); /* 0x270149DB: push 1 */ 1966 ecx = ebp + (-0x44); /* 0x270149DD: lea ecx, [ebp - 0x44] */ 1967 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x270149E0: mov byte ptr [ebp - 4], 0 */ 1968 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x270149E4: call dword ptr [0x270290c8] */ 1969 RECOMP_FLAGS_IN(); 1970 ecx = MEM32(ebp + (-0x28)); /* 0x270149EA: mov ecx, dword ptr [ebp - 0x28] */ 1971 /* cmp ecx, MEM32(ebx + 0x68) */ /* 0x270149ED: cmp ecx, dword ptr [ebx + 0x68] */ 1972 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebx + 0x68)); 1973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1974 _flag_k = FK_CMP; 1975 if (CMP_NE(_flag_a, _flag_b)) goto L_270149F9; /* 0x270149F0: jne 0x270149f9 */ 1976 L_270149F2: 1977 MEM32(ebp + (-0x60)) = 0x00FFFFFFu; /* 0x270149F2: mov dword ptr [ebp - 0x60], 0xffffff */ 1978 L_270149F9: 1979 ecx = ebp + (-0x90); /* 0x270149F9: lea ecx, [ebp - 0x90] */ 1980 RECOMP_ICALL(0x27024680u); /* 0x270149FF: call 0x27024680 */ /* not lifted */ 1981 RECOMP_FLAGS_IN(); 1982 ecx = MEM32(ebp + (-0x24)); /* 0x27014A04: mov ecx, dword ptr [ebp - 0x24] */ 1983 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1984 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1985 ecx = ecx + eax; /* 0x27014A07: add ecx, eax */ 1986 _flag_k = FK_ADD; 1987 /* cmp ecx, MEM32(ebx + 0x38) */ /* 0x27014A09: cmp ecx, dword ptr [ebx + 0x38] */ 1988 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebx + 0x38)); 1989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1990 _flag_k = FK_CMP; 1991 MEM32(ebp + (-0x24)) = ecx; /* 0x27014A0C: mov dword ptr [ebp - 0x24], ecx */ 1992 if (CMP_GE(_flag_a, _flag_b)) goto L_27014A2C; /* 0x27014A0F: jge 0x27014a2c */ 1993 L_27014A11: 1994 ecx = MEM32(ebp + (-0x28)); /* 0x27014A11: mov ecx, dword ptr [ebp - 0x28] */ 1995 eax = MEM32(ebp + (-0x30)); /* 0x27014A14: mov eax, dword ptr [ebp - 0x30] */ 1996 edi = MEM32(0x27029270); /* 0x27014A17: mov edi, dword ptr [0x27029270] */ 1997 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1998 ecx = ecx + 1; /* 0x27014A1D: inc ecx */ 1999 _flag_k = FK_INC; 2000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 2001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2002 eax = eax + 0x14u; /* 0x27014A1E: add eax, 0x14 */ 2003 _flag_k = FK_ADD; 2004 MEM32(ebp + (-0x28)) = ecx; /* 0x27014A21: mov dword ptr [ebp - 0x28], ecx */ 2005 MEM32(ebp + (-0x30)) = eax; /* 0x27014A24: mov dword ptr [ebp - 0x30], eax */ 2006 RECOMP_BACKEDGE(); 2007 goto L_27014809; /* 0x27014A27: jmp 0x27014809 */ 2008 L_27014A2C: 2009 ecx = ebx; /* 0x27014A2C: mov ecx, ebx */ 2010 RECOMP_ICALL(0x270185F0u); /* 0x27014A2E: call 0x270185f0 */ /* not lifted */ 2011 RECOMP_FLAGS_IN(); 2012 ecx = ebp + (-0x90); /* 0x27014A33: lea ecx, [ebp - 0x90] */ 2013 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27014A39: mov dword ptr [ebp - 4], 0xffffffff */ 2014 RECOMP_ICALL(0x27023BC0u); /* 0x27014A40: call 0x27023bc0 */ /* not lifted */ 2015 RECOMP_FLAGS_IN(); 2016 ecx = MEM32(ebp + (-0xC)); /* 0x27014A45: mov ecx, dword ptr [ebp - 0xc] */ 2017 edi = POP32_VAL(esp); /* 0x27014A48: pop edi */ 2018 esi = POP32_VAL(esp); /* 0x27014A49: pop esi */ 2019 ebx = POP32_VAL(esp); /* 0x27014A4A: pop ebx */ 2020 MEM32(FS_BASE + (0)) = ecx; /* 0x27014A4B: mov dword ptr fs:[0], ecx */ 2021 esp = ebp; /* 0x27014A52: mov esp, ebp */ 2022 ebp = POP32_VAL(esp); /* 0x27014A54: pop ebp */ 2023 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014A55: ret */ 2024 RECOMP_REGS_OUT(); 2025 } 2026 2027 void sub_27014A60(void) { 2028 int _fpu_cmp = 0; 2029 uint32_t _cf = 0; 2030 int _df = 1; 2031 uint32_t _flag_k = FK_NONE; 2032 uint32_t _flag_a = 0, _flag_b = 0; 2033 uint32_t _itail_tgt = 0; 2034 RECOMP_REGS_LOCALS 2035 RECOMP_ENTER(0x27014A60u); 2036 2037 L_27014A60: 2038 PUSH32(esp, ebx); /* 0x27014A60: push ebx */ 2039 PUSH32(esp, esi); /* 0x27014A61: push esi */ 2040 PUSH32(esp, edi); /* 0x27014A62: push edi */ 2041 edi = ecx; /* 0x27014A63: mov edi, ecx */ 2042 ebx = MEM32(edi + 0x8); /* 0x27014A65: mov ebx, dword ptr [edi + 8] */ 2043 esi = MEM32(edi + 0x4); /* 0x27014A68: mov esi, dword ptr [edi + 4] */ 2044 /* cmp esi, ebx */ /* 0x27014A6B: cmp esi, ebx */ 2045 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2047 _flag_k = FK_CMP; 2048 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014A7D; /* 0x27014A6D: je 0x27014a7d */ 2049 L_27014A6F: 2050 ecx = esi; /* 0x27014A6F: mov ecx, esi */ 2051 RECOMP_ICALL(0x2700DFB0u); /* 0x27014A71: call 0x2700dfb0 */ /* not lifted */ 2052 RECOMP_FLAGS_IN(); 2053 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 2054 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2055 esi = esi + 0x14u; /* 0x27014A76: add esi, 0x14 */ 2056 _flag_k = FK_ADD; 2057 /* cmp esi, ebx */ /* 0x27014A79: cmp esi, ebx */ 2058 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2060 _flag_k = FK_CMP; 2061 RECOMP_BACKEDGE(); 2062 if (CMP_NE(_flag_a, _flag_b)) goto L_27014A6F; /* 0x27014A7B: jne 0x27014a6f */ 2063 L_27014A7D: 2064 eax = MEM32(edi + 0x4); /* 0x27014A7D: mov eax, dword ptr [edi + 4] */ 2065 PUSH32(esp, eax); /* 0x27014A80: push eax */ 2066 RECOMP_ICALL(0x27026DA4u); /* 0x27014A81: call 0x27026da4 */ /* not lifted */ 2067 RECOMP_FLAGS_IN(); 2068 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2069 eax = 0; /* 0x27014A86: xor eax, eax */ 2070 _cf = 0; 2071 _flag_k = FK_TEST; 2072 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2073 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2074 esp = esp + 4; /* 0x27014A88: add esp, 4 */ 2075 _flag_k = FK_ADD; 2076 MEM32(edi + 0x4) = eax; /* 0x27014A8B: mov dword ptr [edi + 4], eax */ 2077 MEM32(edi + 0x8) = eax; /* 0x27014A8E: mov dword ptr [edi + 8], eax */ 2078 MEM32(edi + 0xC) = eax; /* 0x27014A91: mov dword ptr [edi + 0xc], eax */ 2079 edi = POP32_VAL(esp); /* 0x27014A94: pop edi */ 2080 esi = POP32_VAL(esp); /* 0x27014A95: pop esi */ 2081 ebx = POP32_VAL(esp); /* 0x27014A96: pop ebx */ 2082 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014A97: ret */ 2083 RECOMP_REGS_OUT(); 2084 } 2085 2086 void sub_27014AA0(void) { 2087 int _fpu_cmp = 0; 2088 uint32_t _cf = 0; 2089 int _df = 1; 2090 uint32_t _flag_k = FK_NONE; 2091 uint32_t _flag_a = 0, _flag_b = 0; 2092 uint32_t _itail_tgt = 0; 2093 RECOMP_REGS_LOCALS 2094 RECOMP_ENTER(0x27014AA0u); 2095 2096 L_27014AA0: 2097 eax = MEM32(ecx + 0x4); /* 0x27014AA0: mov eax, dword ptr [ecx + 4] */ 2098 /* test eax, eax */ /* 0x27014AA3: test eax, eax */ 2099 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2100 _cf = 0; 2101 _flag_k = FK_TEST; 2102 if (TEST_NZ(_flag_a, _flag_b)) goto L_27014AA8; /* 0x27014AA5: jne 0x27014aa8 */ 2103 L_27014AA7: 2104 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014AA7: ret */ 2105 L_27014AA8: 2106 ecx = MEM32(ecx + 0x8); /* 0x27014AA8: mov ecx, dword ptr [ecx + 8] */ 2107 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2109 ecx = ecx - eax; /* 0x27014AAB: sub ecx, eax */ 2110 _flag_k = FK_CMP; 2111 eax = 0x66666667u; /* 0x27014AAD: mov eax, 0x66666667 */ 2112 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x27014AB2: imul ecx */ 2113 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2114 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2115 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x27014AB4: sar edx, 3 */ 2116 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2117 edx = (uint32_t)((int32_t)edx >> 3u); 2118 eax = edx; /* 0x27014AB7: mov eax, edx */ 2119 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x27014AB9: shr eax, 0x1f */ 2120 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2121 eax = eax >> 31u; /* 0x27014AB9: shr eax, 0x1f */ 2122 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2123 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2124 edx = edx + eax; /* 0x27014ABC: add edx, eax */ 2125 _flag_k = FK_ADD; 2126 eax = edx; /* 0x27014ABE: mov eax, edx */ 2127 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014AC0: ret */ 2128 RECOMP_REGS_OUT(); 2129 } 2130 2131 void sub_27014AD0(void) { 2132 int _fpu_cmp = 0; 2133 uint32_t _cf = 0; 2134 int _df = 1; 2135 uint32_t _flag_k = FK_NONE; 2136 uint32_t _flag_a = 0, _flag_b = 0; 2137 uint32_t _itail_tgt = 0; 2138 RECOMP_REGS_LOCALS 2139 RECOMP_ENTER(0x27014AD0u); 2140 2141 L_27014AD0: 2142 eax = MEM32(ecx + 0x4); /* 0x27014AD0: mov eax, dword ptr [ecx + 4] */ 2143 /* test eax, eax */ /* 0x27014AD3: test eax, eax */ 2144 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2145 _cf = 0; 2146 _flag_k = FK_TEST; 2147 if (TEST_NZ(_flag_a, _flag_b)) goto L_27014AD8; /* 0x27014AD5: jne 0x27014ad8 */ 2148 L_27014AD7: 2149 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014AD7: ret */ 2150 L_27014AD8: 2151 ecx = MEM32(ecx + 0xC); /* 0x27014AD8: mov ecx, dword ptr [ecx + 0xc] */ 2152 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2154 ecx = ecx - eax; /* 0x27014ADB: sub ecx, eax */ 2155 _flag_k = FK_CMP; 2156 eax = 0x66666667u; /* 0x27014ADD: mov eax, 0x66666667 */ 2157 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x27014AE2: imul ecx */ 2158 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2159 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2160 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x27014AE4: sar edx, 3 */ 2161 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2162 edx = (uint32_t)((int32_t)edx >> 3u); 2163 eax = edx; /* 0x27014AE7: mov eax, edx */ 2164 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x27014AE9: shr eax, 0x1f */ 2165 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2166 eax = eax >> 31u; /* 0x27014AE9: shr eax, 0x1f */ 2167 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2168 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2169 edx = edx + eax; /* 0x27014AEC: add edx, eax */ 2170 _flag_k = FK_ADD; 2171 eax = edx; /* 0x27014AEE: mov eax, edx */ 2172 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014AF0: ret */ 2173 RECOMP_REGS_OUT(); 2174 } 2175 2176 void sub_27014B00(void) { 2177 int _fpu_cmp = 0; 2178 uint32_t _cf = 0; 2179 int _df = 1; 2180 uint32_t _flag_k = FK_NONE; 2181 uint32_t _flag_a = 0, _flag_b = 0; 2182 uint32_t _itail_tgt = 0; 2183 RECOMP_REGS_LOCALS 2184 RECOMP_ENTER(0x27014B00u); 2185 2186 L_27014B00: 2187 PUSH32(esp, ebp); /* 0x27014B00: push ebp */ 2188 ebp = esp; /* 0x27014B01: mov ebp, esp */ 2189 PUSH32(esp, esi); /* 0x27014B03: push esi */ 2190 esi = MEM32(ebp + 0x8); /* 0x27014B04: mov esi, dword ptr [ebp + 8] */ 2191 PUSH32(esp, edi); /* 0x27014B07: push edi */ 2192 edi = MEM32(ebp + 0xC); /* 0x27014B08: mov edi, dword ptr [ebp + 0xc] */ 2193 /* cmp esi, edi */ /* 0x27014B0B: cmp esi, edi */ 2194 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2196 _flag_k = FK_CMP; 2197 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014B1D; /* 0x27014B0D: je 0x27014b1d */ 2198 L_27014B0F: 2199 ecx = esi; /* 0x27014B0F: mov ecx, esi */ 2200 RECOMP_ICALL(0x2700DFB0u); /* 0x27014B11: call 0x2700dfb0 */ /* not lifted */ 2201 RECOMP_FLAGS_IN(); 2202 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 2203 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2204 esi = esi + 0x14u; /* 0x27014B16: add esi, 0x14 */ 2205 _flag_k = FK_ADD; 2206 /* cmp esi, edi */ /* 0x27014B19: cmp esi, edi */ 2207 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2209 _flag_k = FK_CMP; 2210 RECOMP_BACKEDGE(); 2211 if (CMP_NE(_flag_a, _flag_b)) goto L_27014B0F; /* 0x27014B1B: jne 0x27014b0f */ 2212 L_27014B1D: 2213 edi = POP32_VAL(esp); /* 0x27014B1D: pop edi */ 2214 esi = POP32_VAL(esp); /* 0x27014B1E: pop esi */ 2215 ebp = POP32_VAL(esp); /* 0x27014B1F: pop ebp */ 2216 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27014B20: ret 8 */ 2217 RECOMP_REGS_OUT(); 2218 } 2219 2220 void sub_27014B30(void) { 2221 int _fpu_cmp = 0; 2222 uint32_t _cf = 0; 2223 int _df = 1; 2224 uint32_t _flag_k = FK_NONE; 2225 uint32_t _flag_a = 0, _flag_b = 0; 2226 uint32_t _itail_tgt = 0; 2227 RECOMP_REGS_LOCALS 2228 RECOMP_ENTER(0x27014B30u); 2229 2230 L_27014B30: 2231 PUSH32(esp, ebp); /* 0x27014B30: push ebp */ 2232 ebp = esp; /* 0x27014B31: mov ebp, esp */ 2233 PUSH32(esp, ebx); /* 0x27014B33: push ebx */ 2234 ebx = MEM32(ebp + 0xC); /* 0x27014B34: mov ebx, dword ptr [ebp + 0xc] */ 2235 PUSH32(esp, esi); /* 0x27014B37: push esi */ 2236 esi = MEM32(ebp + 0x8); /* 0x27014B38: mov esi, dword ptr [ebp + 8] */ 2237 /* cmp esi, ebx */ /* 0x27014B3B: cmp esi, ebx */ 2238 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2240 _flag_k = FK_CMP; 2241 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014B60; /* 0x27014B3D: je 0x27014b60 */ 2242 L_27014B3F: 2243 PUSH32(esp, edi); /* 0x27014B3F: push edi */ 2244 edi = MEM32(ebp + 0x10); /* 0x27014B40: mov edi, dword ptr [ebp + 0x10] */ 2245 L_27014B43: 2246 PUSH32(esp, esi); /* 0x27014B43: push esi */ 2247 PUSH32(esp, edi); /* 0x27014B44: push edi */ 2248 RECOMP_ICALL(0x27014BB0u); /* 0x27014B45: call 0x27014bb0 */ /* not lifted */ 2249 RECOMP_FLAGS_IN(); 2250 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 2251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2252 esi = esi + 0x14u; /* 0x27014B4A: add esi, 0x14 */ 2253 _flag_k = FK_ADD; 2254 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2255 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2256 esp = esp + 8; /* 0x27014B4D: add esp, 8 */ 2257 _flag_k = FK_ADD; 2258 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 2259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2260 edi = edi + 0x14u; /* 0x27014B50: add edi, 0x14 */ 2261 _flag_k = FK_ADD; 2262 /* cmp esi, ebx */ /* 0x27014B53: cmp esi, ebx */ 2263 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2265 _flag_k = FK_CMP; 2266 RECOMP_BACKEDGE(); 2267 if (CMP_NE(_flag_a, _flag_b)) goto L_27014B43; /* 0x27014B55: jne 0x27014b43 */ 2268 L_27014B57: 2269 eax = edi; /* 0x27014B57: mov eax, edi */ 2270 edi = POP32_VAL(esp); /* 0x27014B59: pop edi */ 2271 esi = POP32_VAL(esp); /* 0x27014B5A: pop esi */ 2272 ebx = POP32_VAL(esp); /* 0x27014B5B: pop ebx */ 2273 ebp = POP32_VAL(esp); /* 0x27014B5C: pop ebp */ 2274 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x27014B5D: ret 0xc */ 2275 L_27014B60: 2276 eax = MEM32(ebp + 0x10); /* 0x27014B60: mov eax, dword ptr [ebp + 0x10] */ 2277 esi = POP32_VAL(esp); /* 0x27014B63: pop esi */ 2278 ebx = POP32_VAL(esp); /* 0x27014B64: pop ebx */ 2279 ebp = POP32_VAL(esp); /* 0x27014B65: pop ebp */ 2280 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x27014B66: ret 0xc */ 2281 RECOMP_REGS_OUT(); 2282 } 2283 2284 void sub_27014B70(void) { 2285 int _fpu_cmp = 0; 2286 uint32_t _cf = 0; 2287 int _df = 1; 2288 uint32_t _flag_k = FK_NONE; 2289 uint32_t _flag_a = 0, _flag_b = 0; 2290 uint32_t _itail_tgt = 0; 2291 RECOMP_REGS_LOCALS 2292 RECOMP_ENTER(0x27014B70u); 2293 2294 L_27014B70: 2295 PUSH32(esp, ebp); /* 0x27014B70: push ebp */ 2296 ebp = esp; /* 0x27014B71: mov ebp, esp */ 2297 PUSH32(esp, ebx); /* 0x27014B73: push ebx */ 2298 ebx = MEM32(ebp + 0xC); /* 0x27014B74: mov ebx, dword ptr [ebp + 0xc] */ 2299 PUSH32(esp, esi); /* 0x27014B77: push esi */ 2300 esi = MEM32(ebp + 0x8); /* 0x27014B78: mov esi, dword ptr [ebp + 8] */ 2301 /* cmp esi, ebx */ /* 0x27014B7B: cmp esi, ebx */ 2302 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2304 _flag_k = FK_CMP; 2305 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014B9C; /* 0x27014B7D: je 0x27014b9c */ 2306 L_27014B7F: 2307 PUSH32(esp, edi); /* 0x27014B7F: push edi */ 2308 edi = MEM32(ebp + 0x10); /* 0x27014B80: mov edi, dword ptr [ebp + 0x10] */ 2309 L_27014B83: 2310 PUSH32(esp, esi); /* 0x27014B83: push esi */ 2311 ecx = edi; /* 0x27014B84: mov ecx, edi */ 2312 RECOMP_ICALL(0x27006160u); /* 0x27014B86: call 0x27006160 */ /* not lifted */ 2313 RECOMP_FLAGS_IN(); 2314 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 2315 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2316 esi = esi + 0x14u; /* 0x27014B8B: add esi, 0x14 */ 2317 _flag_k = FK_ADD; 2318 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 2319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2320 edi = edi + 0x14u; /* 0x27014B8E: add edi, 0x14 */ 2321 _flag_k = FK_ADD; 2322 /* cmp esi, ebx */ /* 0x27014B91: cmp esi, ebx */ 2323 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2325 _flag_k = FK_CMP; 2326 RECOMP_BACKEDGE(); 2327 if (CMP_NE(_flag_a, _flag_b)) goto L_27014B83; /* 0x27014B93: jne 0x27014b83 */ 2328 L_27014B95: 2329 eax = edi; /* 0x27014B95: mov eax, edi */ 2330 edi = POP32_VAL(esp); /* 0x27014B97: pop edi */ 2331 esi = POP32_VAL(esp); /* 0x27014B98: pop esi */ 2332 ebx = POP32_VAL(esp); /* 0x27014B99: pop ebx */ 2333 ebp = POP32_VAL(esp); /* 0x27014B9A: pop ebp */ 2334 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014B9B: ret */ 2335 L_27014B9C: 2336 eax = MEM32(ebp + 0x10); /* 0x27014B9C: mov eax, dword ptr [ebp + 0x10] */ 2337 esi = POP32_VAL(esp); /* 0x27014B9F: pop esi */ 2338 ebx = POP32_VAL(esp); /* 0x27014BA0: pop ebx */ 2339 ebp = POP32_VAL(esp); /* 0x27014BA1: pop ebp */ 2340 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014BA2: ret */ 2341 RECOMP_REGS_OUT(); 2342 } 2343 2344 void sub_27014BB0(void) { 2345 int _fpu_cmp = 0; 2346 uint32_t _cf = 0; 2347 int _df = 1; 2348 uint32_t _flag_k = FK_NONE; 2349 uint32_t _flag_a = 0, _flag_b = 0; 2350 uint32_t _itail_tgt = 0; 2351 RECOMP_REGS_LOCALS 2352 RECOMP_ENTER(0x27014BB0u); 2353 2354 L_27014BB0: 2355 PUSH32(esp, ebp); /* 0x27014BB0: push ebp */ 2356 ebp = esp; /* 0x27014BB1: mov ebp, esp */ 2357 PUSH32(esp, 0xFFFFFFFFu); /* 0x27014BB3: push -1 */ 2358 PUSH32(esp, 0x27027AC1u); /* 0x27014BB5: push 0x27027ac1 */ 2359 eax = MEM32(FS_BASE + (0)); /* 0x27014BBA: mov eax, dword ptr fs:[0] */ 2360 PUSH32(esp, eax); /* 0x27014BC0: push eax */ 2361 MEM32(FS_BASE + (0)) = esp; /* 0x27014BC1: mov dword ptr fs:[0], esp */ 2362 PUSH32(esp, ecx); /* 0x27014BC8: push ecx */ 2363 ecx = MEM32(ebp + 0x8); /* 0x27014BC9: mov ecx, dword ptr [ebp + 8] */ 2364 MEM32(ebp + (-0x10)) = ecx; /* 0x27014BCC: mov dword ptr [ebp - 0x10], ecx */ 2365 /* test ecx, ecx */ /* 0x27014BCF: test ecx, ecx */ 2366 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2367 _cf = 0; 2368 _flag_k = FK_TEST; 2369 MEM32(ebp + (-0x4)) = 0; /* 0x27014BD1: mov dword ptr [ebp - 4], 0 */ 2370 if (TEST_Z(_flag_a, _flag_b)) goto L_27014BE3; /* 0x27014BD8: je 0x27014be3 */ 2371 L_27014BDA: 2372 eax = MEM32(ebp + 0xC); /* 0x27014BDA: mov eax, dword ptr [ebp + 0xc] */ 2373 PUSH32(esp, eax); /* 0x27014BDD: push eax */ 2374 RECOMP_ICALL(0x27006070u); /* 0x27014BDE: call 0x27006070 */ /* not lifted */ 2375 RECOMP_FLAGS_IN(); 2376 L_27014BE3: 2377 ecx = MEM32(ebp + (-0xC)); /* 0x27014BE3: mov ecx, dword ptr [ebp - 0xc] */ 2378 MEM32(FS_BASE + (0)) = ecx; /* 0x27014BE6: mov dword ptr fs:[0], ecx */ 2379 esp = ebp; /* 0x27014BED: mov esp, ebp */ 2380 ebp = POP32_VAL(esp); /* 0x27014BEF: pop ebp */ 2381 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014BF0: ret */ 2382 RECOMP_REGS_OUT(); 2383 } 2384 2385 void sub_27014C00(void) { 2386 int _fpu_cmp = 0; 2387 uint32_t _cf = 0; 2388 int _df = 1; 2389 uint32_t _flag_k = FK_NONE; 2390 uint32_t _flag_a = 0, _flag_b = 0; 2391 uint32_t _itail_tgt = 0; 2392 RECOMP_REGS_LOCALS 2393 RECOMP_ENTER(0x27014C00u); 2394 2395 L_27014C00: 2396 PUSH32(esp, ebp); /* 0x27014C00: push ebp */ 2397 ebp = esp; /* 0x27014C01: mov ebp, esp */ 2398 PUSH32(esp, esi); /* 0x27014C03: push esi */ 2399 esi = ecx; /* 0x27014C04: mov esi, ecx */ 2400 RECOMP_ICALL(0x2700DFB0u); /* 0x27014C06: call 0x2700dfb0 */ /* not lifted */ 2401 RECOMP_FLAGS_IN(); 2402 /* test MEM8(ebp + 0x8), 1 */ /* 0x27014C0B: test byte ptr [ebp + 8], 1 */ 2403 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 2404 _cf = 0; 2405 _flag_k = FK_NARROW(FK_TEST, 24); 2406 if (TEST_Z(_flag_a, _flag_b)) goto L_27014C1A; /* 0x27014C0F: je 0x27014c1a */ 2407 L_27014C11: 2408 PUSH32(esp, esi); /* 0x27014C11: push esi */ 2409 RECOMP_ICALL(0x27026DA4u); /* 0x27014C12: call 0x27026da4 */ /* not lifted */ 2410 RECOMP_FLAGS_IN(); 2411 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2413 esp = esp + 4; /* 0x27014C17: add esp, 4 */ 2414 _flag_k = FK_ADD; 2415 L_27014C1A: 2416 eax = esi; /* 0x27014C1A: mov eax, esi */ 2417 esi = POP32_VAL(esp); /* 0x27014C1C: pop esi */ 2418 ebp = POP32_VAL(esp); /* 0x27014C1D: pop ebp */ 2419 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27014C1E: ret 4 */ 2420 RECOMP_REGS_OUT(); 2421 } 2422 2423 void sub_27014C30(void) { 2424 int _fpu_cmp = 0; 2425 uint32_t _cf = 0; 2426 int _df = 1; 2427 uint32_t _flag_k = FK_NONE; 2428 uint32_t _flag_a = 0, _flag_b = 0; 2429 uint32_t _itail_tgt = 0; 2430 RECOMP_REGS_LOCALS 2431 RECOMP_ENTER(0x27014C30u); 2432 2433 L_27014C30: 2434 PUSH32(esp, ebp); /* 0x27014C30: push ebp */ 2435 ebp = esp; /* 0x27014C31: mov ebp, esp */ 2436 PUSH32(esp, esi); /* 0x27014C33: push esi */ 2437 esi = ecx; /* 0x27014C34: mov esi, ecx */ 2438 RECOMP_ICALL(0x270096D0u); /* 0x27014C36: call 0x270096d0 */ /* not lifted */ 2439 RECOMP_FLAGS_IN(); 2440 /* test MEM8(ebp + 0x8), 1 */ /* 0x27014C3B: test byte ptr [ebp + 8], 1 */ 2441 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 2442 _cf = 0; 2443 _flag_k = FK_NARROW(FK_TEST, 24); 2444 if (TEST_Z(_flag_a, _flag_b)) goto L_27014C4A; /* 0x27014C3F: je 0x27014c4a */ 2445 L_27014C41: 2446 PUSH32(esp, esi); /* 0x27014C41: push esi */ 2447 RECOMP_ICALL(0x27026DA4u); /* 0x27014C42: call 0x27026da4 */ /* not lifted */ 2448 RECOMP_FLAGS_IN(); 2449 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2450 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2451 esp = esp + 4; /* 0x27014C47: add esp, 4 */ 2452 _flag_k = FK_ADD; 2453 L_27014C4A: 2454 eax = esi; /* 0x27014C4A: mov eax, esi */ 2455 esi = POP32_VAL(esp); /* 0x27014C4C: pop esi */ 2456 ebp = POP32_VAL(esp); /* 0x27014C4D: pop ebp */ 2457 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27014C4E: ret 4 */ 2458 RECOMP_REGS_OUT(); 2459 } 2460 2461 void sub_27014C60(void) { 2462 int _fpu_cmp = 0; 2463 uint32_t _cf = 0; 2464 int _df = 1; 2465 uint32_t _flag_k = FK_NONE; 2466 uint32_t _flag_a = 0, _flag_b = 0; 2467 uint32_t _itail_tgt = 0; 2468 RECOMP_REGS_LOCALS 2469 RECOMP_ENTER(0x27014C60u); 2470 2471 L_27014C60: 2472 PUSH32(esp, ebp); /* 0x27014C60: push ebp */ 2473 ebp = esp; /* 0x27014C61: mov ebp, esp */ 2474 eax = MEM32(FS_BASE + (0)); /* 0x27014C63: mov eax, dword ptr fs:[0] */ 2475 PUSH32(esp, 0xFFFFFFFFu); /* 0x27014C69: push -1 */ 2476 PUSH32(esp, 0x27027ADBu); /* 0x27014C6B: push 0x27027adb */ 2477 PUSH32(esp, eax); /* 0x27014C70: push eax */ 2478 MEM32(FS_BASE + (0)) = esp; /* 0x27014C71: mov dword ptr fs:[0], esp */ 2479 PUSH32(esp, ebx); /* 0x27014C78: push ebx */ 2480 PUSH32(esp, esi); /* 0x27014C79: push esi */ 2481 PUSH32(esp, edi); /* 0x27014C7A: push edi */ 2482 edi = MEM32(ebp + 0x8); /* 0x27014C7B: mov edi, dword ptr [ebp + 8] */ 2483 esi = ecx; /* 0x27014C7E: mov esi, ecx */ 2484 eax = edi + edi * 4; /* 0x27014C80: lea eax, [edi + edi*4] */ 2485 ecx = eax * 4 + 0x4; /* 0x27014C83: lea ecx, [eax*4 + 4] */ 2486 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2487 ebx = 0; /* 0x27014C8A: xor ebx, ebx */ 2488 _cf = 0; 2489 _flag_k = FK_TEST; 2490 PUSH32(esp, ecx); /* 0x27014C8C: push ecx */ 2491 MEM32(esi) = edi; /* 0x27014C8D: mov dword ptr [esi], edi */ 2492 MEM32(esi + 0x4) = ebx; /* 0x27014C8F: mov dword ptr [esi + 4], ebx */ 2493 MEM32(esi + 0x8) = 0xFFFFFFFFu; /* 0x27014C92: mov dword ptr [esi + 8], 0xffffffff */ 2494 RECOMP_ICALL(0x27026EA4u); /* 0x27014C99: call 0x27026ea4 */ /* not lifted */ 2495 RECOMP_FLAGS_IN(); 2496 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2498 esp = esp + 4; /* 0x27014C9E: add esp, 4 */ 2499 _flag_k = FK_ADD; 2500 MEM32(ebp + 0x8) = eax; /* 0x27014CA1: mov dword ptr [ebp + 8], eax */ 2501 /* cmp eax, ebx */ /* 0x27014CA4: cmp eax, ebx */ 2502 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2504 _flag_k = FK_CMP; 2505 MEM32(ebp + (-0x4)) = ebx; /* 0x27014CA6: mov dword ptr [ebp - 4], ebx */ 2506 if (CMP_EQ(_flag_a, _flag_b)) goto L_27014CC8; /* 0x27014CA9: je 0x27014cc8 */ 2507 L_27014CAB: 2508 PUSH32(esp, 0x2700DFB0u); /* 0x27014CAB: push 0x2700dfb0 */ 2509 PUSH32(esp, 0x27014E00u); /* 0x27014CB0: push 0x27014e00 */ 2510 PUSH32(esp, edi); /* 0x27014CB5: push edi */ 2511 ebx = eax + 0x4; /* 0x27014CB6: lea ebx, [eax + 4] */ 2512 PUSH32(esp, 0x14u); /* 0x27014CB9: push 0x14 */ 2513 PUSH32(esp, ebx); /* 0x27014CBB: push ebx */ 2514 MEM32(eax) = edi; /* 0x27014CBC: mov dword ptr [eax], edi */ 2515 RECOMP_ICALL(0x27026ED8u); /* 0x27014CBE: call 0x27026ed8 */ /* not lifted */ 2516 RECOMP_FLAGS_IN(); 2517 MEM32(esi + 0xC) = ebx; /* 0x27014CC3: mov dword ptr [esi + 0xc], ebx */ 2518 goto L_27014CCD; /* 0x27014CC6: jmp 0x27014ccd */ 2519 L_27014CC8: 2520 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2521 eax = 0; /* 0x27014CC8: xor eax, eax */ 2522 _cf = 0; 2523 _flag_k = FK_TEST; 2524 MEM32(esi + 0xC) = eax; /* 0x27014CCA: mov dword ptr [esi + 0xc], eax */ 2525 L_27014CCD: 2526 ecx = MEM32(ebp + (-0xC)); /* 0x27014CCD: mov ecx, dword ptr [ebp - 0xc] */ 2527 edi = POP32_VAL(esp); /* 0x27014CD0: pop edi */ 2528 eax = esi; /* 0x27014CD1: mov eax, esi */ 2529 esi = POP32_VAL(esp); /* 0x27014CD3: pop esi */ 2530 MEM32(FS_BASE + (0)) = ecx; /* 0x27014CD4: mov dword ptr fs:[0], ecx */ 2531 ebx = POP32_VAL(esp); /* 0x27014CDB: pop ebx */ 2532 esp = ebp; /* 0x27014CDC: mov esp, ebp */ 2533 ebp = POP32_VAL(esp); /* 0x27014CDE: pop ebp */ 2534 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27014CDF: ret 4 */ 2535 RECOMP_REGS_OUT(); 2536 } 2537 2538 void sub_27014CF0(void) { 2539 int _fpu_cmp = 0; 2540 uint32_t _cf = 0; 2541 int _df = 1; 2542 uint32_t _flag_k = FK_NONE; 2543 uint32_t _flag_a = 0, _flag_b = 0; 2544 uint32_t _itail_tgt = 0; 2545 RECOMP_REGS_LOCALS 2546 RECOMP_ENTER(0x27014CF0u); 2547 2548 L_27014CF0: 2549 eax = MEM32(ecx + 0xC); /* 0x27014CF0: mov eax, dword ptr [ecx + 0xc] */ 2550 /* test eax, eax */ /* 0x27014CF3: test eax, eax */ 2551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2552 _cf = 0; 2553 _flag_k = FK_TEST; 2554 if (TEST_Z(_flag_a, _flag_b)) goto L_27014D16; /* 0x27014CF5: je 0x27014d16 */ 2555 L_27014CF7: 2556 ecx = MEM32(eax + (-0x4)); /* 0x27014CF7: mov ecx, dword ptr [eax - 4] */ 2557 PUSH32(esp, esi); /* 0x27014CFA: push esi */ 2558 esi = eax + (-0x4); /* 0x27014CFB: lea esi, [eax - 4] */ 2559 PUSH32(esp, 0x2700DFB0u); /* 0x27014CFE: push 0x2700dfb0 */ 2560 PUSH32(esp, ecx); /* 0x27014D03: push ecx */ 2561 PUSH32(esp, 0x14u); /* 0x27014D04: push 0x14 */ 2562 PUSH32(esp, eax); /* 0x27014D06: push eax */ 2563 RECOMP_ICALL(0x27026DB0u); /* 0x27014D07: call 0x27026db0 */ /* not lifted */ 2564 RECOMP_FLAGS_IN(); 2565 PUSH32(esp, esi); /* 0x27014D0C: push esi */ 2566 RECOMP_ICALL(0x27026DA4u); /* 0x27014D0D: call 0x27026da4 */ /* not lifted */ 2567 RECOMP_FLAGS_IN(); 2568 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2569 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2570 esp = esp + 4; /* 0x27014D12: add esp, 4 */ 2571 _flag_k = FK_ADD; 2572 esi = POP32_VAL(esp); /* 0x27014D15: pop esi */ 2573 L_27014D16: 2574 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014D16: ret */ 2575 RECOMP_REGS_OUT(); 2576 } 2577 2578 void sub_27014D20(void) { 2579 int _fpu_cmp = 0; 2580 uint32_t _cf = 0; 2581 int _df = 1; 2582 uint32_t _flag_k = FK_NONE; 2583 uint32_t _flag_a = 0, _flag_b = 0; 2584 uint32_t _itail_tgt = 0; 2585 RECOMP_REGS_LOCALS 2586 RECOMP_ENTER(0x27014D20u); 2587 2588 L_27014D20: 2589 PUSH32(esp, ebp); /* 0x27014D20: push ebp */ 2590 ebp = esp; /* 0x27014D21: mov ebp, esp */ 2591 PUSH32(esp, esi); /* 0x27014D23: push esi */ 2592 esi = ecx; /* 0x27014D24: mov esi, ecx */ 2593 ecx = MEM32(ebp + 0x8); /* 0x27014D26: mov ecx, dword ptr [ebp + 8] */ 2594 eax = MEM32(ecx + 0x8); /* 0x27014D29: mov eax, dword ptr [ecx + 8] */ 2595 /* test eax, eax */ /* 0x27014D2C: test eax, eax */ 2596 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2597 _cf = 0; 2598 _flag_k = FK_TEST; 2599 if (TEST_Z(_flag_a, _flag_b)) goto L_27014D5C; /* 0x27014D2E: je 0x27014d5c */ 2600 L_27014D30: 2601 eax = MEM32(esi + 0x8); /* 0x27014D30: mov eax, dword ptr [esi + 8] */ 2602 edx = MEM32(esi); /* 0x27014D33: mov edx, dword ptr [esi] */ 2603 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2604 eax = eax + 1; /* 0x27014D35: inc eax */ 2605 _flag_k = FK_INC; 2606 /* cmp eax, edx */ /* 0x27014D36: cmp eax, edx */ 2607 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2609 _flag_k = FK_CMP; 2610 MEM32(esi + 0x8) = eax; /* 0x27014D38: mov dword ptr [esi + 8], eax */ 2611 if (CMP_L(_flag_a, _flag_b)) goto L_27014D44; /* 0x27014D3B: jl 0x27014d44 */ 2612 L_27014D3D: 2613 MEM32(esi + 0x8) = 0; /* 0x27014D3D: mov dword ptr [esi + 8], 0 */ 2614 L_27014D44: 2615 eax = MEM32(esi + 0x8); /* 0x27014D44: mov eax, dword ptr [esi + 8] */ 2616 PUSH32(esp, ecx); /* 0x27014D47: push ecx */ 2617 ecx = MEM32(esi + 0xC); /* 0x27014D48: mov ecx, dword ptr [esi + 0xc] */ 2618 eax = eax + eax * 4; /* 0x27014D4B: lea eax, [eax + eax*4] */ 2619 ecx = ecx + eax * 4; /* 0x27014D4E: lea ecx, [ecx + eax*4] */ 2620 RECOMP_ICALL(0x27006160u); /* 0x27014D51: call 0x27006160 */ /* not lifted */ 2621 RECOMP_FLAGS_IN(); 2622 edx = MEM32(esi + 0x8); /* 0x27014D56: mov edx, dword ptr [esi + 8] */ 2623 MEM32(esi + 0x4) = edx; /* 0x27014D59: mov dword ptr [esi + 4], edx */ 2624 L_27014D5C: 2625 esi = POP32_VAL(esp); /* 0x27014D5C: pop esi */ 2626 ebp = POP32_VAL(esp); /* 0x27014D5D: pop ebp */ 2627 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27014D5E: ret 4 */ 2628 RECOMP_REGS_OUT(); 2629 } 2630 2631 void sub_27014D70(void) { 2632 int _fpu_cmp = 0; 2633 uint32_t _cf = 0; 2634 int _df = 1; 2635 uint32_t _flag_k = FK_NONE; 2636 uint32_t _flag_a = 0, _flag_b = 0; 2637 uint32_t _itail_tgt = 0; 2638 RECOMP_REGS_LOCALS 2639 RECOMP_ENTER(0x27014D70u); 2640 2641 L_27014D70: 2642 edx = MEM32(ecx + 0xC); /* 0x27014D70: mov edx, dword ptr [ecx + 0xc] */ 2643 eax = MEM32(edx + 0x8); /* 0x27014D73: mov eax, dword ptr [edx + 8] */ 2644 /* test eax, eax */ /* 0x27014D76: test eax, eax */ 2645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2646 _cf = 0; 2647 _flag_k = FK_TEST; 2648 if (TEST_NZ(_flag_a, _flag_b)) goto L_27014D7D; /* 0x27014D78: jne 0x27014d7d */ 2649 L_27014D7A: 2650 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2651 eax = 0; /* 0x27014D7A: xor eax, eax */ 2652 _cf = 0; 2653 _flag_k = FK_TEST; 2654 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014D7C: ret */ 2655 L_27014D7D: 2656 eax = MEM32(ecx + 0x4); /* 0x27014D7D: mov eax, dword ptr [ecx + 4] */ 2657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2658 eax = eax + 1; /* 0x27014D80: inc eax */ 2659 _flag_k = FK_INC; 2660 PUSH32(esp, esi); /* 0x27014D81: push esi */ 2661 esi = eax + eax * 4; /* 0x27014D82: lea esi, [eax + eax*4] */ 2662 PUSH32(esp, edi); /* 0x27014D85: push edi */ 2663 MEM32(ecx + 0x4) = eax; /* 0x27014D86: mov dword ptr [ecx + 4], eax */ 2664 edi = MEM32(edx + esi * 4 + 0x8); /* 0x27014D89: mov edi, dword ptr [edx + esi*4 + 8] */ 2665 /* test edi, edi */ /* 0x27014D8D: test edi, edi */ 2666 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2667 _cf = 0; 2668 _flag_k = FK_TEST; 2669 if (TEST_Z(_flag_a, _flag_b)) goto L_27014D95; /* 0x27014D8F: je 0x27014d95 */ 2670 L_27014D91: 2671 /* cmp eax, MEM32(ecx) */ /* 0x27014D91: cmp eax, dword ptr [ecx] */ 2672 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2674 _flag_k = FK_CMP; 2675 if (CMP_L(_flag_a, _flag_b)) goto L_27014D9C; /* 0x27014D93: jl 0x27014d9c */ 2676 L_27014D95: 2677 MEM32(ecx + 0x4) = 0; /* 0x27014D95: mov dword ptr [ecx + 4], 0 */ 2678 L_27014D9C: 2679 ecx = MEM32(ecx + 0x4); /* 0x27014D9C: mov ecx, dword ptr [ecx + 4] */ 2680 eax = ecx + ecx * 4; /* 0x27014D9F: lea eax, [ecx + ecx*4] */ 2681 edi = POP32_VAL(esp); /* 0x27014DA2: pop edi */ 2682 eax = edx + eax * 4; /* 0x27014DA3: lea eax, [edx + eax*4] */ 2683 esi = POP32_VAL(esp); /* 0x27014DA6: pop esi */ 2684 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014DA7: ret */ 2685 RECOMP_REGS_OUT(); 2686 } 2687 2688 void sub_27014DB0(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(0x27014DB0u); 2697 2698 L_27014DB0: 2699 edx = MEM32(ecx + 0xC); /* 0x27014DB0: mov edx, dword ptr [ecx + 0xc] */ 2700 eax = MEM32(edx + 0x8); /* 0x27014DB3: mov eax, dword ptr [edx + 8] */ 2701 /* test eax, eax */ /* 0x27014DB6: test eax, eax */ 2702 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2703 _cf = 0; 2704 _flag_k = FK_TEST; 2705 if (TEST_NZ(_flag_a, _flag_b)) goto L_27014DBD; /* 0x27014DB8: jne 0x27014dbd */ 2706 L_27014DBA: 2707 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2708 eax = 0; /* 0x27014DBA: xor eax, eax */ 2709 _cf = 0; 2710 _flag_k = FK_TEST; 2711 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014DBC: ret */ 2712 L_27014DBD: 2713 PUSH32(esp, esi); /* 0x27014DBD: push esi */ 2714 esi = MEM32(ecx + 0x4); /* 0x27014DBE: mov esi, dword ptr [ecx + 4] */ 2715 eax = esi + (-0x1); /* 0x27014DC1: lea eax, [esi - 1] */ 2716 /* test eax, eax */ /* 0x27014DC4: test eax, eax */ 2717 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2718 _cf = 0; 2719 _flag_k = FK_TEST; 2720 PUSH32(esp, edi); /* 0x27014DC6: push edi */ 2721 MEM32(ecx + 0x4) = eax; /* 0x27014DC7: mov dword ptr [ecx + 4], eax */ 2722 if (TEST_NS(_flag_a, _flag_b)) goto L_27014DD2; /* 0x27014DCA: jge 0x27014dd2 */ 2723 L_27014DCC: 2724 eax = MEM32(ecx); /* 0x27014DCC: mov eax, dword ptr [ecx] */ 2725 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2726 eax = eax - 1; /* 0x27014DCE: dec eax */ 2727 _flag_k = FK_DEC; 2728 MEM32(ecx + 0x4) = eax; /* 0x27014DCF: mov dword ptr [ecx + 4], eax */ 2729 L_27014DD2: 2730 eax = MEM32(ecx + 0x4); /* 0x27014DD2: mov eax, dword ptr [ecx + 4] */ 2731 eax = eax + eax * 4; /* 0x27014DD5: lea eax, [eax + eax*4] */ 2732 edi = MEM32(edx + eax * 4 + 0x8); /* 0x27014DD8: mov edi, dword ptr [edx + eax*4 + 8] */ 2733 /* test edi, edi */ /* 0x27014DDC: test edi, edi */ 2734 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2735 _cf = 0; 2736 _flag_k = FK_TEST; 2737 if (TEST_NZ(_flag_a, _flag_b)) goto L_27014DF2; /* 0x27014DDE: jne 0x27014df2 */ 2738 L_27014DE0: 2739 eax = MEM32(ecx + 0x4); /* 0x27014DE0: mov eax, dword ptr [ecx + 4] */ 2740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2741 eax = eax - 1; /* 0x27014DE3: dec eax */ 2742 _flag_k = FK_DEC; 2743 MEM32(ecx + 0x4) = eax; /* 0x27014DE4: mov dword ptr [ecx + 4], eax */ 2744 eax = eax + eax * 4; /* 0x27014DE7: lea eax, [eax + eax*4] */ 2745 edi = MEM32(edx + eax * 4 + 0x8); /* 0x27014DEA: mov edi, dword ptr [edx + eax*4 + 8] */ 2746 /* test edi, edi */ /* 0x27014DEE: test edi, edi */ 2747 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2748 _cf = 0; 2749 _flag_k = FK_TEST; 2750 RECOMP_BACKEDGE(); 2751 if (TEST_Z(_flag_a, _flag_b)) goto L_27014DE0; /* 0x27014DF0: je 0x27014de0 */ 2752 L_27014DF2: 2753 ecx = esi + esi * 4; /* 0x27014DF2: lea ecx, [esi + esi*4] */ 2754 edi = POP32_VAL(esp); /* 0x27014DF5: pop edi */ 2755 eax = edx + ecx * 4; /* 0x27014DF6: lea eax, [edx + ecx*4] */ 2756 esi = POP32_VAL(esp); /* 0x27014DF9: pop esi */ 2757 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014DFA: ret */ 2758 RECOMP_REGS_OUT(); 2759 } 2760 2761 void sub_27014E00(void) { 2762 int _fpu_cmp = 0; 2763 uint32_t _cf = 0; 2764 int _df = 1; 2765 uint32_t _flag_k = FK_NONE; 2766 uint32_t _flag_a = 0, _flag_b = 0; 2767 uint32_t _itail_tgt = 0; 2768 RECOMP_REGS_LOCALS 2769 RECOMP_ENTER(0x27014E00u); 2770 2771 L_27014E00: 2772 PUSH32(esp, ebp); /* 0x27014E00: push ebp */ 2773 ebp = esp; /* 0x27014E01: mov ebp, esp */ 2774 PUSH32(esp, ecx); /* 0x27014E03: push ecx */ 2775 eax = ecx; /* 0x27014E04: mov eax, ecx */ 2776 SET_LO8(ecx, MEM8(ebp + (-0x1))); /* 0x27014E06: mov cl, byte ptr [ebp - 1] */ 2777 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x27014E09: mov byte ptr [eax], cl */ 2778 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2779 ecx = 0; /* 0x27014E0B: xor ecx, ecx */ 2780 _cf = 0; 2781 _flag_k = FK_TEST; 2782 MEM32(eax + 0x4) = ecx; /* 0x27014E0D: mov dword ptr [eax + 4], ecx */ 2783 MEM32(eax + 0x8) = ecx; /* 0x27014E10: mov dword ptr [eax + 8], ecx */ 2784 MEM32(eax + 0xC) = ecx; /* 0x27014E13: mov dword ptr [eax + 0xc], ecx */ 2785 MEM32(eax + 0x10) = ecx; /* 0x27014E16: mov dword ptr [eax + 0x10], ecx */ 2786 esp = ebp; /* 0x27014E19: mov esp, ebp */ 2787 ebp = POP32_VAL(esp); /* 0x27014E1B: pop ebp */ 2788 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014E1C: ret */ 2789 RECOMP_REGS_OUT(); 2790 } 2791 2792 void sub_27014E20(void) { 2793 int _fpu_cmp = 0; 2794 uint32_t _cf = 0; 2795 int _df = 1; 2796 uint32_t _flag_k = FK_NONE; 2797 uint32_t _flag_a = 0, _flag_b = 0; 2798 uint32_t _itail_tgt = 0; 2799 RECOMP_REGS_LOCALS 2800 RECOMP_ENTER(0x27014E20u); 2801 2802 L_27014E20: 2803 eax = MEM32(ecx + 0x8); /* 0x27014E20: mov eax, dword ptr [ecx + 8] */ 2804 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014E23: ret */ 2805 RECOMP_REGS_OUT(); 2806 } 2807 2808 void sub_27014E30(void) { 2809 int _fpu_cmp = 0; 2810 uint32_t _cf = 0; 2811 int _df = 1; 2812 uint32_t _flag_k = FK_NONE; 2813 uint32_t _flag_a = 0, _flag_b = 0; 2814 uint32_t _itail_tgt = 0; 2815 RECOMP_REGS_LOCALS 2816 RECOMP_ENTER(0x27014E30u); 2817 2818 L_27014E30: 2819 eax = MEM32(ecx); /* 0x27014E30: mov eax, dword ptr [ecx] */ 2820 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014E32: ret */ 2821 RECOMP_REGS_OUT(); 2822 } 2823 2824 void sub_27014E40(void) { 2825 int _fpu_cmp = 0; 2826 uint32_t _cf = 0; 2827 int _df = 1; 2828 uint32_t _flag_k = FK_NONE; 2829 uint32_t _flag_a = 0, _flag_b = 0; 2830 uint32_t _itail_tgt = 0; 2831 RECOMP_REGS_LOCALS 2832 RECOMP_ENTER(0x27014E40u); 2833 2834 L_27014E40: 2835 ecx = MEM32(ecx + 0x50); /* 0x27014E40: mov ecx, dword ptr [ecx + 0x50] */ 2836 eax = MEM32(ecx + 0x4); /* 0x27014E43: mov eax, dword ptr [ecx + 4] */ 2837 /* test eax, eax */ /* 0x27014E46: test eax, eax */ 2838 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2839 _cf = 0; 2840 _flag_k = FK_TEST; 2841 if (TEST_NZ(_flag_a, _flag_b)) goto L_27014E4F; /* 0x27014E48: jne 0x27014e4f */ 2842 L_27014E4A: 2843 eax = MEM32(0x27029064); /* 0x27014E4A: mov eax, dword ptr [0x27029064] */ 2844 L_27014E4F: 2845 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014E4F: ret */ 2846 RECOMP_REGS_OUT(); 2847 } 2848 2849 void sub_27014E50(void) { 2850 int _fpu_cmp = 0; 2851 uint32_t _cf = 0; 2852 int _df = 1; 2853 uint32_t _flag_k = FK_NONE; 2854 uint32_t _flag_a = 0, _flag_b = 0; 2855 uint32_t _itail_tgt = 0; 2856 RECOMP_REGS_LOCALS 2857 RECOMP_ENTER(0x27014E50u); 2858 2859 L_27014E50: 2860 eax = MEM32(ecx + 0x50); /* 0x27014E50: mov eax, dword ptr [ecx + 0x50] */ 2861 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014E53: ret */ 2862 RECOMP_REGS_OUT(); 2863 } 2864 2865 void sub_27014E60(void) { 2866 int _fpu_cmp = 0; 2867 uint32_t _cf = 0; 2868 int _df = 1; 2869 uint32_t _flag_k = FK_NONE; 2870 uint32_t _flag_a = 0, _flag_b = 0; 2871 uint32_t _itail_tgt = 0; 2872 RECOMP_REGS_LOCALS 2873 RECOMP_ENTER(0x27014E60u); 2874 2875 L_27014E60: 2876 eax = MEM32(ecx + 0x94); /* 0x27014E60: mov eax, dword ptr [ecx + 0x94] */ 2877 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014E66: ret */ 2878 RECOMP_REGS_OUT(); 2879 } 2880 2881 void sub_27014E70(void) { 2882 int _fpu_cmp = 0; 2883 uint32_t _cf = 0; 2884 int _df = 1; 2885 uint32_t _flag_k = FK_NONE; 2886 uint32_t _flag_a = 0, _flag_b = 0; 2887 uint32_t _itail_tgt = 0; 2888 RECOMP_REGS_LOCALS 2889 RECOMP_ENTER(0x27014E70u); 2890 2891 L_27014E70: 2892 PUSH32(esp, ebp); /* 0x27014E70: push ebp */ 2893 ebp = esp; /* 0x27014E71: mov ebp, esp */ 2894 edx = MEM32(ecx + 0x28); /* 0x27014E73: mov edx, dword ptr [ecx + 0x28] */ 2895 eax = MEM32(ebp + 0x8); /* 0x27014E76: mov eax, dword ptr [ebp + 8] */ 2896 MEM32(eax) = edx; /* 0x27014E79: mov dword ptr [eax], edx */ 2897 ecx = MEM32(ecx + 0x2C); /* 0x27014E7B: mov ecx, dword ptr [ecx + 0x2c] */ 2898 MEM32(eax + 0x4) = ecx; /* 0x27014E7E: mov dword ptr [eax + 4], ecx */ 2899 ebp = POP32_VAL(esp); /* 0x27014E81: pop ebp */ 2900 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27014E82: ret 4 */ 2901 RECOMP_REGS_OUT(); 2902 } 2903 2904 void sub_27014E90(void) { 2905 int _fpu_cmp = 0; 2906 uint32_t _cf = 0; 2907 int _df = 1; 2908 uint32_t _flag_k = FK_NONE; 2909 uint32_t _flag_a = 0, _flag_b = 0; 2910 uint32_t _itail_tgt = 0; 2911 RECOMP_REGS_LOCALS 2912 RECOMP_ENTER(0x27014E90u); 2913 2914 L_27014E90: 2915 eax = MEM32(ecx + 0x44); /* 0x27014E90: mov eax, dword ptr [ecx + 0x44] */ 2916 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014E93: ret */ 2917 RECOMP_REGS_OUT(); 2918 } 2919 2920 void sub_27014EA0(void) { 2921 int _fpu_cmp = 0; 2922 uint32_t _cf = 0; 2923 int _df = 1; 2924 uint32_t _flag_k = FK_NONE; 2925 uint32_t _flag_a = 0, _flag_b = 0; 2926 uint32_t _itail_tgt = 0; 2927 RECOMP_REGS_LOCALS 2928 RECOMP_ENTER(0x27014EA0u); 2929 2930 L_27014EA0: 2931 PUSH32(esp, ebp); /* 0x27014EA0: push ebp */ 2932 ebp = esp; /* 0x27014EA1: mov ebp, esp */ 2933 eax = MEM32(ebp + 0x8); /* 0x27014EA3: mov eax, dword ptr [ebp + 8] */ 2934 MEM32(ecx + 0x38) = eax; /* 0x27014EA6: mov dword ptr [ecx + 0x38], eax */ 2935 ebp = POP32_VAL(esp); /* 0x27014EA9: pop ebp */ 2936 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27014EAA: ret 4 */ 2937 RECOMP_REGS_OUT(); 2938 } 2939 2940 void sub_27014EB0(void) { 2941 int _fpu_cmp = 0; 2942 uint32_t _cf = 0; 2943 int _df = 1; 2944 uint32_t _flag_k = FK_NONE; 2945 uint32_t _flag_a = 0, _flag_b = 0; 2946 uint32_t _itail_tgt = 0; 2947 RECOMP_REGS_LOCALS 2948 RECOMP_ENTER(0x27014EB0u); 2949 2950 L_27014EB0: 2951 eax = MEM32(ecx + 0x38); /* 0x27014EB0: mov eax, dword ptr [ecx + 0x38] */ 2952 ecx = MEM32(ecx + 0x30); /* 0x27014EB3: mov ecx, dword ptr [ecx + 0x30] */ 2953 PUSH32(esp, eax); /* 0x27014EB6: push eax */ 2954 PUSH32(esp, ecx); /* 0x27014EB7: push ecx */ 2955 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x27014EB8: call dword ptr [0x270291d0] */ 2956 RECOMP_FLAGS_IN(); 2957 ecx = eax; /* 0x27014EBE: mov ecx, eax */ 2958 RECOMP_ICALL(MEM32(0x270291D4)); /* 0x27014EC0: call dword ptr [0x270291d4] */ 2959 RECOMP_FLAGS_IN(); 2960 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014EC6: ret */ 2961 RECOMP_REGS_OUT(); 2962 } 2963 2964 void sub_27014ED0(void) { 2965 int _fpu_cmp = 0; 2966 uint32_t _cf = 0; 2967 int _df = 1; 2968 uint32_t _flag_k = FK_NONE; 2969 uint32_t _flag_a = 0, _flag_b = 0; 2970 uint32_t _itail_tgt = 0; 2971 RECOMP_REGS_LOCALS 2972 RECOMP_ENTER(0x27014ED0u); 2973 2974 L_27014ED0: 2975 PUSH32(esp, ebp); /* 0x27014ED0: push ebp */ 2976 ebp = esp; /* 0x27014ED1: mov ebp, esp */ 2977 eax = MEM32(ebp + 0x8); /* 0x27014ED3: mov eax, dword ptr [ebp + 8] */ 2978 edx = MEM32(ebp + 0xC); /* 0x27014ED6: mov edx, dword ptr [ebp + 0xc] */ 2979 MEM32(ecx + 0x8) = eax; /* 0x27014ED9: mov dword ptr [ecx + 8], eax */ 2980 MEM32(ecx + 0xC) = edx; /* 0x27014EDC: mov dword ptr [ecx + 0xc], edx */ 2981 ebp = POP32_VAL(esp); /* 0x27014EDF: pop ebp */ 2982 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27014EE0: ret 8 */ 2983 RECOMP_REGS_OUT(); 2984 } 2985 2986 void sub_27014EF0(void) { 2987 int _fpu_cmp = 0; 2988 uint32_t _cf = 0; 2989 int _df = 1; 2990 uint32_t _flag_k = FK_NONE; 2991 uint32_t _flag_a = 0, _flag_b = 0; 2992 uint32_t _itail_tgt = 0; 2993 RECOMP_REGS_LOCALS 2994 RECOMP_ENTER(0x27014EF0u); 2995 2996 L_27014EF0: 2997 PUSH32(esp, ebp); /* 0x27014EF0: push ebp */ 2998 ebp = esp; /* 0x27014EF1: mov ebp, esp */ 2999 eax = MEM32(ebp + 0x8); /* 0x27014EF3: mov eax, dword ptr [ebp + 8] */ 3000 edx = MEM32(ebp + 0xC); /* 0x27014EF6: mov edx, dword ptr [ebp + 0xc] */ 3001 MEM32(ecx) = eax; /* 0x27014EF9: mov dword ptr [ecx], eax */ 3002 MEM32(ecx + 0x4) = edx; /* 0x27014EFB: mov dword ptr [ecx + 4], edx */ 3003 ebp = POP32_VAL(esp); /* 0x27014EFE: pop ebp */ 3004 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27014EFF: ret 8 */ 3005 RECOMP_REGS_OUT(); 3006 } 3007 3008 void sub_27014F10(void) { 3009 int _fpu_cmp = 0; 3010 uint32_t _cf = 0; 3011 int _df = 1; 3012 uint32_t _flag_k = FK_NONE; 3013 uint32_t _flag_a = 0, _flag_b = 0; 3014 uint32_t _itail_tgt = 0; 3015 RECOMP_REGS_LOCALS 3016 RECOMP_ENTER(0x27014F10u); 3017 3018 L_27014F10: 3019 PUSH32(esp, ebp); /* 0x27014F10: push ebp */ 3020 ebp = esp; /* 0x27014F11: mov ebp, esp */ 3021 eax = MEM32(ebp + 0x8); /* 0x27014F13: mov eax, dword ptr [ebp + 8] */ 3022 edx = MEM32(ebp + 0xC); /* 0x27014F16: mov edx, dword ptr [ebp + 0xc] */ 3023 MEM32(ecx + 0x10) = eax; /* 0x27014F19: mov dword ptr [ecx + 0x10], eax */ 3024 MEM32(ecx + 0x14) = edx; /* 0x27014F1C: mov dword ptr [ecx + 0x14], edx */ 3025 ebp = POP32_VAL(esp); /* 0x27014F1F: pop ebp */ 3026 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27014F20: ret 8 */ 3027 RECOMP_REGS_OUT(); 3028 } 3029 3030 void sub_27014F30(void) { 3031 int _fpu_cmp = 0; 3032 uint32_t _cf = 0; 3033 int _df = 1; 3034 uint32_t _flag_k = FK_NONE; 3035 uint32_t _flag_a = 0, _flag_b = 0; 3036 uint32_t _itail_tgt = 0; 3037 RECOMP_REGS_LOCALS 3038 RECOMP_ENTER(0x27014F30u); 3039 3040 L_27014F30: 3041 eax = MEM32(ecx + 0x9C); /* 0x27014F30: mov eax, dword ptr [ecx + 0x9c] */ 3042 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014F36: ret */ 3043 RECOMP_REGS_OUT(); 3044 } 3045 3046 void sub_27014F40(void) { 3047 int _fpu_cmp = 0; 3048 uint32_t _cf = 0; 3049 int _df = 1; 3050 uint32_t _flag_k = FK_NONE; 3051 uint32_t _flag_a = 0, _flag_b = 0; 3052 uint32_t _itail_tgt = 0; 3053 RECOMP_REGS_LOCALS 3054 RECOMP_ENTER(0x27014F40u); 3055 3056 L_27014F40: 3057 eax = 0x27048588u; /* 0x27014F40: mov eax, 0x27048588 */ 3058 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27014F45: ret */ 3059 RECOMP_REGS_OUT(); 3060 } 3061 3062 void sub_27014F50(void) { 3063 int _fpu_cmp = 0; 3064 uint32_t _cf = 0; 3065 int _df = 1; 3066 uint32_t _flag_k = FK_NONE; 3067 uint32_t _flag_a = 0, _flag_b = 0; 3068 uint32_t _itail_tgt = 0; 3069 RECOMP_REGS_LOCALS 3070 RECOMP_ENTER(0x27014F50u); 3071 3072 L_27014F50: 3073 PUSH32(esp, ebp); /* 0x27014F50: push ebp */ 3074 ebp = esp; /* 0x27014F51: mov ebp, esp */ 3075 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3077 esp = esp - 8; /* 0x27014F53: sub esp, 8 */ 3078 _flag_k = FK_CMP; 3079 PUSH32(esp, ebx); /* 0x27014F56: push ebx */ 3080 PUSH32(esp, esi); /* 0x27014F57: push esi */ 3081 PUSH32(esp, edi); /* 0x27014F58: push edi */ 3082 ebx = ecx; /* 0x27014F59: mov ebx, ecx */ 3083 esi = MEM32(ebp + 0x8); /* 0x27014F5B: mov esi, dword ptr [ebp + 8] */ 3084 eax = MEM32(esi); /* 0x27014F5E: mov eax, dword ptr [esi] */ 3085 MEM32(ebx) = eax; /* 0x27014F60: mov dword ptr [ebx], eax */ 3086 ecx = MEM32(esi + 0x4); /* 0x27014F62: mov ecx, dword ptr [esi + 4] */ 3087 MEM32(ebx + 0x4) = ecx; /* 0x27014F65: mov dword ptr [ebx + 4], ecx */ 3088 edx = MEM32(esi + 0x8); /* 0x27014F68: mov edx, dword ptr [esi + 8] */ 3089 MEM32(ebx + 0x8) = edx; /* 0x27014F6B: mov dword ptr [ebx + 8], edx */ 3090 eax = MEM32(esi + 0xC); /* 0x27014F6E: mov eax, dword ptr [esi + 0xc] */ 3091 MEM32(ebx + 0xC) = eax; /* 0x27014F71: mov dword ptr [ebx + 0xc], eax */ 3092 ecx = MEM32(esi + 0x10); /* 0x27014F74: mov ecx, dword ptr [esi + 0x10] */ 3093 MEM32(ebx + 0x10) = ecx; /* 0x27014F77: mov dword ptr [ebx + 0x10], ecx */ 3094 edx = MEM32(esi + 0x14); /* 0x27014F7A: mov edx, dword ptr [esi + 0x14] */ 3095 MEM32(ebx + 0x14) = edx; /* 0x27014F7D: mov dword ptr [ebx + 0x14], edx */ 3096 eax = MEM32(esi + 0x18); /* 0x27014F80: mov eax, dword ptr [esi + 0x18] */ 3097 MEM32(ebx + 0x18) = eax; /* 0x27014F83: mov dword ptr [ebx + 0x18], eax */ 3098 ecx = MEM32(esi + 0x1C); /* 0x27014F86: mov ecx, dword ptr [esi + 0x1c] */ 3099 MEM32(ebx + 0x1C) = ecx; /* 0x27014F89: mov dword ptr [ebx + 0x1c], ecx */ 3100 edx = MEM32(esi + 0x20); /* 0x27014F8C: mov edx, dword ptr [esi + 0x20] */ 3101 MEM32(ebx + 0x20) = edx; /* 0x27014F8F: mov dword ptr [ebx + 0x20], edx */ 3102 eax = MEM32(esi + 0x24); /* 0x27014F92: mov eax, dword ptr [esi + 0x24] */ 3103 MEM32(ebx + 0x24) = eax; /* 0x27014F95: mov dword ptr [ebx + 0x24], eax */ 3104 ecx = MEM32(esi + 0x28); /* 0x27014F98: mov ecx, dword ptr [esi + 0x28] */ 3105 MEM32(ebx + 0x28) = ecx; /* 0x27014F9B: mov dword ptr [ebx + 0x28], ecx */ 3106 edx = MEM32(esi + 0x2C); /* 0x27014F9E: mov edx, dword ptr [esi + 0x2c] */ 3107 MEM32(ebx + 0x2C) = edx; /* 0x27014FA1: mov dword ptr [ebx + 0x2c], edx */ 3108 eax = MEM32(esi + 0x30); /* 0x27014FA4: mov eax, dword ptr [esi + 0x30] */ 3109 MEM32(ebx + 0x30) = eax; /* 0x27014FA7: mov dword ptr [ebx + 0x30], eax */ 3110 ecx = MEM32(esi + 0x34); /* 0x27014FAA: mov ecx, dword ptr [esi + 0x34] */ 3111 MEM32(ebx + 0x34) = ecx; /* 0x27014FAD: mov dword ptr [ebx + 0x34], ecx */ 3112 edx = MEM32(esi + 0x38); /* 0x27014FB0: mov edx, dword ptr [esi + 0x38] */ 3113 MEM32(ebx + 0x38) = edx; /* 0x27014FB3: mov dword ptr [ebx + 0x38], edx */ 3114 eax = MEM32(esi + 0x3C); /* 0x27014FB6: mov eax, dword ptr [esi + 0x3c] */ 3115 MEM32(ebx + 0x3C) = eax; /* 0x27014FB9: mov dword ptr [ebx + 0x3c], eax */ 3116 ecx = MEM32(esi + 0x40); /* 0x27014FBC: mov ecx, dword ptr [esi + 0x40] */ 3117 MEM32(ebx + 0x40) = ecx; /* 0x27014FBF: mov dword ptr [ebx + 0x40], ecx */ 3118 edx = MEM32(esi + 0x44); /* 0x27014FC2: mov edx, dword ptr [esi + 0x44] */ 3119 MEM32(ebx + 0x44) = edx; /* 0x27014FC5: mov dword ptr [ebx + 0x44], edx */ 3120 eax = MEM32(esi + 0x48); /* 0x27014FC8: mov eax, dword ptr [esi + 0x48] */ 3121 MEM32(ebx + 0x48) = eax; /* 0x27014FCB: mov dword ptr [ebx + 0x48], eax */ 3122 ecx = MEM32(esi + 0x4C); /* 0x27014FCE: mov ecx, dword ptr [esi + 0x4c] */ 3123 MEM32(ebx + 0x4C) = ecx; /* 0x27014FD1: mov dword ptr [ebx + 0x4c], ecx */ 3124 edx = MEM32(esi + 0x50); /* 0x27014FD4: mov edx, dword ptr [esi + 0x50] */ 3125 MEM32(ebx + 0x50) = edx; /* 0x27014FD7: mov dword ptr [ebx + 0x50], edx */ 3126 SET_LO8(ecx, MEM8(esi + 0x54)); /* 0x27014FDA: mov cl, byte ptr [esi + 0x54] */ 3127 eax = esi + 0x54; /* 0x27014FDD: lea eax, [esi + 0x54] */ 3128 edi = ebx + 0x54; /* 0x27014FE0: lea edi, [ebx + 0x54] */ 3129 MEM8(edi) = (uint8_t)(LO8(ecx)); /* 0x27014FE3: mov byte ptr [edi], cl */ 3130 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3131 ecx = 0; /* 0x27014FE5: xor ecx, ecx */ 3132 _cf = 0; 3133 _flag_k = FK_TEST; 3134 MEM32(edi + 0x4) = ecx; /* 0x27014FE7: mov dword ptr [edi + 4], ecx */ 3135 MEM32(edi + 0x8) = ecx; /* 0x27014FEA: mov dword ptr [edi + 8], ecx */ 3136 MEM32(edi + 0xC) = ecx; /* 0x27014FED: mov dword ptr [edi + 0xc], ecx */ 3137 edx = MEM32(0x27029070); /* 0x27014FF0: mov edx, dword ptr [0x27029070] */ 3138 ecx = MEM32(eax + 0x8); /* 0x27014FF6: mov ecx, dword ptr [eax + 8] */ 3139 edx = MEM32(edx); /* 0x27014FF9: mov edx, dword ptr [edx] */ 3140 /* cmp edx, ecx */ /* 0x27014FFB: cmp edx, ecx */ 3141 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3143 _flag_k = FK_CMP; 3144 MEM32(ebp + (-0x8)) = eax; /* 0x27014FFD: mov dword ptr [ebp - 8], eax */ 3145 MEM32(ebp + (-0x4)) = ecx; /* 0x27015000: mov dword ptr [ebp - 4], ecx */ 3146 if (CMP_AE(_flag_a, _flag_b)) goto L_2701500A; /* 0x27015003: jae 0x2701500a */ 3147 L_27015005: 3148 MEM32(ebp + (-0x4)) = edx; /* 0x27015005: mov dword ptr [ebp - 4], edx */ 3149 ecx = edx; /* 0x27015008: mov ecx, edx */ 3150 L_2701500A: 3151 /* cmp edi, eax */ /* 0x2701500A: cmp edi, eax */ 3152 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3154 _flag_k = FK_CMP; 3155 if (CMP_NE(_flag_a, _flag_b)) goto L_27015094; /* 0x2701500C: jne 0x27015094 */ 3156 L_27015012: 3157 /* test ecx, ecx */ /* 0x27015012: test ecx, ecx */ 3158 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3159 _cf = 0; 3160 _flag_k = FK_TEST; 3161 MEM32(ebp + 0x8) = edx; /* 0x27015014: mov dword ptr [ebp + 8], edx */ 3162 if (TEST_Z(_flag_a, _flag_b)) goto L_27015022; /* 0x27015017: jbe 0x27015022 */ 3163 L_27015019: 3164 RECOMP_ICALL(MEM32(0x270290A4)); /* 0x27015019: call dword ptr [0x270290a4] */ 3165 RECOMP_FLAGS_IN(); 3166 ecx = MEM32(ebp + (-0x4)); /* 0x2701501F: mov ecx, dword ptr [ebp - 4] */ 3167 L_27015022: 3168 eax = MEM32(edi + 0x8); /* 0x27015022: mov eax, dword ptr [edi + 8] */ 3169 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3171 eax = eax - ecx; /* 0x27015025: sub eax, ecx */ 3172 _flag_k = FK_CMP; 3173 /* cmp eax, MEM32(ebp + 0x8) */ /* 0x27015027: cmp eax, dword ptr [ebp + 8] */ 3174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 3175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3176 _flag_k = FK_CMP; 3177 if (CMP_AE(_flag_a, _flag_b)) goto L_2701502F; /* 0x2701502A: jae 0x2701502f */ 3178 L_2701502C: 3179 MEM32(ebp + 0x8) = eax; /* 0x2701502C: mov dword ptr [ebp + 8], eax */ 3180 L_2701502F: 3181 eax = MEM32(ebp + 0x8); /* 0x2701502F: mov eax, dword ptr [ebp + 8] */ 3182 /* test eax, eax */ /* 0x27015032: test eax, eax */ 3183 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3184 _cf = 0; 3185 _flag_k = FK_TEST; 3186 if (TEST_Z(_flag_a, _flag_b)) goto L_2701511D; /* 0x27015034: jbe 0x2701511d */ 3187 L_2701503A: 3188 ecx = edi; /* 0x2701503A: mov ecx, edi */ 3189 RECOMP_ICALL(MEM32(0x270290B4)); /* 0x2701503C: call dword ptr [0x270290b4] */ 3190 RECOMP_FLAGS_IN(); 3191 eax = MEM32(edi + 0x4); /* 0x27015042: mov eax, dword ptr [edi + 4] */ 3192 ecx = MEM32(ebp + (-0x4)); /* 0x27015045: mov ecx, dword ptr [ebp - 4] */ 3193 edx = MEM32(edi + 0x8); /* 0x27015048: mov edx, dword ptr [edi + 8] */ 3194 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3195 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3196 eax = eax + ecx; /* 0x2701504B: add eax, ecx */ 3197 _flag_k = FK_ADD; 3198 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 3199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3200 edx = edx - MEM32(ebp + 0x8); /* 0x2701504D: sub edx, dword ptr [ebp + 8] */ 3201 _flag_k = FK_CMP; 3202 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 3203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3204 edx = edx - MEM32(ebp + (-0x4)); /* 0x27015050: sub edx, dword ptr [ebp - 4] */ 3205 _flag_k = FK_CMP; 3206 ecx = MEM32(ebp + 0x8); /* 0x27015053: mov ecx, dword ptr [ebp + 8] */ 3207 PUSH32(esp, edx); /* 0x27015056: push edx */ 3208 edx = eax + ecx; /* 0x27015057: lea edx, [eax + ecx] */ 3209 PUSH32(esp, edx); /* 0x2701505A: push edx */ 3210 PUSH32(esp, eax); /* 0x2701505B: push eax */ 3211 RECOMP_ICALL(MEM32(0x270290E4)); /* 0x2701505C: call dword ptr [0x270290e4] */ 3212 RECOMP_FLAGS_IN(); 3213 edx = MEM32(ebp + 0x8); /* 0x27015062: mov edx, dword ptr [ebp + 8] */ 3214 eax = MEM32(edi + 0x8); /* 0x27015065: mov eax, dword ptr [edi + 8] */ 3215 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3216 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3217 esp = esp + 0xCu; /* 0x27015068: add esp, 0xc */ 3218 _flag_k = FK_ADD; 3219 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3221 eax = eax - edx; /* 0x2701506B: sub eax, edx */ 3222 _flag_k = FK_CMP; 3223 PUSH32(esp, 0); /* 0x2701506D: push 0 */ 3224 PUSH32(esp, eax); /* 0x2701506F: push eax */ 3225 ecx = edi; /* 0x27015070: mov ecx, edi */ 3226 MEM32(ebp + 0x8) = eax; /* 0x27015072: mov dword ptr [ebp + 8], eax */ 3227 RECOMP_ICALL(MEM32(0x270290C0)); /* 0x27015075: call dword ptr [0x270290c0] */ 3228 RECOMP_FLAGS_IN(); 3229 /* test LO8(eax), LO8(eax) */ /* 0x2701507B: test al, al */ 3230 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3231 _cf = 0; 3232 _flag_k = FK_NARROW(FK_TEST, 24); 3233 if (TEST_Z(_flag_a, _flag_b)) goto L_2701511D; /* 0x2701507D: je 0x2701511d */ 3234 L_27015083: 3235 eax = MEM32(ebp + 0x8); /* 0x27015083: mov eax, dword ptr [ebp + 8] */ 3236 PUSH32(esp, eax); /* 0x27015086: push eax */ 3237 ecx = edi; /* 0x27015087: mov ecx, edi */ 3238 RECOMP_ICALL(MEM32(0x270290A8)); /* 0x27015089: call dword ptr [0x270290a8] */ 3239 RECOMP_FLAGS_IN(); 3240 goto L_2701511D; /* 0x2701508F: jmp 0x2701511d */ 3241 L_27015094: 3242 /* test ecx, ecx */ /* 0x27015094: test ecx, ecx */ 3243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3244 _cf = 0; 3245 _flag_k = FK_TEST; 3246 if (TEST_Z(_flag_a, _flag_b)) goto L_270150DC; /* 0x27015096: jbe 0x270150dc */ 3247 L_27015098: 3248 /* cmp ecx, MEM32(eax + 0x8) */ /* 0x27015098: cmp ecx, dword ptr [eax + 8] */ 3249 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 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_270150DC; /* 0x2701509B: jne 0x270150dc */ 3253 L_2701509D: 3254 eax = MEM32(eax + 0x4); /* 0x2701509D: mov eax, dword ptr [eax + 4] */ 3255 /* test eax, eax */ /* 0x270150A0: test eax, eax */ 3256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3257 _cf = 0; 3258 _flag_k = FK_TEST; 3259 if (TEST_NZ(_flag_a, _flag_b)) goto L_270150A9; /* 0x270150A2: jne 0x270150a9 */ 3260 L_270150A4: 3261 eax = MEM32(0x27029064); /* 0x270150A4: mov eax, dword ptr [0x27029064] */ 3262 L_270150A9: 3263 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x270150A9: cmp byte ptr [eax - 1], 0xfe */ 3264 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 3265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3266 _flag_k = FK_NARROW(FK_CMP, 24); 3267 if (CMP_AE(_flag_a, _flag_b)) goto L_270150DC; /* 0x270150AD: jae 0x270150dc */ 3268 L_270150AF: 3269 PUSH32(esp, 1); /* 0x270150AF: push 1 */ 3270 ecx = edi; /* 0x270150B1: mov ecx, edi */ 3271 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x270150B3: call dword ptr [0x270290c8] */ 3272 RECOMP_FLAGS_IN(); 3273 ecx = MEM32(ebp + (-0x8)); /* 0x270150B9: mov ecx, dword ptr [ebp - 8] */ 3274 eax = MEM32(ecx + 0x4); /* 0x270150BC: mov eax, dword ptr [ecx + 4] */ 3275 /* test eax, eax */ /* 0x270150BF: test eax, eax */ 3276 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3277 _cf = 0; 3278 _flag_k = FK_TEST; 3279 if (TEST_NZ(_flag_a, _flag_b)) goto L_270150C8; /* 0x270150C1: jne 0x270150c8 */ 3280 L_270150C3: 3281 eax = MEM32(0x27029064); /* 0x270150C3: mov eax, dword ptr [0x27029064] */ 3282 L_270150C8: 3283 MEM32(edi + 0x4) = eax; /* 0x270150C8: mov dword ptr [edi + 4], eax */ 3284 edx = MEM32(ecx + 0x8); /* 0x270150CB: mov edx, dword ptr [ecx + 8] */ 3285 MEM32(edi + 0x8) = edx; /* 0x270150CE: mov dword ptr [edi + 8], edx */ 3286 ecx = MEM32(ecx + 0xC); /* 0x270150D1: mov ecx, dword ptr [ecx + 0xc] */ 3287 MEM32(edi + 0xC) = ecx; /* 0x270150D4: mov dword ptr [edi + 0xc], ecx */ 3288 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 3289 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x270150D7: inc byte ptr [eax - 1] */ 3290 _flag_k = FK_NARROW(FK_INC, 24); 3291 goto L_2701511D; /* 0x270150DA: jmp 0x2701511d */ 3292 L_270150DC: 3293 PUSH32(esp, 1); /* 0x270150DC: push 1 */ 3294 PUSH32(esp, ecx); /* 0x270150DE: push ecx */ 3295 ecx = edi; /* 0x270150DF: mov ecx, edi */ 3296 RECOMP_ICALL(MEM32(0x270290C0)); /* 0x270150E1: call dword ptr [0x270290c0] */ 3297 RECOMP_FLAGS_IN(); 3298 /* test LO8(eax), LO8(eax) */ /* 0x270150E7: test al, al */ 3299 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3300 _cf = 0; 3301 _flag_k = FK_NARROW(FK_TEST, 24); 3302 if (TEST_Z(_flag_a, _flag_b)) goto L_2701511D; /* 0x270150E9: je 0x2701511d */ 3303 L_270150EB: 3304 edx = MEM32(ebp + (-0x8)); /* 0x270150EB: mov edx, dword ptr [ebp - 8] */ 3305 eax = MEM32(edx + 0x4); /* 0x270150EE: mov eax, dword ptr [edx + 4] */ 3306 /* test eax, eax */ /* 0x270150F1: test eax, eax */ 3307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3308 _cf = 0; 3309 _flag_k = FK_TEST; 3310 if (TEST_NZ(_flag_a, _flag_b)) goto L_270150FA; /* 0x270150F3: jne 0x270150fa */ 3311 L_270150F5: 3312 eax = MEM32(0x27029064); /* 0x270150F5: mov eax, dword ptr [0x27029064] */ 3313 L_270150FA: 3314 ecx = MEM32(ebp + (-0x4)); /* 0x270150FA: mov ecx, dword ptr [ebp - 4] */ 3315 edi = MEM32(edi + 0x4); /* 0x270150FD: mov edi, dword ptr [edi + 4] */ 3316 esi = eax; /* 0x27015100: mov esi, eax */ 3317 eax = ecx; /* 0x27015102: mov eax, ecx */ 3318 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x27015104: shr ecx, 2 */ 3319 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3320 ecx = ecx >> 2u; /* 0x27015104: shr ecx, 2 */ 3321 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x27015107: 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; } 3322 ecx = eax; /* 0x27015109: mov ecx, eax */ 3323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3324 ecx = ecx & 3; /* 0x2701510B: and ecx, 3 */ 3325 _cf = 0; 3326 _flag_k = FK_TEST; 3327 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2701510E: 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; } 3328 ecx = MEM32(ebx + 0x58); /* 0x27015110: mov ecx, dword ptr [ebx + 0x58] */ 3329 esi = MEM32(ebp + 0x8); /* 0x27015113: mov esi, dword ptr [ebp + 8] */ 3330 MEM32(ebx + 0x5C) = eax; /* 0x27015116: mov dword ptr [ebx + 0x5c], eax */ 3331 MEM8(ecx + eax) = (uint8_t)(0); /* 0x27015119: mov byte ptr [ecx + eax], 0 */ 3332 L_2701511D: 3333 edx = MEM32(esi + 0x64); /* 0x2701511D: mov edx, dword ptr [esi + 0x64] */ 3334 MEM32(ebx + 0x64) = edx; /* 0x27015120: mov dword ptr [ebx + 0x64], edx */ 3335 eax = MEM32(esi + 0x68); /* 0x27015123: mov eax, dword ptr [esi + 0x68] */ 3336 MEM32(ebx + 0x68) = eax; /* 0x27015126: mov dword ptr [ebx + 0x68], eax */ 3337 SET_LO8(ecx, MEM8(esi + 0x6C)); /* 0x27015129: mov cl, byte ptr [esi + 0x6c] */ 3338 MEM8(ebx + 0x6C) = (uint8_t)(LO8(ecx)); /* 0x2701512C: mov byte ptr [ebx + 0x6c], cl */ 3339 SET_LO8(edx, MEM8(esi + 0x6D)); /* 0x2701512F: mov dl, byte ptr [esi + 0x6d] */ 3340 MEM8(ebx + 0x6D) = (uint8_t)(LO8(edx)); /* 0x27015132: mov byte ptr [ebx + 0x6d], dl */ 3341 SET_LO8(eax, MEM8(esi + 0x6E)); /* 0x27015135: mov al, byte ptr [esi + 0x6e] */ 3342 MEM8(ebx + 0x6E) = (uint8_t)(LO8(eax)); /* 0x27015138: mov byte ptr [ebx + 0x6e], al */ 3343 ecx = MEM32(esi + 0x70); /* 0x2701513B: mov ecx, dword ptr [esi + 0x70] */ 3344 MEM32(ebx + 0x70) = ecx; /* 0x2701513E: mov dword ptr [ebx + 0x70], ecx */ 3345 edx = MEM32(esi + 0x74); /* 0x27015141: mov edx, dword ptr [esi + 0x74] */ 3346 MEM32(ebx + 0x74) = edx; /* 0x27015144: mov dword ptr [ebx + 0x74], edx */ 3347 eax = MEM32(esi + 0x78); /* 0x27015147: mov eax, dword ptr [esi + 0x78] */ 3348 MEM32(ebx + 0x78) = eax; /* 0x2701514A: mov dword ptr [ebx + 0x78], eax */ 3349 ecx = MEM32(esi + 0x7C); /* 0x2701514D: mov ecx, dword ptr [esi + 0x7c] */ 3350 MEM32(ebx + 0x7C) = ecx; /* 0x27015150: mov dword ptr [ebx + 0x7c], ecx */ 3351 edx = MEM32(esi + 0x80); /* 0x27015153: mov edx, dword ptr [esi + 0x80] */ 3352 MEM32(ebx + 0x80) = edx; /* 0x27015159: mov dword ptr [ebx + 0x80], edx */ 3353 eax = MEM32(esi + 0x84); /* 0x2701515F: mov eax, dword ptr [esi + 0x84] */ 3354 MEM32(ebx + 0x84) = eax; /* 0x27015165: mov dword ptr [ebx + 0x84], eax */ 3355 ecx = MEM32(esi + 0x88); /* 0x2701516B: mov ecx, dword ptr [esi + 0x88] */ 3356 MEM32(ebx + 0x88) = ecx; /* 0x27015171: mov dword ptr [ebx + 0x88], ecx */ 3357 edx = MEM32(esi + 0x8C); /* 0x27015177: mov edx, dword ptr [esi + 0x8c] */ 3358 MEM32(ebx + 0x8C) = edx; /* 0x2701517D: mov dword ptr [ebx + 0x8c], edx */ 3359 eax = MEM32(esi + 0x90); /* 0x27015183: mov eax, dword ptr [esi + 0x90] */ 3360 MEM32(ebx + 0x90) = eax; /* 0x27015189: mov dword ptr [ebx + 0x90], eax */ 3361 ecx = MEM32(esi + 0x94); /* 0x2701518F: mov ecx, dword ptr [esi + 0x94] */ 3362 MEM32(ebx + 0x94) = ecx; /* 0x27015195: mov dword ptr [ebx + 0x94], ecx */ 3363 edx = MEM32(esi + 0x98); /* 0x2701519B: mov edx, dword ptr [esi + 0x98] */ 3364 MEM32(ebx + 0x98) = edx; /* 0x270151A1: mov dword ptr [ebx + 0x98], edx */ 3365 eax = MEM32(esi + 0x9C); /* 0x270151A7: mov eax, dword ptr [esi + 0x9c] */ 3366 MEM32(ebx + 0x9C) = eax; /* 0x270151AD: mov dword ptr [ebx + 0x9c], eax */ 3367 ecx = MEM32(esi + 0xA0); /* 0x270151B3: mov ecx, dword ptr [esi + 0xa0] */ 3368 edi = POP32_VAL(esp); /* 0x270151B9: pop edi */ 3369 esi = POP32_VAL(esp); /* 0x270151BA: pop esi */ 3370 MEM32(ebx + 0xA0) = ecx; /* 0x270151BB: mov dword ptr [ebx + 0xa0], ecx */ 3371 eax = ebx; /* 0x270151C1: mov eax, ebx */ 3372 ebx = POP32_VAL(esp); /* 0x270151C3: pop ebx */ 3373 esp = ebp; /* 0x270151C4: mov esp, ebp */ 3374 ebp = POP32_VAL(esp); /* 0x270151C6: pop ebp */ 3375 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270151C7: ret 4 */ 3376 RECOMP_REGS_OUT(); 3377 } 3378 3379 void sub_2701511D(void) { 3380 int _fpu_cmp = 0; 3381 uint32_t _cf = 0; 3382 int _df = 1; 3383 uint32_t _flag_k = FK_NONE; 3384 uint32_t _flag_a = 0, _flag_b = 0; 3385 uint32_t _itail_tgt = 0; 3386 RECOMP_REGS_LOCALS 3387 RECOMP_ENTER(0x2701511Du); 3388 3389 L_2701511D: 3390 edx = MEM32(esi + 0x64); /* 0x2701511D: mov edx, dword ptr [esi + 0x64] */ 3391 MEM32(ebx + 0x64) = edx; /* 0x27015120: mov dword ptr [ebx + 0x64], edx */ 3392 eax = MEM32(esi + 0x68); /* 0x27015123: mov eax, dword ptr [esi + 0x68] */ 3393 MEM32(ebx + 0x68) = eax; /* 0x27015126: mov dword ptr [ebx + 0x68], eax */ 3394 SET_LO8(ecx, MEM8(esi + 0x6C)); /* 0x27015129: mov cl, byte ptr [esi + 0x6c] */ 3395 MEM8(ebx + 0x6C) = (uint8_t)(LO8(ecx)); /* 0x2701512C: mov byte ptr [ebx + 0x6c], cl */ 3396 SET_LO8(edx, MEM8(esi + 0x6D)); /* 0x2701512F: mov dl, byte ptr [esi + 0x6d] */ 3397 MEM8(ebx + 0x6D) = (uint8_t)(LO8(edx)); /* 0x27015132: mov byte ptr [ebx + 0x6d], dl */ 3398 SET_LO8(eax, MEM8(esi + 0x6E)); /* 0x27015135: mov al, byte ptr [esi + 0x6e] */ 3399 MEM8(ebx + 0x6E) = (uint8_t)(LO8(eax)); /* 0x27015138: mov byte ptr [ebx + 0x6e], al */ 3400 ecx = MEM32(esi + 0x70); /* 0x2701513B: mov ecx, dword ptr [esi + 0x70] */ 3401 MEM32(ebx + 0x70) = ecx; /* 0x2701513E: mov dword ptr [ebx + 0x70], ecx */ 3402 edx = MEM32(esi + 0x74); /* 0x27015141: mov edx, dword ptr [esi + 0x74] */ 3403 MEM32(ebx + 0x74) = edx; /* 0x27015144: mov dword ptr [ebx + 0x74], edx */ 3404 eax = MEM32(esi + 0x78); /* 0x27015147: mov eax, dword ptr [esi + 0x78] */ 3405 MEM32(ebx + 0x78) = eax; /* 0x2701514A: mov dword ptr [ebx + 0x78], eax */ 3406 ecx = MEM32(esi + 0x7C); /* 0x2701514D: mov ecx, dword ptr [esi + 0x7c] */ 3407 MEM32(ebx + 0x7C) = ecx; /* 0x27015150: mov dword ptr [ebx + 0x7c], ecx */ 3408 edx = MEM32(esi + 0x80); /* 0x27015153: mov edx, dword ptr [esi + 0x80] */ 3409 MEM32(ebx + 0x80) = edx; /* 0x27015159: mov dword ptr [ebx + 0x80], edx */ 3410 eax = MEM32(esi + 0x84); /* 0x2701515F: mov eax, dword ptr [esi + 0x84] */ 3411 MEM32(ebx + 0x84) = eax; /* 0x27015165: mov dword ptr [ebx + 0x84], eax */ 3412 ecx = MEM32(esi + 0x88); /* 0x2701516B: mov ecx, dword ptr [esi + 0x88] */ 3413 MEM32(ebx + 0x88) = ecx; /* 0x27015171: mov dword ptr [ebx + 0x88], ecx */ 3414 edx = MEM32(esi + 0x8C); /* 0x27015177: mov edx, dword ptr [esi + 0x8c] */ 3415 MEM32(ebx + 0x8C) = edx; /* 0x2701517D: mov dword ptr [ebx + 0x8c], edx */ 3416 eax = MEM32(esi + 0x90); /* 0x27015183: mov eax, dword ptr [esi + 0x90] */ 3417 MEM32(ebx + 0x90) = eax; /* 0x27015189: mov dword ptr [ebx + 0x90], eax */ 3418 ecx = MEM32(esi + 0x94); /* 0x2701518F: mov ecx, dword ptr [esi + 0x94] */ 3419 MEM32(ebx + 0x94) = ecx; /* 0x27015195: mov dword ptr [ebx + 0x94], ecx */ 3420 edx = MEM32(esi + 0x98); /* 0x2701519B: mov edx, dword ptr [esi + 0x98] */ 3421 MEM32(ebx + 0x98) = edx; /* 0x270151A1: mov dword ptr [ebx + 0x98], edx */ 3422 eax = MEM32(esi + 0x9C); /* 0x270151A7: mov eax, dword ptr [esi + 0x9c] */ 3423 MEM32(ebx + 0x9C) = eax; /* 0x270151AD: mov dword ptr [ebx + 0x9c], eax */ 3424 ecx = MEM32(esi + 0xA0); /* 0x270151B3: mov ecx, dword ptr [esi + 0xa0] */ 3425 edi = POP32_VAL(esp); /* 0x270151B9: pop edi */ 3426 esi = POP32_VAL(esp); /* 0x270151BA: pop esi */ 3427 MEM32(ebx + 0xA0) = ecx; /* 0x270151BB: mov dword ptr [ebx + 0xa0], ecx */ 3428 eax = ebx; /* 0x270151C1: mov eax, ebx */ 3429 ebx = POP32_VAL(esp); /* 0x270151C3: pop ebx */ 3430 esp = ebp; /* 0x270151C4: mov esp, ebp */ 3431 ebp = POP32_VAL(esp); /* 0x270151C6: pop ebp */ 3432 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270151C7: ret 4 */ 3433 RECOMP_REGS_OUT(); 3434 } 3435 3436 void sub_270151D0(void) { 3437 int _fpu_cmp = 0; 3438 uint32_t _cf = 0; 3439 int _df = 1; 3440 uint32_t _flag_k = FK_NONE; 3441 uint32_t _flag_a = 0, _flag_b = 0; 3442 uint32_t _itail_tgt = 0; 3443 RECOMP_REGS_LOCALS 3444 RECOMP_ENTER(0x270151D0u); 3445 3446 L_270151D0: 3447 PUSH32(esp, ebp); /* 0x270151D0: push ebp */ 3448 ebp = esp; /* 0x270151D1: mov ebp, esp */ 3449 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3451 esp = esp - 8; /* 0x270151D3: sub esp, 8 */ 3452 _flag_k = FK_CMP; 3453 PUSH32(esp, ebx); /* 0x270151D6: push ebx */ 3454 PUSH32(esp, esi); /* 0x270151D7: push esi */ 3455 PUSH32(esp, edi); /* 0x270151D8: push edi */ 3456 ebx = ecx; /* 0x270151D9: mov ebx, ecx */ 3457 esi = MEM32(ebp + 0x8); /* 0x270151DB: mov esi, dword ptr [ebp + 8] */ 3458 eax = MEM32(esi); /* 0x270151DE: mov eax, dword ptr [esi] */ 3459 MEM32(ebx) = eax; /* 0x270151E0: mov dword ptr [ebx], eax */ 3460 ecx = MEM32(esi + 0x4); /* 0x270151E2: mov ecx, dword ptr [esi + 4] */ 3461 MEM32(ebx + 0x4) = ecx; /* 0x270151E5: mov dword ptr [ebx + 4], ecx */ 3462 edx = MEM32(esi + 0x8); /* 0x270151E8: mov edx, dword ptr [esi + 8] */ 3463 MEM32(ebx + 0x8) = edx; /* 0x270151EB: mov dword ptr [ebx + 8], edx */ 3464 eax = MEM32(esi + 0xC); /* 0x270151EE: mov eax, dword ptr [esi + 0xc] */ 3465 MEM32(ebx + 0xC) = eax; /* 0x270151F1: mov dword ptr [ebx + 0xc], eax */ 3466 ecx = MEM32(esi + 0x10); /* 0x270151F4: mov ecx, dword ptr [esi + 0x10] */ 3467 MEM32(ebx + 0x10) = ecx; /* 0x270151F7: mov dword ptr [ebx + 0x10], ecx */ 3468 edx = MEM32(esi + 0x14); /* 0x270151FA: mov edx, dword ptr [esi + 0x14] */ 3469 MEM32(ebx + 0x14) = edx; /* 0x270151FD: mov dword ptr [ebx + 0x14], edx */ 3470 eax = MEM32(esi + 0x18); /* 0x27015200: mov eax, dword ptr [esi + 0x18] */ 3471 MEM32(ebx + 0x18) = eax; /* 0x27015203: mov dword ptr [ebx + 0x18], eax */ 3472 ecx = MEM32(esi + 0x1C); /* 0x27015206: mov ecx, dword ptr [esi + 0x1c] */ 3473 MEM32(ebx + 0x1C) = ecx; /* 0x27015209: mov dword ptr [ebx + 0x1c], ecx */ 3474 edx = MEM32(esi + 0x20); /* 0x2701520C: mov edx, dword ptr [esi + 0x20] */ 3475 MEM32(ebx + 0x20) = edx; /* 0x2701520F: mov dword ptr [ebx + 0x20], edx */ 3476 eax = MEM32(esi + 0x24); /* 0x27015212: mov eax, dword ptr [esi + 0x24] */ 3477 MEM32(ebx + 0x24) = eax; /* 0x27015215: mov dword ptr [ebx + 0x24], eax */ 3478 ecx = MEM32(esi + 0x28); /* 0x27015218: mov ecx, dword ptr [esi + 0x28] */ 3479 MEM32(ebx + 0x28) = ecx; /* 0x2701521B: mov dword ptr [ebx + 0x28], ecx */ 3480 edx = MEM32(esi + 0x2C); /* 0x2701521E: mov edx, dword ptr [esi + 0x2c] */ 3481 MEM32(ebx + 0x2C) = edx; /* 0x27015221: mov dword ptr [ebx + 0x2c], edx */ 3482 eax = MEM32(esi + 0x30); /* 0x27015224: mov eax, dword ptr [esi + 0x30] */ 3483 MEM32(ebx + 0x30) = eax; /* 0x27015227: mov dword ptr [ebx + 0x30], eax */ 3484 ecx = MEM32(esi + 0x34); /* 0x2701522A: mov ecx, dword ptr [esi + 0x34] */ 3485 MEM32(ebx + 0x34) = ecx; /* 0x2701522D: mov dword ptr [ebx + 0x34], ecx */ 3486 edx = MEM32(esi + 0x38); /* 0x27015230: mov edx, dword ptr [esi + 0x38] */ 3487 MEM32(ebx + 0x38) = edx; /* 0x27015233: mov dword ptr [ebx + 0x38], edx */ 3488 eax = MEM32(esi + 0x3C); /* 0x27015236: mov eax, dword ptr [esi + 0x3c] */ 3489 MEM32(ebx + 0x3C) = eax; /* 0x27015239: mov dword ptr [ebx + 0x3c], eax */ 3490 ecx = MEM32(esi + 0x40); /* 0x2701523C: mov ecx, dword ptr [esi + 0x40] */ 3491 MEM32(ebx + 0x40) = ecx; /* 0x2701523F: mov dword ptr [ebx + 0x40], ecx */ 3492 edx = MEM32(esi + 0x44); /* 0x27015242: mov edx, dword ptr [esi + 0x44] */ 3493 MEM32(ebx + 0x44) = edx; /* 0x27015245: mov dword ptr [ebx + 0x44], edx */ 3494 eax = MEM32(esi + 0x48); /* 0x27015248: mov eax, dword ptr [esi + 0x48] */ 3495 MEM32(ebx + 0x48) = eax; /* 0x2701524B: mov dword ptr [ebx + 0x48], eax */ 3496 ecx = MEM32(esi + 0x4C); /* 0x2701524E: mov ecx, dword ptr [esi + 0x4c] */ 3497 MEM32(ebx + 0x4C) = ecx; /* 0x27015251: mov dword ptr [ebx + 0x4c], ecx */ 3498 edx = MEM32(esi + 0x50); /* 0x27015254: mov edx, dword ptr [esi + 0x50] */ 3499 eax = esi + 0x54; /* 0x27015257: lea eax, [esi + 0x54] */ 3500 MEM32(ebx + 0x50) = edx; /* 0x2701525A: mov dword ptr [ebx + 0x50], edx */ 3501 ecx = MEM32(0x27029070); /* 0x2701525D: mov ecx, dword ptr [0x27029070] */ 3502 edx = MEM32(eax + 0x8); /* 0x27015263: mov edx, dword ptr [eax + 8] */ 3503 ecx = MEM32(ecx); /* 0x27015266: mov ecx, dword ptr [ecx] */ 3504 MEM32(ebp + (-0x8)) = eax; /* 0x27015268: mov dword ptr [ebp - 8], eax */ 3505 eax = edx; /* 0x2701526B: mov eax, edx */ 3506 /* cmp ecx, eax */ /* 0x2701526D: cmp ecx, eax */ 3507 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3509 _flag_k = FK_CMP; 3510 edi = ebx + 0x54; /* 0x2701526F: lea edi, [ebx + 0x54] */ 3511 MEM32(ebp + (-0x4)) = eax; /* 0x27015272: mov dword ptr [ebp - 4], eax */ 3512 if (CMP_AE(_flag_a, _flag_b)) goto L_2701527C; /* 0x27015275: jae 0x2701527c */ 3513 L_27015277: 3514 MEM32(ebp + (-0x4)) = ecx; /* 0x27015277: mov dword ptr [ebp - 4], ecx */ 3515 eax = ecx; /* 0x2701527A: mov eax, ecx */ 3516 L_2701527C: 3517 /* cmp edi, MEM32(ebp + (-0x8)) */ /* 0x2701527C: cmp edi, dword ptr [ebp - 8] */ 3518 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x8))); 3519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3520 _flag_k = FK_CMP; 3521 if (CMP_NE(_flag_a, _flag_b)) goto L_27015308; /* 0x2701527F: jne 0x27015308 */ 3522 L_27015285: 3523 MEM32(ebp + 0x8) = ecx; /* 0x27015285: mov dword ptr [ebp + 8], ecx */ 3524 /* cmp MEM32(edi + 0x8), eax */ /* 0x27015288: cmp dword ptr [edi + 8], eax */ 3525 _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(eax); 3526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3527 _flag_k = FK_CMP; 3528 if (CMP_AE(_flag_a, _flag_b)) goto L_27015296; /* 0x2701528B: jae 0x27015296 */ 3529 L_2701528D: 3530 RECOMP_ICALL(MEM32(0x270290A4)); /* 0x2701528D: call dword ptr [0x270290a4] */ 3531 RECOMP_FLAGS_IN(); 3532 eax = MEM32(ebp + (-0x4)); /* 0x27015293: mov eax, dword ptr [ebp - 4] */ 3533 L_27015296: 3534 ecx = MEM32(edi + 0x8); /* 0x27015296: mov ecx, dword ptr [edi + 8] */ 3535 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3537 ecx = ecx - eax; /* 0x27015299: sub ecx, eax */ 3538 _flag_k = FK_CMP; 3539 /* cmp ecx, MEM32(ebp + 0x8) */ /* 0x2701529B: cmp ecx, dword ptr [ebp + 8] */ 3540 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 3541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3542 _flag_k = FK_CMP; 3543 if (CMP_AE(_flag_a, _flag_b)) goto L_270152A3; /* 0x2701529E: jae 0x270152a3 */ 3544 L_270152A0: 3545 MEM32(ebp + 0x8) = ecx; /* 0x270152A0: mov dword ptr [ebp + 8], ecx */ 3546 L_270152A3: 3547 eax = MEM32(ebp + 0x8); /* 0x270152A3: mov eax, dword ptr [ebp + 8] */ 3548 /* test eax, eax */ /* 0x270152A6: test eax, eax */ 3549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3550 _cf = 0; 3551 _flag_k = FK_TEST; 3552 if (TEST_Z(_flag_a, _flag_b)) goto L_270153B8; /* 0x270152A8: jbe 0x270153b8 */ 3553 L_270152AE: 3554 ecx = edi; /* 0x270152AE: mov ecx, edi */ 3555 RECOMP_ICALL(MEM32(0x270290B4)); /* 0x270152B0: call dword ptr [0x270290b4] */ 3556 RECOMP_FLAGS_IN(); 3557 edx = MEM32(edi + 0x4); /* 0x270152B6: mov edx, dword ptr [edi + 4] */ 3558 eax = MEM32(ebp + (-0x4)); /* 0x270152B9: mov eax, dword ptr [ebp - 4] */ 3559 ecx = MEM32(edi + 0x8); /* 0x270152BC: mov ecx, dword ptr [edi + 8] */ 3560 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3561 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3562 eax = eax + edx; /* 0x270152BF: add eax, edx */ 3563 _flag_k = FK_ADD; 3564 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 3565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3566 ecx = ecx - MEM32(ebp + 0x8); /* 0x270152C1: sub ecx, dword ptr [ebp + 8] */ 3567 _flag_k = FK_CMP; 3568 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 3569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3570 ecx = ecx - MEM32(ebp + (-0x4)); /* 0x270152C4: sub ecx, dword ptr [ebp - 4] */ 3571 _flag_k = FK_CMP; 3572 edx = MEM32(ebp + 0x8); /* 0x270152C7: mov edx, dword ptr [ebp + 8] */ 3573 PUSH32(esp, ecx); /* 0x270152CA: push ecx */ 3574 ecx = eax + edx; /* 0x270152CB: lea ecx, [eax + edx] */ 3575 PUSH32(esp, ecx); /* 0x270152CE: push ecx */ 3576 PUSH32(esp, eax); /* 0x270152CF: push eax */ 3577 RECOMP_ICALL(MEM32(0x270290E4)); /* 0x270152D0: call dword ptr [0x270290e4] */ 3578 RECOMP_FLAGS_IN(); 3579 edx = MEM32(ebp + 0x8); /* 0x270152D6: mov edx, dword ptr [ebp + 8] */ 3580 eax = MEM32(edi + 0x8); /* 0x270152D9: mov eax, dword ptr [edi + 8] */ 3581 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3582 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3583 esp = esp + 0xCu; /* 0x270152DC: add esp, 0xc */ 3584 _flag_k = FK_ADD; 3585 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3587 eax = eax - edx; /* 0x270152DF: sub eax, edx */ 3588 _flag_k = FK_CMP; 3589 PUSH32(esp, 0); /* 0x270152E1: push 0 */ 3590 PUSH32(esp, eax); /* 0x270152E3: push eax */ 3591 ecx = edi; /* 0x270152E4: mov ecx, edi */ 3592 MEM32(ebp + 0x8) = eax; /* 0x270152E6: mov dword ptr [ebp + 8], eax */ 3593 RECOMP_ICALL(MEM32(0x270290C0)); /* 0x270152E9: call dword ptr [0x270290c0] */ 3594 RECOMP_FLAGS_IN(); 3595 /* test LO8(eax), LO8(eax) */ /* 0x270152EF: test al, al */ 3596 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3597 _cf = 0; 3598 _flag_k = FK_NARROW(FK_TEST, 24); 3599 if (TEST_Z(_flag_a, _flag_b)) goto L_270153B8; /* 0x270152F1: je 0x270153b8 */ 3600 L_270152F7: 3601 edx = MEM32(ebp + 0x8); /* 0x270152F7: mov edx, dword ptr [ebp + 8] */ 3602 PUSH32(esp, edx); /* 0x270152FA: push edx */ 3603 ecx = edi; /* 0x270152FB: mov ecx, edi */ 3604 RECOMP_ICALL(MEM32(0x270290A8)); /* 0x270152FD: call dword ptr [0x270290a8] */ 3605 RECOMP_FLAGS_IN(); 3606 goto L_270153B8; /* 0x27015303: jmp 0x270153b8 */ 3607 L_27015308: 3608 /* test eax, eax */ /* 0x27015308: test eax, eax */ 3609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3610 _cf = 0; 3611 _flag_k = FK_TEST; 3612 if (TEST_Z(_flag_a, _flag_b)) goto L_27015377; /* 0x2701530A: jbe 0x27015377 */ 3613 L_2701530C: 3614 /* cmp eax, edx */ /* 0x2701530C: cmp eax, edx */ 3615 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3617 _flag_k = FK_CMP; 3618 if (CMP_NE(_flag_a, _flag_b)) goto L_27015377; /* 0x2701530E: jne 0x27015377 */ 3619 L_27015310: 3620 ecx = MEM32(ebp + (-0x8)); /* 0x27015310: mov ecx, dword ptr [ebp - 8] */ 3621 edx = MEM32(ecx + 0x4); /* 0x27015313: mov edx, dword ptr [ecx + 4] */ 3622 /* test edx, edx */ /* 0x27015316: test edx, edx */ 3623 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3624 _cf = 0; 3625 _flag_k = FK_TEST; 3626 if (TEST_NZ(_flag_a, _flag_b)) goto L_27015320; /* 0x27015318: jne 0x27015320 */ 3627 L_2701531A: 3628 edx = MEM32(0x27029064); /* 0x2701531A: mov edx, dword ptr [0x27029064] */ 3629 L_27015320: 3630 /* cmp MEM8(edx + (-0x1)), 0xFEu */ /* 0x27015320: cmp byte ptr [edx - 1], 0xfe */ 3631 _flag_a = (uint32_t)(MEM8(edx + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 3632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3633 _flag_k = FK_NARROW(FK_CMP, 24); 3634 if (CMP_AE(_flag_a, _flag_b)) goto L_27015377; /* 0x27015324: jae 0x27015377 */ 3635 L_27015326: 3636 eax = MEM32(edi + 0x4); /* 0x27015326: mov eax, dword ptr [edi + 4] */ 3637 /* test eax, eax */ /* 0x27015329: test eax, eax */ 3638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3639 _cf = 0; 3640 _flag_k = FK_TEST; 3641 if (TEST_Z(_flag_a, _flag_b)) goto L_2701534C; /* 0x2701532B: je 0x2701534c */ 3642 L_2701532D: 3643 edx = eax + (-0x1); /* 0x2701532D: lea edx, [eax - 1] */ 3644 SET_LO8(eax, MEM8(edx)); /* 0x27015330: mov al, byte ptr [edx] */ 3645 /* test LO8(eax), LO8(eax) */ /* 0x27015332: test al, al */ 3646 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3647 _cf = 0; 3648 _flag_k = FK_NARROW(FK_TEST, 24); 3649 if (TEST_Z(_flag_a, _flag_b)) goto L_27015340; /* 0x27015334: je 0x27015340 */ 3650 L_27015336: 3651 /* cmp LO8(eax), 0xFFu */ /* 0x27015336: cmp al, 0xff */ 3652 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3654 _flag_k = FK_NARROW(FK_CMP, 24); 3655 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015340; /* 0x27015338: je 0x27015340 */ 3656 L_2701533A: 3657 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3658 SET_LO8(eax, LO8(eax) - 1); /* 0x2701533A: dec al */ 3659 _flag_k = FK_NARROW(FK_DEC, 24); 3660 MEM8(edx) = (uint8_t)(LO8(eax)); /* 0x2701533C: mov byte ptr [edx], al */ 3661 goto L_2701534C; /* 0x2701533E: jmp 0x2701534c */ 3662 L_27015340: 3663 PUSH32(esp, edx); /* 0x27015340: push edx */ 3664 RECOMP_ICALL(0x27026DA4u); /* 0x27015341: call 0x27026da4 */ /* not lifted */ 3665 RECOMP_FLAGS_IN(); 3666 ecx = MEM32(ebp + (-0x8)); /* 0x27015346: mov ecx, dword ptr [ebp - 8] */ 3667 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3669 esp = esp + 4; /* 0x27015349: add esp, 4 */ 3670 _flag_k = FK_ADD; 3671 L_2701534C: 3672 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3673 edx = 0; /* 0x2701534C: xor edx, edx */ 3674 _cf = 0; 3675 _flag_k = FK_TEST; 3676 MEM32(edi + 0x4) = edx; /* 0x2701534E: mov dword ptr [edi + 4], edx */ 3677 MEM32(edi + 0x8) = edx; /* 0x27015351: mov dword ptr [edi + 8], edx */ 3678 MEM32(edi + 0xC) = edx; /* 0x27015354: mov dword ptr [edi + 0xc], edx */ 3679 eax = MEM32(ecx + 0x4); /* 0x27015357: mov eax, dword ptr [ecx + 4] */ 3680 /* cmp eax, edx */ /* 0x2701535A: cmp eax, edx */ 3681 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3683 _flag_k = FK_CMP; 3684 if (CMP_NE(_flag_a, _flag_b)) goto L_27015363; /* 0x2701535C: jne 0x27015363 */ 3685 L_2701535E: 3686 eax = MEM32(0x27029064); /* 0x2701535E: mov eax, dword ptr [0x27029064] */ 3687 L_27015363: 3688 MEM32(edi + 0x4) = eax; /* 0x27015363: mov dword ptr [edi + 4], eax */ 3689 edx = MEM32(ecx + 0x8); /* 0x27015366: mov edx, dword ptr [ecx + 8] */ 3690 MEM32(edi + 0x8) = edx; /* 0x27015369: mov dword ptr [edi + 8], edx */ 3691 ecx = MEM32(ecx + 0xC); /* 0x2701536C: mov ecx, dword ptr [ecx + 0xc] */ 3692 MEM32(edi + 0xC) = ecx; /* 0x2701536F: mov dword ptr [edi + 0xc], ecx */ 3693 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 3694 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x27015372: inc byte ptr [eax - 1] */ 3695 _flag_k = FK_NARROW(FK_INC, 24); 3696 goto L_270153B8; /* 0x27015375: jmp 0x270153b8 */ 3697 L_27015377: 3698 PUSH32(esp, 1); /* 0x27015377: push 1 */ 3699 PUSH32(esp, eax); /* 0x27015379: push eax */ 3700 ecx = edi; /* 0x2701537A: mov ecx, edi */ 3701 RECOMP_ICALL(MEM32(0x270290C0)); /* 0x2701537C: call dword ptr [0x270290c0] */ 3702 RECOMP_FLAGS_IN(); 3703 /* test LO8(eax), LO8(eax) */ /* 0x27015382: test al, al */ 3704 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3705 _cf = 0; 3706 _flag_k = FK_NARROW(FK_TEST, 24); 3707 if (TEST_Z(_flag_a, _flag_b)) goto L_270153B8; /* 0x27015384: je 0x270153b8 */ 3708 L_27015386: 3709 edx = MEM32(ebp + (-0x8)); /* 0x27015386: mov edx, dword ptr [ebp - 8] */ 3710 eax = MEM32(edx + 0x4); /* 0x27015389: mov eax, dword ptr [edx + 4] */ 3711 /* test eax, eax */ /* 0x2701538C: test eax, eax */ 3712 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3713 _cf = 0; 3714 _flag_k = FK_TEST; 3715 if (TEST_NZ(_flag_a, _flag_b)) goto L_27015395; /* 0x2701538E: jne 0x27015395 */ 3716 L_27015390: 3717 eax = MEM32(0x27029064); /* 0x27015390: mov eax, dword ptr [0x27029064] */ 3718 L_27015395: 3719 ecx = MEM32(ebp + (-0x4)); /* 0x27015395: mov ecx, dword ptr [ebp - 4] */ 3720 edi = MEM32(edi + 0x4); /* 0x27015398: mov edi, dword ptr [edi + 4] */ 3721 esi = eax; /* 0x2701539B: mov esi, eax */ 3722 eax = ecx; /* 0x2701539D: mov eax, ecx */ 3723 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2701539F: shr ecx, 2 */ 3724 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3725 ecx = ecx >> 2u; /* 0x2701539F: shr ecx, 2 */ 3726 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x270153A2: 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; } 3727 ecx = eax; /* 0x270153A4: mov ecx, eax */ 3728 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3729 ecx = ecx & 3; /* 0x270153A6: and ecx, 3 */ 3730 _cf = 0; 3731 _flag_k = FK_TEST; 3732 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x270153A9: 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; } 3733 ecx = MEM32(ebx + 0x58); /* 0x270153AB: mov ecx, dword ptr [ebx + 0x58] */ 3734 esi = MEM32(ebp + 0x8); /* 0x270153AE: mov esi, dword ptr [ebp + 8] */ 3735 MEM32(ebx + 0x5C) = eax; /* 0x270153B1: mov dword ptr [ebx + 0x5c], eax */ 3736 MEM8(ecx + eax) = (uint8_t)(0); /* 0x270153B4: mov byte ptr [ecx + eax], 0 */ 3737 L_270153B8: 3738 edx = MEM32(esi + 0x64); /* 0x270153B8: mov edx, dword ptr [esi + 0x64] */ 3739 MEM32(ebx + 0x64) = edx; /* 0x270153BB: mov dword ptr [ebx + 0x64], edx */ 3740 eax = MEM32(esi + 0x68); /* 0x270153BE: mov eax, dword ptr [esi + 0x68] */ 3741 MEM32(ebx + 0x68) = eax; /* 0x270153C1: mov dword ptr [ebx + 0x68], eax */ 3742 SET_LO8(ecx, MEM8(esi + 0x6C)); /* 0x270153C4: mov cl, byte ptr [esi + 0x6c] */ 3743 MEM8(ebx + 0x6C) = (uint8_t)(LO8(ecx)); /* 0x270153C7: mov byte ptr [ebx + 0x6c], cl */ 3744 SET_LO8(edx, MEM8(esi + 0x6D)); /* 0x270153CA: mov dl, byte ptr [esi + 0x6d] */ 3745 MEM8(ebx + 0x6D) = (uint8_t)(LO8(edx)); /* 0x270153CD: mov byte ptr [ebx + 0x6d], dl */ 3746 SET_LO8(eax, MEM8(esi + 0x6E)); /* 0x270153D0: mov al, byte ptr [esi + 0x6e] */ 3747 MEM8(ebx + 0x6E) = (uint8_t)(LO8(eax)); /* 0x270153D3: mov byte ptr [ebx + 0x6e], al */ 3748 ecx = MEM32(esi + 0x70); /* 0x270153D6: mov ecx, dword ptr [esi + 0x70] */ 3749 MEM32(ebx + 0x70) = ecx; /* 0x270153D9: mov dword ptr [ebx + 0x70], ecx */ 3750 edx = MEM32(esi + 0x74); /* 0x270153DC: mov edx, dword ptr [esi + 0x74] */ 3751 MEM32(ebx + 0x74) = edx; /* 0x270153DF: mov dword ptr [ebx + 0x74], edx */ 3752 eax = MEM32(esi + 0x78); /* 0x270153E2: mov eax, dword ptr [esi + 0x78] */ 3753 MEM32(ebx + 0x78) = eax; /* 0x270153E5: mov dword ptr [ebx + 0x78], eax */ 3754 ecx = MEM32(esi + 0x7C); /* 0x270153E8: mov ecx, dword ptr [esi + 0x7c] */ 3755 MEM32(ebx + 0x7C) = ecx; /* 0x270153EB: mov dword ptr [ebx + 0x7c], ecx */ 3756 edx = MEM32(esi + 0x80); /* 0x270153EE: mov edx, dword ptr [esi + 0x80] */ 3757 MEM32(ebx + 0x80) = edx; /* 0x270153F4: mov dword ptr [ebx + 0x80], edx */ 3758 eax = MEM32(esi + 0x84); /* 0x270153FA: mov eax, dword ptr [esi + 0x84] */ 3759 MEM32(ebx + 0x84) = eax; /* 0x27015400: mov dword ptr [ebx + 0x84], eax */ 3760 ecx = MEM32(esi + 0x88); /* 0x27015406: mov ecx, dword ptr [esi + 0x88] */ 3761 MEM32(ebx + 0x88) = ecx; /* 0x2701540C: mov dword ptr [ebx + 0x88], ecx */ 3762 edx = MEM32(esi + 0x8C); /* 0x27015412: mov edx, dword ptr [esi + 0x8c] */ 3763 MEM32(ebx + 0x8C) = edx; /* 0x27015418: mov dword ptr [ebx + 0x8c], edx */ 3764 eax = MEM32(esi + 0x90); /* 0x2701541E: mov eax, dword ptr [esi + 0x90] */ 3765 MEM32(ebx + 0x90) = eax; /* 0x27015424: mov dword ptr [ebx + 0x90], eax */ 3766 ecx = MEM32(esi + 0x94); /* 0x2701542A: mov ecx, dword ptr [esi + 0x94] */ 3767 MEM32(ebx + 0x94) = ecx; /* 0x27015430: mov dword ptr [ebx + 0x94], ecx */ 3768 edx = MEM32(esi + 0x98); /* 0x27015436: mov edx, dword ptr [esi + 0x98] */ 3769 MEM32(ebx + 0x98) = edx; /* 0x2701543C: mov dword ptr [ebx + 0x98], edx */ 3770 eax = MEM32(esi + 0x9C); /* 0x27015442: mov eax, dword ptr [esi + 0x9c] */ 3771 MEM32(ebx + 0x9C) = eax; /* 0x27015448: mov dword ptr [ebx + 0x9c], eax */ 3772 ecx = MEM32(esi + 0xA0); /* 0x2701544E: mov ecx, dword ptr [esi + 0xa0] */ 3773 edi = POP32_VAL(esp); /* 0x27015454: pop edi */ 3774 esi = POP32_VAL(esp); /* 0x27015455: pop esi */ 3775 MEM32(ebx + 0xA0) = ecx; /* 0x27015456: mov dword ptr [ebx + 0xa0], ecx */ 3776 eax = ebx; /* 0x2701545C: mov eax, ebx */ 3777 ebx = POP32_VAL(esp); /* 0x2701545E: pop ebx */ 3778 esp = ebp; /* 0x2701545F: mov esp, ebp */ 3779 ebp = POP32_VAL(esp); /* 0x27015461: pop ebp */ 3780 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27015462: ret 4 */ 3781 RECOMP_REGS_OUT(); 3782 } 3783 3784 void sub_270153B8(void) { 3785 int _fpu_cmp = 0; 3786 uint32_t _cf = 0; 3787 int _df = 1; 3788 uint32_t _flag_k = FK_NONE; 3789 uint32_t _flag_a = 0, _flag_b = 0; 3790 uint32_t _itail_tgt = 0; 3791 RECOMP_REGS_LOCALS 3792 RECOMP_ENTER(0x270153B8u); 3793 3794 L_270153B8: 3795 edx = MEM32(esi + 0x64); /* 0x270153B8: mov edx, dword ptr [esi + 0x64] */ 3796 MEM32(ebx + 0x64) = edx; /* 0x270153BB: mov dword ptr [ebx + 0x64], edx */ 3797 eax = MEM32(esi + 0x68); /* 0x270153BE: mov eax, dword ptr [esi + 0x68] */ 3798 MEM32(ebx + 0x68) = eax; /* 0x270153C1: mov dword ptr [ebx + 0x68], eax */ 3799 SET_LO8(ecx, MEM8(esi + 0x6C)); /* 0x270153C4: mov cl, byte ptr [esi + 0x6c] */ 3800 MEM8(ebx + 0x6C) = (uint8_t)(LO8(ecx)); /* 0x270153C7: mov byte ptr [ebx + 0x6c], cl */ 3801 SET_LO8(edx, MEM8(esi + 0x6D)); /* 0x270153CA: mov dl, byte ptr [esi + 0x6d] */ 3802 MEM8(ebx + 0x6D) = (uint8_t)(LO8(edx)); /* 0x270153CD: mov byte ptr [ebx + 0x6d], dl */ 3803 SET_LO8(eax, MEM8(esi + 0x6E)); /* 0x270153D0: mov al, byte ptr [esi + 0x6e] */ 3804 MEM8(ebx + 0x6E) = (uint8_t)(LO8(eax)); /* 0x270153D3: mov byte ptr [ebx + 0x6e], al */ 3805 ecx = MEM32(esi + 0x70); /* 0x270153D6: mov ecx, dword ptr [esi + 0x70] */ 3806 MEM32(ebx + 0x70) = ecx; /* 0x270153D9: mov dword ptr [ebx + 0x70], ecx */ 3807 edx = MEM32(esi + 0x74); /* 0x270153DC: mov edx, dword ptr [esi + 0x74] */ 3808 MEM32(ebx + 0x74) = edx; /* 0x270153DF: mov dword ptr [ebx + 0x74], edx */ 3809 eax = MEM32(esi + 0x78); /* 0x270153E2: mov eax, dword ptr [esi + 0x78] */ 3810 MEM32(ebx + 0x78) = eax; /* 0x270153E5: mov dword ptr [ebx + 0x78], eax */ 3811 ecx = MEM32(esi + 0x7C); /* 0x270153E8: mov ecx, dword ptr [esi + 0x7c] */ 3812 MEM32(ebx + 0x7C) = ecx; /* 0x270153EB: mov dword ptr [ebx + 0x7c], ecx */ 3813 edx = MEM32(esi + 0x80); /* 0x270153EE: mov edx, dword ptr [esi + 0x80] */ 3814 MEM32(ebx + 0x80) = edx; /* 0x270153F4: mov dword ptr [ebx + 0x80], edx */ 3815 eax = MEM32(esi + 0x84); /* 0x270153FA: mov eax, dword ptr [esi + 0x84] */ 3816 MEM32(ebx + 0x84) = eax; /* 0x27015400: mov dword ptr [ebx + 0x84], eax */ 3817 ecx = MEM32(esi + 0x88); /* 0x27015406: mov ecx, dword ptr [esi + 0x88] */ 3818 MEM32(ebx + 0x88) = ecx; /* 0x2701540C: mov dword ptr [ebx + 0x88], ecx */ 3819 edx = MEM32(esi + 0x8C); /* 0x27015412: mov edx, dword ptr [esi + 0x8c] */ 3820 MEM32(ebx + 0x8C) = edx; /* 0x27015418: mov dword ptr [ebx + 0x8c], edx */ 3821 eax = MEM32(esi + 0x90); /* 0x2701541E: mov eax, dword ptr [esi + 0x90] */ 3822 MEM32(ebx + 0x90) = eax; /* 0x27015424: mov dword ptr [ebx + 0x90], eax */ 3823 ecx = MEM32(esi + 0x94); /* 0x2701542A: mov ecx, dword ptr [esi + 0x94] */ 3824 MEM32(ebx + 0x94) = ecx; /* 0x27015430: mov dword ptr [ebx + 0x94], ecx */ 3825 edx = MEM32(esi + 0x98); /* 0x27015436: mov edx, dword ptr [esi + 0x98] */ 3826 MEM32(ebx + 0x98) = edx; /* 0x2701543C: mov dword ptr [ebx + 0x98], edx */ 3827 eax = MEM32(esi + 0x9C); /* 0x27015442: mov eax, dword ptr [esi + 0x9c] */ 3828 MEM32(ebx + 0x9C) = eax; /* 0x27015448: mov dword ptr [ebx + 0x9c], eax */ 3829 ecx = MEM32(esi + 0xA0); /* 0x2701544E: mov ecx, dword ptr [esi + 0xa0] */ 3830 edi = POP32_VAL(esp); /* 0x27015454: pop edi */ 3831 esi = POP32_VAL(esp); /* 0x27015455: pop esi */ 3832 MEM32(ebx + 0xA0) = ecx; /* 0x27015456: mov dword ptr [ebx + 0xa0], ecx */ 3833 eax = ebx; /* 0x2701545C: mov eax, ebx */ 3834 ebx = POP32_VAL(esp); /* 0x2701545E: pop ebx */ 3835 esp = ebp; /* 0x2701545F: mov esp, ebp */ 3836 ebp = POP32_VAL(esp); /* 0x27015461: pop ebp */ 3837 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27015462: ret 4 */ 3838 RECOMP_REGS_OUT(); 3839 } 3840 3841 void sub_27015470(void) { 3842 int _fpu_cmp = 0; 3843 uint32_t _cf = 0; 3844 int _df = 1; 3845 uint32_t _flag_k = FK_NONE; 3846 uint32_t _flag_a = 0, _flag_b = 0; 3847 uint32_t _itail_tgt = 0; 3848 RECOMP_REGS_LOCALS 3849 RECOMP_ENTER(0x27015470u); 3850 3851 goto L_27015470; 3852 L_27010510: 3853 PUSH32(esp, ebx); /* 0x27010510: push ebx */ 3854 PUSH32(esp, esi); /* 0x27010511: push esi */ 3855 esi = ecx; /* 0x27010512: mov esi, ecx */ 3856 PUSH32(esp, edi); /* 0x27010514: push edi */ 3857 MEM32(esi) = 0x2703429Cu; /* 0x27010515: mov dword ptr [esi], 0x2703429c */ 3858 RECOMP_ICALL(0x27002B60u); /* 0x2701051B: call 0x27002b60 */ /* not lifted */ 3859 RECOMP_FLAGS_IN(); 3860 ecx = MEM32(eax + 0xC8); /* 0x27010520: mov ecx, dword ptr [eax + 0xc8] */ 3861 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3862 ebx = 0; /* 0x27010526: xor ebx, ebx */ 3863 _cf = 0; 3864 _flag_k = FK_TEST; 3865 /* cmp esi, ecx */ /* 0x27010528: cmp esi, ecx */ 3866 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 3867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3868 _flag_k = FK_CMP; 3869 if (CMP_NE(_flag_a, _flag_b)) goto L_27010537; /* 0x2701052A: jne 0x27010537 */ 3870 L_2701052C: 3871 RECOMP_ICALL(0x27002B60u); /* 0x2701052C: call 0x27002b60 */ /* not lifted */ 3872 RECOMP_FLAGS_IN(); 3873 MEM32(eax + 0xC8) = ebx; /* 0x27010531: mov dword ptr [eax + 0xc8], ebx */ 3874 L_27010537: 3875 PUSH32(esp, esi); /* 0x27010537: push esi */ 3876 RECOMP_ICALL(0x27002480u); /* 0x27010538: call 0x27002480 */ /* not lifted */ 3877 RECOMP_FLAGS_IN(); 3878 ecx = eax; /* 0x2701053D: mov ecx, eax */ 3879 RECOMP_ICALL(0x2700BFA0u); /* 0x2701053F: call 0x2700bfa0 */ /* not lifted */ 3880 RECOMP_FLAGS_IN(); 3881 eax = MEM32(esi + 0xC); /* 0x27010544: mov eax, dword ptr [esi + 0xc] */ 3882 PUSH32(esp, eax); /* 0x27010547: push eax */ 3883 RECOMP_ICALL(0x27026DA4u); /* 0x27010548: call 0x27026da4 */ /* not lifted */ 3884 RECOMP_FLAGS_IN(); 3885 SET_LO8(eax, MEM8(esi + 0x50)); /* 0x2701054D: mov al, byte ptr [esi + 0x50] */ 3886 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3888 esp = esp + 4; /* 0x27010550: add esp, 4 */ 3889 _flag_k = FK_ADD; 3890 /* cmp LO8(eax), LO8(ebx) */ /* 0x27010553: cmp al, bl */ 3891 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3893 _flag_k = FK_NARROW(FK_CMP, 24); 3894 MEM32(esi + 0xC) = ebx; /* 0x27010555: mov dword ptr [esi + 0xc], ebx */ 3895 if (CMP_EQ(_flag_a, _flag_b)) goto L_27010561; /* 0x27010558: je 0x27010561 */ 3896 L_2701055A: 3897 ecx = esi; /* 0x2701055A: mov ecx, esi */ 3898 RECOMP_ICALL(0x27010710u); /* 0x2701055C: call 0x27010710 */ /* not lifted */ 3899 RECOMP_FLAGS_IN(); 3900 L_27010561: 3901 edi = MEM32(esi + 0x18); /* 0x27010561: mov edi, dword ptr [esi + 0x18] */ 3902 /* cmp edi, ebx */ /* 0x27010564: cmp edi, ebx */ 3903 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3905 _flag_k = FK_CMP; 3906 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701059D; /* 0x27010566: je 0x2701059d */ 3907 L_27010568: 3908 eax = MEM32(edi + 0x4); /* 0x27010568: mov eax, dword ptr [edi + 4] */ 3909 /* cmp eax, ebx */ /* 0x2701056B: cmp eax, ebx */ 3910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3912 _flag_k = FK_CMP; 3913 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701058B; /* 0x2701056D: je 0x2701058b */ 3914 L_2701056F: 3915 ecx = eax + (-0x1); /* 0x2701056F: lea ecx, [eax - 1] */ 3916 SET_LO8(eax, MEM8(ecx)); /* 0x27010572: mov al, byte ptr [ecx] */ 3917 /* cmp LO8(eax), LO8(ebx) */ /* 0x27010574: cmp al, bl */ 3918 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3920 _flag_k = FK_NARROW(FK_CMP, 24); 3921 if (CMP_EQ(_flag_a, _flag_b)) goto L_27010582; /* 0x27010576: je 0x27010582 */ 3922 L_27010578: 3923 /* cmp LO8(eax), 0xFFu */ /* 0x27010578: cmp al, 0xff */ 3924 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3926 _flag_k = FK_NARROW(FK_CMP, 24); 3927 if (CMP_EQ(_flag_a, _flag_b)) goto L_27010582; /* 0x2701057A: je 0x27010582 */ 3928 L_2701057C: 3929 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3930 SET_LO8(eax, LO8(eax) - 1); /* 0x2701057C: dec al */ 3931 _flag_k = FK_NARROW(FK_DEC, 24); 3932 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2701057E: mov byte ptr [ecx], al */ 3933 goto L_2701058B; /* 0x27010580: jmp 0x2701058b */ 3934 L_27010582: 3935 PUSH32(esp, ecx); /* 0x27010582: push ecx */ 3936 RECOMP_ICALL(0x27026DA4u); /* 0x27010583: call 0x27026da4 */ /* not lifted */ 3937 RECOMP_FLAGS_IN(); 3938 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3939 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3940 esp = esp + 4; /* 0x27010588: add esp, 4 */ 3941 _flag_k = FK_ADD; 3942 L_2701058B: 3943 PUSH32(esp, edi); /* 0x2701058B: push edi */ 3944 MEM32(edi + 0x4) = ebx; /* 0x2701058C: mov dword ptr [edi + 4], ebx */ 3945 MEM32(edi + 0x8) = ebx; /* 0x2701058F: mov dword ptr [edi + 8], ebx */ 3946 MEM32(edi + 0xC) = ebx; /* 0x27010592: mov dword ptr [edi + 0xc], ebx */ 3947 RECOMP_ICALL(0x27026DA4u); /* 0x27010595: call 0x27026da4 */ /* not lifted */ 3948 RECOMP_FLAGS_IN(); 3949 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3950 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3951 esp = esp + 4; /* 0x2701059A: add esp, 4 */ 3952 _flag_k = FK_ADD; 3953 L_2701059D: 3954 PUSH32(esp, ebx); /* 0x2701059D: push ebx */ 3955 ecx = esi; /* 0x2701059E: mov ecx, esi */ 3956 MEM32(esi + 0x18) = ebx; /* 0x270105A0: mov dword ptr [esi + 0x18], ebx */ 3957 RECOMP_ICALL(0x27010B10u); /* 0x270105A3: call 0x27010b10 */ /* not lifted */ 3958 RECOMP_FLAGS_IN(); 3959 edi = POP32_VAL(esp); /* 0x270105A8: pop edi */ 3960 esi = POP32_VAL(esp); /* 0x270105A9: pop esi */ 3961 ebx = POP32_VAL(esp); /* 0x270105AA: pop ebx */ 3962 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270105AB: ret */ 3963 L_27015470: 3964 MEM32(ecx) = 0x270343F8u; /* 0x27015470: mov dword ptr [ecx], 0x270343f8 */ 3965 RECOMP_BACKEDGE(); 3966 goto L_27010510; /* 0x27015476: jmp 0x27010510 */ 3967 { RECOMP_REGS_OUT(); return; } /* end of function */ 3968 RECOMP_REGS_OUT(); 3969 } 3970 3971 void sub_27015480(void) { 3972 int _fpu_cmp = 0; 3973 uint32_t _cf = 0; 3974 int _df = 1; 3975 uint32_t _flag_k = FK_NONE; 3976 uint32_t _flag_a = 0, _flag_b = 0; 3977 uint32_t _itail_tgt = 0; 3978 RECOMP_REGS_LOCALS 3979 RECOMP_ENTER(0x27015480u); 3980 3981 L_27015480: 3982 SET_LO8(eax, MEM8(ecx + 0x8)); /* 0x27015480: mov al, byte ptr [ecx + 8] */ 3983 /* test LO8(eax), LO8(eax) */ /* 0x27015483: test al, al */ 3984 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3985 _cf = 0; 3986 _flag_k = FK_NARROW(FK_TEST, 24); 3987 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x27015485: setne al */ 3988 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27015488: ret */ 3989 RECOMP_REGS_OUT(); 3990 } 3991 3992 void sub_27015490(void) { 3993 int _fpu_cmp = 0; 3994 uint32_t _cf = 0; 3995 int _df = 1; 3996 uint32_t _flag_k = FK_NONE; 3997 uint32_t _flag_a = 0, _flag_b = 0; 3998 uint32_t _itail_tgt = 0; 3999 RECOMP_REGS_LOCALS 4000 RECOMP_ENTER(0x27015490u); 4001 4002 L_27015490: 4003 eax = 0x27034418u; /* 0x27015490: mov eax, 0x27034418 */ 4004 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27015495: ret */ 4005 RECOMP_REGS_OUT(); 4006 } 4007 4008 void sub_270154A0(void) { 4009 int _fpu_cmp = 0; 4010 uint32_t _cf = 0; 4011 int _df = 1; 4012 uint32_t _flag_k = FK_NONE; 4013 uint32_t _flag_a = 0, _flag_b = 0; 4014 uint32_t _itail_tgt = 0; 4015 RECOMP_REGS_LOCALS 4016 RECOMP_ENTER(0x270154A0u); 4017 4018 L_270154A0: 4019 PUSH32(esp, ebp); /* 0x270154A0: push ebp */ 4020 ebp = esp; /* 0x270154A1: mov ebp, esp */ 4021 eax = ecx; /* 0x270154A3: mov eax, ecx */ 4022 ecx = MEM32(ebp + 0x8); /* 0x270154A5: mov ecx, dword ptr [ebp + 8] */ 4023 edx = MEM32(ecx + 0x4); /* 0x270154A8: mov edx, dword ptr [ecx + 4] */ 4024 MEM32(eax + 0x4) = edx; /* 0x270154AB: mov dword ptr [eax + 4], edx */ 4025 SET_LO8(edx, MEM8(ecx + 0x8)); /* 0x270154AE: mov dl, byte ptr [ecx + 8] */ 4026 MEM8(eax + 0x8) = (uint8_t)(LO8(edx)); /* 0x270154B1: mov byte ptr [eax + 8], dl */ 4027 SET_LO8(edx, MEM8(ecx + 0x9)); /* 0x270154B4: mov dl, byte ptr [ecx + 9] */ 4028 MEM8(eax + 0x9) = (uint8_t)(LO8(edx)); /* 0x270154B7: mov byte ptr [eax + 9], dl */ 4029 edx = MEM32(ecx + 0xC); /* 0x270154BA: mov edx, dword ptr [ecx + 0xc] */ 4030 MEM32(eax + 0xC) = edx; /* 0x270154BD: mov dword ptr [eax + 0xc], edx */ 4031 edx = MEM32(ecx + 0x10); /* 0x270154C0: mov edx, dword ptr [ecx + 0x10] */ 4032 MEM32(eax + 0x10) = edx; /* 0x270154C3: mov dword ptr [eax + 0x10], edx */ 4033 edx = MEM32(ecx + 0x14); /* 0x270154C6: mov edx, dword ptr [ecx + 0x14] */ 4034 MEM32(eax + 0x14) = edx; /* 0x270154C9: mov dword ptr [eax + 0x14], edx */ 4035 edx = MEM32(ecx + 0x18); /* 0x270154CC: mov edx, dword ptr [ecx + 0x18] */ 4036 MEM32(eax + 0x18) = edx; /* 0x270154CF: mov dword ptr [eax + 0x18], edx */ 4037 edx = MEM32(ecx + 0x1C); /* 0x270154D2: mov edx, dword ptr [ecx + 0x1c] */ 4038 MEM32(eax + 0x1C) = edx; /* 0x270154D5: mov dword ptr [eax + 0x1c], edx */ 4039 edx = MEM32(ecx + 0x20); /* 0x270154D8: mov edx, dword ptr [ecx + 0x20] */ 4040 MEM32(eax + 0x20) = edx; /* 0x270154DB: mov dword ptr [eax + 0x20], edx */ 4041 SET_LO8(edx, MEM8(ecx + 0x24)); /* 0x270154DE: mov dl, byte ptr [ecx + 0x24] */ 4042 MEM8(eax + 0x24) = (uint8_t)(LO8(edx)); /* 0x270154E1: mov byte ptr [eax + 0x24], dl */ 4043 SET_LO8(edx, MEM8(ecx + 0x25)); /* 0x270154E4: mov dl, byte ptr [ecx + 0x25] */ 4044 MEM8(eax + 0x25) = (uint8_t)(LO8(edx)); /* 0x270154E7: mov byte ptr [eax + 0x25], dl */ 4045 edx = MEM32(ecx + 0x28); /* 0x270154EA: mov edx, dword ptr [ecx + 0x28] */ 4046 MEM32(eax + 0x28) = edx; /* 0x270154ED: mov dword ptr [eax + 0x28], edx */ 4047 PUSH32(esp, esi); /* 0x270154F0: push esi */ 4048 PUSH32(esp, edi); /* 0x270154F1: push edi */ 4049 edx = ecx + 0x2C; /* 0x270154F2: lea edx, [ecx + 0x2c] */ 4050 edi = MEM32(edx); /* 0x270154F5: mov edi, dword ptr [edx] */ 4051 esi = eax + 0x2C; /* 0x270154F7: lea esi, [eax + 0x2c] */ 4052 MEM32(esi) = edi; /* 0x270154FA: mov dword ptr [esi], edi */ 4053 edi = MEM32(edx + 0x4); /* 0x270154FC: mov edi, dword ptr [edx + 4] */ 4054 MEM32(esi + 0x4) = edi; /* 0x270154FF: mov dword ptr [esi + 4], edi */ 4055 edi = MEM32(edx + 0x8); /* 0x27015502: mov edi, dword ptr [edx + 8] */ 4056 MEM32(esi + 0x8) = edi; /* 0x27015505: mov dword ptr [esi + 8], edi */ 4057 edx = MEM32(edx + 0xC); /* 0x27015508: mov edx, dword ptr [edx + 0xc] */ 4058 MEM32(esi + 0xC) = edx; /* 0x2701550B: mov dword ptr [esi + 0xc], edx */ 4059 edx = MEM32(ecx + 0x3C); /* 0x2701550E: mov edx, dword ptr [ecx + 0x3c] */ 4060 MEM32(eax + 0x3C) = edx; /* 0x27015511: mov dword ptr [eax + 0x3c], edx */ 4061 edx = MEM32(ecx + 0x40); /* 0x27015514: mov edx, dword ptr [ecx + 0x40] */ 4062 MEM32(eax + 0x40) = edx; /* 0x27015517: mov dword ptr [eax + 0x40], edx */ 4063 edx = MEM32(ecx + 0x44); /* 0x2701551A: mov edx, dword ptr [ecx + 0x44] */ 4064 MEM32(eax + 0x44) = edx; /* 0x2701551D: mov dword ptr [eax + 0x44], edx */ 4065 edx = MEM32(ecx + 0x48); /* 0x27015520: mov edx, dword ptr [ecx + 0x48] */ 4066 MEM32(eax + 0x48) = edx; /* 0x27015523: mov dword ptr [eax + 0x48], edx */ 4067 edx = MEM32(ecx + 0x4C); /* 0x27015526: mov edx, dword ptr [ecx + 0x4c] */ 4068 MEM32(eax + 0x4C) = edx; /* 0x27015529: mov dword ptr [eax + 0x4c], edx */ 4069 SET_LO8(edx, MEM8(ecx + 0x50)); /* 0x2701552C: mov dl, byte ptr [ecx + 0x50] */ 4070 MEM32(eax) = 0x2703429Cu; /* 0x2701552F: mov dword ptr [eax], 0x2703429c */ 4071 MEM8(eax + 0x50) = (uint8_t)(LO8(edx)); /* 0x27015535: mov byte ptr [eax + 0x50], dl */ 4072 edx = MEM32(ecx + 0x54); /* 0x27015538: mov edx, dword ptr [ecx + 0x54] */ 4073 MEM32(eax + 0x54) = edx; /* 0x2701553B: mov dword ptr [eax + 0x54], edx */ 4074 edx = MEM32(ecx + 0x58); /* 0x2701553E: mov edx, dword ptr [ecx + 0x58] */ 4075 MEM32(eax + 0x58) = edx; /* 0x27015541: mov dword ptr [eax + 0x58], edx */ 4076 edx = MEM32(ecx + 0x5C); /* 0x27015544: mov edx, dword ptr [ecx + 0x5c] */ 4077 MEM32(eax + 0x5C) = edx; /* 0x27015547: mov dword ptr [eax + 0x5c], edx */ 4078 edx = MEM32(ecx + 0x60); /* 0x2701554A: mov edx, dword ptr [ecx + 0x60] */ 4079 MEM32(eax + 0x60) = edx; /* 0x2701554D: mov dword ptr [eax + 0x60], edx */ 4080 edx = MEM32(ecx + 0x64); /* 0x27015550: mov edx, dword ptr [ecx + 0x64] */ 4081 MEM32(eax + 0x64) = edx; /* 0x27015553: mov dword ptr [eax + 0x64], edx */ 4082 edx = MEM32(ecx + 0x68); /* 0x27015556: mov edx, dword ptr [ecx + 0x68] */ 4083 MEM32(eax + 0x68) = edx; /* 0x27015559: mov dword ptr [eax + 0x68], edx */ 4084 ecx = MEM32(ecx + 0x6C); /* 0x2701555C: mov ecx, dword ptr [ecx + 0x6c] */ 4085 edi = POP32_VAL(esp); /* 0x2701555F: pop edi */ 4086 MEM32(eax + 0x6C) = ecx; /* 0x27015560: mov dword ptr [eax + 0x6c], ecx */ 4087 MEM32(eax) = 0x270343F8u; /* 0x27015563: mov dword ptr [eax], 0x270343f8 */ 4088 esi = POP32_VAL(esp); /* 0x27015569: pop esi */ 4089 ebp = POP32_VAL(esp); /* 0x2701556A: pop ebp */ 4090 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701556B: ret 4 */ 4091 RECOMP_REGS_OUT(); 4092 } 4093 4094 void sub_27015570(void) { 4095 int _fpu_cmp = 0; 4096 uint32_t _cf = 0; 4097 int _df = 1; 4098 uint32_t _flag_k = FK_NONE; 4099 uint32_t _flag_a = 0, _flag_b = 0; 4100 uint32_t _itail_tgt = 0; 4101 RECOMP_REGS_LOCALS 4102 RECOMP_ENTER(0x27015570u); 4103 4104 L_27015570: 4105 PUSH32(esp, ebp); /* 0x27015570: push ebp */ 4106 ebp = esp; /* 0x27015571: mov ebp, esp */ 4107 eax = ecx; /* 0x27015573: mov eax, ecx */ 4108 ecx = MEM32(ebp + 0x8); /* 0x27015575: mov ecx, dword ptr [ebp + 8] */ 4109 edx = MEM32(ecx + 0x4); /* 0x27015578: mov edx, dword ptr [ecx + 4] */ 4110 MEM32(eax + 0x4) = edx; /* 0x2701557B: mov dword ptr [eax + 4], edx */ 4111 SET_LO8(edx, MEM8(ecx + 0x8)); /* 0x2701557E: mov dl, byte ptr [ecx + 8] */ 4112 MEM8(eax + 0x8) = (uint8_t)(LO8(edx)); /* 0x27015581: mov byte ptr [eax + 8], dl */ 4113 SET_LO8(edx, MEM8(ecx + 0x9)); /* 0x27015584: mov dl, byte ptr [ecx + 9] */ 4114 MEM8(eax + 0x9) = (uint8_t)(LO8(edx)); /* 0x27015587: mov byte ptr [eax + 9], dl */ 4115 edx = MEM32(ecx + 0xC); /* 0x2701558A: mov edx, dword ptr [ecx + 0xc] */ 4116 MEM32(eax + 0xC) = edx; /* 0x2701558D: mov dword ptr [eax + 0xc], edx */ 4117 edx = MEM32(ecx + 0x10); /* 0x27015590: mov edx, dword ptr [ecx + 0x10] */ 4118 MEM32(eax + 0x10) = edx; /* 0x27015593: mov dword ptr [eax + 0x10], edx */ 4119 edx = MEM32(ecx + 0x14); /* 0x27015596: mov edx, dword ptr [ecx + 0x14] */ 4120 MEM32(eax + 0x14) = edx; /* 0x27015599: mov dword ptr [eax + 0x14], edx */ 4121 edx = MEM32(ecx + 0x18); /* 0x2701559C: mov edx, dword ptr [ecx + 0x18] */ 4122 MEM32(eax + 0x18) = edx; /* 0x2701559F: mov dword ptr [eax + 0x18], edx */ 4123 edx = MEM32(ecx + 0x1C); /* 0x270155A2: mov edx, dword ptr [ecx + 0x1c] */ 4124 MEM32(eax + 0x1C) = edx; /* 0x270155A5: mov dword ptr [eax + 0x1c], edx */ 4125 edx = MEM32(ecx + 0x20); /* 0x270155A8: mov edx, dword ptr [ecx + 0x20] */ 4126 MEM32(eax + 0x20) = edx; /* 0x270155AB: mov dword ptr [eax + 0x20], edx */ 4127 SET_LO8(edx, MEM8(ecx + 0x24)); /* 0x270155AE: mov dl, byte ptr [ecx + 0x24] */ 4128 MEM8(eax + 0x24) = (uint8_t)(LO8(edx)); /* 0x270155B1: mov byte ptr [eax + 0x24], dl */ 4129 SET_LO8(edx, MEM8(ecx + 0x25)); /* 0x270155B4: mov dl, byte ptr [ecx + 0x25] */ 4130 MEM8(eax + 0x25) = (uint8_t)(LO8(edx)); /* 0x270155B7: mov byte ptr [eax + 0x25], dl */ 4131 edx = MEM32(ecx + 0x28); /* 0x270155BA: mov edx, dword ptr [ecx + 0x28] */ 4132 MEM32(eax + 0x28) = edx; /* 0x270155BD: mov dword ptr [eax + 0x28], edx */ 4133 PUSH32(esp, esi); /* 0x270155C0: push esi */ 4134 PUSH32(esp, edi); /* 0x270155C1: push edi */ 4135 edx = ecx + 0x2C; /* 0x270155C2: lea edx, [ecx + 0x2c] */ 4136 edi = MEM32(edx); /* 0x270155C5: mov edi, dword ptr [edx] */ 4137 esi = eax + 0x2C; /* 0x270155C7: lea esi, [eax + 0x2c] */ 4138 MEM32(esi) = edi; /* 0x270155CA: mov dword ptr [esi], edi */ 4139 edi = MEM32(edx + 0x4); /* 0x270155CC: mov edi, dword ptr [edx + 4] */ 4140 MEM32(esi + 0x4) = edi; /* 0x270155CF: mov dword ptr [esi + 4], edi */ 4141 edi = MEM32(edx + 0x8); /* 0x270155D2: mov edi, dword ptr [edx + 8] */ 4142 MEM32(esi + 0x8) = edi; /* 0x270155D5: mov dword ptr [esi + 8], edi */ 4143 edx = MEM32(edx + 0xC); /* 0x270155D8: mov edx, dword ptr [edx + 0xc] */ 4144 MEM32(esi + 0xC) = edx; /* 0x270155DB: mov dword ptr [esi + 0xc], edx */ 4145 edx = MEM32(ecx + 0x3C); /* 0x270155DE: mov edx, dword ptr [ecx + 0x3c] */ 4146 MEM32(eax + 0x3C) = edx; /* 0x270155E1: mov dword ptr [eax + 0x3c], edx */ 4147 edx = MEM32(ecx + 0x40); /* 0x270155E4: mov edx, dword ptr [ecx + 0x40] */ 4148 MEM32(eax + 0x40) = edx; /* 0x270155E7: mov dword ptr [eax + 0x40], edx */ 4149 edx = MEM32(ecx + 0x44); /* 0x270155EA: mov edx, dword ptr [ecx + 0x44] */ 4150 MEM32(eax + 0x44) = edx; /* 0x270155ED: mov dword ptr [eax + 0x44], edx */ 4151 edx = MEM32(ecx + 0x48); /* 0x270155F0: mov edx, dword ptr [ecx + 0x48] */ 4152 MEM32(eax + 0x48) = edx; /* 0x270155F3: mov dword ptr [eax + 0x48], edx */ 4153 edx = MEM32(ecx + 0x4C); /* 0x270155F6: mov edx, dword ptr [ecx + 0x4c] */ 4154 MEM32(eax + 0x4C) = edx; /* 0x270155F9: mov dword ptr [eax + 0x4c], edx */ 4155 SET_LO8(edx, MEM8(ecx + 0x50)); /* 0x270155FC: mov dl, byte ptr [ecx + 0x50] */ 4156 MEM8(eax + 0x50) = (uint8_t)(LO8(edx)); /* 0x270155FF: mov byte ptr [eax + 0x50], dl */ 4157 edx = MEM32(ecx + 0x54); /* 0x27015602: mov edx, dword ptr [ecx + 0x54] */ 4158 MEM32(eax + 0x54) = edx; /* 0x27015605: mov dword ptr [eax + 0x54], edx */ 4159 edx = MEM32(ecx + 0x58); /* 0x27015608: mov edx, dword ptr [ecx + 0x58] */ 4160 MEM32(eax + 0x58) = edx; /* 0x2701560B: mov dword ptr [eax + 0x58], edx */ 4161 edx = MEM32(ecx + 0x5C); /* 0x2701560E: mov edx, dword ptr [ecx + 0x5c] */ 4162 MEM32(eax + 0x5C) = edx; /* 0x27015611: mov dword ptr [eax + 0x5c], edx */ 4163 edx = MEM32(ecx + 0x60); /* 0x27015614: mov edx, dword ptr [ecx + 0x60] */ 4164 MEM32(eax + 0x60) = edx; /* 0x27015617: mov dword ptr [eax + 0x60], edx */ 4165 edx = MEM32(ecx + 0x64); /* 0x2701561A: mov edx, dword ptr [ecx + 0x64] */ 4166 MEM32(eax + 0x64) = edx; /* 0x2701561D: mov dword ptr [eax + 0x64], edx */ 4167 edx = MEM32(ecx + 0x68); /* 0x27015620: mov edx, dword ptr [ecx + 0x68] */ 4168 MEM32(eax + 0x68) = edx; /* 0x27015623: mov dword ptr [eax + 0x68], edx */ 4169 ecx = MEM32(ecx + 0x6C); /* 0x27015626: mov ecx, dword ptr [ecx + 0x6c] */ 4170 edi = POP32_VAL(esp); /* 0x27015629: pop edi */ 4171 MEM32(eax + 0x6C) = ecx; /* 0x2701562A: mov dword ptr [eax + 0x6c], ecx */ 4172 esi = POP32_VAL(esp); /* 0x2701562D: pop esi */ 4173 ebp = POP32_VAL(esp); /* 0x2701562E: pop ebp */ 4174 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701562F: ret 4 */ 4175 RECOMP_REGS_OUT(); 4176 } 4177 4178 void sub_27015640(void) { 4179 int _fpu_cmp = 0; 4180 uint32_t _cf = 0; 4181 int _df = 1; 4182 uint32_t _flag_k = FK_NONE; 4183 uint32_t _flag_a = 0, _flag_b = 0; 4184 uint32_t _itail_tgt = 0; 4185 RECOMP_REGS_LOCALS 4186 RECOMP_ENTER(0x27015640u); 4187 4188 L_27015640: 4189 PUSH32(esp, ebp); /* 0x27015640: push ebp */ 4190 ebp = esp; /* 0x27015641: mov ebp, esp */ 4191 PUSH32(esp, ebx); /* 0x27015643: push ebx */ 4192 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x27015644: mov bl, byte ptr [ebp + 8] */ 4193 /* test LO8(ebx), 2 */ /* 0x27015647: test bl, 2 */ 4194 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 4195 _cf = 0; 4196 _flag_k = FK_NARROW(FK_TEST, 24); 4197 PUSH32(esp, esi); /* 0x2701564A: push esi */ 4198 esi = ecx; /* 0x2701564B: mov esi, ecx */ 4199 if (TEST_Z(_flag_a, _flag_b)) goto L_2701567B; /* 0x2701564D: je 0x2701567b */ 4200 L_2701564F: 4201 eax = MEM32(esi + (-0x4)); /* 0x2701564F: mov eax, dword ptr [esi - 4] */ 4202 PUSH32(esp, edi); /* 0x27015652: push edi */ 4203 PUSH32(esp, 0x27015470u); /* 0x27015653: push 0x27015470 */ 4204 edi = esi + (-0x4); /* 0x27015658: lea edi, [esi - 4] */ 4205 PUSH32(esp, eax); /* 0x2701565B: push eax */ 4206 PUSH32(esp, 0x70u); /* 0x2701565C: push 0x70 */ 4207 PUSH32(esp, esi); /* 0x2701565E: push esi */ 4208 RECOMP_ICALL(0x27026DB0u); /* 0x2701565F: call 0x27026db0 */ /* not lifted */ 4209 RECOMP_FLAGS_IN(); 4210 /* test LO8(ebx), 1 */ /* 0x27015664: test bl, 1 */ 4211 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4212 _cf = 0; 4213 _flag_k = FK_NARROW(FK_TEST, 24); 4214 if (TEST_Z(_flag_a, _flag_b)) goto L_27015672; /* 0x27015667: je 0x27015672 */ 4215 L_27015669: 4216 PUSH32(esp, edi); /* 0x27015669: push edi */ 4217 RECOMP_ICALL(0x27026DA4u); /* 0x2701566A: call 0x27026da4 */ /* not lifted */ 4218 RECOMP_FLAGS_IN(); 4219 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4220 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4221 esp = esp + 4; /* 0x2701566F: add esp, 4 */ 4222 _flag_k = FK_ADD; 4223 L_27015672: 4224 eax = edi; /* 0x27015672: mov eax, edi */ 4225 edi = POP32_VAL(esp); /* 0x27015674: pop edi */ 4226 esi = POP32_VAL(esp); /* 0x27015675: pop esi */ 4227 ebx = POP32_VAL(esp); /* 0x27015676: pop ebx */ 4228 ebp = POP32_VAL(esp); /* 0x27015677: pop ebp */ 4229 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27015678: ret 4 */ 4230 L_2701567B: 4231 ecx = esi; /* 0x2701567B: mov ecx, esi */ 4232 RECOMP_ICALL(0x27015470u); /* 0x2701567D: call 0x27015470 */ /* not lifted */ 4233 RECOMP_FLAGS_IN(); 4234 /* test LO8(ebx), 1 */ /* 0x27015682: test bl, 1 */ 4235 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4236 _cf = 0; 4237 _flag_k = FK_NARROW(FK_TEST, 24); 4238 if (TEST_Z(_flag_a, _flag_b)) goto L_27015690; /* 0x27015685: je 0x27015690 */ 4239 L_27015687: 4240 PUSH32(esp, esi); /* 0x27015687: push esi */ 4241 RECOMP_ICALL(0x27026DA4u); /* 0x27015688: call 0x27026da4 */ /* not lifted */ 4242 RECOMP_FLAGS_IN(); 4243 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4245 esp = esp + 4; /* 0x2701568D: add esp, 4 */ 4246 _flag_k = FK_ADD; 4247 L_27015690: 4248 eax = esi; /* 0x27015690: mov eax, esi */ 4249 esi = POP32_VAL(esp); /* 0x27015692: pop esi */ 4250 ebx = POP32_VAL(esp); /* 0x27015693: pop ebx */ 4251 ebp = POP32_VAL(esp); /* 0x27015694: pop ebp */ 4252 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27015695: ret 4 */ 4253 RECOMP_REGS_OUT(); 4254 } 4255 4256 void sub_270156A0(void) { 4257 int _fpu_cmp = 0; 4258 uint32_t _cf = 0; 4259 int _df = 1; 4260 uint32_t _flag_k = FK_NONE; 4261 uint32_t _flag_a = 0, _flag_b = 0; 4262 uint32_t _itail_tgt = 0; 4263 RECOMP_REGS_LOCALS 4264 RECOMP_ENTER(0x270156A0u); 4265 4266 L_270156A0: 4267 PUSH32(esp, ebp); /* 0x270156A0: push ebp */ 4268 ebp = esp; /* 0x270156A1: mov ebp, esp */ 4269 PUSH32(esp, 0xFFFFFFFFu); /* 0x270156A3: push -1 */ 4270 PUSH32(esp, 0x27027B27u); /* 0x270156A5: push 0x27027b27 */ 4271 eax = MEM32(FS_BASE + (0)); /* 0x270156AA: mov eax, dword ptr fs:[0] */ 4272 PUSH32(esp, eax); /* 0x270156B0: push eax */ 4273 MEM32(FS_BASE + (0)) = esp; /* 0x270156B1: mov dword ptr fs:[0], esp */ 4274 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 4275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4276 esp = esp - 0x24u; /* 0x270156B8: sub esp, 0x24 */ 4277 _flag_k = FK_CMP; 4278 PUSH32(esp, ebx); /* 0x270156BB: push ebx */ 4279 PUSH32(esp, esi); /* 0x270156BC: push esi */ 4280 esi = MEM32(ebp + 0x8); /* 0x270156BD: mov esi, dword ptr [ebp + 8] */ 4281 PUSH32(esp, edi); /* 0x270156C0: push edi */ 4282 edi = ecx; /* 0x270156C1: mov edi, ecx */ 4283 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4284 ebx = 0; /* 0x270156C3: xor ebx, ebx */ 4285 _cf = 0; 4286 _flag_k = FK_TEST; 4287 MEM32(edi + 0xC) = ebx; /* 0x270156C5: mov dword ptr [edi + 0xc], ebx */ 4288 ecx = MEM32(0x27048B70); /* 0x270156C8: mov ecx, dword ptr [0x27048b70] */ 4289 /* cmp ecx, ebx */ /* 0x270156CE: cmp ecx, ebx */ 4290 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4292 _flag_k = FK_CMP; 4293 eax = MEM32(esi + 0x20); /* 0x270156D0: mov eax, dword ptr [esi + 0x20] */ 4294 MEM32(ebp + 0x8) = eax; /* 0x270156D3: mov dword ptr [ebp + 8], eax */ 4295 if (CMP_NE(_flag_a, _flag_b)) goto L_27015706; /* 0x270156D6: jne 0x27015706 */ 4296 L_270156D8: 4297 PUSH32(esp, 0x20u); /* 0x270156D8: push 0x20 */ 4298 RECOMP_ICALL(0x27026EA4u); /* 0x270156DA: call 0x27026ea4 */ /* not lifted */ 4299 RECOMP_FLAGS_IN(); 4300 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4301 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4302 esp = esp + 4; /* 0x270156DF: add esp, 4 */ 4303 _flag_k = FK_ADD; 4304 MEM32(ebp + (-0x10)) = eax; /* 0x270156E2: mov dword ptr [ebp - 0x10], eax */ 4305 /* cmp eax, ebx */ /* 0x270156E5: cmp eax, ebx */ 4306 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4308 _flag_k = FK_CMP; 4309 MEM32(ebp + (-0x4)) = ebx; /* 0x270156E7: mov dword ptr [ebp - 4], ebx */ 4310 if (CMP_EQ(_flag_a, _flag_b)) goto L_270156F5; /* 0x270156EA: je 0x270156f5 */ 4311 L_270156EC: 4312 ecx = eax; /* 0x270156EC: mov ecx, eax */ 4313 RECOMP_ICALL(0x2700E3B0u); /* 0x270156EE: call 0x2700e3b0 */ /* not lifted */ 4314 RECOMP_FLAGS_IN(); 4315 goto L_270156F7; /* 0x270156F3: jmp 0x270156f7 */ 4316 L_270156F5: 4317 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4318 eax = 0; /* 0x270156F5: xor eax, eax */ 4319 _cf = 0; 4320 _flag_k = FK_TEST; 4321 L_270156F7: 4322 ecx = eax; /* 0x270156F7: mov ecx, eax */ 4323 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x270156F9: mov dword ptr [ebp - 4], 0xffffffff */ 4324 MEM32(0x27048B70) = ecx; /* 0x27015700: mov dword ptr [0x27048b70], ecx */ 4325 L_27015706: 4326 edx = MEM32(esi + 0x1C); /* 0x27015706: mov edx, dword ptr [esi + 0x1c] */ 4327 PUSH32(esp, edx); /* 0x27015709: push edx */ 4328 RECOMP_ICALL(0x2700EAB0u); /* 0x2701570A: call 0x2700eab0 */ /* not lifted */ 4329 RECOMP_FLAGS_IN(); 4330 ecx = MEM32(esi + 0x8); /* 0x2701570F: mov ecx, dword ptr [esi + 8] */ 4331 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4333 eax = eax + 2; /* 0x27015712: add eax, 2 */ 4334 _flag_k = FK_ADD; 4335 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 4336 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4337 ecx = ecx + 2; /* 0x27015715: add ecx, 2 */ 4338 _flag_k = FK_ADD; 4339 PUSH32(esp, 0x50u); /* 0x27015718: push 0x50 */ 4340 MEM32(ebp + (-0x20)) = ecx; /* 0x2701571A: mov dword ptr [ebp - 0x20], ecx */ 4341 MEM32(ebp + (-0x1C)) = eax; /* 0x2701571D: mov dword ptr [ebp - 0x1c], eax */ 4342 MEM32(ebp + (-0x18)) = ebx; /* 0x27015720: mov dword ptr [ebp - 0x18], ebx */ 4343 MEM32(ebp + (-0x14)) = ebx; /* 0x27015723: mov dword ptr [ebp - 0x14], ebx */ 4344 RECOMP_ICALL(0x27026EA4u); /* 0x27015726: call 0x27026ea4 */ /* not lifted */ 4345 RECOMP_FLAGS_IN(); 4346 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4347 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4348 esp = esp + 4; /* 0x2701572B: add esp, 4 */ 4349 _flag_k = FK_ADD; 4350 MEM32(ebp + (-0x10)) = eax; /* 0x2701572E: mov dword ptr [ebp - 0x10], eax */ 4351 /* cmp eax, ebx */ /* 0x27015731: cmp eax, ebx */ 4352 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4354 _flag_k = FK_CMP; 4355 MEM32(ebp + (-0x4)) = 1; /* 0x27015733: mov dword ptr [ebp - 4], 1 */ 4356 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015760; /* 0x2701573A: je 0x27015760 */ 4357 L_2701573C: 4358 ecx = MEM32(ebp + 0x8); /* 0x2701573C: mov ecx, dword ptr [ebp + 8] */ 4359 PUSH32(esp, ebx); /* 0x2701573F: push ebx */ 4360 PUSH32(esp, 0x3F800000u); /* 0x27015740: push 0x3f800000 */ 4361 PUSH32(esp, 0x3F800000u); /* 0x27015745: push 0x3f800000 */ 4362 PUSH32(esp, ecx); /* 0x2701574A: push ecx */ 4363 edx = ebp + (-0x18); /* 0x2701574B: lea edx, [ebp - 0x18] */ 4364 PUSH32(esp, edx); /* 0x2701574E: push edx */ 4365 ecx = ebp + (-0x20); /* 0x2701574F: lea ecx, [ebp - 0x20] */ 4366 PUSH32(esp, ecx); /* 0x27015752: push ecx */ 4367 PUSH32(esp, 8); /* 0x27015753: push 8 */ 4368 PUSH32(esp, 5); /* 0x27015755: push 5 */ 4369 ecx = eax; /* 0x27015757: mov ecx, eax */ 4370 RECOMP_ICALL(0x27018030u); /* 0x27015759: call 0x27018030 */ /* not lifted */ 4371 RECOMP_FLAGS_IN(); 4372 goto L_27015762; /* 0x2701575E: jmp 0x27015762 */ 4373 L_27015760: 4374 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4375 eax = 0; /* 0x27015760: xor eax, eax */ 4376 _cf = 0; 4377 _flag_k = FK_TEST; 4378 L_27015762: 4379 PUSH32(esp, ebx); /* 0x27015762: push ebx */ 4380 MEM32(edi) = eax; /* 0x27015763: mov dword ptr [edi], eax */ 4381 eax = MEM32(eax + 0x28); /* 0x27015765: mov eax, dword ptr [eax + 0x28] */ 4382 PUSH32(esp, 0x00222222u); /* 0x27015768: push 0x222222 */ 4383 PUSH32(esp, ebx); /* 0x2701576D: push ebx */ 4384 ecx = eax; /* 0x2701576E: mov ecx, eax */ 4385 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27015770: mov dword ptr [ebp - 4], 0xffffffff */ 4386 RECOMP_ICALL(MEM32(0x27029270)); /* 0x27015777: call dword ptr [0x27029270] */ 4387 RECOMP_FLAGS_IN(); 4388 ecx = MEM32(edi); /* 0x2701577D: mov ecx, dword ptr [edi] */ 4389 RECOMP_ICALL(0x270185F0u); /* 0x2701577F: call 0x270185f0 */ /* not lifted */ 4390 RECOMP_FLAGS_IN(); 4391 ecx = MEM32(esi + 0x20); /* 0x27015784: mov ecx, dword ptr [esi + 0x20] */ 4392 edx = MEM32(esi); /* 0x27015787: mov edx, dword ptr [esi] */ 4393 eax = MEM32(esi + 0x4); /* 0x27015789: mov eax, dword ptr [esi + 4] */ 4394 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4395 ecx = ecx + 1; /* 0x2701578C: inc ecx */ 4396 _flag_k = FK_INC; 4397 PUSH32(esp, 0xA4u); /* 0x2701578D: push 0xa4 */ 4398 MEM32(ebp + (-0x18)) = edx; /* 0x27015792: mov dword ptr [ebp - 0x18], edx */ 4399 MEM32(ebp + (-0x14)) = eax; /* 0x27015795: mov dword ptr [ebp - 0x14], eax */ 4400 MEM32(esi) = 1; /* 0x27015798: mov dword ptr [esi], 1 */ 4401 MEM32(esi + 0x4) = 1; /* 0x2701579E: mov dword ptr [esi + 4], 1 */ 4402 MEM32(esi + 0x20) = ecx; /* 0x270157A5: mov dword ptr [esi + 0x20], ecx */ 4403 RECOMP_ICALL(0x27026EA4u); /* 0x270157A8: call 0x27026ea4 */ /* not lifted */ 4404 RECOMP_FLAGS_IN(); 4405 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4407 esp = esp + 4; /* 0x270157AD: add esp, 4 */ 4408 _flag_k = FK_ADD; 4409 MEM32(ebp + (-0x10)) = eax; /* 0x270157B0: mov dword ptr [ebp - 0x10], eax */ 4410 /* cmp eax, ebx */ /* 0x270157B3: cmp eax, ebx */ 4411 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4413 _flag_k = FK_CMP; 4414 MEM32(ebp + (-0x4)) = 2; /* 0x270157B5: mov dword ptr [ebp - 4], 2 */ 4415 if (CMP_EQ(_flag_a, _flag_b)) goto L_270157CB; /* 0x270157BC: je 0x270157cb */ 4416 L_270157BE: 4417 ecx = MEM32(edi); /* 0x270157BE: mov ecx, dword ptr [edi] */ 4418 PUSH32(esp, ecx); /* 0x270157C0: push ecx */ 4419 PUSH32(esp, esi); /* 0x270157C1: push esi */ 4420 ecx = eax; /* 0x270157C2: mov ecx, eax */ 4421 RECOMP_ICALL(0x2701E660u); /* 0x270157C4: call 0x2701e660 */ /* not lifted */ 4422 RECOMP_FLAGS_IN(); 4423 goto L_270157CD; /* 0x270157C9: jmp 0x270157cd */ 4424 L_270157CB: 4425 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4426 eax = 0; /* 0x270157CB: xor eax, eax */ 4427 _cf = 0; 4428 _flag_k = FK_TEST; 4429 L_270157CD: 4430 MEM32(edi + 0x8) = eax; /* 0x270157CD: mov dword ptr [edi + 8], eax */ 4431 eax = MEM32(eax + 0x94); /* 0x270157D0: mov eax, dword ptr [eax + 0x94] */ 4432 _flag_a = (uint32_t)((esi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((esi | 0xFFFFFFFFu)); 4433 esi = esi | 0xFFFFFFFFu; /* 0x270157D6: or esi, 0xffffffff */ 4434 _cf = 0; 4435 _flag_k = FK_TEST; 4436 PUSH32(esp, 0x00FFFFFFu); /* 0x270157D9: push 0xffffff */ 4437 ecx = eax; /* 0x270157DE: mov ecx, eax */ 4438 MEM32(ebp + (-0x4)) = esi; /* 0x270157E0: mov dword ptr [ebp - 4], esi */ 4439 RECOMP_ICALL(0x27020EB0u); /* 0x270157E3: call 0x27020eb0 */ /* not lifted */ 4440 RECOMP_FLAGS_IN(); 4441 PUSH32(esp, 0x9Cu); /* 0x270157E8: push 0x9c */ 4442 RECOMP_ICALL(0x27026EA4u); /* 0x270157ED: call 0x27026ea4 */ /* not lifted */ 4443 RECOMP_FLAGS_IN(); 4444 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4445 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4446 esp = esp + 4; /* 0x270157F2: add esp, 4 */ 4447 _flag_k = FK_ADD; 4448 MEM32(ebp + (-0x10)) = eax; /* 0x270157F5: mov dword ptr [ebp - 0x10], eax */ 4449 /* cmp eax, ebx */ /* 0x270157F8: cmp eax, ebx */ 4450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4452 _flag_k = FK_CMP; 4453 MEM32(ebp + (-0x4)) = 3; /* 0x270157FA: mov dword ptr [ebp - 4], 3 */ 4454 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015829; /* 0x27015801: je 0x27015829 */ 4455 L_27015803: 4456 edx = MEM32(edi); /* 0x27015803: mov edx, dword ptr [edi] */ 4457 ecx = MEM32(ebp + 0x8); /* 0x27015805: mov ecx, dword ptr [ebp + 8] */ 4458 PUSH32(esp, edx); /* 0x27015808: push edx */ 4459 edx = MEM32(ebp + (-0x1C)); /* 0x27015809: mov edx, dword ptr [ebp - 0x1c] */ 4460 PUSH32(esp, 4); /* 0x2701580C: push 4 */ 4461 PUSH32(esp, ebx); /* 0x2701580E: push ebx */ 4462 PUSH32(esp, ecx); /* 0x2701580F: push ecx */ 4463 ecx = MEM32(ebp + (-0x20)); /* 0x27015810: mov ecx, dword ptr [ebp - 0x20] */ 4464 PUSH32(esp, ebx); /* 0x27015813: push ebx */ 4465 PUSH32(esp, ebx); /* 0x27015814: push ebx */ 4466 PUSH32(esp, ebx); /* 0x27015815: push ebx */ 4467 PUSH32(esp, edx); /* 0x27015816: push edx */ 4468 edx = MEM32(ebp + (-0x14)); /* 0x27015817: mov edx, dword ptr [ebp - 0x14] */ 4469 PUSH32(esp, ecx); /* 0x2701581A: push ecx */ 4470 ecx = MEM32(ebp + (-0x18)); /* 0x2701581B: mov ecx, dword ptr [ebp - 0x18] */ 4471 PUSH32(esp, edx); /* 0x2701581E: push edx */ 4472 PUSH32(esp, ecx); /* 0x2701581F: push ecx */ 4473 ecx = eax; /* 0x27015820: mov ecx, eax */ 4474 RECOMP_ICALL(0x27015990u); /* 0x27015822: call 0x27015990 */ /* not lifted */ 4475 RECOMP_FLAGS_IN(); 4476 goto L_2701582B; /* 0x27015827: jmp 0x2701582b */ 4477 L_27015829: 4478 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4479 eax = 0; /* 0x27015829: xor eax, eax */ 4480 _cf = 0; 4481 _flag_k = FK_TEST; 4482 L_2701582B: 4483 MEM32(edi + 0x4) = eax; /* 0x2701582B: mov dword ptr [edi + 4], eax */ 4484 /* cmp MEM32(ebp + 0xC), ebx */ /* 0x2701582E: cmp dword ptr [ebp + 0xc], ebx */ 4485 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(ebx); 4486 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4487 _flag_k = FK_CMP; 4488 MEM32(ebp + (-0x4)) = esi; /* 0x27015831: mov dword ptr [ebp - 4], esi */ 4489 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015898; /* 0x27015834: je 0x27015898 */ 4490 L_27015836: 4491 edx = MEM32(ebp + (-0x20)); /* 0x27015836: mov edx, dword ptr [ebp - 0x20] */ 4492 eax = MEM32(ebp + (-0x1C)); /* 0x27015839: mov eax, dword ptr [ebp - 0x1c] */ 4493 PUSH32(esp, 0x70u); /* 0x2701583C: push 0x70 */ 4494 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4495 esi = 0; /* 0x2701583E: xor esi, esi */ 4496 _cf = 0; 4497 _flag_k = FK_TEST; 4498 MEM32(ebp + (-0x28)) = edx; /* 0x27015840: mov dword ptr [ebp - 0x28], edx */ 4499 MEM32(ebp + (-0x24)) = eax; /* 0x27015843: mov dword ptr [ebp - 0x24], eax */ 4500 RECOMP_ICALL(0x27026EA4u); /* 0x27015846: call 0x27026ea4 */ /* not lifted */ 4501 RECOMP_FLAGS_IN(); 4502 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4503 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4504 esp = esp + 4; /* 0x2701584B: add esp, 4 */ 4505 _flag_k = FK_ADD; 4506 MEM32(ebp + (-0x10)) = eax; /* 0x2701584E: mov dword ptr [ebp - 0x10], eax */ 4507 /* test eax, eax */ /* 0x27015851: test eax, eax */ 4508 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4509 _cf = 0; 4510 _flag_k = FK_TEST; 4511 MEM32(ebp + (-0x4)) = 4; /* 0x27015853: mov dword ptr [ebp - 4], 4 */ 4512 if (TEST_Z(_flag_a, _flag_b)) goto L_2701588C; /* 0x2701585A: je 0x2701588c */ 4513 L_2701585C: 4514 ecx = MEM32(edi); /* 0x2701585C: mov ecx, dword ptr [edi] */ 4515 edx = MEM32(ebp + 0xC); /* 0x2701585E: mov edx, dword ptr [ebp + 0xc] */ 4516 PUSH32(esp, ecx); /* 0x27015861: push ecx */ 4517 PUSH32(esp, esi); /* 0x27015862: push esi */ 4518 PUSH32(esp, esi); /* 0x27015863: push esi */ 4519 PUSH32(esp, edx); /* 0x27015864: push edx */ 4520 edx = MEM32(ebp + (-0x28)); /* 0x27015865: mov edx, dword ptr [ebp - 0x28] */ 4521 PUSH32(esp, esi); /* 0x27015868: push esi */ 4522 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4524 esp = esp - 0x10u; /* 0x27015869: sub esp, 0x10 */ 4525 _flag_k = FK_CMP; 4526 ecx = esp; /* 0x2701586C: mov ecx, esp */ 4527 MEM32(ecx) = esi; /* 0x2701586E: mov dword ptr [ecx], esi */ 4528 MEM32(ecx + 0x4) = ebx; /* 0x27015870: mov dword ptr [ecx + 4], ebx */ 4529 MEM32(ecx + 0x8) = edx; /* 0x27015873: mov dword ptr [ecx + 8], edx */ 4530 edx = MEM32(ebp + (-0x24)); /* 0x27015876: mov edx, dword ptr [ebp - 0x24] */ 4531 MEM32(ecx + 0xC) = edx; /* 0x27015879: mov dword ptr [ecx + 0xc], edx */ 4532 ecx = MEM32(ebp + 0x8); /* 0x2701587C: mov ecx, dword ptr [ebp + 8] */ 4533 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4534 ecx = ecx + 1; /* 0x2701587F: inc ecx */ 4535 _flag_k = FK_INC; 4536 PUSH32(esp, ecx); /* 0x27015880: push ecx */ 4537 PUSH32(esp, esi); /* 0x27015881: push esi */ 4538 PUSH32(esp, esi); /* 0x27015882: push esi */ 4539 ecx = eax; /* 0x27015883: mov ecx, eax */ 4540 RECOMP_ICALL(0x27016750u); /* 0x27015885: call 0x27016750 */ /* not lifted */ 4541 RECOMP_FLAGS_IN(); 4542 goto L_2701588E; /* 0x2701588A: jmp 0x2701588e */ 4543 L_2701588C: 4544 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4545 eax = 0; /* 0x2701588C: xor eax, eax */ 4546 _cf = 0; 4547 _flag_k = FK_TEST; 4548 L_2701588E: 4549 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2701588E: mov dword ptr [ebp - 4], 0xffffffff */ 4550 MEM32(edi + 0xC) = eax; /* 0x27015895: mov dword ptr [edi + 0xc], eax */ 4551 L_27015898: 4552 edx = ebp + (-0x18); /* 0x27015898: lea edx, [ebp - 0x18] */ 4553 PUSH32(esp, edx); /* 0x2701589B: push edx */ 4554 ecx = edi; /* 0x2701589C: mov ecx, edi */ 4555 RECOMP_ICALL(0x27015910u); /* 0x2701589E: call 0x27015910 */ /* not lifted */ 4556 RECOMP_FLAGS_IN(); 4557 ecx = MEM32(ebp + (-0xC)); /* 0x270158A3: mov ecx, dword ptr [ebp - 0xc] */ 4558 eax = edi; /* 0x270158A6: mov eax, edi */ 4559 edi = POP32_VAL(esp); /* 0x270158A8: pop edi */ 4560 esi = POP32_VAL(esp); /* 0x270158A9: pop esi */ 4561 MEM32(FS_BASE + (0)) = ecx; /* 0x270158AA: mov dword ptr fs:[0], ecx */ 4562 ebx = POP32_VAL(esp); /* 0x270158B1: pop ebx */ 4563 esp = ebp; /* 0x270158B2: mov esp, ebp */ 4564 ebp = POP32_VAL(esp); /* 0x270158B4: pop ebp */ 4565 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270158B5: ret 8 */ 4566 RECOMP_REGS_OUT(); 4567 } 4568 4569 void sub_270158C0(void) { 4570 int _fpu_cmp = 0; 4571 uint32_t _cf = 0; 4572 int _df = 1; 4573 uint32_t _flag_k = FK_NONE; 4574 uint32_t _flag_a = 0, _flag_b = 0; 4575 uint32_t _itail_tgt = 0; 4576 RECOMP_REGS_LOCALS 4577 RECOMP_ENTER(0x270158C0u); 4578 4579 L_270158C0: 4580 PUSH32(esp, esi); /* 0x270158C0: push esi */ 4581 esi = ecx; /* 0x270158C1: mov esi, ecx */ 4582 ecx = MEM32(esi + 0xC); /* 0x270158C3: mov ecx, dword ptr [esi + 0xc] */ 4583 /* test ecx, ecx */ /* 0x270158C6: test ecx, ecx */ 4584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4585 _cf = 0; 4586 _flag_k = FK_TEST; 4587 if (TEST_Z(_flag_a, _flag_b)) goto L_270158D0; /* 0x270158C8: je 0x270158d0 */ 4588 L_270158CA: 4589 eax = MEM32(ecx); /* 0x270158CA: mov eax, dword ptr [ecx] */ 4590 PUSH32(esp, 1); /* 0x270158CC: push 1 */ 4591 RECOMP_ICALL(MEM32(eax)); /* 0x270158CE: call dword ptr [eax] */ 4592 RECOMP_FLAGS_IN(); 4593 L_270158D0: 4594 ecx = MEM32(esi + 0x4); /* 0x270158D0: mov ecx, dword ptr [esi + 4] */ 4595 /* test ecx, ecx */ /* 0x270158D3: test ecx, ecx */ 4596 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4597 _cf = 0; 4598 _flag_k = FK_TEST; 4599 if (TEST_Z(_flag_a, _flag_b)) goto L_270158DD; /* 0x270158D5: je 0x270158dd */ 4600 L_270158D7: 4601 edx = MEM32(ecx); /* 0x270158D7: mov edx, dword ptr [ecx] */ 4602 PUSH32(esp, 1); /* 0x270158D9: push 1 */ 4603 RECOMP_ICALL(MEM32(edx)); /* 0x270158DB: call dword ptr [edx] */ 4604 RECOMP_FLAGS_IN(); 4605 L_270158DD: 4606 PUSH32(esp, edi); /* 0x270158DD: push edi */ 4607 edi = MEM32(esi + 0x8); /* 0x270158DE: mov edi, dword ptr [esi + 8] */ 4608 /* test edi, edi */ /* 0x270158E1: test edi, edi */ 4609 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4610 _cf = 0; 4611 _flag_k = FK_TEST; 4612 if (TEST_Z(_flag_a, _flag_b)) goto L_270158F5; /* 0x270158E3: je 0x270158f5 */ 4613 L_270158E5: 4614 ecx = edi; /* 0x270158E5: mov ecx, edi */ 4615 RECOMP_ICALL(0x2701E9A0u); /* 0x270158E7: call 0x2701e9a0 */ /* not lifted */ 4616 RECOMP_FLAGS_IN(); 4617 PUSH32(esp, edi); /* 0x270158EC: push edi */ 4618 RECOMP_ICALL(0x27026DA4u); /* 0x270158ED: call 0x27026da4 */ /* not lifted */ 4619 RECOMP_FLAGS_IN(); 4620 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4622 esp = esp + 4; /* 0x270158F2: add esp, 4 */ 4623 _flag_k = FK_ADD; 4624 L_270158F5: 4625 esi = MEM32(esi); /* 0x270158F5: mov esi, dword ptr [esi] */ 4626 /* test esi, esi */ /* 0x270158F7: test esi, esi */ 4627 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4628 _cf = 0; 4629 _flag_k = FK_TEST; 4630 edi = POP32_VAL(esp); /* 0x270158F9: pop edi */ 4631 if (TEST_Z(_flag_a, _flag_b)) goto L_2701590C; /* 0x270158FA: je 0x2701590c */ 4632 L_270158FC: 4633 ecx = esi; /* 0x270158FC: mov ecx, esi */ 4634 RECOMP_ICALL(0x27018500u); /* 0x270158FE: call 0x27018500 */ /* not lifted */ 4635 RECOMP_FLAGS_IN(); 4636 PUSH32(esp, esi); /* 0x27015903: push esi */ 4637 RECOMP_ICALL(0x27026DA4u); /* 0x27015904: call 0x27026da4 */ /* not lifted */ 4638 RECOMP_FLAGS_IN(); 4639 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4641 esp = esp + 4; /* 0x27015909: add esp, 4 */ 4642 _flag_k = FK_ADD; 4643 L_2701590C: 4644 esi = POP32_VAL(esp); /* 0x2701590C: pop esi */ 4645 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701590D: ret */ 4646 RECOMP_REGS_OUT(); 4647 } 4648 4649 void sub_27015910(void) { 4650 int _fpu_cmp = 0; 4651 uint32_t _cf = 0; 4652 int _df = 1; 4653 uint32_t _flag_k = FK_NONE; 4654 uint32_t _flag_a = 0, _flag_b = 0; 4655 uint32_t _itail_tgt = 0; 4656 RECOMP_REGS_LOCALS 4657 RECOMP_ENTER(0x27015910u); 4658 4659 L_27015910: 4660 PUSH32(esp, ebp); /* 0x27015910: push ebp */ 4661 ebp = esp; /* 0x27015911: mov ebp, esp */ 4662 eax = MEM32(ebp + 0x8); /* 0x27015913: mov eax, dword ptr [ebp + 8] */ 4663 ecx = MEM32(ecx); /* 0x27015916: mov ecx, dword ptr [ecx] */ 4664 PUSH32(esp, eax); /* 0x27015918: push eax */ 4665 RECOMP_ICALL(0x27018620u); /* 0x27015919: call 0x27018620 */ /* not lifted */ 4666 RECOMP_FLAGS_IN(); 4667 ebp = POP32_VAL(esp); /* 0x2701591E: pop ebp */ 4668 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701591F: ret 4 */ 4669 RECOMP_REGS_OUT(); 4670 } 4671 4672 void sub_27015930(void) { 4673 int _fpu_cmp = 0; 4674 uint32_t _cf = 0; 4675 int _df = 1; 4676 uint32_t _flag_k = FK_NONE; 4677 uint32_t _flag_a = 0, _flag_b = 0; 4678 uint32_t _itail_tgt = 0; 4679 RECOMP_REGS_LOCALS 4680 RECOMP_ENTER(0x27015930u); 4681 4682 L_27015930: 4683 PUSH32(esp, esi); /* 0x27015930: push esi */ 4684 esi = ecx; /* 0x27015931: mov esi, ecx */ 4685 ecx = MEM32(esi); /* 0x27015933: mov ecx, dword ptr [esi] */ 4686 RECOMP_ICALL(0x27018860u); /* 0x27015935: call 0x27018860 */ /* not lifted */ 4687 RECOMP_FLAGS_IN(); 4688 eax = MEM32(esi + 0x4); /* 0x2701593A: mov eax, dword ptr [esi + 4] */ 4689 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x2701593D: mov byte ptr [eax + 8], 1 */ 4690 ecx = MEM32(esi + 0x8); /* 0x27015941: mov ecx, dword ptr [esi + 8] */ 4691 RECOMP_ICALL(0x2701F750u); /* 0x27015944: call 0x2701f750 */ /* not lifted */ 4692 RECOMP_FLAGS_IN(); 4693 esi = MEM32(esi + 0xC); /* 0x27015949: mov esi, dword ptr [esi + 0xc] */ 4694 /* test esi, esi */ /* 0x2701594C: test esi, esi */ 4695 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4696 _cf = 0; 4697 _flag_k = FK_TEST; 4698 if (TEST_Z(_flag_a, _flag_b)) goto L_27015954; /* 0x2701594E: je 0x27015954 */ 4699 L_27015950: 4700 MEM8(esi + 0x8) = (uint8_t)(1); /* 0x27015950: mov byte ptr [esi + 8], 1 */ 4701 L_27015954: 4702 esi = POP32_VAL(esp); /* 0x27015954: pop esi */ 4703 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27015955: ret */ 4704 RECOMP_REGS_OUT(); 4705 } 4706 4707 void sub_27015960(void) { 4708 int _fpu_cmp = 0; 4709 uint32_t _cf = 0; 4710 int _df = 1; 4711 uint32_t _flag_k = FK_NONE; 4712 uint32_t _flag_a = 0, _flag_b = 0; 4713 uint32_t _itail_tgt = 0; 4714 RECOMP_REGS_LOCALS 4715 RECOMP_ENTER(0x27015960u); 4716 4717 L_27015960: 4718 PUSH32(esp, esi); /* 0x27015960: push esi */ 4719 esi = ecx; /* 0x27015961: mov esi, ecx */ 4720 ecx = MEM32(esi); /* 0x27015963: mov ecx, dword ptr [esi] */ 4721 RECOMP_ICALL(0x27018890u); /* 0x27015965: call 0x27018890 */ /* not lifted */ 4722 RECOMP_FLAGS_IN(); 4723 eax = MEM32(esi + 0x4); /* 0x2701596A: mov eax, dword ptr [esi + 4] */ 4724 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x2701596D: mov byte ptr [eax + 8], 0 */ 4725 ecx = MEM32(esi + 0x8); /* 0x27015971: mov ecx, dword ptr [esi + 8] */ 4726 RECOMP_ICALL(0x2701F6E0u); /* 0x27015974: call 0x2701f6e0 */ /* not lifted */ 4727 RECOMP_FLAGS_IN(); 4728 esi = MEM32(esi + 0xC); /* 0x27015979: mov esi, dword ptr [esi + 0xc] */ 4729 /* test esi, esi */ /* 0x2701597C: test esi, esi */ 4730 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4731 _cf = 0; 4732 _flag_k = FK_TEST; 4733 if (TEST_Z(_flag_a, _flag_b)) goto L_27015984; /* 0x2701597E: je 0x27015984 */ 4734 L_27015980: 4735 MEM8(esi + 0x8) = (uint8_t)(0); /* 0x27015980: mov byte ptr [esi + 8], 0 */ 4736 L_27015984: 4737 esi = POP32_VAL(esp); /* 0x27015984: pop esi */ 4738 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27015985: ret */ 4739 RECOMP_REGS_OUT(); 4740 } 4741 4742 void sub_27015990(void) { 4743 int _fpu_cmp = 0; 4744 uint32_t _cf = 0; 4745 int _df = 1; 4746 uint32_t _flag_k = FK_NONE; 4747 uint32_t _flag_a = 0, _flag_b = 0; 4748 uint32_t _itail_tgt = 0; 4749 RECOMP_REGS_LOCALS 4750 RECOMP_ENTER(0x27015990u); 4751 4752 L_27015990: 4753 PUSH32(esp, ebp); /* 0x27015990: push ebp */ 4754 ebp = esp; /* 0x27015991: mov ebp, esp */ 4755 PUSH32(esp, 0xFFFFFFFFu); /* 0x27015993: push -1 */ 4756 PUSH32(esp, 0x27027B48u); /* 0x27015995: push 0x27027b48 */ 4757 eax = MEM32(FS_BASE + (0)); /* 0x2701599A: mov eax, dword ptr fs:[0] */ 4758 PUSH32(esp, eax); /* 0x270159A0: push eax */ 4759 MEM32(FS_BASE + (0)) = esp; /* 0x270159A1: mov dword ptr fs:[0], esp */ 4760 PUSH32(esp, ecx); /* 0x270159A8: push ecx */ 4761 eax = MEM32(ebp + 0x30); /* 0x270159A9: mov eax, dword ptr [ebp + 0x30] */ 4762 PUSH32(esp, esi); /* 0x270159AC: push esi */ 4763 esi = ecx; /* 0x270159AD: mov esi, ecx */ 4764 PUSH32(esp, eax); /* 0x270159AF: push eax */ 4765 MEM32(ebp + (-0x10)) = esi; /* 0x270159B0: mov dword ptr [ebp - 0x10], esi */ 4766 RECOMP_ICALL(0x270104B0u); /* 0x270159B3: call 0x270104b0 */ /* not lifted */ 4767 RECOMP_FLAGS_IN(); 4768 ecx = MEM32(ebp + 0x18); /* 0x270159B8: mov ecx, dword ptr [ebp + 0x18] */ 4769 edx = MEM32(ebp + 0x1C); /* 0x270159BB: mov edx, dword ptr [ebp + 0x1c] */ 4770 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4771 eax = 0; /* 0x270159BE: xor eax, eax */ 4772 _cf = 0; 4773 _flag_k = FK_TEST; 4774 MEM32(esi + 0x54) = ecx; /* 0x270159C0: mov dword ptr [esi + 0x54], ecx */ 4775 ecx = MEM32(ebp + 0x2C); /* 0x270159C3: mov ecx, dword ptr [ebp + 0x2c] */ 4776 MEM32(ebp + (-0x4)) = eax; /* 0x270159C6: mov dword ptr [ebp - 4], eax */ 4777 MEM32(esi + 0x68) = eax; /* 0x270159C9: mov dword ptr [esi + 0x68], eax */ 4778 MEM32(esi + 0x70) = eax; /* 0x270159CC: mov dword ptr [esi + 0x70], eax */ 4779 MEM32(esi + 0x78) = eax; /* 0x270159CF: mov dword ptr [esi + 0x78], eax */ 4780 MEM32(esi + 0x7C) = eax; /* 0x270159D2: mov dword ptr [esi + 0x7c], eax */ 4781 eax = MEM32(ebp + 0x20); /* 0x270159D5: mov eax, dword ptr [ebp + 0x20] */ 4782 MEM32(esi + 0x58) = edx; /* 0x270159D8: mov dword ptr [esi + 0x58], edx */ 4783 edx = MEM32(ebp + 0x28); /* 0x270159DB: mov edx, dword ptr [ebp + 0x28] */ 4784 MEM32(esi + 0x5C) = ecx; /* 0x270159DE: mov dword ptr [esi + 0x5c], ecx */ 4785 PUSH32(esp, eax); /* 0x270159E1: push eax */ 4786 ecx = esi; /* 0x270159E2: mov ecx, esi */ 4787 MEM32(esi + 0x8C) = edx; /* 0x270159E4: mov dword ptr [esi + 0x8c], edx */ 4788 MEM32(esi) = 0x2703442Cu; /* 0x270159EA: mov dword ptr [esi], 0x2703442c */ 4789 RECOMP_ICALL(0x27010910u); /* 0x270159F0: call 0x27010910 */ /* not lifted */ 4790 RECOMP_FLAGS_IN(); 4791 ecx = ebp + 0x8; /* 0x270159F5: lea ecx, [ebp + 8] */ 4792 PUSH32(esp, ecx); /* 0x270159F8: push ecx */ 4793 ecx = esi; /* 0x270159F9: mov ecx, esi */ 4794 MEM8(esi + 0x8) = (uint8_t)(1); /* 0x270159FB: mov byte ptr [esi + 8], 1 */ 4795 RECOMP_ICALL(0x270109B0u); /* 0x270159FF: call 0x270109b0 */ /* not lifted */ 4796 RECOMP_FLAGS_IN(); 4797 edx = ebp + 0x10; /* 0x27015A04: lea edx, [ebp + 0x10] */ 4798 PUSH32(esp, edx); /* 0x27015A07: push edx */ 4799 ecx = esi; /* 0x27015A08: mov ecx, esi */ 4800 RECOMP_ICALL(0x27010A90u); /* 0x27015A0A: call 0x27010a90 */ /* not lifted */ 4801 RECOMP_FLAGS_IN(); 4802 RECOMP_ICALL(MEM32(0x270291E4)); /* 0x27015A0F: call dword ptr [0x270291e4] */ 4803 RECOMP_FLAGS_IN(); 4804 eax = MEM32(eax + 0x24); /* 0x27015A15: mov eax, dword ptr [eax + 0x24] */ 4805 ecx = esi; /* 0x27015A18: mov ecx, esi */ 4806 MEM32(esi + 0x94) = eax; /* 0x27015A1A: mov dword ptr [esi + 0x94], eax */ 4807 RECOMP_ICALL(0x27015EB0u); /* 0x27015A20: call 0x27015eb0 */ /* not lifted */ 4808 RECOMP_FLAGS_IN(); 4809 ecx = MEM32(ebp + 0x24); /* 0x27015A25: mov ecx, dword ptr [ebp + 0x24] */ 4810 PUSH32(esp, ecx); /* 0x27015A28: push ecx */ 4811 ecx = esi; /* 0x27015A29: mov ecx, esi */ 4812 RECOMP_ICALL(0x270105B0u); /* 0x27015A2B: call 0x270105b0 */ /* not lifted */ 4813 RECOMP_FLAGS_IN(); 4814 ecx = MEM32(ebp + (-0xC)); /* 0x27015A30: mov ecx, dword ptr [ebp - 0xc] */ 4815 eax = esi; /* 0x27015A33: mov eax, esi */ 4816 esi = POP32_VAL(esp); /* 0x27015A35: pop esi */ 4817 MEM32(FS_BASE + (0)) = ecx; /* 0x27015A36: mov dword ptr fs:[0], ecx */ 4818 esp = ebp; /* 0x27015A3D: mov esp, ebp */ 4819 ebp = POP32_VAL(esp); /* 0x27015A3F: pop ebp */ 4820 RECOMP_FLAGS_OUT(); esp += 48; { RECOMP_REGS_OUT(); return; } /* 0x27015A40: ret 0x2c */ 4821 RECOMP_REGS_OUT(); 4822 } 4823 4824 void sub_27015A50(void) { 4825 int _fpu_cmp = 0; 4826 uint32_t _cf = 0; 4827 int _df = 1; 4828 uint32_t _flag_k = FK_NONE; 4829 uint32_t _flag_a = 0, _flag_b = 0; 4830 uint32_t _itail_tgt = 0; 4831 RECOMP_REGS_LOCALS 4832 RECOMP_ENTER(0x27015A50u); 4833 4834 L_27015A50: 4835 PUSH32(esp, ebp); /* 0x27015A50: push ebp */ 4836 ebp = esp; /* 0x27015A51: mov ebp, esp */ 4837 PUSH32(esp, 0xFFFFFFFFu); /* 0x27015A53: push -1 */ 4838 PUSH32(esp, 0x27027B68u); /* 0x27015A55: push 0x27027b68 */ 4839 eax = MEM32(FS_BASE + (0)); /* 0x27015A5A: mov eax, dword ptr fs:[0] */ 4840 PUSH32(esp, eax); /* 0x27015A60: push eax */ 4841 MEM32(FS_BASE + (0)) = esp; /* 0x27015A61: mov dword ptr fs:[0], esp */ 4842 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4844 esp = esp - 0xCu; /* 0x27015A68: sub esp, 0xc */ 4845 _flag_k = FK_CMP; 4846 PUSH32(esp, ebx); /* 0x27015A6B: push ebx */ 4847 PUSH32(esp, esi); /* 0x27015A6C: push esi */ 4848 MEM32(ebp + (-0x14)) = ecx; /* 0x27015A6D: mov dword ptr [ebp - 0x14], ecx */ 4849 MEM32(ecx) = 0x2703442Cu; /* 0x27015A70: mov dword ptr [ecx], 0x2703442c */ 4850 esi = MEM32(ecx + 0x78); /* 0x27015A76: mov esi, dword ptr [ecx + 0x78] */ 4851 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4852 ebx = 0; /* 0x27015A79: xor ebx, ebx */ 4853 _cf = 0; 4854 _flag_k = FK_TEST; 4855 /* cmp esi, ebx */ /* 0x27015A7B: cmp esi, ebx */ 4856 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4858 _flag_k = FK_CMP; 4859 MEM32(ebp + (-0x4)) = ebx; /* 0x27015A7D: mov dword ptr [ebp - 4], ebx */ 4860 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015B0D; /* 0x27015A80: je 0x27015b0d */ 4861 L_27015A86: 4862 /* cmp MEM32(esi + 0x10), ebx */ /* 0x27015A86: cmp dword ptr [esi + 0x10], ebx */ 4863 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 4864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4865 _flag_k = FK_CMP; 4866 PUSH32(esp, edi); /* 0x27015A89: push edi */ 4867 edi = MEM32(esi + 0x4); /* 0x27015A8A: mov edi, dword ptr [esi + 4] */ 4868 eax = MEM32(edi); /* 0x27015A8D: mov eax, dword ptr [edi] */ 4869 MEM32(ebp + (-0x10)) = eax; /* 0x27015A8F: mov dword ptr [ebp - 0x10], eax */ 4870 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015AC2; /* 0x27015A92: je 0x27015ac2 */ 4871 L_27015A94: 4872 ecx = eax; /* 0x27015A94: mov ecx, eax */ 4873 /* cmp eax, ecx */ /* 0x27015A96: cmp eax, ecx */ 4874 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4876 _flag_k = FK_CMP; 4877 if (CMP_NE(_flag_a, _flag_b)) goto L_27015AC2; /* 0x27015A98: jne 0x27015ac2 */ 4878 L_27015A9A: 4879 /* cmp edi, edi */ /* 0x27015A9A: cmp edi, edi */ 4880 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4882 _flag_k = FK_CMP; 4883 if (CMP_NE(_flag_a, _flag_b)) goto L_27015AC2; /* 0x27015A9C: jne 0x27015ac2 */ 4884 L_27015A9E: 4885 eax = MEM32(edi + 0x4); /* 0x27015A9E: mov eax, dword ptr [edi + 4] */ 4886 PUSH32(esp, eax); /* 0x27015AA1: push eax */ 4887 ecx = esi; /* 0x27015AA2: mov ecx, esi */ 4888 RECOMP_ICALL(0x270163C0u); /* 0x27015AA4: call 0x270163c0 */ /* not lifted */ 4889 RECOMP_FLAGS_IN(); 4890 ecx = MEM32(esi + 0x4); /* 0x27015AA9: mov ecx, dword ptr [esi + 4] */ 4891 edx = MEM32(esi + 0x8); /* 0x27015AAC: mov edx, dword ptr [esi + 8] */ 4892 MEM32(ecx + 0x4) = edx; /* 0x27015AAF: mov dword ptr [ecx + 4], edx */ 4893 eax = MEM32(esi + 0x4); /* 0x27015AB2: mov eax, dword ptr [esi + 4] */ 4894 MEM32(esi + 0x10) = ebx; /* 0x27015AB5: mov dword ptr [esi + 0x10], ebx */ 4895 MEM32(eax) = eax; /* 0x27015AB8: mov dword ptr [eax], eax */ 4896 eax = MEM32(esi + 0x4); /* 0x27015ABA: mov eax, dword ptr [esi + 4] */ 4897 MEM32(eax + 0x8) = eax; /* 0x27015ABD: mov dword ptr [eax + 8], eax */ 4898 goto L_27015AE5; /* 0x27015AC0: jmp 0x27015ae5 */ 4899 L_27015AC2: 4900 /* cmp eax, edi */ /* 0x27015AC2: cmp eax, edi */ 4901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4903 _flag_k = FK_CMP; 4904 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015AE5; /* 0x27015AC4: je 0x27015ae5 */ 4905 L_27015AC6: 4906 ecx = ebp + (-0x10); /* 0x27015AC6: lea ecx, [ebp - 0x10] */ 4907 ebx = eax; /* 0x27015AC9: mov ebx, eax */ 4908 RECOMP_ICALL(0x270166D0u); /* 0x27015ACB: call 0x270166d0 */ /* not lifted */ 4909 RECOMP_FLAGS_IN(); 4910 PUSH32(esp, ebx); /* 0x27015AD0: push ebx */ 4911 eax = ebp + (-0x18); /* 0x27015AD1: lea eax, [ebp - 0x18] */ 4912 PUSH32(esp, eax); /* 0x27015AD4: push eax */ 4913 ecx = esi; /* 0x27015AD5: mov ecx, esi */ 4914 RECOMP_ICALL(0x27016000u); /* 0x27015AD7: call 0x27016000 */ /* not lifted */ 4915 RECOMP_FLAGS_IN(); 4916 eax = MEM32(ebp + (-0x10)); /* 0x27015ADC: mov eax, dword ptr [ebp - 0x10] */ 4917 /* cmp eax, edi */ /* 0x27015ADF: cmp eax, edi */ 4918 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4920 _flag_k = FK_CMP; 4921 RECOMP_BACKEDGE(); 4922 if (CMP_NE(_flag_a, _flag_b)) goto L_27015AC6; /* 0x27015AE1: jne 0x27015ac6 */ 4923 L_27015AE3: 4924 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4925 ebx = 0; /* 0x27015AE3: xor ebx, ebx */ 4926 _cf = 0; 4927 _flag_k = FK_TEST; 4928 L_27015AE5: 4929 eax = MEM32(esi + 0x4); /* 0x27015AE5: mov eax, dword ptr [esi + 4] */ 4930 PUSH32(esp, eax); /* 0x27015AE8: push eax */ 4931 RECOMP_ICALL(0x27026DA4u); /* 0x27015AE9: call 0x27026da4 */ /* not lifted */ 4932 RECOMP_FLAGS_IN(); 4933 eax = MEM32(esi + 0x8); /* 0x27015AEE: mov eax, dword ptr [esi + 8] */ 4934 PUSH32(esp, eax); /* 0x27015AF1: push eax */ 4935 MEM32(esi + 0x4) = ebx; /* 0x27015AF2: mov dword ptr [esi + 4], ebx */ 4936 MEM32(esi + 0x10) = ebx; /* 0x27015AF5: mov dword ptr [esi + 0x10], ebx */ 4937 RECOMP_ICALL(0x27026DA4u); /* 0x27015AF8: call 0x27026da4 */ /* not lifted */ 4938 RECOMP_FLAGS_IN(); 4939 PUSH32(esp, esi); /* 0x27015AFD: push esi */ 4940 MEM32(esi + 0x8) = ebx; /* 0x27015AFE: mov dword ptr [esi + 8], ebx */ 4941 RECOMP_ICALL(0x27026DA4u); /* 0x27015B01: call 0x27026da4 */ /* not lifted */ 4942 RECOMP_FLAGS_IN(); 4943 ecx = MEM32(ebp + (-0x14)); /* 0x27015B06: mov ecx, dword ptr [ebp - 0x14] */ 4944 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4945 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4946 esp = esp + 0xCu; /* 0x27015B09: add esp, 0xc */ 4947 _flag_k = FK_ADD; 4948 edi = POP32_VAL(esp); /* 0x27015B0C: pop edi */ 4949 L_27015B0D: 4950 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27015B0D: mov dword ptr [ebp - 4], 0xffffffff */ 4951 RECOMP_ICALL(0x27010510u); /* 0x27015B14: call 0x27010510 */ /* not lifted */ 4952 RECOMP_FLAGS_IN(); 4953 ecx = MEM32(ebp + (-0xC)); /* 0x27015B19: mov ecx, dword ptr [ebp - 0xc] */ 4954 esi = POP32_VAL(esp); /* 0x27015B1C: pop esi */ 4955 ebx = POP32_VAL(esp); /* 0x27015B1D: pop ebx */ 4956 MEM32(FS_BASE + (0)) = ecx; /* 0x27015B1E: mov dword ptr fs:[0], ecx */ 4957 esp = ebp; /* 0x27015B25: mov esp, ebp */ 4958 ebp = POP32_VAL(esp); /* 0x27015B27: pop ebp */ 4959 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27015B28: ret */ 4960 RECOMP_REGS_OUT(); 4961 } 4962 4963 void sub_27015B30(void) { 4964 int _fpu_cmp = 0; 4965 uint32_t _cf = 0; 4966 int _df = 1; 4967 uint32_t _flag_k = FK_NONE; 4968 uint32_t _flag_a = 0, _flag_b = 0; 4969 uint32_t _itail_tgt = 0; 4970 RECOMP_REGS_LOCALS 4971 RECOMP_ENTER(0x27015B30u); 4972 4973 L_27015B30: 4974 PUSH32(esp, ebp); /* 0x27015B30: push ebp */ 4975 ebp = esp; /* 0x27015B31: mov ebp, esp */ 4976 PUSH32(esp, ebx); /* 0x27015B33: push ebx */ 4977 ebx = MEM32(ebp + 0x8); /* 0x27015B34: mov ebx, dword ptr [ebp + 8] */ 4978 PUSH32(esp, esi); /* 0x27015B37: push esi */ 4979 PUSH32(esp, edi); /* 0x27015B38: push edi */ 4980 edi = MEM32(ebp + 0xC); /* 0x27015B39: mov edi, dword ptr [ebp + 0xc] */ 4981 PUSH32(esp, edi); /* 0x27015B3C: push edi */ 4982 esi = ecx; /* 0x27015B3D: mov esi, ecx */ 4983 PUSH32(esp, ebx); /* 0x27015B3F: push ebx */ 4984 RECOMP_ICALL(0x27010980u); /* 0x27015B40: call 0x27010980 */ /* not lifted */ 4985 RECOMP_FLAGS_IN(); 4986 /* test LO8(eax), LO8(eax) */ /* 0x27015B45: test al, al */ 4987 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4988 _cf = 0; 4989 _flag_k = FK_NARROW(FK_TEST, 24); 4990 if (TEST_Z(_flag_a, _flag_b)) goto L_27015C56; /* 0x27015B47: je 0x27015c56 */ 4991 L_27015B4D: 4992 SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x27015B4D: mov al, byte ptr [ebp + 0x14] */ 4993 /* test LO8(eax), LO8(eax) */ /* 0x27015B50: test al, al */ 4994 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4995 _cf = 0; 4996 _flag_k = FK_NARROW(FK_TEST, 24); 4997 if (TEST_Z(_flag_a, _flag_b)) goto L_27015B5D; /* 0x27015B52: je 0x27015b5d */ 4998 L_27015B54: 4999 edi = POP32_VAL(esp); /* 0x27015B54: pop edi */ 5000 esi = POP32_VAL(esp); /* 0x27015B55: pop esi */ 5001 SET_LO8(eax, 1); /* 0x27015B56: mov al, 1 */ 5002 ebx = POP32_VAL(esp); /* 0x27015B58: pop ebx */ 5003 ebp = POP32_VAL(esp); /* 0x27015B59: pop ebp */ 5004 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27015B5A: ret 0x10 */ 5005 L_27015B5D: 5006 eax = MEM32(esi + 0x1C); /* 0x27015B5D: mov eax, dword ptr [esi + 0x1c] */ 5007 /* test eax, eax */ /* 0x27015B60: test eax, eax */ 5008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5009 _cf = 0; 5010 _flag_k = FK_TEST; 5011 if (TEST_Z(_flag_a, _flag_b)) goto L_27015B6D; /* 0x27015B62: je 0x27015b6d */ 5012 L_27015B64: 5013 ecx = MEM32(esi + 0x20); /* 0x27015B64: mov ecx, dword ptr [esi + 0x20] */ 5014 PUSH32(esp, ecx); /* 0x27015B67: push ecx */ 5015 RECOMP_ICALL(eax); /* 0x27015B68: call eax */ 5016 RECOMP_FLAGS_IN(); 5017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5019 esp = esp + 4; /* 0x27015B6A: add esp, 4 */ 5020 _flag_k = FK_ADD; 5021 L_27015B6D: 5022 eax = MEM32(ebp + 0x10); /* 0x27015B6D: mov eax, dword ptr [ebp + 0x10] */ 5023 /* cmp eax, 1 */ /* 0x27015B70: cmp eax, 1 */ 5024 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5026 _flag_k = FK_CMP; 5027 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015B7F; /* 0x27015B73: je 0x27015b7f */ 5028 L_27015B75: 5029 /* cmp eax, 2 */ /* 0x27015B75: cmp eax, 2 */ 5030 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5032 _flag_k = FK_CMP; 5033 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015B7F; /* 0x27015B78: je 0x27015b7f */ 5034 L_27015B7A: 5035 /* cmp eax, 3 */ /* 0x27015B7A: cmp eax, 3 */ 5036 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 5037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5038 _flag_k = FK_CMP; 5039 if (CMP_NE(_flag_a, _flag_b)) goto L_27015BB3; /* 0x27015B7D: jne 0x27015bb3 */ 5040 L_27015B7F: 5041 /* test MEM8(esi + 0x5C), 2 */ /* 0x27015B7F: test byte ptr [esi + 0x5c], 2 */ 5042 _flag_a = (uint32_t)(MEM8(esi + 0x5C)) << 24; _flag_b = (uint32_t)(2) << 24; 5043 _cf = 0; 5044 _flag_k = FK_NARROW(FK_TEST, 24); 5045 if (TEST_Z(_flag_a, _flag_b)) goto L_27015BB3; /* 0x27015B83: je 0x27015bb3 */ 5046 L_27015B85: 5047 RECOMP_ICALL(MEM32(0x270291E4)); /* 0x27015B85: call dword ptr [0x270291e4] */ 5048 RECOMP_FLAGS_IN(); 5049 edx = MEM32(esi + 0x94); /* 0x27015B8B: mov edx, dword ptr [esi + 0x94] */ 5050 ecx = MEM32(esi + 0x98); /* 0x27015B91: mov ecx, dword ptr [esi + 0x98] */ 5051 eax = MEM32(eax + 0x24); /* 0x27015B97: mov eax, dword ptr [eax + 0x24] */ 5052 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5054 edx = edx + ecx; /* 0x27015B9A: add edx, ecx */ 5055 _flag_k = FK_ADD; 5056 /* cmp eax, edx */ /* 0x27015B9C: cmp eax, edx */ 5057 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5059 _flag_k = FK_CMP; 5060 if (CMP_LE(_flag_a, _flag_b)) goto L_27015BB3; /* 0x27015B9E: jle 0x27015bb3 */ 5061 L_27015BA0: 5062 ecx = esi; /* 0x27015BA0: mov ecx, esi */ 5063 MEM32(esi + 0x98) = eax; /* 0x27015BA2: mov dword ptr [esi + 0x98], eax */ 5064 MEM32(esi + 0x60) = ebx; /* 0x27015BA8: mov dword ptr [esi + 0x60], ebx */ 5065 MEM32(esi + 0x64) = edi; /* 0x27015BAB: mov dword ptr [esi + 0x64], edi */ 5066 RECOMP_ICALL(0x27015DE0u); /* 0x27015BAE: call 0x27015de0 */ /* not lifted */ 5067 RECOMP_FLAGS_IN(); 5068 L_27015BB3: 5069 RECOMP_ICALL(0x27002B60u); /* 0x27015BB3: call 0x27002b60 */ /* not lifted */ 5070 RECOMP_FLAGS_IN(); 5071 /* cmp esi, MEM32(eax + 0xCC) */ /* 0x27015BB8: cmp esi, dword ptr [eax + 0xcc] */ 5072 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0xCC)); 5073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5074 _flag_k = FK_CMP; 5075 ecx = MEM32(ebp + 0x10); /* 0x27015BBE: mov ecx, dword ptr [ebp + 0x10] */ 5076 if (CMP_NE(_flag_a, _flag_b)) goto L_27015C06; /* 0x27015BC1: jne 0x27015c06 */ 5077 L_27015BC3: 5078 /* cmp ecx, 4 */ /* 0x27015BC3: cmp ecx, 4 */ 5079 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 5080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5081 _flag_k = FK_CMP; 5082 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015BCD; /* 0x27015BC6: je 0x27015bcd */ 5083 L_27015BC8: 5084 /* cmp ecx, 3 */ /* 0x27015BC8: cmp ecx, 3 */ 5085 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5087 _flag_k = FK_CMP; 5088 if (CMP_NE(_flag_a, _flag_b)) goto L_27015BE3; /* 0x27015BCB: jne 0x27015be3 */ 5089 L_27015BCD: 5090 /* test MEM8(esi + 0x5C), 2 */ /* 0x27015BCD: test byte ptr [esi + 0x5c], 2 */ 5091 _flag_a = (uint32_t)(MEM8(esi + 0x5C)) << 24; _flag_b = (uint32_t)(2) << 24; 5092 _cf = 0; 5093 _flag_k = FK_NARROW(FK_TEST, 24); 5094 if (TEST_NZ(_flag_a, _flag_b)) goto L_27015BE3; /* 0x27015BD1: jne 0x27015be3 */ 5095 L_27015BD3: 5096 ecx = esi; /* 0x27015BD3: mov ecx, esi */ 5097 MEM32(esi + 0x60) = ebx; /* 0x27015BD5: mov dword ptr [esi + 0x60], ebx */ 5098 MEM32(esi + 0x64) = edi; /* 0x27015BD8: mov dword ptr [esi + 0x64], edi */ 5099 RECOMP_ICALL(0x27015DE0u); /* 0x27015BDB: call 0x27015de0 */ /* not lifted */ 5100 RECOMP_FLAGS_IN(); 5101 ecx = MEM32(ebp + 0x10); /* 0x27015BE0: mov ecx, dword ptr [ebp + 0x10] */ 5102 L_27015BE3: 5103 /* cmp ecx, 8 */ /* 0x27015BE3: cmp ecx, 8 */ 5104 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 5105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5106 _flag_k = FK_CMP; 5107 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015BED; /* 0x27015BE6: je 0x27015bed */ 5108 L_27015BE8: 5109 /* cmp ecx, 7 */ /* 0x27015BE8: cmp ecx, 7 */ 5110 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(7); 5111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5112 _flag_k = FK_CMP; 5113 if (CMP_NE(_flag_a, _flag_b)) goto L_27015C06; /* 0x27015BEB: jne 0x27015c06 */ 5114 L_27015BED: 5115 eax = MEM32(esi + 0x70); /* 0x27015BED: mov eax, dword ptr [esi + 0x70] */ 5116 /* test eax, eax */ /* 0x27015BF0: test eax, eax */ 5117 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5118 _cf = 0; 5119 _flag_k = FK_TEST; 5120 MEM32(esi + 0x60) = ebx; /* 0x27015BF2: mov dword ptr [esi + 0x60], ebx */ 5121 MEM32(esi + 0x64) = edi; /* 0x27015BF5: mov dword ptr [esi + 0x64], edi */ 5122 if (TEST_Z(_flag_a, _flag_b)) goto L_27015C06; /* 0x27015BF8: je 0x27015c06 */ 5123 L_27015BFA: 5124 ecx = MEM32(esi + 0x74); /* 0x27015BFA: mov ecx, dword ptr [esi + 0x74] */ 5125 PUSH32(esp, ecx); /* 0x27015BFD: push ecx */ 5126 RECOMP_ICALL(eax); /* 0x27015BFE: call eax */ 5127 RECOMP_FLAGS_IN(); 5128 ecx = MEM32(ebp + 0x10); /* 0x27015C00: mov ecx, dword ptr [ebp + 0x10] */ 5129 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5130 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5131 esp = esp + 4; /* 0x27015C03: add esp, 4 */ 5132 _flag_k = FK_ADD; 5133 L_27015C06: 5134 edi = MEM32(esi + 0x78); /* 0x27015C06: mov edi, dword ptr [esi + 0x78] */ 5135 /* test edi, edi */ /* 0x27015C09: test edi, edi */ 5136 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5137 _cf = 0; 5138 _flag_k = FK_TEST; 5139 if (TEST_Z(_flag_a, _flag_b)) goto L_27015C4D; /* 0x27015C0B: je 0x27015c4d */ 5140 L_27015C0D: 5141 /* test ecx, ecx */ /* 0x27015C0D: test ecx, ecx */ 5142 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5143 _cf = 0; 5144 _flag_k = FK_TEST; 5145 if (TEST_Z(_flag_a, _flag_b)) goto L_27015C4D; /* 0x27015C0F: je 0x27015c4d */ 5146 L_27015C11: 5147 edx = ebp + 0x10; /* 0x27015C11: lea edx, [ebp + 0x10] */ 5148 PUSH32(esp, edx); /* 0x27015C14: push edx */ 5149 ecx = edi; /* 0x27015C15: mov ecx, edi */ 5150 RECOMP_ICALL(0x27010030u); /* 0x27015C17: call 0x27010030 */ /* not lifted */ 5151 RECOMP_FLAGS_IN(); 5152 edi = MEM32(edi + 0x4); /* 0x27015C1C: mov edi, dword ptr [edi + 4] */ 5153 /* cmp eax, edi */ /* 0x27015C1F: cmp eax, edi */ 5154 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5156 _flag_k = FK_CMP; 5157 MEM32(ebp + 0x14) = eax; /* 0x27015C21: mov dword ptr [ebp + 0x14], eax */ 5158 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015C33; /* 0x27015C24: je 0x27015c33 */ 5159 L_27015C26: 5160 ecx = MEM32(ebp + 0x10); /* 0x27015C26: mov ecx, dword ptr [ebp + 0x10] */ 5161 /* cmp ecx, MEM32(eax + 0xC) */ /* 0x27015C29: cmp ecx, dword ptr [eax + 0xc] */ 5162 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 5163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5164 _flag_k = FK_CMP; 5165 if (CMP_L(_flag_a, _flag_b)) goto L_27015C33; /* 0x27015C2C: jl 0x27015c33 */ 5166 L_27015C2E: 5167 eax = ebp + 0x14; /* 0x27015C2E: lea eax, [ebp + 0x14] */ 5168 goto L_27015C39; /* 0x27015C31: jmp 0x27015c39 */ 5169 L_27015C33: 5170 MEM32(ebp + 0xC) = edi; /* 0x27015C33: mov dword ptr [ebp + 0xc], edi */ 5171 eax = ebp + 0xC; /* 0x27015C36: lea eax, [ebp + 0xc] */ 5172 L_27015C39: 5173 edx = MEM32(esi + 0x78); /* 0x27015C39: mov edx, dword ptr [esi + 0x78] */ 5174 eax = MEM32(eax); /* 0x27015C3C: mov eax, dword ptr [eax] */ 5175 /* cmp eax, MEM32(edx + 0x4) */ /* 0x27015C3E: cmp eax, dword ptr [edx + 4] */ 5176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5178 _flag_k = FK_CMP; 5179 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015C4D; /* 0x27015C41: je 0x27015c4d */ 5180 L_27015C43: 5181 ecx = MEM32(eax + 0x14); /* 0x27015C43: mov ecx, dword ptr [eax + 0x14] */ 5182 PUSH32(esp, ecx); /* 0x27015C46: push ecx */ 5183 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x27015C47: call dword ptr [eax + 0x10] */ 5184 RECOMP_FLAGS_IN(); 5185 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5187 esp = esp + 4; /* 0x27015C4A: add esp, 4 */ 5188 _flag_k = FK_ADD; 5189 L_27015C4D: 5190 edi = POP32_VAL(esp); /* 0x27015C4D: pop edi */ 5191 esi = POP32_VAL(esp); /* 0x27015C4E: pop esi */ 5192 SET_LO8(eax, 1); /* 0x27015C4F: mov al, 1 */ 5193 ebx = POP32_VAL(esp); /* 0x27015C51: pop ebx */ 5194 ebp = POP32_VAL(esp); /* 0x27015C52: pop ebp */ 5195 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27015C53: ret 0x10 */ 5196 L_27015C56: 5197 edi = POP32_VAL(esp); /* 0x27015C56: pop edi */ 5198 esi = POP32_VAL(esp); /* 0x27015C57: pop esi */ 5199 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 5200 SET_LO8(eax, 0); /* 0x27015C58: xor al, al */ 5201 _cf = 0; 5202 _flag_k = FK_NARROW(FK_TEST, 24); 5203 ebx = POP32_VAL(esp); /* 0x27015C5A: pop ebx */ 5204 ebp = POP32_VAL(esp); /* 0x27015C5B: pop ebp */ 5205 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27015C5C: ret 0x10 */ 5206 RECOMP_REGS_OUT(); 5207 } 5208 5209 void sub_27015C60(void) { 5210 int _fpu_cmp = 0; 5211 uint32_t _cf = 0; 5212 int _df = 1; 5213 uint32_t _flag_k = FK_NONE; 5214 uint32_t _flag_a = 0, _flag_b = 0; 5215 uint32_t _itail_tgt = 0; 5216 RECOMP_REGS_LOCALS 5217 RECOMP_ENTER(0x27015C60u); 5218 5219 L_27015C60: 5220 PUSH32(esp, ebp); /* 0x27015C60: push ebp */ 5221 ebp = esp; /* 0x27015C61: mov ebp, esp */ 5222 PUSH32(esp, 0xFFFFFFFFu); /* 0x27015C63: push -1 */ 5223 PUSH32(esp, 0x27027B8Bu); /* 0x27015C65: push 0x27027b8b */ 5224 eax = MEM32(FS_BASE + (0)); /* 0x27015C6A: mov eax, dword ptr fs:[0] */ 5225 PUSH32(esp, eax); /* 0x27015C70: push eax */ 5226 MEM32(FS_BASE + (0)) = esp; /* 0x27015C71: mov dword ptr fs:[0], esp */ 5227 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 5228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5229 esp = esp - 0x34u; /* 0x27015C78: sub esp, 0x34 */ 5230 _flag_k = FK_CMP; 5231 PUSH32(esp, ebx); /* 0x27015C7B: push ebx */ 5232 PUSH32(esp, esi); /* 0x27015C7C: push esi */ 5233 PUSH32(esp, edi); /* 0x27015C7D: push edi */ 5234 edi = ecx; /* 0x27015C7E: mov edi, ecx */ 5235 eax = MEM32(edi + 0x78); /* 0x27015C80: mov eax, dword ptr [edi + 0x78] */ 5236 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5237 ebx = 0; /* 0x27015C83: xor ebx, ebx */ 5238 _cf = 0; 5239 _flag_k = FK_TEST; 5240 /* cmp eax, ebx */ /* 0x27015C85: cmp eax, ebx */ 5241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5243 _flag_k = FK_CMP; 5244 if (CMP_NE(_flag_a, _flag_b)) goto L_27015CF1; /* 0x27015C87: jne 0x27015cf1 */ 5245 L_27015C89: 5246 PUSH32(esp, 0x14u); /* 0x27015C89: push 0x14 */ 5247 RECOMP_ICALL(0x27026EA4u); /* 0x27015C8B: call 0x27026ea4 */ /* not lifted */ 5248 RECOMP_FLAGS_IN(); 5249 esi = eax; /* 0x27015C90: mov esi, eax */ 5250 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5252 esp = esp + 4; /* 0x27015C92: add esp, 4 */ 5253 _flag_k = FK_ADD; 5254 MEM32(ebp + (-0x10)) = esi; /* 0x27015C95: mov dword ptr [ebp - 0x10], esi */ 5255 /* cmp esi, ebx */ /* 0x27015C98: cmp esi, ebx */ 5256 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5258 _flag_k = FK_CMP; 5259 MEM32(ebp + (-0x4)) = ebx; /* 0x27015C9A: mov dword ptr [ebp - 4], ebx */ 5260 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015CE5; /* 0x27015C9D: je 0x27015ce5 */ 5261 L_27015C9F: 5262 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x27015C9F: mov cl, byte ptr [ebp + 0xb] */ 5263 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x27015CA2: mov al, byte ptr [ebp + 0xb] */ 5264 PUSH32(esp, 1); /* 0x27015CA5: push 1 */ 5265 MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x27015CA7: mov byte ptr [esi + 1], cl */ 5266 PUSH32(esp, ebx); /* 0x27015CAA: push ebx */ 5267 ecx = esi; /* 0x27015CAB: mov ecx, esi */ 5268 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x27015CAD: mov byte ptr [esi], al */ 5269 MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x27015CAF: mov byte ptr [esi + 0xc], bl */ 5270 RECOMP_ICALL(0x27016640u); /* 0x27015CB2: call 0x27016640 */ /* not lifted */ 5271 RECOMP_FLAGS_IN(); 5272 MEM32(esi + 0x8) = eax; /* 0x27015CB7: mov dword ptr [esi + 8], eax */ 5273 MEM8(eax + 0x19) = (uint8_t)(1); /* 0x27015CBA: mov byte ptr [eax + 0x19], 1 */ 5274 eax = MEM32(esi + 0x8); /* 0x27015CBE: mov eax, dword ptr [esi + 8] */ 5275 MEM32(eax) = ebx; /* 0x27015CC1: mov dword ptr [eax], ebx */ 5276 edx = MEM32(esi + 0x8); /* 0x27015CC3: mov edx, dword ptr [esi + 8] */ 5277 MEM32(edx + 0x8) = ebx; /* 0x27015CC6: mov dword ptr [edx + 8], ebx */ 5278 eax = MEM32(esi + 0x8); /* 0x27015CC9: mov eax, dword ptr [esi + 8] */ 5279 PUSH32(esp, ebx); /* 0x27015CCC: push ebx */ 5280 PUSH32(esp, eax); /* 0x27015CCD: push eax */ 5281 ecx = esi; /* 0x27015CCE: mov ecx, esi */ 5282 RECOMP_ICALL(0x27016640u); /* 0x27015CD0: call 0x27016640 */ /* not lifted */ 5283 RECOMP_FLAGS_IN(); 5284 MEM32(esi + 0x4) = eax; /* 0x27015CD5: mov dword ptr [esi + 4], eax */ 5285 MEM32(eax) = eax; /* 0x27015CD8: mov dword ptr [eax], eax */ 5286 eax = MEM32(esi + 0x4); /* 0x27015CDA: mov eax, dword ptr [esi + 4] */ 5287 MEM32(eax + 0x8) = eax; /* 0x27015CDD: mov dword ptr [eax + 8], eax */ 5288 MEM32(esi + 0x10) = ebx; /* 0x27015CE0: mov dword ptr [esi + 0x10], ebx */ 5289 goto L_27015CE7; /* 0x27015CE3: jmp 0x27015ce7 */ 5290 L_27015CE5: 5291 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5292 esi = 0; /* 0x27015CE5: xor esi, esi */ 5293 _cf = 0; 5294 _flag_k = FK_TEST; 5295 L_27015CE7: 5296 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27015CE7: mov dword ptr [ebp - 4], 0xffffffff */ 5297 MEM32(edi + 0x78) = esi; /* 0x27015CEE: mov dword ptr [edi + 0x78], esi */ 5298 L_27015CF1: 5299 eax = MEM32(ebp + 0xC); /* 0x27015CF1: mov eax, dword ptr [ebp + 0xc] */ 5300 ecx = MEM32(ebp + 0x10); /* 0x27015CF4: mov ecx, dword ptr [ebp + 0x10] */ 5301 edx = MEM32(ebp + 0x8); /* 0x27015CF7: mov edx, dword ptr [ebp + 8] */ 5302 edi = MEM32(edi + 0x78); /* 0x27015CFA: mov edi, dword ptr [edi + 0x78] */ 5303 MEM32(ebp + (-0x3C)) = eax; /* 0x27015CFD: mov dword ptr [ebp - 0x3c], eax */ 5304 MEM32(ebp + (-0x40)) = edx; /* 0x27015D00: mov dword ptr [ebp - 0x40], edx */ 5305 MEM32(ebp + (-0x38)) = ecx; /* 0x27015D03: mov dword ptr [ebp - 0x38], ecx */ 5306 ecx = MEM32(edi + 0x4); /* 0x27015D06: mov ecx, dword ptr [edi + 4] */ 5307 esi = MEM32(ecx + 0x4); /* 0x27015D09: mov esi, dword ptr [ecx + 4] */ 5308 edx = MEM32(edi + 0x8); /* 0x27015D0C: mov edx, dword ptr [edi + 8] */ 5309 /* cmp esi, edx */ /* 0x27015D0F: cmp esi, edx */ 5310 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 5311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5312 _flag_k = FK_CMP; 5313 ebx = ecx; /* 0x27015D11: mov ebx, ecx */ 5314 SET_LO8(eax, 1); /* 0x27015D13: mov al, 1 */ 5315 if (CMP_EQ(_flag_a, _flag_b)) goto L_27015D31; /* 0x27015D15: je 0x27015d31 */ 5316 L_27015D17: 5317 eax = MEM32(ebp + 0x8); /* 0x27015D17: mov eax, dword ptr [ebp + 8] */ 5318 /* cmp eax, MEM32(esi + 0xC) */ /* 0x27015D1A: cmp eax, dword ptr [esi + 0xc] */ 5319 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 5320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5321 _flag_k = FK_CMP; 5322 ebx = esi; /* 0x27015D1D: mov ebx, esi */ 5323 SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x27015D1F: setl al */ 5324 /* test LO8(eax), LO8(eax) */ /* 0x27015D22: test al, al */ 5325 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5326 _cf = 0; 5327 _flag_k = FK_NARROW(FK_TEST, 24); 5328 if (TEST_Z(_flag_a, _flag_b)) goto L_27015D2A; /* 0x27015D24: je 0x27015d2a */ 5329 L_27015D26: 5330 esi = MEM32(esi); /* 0x27015D26: mov esi, dword ptr [esi] */ 5331 goto L_27015D2D; /* 0x27015D28: jmp 0x27015d2d */ 5332 L_27015D2A: 5333 esi = MEM32(esi + 0x8); /* 0x27015D2A: mov esi, dword ptr [esi + 8] */ 5334 L_27015D2D: 5335 /* cmp esi, edx */ /* 0x27015D2D: cmp esi, edx */ 5336 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 5337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5338 _flag_k = FK_CMP; 5339 RECOMP_BACKEDGE(); 5340 if (CMP_NE(_flag_a, _flag_b)) goto L_27015D17; /* 0x27015D2F: jne 0x27015d17 */ 5341 L_27015D31: 5342 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x27015D31: mov dl, byte ptr [edi + 0xc] */ 5343 /* test LO8(edx), LO8(edx) */ /* 0x27015D34: test dl, dl */ 5344 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5345 _cf = 0; 5346 _flag_k = FK_NARROW(FK_TEST, 24); 5347 if (TEST_Z(_flag_a, _flag_b)) goto L_27015D5C; /* 0x27015D36: je 0x27015d5c */ 5348 L_27015D38: 5349 ecx = ebp + (-0x40); /* 0x27015D38: lea ecx, [ebp - 0x40] */ 5350 PUSH32(esp, ecx); /* 0x27015D3B: push ecx */ 5351 PUSH32(esp, ebx); /* 0x27015D3C: push ebx */ 5352 PUSH32(esp, esi); /* 0x27015D3D: push esi */ 5353 edx = ebp + (-0x14); /* 0x27015D3E: lea edx, [ebp - 0x14] */ 5354 PUSH32(esp, edx); /* 0x27015D41: push edx */ 5355 ecx = edi; /* 0x27015D42: mov ecx, edi */ 5356 RECOMP_ICALL(0x27016400u); /* 0x27015D44: call 0x27016400 */ /* not lifted */ 5357 RECOMP_FLAGS_IN(); 5358 edi = POP32_VAL(esp); /* 0x27015D49: pop edi */ 5359 esi = POP32_VAL(esp); /* 0x27015D4A: pop esi */ 5360 ebx = POP32_VAL(esp); /* 0x27015D4B: pop ebx */ 5361 ecx = MEM32(ebp + (-0xC)); /* 0x27015D4C: mov ecx, dword ptr [ebp - 0xc] */ 5362 MEM32(FS_BASE + (0)) = ecx; /* 0x27015D4F: mov dword ptr fs:[0], ecx */ 5363 esp = ebp; /* 0x27015D56: mov esp, ebp */ 5364 ebp = POP32_VAL(esp); /* 0x27015D58: pop ebp */ 5365 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x27015D59: ret 0xc */ 5366 L_27015D5C: 5367 /* test LO8(eax), LO8(eax) */ /* 0x27015D5C: test al, al */ 5368 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5369 _cf = 0; 5370 _flag_k = FK_NARROW(FK_TEST, 24); 5371 MEM32(ebp + (-0x10)) = ebx; /* 0x27015D5E: mov dword ptr [ebp - 0x10], ebx */ 5372 if (TEST_Z(_flag_a, _flag_b)) goto L_27015D8E; /* 0x27015D61: je 0x27015d8e */ 5373 L_27015D63: 5374 /* cmp ebx, MEM32(ecx) */ /* 0x27015D63: cmp ebx, dword ptr [ecx] */ 5375 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ecx)); 5376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5377 _flag_k = FK_CMP; 5378 if (CMP_NE(_flag_a, _flag_b)) goto L_27015D86; /* 0x27015D65: jne 0x27015d86 */ 5379 L_27015D67: 5380 eax = ebp + 0xB; /* 0x27015D67: lea eax, [ebp + 0xb] */ 5381 PUSH32(esp, eax); /* 0x27015D6A: push eax */ 5382 ecx = ebp + (-0x40); /* 0x27015D6B: lea ecx, [ebp - 0x40] */ 5383 PUSH32(esp, ecx); /* 0x27015D6E: push ecx */ 5384 PUSH32(esp, ebx); /* 0x27015D6F: push ebx */ 5385 PUSH32(esp, esi); /* 0x27015D70: push esi */ 5386 edx = ebp + (-0x18); /* 0x27015D71: lea edx, [ebp - 0x18] */ 5387 PUSH32(esp, edx); /* 0x27015D74: push edx */ 5388 ecx = edi; /* 0x27015D75: mov ecx, edi */ 5389 MEM8(ebp + 0xB) = (uint8_t)(1); /* 0x27015D77: mov byte ptr [ebp + 0xb], 1 */ 5390 RECOMP_ICALL(0x27016400u); /* 0x27015D7B: call 0x27016400 */ /* not lifted */ 5391 RECOMP_FLAGS_IN(); 5392 PUSH32(esp, eax); /* 0x27015D80: push eax */ 5393 ecx = ebp + (-0x24); /* 0x27015D81: lea ecx, [ebp - 0x24] */ 5394 goto L_27015DC7; /* 0x27015D84: jmp 0x27015dc7 */ 5395 L_27015D86: 5396 ecx = ebp + (-0x10); /* 0x27015D86: lea ecx, [ebp - 0x10] */ 5397 RECOMP_ICALL(0x27016670u); /* 0x27015D89: call 0x27016670 */ /* not lifted */ 5398 RECOMP_FLAGS_IN(); 5399 L_27015D8E: 5400 eax = MEM32(ebp + (-0x10)); /* 0x27015D8E: mov eax, dword ptr [ebp - 0x10] */ 5401 ecx = MEM32(eax + 0xC); /* 0x27015D91: mov ecx, dword ptr [eax + 0xc] */ 5402 /* cmp ecx, MEM32(ebp + (-0x40)) */ /* 0x27015D94: cmp ecx, dword ptr [ebp - 0x40] */ 5403 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 5404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5405 _flag_k = FK_CMP; 5406 if (CMP_GE(_flag_a, _flag_b)) goto L_27015DB8; /* 0x27015D97: jge 0x27015db8 */ 5407 L_27015D99: 5408 edx = ebp + 0xF; /* 0x27015D99: lea edx, [ebp + 0xf] */ 5409 PUSH32(esp, edx); /* 0x27015D9C: push edx */ 5410 eax = ebp + (-0x40); /* 0x27015D9D: lea eax, [ebp - 0x40] */ 5411 PUSH32(esp, eax); /* 0x27015DA0: push eax */ 5412 PUSH32(esp, ebx); /* 0x27015DA1: push ebx */ 5413 PUSH32(esp, esi); /* 0x27015DA2: push esi */ 5414 ecx = ebp + (-0x1C); /* 0x27015DA3: lea ecx, [ebp - 0x1c] */ 5415 PUSH32(esp, ecx); /* 0x27015DA6: push ecx */ 5416 ecx = edi; /* 0x27015DA7: mov ecx, edi */ 5417 MEM8(ebp + 0xF) = (uint8_t)(1); /* 0x27015DA9: mov byte ptr [ebp + 0xf], 1 */ 5418 RECOMP_ICALL(0x27016400u); /* 0x27015DAD: call 0x27016400 */ /* not lifted */ 5419 RECOMP_FLAGS_IN(); 5420 PUSH32(esp, eax); /* 0x27015DB2: push eax */ 5421 ecx = ebp + (-0x2C); /* 0x27015DB3: lea ecx, [ebp - 0x2c] */ 5422 goto L_27015DC7; /* 0x27015DB6: jmp 0x27015dc7 */ 5423 L_27015DB8: 5424 edx = ebp + 0x13; /* 0x27015DB8: lea edx, [ebp + 0x13] */ 5425 PUSH32(esp, edx); /* 0x27015DBB: push edx */ 5426 eax = ebp + (-0x10); /* 0x27015DBC: lea eax, [ebp - 0x10] */ 5427 MEM8(ebp + 0x13) = (uint8_t)(0); /* 0x27015DBF: mov byte ptr [ebp + 0x13], 0 */ 5428 PUSH32(esp, eax); /* 0x27015DC3: push eax */ 5429 ecx = ebp + (-0x34); /* 0x27015DC4: lea ecx, [ebp - 0x34] */ 5430 L_27015DC7: 5431 RECOMP_ICALL(0x2700FDD0u); /* 0x27015DC7: call 0x2700fdd0 */ /* not lifted */ 5432 RECOMP_FLAGS_IN(); 5433 ecx = MEM32(ebp + (-0xC)); /* 0x27015DCC: mov ecx, dword ptr [ebp - 0xc] */ 5434 edi = POP32_VAL(esp); /* 0x27015DCF: pop edi */ 5435 esi = POP32_VAL(esp); /* 0x27015DD0: pop esi */ 5436 ebx = POP32_VAL(esp); /* 0x27015DD1: pop ebx */ 5437 MEM32(FS_BASE + (0)) = ecx; /* 0x27015DD2: mov dword ptr fs:[0], ecx */ 5438 esp = ebp; /* 0x27015DD9: mov esp, ebp */ 5439 ebp = POP32_VAL(esp); /* 0x27015DDB: pop ebp */ 5440 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x27015DDC: ret 0xc */ 5441 RECOMP_REGS_OUT(); 5442 } 5443 5444 void sub_27015DE0(void) { 5445 int _fpu_cmp = 0; 5446 uint32_t _cf = 0; 5447 int _df = 1; 5448 uint32_t _flag_k = FK_NONE; 5449 uint32_t _flag_a = 0, _flag_b = 0; 5450 uint32_t _itail_tgt = 0; 5451 RECOMP_REGS_LOCALS 5452 RECOMP_ENTER(0x27015DE0u); 5453 5454 L_27015DE0: 5455 PUSH32(esp, esi); /* 0x27015DE0: push esi */ 5456 esi = ecx; /* 0x27015DE1: mov esi, ecx */ 5457 /* test MEM8(esi + 0x5C), 4 */ /* 0x27015DE3: test byte ptr [esi + 0x5c], 4 */ 5458 _flag_a = (uint32_t)(MEM8(esi + 0x5C)) << 24; _flag_b = (uint32_t)(4) << 24; 5459 _cf = 0; 5460 _flag_k = FK_NARROW(FK_TEST, 24); 5461 if (TEST_NZ(_flag_a, _flag_b)) goto L_27015E2F; /* 0x27015DE7: jne 0x27015e2f */ 5462 L_27015DE9: 5463 eax = MEM32(esi + 0x68); /* 0x27015DE9: mov eax, dword ptr [esi + 0x68] */ 5464 /* test eax, eax */ /* 0x27015DEC: test eax, eax */ 5465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5466 _cf = 0; 5467 _flag_k = FK_TEST; 5468 if (TEST_Z(_flag_a, _flag_b)) goto L_27015DFB; /* 0x27015DEE: je 0x27015dfb */ 5469 L_27015DF0: 5470 ecx = MEM32(esi + 0x6C); /* 0x27015DF0: mov ecx, dword ptr [esi + 0x6c] */ 5471 PUSH32(esp, ecx); /* 0x27015DF3: push ecx */ 5472 RECOMP_ICALL(eax); /* 0x27015DF4: call eax */ 5473 RECOMP_FLAGS_IN(); 5474 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5475 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5476 esp = esp + 4; /* 0x27015DF6: add esp, 4 */ 5477 _flag_k = FK_ADD; 5478 goto L_27015E19; /* 0x27015DF9: jmp 0x27015e19 */ 5479 L_27015DFB: 5480 edx = MEM32(esi + 0x64); /* 0x27015DFB: mov edx, dword ptr [esi + 0x64] */ 5481 eax = MEM32(esi + 0x60); /* 0x27015DFE: mov eax, dword ptr [esi + 0x60] */ 5482 ecx = MEM32(esi + 0x58); /* 0x27015E01: mov ecx, dword ptr [esi + 0x58] */ 5483 PUSH32(esp, edx); /* 0x27015E04: push edx */ 5484 edx = MEM32(esi + 0x54); /* 0x27015E05: mov edx, dword ptr [esi + 0x54] */ 5485 PUSH32(esp, eax); /* 0x27015E08: push eax */ 5486 PUSH32(esp, ecx); /* 0x27015E09: push ecx */ 5487 PUSH32(esp, edx); /* 0x27015E0A: push edx */ 5488 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x27015E0B: call dword ptr [0x270291d0] */ 5489 RECOMP_FLAGS_IN(); 5490 ecx = eax; /* 0x27015E11: mov ecx, eax */ 5491 RECOMP_ICALL(MEM32(0x270291BC)); /* 0x27015E13: call dword ptr [0x270291bc] */ 5492 RECOMP_FLAGS_IN(); 5493 L_27015E19: 5494 /* test MEM8(esi + 0x5C), 1 */ /* 0x27015E19: test byte ptr [esi + 0x5c], 1 */ 5495 _flag_a = (uint32_t)(MEM8(esi + 0x5C)) << 24; _flag_b = (uint32_t)(1) << 24; 5496 _cf = 0; 5497 _flag_k = FK_NARROW(FK_TEST, 24); 5498 if (TEST_Z(_flag_a, _flag_b)) goto L_27015E2F; /* 0x27015E1D: je 0x27015e2f */ 5499 L_27015E1F: 5500 eax = MEM32(esi + 0x8C); /* 0x27015E1F: mov eax, dword ptr [esi + 0x8c] */ 5501 PUSH32(esp, eax); /* 0x27015E25: push eax */ 5502 RECOMP_ICALL(MEM32(0x270293BC)); /* 0x27015E26: call dword ptr [0x270293bc] */ 5503 RECOMP_FLAGS_IN(); 5504 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5505 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5506 esp = esp + 4; /* 0x27015E2C: add esp, 4 */ 5507 _flag_k = FK_ADD; 5508 L_27015E2F: 5509 esi = POP32_VAL(esp); /* 0x27015E2F: pop esi */ 5510 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27015E30: ret */ 5511 RECOMP_REGS_OUT(); 5512 } 5513 5514 void sub_27015E40(void) { 5515 int _fpu_cmp = 0; 5516 uint32_t _cf = 0; 5517 int _df = 1; 5518 uint32_t _flag_k = FK_NONE; 5519 uint32_t _flag_a = 0, _flag_b = 0; 5520 uint32_t _itail_tgt = 0; 5521 RECOMP_REGS_LOCALS 5522 RECOMP_ENTER(0x27015E40u); 5523 5524 L_27015E40: 5525 PUSH32(esp, ebp); /* 0x27015E40: push ebp */ 5526 ebp = esp; /* 0x27015E41: mov ebp, esp */ 5527 eax = MEM32(ebp + 0x8); /* 0x27015E43: mov eax, dword ptr [ebp + 8] */ 5528 edx = MEM32(ebp + 0xC); /* 0x27015E46: mov edx, dword ptr [ebp + 0xc] */ 5529 MEM32(ecx + 0x68) = eax; /* 0x27015E49: mov dword ptr [ecx + 0x68], eax */ 5530 MEM32(ecx + 0x6C) = edx; /* 0x27015E4C: mov dword ptr [ecx + 0x6c], edx */ 5531 ebp = POP32_VAL(esp); /* 0x27015E4F: pop ebp */ 5532 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27015E50: ret 8 */ 5533 RECOMP_REGS_OUT(); 5534 } 5535 5536 void sub_27015E60(void) { 5537 int _fpu_cmp = 0; 5538 uint32_t _cf = 0; 5539 int _df = 1; 5540 uint32_t _flag_k = FK_NONE; 5541 uint32_t _flag_a = 0, _flag_b = 0; 5542 uint32_t _itail_tgt = 0; 5543 RECOMP_REGS_LOCALS 5544 RECOMP_ENTER(0x27015E60u); 5545 5546 L_27015E60: 5547 PUSH32(esp, ebp); /* 0x27015E60: push ebp */ 5548 ebp = esp; /* 0x27015E61: mov ebp, esp */ 5549 eax = MEM32(ebp + 0x8); /* 0x27015E63: mov eax, dword ptr [ebp + 8] */ 5550 MEM32(ecx + 0x8C) = eax; /* 0x27015E66: mov dword ptr [ecx + 0x8c], eax */ 5551 _flag_a = (uint32_t)((MEM32(ecx + 0x5C) | 1)); _flag_b = (uint32_t)((MEM32(ecx + 0x5C) | 1)); 5552 MEM32(ecx + 0x5C) = MEM32(ecx + 0x5C) | 1; /* 0x27015E6C: or dword ptr [ecx + 0x5c], 1 */ 5553 _cf = 0; 5554 _flag_k = FK_TEST; 5555 ebp = POP32_VAL(esp); /* 0x27015E70: pop ebp */ 5556 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27015E71: ret 4 */ 5557 RECOMP_REGS_OUT(); 5558 } 5559 5560 void sub_27015E80(void) { 5561 int _fpu_cmp = 0; 5562 uint32_t _cf = 0; 5563 int _df = 1; 5564 uint32_t _flag_k = FK_NONE; 5565 uint32_t _flag_a = 0, _flag_b = 0; 5566 uint32_t _itail_tgt = 0; 5567 RECOMP_REGS_LOCALS 5568 RECOMP_ENTER(0x27015E80u); 5569 5570 L_27015E80: 5571 _flag_a = (uint32_t)(MEM32(ecx + 0x5C)); _flag_b = (uint32_t)(0xFFFFFFFEu); 5572 MEM32(ecx + 0x5C) = MEM32(ecx + 0x5C) & 0xFFFFFFFEu; /* 0x27015E80: and dword ptr [ecx + 0x5c], 0xfffffffe */ 5573 _cf = 0; 5574 _flag_k = FK_TEST; 5575 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27015E84: ret */ 5576 RECOMP_REGS_OUT(); 5577 } 5578 5579 void sub_27015E90(void) { 5580 int _fpu_cmp = 0; 5581 uint32_t _cf = 0; 5582 int _df = 1; 5583 uint32_t _flag_k = FK_NONE; 5584 uint32_t _flag_a = 0, _flag_b = 0; 5585 uint32_t _itail_tgt = 0; 5586 RECOMP_REGS_LOCALS 5587 RECOMP_ENTER(0x27015E90u); 5588 5589 L_27015E90: 5590 PUSH32(esp, ebp); /* 0x27015E90: push ebp */ 5591 ebp = esp; /* 0x27015E91: mov ebp, esp */ 5592 eax = MEM32(ebp + 0x8); /* 0x27015E93: mov eax, dword ptr [ebp + 8] */ 5593 MEM32(ecx + 0x94) = eax; /* 0x27015E96: mov dword ptr [ecx + 0x94], eax */ 5594 _flag_a = (uint32_t)((MEM32(ecx + 0x5C) | 2)); _flag_b = (uint32_t)((MEM32(ecx + 0x5C) | 2)); 5595 MEM32(ecx + 0x5C) = MEM32(ecx + 0x5C) | 2; /* 0x27015E9C: or dword ptr [ecx + 0x5c], 2 */ 5596 _cf = 0; 5597 _flag_k = FK_TEST; 5598 ebp = POP32_VAL(esp); /* 0x27015EA0: pop ebp */ 5599 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27015EA1: ret 4 */ 5600 RECOMP_REGS_OUT(); 5601 } 5602 5603 void sub_27015EB0(void) { 5604 int _fpu_cmp = 0; 5605 uint32_t _cf = 0; 5606 int _df = 1; 5607 uint32_t _flag_k = FK_NONE; 5608 uint32_t _flag_a = 0, _flag_b = 0; 5609 uint32_t _itail_tgt = 0; 5610 RECOMP_REGS_LOCALS 5611 RECOMP_ENTER(0x27015EB0u); 5612 5613 L_27015EB0: 5614 _flag_a = (uint32_t)(MEM32(ecx + 0x5C)); _flag_b = (uint32_t)(0xFFFFFFFDu); 5615 MEM32(ecx + 0x5C) = MEM32(ecx + 0x5C) & 0xFFFFFFFDu; /* 0x27015EB0: and dword ptr [ecx + 0x5c], 0xfffffffd */ 5616 _cf = 0; 5617 _flag_k = FK_TEST; 5618 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27015EB4: ret */ 5619 RECOMP_REGS_OUT(); 5620 } 5621 5622 void sub_27015EC0(void) { 5623 int _fpu_cmp = 0; 5624 uint32_t _cf = 0; 5625 int _df = 1; 5626 uint32_t _flag_k = FK_NONE; 5627 uint32_t _flag_a = 0, _flag_b = 0; 5628 uint32_t _itail_tgt = 0; 5629 RECOMP_REGS_LOCALS 5630 RECOMP_ENTER(0x27015EC0u); 5631 5632 L_27015EC0: 5633 PUSH32(esp, ebp); /* 0x27015EC0: push ebp */ 5634 ebp = esp; /* 0x27015EC1: mov ebp, esp */ 5635 edx = MEM32(ecx + 0x60); /* 0x27015EC3: mov edx, dword ptr [ecx + 0x60] */ 5636 eax = MEM32(ebp + 0x8); /* 0x27015EC6: mov eax, dword ptr [ebp + 8] */ 5637 MEM32(eax) = edx; /* 0x27015EC9: mov dword ptr [eax], edx */ 5638 ecx = MEM32(ecx + 0x64); /* 0x27015ECB: mov ecx, dword ptr [ecx + 0x64] */ 5639 MEM32(eax + 0x4) = ecx; /* 0x27015ECE: mov dword ptr [eax + 4], ecx */ 5640 ebp = POP32_VAL(esp); /* 0x27015ED1: pop ebp */ 5641 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27015ED2: ret 4 */ 5642 RECOMP_REGS_OUT(); 5643 } 5644 5645 void sub_27015EE0(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(0x27015EE0u); 5654 5655 L_27015EE0: 5656 PUSH32(esp, ebp); /* 0x27015EE0: push ebp */ 5657 ebp = esp; /* 0x27015EE1: mov ebp, esp */ 5658 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5660 esp = esp - 8; /* 0x27015EE3: sub esp, 8 */ 5661 _flag_k = FK_CMP; 5662 PUSH32(esp, esi); /* 0x27015EE6: push esi */ 5663 esi = ecx; /* 0x27015EE7: mov esi, ecx */ 5664 eax = MEM32(esi + 0x7C); /* 0x27015EE9: mov eax, dword ptr [esi + 0x7c] */ 5665 /* test eax, eax */ /* 0x27015EEC: test eax, eax */ 5666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5667 _cf = 0; 5668 _flag_k = FK_TEST; 5669 if (TEST_Z(_flag_a, _flag_b)) goto L_27015F42; /* 0x27015EEE: je 0x27015f42 */ 5670 L_27015EF0: 5671 edx = MEM32(esi + 0x84); /* 0x27015EF0: mov edx, dword ptr [esi + 0x84] */ 5672 ecx = MEM32(ebp + 0x8); /* 0x27015EF6: mov ecx, dword ptr [ebp + 8] */ 5673 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5675 ecx = ecx - edx; /* 0x27015EF9: sub ecx, edx */ 5676 _flag_k = FK_CMP; 5677 edx = MEM32(ebp + 0xC); /* 0x27015EFB: mov edx, dword ptr [ebp + 0xc] */ 5678 MEM32(ebp + (-0x8)) = ecx; /* 0x27015EFE: mov dword ptr [ebp - 8], ecx */ 5679 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x88)); 5680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5681 edx = edx - MEM32(esi + 0x88); /* 0x27015F01: sub edx, dword ptr [esi + 0x88] */ 5682 _flag_k = FK_CMP; 5683 PUSH32(esp, 1); /* 0x27015F07: push 1 */ 5684 ecx = ebp + (-0x8); /* 0x27015F09: lea ecx, [ebp - 8] */ 5685 MEM32(ebp + (-0x4)) = edx; /* 0x27015F0C: mov dword ptr [ebp - 4], edx */ 5686 edx = MEM32(esi + 0x80); /* 0x27015F0F: mov edx, dword ptr [esi + 0x80] */ 5687 PUSH32(esp, ecx); /* 0x27015F15: push ecx */ 5688 PUSH32(esp, edx); /* 0x27015F16: push edx */ 5689 RECOMP_ICALL(eax); /* 0x27015F17: call eax */ 5690 RECOMP_FLAGS_IN(); 5691 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5692 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5693 esp = esp + 0xCu; /* 0x27015F19: add esp, 0xc */ 5694 _flag_k = FK_ADD; 5695 RECOMP_ICALL(0x27002B60u); /* 0x27015F1C: call 0x27002b60 */ /* not lifted */ 5696 RECOMP_FLAGS_IN(); 5697 ecx = MEM32(eax + 0x108); /* 0x27015F21: mov ecx, dword ptr [eax + 0x108] */ 5698 MEM32(esi + 0x84) = ecx; /* 0x27015F27: mov dword ptr [esi + 0x84], ecx */ 5699 edx = MEM32(eax + 0x10C); /* 0x27015F2D: mov edx, dword ptr [eax + 0x10c] */ 5700 MEM32(esi + 0x88) = edx; /* 0x27015F33: mov dword ptr [esi + 0x88], edx */ 5701 SET_LO8(eax, 1); /* 0x27015F39: mov al, 1 */ 5702 esi = POP32_VAL(esp); /* 0x27015F3B: pop esi */ 5703 esp = ebp; /* 0x27015F3C: mov esp, ebp */ 5704 ebp = POP32_VAL(esp); /* 0x27015F3E: pop ebp */ 5705 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27015F3F: ret 8 */ 5706 L_27015F42: 5707 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 5708 SET_LO8(eax, 0); /* 0x27015F42: xor al, al */ 5709 _cf = 0; 5710 _flag_k = FK_NARROW(FK_TEST, 24); 5711 esi = POP32_VAL(esp); /* 0x27015F44: pop esi */ 5712 esp = ebp; /* 0x27015F45: mov esp, ebp */ 5713 ebp = POP32_VAL(esp); /* 0x27015F47: pop ebp */ 5714 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27015F48: ret 8 */ 5715 RECOMP_REGS_OUT(); 5716 } 5717 5718 void sub_27015F50(void) { 5719 int _fpu_cmp = 0; 5720 uint32_t _cf = 0; 5721 int _df = 1; 5722 uint32_t _flag_k = FK_NONE; 5723 uint32_t _flag_a = 0, _flag_b = 0; 5724 uint32_t _itail_tgt = 0; 5725 RECOMP_REGS_LOCALS 5726 RECOMP_ENTER(0x27015F50u); 5727 5728 L_27015F50: 5729 PUSH32(esp, ebp); /* 0x27015F50: push ebp */ 5730 ebp = esp; /* 0x27015F51: mov ebp, esp */ 5731 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5733 esp = esp - 8; /* 0x27015F53: sub esp, 8 */ 5734 _flag_k = FK_CMP; 5735 PUSH32(esp, esi); /* 0x27015F56: push esi */ 5736 esi = ecx; /* 0x27015F57: mov esi, ecx */ 5737 MEM32(ebp + (-0x8)) = 0; /* 0x27015F59: mov dword ptr [ebp - 8], 0 */ 5738 MEM32(ebp + (-0x4)) = 0; /* 0x27015F60: mov dword ptr [ebp - 4], 0 */ 5739 RECOMP_ICALL(0x27002B60u); /* 0x27015F67: call 0x27002b60 */ /* not lifted */ 5740 RECOMP_FLAGS_IN(); 5741 ecx = MEM32(eax + 0x108); /* 0x27015F6C: mov ecx, dword ptr [eax + 0x108] */ 5742 MEM32(esi + 0x84) = ecx; /* 0x27015F72: mov dword ptr [esi + 0x84], ecx */ 5743 edx = MEM32(eax + 0x10C); /* 0x27015F78: mov edx, dword ptr [eax + 0x10c] */ 5744 eax = MEM32(esi + 0x7C); /* 0x27015F7E: mov eax, dword ptr [esi + 0x7c] */ 5745 /* test eax, eax */ /* 0x27015F81: test eax, eax */ 5746 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5747 _cf = 0; 5748 _flag_k = FK_TEST; 5749 MEM32(esi + 0x88) = edx; /* 0x27015F83: mov dword ptr [esi + 0x88], edx */ 5750 if (TEST_Z(_flag_a, _flag_b)) goto L_27015F9D; /* 0x27015F89: je 0x27015f9d */ 5751 L_27015F8B: 5752 edx = MEM32(esi + 0x80); /* 0x27015F8B: mov edx, dword ptr [esi + 0x80] */ 5753 PUSH32(esp, 0); /* 0x27015F91: push 0 */ 5754 ecx = ebp + (-0x8); /* 0x27015F93: lea ecx, [ebp - 8] */ 5755 PUSH32(esp, ecx); /* 0x27015F96: push ecx */ 5756 PUSH32(esp, edx); /* 0x27015F97: push edx */ 5757 RECOMP_ICALL(eax); /* 0x27015F98: call eax */ 5758 RECOMP_FLAGS_IN(); 5759 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5760 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5761 esp = esp + 0xCu; /* 0x27015F9A: add esp, 0xc */ 5762 _flag_k = FK_ADD; 5763 L_27015F9D: 5764 esi = POP32_VAL(esp); /* 0x27015F9D: pop esi */ 5765 esp = ebp; /* 0x27015F9E: mov esp, ebp */ 5766 ebp = POP32_VAL(esp); /* 0x27015FA0: pop ebp */ 5767 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27015FA1: ret */ 5768 RECOMP_REGS_OUT(); 5769 } 5770 5771 void sub_27015FB0(void) { 5772 int _fpu_cmp = 0; 5773 uint32_t _cf = 0; 5774 int _df = 1; 5775 uint32_t _flag_k = FK_NONE; 5776 uint32_t _flag_a = 0, _flag_b = 0; 5777 uint32_t _itail_tgt = 0; 5778 RECOMP_REGS_LOCALS 5779 RECOMP_ENTER(0x27015FB0u); 5780 5781 L_27015FB0: 5782 PUSH32(esp, ebp); /* 0x27015FB0: push ebp */ 5783 ebp = esp; /* 0x27015FB1: mov ebp, esp */ 5784 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5786 esp = esp - 8; /* 0x27015FB3: sub esp, 8 */ 5787 _flag_k = FK_CMP; 5788 eax = MEM32(ecx + 0x7C); /* 0x27015FB6: mov eax, dword ptr [ecx + 0x7c] */ 5789 /* test eax, eax */ /* 0x27015FB9: test eax, eax */ 5790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5791 _cf = 0; 5792 _flag_k = FK_TEST; 5793 if (TEST_Z(_flag_a, _flag_b)) goto L_27015FEB; /* 0x27015FBB: je 0x27015feb */ 5794 L_27015FBD: 5795 edx = MEM32(ebp + 0x8); /* 0x27015FBD: mov edx, dword ptr [ebp + 8] */ 5796 PUSH32(esp, esi); /* 0x27015FC0: push esi */ 5797 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x84)); 5798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5799 edx = edx - MEM32(ecx + 0x84); /* 0x27015FC1: sub edx, dword ptr [ecx + 0x84] */ 5800 _flag_k = FK_CMP; 5801 esi = MEM32(ecx + 0x88); /* 0x27015FC7: mov esi, dword ptr [ecx + 0x88] */ 5802 ecx = MEM32(ecx + 0x80); /* 0x27015FCD: mov ecx, dword ptr [ecx + 0x80] */ 5803 MEM32(ebp + (-0x8)) = edx; /* 0x27015FD3: mov dword ptr [ebp - 8], edx */ 5804 edx = MEM32(ebp + 0xC); /* 0x27015FD6: mov edx, dword ptr [ebp + 0xc] */ 5805 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 5806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5807 edx = edx - esi; /* 0x27015FD9: sub edx, esi */ 5808 _flag_k = FK_CMP; 5809 MEM32(ebp + (-0x4)) = edx; /* 0x27015FDB: mov dword ptr [ebp - 4], edx */ 5810 PUSH32(esp, 2); /* 0x27015FDE: push 2 */ 5811 edx = ebp + (-0x8); /* 0x27015FE0: lea edx, [ebp - 8] */ 5812 PUSH32(esp, edx); /* 0x27015FE3: push edx */ 5813 PUSH32(esp, ecx); /* 0x27015FE4: push ecx */ 5814 RECOMP_ICALL(eax); /* 0x27015FE5: call eax */ 5815 RECOMP_FLAGS_IN(); 5816 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5817 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5818 esp = esp + 0xCu; /* 0x27015FE7: add esp, 0xc */ 5819 _flag_k = FK_ADD; 5820 esi = POP32_VAL(esp); /* 0x27015FEA: pop esi */ 5821 L_27015FEB: 5822 esp = ebp; /* 0x27015FEB: mov esp, ebp */ 5823 ebp = POP32_VAL(esp); /* 0x27015FED: pop ebp */ 5824 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27015FEE: ret 8 */ 5825 RECOMP_REGS_OUT(); 5826 } 5827 5828 void sub_27016000(void) { 5829 int _fpu_cmp = 0; 5830 uint32_t _cf = 0; 5831 int _df = 1; 5832 uint32_t _flag_k = FK_NONE; 5833 uint32_t _flag_a = 0, _flag_b = 0; 5834 uint32_t _itail_tgt = 0; 5835 RECOMP_REGS_LOCALS 5836 RECOMP_ENTER(0x27016000u); 5837 5838 L_27016000: 5839 PUSH32(esp, ebp); /* 0x27016000: push ebp */ 5840 ebp = esp; /* 0x27016001: mov ebp, esp */ 5841 PUSH32(esp, ecx); /* 0x27016003: push ecx */ 5842 PUSH32(esp, ebx); /* 0x27016004: push ebx */ 5843 PUSH32(esp, esi); /* 0x27016005: push esi */ 5844 esi = MEM32(ebp + 0xC); /* 0x27016006: mov esi, dword ptr [ebp + 0xc] */ 5845 PUSH32(esp, edi); /* 0x27016009: push edi */ 5846 edi = ecx; /* 0x2701600A: mov edi, ecx */ 5847 ecx = ebp + 0xC; /* 0x2701600C: lea ecx, [ebp + 0xc] */ 5848 RECOMP_ICALL(0x270166D0u); /* 0x2701600F: call 0x270166d0 */ /* not lifted */ 5849 RECOMP_FLAGS_IN(); 5850 edx = MEM32(esi); /* 0x27016014: mov edx, dword ptr [esi] */ 5851 eax = MEM32(edi + 0x8); /* 0x27016016: mov eax, dword ptr [edi + 8] */ 5852 /* cmp edx, eax */ /* 0x27016019: cmp edx, eax */ 5853 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5855 _flag_k = FK_CMP; 5856 MEM32(ebp + (-0x4)) = esi; /* 0x2701601B: mov dword ptr [ebp - 4], esi */ 5857 if (CMP_NE(_flag_a, _flag_b)) goto L_27016040; /* 0x2701601E: jne 0x27016040 */ 5858 L_27016020: 5859 eax = MEM32(esi + 0x8); /* 0x27016020: mov eax, dword ptr [esi + 8] */ 5860 L_27016023: 5861 ecx = MEM32(ebp + (-0x4)); /* 0x27016023: mov ecx, dword ptr [ebp - 4] */ 5862 edx = MEM32(ecx + 0x4); /* 0x27016026: mov edx, dword ptr [ecx + 4] */ 5863 MEM32(eax + 0x4) = edx; /* 0x27016029: mov dword ptr [eax + 4], edx */ 5864 ecx = MEM32(edi + 0x4); /* 0x2701602C: mov ecx, dword ptr [edi + 4] */ 5865 /* cmp MEM32(ecx + 0x4), esi */ /* 0x2701602F: cmp dword ptr [ecx + 4], esi */ 5866 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 5867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5868 _flag_k = FK_CMP; 5869 if (CMP_NE(_flag_a, _flag_b)) goto L_270160C3; /* 0x27016032: jne 0x270160c3 */ 5870 L_27016038: 5871 MEM32(ecx + 0x4) = eax; /* 0x27016038: mov dword ptr [ecx + 4], eax */ 5872 goto L_270160D1; /* 0x2701603B: jmp 0x270160d1 */ 5873 L_27016040: 5874 ecx = MEM32(esi + 0x8); /* 0x27016040: mov ecx, dword ptr [esi + 8] */ 5875 /* cmp ecx, eax */ /* 0x27016043: cmp ecx, eax */ 5876 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5878 _flag_k = FK_CMP; 5879 if (CMP_NE(_flag_a, _flag_b)) goto L_2701604B; /* 0x27016045: jne 0x2701604b */ 5880 L_27016047: 5881 eax = edx; /* 0x27016047: mov eax, edx */ 5882 RECOMP_BACKEDGE(); 5883 goto L_27016023; /* 0x27016049: jmp 0x27016023 */ 5884 L_2701604B: 5885 eax = MEM32(ecx); /* 0x2701604B: mov eax, dword ptr [ecx] */ 5886 SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x2701604D: mov bl, byte ptr [eax + 0x19] */ 5887 /* test LO8(ebx), LO8(ebx) */ /* 0x27016050: test bl, bl */ 5888 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5889 _cf = 0; 5890 _flag_k = FK_NARROW(FK_TEST, 24); 5891 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701605F; /* 0x27016052: jne 0x2701605f */ 5892 L_27016054: 5893 ecx = eax; /* 0x27016054: mov ecx, eax */ 5894 eax = MEM32(ecx); /* 0x27016056: mov eax, dword ptr [ecx] */ 5895 SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x27016058: mov bl, byte ptr [eax + 0x19] */ 5896 /* test LO8(ebx), LO8(ebx) */ /* 0x2701605B: test bl, bl */ 5897 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5898 _cf = 0; 5899 _flag_k = FK_NARROW(FK_TEST, 24); 5900 RECOMP_BACKEDGE(); 5901 if (TEST_Z(_flag_a, _flag_b)) goto L_27016054; /* 0x2701605D: je 0x27016054 */ 5902 L_2701605F: 5903 /* cmp ecx, esi */ /* 0x2701605F: cmp ecx, esi */ 5904 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 5905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5906 _flag_k = FK_CMP; 5907 eax = MEM32(ecx + 0x8); /* 0x27016061: mov eax, dword ptr [ecx + 8] */ 5908 MEM32(ebp + (-0x4)) = ecx; /* 0x27016064: mov dword ptr [ebp - 4], ecx */ 5909 RECOMP_BACKEDGE(); 5910 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016023; /* 0x27016067: je 0x27016023 */ 5911 L_27016069: 5912 MEM32(edx + 0x4) = ecx; /* 0x27016069: mov dword ptr [edx + 4], ecx */ 5913 edx = MEM32(esi); /* 0x2701606C: mov edx, dword ptr [esi] */ 5914 MEM32(ecx) = edx; /* 0x2701606E: mov dword ptr [ecx], edx */ 5915 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016070: cmp ecx, dword ptr [esi + 8] */ 5916 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5918 _flag_k = FK_CMP; 5919 if (CMP_NE(_flag_a, _flag_b)) goto L_2701607A; /* 0x27016073: jne 0x2701607a */ 5920 L_27016075: 5921 MEM32(eax + 0x4) = ecx; /* 0x27016075: mov dword ptr [eax + 4], ecx */ 5922 goto L_27016091; /* 0x27016078: jmp 0x27016091 */ 5923 L_2701607A: 5924 edx = MEM32(ecx + 0x4); /* 0x2701607A: mov edx, dword ptr [ecx + 4] */ 5925 MEM32(eax + 0x4) = edx; /* 0x2701607D: mov dword ptr [eax + 4], edx */ 5926 edx = MEM32(ecx + 0x4); /* 0x27016080: mov edx, dword ptr [ecx + 4] */ 5927 MEM32(edx) = eax; /* 0x27016083: mov dword ptr [edx], eax */ 5928 edx = MEM32(esi + 0x8); /* 0x27016085: mov edx, dword ptr [esi + 8] */ 5929 MEM32(ecx + 0x8) = edx; /* 0x27016088: mov dword ptr [ecx + 8], edx */ 5930 edx = MEM32(esi + 0x8); /* 0x2701608B: mov edx, dword ptr [esi + 8] */ 5931 MEM32(edx + 0x4) = ecx; /* 0x2701608E: mov dword ptr [edx + 4], ecx */ 5932 L_27016091: 5933 edx = MEM32(edi + 0x4); /* 0x27016091: mov edx, dword ptr [edi + 4] */ 5934 /* cmp MEM32(edx + 0x4), esi */ /* 0x27016094: cmp dword ptr [edx + 4], esi */ 5935 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 5936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5937 _flag_k = FK_CMP; 5938 if (CMP_NE(_flag_a, _flag_b)) goto L_2701609E; /* 0x27016097: jne 0x2701609e */ 5939 L_27016099: 5940 MEM32(edx + 0x4) = ecx; /* 0x27016099: mov dword ptr [edx + 4], ecx */ 5941 goto L_270160AC; /* 0x2701609C: jmp 0x270160ac */ 5942 L_2701609E: 5943 edx = MEM32(esi + 0x4); /* 0x2701609E: mov edx, dword ptr [esi + 4] */ 5944 /* cmp MEM32(edx), esi */ /* 0x270160A1: cmp dword ptr [edx], esi */ 5945 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 5946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5947 _flag_k = FK_CMP; 5948 if (CMP_NE(_flag_a, _flag_b)) goto L_270160A9; /* 0x270160A3: jne 0x270160a9 */ 5949 L_270160A5: 5950 MEM32(edx) = ecx; /* 0x270160A5: mov dword ptr [edx], ecx */ 5951 goto L_270160AC; /* 0x270160A7: jmp 0x270160ac */ 5952 L_270160A9: 5953 MEM32(edx + 0x8) = ecx; /* 0x270160A9: mov dword ptr [edx + 8], ecx */ 5954 L_270160AC: 5955 edx = MEM32(esi + 0x4); /* 0x270160AC: mov edx, dword ptr [esi + 4] */ 5956 MEM32(ecx + 0x4) = edx; /* 0x270160AF: mov dword ptr [ecx + 4], edx */ 5957 SET_LO8(ebx, MEM8(esi + 0x18)); /* 0x270160B2: mov bl, byte ptr [esi + 0x18] */ 5958 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270160B5: mov dl, byte ptr [ecx + 0x18] */ 5959 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270160B8: mov byte ptr [ecx + 0x18], bl */ 5960 MEM8(esi + 0x18) = (uint8_t)(LO8(edx)); /* 0x270160BB: mov byte ptr [esi + 0x18], dl */ 5961 MEM32(ebp + (-0x4)) = esi; /* 0x270160BE: mov dword ptr [ebp - 4], esi */ 5962 goto L_27016128; /* 0x270160C1: jmp 0x27016128 */ 5963 L_270160C3: 5964 ecx = MEM32(esi + 0x4); /* 0x270160C3: mov ecx, dword ptr [esi + 4] */ 5965 /* cmp MEM32(ecx), esi */ /* 0x270160C6: cmp dword ptr [ecx], esi */ 5966 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 5967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5968 _flag_k = FK_CMP; 5969 if (CMP_NE(_flag_a, _flag_b)) goto L_270160CE; /* 0x270160C8: jne 0x270160ce */ 5970 L_270160CA: 5971 MEM32(ecx) = eax; /* 0x270160CA: mov dword ptr [ecx], eax */ 5972 goto L_270160D1; /* 0x270160CC: jmp 0x270160d1 */ 5973 L_270160CE: 5974 MEM32(ecx + 0x8) = eax; /* 0x270160CE: mov dword ptr [ecx + 8], eax */ 5975 L_270160D1: 5976 ebx = MEM32(edi + 0x4); /* 0x270160D1: mov ebx, dword ptr [edi + 4] */ 5977 /* cmp MEM32(ebx), esi */ /* 0x270160D4: cmp dword ptr [ebx], esi */ 5978 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 5979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5980 _flag_k = FK_CMP; 5981 if (CMP_NE(_flag_a, _flag_b)) goto L_270160FB; /* 0x270160D6: jne 0x270160fb */ 5982 L_270160D8: 5983 ecx = MEM32(esi + 0x8); /* 0x270160D8: mov ecx, dword ptr [esi + 8] */ 5984 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x270160DB: cmp ecx, dword ptr [edi + 8] */ 5985 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5987 _flag_k = FK_CMP; 5988 if (CMP_NE(_flag_a, _flag_b)) goto L_270160E5; /* 0x270160DE: jne 0x270160e5 */ 5989 L_270160E0: 5990 edx = MEM32(esi + 0x4); /* 0x270160E0: mov edx, dword ptr [esi + 4] */ 5991 goto L_270160F9; /* 0x270160E3: jmp 0x270160f9 */ 5992 L_270160E5: 5993 ecx = MEM32(eax); /* 0x270160E5: mov ecx, dword ptr [eax] */ 5994 /* cmp MEM8(ecx + 0x19), 0 */ /* 0x270160E7: cmp byte ptr [ecx + 0x19], 0 */ 5995 _flag_a = (uint32_t)(MEM8(ecx + 0x19)) << 24; _flag_b = (uint32_t)(0) << 24; 5996 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5997 _flag_k = FK_NARROW(FK_CMP, 24); 5998 edx = eax; /* 0x270160EB: mov edx, eax */ 5999 if (CMP_NE(_flag_a, _flag_b)) goto L_270160F9; /* 0x270160ED: jne 0x270160f9 */ 6000 L_270160EF: 6001 edx = ecx; /* 0x270160EF: mov edx, ecx */ 6002 ecx = MEM32(edx); /* 0x270160F1: mov ecx, dword ptr [edx] */ 6003 /* cmp MEM8(ecx + 0x19), 0 */ /* 0x270160F3: cmp byte ptr [ecx + 0x19], 0 */ 6004 _flag_a = (uint32_t)(MEM8(ecx + 0x19)) << 24; _flag_b = (uint32_t)(0) << 24; 6005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6006 _flag_k = FK_NARROW(FK_CMP, 24); 6007 RECOMP_BACKEDGE(); 6008 if (CMP_EQ(_flag_a, _flag_b)) goto L_270160EF; /* 0x270160F7: je 0x270160ef */ 6009 L_270160F9: 6010 MEM32(ebx) = edx; /* 0x270160F9: mov dword ptr [ebx], edx */ 6011 L_270160FB: 6012 ebx = MEM32(edi + 0x4); /* 0x270160FB: mov ebx, dword ptr [edi + 4] */ 6013 /* cmp MEM32(ebx + 0x8), esi */ /* 0x270160FE: cmp dword ptr [ebx + 8], esi */ 6014 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 6015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6016 _flag_k = FK_CMP; 6017 if (CMP_NE(_flag_a, _flag_b)) goto L_27016128; /* 0x27016101: jne 0x27016128 */ 6018 L_27016103: 6019 ecx = MEM32(esi); /* 0x27016103: mov ecx, dword ptr [esi] */ 6020 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x27016105: cmp ecx, dword ptr [edi + 8] */ 6021 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6023 _flag_k = FK_CMP; 6024 if (CMP_NE(_flag_a, _flag_b)) goto L_2701610F; /* 0x27016108: jne 0x2701610f */ 6025 L_2701610A: 6026 edx = MEM32(esi + 0x4); /* 0x2701610A: mov edx, dword ptr [esi + 4] */ 6027 goto L_27016125; /* 0x2701610D: jmp 0x27016125 */ 6028 L_2701610F: 6029 ecx = MEM32(eax + 0x8); /* 0x2701610F: mov ecx, dword ptr [eax + 8] */ 6030 /* cmp MEM8(ecx + 0x19), 0 */ /* 0x27016112: cmp byte ptr [ecx + 0x19], 0 */ 6031 _flag_a = (uint32_t)(MEM8(ecx + 0x19)) << 24; _flag_b = (uint32_t)(0) << 24; 6032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6033 _flag_k = FK_NARROW(FK_CMP, 24); 6034 edx = eax; /* 0x27016116: mov edx, eax */ 6035 if (CMP_NE(_flag_a, _flag_b)) goto L_27016125; /* 0x27016118: jne 0x27016125 */ 6036 L_2701611A: 6037 edx = ecx; /* 0x2701611A: mov edx, ecx */ 6038 ecx = MEM32(edx + 0x8); /* 0x2701611C: mov ecx, dword ptr [edx + 8] */ 6039 /* cmp MEM8(ecx + 0x19), 0 */ /* 0x2701611F: cmp byte ptr [ecx + 0x19], 0 */ 6040 _flag_a = (uint32_t)(MEM8(ecx + 0x19)) << 24; _flag_b = (uint32_t)(0) << 24; 6041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6042 _flag_k = FK_NARROW(FK_CMP, 24); 6043 RECOMP_BACKEDGE(); 6044 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701611A; /* 0x27016123: je 0x2701611a */ 6045 L_27016125: 6046 MEM32(ebx + 0x8) = edx; /* 0x27016125: mov dword ptr [ebx + 8], edx */ 6047 L_27016128: 6048 ecx = MEM32(ebp + (-0x4)); /* 0x27016128: mov ecx, dword ptr [ebp - 4] */ 6049 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2701612B: mov dl, byte ptr [ecx + 0x18] */ 6050 SET_LO8(ebx, 1); /* 0x2701612E: mov bl, 1 */ 6051 /* cmp LO8(edx), LO8(ebx) */ /* 0x27016130: cmp dl, bl */ 6052 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6054 _flag_k = FK_NARROW(FK_CMP, 24); 6055 if (CMP_NE(_flag_a, _flag_b)) goto L_27016395; /* 0x27016132: jne 0x27016395 */ 6056 L_27016138: 6057 edx = MEM32(edi + 0x4); /* 0x27016138: mov edx, dword ptr [edi + 4] */ 6058 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701613B: cmp eax, dword ptr [edx + 4] */ 6059 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6061 _flag_k = FK_CMP; 6062 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016392; /* 0x2701613E: je 0x27016392 */ 6063 L_27016144: 6064 /* cmp MEM8(eax + 0x18), LO8(ebx) */ /* 0x27016144: cmp byte ptr [eax + 0x18], bl */ 6065 _flag_a = (uint32_t)(MEM8(eax + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6067 _flag_k = FK_NARROW(FK_CMP, 24); 6068 if (CMP_NE(_flag_a, _flag_b)) goto L_27016392; /* 0x27016147: jne 0x27016392 */ 6069 L_2701614D: 6070 edx = MEM32(eax + 0x4); /* 0x2701614D: mov edx, dword ptr [eax + 4] */ 6071 ecx = MEM32(edx); /* 0x27016150: mov ecx, dword ptr [edx] */ 6072 /* cmp eax, ecx */ /* 0x27016152: cmp eax, ecx */ 6073 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6075 _flag_k = FK_CMP; 6076 if (CMP_NE(_flag_a, _flag_b)) goto L_270161C4; /* 0x27016154: jne 0x270161c4 */ 6077 L_27016156: 6078 ecx = MEM32(edx + 0x8); /* 0x27016156: mov ecx, dword ptr [edx + 8] */ 6079 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x27016159: mov dl, byte ptr [ecx + 0x18] */ 6080 /* test LO8(edx), LO8(edx) */ /* 0x2701615C: test dl, dl */ 6081 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6082 _cf = 0; 6083 _flag_k = FK_NARROW(FK_TEST, 24); 6084 if (TEST_NZ(_flag_a, _flag_b)) goto L_270161AB; /* 0x2701615E: jne 0x270161ab */ 6085 L_27016160: 6086 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016160: mov byte ptr [ecx + 0x18], bl */ 6087 ecx = MEM32(eax + 0x4); /* 0x27016163: mov ecx, dword ptr [eax + 4] */ 6088 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016166: mov byte ptr [ecx + 0x18], 0 */ 6089 ecx = MEM32(eax + 0x4); /* 0x2701616A: mov ecx, dword ptr [eax + 4] */ 6090 edx = MEM32(ecx + 0x8); /* 0x2701616D: mov edx, dword ptr [ecx + 8] */ 6091 esi = MEM32(edx); /* 0x27016170: mov esi, dword ptr [edx] */ 6092 MEM32(ecx + 0x8) = esi; /* 0x27016172: mov dword ptr [ecx + 8], esi */ 6093 esi = MEM32(edx); /* 0x27016175: mov esi, dword ptr [edx] */ 6094 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016177: cmp esi, dword ptr [edi + 8] */ 6095 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6097 _flag_k = FK_CMP; 6098 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701617F; /* 0x2701617A: je 0x2701617f */ 6099 L_2701617C: 6100 MEM32(esi + 0x4) = ecx; /* 0x2701617C: mov dword ptr [esi + 4], ecx */ 6101 L_2701617F: 6102 esi = MEM32(ecx + 0x4); /* 0x2701617F: mov esi, dword ptr [ecx + 4] */ 6103 MEM32(edx + 0x4) = esi; /* 0x27016182: mov dword ptr [edx + 4], esi */ 6104 esi = MEM32(edi + 0x4); /* 0x27016185: mov esi, dword ptr [edi + 4] */ 6105 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016188: cmp ecx, dword ptr [esi + 4] */ 6106 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6108 _flag_k = FK_CMP; 6109 if (CMP_NE(_flag_a, _flag_b)) goto L_27016192; /* 0x2701618B: jne 0x27016192 */ 6110 L_2701618D: 6111 MEM32(esi + 0x4) = edx; /* 0x2701618D: mov dword ptr [esi + 4], edx */ 6112 goto L_270161A0; /* 0x27016190: jmp 0x270161a0 */ 6113 L_27016192: 6114 esi = MEM32(ecx + 0x4); /* 0x27016192: mov esi, dword ptr [ecx + 4] */ 6115 /* cmp ecx, MEM32(esi) */ /* 0x27016195: cmp ecx, dword ptr [esi] */ 6116 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6118 _flag_k = FK_CMP; 6119 if (CMP_NE(_flag_a, _flag_b)) goto L_2701619D; /* 0x27016197: jne 0x2701619d */ 6120 L_27016199: 6121 MEM32(esi) = edx; /* 0x27016199: mov dword ptr [esi], edx */ 6122 goto L_270161A0; /* 0x2701619B: jmp 0x270161a0 */ 6123 L_2701619D: 6124 MEM32(esi + 0x8) = edx; /* 0x2701619D: mov dword ptr [esi + 8], edx */ 6125 L_270161A0: 6126 MEM32(edx) = ecx; /* 0x270161A0: mov dword ptr [edx], ecx */ 6127 MEM32(ecx + 0x4) = edx; /* 0x270161A2: mov dword ptr [ecx + 4], edx */ 6128 edx = MEM32(eax + 0x4); /* 0x270161A5: mov edx, dword ptr [eax + 4] */ 6129 ecx = MEM32(edx + 0x8); /* 0x270161A8: mov ecx, dword ptr [edx + 8] */ 6130 L_270161AB: 6131 edx = MEM32(ecx); /* 0x270161AB: mov edx, dword ptr [ecx] */ 6132 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161AD: cmp byte ptr [edx + 0x18], bl */ 6133 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 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_27016246; /* 0x270161B0: jne 0x27016246 */ 6137 L_270161B6: 6138 edx = MEM32(ecx + 0x8); /* 0x270161B6: mov edx, dword ptr [ecx + 8] */ 6139 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161B9: cmp byte ptr [edx + 0x18], bl */ 6140 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6142 _flag_k = FK_NARROW(FK_CMP, 24); 6143 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161BC: jne 0x27016246 */ 6144 L_270161C2: 6145 goto L_2701622E; /* 0x270161C2: jmp 0x2701622e */ 6146 L_270161C4: 6147 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270161C4: mov dl, byte ptr [ecx + 0x18] */ 6148 /* test LO8(edx), LO8(edx) */ /* 0x270161C7: test dl, dl */ 6149 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6150 _cf = 0; 6151 _flag_k = FK_NARROW(FK_TEST, 24); 6152 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016217; /* 0x270161C9: jne 0x27016217 */ 6153 L_270161CB: 6154 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270161CB: mov byte ptr [ecx + 0x18], bl */ 6155 ecx = MEM32(eax + 0x4); /* 0x270161CE: mov ecx, dword ptr [eax + 4] */ 6156 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270161D1: mov byte ptr [ecx + 0x18], 0 */ 6157 ecx = MEM32(eax + 0x4); /* 0x270161D5: mov ecx, dword ptr [eax + 4] */ 6158 edx = MEM32(ecx); /* 0x270161D8: mov edx, dword ptr [ecx] */ 6159 esi = MEM32(edx + 0x8); /* 0x270161DA: mov esi, dword ptr [edx + 8] */ 6160 MEM32(ecx) = esi; /* 0x270161DD: mov dword ptr [ecx], esi */ 6161 esi = MEM32(edx + 0x8); /* 0x270161DF: mov esi, dword ptr [edx + 8] */ 6162 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270161E2: cmp esi, dword ptr [edi + 8] */ 6163 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6165 _flag_k = FK_CMP; 6166 if (CMP_EQ(_flag_a, _flag_b)) goto L_270161EA; /* 0x270161E5: je 0x270161ea */ 6167 L_270161E7: 6168 MEM32(esi + 0x4) = ecx; /* 0x270161E7: mov dword ptr [esi + 4], ecx */ 6169 L_270161EA: 6170 esi = MEM32(ecx + 0x4); /* 0x270161EA: mov esi, dword ptr [ecx + 4] */ 6171 MEM32(edx + 0x4) = esi; /* 0x270161ED: mov dword ptr [edx + 4], esi */ 6172 esi = MEM32(edi + 0x4); /* 0x270161F0: mov esi, dword ptr [edi + 4] */ 6173 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270161F3: cmp ecx, dword ptr [esi + 4] */ 6174 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6176 _flag_k = FK_CMP; 6177 if (CMP_NE(_flag_a, _flag_b)) goto L_270161FD; /* 0x270161F6: jne 0x270161fd */ 6178 L_270161F8: 6179 MEM32(esi + 0x4) = edx; /* 0x270161F8: mov dword ptr [esi + 4], edx */ 6180 goto L_2701620C; /* 0x270161FB: jmp 0x2701620c */ 6181 L_270161FD: 6182 esi = MEM32(ecx + 0x4); /* 0x270161FD: mov esi, dword ptr [ecx + 4] */ 6183 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016200: cmp ecx, dword ptr [esi + 8] */ 6184 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6186 _flag_k = FK_CMP; 6187 if (CMP_NE(_flag_a, _flag_b)) goto L_2701620A; /* 0x27016203: jne 0x2701620a */ 6188 L_27016205: 6189 MEM32(esi + 0x8) = edx; /* 0x27016205: mov dword ptr [esi + 8], edx */ 6190 goto L_2701620C; /* 0x27016208: jmp 0x2701620c */ 6191 L_2701620A: 6192 MEM32(esi) = edx; /* 0x2701620A: mov dword ptr [esi], edx */ 6193 L_2701620C: 6194 MEM32(edx + 0x8) = ecx; /* 0x2701620C: mov dword ptr [edx + 8], ecx */ 6195 MEM32(ecx + 0x4) = edx; /* 0x2701620F: mov dword ptr [ecx + 4], edx */ 6196 edx = MEM32(eax + 0x4); /* 0x27016212: mov edx, dword ptr [eax + 4] */ 6197 ecx = MEM32(edx); /* 0x27016215: mov ecx, dword ptr [edx] */ 6198 L_27016217: 6199 edx = MEM32(ecx + 0x8); /* 0x27016217: mov edx, dword ptr [ecx + 8] */ 6200 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x2701621A: cmp byte ptr [edx + 0x18], bl */ 6201 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 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_270162F3; /* 0x2701621D: jne 0x270162f3 */ 6205 L_27016223: 6206 edx = MEM32(ecx); /* 0x27016223: mov edx, dword ptr [ecx] */ 6207 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016225: cmp byte ptr [edx + 0x18], bl */ 6208 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6210 _flag_k = FK_NARROW(FK_CMP, 24); 6211 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x27016228: jne 0x270162f3 */ 6212 L_2701622E: 6213 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2701622E: mov byte ptr [ecx + 0x18], 0 */ 6214 ecx = MEM32(edi + 0x4); /* 0x27016232: mov ecx, dword ptr [edi + 4] */ 6215 eax = MEM32(eax + 0x4); /* 0x27016235: mov eax, dword ptr [eax + 4] */ 6216 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016238: cmp eax, dword ptr [ecx + 4] */ 6217 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6219 _flag_k = FK_CMP; 6220 RECOMP_BACKEDGE(); 6221 if (CMP_NE(_flag_a, _flag_b)) goto L_27016144; /* 0x2701623B: jne 0x27016144 */ 6222 L_27016241: 6223 goto L_27016392; /* 0x27016241: jmp 0x27016392 */ 6224 L_27016246: 6225 edx = MEM32(ecx + 0x8); /* 0x27016246: mov edx, dword ptr [ecx + 8] */ 6226 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016249: cmp byte ptr [edx + 0x18], bl */ 6227 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6229 _flag_k = FK_NARROW(FK_CMP, 24); 6230 if (CMP_NE(_flag_a, _flag_b)) goto L_27016297; /* 0x2701624C: jne 0x27016297 */ 6231 L_2701624E: 6232 edx = MEM32(ecx); /* 0x2701624E: mov edx, dword ptr [ecx] */ 6233 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016250: mov byte ptr [edx + 0x18], bl */ 6234 edx = MEM32(ecx); /* 0x27016253: mov edx, dword ptr [ecx] */ 6235 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016255: mov byte ptr [ecx + 0x18], 0 */ 6236 esi = MEM32(edx + 0x8); /* 0x27016259: mov esi, dword ptr [edx + 8] */ 6237 MEM32(ecx) = esi; /* 0x2701625C: mov dword ptr [ecx], esi */ 6238 esi = MEM32(edx + 0x8); /* 0x2701625E: mov esi, dword ptr [edx + 8] */ 6239 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016261: cmp esi, dword ptr [edi + 8] */ 6240 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6242 _flag_k = FK_CMP; 6243 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016269; /* 0x27016264: je 0x27016269 */ 6244 L_27016266: 6245 MEM32(esi + 0x4) = ecx; /* 0x27016266: mov dword ptr [esi + 4], ecx */ 6246 L_27016269: 6247 esi = MEM32(ecx + 0x4); /* 0x27016269: mov esi, dword ptr [ecx + 4] */ 6248 MEM32(edx + 0x4) = esi; /* 0x2701626C: mov dword ptr [edx + 4], esi */ 6249 esi = MEM32(edi + 0x4); /* 0x2701626F: mov esi, dword ptr [edi + 4] */ 6250 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016272: cmp ecx, dword ptr [esi + 4] */ 6251 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6253 _flag_k = FK_CMP; 6254 if (CMP_NE(_flag_a, _flag_b)) goto L_2701627C; /* 0x27016275: jne 0x2701627c */ 6255 L_27016277: 6256 MEM32(esi + 0x4) = edx; /* 0x27016277: mov dword ptr [esi + 4], edx */ 6257 goto L_2701628B; /* 0x2701627A: jmp 0x2701628b */ 6258 L_2701627C: 6259 esi = MEM32(ecx + 0x4); /* 0x2701627C: mov esi, dword ptr [ecx + 4] */ 6260 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2701627F: cmp ecx, dword ptr [esi + 8] */ 6261 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6263 _flag_k = FK_CMP; 6264 if (CMP_NE(_flag_a, _flag_b)) goto L_27016289; /* 0x27016282: jne 0x27016289 */ 6265 L_27016284: 6266 MEM32(esi + 0x8) = edx; /* 0x27016284: mov dword ptr [esi + 8], edx */ 6267 goto L_2701628B; /* 0x27016287: jmp 0x2701628b */ 6268 L_27016289: 6269 MEM32(esi) = edx; /* 0x27016289: mov dword ptr [esi], edx */ 6270 L_2701628B: 6271 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 6272 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 6273 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 6274 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 6275 L_27016297: 6276 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 6277 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 6278 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 6279 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 6280 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 6281 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 6282 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 6283 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 6284 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 6285 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 6286 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 6287 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 6288 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 6289 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6291 _flag_k = FK_CMP; 6292 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 6293 L_270162BE: 6294 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 6295 L_270162C1: 6296 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 6297 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 6298 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 6299 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 6300 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6302 _flag_k = FK_CMP; 6303 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 6304 L_270162CF: 6305 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 6306 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 6307 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 6308 L_270162D9: 6309 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 6310 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 6311 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6313 _flag_k = FK_CMP; 6314 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 6315 L_270162E0: 6316 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 6317 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 6318 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 6319 L_270162E9: 6320 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 6321 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 6322 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 6323 L_270162F3: 6324 edx = MEM32(ecx); /* 0x270162F3: mov edx, dword ptr [ecx] */ 6325 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270162F5: cmp byte ptr [edx + 0x18], bl */ 6326 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6328 _flag_k = FK_NARROW(FK_CMP, 24); 6329 if (CMP_NE(_flag_a, _flag_b)) goto L_27016341; /* 0x270162F8: jne 0x27016341 */ 6330 L_270162FA: 6331 edx = MEM32(ecx + 0x8); /* 0x270162FA: mov edx, dword ptr [ecx + 8] */ 6332 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162FD: mov byte ptr [edx + 0x18], bl */ 6333 edx = MEM32(ecx + 0x8); /* 0x27016300: mov edx, dword ptr [ecx + 8] */ 6334 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016303: mov byte ptr [ecx + 0x18], 0 */ 6335 esi = MEM32(edx); /* 0x27016307: mov esi, dword ptr [edx] */ 6336 MEM32(ecx + 0x8) = esi; /* 0x27016309: mov dword ptr [ecx + 8], esi */ 6337 esi = MEM32(edx); /* 0x2701630C: mov esi, dword ptr [edx] */ 6338 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701630E: cmp esi, dword ptr [edi + 8] */ 6339 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6341 _flag_k = FK_CMP; 6342 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016316; /* 0x27016311: je 0x27016316 */ 6343 L_27016313: 6344 MEM32(esi + 0x4) = ecx; /* 0x27016313: mov dword ptr [esi + 4], ecx */ 6345 L_27016316: 6346 esi = MEM32(ecx + 0x4); /* 0x27016316: mov esi, dword ptr [ecx + 4] */ 6347 MEM32(edx + 0x4) = esi; /* 0x27016319: mov dword ptr [edx + 4], esi */ 6348 esi = MEM32(edi + 0x4); /* 0x2701631C: mov esi, dword ptr [edi + 4] */ 6349 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701631F: cmp ecx, dword ptr [esi + 4] */ 6350 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6352 _flag_k = FK_CMP; 6353 if (CMP_NE(_flag_a, _flag_b)) goto L_27016329; /* 0x27016322: jne 0x27016329 */ 6354 L_27016324: 6355 MEM32(esi + 0x4) = edx; /* 0x27016324: mov dword ptr [esi + 4], edx */ 6356 goto L_27016337; /* 0x27016327: jmp 0x27016337 */ 6357 L_27016329: 6358 esi = MEM32(ecx + 0x4); /* 0x27016329: mov esi, dword ptr [ecx + 4] */ 6359 /* cmp ecx, MEM32(esi) */ /* 0x2701632C: cmp ecx, dword ptr [esi] */ 6360 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6362 _flag_k = FK_CMP; 6363 if (CMP_NE(_flag_a, _flag_b)) goto L_27016334; /* 0x2701632E: jne 0x27016334 */ 6364 L_27016330: 6365 MEM32(esi) = edx; /* 0x27016330: mov dword ptr [esi], edx */ 6366 goto L_27016337; /* 0x27016332: jmp 0x27016337 */ 6367 L_27016334: 6368 MEM32(esi + 0x8) = edx; /* 0x27016334: mov dword ptr [esi + 8], edx */ 6369 L_27016337: 6370 MEM32(edx) = ecx; /* 0x27016337: mov dword ptr [edx], ecx */ 6371 MEM32(ecx + 0x4) = edx; /* 0x27016339: mov dword ptr [ecx + 4], edx */ 6372 ecx = MEM32(eax + 0x4); /* 0x2701633C: mov ecx, dword ptr [eax + 4] */ 6373 ecx = MEM32(ecx); /* 0x2701633F: mov ecx, dword ptr [ecx] */ 6374 L_27016341: 6375 edx = MEM32(eax + 0x4); /* 0x27016341: mov edx, dword ptr [eax + 4] */ 6376 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x27016344: mov dl, byte ptr [edx + 0x18] */ 6377 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016347: mov byte ptr [ecx + 0x18], dl */ 6378 edx = MEM32(eax + 0x4); /* 0x2701634A: mov edx, dword ptr [eax + 4] */ 6379 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701634D: mov byte ptr [edx + 0x18], bl */ 6380 ecx = MEM32(ecx); /* 0x27016350: mov ecx, dword ptr [ecx] */ 6381 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016352: mov byte ptr [ecx + 0x18], bl */ 6382 ecx = MEM32(eax + 0x4); /* 0x27016355: mov ecx, dword ptr [eax + 4] */ 6383 edx = MEM32(ecx); /* 0x27016358: mov edx, dword ptr [ecx] */ 6384 esi = MEM32(edx + 0x8); /* 0x2701635A: mov esi, dword ptr [edx + 8] */ 6385 MEM32(ecx) = esi; /* 0x2701635D: mov dword ptr [ecx], esi */ 6386 esi = MEM32(edx + 0x8); /* 0x2701635F: mov esi, dword ptr [edx + 8] */ 6387 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016362: cmp esi, dword ptr [edi + 8] */ 6388 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6390 _flag_k = FK_CMP; 6391 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701636A; /* 0x27016365: je 0x2701636a */ 6392 L_27016367: 6393 MEM32(esi + 0x4) = ecx; /* 0x27016367: mov dword ptr [esi + 4], ecx */ 6394 L_2701636A: 6395 esi = MEM32(ecx + 0x4); /* 0x2701636A: mov esi, dword ptr [ecx + 4] */ 6396 MEM32(edx + 0x4) = esi; /* 0x2701636D: mov dword ptr [edx + 4], esi */ 6397 esi = MEM32(edi + 0x4); /* 0x27016370: mov esi, dword ptr [edi + 4] */ 6398 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016373: cmp ecx, dword ptr [esi + 4] */ 6399 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6401 _flag_k = FK_CMP; 6402 if (CMP_NE(_flag_a, _flag_b)) goto L_2701637D; /* 0x27016376: jne 0x2701637d */ 6403 L_27016378: 6404 MEM32(esi + 0x4) = edx; /* 0x27016378: mov dword ptr [esi + 4], edx */ 6405 goto L_2701638C; /* 0x2701637B: jmp 0x2701638c */ 6406 L_2701637D: 6407 esi = MEM32(ecx + 0x4); /* 0x2701637D: mov esi, dword ptr [ecx + 4] */ 6408 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016380: cmp ecx, dword ptr [esi + 8] */ 6409 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6411 _flag_k = FK_CMP; 6412 if (CMP_NE(_flag_a, _flag_b)) goto L_2701638A; /* 0x27016383: jne 0x2701638a */ 6413 L_27016385: 6414 MEM32(esi + 0x8) = edx; /* 0x27016385: mov dword ptr [esi + 8], edx */ 6415 goto L_2701638C; /* 0x27016388: jmp 0x2701638c */ 6416 L_2701638A: 6417 MEM32(esi) = edx; /* 0x2701638A: mov dword ptr [esi], edx */ 6418 L_2701638C: 6419 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 6420 L_2701638F: 6421 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 6422 L_27016392: 6423 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 6424 L_27016395: 6425 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 6426 PUSH32(esp, edx); /* 0x27016398: push edx */ 6427 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 6428 RECOMP_FLAGS_IN(); 6429 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 6430 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 6431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6433 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 6434 _flag_k = FK_ADD; 6435 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6436 eax = eax - 1; /* 0x270163A7: dec eax */ 6437 _flag_k = FK_DEC; 6438 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 6439 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 6440 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 6441 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 6442 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 6443 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 6444 esp = ebp; /* 0x270163B3: mov esp, ebp */ 6445 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 6446 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 6447 RECOMP_REGS_OUT(); 6448 } 6449 6450 void sub_270160D1(void) { 6451 int _fpu_cmp = 0; 6452 uint32_t _cf = 0; 6453 int _df = 1; 6454 uint32_t _flag_k = FK_NONE; 6455 uint32_t _flag_a = 0, _flag_b = 0; 6456 uint32_t _itail_tgt = 0; 6457 RECOMP_REGS_LOCALS 6458 RECOMP_ENTER(0x270160D1u); 6459 6460 L_270160D1: 6461 ebx = MEM32(edi + 0x4); /* 0x270160D1: mov ebx, dword ptr [edi + 4] */ 6462 /* cmp MEM32(ebx), esi */ /* 0x270160D4: cmp dword ptr [ebx], esi */ 6463 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 6464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6465 _flag_k = FK_CMP; 6466 if (CMP_NE(_flag_a, _flag_b)) goto L_270160FB; /* 0x270160D6: jne 0x270160fb */ 6467 L_270160D8: 6468 ecx = MEM32(esi + 0x8); /* 0x270160D8: mov ecx, dword ptr [esi + 8] */ 6469 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x270160DB: cmp ecx, dword ptr [edi + 8] */ 6470 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6471 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6472 _flag_k = FK_CMP; 6473 if (CMP_NE(_flag_a, _flag_b)) goto L_270160E5; /* 0x270160DE: jne 0x270160e5 */ 6474 L_270160E0: 6475 edx = MEM32(esi + 0x4); /* 0x270160E0: mov edx, dword ptr [esi + 4] */ 6476 goto L_270160F9; /* 0x270160E3: jmp 0x270160f9 */ 6477 L_270160E5: 6478 ecx = MEM32(eax); /* 0x270160E5: mov ecx, dword ptr [eax] */ 6479 /* cmp MEM8(ecx + 0x19), 0 */ /* 0x270160E7: cmp byte ptr [ecx + 0x19], 0 */ 6480 _flag_a = (uint32_t)(MEM8(ecx + 0x19)) << 24; _flag_b = (uint32_t)(0) << 24; 6481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6482 _flag_k = FK_NARROW(FK_CMP, 24); 6483 edx = eax; /* 0x270160EB: mov edx, eax */ 6484 if (CMP_NE(_flag_a, _flag_b)) goto L_270160F9; /* 0x270160ED: jne 0x270160f9 */ 6485 L_270160EF: 6486 edx = ecx; /* 0x270160EF: mov edx, ecx */ 6487 ecx = MEM32(edx); /* 0x270160F1: mov ecx, dword ptr [edx] */ 6488 /* cmp MEM8(ecx + 0x19), 0 */ /* 0x270160F3: cmp byte ptr [ecx + 0x19], 0 */ 6489 _flag_a = (uint32_t)(MEM8(ecx + 0x19)) << 24; _flag_b = (uint32_t)(0) << 24; 6490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6491 _flag_k = FK_NARROW(FK_CMP, 24); 6492 RECOMP_BACKEDGE(); 6493 if (CMP_EQ(_flag_a, _flag_b)) goto L_270160EF; /* 0x270160F7: je 0x270160ef */ 6494 L_270160F9: 6495 MEM32(ebx) = edx; /* 0x270160F9: mov dword ptr [ebx], edx */ 6496 L_270160FB: 6497 ebx = MEM32(edi + 0x4); /* 0x270160FB: mov ebx, dword ptr [edi + 4] */ 6498 /* cmp MEM32(ebx + 0x8), esi */ /* 0x270160FE: cmp dword ptr [ebx + 8], esi */ 6499 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 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_27016128; /* 0x27016101: jne 0x27016128 */ 6503 L_27016103: 6504 ecx = MEM32(esi); /* 0x27016103: mov ecx, dword ptr [esi] */ 6505 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x27016105: cmp ecx, dword ptr [edi + 8] */ 6506 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6508 _flag_k = FK_CMP; 6509 if (CMP_NE(_flag_a, _flag_b)) goto L_2701610F; /* 0x27016108: jne 0x2701610f */ 6510 L_2701610A: 6511 edx = MEM32(esi + 0x4); /* 0x2701610A: mov edx, dword ptr [esi + 4] */ 6512 goto L_27016125; /* 0x2701610D: jmp 0x27016125 */ 6513 L_2701610F: 6514 ecx = MEM32(eax + 0x8); /* 0x2701610F: mov ecx, dword ptr [eax + 8] */ 6515 /* cmp MEM8(ecx + 0x19), 0 */ /* 0x27016112: cmp byte ptr [ecx + 0x19], 0 */ 6516 _flag_a = (uint32_t)(MEM8(ecx + 0x19)) << 24; _flag_b = (uint32_t)(0) << 24; 6517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6518 _flag_k = FK_NARROW(FK_CMP, 24); 6519 edx = eax; /* 0x27016116: mov edx, eax */ 6520 if (CMP_NE(_flag_a, _flag_b)) goto L_27016125; /* 0x27016118: jne 0x27016125 */ 6521 L_2701611A: 6522 edx = ecx; /* 0x2701611A: mov edx, ecx */ 6523 ecx = MEM32(edx + 0x8); /* 0x2701611C: mov ecx, dword ptr [edx + 8] */ 6524 /* cmp MEM8(ecx + 0x19), 0 */ /* 0x2701611F: cmp byte ptr [ecx + 0x19], 0 */ 6525 _flag_a = (uint32_t)(MEM8(ecx + 0x19)) << 24; _flag_b = (uint32_t)(0) << 24; 6526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6527 _flag_k = FK_NARROW(FK_CMP, 24); 6528 RECOMP_BACKEDGE(); 6529 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701611A; /* 0x27016123: je 0x2701611a */ 6530 L_27016125: 6531 MEM32(ebx + 0x8) = edx; /* 0x27016125: mov dword ptr [ebx + 8], edx */ 6532 L_27016128: 6533 ecx = MEM32(ebp + (-0x4)); /* 0x27016128: mov ecx, dword ptr [ebp - 4] */ 6534 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2701612B: mov dl, byte ptr [ecx + 0x18] */ 6535 SET_LO8(ebx, 1); /* 0x2701612E: mov bl, 1 */ 6536 /* cmp LO8(edx), LO8(ebx) */ /* 0x27016130: cmp dl, bl */ 6537 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6539 _flag_k = FK_NARROW(FK_CMP, 24); 6540 if (CMP_NE(_flag_a, _flag_b)) goto L_27016395; /* 0x27016132: jne 0x27016395 */ 6541 L_27016138: 6542 edx = MEM32(edi + 0x4); /* 0x27016138: mov edx, dword ptr [edi + 4] */ 6543 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701613B: cmp eax, dword ptr [edx + 4] */ 6544 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6546 _flag_k = FK_CMP; 6547 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016392; /* 0x2701613E: je 0x27016392 */ 6548 L_27016144: 6549 /* cmp MEM8(eax + 0x18), LO8(ebx) */ /* 0x27016144: cmp byte ptr [eax + 0x18], bl */ 6550 _flag_a = (uint32_t)(MEM8(eax + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6552 _flag_k = FK_NARROW(FK_CMP, 24); 6553 if (CMP_NE(_flag_a, _flag_b)) goto L_27016392; /* 0x27016147: jne 0x27016392 */ 6554 L_2701614D: 6555 edx = MEM32(eax + 0x4); /* 0x2701614D: mov edx, dword ptr [eax + 4] */ 6556 ecx = MEM32(edx); /* 0x27016150: mov ecx, dword ptr [edx] */ 6557 /* cmp eax, ecx */ /* 0x27016152: cmp eax, ecx */ 6558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6560 _flag_k = FK_CMP; 6561 if (CMP_NE(_flag_a, _flag_b)) goto L_270161C4; /* 0x27016154: jne 0x270161c4 */ 6562 L_27016156: 6563 ecx = MEM32(edx + 0x8); /* 0x27016156: mov ecx, dword ptr [edx + 8] */ 6564 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x27016159: mov dl, byte ptr [ecx + 0x18] */ 6565 /* test LO8(edx), LO8(edx) */ /* 0x2701615C: test dl, dl */ 6566 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6567 _cf = 0; 6568 _flag_k = FK_NARROW(FK_TEST, 24); 6569 if (TEST_NZ(_flag_a, _flag_b)) goto L_270161AB; /* 0x2701615E: jne 0x270161ab */ 6570 L_27016160: 6571 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016160: mov byte ptr [ecx + 0x18], bl */ 6572 ecx = MEM32(eax + 0x4); /* 0x27016163: mov ecx, dword ptr [eax + 4] */ 6573 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016166: mov byte ptr [ecx + 0x18], 0 */ 6574 ecx = MEM32(eax + 0x4); /* 0x2701616A: mov ecx, dword ptr [eax + 4] */ 6575 edx = MEM32(ecx + 0x8); /* 0x2701616D: mov edx, dword ptr [ecx + 8] */ 6576 esi = MEM32(edx); /* 0x27016170: mov esi, dword ptr [edx] */ 6577 MEM32(ecx + 0x8) = esi; /* 0x27016172: mov dword ptr [ecx + 8], esi */ 6578 esi = MEM32(edx); /* 0x27016175: mov esi, dword ptr [edx] */ 6579 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016177: cmp esi, dword ptr [edi + 8] */ 6580 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6582 _flag_k = FK_CMP; 6583 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701617F; /* 0x2701617A: je 0x2701617f */ 6584 L_2701617C: 6585 MEM32(esi + 0x4) = ecx; /* 0x2701617C: mov dword ptr [esi + 4], ecx */ 6586 L_2701617F: 6587 esi = MEM32(ecx + 0x4); /* 0x2701617F: mov esi, dword ptr [ecx + 4] */ 6588 MEM32(edx + 0x4) = esi; /* 0x27016182: mov dword ptr [edx + 4], esi */ 6589 esi = MEM32(edi + 0x4); /* 0x27016185: mov esi, dword ptr [edi + 4] */ 6590 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016188: cmp ecx, dword ptr [esi + 4] */ 6591 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6593 _flag_k = FK_CMP; 6594 if (CMP_NE(_flag_a, _flag_b)) goto L_27016192; /* 0x2701618B: jne 0x27016192 */ 6595 L_2701618D: 6596 MEM32(esi + 0x4) = edx; /* 0x2701618D: mov dword ptr [esi + 4], edx */ 6597 goto L_270161A0; /* 0x27016190: jmp 0x270161a0 */ 6598 L_27016192: 6599 esi = MEM32(ecx + 0x4); /* 0x27016192: mov esi, dword ptr [ecx + 4] */ 6600 /* cmp ecx, MEM32(esi) */ /* 0x27016195: cmp ecx, dword ptr [esi] */ 6601 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6603 _flag_k = FK_CMP; 6604 if (CMP_NE(_flag_a, _flag_b)) goto L_2701619D; /* 0x27016197: jne 0x2701619d */ 6605 L_27016199: 6606 MEM32(esi) = edx; /* 0x27016199: mov dword ptr [esi], edx */ 6607 goto L_270161A0; /* 0x2701619B: jmp 0x270161a0 */ 6608 L_2701619D: 6609 MEM32(esi + 0x8) = edx; /* 0x2701619D: mov dword ptr [esi + 8], edx */ 6610 L_270161A0: 6611 MEM32(edx) = ecx; /* 0x270161A0: mov dword ptr [edx], ecx */ 6612 MEM32(ecx + 0x4) = edx; /* 0x270161A2: mov dword ptr [ecx + 4], edx */ 6613 edx = MEM32(eax + 0x4); /* 0x270161A5: mov edx, dword ptr [eax + 4] */ 6614 ecx = MEM32(edx + 0x8); /* 0x270161A8: mov ecx, dword ptr [edx + 8] */ 6615 L_270161AB: 6616 edx = MEM32(ecx); /* 0x270161AB: mov edx, dword ptr [ecx] */ 6617 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161AD: cmp byte ptr [edx + 0x18], bl */ 6618 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6620 _flag_k = FK_NARROW(FK_CMP, 24); 6621 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161B0: jne 0x27016246 */ 6622 L_270161B6: 6623 edx = MEM32(ecx + 0x8); /* 0x270161B6: mov edx, dword ptr [ecx + 8] */ 6624 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161B9: cmp byte ptr [edx + 0x18], bl */ 6625 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6627 _flag_k = FK_NARROW(FK_CMP, 24); 6628 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161BC: jne 0x27016246 */ 6629 L_270161C2: 6630 goto L_2701622E; /* 0x270161C2: jmp 0x2701622e */ 6631 L_270161C4: 6632 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270161C4: mov dl, byte ptr [ecx + 0x18] */ 6633 /* test LO8(edx), LO8(edx) */ /* 0x270161C7: test dl, dl */ 6634 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6635 _cf = 0; 6636 _flag_k = FK_NARROW(FK_TEST, 24); 6637 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016217; /* 0x270161C9: jne 0x27016217 */ 6638 L_270161CB: 6639 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270161CB: mov byte ptr [ecx + 0x18], bl */ 6640 ecx = MEM32(eax + 0x4); /* 0x270161CE: mov ecx, dword ptr [eax + 4] */ 6641 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270161D1: mov byte ptr [ecx + 0x18], 0 */ 6642 ecx = MEM32(eax + 0x4); /* 0x270161D5: mov ecx, dword ptr [eax + 4] */ 6643 edx = MEM32(ecx); /* 0x270161D8: mov edx, dword ptr [ecx] */ 6644 esi = MEM32(edx + 0x8); /* 0x270161DA: mov esi, dword ptr [edx + 8] */ 6645 MEM32(ecx) = esi; /* 0x270161DD: mov dword ptr [ecx], esi */ 6646 esi = MEM32(edx + 0x8); /* 0x270161DF: mov esi, dword ptr [edx + 8] */ 6647 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270161E2: cmp esi, dword ptr [edi + 8] */ 6648 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6650 _flag_k = FK_CMP; 6651 if (CMP_EQ(_flag_a, _flag_b)) goto L_270161EA; /* 0x270161E5: je 0x270161ea */ 6652 L_270161E7: 6653 MEM32(esi + 0x4) = ecx; /* 0x270161E7: mov dword ptr [esi + 4], ecx */ 6654 L_270161EA: 6655 esi = MEM32(ecx + 0x4); /* 0x270161EA: mov esi, dword ptr [ecx + 4] */ 6656 MEM32(edx + 0x4) = esi; /* 0x270161ED: mov dword ptr [edx + 4], esi */ 6657 esi = MEM32(edi + 0x4); /* 0x270161F0: mov esi, dword ptr [edi + 4] */ 6658 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270161F3: cmp ecx, dword ptr [esi + 4] */ 6659 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6661 _flag_k = FK_CMP; 6662 if (CMP_NE(_flag_a, _flag_b)) goto L_270161FD; /* 0x270161F6: jne 0x270161fd */ 6663 L_270161F8: 6664 MEM32(esi + 0x4) = edx; /* 0x270161F8: mov dword ptr [esi + 4], edx */ 6665 goto L_2701620C; /* 0x270161FB: jmp 0x2701620c */ 6666 L_270161FD: 6667 esi = MEM32(ecx + 0x4); /* 0x270161FD: mov esi, dword ptr [ecx + 4] */ 6668 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016200: cmp ecx, dword ptr [esi + 8] */ 6669 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6671 _flag_k = FK_CMP; 6672 if (CMP_NE(_flag_a, _flag_b)) goto L_2701620A; /* 0x27016203: jne 0x2701620a */ 6673 L_27016205: 6674 MEM32(esi + 0x8) = edx; /* 0x27016205: mov dword ptr [esi + 8], edx */ 6675 goto L_2701620C; /* 0x27016208: jmp 0x2701620c */ 6676 L_2701620A: 6677 MEM32(esi) = edx; /* 0x2701620A: mov dword ptr [esi], edx */ 6678 L_2701620C: 6679 MEM32(edx + 0x8) = ecx; /* 0x2701620C: mov dword ptr [edx + 8], ecx */ 6680 MEM32(ecx + 0x4) = edx; /* 0x2701620F: mov dword ptr [ecx + 4], edx */ 6681 edx = MEM32(eax + 0x4); /* 0x27016212: mov edx, dword ptr [eax + 4] */ 6682 ecx = MEM32(edx); /* 0x27016215: mov ecx, dword ptr [edx] */ 6683 L_27016217: 6684 edx = MEM32(ecx + 0x8); /* 0x27016217: mov edx, dword ptr [ecx + 8] */ 6685 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x2701621A: cmp byte ptr [edx + 0x18], bl */ 6686 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6688 _flag_k = FK_NARROW(FK_CMP, 24); 6689 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x2701621D: jne 0x270162f3 */ 6690 L_27016223: 6691 edx = MEM32(ecx); /* 0x27016223: mov edx, dword ptr [ecx] */ 6692 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016225: cmp byte ptr [edx + 0x18], bl */ 6693 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6695 _flag_k = FK_NARROW(FK_CMP, 24); 6696 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x27016228: jne 0x270162f3 */ 6697 L_2701622E: 6698 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2701622E: mov byte ptr [ecx + 0x18], 0 */ 6699 ecx = MEM32(edi + 0x4); /* 0x27016232: mov ecx, dword ptr [edi + 4] */ 6700 eax = MEM32(eax + 0x4); /* 0x27016235: mov eax, dword ptr [eax + 4] */ 6701 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016238: cmp eax, dword ptr [ecx + 4] */ 6702 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6704 _flag_k = FK_CMP; 6705 RECOMP_BACKEDGE(); 6706 if (CMP_NE(_flag_a, _flag_b)) goto L_27016144; /* 0x2701623B: jne 0x27016144 */ 6707 L_27016241: 6708 goto L_27016392; /* 0x27016241: jmp 0x27016392 */ 6709 L_27016246: 6710 edx = MEM32(ecx + 0x8); /* 0x27016246: mov edx, dword ptr [ecx + 8] */ 6711 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016249: cmp byte ptr [edx + 0x18], bl */ 6712 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6714 _flag_k = FK_NARROW(FK_CMP, 24); 6715 if (CMP_NE(_flag_a, _flag_b)) goto L_27016297; /* 0x2701624C: jne 0x27016297 */ 6716 L_2701624E: 6717 edx = MEM32(ecx); /* 0x2701624E: mov edx, dword ptr [ecx] */ 6718 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016250: mov byte ptr [edx + 0x18], bl */ 6719 edx = MEM32(ecx); /* 0x27016253: mov edx, dword ptr [ecx] */ 6720 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016255: mov byte ptr [ecx + 0x18], 0 */ 6721 esi = MEM32(edx + 0x8); /* 0x27016259: mov esi, dword ptr [edx + 8] */ 6722 MEM32(ecx) = esi; /* 0x2701625C: mov dword ptr [ecx], esi */ 6723 esi = MEM32(edx + 0x8); /* 0x2701625E: mov esi, dword ptr [edx + 8] */ 6724 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016261: cmp esi, dword ptr [edi + 8] */ 6725 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6727 _flag_k = FK_CMP; 6728 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016269; /* 0x27016264: je 0x27016269 */ 6729 L_27016266: 6730 MEM32(esi + 0x4) = ecx; /* 0x27016266: mov dword ptr [esi + 4], ecx */ 6731 L_27016269: 6732 esi = MEM32(ecx + 0x4); /* 0x27016269: mov esi, dword ptr [ecx + 4] */ 6733 MEM32(edx + 0x4) = esi; /* 0x2701626C: mov dword ptr [edx + 4], esi */ 6734 esi = MEM32(edi + 0x4); /* 0x2701626F: mov esi, dword ptr [edi + 4] */ 6735 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016272: cmp ecx, dword ptr [esi + 4] */ 6736 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6738 _flag_k = FK_CMP; 6739 if (CMP_NE(_flag_a, _flag_b)) goto L_2701627C; /* 0x27016275: jne 0x2701627c */ 6740 L_27016277: 6741 MEM32(esi + 0x4) = edx; /* 0x27016277: mov dword ptr [esi + 4], edx */ 6742 goto L_2701628B; /* 0x2701627A: jmp 0x2701628b */ 6743 L_2701627C: 6744 esi = MEM32(ecx + 0x4); /* 0x2701627C: mov esi, dword ptr [ecx + 4] */ 6745 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2701627F: cmp ecx, dword ptr [esi + 8] */ 6746 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6748 _flag_k = FK_CMP; 6749 if (CMP_NE(_flag_a, _flag_b)) goto L_27016289; /* 0x27016282: jne 0x27016289 */ 6750 L_27016284: 6751 MEM32(esi + 0x8) = edx; /* 0x27016284: mov dword ptr [esi + 8], edx */ 6752 goto L_2701628B; /* 0x27016287: jmp 0x2701628b */ 6753 L_27016289: 6754 MEM32(esi) = edx; /* 0x27016289: mov dword ptr [esi], edx */ 6755 L_2701628B: 6756 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 6757 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 6758 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 6759 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 6760 L_27016297: 6761 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 6762 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 6763 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 6764 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 6765 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 6766 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 6767 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 6768 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 6769 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 6770 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 6771 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 6772 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 6773 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 6774 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6776 _flag_k = FK_CMP; 6777 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 6778 L_270162BE: 6779 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 6780 L_270162C1: 6781 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 6782 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 6783 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 6784 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 6785 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6787 _flag_k = FK_CMP; 6788 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 6789 L_270162CF: 6790 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 6791 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 6792 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 6793 L_270162D9: 6794 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 6795 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 6796 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6798 _flag_k = FK_CMP; 6799 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 6800 L_270162E0: 6801 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 6802 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 6803 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 6804 L_270162E9: 6805 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 6806 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 6807 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 6808 L_270162F3: 6809 edx = MEM32(ecx); /* 0x270162F3: mov edx, dword ptr [ecx] */ 6810 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270162F5: cmp byte ptr [edx + 0x18], bl */ 6811 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6813 _flag_k = FK_NARROW(FK_CMP, 24); 6814 if (CMP_NE(_flag_a, _flag_b)) goto L_27016341; /* 0x270162F8: jne 0x27016341 */ 6815 L_270162FA: 6816 edx = MEM32(ecx + 0x8); /* 0x270162FA: mov edx, dword ptr [ecx + 8] */ 6817 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162FD: mov byte ptr [edx + 0x18], bl */ 6818 edx = MEM32(ecx + 0x8); /* 0x27016300: mov edx, dword ptr [ecx + 8] */ 6819 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016303: mov byte ptr [ecx + 0x18], 0 */ 6820 esi = MEM32(edx); /* 0x27016307: mov esi, dword ptr [edx] */ 6821 MEM32(ecx + 0x8) = esi; /* 0x27016309: mov dword ptr [ecx + 8], esi */ 6822 esi = MEM32(edx); /* 0x2701630C: mov esi, dword ptr [edx] */ 6823 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701630E: cmp esi, dword ptr [edi + 8] */ 6824 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6826 _flag_k = FK_CMP; 6827 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016316; /* 0x27016311: je 0x27016316 */ 6828 L_27016313: 6829 MEM32(esi + 0x4) = ecx; /* 0x27016313: mov dword ptr [esi + 4], ecx */ 6830 L_27016316: 6831 esi = MEM32(ecx + 0x4); /* 0x27016316: mov esi, dword ptr [ecx + 4] */ 6832 MEM32(edx + 0x4) = esi; /* 0x27016319: mov dword ptr [edx + 4], esi */ 6833 esi = MEM32(edi + 0x4); /* 0x2701631C: mov esi, dword ptr [edi + 4] */ 6834 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701631F: cmp ecx, dword ptr [esi + 4] */ 6835 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6837 _flag_k = FK_CMP; 6838 if (CMP_NE(_flag_a, _flag_b)) goto L_27016329; /* 0x27016322: jne 0x27016329 */ 6839 L_27016324: 6840 MEM32(esi + 0x4) = edx; /* 0x27016324: mov dword ptr [esi + 4], edx */ 6841 goto L_27016337; /* 0x27016327: jmp 0x27016337 */ 6842 L_27016329: 6843 esi = MEM32(ecx + 0x4); /* 0x27016329: mov esi, dword ptr [ecx + 4] */ 6844 /* cmp ecx, MEM32(esi) */ /* 0x2701632C: cmp ecx, dword ptr [esi] */ 6845 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6847 _flag_k = FK_CMP; 6848 if (CMP_NE(_flag_a, _flag_b)) goto L_27016334; /* 0x2701632E: jne 0x27016334 */ 6849 L_27016330: 6850 MEM32(esi) = edx; /* 0x27016330: mov dword ptr [esi], edx */ 6851 goto L_27016337; /* 0x27016332: jmp 0x27016337 */ 6852 L_27016334: 6853 MEM32(esi + 0x8) = edx; /* 0x27016334: mov dword ptr [esi + 8], edx */ 6854 L_27016337: 6855 MEM32(edx) = ecx; /* 0x27016337: mov dword ptr [edx], ecx */ 6856 MEM32(ecx + 0x4) = edx; /* 0x27016339: mov dword ptr [ecx + 4], edx */ 6857 ecx = MEM32(eax + 0x4); /* 0x2701633C: mov ecx, dword ptr [eax + 4] */ 6858 ecx = MEM32(ecx); /* 0x2701633F: mov ecx, dword ptr [ecx] */ 6859 L_27016341: 6860 edx = MEM32(eax + 0x4); /* 0x27016341: mov edx, dword ptr [eax + 4] */ 6861 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x27016344: mov dl, byte ptr [edx + 0x18] */ 6862 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016347: mov byte ptr [ecx + 0x18], dl */ 6863 edx = MEM32(eax + 0x4); /* 0x2701634A: mov edx, dword ptr [eax + 4] */ 6864 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701634D: mov byte ptr [edx + 0x18], bl */ 6865 ecx = MEM32(ecx); /* 0x27016350: mov ecx, dword ptr [ecx] */ 6866 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016352: mov byte ptr [ecx + 0x18], bl */ 6867 ecx = MEM32(eax + 0x4); /* 0x27016355: mov ecx, dword ptr [eax + 4] */ 6868 edx = MEM32(ecx); /* 0x27016358: mov edx, dword ptr [ecx] */ 6869 esi = MEM32(edx + 0x8); /* 0x2701635A: mov esi, dword ptr [edx + 8] */ 6870 MEM32(ecx) = esi; /* 0x2701635D: mov dword ptr [ecx], esi */ 6871 esi = MEM32(edx + 0x8); /* 0x2701635F: mov esi, dword ptr [edx + 8] */ 6872 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016362: cmp esi, dword ptr [edi + 8] */ 6873 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6875 _flag_k = FK_CMP; 6876 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701636A; /* 0x27016365: je 0x2701636a */ 6877 L_27016367: 6878 MEM32(esi + 0x4) = ecx; /* 0x27016367: mov dword ptr [esi + 4], ecx */ 6879 L_2701636A: 6880 esi = MEM32(ecx + 0x4); /* 0x2701636A: mov esi, dword ptr [ecx + 4] */ 6881 MEM32(edx + 0x4) = esi; /* 0x2701636D: mov dword ptr [edx + 4], esi */ 6882 esi = MEM32(edi + 0x4); /* 0x27016370: mov esi, dword ptr [edi + 4] */ 6883 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016373: cmp ecx, dword ptr [esi + 4] */ 6884 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6886 _flag_k = FK_CMP; 6887 if (CMP_NE(_flag_a, _flag_b)) goto L_2701637D; /* 0x27016376: jne 0x2701637d */ 6888 L_27016378: 6889 MEM32(esi + 0x4) = edx; /* 0x27016378: mov dword ptr [esi + 4], edx */ 6890 goto L_2701638C; /* 0x2701637B: jmp 0x2701638c */ 6891 L_2701637D: 6892 esi = MEM32(ecx + 0x4); /* 0x2701637D: mov esi, dword ptr [ecx + 4] */ 6893 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016380: cmp ecx, dword ptr [esi + 8] */ 6894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6896 _flag_k = FK_CMP; 6897 if (CMP_NE(_flag_a, _flag_b)) goto L_2701638A; /* 0x27016383: jne 0x2701638a */ 6898 L_27016385: 6899 MEM32(esi + 0x8) = edx; /* 0x27016385: mov dword ptr [esi + 8], edx */ 6900 goto L_2701638C; /* 0x27016388: jmp 0x2701638c */ 6901 L_2701638A: 6902 MEM32(esi) = edx; /* 0x2701638A: mov dword ptr [esi], edx */ 6903 L_2701638C: 6904 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 6905 L_2701638F: 6906 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 6907 L_27016392: 6908 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 6909 L_27016395: 6910 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 6911 PUSH32(esp, edx); /* 0x27016398: push edx */ 6912 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 6913 RECOMP_FLAGS_IN(); 6914 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 6915 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 6916 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6918 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 6919 _flag_k = FK_ADD; 6920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6921 eax = eax - 1; /* 0x270163A7: dec eax */ 6922 _flag_k = FK_DEC; 6923 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 6924 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 6925 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 6926 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 6927 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 6928 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 6929 esp = ebp; /* 0x270163B3: mov esp, ebp */ 6930 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 6931 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 6932 RECOMP_REGS_OUT(); 6933 } 6934 6935 void sub_270160F9(void) { 6936 int _fpu_cmp = 0; 6937 uint32_t _cf = 0; 6938 int _df = 1; 6939 uint32_t _flag_k = FK_NONE; 6940 uint32_t _flag_a = 0, _flag_b = 0; 6941 uint32_t _itail_tgt = 0; 6942 RECOMP_REGS_LOCALS 6943 RECOMP_ENTER(0x270160F9u); 6944 6945 L_270160F9: 6946 MEM32(ebx) = edx; /* 0x270160F9: mov dword ptr [ebx], edx */ 6947 ebx = MEM32(edi + 0x4); /* 0x270160FB: mov ebx, dword ptr [edi + 4] */ 6948 /* cmp MEM32(ebx + 0x8), esi */ /* 0x270160FE: cmp dword ptr [ebx + 8], esi */ 6949 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 6950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6951 _flag_k = FK_CMP; 6952 if (CMP_NE(_flag_a, _flag_b)) goto L_27016128; /* 0x27016101: jne 0x27016128 */ 6953 L_27016103: 6954 ecx = MEM32(esi); /* 0x27016103: mov ecx, dword ptr [esi] */ 6955 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x27016105: cmp ecx, dword ptr [edi + 8] */ 6956 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6958 _flag_k = FK_CMP; 6959 if (CMP_NE(_flag_a, _flag_b)) goto L_2701610F; /* 0x27016108: jne 0x2701610f */ 6960 L_2701610A: 6961 edx = MEM32(esi + 0x4); /* 0x2701610A: mov edx, dword ptr [esi + 4] */ 6962 goto L_27016125; /* 0x2701610D: jmp 0x27016125 */ 6963 L_2701610F: 6964 ecx = MEM32(eax + 0x8); /* 0x2701610F: mov ecx, dword ptr [eax + 8] */ 6965 /* cmp MEM8(ecx + 0x19), 0 */ /* 0x27016112: cmp byte ptr [ecx + 0x19], 0 */ 6966 _flag_a = (uint32_t)(MEM8(ecx + 0x19)) << 24; _flag_b = (uint32_t)(0) << 24; 6967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6968 _flag_k = FK_NARROW(FK_CMP, 24); 6969 edx = eax; /* 0x27016116: mov edx, eax */ 6970 if (CMP_NE(_flag_a, _flag_b)) goto L_27016125; /* 0x27016118: jne 0x27016125 */ 6971 L_2701611A: 6972 edx = ecx; /* 0x2701611A: mov edx, ecx */ 6973 ecx = MEM32(edx + 0x8); /* 0x2701611C: mov ecx, dword ptr [edx + 8] */ 6974 /* cmp MEM8(ecx + 0x19), 0 */ /* 0x2701611F: cmp byte ptr [ecx + 0x19], 0 */ 6975 _flag_a = (uint32_t)(MEM8(ecx + 0x19)) << 24; _flag_b = (uint32_t)(0) << 24; 6976 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6977 _flag_k = FK_NARROW(FK_CMP, 24); 6978 RECOMP_BACKEDGE(); 6979 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701611A; /* 0x27016123: je 0x2701611a */ 6980 L_27016125: 6981 MEM32(ebx + 0x8) = edx; /* 0x27016125: mov dword ptr [ebx + 8], edx */ 6982 L_27016128: 6983 ecx = MEM32(ebp + (-0x4)); /* 0x27016128: mov ecx, dword ptr [ebp - 4] */ 6984 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2701612B: mov dl, byte ptr [ecx + 0x18] */ 6985 SET_LO8(ebx, 1); /* 0x2701612E: mov bl, 1 */ 6986 /* cmp LO8(edx), LO8(ebx) */ /* 0x27016130: cmp dl, bl */ 6987 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6989 _flag_k = FK_NARROW(FK_CMP, 24); 6990 if (CMP_NE(_flag_a, _flag_b)) goto L_27016395; /* 0x27016132: jne 0x27016395 */ 6991 L_27016138: 6992 edx = MEM32(edi + 0x4); /* 0x27016138: mov edx, dword ptr [edi + 4] */ 6993 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701613B: cmp eax, dword ptr [edx + 4] */ 6994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6996 _flag_k = FK_CMP; 6997 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016392; /* 0x2701613E: je 0x27016392 */ 6998 L_27016144: 6999 /* cmp MEM8(eax + 0x18), LO8(ebx) */ /* 0x27016144: cmp byte ptr [eax + 0x18], bl */ 7000 _flag_a = (uint32_t)(MEM8(eax + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7002 _flag_k = FK_NARROW(FK_CMP, 24); 7003 if (CMP_NE(_flag_a, _flag_b)) goto L_27016392; /* 0x27016147: jne 0x27016392 */ 7004 L_2701614D: 7005 edx = MEM32(eax + 0x4); /* 0x2701614D: mov edx, dword ptr [eax + 4] */ 7006 ecx = MEM32(edx); /* 0x27016150: mov ecx, dword ptr [edx] */ 7007 /* cmp eax, ecx */ /* 0x27016152: cmp eax, ecx */ 7008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7010 _flag_k = FK_CMP; 7011 if (CMP_NE(_flag_a, _flag_b)) goto L_270161C4; /* 0x27016154: jne 0x270161c4 */ 7012 L_27016156: 7013 ecx = MEM32(edx + 0x8); /* 0x27016156: mov ecx, dword ptr [edx + 8] */ 7014 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x27016159: mov dl, byte ptr [ecx + 0x18] */ 7015 /* test LO8(edx), LO8(edx) */ /* 0x2701615C: test dl, dl */ 7016 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7017 _cf = 0; 7018 _flag_k = FK_NARROW(FK_TEST, 24); 7019 if (TEST_NZ(_flag_a, _flag_b)) goto L_270161AB; /* 0x2701615E: jne 0x270161ab */ 7020 L_27016160: 7021 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016160: mov byte ptr [ecx + 0x18], bl */ 7022 ecx = MEM32(eax + 0x4); /* 0x27016163: mov ecx, dword ptr [eax + 4] */ 7023 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016166: mov byte ptr [ecx + 0x18], 0 */ 7024 ecx = MEM32(eax + 0x4); /* 0x2701616A: mov ecx, dword ptr [eax + 4] */ 7025 edx = MEM32(ecx + 0x8); /* 0x2701616D: mov edx, dword ptr [ecx + 8] */ 7026 esi = MEM32(edx); /* 0x27016170: mov esi, dword ptr [edx] */ 7027 MEM32(ecx + 0x8) = esi; /* 0x27016172: mov dword ptr [ecx + 8], esi */ 7028 esi = MEM32(edx); /* 0x27016175: mov esi, dword ptr [edx] */ 7029 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016177: cmp esi, dword ptr [edi + 8] */ 7030 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7032 _flag_k = FK_CMP; 7033 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701617F; /* 0x2701617A: je 0x2701617f */ 7034 L_2701617C: 7035 MEM32(esi + 0x4) = ecx; /* 0x2701617C: mov dword ptr [esi + 4], ecx */ 7036 L_2701617F: 7037 esi = MEM32(ecx + 0x4); /* 0x2701617F: mov esi, dword ptr [ecx + 4] */ 7038 MEM32(edx + 0x4) = esi; /* 0x27016182: mov dword ptr [edx + 4], esi */ 7039 esi = MEM32(edi + 0x4); /* 0x27016185: mov esi, dword ptr [edi + 4] */ 7040 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016188: cmp ecx, dword ptr [esi + 4] */ 7041 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7043 _flag_k = FK_CMP; 7044 if (CMP_NE(_flag_a, _flag_b)) goto L_27016192; /* 0x2701618B: jne 0x27016192 */ 7045 L_2701618D: 7046 MEM32(esi + 0x4) = edx; /* 0x2701618D: mov dword ptr [esi + 4], edx */ 7047 goto L_270161A0; /* 0x27016190: jmp 0x270161a0 */ 7048 L_27016192: 7049 esi = MEM32(ecx + 0x4); /* 0x27016192: mov esi, dword ptr [ecx + 4] */ 7050 /* cmp ecx, MEM32(esi) */ /* 0x27016195: cmp ecx, dword ptr [esi] */ 7051 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7053 _flag_k = FK_CMP; 7054 if (CMP_NE(_flag_a, _flag_b)) goto L_2701619D; /* 0x27016197: jne 0x2701619d */ 7055 L_27016199: 7056 MEM32(esi) = edx; /* 0x27016199: mov dword ptr [esi], edx */ 7057 goto L_270161A0; /* 0x2701619B: jmp 0x270161a0 */ 7058 L_2701619D: 7059 MEM32(esi + 0x8) = edx; /* 0x2701619D: mov dword ptr [esi + 8], edx */ 7060 L_270161A0: 7061 MEM32(edx) = ecx; /* 0x270161A0: mov dword ptr [edx], ecx */ 7062 MEM32(ecx + 0x4) = edx; /* 0x270161A2: mov dword ptr [ecx + 4], edx */ 7063 edx = MEM32(eax + 0x4); /* 0x270161A5: mov edx, dword ptr [eax + 4] */ 7064 ecx = MEM32(edx + 0x8); /* 0x270161A8: mov ecx, dword ptr [edx + 8] */ 7065 L_270161AB: 7066 edx = MEM32(ecx); /* 0x270161AB: mov edx, dword ptr [ecx] */ 7067 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161AD: cmp byte ptr [edx + 0x18], bl */ 7068 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7070 _flag_k = FK_NARROW(FK_CMP, 24); 7071 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161B0: jne 0x27016246 */ 7072 L_270161B6: 7073 edx = MEM32(ecx + 0x8); /* 0x270161B6: mov edx, dword ptr [ecx + 8] */ 7074 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161B9: cmp byte ptr [edx + 0x18], bl */ 7075 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7077 _flag_k = FK_NARROW(FK_CMP, 24); 7078 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161BC: jne 0x27016246 */ 7079 L_270161C2: 7080 goto L_2701622E; /* 0x270161C2: jmp 0x2701622e */ 7081 L_270161C4: 7082 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270161C4: mov dl, byte ptr [ecx + 0x18] */ 7083 /* test LO8(edx), LO8(edx) */ /* 0x270161C7: test dl, dl */ 7084 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7085 _cf = 0; 7086 _flag_k = FK_NARROW(FK_TEST, 24); 7087 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016217; /* 0x270161C9: jne 0x27016217 */ 7088 L_270161CB: 7089 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270161CB: mov byte ptr [ecx + 0x18], bl */ 7090 ecx = MEM32(eax + 0x4); /* 0x270161CE: mov ecx, dword ptr [eax + 4] */ 7091 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270161D1: mov byte ptr [ecx + 0x18], 0 */ 7092 ecx = MEM32(eax + 0x4); /* 0x270161D5: mov ecx, dword ptr [eax + 4] */ 7093 edx = MEM32(ecx); /* 0x270161D8: mov edx, dword ptr [ecx] */ 7094 esi = MEM32(edx + 0x8); /* 0x270161DA: mov esi, dword ptr [edx + 8] */ 7095 MEM32(ecx) = esi; /* 0x270161DD: mov dword ptr [ecx], esi */ 7096 esi = MEM32(edx + 0x8); /* 0x270161DF: mov esi, dword ptr [edx + 8] */ 7097 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270161E2: cmp esi, dword ptr [edi + 8] */ 7098 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7100 _flag_k = FK_CMP; 7101 if (CMP_EQ(_flag_a, _flag_b)) goto L_270161EA; /* 0x270161E5: je 0x270161ea */ 7102 L_270161E7: 7103 MEM32(esi + 0x4) = ecx; /* 0x270161E7: mov dword ptr [esi + 4], ecx */ 7104 L_270161EA: 7105 esi = MEM32(ecx + 0x4); /* 0x270161EA: mov esi, dword ptr [ecx + 4] */ 7106 MEM32(edx + 0x4) = esi; /* 0x270161ED: mov dword ptr [edx + 4], esi */ 7107 esi = MEM32(edi + 0x4); /* 0x270161F0: mov esi, dword ptr [edi + 4] */ 7108 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270161F3: cmp ecx, dword ptr [esi + 4] */ 7109 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7111 _flag_k = FK_CMP; 7112 if (CMP_NE(_flag_a, _flag_b)) goto L_270161FD; /* 0x270161F6: jne 0x270161fd */ 7113 L_270161F8: 7114 MEM32(esi + 0x4) = edx; /* 0x270161F8: mov dword ptr [esi + 4], edx */ 7115 goto L_2701620C; /* 0x270161FB: jmp 0x2701620c */ 7116 L_270161FD: 7117 esi = MEM32(ecx + 0x4); /* 0x270161FD: mov esi, dword ptr [ecx + 4] */ 7118 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016200: cmp ecx, dword ptr [esi + 8] */ 7119 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7121 _flag_k = FK_CMP; 7122 if (CMP_NE(_flag_a, _flag_b)) goto L_2701620A; /* 0x27016203: jne 0x2701620a */ 7123 L_27016205: 7124 MEM32(esi + 0x8) = edx; /* 0x27016205: mov dword ptr [esi + 8], edx */ 7125 goto L_2701620C; /* 0x27016208: jmp 0x2701620c */ 7126 L_2701620A: 7127 MEM32(esi) = edx; /* 0x2701620A: mov dword ptr [esi], edx */ 7128 L_2701620C: 7129 MEM32(edx + 0x8) = ecx; /* 0x2701620C: mov dword ptr [edx + 8], ecx */ 7130 MEM32(ecx + 0x4) = edx; /* 0x2701620F: mov dword ptr [ecx + 4], edx */ 7131 edx = MEM32(eax + 0x4); /* 0x27016212: mov edx, dword ptr [eax + 4] */ 7132 ecx = MEM32(edx); /* 0x27016215: mov ecx, dword ptr [edx] */ 7133 L_27016217: 7134 edx = MEM32(ecx + 0x8); /* 0x27016217: mov edx, dword ptr [ecx + 8] */ 7135 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x2701621A: cmp byte ptr [edx + 0x18], bl */ 7136 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7138 _flag_k = FK_NARROW(FK_CMP, 24); 7139 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x2701621D: jne 0x270162f3 */ 7140 L_27016223: 7141 edx = MEM32(ecx); /* 0x27016223: mov edx, dword ptr [ecx] */ 7142 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016225: cmp byte ptr [edx + 0x18], bl */ 7143 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7145 _flag_k = FK_NARROW(FK_CMP, 24); 7146 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x27016228: jne 0x270162f3 */ 7147 L_2701622E: 7148 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2701622E: mov byte ptr [ecx + 0x18], 0 */ 7149 ecx = MEM32(edi + 0x4); /* 0x27016232: mov ecx, dword ptr [edi + 4] */ 7150 eax = MEM32(eax + 0x4); /* 0x27016235: mov eax, dword ptr [eax + 4] */ 7151 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016238: cmp eax, dword ptr [ecx + 4] */ 7152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7154 _flag_k = FK_CMP; 7155 RECOMP_BACKEDGE(); 7156 if (CMP_NE(_flag_a, _flag_b)) goto L_27016144; /* 0x2701623B: jne 0x27016144 */ 7157 L_27016241: 7158 goto L_27016392; /* 0x27016241: jmp 0x27016392 */ 7159 L_27016246: 7160 edx = MEM32(ecx + 0x8); /* 0x27016246: mov edx, dword ptr [ecx + 8] */ 7161 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016249: cmp byte ptr [edx + 0x18], bl */ 7162 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7164 _flag_k = FK_NARROW(FK_CMP, 24); 7165 if (CMP_NE(_flag_a, _flag_b)) goto L_27016297; /* 0x2701624C: jne 0x27016297 */ 7166 L_2701624E: 7167 edx = MEM32(ecx); /* 0x2701624E: mov edx, dword ptr [ecx] */ 7168 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016250: mov byte ptr [edx + 0x18], bl */ 7169 edx = MEM32(ecx); /* 0x27016253: mov edx, dword ptr [ecx] */ 7170 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016255: mov byte ptr [ecx + 0x18], 0 */ 7171 esi = MEM32(edx + 0x8); /* 0x27016259: mov esi, dword ptr [edx + 8] */ 7172 MEM32(ecx) = esi; /* 0x2701625C: mov dword ptr [ecx], esi */ 7173 esi = MEM32(edx + 0x8); /* 0x2701625E: mov esi, dword ptr [edx + 8] */ 7174 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016261: cmp esi, dword ptr [edi + 8] */ 7175 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7177 _flag_k = FK_CMP; 7178 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016269; /* 0x27016264: je 0x27016269 */ 7179 L_27016266: 7180 MEM32(esi + 0x4) = ecx; /* 0x27016266: mov dword ptr [esi + 4], ecx */ 7181 L_27016269: 7182 esi = MEM32(ecx + 0x4); /* 0x27016269: mov esi, dword ptr [ecx + 4] */ 7183 MEM32(edx + 0x4) = esi; /* 0x2701626C: mov dword ptr [edx + 4], esi */ 7184 esi = MEM32(edi + 0x4); /* 0x2701626F: mov esi, dword ptr [edi + 4] */ 7185 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016272: cmp ecx, dword ptr [esi + 4] */ 7186 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7187 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7188 _flag_k = FK_CMP; 7189 if (CMP_NE(_flag_a, _flag_b)) goto L_2701627C; /* 0x27016275: jne 0x2701627c */ 7190 L_27016277: 7191 MEM32(esi + 0x4) = edx; /* 0x27016277: mov dword ptr [esi + 4], edx */ 7192 goto L_2701628B; /* 0x2701627A: jmp 0x2701628b */ 7193 L_2701627C: 7194 esi = MEM32(ecx + 0x4); /* 0x2701627C: mov esi, dword ptr [ecx + 4] */ 7195 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2701627F: cmp ecx, dword ptr [esi + 8] */ 7196 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7198 _flag_k = FK_CMP; 7199 if (CMP_NE(_flag_a, _flag_b)) goto L_27016289; /* 0x27016282: jne 0x27016289 */ 7200 L_27016284: 7201 MEM32(esi + 0x8) = edx; /* 0x27016284: mov dword ptr [esi + 8], edx */ 7202 goto L_2701628B; /* 0x27016287: jmp 0x2701628b */ 7203 L_27016289: 7204 MEM32(esi) = edx; /* 0x27016289: mov dword ptr [esi], edx */ 7205 L_2701628B: 7206 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 7207 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 7208 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 7209 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 7210 L_27016297: 7211 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 7212 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 7213 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 7214 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 7215 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 7216 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 7217 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 7218 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 7219 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 7220 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 7221 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 7222 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 7223 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 7224 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7226 _flag_k = FK_CMP; 7227 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 7228 L_270162BE: 7229 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 7230 L_270162C1: 7231 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 7232 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 7233 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 7234 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 7235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7237 _flag_k = FK_CMP; 7238 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 7239 L_270162CF: 7240 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 7241 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 7242 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 7243 L_270162D9: 7244 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 7245 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 7246 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7248 _flag_k = FK_CMP; 7249 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 7250 L_270162E0: 7251 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 7252 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 7253 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 7254 L_270162E9: 7255 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 7256 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 7257 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 7258 L_270162F3: 7259 edx = MEM32(ecx); /* 0x270162F3: mov edx, dword ptr [ecx] */ 7260 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270162F5: cmp byte ptr [edx + 0x18], bl */ 7261 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7263 _flag_k = FK_NARROW(FK_CMP, 24); 7264 if (CMP_NE(_flag_a, _flag_b)) goto L_27016341; /* 0x270162F8: jne 0x27016341 */ 7265 L_270162FA: 7266 edx = MEM32(ecx + 0x8); /* 0x270162FA: mov edx, dword ptr [ecx + 8] */ 7267 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162FD: mov byte ptr [edx + 0x18], bl */ 7268 edx = MEM32(ecx + 0x8); /* 0x27016300: mov edx, dword ptr [ecx + 8] */ 7269 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016303: mov byte ptr [ecx + 0x18], 0 */ 7270 esi = MEM32(edx); /* 0x27016307: mov esi, dword ptr [edx] */ 7271 MEM32(ecx + 0x8) = esi; /* 0x27016309: mov dword ptr [ecx + 8], esi */ 7272 esi = MEM32(edx); /* 0x2701630C: mov esi, dword ptr [edx] */ 7273 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701630E: cmp esi, dword ptr [edi + 8] */ 7274 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7276 _flag_k = FK_CMP; 7277 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016316; /* 0x27016311: je 0x27016316 */ 7278 L_27016313: 7279 MEM32(esi + 0x4) = ecx; /* 0x27016313: mov dword ptr [esi + 4], ecx */ 7280 L_27016316: 7281 esi = MEM32(ecx + 0x4); /* 0x27016316: mov esi, dword ptr [ecx + 4] */ 7282 MEM32(edx + 0x4) = esi; /* 0x27016319: mov dword ptr [edx + 4], esi */ 7283 esi = MEM32(edi + 0x4); /* 0x2701631C: mov esi, dword ptr [edi + 4] */ 7284 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701631F: cmp ecx, dword ptr [esi + 4] */ 7285 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7287 _flag_k = FK_CMP; 7288 if (CMP_NE(_flag_a, _flag_b)) goto L_27016329; /* 0x27016322: jne 0x27016329 */ 7289 L_27016324: 7290 MEM32(esi + 0x4) = edx; /* 0x27016324: mov dword ptr [esi + 4], edx */ 7291 goto L_27016337; /* 0x27016327: jmp 0x27016337 */ 7292 L_27016329: 7293 esi = MEM32(ecx + 0x4); /* 0x27016329: mov esi, dword ptr [ecx + 4] */ 7294 /* cmp ecx, MEM32(esi) */ /* 0x2701632C: cmp ecx, dword ptr [esi] */ 7295 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7297 _flag_k = FK_CMP; 7298 if (CMP_NE(_flag_a, _flag_b)) goto L_27016334; /* 0x2701632E: jne 0x27016334 */ 7299 L_27016330: 7300 MEM32(esi) = edx; /* 0x27016330: mov dword ptr [esi], edx */ 7301 goto L_27016337; /* 0x27016332: jmp 0x27016337 */ 7302 L_27016334: 7303 MEM32(esi + 0x8) = edx; /* 0x27016334: mov dword ptr [esi + 8], edx */ 7304 L_27016337: 7305 MEM32(edx) = ecx; /* 0x27016337: mov dword ptr [edx], ecx */ 7306 MEM32(ecx + 0x4) = edx; /* 0x27016339: mov dword ptr [ecx + 4], edx */ 7307 ecx = MEM32(eax + 0x4); /* 0x2701633C: mov ecx, dword ptr [eax + 4] */ 7308 ecx = MEM32(ecx); /* 0x2701633F: mov ecx, dword ptr [ecx] */ 7309 L_27016341: 7310 edx = MEM32(eax + 0x4); /* 0x27016341: mov edx, dword ptr [eax + 4] */ 7311 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x27016344: mov dl, byte ptr [edx + 0x18] */ 7312 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016347: mov byte ptr [ecx + 0x18], dl */ 7313 edx = MEM32(eax + 0x4); /* 0x2701634A: mov edx, dword ptr [eax + 4] */ 7314 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701634D: mov byte ptr [edx + 0x18], bl */ 7315 ecx = MEM32(ecx); /* 0x27016350: mov ecx, dword ptr [ecx] */ 7316 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016352: mov byte ptr [ecx + 0x18], bl */ 7317 ecx = MEM32(eax + 0x4); /* 0x27016355: mov ecx, dword ptr [eax + 4] */ 7318 edx = MEM32(ecx); /* 0x27016358: mov edx, dword ptr [ecx] */ 7319 esi = MEM32(edx + 0x8); /* 0x2701635A: mov esi, dword ptr [edx + 8] */ 7320 MEM32(ecx) = esi; /* 0x2701635D: mov dword ptr [ecx], esi */ 7321 esi = MEM32(edx + 0x8); /* 0x2701635F: mov esi, dword ptr [edx + 8] */ 7322 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016362: cmp esi, dword ptr [edi + 8] */ 7323 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7325 _flag_k = FK_CMP; 7326 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701636A; /* 0x27016365: je 0x2701636a */ 7327 L_27016367: 7328 MEM32(esi + 0x4) = ecx; /* 0x27016367: mov dword ptr [esi + 4], ecx */ 7329 L_2701636A: 7330 esi = MEM32(ecx + 0x4); /* 0x2701636A: mov esi, dword ptr [ecx + 4] */ 7331 MEM32(edx + 0x4) = esi; /* 0x2701636D: mov dword ptr [edx + 4], esi */ 7332 esi = MEM32(edi + 0x4); /* 0x27016370: mov esi, dword ptr [edi + 4] */ 7333 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016373: cmp ecx, dword ptr [esi + 4] */ 7334 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7336 _flag_k = FK_CMP; 7337 if (CMP_NE(_flag_a, _flag_b)) goto L_2701637D; /* 0x27016376: jne 0x2701637d */ 7338 L_27016378: 7339 MEM32(esi + 0x4) = edx; /* 0x27016378: mov dword ptr [esi + 4], edx */ 7340 goto L_2701638C; /* 0x2701637B: jmp 0x2701638c */ 7341 L_2701637D: 7342 esi = MEM32(ecx + 0x4); /* 0x2701637D: mov esi, dword ptr [ecx + 4] */ 7343 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016380: cmp ecx, dword ptr [esi + 8] */ 7344 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7346 _flag_k = FK_CMP; 7347 if (CMP_NE(_flag_a, _flag_b)) goto L_2701638A; /* 0x27016383: jne 0x2701638a */ 7348 L_27016385: 7349 MEM32(esi + 0x8) = edx; /* 0x27016385: mov dword ptr [esi + 8], edx */ 7350 goto L_2701638C; /* 0x27016388: jmp 0x2701638c */ 7351 L_2701638A: 7352 MEM32(esi) = edx; /* 0x2701638A: mov dword ptr [esi], edx */ 7353 L_2701638C: 7354 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 7355 L_2701638F: 7356 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 7357 L_27016392: 7358 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 7359 L_27016395: 7360 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 7361 PUSH32(esp, edx); /* 0x27016398: push edx */ 7362 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 7363 RECOMP_FLAGS_IN(); 7364 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 7365 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 7366 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7367 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7368 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 7369 _flag_k = FK_ADD; 7370 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7371 eax = eax - 1; /* 0x270163A7: dec eax */ 7372 _flag_k = FK_DEC; 7373 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 7374 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 7375 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 7376 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 7377 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 7378 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 7379 esp = ebp; /* 0x270163B3: mov esp, ebp */ 7380 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 7381 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 7382 RECOMP_REGS_OUT(); 7383 } 7384 7385 void sub_27016125(void) { 7386 int _fpu_cmp = 0; 7387 uint32_t _cf = 0; 7388 int _df = 1; 7389 uint32_t _flag_k = FK_NONE; 7390 uint32_t _flag_a = 0, _flag_b = 0; 7391 uint32_t _itail_tgt = 0; 7392 RECOMP_REGS_LOCALS 7393 RECOMP_ENTER(0x27016125u); 7394 7395 L_27016125: 7396 MEM32(ebx + 0x8) = edx; /* 0x27016125: mov dword ptr [ebx + 8], edx */ 7397 ecx = MEM32(ebp + (-0x4)); /* 0x27016128: mov ecx, dword ptr [ebp - 4] */ 7398 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x2701612B: mov dl, byte ptr [ecx + 0x18] */ 7399 SET_LO8(ebx, 1); /* 0x2701612E: mov bl, 1 */ 7400 /* cmp LO8(edx), LO8(ebx) */ /* 0x27016130: cmp dl, bl */ 7401 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7403 _flag_k = FK_NARROW(FK_CMP, 24); 7404 if (CMP_NE(_flag_a, _flag_b)) goto L_27016395; /* 0x27016132: jne 0x27016395 */ 7405 L_27016138: 7406 edx = MEM32(edi + 0x4); /* 0x27016138: mov edx, dword ptr [edi + 4] */ 7407 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701613B: cmp eax, dword ptr [edx + 4] */ 7408 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7409 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7410 _flag_k = FK_CMP; 7411 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016392; /* 0x2701613E: je 0x27016392 */ 7412 L_27016144: 7413 /* cmp MEM8(eax + 0x18), LO8(ebx) */ /* 0x27016144: cmp byte ptr [eax + 0x18], bl */ 7414 _flag_a = (uint32_t)(MEM8(eax + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7416 _flag_k = FK_NARROW(FK_CMP, 24); 7417 if (CMP_NE(_flag_a, _flag_b)) goto L_27016392; /* 0x27016147: jne 0x27016392 */ 7418 L_2701614D: 7419 edx = MEM32(eax + 0x4); /* 0x2701614D: mov edx, dword ptr [eax + 4] */ 7420 ecx = MEM32(edx); /* 0x27016150: mov ecx, dword ptr [edx] */ 7421 /* cmp eax, ecx */ /* 0x27016152: cmp eax, ecx */ 7422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7424 _flag_k = FK_CMP; 7425 if (CMP_NE(_flag_a, _flag_b)) goto L_270161C4; /* 0x27016154: jne 0x270161c4 */ 7426 L_27016156: 7427 ecx = MEM32(edx + 0x8); /* 0x27016156: mov ecx, dword ptr [edx + 8] */ 7428 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x27016159: mov dl, byte ptr [ecx + 0x18] */ 7429 /* test LO8(edx), LO8(edx) */ /* 0x2701615C: test dl, dl */ 7430 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7431 _cf = 0; 7432 _flag_k = FK_NARROW(FK_TEST, 24); 7433 if (TEST_NZ(_flag_a, _flag_b)) goto L_270161AB; /* 0x2701615E: jne 0x270161ab */ 7434 L_27016160: 7435 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016160: mov byte ptr [ecx + 0x18], bl */ 7436 ecx = MEM32(eax + 0x4); /* 0x27016163: mov ecx, dword ptr [eax + 4] */ 7437 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016166: mov byte ptr [ecx + 0x18], 0 */ 7438 ecx = MEM32(eax + 0x4); /* 0x2701616A: mov ecx, dword ptr [eax + 4] */ 7439 edx = MEM32(ecx + 0x8); /* 0x2701616D: mov edx, dword ptr [ecx + 8] */ 7440 esi = MEM32(edx); /* 0x27016170: mov esi, dword ptr [edx] */ 7441 MEM32(ecx + 0x8) = esi; /* 0x27016172: mov dword ptr [ecx + 8], esi */ 7442 esi = MEM32(edx); /* 0x27016175: mov esi, dword ptr [edx] */ 7443 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016177: cmp esi, dword ptr [edi + 8] */ 7444 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7446 _flag_k = FK_CMP; 7447 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701617F; /* 0x2701617A: je 0x2701617f */ 7448 L_2701617C: 7449 MEM32(esi + 0x4) = ecx; /* 0x2701617C: mov dword ptr [esi + 4], ecx */ 7450 L_2701617F: 7451 esi = MEM32(ecx + 0x4); /* 0x2701617F: mov esi, dword ptr [ecx + 4] */ 7452 MEM32(edx + 0x4) = esi; /* 0x27016182: mov dword ptr [edx + 4], esi */ 7453 esi = MEM32(edi + 0x4); /* 0x27016185: mov esi, dword ptr [edi + 4] */ 7454 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016188: cmp ecx, dword ptr [esi + 4] */ 7455 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7457 _flag_k = FK_CMP; 7458 if (CMP_NE(_flag_a, _flag_b)) goto L_27016192; /* 0x2701618B: jne 0x27016192 */ 7459 L_2701618D: 7460 MEM32(esi + 0x4) = edx; /* 0x2701618D: mov dword ptr [esi + 4], edx */ 7461 goto L_270161A0; /* 0x27016190: jmp 0x270161a0 */ 7462 L_27016192: 7463 esi = MEM32(ecx + 0x4); /* 0x27016192: mov esi, dword ptr [ecx + 4] */ 7464 /* cmp ecx, MEM32(esi) */ /* 0x27016195: cmp ecx, dword ptr [esi] */ 7465 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7467 _flag_k = FK_CMP; 7468 if (CMP_NE(_flag_a, _flag_b)) goto L_2701619D; /* 0x27016197: jne 0x2701619d */ 7469 L_27016199: 7470 MEM32(esi) = edx; /* 0x27016199: mov dword ptr [esi], edx */ 7471 goto L_270161A0; /* 0x2701619B: jmp 0x270161a0 */ 7472 L_2701619D: 7473 MEM32(esi + 0x8) = edx; /* 0x2701619D: mov dword ptr [esi + 8], edx */ 7474 L_270161A0: 7475 MEM32(edx) = ecx; /* 0x270161A0: mov dword ptr [edx], ecx */ 7476 MEM32(ecx + 0x4) = edx; /* 0x270161A2: mov dword ptr [ecx + 4], edx */ 7477 edx = MEM32(eax + 0x4); /* 0x270161A5: mov edx, dword ptr [eax + 4] */ 7478 ecx = MEM32(edx + 0x8); /* 0x270161A8: mov ecx, dword ptr [edx + 8] */ 7479 L_270161AB: 7480 edx = MEM32(ecx); /* 0x270161AB: mov edx, dword ptr [ecx] */ 7481 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161AD: cmp byte ptr [edx + 0x18], bl */ 7482 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7484 _flag_k = FK_NARROW(FK_CMP, 24); 7485 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161B0: jne 0x27016246 */ 7486 L_270161B6: 7487 edx = MEM32(ecx + 0x8); /* 0x270161B6: mov edx, dword ptr [ecx + 8] */ 7488 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161B9: cmp byte ptr [edx + 0x18], bl */ 7489 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7491 _flag_k = FK_NARROW(FK_CMP, 24); 7492 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161BC: jne 0x27016246 */ 7493 L_270161C2: 7494 goto L_2701622E; /* 0x270161C2: jmp 0x2701622e */ 7495 L_270161C4: 7496 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270161C4: mov dl, byte ptr [ecx + 0x18] */ 7497 /* test LO8(edx), LO8(edx) */ /* 0x270161C7: test dl, dl */ 7498 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7499 _cf = 0; 7500 _flag_k = FK_NARROW(FK_TEST, 24); 7501 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016217; /* 0x270161C9: jne 0x27016217 */ 7502 L_270161CB: 7503 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270161CB: mov byte ptr [ecx + 0x18], bl */ 7504 ecx = MEM32(eax + 0x4); /* 0x270161CE: mov ecx, dword ptr [eax + 4] */ 7505 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270161D1: mov byte ptr [ecx + 0x18], 0 */ 7506 ecx = MEM32(eax + 0x4); /* 0x270161D5: mov ecx, dword ptr [eax + 4] */ 7507 edx = MEM32(ecx); /* 0x270161D8: mov edx, dword ptr [ecx] */ 7508 esi = MEM32(edx + 0x8); /* 0x270161DA: mov esi, dword ptr [edx + 8] */ 7509 MEM32(ecx) = esi; /* 0x270161DD: mov dword ptr [ecx], esi */ 7510 esi = MEM32(edx + 0x8); /* 0x270161DF: mov esi, dword ptr [edx + 8] */ 7511 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270161E2: cmp esi, dword ptr [edi + 8] */ 7512 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7514 _flag_k = FK_CMP; 7515 if (CMP_EQ(_flag_a, _flag_b)) goto L_270161EA; /* 0x270161E5: je 0x270161ea */ 7516 L_270161E7: 7517 MEM32(esi + 0x4) = ecx; /* 0x270161E7: mov dword ptr [esi + 4], ecx */ 7518 L_270161EA: 7519 esi = MEM32(ecx + 0x4); /* 0x270161EA: mov esi, dword ptr [ecx + 4] */ 7520 MEM32(edx + 0x4) = esi; /* 0x270161ED: mov dword ptr [edx + 4], esi */ 7521 esi = MEM32(edi + 0x4); /* 0x270161F0: mov esi, dword ptr [edi + 4] */ 7522 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270161F3: cmp ecx, dword ptr [esi + 4] */ 7523 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7525 _flag_k = FK_CMP; 7526 if (CMP_NE(_flag_a, _flag_b)) goto L_270161FD; /* 0x270161F6: jne 0x270161fd */ 7527 L_270161F8: 7528 MEM32(esi + 0x4) = edx; /* 0x270161F8: mov dword ptr [esi + 4], edx */ 7529 goto L_2701620C; /* 0x270161FB: jmp 0x2701620c */ 7530 L_270161FD: 7531 esi = MEM32(ecx + 0x4); /* 0x270161FD: mov esi, dword ptr [ecx + 4] */ 7532 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016200: cmp ecx, dword ptr [esi + 8] */ 7533 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7535 _flag_k = FK_CMP; 7536 if (CMP_NE(_flag_a, _flag_b)) goto L_2701620A; /* 0x27016203: jne 0x2701620a */ 7537 L_27016205: 7538 MEM32(esi + 0x8) = edx; /* 0x27016205: mov dword ptr [esi + 8], edx */ 7539 goto L_2701620C; /* 0x27016208: jmp 0x2701620c */ 7540 L_2701620A: 7541 MEM32(esi) = edx; /* 0x2701620A: mov dword ptr [esi], edx */ 7542 L_2701620C: 7543 MEM32(edx + 0x8) = ecx; /* 0x2701620C: mov dword ptr [edx + 8], ecx */ 7544 MEM32(ecx + 0x4) = edx; /* 0x2701620F: mov dword ptr [ecx + 4], edx */ 7545 edx = MEM32(eax + 0x4); /* 0x27016212: mov edx, dword ptr [eax + 4] */ 7546 ecx = MEM32(edx); /* 0x27016215: mov ecx, dword ptr [edx] */ 7547 L_27016217: 7548 edx = MEM32(ecx + 0x8); /* 0x27016217: mov edx, dword ptr [ecx + 8] */ 7549 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x2701621A: cmp byte ptr [edx + 0x18], bl */ 7550 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7552 _flag_k = FK_NARROW(FK_CMP, 24); 7553 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x2701621D: jne 0x270162f3 */ 7554 L_27016223: 7555 edx = MEM32(ecx); /* 0x27016223: mov edx, dword ptr [ecx] */ 7556 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016225: cmp byte ptr [edx + 0x18], bl */ 7557 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7559 _flag_k = FK_NARROW(FK_CMP, 24); 7560 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x27016228: jne 0x270162f3 */ 7561 L_2701622E: 7562 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2701622E: mov byte ptr [ecx + 0x18], 0 */ 7563 ecx = MEM32(edi + 0x4); /* 0x27016232: mov ecx, dword ptr [edi + 4] */ 7564 eax = MEM32(eax + 0x4); /* 0x27016235: mov eax, dword ptr [eax + 4] */ 7565 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016238: cmp eax, dword ptr [ecx + 4] */ 7566 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7568 _flag_k = FK_CMP; 7569 RECOMP_BACKEDGE(); 7570 if (CMP_NE(_flag_a, _flag_b)) goto L_27016144; /* 0x2701623B: jne 0x27016144 */ 7571 L_27016241: 7572 goto L_27016392; /* 0x27016241: jmp 0x27016392 */ 7573 L_27016246: 7574 edx = MEM32(ecx + 0x8); /* 0x27016246: mov edx, dword ptr [ecx + 8] */ 7575 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016249: cmp byte ptr [edx + 0x18], bl */ 7576 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7578 _flag_k = FK_NARROW(FK_CMP, 24); 7579 if (CMP_NE(_flag_a, _flag_b)) goto L_27016297; /* 0x2701624C: jne 0x27016297 */ 7580 L_2701624E: 7581 edx = MEM32(ecx); /* 0x2701624E: mov edx, dword ptr [ecx] */ 7582 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016250: mov byte ptr [edx + 0x18], bl */ 7583 edx = MEM32(ecx); /* 0x27016253: mov edx, dword ptr [ecx] */ 7584 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016255: mov byte ptr [ecx + 0x18], 0 */ 7585 esi = MEM32(edx + 0x8); /* 0x27016259: mov esi, dword ptr [edx + 8] */ 7586 MEM32(ecx) = esi; /* 0x2701625C: mov dword ptr [ecx], esi */ 7587 esi = MEM32(edx + 0x8); /* 0x2701625E: mov esi, dword ptr [edx + 8] */ 7588 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016261: cmp esi, dword ptr [edi + 8] */ 7589 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7591 _flag_k = FK_CMP; 7592 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016269; /* 0x27016264: je 0x27016269 */ 7593 L_27016266: 7594 MEM32(esi + 0x4) = ecx; /* 0x27016266: mov dword ptr [esi + 4], ecx */ 7595 L_27016269: 7596 esi = MEM32(ecx + 0x4); /* 0x27016269: mov esi, dword ptr [ecx + 4] */ 7597 MEM32(edx + 0x4) = esi; /* 0x2701626C: mov dword ptr [edx + 4], esi */ 7598 esi = MEM32(edi + 0x4); /* 0x2701626F: mov esi, dword ptr [edi + 4] */ 7599 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016272: cmp ecx, dword ptr [esi + 4] */ 7600 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7602 _flag_k = FK_CMP; 7603 if (CMP_NE(_flag_a, _flag_b)) goto L_2701627C; /* 0x27016275: jne 0x2701627c */ 7604 L_27016277: 7605 MEM32(esi + 0x4) = edx; /* 0x27016277: mov dword ptr [esi + 4], edx */ 7606 goto L_2701628B; /* 0x2701627A: jmp 0x2701628b */ 7607 L_2701627C: 7608 esi = MEM32(ecx + 0x4); /* 0x2701627C: mov esi, dword ptr [ecx + 4] */ 7609 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2701627F: cmp ecx, dword ptr [esi + 8] */ 7610 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7612 _flag_k = FK_CMP; 7613 if (CMP_NE(_flag_a, _flag_b)) goto L_27016289; /* 0x27016282: jne 0x27016289 */ 7614 L_27016284: 7615 MEM32(esi + 0x8) = edx; /* 0x27016284: mov dword ptr [esi + 8], edx */ 7616 goto L_2701628B; /* 0x27016287: jmp 0x2701628b */ 7617 L_27016289: 7618 MEM32(esi) = edx; /* 0x27016289: mov dword ptr [esi], edx */ 7619 L_2701628B: 7620 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 7621 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 7622 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 7623 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 7624 L_27016297: 7625 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 7626 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 7627 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 7628 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 7629 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 7630 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 7631 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 7632 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 7633 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 7634 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 7635 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 7636 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 7637 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 7638 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7640 _flag_k = FK_CMP; 7641 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 7642 L_270162BE: 7643 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 7644 L_270162C1: 7645 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 7646 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 7647 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 7648 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 7649 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7651 _flag_k = FK_CMP; 7652 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 7653 L_270162CF: 7654 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 7655 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 7656 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 7657 L_270162D9: 7658 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 7659 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 7660 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7662 _flag_k = FK_CMP; 7663 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 7664 L_270162E0: 7665 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 7666 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 7667 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 7668 L_270162E9: 7669 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 7670 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 7671 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 7672 L_270162F3: 7673 edx = MEM32(ecx); /* 0x270162F3: mov edx, dword ptr [ecx] */ 7674 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270162F5: cmp byte ptr [edx + 0x18], bl */ 7675 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7677 _flag_k = FK_NARROW(FK_CMP, 24); 7678 if (CMP_NE(_flag_a, _flag_b)) goto L_27016341; /* 0x270162F8: jne 0x27016341 */ 7679 L_270162FA: 7680 edx = MEM32(ecx + 0x8); /* 0x270162FA: mov edx, dword ptr [ecx + 8] */ 7681 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162FD: mov byte ptr [edx + 0x18], bl */ 7682 edx = MEM32(ecx + 0x8); /* 0x27016300: mov edx, dword ptr [ecx + 8] */ 7683 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016303: mov byte ptr [ecx + 0x18], 0 */ 7684 esi = MEM32(edx); /* 0x27016307: mov esi, dword ptr [edx] */ 7685 MEM32(ecx + 0x8) = esi; /* 0x27016309: mov dword ptr [ecx + 8], esi */ 7686 esi = MEM32(edx); /* 0x2701630C: mov esi, dword ptr [edx] */ 7687 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701630E: cmp esi, dword ptr [edi + 8] */ 7688 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7690 _flag_k = FK_CMP; 7691 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016316; /* 0x27016311: je 0x27016316 */ 7692 L_27016313: 7693 MEM32(esi + 0x4) = ecx; /* 0x27016313: mov dword ptr [esi + 4], ecx */ 7694 L_27016316: 7695 esi = MEM32(ecx + 0x4); /* 0x27016316: mov esi, dword ptr [ecx + 4] */ 7696 MEM32(edx + 0x4) = esi; /* 0x27016319: mov dword ptr [edx + 4], esi */ 7697 esi = MEM32(edi + 0x4); /* 0x2701631C: mov esi, dword ptr [edi + 4] */ 7698 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701631F: cmp ecx, dword ptr [esi + 4] */ 7699 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7701 _flag_k = FK_CMP; 7702 if (CMP_NE(_flag_a, _flag_b)) goto L_27016329; /* 0x27016322: jne 0x27016329 */ 7703 L_27016324: 7704 MEM32(esi + 0x4) = edx; /* 0x27016324: mov dword ptr [esi + 4], edx */ 7705 goto L_27016337; /* 0x27016327: jmp 0x27016337 */ 7706 L_27016329: 7707 esi = MEM32(ecx + 0x4); /* 0x27016329: mov esi, dword ptr [ecx + 4] */ 7708 /* cmp ecx, MEM32(esi) */ /* 0x2701632C: cmp ecx, dword ptr [esi] */ 7709 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7711 _flag_k = FK_CMP; 7712 if (CMP_NE(_flag_a, _flag_b)) goto L_27016334; /* 0x2701632E: jne 0x27016334 */ 7713 L_27016330: 7714 MEM32(esi) = edx; /* 0x27016330: mov dword ptr [esi], edx */ 7715 goto L_27016337; /* 0x27016332: jmp 0x27016337 */ 7716 L_27016334: 7717 MEM32(esi + 0x8) = edx; /* 0x27016334: mov dword ptr [esi + 8], edx */ 7718 L_27016337: 7719 MEM32(edx) = ecx; /* 0x27016337: mov dword ptr [edx], ecx */ 7720 MEM32(ecx + 0x4) = edx; /* 0x27016339: mov dword ptr [ecx + 4], edx */ 7721 ecx = MEM32(eax + 0x4); /* 0x2701633C: mov ecx, dword ptr [eax + 4] */ 7722 ecx = MEM32(ecx); /* 0x2701633F: mov ecx, dword ptr [ecx] */ 7723 L_27016341: 7724 edx = MEM32(eax + 0x4); /* 0x27016341: mov edx, dword ptr [eax + 4] */ 7725 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x27016344: mov dl, byte ptr [edx + 0x18] */ 7726 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016347: mov byte ptr [ecx + 0x18], dl */ 7727 edx = MEM32(eax + 0x4); /* 0x2701634A: mov edx, dword ptr [eax + 4] */ 7728 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701634D: mov byte ptr [edx + 0x18], bl */ 7729 ecx = MEM32(ecx); /* 0x27016350: mov ecx, dword ptr [ecx] */ 7730 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016352: mov byte ptr [ecx + 0x18], bl */ 7731 ecx = MEM32(eax + 0x4); /* 0x27016355: mov ecx, dword ptr [eax + 4] */ 7732 edx = MEM32(ecx); /* 0x27016358: mov edx, dword ptr [ecx] */ 7733 esi = MEM32(edx + 0x8); /* 0x2701635A: mov esi, dword ptr [edx + 8] */ 7734 MEM32(ecx) = esi; /* 0x2701635D: mov dword ptr [ecx], esi */ 7735 esi = MEM32(edx + 0x8); /* 0x2701635F: mov esi, dword ptr [edx + 8] */ 7736 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016362: cmp esi, dword ptr [edi + 8] */ 7737 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7739 _flag_k = FK_CMP; 7740 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701636A; /* 0x27016365: je 0x2701636a */ 7741 L_27016367: 7742 MEM32(esi + 0x4) = ecx; /* 0x27016367: mov dword ptr [esi + 4], ecx */ 7743 L_2701636A: 7744 esi = MEM32(ecx + 0x4); /* 0x2701636A: mov esi, dword ptr [ecx + 4] */ 7745 MEM32(edx + 0x4) = esi; /* 0x2701636D: mov dword ptr [edx + 4], esi */ 7746 esi = MEM32(edi + 0x4); /* 0x27016370: mov esi, dword ptr [edi + 4] */ 7747 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016373: cmp ecx, dword ptr [esi + 4] */ 7748 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7750 _flag_k = FK_CMP; 7751 if (CMP_NE(_flag_a, _flag_b)) goto L_2701637D; /* 0x27016376: jne 0x2701637d */ 7752 L_27016378: 7753 MEM32(esi + 0x4) = edx; /* 0x27016378: mov dword ptr [esi + 4], edx */ 7754 goto L_2701638C; /* 0x2701637B: jmp 0x2701638c */ 7755 L_2701637D: 7756 esi = MEM32(ecx + 0x4); /* 0x2701637D: mov esi, dword ptr [ecx + 4] */ 7757 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016380: cmp ecx, dword ptr [esi + 8] */ 7758 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7760 _flag_k = FK_CMP; 7761 if (CMP_NE(_flag_a, _flag_b)) goto L_2701638A; /* 0x27016383: jne 0x2701638a */ 7762 L_27016385: 7763 MEM32(esi + 0x8) = edx; /* 0x27016385: mov dword ptr [esi + 8], edx */ 7764 goto L_2701638C; /* 0x27016388: jmp 0x2701638c */ 7765 L_2701638A: 7766 MEM32(esi) = edx; /* 0x2701638A: mov dword ptr [esi], edx */ 7767 L_2701638C: 7768 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 7769 L_2701638F: 7770 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 7771 L_27016392: 7772 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 7773 L_27016395: 7774 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 7775 PUSH32(esp, edx); /* 0x27016398: push edx */ 7776 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 7777 RECOMP_FLAGS_IN(); 7778 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 7779 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 7780 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7782 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 7783 _flag_k = FK_ADD; 7784 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7785 eax = eax - 1; /* 0x270163A7: dec eax */ 7786 _flag_k = FK_DEC; 7787 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 7788 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 7789 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 7790 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 7791 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 7792 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 7793 esp = ebp; /* 0x270163B3: mov esp, ebp */ 7794 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 7795 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 7796 RECOMP_REGS_OUT(); 7797 } 7798 7799 void sub_27016144(void) { 7800 int _fpu_cmp = 0; 7801 uint32_t _cf = 0; 7802 int _df = 1; 7803 uint32_t _flag_k = FK_NONE; 7804 uint32_t _flag_a = 0, _flag_b = 0; 7805 uint32_t _itail_tgt = 0; 7806 RECOMP_REGS_LOCALS 7807 RECOMP_ENTER(0x27016144u); 7808 7809 L_27016144: 7810 /* cmp MEM8(eax + 0x18), LO8(ebx) */ /* 0x27016144: cmp byte ptr [eax + 0x18], bl */ 7811 _flag_a = (uint32_t)(MEM8(eax + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7813 _flag_k = FK_NARROW(FK_CMP, 24); 7814 if (CMP_NE(_flag_a, _flag_b)) goto L_27016392; /* 0x27016147: jne 0x27016392 */ 7815 L_2701614D: 7816 edx = MEM32(eax + 0x4); /* 0x2701614D: mov edx, dword ptr [eax + 4] */ 7817 ecx = MEM32(edx); /* 0x27016150: mov ecx, dword ptr [edx] */ 7818 /* cmp eax, ecx */ /* 0x27016152: cmp eax, ecx */ 7819 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7821 _flag_k = FK_CMP; 7822 if (CMP_NE(_flag_a, _flag_b)) goto L_270161C4; /* 0x27016154: jne 0x270161c4 */ 7823 L_27016156: 7824 ecx = MEM32(edx + 0x8); /* 0x27016156: mov ecx, dword ptr [edx + 8] */ 7825 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x27016159: mov dl, byte ptr [ecx + 0x18] */ 7826 /* test LO8(edx), LO8(edx) */ /* 0x2701615C: test dl, dl */ 7827 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7828 _cf = 0; 7829 _flag_k = FK_NARROW(FK_TEST, 24); 7830 if (TEST_NZ(_flag_a, _flag_b)) goto L_270161AB; /* 0x2701615E: jne 0x270161ab */ 7831 L_27016160: 7832 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016160: mov byte ptr [ecx + 0x18], bl */ 7833 ecx = MEM32(eax + 0x4); /* 0x27016163: mov ecx, dword ptr [eax + 4] */ 7834 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016166: mov byte ptr [ecx + 0x18], 0 */ 7835 ecx = MEM32(eax + 0x4); /* 0x2701616A: mov ecx, dword ptr [eax + 4] */ 7836 edx = MEM32(ecx + 0x8); /* 0x2701616D: mov edx, dword ptr [ecx + 8] */ 7837 esi = MEM32(edx); /* 0x27016170: mov esi, dword ptr [edx] */ 7838 MEM32(ecx + 0x8) = esi; /* 0x27016172: mov dword ptr [ecx + 8], esi */ 7839 esi = MEM32(edx); /* 0x27016175: mov esi, dword ptr [edx] */ 7840 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016177: cmp esi, dword ptr [edi + 8] */ 7841 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7843 _flag_k = FK_CMP; 7844 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701617F; /* 0x2701617A: je 0x2701617f */ 7845 L_2701617C: 7846 MEM32(esi + 0x4) = ecx; /* 0x2701617C: mov dword ptr [esi + 4], ecx */ 7847 L_2701617F: 7848 esi = MEM32(ecx + 0x4); /* 0x2701617F: mov esi, dword ptr [ecx + 4] */ 7849 MEM32(edx + 0x4) = esi; /* 0x27016182: mov dword ptr [edx + 4], esi */ 7850 esi = MEM32(edi + 0x4); /* 0x27016185: mov esi, dword ptr [edi + 4] */ 7851 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016188: cmp ecx, dword ptr [esi + 4] */ 7852 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7854 _flag_k = FK_CMP; 7855 if (CMP_NE(_flag_a, _flag_b)) goto L_27016192; /* 0x2701618B: jne 0x27016192 */ 7856 L_2701618D: 7857 MEM32(esi + 0x4) = edx; /* 0x2701618D: mov dword ptr [esi + 4], edx */ 7858 goto L_270161A0; /* 0x27016190: jmp 0x270161a0 */ 7859 L_27016192: 7860 esi = MEM32(ecx + 0x4); /* 0x27016192: mov esi, dword ptr [ecx + 4] */ 7861 /* cmp ecx, MEM32(esi) */ /* 0x27016195: cmp ecx, dword ptr [esi] */ 7862 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7864 _flag_k = FK_CMP; 7865 if (CMP_NE(_flag_a, _flag_b)) goto L_2701619D; /* 0x27016197: jne 0x2701619d */ 7866 L_27016199: 7867 MEM32(esi) = edx; /* 0x27016199: mov dword ptr [esi], edx */ 7868 goto L_270161A0; /* 0x2701619B: jmp 0x270161a0 */ 7869 L_2701619D: 7870 MEM32(esi + 0x8) = edx; /* 0x2701619D: mov dword ptr [esi + 8], edx */ 7871 L_270161A0: 7872 MEM32(edx) = ecx; /* 0x270161A0: mov dword ptr [edx], ecx */ 7873 MEM32(ecx + 0x4) = edx; /* 0x270161A2: mov dword ptr [ecx + 4], edx */ 7874 edx = MEM32(eax + 0x4); /* 0x270161A5: mov edx, dword ptr [eax + 4] */ 7875 ecx = MEM32(edx + 0x8); /* 0x270161A8: mov ecx, dword ptr [edx + 8] */ 7876 L_270161AB: 7877 edx = MEM32(ecx); /* 0x270161AB: mov edx, dword ptr [ecx] */ 7878 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161AD: cmp byte ptr [edx + 0x18], bl */ 7879 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7881 _flag_k = FK_NARROW(FK_CMP, 24); 7882 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161B0: jne 0x27016246 */ 7883 L_270161B6: 7884 edx = MEM32(ecx + 0x8); /* 0x270161B6: mov edx, dword ptr [ecx + 8] */ 7885 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161B9: cmp byte ptr [edx + 0x18], bl */ 7886 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7888 _flag_k = FK_NARROW(FK_CMP, 24); 7889 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161BC: jne 0x27016246 */ 7890 L_270161C2: 7891 goto L_2701622E; /* 0x270161C2: jmp 0x2701622e */ 7892 L_270161C4: 7893 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270161C4: mov dl, byte ptr [ecx + 0x18] */ 7894 /* test LO8(edx), LO8(edx) */ /* 0x270161C7: test dl, dl */ 7895 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7896 _cf = 0; 7897 _flag_k = FK_NARROW(FK_TEST, 24); 7898 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016217; /* 0x270161C9: jne 0x27016217 */ 7899 L_270161CB: 7900 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270161CB: mov byte ptr [ecx + 0x18], bl */ 7901 ecx = MEM32(eax + 0x4); /* 0x270161CE: mov ecx, dword ptr [eax + 4] */ 7902 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270161D1: mov byte ptr [ecx + 0x18], 0 */ 7903 ecx = MEM32(eax + 0x4); /* 0x270161D5: mov ecx, dword ptr [eax + 4] */ 7904 edx = MEM32(ecx); /* 0x270161D8: mov edx, dword ptr [ecx] */ 7905 esi = MEM32(edx + 0x8); /* 0x270161DA: mov esi, dword ptr [edx + 8] */ 7906 MEM32(ecx) = esi; /* 0x270161DD: mov dword ptr [ecx], esi */ 7907 esi = MEM32(edx + 0x8); /* 0x270161DF: mov esi, dword ptr [edx + 8] */ 7908 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270161E2: cmp esi, dword ptr [edi + 8] */ 7909 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7911 _flag_k = FK_CMP; 7912 if (CMP_EQ(_flag_a, _flag_b)) goto L_270161EA; /* 0x270161E5: je 0x270161ea */ 7913 L_270161E7: 7914 MEM32(esi + 0x4) = ecx; /* 0x270161E7: mov dword ptr [esi + 4], ecx */ 7915 L_270161EA: 7916 esi = MEM32(ecx + 0x4); /* 0x270161EA: mov esi, dword ptr [ecx + 4] */ 7917 MEM32(edx + 0x4) = esi; /* 0x270161ED: mov dword ptr [edx + 4], esi */ 7918 esi = MEM32(edi + 0x4); /* 0x270161F0: mov esi, dword ptr [edi + 4] */ 7919 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270161F3: cmp ecx, dword ptr [esi + 4] */ 7920 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7922 _flag_k = FK_CMP; 7923 if (CMP_NE(_flag_a, _flag_b)) goto L_270161FD; /* 0x270161F6: jne 0x270161fd */ 7924 L_270161F8: 7925 MEM32(esi + 0x4) = edx; /* 0x270161F8: mov dword ptr [esi + 4], edx */ 7926 goto L_2701620C; /* 0x270161FB: jmp 0x2701620c */ 7927 L_270161FD: 7928 esi = MEM32(ecx + 0x4); /* 0x270161FD: mov esi, dword ptr [ecx + 4] */ 7929 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016200: cmp ecx, dword ptr [esi + 8] */ 7930 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7932 _flag_k = FK_CMP; 7933 if (CMP_NE(_flag_a, _flag_b)) goto L_2701620A; /* 0x27016203: jne 0x2701620a */ 7934 L_27016205: 7935 MEM32(esi + 0x8) = edx; /* 0x27016205: mov dword ptr [esi + 8], edx */ 7936 goto L_2701620C; /* 0x27016208: jmp 0x2701620c */ 7937 L_2701620A: 7938 MEM32(esi) = edx; /* 0x2701620A: mov dword ptr [esi], edx */ 7939 L_2701620C: 7940 MEM32(edx + 0x8) = ecx; /* 0x2701620C: mov dword ptr [edx + 8], ecx */ 7941 MEM32(ecx + 0x4) = edx; /* 0x2701620F: mov dword ptr [ecx + 4], edx */ 7942 edx = MEM32(eax + 0x4); /* 0x27016212: mov edx, dword ptr [eax + 4] */ 7943 ecx = MEM32(edx); /* 0x27016215: mov ecx, dword ptr [edx] */ 7944 L_27016217: 7945 edx = MEM32(ecx + 0x8); /* 0x27016217: mov edx, dword ptr [ecx + 8] */ 7946 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x2701621A: cmp byte ptr [edx + 0x18], bl */ 7947 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7949 _flag_k = FK_NARROW(FK_CMP, 24); 7950 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x2701621D: jne 0x270162f3 */ 7951 L_27016223: 7952 edx = MEM32(ecx); /* 0x27016223: mov edx, dword ptr [ecx] */ 7953 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016225: cmp byte ptr [edx + 0x18], bl */ 7954 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7956 _flag_k = FK_NARROW(FK_CMP, 24); 7957 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x27016228: jne 0x270162f3 */ 7958 L_2701622E: 7959 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2701622E: mov byte ptr [ecx + 0x18], 0 */ 7960 ecx = MEM32(edi + 0x4); /* 0x27016232: mov ecx, dword ptr [edi + 4] */ 7961 eax = MEM32(eax + 0x4); /* 0x27016235: mov eax, dword ptr [eax + 4] */ 7962 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016238: cmp eax, dword ptr [ecx + 4] */ 7963 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7965 _flag_k = FK_CMP; 7966 RECOMP_BACKEDGE(); 7967 if (CMP_NE(_flag_a, _flag_b)) goto L_27016144; /* 0x2701623B: jne 0x27016144 */ 7968 L_27016241: 7969 goto L_27016392; /* 0x27016241: jmp 0x27016392 */ 7970 L_27016246: 7971 edx = MEM32(ecx + 0x8); /* 0x27016246: mov edx, dword ptr [ecx + 8] */ 7972 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016249: cmp byte ptr [edx + 0x18], bl */ 7973 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7975 _flag_k = FK_NARROW(FK_CMP, 24); 7976 if (CMP_NE(_flag_a, _flag_b)) goto L_27016297; /* 0x2701624C: jne 0x27016297 */ 7977 L_2701624E: 7978 edx = MEM32(ecx); /* 0x2701624E: mov edx, dword ptr [ecx] */ 7979 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016250: mov byte ptr [edx + 0x18], bl */ 7980 edx = MEM32(ecx); /* 0x27016253: mov edx, dword ptr [ecx] */ 7981 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016255: mov byte ptr [ecx + 0x18], 0 */ 7982 esi = MEM32(edx + 0x8); /* 0x27016259: mov esi, dword ptr [edx + 8] */ 7983 MEM32(ecx) = esi; /* 0x2701625C: mov dword ptr [ecx], esi */ 7984 esi = MEM32(edx + 0x8); /* 0x2701625E: mov esi, dword ptr [edx + 8] */ 7985 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016261: cmp esi, dword ptr [edi + 8] */ 7986 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7987 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7988 _flag_k = FK_CMP; 7989 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016269; /* 0x27016264: je 0x27016269 */ 7990 L_27016266: 7991 MEM32(esi + 0x4) = ecx; /* 0x27016266: mov dword ptr [esi + 4], ecx */ 7992 L_27016269: 7993 esi = MEM32(ecx + 0x4); /* 0x27016269: mov esi, dword ptr [ecx + 4] */ 7994 MEM32(edx + 0x4) = esi; /* 0x2701626C: mov dword ptr [edx + 4], esi */ 7995 esi = MEM32(edi + 0x4); /* 0x2701626F: mov esi, dword ptr [edi + 4] */ 7996 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016272: cmp ecx, dword ptr [esi + 4] */ 7997 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7999 _flag_k = FK_CMP; 8000 if (CMP_NE(_flag_a, _flag_b)) goto L_2701627C; /* 0x27016275: jne 0x2701627c */ 8001 L_27016277: 8002 MEM32(esi + 0x4) = edx; /* 0x27016277: mov dword ptr [esi + 4], edx */ 8003 goto L_2701628B; /* 0x2701627A: jmp 0x2701628b */ 8004 L_2701627C: 8005 esi = MEM32(ecx + 0x4); /* 0x2701627C: mov esi, dword ptr [ecx + 4] */ 8006 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2701627F: cmp ecx, dword ptr [esi + 8] */ 8007 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8009 _flag_k = FK_CMP; 8010 if (CMP_NE(_flag_a, _flag_b)) goto L_27016289; /* 0x27016282: jne 0x27016289 */ 8011 L_27016284: 8012 MEM32(esi + 0x8) = edx; /* 0x27016284: mov dword ptr [esi + 8], edx */ 8013 goto L_2701628B; /* 0x27016287: jmp 0x2701628b */ 8014 L_27016289: 8015 MEM32(esi) = edx; /* 0x27016289: mov dword ptr [esi], edx */ 8016 L_2701628B: 8017 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 8018 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 8019 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 8020 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 8021 L_27016297: 8022 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 8023 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 8024 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 8025 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 8026 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 8027 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 8028 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 8029 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 8030 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 8031 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 8032 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 8033 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 8034 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 8035 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8037 _flag_k = FK_CMP; 8038 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 8039 L_270162BE: 8040 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 8041 L_270162C1: 8042 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 8043 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 8044 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 8045 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 8046 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8048 _flag_k = FK_CMP; 8049 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 8050 L_270162CF: 8051 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 8052 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 8053 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 8054 L_270162D9: 8055 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 8056 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 8057 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8059 _flag_k = FK_CMP; 8060 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 8061 L_270162E0: 8062 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 8063 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 8064 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 8065 L_270162E9: 8066 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 8067 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 8068 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 8069 L_270162F3: 8070 edx = MEM32(ecx); /* 0x270162F3: mov edx, dword ptr [ecx] */ 8071 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270162F5: cmp byte ptr [edx + 0x18], bl */ 8072 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8074 _flag_k = FK_NARROW(FK_CMP, 24); 8075 if (CMP_NE(_flag_a, _flag_b)) goto L_27016341; /* 0x270162F8: jne 0x27016341 */ 8076 L_270162FA: 8077 edx = MEM32(ecx + 0x8); /* 0x270162FA: mov edx, dword ptr [ecx + 8] */ 8078 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162FD: mov byte ptr [edx + 0x18], bl */ 8079 edx = MEM32(ecx + 0x8); /* 0x27016300: mov edx, dword ptr [ecx + 8] */ 8080 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016303: mov byte ptr [ecx + 0x18], 0 */ 8081 esi = MEM32(edx); /* 0x27016307: mov esi, dword ptr [edx] */ 8082 MEM32(ecx + 0x8) = esi; /* 0x27016309: mov dword ptr [ecx + 8], esi */ 8083 esi = MEM32(edx); /* 0x2701630C: mov esi, dword ptr [edx] */ 8084 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701630E: cmp esi, dword ptr [edi + 8] */ 8085 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8087 _flag_k = FK_CMP; 8088 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016316; /* 0x27016311: je 0x27016316 */ 8089 L_27016313: 8090 MEM32(esi + 0x4) = ecx; /* 0x27016313: mov dword ptr [esi + 4], ecx */ 8091 L_27016316: 8092 esi = MEM32(ecx + 0x4); /* 0x27016316: mov esi, dword ptr [ecx + 4] */ 8093 MEM32(edx + 0x4) = esi; /* 0x27016319: mov dword ptr [edx + 4], esi */ 8094 esi = MEM32(edi + 0x4); /* 0x2701631C: mov esi, dword ptr [edi + 4] */ 8095 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701631F: cmp ecx, dword ptr [esi + 4] */ 8096 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8097 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8098 _flag_k = FK_CMP; 8099 if (CMP_NE(_flag_a, _flag_b)) goto L_27016329; /* 0x27016322: jne 0x27016329 */ 8100 L_27016324: 8101 MEM32(esi + 0x4) = edx; /* 0x27016324: mov dword ptr [esi + 4], edx */ 8102 goto L_27016337; /* 0x27016327: jmp 0x27016337 */ 8103 L_27016329: 8104 esi = MEM32(ecx + 0x4); /* 0x27016329: mov esi, dword ptr [ecx + 4] */ 8105 /* cmp ecx, MEM32(esi) */ /* 0x2701632C: cmp ecx, dword ptr [esi] */ 8106 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8108 _flag_k = FK_CMP; 8109 if (CMP_NE(_flag_a, _flag_b)) goto L_27016334; /* 0x2701632E: jne 0x27016334 */ 8110 L_27016330: 8111 MEM32(esi) = edx; /* 0x27016330: mov dword ptr [esi], edx */ 8112 goto L_27016337; /* 0x27016332: jmp 0x27016337 */ 8113 L_27016334: 8114 MEM32(esi + 0x8) = edx; /* 0x27016334: mov dword ptr [esi + 8], edx */ 8115 L_27016337: 8116 MEM32(edx) = ecx; /* 0x27016337: mov dword ptr [edx], ecx */ 8117 MEM32(ecx + 0x4) = edx; /* 0x27016339: mov dword ptr [ecx + 4], edx */ 8118 ecx = MEM32(eax + 0x4); /* 0x2701633C: mov ecx, dword ptr [eax + 4] */ 8119 ecx = MEM32(ecx); /* 0x2701633F: mov ecx, dword ptr [ecx] */ 8120 L_27016341: 8121 edx = MEM32(eax + 0x4); /* 0x27016341: mov edx, dword ptr [eax + 4] */ 8122 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x27016344: mov dl, byte ptr [edx + 0x18] */ 8123 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016347: mov byte ptr [ecx + 0x18], dl */ 8124 edx = MEM32(eax + 0x4); /* 0x2701634A: mov edx, dword ptr [eax + 4] */ 8125 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701634D: mov byte ptr [edx + 0x18], bl */ 8126 ecx = MEM32(ecx); /* 0x27016350: mov ecx, dword ptr [ecx] */ 8127 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016352: mov byte ptr [ecx + 0x18], bl */ 8128 ecx = MEM32(eax + 0x4); /* 0x27016355: mov ecx, dword ptr [eax + 4] */ 8129 edx = MEM32(ecx); /* 0x27016358: mov edx, dword ptr [ecx] */ 8130 esi = MEM32(edx + 0x8); /* 0x2701635A: mov esi, dword ptr [edx + 8] */ 8131 MEM32(ecx) = esi; /* 0x2701635D: mov dword ptr [ecx], esi */ 8132 esi = MEM32(edx + 0x8); /* 0x2701635F: mov esi, dword ptr [edx + 8] */ 8133 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016362: cmp esi, dword ptr [edi + 8] */ 8134 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8136 _flag_k = FK_CMP; 8137 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701636A; /* 0x27016365: je 0x2701636a */ 8138 L_27016367: 8139 MEM32(esi + 0x4) = ecx; /* 0x27016367: mov dword ptr [esi + 4], ecx */ 8140 L_2701636A: 8141 esi = MEM32(ecx + 0x4); /* 0x2701636A: mov esi, dword ptr [ecx + 4] */ 8142 MEM32(edx + 0x4) = esi; /* 0x2701636D: mov dword ptr [edx + 4], esi */ 8143 esi = MEM32(edi + 0x4); /* 0x27016370: mov esi, dword ptr [edi + 4] */ 8144 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016373: cmp ecx, dword ptr [esi + 4] */ 8145 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8146 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8147 _flag_k = FK_CMP; 8148 if (CMP_NE(_flag_a, _flag_b)) goto L_2701637D; /* 0x27016376: jne 0x2701637d */ 8149 L_27016378: 8150 MEM32(esi + 0x4) = edx; /* 0x27016378: mov dword ptr [esi + 4], edx */ 8151 goto L_2701638C; /* 0x2701637B: jmp 0x2701638c */ 8152 L_2701637D: 8153 esi = MEM32(ecx + 0x4); /* 0x2701637D: mov esi, dword ptr [ecx + 4] */ 8154 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016380: cmp ecx, dword ptr [esi + 8] */ 8155 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8157 _flag_k = FK_CMP; 8158 if (CMP_NE(_flag_a, _flag_b)) goto L_2701638A; /* 0x27016383: jne 0x2701638a */ 8159 L_27016385: 8160 MEM32(esi + 0x8) = edx; /* 0x27016385: mov dword ptr [esi + 8], edx */ 8161 goto L_2701638C; /* 0x27016388: jmp 0x2701638c */ 8162 L_2701638A: 8163 MEM32(esi) = edx; /* 0x2701638A: mov dword ptr [esi], edx */ 8164 L_2701638C: 8165 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 8166 L_2701638F: 8167 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 8168 L_27016392: 8169 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 8170 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 8171 PUSH32(esp, edx); /* 0x27016398: push edx */ 8172 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 8173 RECOMP_FLAGS_IN(); 8174 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 8175 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 8176 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8177 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8178 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 8179 _flag_k = FK_ADD; 8180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8181 eax = eax - 1; /* 0x270163A7: dec eax */ 8182 _flag_k = FK_DEC; 8183 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 8184 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 8185 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 8186 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 8187 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 8188 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 8189 esp = ebp; /* 0x270163B3: mov esp, ebp */ 8190 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 8191 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 8192 RECOMP_REGS_OUT(); 8193 } 8194 8195 void sub_270161A0(void) { 8196 int _fpu_cmp = 0; 8197 uint32_t _cf = 0; 8198 int _df = 1; 8199 uint32_t _flag_k = FK_NONE; 8200 uint32_t _flag_a = 0, _flag_b = 0; 8201 uint32_t _itail_tgt = 0; 8202 RECOMP_REGS_LOCALS 8203 RECOMP_ENTER(0x270161A0u); 8204 8205 goto L_270161A0; 8206 L_27016144: 8207 /* cmp MEM8(eax + 0x18), LO8(ebx) */ /* 0x27016144: cmp byte ptr [eax + 0x18], bl */ 8208 _flag_a = (uint32_t)(MEM8(eax + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8210 _flag_k = FK_NARROW(FK_CMP, 24); 8211 if (CMP_NE(_flag_a, _flag_b)) goto L_27016392; /* 0x27016147: jne 0x27016392 */ 8212 L_2701614D: 8213 edx = MEM32(eax + 0x4); /* 0x2701614D: mov edx, dword ptr [eax + 4] */ 8214 ecx = MEM32(edx); /* 0x27016150: mov ecx, dword ptr [edx] */ 8215 /* cmp eax, ecx */ /* 0x27016152: cmp eax, ecx */ 8216 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8217 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8218 _flag_k = FK_CMP; 8219 if (CMP_NE(_flag_a, _flag_b)) goto L_270161C4; /* 0x27016154: jne 0x270161c4 */ 8220 L_27016156: 8221 ecx = MEM32(edx + 0x8); /* 0x27016156: mov ecx, dword ptr [edx + 8] */ 8222 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x27016159: mov dl, byte ptr [ecx + 0x18] */ 8223 /* test LO8(edx), LO8(edx) */ /* 0x2701615C: test dl, dl */ 8224 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8225 _cf = 0; 8226 _flag_k = FK_NARROW(FK_TEST, 24); 8227 if (TEST_NZ(_flag_a, _flag_b)) goto L_270161AB; /* 0x2701615E: jne 0x270161ab */ 8228 L_27016160: 8229 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016160: mov byte ptr [ecx + 0x18], bl */ 8230 ecx = MEM32(eax + 0x4); /* 0x27016163: mov ecx, dword ptr [eax + 4] */ 8231 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016166: mov byte ptr [ecx + 0x18], 0 */ 8232 ecx = MEM32(eax + 0x4); /* 0x2701616A: mov ecx, dword ptr [eax + 4] */ 8233 edx = MEM32(ecx + 0x8); /* 0x2701616D: mov edx, dword ptr [ecx + 8] */ 8234 esi = MEM32(edx); /* 0x27016170: mov esi, dword ptr [edx] */ 8235 MEM32(ecx + 0x8) = esi; /* 0x27016172: mov dword ptr [ecx + 8], esi */ 8236 esi = MEM32(edx); /* 0x27016175: mov esi, dword ptr [edx] */ 8237 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016177: cmp esi, dword ptr [edi + 8] */ 8238 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8240 _flag_k = FK_CMP; 8241 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701617F; /* 0x2701617A: je 0x2701617f */ 8242 L_2701617C: 8243 MEM32(esi + 0x4) = ecx; /* 0x2701617C: mov dword ptr [esi + 4], ecx */ 8244 L_2701617F: 8245 esi = MEM32(ecx + 0x4); /* 0x2701617F: mov esi, dword ptr [ecx + 4] */ 8246 MEM32(edx + 0x4) = esi; /* 0x27016182: mov dword ptr [edx + 4], esi */ 8247 esi = MEM32(edi + 0x4); /* 0x27016185: mov esi, dword ptr [edi + 4] */ 8248 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016188: cmp ecx, dword ptr [esi + 4] */ 8249 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8251 _flag_k = FK_CMP; 8252 if (CMP_NE(_flag_a, _flag_b)) goto L_27016192; /* 0x2701618B: jne 0x27016192 */ 8253 L_2701618D: 8254 MEM32(esi + 0x4) = edx; /* 0x2701618D: mov dword ptr [esi + 4], edx */ 8255 goto L_270161A0; /* 0x27016190: jmp 0x270161a0 */ 8256 L_27016192: 8257 esi = MEM32(ecx + 0x4); /* 0x27016192: mov esi, dword ptr [ecx + 4] */ 8258 /* cmp ecx, MEM32(esi) */ /* 0x27016195: cmp ecx, dword ptr [esi] */ 8259 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8261 _flag_k = FK_CMP; 8262 if (CMP_NE(_flag_a, _flag_b)) goto L_2701619D; /* 0x27016197: jne 0x2701619d */ 8263 L_27016199: 8264 MEM32(esi) = edx; /* 0x27016199: mov dword ptr [esi], edx */ 8265 goto L_270161A0; /* 0x2701619B: jmp 0x270161a0 */ 8266 L_2701619D: 8267 MEM32(esi + 0x8) = edx; /* 0x2701619D: mov dword ptr [esi + 8], edx */ 8268 L_270161A0: 8269 MEM32(edx) = ecx; /* 0x270161A0: mov dword ptr [edx], ecx */ 8270 MEM32(ecx + 0x4) = edx; /* 0x270161A2: mov dword ptr [ecx + 4], edx */ 8271 edx = MEM32(eax + 0x4); /* 0x270161A5: mov edx, dword ptr [eax + 4] */ 8272 ecx = MEM32(edx + 0x8); /* 0x270161A8: mov ecx, dword ptr [edx + 8] */ 8273 L_270161AB: 8274 edx = MEM32(ecx); /* 0x270161AB: mov edx, dword ptr [ecx] */ 8275 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161AD: cmp byte ptr [edx + 0x18], bl */ 8276 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8278 _flag_k = FK_NARROW(FK_CMP, 24); 8279 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161B0: jne 0x27016246 */ 8280 L_270161B6: 8281 edx = MEM32(ecx + 0x8); /* 0x270161B6: mov edx, dword ptr [ecx + 8] */ 8282 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161B9: cmp byte ptr [edx + 0x18], bl */ 8283 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8285 _flag_k = FK_NARROW(FK_CMP, 24); 8286 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161BC: jne 0x27016246 */ 8287 L_270161C2: 8288 goto L_2701622E; /* 0x270161C2: jmp 0x2701622e */ 8289 L_270161C4: 8290 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270161C4: mov dl, byte ptr [ecx + 0x18] */ 8291 /* test LO8(edx), LO8(edx) */ /* 0x270161C7: test dl, dl */ 8292 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8293 _cf = 0; 8294 _flag_k = FK_NARROW(FK_TEST, 24); 8295 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016217; /* 0x270161C9: jne 0x27016217 */ 8296 L_270161CB: 8297 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270161CB: mov byte ptr [ecx + 0x18], bl */ 8298 ecx = MEM32(eax + 0x4); /* 0x270161CE: mov ecx, dword ptr [eax + 4] */ 8299 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270161D1: mov byte ptr [ecx + 0x18], 0 */ 8300 ecx = MEM32(eax + 0x4); /* 0x270161D5: mov ecx, dword ptr [eax + 4] */ 8301 edx = MEM32(ecx); /* 0x270161D8: mov edx, dword ptr [ecx] */ 8302 esi = MEM32(edx + 0x8); /* 0x270161DA: mov esi, dword ptr [edx + 8] */ 8303 MEM32(ecx) = esi; /* 0x270161DD: mov dword ptr [ecx], esi */ 8304 esi = MEM32(edx + 0x8); /* 0x270161DF: mov esi, dword ptr [edx + 8] */ 8305 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270161E2: cmp esi, dword ptr [edi + 8] */ 8306 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8308 _flag_k = FK_CMP; 8309 if (CMP_EQ(_flag_a, _flag_b)) goto L_270161EA; /* 0x270161E5: je 0x270161ea */ 8310 L_270161E7: 8311 MEM32(esi + 0x4) = ecx; /* 0x270161E7: mov dword ptr [esi + 4], ecx */ 8312 L_270161EA: 8313 esi = MEM32(ecx + 0x4); /* 0x270161EA: mov esi, dword ptr [ecx + 4] */ 8314 MEM32(edx + 0x4) = esi; /* 0x270161ED: mov dword ptr [edx + 4], esi */ 8315 esi = MEM32(edi + 0x4); /* 0x270161F0: mov esi, dword ptr [edi + 4] */ 8316 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270161F3: cmp ecx, dword ptr [esi + 4] */ 8317 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8319 _flag_k = FK_CMP; 8320 if (CMP_NE(_flag_a, _flag_b)) goto L_270161FD; /* 0x270161F6: jne 0x270161fd */ 8321 L_270161F8: 8322 MEM32(esi + 0x4) = edx; /* 0x270161F8: mov dword ptr [esi + 4], edx */ 8323 goto L_2701620C; /* 0x270161FB: jmp 0x2701620c */ 8324 L_270161FD: 8325 esi = MEM32(ecx + 0x4); /* 0x270161FD: mov esi, dword ptr [ecx + 4] */ 8326 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016200: cmp ecx, dword ptr [esi + 8] */ 8327 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8329 _flag_k = FK_CMP; 8330 if (CMP_NE(_flag_a, _flag_b)) goto L_2701620A; /* 0x27016203: jne 0x2701620a */ 8331 L_27016205: 8332 MEM32(esi + 0x8) = edx; /* 0x27016205: mov dword ptr [esi + 8], edx */ 8333 goto L_2701620C; /* 0x27016208: jmp 0x2701620c */ 8334 L_2701620A: 8335 MEM32(esi) = edx; /* 0x2701620A: mov dword ptr [esi], edx */ 8336 L_2701620C: 8337 MEM32(edx + 0x8) = ecx; /* 0x2701620C: mov dword ptr [edx + 8], ecx */ 8338 MEM32(ecx + 0x4) = edx; /* 0x2701620F: mov dword ptr [ecx + 4], edx */ 8339 edx = MEM32(eax + 0x4); /* 0x27016212: mov edx, dword ptr [eax + 4] */ 8340 ecx = MEM32(edx); /* 0x27016215: mov ecx, dword ptr [edx] */ 8341 L_27016217: 8342 edx = MEM32(ecx + 0x8); /* 0x27016217: mov edx, dword ptr [ecx + 8] */ 8343 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x2701621A: cmp byte ptr [edx + 0x18], bl */ 8344 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8346 _flag_k = FK_NARROW(FK_CMP, 24); 8347 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x2701621D: jne 0x270162f3 */ 8348 L_27016223: 8349 edx = MEM32(ecx); /* 0x27016223: mov edx, dword ptr [ecx] */ 8350 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016225: cmp byte ptr [edx + 0x18], bl */ 8351 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8353 _flag_k = FK_NARROW(FK_CMP, 24); 8354 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x27016228: jne 0x270162f3 */ 8355 L_2701622E: 8356 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2701622E: mov byte ptr [ecx + 0x18], 0 */ 8357 ecx = MEM32(edi + 0x4); /* 0x27016232: mov ecx, dword ptr [edi + 4] */ 8358 eax = MEM32(eax + 0x4); /* 0x27016235: mov eax, dword ptr [eax + 4] */ 8359 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016238: cmp eax, dword ptr [ecx + 4] */ 8360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8362 _flag_k = FK_CMP; 8363 RECOMP_BACKEDGE(); 8364 if (CMP_NE(_flag_a, _flag_b)) goto L_27016144; /* 0x2701623B: jne 0x27016144 */ 8365 L_27016241: 8366 goto L_27016392; /* 0x27016241: jmp 0x27016392 */ 8367 L_27016246: 8368 edx = MEM32(ecx + 0x8); /* 0x27016246: mov edx, dword ptr [ecx + 8] */ 8369 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016249: cmp byte ptr [edx + 0x18], bl */ 8370 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8372 _flag_k = FK_NARROW(FK_CMP, 24); 8373 if (CMP_NE(_flag_a, _flag_b)) goto L_27016297; /* 0x2701624C: jne 0x27016297 */ 8374 L_2701624E: 8375 edx = MEM32(ecx); /* 0x2701624E: mov edx, dword ptr [ecx] */ 8376 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016250: mov byte ptr [edx + 0x18], bl */ 8377 edx = MEM32(ecx); /* 0x27016253: mov edx, dword ptr [ecx] */ 8378 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016255: mov byte ptr [ecx + 0x18], 0 */ 8379 esi = MEM32(edx + 0x8); /* 0x27016259: mov esi, dword ptr [edx + 8] */ 8380 MEM32(ecx) = esi; /* 0x2701625C: mov dword ptr [ecx], esi */ 8381 esi = MEM32(edx + 0x8); /* 0x2701625E: mov esi, dword ptr [edx + 8] */ 8382 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016261: cmp esi, dword ptr [edi + 8] */ 8383 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8385 _flag_k = FK_CMP; 8386 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016269; /* 0x27016264: je 0x27016269 */ 8387 L_27016266: 8388 MEM32(esi + 0x4) = ecx; /* 0x27016266: mov dword ptr [esi + 4], ecx */ 8389 L_27016269: 8390 esi = MEM32(ecx + 0x4); /* 0x27016269: mov esi, dword ptr [ecx + 4] */ 8391 MEM32(edx + 0x4) = esi; /* 0x2701626C: mov dword ptr [edx + 4], esi */ 8392 esi = MEM32(edi + 0x4); /* 0x2701626F: mov esi, dword ptr [edi + 4] */ 8393 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016272: cmp ecx, dword ptr [esi + 4] */ 8394 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8396 _flag_k = FK_CMP; 8397 if (CMP_NE(_flag_a, _flag_b)) goto L_2701627C; /* 0x27016275: jne 0x2701627c */ 8398 L_27016277: 8399 MEM32(esi + 0x4) = edx; /* 0x27016277: mov dword ptr [esi + 4], edx */ 8400 goto L_2701628B; /* 0x2701627A: jmp 0x2701628b */ 8401 L_2701627C: 8402 esi = MEM32(ecx + 0x4); /* 0x2701627C: mov esi, dword ptr [ecx + 4] */ 8403 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2701627F: cmp ecx, dword ptr [esi + 8] */ 8404 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8406 _flag_k = FK_CMP; 8407 if (CMP_NE(_flag_a, _flag_b)) goto L_27016289; /* 0x27016282: jne 0x27016289 */ 8408 L_27016284: 8409 MEM32(esi + 0x8) = edx; /* 0x27016284: mov dword ptr [esi + 8], edx */ 8410 goto L_2701628B; /* 0x27016287: jmp 0x2701628b */ 8411 L_27016289: 8412 MEM32(esi) = edx; /* 0x27016289: mov dword ptr [esi], edx */ 8413 L_2701628B: 8414 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 8415 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 8416 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 8417 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 8418 L_27016297: 8419 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 8420 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 8421 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 8422 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 8423 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 8424 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 8425 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 8426 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 8427 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 8428 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 8429 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 8430 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 8431 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 8432 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8434 _flag_k = FK_CMP; 8435 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 8436 L_270162BE: 8437 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 8438 L_270162C1: 8439 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 8440 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 8441 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 8442 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 8443 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8445 _flag_k = FK_CMP; 8446 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 8447 L_270162CF: 8448 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 8449 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 8450 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 8451 L_270162D9: 8452 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 8453 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 8454 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8456 _flag_k = FK_CMP; 8457 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 8458 L_270162E0: 8459 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 8460 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 8461 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 8462 L_270162E9: 8463 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 8464 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 8465 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 8466 L_270162F3: 8467 edx = MEM32(ecx); /* 0x270162F3: mov edx, dword ptr [ecx] */ 8468 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270162F5: cmp byte ptr [edx + 0x18], bl */ 8469 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8471 _flag_k = FK_NARROW(FK_CMP, 24); 8472 if (CMP_NE(_flag_a, _flag_b)) goto L_27016341; /* 0x270162F8: jne 0x27016341 */ 8473 L_270162FA: 8474 edx = MEM32(ecx + 0x8); /* 0x270162FA: mov edx, dword ptr [ecx + 8] */ 8475 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162FD: mov byte ptr [edx + 0x18], bl */ 8476 edx = MEM32(ecx + 0x8); /* 0x27016300: mov edx, dword ptr [ecx + 8] */ 8477 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016303: mov byte ptr [ecx + 0x18], 0 */ 8478 esi = MEM32(edx); /* 0x27016307: mov esi, dword ptr [edx] */ 8479 MEM32(ecx + 0x8) = esi; /* 0x27016309: mov dword ptr [ecx + 8], esi */ 8480 esi = MEM32(edx); /* 0x2701630C: mov esi, dword ptr [edx] */ 8481 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701630E: cmp esi, dword ptr [edi + 8] */ 8482 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8484 _flag_k = FK_CMP; 8485 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016316; /* 0x27016311: je 0x27016316 */ 8486 L_27016313: 8487 MEM32(esi + 0x4) = ecx; /* 0x27016313: mov dword ptr [esi + 4], ecx */ 8488 L_27016316: 8489 esi = MEM32(ecx + 0x4); /* 0x27016316: mov esi, dword ptr [ecx + 4] */ 8490 MEM32(edx + 0x4) = esi; /* 0x27016319: mov dword ptr [edx + 4], esi */ 8491 esi = MEM32(edi + 0x4); /* 0x2701631C: mov esi, dword ptr [edi + 4] */ 8492 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701631F: cmp ecx, dword ptr [esi + 4] */ 8493 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8495 _flag_k = FK_CMP; 8496 if (CMP_NE(_flag_a, _flag_b)) goto L_27016329; /* 0x27016322: jne 0x27016329 */ 8497 L_27016324: 8498 MEM32(esi + 0x4) = edx; /* 0x27016324: mov dword ptr [esi + 4], edx */ 8499 goto L_27016337; /* 0x27016327: jmp 0x27016337 */ 8500 L_27016329: 8501 esi = MEM32(ecx + 0x4); /* 0x27016329: mov esi, dword ptr [ecx + 4] */ 8502 /* cmp ecx, MEM32(esi) */ /* 0x2701632C: cmp ecx, dword ptr [esi] */ 8503 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8505 _flag_k = FK_CMP; 8506 if (CMP_NE(_flag_a, _flag_b)) goto L_27016334; /* 0x2701632E: jne 0x27016334 */ 8507 L_27016330: 8508 MEM32(esi) = edx; /* 0x27016330: mov dword ptr [esi], edx */ 8509 goto L_27016337; /* 0x27016332: jmp 0x27016337 */ 8510 L_27016334: 8511 MEM32(esi + 0x8) = edx; /* 0x27016334: mov dword ptr [esi + 8], edx */ 8512 L_27016337: 8513 MEM32(edx) = ecx; /* 0x27016337: mov dword ptr [edx], ecx */ 8514 MEM32(ecx + 0x4) = edx; /* 0x27016339: mov dword ptr [ecx + 4], edx */ 8515 ecx = MEM32(eax + 0x4); /* 0x2701633C: mov ecx, dword ptr [eax + 4] */ 8516 ecx = MEM32(ecx); /* 0x2701633F: mov ecx, dword ptr [ecx] */ 8517 L_27016341: 8518 edx = MEM32(eax + 0x4); /* 0x27016341: mov edx, dword ptr [eax + 4] */ 8519 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x27016344: mov dl, byte ptr [edx + 0x18] */ 8520 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016347: mov byte ptr [ecx + 0x18], dl */ 8521 edx = MEM32(eax + 0x4); /* 0x2701634A: mov edx, dword ptr [eax + 4] */ 8522 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701634D: mov byte ptr [edx + 0x18], bl */ 8523 ecx = MEM32(ecx); /* 0x27016350: mov ecx, dword ptr [ecx] */ 8524 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016352: mov byte ptr [ecx + 0x18], bl */ 8525 ecx = MEM32(eax + 0x4); /* 0x27016355: mov ecx, dword ptr [eax + 4] */ 8526 edx = MEM32(ecx); /* 0x27016358: mov edx, dword ptr [ecx] */ 8527 esi = MEM32(edx + 0x8); /* 0x2701635A: mov esi, dword ptr [edx + 8] */ 8528 MEM32(ecx) = esi; /* 0x2701635D: mov dword ptr [ecx], esi */ 8529 esi = MEM32(edx + 0x8); /* 0x2701635F: mov esi, dword ptr [edx + 8] */ 8530 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016362: cmp esi, dword ptr [edi + 8] */ 8531 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8533 _flag_k = FK_CMP; 8534 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701636A; /* 0x27016365: je 0x2701636a */ 8535 L_27016367: 8536 MEM32(esi + 0x4) = ecx; /* 0x27016367: mov dword ptr [esi + 4], ecx */ 8537 L_2701636A: 8538 esi = MEM32(ecx + 0x4); /* 0x2701636A: mov esi, dword ptr [ecx + 4] */ 8539 MEM32(edx + 0x4) = esi; /* 0x2701636D: mov dword ptr [edx + 4], esi */ 8540 esi = MEM32(edi + 0x4); /* 0x27016370: mov esi, dword ptr [edi + 4] */ 8541 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016373: cmp ecx, dword ptr [esi + 4] */ 8542 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8544 _flag_k = FK_CMP; 8545 if (CMP_NE(_flag_a, _flag_b)) goto L_2701637D; /* 0x27016376: jne 0x2701637d */ 8546 L_27016378: 8547 MEM32(esi + 0x4) = edx; /* 0x27016378: mov dword ptr [esi + 4], edx */ 8548 goto L_2701638C; /* 0x2701637B: jmp 0x2701638c */ 8549 L_2701637D: 8550 esi = MEM32(ecx + 0x4); /* 0x2701637D: mov esi, dword ptr [ecx + 4] */ 8551 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016380: cmp ecx, dword ptr [esi + 8] */ 8552 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8554 _flag_k = FK_CMP; 8555 if (CMP_NE(_flag_a, _flag_b)) goto L_2701638A; /* 0x27016383: jne 0x2701638a */ 8556 L_27016385: 8557 MEM32(esi + 0x8) = edx; /* 0x27016385: mov dword ptr [esi + 8], edx */ 8558 goto L_2701638C; /* 0x27016388: jmp 0x2701638c */ 8559 L_2701638A: 8560 MEM32(esi) = edx; /* 0x2701638A: mov dword ptr [esi], edx */ 8561 L_2701638C: 8562 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 8563 L_2701638F: 8564 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 8565 L_27016392: 8566 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 8567 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 8568 PUSH32(esp, edx); /* 0x27016398: push edx */ 8569 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 8570 RECOMP_FLAGS_IN(); 8571 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 8572 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 8573 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8575 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 8576 _flag_k = FK_ADD; 8577 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8578 eax = eax - 1; /* 0x270163A7: dec eax */ 8579 _flag_k = FK_DEC; 8580 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 8581 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 8582 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 8583 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 8584 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 8585 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 8586 esp = ebp; /* 0x270163B3: mov esp, ebp */ 8587 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 8588 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 8589 RECOMP_REGS_OUT(); 8590 } 8591 8592 void sub_270161AB(void) { 8593 int _fpu_cmp = 0; 8594 uint32_t _cf = 0; 8595 int _df = 1; 8596 uint32_t _flag_k = FK_NONE; 8597 uint32_t _flag_a = 0, _flag_b = 0; 8598 uint32_t _itail_tgt = 0; 8599 RECOMP_REGS_LOCALS 8600 RECOMP_ENTER(0x270161ABu); 8601 8602 goto L_270161AB; 8603 L_27016144: 8604 /* cmp MEM8(eax + 0x18), LO8(ebx) */ /* 0x27016144: cmp byte ptr [eax + 0x18], bl */ 8605 _flag_a = (uint32_t)(MEM8(eax + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8607 _flag_k = FK_NARROW(FK_CMP, 24); 8608 if (CMP_NE(_flag_a, _flag_b)) goto L_27016392; /* 0x27016147: jne 0x27016392 */ 8609 L_2701614D: 8610 edx = MEM32(eax + 0x4); /* 0x2701614D: mov edx, dword ptr [eax + 4] */ 8611 ecx = MEM32(edx); /* 0x27016150: mov ecx, dword ptr [edx] */ 8612 /* cmp eax, ecx */ /* 0x27016152: cmp eax, ecx */ 8613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8615 _flag_k = FK_CMP; 8616 if (CMP_NE(_flag_a, _flag_b)) goto L_270161C4; /* 0x27016154: jne 0x270161c4 */ 8617 L_27016156: 8618 ecx = MEM32(edx + 0x8); /* 0x27016156: mov ecx, dword ptr [edx + 8] */ 8619 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x27016159: mov dl, byte ptr [ecx + 0x18] */ 8620 /* test LO8(edx), LO8(edx) */ /* 0x2701615C: test dl, dl */ 8621 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8622 _cf = 0; 8623 _flag_k = FK_NARROW(FK_TEST, 24); 8624 if (TEST_NZ(_flag_a, _flag_b)) goto L_270161AB; /* 0x2701615E: jne 0x270161ab */ 8625 L_27016160: 8626 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016160: mov byte ptr [ecx + 0x18], bl */ 8627 ecx = MEM32(eax + 0x4); /* 0x27016163: mov ecx, dword ptr [eax + 4] */ 8628 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016166: mov byte ptr [ecx + 0x18], 0 */ 8629 ecx = MEM32(eax + 0x4); /* 0x2701616A: mov ecx, dword ptr [eax + 4] */ 8630 edx = MEM32(ecx + 0x8); /* 0x2701616D: mov edx, dword ptr [ecx + 8] */ 8631 esi = MEM32(edx); /* 0x27016170: mov esi, dword ptr [edx] */ 8632 MEM32(ecx + 0x8) = esi; /* 0x27016172: mov dword ptr [ecx + 8], esi */ 8633 esi = MEM32(edx); /* 0x27016175: mov esi, dword ptr [edx] */ 8634 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016177: cmp esi, dword ptr [edi + 8] */ 8635 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8637 _flag_k = FK_CMP; 8638 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701617F; /* 0x2701617A: je 0x2701617f */ 8639 L_2701617C: 8640 MEM32(esi + 0x4) = ecx; /* 0x2701617C: mov dword ptr [esi + 4], ecx */ 8641 L_2701617F: 8642 esi = MEM32(ecx + 0x4); /* 0x2701617F: mov esi, dword ptr [ecx + 4] */ 8643 MEM32(edx + 0x4) = esi; /* 0x27016182: mov dword ptr [edx + 4], esi */ 8644 esi = MEM32(edi + 0x4); /* 0x27016185: mov esi, dword ptr [edi + 4] */ 8645 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016188: cmp ecx, dword ptr [esi + 4] */ 8646 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8648 _flag_k = FK_CMP; 8649 if (CMP_NE(_flag_a, _flag_b)) goto L_27016192; /* 0x2701618B: jne 0x27016192 */ 8650 L_2701618D: 8651 MEM32(esi + 0x4) = edx; /* 0x2701618D: mov dword ptr [esi + 4], edx */ 8652 goto L_270161A0; /* 0x27016190: jmp 0x270161a0 */ 8653 L_27016192: 8654 esi = MEM32(ecx + 0x4); /* 0x27016192: mov esi, dword ptr [ecx + 4] */ 8655 /* cmp ecx, MEM32(esi) */ /* 0x27016195: cmp ecx, dword ptr [esi] */ 8656 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8658 _flag_k = FK_CMP; 8659 if (CMP_NE(_flag_a, _flag_b)) goto L_2701619D; /* 0x27016197: jne 0x2701619d */ 8660 L_27016199: 8661 MEM32(esi) = edx; /* 0x27016199: mov dword ptr [esi], edx */ 8662 goto L_270161A0; /* 0x2701619B: jmp 0x270161a0 */ 8663 L_2701619D: 8664 MEM32(esi + 0x8) = edx; /* 0x2701619D: mov dword ptr [esi + 8], edx */ 8665 L_270161A0: 8666 MEM32(edx) = ecx; /* 0x270161A0: mov dword ptr [edx], ecx */ 8667 MEM32(ecx + 0x4) = edx; /* 0x270161A2: mov dword ptr [ecx + 4], edx */ 8668 edx = MEM32(eax + 0x4); /* 0x270161A5: mov edx, dword ptr [eax + 4] */ 8669 ecx = MEM32(edx + 0x8); /* 0x270161A8: mov ecx, dword ptr [edx + 8] */ 8670 L_270161AB: 8671 edx = MEM32(ecx); /* 0x270161AB: mov edx, dword ptr [ecx] */ 8672 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161AD: cmp byte ptr [edx + 0x18], bl */ 8673 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8675 _flag_k = FK_NARROW(FK_CMP, 24); 8676 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161B0: jne 0x27016246 */ 8677 L_270161B6: 8678 edx = MEM32(ecx + 0x8); /* 0x270161B6: mov edx, dword ptr [ecx + 8] */ 8679 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161B9: cmp byte ptr [edx + 0x18], bl */ 8680 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8682 _flag_k = FK_NARROW(FK_CMP, 24); 8683 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161BC: jne 0x27016246 */ 8684 L_270161C2: 8685 goto L_2701622E; /* 0x270161C2: jmp 0x2701622e */ 8686 L_270161C4: 8687 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270161C4: mov dl, byte ptr [ecx + 0x18] */ 8688 /* test LO8(edx), LO8(edx) */ /* 0x270161C7: test dl, dl */ 8689 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8690 _cf = 0; 8691 _flag_k = FK_NARROW(FK_TEST, 24); 8692 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016217; /* 0x270161C9: jne 0x27016217 */ 8693 L_270161CB: 8694 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270161CB: mov byte ptr [ecx + 0x18], bl */ 8695 ecx = MEM32(eax + 0x4); /* 0x270161CE: mov ecx, dword ptr [eax + 4] */ 8696 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270161D1: mov byte ptr [ecx + 0x18], 0 */ 8697 ecx = MEM32(eax + 0x4); /* 0x270161D5: mov ecx, dword ptr [eax + 4] */ 8698 edx = MEM32(ecx); /* 0x270161D8: mov edx, dword ptr [ecx] */ 8699 esi = MEM32(edx + 0x8); /* 0x270161DA: mov esi, dword ptr [edx + 8] */ 8700 MEM32(ecx) = esi; /* 0x270161DD: mov dword ptr [ecx], esi */ 8701 esi = MEM32(edx + 0x8); /* 0x270161DF: mov esi, dword ptr [edx + 8] */ 8702 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270161E2: cmp esi, dword ptr [edi + 8] */ 8703 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8705 _flag_k = FK_CMP; 8706 if (CMP_EQ(_flag_a, _flag_b)) goto L_270161EA; /* 0x270161E5: je 0x270161ea */ 8707 L_270161E7: 8708 MEM32(esi + 0x4) = ecx; /* 0x270161E7: mov dword ptr [esi + 4], ecx */ 8709 L_270161EA: 8710 esi = MEM32(ecx + 0x4); /* 0x270161EA: mov esi, dword ptr [ecx + 4] */ 8711 MEM32(edx + 0x4) = esi; /* 0x270161ED: mov dword ptr [edx + 4], esi */ 8712 esi = MEM32(edi + 0x4); /* 0x270161F0: mov esi, dword ptr [edi + 4] */ 8713 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270161F3: cmp ecx, dword ptr [esi + 4] */ 8714 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8716 _flag_k = FK_CMP; 8717 if (CMP_NE(_flag_a, _flag_b)) goto L_270161FD; /* 0x270161F6: jne 0x270161fd */ 8718 L_270161F8: 8719 MEM32(esi + 0x4) = edx; /* 0x270161F8: mov dword ptr [esi + 4], edx */ 8720 goto L_2701620C; /* 0x270161FB: jmp 0x2701620c */ 8721 L_270161FD: 8722 esi = MEM32(ecx + 0x4); /* 0x270161FD: mov esi, dword ptr [ecx + 4] */ 8723 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016200: cmp ecx, dword ptr [esi + 8] */ 8724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8726 _flag_k = FK_CMP; 8727 if (CMP_NE(_flag_a, _flag_b)) goto L_2701620A; /* 0x27016203: jne 0x2701620a */ 8728 L_27016205: 8729 MEM32(esi + 0x8) = edx; /* 0x27016205: mov dword ptr [esi + 8], edx */ 8730 goto L_2701620C; /* 0x27016208: jmp 0x2701620c */ 8731 L_2701620A: 8732 MEM32(esi) = edx; /* 0x2701620A: mov dword ptr [esi], edx */ 8733 L_2701620C: 8734 MEM32(edx + 0x8) = ecx; /* 0x2701620C: mov dword ptr [edx + 8], ecx */ 8735 MEM32(ecx + 0x4) = edx; /* 0x2701620F: mov dword ptr [ecx + 4], edx */ 8736 edx = MEM32(eax + 0x4); /* 0x27016212: mov edx, dword ptr [eax + 4] */ 8737 ecx = MEM32(edx); /* 0x27016215: mov ecx, dword ptr [edx] */ 8738 L_27016217: 8739 edx = MEM32(ecx + 0x8); /* 0x27016217: mov edx, dword ptr [ecx + 8] */ 8740 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x2701621A: cmp byte ptr [edx + 0x18], bl */ 8741 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8743 _flag_k = FK_NARROW(FK_CMP, 24); 8744 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x2701621D: jne 0x270162f3 */ 8745 L_27016223: 8746 edx = MEM32(ecx); /* 0x27016223: mov edx, dword ptr [ecx] */ 8747 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016225: cmp byte ptr [edx + 0x18], bl */ 8748 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8750 _flag_k = FK_NARROW(FK_CMP, 24); 8751 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x27016228: jne 0x270162f3 */ 8752 L_2701622E: 8753 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2701622E: mov byte ptr [ecx + 0x18], 0 */ 8754 ecx = MEM32(edi + 0x4); /* 0x27016232: mov ecx, dword ptr [edi + 4] */ 8755 eax = MEM32(eax + 0x4); /* 0x27016235: mov eax, dword ptr [eax + 4] */ 8756 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016238: cmp eax, dword ptr [ecx + 4] */ 8757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8759 _flag_k = FK_CMP; 8760 RECOMP_BACKEDGE(); 8761 if (CMP_NE(_flag_a, _flag_b)) goto L_27016144; /* 0x2701623B: jne 0x27016144 */ 8762 L_27016241: 8763 goto L_27016392; /* 0x27016241: jmp 0x27016392 */ 8764 L_27016246: 8765 edx = MEM32(ecx + 0x8); /* 0x27016246: mov edx, dword ptr [ecx + 8] */ 8766 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016249: cmp byte ptr [edx + 0x18], bl */ 8767 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8769 _flag_k = FK_NARROW(FK_CMP, 24); 8770 if (CMP_NE(_flag_a, _flag_b)) goto L_27016297; /* 0x2701624C: jne 0x27016297 */ 8771 L_2701624E: 8772 edx = MEM32(ecx); /* 0x2701624E: mov edx, dword ptr [ecx] */ 8773 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016250: mov byte ptr [edx + 0x18], bl */ 8774 edx = MEM32(ecx); /* 0x27016253: mov edx, dword ptr [ecx] */ 8775 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016255: mov byte ptr [ecx + 0x18], 0 */ 8776 esi = MEM32(edx + 0x8); /* 0x27016259: mov esi, dword ptr [edx + 8] */ 8777 MEM32(ecx) = esi; /* 0x2701625C: mov dword ptr [ecx], esi */ 8778 esi = MEM32(edx + 0x8); /* 0x2701625E: mov esi, dword ptr [edx + 8] */ 8779 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016261: cmp esi, dword ptr [edi + 8] */ 8780 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8782 _flag_k = FK_CMP; 8783 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016269; /* 0x27016264: je 0x27016269 */ 8784 L_27016266: 8785 MEM32(esi + 0x4) = ecx; /* 0x27016266: mov dword ptr [esi + 4], ecx */ 8786 L_27016269: 8787 esi = MEM32(ecx + 0x4); /* 0x27016269: mov esi, dword ptr [ecx + 4] */ 8788 MEM32(edx + 0x4) = esi; /* 0x2701626C: mov dword ptr [edx + 4], esi */ 8789 esi = MEM32(edi + 0x4); /* 0x2701626F: mov esi, dword ptr [edi + 4] */ 8790 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016272: cmp ecx, dword ptr [esi + 4] */ 8791 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8793 _flag_k = FK_CMP; 8794 if (CMP_NE(_flag_a, _flag_b)) goto L_2701627C; /* 0x27016275: jne 0x2701627c */ 8795 L_27016277: 8796 MEM32(esi + 0x4) = edx; /* 0x27016277: mov dword ptr [esi + 4], edx */ 8797 goto L_2701628B; /* 0x2701627A: jmp 0x2701628b */ 8798 L_2701627C: 8799 esi = MEM32(ecx + 0x4); /* 0x2701627C: mov esi, dword ptr [ecx + 4] */ 8800 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2701627F: cmp ecx, dword ptr [esi + 8] */ 8801 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8803 _flag_k = FK_CMP; 8804 if (CMP_NE(_flag_a, _flag_b)) goto L_27016289; /* 0x27016282: jne 0x27016289 */ 8805 L_27016284: 8806 MEM32(esi + 0x8) = edx; /* 0x27016284: mov dword ptr [esi + 8], edx */ 8807 goto L_2701628B; /* 0x27016287: jmp 0x2701628b */ 8808 L_27016289: 8809 MEM32(esi) = edx; /* 0x27016289: mov dword ptr [esi], edx */ 8810 L_2701628B: 8811 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 8812 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 8813 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 8814 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 8815 L_27016297: 8816 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 8817 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 8818 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 8819 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 8820 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 8821 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 8822 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 8823 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 8824 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 8825 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 8826 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 8827 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 8828 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 8829 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8831 _flag_k = FK_CMP; 8832 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 8833 L_270162BE: 8834 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 8835 L_270162C1: 8836 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 8837 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 8838 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 8839 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 8840 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8842 _flag_k = FK_CMP; 8843 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 8844 L_270162CF: 8845 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 8846 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 8847 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 8848 L_270162D9: 8849 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 8850 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 8851 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8853 _flag_k = FK_CMP; 8854 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 8855 L_270162E0: 8856 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 8857 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 8858 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 8859 L_270162E9: 8860 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 8861 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 8862 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 8863 L_270162F3: 8864 edx = MEM32(ecx); /* 0x270162F3: mov edx, dword ptr [ecx] */ 8865 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270162F5: cmp byte ptr [edx + 0x18], bl */ 8866 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8868 _flag_k = FK_NARROW(FK_CMP, 24); 8869 if (CMP_NE(_flag_a, _flag_b)) goto L_27016341; /* 0x270162F8: jne 0x27016341 */ 8870 L_270162FA: 8871 edx = MEM32(ecx + 0x8); /* 0x270162FA: mov edx, dword ptr [ecx + 8] */ 8872 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162FD: mov byte ptr [edx + 0x18], bl */ 8873 edx = MEM32(ecx + 0x8); /* 0x27016300: mov edx, dword ptr [ecx + 8] */ 8874 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016303: mov byte ptr [ecx + 0x18], 0 */ 8875 esi = MEM32(edx); /* 0x27016307: mov esi, dword ptr [edx] */ 8876 MEM32(ecx + 0x8) = esi; /* 0x27016309: mov dword ptr [ecx + 8], esi */ 8877 esi = MEM32(edx); /* 0x2701630C: mov esi, dword ptr [edx] */ 8878 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701630E: cmp esi, dword ptr [edi + 8] */ 8879 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8881 _flag_k = FK_CMP; 8882 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016316; /* 0x27016311: je 0x27016316 */ 8883 L_27016313: 8884 MEM32(esi + 0x4) = ecx; /* 0x27016313: mov dword ptr [esi + 4], ecx */ 8885 L_27016316: 8886 esi = MEM32(ecx + 0x4); /* 0x27016316: mov esi, dword ptr [ecx + 4] */ 8887 MEM32(edx + 0x4) = esi; /* 0x27016319: mov dword ptr [edx + 4], esi */ 8888 esi = MEM32(edi + 0x4); /* 0x2701631C: mov esi, dword ptr [edi + 4] */ 8889 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701631F: cmp ecx, dword ptr [esi + 4] */ 8890 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8892 _flag_k = FK_CMP; 8893 if (CMP_NE(_flag_a, _flag_b)) goto L_27016329; /* 0x27016322: jne 0x27016329 */ 8894 L_27016324: 8895 MEM32(esi + 0x4) = edx; /* 0x27016324: mov dword ptr [esi + 4], edx */ 8896 goto L_27016337; /* 0x27016327: jmp 0x27016337 */ 8897 L_27016329: 8898 esi = MEM32(ecx + 0x4); /* 0x27016329: mov esi, dword ptr [ecx + 4] */ 8899 /* cmp ecx, MEM32(esi) */ /* 0x2701632C: cmp ecx, dword ptr [esi] */ 8900 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8902 _flag_k = FK_CMP; 8903 if (CMP_NE(_flag_a, _flag_b)) goto L_27016334; /* 0x2701632E: jne 0x27016334 */ 8904 L_27016330: 8905 MEM32(esi) = edx; /* 0x27016330: mov dword ptr [esi], edx */ 8906 goto L_27016337; /* 0x27016332: jmp 0x27016337 */ 8907 L_27016334: 8908 MEM32(esi + 0x8) = edx; /* 0x27016334: mov dword ptr [esi + 8], edx */ 8909 L_27016337: 8910 MEM32(edx) = ecx; /* 0x27016337: mov dword ptr [edx], ecx */ 8911 MEM32(ecx + 0x4) = edx; /* 0x27016339: mov dword ptr [ecx + 4], edx */ 8912 ecx = MEM32(eax + 0x4); /* 0x2701633C: mov ecx, dword ptr [eax + 4] */ 8913 ecx = MEM32(ecx); /* 0x2701633F: mov ecx, dword ptr [ecx] */ 8914 L_27016341: 8915 edx = MEM32(eax + 0x4); /* 0x27016341: mov edx, dword ptr [eax + 4] */ 8916 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x27016344: mov dl, byte ptr [edx + 0x18] */ 8917 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016347: mov byte ptr [ecx + 0x18], dl */ 8918 edx = MEM32(eax + 0x4); /* 0x2701634A: mov edx, dword ptr [eax + 4] */ 8919 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701634D: mov byte ptr [edx + 0x18], bl */ 8920 ecx = MEM32(ecx); /* 0x27016350: mov ecx, dword ptr [ecx] */ 8921 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016352: mov byte ptr [ecx + 0x18], bl */ 8922 ecx = MEM32(eax + 0x4); /* 0x27016355: mov ecx, dword ptr [eax + 4] */ 8923 edx = MEM32(ecx); /* 0x27016358: mov edx, dword ptr [ecx] */ 8924 esi = MEM32(edx + 0x8); /* 0x2701635A: mov esi, dword ptr [edx + 8] */ 8925 MEM32(ecx) = esi; /* 0x2701635D: mov dword ptr [ecx], esi */ 8926 esi = MEM32(edx + 0x8); /* 0x2701635F: mov esi, dword ptr [edx + 8] */ 8927 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016362: cmp esi, dword ptr [edi + 8] */ 8928 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8930 _flag_k = FK_CMP; 8931 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701636A; /* 0x27016365: je 0x2701636a */ 8932 L_27016367: 8933 MEM32(esi + 0x4) = ecx; /* 0x27016367: mov dword ptr [esi + 4], ecx */ 8934 L_2701636A: 8935 esi = MEM32(ecx + 0x4); /* 0x2701636A: mov esi, dword ptr [ecx + 4] */ 8936 MEM32(edx + 0x4) = esi; /* 0x2701636D: mov dword ptr [edx + 4], esi */ 8937 esi = MEM32(edi + 0x4); /* 0x27016370: mov esi, dword ptr [edi + 4] */ 8938 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016373: cmp ecx, dword ptr [esi + 4] */ 8939 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8941 _flag_k = FK_CMP; 8942 if (CMP_NE(_flag_a, _flag_b)) goto L_2701637D; /* 0x27016376: jne 0x2701637d */ 8943 L_27016378: 8944 MEM32(esi + 0x4) = edx; /* 0x27016378: mov dword ptr [esi + 4], edx */ 8945 goto L_2701638C; /* 0x2701637B: jmp 0x2701638c */ 8946 L_2701637D: 8947 esi = MEM32(ecx + 0x4); /* 0x2701637D: mov esi, dword ptr [ecx + 4] */ 8948 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016380: cmp ecx, dword ptr [esi + 8] */ 8949 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8951 _flag_k = FK_CMP; 8952 if (CMP_NE(_flag_a, _flag_b)) goto L_2701638A; /* 0x27016383: jne 0x2701638a */ 8953 L_27016385: 8954 MEM32(esi + 0x8) = edx; /* 0x27016385: mov dword ptr [esi + 8], edx */ 8955 goto L_2701638C; /* 0x27016388: jmp 0x2701638c */ 8956 L_2701638A: 8957 MEM32(esi) = edx; /* 0x2701638A: mov dword ptr [esi], edx */ 8958 L_2701638C: 8959 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 8960 L_2701638F: 8961 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 8962 L_27016392: 8963 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 8964 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 8965 PUSH32(esp, edx); /* 0x27016398: push edx */ 8966 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 8967 RECOMP_FLAGS_IN(); 8968 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 8969 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 8970 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8971 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8972 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 8973 _flag_k = FK_ADD; 8974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8975 eax = eax - 1; /* 0x270163A7: dec eax */ 8976 _flag_k = FK_DEC; 8977 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 8978 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 8979 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 8980 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 8981 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 8982 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 8983 esp = ebp; /* 0x270163B3: mov esp, ebp */ 8984 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 8985 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 8986 RECOMP_REGS_OUT(); 8987 } 8988 8989 void sub_270161C4(void) { 8990 int _fpu_cmp = 0; 8991 uint32_t _cf = 0; 8992 int _df = 1; 8993 uint32_t _flag_k = FK_NONE; 8994 uint32_t _flag_a = 0, _flag_b = 0; 8995 uint32_t _itail_tgt = 0; 8996 RECOMP_REGS_LOCALS 8997 RECOMP_ENTER(0x270161C4u); 8998 8999 goto L_270161C4; 9000 L_27016144: 9001 /* cmp MEM8(eax + 0x18), LO8(ebx) */ /* 0x27016144: cmp byte ptr [eax + 0x18], bl */ 9002 _flag_a = (uint32_t)(MEM8(eax + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9004 _flag_k = FK_NARROW(FK_CMP, 24); 9005 if (CMP_NE(_flag_a, _flag_b)) goto L_27016392; /* 0x27016147: jne 0x27016392 */ 9006 L_2701614D: 9007 edx = MEM32(eax + 0x4); /* 0x2701614D: mov edx, dword ptr [eax + 4] */ 9008 ecx = MEM32(edx); /* 0x27016150: mov ecx, dword ptr [edx] */ 9009 /* cmp eax, ecx */ /* 0x27016152: cmp eax, ecx */ 9010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9012 _flag_k = FK_CMP; 9013 if (CMP_NE(_flag_a, _flag_b)) goto L_270161C4; /* 0x27016154: jne 0x270161c4 */ 9014 L_27016156: 9015 ecx = MEM32(edx + 0x8); /* 0x27016156: mov ecx, dword ptr [edx + 8] */ 9016 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x27016159: mov dl, byte ptr [ecx + 0x18] */ 9017 /* test LO8(edx), LO8(edx) */ /* 0x2701615C: test dl, dl */ 9018 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9019 _cf = 0; 9020 _flag_k = FK_NARROW(FK_TEST, 24); 9021 if (TEST_NZ(_flag_a, _flag_b)) goto L_270161AB; /* 0x2701615E: jne 0x270161ab */ 9022 L_27016160: 9023 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016160: mov byte ptr [ecx + 0x18], bl */ 9024 ecx = MEM32(eax + 0x4); /* 0x27016163: mov ecx, dword ptr [eax + 4] */ 9025 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016166: mov byte ptr [ecx + 0x18], 0 */ 9026 ecx = MEM32(eax + 0x4); /* 0x2701616A: mov ecx, dword ptr [eax + 4] */ 9027 edx = MEM32(ecx + 0x8); /* 0x2701616D: mov edx, dword ptr [ecx + 8] */ 9028 esi = MEM32(edx); /* 0x27016170: mov esi, dword ptr [edx] */ 9029 MEM32(ecx + 0x8) = esi; /* 0x27016172: mov dword ptr [ecx + 8], esi */ 9030 esi = MEM32(edx); /* 0x27016175: mov esi, dword ptr [edx] */ 9031 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016177: cmp esi, dword ptr [edi + 8] */ 9032 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9034 _flag_k = FK_CMP; 9035 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701617F; /* 0x2701617A: je 0x2701617f */ 9036 L_2701617C: 9037 MEM32(esi + 0x4) = ecx; /* 0x2701617C: mov dword ptr [esi + 4], ecx */ 9038 L_2701617F: 9039 esi = MEM32(ecx + 0x4); /* 0x2701617F: mov esi, dword ptr [ecx + 4] */ 9040 MEM32(edx + 0x4) = esi; /* 0x27016182: mov dword ptr [edx + 4], esi */ 9041 esi = MEM32(edi + 0x4); /* 0x27016185: mov esi, dword ptr [edi + 4] */ 9042 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016188: cmp ecx, dword ptr [esi + 4] */ 9043 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9045 _flag_k = FK_CMP; 9046 if (CMP_NE(_flag_a, _flag_b)) goto L_27016192; /* 0x2701618B: jne 0x27016192 */ 9047 L_2701618D: 9048 MEM32(esi + 0x4) = edx; /* 0x2701618D: mov dword ptr [esi + 4], edx */ 9049 goto L_270161A0; /* 0x27016190: jmp 0x270161a0 */ 9050 L_27016192: 9051 esi = MEM32(ecx + 0x4); /* 0x27016192: mov esi, dword ptr [ecx + 4] */ 9052 /* cmp ecx, MEM32(esi) */ /* 0x27016195: cmp ecx, dword ptr [esi] */ 9053 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9055 _flag_k = FK_CMP; 9056 if (CMP_NE(_flag_a, _flag_b)) goto L_2701619D; /* 0x27016197: jne 0x2701619d */ 9057 L_27016199: 9058 MEM32(esi) = edx; /* 0x27016199: mov dword ptr [esi], edx */ 9059 goto L_270161A0; /* 0x2701619B: jmp 0x270161a0 */ 9060 L_2701619D: 9061 MEM32(esi + 0x8) = edx; /* 0x2701619D: mov dword ptr [esi + 8], edx */ 9062 L_270161A0: 9063 MEM32(edx) = ecx; /* 0x270161A0: mov dword ptr [edx], ecx */ 9064 MEM32(ecx + 0x4) = edx; /* 0x270161A2: mov dword ptr [ecx + 4], edx */ 9065 edx = MEM32(eax + 0x4); /* 0x270161A5: mov edx, dword ptr [eax + 4] */ 9066 ecx = MEM32(edx + 0x8); /* 0x270161A8: mov ecx, dword ptr [edx + 8] */ 9067 L_270161AB: 9068 edx = MEM32(ecx); /* 0x270161AB: mov edx, dword ptr [ecx] */ 9069 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161AD: cmp byte ptr [edx + 0x18], bl */ 9070 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9072 _flag_k = FK_NARROW(FK_CMP, 24); 9073 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161B0: jne 0x27016246 */ 9074 L_270161B6: 9075 edx = MEM32(ecx + 0x8); /* 0x270161B6: mov edx, dword ptr [ecx + 8] */ 9076 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161B9: cmp byte ptr [edx + 0x18], bl */ 9077 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9079 _flag_k = FK_NARROW(FK_CMP, 24); 9080 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161BC: jne 0x27016246 */ 9081 L_270161C2: 9082 goto L_2701622E; /* 0x270161C2: jmp 0x2701622e */ 9083 L_270161C4: 9084 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270161C4: mov dl, byte ptr [ecx + 0x18] */ 9085 /* test LO8(edx), LO8(edx) */ /* 0x270161C7: test dl, dl */ 9086 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9087 _cf = 0; 9088 _flag_k = FK_NARROW(FK_TEST, 24); 9089 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016217; /* 0x270161C9: jne 0x27016217 */ 9090 L_270161CB: 9091 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270161CB: mov byte ptr [ecx + 0x18], bl */ 9092 ecx = MEM32(eax + 0x4); /* 0x270161CE: mov ecx, dword ptr [eax + 4] */ 9093 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270161D1: mov byte ptr [ecx + 0x18], 0 */ 9094 ecx = MEM32(eax + 0x4); /* 0x270161D5: mov ecx, dword ptr [eax + 4] */ 9095 edx = MEM32(ecx); /* 0x270161D8: mov edx, dword ptr [ecx] */ 9096 esi = MEM32(edx + 0x8); /* 0x270161DA: mov esi, dword ptr [edx + 8] */ 9097 MEM32(ecx) = esi; /* 0x270161DD: mov dword ptr [ecx], esi */ 9098 esi = MEM32(edx + 0x8); /* 0x270161DF: mov esi, dword ptr [edx + 8] */ 9099 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270161E2: cmp esi, dword ptr [edi + 8] */ 9100 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9102 _flag_k = FK_CMP; 9103 if (CMP_EQ(_flag_a, _flag_b)) goto L_270161EA; /* 0x270161E5: je 0x270161ea */ 9104 L_270161E7: 9105 MEM32(esi + 0x4) = ecx; /* 0x270161E7: mov dword ptr [esi + 4], ecx */ 9106 L_270161EA: 9107 esi = MEM32(ecx + 0x4); /* 0x270161EA: mov esi, dword ptr [ecx + 4] */ 9108 MEM32(edx + 0x4) = esi; /* 0x270161ED: mov dword ptr [edx + 4], esi */ 9109 esi = MEM32(edi + 0x4); /* 0x270161F0: mov esi, dword ptr [edi + 4] */ 9110 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270161F3: cmp ecx, dword ptr [esi + 4] */ 9111 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9113 _flag_k = FK_CMP; 9114 if (CMP_NE(_flag_a, _flag_b)) goto L_270161FD; /* 0x270161F6: jne 0x270161fd */ 9115 L_270161F8: 9116 MEM32(esi + 0x4) = edx; /* 0x270161F8: mov dword ptr [esi + 4], edx */ 9117 goto L_2701620C; /* 0x270161FB: jmp 0x2701620c */ 9118 L_270161FD: 9119 esi = MEM32(ecx + 0x4); /* 0x270161FD: mov esi, dword ptr [ecx + 4] */ 9120 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016200: cmp ecx, dword ptr [esi + 8] */ 9121 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9123 _flag_k = FK_CMP; 9124 if (CMP_NE(_flag_a, _flag_b)) goto L_2701620A; /* 0x27016203: jne 0x2701620a */ 9125 L_27016205: 9126 MEM32(esi + 0x8) = edx; /* 0x27016205: mov dword ptr [esi + 8], edx */ 9127 goto L_2701620C; /* 0x27016208: jmp 0x2701620c */ 9128 L_2701620A: 9129 MEM32(esi) = edx; /* 0x2701620A: mov dword ptr [esi], edx */ 9130 L_2701620C: 9131 MEM32(edx + 0x8) = ecx; /* 0x2701620C: mov dword ptr [edx + 8], ecx */ 9132 MEM32(ecx + 0x4) = edx; /* 0x2701620F: mov dword ptr [ecx + 4], edx */ 9133 edx = MEM32(eax + 0x4); /* 0x27016212: mov edx, dword ptr [eax + 4] */ 9134 ecx = MEM32(edx); /* 0x27016215: mov ecx, dword ptr [edx] */ 9135 L_27016217: 9136 edx = MEM32(ecx + 0x8); /* 0x27016217: mov edx, dword ptr [ecx + 8] */ 9137 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x2701621A: cmp byte ptr [edx + 0x18], bl */ 9138 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9140 _flag_k = FK_NARROW(FK_CMP, 24); 9141 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x2701621D: jne 0x270162f3 */ 9142 L_27016223: 9143 edx = MEM32(ecx); /* 0x27016223: mov edx, dword ptr [ecx] */ 9144 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016225: cmp byte ptr [edx + 0x18], bl */ 9145 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9146 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9147 _flag_k = FK_NARROW(FK_CMP, 24); 9148 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x27016228: jne 0x270162f3 */ 9149 L_2701622E: 9150 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2701622E: mov byte ptr [ecx + 0x18], 0 */ 9151 ecx = MEM32(edi + 0x4); /* 0x27016232: mov ecx, dword ptr [edi + 4] */ 9152 eax = MEM32(eax + 0x4); /* 0x27016235: mov eax, dword ptr [eax + 4] */ 9153 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016238: cmp eax, dword ptr [ecx + 4] */ 9154 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9156 _flag_k = FK_CMP; 9157 RECOMP_BACKEDGE(); 9158 if (CMP_NE(_flag_a, _flag_b)) goto L_27016144; /* 0x2701623B: jne 0x27016144 */ 9159 L_27016241: 9160 goto L_27016392; /* 0x27016241: jmp 0x27016392 */ 9161 L_27016246: 9162 edx = MEM32(ecx + 0x8); /* 0x27016246: mov edx, dword ptr [ecx + 8] */ 9163 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016249: cmp byte ptr [edx + 0x18], bl */ 9164 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9166 _flag_k = FK_NARROW(FK_CMP, 24); 9167 if (CMP_NE(_flag_a, _flag_b)) goto L_27016297; /* 0x2701624C: jne 0x27016297 */ 9168 L_2701624E: 9169 edx = MEM32(ecx); /* 0x2701624E: mov edx, dword ptr [ecx] */ 9170 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016250: mov byte ptr [edx + 0x18], bl */ 9171 edx = MEM32(ecx); /* 0x27016253: mov edx, dword ptr [ecx] */ 9172 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016255: mov byte ptr [ecx + 0x18], 0 */ 9173 esi = MEM32(edx + 0x8); /* 0x27016259: mov esi, dword ptr [edx + 8] */ 9174 MEM32(ecx) = esi; /* 0x2701625C: mov dword ptr [ecx], esi */ 9175 esi = MEM32(edx + 0x8); /* 0x2701625E: mov esi, dword ptr [edx + 8] */ 9176 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016261: cmp esi, dword ptr [edi + 8] */ 9177 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9179 _flag_k = FK_CMP; 9180 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016269; /* 0x27016264: je 0x27016269 */ 9181 L_27016266: 9182 MEM32(esi + 0x4) = ecx; /* 0x27016266: mov dword ptr [esi + 4], ecx */ 9183 L_27016269: 9184 esi = MEM32(ecx + 0x4); /* 0x27016269: mov esi, dword ptr [ecx + 4] */ 9185 MEM32(edx + 0x4) = esi; /* 0x2701626C: mov dword ptr [edx + 4], esi */ 9186 esi = MEM32(edi + 0x4); /* 0x2701626F: mov esi, dword ptr [edi + 4] */ 9187 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016272: cmp ecx, dword ptr [esi + 4] */ 9188 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9190 _flag_k = FK_CMP; 9191 if (CMP_NE(_flag_a, _flag_b)) goto L_2701627C; /* 0x27016275: jne 0x2701627c */ 9192 L_27016277: 9193 MEM32(esi + 0x4) = edx; /* 0x27016277: mov dword ptr [esi + 4], edx */ 9194 goto L_2701628B; /* 0x2701627A: jmp 0x2701628b */ 9195 L_2701627C: 9196 esi = MEM32(ecx + 0x4); /* 0x2701627C: mov esi, dword ptr [ecx + 4] */ 9197 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2701627F: cmp ecx, dword ptr [esi + 8] */ 9198 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9200 _flag_k = FK_CMP; 9201 if (CMP_NE(_flag_a, _flag_b)) goto L_27016289; /* 0x27016282: jne 0x27016289 */ 9202 L_27016284: 9203 MEM32(esi + 0x8) = edx; /* 0x27016284: mov dword ptr [esi + 8], edx */ 9204 goto L_2701628B; /* 0x27016287: jmp 0x2701628b */ 9205 L_27016289: 9206 MEM32(esi) = edx; /* 0x27016289: mov dword ptr [esi], edx */ 9207 L_2701628B: 9208 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 9209 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 9210 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 9211 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 9212 L_27016297: 9213 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 9214 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 9215 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 9216 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 9217 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 9218 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 9219 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 9220 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 9221 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 9222 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 9223 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 9224 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 9225 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 9226 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9228 _flag_k = FK_CMP; 9229 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 9230 L_270162BE: 9231 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 9232 L_270162C1: 9233 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 9234 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 9235 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 9236 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 9237 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9239 _flag_k = FK_CMP; 9240 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 9241 L_270162CF: 9242 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 9243 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 9244 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 9245 L_270162D9: 9246 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 9247 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 9248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9250 _flag_k = FK_CMP; 9251 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 9252 L_270162E0: 9253 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 9254 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 9255 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 9256 L_270162E9: 9257 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 9258 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 9259 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 9260 L_270162F3: 9261 edx = MEM32(ecx); /* 0x270162F3: mov edx, dword ptr [ecx] */ 9262 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270162F5: cmp byte ptr [edx + 0x18], bl */ 9263 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9265 _flag_k = FK_NARROW(FK_CMP, 24); 9266 if (CMP_NE(_flag_a, _flag_b)) goto L_27016341; /* 0x270162F8: jne 0x27016341 */ 9267 L_270162FA: 9268 edx = MEM32(ecx + 0x8); /* 0x270162FA: mov edx, dword ptr [ecx + 8] */ 9269 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162FD: mov byte ptr [edx + 0x18], bl */ 9270 edx = MEM32(ecx + 0x8); /* 0x27016300: mov edx, dword ptr [ecx + 8] */ 9271 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016303: mov byte ptr [ecx + 0x18], 0 */ 9272 esi = MEM32(edx); /* 0x27016307: mov esi, dword ptr [edx] */ 9273 MEM32(ecx + 0x8) = esi; /* 0x27016309: mov dword ptr [ecx + 8], esi */ 9274 esi = MEM32(edx); /* 0x2701630C: mov esi, dword ptr [edx] */ 9275 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701630E: cmp esi, dword ptr [edi + 8] */ 9276 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9278 _flag_k = FK_CMP; 9279 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016316; /* 0x27016311: je 0x27016316 */ 9280 L_27016313: 9281 MEM32(esi + 0x4) = ecx; /* 0x27016313: mov dword ptr [esi + 4], ecx */ 9282 L_27016316: 9283 esi = MEM32(ecx + 0x4); /* 0x27016316: mov esi, dword ptr [ecx + 4] */ 9284 MEM32(edx + 0x4) = esi; /* 0x27016319: mov dword ptr [edx + 4], esi */ 9285 esi = MEM32(edi + 0x4); /* 0x2701631C: mov esi, dword ptr [edi + 4] */ 9286 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701631F: cmp ecx, dword ptr [esi + 4] */ 9287 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9289 _flag_k = FK_CMP; 9290 if (CMP_NE(_flag_a, _flag_b)) goto L_27016329; /* 0x27016322: jne 0x27016329 */ 9291 L_27016324: 9292 MEM32(esi + 0x4) = edx; /* 0x27016324: mov dword ptr [esi + 4], edx */ 9293 goto L_27016337; /* 0x27016327: jmp 0x27016337 */ 9294 L_27016329: 9295 esi = MEM32(ecx + 0x4); /* 0x27016329: mov esi, dword ptr [ecx + 4] */ 9296 /* cmp ecx, MEM32(esi) */ /* 0x2701632C: cmp ecx, dword ptr [esi] */ 9297 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9299 _flag_k = FK_CMP; 9300 if (CMP_NE(_flag_a, _flag_b)) goto L_27016334; /* 0x2701632E: jne 0x27016334 */ 9301 L_27016330: 9302 MEM32(esi) = edx; /* 0x27016330: mov dword ptr [esi], edx */ 9303 goto L_27016337; /* 0x27016332: jmp 0x27016337 */ 9304 L_27016334: 9305 MEM32(esi + 0x8) = edx; /* 0x27016334: mov dword ptr [esi + 8], edx */ 9306 L_27016337: 9307 MEM32(edx) = ecx; /* 0x27016337: mov dword ptr [edx], ecx */ 9308 MEM32(ecx + 0x4) = edx; /* 0x27016339: mov dword ptr [ecx + 4], edx */ 9309 ecx = MEM32(eax + 0x4); /* 0x2701633C: mov ecx, dword ptr [eax + 4] */ 9310 ecx = MEM32(ecx); /* 0x2701633F: mov ecx, dword ptr [ecx] */ 9311 L_27016341: 9312 edx = MEM32(eax + 0x4); /* 0x27016341: mov edx, dword ptr [eax + 4] */ 9313 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x27016344: mov dl, byte ptr [edx + 0x18] */ 9314 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016347: mov byte ptr [ecx + 0x18], dl */ 9315 edx = MEM32(eax + 0x4); /* 0x2701634A: mov edx, dword ptr [eax + 4] */ 9316 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701634D: mov byte ptr [edx + 0x18], bl */ 9317 ecx = MEM32(ecx); /* 0x27016350: mov ecx, dword ptr [ecx] */ 9318 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016352: mov byte ptr [ecx + 0x18], bl */ 9319 ecx = MEM32(eax + 0x4); /* 0x27016355: mov ecx, dword ptr [eax + 4] */ 9320 edx = MEM32(ecx); /* 0x27016358: mov edx, dword ptr [ecx] */ 9321 esi = MEM32(edx + 0x8); /* 0x2701635A: mov esi, dword ptr [edx + 8] */ 9322 MEM32(ecx) = esi; /* 0x2701635D: mov dword ptr [ecx], esi */ 9323 esi = MEM32(edx + 0x8); /* 0x2701635F: mov esi, dword ptr [edx + 8] */ 9324 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016362: cmp esi, dword ptr [edi + 8] */ 9325 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9327 _flag_k = FK_CMP; 9328 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701636A; /* 0x27016365: je 0x2701636a */ 9329 L_27016367: 9330 MEM32(esi + 0x4) = ecx; /* 0x27016367: mov dword ptr [esi + 4], ecx */ 9331 L_2701636A: 9332 esi = MEM32(ecx + 0x4); /* 0x2701636A: mov esi, dword ptr [ecx + 4] */ 9333 MEM32(edx + 0x4) = esi; /* 0x2701636D: mov dword ptr [edx + 4], esi */ 9334 esi = MEM32(edi + 0x4); /* 0x27016370: mov esi, dword ptr [edi + 4] */ 9335 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016373: cmp ecx, dword ptr [esi + 4] */ 9336 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9338 _flag_k = FK_CMP; 9339 if (CMP_NE(_flag_a, _flag_b)) goto L_2701637D; /* 0x27016376: jne 0x2701637d */ 9340 L_27016378: 9341 MEM32(esi + 0x4) = edx; /* 0x27016378: mov dword ptr [esi + 4], edx */ 9342 goto L_2701638C; /* 0x2701637B: jmp 0x2701638c */ 9343 L_2701637D: 9344 esi = MEM32(ecx + 0x4); /* 0x2701637D: mov esi, dword ptr [ecx + 4] */ 9345 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016380: cmp ecx, dword ptr [esi + 8] */ 9346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9348 _flag_k = FK_CMP; 9349 if (CMP_NE(_flag_a, _flag_b)) goto L_2701638A; /* 0x27016383: jne 0x2701638a */ 9350 L_27016385: 9351 MEM32(esi + 0x8) = edx; /* 0x27016385: mov dword ptr [esi + 8], edx */ 9352 goto L_2701638C; /* 0x27016388: jmp 0x2701638c */ 9353 L_2701638A: 9354 MEM32(esi) = edx; /* 0x2701638A: mov dword ptr [esi], edx */ 9355 L_2701638C: 9356 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 9357 L_2701638F: 9358 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 9359 L_27016392: 9360 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 9361 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 9362 PUSH32(esp, edx); /* 0x27016398: push edx */ 9363 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 9364 RECOMP_FLAGS_IN(); 9365 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 9366 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 9367 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9368 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9369 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 9370 _flag_k = FK_ADD; 9371 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9372 eax = eax - 1; /* 0x270163A7: dec eax */ 9373 _flag_k = FK_DEC; 9374 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 9375 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 9376 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 9377 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 9378 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 9379 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 9380 esp = ebp; /* 0x270163B3: mov esp, ebp */ 9381 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 9382 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 9383 RECOMP_REGS_OUT(); 9384 } 9385 9386 void sub_2701620C(void) { 9387 int _fpu_cmp = 0; 9388 uint32_t _cf = 0; 9389 int _df = 1; 9390 uint32_t _flag_k = FK_NONE; 9391 uint32_t _flag_a = 0, _flag_b = 0; 9392 uint32_t _itail_tgt = 0; 9393 RECOMP_REGS_LOCALS 9394 RECOMP_ENTER(0x2701620Cu); 9395 9396 goto L_2701620C; 9397 L_27016144: 9398 /* cmp MEM8(eax + 0x18), LO8(ebx) */ /* 0x27016144: cmp byte ptr [eax + 0x18], bl */ 9399 _flag_a = (uint32_t)(MEM8(eax + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9401 _flag_k = FK_NARROW(FK_CMP, 24); 9402 if (CMP_NE(_flag_a, _flag_b)) goto L_27016392; /* 0x27016147: jne 0x27016392 */ 9403 L_2701614D: 9404 edx = MEM32(eax + 0x4); /* 0x2701614D: mov edx, dword ptr [eax + 4] */ 9405 ecx = MEM32(edx); /* 0x27016150: mov ecx, dword ptr [edx] */ 9406 /* cmp eax, ecx */ /* 0x27016152: cmp eax, ecx */ 9407 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9409 _flag_k = FK_CMP; 9410 if (CMP_NE(_flag_a, _flag_b)) goto L_270161C4; /* 0x27016154: jne 0x270161c4 */ 9411 L_27016156: 9412 ecx = MEM32(edx + 0x8); /* 0x27016156: mov ecx, dword ptr [edx + 8] */ 9413 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x27016159: mov dl, byte ptr [ecx + 0x18] */ 9414 /* test LO8(edx), LO8(edx) */ /* 0x2701615C: test dl, dl */ 9415 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9416 _cf = 0; 9417 _flag_k = FK_NARROW(FK_TEST, 24); 9418 if (TEST_NZ(_flag_a, _flag_b)) goto L_270161AB; /* 0x2701615E: jne 0x270161ab */ 9419 L_27016160: 9420 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016160: mov byte ptr [ecx + 0x18], bl */ 9421 ecx = MEM32(eax + 0x4); /* 0x27016163: mov ecx, dword ptr [eax + 4] */ 9422 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016166: mov byte ptr [ecx + 0x18], 0 */ 9423 ecx = MEM32(eax + 0x4); /* 0x2701616A: mov ecx, dword ptr [eax + 4] */ 9424 edx = MEM32(ecx + 0x8); /* 0x2701616D: mov edx, dword ptr [ecx + 8] */ 9425 esi = MEM32(edx); /* 0x27016170: mov esi, dword ptr [edx] */ 9426 MEM32(ecx + 0x8) = esi; /* 0x27016172: mov dword ptr [ecx + 8], esi */ 9427 esi = MEM32(edx); /* 0x27016175: mov esi, dword ptr [edx] */ 9428 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016177: cmp esi, dword ptr [edi + 8] */ 9429 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9431 _flag_k = FK_CMP; 9432 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701617F; /* 0x2701617A: je 0x2701617f */ 9433 L_2701617C: 9434 MEM32(esi + 0x4) = ecx; /* 0x2701617C: mov dword ptr [esi + 4], ecx */ 9435 L_2701617F: 9436 esi = MEM32(ecx + 0x4); /* 0x2701617F: mov esi, dword ptr [ecx + 4] */ 9437 MEM32(edx + 0x4) = esi; /* 0x27016182: mov dword ptr [edx + 4], esi */ 9438 esi = MEM32(edi + 0x4); /* 0x27016185: mov esi, dword ptr [edi + 4] */ 9439 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016188: cmp ecx, dword ptr [esi + 4] */ 9440 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9442 _flag_k = FK_CMP; 9443 if (CMP_NE(_flag_a, _flag_b)) goto L_27016192; /* 0x2701618B: jne 0x27016192 */ 9444 L_2701618D: 9445 MEM32(esi + 0x4) = edx; /* 0x2701618D: mov dword ptr [esi + 4], edx */ 9446 goto L_270161A0; /* 0x27016190: jmp 0x270161a0 */ 9447 L_27016192: 9448 esi = MEM32(ecx + 0x4); /* 0x27016192: mov esi, dword ptr [ecx + 4] */ 9449 /* cmp ecx, MEM32(esi) */ /* 0x27016195: cmp ecx, dword ptr [esi] */ 9450 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9452 _flag_k = FK_CMP; 9453 if (CMP_NE(_flag_a, _flag_b)) goto L_2701619D; /* 0x27016197: jne 0x2701619d */ 9454 L_27016199: 9455 MEM32(esi) = edx; /* 0x27016199: mov dword ptr [esi], edx */ 9456 goto L_270161A0; /* 0x2701619B: jmp 0x270161a0 */ 9457 L_2701619D: 9458 MEM32(esi + 0x8) = edx; /* 0x2701619D: mov dword ptr [esi + 8], edx */ 9459 L_270161A0: 9460 MEM32(edx) = ecx; /* 0x270161A0: mov dword ptr [edx], ecx */ 9461 MEM32(ecx + 0x4) = edx; /* 0x270161A2: mov dword ptr [ecx + 4], edx */ 9462 edx = MEM32(eax + 0x4); /* 0x270161A5: mov edx, dword ptr [eax + 4] */ 9463 ecx = MEM32(edx + 0x8); /* 0x270161A8: mov ecx, dword ptr [edx + 8] */ 9464 L_270161AB: 9465 edx = MEM32(ecx); /* 0x270161AB: mov edx, dword ptr [ecx] */ 9466 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161AD: cmp byte ptr [edx + 0x18], bl */ 9467 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9469 _flag_k = FK_NARROW(FK_CMP, 24); 9470 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161B0: jne 0x27016246 */ 9471 L_270161B6: 9472 edx = MEM32(ecx + 0x8); /* 0x270161B6: mov edx, dword ptr [ecx + 8] */ 9473 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161B9: cmp byte ptr [edx + 0x18], bl */ 9474 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9476 _flag_k = FK_NARROW(FK_CMP, 24); 9477 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161BC: jne 0x27016246 */ 9478 L_270161C2: 9479 goto L_2701622E; /* 0x270161C2: jmp 0x2701622e */ 9480 L_270161C4: 9481 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270161C4: mov dl, byte ptr [ecx + 0x18] */ 9482 /* test LO8(edx), LO8(edx) */ /* 0x270161C7: test dl, dl */ 9483 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9484 _cf = 0; 9485 _flag_k = FK_NARROW(FK_TEST, 24); 9486 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016217; /* 0x270161C9: jne 0x27016217 */ 9487 L_270161CB: 9488 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270161CB: mov byte ptr [ecx + 0x18], bl */ 9489 ecx = MEM32(eax + 0x4); /* 0x270161CE: mov ecx, dword ptr [eax + 4] */ 9490 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270161D1: mov byte ptr [ecx + 0x18], 0 */ 9491 ecx = MEM32(eax + 0x4); /* 0x270161D5: mov ecx, dword ptr [eax + 4] */ 9492 edx = MEM32(ecx); /* 0x270161D8: mov edx, dword ptr [ecx] */ 9493 esi = MEM32(edx + 0x8); /* 0x270161DA: mov esi, dword ptr [edx + 8] */ 9494 MEM32(ecx) = esi; /* 0x270161DD: mov dword ptr [ecx], esi */ 9495 esi = MEM32(edx + 0x8); /* 0x270161DF: mov esi, dword ptr [edx + 8] */ 9496 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270161E2: cmp esi, dword ptr [edi + 8] */ 9497 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9499 _flag_k = FK_CMP; 9500 if (CMP_EQ(_flag_a, _flag_b)) goto L_270161EA; /* 0x270161E5: je 0x270161ea */ 9501 L_270161E7: 9502 MEM32(esi + 0x4) = ecx; /* 0x270161E7: mov dword ptr [esi + 4], ecx */ 9503 L_270161EA: 9504 esi = MEM32(ecx + 0x4); /* 0x270161EA: mov esi, dword ptr [ecx + 4] */ 9505 MEM32(edx + 0x4) = esi; /* 0x270161ED: mov dword ptr [edx + 4], esi */ 9506 esi = MEM32(edi + 0x4); /* 0x270161F0: mov esi, dword ptr [edi + 4] */ 9507 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270161F3: cmp ecx, dword ptr [esi + 4] */ 9508 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9510 _flag_k = FK_CMP; 9511 if (CMP_NE(_flag_a, _flag_b)) goto L_270161FD; /* 0x270161F6: jne 0x270161fd */ 9512 L_270161F8: 9513 MEM32(esi + 0x4) = edx; /* 0x270161F8: mov dword ptr [esi + 4], edx */ 9514 goto L_2701620C; /* 0x270161FB: jmp 0x2701620c */ 9515 L_270161FD: 9516 esi = MEM32(ecx + 0x4); /* 0x270161FD: mov esi, dword ptr [ecx + 4] */ 9517 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016200: cmp ecx, dword ptr [esi + 8] */ 9518 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9520 _flag_k = FK_CMP; 9521 if (CMP_NE(_flag_a, _flag_b)) goto L_2701620A; /* 0x27016203: jne 0x2701620a */ 9522 L_27016205: 9523 MEM32(esi + 0x8) = edx; /* 0x27016205: mov dword ptr [esi + 8], edx */ 9524 goto L_2701620C; /* 0x27016208: jmp 0x2701620c */ 9525 L_2701620A: 9526 MEM32(esi) = edx; /* 0x2701620A: mov dword ptr [esi], edx */ 9527 L_2701620C: 9528 MEM32(edx + 0x8) = ecx; /* 0x2701620C: mov dword ptr [edx + 8], ecx */ 9529 MEM32(ecx + 0x4) = edx; /* 0x2701620F: mov dword ptr [ecx + 4], edx */ 9530 edx = MEM32(eax + 0x4); /* 0x27016212: mov edx, dword ptr [eax + 4] */ 9531 ecx = MEM32(edx); /* 0x27016215: mov ecx, dword ptr [edx] */ 9532 L_27016217: 9533 edx = MEM32(ecx + 0x8); /* 0x27016217: mov edx, dword ptr [ecx + 8] */ 9534 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x2701621A: cmp byte ptr [edx + 0x18], bl */ 9535 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9537 _flag_k = FK_NARROW(FK_CMP, 24); 9538 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x2701621D: jne 0x270162f3 */ 9539 L_27016223: 9540 edx = MEM32(ecx); /* 0x27016223: mov edx, dword ptr [ecx] */ 9541 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016225: cmp byte ptr [edx + 0x18], bl */ 9542 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9544 _flag_k = FK_NARROW(FK_CMP, 24); 9545 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x27016228: jne 0x270162f3 */ 9546 L_2701622E: 9547 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2701622E: mov byte ptr [ecx + 0x18], 0 */ 9548 ecx = MEM32(edi + 0x4); /* 0x27016232: mov ecx, dword ptr [edi + 4] */ 9549 eax = MEM32(eax + 0x4); /* 0x27016235: mov eax, dword ptr [eax + 4] */ 9550 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016238: cmp eax, dword ptr [ecx + 4] */ 9551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9553 _flag_k = FK_CMP; 9554 RECOMP_BACKEDGE(); 9555 if (CMP_NE(_flag_a, _flag_b)) goto L_27016144; /* 0x2701623B: jne 0x27016144 */ 9556 L_27016241: 9557 goto L_27016392; /* 0x27016241: jmp 0x27016392 */ 9558 L_27016246: 9559 edx = MEM32(ecx + 0x8); /* 0x27016246: mov edx, dword ptr [ecx + 8] */ 9560 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016249: cmp byte ptr [edx + 0x18], bl */ 9561 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9563 _flag_k = FK_NARROW(FK_CMP, 24); 9564 if (CMP_NE(_flag_a, _flag_b)) goto L_27016297; /* 0x2701624C: jne 0x27016297 */ 9565 L_2701624E: 9566 edx = MEM32(ecx); /* 0x2701624E: mov edx, dword ptr [ecx] */ 9567 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016250: mov byte ptr [edx + 0x18], bl */ 9568 edx = MEM32(ecx); /* 0x27016253: mov edx, dword ptr [ecx] */ 9569 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016255: mov byte ptr [ecx + 0x18], 0 */ 9570 esi = MEM32(edx + 0x8); /* 0x27016259: mov esi, dword ptr [edx + 8] */ 9571 MEM32(ecx) = esi; /* 0x2701625C: mov dword ptr [ecx], esi */ 9572 esi = MEM32(edx + 0x8); /* 0x2701625E: mov esi, dword ptr [edx + 8] */ 9573 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016261: cmp esi, dword ptr [edi + 8] */ 9574 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9576 _flag_k = FK_CMP; 9577 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016269; /* 0x27016264: je 0x27016269 */ 9578 L_27016266: 9579 MEM32(esi + 0x4) = ecx; /* 0x27016266: mov dword ptr [esi + 4], ecx */ 9580 L_27016269: 9581 esi = MEM32(ecx + 0x4); /* 0x27016269: mov esi, dword ptr [ecx + 4] */ 9582 MEM32(edx + 0x4) = esi; /* 0x2701626C: mov dword ptr [edx + 4], esi */ 9583 esi = MEM32(edi + 0x4); /* 0x2701626F: mov esi, dword ptr [edi + 4] */ 9584 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016272: cmp ecx, dword ptr [esi + 4] */ 9585 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9587 _flag_k = FK_CMP; 9588 if (CMP_NE(_flag_a, _flag_b)) goto L_2701627C; /* 0x27016275: jne 0x2701627c */ 9589 L_27016277: 9590 MEM32(esi + 0x4) = edx; /* 0x27016277: mov dword ptr [esi + 4], edx */ 9591 goto L_2701628B; /* 0x2701627A: jmp 0x2701628b */ 9592 L_2701627C: 9593 esi = MEM32(ecx + 0x4); /* 0x2701627C: mov esi, dword ptr [ecx + 4] */ 9594 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2701627F: cmp ecx, dword ptr [esi + 8] */ 9595 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9597 _flag_k = FK_CMP; 9598 if (CMP_NE(_flag_a, _flag_b)) goto L_27016289; /* 0x27016282: jne 0x27016289 */ 9599 L_27016284: 9600 MEM32(esi + 0x8) = edx; /* 0x27016284: mov dword ptr [esi + 8], edx */ 9601 goto L_2701628B; /* 0x27016287: jmp 0x2701628b */ 9602 L_27016289: 9603 MEM32(esi) = edx; /* 0x27016289: mov dword ptr [esi], edx */ 9604 L_2701628B: 9605 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 9606 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 9607 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 9608 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 9609 L_27016297: 9610 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 9611 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 9612 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 9613 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 9614 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 9615 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 9616 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 9617 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 9618 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 9619 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 9620 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 9621 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 9622 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 9623 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9625 _flag_k = FK_CMP; 9626 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 9627 L_270162BE: 9628 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 9629 L_270162C1: 9630 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 9631 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 9632 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 9633 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 9634 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9636 _flag_k = FK_CMP; 9637 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 9638 L_270162CF: 9639 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 9640 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 9641 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 9642 L_270162D9: 9643 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 9644 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 9645 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9647 _flag_k = FK_CMP; 9648 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 9649 L_270162E0: 9650 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 9651 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 9652 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 9653 L_270162E9: 9654 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 9655 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 9656 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 9657 L_270162F3: 9658 edx = MEM32(ecx); /* 0x270162F3: mov edx, dword ptr [ecx] */ 9659 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270162F5: cmp byte ptr [edx + 0x18], bl */ 9660 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9662 _flag_k = FK_NARROW(FK_CMP, 24); 9663 if (CMP_NE(_flag_a, _flag_b)) goto L_27016341; /* 0x270162F8: jne 0x27016341 */ 9664 L_270162FA: 9665 edx = MEM32(ecx + 0x8); /* 0x270162FA: mov edx, dword ptr [ecx + 8] */ 9666 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162FD: mov byte ptr [edx + 0x18], bl */ 9667 edx = MEM32(ecx + 0x8); /* 0x27016300: mov edx, dword ptr [ecx + 8] */ 9668 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016303: mov byte ptr [ecx + 0x18], 0 */ 9669 esi = MEM32(edx); /* 0x27016307: mov esi, dword ptr [edx] */ 9670 MEM32(ecx + 0x8) = esi; /* 0x27016309: mov dword ptr [ecx + 8], esi */ 9671 esi = MEM32(edx); /* 0x2701630C: mov esi, dword ptr [edx] */ 9672 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701630E: cmp esi, dword ptr [edi + 8] */ 9673 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9675 _flag_k = FK_CMP; 9676 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016316; /* 0x27016311: je 0x27016316 */ 9677 L_27016313: 9678 MEM32(esi + 0x4) = ecx; /* 0x27016313: mov dword ptr [esi + 4], ecx */ 9679 L_27016316: 9680 esi = MEM32(ecx + 0x4); /* 0x27016316: mov esi, dword ptr [ecx + 4] */ 9681 MEM32(edx + 0x4) = esi; /* 0x27016319: mov dword ptr [edx + 4], esi */ 9682 esi = MEM32(edi + 0x4); /* 0x2701631C: mov esi, dword ptr [edi + 4] */ 9683 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701631F: cmp ecx, dword ptr [esi + 4] */ 9684 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9686 _flag_k = FK_CMP; 9687 if (CMP_NE(_flag_a, _flag_b)) goto L_27016329; /* 0x27016322: jne 0x27016329 */ 9688 L_27016324: 9689 MEM32(esi + 0x4) = edx; /* 0x27016324: mov dword ptr [esi + 4], edx */ 9690 goto L_27016337; /* 0x27016327: jmp 0x27016337 */ 9691 L_27016329: 9692 esi = MEM32(ecx + 0x4); /* 0x27016329: mov esi, dword ptr [ecx + 4] */ 9693 /* cmp ecx, MEM32(esi) */ /* 0x2701632C: cmp ecx, dword ptr [esi] */ 9694 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9696 _flag_k = FK_CMP; 9697 if (CMP_NE(_flag_a, _flag_b)) goto L_27016334; /* 0x2701632E: jne 0x27016334 */ 9698 L_27016330: 9699 MEM32(esi) = edx; /* 0x27016330: mov dword ptr [esi], edx */ 9700 goto L_27016337; /* 0x27016332: jmp 0x27016337 */ 9701 L_27016334: 9702 MEM32(esi + 0x8) = edx; /* 0x27016334: mov dword ptr [esi + 8], edx */ 9703 L_27016337: 9704 MEM32(edx) = ecx; /* 0x27016337: mov dword ptr [edx], ecx */ 9705 MEM32(ecx + 0x4) = edx; /* 0x27016339: mov dword ptr [ecx + 4], edx */ 9706 ecx = MEM32(eax + 0x4); /* 0x2701633C: mov ecx, dword ptr [eax + 4] */ 9707 ecx = MEM32(ecx); /* 0x2701633F: mov ecx, dword ptr [ecx] */ 9708 L_27016341: 9709 edx = MEM32(eax + 0x4); /* 0x27016341: mov edx, dword ptr [eax + 4] */ 9710 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x27016344: mov dl, byte ptr [edx + 0x18] */ 9711 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016347: mov byte ptr [ecx + 0x18], dl */ 9712 edx = MEM32(eax + 0x4); /* 0x2701634A: mov edx, dword ptr [eax + 4] */ 9713 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701634D: mov byte ptr [edx + 0x18], bl */ 9714 ecx = MEM32(ecx); /* 0x27016350: mov ecx, dword ptr [ecx] */ 9715 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016352: mov byte ptr [ecx + 0x18], bl */ 9716 ecx = MEM32(eax + 0x4); /* 0x27016355: mov ecx, dword ptr [eax + 4] */ 9717 edx = MEM32(ecx); /* 0x27016358: mov edx, dword ptr [ecx] */ 9718 esi = MEM32(edx + 0x8); /* 0x2701635A: mov esi, dword ptr [edx + 8] */ 9719 MEM32(ecx) = esi; /* 0x2701635D: mov dword ptr [ecx], esi */ 9720 esi = MEM32(edx + 0x8); /* 0x2701635F: mov esi, dword ptr [edx + 8] */ 9721 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016362: cmp esi, dword ptr [edi + 8] */ 9722 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9724 _flag_k = FK_CMP; 9725 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701636A; /* 0x27016365: je 0x2701636a */ 9726 L_27016367: 9727 MEM32(esi + 0x4) = ecx; /* 0x27016367: mov dword ptr [esi + 4], ecx */ 9728 L_2701636A: 9729 esi = MEM32(ecx + 0x4); /* 0x2701636A: mov esi, dword ptr [ecx + 4] */ 9730 MEM32(edx + 0x4) = esi; /* 0x2701636D: mov dword ptr [edx + 4], esi */ 9731 esi = MEM32(edi + 0x4); /* 0x27016370: mov esi, dword ptr [edi + 4] */ 9732 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016373: cmp ecx, dword ptr [esi + 4] */ 9733 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9735 _flag_k = FK_CMP; 9736 if (CMP_NE(_flag_a, _flag_b)) goto L_2701637D; /* 0x27016376: jne 0x2701637d */ 9737 L_27016378: 9738 MEM32(esi + 0x4) = edx; /* 0x27016378: mov dword ptr [esi + 4], edx */ 9739 goto L_2701638C; /* 0x2701637B: jmp 0x2701638c */ 9740 L_2701637D: 9741 esi = MEM32(ecx + 0x4); /* 0x2701637D: mov esi, dword ptr [ecx + 4] */ 9742 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016380: cmp ecx, dword ptr [esi + 8] */ 9743 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9745 _flag_k = FK_CMP; 9746 if (CMP_NE(_flag_a, _flag_b)) goto L_2701638A; /* 0x27016383: jne 0x2701638a */ 9747 L_27016385: 9748 MEM32(esi + 0x8) = edx; /* 0x27016385: mov dword ptr [esi + 8], edx */ 9749 goto L_2701638C; /* 0x27016388: jmp 0x2701638c */ 9750 L_2701638A: 9751 MEM32(esi) = edx; /* 0x2701638A: mov dword ptr [esi], edx */ 9752 L_2701638C: 9753 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 9754 L_2701638F: 9755 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 9756 L_27016392: 9757 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 9758 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 9759 PUSH32(esp, edx); /* 0x27016398: push edx */ 9760 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 9761 RECOMP_FLAGS_IN(); 9762 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 9763 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 9764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9766 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 9767 _flag_k = FK_ADD; 9768 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9769 eax = eax - 1; /* 0x270163A7: dec eax */ 9770 _flag_k = FK_DEC; 9771 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 9772 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 9773 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 9774 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 9775 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 9776 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 9777 esp = ebp; /* 0x270163B3: mov esp, ebp */ 9778 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 9779 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 9780 RECOMP_REGS_OUT(); 9781 } 9782 9783 void sub_27016217(void) { 9784 int _fpu_cmp = 0; 9785 uint32_t _cf = 0; 9786 int _df = 1; 9787 uint32_t _flag_k = FK_NONE; 9788 uint32_t _flag_a = 0, _flag_b = 0; 9789 uint32_t _itail_tgt = 0; 9790 RECOMP_REGS_LOCALS 9791 RECOMP_ENTER(0x27016217u); 9792 9793 goto L_27016217; 9794 L_27016144: 9795 /* cmp MEM8(eax + 0x18), LO8(ebx) */ /* 0x27016144: cmp byte ptr [eax + 0x18], bl */ 9796 _flag_a = (uint32_t)(MEM8(eax + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9798 _flag_k = FK_NARROW(FK_CMP, 24); 9799 if (CMP_NE(_flag_a, _flag_b)) goto L_27016392; /* 0x27016147: jne 0x27016392 */ 9800 L_2701614D: 9801 edx = MEM32(eax + 0x4); /* 0x2701614D: mov edx, dword ptr [eax + 4] */ 9802 ecx = MEM32(edx); /* 0x27016150: mov ecx, dword ptr [edx] */ 9803 /* cmp eax, ecx */ /* 0x27016152: cmp eax, ecx */ 9804 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9806 _flag_k = FK_CMP; 9807 if (CMP_NE(_flag_a, _flag_b)) goto L_270161C4; /* 0x27016154: jne 0x270161c4 */ 9808 L_27016156: 9809 ecx = MEM32(edx + 0x8); /* 0x27016156: mov ecx, dword ptr [edx + 8] */ 9810 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x27016159: mov dl, byte ptr [ecx + 0x18] */ 9811 /* test LO8(edx), LO8(edx) */ /* 0x2701615C: test dl, dl */ 9812 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9813 _cf = 0; 9814 _flag_k = FK_NARROW(FK_TEST, 24); 9815 if (TEST_NZ(_flag_a, _flag_b)) goto L_270161AB; /* 0x2701615E: jne 0x270161ab */ 9816 L_27016160: 9817 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016160: mov byte ptr [ecx + 0x18], bl */ 9818 ecx = MEM32(eax + 0x4); /* 0x27016163: mov ecx, dword ptr [eax + 4] */ 9819 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016166: mov byte ptr [ecx + 0x18], 0 */ 9820 ecx = MEM32(eax + 0x4); /* 0x2701616A: mov ecx, dword ptr [eax + 4] */ 9821 edx = MEM32(ecx + 0x8); /* 0x2701616D: mov edx, dword ptr [ecx + 8] */ 9822 esi = MEM32(edx); /* 0x27016170: mov esi, dword ptr [edx] */ 9823 MEM32(ecx + 0x8) = esi; /* 0x27016172: mov dword ptr [ecx + 8], esi */ 9824 esi = MEM32(edx); /* 0x27016175: mov esi, dword ptr [edx] */ 9825 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016177: cmp esi, dword ptr [edi + 8] */ 9826 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9828 _flag_k = FK_CMP; 9829 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701617F; /* 0x2701617A: je 0x2701617f */ 9830 L_2701617C: 9831 MEM32(esi + 0x4) = ecx; /* 0x2701617C: mov dword ptr [esi + 4], ecx */ 9832 L_2701617F: 9833 esi = MEM32(ecx + 0x4); /* 0x2701617F: mov esi, dword ptr [ecx + 4] */ 9834 MEM32(edx + 0x4) = esi; /* 0x27016182: mov dword ptr [edx + 4], esi */ 9835 esi = MEM32(edi + 0x4); /* 0x27016185: mov esi, dword ptr [edi + 4] */ 9836 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016188: cmp ecx, dword ptr [esi + 4] */ 9837 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9839 _flag_k = FK_CMP; 9840 if (CMP_NE(_flag_a, _flag_b)) goto L_27016192; /* 0x2701618B: jne 0x27016192 */ 9841 L_2701618D: 9842 MEM32(esi + 0x4) = edx; /* 0x2701618D: mov dword ptr [esi + 4], edx */ 9843 goto L_270161A0; /* 0x27016190: jmp 0x270161a0 */ 9844 L_27016192: 9845 esi = MEM32(ecx + 0x4); /* 0x27016192: mov esi, dword ptr [ecx + 4] */ 9846 /* cmp ecx, MEM32(esi) */ /* 0x27016195: cmp ecx, dword ptr [esi] */ 9847 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9849 _flag_k = FK_CMP; 9850 if (CMP_NE(_flag_a, _flag_b)) goto L_2701619D; /* 0x27016197: jne 0x2701619d */ 9851 L_27016199: 9852 MEM32(esi) = edx; /* 0x27016199: mov dword ptr [esi], edx */ 9853 goto L_270161A0; /* 0x2701619B: jmp 0x270161a0 */ 9854 L_2701619D: 9855 MEM32(esi + 0x8) = edx; /* 0x2701619D: mov dword ptr [esi + 8], edx */ 9856 L_270161A0: 9857 MEM32(edx) = ecx; /* 0x270161A0: mov dword ptr [edx], ecx */ 9858 MEM32(ecx + 0x4) = edx; /* 0x270161A2: mov dword ptr [ecx + 4], edx */ 9859 edx = MEM32(eax + 0x4); /* 0x270161A5: mov edx, dword ptr [eax + 4] */ 9860 ecx = MEM32(edx + 0x8); /* 0x270161A8: mov ecx, dword ptr [edx + 8] */ 9861 L_270161AB: 9862 edx = MEM32(ecx); /* 0x270161AB: mov edx, dword ptr [ecx] */ 9863 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161AD: cmp byte ptr [edx + 0x18], bl */ 9864 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9866 _flag_k = FK_NARROW(FK_CMP, 24); 9867 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161B0: jne 0x27016246 */ 9868 L_270161B6: 9869 edx = MEM32(ecx + 0x8); /* 0x270161B6: mov edx, dword ptr [ecx + 8] */ 9870 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161B9: cmp byte ptr [edx + 0x18], bl */ 9871 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9873 _flag_k = FK_NARROW(FK_CMP, 24); 9874 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161BC: jne 0x27016246 */ 9875 L_270161C2: 9876 goto L_2701622E; /* 0x270161C2: jmp 0x2701622e */ 9877 L_270161C4: 9878 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270161C4: mov dl, byte ptr [ecx + 0x18] */ 9879 /* test LO8(edx), LO8(edx) */ /* 0x270161C7: test dl, dl */ 9880 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9881 _cf = 0; 9882 _flag_k = FK_NARROW(FK_TEST, 24); 9883 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016217; /* 0x270161C9: jne 0x27016217 */ 9884 L_270161CB: 9885 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270161CB: mov byte ptr [ecx + 0x18], bl */ 9886 ecx = MEM32(eax + 0x4); /* 0x270161CE: mov ecx, dword ptr [eax + 4] */ 9887 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270161D1: mov byte ptr [ecx + 0x18], 0 */ 9888 ecx = MEM32(eax + 0x4); /* 0x270161D5: mov ecx, dword ptr [eax + 4] */ 9889 edx = MEM32(ecx); /* 0x270161D8: mov edx, dword ptr [ecx] */ 9890 esi = MEM32(edx + 0x8); /* 0x270161DA: mov esi, dword ptr [edx + 8] */ 9891 MEM32(ecx) = esi; /* 0x270161DD: mov dword ptr [ecx], esi */ 9892 esi = MEM32(edx + 0x8); /* 0x270161DF: mov esi, dword ptr [edx + 8] */ 9893 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270161E2: cmp esi, dword ptr [edi + 8] */ 9894 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9896 _flag_k = FK_CMP; 9897 if (CMP_EQ(_flag_a, _flag_b)) goto L_270161EA; /* 0x270161E5: je 0x270161ea */ 9898 L_270161E7: 9899 MEM32(esi + 0x4) = ecx; /* 0x270161E7: mov dword ptr [esi + 4], ecx */ 9900 L_270161EA: 9901 esi = MEM32(ecx + 0x4); /* 0x270161EA: mov esi, dword ptr [ecx + 4] */ 9902 MEM32(edx + 0x4) = esi; /* 0x270161ED: mov dword ptr [edx + 4], esi */ 9903 esi = MEM32(edi + 0x4); /* 0x270161F0: mov esi, dword ptr [edi + 4] */ 9904 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270161F3: cmp ecx, dword ptr [esi + 4] */ 9905 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9907 _flag_k = FK_CMP; 9908 if (CMP_NE(_flag_a, _flag_b)) goto L_270161FD; /* 0x270161F6: jne 0x270161fd */ 9909 L_270161F8: 9910 MEM32(esi + 0x4) = edx; /* 0x270161F8: mov dword ptr [esi + 4], edx */ 9911 goto L_2701620C; /* 0x270161FB: jmp 0x2701620c */ 9912 L_270161FD: 9913 esi = MEM32(ecx + 0x4); /* 0x270161FD: mov esi, dword ptr [ecx + 4] */ 9914 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016200: cmp ecx, dword ptr [esi + 8] */ 9915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9917 _flag_k = FK_CMP; 9918 if (CMP_NE(_flag_a, _flag_b)) goto L_2701620A; /* 0x27016203: jne 0x2701620a */ 9919 L_27016205: 9920 MEM32(esi + 0x8) = edx; /* 0x27016205: mov dword ptr [esi + 8], edx */ 9921 goto L_2701620C; /* 0x27016208: jmp 0x2701620c */ 9922 L_2701620A: 9923 MEM32(esi) = edx; /* 0x2701620A: mov dword ptr [esi], edx */ 9924 L_2701620C: 9925 MEM32(edx + 0x8) = ecx; /* 0x2701620C: mov dword ptr [edx + 8], ecx */ 9926 MEM32(ecx + 0x4) = edx; /* 0x2701620F: mov dword ptr [ecx + 4], edx */ 9927 edx = MEM32(eax + 0x4); /* 0x27016212: mov edx, dword ptr [eax + 4] */ 9928 ecx = MEM32(edx); /* 0x27016215: mov ecx, dword ptr [edx] */ 9929 L_27016217: 9930 edx = MEM32(ecx + 0x8); /* 0x27016217: mov edx, dword ptr [ecx + 8] */ 9931 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x2701621A: cmp byte ptr [edx + 0x18], bl */ 9932 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9934 _flag_k = FK_NARROW(FK_CMP, 24); 9935 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x2701621D: jne 0x270162f3 */ 9936 L_27016223: 9937 edx = MEM32(ecx); /* 0x27016223: mov edx, dword ptr [ecx] */ 9938 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016225: cmp byte ptr [edx + 0x18], bl */ 9939 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9941 _flag_k = FK_NARROW(FK_CMP, 24); 9942 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x27016228: jne 0x270162f3 */ 9943 L_2701622E: 9944 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2701622E: mov byte ptr [ecx + 0x18], 0 */ 9945 ecx = MEM32(edi + 0x4); /* 0x27016232: mov ecx, dword ptr [edi + 4] */ 9946 eax = MEM32(eax + 0x4); /* 0x27016235: mov eax, dword ptr [eax + 4] */ 9947 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016238: cmp eax, dword ptr [ecx + 4] */ 9948 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9950 _flag_k = FK_CMP; 9951 RECOMP_BACKEDGE(); 9952 if (CMP_NE(_flag_a, _flag_b)) goto L_27016144; /* 0x2701623B: jne 0x27016144 */ 9953 L_27016241: 9954 goto L_27016392; /* 0x27016241: jmp 0x27016392 */ 9955 L_27016246: 9956 edx = MEM32(ecx + 0x8); /* 0x27016246: mov edx, dword ptr [ecx + 8] */ 9957 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016249: cmp byte ptr [edx + 0x18], bl */ 9958 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9960 _flag_k = FK_NARROW(FK_CMP, 24); 9961 if (CMP_NE(_flag_a, _flag_b)) goto L_27016297; /* 0x2701624C: jne 0x27016297 */ 9962 L_2701624E: 9963 edx = MEM32(ecx); /* 0x2701624E: mov edx, dword ptr [ecx] */ 9964 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016250: mov byte ptr [edx + 0x18], bl */ 9965 edx = MEM32(ecx); /* 0x27016253: mov edx, dword ptr [ecx] */ 9966 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016255: mov byte ptr [ecx + 0x18], 0 */ 9967 esi = MEM32(edx + 0x8); /* 0x27016259: mov esi, dword ptr [edx + 8] */ 9968 MEM32(ecx) = esi; /* 0x2701625C: mov dword ptr [ecx], esi */ 9969 esi = MEM32(edx + 0x8); /* 0x2701625E: mov esi, dword ptr [edx + 8] */ 9970 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016261: cmp esi, dword ptr [edi + 8] */ 9971 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9973 _flag_k = FK_CMP; 9974 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016269; /* 0x27016264: je 0x27016269 */ 9975 L_27016266: 9976 MEM32(esi + 0x4) = ecx; /* 0x27016266: mov dword ptr [esi + 4], ecx */ 9977 L_27016269: 9978 esi = MEM32(ecx + 0x4); /* 0x27016269: mov esi, dword ptr [ecx + 4] */ 9979 MEM32(edx + 0x4) = esi; /* 0x2701626C: mov dword ptr [edx + 4], esi */ 9980 esi = MEM32(edi + 0x4); /* 0x2701626F: mov esi, dword ptr [edi + 4] */ 9981 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016272: cmp ecx, dword ptr [esi + 4] */ 9982 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9984 _flag_k = FK_CMP; 9985 if (CMP_NE(_flag_a, _flag_b)) goto L_2701627C; /* 0x27016275: jne 0x2701627c */ 9986 L_27016277: 9987 MEM32(esi + 0x4) = edx; /* 0x27016277: mov dword ptr [esi + 4], edx */ 9988 goto L_2701628B; /* 0x2701627A: jmp 0x2701628b */ 9989 L_2701627C: 9990 esi = MEM32(ecx + 0x4); /* 0x2701627C: mov esi, dword ptr [ecx + 4] */ 9991 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2701627F: cmp ecx, dword ptr [esi + 8] */ 9992 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9994 _flag_k = FK_CMP; 9995 if (CMP_NE(_flag_a, _flag_b)) goto L_27016289; /* 0x27016282: jne 0x27016289 */ 9996 L_27016284: 9997 MEM32(esi + 0x8) = edx; /* 0x27016284: mov dword ptr [esi + 8], edx */ 9998 goto L_2701628B; /* 0x27016287: jmp 0x2701628b */ 9999 L_27016289: 10000 MEM32(esi) = edx; /* 0x27016289: mov dword ptr [esi], edx */ 10001 L_2701628B: 10002 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 10003 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 10004 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 10005 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 10006 L_27016297: 10007 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 10008 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 10009 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 10010 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 10011 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 10012 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 10013 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 10014 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 10015 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 10016 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 10017 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 10018 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 10019 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 10020 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10022 _flag_k = FK_CMP; 10023 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 10024 L_270162BE: 10025 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 10026 L_270162C1: 10027 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 10028 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 10029 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 10030 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 10031 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10033 _flag_k = FK_CMP; 10034 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 10035 L_270162CF: 10036 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 10037 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 10038 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 10039 L_270162D9: 10040 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 10041 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 10042 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10044 _flag_k = FK_CMP; 10045 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 10046 L_270162E0: 10047 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 10048 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 10049 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 10050 L_270162E9: 10051 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 10052 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 10053 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 10054 L_270162F3: 10055 edx = MEM32(ecx); /* 0x270162F3: mov edx, dword ptr [ecx] */ 10056 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270162F5: cmp byte ptr [edx + 0x18], bl */ 10057 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10059 _flag_k = FK_NARROW(FK_CMP, 24); 10060 if (CMP_NE(_flag_a, _flag_b)) goto L_27016341; /* 0x270162F8: jne 0x27016341 */ 10061 L_270162FA: 10062 edx = MEM32(ecx + 0x8); /* 0x270162FA: mov edx, dword ptr [ecx + 8] */ 10063 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162FD: mov byte ptr [edx + 0x18], bl */ 10064 edx = MEM32(ecx + 0x8); /* 0x27016300: mov edx, dword ptr [ecx + 8] */ 10065 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016303: mov byte ptr [ecx + 0x18], 0 */ 10066 esi = MEM32(edx); /* 0x27016307: mov esi, dword ptr [edx] */ 10067 MEM32(ecx + 0x8) = esi; /* 0x27016309: mov dword ptr [ecx + 8], esi */ 10068 esi = MEM32(edx); /* 0x2701630C: mov esi, dword ptr [edx] */ 10069 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701630E: cmp esi, dword ptr [edi + 8] */ 10070 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10072 _flag_k = FK_CMP; 10073 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016316; /* 0x27016311: je 0x27016316 */ 10074 L_27016313: 10075 MEM32(esi + 0x4) = ecx; /* 0x27016313: mov dword ptr [esi + 4], ecx */ 10076 L_27016316: 10077 esi = MEM32(ecx + 0x4); /* 0x27016316: mov esi, dword ptr [ecx + 4] */ 10078 MEM32(edx + 0x4) = esi; /* 0x27016319: mov dword ptr [edx + 4], esi */ 10079 esi = MEM32(edi + 0x4); /* 0x2701631C: mov esi, dword ptr [edi + 4] */ 10080 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701631F: cmp ecx, dword ptr [esi + 4] */ 10081 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10083 _flag_k = FK_CMP; 10084 if (CMP_NE(_flag_a, _flag_b)) goto L_27016329; /* 0x27016322: jne 0x27016329 */ 10085 L_27016324: 10086 MEM32(esi + 0x4) = edx; /* 0x27016324: mov dword ptr [esi + 4], edx */ 10087 goto L_27016337; /* 0x27016327: jmp 0x27016337 */ 10088 L_27016329: 10089 esi = MEM32(ecx + 0x4); /* 0x27016329: mov esi, dword ptr [ecx + 4] */ 10090 /* cmp ecx, MEM32(esi) */ /* 0x2701632C: cmp ecx, dword ptr [esi] */ 10091 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10093 _flag_k = FK_CMP; 10094 if (CMP_NE(_flag_a, _flag_b)) goto L_27016334; /* 0x2701632E: jne 0x27016334 */ 10095 L_27016330: 10096 MEM32(esi) = edx; /* 0x27016330: mov dword ptr [esi], edx */ 10097 goto L_27016337; /* 0x27016332: jmp 0x27016337 */ 10098 L_27016334: 10099 MEM32(esi + 0x8) = edx; /* 0x27016334: mov dword ptr [esi + 8], edx */ 10100 L_27016337: 10101 MEM32(edx) = ecx; /* 0x27016337: mov dword ptr [edx], ecx */ 10102 MEM32(ecx + 0x4) = edx; /* 0x27016339: mov dword ptr [ecx + 4], edx */ 10103 ecx = MEM32(eax + 0x4); /* 0x2701633C: mov ecx, dword ptr [eax + 4] */ 10104 ecx = MEM32(ecx); /* 0x2701633F: mov ecx, dword ptr [ecx] */ 10105 L_27016341: 10106 edx = MEM32(eax + 0x4); /* 0x27016341: mov edx, dword ptr [eax + 4] */ 10107 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x27016344: mov dl, byte ptr [edx + 0x18] */ 10108 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016347: mov byte ptr [ecx + 0x18], dl */ 10109 edx = MEM32(eax + 0x4); /* 0x2701634A: mov edx, dword ptr [eax + 4] */ 10110 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701634D: mov byte ptr [edx + 0x18], bl */ 10111 ecx = MEM32(ecx); /* 0x27016350: mov ecx, dword ptr [ecx] */ 10112 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016352: mov byte ptr [ecx + 0x18], bl */ 10113 ecx = MEM32(eax + 0x4); /* 0x27016355: mov ecx, dword ptr [eax + 4] */ 10114 edx = MEM32(ecx); /* 0x27016358: mov edx, dword ptr [ecx] */ 10115 esi = MEM32(edx + 0x8); /* 0x2701635A: mov esi, dword ptr [edx + 8] */ 10116 MEM32(ecx) = esi; /* 0x2701635D: mov dword ptr [ecx], esi */ 10117 esi = MEM32(edx + 0x8); /* 0x2701635F: mov esi, dword ptr [edx + 8] */ 10118 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016362: cmp esi, dword ptr [edi + 8] */ 10119 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10121 _flag_k = FK_CMP; 10122 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701636A; /* 0x27016365: je 0x2701636a */ 10123 L_27016367: 10124 MEM32(esi + 0x4) = ecx; /* 0x27016367: mov dword ptr [esi + 4], ecx */ 10125 L_2701636A: 10126 esi = MEM32(ecx + 0x4); /* 0x2701636A: mov esi, dword ptr [ecx + 4] */ 10127 MEM32(edx + 0x4) = esi; /* 0x2701636D: mov dword ptr [edx + 4], esi */ 10128 esi = MEM32(edi + 0x4); /* 0x27016370: mov esi, dword ptr [edi + 4] */ 10129 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016373: cmp ecx, dword ptr [esi + 4] */ 10130 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10132 _flag_k = FK_CMP; 10133 if (CMP_NE(_flag_a, _flag_b)) goto L_2701637D; /* 0x27016376: jne 0x2701637d */ 10134 L_27016378: 10135 MEM32(esi + 0x4) = edx; /* 0x27016378: mov dword ptr [esi + 4], edx */ 10136 goto L_2701638C; /* 0x2701637B: jmp 0x2701638c */ 10137 L_2701637D: 10138 esi = MEM32(ecx + 0x4); /* 0x2701637D: mov esi, dword ptr [ecx + 4] */ 10139 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016380: cmp ecx, dword ptr [esi + 8] */ 10140 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10142 _flag_k = FK_CMP; 10143 if (CMP_NE(_flag_a, _flag_b)) goto L_2701638A; /* 0x27016383: jne 0x2701638a */ 10144 L_27016385: 10145 MEM32(esi + 0x8) = edx; /* 0x27016385: mov dword ptr [esi + 8], edx */ 10146 goto L_2701638C; /* 0x27016388: jmp 0x2701638c */ 10147 L_2701638A: 10148 MEM32(esi) = edx; /* 0x2701638A: mov dword ptr [esi], edx */ 10149 L_2701638C: 10150 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 10151 L_2701638F: 10152 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 10153 L_27016392: 10154 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 10155 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 10156 PUSH32(esp, edx); /* 0x27016398: push edx */ 10157 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 10158 RECOMP_FLAGS_IN(); 10159 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 10160 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 10161 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10162 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10163 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 10164 _flag_k = FK_ADD; 10165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10166 eax = eax - 1; /* 0x270163A7: dec eax */ 10167 _flag_k = FK_DEC; 10168 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 10169 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 10170 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 10171 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 10172 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 10173 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 10174 esp = ebp; /* 0x270163B3: mov esp, ebp */ 10175 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 10176 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 10177 RECOMP_REGS_OUT(); 10178 } 10179 10180 void sub_2701622E(void) { 10181 int _fpu_cmp = 0; 10182 uint32_t _cf = 0; 10183 int _df = 1; 10184 uint32_t _flag_k = FK_NONE; 10185 uint32_t _flag_a = 0, _flag_b = 0; 10186 uint32_t _itail_tgt = 0; 10187 RECOMP_REGS_LOCALS 10188 RECOMP_ENTER(0x2701622Eu); 10189 10190 goto L_2701622E; 10191 L_27016144: 10192 /* cmp MEM8(eax + 0x18), LO8(ebx) */ /* 0x27016144: cmp byte ptr [eax + 0x18], bl */ 10193 _flag_a = (uint32_t)(MEM8(eax + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10195 _flag_k = FK_NARROW(FK_CMP, 24); 10196 if (CMP_NE(_flag_a, _flag_b)) goto L_27016392; /* 0x27016147: jne 0x27016392 */ 10197 L_2701614D: 10198 edx = MEM32(eax + 0x4); /* 0x2701614D: mov edx, dword ptr [eax + 4] */ 10199 ecx = MEM32(edx); /* 0x27016150: mov ecx, dword ptr [edx] */ 10200 /* cmp eax, ecx */ /* 0x27016152: cmp eax, ecx */ 10201 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10203 _flag_k = FK_CMP; 10204 if (CMP_NE(_flag_a, _flag_b)) goto L_270161C4; /* 0x27016154: jne 0x270161c4 */ 10205 L_27016156: 10206 ecx = MEM32(edx + 0x8); /* 0x27016156: mov ecx, dword ptr [edx + 8] */ 10207 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x27016159: mov dl, byte ptr [ecx + 0x18] */ 10208 /* test LO8(edx), LO8(edx) */ /* 0x2701615C: test dl, dl */ 10209 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10210 _cf = 0; 10211 _flag_k = FK_NARROW(FK_TEST, 24); 10212 if (TEST_NZ(_flag_a, _flag_b)) goto L_270161AB; /* 0x2701615E: jne 0x270161ab */ 10213 L_27016160: 10214 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016160: mov byte ptr [ecx + 0x18], bl */ 10215 ecx = MEM32(eax + 0x4); /* 0x27016163: mov ecx, dword ptr [eax + 4] */ 10216 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016166: mov byte ptr [ecx + 0x18], 0 */ 10217 ecx = MEM32(eax + 0x4); /* 0x2701616A: mov ecx, dword ptr [eax + 4] */ 10218 edx = MEM32(ecx + 0x8); /* 0x2701616D: mov edx, dword ptr [ecx + 8] */ 10219 esi = MEM32(edx); /* 0x27016170: mov esi, dword ptr [edx] */ 10220 MEM32(ecx + 0x8) = esi; /* 0x27016172: mov dword ptr [ecx + 8], esi */ 10221 esi = MEM32(edx); /* 0x27016175: mov esi, dword ptr [edx] */ 10222 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016177: cmp esi, dword ptr [edi + 8] */ 10223 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10225 _flag_k = FK_CMP; 10226 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701617F; /* 0x2701617A: je 0x2701617f */ 10227 L_2701617C: 10228 MEM32(esi + 0x4) = ecx; /* 0x2701617C: mov dword ptr [esi + 4], ecx */ 10229 L_2701617F: 10230 esi = MEM32(ecx + 0x4); /* 0x2701617F: mov esi, dword ptr [ecx + 4] */ 10231 MEM32(edx + 0x4) = esi; /* 0x27016182: mov dword ptr [edx + 4], esi */ 10232 esi = MEM32(edi + 0x4); /* 0x27016185: mov esi, dword ptr [edi + 4] */ 10233 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016188: cmp ecx, dword ptr [esi + 4] */ 10234 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10236 _flag_k = FK_CMP; 10237 if (CMP_NE(_flag_a, _flag_b)) goto L_27016192; /* 0x2701618B: jne 0x27016192 */ 10238 L_2701618D: 10239 MEM32(esi + 0x4) = edx; /* 0x2701618D: mov dword ptr [esi + 4], edx */ 10240 goto L_270161A0; /* 0x27016190: jmp 0x270161a0 */ 10241 L_27016192: 10242 esi = MEM32(ecx + 0x4); /* 0x27016192: mov esi, dword ptr [ecx + 4] */ 10243 /* cmp ecx, MEM32(esi) */ /* 0x27016195: cmp ecx, dword ptr [esi] */ 10244 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10246 _flag_k = FK_CMP; 10247 if (CMP_NE(_flag_a, _flag_b)) goto L_2701619D; /* 0x27016197: jne 0x2701619d */ 10248 L_27016199: 10249 MEM32(esi) = edx; /* 0x27016199: mov dword ptr [esi], edx */ 10250 goto L_270161A0; /* 0x2701619B: jmp 0x270161a0 */ 10251 L_2701619D: 10252 MEM32(esi + 0x8) = edx; /* 0x2701619D: mov dword ptr [esi + 8], edx */ 10253 L_270161A0: 10254 MEM32(edx) = ecx; /* 0x270161A0: mov dword ptr [edx], ecx */ 10255 MEM32(ecx + 0x4) = edx; /* 0x270161A2: mov dword ptr [ecx + 4], edx */ 10256 edx = MEM32(eax + 0x4); /* 0x270161A5: mov edx, dword ptr [eax + 4] */ 10257 ecx = MEM32(edx + 0x8); /* 0x270161A8: mov ecx, dword ptr [edx + 8] */ 10258 L_270161AB: 10259 edx = MEM32(ecx); /* 0x270161AB: mov edx, dword ptr [ecx] */ 10260 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161AD: cmp byte ptr [edx + 0x18], bl */ 10261 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10263 _flag_k = FK_NARROW(FK_CMP, 24); 10264 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161B0: jne 0x27016246 */ 10265 L_270161B6: 10266 edx = MEM32(ecx + 0x8); /* 0x270161B6: mov edx, dword ptr [ecx + 8] */ 10267 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270161B9: cmp byte ptr [edx + 0x18], bl */ 10268 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10270 _flag_k = FK_NARROW(FK_CMP, 24); 10271 if (CMP_NE(_flag_a, _flag_b)) goto L_27016246; /* 0x270161BC: jne 0x27016246 */ 10272 L_270161C2: 10273 goto L_2701622E; /* 0x270161C2: jmp 0x2701622e */ 10274 L_270161C4: 10275 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270161C4: mov dl, byte ptr [ecx + 0x18] */ 10276 /* test LO8(edx), LO8(edx) */ /* 0x270161C7: test dl, dl */ 10277 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10278 _cf = 0; 10279 _flag_k = FK_NARROW(FK_TEST, 24); 10280 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016217; /* 0x270161C9: jne 0x27016217 */ 10281 L_270161CB: 10282 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270161CB: mov byte ptr [ecx + 0x18], bl */ 10283 ecx = MEM32(eax + 0x4); /* 0x270161CE: mov ecx, dword ptr [eax + 4] */ 10284 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270161D1: mov byte ptr [ecx + 0x18], 0 */ 10285 ecx = MEM32(eax + 0x4); /* 0x270161D5: mov ecx, dword ptr [eax + 4] */ 10286 edx = MEM32(ecx); /* 0x270161D8: mov edx, dword ptr [ecx] */ 10287 esi = MEM32(edx + 0x8); /* 0x270161DA: mov esi, dword ptr [edx + 8] */ 10288 MEM32(ecx) = esi; /* 0x270161DD: mov dword ptr [ecx], esi */ 10289 esi = MEM32(edx + 0x8); /* 0x270161DF: mov esi, dword ptr [edx + 8] */ 10290 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270161E2: cmp esi, dword ptr [edi + 8] */ 10291 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10293 _flag_k = FK_CMP; 10294 if (CMP_EQ(_flag_a, _flag_b)) goto L_270161EA; /* 0x270161E5: je 0x270161ea */ 10295 L_270161E7: 10296 MEM32(esi + 0x4) = ecx; /* 0x270161E7: mov dword ptr [esi + 4], ecx */ 10297 L_270161EA: 10298 esi = MEM32(ecx + 0x4); /* 0x270161EA: mov esi, dword ptr [ecx + 4] */ 10299 MEM32(edx + 0x4) = esi; /* 0x270161ED: mov dword ptr [edx + 4], esi */ 10300 esi = MEM32(edi + 0x4); /* 0x270161F0: mov esi, dword ptr [edi + 4] */ 10301 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270161F3: cmp ecx, dword ptr [esi + 4] */ 10302 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10304 _flag_k = FK_CMP; 10305 if (CMP_NE(_flag_a, _flag_b)) goto L_270161FD; /* 0x270161F6: jne 0x270161fd */ 10306 L_270161F8: 10307 MEM32(esi + 0x4) = edx; /* 0x270161F8: mov dword ptr [esi + 4], edx */ 10308 goto L_2701620C; /* 0x270161FB: jmp 0x2701620c */ 10309 L_270161FD: 10310 esi = MEM32(ecx + 0x4); /* 0x270161FD: mov esi, dword ptr [ecx + 4] */ 10311 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016200: cmp ecx, dword ptr [esi + 8] */ 10312 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10314 _flag_k = FK_CMP; 10315 if (CMP_NE(_flag_a, _flag_b)) goto L_2701620A; /* 0x27016203: jne 0x2701620a */ 10316 L_27016205: 10317 MEM32(esi + 0x8) = edx; /* 0x27016205: mov dword ptr [esi + 8], edx */ 10318 goto L_2701620C; /* 0x27016208: jmp 0x2701620c */ 10319 L_2701620A: 10320 MEM32(esi) = edx; /* 0x2701620A: mov dword ptr [esi], edx */ 10321 L_2701620C: 10322 MEM32(edx + 0x8) = ecx; /* 0x2701620C: mov dword ptr [edx + 8], ecx */ 10323 MEM32(ecx + 0x4) = edx; /* 0x2701620F: mov dword ptr [ecx + 4], edx */ 10324 edx = MEM32(eax + 0x4); /* 0x27016212: mov edx, dword ptr [eax + 4] */ 10325 ecx = MEM32(edx); /* 0x27016215: mov ecx, dword ptr [edx] */ 10326 L_27016217: 10327 edx = MEM32(ecx + 0x8); /* 0x27016217: mov edx, dword ptr [ecx + 8] */ 10328 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x2701621A: cmp byte ptr [edx + 0x18], bl */ 10329 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10331 _flag_k = FK_NARROW(FK_CMP, 24); 10332 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x2701621D: jne 0x270162f3 */ 10333 L_27016223: 10334 edx = MEM32(ecx); /* 0x27016223: mov edx, dword ptr [ecx] */ 10335 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016225: cmp byte ptr [edx + 0x18], bl */ 10336 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10338 _flag_k = FK_NARROW(FK_CMP, 24); 10339 if (CMP_NE(_flag_a, _flag_b)) goto L_270162F3; /* 0x27016228: jne 0x270162f3 */ 10340 L_2701622E: 10341 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x2701622E: mov byte ptr [ecx + 0x18], 0 */ 10342 ecx = MEM32(edi + 0x4); /* 0x27016232: mov ecx, dword ptr [edi + 4] */ 10343 eax = MEM32(eax + 0x4); /* 0x27016235: mov eax, dword ptr [eax + 4] */ 10344 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016238: cmp eax, dword ptr [ecx + 4] */ 10345 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10347 _flag_k = FK_CMP; 10348 RECOMP_BACKEDGE(); 10349 if (CMP_NE(_flag_a, _flag_b)) goto L_27016144; /* 0x2701623B: jne 0x27016144 */ 10350 L_27016241: 10351 goto L_27016392; /* 0x27016241: jmp 0x27016392 */ 10352 L_27016246: 10353 edx = MEM32(ecx + 0x8); /* 0x27016246: mov edx, dword ptr [ecx + 8] */ 10354 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016249: cmp byte ptr [edx + 0x18], bl */ 10355 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10357 _flag_k = FK_NARROW(FK_CMP, 24); 10358 if (CMP_NE(_flag_a, _flag_b)) goto L_27016297; /* 0x2701624C: jne 0x27016297 */ 10359 L_2701624E: 10360 edx = MEM32(ecx); /* 0x2701624E: mov edx, dword ptr [ecx] */ 10361 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016250: mov byte ptr [edx + 0x18], bl */ 10362 edx = MEM32(ecx); /* 0x27016253: mov edx, dword ptr [ecx] */ 10363 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016255: mov byte ptr [ecx + 0x18], 0 */ 10364 esi = MEM32(edx + 0x8); /* 0x27016259: mov esi, dword ptr [edx + 8] */ 10365 MEM32(ecx) = esi; /* 0x2701625C: mov dword ptr [ecx], esi */ 10366 esi = MEM32(edx + 0x8); /* 0x2701625E: mov esi, dword ptr [edx + 8] */ 10367 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016261: cmp esi, dword ptr [edi + 8] */ 10368 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10370 _flag_k = FK_CMP; 10371 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016269; /* 0x27016264: je 0x27016269 */ 10372 L_27016266: 10373 MEM32(esi + 0x4) = ecx; /* 0x27016266: mov dword ptr [esi + 4], ecx */ 10374 L_27016269: 10375 esi = MEM32(ecx + 0x4); /* 0x27016269: mov esi, dword ptr [ecx + 4] */ 10376 MEM32(edx + 0x4) = esi; /* 0x2701626C: mov dword ptr [edx + 4], esi */ 10377 esi = MEM32(edi + 0x4); /* 0x2701626F: mov esi, dword ptr [edi + 4] */ 10378 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016272: cmp ecx, dword ptr [esi + 4] */ 10379 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10381 _flag_k = FK_CMP; 10382 if (CMP_NE(_flag_a, _flag_b)) goto L_2701627C; /* 0x27016275: jne 0x2701627c */ 10383 L_27016277: 10384 MEM32(esi + 0x4) = edx; /* 0x27016277: mov dword ptr [esi + 4], edx */ 10385 goto L_2701628B; /* 0x2701627A: jmp 0x2701628b */ 10386 L_2701627C: 10387 esi = MEM32(ecx + 0x4); /* 0x2701627C: mov esi, dword ptr [ecx + 4] */ 10388 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2701627F: cmp ecx, dword ptr [esi + 8] */ 10389 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10391 _flag_k = FK_CMP; 10392 if (CMP_NE(_flag_a, _flag_b)) goto L_27016289; /* 0x27016282: jne 0x27016289 */ 10393 L_27016284: 10394 MEM32(esi + 0x8) = edx; /* 0x27016284: mov dword ptr [esi + 8], edx */ 10395 goto L_2701628B; /* 0x27016287: jmp 0x2701628b */ 10396 L_27016289: 10397 MEM32(esi) = edx; /* 0x27016289: mov dword ptr [esi], edx */ 10398 L_2701628B: 10399 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 10400 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 10401 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 10402 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 10403 L_27016297: 10404 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 10405 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 10406 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 10407 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 10408 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 10409 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 10410 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 10411 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 10412 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 10413 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 10414 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 10415 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 10416 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 10417 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10419 _flag_k = FK_CMP; 10420 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 10421 L_270162BE: 10422 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 10423 L_270162C1: 10424 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 10425 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 10426 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 10427 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 10428 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10430 _flag_k = FK_CMP; 10431 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 10432 L_270162CF: 10433 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 10434 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 10435 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 10436 L_270162D9: 10437 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 10438 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 10439 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10441 _flag_k = FK_CMP; 10442 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 10443 L_270162E0: 10444 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 10445 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 10446 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 10447 L_270162E9: 10448 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 10449 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 10450 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 10451 L_270162F3: 10452 edx = MEM32(ecx); /* 0x270162F3: mov edx, dword ptr [ecx] */ 10453 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x270162F5: cmp byte ptr [edx + 0x18], bl */ 10454 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10456 _flag_k = FK_NARROW(FK_CMP, 24); 10457 if (CMP_NE(_flag_a, _flag_b)) goto L_27016341; /* 0x270162F8: jne 0x27016341 */ 10458 L_270162FA: 10459 edx = MEM32(ecx + 0x8); /* 0x270162FA: mov edx, dword ptr [ecx + 8] */ 10460 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162FD: mov byte ptr [edx + 0x18], bl */ 10461 edx = MEM32(ecx + 0x8); /* 0x27016300: mov edx, dword ptr [ecx + 8] */ 10462 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016303: mov byte ptr [ecx + 0x18], 0 */ 10463 esi = MEM32(edx); /* 0x27016307: mov esi, dword ptr [edx] */ 10464 MEM32(ecx + 0x8) = esi; /* 0x27016309: mov dword ptr [ecx + 8], esi */ 10465 esi = MEM32(edx); /* 0x2701630C: mov esi, dword ptr [edx] */ 10466 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701630E: cmp esi, dword ptr [edi + 8] */ 10467 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10469 _flag_k = FK_CMP; 10470 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016316; /* 0x27016311: je 0x27016316 */ 10471 L_27016313: 10472 MEM32(esi + 0x4) = ecx; /* 0x27016313: mov dword ptr [esi + 4], ecx */ 10473 L_27016316: 10474 esi = MEM32(ecx + 0x4); /* 0x27016316: mov esi, dword ptr [ecx + 4] */ 10475 MEM32(edx + 0x4) = esi; /* 0x27016319: mov dword ptr [edx + 4], esi */ 10476 esi = MEM32(edi + 0x4); /* 0x2701631C: mov esi, dword ptr [edi + 4] */ 10477 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701631F: cmp ecx, dword ptr [esi + 4] */ 10478 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10480 _flag_k = FK_CMP; 10481 if (CMP_NE(_flag_a, _flag_b)) goto L_27016329; /* 0x27016322: jne 0x27016329 */ 10482 L_27016324: 10483 MEM32(esi + 0x4) = edx; /* 0x27016324: mov dword ptr [esi + 4], edx */ 10484 goto L_27016337; /* 0x27016327: jmp 0x27016337 */ 10485 L_27016329: 10486 esi = MEM32(ecx + 0x4); /* 0x27016329: mov esi, dword ptr [ecx + 4] */ 10487 /* cmp ecx, MEM32(esi) */ /* 0x2701632C: cmp ecx, dword ptr [esi] */ 10488 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10490 _flag_k = FK_CMP; 10491 if (CMP_NE(_flag_a, _flag_b)) goto L_27016334; /* 0x2701632E: jne 0x27016334 */ 10492 L_27016330: 10493 MEM32(esi) = edx; /* 0x27016330: mov dword ptr [esi], edx */ 10494 goto L_27016337; /* 0x27016332: jmp 0x27016337 */ 10495 L_27016334: 10496 MEM32(esi + 0x8) = edx; /* 0x27016334: mov dword ptr [esi + 8], edx */ 10497 L_27016337: 10498 MEM32(edx) = ecx; /* 0x27016337: mov dword ptr [edx], ecx */ 10499 MEM32(ecx + 0x4) = edx; /* 0x27016339: mov dword ptr [ecx + 4], edx */ 10500 ecx = MEM32(eax + 0x4); /* 0x2701633C: mov ecx, dword ptr [eax + 4] */ 10501 ecx = MEM32(ecx); /* 0x2701633F: mov ecx, dword ptr [ecx] */ 10502 L_27016341: 10503 edx = MEM32(eax + 0x4); /* 0x27016341: mov edx, dword ptr [eax + 4] */ 10504 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x27016344: mov dl, byte ptr [edx + 0x18] */ 10505 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016347: mov byte ptr [ecx + 0x18], dl */ 10506 edx = MEM32(eax + 0x4); /* 0x2701634A: mov edx, dword ptr [eax + 4] */ 10507 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701634D: mov byte ptr [edx + 0x18], bl */ 10508 ecx = MEM32(ecx); /* 0x27016350: mov ecx, dword ptr [ecx] */ 10509 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016352: mov byte ptr [ecx + 0x18], bl */ 10510 ecx = MEM32(eax + 0x4); /* 0x27016355: mov ecx, dword ptr [eax + 4] */ 10511 edx = MEM32(ecx); /* 0x27016358: mov edx, dword ptr [ecx] */ 10512 esi = MEM32(edx + 0x8); /* 0x2701635A: mov esi, dword ptr [edx + 8] */ 10513 MEM32(ecx) = esi; /* 0x2701635D: mov dword ptr [ecx], esi */ 10514 esi = MEM32(edx + 0x8); /* 0x2701635F: mov esi, dword ptr [edx + 8] */ 10515 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016362: cmp esi, dword ptr [edi + 8] */ 10516 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10518 _flag_k = FK_CMP; 10519 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701636A; /* 0x27016365: je 0x2701636a */ 10520 L_27016367: 10521 MEM32(esi + 0x4) = ecx; /* 0x27016367: mov dword ptr [esi + 4], ecx */ 10522 L_2701636A: 10523 esi = MEM32(ecx + 0x4); /* 0x2701636A: mov esi, dword ptr [ecx + 4] */ 10524 MEM32(edx + 0x4) = esi; /* 0x2701636D: mov dword ptr [edx + 4], esi */ 10525 esi = MEM32(edi + 0x4); /* 0x27016370: mov esi, dword ptr [edi + 4] */ 10526 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016373: cmp ecx, dword ptr [esi + 4] */ 10527 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10529 _flag_k = FK_CMP; 10530 if (CMP_NE(_flag_a, _flag_b)) goto L_2701637D; /* 0x27016376: jne 0x2701637d */ 10531 L_27016378: 10532 MEM32(esi + 0x4) = edx; /* 0x27016378: mov dword ptr [esi + 4], edx */ 10533 goto L_2701638C; /* 0x2701637B: jmp 0x2701638c */ 10534 L_2701637D: 10535 esi = MEM32(ecx + 0x4); /* 0x2701637D: mov esi, dword ptr [ecx + 4] */ 10536 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016380: cmp ecx, dword ptr [esi + 8] */ 10537 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10539 _flag_k = FK_CMP; 10540 if (CMP_NE(_flag_a, _flag_b)) goto L_2701638A; /* 0x27016383: jne 0x2701638a */ 10541 L_27016385: 10542 MEM32(esi + 0x8) = edx; /* 0x27016385: mov dword ptr [esi + 8], edx */ 10543 goto L_2701638C; /* 0x27016388: jmp 0x2701638c */ 10544 L_2701638A: 10545 MEM32(esi) = edx; /* 0x2701638A: mov dword ptr [esi], edx */ 10546 L_2701638C: 10547 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 10548 L_2701638F: 10549 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 10550 L_27016392: 10551 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 10552 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 10553 PUSH32(esp, edx); /* 0x27016398: push edx */ 10554 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 10555 RECOMP_FLAGS_IN(); 10556 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 10557 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 10558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10560 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 10561 _flag_k = FK_ADD; 10562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10563 eax = eax - 1; /* 0x270163A7: dec eax */ 10564 _flag_k = FK_DEC; 10565 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 10566 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 10567 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 10568 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 10569 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 10570 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 10571 esp = ebp; /* 0x270163B3: mov esp, ebp */ 10572 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 10573 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 10574 RECOMP_REGS_OUT(); 10575 } 10576 10577 void sub_27016246(void) { 10578 int _fpu_cmp = 0; 10579 uint32_t _cf = 0; 10580 int _df = 1; 10581 uint32_t _flag_k = FK_NONE; 10582 uint32_t _flag_a = 0, _flag_b = 0; 10583 uint32_t _itail_tgt = 0; 10584 RECOMP_REGS_LOCALS 10585 RECOMP_ENTER(0x27016246u); 10586 10587 L_27016246: 10588 edx = MEM32(ecx + 0x8); /* 0x27016246: mov edx, dword ptr [ecx + 8] */ 10589 /* cmp MEM8(edx + 0x18), LO8(ebx) */ /* 0x27016249: cmp byte ptr [edx + 0x18], bl */ 10590 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10592 _flag_k = FK_NARROW(FK_CMP, 24); 10593 if (CMP_NE(_flag_a, _flag_b)) goto L_27016297; /* 0x2701624C: jne 0x27016297 */ 10594 L_2701624E: 10595 edx = MEM32(ecx); /* 0x2701624E: mov edx, dword ptr [ecx] */ 10596 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016250: mov byte ptr [edx + 0x18], bl */ 10597 edx = MEM32(ecx); /* 0x27016253: mov edx, dword ptr [ecx] */ 10598 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016255: mov byte ptr [ecx + 0x18], 0 */ 10599 esi = MEM32(edx + 0x8); /* 0x27016259: mov esi, dword ptr [edx + 8] */ 10600 MEM32(ecx) = esi; /* 0x2701625C: mov dword ptr [ecx], esi */ 10601 esi = MEM32(edx + 0x8); /* 0x2701625E: mov esi, dword ptr [edx + 8] */ 10602 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016261: cmp esi, dword ptr [edi + 8] */ 10603 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10605 _flag_k = FK_CMP; 10606 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016269; /* 0x27016264: je 0x27016269 */ 10607 L_27016266: 10608 MEM32(esi + 0x4) = ecx; /* 0x27016266: mov dword ptr [esi + 4], ecx */ 10609 L_27016269: 10610 esi = MEM32(ecx + 0x4); /* 0x27016269: mov esi, dword ptr [ecx + 4] */ 10611 MEM32(edx + 0x4) = esi; /* 0x2701626C: mov dword ptr [edx + 4], esi */ 10612 esi = MEM32(edi + 0x4); /* 0x2701626F: mov esi, dword ptr [edi + 4] */ 10613 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016272: cmp ecx, dword ptr [esi + 4] */ 10614 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10616 _flag_k = FK_CMP; 10617 if (CMP_NE(_flag_a, _flag_b)) goto L_2701627C; /* 0x27016275: jne 0x2701627c */ 10618 L_27016277: 10619 MEM32(esi + 0x4) = edx; /* 0x27016277: mov dword ptr [esi + 4], edx */ 10620 goto L_2701628B; /* 0x2701627A: jmp 0x2701628b */ 10621 L_2701627C: 10622 esi = MEM32(ecx + 0x4); /* 0x2701627C: mov esi, dword ptr [ecx + 4] */ 10623 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2701627F: cmp ecx, dword ptr [esi + 8] */ 10624 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10626 _flag_k = FK_CMP; 10627 if (CMP_NE(_flag_a, _flag_b)) goto L_27016289; /* 0x27016282: jne 0x27016289 */ 10628 L_27016284: 10629 MEM32(esi + 0x8) = edx; /* 0x27016284: mov dword ptr [esi + 8], edx */ 10630 goto L_2701628B; /* 0x27016287: jmp 0x2701628b */ 10631 L_27016289: 10632 MEM32(esi) = edx; /* 0x27016289: mov dword ptr [esi], edx */ 10633 L_2701628B: 10634 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 10635 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 10636 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 10637 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 10638 L_27016297: 10639 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 10640 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 10641 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 10642 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 10643 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 10644 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 10645 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 10646 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 10647 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 10648 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 10649 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 10650 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 10651 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 10652 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10654 _flag_k = FK_CMP; 10655 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 10656 L_270162BE: 10657 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 10658 L_270162C1: 10659 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 10660 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 10661 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 10662 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 10663 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10665 _flag_k = FK_CMP; 10666 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 10667 L_270162CF: 10668 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 10669 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 10670 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 10671 L_270162D9: 10672 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 10673 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 10674 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10676 _flag_k = FK_CMP; 10677 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 10678 L_270162E0: 10679 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 10680 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 10681 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 10682 L_270162E9: 10683 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 10684 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 10685 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 10686 L_2701638F: 10687 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 10688 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 10689 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 10690 PUSH32(esp, edx); /* 0x27016398: push edx */ 10691 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 10692 RECOMP_FLAGS_IN(); 10693 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 10694 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 10695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10697 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 10698 _flag_k = FK_ADD; 10699 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10700 eax = eax - 1; /* 0x270163A7: dec eax */ 10701 _flag_k = FK_DEC; 10702 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 10703 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 10704 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 10705 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 10706 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 10707 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 10708 esp = ebp; /* 0x270163B3: mov esp, ebp */ 10709 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 10710 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 10711 RECOMP_REGS_OUT(); 10712 } 10713 10714 void sub_2701628B(void) { 10715 int _fpu_cmp = 0; 10716 uint32_t _cf = 0; 10717 int _df = 1; 10718 uint32_t _flag_k = FK_NONE; 10719 uint32_t _flag_a = 0, _flag_b = 0; 10720 uint32_t _itail_tgt = 0; 10721 RECOMP_REGS_LOCALS 10722 RECOMP_ENTER(0x2701628Bu); 10723 10724 L_2701628B: 10725 MEM32(edx + 0x8) = ecx; /* 0x2701628B: mov dword ptr [edx + 8], ecx */ 10726 MEM32(ecx + 0x4) = edx; /* 0x2701628E: mov dword ptr [ecx + 4], edx */ 10727 ecx = MEM32(eax + 0x4); /* 0x27016291: mov ecx, dword ptr [eax + 4] */ 10728 ecx = MEM32(ecx + 0x8); /* 0x27016294: mov ecx, dword ptr [ecx + 8] */ 10729 edx = MEM32(eax + 0x4); /* 0x27016297: mov edx, dword ptr [eax + 4] */ 10730 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x2701629A: mov dl, byte ptr [edx + 0x18] */ 10731 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x2701629D: mov byte ptr [ecx + 0x18], dl */ 10732 edx = MEM32(eax + 0x4); /* 0x270162A0: mov edx, dword ptr [eax + 4] */ 10733 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A3: mov byte ptr [edx + 0x18], bl */ 10734 ecx = MEM32(ecx + 0x8); /* 0x270162A6: mov ecx, dword ptr [ecx + 8] */ 10735 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270162A9: mov byte ptr [ecx + 0x18], bl */ 10736 ecx = MEM32(eax + 0x4); /* 0x270162AC: mov ecx, dword ptr [eax + 4] */ 10737 edx = MEM32(ecx + 0x8); /* 0x270162AF: mov edx, dword ptr [ecx + 8] */ 10738 esi = MEM32(edx); /* 0x270162B2: mov esi, dword ptr [edx] */ 10739 MEM32(ecx + 0x8) = esi; /* 0x270162B4: mov dword ptr [ecx + 8], esi */ 10740 esi = MEM32(edx); /* 0x270162B7: mov esi, dword ptr [edx] */ 10741 /* cmp esi, MEM32(edi + 0x8) */ /* 0x270162B9: cmp esi, dword ptr [edi + 8] */ 10742 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10744 _flag_k = FK_CMP; 10745 if (CMP_EQ(_flag_a, _flag_b)) goto L_270162C1; /* 0x270162BC: je 0x270162c1 */ 10746 L_270162BE: 10747 MEM32(esi + 0x4) = ecx; /* 0x270162BE: mov dword ptr [esi + 4], ecx */ 10748 L_270162C1: 10749 esi = MEM32(ecx + 0x4); /* 0x270162C1: mov esi, dword ptr [ecx + 4] */ 10750 MEM32(edx + 0x4) = esi; /* 0x270162C4: mov dword ptr [edx + 4], esi */ 10751 esi = MEM32(edi + 0x4); /* 0x270162C7: mov esi, dword ptr [edi + 4] */ 10752 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x270162CA: cmp ecx, dword ptr [esi + 4] */ 10753 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10755 _flag_k = FK_CMP; 10756 if (CMP_NE(_flag_a, _flag_b)) goto L_270162D9; /* 0x270162CD: jne 0x270162d9 */ 10757 L_270162CF: 10758 MEM32(esi + 0x4) = edx; /* 0x270162CF: mov dword ptr [esi + 4], edx */ 10759 MEM32(edx) = ecx; /* 0x270162D2: mov dword ptr [edx], ecx */ 10760 goto L_2701638F; /* 0x270162D4: jmp 0x2701638f */ 10761 L_270162D9: 10762 esi = MEM32(ecx + 0x4); /* 0x270162D9: mov esi, dword ptr [ecx + 4] */ 10763 /* cmp ecx, MEM32(esi) */ /* 0x270162DC: cmp ecx, dword ptr [esi] */ 10764 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10766 _flag_k = FK_CMP; 10767 if (CMP_NE(_flag_a, _flag_b)) goto L_270162E9; /* 0x270162DE: jne 0x270162e9 */ 10768 L_270162E0: 10769 MEM32(esi) = edx; /* 0x270162E0: mov dword ptr [esi], edx */ 10770 MEM32(edx) = ecx; /* 0x270162E2: mov dword ptr [edx], ecx */ 10771 goto L_2701638F; /* 0x270162E4: jmp 0x2701638f */ 10772 L_270162E9: 10773 MEM32(esi + 0x8) = edx; /* 0x270162E9: mov dword ptr [esi + 8], edx */ 10774 MEM32(edx) = ecx; /* 0x270162EC: mov dword ptr [edx], ecx */ 10775 goto L_2701638F; /* 0x270162EE: jmp 0x2701638f */ 10776 L_2701638F: 10777 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 10778 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 10779 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 10780 PUSH32(esp, edx); /* 0x27016398: push edx */ 10781 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 10782 RECOMP_FLAGS_IN(); 10783 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 10784 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 10785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10787 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 10788 _flag_k = FK_ADD; 10789 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10790 eax = eax - 1; /* 0x270163A7: dec eax */ 10791 _flag_k = FK_DEC; 10792 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 10793 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 10794 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 10795 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 10796 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 10797 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 10798 esp = ebp; /* 0x270163B3: mov esp, ebp */ 10799 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 10800 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 10801 RECOMP_REGS_OUT(); 10802 } 10803 10804 void sub_27016337(void) { 10805 int _fpu_cmp = 0; 10806 uint32_t _cf = 0; 10807 int _df = 1; 10808 uint32_t _flag_k = FK_NONE; 10809 uint32_t _flag_a = 0, _flag_b = 0; 10810 uint32_t _itail_tgt = 0; 10811 RECOMP_REGS_LOCALS 10812 RECOMP_ENTER(0x27016337u); 10813 10814 L_27016337: 10815 MEM32(edx) = ecx; /* 0x27016337: mov dword ptr [edx], ecx */ 10816 MEM32(ecx + 0x4) = edx; /* 0x27016339: mov dword ptr [ecx + 4], edx */ 10817 ecx = MEM32(eax + 0x4); /* 0x2701633C: mov ecx, dword ptr [eax + 4] */ 10818 ecx = MEM32(ecx); /* 0x2701633F: mov ecx, dword ptr [ecx] */ 10819 edx = MEM32(eax + 0x4); /* 0x27016341: mov edx, dword ptr [eax + 4] */ 10820 SET_LO8(edx, MEM8(edx + 0x18)); /* 0x27016344: mov dl, byte ptr [edx + 0x18] */ 10821 MEM8(ecx + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016347: mov byte ptr [ecx + 0x18], dl */ 10822 edx = MEM32(eax + 0x4); /* 0x2701634A: mov edx, dword ptr [eax + 4] */ 10823 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701634D: mov byte ptr [edx + 0x18], bl */ 10824 ecx = MEM32(ecx); /* 0x27016350: mov ecx, dword ptr [ecx] */ 10825 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016352: mov byte ptr [ecx + 0x18], bl */ 10826 ecx = MEM32(eax + 0x4); /* 0x27016355: mov ecx, dword ptr [eax + 4] */ 10827 edx = MEM32(ecx); /* 0x27016358: mov edx, dword ptr [ecx] */ 10828 esi = MEM32(edx + 0x8); /* 0x2701635A: mov esi, dword ptr [edx + 8] */ 10829 MEM32(ecx) = esi; /* 0x2701635D: mov dword ptr [ecx], esi */ 10830 esi = MEM32(edx + 0x8); /* 0x2701635F: mov esi, dword ptr [edx + 8] */ 10831 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27016362: cmp esi, dword ptr [edi + 8] */ 10832 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10834 _flag_k = FK_CMP; 10835 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701636A; /* 0x27016365: je 0x2701636a */ 10836 L_27016367: 10837 MEM32(esi + 0x4) = ecx; /* 0x27016367: mov dword ptr [esi + 4], ecx */ 10838 L_2701636A: 10839 esi = MEM32(ecx + 0x4); /* 0x2701636A: mov esi, dword ptr [ecx + 4] */ 10840 MEM32(edx + 0x4) = esi; /* 0x2701636D: mov dword ptr [edx + 4], esi */ 10841 esi = MEM32(edi + 0x4); /* 0x27016370: mov esi, dword ptr [edi + 4] */ 10842 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27016373: cmp ecx, dword ptr [esi + 4] */ 10843 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10845 _flag_k = FK_CMP; 10846 if (CMP_NE(_flag_a, _flag_b)) goto L_2701637D; /* 0x27016376: jne 0x2701637d */ 10847 L_27016378: 10848 MEM32(esi + 0x4) = edx; /* 0x27016378: mov dword ptr [esi + 4], edx */ 10849 goto L_2701638C; /* 0x2701637B: jmp 0x2701638c */ 10850 L_2701637D: 10851 esi = MEM32(ecx + 0x4); /* 0x2701637D: mov esi, dword ptr [ecx + 4] */ 10852 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27016380: cmp ecx, dword ptr [esi + 8] */ 10853 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10855 _flag_k = FK_CMP; 10856 if (CMP_NE(_flag_a, _flag_b)) goto L_2701638A; /* 0x27016383: jne 0x2701638a */ 10857 L_27016385: 10858 MEM32(esi + 0x8) = edx; /* 0x27016385: mov dword ptr [esi + 8], edx */ 10859 goto L_2701638C; /* 0x27016388: jmp 0x2701638c */ 10860 L_2701638A: 10861 MEM32(esi) = edx; /* 0x2701638A: mov dword ptr [esi], edx */ 10862 L_2701638C: 10863 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 10864 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 10865 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 10866 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 10867 PUSH32(esp, edx); /* 0x27016398: push edx */ 10868 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 10869 RECOMP_FLAGS_IN(); 10870 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 10871 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 10872 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10873 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10874 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 10875 _flag_k = FK_ADD; 10876 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10877 eax = eax - 1; /* 0x270163A7: dec eax */ 10878 _flag_k = FK_DEC; 10879 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 10880 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 10881 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 10882 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 10883 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 10884 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 10885 esp = ebp; /* 0x270163B3: mov esp, ebp */ 10886 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 10887 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 10888 RECOMP_REGS_OUT(); 10889 } 10890 10891 void sub_2701638C(void) { 10892 int _fpu_cmp = 0; 10893 uint32_t _cf = 0; 10894 int _df = 1; 10895 uint32_t _flag_k = FK_NONE; 10896 uint32_t _flag_a = 0, _flag_b = 0; 10897 uint32_t _itail_tgt = 0; 10898 RECOMP_REGS_LOCALS 10899 RECOMP_ENTER(0x2701638Cu); 10900 10901 L_2701638C: 10902 MEM32(edx + 0x8) = ecx; /* 0x2701638C: mov dword ptr [edx + 8], ecx */ 10903 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 10904 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 10905 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 10906 PUSH32(esp, edx); /* 0x27016398: push edx */ 10907 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 10908 RECOMP_FLAGS_IN(); 10909 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 10910 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 10911 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10912 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10913 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 10914 _flag_k = FK_ADD; 10915 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10916 eax = eax - 1; /* 0x270163A7: dec eax */ 10917 _flag_k = FK_DEC; 10918 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 10919 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 10920 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 10921 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 10922 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 10923 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 10924 esp = ebp; /* 0x270163B3: mov esp, ebp */ 10925 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 10926 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 10927 RECOMP_REGS_OUT(); 10928 } 10929 10930 void sub_2701638F(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(0x2701638Fu); 10939 10940 L_2701638F: 10941 MEM32(ecx + 0x4) = edx; /* 0x2701638F: mov dword ptr [ecx + 4], edx */ 10942 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 10943 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 10944 PUSH32(esp, edx); /* 0x27016398: push edx */ 10945 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 10946 RECOMP_FLAGS_IN(); 10947 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 10948 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 10949 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10950 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10951 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 10952 _flag_k = FK_ADD; 10953 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10954 eax = eax - 1; /* 0x270163A7: dec eax */ 10955 _flag_k = FK_DEC; 10956 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 10957 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 10958 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 10959 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 10960 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 10961 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 10962 esp = ebp; /* 0x270163B3: mov esp, ebp */ 10963 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 10964 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 10965 RECOMP_REGS_OUT(); 10966 } 10967 10968 void sub_27016392(void) { 10969 int _fpu_cmp = 0; 10970 uint32_t _cf = 0; 10971 int _df = 1; 10972 uint32_t _flag_k = FK_NONE; 10973 uint32_t _flag_a = 0, _flag_b = 0; 10974 uint32_t _itail_tgt = 0; 10975 RECOMP_REGS_LOCALS 10976 RECOMP_ENTER(0x27016392u); 10977 10978 L_27016392: 10979 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016392: mov byte ptr [eax + 0x18], bl */ 10980 edx = MEM32(ebp + (-0x4)); /* 0x27016395: mov edx, dword ptr [ebp - 4] */ 10981 PUSH32(esp, edx); /* 0x27016398: push edx */ 10982 RECOMP_ICALL(0x27026DA4u); /* 0x27016399: call 0x27026da4 */ /* not lifted */ 10983 RECOMP_FLAGS_IN(); 10984 eax = MEM32(edi + 0x10); /* 0x2701639E: mov eax, dword ptr [edi + 0x10] */ 10985 ecx = MEM32(ebp + 0xC); /* 0x270163A1: mov ecx, dword ptr [ebp + 0xc] */ 10986 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10988 esp = esp + 4; /* 0x270163A4: add esp, 4 */ 10989 _flag_k = FK_ADD; 10990 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10991 eax = eax - 1; /* 0x270163A7: dec eax */ 10992 _flag_k = FK_DEC; 10993 MEM32(edi + 0x10) = eax; /* 0x270163A8: mov dword ptr [edi + 0x10], eax */ 10994 eax = MEM32(ebp + 0x8); /* 0x270163AB: mov eax, dword ptr [ebp + 8] */ 10995 edi = POP32_VAL(esp); /* 0x270163AE: pop edi */ 10996 esi = POP32_VAL(esp); /* 0x270163AF: pop esi */ 10997 MEM32(eax) = ecx; /* 0x270163B0: mov dword ptr [eax], ecx */ 10998 ebx = POP32_VAL(esp); /* 0x270163B2: pop ebx */ 10999 esp = ebp; /* 0x270163B3: mov esp, ebp */ 11000 ebp = POP32_VAL(esp); /* 0x270163B5: pop ebp */ 11001 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270163B6: ret 8 */ 11002 RECOMP_REGS_OUT(); 11003 } 11004 11005 void sub_270163C0(void) { 11006 int _fpu_cmp = 0; 11007 uint32_t _cf = 0; 11008 int _df = 1; 11009 uint32_t _flag_k = FK_NONE; 11010 uint32_t _flag_a = 0, _flag_b = 0; 11011 uint32_t _itail_tgt = 0; 11012 RECOMP_REGS_LOCALS 11013 RECOMP_ENTER(0x270163C0u); 11014 11015 L_270163C0: 11016 PUSH32(esp, ebp); /* 0x270163C0: push ebp */ 11017 ebp = esp; /* 0x270163C1: mov ebp, esp */ 11018 PUSH32(esp, ebx); /* 0x270163C3: push ebx */ 11019 PUSH32(esp, esi); /* 0x270163C4: push esi */ 11020 ebx = ecx; /* 0x270163C5: mov ebx, ecx */ 11021 eax = MEM32(ebx + 0x8); /* 0x270163C7: mov eax, dword ptr [ebx + 8] */ 11022 PUSH32(esp, edi); /* 0x270163CA: push edi */ 11023 edi = MEM32(ebp + 0x8); /* 0x270163CB: mov edi, dword ptr [ebp + 8] */ 11024 /* cmp edi, eax */ /* 0x270163CE: cmp edi, eax */ 11025 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11027 _flag_k = FK_CMP; 11028 esi = edi; /* 0x270163D0: mov esi, edi */ 11029 if (CMP_EQ(_flag_a, _flag_b)) goto L_270163F3; /* 0x270163D2: je 0x270163f3 */ 11030 L_270163D4: 11031 eax = MEM32(esi + 0x8); /* 0x270163D4: mov eax, dword ptr [esi + 8] */ 11032 PUSH32(esp, eax); /* 0x270163D7: push eax */ 11033 ecx = ebx; /* 0x270163D8: mov ecx, ebx */ 11034 RECOMP_ICALL(0x270163C0u); /* 0x270163DA: call 0x270163c0 */ /* not lifted */ 11035 RECOMP_FLAGS_IN(); 11036 esi = MEM32(esi); /* 0x270163DF: mov esi, dword ptr [esi] */ 11037 PUSH32(esp, edi); /* 0x270163E1: push edi */ 11038 RECOMP_ICALL(0x27026DA4u); /* 0x270163E2: call 0x27026da4 */ /* not lifted */ 11039 RECOMP_FLAGS_IN(); 11040 eax = MEM32(ebx + 0x8); /* 0x270163E7: mov eax, dword ptr [ebx + 8] */ 11041 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11042 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11043 esp = esp + 4; /* 0x270163EA: add esp, 4 */ 11044 _flag_k = FK_ADD; 11045 /* cmp esi, eax */ /* 0x270163ED: cmp esi, eax */ 11046 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 11047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11048 _flag_k = FK_CMP; 11049 edi = esi; /* 0x270163EF: mov edi, esi */ 11050 RECOMP_BACKEDGE(); 11051 if (CMP_NE(_flag_a, _flag_b)) goto L_270163D4; /* 0x270163F1: jne 0x270163d4 */ 11052 L_270163F3: 11053 edi = POP32_VAL(esp); /* 0x270163F3: pop edi */ 11054 esi = POP32_VAL(esp); /* 0x270163F4: pop esi */ 11055 ebx = POP32_VAL(esp); /* 0x270163F5: pop ebx */ 11056 ebp = POP32_VAL(esp); /* 0x270163F6: pop ebp */ 11057 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270163F7: ret 4 */ 11058 RECOMP_REGS_OUT(); 11059 } 11060 11061 void sub_27016400(void) { 11062 int _fpu_cmp = 0; 11063 uint32_t _cf = 0; 11064 int _df = 1; 11065 uint32_t _flag_k = FK_NONE; 11066 uint32_t _flag_a = 0, _flag_b = 0; 11067 uint32_t _itail_tgt = 0; 11068 RECOMP_REGS_LOCALS 11069 RECOMP_ENTER(0x27016400u); 11070 11071 L_27016400: 11072 PUSH32(esp, ebp); /* 0x27016400: push ebp */ 11073 ebp = esp; /* 0x27016401: mov ebp, esp */ 11074 PUSH32(esp, ecx); /* 0x27016403: push ecx */ 11075 PUSH32(esp, ebx); /* 0x27016404: push ebx */ 11076 PUSH32(esp, esi); /* 0x27016405: push esi */ 11077 PUSH32(esp, edi); /* 0x27016406: push edi */ 11078 PUSH32(esp, 0x1Cu); /* 0x27016407: push 0x1c */ 11079 esi = ecx; /* 0x27016409: mov esi, ecx */ 11080 RECOMP_ICALL(0x27026EA4u); /* 0x2701640B: call 0x27026ea4 */ /* not lifted */ 11081 RECOMP_FLAGS_IN(); 11082 edi = MEM32(ebp + 0x10); /* 0x27016410: mov edi, dword ptr [ebp + 0x10] */ 11083 ebx = MEM32(ebp + 0x14); /* 0x27016413: mov ebx, dword ptr [ebp + 0x14] */ 11084 MEM32(eax + 0x4) = edi; /* 0x27016416: mov dword ptr [eax + 4], edi */ 11085 MEM8(eax + 0x18) = (uint8_t)(0); /* 0x27016419: mov byte ptr [eax + 0x18], 0 */ 11086 MEM8(eax + 0x19) = (uint8_t)(0); /* 0x2701641D: mov byte ptr [eax + 0x19], 0 */ 11087 ecx = MEM32(esi + 0x8); /* 0x27016421: mov ecx, dword ptr [esi + 8] */ 11088 MEM32(eax) = ecx; /* 0x27016424: mov dword ptr [eax], ecx */ 11089 edx = MEM32(esi + 0x8); /* 0x27016426: mov edx, dword ptr [esi + 8] */ 11090 MEM32(ebp + (-0x4)) = eax; /* 0x27016429: mov dword ptr [ebp - 4], eax */ 11091 MEM32(eax + 0x8) = edx; /* 0x2701642C: mov dword ptr [eax + 8], edx */ 11092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 11093 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11094 eax = eax + 0xCu; /* 0x2701642F: add eax, 0xc */ 11095 _flag_k = FK_ADD; 11096 PUSH32(esp, ebx); /* 0x27016432: push ebx */ 11097 PUSH32(esp, eax); /* 0x27016433: push eax */ 11098 RECOMP_ICALL(0x27016720u); /* 0x27016434: call 0x27016720 */ /* not lifted */ 11099 RECOMP_FLAGS_IN(); 11100 ecx = MEM32(esi + 0x10); /* 0x27016439: mov ecx, dword ptr [esi + 0x10] */ 11101 eax = MEM32(esi + 0x4); /* 0x2701643C: mov eax, dword ptr [esi + 4] */ 11102 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11103 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11104 esp = esp + 0xCu; /* 0x2701643F: add esp, 0xc */ 11105 _flag_k = FK_ADD; 11106 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11107 ecx = ecx + 1; /* 0x27016442: inc ecx */ 11108 _flag_k = FK_INC; 11109 /* cmp edi, eax */ /* 0x27016443: cmp edi, eax */ 11110 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11112 _flag_k = FK_CMP; 11113 MEM32(esi + 0x10) = ecx; /* 0x27016445: mov dword ptr [esi + 0x10], ecx */ 11114 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701646C; /* 0x27016448: je 0x2701646c */ 11115 L_2701644A: 11116 eax = MEM32(ebp + 0xC); /* 0x2701644A: mov eax, dword ptr [ebp + 0xc] */ 11117 /* cmp eax, MEM32(esi + 0x8) */ /* 0x2701644D: cmp eax, dword ptr [esi + 8] */ 11118 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11120 _flag_k = FK_CMP; 11121 if (CMP_NE(_flag_a, _flag_b)) goto L_2701646C; /* 0x27016450: jne 0x2701646c */ 11122 L_27016452: 11123 ecx = MEM32(ebx); /* 0x27016452: mov ecx, dword ptr [ebx] */ 11124 /* cmp ecx, MEM32(edi + 0xC) */ /* 0x27016454: cmp ecx, dword ptr [edi + 0xc] */ 11125 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 11126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11127 _flag_k = FK_CMP; 11128 if (CMP_L(_flag_a, _flag_b)) goto L_2701646C; /* 0x27016457: jl 0x2701646c */ 11129 L_27016459: 11130 ecx = MEM32(ebp + (-0x4)); /* 0x27016459: mov ecx, dword ptr [ebp - 4] */ 11131 MEM32(edi + 0x8) = ecx; /* 0x2701645C: mov dword ptr [edi + 8], ecx */ 11132 eax = MEM32(esi + 0x4); /* 0x2701645F: mov eax, dword ptr [esi + 4] */ 11133 /* cmp edi, MEM32(eax + 0x8) */ /* 0x27016462: cmp edi, dword ptr [eax + 8] */ 11134 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 11135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11136 _flag_k = FK_CMP; 11137 if (CMP_NE(_flag_a, _flag_b)) goto L_2701648C; /* 0x27016465: jne 0x2701648c */ 11138 L_27016467: 11139 MEM32(eax + 0x8) = ecx; /* 0x27016467: mov dword ptr [eax + 8], ecx */ 11140 goto L_2701648C; /* 0x2701646A: jmp 0x2701648c */ 11141 L_2701646C: 11142 ecx = MEM32(ebp + (-0x4)); /* 0x2701646C: mov ecx, dword ptr [ebp - 4] */ 11143 MEM32(edi) = ecx; /* 0x2701646F: mov dword ptr [edi], ecx */ 11144 eax = MEM32(esi + 0x4); /* 0x27016471: mov eax, dword ptr [esi + 4] */ 11145 /* cmp edi, eax */ /* 0x27016474: cmp edi, eax */ 11146 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11148 _flag_k = FK_CMP; 11149 if (CMP_NE(_flag_a, _flag_b)) goto L_27016483; /* 0x27016476: jne 0x27016483 */ 11150 L_27016478: 11151 MEM32(eax + 0x4) = ecx; /* 0x27016478: mov dword ptr [eax + 4], ecx */ 11152 edx = MEM32(esi + 0x4); /* 0x2701647B: mov edx, dword ptr [esi + 4] */ 11153 MEM32(edx + 0x8) = ecx; /* 0x2701647E: mov dword ptr [edx + 8], ecx */ 11154 goto L_2701648C; /* 0x27016481: jmp 0x2701648c */ 11155 L_27016483: 11156 /* cmp edi, MEM32(eax) */ /* 0x27016483: cmp edi, dword ptr [eax] */ 11157 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 11158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11159 _flag_k = FK_CMP; 11160 if (CMP_NE(_flag_a, _flag_b)) goto L_2701648C; /* 0x27016485: jne 0x2701648c */ 11161 L_27016487: 11162 ecx = MEM32(ebp + (-0x4)); /* 0x27016487: mov ecx, dword ptr [ebp - 4] */ 11163 MEM32(eax) = ecx; /* 0x2701648A: mov dword ptr [eax], ecx */ 11164 L_2701648C: 11165 edx = MEM32(esi + 0x4); /* 0x2701648C: mov edx, dword ptr [esi + 4] */ 11166 eax = MEM32(ebp + (-0x4)); /* 0x2701648F: mov eax, dword ptr [ebp - 4] */ 11167 /* cmp eax, MEM32(edx + 0x4) */ /* 0x27016492: cmp eax, dword ptr [edx + 4] */ 11168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11170 _flag_k = FK_CMP; 11171 SET_LO8(ebx, 1); /* 0x27016495: mov bl, 1 */ 11172 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701661D; /* 0x27016497: je 0x2701661d */ 11173 L_2701649D: 11174 ecx = MEM32(eax + 0x4); /* 0x2701649D: mov ecx, dword ptr [eax + 4] */ 11175 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270164A0: mov dl, byte ptr [ecx + 0x18] */ 11176 /* test LO8(edx), LO8(edx) */ /* 0x270164A3: test dl, dl */ 11177 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11178 _cf = 0; 11179 _flag_k = FK_NARROW(FK_TEST, 24); 11180 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701661D; /* 0x270164A5: jne 0x2701661d */ 11181 L_270164AB: 11182 edi = MEM32(ecx + 0x4); /* 0x270164AB: mov edi, dword ptr [ecx + 4] */ 11183 edx = MEM32(edi); /* 0x270164AE: mov edx, dword ptr [edi] */ 11184 /* cmp ecx, edx */ /* 0x270164B0: cmp ecx, edx */ 11185 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11187 _flag_k = FK_CMP; 11188 if (CMP_NE(_flag_a, _flag_b)) goto L_27016579; /* 0x270164B2: jne 0x27016579 */ 11189 L_270164B8: 11190 edx = MEM32(edi + 0x8); /* 0x270164B8: mov edx, dword ptr [edi + 8] */ 11191 /* cmp MEM8(edx + 0x18), 0 */ /* 0x270164BB: cmp byte ptr [edx + 0x18], 0 */ 11192 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 11193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11194 _flag_k = FK_NARROW(FK_CMP, 24); 11195 if (CMP_NE(_flag_a, _flag_b)) goto L_270164DC; /* 0x270164BF: jne 0x270164dc */ 11196 L_270164C1: 11197 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C1: mov byte ptr [ecx + 0x18], bl */ 11198 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C4: mov byte ptr [edx + 0x18], bl */ 11199 ecx = MEM32(eax + 0x4); /* 0x270164C7: mov ecx, dword ptr [eax + 4] */ 11200 edx = MEM32(ecx + 0x4); /* 0x270164CA: mov edx, dword ptr [ecx + 4] */ 11201 MEM8(edx + 0x18) = (uint8_t)(0); /* 0x270164CD: mov byte ptr [edx + 0x18], 0 */ 11202 eax = MEM32(eax + 0x4); /* 0x270164D1: mov eax, dword ptr [eax + 4] */ 11203 eax = MEM32(eax + 0x4); /* 0x270164D4: mov eax, dword ptr [eax + 4] */ 11204 goto L_27016611; /* 0x270164D7: jmp 0x27016611 */ 11205 L_270164DC: 11206 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270164DC: cmp eax, dword ptr [ecx + 8] */ 11207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 11208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11209 _flag_k = FK_CMP; 11210 if (CMP_NE(_flag_a, _flag_b)) goto L_2701651B; /* 0x270164DF: jne 0x2701651b */ 11211 L_270164E1: 11212 eax = ecx; /* 0x270164E1: mov eax, ecx */ 11213 ecx = MEM32(eax + 0x8); /* 0x270164E3: mov ecx, dword ptr [eax + 8] */ 11214 edx = MEM32(ecx); /* 0x270164E6: mov edx, dword ptr [ecx] */ 11215 MEM32(eax + 0x8) = edx; /* 0x270164E8: mov dword ptr [eax + 8], edx */ 11216 edx = MEM32(ecx); /* 0x270164EB: mov edx, dword ptr [ecx] */ 11217 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270164ED: cmp edx, dword ptr [esi + 8] */ 11218 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11220 _flag_k = FK_CMP; 11221 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164F5; /* 0x270164F0: je 0x270164f5 */ 11222 L_270164F2: 11223 MEM32(edx + 0x4) = eax; /* 0x270164F2: mov dword ptr [edx + 4], eax */ 11224 L_270164F5: 11225 edx = MEM32(eax + 0x4); /* 0x270164F5: mov edx, dword ptr [eax + 4] */ 11226 MEM32(ecx + 0x4) = edx; /* 0x270164F8: mov dword ptr [ecx + 4], edx */ 11227 edx = MEM32(esi + 0x4); /* 0x270164FB: mov edx, dword ptr [esi + 4] */ 11228 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270164FE: cmp eax, dword ptr [edx + 4] */ 11229 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11231 _flag_k = FK_CMP; 11232 if (CMP_NE(_flag_a, _flag_b)) goto L_27016508; /* 0x27016501: jne 0x27016508 */ 11233 L_27016503: 11234 MEM32(edx + 0x4) = ecx; /* 0x27016503: mov dword ptr [edx + 4], ecx */ 11235 goto L_27016516; /* 0x27016506: jmp 0x27016516 */ 11236 L_27016508: 11237 edx = MEM32(eax + 0x4); /* 0x27016508: mov edx, dword ptr [eax + 4] */ 11238 /* cmp eax, MEM32(edx) */ /* 0x2701650B: cmp eax, dword ptr [edx] */ 11239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 11240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11241 _flag_k = FK_CMP; 11242 if (CMP_NE(_flag_a, _flag_b)) goto L_27016513; /* 0x2701650D: jne 0x27016513 */ 11243 L_2701650F: 11244 MEM32(edx) = ecx; /* 0x2701650F: mov dword ptr [edx], ecx */ 11245 goto L_27016516; /* 0x27016511: jmp 0x27016516 */ 11246 L_27016513: 11247 MEM32(edx + 0x8) = ecx; /* 0x27016513: mov dword ptr [edx + 8], ecx */ 11248 L_27016516: 11249 MEM32(ecx) = eax; /* 0x27016516: mov dword ptr [ecx], eax */ 11250 MEM32(eax + 0x4) = ecx; /* 0x27016518: mov dword ptr [eax + 4], ecx */ 11251 L_2701651B: 11252 ecx = MEM32(eax + 0x4); /* 0x2701651B: mov ecx, dword ptr [eax + 4] */ 11253 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701651E: mov byte ptr [ecx + 0x18], bl */ 11254 edx = MEM32(eax + 0x4); /* 0x27016521: mov edx, dword ptr [eax + 4] */ 11255 ecx = MEM32(edx + 0x4); /* 0x27016524: mov ecx, dword ptr [edx + 4] */ 11256 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016527: mov byte ptr [ecx + 0x18], 0 */ 11257 edx = MEM32(eax + 0x4); /* 0x2701652B: mov edx, dword ptr [eax + 4] */ 11258 ecx = MEM32(edx + 0x4); /* 0x2701652E: mov ecx, dword ptr [edx + 4] */ 11259 edx = MEM32(ecx); /* 0x27016531: mov edx, dword ptr [ecx] */ 11260 edi = MEM32(edx + 0x8); /* 0x27016533: mov edi, dword ptr [edx + 8] */ 11261 MEM32(ecx) = edi; /* 0x27016536: mov dword ptr [ecx], edi */ 11262 edi = MEM32(edx + 0x8); /* 0x27016538: mov edi, dword ptr [edx + 8] */ 11263 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701653B: cmp edi, dword ptr [esi + 8] */ 11264 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11266 _flag_k = FK_CMP; 11267 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016543; /* 0x2701653E: je 0x27016543 */ 11268 L_27016540: 11269 MEM32(edi + 0x4) = ecx; /* 0x27016540: mov dword ptr [edi + 4], ecx */ 11270 L_27016543: 11271 edi = MEM32(ecx + 0x4); /* 0x27016543: mov edi, dword ptr [ecx + 4] */ 11272 MEM32(edx + 0x4) = edi; /* 0x27016546: mov dword ptr [edx + 4], edi */ 11273 edi = MEM32(esi + 0x4); /* 0x27016549: mov edi, dword ptr [esi + 4] */ 11274 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701654C: cmp ecx, dword ptr [edi + 4] */ 11275 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11277 _flag_k = FK_CMP; 11278 if (CMP_NE(_flag_a, _flag_b)) goto L_2701655C; /* 0x2701654F: jne 0x2701655c */ 11279 L_27016551: 11280 MEM32(edi + 0x4) = edx; /* 0x27016551: mov dword ptr [edi + 4], edx */ 11281 MEM32(edx + 0x8) = ecx; /* 0x27016554: mov dword ptr [edx + 8], ecx */ 11282 goto L_2701660E; /* 0x27016557: jmp 0x2701660e */ 11283 L_2701655C: 11284 edi = MEM32(ecx + 0x4); /* 0x2701655C: mov edi, dword ptr [ecx + 4] */ 11285 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701655F: cmp ecx, dword ptr [edi + 8] */ 11286 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11288 _flag_k = FK_CMP; 11289 if (CMP_NE(_flag_a, _flag_b)) goto L_2701656F; /* 0x27016562: jne 0x2701656f */ 11290 L_27016564: 11291 MEM32(edi + 0x8) = edx; /* 0x27016564: mov dword ptr [edi + 8], edx */ 11292 MEM32(edx + 0x8) = ecx; /* 0x27016567: mov dword ptr [edx + 8], ecx */ 11293 goto L_2701660E; /* 0x2701656A: jmp 0x2701660e */ 11294 L_2701656F: 11295 MEM32(edi) = edx; /* 0x2701656F: mov dword ptr [edi], edx */ 11296 MEM32(edx + 0x8) = ecx; /* 0x27016571: mov dword ptr [edx + 8], ecx */ 11297 goto L_2701660E; /* 0x27016574: jmp 0x2701660e */ 11298 L_27016579: 11299 /* cmp MEM8(edx + 0x18), 0 */ /* 0x27016579: cmp byte ptr [edx + 0x18], 0 */ 11300 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 11301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11302 _flag_k = FK_NARROW(FK_CMP, 24); 11303 RECOMP_BACKEDGE(); 11304 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164C1; /* 0x2701657D: je 0x270164c1 */ 11305 L_27016583: 11306 /* cmp eax, MEM32(ecx) */ /* 0x27016583: cmp eax, dword ptr [ecx] */ 11307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 11308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11309 _flag_k = FK_CMP; 11310 if (CMP_NE(_flag_a, _flag_b)) goto L_270165C3; /* 0x27016585: jne 0x270165c3 */ 11311 L_27016587: 11312 eax = ecx; /* 0x27016587: mov eax, ecx */ 11313 ecx = MEM32(eax); /* 0x27016589: mov ecx, dword ptr [eax] */ 11314 edx = MEM32(ecx + 0x8); /* 0x2701658B: mov edx, dword ptr [ecx + 8] */ 11315 MEM32(eax) = edx; /* 0x2701658E: mov dword ptr [eax], edx */ 11316 edx = MEM32(ecx + 0x8); /* 0x27016590: mov edx, dword ptr [ecx + 8] */ 11317 /* cmp edx, MEM32(esi + 0x8) */ /* 0x27016593: cmp edx, dword ptr [esi + 8] */ 11318 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11320 _flag_k = FK_CMP; 11321 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701659B; /* 0x27016596: je 0x2701659b */ 11322 L_27016598: 11323 MEM32(edx + 0x4) = eax; /* 0x27016598: mov dword ptr [edx + 4], eax */ 11324 L_2701659B: 11325 edx = MEM32(eax + 0x4); /* 0x2701659B: mov edx, dword ptr [eax + 4] */ 11326 MEM32(ecx + 0x4) = edx; /* 0x2701659E: mov dword ptr [ecx + 4], edx */ 11327 edx = MEM32(esi + 0x4); /* 0x270165A1: mov edx, dword ptr [esi + 4] */ 11328 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270165A4: cmp eax, dword ptr [edx + 4] */ 11329 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11331 _flag_k = FK_CMP; 11332 if (CMP_NE(_flag_a, _flag_b)) goto L_270165AE; /* 0x270165A7: jne 0x270165ae */ 11333 L_270165A9: 11334 MEM32(edx + 0x4) = ecx; /* 0x270165A9: mov dword ptr [edx + 4], ecx */ 11335 goto L_270165BD; /* 0x270165AC: jmp 0x270165bd */ 11336 L_270165AE: 11337 edx = MEM32(eax + 0x4); /* 0x270165AE: mov edx, dword ptr [eax + 4] */ 11338 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270165B1: cmp eax, dword ptr [edx + 8] */ 11339 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 11340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11341 _flag_k = FK_CMP; 11342 if (CMP_NE(_flag_a, _flag_b)) goto L_270165BB; /* 0x270165B4: jne 0x270165bb */ 11343 L_270165B6: 11344 MEM32(edx + 0x8) = ecx; /* 0x270165B6: mov dword ptr [edx + 8], ecx */ 11345 goto L_270165BD; /* 0x270165B9: jmp 0x270165bd */ 11346 L_270165BB: 11347 MEM32(edx) = ecx; /* 0x270165BB: mov dword ptr [edx], ecx */ 11348 L_270165BD: 11349 MEM32(ecx + 0x8) = eax; /* 0x270165BD: mov dword ptr [ecx + 8], eax */ 11350 MEM32(eax + 0x4) = ecx; /* 0x270165C0: mov dword ptr [eax + 4], ecx */ 11351 L_270165C3: 11352 ecx = MEM32(eax + 0x4); /* 0x270165C3: mov ecx, dword ptr [eax + 4] */ 11353 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270165C6: mov byte ptr [ecx + 0x18], bl */ 11354 edx = MEM32(eax + 0x4); /* 0x270165C9: mov edx, dword ptr [eax + 4] */ 11355 ecx = MEM32(edx + 0x4); /* 0x270165CC: mov ecx, dword ptr [edx + 4] */ 11356 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270165CF: mov byte ptr [ecx + 0x18], 0 */ 11357 edx = MEM32(eax + 0x4); /* 0x270165D3: mov edx, dword ptr [eax + 4] */ 11358 ecx = MEM32(edx + 0x4); /* 0x270165D6: mov ecx, dword ptr [edx + 4] */ 11359 edx = MEM32(ecx + 0x8); /* 0x270165D9: mov edx, dword ptr [ecx + 8] */ 11360 edi = MEM32(edx); /* 0x270165DC: mov edi, dword ptr [edx] */ 11361 MEM32(ecx + 0x8) = edi; /* 0x270165DE: mov dword ptr [ecx + 8], edi */ 11362 edi = MEM32(edx); /* 0x270165E1: mov edi, dword ptr [edx] */ 11363 /* cmp edi, MEM32(esi + 0x8) */ /* 0x270165E3: cmp edi, dword ptr [esi + 8] */ 11364 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11366 _flag_k = FK_CMP; 11367 if (CMP_EQ(_flag_a, _flag_b)) goto L_270165EB; /* 0x270165E6: je 0x270165eb */ 11368 L_270165E8: 11369 MEM32(edi + 0x4) = ecx; /* 0x270165E8: mov dword ptr [edi + 4], ecx */ 11370 L_270165EB: 11371 edi = MEM32(ecx + 0x4); /* 0x270165EB: mov edi, dword ptr [ecx + 4] */ 11372 MEM32(edx + 0x4) = edi; /* 0x270165EE: mov dword ptr [edx + 4], edi */ 11373 edi = MEM32(esi + 0x4); /* 0x270165F1: mov edi, dword ptr [esi + 4] */ 11374 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x270165F4: cmp ecx, dword ptr [edi + 4] */ 11375 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11377 _flag_k = FK_CMP; 11378 if (CMP_NE(_flag_a, _flag_b)) goto L_270165FE; /* 0x270165F7: jne 0x270165fe */ 11379 L_270165F9: 11380 MEM32(edi + 0x4) = edx; /* 0x270165F9: mov dword ptr [edi + 4], edx */ 11381 goto L_2701660C; /* 0x270165FC: jmp 0x2701660c */ 11382 L_270165FE: 11383 edi = MEM32(ecx + 0x4); /* 0x270165FE: mov edi, dword ptr [ecx + 4] */ 11384 /* cmp ecx, MEM32(edi) */ /* 0x27016601: cmp ecx, dword ptr [edi] */ 11385 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 11386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11387 _flag_k = FK_CMP; 11388 if (CMP_NE(_flag_a, _flag_b)) goto L_27016609; /* 0x27016603: jne 0x27016609 */ 11389 L_27016605: 11390 MEM32(edi) = edx; /* 0x27016605: mov dword ptr [edi], edx */ 11391 goto L_2701660C; /* 0x27016607: jmp 0x2701660c */ 11392 L_27016609: 11393 MEM32(edi + 0x8) = edx; /* 0x27016609: mov dword ptr [edi + 8], edx */ 11394 L_2701660C: 11395 MEM32(edx) = ecx; /* 0x2701660C: mov dword ptr [edx], ecx */ 11396 L_2701660E: 11397 MEM32(ecx + 0x4) = edx; /* 0x2701660E: mov dword ptr [ecx + 4], edx */ 11398 L_27016611: 11399 ecx = MEM32(esi + 0x4); /* 0x27016611: mov ecx, dword ptr [esi + 4] */ 11400 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016614: cmp eax, dword ptr [ecx + 4] */ 11401 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11403 _flag_k = FK_CMP; 11404 RECOMP_BACKEDGE(); 11405 if (CMP_NE(_flag_a, _flag_b)) goto L_2701649D; /* 0x27016617: jne 0x2701649d */ 11406 L_2701661D: 11407 edx = MEM32(esi + 0x4); /* 0x2701661D: mov edx, dword ptr [esi + 4] */ 11408 eax = MEM32(edx + 0x4); /* 0x27016620: mov eax, dword ptr [edx + 4] */ 11409 ecx = MEM32(ebp + (-0x4)); /* 0x27016623: mov ecx, dword ptr [ebp - 4] */ 11410 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016626: mov byte ptr [eax + 0x18], bl */ 11411 eax = MEM32(ebp + 0x8); /* 0x27016629: mov eax, dword ptr [ebp + 8] */ 11412 edi = POP32_VAL(esp); /* 0x2701662C: pop edi */ 11413 esi = POP32_VAL(esp); /* 0x2701662D: pop esi */ 11414 MEM32(eax) = ecx; /* 0x2701662E: mov dword ptr [eax], ecx */ 11415 ebx = POP32_VAL(esp); /* 0x27016630: pop ebx */ 11416 esp = ebp; /* 0x27016631: mov esp, ebp */ 11417 ebp = POP32_VAL(esp); /* 0x27016633: pop ebp */ 11418 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016634: ret 0x10 */ 11419 RECOMP_REGS_OUT(); 11420 } 11421 11422 void sub_2701649D(void) { 11423 int _fpu_cmp = 0; 11424 uint32_t _cf = 0; 11425 int _df = 1; 11426 uint32_t _flag_k = FK_NONE; 11427 uint32_t _flag_a = 0, _flag_b = 0; 11428 uint32_t _itail_tgt = 0; 11429 RECOMP_REGS_LOCALS 11430 RECOMP_ENTER(0x2701649Du); 11431 11432 L_2701649D: 11433 ecx = MEM32(eax + 0x4); /* 0x2701649D: mov ecx, dword ptr [eax + 4] */ 11434 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270164A0: mov dl, byte ptr [ecx + 0x18] */ 11435 /* test LO8(edx), LO8(edx) */ /* 0x270164A3: test dl, dl */ 11436 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11437 _cf = 0; 11438 _flag_k = FK_NARROW(FK_TEST, 24); 11439 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701661D; /* 0x270164A5: jne 0x2701661d */ 11440 L_270164AB: 11441 edi = MEM32(ecx + 0x4); /* 0x270164AB: mov edi, dword ptr [ecx + 4] */ 11442 edx = MEM32(edi); /* 0x270164AE: mov edx, dword ptr [edi] */ 11443 /* cmp ecx, edx */ /* 0x270164B0: cmp ecx, edx */ 11444 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11446 _flag_k = FK_CMP; 11447 if (CMP_NE(_flag_a, _flag_b)) goto L_27016579; /* 0x270164B2: jne 0x27016579 */ 11448 L_270164B8: 11449 edx = MEM32(edi + 0x8); /* 0x270164B8: mov edx, dword ptr [edi + 8] */ 11450 /* cmp MEM8(edx + 0x18), 0 */ /* 0x270164BB: cmp byte ptr [edx + 0x18], 0 */ 11451 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 11452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11453 _flag_k = FK_NARROW(FK_CMP, 24); 11454 if (CMP_NE(_flag_a, _flag_b)) goto L_270164DC; /* 0x270164BF: jne 0x270164dc */ 11455 L_270164C1: 11456 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C1: mov byte ptr [ecx + 0x18], bl */ 11457 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C4: mov byte ptr [edx + 0x18], bl */ 11458 ecx = MEM32(eax + 0x4); /* 0x270164C7: mov ecx, dword ptr [eax + 4] */ 11459 edx = MEM32(ecx + 0x4); /* 0x270164CA: mov edx, dword ptr [ecx + 4] */ 11460 MEM8(edx + 0x18) = (uint8_t)(0); /* 0x270164CD: mov byte ptr [edx + 0x18], 0 */ 11461 eax = MEM32(eax + 0x4); /* 0x270164D1: mov eax, dword ptr [eax + 4] */ 11462 eax = MEM32(eax + 0x4); /* 0x270164D4: mov eax, dword ptr [eax + 4] */ 11463 goto L_27016611; /* 0x270164D7: jmp 0x27016611 */ 11464 L_270164DC: 11465 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270164DC: cmp eax, dword ptr [ecx + 8] */ 11466 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 11467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11468 _flag_k = FK_CMP; 11469 if (CMP_NE(_flag_a, _flag_b)) goto L_2701651B; /* 0x270164DF: jne 0x2701651b */ 11470 L_270164E1: 11471 eax = ecx; /* 0x270164E1: mov eax, ecx */ 11472 ecx = MEM32(eax + 0x8); /* 0x270164E3: mov ecx, dword ptr [eax + 8] */ 11473 edx = MEM32(ecx); /* 0x270164E6: mov edx, dword ptr [ecx] */ 11474 MEM32(eax + 0x8) = edx; /* 0x270164E8: mov dword ptr [eax + 8], edx */ 11475 edx = MEM32(ecx); /* 0x270164EB: mov edx, dword ptr [ecx] */ 11476 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270164ED: cmp edx, dword ptr [esi + 8] */ 11477 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11479 _flag_k = FK_CMP; 11480 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164F5; /* 0x270164F0: je 0x270164f5 */ 11481 L_270164F2: 11482 MEM32(edx + 0x4) = eax; /* 0x270164F2: mov dword ptr [edx + 4], eax */ 11483 L_270164F5: 11484 edx = MEM32(eax + 0x4); /* 0x270164F5: mov edx, dword ptr [eax + 4] */ 11485 MEM32(ecx + 0x4) = edx; /* 0x270164F8: mov dword ptr [ecx + 4], edx */ 11486 edx = MEM32(esi + 0x4); /* 0x270164FB: mov edx, dword ptr [esi + 4] */ 11487 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270164FE: cmp eax, dword ptr [edx + 4] */ 11488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11490 _flag_k = FK_CMP; 11491 if (CMP_NE(_flag_a, _flag_b)) goto L_27016508; /* 0x27016501: jne 0x27016508 */ 11492 L_27016503: 11493 MEM32(edx + 0x4) = ecx; /* 0x27016503: mov dword ptr [edx + 4], ecx */ 11494 goto L_27016516; /* 0x27016506: jmp 0x27016516 */ 11495 L_27016508: 11496 edx = MEM32(eax + 0x4); /* 0x27016508: mov edx, dword ptr [eax + 4] */ 11497 /* cmp eax, MEM32(edx) */ /* 0x2701650B: cmp eax, dword ptr [edx] */ 11498 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 11499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11500 _flag_k = FK_CMP; 11501 if (CMP_NE(_flag_a, _flag_b)) goto L_27016513; /* 0x2701650D: jne 0x27016513 */ 11502 L_2701650F: 11503 MEM32(edx) = ecx; /* 0x2701650F: mov dword ptr [edx], ecx */ 11504 goto L_27016516; /* 0x27016511: jmp 0x27016516 */ 11505 L_27016513: 11506 MEM32(edx + 0x8) = ecx; /* 0x27016513: mov dword ptr [edx + 8], ecx */ 11507 L_27016516: 11508 MEM32(ecx) = eax; /* 0x27016516: mov dword ptr [ecx], eax */ 11509 MEM32(eax + 0x4) = ecx; /* 0x27016518: mov dword ptr [eax + 4], ecx */ 11510 L_2701651B: 11511 ecx = MEM32(eax + 0x4); /* 0x2701651B: mov ecx, dword ptr [eax + 4] */ 11512 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701651E: mov byte ptr [ecx + 0x18], bl */ 11513 edx = MEM32(eax + 0x4); /* 0x27016521: mov edx, dword ptr [eax + 4] */ 11514 ecx = MEM32(edx + 0x4); /* 0x27016524: mov ecx, dword ptr [edx + 4] */ 11515 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016527: mov byte ptr [ecx + 0x18], 0 */ 11516 edx = MEM32(eax + 0x4); /* 0x2701652B: mov edx, dword ptr [eax + 4] */ 11517 ecx = MEM32(edx + 0x4); /* 0x2701652E: mov ecx, dword ptr [edx + 4] */ 11518 edx = MEM32(ecx); /* 0x27016531: mov edx, dword ptr [ecx] */ 11519 edi = MEM32(edx + 0x8); /* 0x27016533: mov edi, dword ptr [edx + 8] */ 11520 MEM32(ecx) = edi; /* 0x27016536: mov dword ptr [ecx], edi */ 11521 edi = MEM32(edx + 0x8); /* 0x27016538: mov edi, dword ptr [edx + 8] */ 11522 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701653B: cmp edi, dword ptr [esi + 8] */ 11523 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11525 _flag_k = FK_CMP; 11526 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016543; /* 0x2701653E: je 0x27016543 */ 11527 L_27016540: 11528 MEM32(edi + 0x4) = ecx; /* 0x27016540: mov dword ptr [edi + 4], ecx */ 11529 L_27016543: 11530 edi = MEM32(ecx + 0x4); /* 0x27016543: mov edi, dword ptr [ecx + 4] */ 11531 MEM32(edx + 0x4) = edi; /* 0x27016546: mov dword ptr [edx + 4], edi */ 11532 edi = MEM32(esi + 0x4); /* 0x27016549: mov edi, dword ptr [esi + 4] */ 11533 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701654C: cmp ecx, dword ptr [edi + 4] */ 11534 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11536 _flag_k = FK_CMP; 11537 if (CMP_NE(_flag_a, _flag_b)) goto L_2701655C; /* 0x2701654F: jne 0x2701655c */ 11538 L_27016551: 11539 MEM32(edi + 0x4) = edx; /* 0x27016551: mov dword ptr [edi + 4], edx */ 11540 MEM32(edx + 0x8) = ecx; /* 0x27016554: mov dword ptr [edx + 8], ecx */ 11541 goto L_2701660E; /* 0x27016557: jmp 0x2701660e */ 11542 L_2701655C: 11543 edi = MEM32(ecx + 0x4); /* 0x2701655C: mov edi, dword ptr [ecx + 4] */ 11544 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701655F: cmp ecx, dword ptr [edi + 8] */ 11545 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11547 _flag_k = FK_CMP; 11548 if (CMP_NE(_flag_a, _flag_b)) goto L_2701656F; /* 0x27016562: jne 0x2701656f */ 11549 L_27016564: 11550 MEM32(edi + 0x8) = edx; /* 0x27016564: mov dword ptr [edi + 8], edx */ 11551 MEM32(edx + 0x8) = ecx; /* 0x27016567: mov dword ptr [edx + 8], ecx */ 11552 goto L_2701660E; /* 0x2701656A: jmp 0x2701660e */ 11553 L_2701656F: 11554 MEM32(edi) = edx; /* 0x2701656F: mov dword ptr [edi], edx */ 11555 MEM32(edx + 0x8) = ecx; /* 0x27016571: mov dword ptr [edx + 8], ecx */ 11556 goto L_2701660E; /* 0x27016574: jmp 0x2701660e */ 11557 L_27016579: 11558 /* cmp MEM8(edx + 0x18), 0 */ /* 0x27016579: cmp byte ptr [edx + 0x18], 0 */ 11559 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 11560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11561 _flag_k = FK_NARROW(FK_CMP, 24); 11562 RECOMP_BACKEDGE(); 11563 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164C1; /* 0x2701657D: je 0x270164c1 */ 11564 L_27016583: 11565 /* cmp eax, MEM32(ecx) */ /* 0x27016583: cmp eax, dword ptr [ecx] */ 11566 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 11567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11568 _flag_k = FK_CMP; 11569 if (CMP_NE(_flag_a, _flag_b)) goto L_270165C3; /* 0x27016585: jne 0x270165c3 */ 11570 L_27016587: 11571 eax = ecx; /* 0x27016587: mov eax, ecx */ 11572 ecx = MEM32(eax); /* 0x27016589: mov ecx, dword ptr [eax] */ 11573 edx = MEM32(ecx + 0x8); /* 0x2701658B: mov edx, dword ptr [ecx + 8] */ 11574 MEM32(eax) = edx; /* 0x2701658E: mov dword ptr [eax], edx */ 11575 edx = MEM32(ecx + 0x8); /* 0x27016590: mov edx, dword ptr [ecx + 8] */ 11576 /* cmp edx, MEM32(esi + 0x8) */ /* 0x27016593: cmp edx, dword ptr [esi + 8] */ 11577 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11579 _flag_k = FK_CMP; 11580 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701659B; /* 0x27016596: je 0x2701659b */ 11581 L_27016598: 11582 MEM32(edx + 0x4) = eax; /* 0x27016598: mov dword ptr [edx + 4], eax */ 11583 L_2701659B: 11584 edx = MEM32(eax + 0x4); /* 0x2701659B: mov edx, dword ptr [eax + 4] */ 11585 MEM32(ecx + 0x4) = edx; /* 0x2701659E: mov dword ptr [ecx + 4], edx */ 11586 edx = MEM32(esi + 0x4); /* 0x270165A1: mov edx, dword ptr [esi + 4] */ 11587 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270165A4: cmp eax, dword ptr [edx + 4] */ 11588 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11590 _flag_k = FK_CMP; 11591 if (CMP_NE(_flag_a, _flag_b)) goto L_270165AE; /* 0x270165A7: jne 0x270165ae */ 11592 L_270165A9: 11593 MEM32(edx + 0x4) = ecx; /* 0x270165A9: mov dword ptr [edx + 4], ecx */ 11594 goto L_270165BD; /* 0x270165AC: jmp 0x270165bd */ 11595 L_270165AE: 11596 edx = MEM32(eax + 0x4); /* 0x270165AE: mov edx, dword ptr [eax + 4] */ 11597 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270165B1: cmp eax, dword ptr [edx + 8] */ 11598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 11599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11600 _flag_k = FK_CMP; 11601 if (CMP_NE(_flag_a, _flag_b)) goto L_270165BB; /* 0x270165B4: jne 0x270165bb */ 11602 L_270165B6: 11603 MEM32(edx + 0x8) = ecx; /* 0x270165B6: mov dword ptr [edx + 8], ecx */ 11604 goto L_270165BD; /* 0x270165B9: jmp 0x270165bd */ 11605 L_270165BB: 11606 MEM32(edx) = ecx; /* 0x270165BB: mov dword ptr [edx], ecx */ 11607 L_270165BD: 11608 MEM32(ecx + 0x8) = eax; /* 0x270165BD: mov dword ptr [ecx + 8], eax */ 11609 MEM32(eax + 0x4) = ecx; /* 0x270165C0: mov dword ptr [eax + 4], ecx */ 11610 L_270165C3: 11611 ecx = MEM32(eax + 0x4); /* 0x270165C3: mov ecx, dword ptr [eax + 4] */ 11612 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270165C6: mov byte ptr [ecx + 0x18], bl */ 11613 edx = MEM32(eax + 0x4); /* 0x270165C9: mov edx, dword ptr [eax + 4] */ 11614 ecx = MEM32(edx + 0x4); /* 0x270165CC: mov ecx, dword ptr [edx + 4] */ 11615 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270165CF: mov byte ptr [ecx + 0x18], 0 */ 11616 edx = MEM32(eax + 0x4); /* 0x270165D3: mov edx, dword ptr [eax + 4] */ 11617 ecx = MEM32(edx + 0x4); /* 0x270165D6: mov ecx, dword ptr [edx + 4] */ 11618 edx = MEM32(ecx + 0x8); /* 0x270165D9: mov edx, dword ptr [ecx + 8] */ 11619 edi = MEM32(edx); /* 0x270165DC: mov edi, dword ptr [edx] */ 11620 MEM32(ecx + 0x8) = edi; /* 0x270165DE: mov dword ptr [ecx + 8], edi */ 11621 edi = MEM32(edx); /* 0x270165E1: mov edi, dword ptr [edx] */ 11622 /* cmp edi, MEM32(esi + 0x8) */ /* 0x270165E3: cmp edi, dword ptr [esi + 8] */ 11623 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11625 _flag_k = FK_CMP; 11626 if (CMP_EQ(_flag_a, _flag_b)) goto L_270165EB; /* 0x270165E6: je 0x270165eb */ 11627 L_270165E8: 11628 MEM32(edi + 0x4) = ecx; /* 0x270165E8: mov dword ptr [edi + 4], ecx */ 11629 L_270165EB: 11630 edi = MEM32(ecx + 0x4); /* 0x270165EB: mov edi, dword ptr [ecx + 4] */ 11631 MEM32(edx + 0x4) = edi; /* 0x270165EE: mov dword ptr [edx + 4], edi */ 11632 edi = MEM32(esi + 0x4); /* 0x270165F1: mov edi, dword ptr [esi + 4] */ 11633 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x270165F4: cmp ecx, dword ptr [edi + 4] */ 11634 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11636 _flag_k = FK_CMP; 11637 if (CMP_NE(_flag_a, _flag_b)) goto L_270165FE; /* 0x270165F7: jne 0x270165fe */ 11638 L_270165F9: 11639 MEM32(edi + 0x4) = edx; /* 0x270165F9: mov dword ptr [edi + 4], edx */ 11640 goto L_2701660C; /* 0x270165FC: jmp 0x2701660c */ 11641 L_270165FE: 11642 edi = MEM32(ecx + 0x4); /* 0x270165FE: mov edi, dword ptr [ecx + 4] */ 11643 /* cmp ecx, MEM32(edi) */ /* 0x27016601: cmp ecx, dword ptr [edi] */ 11644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 11645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11646 _flag_k = FK_CMP; 11647 if (CMP_NE(_flag_a, _flag_b)) goto L_27016609; /* 0x27016603: jne 0x27016609 */ 11648 L_27016605: 11649 MEM32(edi) = edx; /* 0x27016605: mov dword ptr [edi], edx */ 11650 goto L_2701660C; /* 0x27016607: jmp 0x2701660c */ 11651 L_27016609: 11652 MEM32(edi + 0x8) = edx; /* 0x27016609: mov dword ptr [edi + 8], edx */ 11653 L_2701660C: 11654 MEM32(edx) = ecx; /* 0x2701660C: mov dword ptr [edx], ecx */ 11655 L_2701660E: 11656 MEM32(ecx + 0x4) = edx; /* 0x2701660E: mov dword ptr [ecx + 4], edx */ 11657 L_27016611: 11658 ecx = MEM32(esi + 0x4); /* 0x27016611: mov ecx, dword ptr [esi + 4] */ 11659 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016614: cmp eax, dword ptr [ecx + 4] */ 11660 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11662 _flag_k = FK_CMP; 11663 RECOMP_BACKEDGE(); 11664 if (CMP_NE(_flag_a, _flag_b)) goto L_2701649D; /* 0x27016617: jne 0x2701649d */ 11665 L_2701661D: 11666 edx = MEM32(esi + 0x4); /* 0x2701661D: mov edx, dword ptr [esi + 4] */ 11667 eax = MEM32(edx + 0x4); /* 0x27016620: mov eax, dword ptr [edx + 4] */ 11668 ecx = MEM32(ebp + (-0x4)); /* 0x27016623: mov ecx, dword ptr [ebp - 4] */ 11669 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016626: mov byte ptr [eax + 0x18], bl */ 11670 eax = MEM32(ebp + 0x8); /* 0x27016629: mov eax, dword ptr [ebp + 8] */ 11671 edi = POP32_VAL(esp); /* 0x2701662C: pop edi */ 11672 esi = POP32_VAL(esp); /* 0x2701662D: pop esi */ 11673 MEM32(eax) = ecx; /* 0x2701662E: mov dword ptr [eax], ecx */ 11674 ebx = POP32_VAL(esp); /* 0x27016630: pop ebx */ 11675 esp = ebp; /* 0x27016631: mov esp, ebp */ 11676 ebp = POP32_VAL(esp); /* 0x27016633: pop ebp */ 11677 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016634: ret 0x10 */ 11678 RECOMP_REGS_OUT(); 11679 } 11680 11681 void sub_270164C1(void) { 11682 int _fpu_cmp = 0; 11683 uint32_t _cf = 0; 11684 int _df = 1; 11685 uint32_t _flag_k = FK_NONE; 11686 uint32_t _flag_a = 0, _flag_b = 0; 11687 uint32_t _itail_tgt = 0; 11688 RECOMP_REGS_LOCALS 11689 RECOMP_ENTER(0x270164C1u); 11690 11691 goto L_270164C1; 11692 L_2701649D: 11693 ecx = MEM32(eax + 0x4); /* 0x2701649D: mov ecx, dword ptr [eax + 4] */ 11694 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270164A0: mov dl, byte ptr [ecx + 0x18] */ 11695 /* test LO8(edx), LO8(edx) */ /* 0x270164A3: test dl, dl */ 11696 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11697 _cf = 0; 11698 _flag_k = FK_NARROW(FK_TEST, 24); 11699 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701661D; /* 0x270164A5: jne 0x2701661d */ 11700 L_270164AB: 11701 edi = MEM32(ecx + 0x4); /* 0x270164AB: mov edi, dword ptr [ecx + 4] */ 11702 edx = MEM32(edi); /* 0x270164AE: mov edx, dword ptr [edi] */ 11703 /* cmp ecx, edx */ /* 0x270164B0: cmp ecx, edx */ 11704 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11706 _flag_k = FK_CMP; 11707 if (CMP_NE(_flag_a, _flag_b)) goto L_27016579; /* 0x270164B2: jne 0x27016579 */ 11708 L_270164B8: 11709 edx = MEM32(edi + 0x8); /* 0x270164B8: mov edx, dword ptr [edi + 8] */ 11710 /* cmp MEM8(edx + 0x18), 0 */ /* 0x270164BB: cmp byte ptr [edx + 0x18], 0 */ 11711 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 11712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11713 _flag_k = FK_NARROW(FK_CMP, 24); 11714 if (CMP_NE(_flag_a, _flag_b)) goto L_270164DC; /* 0x270164BF: jne 0x270164dc */ 11715 L_270164C1: 11716 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C1: mov byte ptr [ecx + 0x18], bl */ 11717 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C4: mov byte ptr [edx + 0x18], bl */ 11718 ecx = MEM32(eax + 0x4); /* 0x270164C7: mov ecx, dword ptr [eax + 4] */ 11719 edx = MEM32(ecx + 0x4); /* 0x270164CA: mov edx, dword ptr [ecx + 4] */ 11720 MEM8(edx + 0x18) = (uint8_t)(0); /* 0x270164CD: mov byte ptr [edx + 0x18], 0 */ 11721 eax = MEM32(eax + 0x4); /* 0x270164D1: mov eax, dword ptr [eax + 4] */ 11722 eax = MEM32(eax + 0x4); /* 0x270164D4: mov eax, dword ptr [eax + 4] */ 11723 goto L_27016611; /* 0x270164D7: jmp 0x27016611 */ 11724 L_270164DC: 11725 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270164DC: cmp eax, dword ptr [ecx + 8] */ 11726 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 11727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11728 _flag_k = FK_CMP; 11729 if (CMP_NE(_flag_a, _flag_b)) goto L_2701651B; /* 0x270164DF: jne 0x2701651b */ 11730 L_270164E1: 11731 eax = ecx; /* 0x270164E1: mov eax, ecx */ 11732 ecx = MEM32(eax + 0x8); /* 0x270164E3: mov ecx, dword ptr [eax + 8] */ 11733 edx = MEM32(ecx); /* 0x270164E6: mov edx, dword ptr [ecx] */ 11734 MEM32(eax + 0x8) = edx; /* 0x270164E8: mov dword ptr [eax + 8], edx */ 11735 edx = MEM32(ecx); /* 0x270164EB: mov edx, dword ptr [ecx] */ 11736 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270164ED: cmp edx, dword ptr [esi + 8] */ 11737 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11739 _flag_k = FK_CMP; 11740 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164F5; /* 0x270164F0: je 0x270164f5 */ 11741 L_270164F2: 11742 MEM32(edx + 0x4) = eax; /* 0x270164F2: mov dword ptr [edx + 4], eax */ 11743 L_270164F5: 11744 edx = MEM32(eax + 0x4); /* 0x270164F5: mov edx, dword ptr [eax + 4] */ 11745 MEM32(ecx + 0x4) = edx; /* 0x270164F8: mov dword ptr [ecx + 4], edx */ 11746 edx = MEM32(esi + 0x4); /* 0x270164FB: mov edx, dword ptr [esi + 4] */ 11747 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270164FE: cmp eax, dword ptr [edx + 4] */ 11748 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11750 _flag_k = FK_CMP; 11751 if (CMP_NE(_flag_a, _flag_b)) goto L_27016508; /* 0x27016501: jne 0x27016508 */ 11752 L_27016503: 11753 MEM32(edx + 0x4) = ecx; /* 0x27016503: mov dword ptr [edx + 4], ecx */ 11754 goto L_27016516; /* 0x27016506: jmp 0x27016516 */ 11755 L_27016508: 11756 edx = MEM32(eax + 0x4); /* 0x27016508: mov edx, dword ptr [eax + 4] */ 11757 /* cmp eax, MEM32(edx) */ /* 0x2701650B: cmp eax, dword ptr [edx] */ 11758 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 11759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11760 _flag_k = FK_CMP; 11761 if (CMP_NE(_flag_a, _flag_b)) goto L_27016513; /* 0x2701650D: jne 0x27016513 */ 11762 L_2701650F: 11763 MEM32(edx) = ecx; /* 0x2701650F: mov dword ptr [edx], ecx */ 11764 goto L_27016516; /* 0x27016511: jmp 0x27016516 */ 11765 L_27016513: 11766 MEM32(edx + 0x8) = ecx; /* 0x27016513: mov dword ptr [edx + 8], ecx */ 11767 L_27016516: 11768 MEM32(ecx) = eax; /* 0x27016516: mov dword ptr [ecx], eax */ 11769 MEM32(eax + 0x4) = ecx; /* 0x27016518: mov dword ptr [eax + 4], ecx */ 11770 L_2701651B: 11771 ecx = MEM32(eax + 0x4); /* 0x2701651B: mov ecx, dword ptr [eax + 4] */ 11772 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701651E: mov byte ptr [ecx + 0x18], bl */ 11773 edx = MEM32(eax + 0x4); /* 0x27016521: mov edx, dword ptr [eax + 4] */ 11774 ecx = MEM32(edx + 0x4); /* 0x27016524: mov ecx, dword ptr [edx + 4] */ 11775 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016527: mov byte ptr [ecx + 0x18], 0 */ 11776 edx = MEM32(eax + 0x4); /* 0x2701652B: mov edx, dword ptr [eax + 4] */ 11777 ecx = MEM32(edx + 0x4); /* 0x2701652E: mov ecx, dword ptr [edx + 4] */ 11778 edx = MEM32(ecx); /* 0x27016531: mov edx, dword ptr [ecx] */ 11779 edi = MEM32(edx + 0x8); /* 0x27016533: mov edi, dword ptr [edx + 8] */ 11780 MEM32(ecx) = edi; /* 0x27016536: mov dword ptr [ecx], edi */ 11781 edi = MEM32(edx + 0x8); /* 0x27016538: mov edi, dword ptr [edx + 8] */ 11782 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701653B: cmp edi, dword ptr [esi + 8] */ 11783 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11785 _flag_k = FK_CMP; 11786 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016543; /* 0x2701653E: je 0x27016543 */ 11787 L_27016540: 11788 MEM32(edi + 0x4) = ecx; /* 0x27016540: mov dword ptr [edi + 4], ecx */ 11789 L_27016543: 11790 edi = MEM32(ecx + 0x4); /* 0x27016543: mov edi, dword ptr [ecx + 4] */ 11791 MEM32(edx + 0x4) = edi; /* 0x27016546: mov dword ptr [edx + 4], edi */ 11792 edi = MEM32(esi + 0x4); /* 0x27016549: mov edi, dword ptr [esi + 4] */ 11793 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701654C: cmp ecx, dword ptr [edi + 4] */ 11794 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11796 _flag_k = FK_CMP; 11797 if (CMP_NE(_flag_a, _flag_b)) goto L_2701655C; /* 0x2701654F: jne 0x2701655c */ 11798 L_27016551: 11799 MEM32(edi + 0x4) = edx; /* 0x27016551: mov dword ptr [edi + 4], edx */ 11800 MEM32(edx + 0x8) = ecx; /* 0x27016554: mov dword ptr [edx + 8], ecx */ 11801 goto L_2701660E; /* 0x27016557: jmp 0x2701660e */ 11802 L_2701655C: 11803 edi = MEM32(ecx + 0x4); /* 0x2701655C: mov edi, dword ptr [ecx + 4] */ 11804 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701655F: cmp ecx, dword ptr [edi + 8] */ 11805 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11807 _flag_k = FK_CMP; 11808 if (CMP_NE(_flag_a, _flag_b)) goto L_2701656F; /* 0x27016562: jne 0x2701656f */ 11809 L_27016564: 11810 MEM32(edi + 0x8) = edx; /* 0x27016564: mov dword ptr [edi + 8], edx */ 11811 MEM32(edx + 0x8) = ecx; /* 0x27016567: mov dword ptr [edx + 8], ecx */ 11812 goto L_2701660E; /* 0x2701656A: jmp 0x2701660e */ 11813 L_2701656F: 11814 MEM32(edi) = edx; /* 0x2701656F: mov dword ptr [edi], edx */ 11815 MEM32(edx + 0x8) = ecx; /* 0x27016571: mov dword ptr [edx + 8], ecx */ 11816 goto L_2701660E; /* 0x27016574: jmp 0x2701660e */ 11817 L_27016579: 11818 /* cmp MEM8(edx + 0x18), 0 */ /* 0x27016579: cmp byte ptr [edx + 0x18], 0 */ 11819 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 11820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11821 _flag_k = FK_NARROW(FK_CMP, 24); 11822 RECOMP_BACKEDGE(); 11823 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164C1; /* 0x2701657D: je 0x270164c1 */ 11824 L_27016583: 11825 /* cmp eax, MEM32(ecx) */ /* 0x27016583: cmp eax, dword ptr [ecx] */ 11826 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 11827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11828 _flag_k = FK_CMP; 11829 if (CMP_NE(_flag_a, _flag_b)) goto L_270165C3; /* 0x27016585: jne 0x270165c3 */ 11830 L_27016587: 11831 eax = ecx; /* 0x27016587: mov eax, ecx */ 11832 ecx = MEM32(eax); /* 0x27016589: mov ecx, dword ptr [eax] */ 11833 edx = MEM32(ecx + 0x8); /* 0x2701658B: mov edx, dword ptr [ecx + 8] */ 11834 MEM32(eax) = edx; /* 0x2701658E: mov dword ptr [eax], edx */ 11835 edx = MEM32(ecx + 0x8); /* 0x27016590: mov edx, dword ptr [ecx + 8] */ 11836 /* cmp edx, MEM32(esi + 0x8) */ /* 0x27016593: cmp edx, dword ptr [esi + 8] */ 11837 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11839 _flag_k = FK_CMP; 11840 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701659B; /* 0x27016596: je 0x2701659b */ 11841 L_27016598: 11842 MEM32(edx + 0x4) = eax; /* 0x27016598: mov dword ptr [edx + 4], eax */ 11843 L_2701659B: 11844 edx = MEM32(eax + 0x4); /* 0x2701659B: mov edx, dword ptr [eax + 4] */ 11845 MEM32(ecx + 0x4) = edx; /* 0x2701659E: mov dword ptr [ecx + 4], edx */ 11846 edx = MEM32(esi + 0x4); /* 0x270165A1: mov edx, dword ptr [esi + 4] */ 11847 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270165A4: cmp eax, dword ptr [edx + 4] */ 11848 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11850 _flag_k = FK_CMP; 11851 if (CMP_NE(_flag_a, _flag_b)) goto L_270165AE; /* 0x270165A7: jne 0x270165ae */ 11852 L_270165A9: 11853 MEM32(edx + 0x4) = ecx; /* 0x270165A9: mov dword ptr [edx + 4], ecx */ 11854 goto L_270165BD; /* 0x270165AC: jmp 0x270165bd */ 11855 L_270165AE: 11856 edx = MEM32(eax + 0x4); /* 0x270165AE: mov edx, dword ptr [eax + 4] */ 11857 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270165B1: cmp eax, dword ptr [edx + 8] */ 11858 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 11859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11860 _flag_k = FK_CMP; 11861 if (CMP_NE(_flag_a, _flag_b)) goto L_270165BB; /* 0x270165B4: jne 0x270165bb */ 11862 L_270165B6: 11863 MEM32(edx + 0x8) = ecx; /* 0x270165B6: mov dword ptr [edx + 8], ecx */ 11864 goto L_270165BD; /* 0x270165B9: jmp 0x270165bd */ 11865 L_270165BB: 11866 MEM32(edx) = ecx; /* 0x270165BB: mov dword ptr [edx], ecx */ 11867 L_270165BD: 11868 MEM32(ecx + 0x8) = eax; /* 0x270165BD: mov dword ptr [ecx + 8], eax */ 11869 MEM32(eax + 0x4) = ecx; /* 0x270165C0: mov dword ptr [eax + 4], ecx */ 11870 L_270165C3: 11871 ecx = MEM32(eax + 0x4); /* 0x270165C3: mov ecx, dword ptr [eax + 4] */ 11872 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270165C6: mov byte ptr [ecx + 0x18], bl */ 11873 edx = MEM32(eax + 0x4); /* 0x270165C9: mov edx, dword ptr [eax + 4] */ 11874 ecx = MEM32(edx + 0x4); /* 0x270165CC: mov ecx, dword ptr [edx + 4] */ 11875 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270165CF: mov byte ptr [ecx + 0x18], 0 */ 11876 edx = MEM32(eax + 0x4); /* 0x270165D3: mov edx, dword ptr [eax + 4] */ 11877 ecx = MEM32(edx + 0x4); /* 0x270165D6: mov ecx, dword ptr [edx + 4] */ 11878 edx = MEM32(ecx + 0x8); /* 0x270165D9: mov edx, dword ptr [ecx + 8] */ 11879 edi = MEM32(edx); /* 0x270165DC: mov edi, dword ptr [edx] */ 11880 MEM32(ecx + 0x8) = edi; /* 0x270165DE: mov dword ptr [ecx + 8], edi */ 11881 edi = MEM32(edx); /* 0x270165E1: mov edi, dword ptr [edx] */ 11882 /* cmp edi, MEM32(esi + 0x8) */ /* 0x270165E3: cmp edi, dword ptr [esi + 8] */ 11883 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11885 _flag_k = FK_CMP; 11886 if (CMP_EQ(_flag_a, _flag_b)) goto L_270165EB; /* 0x270165E6: je 0x270165eb */ 11887 L_270165E8: 11888 MEM32(edi + 0x4) = ecx; /* 0x270165E8: mov dword ptr [edi + 4], ecx */ 11889 L_270165EB: 11890 edi = MEM32(ecx + 0x4); /* 0x270165EB: mov edi, dword ptr [ecx + 4] */ 11891 MEM32(edx + 0x4) = edi; /* 0x270165EE: mov dword ptr [edx + 4], edi */ 11892 edi = MEM32(esi + 0x4); /* 0x270165F1: mov edi, dword ptr [esi + 4] */ 11893 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x270165F4: cmp ecx, dword ptr [edi + 4] */ 11894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 11895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11896 _flag_k = FK_CMP; 11897 if (CMP_NE(_flag_a, _flag_b)) goto L_270165FE; /* 0x270165F7: jne 0x270165fe */ 11898 L_270165F9: 11899 MEM32(edi + 0x4) = edx; /* 0x270165F9: mov dword ptr [edi + 4], edx */ 11900 goto L_2701660C; /* 0x270165FC: jmp 0x2701660c */ 11901 L_270165FE: 11902 edi = MEM32(ecx + 0x4); /* 0x270165FE: mov edi, dword ptr [ecx + 4] */ 11903 /* cmp ecx, MEM32(edi) */ /* 0x27016601: cmp ecx, dword ptr [edi] */ 11904 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 11905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11906 _flag_k = FK_CMP; 11907 if (CMP_NE(_flag_a, _flag_b)) goto L_27016609; /* 0x27016603: jne 0x27016609 */ 11908 L_27016605: 11909 MEM32(edi) = edx; /* 0x27016605: mov dword ptr [edi], edx */ 11910 goto L_2701660C; /* 0x27016607: jmp 0x2701660c */ 11911 L_27016609: 11912 MEM32(edi + 0x8) = edx; /* 0x27016609: mov dword ptr [edi + 8], edx */ 11913 L_2701660C: 11914 MEM32(edx) = ecx; /* 0x2701660C: mov dword ptr [edx], ecx */ 11915 L_2701660E: 11916 MEM32(ecx + 0x4) = edx; /* 0x2701660E: mov dword ptr [ecx + 4], edx */ 11917 L_27016611: 11918 ecx = MEM32(esi + 0x4); /* 0x27016611: mov ecx, dword ptr [esi + 4] */ 11919 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016614: cmp eax, dword ptr [ecx + 4] */ 11920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11922 _flag_k = FK_CMP; 11923 RECOMP_BACKEDGE(); 11924 if (CMP_NE(_flag_a, _flag_b)) goto L_2701649D; /* 0x27016617: jne 0x2701649d */ 11925 L_2701661D: 11926 edx = MEM32(esi + 0x4); /* 0x2701661D: mov edx, dword ptr [esi + 4] */ 11927 eax = MEM32(edx + 0x4); /* 0x27016620: mov eax, dword ptr [edx + 4] */ 11928 ecx = MEM32(ebp + (-0x4)); /* 0x27016623: mov ecx, dword ptr [ebp - 4] */ 11929 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016626: mov byte ptr [eax + 0x18], bl */ 11930 eax = MEM32(ebp + 0x8); /* 0x27016629: mov eax, dword ptr [ebp + 8] */ 11931 edi = POP32_VAL(esp); /* 0x2701662C: pop edi */ 11932 esi = POP32_VAL(esp); /* 0x2701662D: pop esi */ 11933 MEM32(eax) = ecx; /* 0x2701662E: mov dword ptr [eax], ecx */ 11934 ebx = POP32_VAL(esp); /* 0x27016630: pop ebx */ 11935 esp = ebp; /* 0x27016631: mov esp, ebp */ 11936 ebp = POP32_VAL(esp); /* 0x27016633: pop ebp */ 11937 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016634: ret 0x10 */ 11938 RECOMP_REGS_OUT(); 11939 } 11940 11941 void sub_27016516(void) { 11942 int _fpu_cmp = 0; 11943 uint32_t _cf = 0; 11944 int _df = 1; 11945 uint32_t _flag_k = FK_NONE; 11946 uint32_t _flag_a = 0, _flag_b = 0; 11947 uint32_t _itail_tgt = 0; 11948 RECOMP_REGS_LOCALS 11949 RECOMP_ENTER(0x27016516u); 11950 11951 goto L_27016516; 11952 L_2701649D: 11953 ecx = MEM32(eax + 0x4); /* 0x2701649D: mov ecx, dword ptr [eax + 4] */ 11954 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270164A0: mov dl, byte ptr [ecx + 0x18] */ 11955 /* test LO8(edx), LO8(edx) */ /* 0x270164A3: test dl, dl */ 11956 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11957 _cf = 0; 11958 _flag_k = FK_NARROW(FK_TEST, 24); 11959 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701661D; /* 0x270164A5: jne 0x2701661d */ 11960 L_270164AB: 11961 edi = MEM32(ecx + 0x4); /* 0x270164AB: mov edi, dword ptr [ecx + 4] */ 11962 edx = MEM32(edi); /* 0x270164AE: mov edx, dword ptr [edi] */ 11963 /* cmp ecx, edx */ /* 0x270164B0: cmp ecx, edx */ 11964 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11966 _flag_k = FK_CMP; 11967 if (CMP_NE(_flag_a, _flag_b)) goto L_27016579; /* 0x270164B2: jne 0x27016579 */ 11968 L_270164B8: 11969 edx = MEM32(edi + 0x8); /* 0x270164B8: mov edx, dword ptr [edi + 8] */ 11970 /* cmp MEM8(edx + 0x18), 0 */ /* 0x270164BB: cmp byte ptr [edx + 0x18], 0 */ 11971 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 11972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11973 _flag_k = FK_NARROW(FK_CMP, 24); 11974 if (CMP_NE(_flag_a, _flag_b)) goto L_270164DC; /* 0x270164BF: jne 0x270164dc */ 11975 L_270164C1: 11976 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C1: mov byte ptr [ecx + 0x18], bl */ 11977 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C4: mov byte ptr [edx + 0x18], bl */ 11978 ecx = MEM32(eax + 0x4); /* 0x270164C7: mov ecx, dword ptr [eax + 4] */ 11979 edx = MEM32(ecx + 0x4); /* 0x270164CA: mov edx, dword ptr [ecx + 4] */ 11980 MEM8(edx + 0x18) = (uint8_t)(0); /* 0x270164CD: mov byte ptr [edx + 0x18], 0 */ 11981 eax = MEM32(eax + 0x4); /* 0x270164D1: mov eax, dword ptr [eax + 4] */ 11982 eax = MEM32(eax + 0x4); /* 0x270164D4: mov eax, dword ptr [eax + 4] */ 11983 goto L_27016611; /* 0x270164D7: jmp 0x27016611 */ 11984 L_270164DC: 11985 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270164DC: cmp eax, dword ptr [ecx + 8] */ 11986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 11987 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11988 _flag_k = FK_CMP; 11989 if (CMP_NE(_flag_a, _flag_b)) goto L_2701651B; /* 0x270164DF: jne 0x2701651b */ 11990 L_270164E1: 11991 eax = ecx; /* 0x270164E1: mov eax, ecx */ 11992 ecx = MEM32(eax + 0x8); /* 0x270164E3: mov ecx, dword ptr [eax + 8] */ 11993 edx = MEM32(ecx); /* 0x270164E6: mov edx, dword ptr [ecx] */ 11994 MEM32(eax + 0x8) = edx; /* 0x270164E8: mov dword ptr [eax + 8], edx */ 11995 edx = MEM32(ecx); /* 0x270164EB: mov edx, dword ptr [ecx] */ 11996 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270164ED: cmp edx, dword ptr [esi + 8] */ 11997 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11999 _flag_k = FK_CMP; 12000 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164F5; /* 0x270164F0: je 0x270164f5 */ 12001 L_270164F2: 12002 MEM32(edx + 0x4) = eax; /* 0x270164F2: mov dword ptr [edx + 4], eax */ 12003 L_270164F5: 12004 edx = MEM32(eax + 0x4); /* 0x270164F5: mov edx, dword ptr [eax + 4] */ 12005 MEM32(ecx + 0x4) = edx; /* 0x270164F8: mov dword ptr [ecx + 4], edx */ 12006 edx = MEM32(esi + 0x4); /* 0x270164FB: mov edx, dword ptr [esi + 4] */ 12007 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270164FE: cmp eax, dword ptr [edx + 4] */ 12008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12010 _flag_k = FK_CMP; 12011 if (CMP_NE(_flag_a, _flag_b)) goto L_27016508; /* 0x27016501: jne 0x27016508 */ 12012 L_27016503: 12013 MEM32(edx + 0x4) = ecx; /* 0x27016503: mov dword ptr [edx + 4], ecx */ 12014 goto L_27016516; /* 0x27016506: jmp 0x27016516 */ 12015 L_27016508: 12016 edx = MEM32(eax + 0x4); /* 0x27016508: mov edx, dword ptr [eax + 4] */ 12017 /* cmp eax, MEM32(edx) */ /* 0x2701650B: cmp eax, dword ptr [edx] */ 12018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 12019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12020 _flag_k = FK_CMP; 12021 if (CMP_NE(_flag_a, _flag_b)) goto L_27016513; /* 0x2701650D: jne 0x27016513 */ 12022 L_2701650F: 12023 MEM32(edx) = ecx; /* 0x2701650F: mov dword ptr [edx], ecx */ 12024 goto L_27016516; /* 0x27016511: jmp 0x27016516 */ 12025 L_27016513: 12026 MEM32(edx + 0x8) = ecx; /* 0x27016513: mov dword ptr [edx + 8], ecx */ 12027 L_27016516: 12028 MEM32(ecx) = eax; /* 0x27016516: mov dword ptr [ecx], eax */ 12029 MEM32(eax + 0x4) = ecx; /* 0x27016518: mov dword ptr [eax + 4], ecx */ 12030 L_2701651B: 12031 ecx = MEM32(eax + 0x4); /* 0x2701651B: mov ecx, dword ptr [eax + 4] */ 12032 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701651E: mov byte ptr [ecx + 0x18], bl */ 12033 edx = MEM32(eax + 0x4); /* 0x27016521: mov edx, dword ptr [eax + 4] */ 12034 ecx = MEM32(edx + 0x4); /* 0x27016524: mov ecx, dword ptr [edx + 4] */ 12035 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016527: mov byte ptr [ecx + 0x18], 0 */ 12036 edx = MEM32(eax + 0x4); /* 0x2701652B: mov edx, dword ptr [eax + 4] */ 12037 ecx = MEM32(edx + 0x4); /* 0x2701652E: mov ecx, dword ptr [edx + 4] */ 12038 edx = MEM32(ecx); /* 0x27016531: mov edx, dword ptr [ecx] */ 12039 edi = MEM32(edx + 0x8); /* 0x27016533: mov edi, dword ptr [edx + 8] */ 12040 MEM32(ecx) = edi; /* 0x27016536: mov dword ptr [ecx], edi */ 12041 edi = MEM32(edx + 0x8); /* 0x27016538: mov edi, dword ptr [edx + 8] */ 12042 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701653B: cmp edi, dword ptr [esi + 8] */ 12043 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12045 _flag_k = FK_CMP; 12046 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016543; /* 0x2701653E: je 0x27016543 */ 12047 L_27016540: 12048 MEM32(edi + 0x4) = ecx; /* 0x27016540: mov dword ptr [edi + 4], ecx */ 12049 L_27016543: 12050 edi = MEM32(ecx + 0x4); /* 0x27016543: mov edi, dword ptr [ecx + 4] */ 12051 MEM32(edx + 0x4) = edi; /* 0x27016546: mov dword ptr [edx + 4], edi */ 12052 edi = MEM32(esi + 0x4); /* 0x27016549: mov edi, dword ptr [esi + 4] */ 12053 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701654C: cmp ecx, dword ptr [edi + 4] */ 12054 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12056 _flag_k = FK_CMP; 12057 if (CMP_NE(_flag_a, _flag_b)) goto L_2701655C; /* 0x2701654F: jne 0x2701655c */ 12058 L_27016551: 12059 MEM32(edi + 0x4) = edx; /* 0x27016551: mov dword ptr [edi + 4], edx */ 12060 MEM32(edx + 0x8) = ecx; /* 0x27016554: mov dword ptr [edx + 8], ecx */ 12061 goto L_2701660E; /* 0x27016557: jmp 0x2701660e */ 12062 L_2701655C: 12063 edi = MEM32(ecx + 0x4); /* 0x2701655C: mov edi, dword ptr [ecx + 4] */ 12064 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701655F: cmp ecx, dword ptr [edi + 8] */ 12065 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12067 _flag_k = FK_CMP; 12068 if (CMP_NE(_flag_a, _flag_b)) goto L_2701656F; /* 0x27016562: jne 0x2701656f */ 12069 L_27016564: 12070 MEM32(edi + 0x8) = edx; /* 0x27016564: mov dword ptr [edi + 8], edx */ 12071 MEM32(edx + 0x8) = ecx; /* 0x27016567: mov dword ptr [edx + 8], ecx */ 12072 goto L_2701660E; /* 0x2701656A: jmp 0x2701660e */ 12073 L_2701656F: 12074 MEM32(edi) = edx; /* 0x2701656F: mov dword ptr [edi], edx */ 12075 MEM32(edx + 0x8) = ecx; /* 0x27016571: mov dword ptr [edx + 8], ecx */ 12076 goto L_2701660E; /* 0x27016574: jmp 0x2701660e */ 12077 L_27016579: 12078 /* cmp MEM8(edx + 0x18), 0 */ /* 0x27016579: cmp byte ptr [edx + 0x18], 0 */ 12079 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 12080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12081 _flag_k = FK_NARROW(FK_CMP, 24); 12082 RECOMP_BACKEDGE(); 12083 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164C1; /* 0x2701657D: je 0x270164c1 */ 12084 L_27016583: 12085 /* cmp eax, MEM32(ecx) */ /* 0x27016583: cmp eax, dword ptr [ecx] */ 12086 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 12087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12088 _flag_k = FK_CMP; 12089 if (CMP_NE(_flag_a, _flag_b)) goto L_270165C3; /* 0x27016585: jne 0x270165c3 */ 12090 L_27016587: 12091 eax = ecx; /* 0x27016587: mov eax, ecx */ 12092 ecx = MEM32(eax); /* 0x27016589: mov ecx, dword ptr [eax] */ 12093 edx = MEM32(ecx + 0x8); /* 0x2701658B: mov edx, dword ptr [ecx + 8] */ 12094 MEM32(eax) = edx; /* 0x2701658E: mov dword ptr [eax], edx */ 12095 edx = MEM32(ecx + 0x8); /* 0x27016590: mov edx, dword ptr [ecx + 8] */ 12096 /* cmp edx, MEM32(esi + 0x8) */ /* 0x27016593: cmp edx, dword ptr [esi + 8] */ 12097 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12099 _flag_k = FK_CMP; 12100 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701659B; /* 0x27016596: je 0x2701659b */ 12101 L_27016598: 12102 MEM32(edx + 0x4) = eax; /* 0x27016598: mov dword ptr [edx + 4], eax */ 12103 L_2701659B: 12104 edx = MEM32(eax + 0x4); /* 0x2701659B: mov edx, dword ptr [eax + 4] */ 12105 MEM32(ecx + 0x4) = edx; /* 0x2701659E: mov dword ptr [ecx + 4], edx */ 12106 edx = MEM32(esi + 0x4); /* 0x270165A1: mov edx, dword ptr [esi + 4] */ 12107 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270165A4: cmp eax, dword ptr [edx + 4] */ 12108 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12110 _flag_k = FK_CMP; 12111 if (CMP_NE(_flag_a, _flag_b)) goto L_270165AE; /* 0x270165A7: jne 0x270165ae */ 12112 L_270165A9: 12113 MEM32(edx + 0x4) = ecx; /* 0x270165A9: mov dword ptr [edx + 4], ecx */ 12114 goto L_270165BD; /* 0x270165AC: jmp 0x270165bd */ 12115 L_270165AE: 12116 edx = MEM32(eax + 0x4); /* 0x270165AE: mov edx, dword ptr [eax + 4] */ 12117 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270165B1: cmp eax, dword ptr [edx + 8] */ 12118 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 12119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12120 _flag_k = FK_CMP; 12121 if (CMP_NE(_flag_a, _flag_b)) goto L_270165BB; /* 0x270165B4: jne 0x270165bb */ 12122 L_270165B6: 12123 MEM32(edx + 0x8) = ecx; /* 0x270165B6: mov dword ptr [edx + 8], ecx */ 12124 goto L_270165BD; /* 0x270165B9: jmp 0x270165bd */ 12125 L_270165BB: 12126 MEM32(edx) = ecx; /* 0x270165BB: mov dword ptr [edx], ecx */ 12127 L_270165BD: 12128 MEM32(ecx + 0x8) = eax; /* 0x270165BD: mov dword ptr [ecx + 8], eax */ 12129 MEM32(eax + 0x4) = ecx; /* 0x270165C0: mov dword ptr [eax + 4], ecx */ 12130 L_270165C3: 12131 ecx = MEM32(eax + 0x4); /* 0x270165C3: mov ecx, dword ptr [eax + 4] */ 12132 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270165C6: mov byte ptr [ecx + 0x18], bl */ 12133 edx = MEM32(eax + 0x4); /* 0x270165C9: mov edx, dword ptr [eax + 4] */ 12134 ecx = MEM32(edx + 0x4); /* 0x270165CC: mov ecx, dword ptr [edx + 4] */ 12135 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270165CF: mov byte ptr [ecx + 0x18], 0 */ 12136 edx = MEM32(eax + 0x4); /* 0x270165D3: mov edx, dword ptr [eax + 4] */ 12137 ecx = MEM32(edx + 0x4); /* 0x270165D6: mov ecx, dword ptr [edx + 4] */ 12138 edx = MEM32(ecx + 0x8); /* 0x270165D9: mov edx, dword ptr [ecx + 8] */ 12139 edi = MEM32(edx); /* 0x270165DC: mov edi, dword ptr [edx] */ 12140 MEM32(ecx + 0x8) = edi; /* 0x270165DE: mov dword ptr [ecx + 8], edi */ 12141 edi = MEM32(edx); /* 0x270165E1: mov edi, dword ptr [edx] */ 12142 /* cmp edi, MEM32(esi + 0x8) */ /* 0x270165E3: cmp edi, dword ptr [esi + 8] */ 12143 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12145 _flag_k = FK_CMP; 12146 if (CMP_EQ(_flag_a, _flag_b)) goto L_270165EB; /* 0x270165E6: je 0x270165eb */ 12147 L_270165E8: 12148 MEM32(edi + 0x4) = ecx; /* 0x270165E8: mov dword ptr [edi + 4], ecx */ 12149 L_270165EB: 12150 edi = MEM32(ecx + 0x4); /* 0x270165EB: mov edi, dword ptr [ecx + 4] */ 12151 MEM32(edx + 0x4) = edi; /* 0x270165EE: mov dword ptr [edx + 4], edi */ 12152 edi = MEM32(esi + 0x4); /* 0x270165F1: mov edi, dword ptr [esi + 4] */ 12153 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x270165F4: cmp ecx, dword ptr [edi + 4] */ 12154 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12156 _flag_k = FK_CMP; 12157 if (CMP_NE(_flag_a, _flag_b)) goto L_270165FE; /* 0x270165F7: jne 0x270165fe */ 12158 L_270165F9: 12159 MEM32(edi + 0x4) = edx; /* 0x270165F9: mov dword ptr [edi + 4], edx */ 12160 goto L_2701660C; /* 0x270165FC: jmp 0x2701660c */ 12161 L_270165FE: 12162 edi = MEM32(ecx + 0x4); /* 0x270165FE: mov edi, dword ptr [ecx + 4] */ 12163 /* cmp ecx, MEM32(edi) */ /* 0x27016601: cmp ecx, dword ptr [edi] */ 12164 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 12165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12166 _flag_k = FK_CMP; 12167 if (CMP_NE(_flag_a, _flag_b)) goto L_27016609; /* 0x27016603: jne 0x27016609 */ 12168 L_27016605: 12169 MEM32(edi) = edx; /* 0x27016605: mov dword ptr [edi], edx */ 12170 goto L_2701660C; /* 0x27016607: jmp 0x2701660c */ 12171 L_27016609: 12172 MEM32(edi + 0x8) = edx; /* 0x27016609: mov dword ptr [edi + 8], edx */ 12173 L_2701660C: 12174 MEM32(edx) = ecx; /* 0x2701660C: mov dword ptr [edx], ecx */ 12175 L_2701660E: 12176 MEM32(ecx + 0x4) = edx; /* 0x2701660E: mov dword ptr [ecx + 4], edx */ 12177 L_27016611: 12178 ecx = MEM32(esi + 0x4); /* 0x27016611: mov ecx, dword ptr [esi + 4] */ 12179 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016614: cmp eax, dword ptr [ecx + 4] */ 12180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12182 _flag_k = FK_CMP; 12183 RECOMP_BACKEDGE(); 12184 if (CMP_NE(_flag_a, _flag_b)) goto L_2701649D; /* 0x27016617: jne 0x2701649d */ 12185 L_2701661D: 12186 edx = MEM32(esi + 0x4); /* 0x2701661D: mov edx, dword ptr [esi + 4] */ 12187 eax = MEM32(edx + 0x4); /* 0x27016620: mov eax, dword ptr [edx + 4] */ 12188 ecx = MEM32(ebp + (-0x4)); /* 0x27016623: mov ecx, dword ptr [ebp - 4] */ 12189 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016626: mov byte ptr [eax + 0x18], bl */ 12190 eax = MEM32(ebp + 0x8); /* 0x27016629: mov eax, dword ptr [ebp + 8] */ 12191 edi = POP32_VAL(esp); /* 0x2701662C: pop edi */ 12192 esi = POP32_VAL(esp); /* 0x2701662D: pop esi */ 12193 MEM32(eax) = ecx; /* 0x2701662E: mov dword ptr [eax], ecx */ 12194 ebx = POP32_VAL(esp); /* 0x27016630: pop ebx */ 12195 esp = ebp; /* 0x27016631: mov esp, ebp */ 12196 ebp = POP32_VAL(esp); /* 0x27016633: pop ebp */ 12197 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016634: ret 0x10 */ 12198 RECOMP_REGS_OUT(); 12199 } 12200 12201 void sub_2701651B(void) { 12202 int _fpu_cmp = 0; 12203 uint32_t _cf = 0; 12204 int _df = 1; 12205 uint32_t _flag_k = FK_NONE; 12206 uint32_t _flag_a = 0, _flag_b = 0; 12207 uint32_t _itail_tgt = 0; 12208 RECOMP_REGS_LOCALS 12209 RECOMP_ENTER(0x2701651Bu); 12210 12211 goto L_2701651B; 12212 L_2701649D: 12213 ecx = MEM32(eax + 0x4); /* 0x2701649D: mov ecx, dword ptr [eax + 4] */ 12214 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270164A0: mov dl, byte ptr [ecx + 0x18] */ 12215 /* test LO8(edx), LO8(edx) */ /* 0x270164A3: test dl, dl */ 12216 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12217 _cf = 0; 12218 _flag_k = FK_NARROW(FK_TEST, 24); 12219 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701661D; /* 0x270164A5: jne 0x2701661d */ 12220 L_270164AB: 12221 edi = MEM32(ecx + 0x4); /* 0x270164AB: mov edi, dword ptr [ecx + 4] */ 12222 edx = MEM32(edi); /* 0x270164AE: mov edx, dword ptr [edi] */ 12223 /* cmp ecx, edx */ /* 0x270164B0: cmp ecx, edx */ 12224 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12226 _flag_k = FK_CMP; 12227 if (CMP_NE(_flag_a, _flag_b)) goto L_27016579; /* 0x270164B2: jne 0x27016579 */ 12228 L_270164B8: 12229 edx = MEM32(edi + 0x8); /* 0x270164B8: mov edx, dword ptr [edi + 8] */ 12230 /* cmp MEM8(edx + 0x18), 0 */ /* 0x270164BB: cmp byte ptr [edx + 0x18], 0 */ 12231 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 12232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12233 _flag_k = FK_NARROW(FK_CMP, 24); 12234 if (CMP_NE(_flag_a, _flag_b)) goto L_270164DC; /* 0x270164BF: jne 0x270164dc */ 12235 L_270164C1: 12236 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C1: mov byte ptr [ecx + 0x18], bl */ 12237 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C4: mov byte ptr [edx + 0x18], bl */ 12238 ecx = MEM32(eax + 0x4); /* 0x270164C7: mov ecx, dword ptr [eax + 4] */ 12239 edx = MEM32(ecx + 0x4); /* 0x270164CA: mov edx, dword ptr [ecx + 4] */ 12240 MEM8(edx + 0x18) = (uint8_t)(0); /* 0x270164CD: mov byte ptr [edx + 0x18], 0 */ 12241 eax = MEM32(eax + 0x4); /* 0x270164D1: mov eax, dword ptr [eax + 4] */ 12242 eax = MEM32(eax + 0x4); /* 0x270164D4: mov eax, dword ptr [eax + 4] */ 12243 goto L_27016611; /* 0x270164D7: jmp 0x27016611 */ 12244 L_270164DC: 12245 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270164DC: cmp eax, dword ptr [ecx + 8] */ 12246 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 12247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12248 _flag_k = FK_CMP; 12249 if (CMP_NE(_flag_a, _flag_b)) goto L_2701651B; /* 0x270164DF: jne 0x2701651b */ 12250 L_270164E1: 12251 eax = ecx; /* 0x270164E1: mov eax, ecx */ 12252 ecx = MEM32(eax + 0x8); /* 0x270164E3: mov ecx, dword ptr [eax + 8] */ 12253 edx = MEM32(ecx); /* 0x270164E6: mov edx, dword ptr [ecx] */ 12254 MEM32(eax + 0x8) = edx; /* 0x270164E8: mov dword ptr [eax + 8], edx */ 12255 edx = MEM32(ecx); /* 0x270164EB: mov edx, dword ptr [ecx] */ 12256 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270164ED: cmp edx, dword ptr [esi + 8] */ 12257 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12259 _flag_k = FK_CMP; 12260 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164F5; /* 0x270164F0: je 0x270164f5 */ 12261 L_270164F2: 12262 MEM32(edx + 0x4) = eax; /* 0x270164F2: mov dword ptr [edx + 4], eax */ 12263 L_270164F5: 12264 edx = MEM32(eax + 0x4); /* 0x270164F5: mov edx, dword ptr [eax + 4] */ 12265 MEM32(ecx + 0x4) = edx; /* 0x270164F8: mov dword ptr [ecx + 4], edx */ 12266 edx = MEM32(esi + 0x4); /* 0x270164FB: mov edx, dword ptr [esi + 4] */ 12267 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270164FE: cmp eax, dword ptr [edx + 4] */ 12268 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12270 _flag_k = FK_CMP; 12271 if (CMP_NE(_flag_a, _flag_b)) goto L_27016508; /* 0x27016501: jne 0x27016508 */ 12272 L_27016503: 12273 MEM32(edx + 0x4) = ecx; /* 0x27016503: mov dword ptr [edx + 4], ecx */ 12274 goto L_27016516; /* 0x27016506: jmp 0x27016516 */ 12275 L_27016508: 12276 edx = MEM32(eax + 0x4); /* 0x27016508: mov edx, dword ptr [eax + 4] */ 12277 /* cmp eax, MEM32(edx) */ /* 0x2701650B: cmp eax, dword ptr [edx] */ 12278 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 12279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12280 _flag_k = FK_CMP; 12281 if (CMP_NE(_flag_a, _flag_b)) goto L_27016513; /* 0x2701650D: jne 0x27016513 */ 12282 L_2701650F: 12283 MEM32(edx) = ecx; /* 0x2701650F: mov dword ptr [edx], ecx */ 12284 goto L_27016516; /* 0x27016511: jmp 0x27016516 */ 12285 L_27016513: 12286 MEM32(edx + 0x8) = ecx; /* 0x27016513: mov dword ptr [edx + 8], ecx */ 12287 L_27016516: 12288 MEM32(ecx) = eax; /* 0x27016516: mov dword ptr [ecx], eax */ 12289 MEM32(eax + 0x4) = ecx; /* 0x27016518: mov dword ptr [eax + 4], ecx */ 12290 L_2701651B: 12291 ecx = MEM32(eax + 0x4); /* 0x2701651B: mov ecx, dword ptr [eax + 4] */ 12292 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701651E: mov byte ptr [ecx + 0x18], bl */ 12293 edx = MEM32(eax + 0x4); /* 0x27016521: mov edx, dword ptr [eax + 4] */ 12294 ecx = MEM32(edx + 0x4); /* 0x27016524: mov ecx, dword ptr [edx + 4] */ 12295 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016527: mov byte ptr [ecx + 0x18], 0 */ 12296 edx = MEM32(eax + 0x4); /* 0x2701652B: mov edx, dword ptr [eax + 4] */ 12297 ecx = MEM32(edx + 0x4); /* 0x2701652E: mov ecx, dword ptr [edx + 4] */ 12298 edx = MEM32(ecx); /* 0x27016531: mov edx, dword ptr [ecx] */ 12299 edi = MEM32(edx + 0x8); /* 0x27016533: mov edi, dword ptr [edx + 8] */ 12300 MEM32(ecx) = edi; /* 0x27016536: mov dword ptr [ecx], edi */ 12301 edi = MEM32(edx + 0x8); /* 0x27016538: mov edi, dword ptr [edx + 8] */ 12302 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701653B: cmp edi, dword ptr [esi + 8] */ 12303 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12304 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12305 _flag_k = FK_CMP; 12306 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016543; /* 0x2701653E: je 0x27016543 */ 12307 L_27016540: 12308 MEM32(edi + 0x4) = ecx; /* 0x27016540: mov dword ptr [edi + 4], ecx */ 12309 L_27016543: 12310 edi = MEM32(ecx + 0x4); /* 0x27016543: mov edi, dword ptr [ecx + 4] */ 12311 MEM32(edx + 0x4) = edi; /* 0x27016546: mov dword ptr [edx + 4], edi */ 12312 edi = MEM32(esi + 0x4); /* 0x27016549: mov edi, dword ptr [esi + 4] */ 12313 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701654C: cmp ecx, dword ptr [edi + 4] */ 12314 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12316 _flag_k = FK_CMP; 12317 if (CMP_NE(_flag_a, _flag_b)) goto L_2701655C; /* 0x2701654F: jne 0x2701655c */ 12318 L_27016551: 12319 MEM32(edi + 0x4) = edx; /* 0x27016551: mov dword ptr [edi + 4], edx */ 12320 MEM32(edx + 0x8) = ecx; /* 0x27016554: mov dword ptr [edx + 8], ecx */ 12321 goto L_2701660E; /* 0x27016557: jmp 0x2701660e */ 12322 L_2701655C: 12323 edi = MEM32(ecx + 0x4); /* 0x2701655C: mov edi, dword ptr [ecx + 4] */ 12324 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701655F: cmp ecx, dword ptr [edi + 8] */ 12325 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12327 _flag_k = FK_CMP; 12328 if (CMP_NE(_flag_a, _flag_b)) goto L_2701656F; /* 0x27016562: jne 0x2701656f */ 12329 L_27016564: 12330 MEM32(edi + 0x8) = edx; /* 0x27016564: mov dword ptr [edi + 8], edx */ 12331 MEM32(edx + 0x8) = ecx; /* 0x27016567: mov dword ptr [edx + 8], ecx */ 12332 goto L_2701660E; /* 0x2701656A: jmp 0x2701660e */ 12333 L_2701656F: 12334 MEM32(edi) = edx; /* 0x2701656F: mov dword ptr [edi], edx */ 12335 MEM32(edx + 0x8) = ecx; /* 0x27016571: mov dword ptr [edx + 8], ecx */ 12336 goto L_2701660E; /* 0x27016574: jmp 0x2701660e */ 12337 L_27016579: 12338 /* cmp MEM8(edx + 0x18), 0 */ /* 0x27016579: cmp byte ptr [edx + 0x18], 0 */ 12339 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 12340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12341 _flag_k = FK_NARROW(FK_CMP, 24); 12342 RECOMP_BACKEDGE(); 12343 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164C1; /* 0x2701657D: je 0x270164c1 */ 12344 L_27016583: 12345 /* cmp eax, MEM32(ecx) */ /* 0x27016583: cmp eax, dword ptr [ecx] */ 12346 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 12347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12348 _flag_k = FK_CMP; 12349 if (CMP_NE(_flag_a, _flag_b)) goto L_270165C3; /* 0x27016585: jne 0x270165c3 */ 12350 L_27016587: 12351 eax = ecx; /* 0x27016587: mov eax, ecx */ 12352 ecx = MEM32(eax); /* 0x27016589: mov ecx, dword ptr [eax] */ 12353 edx = MEM32(ecx + 0x8); /* 0x2701658B: mov edx, dword ptr [ecx + 8] */ 12354 MEM32(eax) = edx; /* 0x2701658E: mov dword ptr [eax], edx */ 12355 edx = MEM32(ecx + 0x8); /* 0x27016590: mov edx, dword ptr [ecx + 8] */ 12356 /* cmp edx, MEM32(esi + 0x8) */ /* 0x27016593: cmp edx, dword ptr [esi + 8] */ 12357 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12359 _flag_k = FK_CMP; 12360 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701659B; /* 0x27016596: je 0x2701659b */ 12361 L_27016598: 12362 MEM32(edx + 0x4) = eax; /* 0x27016598: mov dword ptr [edx + 4], eax */ 12363 L_2701659B: 12364 edx = MEM32(eax + 0x4); /* 0x2701659B: mov edx, dword ptr [eax + 4] */ 12365 MEM32(ecx + 0x4) = edx; /* 0x2701659E: mov dword ptr [ecx + 4], edx */ 12366 edx = MEM32(esi + 0x4); /* 0x270165A1: mov edx, dword ptr [esi + 4] */ 12367 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270165A4: cmp eax, dword ptr [edx + 4] */ 12368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12370 _flag_k = FK_CMP; 12371 if (CMP_NE(_flag_a, _flag_b)) goto L_270165AE; /* 0x270165A7: jne 0x270165ae */ 12372 L_270165A9: 12373 MEM32(edx + 0x4) = ecx; /* 0x270165A9: mov dword ptr [edx + 4], ecx */ 12374 goto L_270165BD; /* 0x270165AC: jmp 0x270165bd */ 12375 L_270165AE: 12376 edx = MEM32(eax + 0x4); /* 0x270165AE: mov edx, dword ptr [eax + 4] */ 12377 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270165B1: cmp eax, dword ptr [edx + 8] */ 12378 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 12379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12380 _flag_k = FK_CMP; 12381 if (CMP_NE(_flag_a, _flag_b)) goto L_270165BB; /* 0x270165B4: jne 0x270165bb */ 12382 L_270165B6: 12383 MEM32(edx + 0x8) = ecx; /* 0x270165B6: mov dword ptr [edx + 8], ecx */ 12384 goto L_270165BD; /* 0x270165B9: jmp 0x270165bd */ 12385 L_270165BB: 12386 MEM32(edx) = ecx; /* 0x270165BB: mov dword ptr [edx], ecx */ 12387 L_270165BD: 12388 MEM32(ecx + 0x8) = eax; /* 0x270165BD: mov dword ptr [ecx + 8], eax */ 12389 MEM32(eax + 0x4) = ecx; /* 0x270165C0: mov dword ptr [eax + 4], ecx */ 12390 L_270165C3: 12391 ecx = MEM32(eax + 0x4); /* 0x270165C3: mov ecx, dword ptr [eax + 4] */ 12392 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270165C6: mov byte ptr [ecx + 0x18], bl */ 12393 edx = MEM32(eax + 0x4); /* 0x270165C9: mov edx, dword ptr [eax + 4] */ 12394 ecx = MEM32(edx + 0x4); /* 0x270165CC: mov ecx, dword ptr [edx + 4] */ 12395 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270165CF: mov byte ptr [ecx + 0x18], 0 */ 12396 edx = MEM32(eax + 0x4); /* 0x270165D3: mov edx, dword ptr [eax + 4] */ 12397 ecx = MEM32(edx + 0x4); /* 0x270165D6: mov ecx, dword ptr [edx + 4] */ 12398 edx = MEM32(ecx + 0x8); /* 0x270165D9: mov edx, dword ptr [ecx + 8] */ 12399 edi = MEM32(edx); /* 0x270165DC: mov edi, dword ptr [edx] */ 12400 MEM32(ecx + 0x8) = edi; /* 0x270165DE: mov dword ptr [ecx + 8], edi */ 12401 edi = MEM32(edx); /* 0x270165E1: mov edi, dword ptr [edx] */ 12402 /* cmp edi, MEM32(esi + 0x8) */ /* 0x270165E3: cmp edi, dword ptr [esi + 8] */ 12403 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12405 _flag_k = FK_CMP; 12406 if (CMP_EQ(_flag_a, _flag_b)) goto L_270165EB; /* 0x270165E6: je 0x270165eb */ 12407 L_270165E8: 12408 MEM32(edi + 0x4) = ecx; /* 0x270165E8: mov dword ptr [edi + 4], ecx */ 12409 L_270165EB: 12410 edi = MEM32(ecx + 0x4); /* 0x270165EB: mov edi, dword ptr [ecx + 4] */ 12411 MEM32(edx + 0x4) = edi; /* 0x270165EE: mov dword ptr [edx + 4], edi */ 12412 edi = MEM32(esi + 0x4); /* 0x270165F1: mov edi, dword ptr [esi + 4] */ 12413 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x270165F4: cmp ecx, dword ptr [edi + 4] */ 12414 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12416 _flag_k = FK_CMP; 12417 if (CMP_NE(_flag_a, _flag_b)) goto L_270165FE; /* 0x270165F7: jne 0x270165fe */ 12418 L_270165F9: 12419 MEM32(edi + 0x4) = edx; /* 0x270165F9: mov dword ptr [edi + 4], edx */ 12420 goto L_2701660C; /* 0x270165FC: jmp 0x2701660c */ 12421 L_270165FE: 12422 edi = MEM32(ecx + 0x4); /* 0x270165FE: mov edi, dword ptr [ecx + 4] */ 12423 /* cmp ecx, MEM32(edi) */ /* 0x27016601: cmp ecx, dword ptr [edi] */ 12424 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 12425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12426 _flag_k = FK_CMP; 12427 if (CMP_NE(_flag_a, _flag_b)) goto L_27016609; /* 0x27016603: jne 0x27016609 */ 12428 L_27016605: 12429 MEM32(edi) = edx; /* 0x27016605: mov dword ptr [edi], edx */ 12430 goto L_2701660C; /* 0x27016607: jmp 0x2701660c */ 12431 L_27016609: 12432 MEM32(edi + 0x8) = edx; /* 0x27016609: mov dword ptr [edi + 8], edx */ 12433 L_2701660C: 12434 MEM32(edx) = ecx; /* 0x2701660C: mov dword ptr [edx], ecx */ 12435 L_2701660E: 12436 MEM32(ecx + 0x4) = edx; /* 0x2701660E: mov dword ptr [ecx + 4], edx */ 12437 L_27016611: 12438 ecx = MEM32(esi + 0x4); /* 0x27016611: mov ecx, dword ptr [esi + 4] */ 12439 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016614: cmp eax, dword ptr [ecx + 4] */ 12440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12442 _flag_k = FK_CMP; 12443 RECOMP_BACKEDGE(); 12444 if (CMP_NE(_flag_a, _flag_b)) goto L_2701649D; /* 0x27016617: jne 0x2701649d */ 12445 L_2701661D: 12446 edx = MEM32(esi + 0x4); /* 0x2701661D: mov edx, dword ptr [esi + 4] */ 12447 eax = MEM32(edx + 0x4); /* 0x27016620: mov eax, dword ptr [edx + 4] */ 12448 ecx = MEM32(ebp + (-0x4)); /* 0x27016623: mov ecx, dword ptr [ebp - 4] */ 12449 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016626: mov byte ptr [eax + 0x18], bl */ 12450 eax = MEM32(ebp + 0x8); /* 0x27016629: mov eax, dword ptr [ebp + 8] */ 12451 edi = POP32_VAL(esp); /* 0x2701662C: pop edi */ 12452 esi = POP32_VAL(esp); /* 0x2701662D: pop esi */ 12453 MEM32(eax) = ecx; /* 0x2701662E: mov dword ptr [eax], ecx */ 12454 ebx = POP32_VAL(esp); /* 0x27016630: pop ebx */ 12455 esp = ebp; /* 0x27016631: mov esp, ebp */ 12456 ebp = POP32_VAL(esp); /* 0x27016633: pop ebp */ 12457 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016634: ret 0x10 */ 12458 RECOMP_REGS_OUT(); 12459 } 12460 12461 void sub_27016579(void) { 12462 int _fpu_cmp = 0; 12463 uint32_t _cf = 0; 12464 int _df = 1; 12465 uint32_t _flag_k = FK_NONE; 12466 uint32_t _flag_a = 0, _flag_b = 0; 12467 uint32_t _itail_tgt = 0; 12468 RECOMP_REGS_LOCALS 12469 RECOMP_ENTER(0x27016579u); 12470 12471 goto L_27016579; 12472 L_2701649D: 12473 ecx = MEM32(eax + 0x4); /* 0x2701649D: mov ecx, dword ptr [eax + 4] */ 12474 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270164A0: mov dl, byte ptr [ecx + 0x18] */ 12475 /* test LO8(edx), LO8(edx) */ /* 0x270164A3: test dl, dl */ 12476 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12477 _cf = 0; 12478 _flag_k = FK_NARROW(FK_TEST, 24); 12479 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701661D; /* 0x270164A5: jne 0x2701661d */ 12480 L_270164AB: 12481 edi = MEM32(ecx + 0x4); /* 0x270164AB: mov edi, dword ptr [ecx + 4] */ 12482 edx = MEM32(edi); /* 0x270164AE: mov edx, dword ptr [edi] */ 12483 /* cmp ecx, edx */ /* 0x270164B0: cmp ecx, edx */ 12484 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12486 _flag_k = FK_CMP; 12487 if (CMP_NE(_flag_a, _flag_b)) goto L_27016579; /* 0x270164B2: jne 0x27016579 */ 12488 L_270164B8: 12489 edx = MEM32(edi + 0x8); /* 0x270164B8: mov edx, dword ptr [edi + 8] */ 12490 /* cmp MEM8(edx + 0x18), 0 */ /* 0x270164BB: cmp byte ptr [edx + 0x18], 0 */ 12491 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 12492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12493 _flag_k = FK_NARROW(FK_CMP, 24); 12494 if (CMP_NE(_flag_a, _flag_b)) goto L_270164DC; /* 0x270164BF: jne 0x270164dc */ 12495 L_270164C1: 12496 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C1: mov byte ptr [ecx + 0x18], bl */ 12497 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C4: mov byte ptr [edx + 0x18], bl */ 12498 ecx = MEM32(eax + 0x4); /* 0x270164C7: mov ecx, dword ptr [eax + 4] */ 12499 edx = MEM32(ecx + 0x4); /* 0x270164CA: mov edx, dword ptr [ecx + 4] */ 12500 MEM8(edx + 0x18) = (uint8_t)(0); /* 0x270164CD: mov byte ptr [edx + 0x18], 0 */ 12501 eax = MEM32(eax + 0x4); /* 0x270164D1: mov eax, dword ptr [eax + 4] */ 12502 eax = MEM32(eax + 0x4); /* 0x270164D4: mov eax, dword ptr [eax + 4] */ 12503 goto L_27016611; /* 0x270164D7: jmp 0x27016611 */ 12504 L_270164DC: 12505 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270164DC: cmp eax, dword ptr [ecx + 8] */ 12506 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 12507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12508 _flag_k = FK_CMP; 12509 if (CMP_NE(_flag_a, _flag_b)) goto L_2701651B; /* 0x270164DF: jne 0x2701651b */ 12510 L_270164E1: 12511 eax = ecx; /* 0x270164E1: mov eax, ecx */ 12512 ecx = MEM32(eax + 0x8); /* 0x270164E3: mov ecx, dword ptr [eax + 8] */ 12513 edx = MEM32(ecx); /* 0x270164E6: mov edx, dword ptr [ecx] */ 12514 MEM32(eax + 0x8) = edx; /* 0x270164E8: mov dword ptr [eax + 8], edx */ 12515 edx = MEM32(ecx); /* 0x270164EB: mov edx, dword ptr [ecx] */ 12516 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270164ED: cmp edx, dword ptr [esi + 8] */ 12517 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12519 _flag_k = FK_CMP; 12520 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164F5; /* 0x270164F0: je 0x270164f5 */ 12521 L_270164F2: 12522 MEM32(edx + 0x4) = eax; /* 0x270164F2: mov dword ptr [edx + 4], eax */ 12523 L_270164F5: 12524 edx = MEM32(eax + 0x4); /* 0x270164F5: mov edx, dword ptr [eax + 4] */ 12525 MEM32(ecx + 0x4) = edx; /* 0x270164F8: mov dword ptr [ecx + 4], edx */ 12526 edx = MEM32(esi + 0x4); /* 0x270164FB: mov edx, dword ptr [esi + 4] */ 12527 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270164FE: cmp eax, dword ptr [edx + 4] */ 12528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12530 _flag_k = FK_CMP; 12531 if (CMP_NE(_flag_a, _flag_b)) goto L_27016508; /* 0x27016501: jne 0x27016508 */ 12532 L_27016503: 12533 MEM32(edx + 0x4) = ecx; /* 0x27016503: mov dword ptr [edx + 4], ecx */ 12534 goto L_27016516; /* 0x27016506: jmp 0x27016516 */ 12535 L_27016508: 12536 edx = MEM32(eax + 0x4); /* 0x27016508: mov edx, dword ptr [eax + 4] */ 12537 /* cmp eax, MEM32(edx) */ /* 0x2701650B: cmp eax, dword ptr [edx] */ 12538 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 12539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12540 _flag_k = FK_CMP; 12541 if (CMP_NE(_flag_a, _flag_b)) goto L_27016513; /* 0x2701650D: jne 0x27016513 */ 12542 L_2701650F: 12543 MEM32(edx) = ecx; /* 0x2701650F: mov dword ptr [edx], ecx */ 12544 goto L_27016516; /* 0x27016511: jmp 0x27016516 */ 12545 L_27016513: 12546 MEM32(edx + 0x8) = ecx; /* 0x27016513: mov dword ptr [edx + 8], ecx */ 12547 L_27016516: 12548 MEM32(ecx) = eax; /* 0x27016516: mov dword ptr [ecx], eax */ 12549 MEM32(eax + 0x4) = ecx; /* 0x27016518: mov dword ptr [eax + 4], ecx */ 12550 L_2701651B: 12551 ecx = MEM32(eax + 0x4); /* 0x2701651B: mov ecx, dword ptr [eax + 4] */ 12552 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701651E: mov byte ptr [ecx + 0x18], bl */ 12553 edx = MEM32(eax + 0x4); /* 0x27016521: mov edx, dword ptr [eax + 4] */ 12554 ecx = MEM32(edx + 0x4); /* 0x27016524: mov ecx, dword ptr [edx + 4] */ 12555 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016527: mov byte ptr [ecx + 0x18], 0 */ 12556 edx = MEM32(eax + 0x4); /* 0x2701652B: mov edx, dword ptr [eax + 4] */ 12557 ecx = MEM32(edx + 0x4); /* 0x2701652E: mov ecx, dword ptr [edx + 4] */ 12558 edx = MEM32(ecx); /* 0x27016531: mov edx, dword ptr [ecx] */ 12559 edi = MEM32(edx + 0x8); /* 0x27016533: mov edi, dword ptr [edx + 8] */ 12560 MEM32(ecx) = edi; /* 0x27016536: mov dword ptr [ecx], edi */ 12561 edi = MEM32(edx + 0x8); /* 0x27016538: mov edi, dword ptr [edx + 8] */ 12562 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701653B: cmp edi, dword ptr [esi + 8] */ 12563 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12565 _flag_k = FK_CMP; 12566 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016543; /* 0x2701653E: je 0x27016543 */ 12567 L_27016540: 12568 MEM32(edi + 0x4) = ecx; /* 0x27016540: mov dword ptr [edi + 4], ecx */ 12569 L_27016543: 12570 edi = MEM32(ecx + 0x4); /* 0x27016543: mov edi, dword ptr [ecx + 4] */ 12571 MEM32(edx + 0x4) = edi; /* 0x27016546: mov dword ptr [edx + 4], edi */ 12572 edi = MEM32(esi + 0x4); /* 0x27016549: mov edi, dword ptr [esi + 4] */ 12573 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701654C: cmp ecx, dword ptr [edi + 4] */ 12574 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12576 _flag_k = FK_CMP; 12577 if (CMP_NE(_flag_a, _flag_b)) goto L_2701655C; /* 0x2701654F: jne 0x2701655c */ 12578 L_27016551: 12579 MEM32(edi + 0x4) = edx; /* 0x27016551: mov dword ptr [edi + 4], edx */ 12580 MEM32(edx + 0x8) = ecx; /* 0x27016554: mov dword ptr [edx + 8], ecx */ 12581 goto L_2701660E; /* 0x27016557: jmp 0x2701660e */ 12582 L_2701655C: 12583 edi = MEM32(ecx + 0x4); /* 0x2701655C: mov edi, dword ptr [ecx + 4] */ 12584 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701655F: cmp ecx, dword ptr [edi + 8] */ 12585 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12587 _flag_k = FK_CMP; 12588 if (CMP_NE(_flag_a, _flag_b)) goto L_2701656F; /* 0x27016562: jne 0x2701656f */ 12589 L_27016564: 12590 MEM32(edi + 0x8) = edx; /* 0x27016564: mov dword ptr [edi + 8], edx */ 12591 MEM32(edx + 0x8) = ecx; /* 0x27016567: mov dword ptr [edx + 8], ecx */ 12592 goto L_2701660E; /* 0x2701656A: jmp 0x2701660e */ 12593 L_2701656F: 12594 MEM32(edi) = edx; /* 0x2701656F: mov dword ptr [edi], edx */ 12595 MEM32(edx + 0x8) = ecx; /* 0x27016571: mov dword ptr [edx + 8], ecx */ 12596 goto L_2701660E; /* 0x27016574: jmp 0x2701660e */ 12597 L_27016579: 12598 /* cmp MEM8(edx + 0x18), 0 */ /* 0x27016579: cmp byte ptr [edx + 0x18], 0 */ 12599 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 12600 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12601 _flag_k = FK_NARROW(FK_CMP, 24); 12602 RECOMP_BACKEDGE(); 12603 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164C1; /* 0x2701657D: je 0x270164c1 */ 12604 L_27016583: 12605 /* cmp eax, MEM32(ecx) */ /* 0x27016583: cmp eax, dword ptr [ecx] */ 12606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 12607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12608 _flag_k = FK_CMP; 12609 if (CMP_NE(_flag_a, _flag_b)) goto L_270165C3; /* 0x27016585: jne 0x270165c3 */ 12610 L_27016587: 12611 eax = ecx; /* 0x27016587: mov eax, ecx */ 12612 ecx = MEM32(eax); /* 0x27016589: mov ecx, dword ptr [eax] */ 12613 edx = MEM32(ecx + 0x8); /* 0x2701658B: mov edx, dword ptr [ecx + 8] */ 12614 MEM32(eax) = edx; /* 0x2701658E: mov dword ptr [eax], edx */ 12615 edx = MEM32(ecx + 0x8); /* 0x27016590: mov edx, dword ptr [ecx + 8] */ 12616 /* cmp edx, MEM32(esi + 0x8) */ /* 0x27016593: cmp edx, dword ptr [esi + 8] */ 12617 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12619 _flag_k = FK_CMP; 12620 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701659B; /* 0x27016596: je 0x2701659b */ 12621 L_27016598: 12622 MEM32(edx + 0x4) = eax; /* 0x27016598: mov dword ptr [edx + 4], eax */ 12623 L_2701659B: 12624 edx = MEM32(eax + 0x4); /* 0x2701659B: mov edx, dword ptr [eax + 4] */ 12625 MEM32(ecx + 0x4) = edx; /* 0x2701659E: mov dword ptr [ecx + 4], edx */ 12626 edx = MEM32(esi + 0x4); /* 0x270165A1: mov edx, dword ptr [esi + 4] */ 12627 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270165A4: cmp eax, dword ptr [edx + 4] */ 12628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12630 _flag_k = FK_CMP; 12631 if (CMP_NE(_flag_a, _flag_b)) goto L_270165AE; /* 0x270165A7: jne 0x270165ae */ 12632 L_270165A9: 12633 MEM32(edx + 0x4) = ecx; /* 0x270165A9: mov dword ptr [edx + 4], ecx */ 12634 goto L_270165BD; /* 0x270165AC: jmp 0x270165bd */ 12635 L_270165AE: 12636 edx = MEM32(eax + 0x4); /* 0x270165AE: mov edx, dword ptr [eax + 4] */ 12637 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270165B1: cmp eax, dword ptr [edx + 8] */ 12638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 12639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12640 _flag_k = FK_CMP; 12641 if (CMP_NE(_flag_a, _flag_b)) goto L_270165BB; /* 0x270165B4: jne 0x270165bb */ 12642 L_270165B6: 12643 MEM32(edx + 0x8) = ecx; /* 0x270165B6: mov dword ptr [edx + 8], ecx */ 12644 goto L_270165BD; /* 0x270165B9: jmp 0x270165bd */ 12645 L_270165BB: 12646 MEM32(edx) = ecx; /* 0x270165BB: mov dword ptr [edx], ecx */ 12647 L_270165BD: 12648 MEM32(ecx + 0x8) = eax; /* 0x270165BD: mov dword ptr [ecx + 8], eax */ 12649 MEM32(eax + 0x4) = ecx; /* 0x270165C0: mov dword ptr [eax + 4], ecx */ 12650 L_270165C3: 12651 ecx = MEM32(eax + 0x4); /* 0x270165C3: mov ecx, dword ptr [eax + 4] */ 12652 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270165C6: mov byte ptr [ecx + 0x18], bl */ 12653 edx = MEM32(eax + 0x4); /* 0x270165C9: mov edx, dword ptr [eax + 4] */ 12654 ecx = MEM32(edx + 0x4); /* 0x270165CC: mov ecx, dword ptr [edx + 4] */ 12655 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270165CF: mov byte ptr [ecx + 0x18], 0 */ 12656 edx = MEM32(eax + 0x4); /* 0x270165D3: mov edx, dword ptr [eax + 4] */ 12657 ecx = MEM32(edx + 0x4); /* 0x270165D6: mov ecx, dword ptr [edx + 4] */ 12658 edx = MEM32(ecx + 0x8); /* 0x270165D9: mov edx, dword ptr [ecx + 8] */ 12659 edi = MEM32(edx); /* 0x270165DC: mov edi, dword ptr [edx] */ 12660 MEM32(ecx + 0x8) = edi; /* 0x270165DE: mov dword ptr [ecx + 8], edi */ 12661 edi = MEM32(edx); /* 0x270165E1: mov edi, dword ptr [edx] */ 12662 /* cmp edi, MEM32(esi + 0x8) */ /* 0x270165E3: cmp edi, dword ptr [esi + 8] */ 12663 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12665 _flag_k = FK_CMP; 12666 if (CMP_EQ(_flag_a, _flag_b)) goto L_270165EB; /* 0x270165E6: je 0x270165eb */ 12667 L_270165E8: 12668 MEM32(edi + 0x4) = ecx; /* 0x270165E8: mov dword ptr [edi + 4], ecx */ 12669 L_270165EB: 12670 edi = MEM32(ecx + 0x4); /* 0x270165EB: mov edi, dword ptr [ecx + 4] */ 12671 MEM32(edx + 0x4) = edi; /* 0x270165EE: mov dword ptr [edx + 4], edi */ 12672 edi = MEM32(esi + 0x4); /* 0x270165F1: mov edi, dword ptr [esi + 4] */ 12673 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x270165F4: cmp ecx, dword ptr [edi + 4] */ 12674 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12676 _flag_k = FK_CMP; 12677 if (CMP_NE(_flag_a, _flag_b)) goto L_270165FE; /* 0x270165F7: jne 0x270165fe */ 12678 L_270165F9: 12679 MEM32(edi + 0x4) = edx; /* 0x270165F9: mov dword ptr [edi + 4], edx */ 12680 goto L_2701660C; /* 0x270165FC: jmp 0x2701660c */ 12681 L_270165FE: 12682 edi = MEM32(ecx + 0x4); /* 0x270165FE: mov edi, dword ptr [ecx + 4] */ 12683 /* cmp ecx, MEM32(edi) */ /* 0x27016601: cmp ecx, dword ptr [edi] */ 12684 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 12685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12686 _flag_k = FK_CMP; 12687 if (CMP_NE(_flag_a, _flag_b)) goto L_27016609; /* 0x27016603: jne 0x27016609 */ 12688 L_27016605: 12689 MEM32(edi) = edx; /* 0x27016605: mov dword ptr [edi], edx */ 12690 goto L_2701660C; /* 0x27016607: jmp 0x2701660c */ 12691 L_27016609: 12692 MEM32(edi + 0x8) = edx; /* 0x27016609: mov dword ptr [edi + 8], edx */ 12693 L_2701660C: 12694 MEM32(edx) = ecx; /* 0x2701660C: mov dword ptr [edx], ecx */ 12695 L_2701660E: 12696 MEM32(ecx + 0x4) = edx; /* 0x2701660E: mov dword ptr [ecx + 4], edx */ 12697 L_27016611: 12698 ecx = MEM32(esi + 0x4); /* 0x27016611: mov ecx, dword ptr [esi + 4] */ 12699 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016614: cmp eax, dword ptr [ecx + 4] */ 12700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12702 _flag_k = FK_CMP; 12703 RECOMP_BACKEDGE(); 12704 if (CMP_NE(_flag_a, _flag_b)) goto L_2701649D; /* 0x27016617: jne 0x2701649d */ 12705 L_2701661D: 12706 edx = MEM32(esi + 0x4); /* 0x2701661D: mov edx, dword ptr [esi + 4] */ 12707 eax = MEM32(edx + 0x4); /* 0x27016620: mov eax, dword ptr [edx + 4] */ 12708 ecx = MEM32(ebp + (-0x4)); /* 0x27016623: mov ecx, dword ptr [ebp - 4] */ 12709 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016626: mov byte ptr [eax + 0x18], bl */ 12710 eax = MEM32(ebp + 0x8); /* 0x27016629: mov eax, dword ptr [ebp + 8] */ 12711 edi = POP32_VAL(esp); /* 0x2701662C: pop edi */ 12712 esi = POP32_VAL(esp); /* 0x2701662D: pop esi */ 12713 MEM32(eax) = ecx; /* 0x2701662E: mov dword ptr [eax], ecx */ 12714 ebx = POP32_VAL(esp); /* 0x27016630: pop ebx */ 12715 esp = ebp; /* 0x27016631: mov esp, ebp */ 12716 ebp = POP32_VAL(esp); /* 0x27016633: pop ebp */ 12717 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016634: ret 0x10 */ 12718 RECOMP_REGS_OUT(); 12719 } 12720 12721 void sub_270165BD(void) { 12722 int _fpu_cmp = 0; 12723 uint32_t _cf = 0; 12724 int _df = 1; 12725 uint32_t _flag_k = FK_NONE; 12726 uint32_t _flag_a = 0, _flag_b = 0; 12727 uint32_t _itail_tgt = 0; 12728 RECOMP_REGS_LOCALS 12729 RECOMP_ENTER(0x270165BDu); 12730 12731 goto L_270165BD; 12732 L_2701649D: 12733 ecx = MEM32(eax + 0x4); /* 0x2701649D: mov ecx, dword ptr [eax + 4] */ 12734 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270164A0: mov dl, byte ptr [ecx + 0x18] */ 12735 /* test LO8(edx), LO8(edx) */ /* 0x270164A3: test dl, dl */ 12736 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12737 _cf = 0; 12738 _flag_k = FK_NARROW(FK_TEST, 24); 12739 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701661D; /* 0x270164A5: jne 0x2701661d */ 12740 L_270164AB: 12741 edi = MEM32(ecx + 0x4); /* 0x270164AB: mov edi, dword ptr [ecx + 4] */ 12742 edx = MEM32(edi); /* 0x270164AE: mov edx, dword ptr [edi] */ 12743 /* cmp ecx, edx */ /* 0x270164B0: cmp ecx, edx */ 12744 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12746 _flag_k = FK_CMP; 12747 if (CMP_NE(_flag_a, _flag_b)) goto L_27016579; /* 0x270164B2: jne 0x27016579 */ 12748 L_270164B8: 12749 edx = MEM32(edi + 0x8); /* 0x270164B8: mov edx, dword ptr [edi + 8] */ 12750 /* cmp MEM8(edx + 0x18), 0 */ /* 0x270164BB: cmp byte ptr [edx + 0x18], 0 */ 12751 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 12752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12753 _flag_k = FK_NARROW(FK_CMP, 24); 12754 if (CMP_NE(_flag_a, _flag_b)) goto L_270164DC; /* 0x270164BF: jne 0x270164dc */ 12755 L_270164C1: 12756 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C1: mov byte ptr [ecx + 0x18], bl */ 12757 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C4: mov byte ptr [edx + 0x18], bl */ 12758 ecx = MEM32(eax + 0x4); /* 0x270164C7: mov ecx, dword ptr [eax + 4] */ 12759 edx = MEM32(ecx + 0x4); /* 0x270164CA: mov edx, dword ptr [ecx + 4] */ 12760 MEM8(edx + 0x18) = (uint8_t)(0); /* 0x270164CD: mov byte ptr [edx + 0x18], 0 */ 12761 eax = MEM32(eax + 0x4); /* 0x270164D1: mov eax, dword ptr [eax + 4] */ 12762 eax = MEM32(eax + 0x4); /* 0x270164D4: mov eax, dword ptr [eax + 4] */ 12763 goto L_27016611; /* 0x270164D7: jmp 0x27016611 */ 12764 L_270164DC: 12765 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270164DC: cmp eax, dword ptr [ecx + 8] */ 12766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 12767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12768 _flag_k = FK_CMP; 12769 if (CMP_NE(_flag_a, _flag_b)) goto L_2701651B; /* 0x270164DF: jne 0x2701651b */ 12770 L_270164E1: 12771 eax = ecx; /* 0x270164E1: mov eax, ecx */ 12772 ecx = MEM32(eax + 0x8); /* 0x270164E3: mov ecx, dword ptr [eax + 8] */ 12773 edx = MEM32(ecx); /* 0x270164E6: mov edx, dword ptr [ecx] */ 12774 MEM32(eax + 0x8) = edx; /* 0x270164E8: mov dword ptr [eax + 8], edx */ 12775 edx = MEM32(ecx); /* 0x270164EB: mov edx, dword ptr [ecx] */ 12776 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270164ED: cmp edx, dword ptr [esi + 8] */ 12777 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12779 _flag_k = FK_CMP; 12780 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164F5; /* 0x270164F0: je 0x270164f5 */ 12781 L_270164F2: 12782 MEM32(edx + 0x4) = eax; /* 0x270164F2: mov dword ptr [edx + 4], eax */ 12783 L_270164F5: 12784 edx = MEM32(eax + 0x4); /* 0x270164F5: mov edx, dword ptr [eax + 4] */ 12785 MEM32(ecx + 0x4) = edx; /* 0x270164F8: mov dword ptr [ecx + 4], edx */ 12786 edx = MEM32(esi + 0x4); /* 0x270164FB: mov edx, dword ptr [esi + 4] */ 12787 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270164FE: cmp eax, dword ptr [edx + 4] */ 12788 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12790 _flag_k = FK_CMP; 12791 if (CMP_NE(_flag_a, _flag_b)) goto L_27016508; /* 0x27016501: jne 0x27016508 */ 12792 L_27016503: 12793 MEM32(edx + 0x4) = ecx; /* 0x27016503: mov dword ptr [edx + 4], ecx */ 12794 goto L_27016516; /* 0x27016506: jmp 0x27016516 */ 12795 L_27016508: 12796 edx = MEM32(eax + 0x4); /* 0x27016508: mov edx, dword ptr [eax + 4] */ 12797 /* cmp eax, MEM32(edx) */ /* 0x2701650B: cmp eax, dword ptr [edx] */ 12798 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 12799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12800 _flag_k = FK_CMP; 12801 if (CMP_NE(_flag_a, _flag_b)) goto L_27016513; /* 0x2701650D: jne 0x27016513 */ 12802 L_2701650F: 12803 MEM32(edx) = ecx; /* 0x2701650F: mov dword ptr [edx], ecx */ 12804 goto L_27016516; /* 0x27016511: jmp 0x27016516 */ 12805 L_27016513: 12806 MEM32(edx + 0x8) = ecx; /* 0x27016513: mov dword ptr [edx + 8], ecx */ 12807 L_27016516: 12808 MEM32(ecx) = eax; /* 0x27016516: mov dword ptr [ecx], eax */ 12809 MEM32(eax + 0x4) = ecx; /* 0x27016518: mov dword ptr [eax + 4], ecx */ 12810 L_2701651B: 12811 ecx = MEM32(eax + 0x4); /* 0x2701651B: mov ecx, dword ptr [eax + 4] */ 12812 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701651E: mov byte ptr [ecx + 0x18], bl */ 12813 edx = MEM32(eax + 0x4); /* 0x27016521: mov edx, dword ptr [eax + 4] */ 12814 ecx = MEM32(edx + 0x4); /* 0x27016524: mov ecx, dword ptr [edx + 4] */ 12815 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016527: mov byte ptr [ecx + 0x18], 0 */ 12816 edx = MEM32(eax + 0x4); /* 0x2701652B: mov edx, dword ptr [eax + 4] */ 12817 ecx = MEM32(edx + 0x4); /* 0x2701652E: mov ecx, dword ptr [edx + 4] */ 12818 edx = MEM32(ecx); /* 0x27016531: mov edx, dword ptr [ecx] */ 12819 edi = MEM32(edx + 0x8); /* 0x27016533: mov edi, dword ptr [edx + 8] */ 12820 MEM32(ecx) = edi; /* 0x27016536: mov dword ptr [ecx], edi */ 12821 edi = MEM32(edx + 0x8); /* 0x27016538: mov edi, dword ptr [edx + 8] */ 12822 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701653B: cmp edi, dword ptr [esi + 8] */ 12823 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12825 _flag_k = FK_CMP; 12826 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016543; /* 0x2701653E: je 0x27016543 */ 12827 L_27016540: 12828 MEM32(edi + 0x4) = ecx; /* 0x27016540: mov dword ptr [edi + 4], ecx */ 12829 L_27016543: 12830 edi = MEM32(ecx + 0x4); /* 0x27016543: mov edi, dword ptr [ecx + 4] */ 12831 MEM32(edx + 0x4) = edi; /* 0x27016546: mov dword ptr [edx + 4], edi */ 12832 edi = MEM32(esi + 0x4); /* 0x27016549: mov edi, dword ptr [esi + 4] */ 12833 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701654C: cmp ecx, dword ptr [edi + 4] */ 12834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12836 _flag_k = FK_CMP; 12837 if (CMP_NE(_flag_a, _flag_b)) goto L_2701655C; /* 0x2701654F: jne 0x2701655c */ 12838 L_27016551: 12839 MEM32(edi + 0x4) = edx; /* 0x27016551: mov dword ptr [edi + 4], edx */ 12840 MEM32(edx + 0x8) = ecx; /* 0x27016554: mov dword ptr [edx + 8], ecx */ 12841 goto L_2701660E; /* 0x27016557: jmp 0x2701660e */ 12842 L_2701655C: 12843 edi = MEM32(ecx + 0x4); /* 0x2701655C: mov edi, dword ptr [ecx + 4] */ 12844 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701655F: cmp ecx, dword ptr [edi + 8] */ 12845 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12847 _flag_k = FK_CMP; 12848 if (CMP_NE(_flag_a, _flag_b)) goto L_2701656F; /* 0x27016562: jne 0x2701656f */ 12849 L_27016564: 12850 MEM32(edi + 0x8) = edx; /* 0x27016564: mov dword ptr [edi + 8], edx */ 12851 MEM32(edx + 0x8) = ecx; /* 0x27016567: mov dword ptr [edx + 8], ecx */ 12852 goto L_2701660E; /* 0x2701656A: jmp 0x2701660e */ 12853 L_2701656F: 12854 MEM32(edi) = edx; /* 0x2701656F: mov dword ptr [edi], edx */ 12855 MEM32(edx + 0x8) = ecx; /* 0x27016571: mov dword ptr [edx + 8], ecx */ 12856 goto L_2701660E; /* 0x27016574: jmp 0x2701660e */ 12857 L_27016579: 12858 /* cmp MEM8(edx + 0x18), 0 */ /* 0x27016579: cmp byte ptr [edx + 0x18], 0 */ 12859 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 12860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12861 _flag_k = FK_NARROW(FK_CMP, 24); 12862 RECOMP_BACKEDGE(); 12863 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164C1; /* 0x2701657D: je 0x270164c1 */ 12864 L_27016583: 12865 /* cmp eax, MEM32(ecx) */ /* 0x27016583: cmp eax, dword ptr [ecx] */ 12866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 12867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12868 _flag_k = FK_CMP; 12869 if (CMP_NE(_flag_a, _flag_b)) goto L_270165C3; /* 0x27016585: jne 0x270165c3 */ 12870 L_27016587: 12871 eax = ecx; /* 0x27016587: mov eax, ecx */ 12872 ecx = MEM32(eax); /* 0x27016589: mov ecx, dword ptr [eax] */ 12873 edx = MEM32(ecx + 0x8); /* 0x2701658B: mov edx, dword ptr [ecx + 8] */ 12874 MEM32(eax) = edx; /* 0x2701658E: mov dword ptr [eax], edx */ 12875 edx = MEM32(ecx + 0x8); /* 0x27016590: mov edx, dword ptr [ecx + 8] */ 12876 /* cmp edx, MEM32(esi + 0x8) */ /* 0x27016593: cmp edx, dword ptr [esi + 8] */ 12877 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12879 _flag_k = FK_CMP; 12880 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701659B; /* 0x27016596: je 0x2701659b */ 12881 L_27016598: 12882 MEM32(edx + 0x4) = eax; /* 0x27016598: mov dword ptr [edx + 4], eax */ 12883 L_2701659B: 12884 edx = MEM32(eax + 0x4); /* 0x2701659B: mov edx, dword ptr [eax + 4] */ 12885 MEM32(ecx + 0x4) = edx; /* 0x2701659E: mov dword ptr [ecx + 4], edx */ 12886 edx = MEM32(esi + 0x4); /* 0x270165A1: mov edx, dword ptr [esi + 4] */ 12887 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270165A4: cmp eax, dword ptr [edx + 4] */ 12888 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12890 _flag_k = FK_CMP; 12891 if (CMP_NE(_flag_a, _flag_b)) goto L_270165AE; /* 0x270165A7: jne 0x270165ae */ 12892 L_270165A9: 12893 MEM32(edx + 0x4) = ecx; /* 0x270165A9: mov dword ptr [edx + 4], ecx */ 12894 goto L_270165BD; /* 0x270165AC: jmp 0x270165bd */ 12895 L_270165AE: 12896 edx = MEM32(eax + 0x4); /* 0x270165AE: mov edx, dword ptr [eax + 4] */ 12897 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270165B1: cmp eax, dword ptr [edx + 8] */ 12898 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 12899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12900 _flag_k = FK_CMP; 12901 if (CMP_NE(_flag_a, _flag_b)) goto L_270165BB; /* 0x270165B4: jne 0x270165bb */ 12902 L_270165B6: 12903 MEM32(edx + 0x8) = ecx; /* 0x270165B6: mov dword ptr [edx + 8], ecx */ 12904 goto L_270165BD; /* 0x270165B9: jmp 0x270165bd */ 12905 L_270165BB: 12906 MEM32(edx) = ecx; /* 0x270165BB: mov dword ptr [edx], ecx */ 12907 L_270165BD: 12908 MEM32(ecx + 0x8) = eax; /* 0x270165BD: mov dword ptr [ecx + 8], eax */ 12909 MEM32(eax + 0x4) = ecx; /* 0x270165C0: mov dword ptr [eax + 4], ecx */ 12910 L_270165C3: 12911 ecx = MEM32(eax + 0x4); /* 0x270165C3: mov ecx, dword ptr [eax + 4] */ 12912 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270165C6: mov byte ptr [ecx + 0x18], bl */ 12913 edx = MEM32(eax + 0x4); /* 0x270165C9: mov edx, dword ptr [eax + 4] */ 12914 ecx = MEM32(edx + 0x4); /* 0x270165CC: mov ecx, dword ptr [edx + 4] */ 12915 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270165CF: mov byte ptr [ecx + 0x18], 0 */ 12916 edx = MEM32(eax + 0x4); /* 0x270165D3: mov edx, dword ptr [eax + 4] */ 12917 ecx = MEM32(edx + 0x4); /* 0x270165D6: mov ecx, dword ptr [edx + 4] */ 12918 edx = MEM32(ecx + 0x8); /* 0x270165D9: mov edx, dword ptr [ecx + 8] */ 12919 edi = MEM32(edx); /* 0x270165DC: mov edi, dword ptr [edx] */ 12920 MEM32(ecx + 0x8) = edi; /* 0x270165DE: mov dword ptr [ecx + 8], edi */ 12921 edi = MEM32(edx); /* 0x270165E1: mov edi, dword ptr [edx] */ 12922 /* cmp edi, MEM32(esi + 0x8) */ /* 0x270165E3: cmp edi, dword ptr [esi + 8] */ 12923 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12925 _flag_k = FK_CMP; 12926 if (CMP_EQ(_flag_a, _flag_b)) goto L_270165EB; /* 0x270165E6: je 0x270165eb */ 12927 L_270165E8: 12928 MEM32(edi + 0x4) = ecx; /* 0x270165E8: mov dword ptr [edi + 4], ecx */ 12929 L_270165EB: 12930 edi = MEM32(ecx + 0x4); /* 0x270165EB: mov edi, dword ptr [ecx + 4] */ 12931 MEM32(edx + 0x4) = edi; /* 0x270165EE: mov dword ptr [edx + 4], edi */ 12932 edi = MEM32(esi + 0x4); /* 0x270165F1: mov edi, dword ptr [esi + 4] */ 12933 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x270165F4: cmp ecx, dword ptr [edi + 4] */ 12934 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 12935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12936 _flag_k = FK_CMP; 12937 if (CMP_NE(_flag_a, _flag_b)) goto L_270165FE; /* 0x270165F7: jne 0x270165fe */ 12938 L_270165F9: 12939 MEM32(edi + 0x4) = edx; /* 0x270165F9: mov dword ptr [edi + 4], edx */ 12940 goto L_2701660C; /* 0x270165FC: jmp 0x2701660c */ 12941 L_270165FE: 12942 edi = MEM32(ecx + 0x4); /* 0x270165FE: mov edi, dword ptr [ecx + 4] */ 12943 /* cmp ecx, MEM32(edi) */ /* 0x27016601: cmp ecx, dword ptr [edi] */ 12944 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 12945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12946 _flag_k = FK_CMP; 12947 if (CMP_NE(_flag_a, _flag_b)) goto L_27016609; /* 0x27016603: jne 0x27016609 */ 12948 L_27016605: 12949 MEM32(edi) = edx; /* 0x27016605: mov dword ptr [edi], edx */ 12950 goto L_2701660C; /* 0x27016607: jmp 0x2701660c */ 12951 L_27016609: 12952 MEM32(edi + 0x8) = edx; /* 0x27016609: mov dword ptr [edi + 8], edx */ 12953 L_2701660C: 12954 MEM32(edx) = ecx; /* 0x2701660C: mov dword ptr [edx], ecx */ 12955 L_2701660E: 12956 MEM32(ecx + 0x4) = edx; /* 0x2701660E: mov dword ptr [ecx + 4], edx */ 12957 L_27016611: 12958 ecx = MEM32(esi + 0x4); /* 0x27016611: mov ecx, dword ptr [esi + 4] */ 12959 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016614: cmp eax, dword ptr [ecx + 4] */ 12960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12962 _flag_k = FK_CMP; 12963 RECOMP_BACKEDGE(); 12964 if (CMP_NE(_flag_a, _flag_b)) goto L_2701649D; /* 0x27016617: jne 0x2701649d */ 12965 L_2701661D: 12966 edx = MEM32(esi + 0x4); /* 0x2701661D: mov edx, dword ptr [esi + 4] */ 12967 eax = MEM32(edx + 0x4); /* 0x27016620: mov eax, dword ptr [edx + 4] */ 12968 ecx = MEM32(ebp + (-0x4)); /* 0x27016623: mov ecx, dword ptr [ebp - 4] */ 12969 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016626: mov byte ptr [eax + 0x18], bl */ 12970 eax = MEM32(ebp + 0x8); /* 0x27016629: mov eax, dword ptr [ebp + 8] */ 12971 edi = POP32_VAL(esp); /* 0x2701662C: pop edi */ 12972 esi = POP32_VAL(esp); /* 0x2701662D: pop esi */ 12973 MEM32(eax) = ecx; /* 0x2701662E: mov dword ptr [eax], ecx */ 12974 ebx = POP32_VAL(esp); /* 0x27016630: pop ebx */ 12975 esp = ebp; /* 0x27016631: mov esp, ebp */ 12976 ebp = POP32_VAL(esp); /* 0x27016633: pop ebp */ 12977 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016634: ret 0x10 */ 12978 RECOMP_REGS_OUT(); 12979 } 12980 12981 void sub_270165C3(void) { 12982 int _fpu_cmp = 0; 12983 uint32_t _cf = 0; 12984 int _df = 1; 12985 uint32_t _flag_k = FK_NONE; 12986 uint32_t _flag_a = 0, _flag_b = 0; 12987 uint32_t _itail_tgt = 0; 12988 RECOMP_REGS_LOCALS 12989 RECOMP_ENTER(0x270165C3u); 12990 12991 goto L_270165C3; 12992 L_2701649D: 12993 ecx = MEM32(eax + 0x4); /* 0x2701649D: mov ecx, dword ptr [eax + 4] */ 12994 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270164A0: mov dl, byte ptr [ecx + 0x18] */ 12995 /* test LO8(edx), LO8(edx) */ /* 0x270164A3: test dl, dl */ 12996 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12997 _cf = 0; 12998 _flag_k = FK_NARROW(FK_TEST, 24); 12999 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701661D; /* 0x270164A5: jne 0x2701661d */ 13000 L_270164AB: 13001 edi = MEM32(ecx + 0x4); /* 0x270164AB: mov edi, dword ptr [ecx + 4] */ 13002 edx = MEM32(edi); /* 0x270164AE: mov edx, dword ptr [edi] */ 13003 /* cmp ecx, edx */ /* 0x270164B0: cmp ecx, edx */ 13004 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13006 _flag_k = FK_CMP; 13007 if (CMP_NE(_flag_a, _flag_b)) goto L_27016579; /* 0x270164B2: jne 0x27016579 */ 13008 L_270164B8: 13009 edx = MEM32(edi + 0x8); /* 0x270164B8: mov edx, dword ptr [edi + 8] */ 13010 /* cmp MEM8(edx + 0x18), 0 */ /* 0x270164BB: cmp byte ptr [edx + 0x18], 0 */ 13011 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 13012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13013 _flag_k = FK_NARROW(FK_CMP, 24); 13014 if (CMP_NE(_flag_a, _flag_b)) goto L_270164DC; /* 0x270164BF: jne 0x270164dc */ 13015 L_270164C1: 13016 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C1: mov byte ptr [ecx + 0x18], bl */ 13017 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C4: mov byte ptr [edx + 0x18], bl */ 13018 ecx = MEM32(eax + 0x4); /* 0x270164C7: mov ecx, dword ptr [eax + 4] */ 13019 edx = MEM32(ecx + 0x4); /* 0x270164CA: mov edx, dword ptr [ecx + 4] */ 13020 MEM8(edx + 0x18) = (uint8_t)(0); /* 0x270164CD: mov byte ptr [edx + 0x18], 0 */ 13021 eax = MEM32(eax + 0x4); /* 0x270164D1: mov eax, dword ptr [eax + 4] */ 13022 eax = MEM32(eax + 0x4); /* 0x270164D4: mov eax, dword ptr [eax + 4] */ 13023 goto L_27016611; /* 0x270164D7: jmp 0x27016611 */ 13024 L_270164DC: 13025 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270164DC: cmp eax, dword ptr [ecx + 8] */ 13026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 13027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13028 _flag_k = FK_CMP; 13029 if (CMP_NE(_flag_a, _flag_b)) goto L_2701651B; /* 0x270164DF: jne 0x2701651b */ 13030 L_270164E1: 13031 eax = ecx; /* 0x270164E1: mov eax, ecx */ 13032 ecx = MEM32(eax + 0x8); /* 0x270164E3: mov ecx, dword ptr [eax + 8] */ 13033 edx = MEM32(ecx); /* 0x270164E6: mov edx, dword ptr [ecx] */ 13034 MEM32(eax + 0x8) = edx; /* 0x270164E8: mov dword ptr [eax + 8], edx */ 13035 edx = MEM32(ecx); /* 0x270164EB: mov edx, dword ptr [ecx] */ 13036 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270164ED: cmp edx, dword ptr [esi + 8] */ 13037 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13039 _flag_k = FK_CMP; 13040 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164F5; /* 0x270164F0: je 0x270164f5 */ 13041 L_270164F2: 13042 MEM32(edx + 0x4) = eax; /* 0x270164F2: mov dword ptr [edx + 4], eax */ 13043 L_270164F5: 13044 edx = MEM32(eax + 0x4); /* 0x270164F5: mov edx, dword ptr [eax + 4] */ 13045 MEM32(ecx + 0x4) = edx; /* 0x270164F8: mov dword ptr [ecx + 4], edx */ 13046 edx = MEM32(esi + 0x4); /* 0x270164FB: mov edx, dword ptr [esi + 4] */ 13047 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270164FE: cmp eax, dword ptr [edx + 4] */ 13048 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 13049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13050 _flag_k = FK_CMP; 13051 if (CMP_NE(_flag_a, _flag_b)) goto L_27016508; /* 0x27016501: jne 0x27016508 */ 13052 L_27016503: 13053 MEM32(edx + 0x4) = ecx; /* 0x27016503: mov dword ptr [edx + 4], ecx */ 13054 goto L_27016516; /* 0x27016506: jmp 0x27016516 */ 13055 L_27016508: 13056 edx = MEM32(eax + 0x4); /* 0x27016508: mov edx, dword ptr [eax + 4] */ 13057 /* cmp eax, MEM32(edx) */ /* 0x2701650B: cmp eax, dword ptr [edx] */ 13058 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 13059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13060 _flag_k = FK_CMP; 13061 if (CMP_NE(_flag_a, _flag_b)) goto L_27016513; /* 0x2701650D: jne 0x27016513 */ 13062 L_2701650F: 13063 MEM32(edx) = ecx; /* 0x2701650F: mov dword ptr [edx], ecx */ 13064 goto L_27016516; /* 0x27016511: jmp 0x27016516 */ 13065 L_27016513: 13066 MEM32(edx + 0x8) = ecx; /* 0x27016513: mov dword ptr [edx + 8], ecx */ 13067 L_27016516: 13068 MEM32(ecx) = eax; /* 0x27016516: mov dword ptr [ecx], eax */ 13069 MEM32(eax + 0x4) = ecx; /* 0x27016518: mov dword ptr [eax + 4], ecx */ 13070 L_2701651B: 13071 ecx = MEM32(eax + 0x4); /* 0x2701651B: mov ecx, dword ptr [eax + 4] */ 13072 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701651E: mov byte ptr [ecx + 0x18], bl */ 13073 edx = MEM32(eax + 0x4); /* 0x27016521: mov edx, dword ptr [eax + 4] */ 13074 ecx = MEM32(edx + 0x4); /* 0x27016524: mov ecx, dword ptr [edx + 4] */ 13075 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016527: mov byte ptr [ecx + 0x18], 0 */ 13076 edx = MEM32(eax + 0x4); /* 0x2701652B: mov edx, dword ptr [eax + 4] */ 13077 ecx = MEM32(edx + 0x4); /* 0x2701652E: mov ecx, dword ptr [edx + 4] */ 13078 edx = MEM32(ecx); /* 0x27016531: mov edx, dword ptr [ecx] */ 13079 edi = MEM32(edx + 0x8); /* 0x27016533: mov edi, dword ptr [edx + 8] */ 13080 MEM32(ecx) = edi; /* 0x27016536: mov dword ptr [ecx], edi */ 13081 edi = MEM32(edx + 0x8); /* 0x27016538: mov edi, dword ptr [edx + 8] */ 13082 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701653B: cmp edi, dword ptr [esi + 8] */ 13083 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13085 _flag_k = FK_CMP; 13086 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016543; /* 0x2701653E: je 0x27016543 */ 13087 L_27016540: 13088 MEM32(edi + 0x4) = ecx; /* 0x27016540: mov dword ptr [edi + 4], ecx */ 13089 L_27016543: 13090 edi = MEM32(ecx + 0x4); /* 0x27016543: mov edi, dword ptr [ecx + 4] */ 13091 MEM32(edx + 0x4) = edi; /* 0x27016546: mov dword ptr [edx + 4], edi */ 13092 edi = MEM32(esi + 0x4); /* 0x27016549: mov edi, dword ptr [esi + 4] */ 13093 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701654C: cmp ecx, dword ptr [edi + 4] */ 13094 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 13095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13096 _flag_k = FK_CMP; 13097 if (CMP_NE(_flag_a, _flag_b)) goto L_2701655C; /* 0x2701654F: jne 0x2701655c */ 13098 L_27016551: 13099 MEM32(edi + 0x4) = edx; /* 0x27016551: mov dword ptr [edi + 4], edx */ 13100 MEM32(edx + 0x8) = ecx; /* 0x27016554: mov dword ptr [edx + 8], ecx */ 13101 goto L_2701660E; /* 0x27016557: jmp 0x2701660e */ 13102 L_2701655C: 13103 edi = MEM32(ecx + 0x4); /* 0x2701655C: mov edi, dword ptr [ecx + 4] */ 13104 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701655F: cmp ecx, dword ptr [edi + 8] */ 13105 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13107 _flag_k = FK_CMP; 13108 if (CMP_NE(_flag_a, _flag_b)) goto L_2701656F; /* 0x27016562: jne 0x2701656f */ 13109 L_27016564: 13110 MEM32(edi + 0x8) = edx; /* 0x27016564: mov dword ptr [edi + 8], edx */ 13111 MEM32(edx + 0x8) = ecx; /* 0x27016567: mov dword ptr [edx + 8], ecx */ 13112 goto L_2701660E; /* 0x2701656A: jmp 0x2701660e */ 13113 L_2701656F: 13114 MEM32(edi) = edx; /* 0x2701656F: mov dword ptr [edi], edx */ 13115 MEM32(edx + 0x8) = ecx; /* 0x27016571: mov dword ptr [edx + 8], ecx */ 13116 goto L_2701660E; /* 0x27016574: jmp 0x2701660e */ 13117 L_27016579: 13118 /* cmp MEM8(edx + 0x18), 0 */ /* 0x27016579: cmp byte ptr [edx + 0x18], 0 */ 13119 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 13120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13121 _flag_k = FK_NARROW(FK_CMP, 24); 13122 RECOMP_BACKEDGE(); 13123 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164C1; /* 0x2701657D: je 0x270164c1 */ 13124 L_27016583: 13125 /* cmp eax, MEM32(ecx) */ /* 0x27016583: cmp eax, dword ptr [ecx] */ 13126 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 13127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13128 _flag_k = FK_CMP; 13129 if (CMP_NE(_flag_a, _flag_b)) goto L_270165C3; /* 0x27016585: jne 0x270165c3 */ 13130 L_27016587: 13131 eax = ecx; /* 0x27016587: mov eax, ecx */ 13132 ecx = MEM32(eax); /* 0x27016589: mov ecx, dword ptr [eax] */ 13133 edx = MEM32(ecx + 0x8); /* 0x2701658B: mov edx, dword ptr [ecx + 8] */ 13134 MEM32(eax) = edx; /* 0x2701658E: mov dword ptr [eax], edx */ 13135 edx = MEM32(ecx + 0x8); /* 0x27016590: mov edx, dword ptr [ecx + 8] */ 13136 /* cmp edx, MEM32(esi + 0x8) */ /* 0x27016593: cmp edx, dword ptr [esi + 8] */ 13137 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13139 _flag_k = FK_CMP; 13140 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701659B; /* 0x27016596: je 0x2701659b */ 13141 L_27016598: 13142 MEM32(edx + 0x4) = eax; /* 0x27016598: mov dword ptr [edx + 4], eax */ 13143 L_2701659B: 13144 edx = MEM32(eax + 0x4); /* 0x2701659B: mov edx, dword ptr [eax + 4] */ 13145 MEM32(ecx + 0x4) = edx; /* 0x2701659E: mov dword ptr [ecx + 4], edx */ 13146 edx = MEM32(esi + 0x4); /* 0x270165A1: mov edx, dword ptr [esi + 4] */ 13147 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270165A4: cmp eax, dword ptr [edx + 4] */ 13148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 13149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13150 _flag_k = FK_CMP; 13151 if (CMP_NE(_flag_a, _flag_b)) goto L_270165AE; /* 0x270165A7: jne 0x270165ae */ 13152 L_270165A9: 13153 MEM32(edx + 0x4) = ecx; /* 0x270165A9: mov dword ptr [edx + 4], ecx */ 13154 goto L_270165BD; /* 0x270165AC: jmp 0x270165bd */ 13155 L_270165AE: 13156 edx = MEM32(eax + 0x4); /* 0x270165AE: mov edx, dword ptr [eax + 4] */ 13157 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270165B1: cmp eax, dword ptr [edx + 8] */ 13158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 13159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13160 _flag_k = FK_CMP; 13161 if (CMP_NE(_flag_a, _flag_b)) goto L_270165BB; /* 0x270165B4: jne 0x270165bb */ 13162 L_270165B6: 13163 MEM32(edx + 0x8) = ecx; /* 0x270165B6: mov dword ptr [edx + 8], ecx */ 13164 goto L_270165BD; /* 0x270165B9: jmp 0x270165bd */ 13165 L_270165BB: 13166 MEM32(edx) = ecx; /* 0x270165BB: mov dword ptr [edx], ecx */ 13167 L_270165BD: 13168 MEM32(ecx + 0x8) = eax; /* 0x270165BD: mov dword ptr [ecx + 8], eax */ 13169 MEM32(eax + 0x4) = ecx; /* 0x270165C0: mov dword ptr [eax + 4], ecx */ 13170 L_270165C3: 13171 ecx = MEM32(eax + 0x4); /* 0x270165C3: mov ecx, dword ptr [eax + 4] */ 13172 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270165C6: mov byte ptr [ecx + 0x18], bl */ 13173 edx = MEM32(eax + 0x4); /* 0x270165C9: mov edx, dword ptr [eax + 4] */ 13174 ecx = MEM32(edx + 0x4); /* 0x270165CC: mov ecx, dword ptr [edx + 4] */ 13175 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270165CF: mov byte ptr [ecx + 0x18], 0 */ 13176 edx = MEM32(eax + 0x4); /* 0x270165D3: mov edx, dword ptr [eax + 4] */ 13177 ecx = MEM32(edx + 0x4); /* 0x270165D6: mov ecx, dword ptr [edx + 4] */ 13178 edx = MEM32(ecx + 0x8); /* 0x270165D9: mov edx, dword ptr [ecx + 8] */ 13179 edi = MEM32(edx); /* 0x270165DC: mov edi, dword ptr [edx] */ 13180 MEM32(ecx + 0x8) = edi; /* 0x270165DE: mov dword ptr [ecx + 8], edi */ 13181 edi = MEM32(edx); /* 0x270165E1: mov edi, dword ptr [edx] */ 13182 /* cmp edi, MEM32(esi + 0x8) */ /* 0x270165E3: cmp edi, dword ptr [esi + 8] */ 13183 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13185 _flag_k = FK_CMP; 13186 if (CMP_EQ(_flag_a, _flag_b)) goto L_270165EB; /* 0x270165E6: je 0x270165eb */ 13187 L_270165E8: 13188 MEM32(edi + 0x4) = ecx; /* 0x270165E8: mov dword ptr [edi + 4], ecx */ 13189 L_270165EB: 13190 edi = MEM32(ecx + 0x4); /* 0x270165EB: mov edi, dword ptr [ecx + 4] */ 13191 MEM32(edx + 0x4) = edi; /* 0x270165EE: mov dword ptr [edx + 4], edi */ 13192 edi = MEM32(esi + 0x4); /* 0x270165F1: mov edi, dword ptr [esi + 4] */ 13193 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x270165F4: cmp ecx, dword ptr [edi + 4] */ 13194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 13195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13196 _flag_k = FK_CMP; 13197 if (CMP_NE(_flag_a, _flag_b)) goto L_270165FE; /* 0x270165F7: jne 0x270165fe */ 13198 L_270165F9: 13199 MEM32(edi + 0x4) = edx; /* 0x270165F9: mov dword ptr [edi + 4], edx */ 13200 goto L_2701660C; /* 0x270165FC: jmp 0x2701660c */ 13201 L_270165FE: 13202 edi = MEM32(ecx + 0x4); /* 0x270165FE: mov edi, dword ptr [ecx + 4] */ 13203 /* cmp ecx, MEM32(edi) */ /* 0x27016601: cmp ecx, dword ptr [edi] */ 13204 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 13205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13206 _flag_k = FK_CMP; 13207 if (CMP_NE(_flag_a, _flag_b)) goto L_27016609; /* 0x27016603: jne 0x27016609 */ 13208 L_27016605: 13209 MEM32(edi) = edx; /* 0x27016605: mov dword ptr [edi], edx */ 13210 goto L_2701660C; /* 0x27016607: jmp 0x2701660c */ 13211 L_27016609: 13212 MEM32(edi + 0x8) = edx; /* 0x27016609: mov dword ptr [edi + 8], edx */ 13213 L_2701660C: 13214 MEM32(edx) = ecx; /* 0x2701660C: mov dword ptr [edx], ecx */ 13215 L_2701660E: 13216 MEM32(ecx + 0x4) = edx; /* 0x2701660E: mov dword ptr [ecx + 4], edx */ 13217 L_27016611: 13218 ecx = MEM32(esi + 0x4); /* 0x27016611: mov ecx, dword ptr [esi + 4] */ 13219 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016614: cmp eax, dword ptr [ecx + 4] */ 13220 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13222 _flag_k = FK_CMP; 13223 RECOMP_BACKEDGE(); 13224 if (CMP_NE(_flag_a, _flag_b)) goto L_2701649D; /* 0x27016617: jne 0x2701649d */ 13225 L_2701661D: 13226 edx = MEM32(esi + 0x4); /* 0x2701661D: mov edx, dword ptr [esi + 4] */ 13227 eax = MEM32(edx + 0x4); /* 0x27016620: mov eax, dword ptr [edx + 4] */ 13228 ecx = MEM32(ebp + (-0x4)); /* 0x27016623: mov ecx, dword ptr [ebp - 4] */ 13229 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016626: mov byte ptr [eax + 0x18], bl */ 13230 eax = MEM32(ebp + 0x8); /* 0x27016629: mov eax, dword ptr [ebp + 8] */ 13231 edi = POP32_VAL(esp); /* 0x2701662C: pop edi */ 13232 esi = POP32_VAL(esp); /* 0x2701662D: pop esi */ 13233 MEM32(eax) = ecx; /* 0x2701662E: mov dword ptr [eax], ecx */ 13234 ebx = POP32_VAL(esp); /* 0x27016630: pop ebx */ 13235 esp = ebp; /* 0x27016631: mov esp, ebp */ 13236 ebp = POP32_VAL(esp); /* 0x27016633: pop ebp */ 13237 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016634: ret 0x10 */ 13238 RECOMP_REGS_OUT(); 13239 } 13240 13241 void sub_2701660C(void) { 13242 int _fpu_cmp = 0; 13243 uint32_t _cf = 0; 13244 int _df = 1; 13245 uint32_t _flag_k = FK_NONE; 13246 uint32_t _flag_a = 0, _flag_b = 0; 13247 uint32_t _itail_tgt = 0; 13248 RECOMP_REGS_LOCALS 13249 RECOMP_ENTER(0x2701660Cu); 13250 13251 goto L_2701660C; 13252 L_2701649D: 13253 ecx = MEM32(eax + 0x4); /* 0x2701649D: mov ecx, dword ptr [eax + 4] */ 13254 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270164A0: mov dl, byte ptr [ecx + 0x18] */ 13255 /* test LO8(edx), LO8(edx) */ /* 0x270164A3: test dl, dl */ 13256 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13257 _cf = 0; 13258 _flag_k = FK_NARROW(FK_TEST, 24); 13259 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701661D; /* 0x270164A5: jne 0x2701661d */ 13260 L_270164AB: 13261 edi = MEM32(ecx + 0x4); /* 0x270164AB: mov edi, dword ptr [ecx + 4] */ 13262 edx = MEM32(edi); /* 0x270164AE: mov edx, dword ptr [edi] */ 13263 /* cmp ecx, edx */ /* 0x270164B0: cmp ecx, edx */ 13264 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13266 _flag_k = FK_CMP; 13267 if (CMP_NE(_flag_a, _flag_b)) goto L_27016579; /* 0x270164B2: jne 0x27016579 */ 13268 L_270164B8: 13269 edx = MEM32(edi + 0x8); /* 0x270164B8: mov edx, dword ptr [edi + 8] */ 13270 /* cmp MEM8(edx + 0x18), 0 */ /* 0x270164BB: cmp byte ptr [edx + 0x18], 0 */ 13271 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 13272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13273 _flag_k = FK_NARROW(FK_CMP, 24); 13274 if (CMP_NE(_flag_a, _flag_b)) goto L_270164DC; /* 0x270164BF: jne 0x270164dc */ 13275 L_270164C1: 13276 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C1: mov byte ptr [ecx + 0x18], bl */ 13277 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C4: mov byte ptr [edx + 0x18], bl */ 13278 ecx = MEM32(eax + 0x4); /* 0x270164C7: mov ecx, dword ptr [eax + 4] */ 13279 edx = MEM32(ecx + 0x4); /* 0x270164CA: mov edx, dword ptr [ecx + 4] */ 13280 MEM8(edx + 0x18) = (uint8_t)(0); /* 0x270164CD: mov byte ptr [edx + 0x18], 0 */ 13281 eax = MEM32(eax + 0x4); /* 0x270164D1: mov eax, dword ptr [eax + 4] */ 13282 eax = MEM32(eax + 0x4); /* 0x270164D4: mov eax, dword ptr [eax + 4] */ 13283 goto L_27016611; /* 0x270164D7: jmp 0x27016611 */ 13284 L_270164DC: 13285 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270164DC: cmp eax, dword ptr [ecx + 8] */ 13286 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 13287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13288 _flag_k = FK_CMP; 13289 if (CMP_NE(_flag_a, _flag_b)) goto L_2701651B; /* 0x270164DF: jne 0x2701651b */ 13290 L_270164E1: 13291 eax = ecx; /* 0x270164E1: mov eax, ecx */ 13292 ecx = MEM32(eax + 0x8); /* 0x270164E3: mov ecx, dword ptr [eax + 8] */ 13293 edx = MEM32(ecx); /* 0x270164E6: mov edx, dword ptr [ecx] */ 13294 MEM32(eax + 0x8) = edx; /* 0x270164E8: mov dword ptr [eax + 8], edx */ 13295 edx = MEM32(ecx); /* 0x270164EB: mov edx, dword ptr [ecx] */ 13296 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270164ED: cmp edx, dword ptr [esi + 8] */ 13297 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13299 _flag_k = FK_CMP; 13300 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164F5; /* 0x270164F0: je 0x270164f5 */ 13301 L_270164F2: 13302 MEM32(edx + 0x4) = eax; /* 0x270164F2: mov dword ptr [edx + 4], eax */ 13303 L_270164F5: 13304 edx = MEM32(eax + 0x4); /* 0x270164F5: mov edx, dword ptr [eax + 4] */ 13305 MEM32(ecx + 0x4) = edx; /* 0x270164F8: mov dword ptr [ecx + 4], edx */ 13306 edx = MEM32(esi + 0x4); /* 0x270164FB: mov edx, dword ptr [esi + 4] */ 13307 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270164FE: cmp eax, dword ptr [edx + 4] */ 13308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 13309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13310 _flag_k = FK_CMP; 13311 if (CMP_NE(_flag_a, _flag_b)) goto L_27016508; /* 0x27016501: jne 0x27016508 */ 13312 L_27016503: 13313 MEM32(edx + 0x4) = ecx; /* 0x27016503: mov dword ptr [edx + 4], ecx */ 13314 goto L_27016516; /* 0x27016506: jmp 0x27016516 */ 13315 L_27016508: 13316 edx = MEM32(eax + 0x4); /* 0x27016508: mov edx, dword ptr [eax + 4] */ 13317 /* cmp eax, MEM32(edx) */ /* 0x2701650B: cmp eax, dword ptr [edx] */ 13318 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 13319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13320 _flag_k = FK_CMP; 13321 if (CMP_NE(_flag_a, _flag_b)) goto L_27016513; /* 0x2701650D: jne 0x27016513 */ 13322 L_2701650F: 13323 MEM32(edx) = ecx; /* 0x2701650F: mov dword ptr [edx], ecx */ 13324 goto L_27016516; /* 0x27016511: jmp 0x27016516 */ 13325 L_27016513: 13326 MEM32(edx + 0x8) = ecx; /* 0x27016513: mov dword ptr [edx + 8], ecx */ 13327 L_27016516: 13328 MEM32(ecx) = eax; /* 0x27016516: mov dword ptr [ecx], eax */ 13329 MEM32(eax + 0x4) = ecx; /* 0x27016518: mov dword ptr [eax + 4], ecx */ 13330 L_2701651B: 13331 ecx = MEM32(eax + 0x4); /* 0x2701651B: mov ecx, dword ptr [eax + 4] */ 13332 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701651E: mov byte ptr [ecx + 0x18], bl */ 13333 edx = MEM32(eax + 0x4); /* 0x27016521: mov edx, dword ptr [eax + 4] */ 13334 ecx = MEM32(edx + 0x4); /* 0x27016524: mov ecx, dword ptr [edx + 4] */ 13335 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016527: mov byte ptr [ecx + 0x18], 0 */ 13336 edx = MEM32(eax + 0x4); /* 0x2701652B: mov edx, dword ptr [eax + 4] */ 13337 ecx = MEM32(edx + 0x4); /* 0x2701652E: mov ecx, dword ptr [edx + 4] */ 13338 edx = MEM32(ecx); /* 0x27016531: mov edx, dword ptr [ecx] */ 13339 edi = MEM32(edx + 0x8); /* 0x27016533: mov edi, dword ptr [edx + 8] */ 13340 MEM32(ecx) = edi; /* 0x27016536: mov dword ptr [ecx], edi */ 13341 edi = MEM32(edx + 0x8); /* 0x27016538: mov edi, dword ptr [edx + 8] */ 13342 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701653B: cmp edi, dword ptr [esi + 8] */ 13343 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13345 _flag_k = FK_CMP; 13346 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016543; /* 0x2701653E: je 0x27016543 */ 13347 L_27016540: 13348 MEM32(edi + 0x4) = ecx; /* 0x27016540: mov dword ptr [edi + 4], ecx */ 13349 L_27016543: 13350 edi = MEM32(ecx + 0x4); /* 0x27016543: mov edi, dword ptr [ecx + 4] */ 13351 MEM32(edx + 0x4) = edi; /* 0x27016546: mov dword ptr [edx + 4], edi */ 13352 edi = MEM32(esi + 0x4); /* 0x27016549: mov edi, dword ptr [esi + 4] */ 13353 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701654C: cmp ecx, dword ptr [edi + 4] */ 13354 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 13355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13356 _flag_k = FK_CMP; 13357 if (CMP_NE(_flag_a, _flag_b)) goto L_2701655C; /* 0x2701654F: jne 0x2701655c */ 13358 L_27016551: 13359 MEM32(edi + 0x4) = edx; /* 0x27016551: mov dword ptr [edi + 4], edx */ 13360 MEM32(edx + 0x8) = ecx; /* 0x27016554: mov dword ptr [edx + 8], ecx */ 13361 goto L_2701660E; /* 0x27016557: jmp 0x2701660e */ 13362 L_2701655C: 13363 edi = MEM32(ecx + 0x4); /* 0x2701655C: mov edi, dword ptr [ecx + 4] */ 13364 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701655F: cmp ecx, dword ptr [edi + 8] */ 13365 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13367 _flag_k = FK_CMP; 13368 if (CMP_NE(_flag_a, _flag_b)) goto L_2701656F; /* 0x27016562: jne 0x2701656f */ 13369 L_27016564: 13370 MEM32(edi + 0x8) = edx; /* 0x27016564: mov dword ptr [edi + 8], edx */ 13371 MEM32(edx + 0x8) = ecx; /* 0x27016567: mov dword ptr [edx + 8], ecx */ 13372 goto L_2701660E; /* 0x2701656A: jmp 0x2701660e */ 13373 L_2701656F: 13374 MEM32(edi) = edx; /* 0x2701656F: mov dword ptr [edi], edx */ 13375 MEM32(edx + 0x8) = ecx; /* 0x27016571: mov dword ptr [edx + 8], ecx */ 13376 goto L_2701660E; /* 0x27016574: jmp 0x2701660e */ 13377 L_27016579: 13378 /* cmp MEM8(edx + 0x18), 0 */ /* 0x27016579: cmp byte ptr [edx + 0x18], 0 */ 13379 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 13380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13381 _flag_k = FK_NARROW(FK_CMP, 24); 13382 RECOMP_BACKEDGE(); 13383 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164C1; /* 0x2701657D: je 0x270164c1 */ 13384 L_27016583: 13385 /* cmp eax, MEM32(ecx) */ /* 0x27016583: cmp eax, dword ptr [ecx] */ 13386 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 13387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13388 _flag_k = FK_CMP; 13389 if (CMP_NE(_flag_a, _flag_b)) goto L_270165C3; /* 0x27016585: jne 0x270165c3 */ 13390 L_27016587: 13391 eax = ecx; /* 0x27016587: mov eax, ecx */ 13392 ecx = MEM32(eax); /* 0x27016589: mov ecx, dword ptr [eax] */ 13393 edx = MEM32(ecx + 0x8); /* 0x2701658B: mov edx, dword ptr [ecx + 8] */ 13394 MEM32(eax) = edx; /* 0x2701658E: mov dword ptr [eax], edx */ 13395 edx = MEM32(ecx + 0x8); /* 0x27016590: mov edx, dword ptr [ecx + 8] */ 13396 /* cmp edx, MEM32(esi + 0x8) */ /* 0x27016593: cmp edx, dword ptr [esi + 8] */ 13397 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13399 _flag_k = FK_CMP; 13400 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701659B; /* 0x27016596: je 0x2701659b */ 13401 L_27016598: 13402 MEM32(edx + 0x4) = eax; /* 0x27016598: mov dword ptr [edx + 4], eax */ 13403 L_2701659B: 13404 edx = MEM32(eax + 0x4); /* 0x2701659B: mov edx, dword ptr [eax + 4] */ 13405 MEM32(ecx + 0x4) = edx; /* 0x2701659E: mov dword ptr [ecx + 4], edx */ 13406 edx = MEM32(esi + 0x4); /* 0x270165A1: mov edx, dword ptr [esi + 4] */ 13407 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270165A4: cmp eax, dword ptr [edx + 4] */ 13408 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 13409 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13410 _flag_k = FK_CMP; 13411 if (CMP_NE(_flag_a, _flag_b)) goto L_270165AE; /* 0x270165A7: jne 0x270165ae */ 13412 L_270165A9: 13413 MEM32(edx + 0x4) = ecx; /* 0x270165A9: mov dword ptr [edx + 4], ecx */ 13414 goto L_270165BD; /* 0x270165AC: jmp 0x270165bd */ 13415 L_270165AE: 13416 edx = MEM32(eax + 0x4); /* 0x270165AE: mov edx, dword ptr [eax + 4] */ 13417 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270165B1: cmp eax, dword ptr [edx + 8] */ 13418 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 13419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13420 _flag_k = FK_CMP; 13421 if (CMP_NE(_flag_a, _flag_b)) goto L_270165BB; /* 0x270165B4: jne 0x270165bb */ 13422 L_270165B6: 13423 MEM32(edx + 0x8) = ecx; /* 0x270165B6: mov dword ptr [edx + 8], ecx */ 13424 goto L_270165BD; /* 0x270165B9: jmp 0x270165bd */ 13425 L_270165BB: 13426 MEM32(edx) = ecx; /* 0x270165BB: mov dword ptr [edx], ecx */ 13427 L_270165BD: 13428 MEM32(ecx + 0x8) = eax; /* 0x270165BD: mov dword ptr [ecx + 8], eax */ 13429 MEM32(eax + 0x4) = ecx; /* 0x270165C0: mov dword ptr [eax + 4], ecx */ 13430 L_270165C3: 13431 ecx = MEM32(eax + 0x4); /* 0x270165C3: mov ecx, dword ptr [eax + 4] */ 13432 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270165C6: mov byte ptr [ecx + 0x18], bl */ 13433 edx = MEM32(eax + 0x4); /* 0x270165C9: mov edx, dword ptr [eax + 4] */ 13434 ecx = MEM32(edx + 0x4); /* 0x270165CC: mov ecx, dword ptr [edx + 4] */ 13435 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270165CF: mov byte ptr [ecx + 0x18], 0 */ 13436 edx = MEM32(eax + 0x4); /* 0x270165D3: mov edx, dword ptr [eax + 4] */ 13437 ecx = MEM32(edx + 0x4); /* 0x270165D6: mov ecx, dword ptr [edx + 4] */ 13438 edx = MEM32(ecx + 0x8); /* 0x270165D9: mov edx, dword ptr [ecx + 8] */ 13439 edi = MEM32(edx); /* 0x270165DC: mov edi, dword ptr [edx] */ 13440 MEM32(ecx + 0x8) = edi; /* 0x270165DE: mov dword ptr [ecx + 8], edi */ 13441 edi = MEM32(edx); /* 0x270165E1: mov edi, dword ptr [edx] */ 13442 /* cmp edi, MEM32(esi + 0x8) */ /* 0x270165E3: cmp edi, dword ptr [esi + 8] */ 13443 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13445 _flag_k = FK_CMP; 13446 if (CMP_EQ(_flag_a, _flag_b)) goto L_270165EB; /* 0x270165E6: je 0x270165eb */ 13447 L_270165E8: 13448 MEM32(edi + 0x4) = ecx; /* 0x270165E8: mov dword ptr [edi + 4], ecx */ 13449 L_270165EB: 13450 edi = MEM32(ecx + 0x4); /* 0x270165EB: mov edi, dword ptr [ecx + 4] */ 13451 MEM32(edx + 0x4) = edi; /* 0x270165EE: mov dword ptr [edx + 4], edi */ 13452 edi = MEM32(esi + 0x4); /* 0x270165F1: mov edi, dword ptr [esi + 4] */ 13453 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x270165F4: cmp ecx, dword ptr [edi + 4] */ 13454 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 13455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13456 _flag_k = FK_CMP; 13457 if (CMP_NE(_flag_a, _flag_b)) goto L_270165FE; /* 0x270165F7: jne 0x270165fe */ 13458 L_270165F9: 13459 MEM32(edi + 0x4) = edx; /* 0x270165F9: mov dword ptr [edi + 4], edx */ 13460 goto L_2701660C; /* 0x270165FC: jmp 0x2701660c */ 13461 L_270165FE: 13462 edi = MEM32(ecx + 0x4); /* 0x270165FE: mov edi, dword ptr [ecx + 4] */ 13463 /* cmp ecx, MEM32(edi) */ /* 0x27016601: cmp ecx, dword ptr [edi] */ 13464 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 13465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13466 _flag_k = FK_CMP; 13467 if (CMP_NE(_flag_a, _flag_b)) goto L_27016609; /* 0x27016603: jne 0x27016609 */ 13468 L_27016605: 13469 MEM32(edi) = edx; /* 0x27016605: mov dword ptr [edi], edx */ 13470 goto L_2701660C; /* 0x27016607: jmp 0x2701660c */ 13471 L_27016609: 13472 MEM32(edi + 0x8) = edx; /* 0x27016609: mov dword ptr [edi + 8], edx */ 13473 L_2701660C: 13474 MEM32(edx) = ecx; /* 0x2701660C: mov dword ptr [edx], ecx */ 13475 L_2701660E: 13476 MEM32(ecx + 0x4) = edx; /* 0x2701660E: mov dword ptr [ecx + 4], edx */ 13477 L_27016611: 13478 ecx = MEM32(esi + 0x4); /* 0x27016611: mov ecx, dword ptr [esi + 4] */ 13479 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016614: cmp eax, dword ptr [ecx + 4] */ 13480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13482 _flag_k = FK_CMP; 13483 RECOMP_BACKEDGE(); 13484 if (CMP_NE(_flag_a, _flag_b)) goto L_2701649D; /* 0x27016617: jne 0x2701649d */ 13485 L_2701661D: 13486 edx = MEM32(esi + 0x4); /* 0x2701661D: mov edx, dword ptr [esi + 4] */ 13487 eax = MEM32(edx + 0x4); /* 0x27016620: mov eax, dword ptr [edx + 4] */ 13488 ecx = MEM32(ebp + (-0x4)); /* 0x27016623: mov ecx, dword ptr [ebp - 4] */ 13489 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016626: mov byte ptr [eax + 0x18], bl */ 13490 eax = MEM32(ebp + 0x8); /* 0x27016629: mov eax, dword ptr [ebp + 8] */ 13491 edi = POP32_VAL(esp); /* 0x2701662C: pop edi */ 13492 esi = POP32_VAL(esp); /* 0x2701662D: pop esi */ 13493 MEM32(eax) = ecx; /* 0x2701662E: mov dword ptr [eax], ecx */ 13494 ebx = POP32_VAL(esp); /* 0x27016630: pop ebx */ 13495 esp = ebp; /* 0x27016631: mov esp, ebp */ 13496 ebp = POP32_VAL(esp); /* 0x27016633: pop ebp */ 13497 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016634: ret 0x10 */ 13498 RECOMP_REGS_OUT(); 13499 } 13500 13501 void sub_2701660E(void) { 13502 int _fpu_cmp = 0; 13503 uint32_t _cf = 0; 13504 int _df = 1; 13505 uint32_t _flag_k = FK_NONE; 13506 uint32_t _flag_a = 0, _flag_b = 0; 13507 uint32_t _itail_tgt = 0; 13508 RECOMP_REGS_LOCALS 13509 RECOMP_ENTER(0x2701660Eu); 13510 13511 goto L_2701660E; 13512 L_2701649D: 13513 ecx = MEM32(eax + 0x4); /* 0x2701649D: mov ecx, dword ptr [eax + 4] */ 13514 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270164A0: mov dl, byte ptr [ecx + 0x18] */ 13515 /* test LO8(edx), LO8(edx) */ /* 0x270164A3: test dl, dl */ 13516 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13517 _cf = 0; 13518 _flag_k = FK_NARROW(FK_TEST, 24); 13519 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701661D; /* 0x270164A5: jne 0x2701661d */ 13520 L_270164AB: 13521 edi = MEM32(ecx + 0x4); /* 0x270164AB: mov edi, dword ptr [ecx + 4] */ 13522 edx = MEM32(edi); /* 0x270164AE: mov edx, dword ptr [edi] */ 13523 /* cmp ecx, edx */ /* 0x270164B0: cmp ecx, edx */ 13524 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13526 _flag_k = FK_CMP; 13527 if (CMP_NE(_flag_a, _flag_b)) goto L_27016579; /* 0x270164B2: jne 0x27016579 */ 13528 L_270164B8: 13529 edx = MEM32(edi + 0x8); /* 0x270164B8: mov edx, dword ptr [edi + 8] */ 13530 /* cmp MEM8(edx + 0x18), 0 */ /* 0x270164BB: cmp byte ptr [edx + 0x18], 0 */ 13531 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 13532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13533 _flag_k = FK_NARROW(FK_CMP, 24); 13534 if (CMP_NE(_flag_a, _flag_b)) goto L_270164DC; /* 0x270164BF: jne 0x270164dc */ 13535 L_270164C1: 13536 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C1: mov byte ptr [ecx + 0x18], bl */ 13537 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C4: mov byte ptr [edx + 0x18], bl */ 13538 ecx = MEM32(eax + 0x4); /* 0x270164C7: mov ecx, dword ptr [eax + 4] */ 13539 edx = MEM32(ecx + 0x4); /* 0x270164CA: mov edx, dword ptr [ecx + 4] */ 13540 MEM8(edx + 0x18) = (uint8_t)(0); /* 0x270164CD: mov byte ptr [edx + 0x18], 0 */ 13541 eax = MEM32(eax + 0x4); /* 0x270164D1: mov eax, dword ptr [eax + 4] */ 13542 eax = MEM32(eax + 0x4); /* 0x270164D4: mov eax, dword ptr [eax + 4] */ 13543 goto L_27016611; /* 0x270164D7: jmp 0x27016611 */ 13544 L_270164DC: 13545 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270164DC: cmp eax, dword ptr [ecx + 8] */ 13546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 13547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13548 _flag_k = FK_CMP; 13549 if (CMP_NE(_flag_a, _flag_b)) goto L_2701651B; /* 0x270164DF: jne 0x2701651b */ 13550 L_270164E1: 13551 eax = ecx; /* 0x270164E1: mov eax, ecx */ 13552 ecx = MEM32(eax + 0x8); /* 0x270164E3: mov ecx, dword ptr [eax + 8] */ 13553 edx = MEM32(ecx); /* 0x270164E6: mov edx, dword ptr [ecx] */ 13554 MEM32(eax + 0x8) = edx; /* 0x270164E8: mov dword ptr [eax + 8], edx */ 13555 edx = MEM32(ecx); /* 0x270164EB: mov edx, dword ptr [ecx] */ 13556 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270164ED: cmp edx, dword ptr [esi + 8] */ 13557 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13559 _flag_k = FK_CMP; 13560 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164F5; /* 0x270164F0: je 0x270164f5 */ 13561 L_270164F2: 13562 MEM32(edx + 0x4) = eax; /* 0x270164F2: mov dword ptr [edx + 4], eax */ 13563 L_270164F5: 13564 edx = MEM32(eax + 0x4); /* 0x270164F5: mov edx, dword ptr [eax + 4] */ 13565 MEM32(ecx + 0x4) = edx; /* 0x270164F8: mov dword ptr [ecx + 4], edx */ 13566 edx = MEM32(esi + 0x4); /* 0x270164FB: mov edx, dword ptr [esi + 4] */ 13567 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270164FE: cmp eax, dword ptr [edx + 4] */ 13568 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 13569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13570 _flag_k = FK_CMP; 13571 if (CMP_NE(_flag_a, _flag_b)) goto L_27016508; /* 0x27016501: jne 0x27016508 */ 13572 L_27016503: 13573 MEM32(edx + 0x4) = ecx; /* 0x27016503: mov dword ptr [edx + 4], ecx */ 13574 goto L_27016516; /* 0x27016506: jmp 0x27016516 */ 13575 L_27016508: 13576 edx = MEM32(eax + 0x4); /* 0x27016508: mov edx, dword ptr [eax + 4] */ 13577 /* cmp eax, MEM32(edx) */ /* 0x2701650B: cmp eax, dword ptr [edx] */ 13578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 13579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13580 _flag_k = FK_CMP; 13581 if (CMP_NE(_flag_a, _flag_b)) goto L_27016513; /* 0x2701650D: jne 0x27016513 */ 13582 L_2701650F: 13583 MEM32(edx) = ecx; /* 0x2701650F: mov dword ptr [edx], ecx */ 13584 goto L_27016516; /* 0x27016511: jmp 0x27016516 */ 13585 L_27016513: 13586 MEM32(edx + 0x8) = ecx; /* 0x27016513: mov dword ptr [edx + 8], ecx */ 13587 L_27016516: 13588 MEM32(ecx) = eax; /* 0x27016516: mov dword ptr [ecx], eax */ 13589 MEM32(eax + 0x4) = ecx; /* 0x27016518: mov dword ptr [eax + 4], ecx */ 13590 L_2701651B: 13591 ecx = MEM32(eax + 0x4); /* 0x2701651B: mov ecx, dword ptr [eax + 4] */ 13592 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701651E: mov byte ptr [ecx + 0x18], bl */ 13593 edx = MEM32(eax + 0x4); /* 0x27016521: mov edx, dword ptr [eax + 4] */ 13594 ecx = MEM32(edx + 0x4); /* 0x27016524: mov ecx, dword ptr [edx + 4] */ 13595 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016527: mov byte ptr [ecx + 0x18], 0 */ 13596 edx = MEM32(eax + 0x4); /* 0x2701652B: mov edx, dword ptr [eax + 4] */ 13597 ecx = MEM32(edx + 0x4); /* 0x2701652E: mov ecx, dword ptr [edx + 4] */ 13598 edx = MEM32(ecx); /* 0x27016531: mov edx, dword ptr [ecx] */ 13599 edi = MEM32(edx + 0x8); /* 0x27016533: mov edi, dword ptr [edx + 8] */ 13600 MEM32(ecx) = edi; /* 0x27016536: mov dword ptr [ecx], edi */ 13601 edi = MEM32(edx + 0x8); /* 0x27016538: mov edi, dword ptr [edx + 8] */ 13602 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701653B: cmp edi, dword ptr [esi + 8] */ 13603 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13605 _flag_k = FK_CMP; 13606 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016543; /* 0x2701653E: je 0x27016543 */ 13607 L_27016540: 13608 MEM32(edi + 0x4) = ecx; /* 0x27016540: mov dword ptr [edi + 4], ecx */ 13609 L_27016543: 13610 edi = MEM32(ecx + 0x4); /* 0x27016543: mov edi, dword ptr [ecx + 4] */ 13611 MEM32(edx + 0x4) = edi; /* 0x27016546: mov dword ptr [edx + 4], edi */ 13612 edi = MEM32(esi + 0x4); /* 0x27016549: mov edi, dword ptr [esi + 4] */ 13613 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701654C: cmp ecx, dword ptr [edi + 4] */ 13614 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 13615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13616 _flag_k = FK_CMP; 13617 if (CMP_NE(_flag_a, _flag_b)) goto L_2701655C; /* 0x2701654F: jne 0x2701655c */ 13618 L_27016551: 13619 MEM32(edi + 0x4) = edx; /* 0x27016551: mov dword ptr [edi + 4], edx */ 13620 MEM32(edx + 0x8) = ecx; /* 0x27016554: mov dword ptr [edx + 8], ecx */ 13621 goto L_2701660E; /* 0x27016557: jmp 0x2701660e */ 13622 L_2701655C: 13623 edi = MEM32(ecx + 0x4); /* 0x2701655C: mov edi, dword ptr [ecx + 4] */ 13624 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701655F: cmp ecx, dword ptr [edi + 8] */ 13625 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13627 _flag_k = FK_CMP; 13628 if (CMP_NE(_flag_a, _flag_b)) goto L_2701656F; /* 0x27016562: jne 0x2701656f */ 13629 L_27016564: 13630 MEM32(edi + 0x8) = edx; /* 0x27016564: mov dword ptr [edi + 8], edx */ 13631 MEM32(edx + 0x8) = ecx; /* 0x27016567: mov dword ptr [edx + 8], ecx */ 13632 goto L_2701660E; /* 0x2701656A: jmp 0x2701660e */ 13633 L_2701656F: 13634 MEM32(edi) = edx; /* 0x2701656F: mov dword ptr [edi], edx */ 13635 MEM32(edx + 0x8) = ecx; /* 0x27016571: mov dword ptr [edx + 8], ecx */ 13636 goto L_2701660E; /* 0x27016574: jmp 0x2701660e */ 13637 L_27016579: 13638 /* cmp MEM8(edx + 0x18), 0 */ /* 0x27016579: cmp byte ptr [edx + 0x18], 0 */ 13639 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 13640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13641 _flag_k = FK_NARROW(FK_CMP, 24); 13642 RECOMP_BACKEDGE(); 13643 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164C1; /* 0x2701657D: je 0x270164c1 */ 13644 L_27016583: 13645 /* cmp eax, MEM32(ecx) */ /* 0x27016583: cmp eax, dword ptr [ecx] */ 13646 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 13647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13648 _flag_k = FK_CMP; 13649 if (CMP_NE(_flag_a, _flag_b)) goto L_270165C3; /* 0x27016585: jne 0x270165c3 */ 13650 L_27016587: 13651 eax = ecx; /* 0x27016587: mov eax, ecx */ 13652 ecx = MEM32(eax); /* 0x27016589: mov ecx, dword ptr [eax] */ 13653 edx = MEM32(ecx + 0x8); /* 0x2701658B: mov edx, dword ptr [ecx + 8] */ 13654 MEM32(eax) = edx; /* 0x2701658E: mov dword ptr [eax], edx */ 13655 edx = MEM32(ecx + 0x8); /* 0x27016590: mov edx, dword ptr [ecx + 8] */ 13656 /* cmp edx, MEM32(esi + 0x8) */ /* 0x27016593: cmp edx, dword ptr [esi + 8] */ 13657 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13659 _flag_k = FK_CMP; 13660 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701659B; /* 0x27016596: je 0x2701659b */ 13661 L_27016598: 13662 MEM32(edx + 0x4) = eax; /* 0x27016598: mov dword ptr [edx + 4], eax */ 13663 L_2701659B: 13664 edx = MEM32(eax + 0x4); /* 0x2701659B: mov edx, dword ptr [eax + 4] */ 13665 MEM32(ecx + 0x4) = edx; /* 0x2701659E: mov dword ptr [ecx + 4], edx */ 13666 edx = MEM32(esi + 0x4); /* 0x270165A1: mov edx, dword ptr [esi + 4] */ 13667 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270165A4: cmp eax, dword ptr [edx + 4] */ 13668 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 13669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13670 _flag_k = FK_CMP; 13671 if (CMP_NE(_flag_a, _flag_b)) goto L_270165AE; /* 0x270165A7: jne 0x270165ae */ 13672 L_270165A9: 13673 MEM32(edx + 0x4) = ecx; /* 0x270165A9: mov dword ptr [edx + 4], ecx */ 13674 goto L_270165BD; /* 0x270165AC: jmp 0x270165bd */ 13675 L_270165AE: 13676 edx = MEM32(eax + 0x4); /* 0x270165AE: mov edx, dword ptr [eax + 4] */ 13677 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270165B1: cmp eax, dword ptr [edx + 8] */ 13678 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 13679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13680 _flag_k = FK_CMP; 13681 if (CMP_NE(_flag_a, _flag_b)) goto L_270165BB; /* 0x270165B4: jne 0x270165bb */ 13682 L_270165B6: 13683 MEM32(edx + 0x8) = ecx; /* 0x270165B6: mov dword ptr [edx + 8], ecx */ 13684 goto L_270165BD; /* 0x270165B9: jmp 0x270165bd */ 13685 L_270165BB: 13686 MEM32(edx) = ecx; /* 0x270165BB: mov dword ptr [edx], ecx */ 13687 L_270165BD: 13688 MEM32(ecx + 0x8) = eax; /* 0x270165BD: mov dword ptr [ecx + 8], eax */ 13689 MEM32(eax + 0x4) = ecx; /* 0x270165C0: mov dword ptr [eax + 4], ecx */ 13690 L_270165C3: 13691 ecx = MEM32(eax + 0x4); /* 0x270165C3: mov ecx, dword ptr [eax + 4] */ 13692 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270165C6: mov byte ptr [ecx + 0x18], bl */ 13693 edx = MEM32(eax + 0x4); /* 0x270165C9: mov edx, dword ptr [eax + 4] */ 13694 ecx = MEM32(edx + 0x4); /* 0x270165CC: mov ecx, dword ptr [edx + 4] */ 13695 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270165CF: mov byte ptr [ecx + 0x18], 0 */ 13696 edx = MEM32(eax + 0x4); /* 0x270165D3: mov edx, dword ptr [eax + 4] */ 13697 ecx = MEM32(edx + 0x4); /* 0x270165D6: mov ecx, dword ptr [edx + 4] */ 13698 edx = MEM32(ecx + 0x8); /* 0x270165D9: mov edx, dword ptr [ecx + 8] */ 13699 edi = MEM32(edx); /* 0x270165DC: mov edi, dword ptr [edx] */ 13700 MEM32(ecx + 0x8) = edi; /* 0x270165DE: mov dword ptr [ecx + 8], edi */ 13701 edi = MEM32(edx); /* 0x270165E1: mov edi, dword ptr [edx] */ 13702 /* cmp edi, MEM32(esi + 0x8) */ /* 0x270165E3: cmp edi, dword ptr [esi + 8] */ 13703 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13705 _flag_k = FK_CMP; 13706 if (CMP_EQ(_flag_a, _flag_b)) goto L_270165EB; /* 0x270165E6: je 0x270165eb */ 13707 L_270165E8: 13708 MEM32(edi + 0x4) = ecx; /* 0x270165E8: mov dword ptr [edi + 4], ecx */ 13709 L_270165EB: 13710 edi = MEM32(ecx + 0x4); /* 0x270165EB: mov edi, dword ptr [ecx + 4] */ 13711 MEM32(edx + 0x4) = edi; /* 0x270165EE: mov dword ptr [edx + 4], edi */ 13712 edi = MEM32(esi + 0x4); /* 0x270165F1: mov edi, dword ptr [esi + 4] */ 13713 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x270165F4: cmp ecx, dword ptr [edi + 4] */ 13714 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 13715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13716 _flag_k = FK_CMP; 13717 if (CMP_NE(_flag_a, _flag_b)) goto L_270165FE; /* 0x270165F7: jne 0x270165fe */ 13718 L_270165F9: 13719 MEM32(edi + 0x4) = edx; /* 0x270165F9: mov dword ptr [edi + 4], edx */ 13720 goto L_2701660C; /* 0x270165FC: jmp 0x2701660c */ 13721 L_270165FE: 13722 edi = MEM32(ecx + 0x4); /* 0x270165FE: mov edi, dword ptr [ecx + 4] */ 13723 /* cmp ecx, MEM32(edi) */ /* 0x27016601: cmp ecx, dword ptr [edi] */ 13724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 13725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13726 _flag_k = FK_CMP; 13727 if (CMP_NE(_flag_a, _flag_b)) goto L_27016609; /* 0x27016603: jne 0x27016609 */ 13728 L_27016605: 13729 MEM32(edi) = edx; /* 0x27016605: mov dword ptr [edi], edx */ 13730 goto L_2701660C; /* 0x27016607: jmp 0x2701660c */ 13731 L_27016609: 13732 MEM32(edi + 0x8) = edx; /* 0x27016609: mov dword ptr [edi + 8], edx */ 13733 L_2701660C: 13734 MEM32(edx) = ecx; /* 0x2701660C: mov dword ptr [edx], ecx */ 13735 L_2701660E: 13736 MEM32(ecx + 0x4) = edx; /* 0x2701660E: mov dword ptr [ecx + 4], edx */ 13737 L_27016611: 13738 ecx = MEM32(esi + 0x4); /* 0x27016611: mov ecx, dword ptr [esi + 4] */ 13739 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016614: cmp eax, dword ptr [ecx + 4] */ 13740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13742 _flag_k = FK_CMP; 13743 RECOMP_BACKEDGE(); 13744 if (CMP_NE(_flag_a, _flag_b)) goto L_2701649D; /* 0x27016617: jne 0x2701649d */ 13745 L_2701661D: 13746 edx = MEM32(esi + 0x4); /* 0x2701661D: mov edx, dword ptr [esi + 4] */ 13747 eax = MEM32(edx + 0x4); /* 0x27016620: mov eax, dword ptr [edx + 4] */ 13748 ecx = MEM32(ebp + (-0x4)); /* 0x27016623: mov ecx, dword ptr [ebp - 4] */ 13749 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016626: mov byte ptr [eax + 0x18], bl */ 13750 eax = MEM32(ebp + 0x8); /* 0x27016629: mov eax, dword ptr [ebp + 8] */ 13751 edi = POP32_VAL(esp); /* 0x2701662C: pop edi */ 13752 esi = POP32_VAL(esp); /* 0x2701662D: pop esi */ 13753 MEM32(eax) = ecx; /* 0x2701662E: mov dword ptr [eax], ecx */ 13754 ebx = POP32_VAL(esp); /* 0x27016630: pop ebx */ 13755 esp = ebp; /* 0x27016631: mov esp, ebp */ 13756 ebp = POP32_VAL(esp); /* 0x27016633: pop ebp */ 13757 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016634: ret 0x10 */ 13758 RECOMP_REGS_OUT(); 13759 } 13760 13761 void sub_27016611(void) { 13762 int _fpu_cmp = 0; 13763 uint32_t _cf = 0; 13764 int _df = 1; 13765 uint32_t _flag_k = FK_NONE; 13766 uint32_t _flag_a = 0, _flag_b = 0; 13767 uint32_t _itail_tgt = 0; 13768 RECOMP_REGS_LOCALS 13769 RECOMP_ENTER(0x27016611u); 13770 13771 goto L_27016611; 13772 L_2701649D: 13773 ecx = MEM32(eax + 0x4); /* 0x2701649D: mov ecx, dword ptr [eax + 4] */ 13774 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x270164A0: mov dl, byte ptr [ecx + 0x18] */ 13775 /* test LO8(edx), LO8(edx) */ /* 0x270164A3: test dl, dl */ 13776 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13777 _cf = 0; 13778 _flag_k = FK_NARROW(FK_TEST, 24); 13779 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701661D; /* 0x270164A5: jne 0x2701661d */ 13780 L_270164AB: 13781 edi = MEM32(ecx + 0x4); /* 0x270164AB: mov edi, dword ptr [ecx + 4] */ 13782 edx = MEM32(edi); /* 0x270164AE: mov edx, dword ptr [edi] */ 13783 /* cmp ecx, edx */ /* 0x270164B0: cmp ecx, edx */ 13784 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13786 _flag_k = FK_CMP; 13787 if (CMP_NE(_flag_a, _flag_b)) goto L_27016579; /* 0x270164B2: jne 0x27016579 */ 13788 L_270164B8: 13789 edx = MEM32(edi + 0x8); /* 0x270164B8: mov edx, dword ptr [edi + 8] */ 13790 /* cmp MEM8(edx + 0x18), 0 */ /* 0x270164BB: cmp byte ptr [edx + 0x18], 0 */ 13791 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 13792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13793 _flag_k = FK_NARROW(FK_CMP, 24); 13794 if (CMP_NE(_flag_a, _flag_b)) goto L_270164DC; /* 0x270164BF: jne 0x270164dc */ 13795 L_270164C1: 13796 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C1: mov byte ptr [ecx + 0x18], bl */ 13797 MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270164C4: mov byte ptr [edx + 0x18], bl */ 13798 ecx = MEM32(eax + 0x4); /* 0x270164C7: mov ecx, dword ptr [eax + 4] */ 13799 edx = MEM32(ecx + 0x4); /* 0x270164CA: mov edx, dword ptr [ecx + 4] */ 13800 MEM8(edx + 0x18) = (uint8_t)(0); /* 0x270164CD: mov byte ptr [edx + 0x18], 0 */ 13801 eax = MEM32(eax + 0x4); /* 0x270164D1: mov eax, dword ptr [eax + 4] */ 13802 eax = MEM32(eax + 0x4); /* 0x270164D4: mov eax, dword ptr [eax + 4] */ 13803 goto L_27016611; /* 0x270164D7: jmp 0x27016611 */ 13804 L_270164DC: 13805 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270164DC: cmp eax, dword ptr [ecx + 8] */ 13806 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 13807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13808 _flag_k = FK_CMP; 13809 if (CMP_NE(_flag_a, _flag_b)) goto L_2701651B; /* 0x270164DF: jne 0x2701651b */ 13810 L_270164E1: 13811 eax = ecx; /* 0x270164E1: mov eax, ecx */ 13812 ecx = MEM32(eax + 0x8); /* 0x270164E3: mov ecx, dword ptr [eax + 8] */ 13813 edx = MEM32(ecx); /* 0x270164E6: mov edx, dword ptr [ecx] */ 13814 MEM32(eax + 0x8) = edx; /* 0x270164E8: mov dword ptr [eax + 8], edx */ 13815 edx = MEM32(ecx); /* 0x270164EB: mov edx, dword ptr [ecx] */ 13816 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270164ED: cmp edx, dword ptr [esi + 8] */ 13817 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13819 _flag_k = FK_CMP; 13820 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164F5; /* 0x270164F0: je 0x270164f5 */ 13821 L_270164F2: 13822 MEM32(edx + 0x4) = eax; /* 0x270164F2: mov dword ptr [edx + 4], eax */ 13823 L_270164F5: 13824 edx = MEM32(eax + 0x4); /* 0x270164F5: mov edx, dword ptr [eax + 4] */ 13825 MEM32(ecx + 0x4) = edx; /* 0x270164F8: mov dword ptr [ecx + 4], edx */ 13826 edx = MEM32(esi + 0x4); /* 0x270164FB: mov edx, dword ptr [esi + 4] */ 13827 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270164FE: cmp eax, dword ptr [edx + 4] */ 13828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 13829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13830 _flag_k = FK_CMP; 13831 if (CMP_NE(_flag_a, _flag_b)) goto L_27016508; /* 0x27016501: jne 0x27016508 */ 13832 L_27016503: 13833 MEM32(edx + 0x4) = ecx; /* 0x27016503: mov dword ptr [edx + 4], ecx */ 13834 goto L_27016516; /* 0x27016506: jmp 0x27016516 */ 13835 L_27016508: 13836 edx = MEM32(eax + 0x4); /* 0x27016508: mov edx, dword ptr [eax + 4] */ 13837 /* cmp eax, MEM32(edx) */ /* 0x2701650B: cmp eax, dword ptr [edx] */ 13838 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 13839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13840 _flag_k = FK_CMP; 13841 if (CMP_NE(_flag_a, _flag_b)) goto L_27016513; /* 0x2701650D: jne 0x27016513 */ 13842 L_2701650F: 13843 MEM32(edx) = ecx; /* 0x2701650F: mov dword ptr [edx], ecx */ 13844 goto L_27016516; /* 0x27016511: jmp 0x27016516 */ 13845 L_27016513: 13846 MEM32(edx + 0x8) = ecx; /* 0x27016513: mov dword ptr [edx + 8], ecx */ 13847 L_27016516: 13848 MEM32(ecx) = eax; /* 0x27016516: mov dword ptr [ecx], eax */ 13849 MEM32(eax + 0x4) = ecx; /* 0x27016518: mov dword ptr [eax + 4], ecx */ 13850 L_2701651B: 13851 ecx = MEM32(eax + 0x4); /* 0x2701651B: mov ecx, dword ptr [eax + 4] */ 13852 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x2701651E: mov byte ptr [ecx + 0x18], bl */ 13853 edx = MEM32(eax + 0x4); /* 0x27016521: mov edx, dword ptr [eax + 4] */ 13854 ecx = MEM32(edx + 0x4); /* 0x27016524: mov ecx, dword ptr [edx + 4] */ 13855 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x27016527: mov byte ptr [ecx + 0x18], 0 */ 13856 edx = MEM32(eax + 0x4); /* 0x2701652B: mov edx, dword ptr [eax + 4] */ 13857 ecx = MEM32(edx + 0x4); /* 0x2701652E: mov ecx, dword ptr [edx + 4] */ 13858 edx = MEM32(ecx); /* 0x27016531: mov edx, dword ptr [ecx] */ 13859 edi = MEM32(edx + 0x8); /* 0x27016533: mov edi, dword ptr [edx + 8] */ 13860 MEM32(ecx) = edi; /* 0x27016536: mov dword ptr [ecx], edi */ 13861 edi = MEM32(edx + 0x8); /* 0x27016538: mov edi, dword ptr [edx + 8] */ 13862 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701653B: cmp edi, dword ptr [esi + 8] */ 13863 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13865 _flag_k = FK_CMP; 13866 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016543; /* 0x2701653E: je 0x27016543 */ 13867 L_27016540: 13868 MEM32(edi + 0x4) = ecx; /* 0x27016540: mov dword ptr [edi + 4], ecx */ 13869 L_27016543: 13870 edi = MEM32(ecx + 0x4); /* 0x27016543: mov edi, dword ptr [ecx + 4] */ 13871 MEM32(edx + 0x4) = edi; /* 0x27016546: mov dword ptr [edx + 4], edi */ 13872 edi = MEM32(esi + 0x4); /* 0x27016549: mov edi, dword ptr [esi + 4] */ 13873 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701654C: cmp ecx, dword ptr [edi + 4] */ 13874 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 13875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13876 _flag_k = FK_CMP; 13877 if (CMP_NE(_flag_a, _flag_b)) goto L_2701655C; /* 0x2701654F: jne 0x2701655c */ 13878 L_27016551: 13879 MEM32(edi + 0x4) = edx; /* 0x27016551: mov dword ptr [edi + 4], edx */ 13880 MEM32(edx + 0x8) = ecx; /* 0x27016554: mov dword ptr [edx + 8], ecx */ 13881 goto L_2701660E; /* 0x27016557: jmp 0x2701660e */ 13882 L_2701655C: 13883 edi = MEM32(ecx + 0x4); /* 0x2701655C: mov edi, dword ptr [ecx + 4] */ 13884 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701655F: cmp ecx, dword ptr [edi + 8] */ 13885 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13887 _flag_k = FK_CMP; 13888 if (CMP_NE(_flag_a, _flag_b)) goto L_2701656F; /* 0x27016562: jne 0x2701656f */ 13889 L_27016564: 13890 MEM32(edi + 0x8) = edx; /* 0x27016564: mov dword ptr [edi + 8], edx */ 13891 MEM32(edx + 0x8) = ecx; /* 0x27016567: mov dword ptr [edx + 8], ecx */ 13892 goto L_2701660E; /* 0x2701656A: jmp 0x2701660e */ 13893 L_2701656F: 13894 MEM32(edi) = edx; /* 0x2701656F: mov dword ptr [edi], edx */ 13895 MEM32(edx + 0x8) = ecx; /* 0x27016571: mov dword ptr [edx + 8], ecx */ 13896 goto L_2701660E; /* 0x27016574: jmp 0x2701660e */ 13897 L_27016579: 13898 /* cmp MEM8(edx + 0x18), 0 */ /* 0x27016579: cmp byte ptr [edx + 0x18], 0 */ 13899 _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24; 13900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13901 _flag_k = FK_NARROW(FK_CMP, 24); 13902 RECOMP_BACKEDGE(); 13903 if (CMP_EQ(_flag_a, _flag_b)) goto L_270164C1; /* 0x2701657D: je 0x270164c1 */ 13904 L_27016583: 13905 /* cmp eax, MEM32(ecx) */ /* 0x27016583: cmp eax, dword ptr [ecx] */ 13906 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 13907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13908 _flag_k = FK_CMP; 13909 if (CMP_NE(_flag_a, _flag_b)) goto L_270165C3; /* 0x27016585: jne 0x270165c3 */ 13910 L_27016587: 13911 eax = ecx; /* 0x27016587: mov eax, ecx */ 13912 ecx = MEM32(eax); /* 0x27016589: mov ecx, dword ptr [eax] */ 13913 edx = MEM32(ecx + 0x8); /* 0x2701658B: mov edx, dword ptr [ecx + 8] */ 13914 MEM32(eax) = edx; /* 0x2701658E: mov dword ptr [eax], edx */ 13915 edx = MEM32(ecx + 0x8); /* 0x27016590: mov edx, dword ptr [ecx + 8] */ 13916 /* cmp edx, MEM32(esi + 0x8) */ /* 0x27016593: cmp edx, dword ptr [esi + 8] */ 13917 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13919 _flag_k = FK_CMP; 13920 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701659B; /* 0x27016596: je 0x2701659b */ 13921 L_27016598: 13922 MEM32(edx + 0x4) = eax; /* 0x27016598: mov dword ptr [edx + 4], eax */ 13923 L_2701659B: 13924 edx = MEM32(eax + 0x4); /* 0x2701659B: mov edx, dword ptr [eax + 4] */ 13925 MEM32(ecx + 0x4) = edx; /* 0x2701659E: mov dword ptr [ecx + 4], edx */ 13926 edx = MEM32(esi + 0x4); /* 0x270165A1: mov edx, dword ptr [esi + 4] */ 13927 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270165A4: cmp eax, dword ptr [edx + 4] */ 13928 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 13929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13930 _flag_k = FK_CMP; 13931 if (CMP_NE(_flag_a, _flag_b)) goto L_270165AE; /* 0x270165A7: jne 0x270165ae */ 13932 L_270165A9: 13933 MEM32(edx + 0x4) = ecx; /* 0x270165A9: mov dword ptr [edx + 4], ecx */ 13934 goto L_270165BD; /* 0x270165AC: jmp 0x270165bd */ 13935 L_270165AE: 13936 edx = MEM32(eax + 0x4); /* 0x270165AE: mov edx, dword ptr [eax + 4] */ 13937 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270165B1: cmp eax, dword ptr [edx + 8] */ 13938 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 13939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13940 _flag_k = FK_CMP; 13941 if (CMP_NE(_flag_a, _flag_b)) goto L_270165BB; /* 0x270165B4: jne 0x270165bb */ 13942 L_270165B6: 13943 MEM32(edx + 0x8) = ecx; /* 0x270165B6: mov dword ptr [edx + 8], ecx */ 13944 goto L_270165BD; /* 0x270165B9: jmp 0x270165bd */ 13945 L_270165BB: 13946 MEM32(edx) = ecx; /* 0x270165BB: mov dword ptr [edx], ecx */ 13947 L_270165BD: 13948 MEM32(ecx + 0x8) = eax; /* 0x270165BD: mov dword ptr [ecx + 8], eax */ 13949 MEM32(eax + 0x4) = ecx; /* 0x270165C0: mov dword ptr [eax + 4], ecx */ 13950 L_270165C3: 13951 ecx = MEM32(eax + 0x4); /* 0x270165C3: mov ecx, dword ptr [eax + 4] */ 13952 MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x270165C6: mov byte ptr [ecx + 0x18], bl */ 13953 edx = MEM32(eax + 0x4); /* 0x270165C9: mov edx, dword ptr [eax + 4] */ 13954 ecx = MEM32(edx + 0x4); /* 0x270165CC: mov ecx, dword ptr [edx + 4] */ 13955 MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x270165CF: mov byte ptr [ecx + 0x18], 0 */ 13956 edx = MEM32(eax + 0x4); /* 0x270165D3: mov edx, dword ptr [eax + 4] */ 13957 ecx = MEM32(edx + 0x4); /* 0x270165D6: mov ecx, dword ptr [edx + 4] */ 13958 edx = MEM32(ecx + 0x8); /* 0x270165D9: mov edx, dword ptr [ecx + 8] */ 13959 edi = MEM32(edx); /* 0x270165DC: mov edi, dword ptr [edx] */ 13960 MEM32(ecx + 0x8) = edi; /* 0x270165DE: mov dword ptr [ecx + 8], edi */ 13961 edi = MEM32(edx); /* 0x270165E1: mov edi, dword ptr [edx] */ 13962 /* cmp edi, MEM32(esi + 0x8) */ /* 0x270165E3: cmp edi, dword ptr [esi + 8] */ 13963 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13965 _flag_k = FK_CMP; 13966 if (CMP_EQ(_flag_a, _flag_b)) goto L_270165EB; /* 0x270165E6: je 0x270165eb */ 13967 L_270165E8: 13968 MEM32(edi + 0x4) = ecx; /* 0x270165E8: mov dword ptr [edi + 4], ecx */ 13969 L_270165EB: 13970 edi = MEM32(ecx + 0x4); /* 0x270165EB: mov edi, dword ptr [ecx + 4] */ 13971 MEM32(edx + 0x4) = edi; /* 0x270165EE: mov dword ptr [edx + 4], edi */ 13972 edi = MEM32(esi + 0x4); /* 0x270165F1: mov edi, dword ptr [esi + 4] */ 13973 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x270165F4: cmp ecx, dword ptr [edi + 4] */ 13974 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 13975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13976 _flag_k = FK_CMP; 13977 if (CMP_NE(_flag_a, _flag_b)) goto L_270165FE; /* 0x270165F7: jne 0x270165fe */ 13978 L_270165F9: 13979 MEM32(edi + 0x4) = edx; /* 0x270165F9: mov dword ptr [edi + 4], edx */ 13980 goto L_2701660C; /* 0x270165FC: jmp 0x2701660c */ 13981 L_270165FE: 13982 edi = MEM32(ecx + 0x4); /* 0x270165FE: mov edi, dword ptr [ecx + 4] */ 13983 /* cmp ecx, MEM32(edi) */ /* 0x27016601: cmp ecx, dword ptr [edi] */ 13984 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 13985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13986 _flag_k = FK_CMP; 13987 if (CMP_NE(_flag_a, _flag_b)) goto L_27016609; /* 0x27016603: jne 0x27016609 */ 13988 L_27016605: 13989 MEM32(edi) = edx; /* 0x27016605: mov dword ptr [edi], edx */ 13990 goto L_2701660C; /* 0x27016607: jmp 0x2701660c */ 13991 L_27016609: 13992 MEM32(edi + 0x8) = edx; /* 0x27016609: mov dword ptr [edi + 8], edx */ 13993 L_2701660C: 13994 MEM32(edx) = ecx; /* 0x2701660C: mov dword ptr [edx], ecx */ 13995 L_2701660E: 13996 MEM32(ecx + 0x4) = edx; /* 0x2701660E: mov dword ptr [ecx + 4], edx */ 13997 L_27016611: 13998 ecx = MEM32(esi + 0x4); /* 0x27016611: mov ecx, dword ptr [esi + 4] */ 13999 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27016614: cmp eax, dword ptr [ecx + 4] */ 14000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14002 _flag_k = FK_CMP; 14003 RECOMP_BACKEDGE(); 14004 if (CMP_NE(_flag_a, _flag_b)) goto L_2701649D; /* 0x27016617: jne 0x2701649d */ 14005 L_2701661D: 14006 edx = MEM32(esi + 0x4); /* 0x2701661D: mov edx, dword ptr [esi + 4] */ 14007 eax = MEM32(edx + 0x4); /* 0x27016620: mov eax, dword ptr [edx + 4] */ 14008 ecx = MEM32(ebp + (-0x4)); /* 0x27016623: mov ecx, dword ptr [ebp - 4] */ 14009 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016626: mov byte ptr [eax + 0x18], bl */ 14010 eax = MEM32(ebp + 0x8); /* 0x27016629: mov eax, dword ptr [ebp + 8] */ 14011 edi = POP32_VAL(esp); /* 0x2701662C: pop edi */ 14012 esi = POP32_VAL(esp); /* 0x2701662D: pop esi */ 14013 MEM32(eax) = ecx; /* 0x2701662E: mov dword ptr [eax], ecx */ 14014 ebx = POP32_VAL(esp); /* 0x27016630: pop ebx */ 14015 esp = ebp; /* 0x27016631: mov esp, ebp */ 14016 ebp = POP32_VAL(esp); /* 0x27016633: pop ebp */ 14017 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016634: ret 0x10 */ 14018 RECOMP_REGS_OUT(); 14019 } 14020 14021 void sub_2701661D(void) { 14022 int _fpu_cmp = 0; 14023 uint32_t _cf = 0; 14024 int _df = 1; 14025 uint32_t _flag_k = FK_NONE; 14026 uint32_t _flag_a = 0, _flag_b = 0; 14027 uint32_t _itail_tgt = 0; 14028 RECOMP_REGS_LOCALS 14029 RECOMP_ENTER(0x2701661Du); 14030 14031 L_2701661D: 14032 edx = MEM32(esi + 0x4); /* 0x2701661D: mov edx, dword ptr [esi + 4] */ 14033 eax = MEM32(edx + 0x4); /* 0x27016620: mov eax, dword ptr [edx + 4] */ 14034 ecx = MEM32(ebp + (-0x4)); /* 0x27016623: mov ecx, dword ptr [ebp - 4] */ 14035 MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x27016626: mov byte ptr [eax + 0x18], bl */ 14036 eax = MEM32(ebp + 0x8); /* 0x27016629: mov eax, dword ptr [ebp + 8] */ 14037 edi = POP32_VAL(esp); /* 0x2701662C: pop edi */ 14038 esi = POP32_VAL(esp); /* 0x2701662D: pop esi */ 14039 MEM32(eax) = ecx; /* 0x2701662E: mov dword ptr [eax], ecx */ 14040 ebx = POP32_VAL(esp); /* 0x27016630: pop ebx */ 14041 esp = ebp; /* 0x27016631: mov esp, ebp */ 14042 ebp = POP32_VAL(esp); /* 0x27016633: pop ebp */ 14043 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016634: ret 0x10 */ 14044 RECOMP_REGS_OUT(); 14045 } 14046 14047 void sub_27016640(void) { 14048 int _fpu_cmp = 0; 14049 uint32_t _cf = 0; 14050 int _df = 1; 14051 uint32_t _flag_k = FK_NONE; 14052 uint32_t _flag_a = 0, _flag_b = 0; 14053 uint32_t _itail_tgt = 0; 14054 RECOMP_REGS_LOCALS 14055 RECOMP_ENTER(0x27016640u); 14056 14057 L_27016640: 14058 PUSH32(esp, ebp); /* 0x27016640: push ebp */ 14059 ebp = esp; /* 0x27016641: mov ebp, esp */ 14060 PUSH32(esp, 0x1Cu); /* 0x27016643: push 0x1c */ 14061 RECOMP_ICALL(0x27026EA4u); /* 0x27016645: call 0x27026ea4 */ /* not lifted */ 14062 RECOMP_FLAGS_IN(); 14063 ecx = MEM32(ebp + 0x8); /* 0x2701664A: mov ecx, dword ptr [ebp + 8] */ 14064 SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x2701664D: mov dl, byte ptr [ebp + 0xc] */ 14065 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14066 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14067 esp = esp + 4; /* 0x27016650: add esp, 4 */ 14068 _flag_k = FK_ADD; 14069 MEM32(eax + 0x4) = ecx; /* 0x27016653: mov dword ptr [eax + 4], ecx */ 14070 MEM8(eax + 0x18) = (uint8_t)(LO8(edx)); /* 0x27016656: mov byte ptr [eax + 0x18], dl */ 14071 MEM8(eax + 0x19) = (uint8_t)(0); /* 0x27016659: mov byte ptr [eax + 0x19], 0 */ 14072 ebp = POP32_VAL(esp); /* 0x2701665D: pop ebp */ 14073 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2701665E: ret 8 */ 14074 RECOMP_REGS_OUT(); 14075 } 14076 14077 void sub_27016670(void) { 14078 int _fpu_cmp = 0; 14079 uint32_t _cf = 0; 14080 int _df = 1; 14081 uint32_t _flag_k = FK_NONE; 14082 uint32_t _flag_a = 0, _flag_b = 0; 14083 uint32_t _itail_tgt = 0; 14084 RECOMP_REGS_LOCALS 14085 RECOMP_ENTER(0x27016670u); 14086 14087 L_27016670: 14088 eax = MEM32(ecx); /* 0x27016670: mov eax, dword ptr [ecx] */ 14089 SET_LO8(edx, MEM8(eax + 0x18)); /* 0x27016672: mov dl, byte ptr [eax + 0x18] */ 14090 /* test LO8(edx), LO8(edx) */ /* 0x27016675: test dl, dl */ 14091 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14092 _cf = 0; 14093 _flag_k = FK_NARROW(FK_TEST, 24); 14094 PUSH32(esp, ebx); /* 0x27016677: push ebx */ 14095 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016689; /* 0x27016678: jne 0x27016689 */ 14096 L_2701667A: 14097 edx = MEM32(eax + 0x4); /* 0x2701667A: mov edx, dword ptr [eax + 4] */ 14098 /* cmp MEM32(edx + 0x4), eax */ /* 0x2701667D: cmp dword ptr [edx + 4], eax */ 14099 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(eax); 14100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14101 _flag_k = FK_CMP; 14102 if (CMP_NE(_flag_a, _flag_b)) goto L_27016689; /* 0x27016680: jne 0x27016689 */ 14103 L_27016682: 14104 eax = MEM32(eax + 0x8); /* 0x27016682: mov eax, dword ptr [eax + 8] */ 14105 MEM32(ecx) = eax; /* 0x27016685: mov dword ptr [ecx], eax */ 14106 ebx = POP32_VAL(esp); /* 0x27016687: pop ebx */ 14107 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016688: ret */ 14108 L_27016689: 14109 edx = MEM32(eax); /* 0x27016689: mov edx, dword ptr [eax] */ 14110 SET_LO8(ebx, MEM8(edx + 0x19)); /* 0x2701668B: mov bl, byte ptr [edx + 0x19] */ 14111 /* test LO8(ebx), LO8(ebx) */ /* 0x2701668E: test bl, bl */ 14112 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14113 _cf = 0; 14114 _flag_k = FK_NARROW(FK_TEST, 24); 14115 if (TEST_NZ(_flag_a, _flag_b)) goto L_270166AC; /* 0x27016690: jne 0x270166ac */ 14116 L_27016692: 14117 eax = MEM32(edx + 0x8); /* 0x27016692: mov eax, dword ptr [edx + 8] */ 14118 SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x27016695: mov bl, byte ptr [eax + 0x19] */ 14119 /* test LO8(ebx), LO8(ebx) */ /* 0x27016698: test bl, bl */ 14120 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14121 _cf = 0; 14122 _flag_k = FK_NARROW(FK_TEST, 24); 14123 if (TEST_NZ(_flag_a, _flag_b)) goto L_270166A8; /* 0x2701669A: jne 0x270166a8 */ 14124 L_2701669C: 14125 edx = eax; /* 0x2701669C: mov edx, eax */ 14126 eax = MEM32(edx + 0x8); /* 0x2701669E: mov eax, dword ptr [edx + 8] */ 14127 SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x270166A1: mov bl, byte ptr [eax + 0x19] */ 14128 /* test LO8(ebx), LO8(ebx) */ /* 0x270166A4: test bl, bl */ 14129 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14130 _cf = 0; 14131 _flag_k = FK_NARROW(FK_TEST, 24); 14132 RECOMP_BACKEDGE(); 14133 if (TEST_Z(_flag_a, _flag_b)) goto L_2701669C; /* 0x270166A6: je 0x2701669c */ 14134 L_270166A8: 14135 MEM32(ecx) = edx; /* 0x270166A8: mov dword ptr [ecx], edx */ 14136 ebx = POP32_VAL(esp); /* 0x270166AA: pop ebx */ 14137 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270166AB: ret */ 14138 L_270166AC: 14139 eax = MEM32(eax + 0x4); /* 0x270166AC: mov eax, dword ptr [eax + 4] */ 14140 edx = MEM32(ecx); /* 0x270166AF: mov edx, dword ptr [ecx] */ 14141 /* cmp edx, MEM32(eax) */ /* 0x270166B1: cmp edx, dword ptr [eax] */ 14142 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 14143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14144 _flag_k = FK_CMP; 14145 if (CMP_NE(_flag_a, _flag_b)) goto L_270166C0; /* 0x270166B3: jne 0x270166c0 */ 14146 L_270166B5: 14147 MEM32(ecx) = eax; /* 0x270166B5: mov dword ptr [ecx], eax */ 14148 eax = MEM32(eax + 0x4); /* 0x270166B7: mov eax, dword ptr [eax + 4] */ 14149 edx = MEM32(ecx); /* 0x270166BA: mov edx, dword ptr [ecx] */ 14150 /* cmp edx, MEM32(eax) */ /* 0x270166BC: cmp edx, dword ptr [eax] */ 14151 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 14152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14153 _flag_k = FK_CMP; 14154 RECOMP_BACKEDGE(); 14155 if (CMP_EQ(_flag_a, _flag_b)) goto L_270166B5; /* 0x270166BE: je 0x270166b5 */ 14156 L_270166C0: 14157 MEM32(ecx) = eax; /* 0x270166C0: mov dword ptr [ecx], eax */ 14158 ebx = POP32_VAL(esp); /* 0x270166C2: pop ebx */ 14159 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270166C3: ret */ 14160 RECOMP_REGS_OUT(); 14161 } 14162 14163 void sub_270166D0(void) { 14164 int _fpu_cmp = 0; 14165 uint32_t _cf = 0; 14166 int _df = 1; 14167 uint32_t _flag_k = FK_NONE; 14168 uint32_t _flag_a = 0, _flag_b = 0; 14169 uint32_t _itail_tgt = 0; 14170 RECOMP_REGS_LOCALS 14171 RECOMP_ENTER(0x270166D0u); 14172 14173 L_270166D0: 14174 eax = MEM32(ecx); /* 0x270166D0: mov eax, dword ptr [ecx] */ 14175 edx = MEM32(eax + 0x8); /* 0x270166D2: mov edx, dword ptr [eax + 8] */ 14176 PUSH32(esp, ebx); /* 0x270166D5: push ebx */ 14177 SET_LO8(ebx, MEM8(edx + 0x19)); /* 0x270166D6: mov bl, byte ptr [edx + 0x19] */ 14178 /* test LO8(ebx), LO8(ebx) */ /* 0x270166D9: test bl, bl */ 14179 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14180 _cf = 0; 14181 _flag_k = FK_NARROW(FK_TEST, 24); 14182 if (TEST_NZ(_flag_a, _flag_b)) goto L_270166F5; /* 0x270166DB: jne 0x270166f5 */ 14183 L_270166DD: 14184 eax = MEM32(edx); /* 0x270166DD: mov eax, dword ptr [edx] */ 14185 SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x270166DF: mov bl, byte ptr [eax + 0x19] */ 14186 /* test LO8(ebx), LO8(ebx) */ /* 0x270166E2: test bl, bl */ 14187 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14188 _cf = 0; 14189 _flag_k = FK_NARROW(FK_TEST, 24); 14190 if (TEST_NZ(_flag_a, _flag_b)) goto L_270166F1; /* 0x270166E4: jne 0x270166f1 */ 14191 L_270166E6: 14192 edx = eax; /* 0x270166E6: mov edx, eax */ 14193 eax = MEM32(edx); /* 0x270166E8: mov eax, dword ptr [edx] */ 14194 SET_LO8(ebx, MEM8(eax + 0x19)); /* 0x270166EA: mov bl, byte ptr [eax + 0x19] */ 14195 /* test LO8(ebx), LO8(ebx) */ /* 0x270166ED: test bl, bl */ 14196 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14197 _cf = 0; 14198 _flag_k = FK_NARROW(FK_TEST, 24); 14199 RECOMP_BACKEDGE(); 14200 if (TEST_Z(_flag_a, _flag_b)) goto L_270166E6; /* 0x270166EF: je 0x270166e6 */ 14201 L_270166F1: 14202 MEM32(ecx) = edx; /* 0x270166F1: mov dword ptr [ecx], edx */ 14203 ebx = POP32_VAL(esp); /* 0x270166F3: pop ebx */ 14204 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270166F4: ret */ 14205 L_270166F5: 14206 eax = MEM32(eax + 0x4); /* 0x270166F5: mov eax, dword ptr [eax + 4] */ 14207 edx = MEM32(ecx); /* 0x270166F8: mov edx, dword ptr [ecx] */ 14208 /* cmp edx, MEM32(eax + 0x8) */ /* 0x270166FA: cmp edx, dword ptr [eax + 8] */ 14209 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 14210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14211 _flag_k = FK_CMP; 14212 if (CMP_NE(_flag_a, _flag_b)) goto L_2701670B; /* 0x270166FD: jne 0x2701670b */ 14213 L_270166FF: 14214 MEM32(ecx) = eax; /* 0x270166FF: mov dword ptr [ecx], eax */ 14215 eax = MEM32(eax + 0x4); /* 0x27016701: mov eax, dword ptr [eax + 4] */ 14216 edx = MEM32(ecx); /* 0x27016704: mov edx, dword ptr [ecx] */ 14217 /* cmp edx, MEM32(eax + 0x8) */ /* 0x27016706: cmp edx, dword ptr [eax + 8] */ 14218 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 14219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14220 _flag_k = FK_CMP; 14221 RECOMP_BACKEDGE(); 14222 if (CMP_EQ(_flag_a, _flag_b)) goto L_270166FF; /* 0x27016709: je 0x270166ff */ 14223 L_2701670B: 14224 edx = MEM32(ecx); /* 0x2701670B: mov edx, dword ptr [ecx] */ 14225 /* cmp MEM32(edx + 0x8), eax */ /* 0x2701670D: cmp dword ptr [edx + 8], eax */ 14226 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 14227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14228 _flag_k = FK_CMP; 14229 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016714; /* 0x27016710: je 0x27016714 */ 14230 L_27016712: 14231 MEM32(ecx) = eax; /* 0x27016712: mov dword ptr [ecx], eax */ 14232 L_27016714: 14233 ebx = POP32_VAL(esp); /* 0x27016714: pop ebx */ 14234 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016715: ret */ 14235 RECOMP_REGS_OUT(); 14236 } 14237 14238 void sub_27016720(void) { 14239 int _fpu_cmp = 0; 14240 uint32_t _cf = 0; 14241 int _df = 1; 14242 uint32_t _flag_k = FK_NONE; 14243 uint32_t _flag_a = 0, _flag_b = 0; 14244 uint32_t _itail_tgt = 0; 14245 RECOMP_REGS_LOCALS 14246 RECOMP_ENTER(0x27016720u); 14247 14248 L_27016720: 14249 PUSH32(esp, ebp); /* 0x27016720: push ebp */ 14250 ebp = esp; /* 0x27016721: mov ebp, esp */ 14251 eax = MEM32(ebp + 0x8); /* 0x27016723: mov eax, dword ptr [ebp + 8] */ 14252 /* test eax, eax */ /* 0x27016726: test eax, eax */ 14253 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14254 _cf = 0; 14255 _flag_k = FK_TEST; 14256 if (TEST_Z(_flag_a, _flag_b)) goto L_2701673D; /* 0x27016728: je 0x2701673d */ 14257 L_2701672A: 14258 ecx = MEM32(ebp + 0xC); /* 0x2701672A: mov ecx, dword ptr [ebp + 0xc] */ 14259 edx = MEM32(ecx); /* 0x2701672D: mov edx, dword ptr [ecx] */ 14260 MEM32(eax) = edx; /* 0x2701672F: mov dword ptr [eax], edx */ 14261 edx = MEM32(ecx + 0x4); /* 0x27016731: mov edx, dword ptr [ecx + 4] */ 14262 MEM32(eax + 0x4) = edx; /* 0x27016734: mov dword ptr [eax + 4], edx */ 14263 ecx = MEM32(ecx + 0x8); /* 0x27016737: mov ecx, dword ptr [ecx + 8] */ 14264 MEM32(eax + 0x8) = ecx; /* 0x2701673A: mov dword ptr [eax + 8], ecx */ 14265 L_2701673D: 14266 ebp = POP32_VAL(esp); /* 0x2701673D: pop ebp */ 14267 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701673E: ret */ 14268 RECOMP_REGS_OUT(); 14269 } 14270 14271 void sub_27016740(void) { 14272 int _fpu_cmp = 0; 14273 uint32_t _cf = 0; 14274 int _df = 1; 14275 uint32_t _flag_k = FK_NONE; 14276 uint32_t _flag_a = 0, _flag_b = 0; 14277 uint32_t _itail_tgt = 0; 14278 RECOMP_REGS_LOCALS 14279 RECOMP_ENTER(0x27016740u); 14280 14281 L_27016740: 14282 eax = 0x2703444Cu; /* 0x27016740: mov eax, 0x2703444c */ 14283 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016745: ret */ 14284 RECOMP_REGS_OUT(); 14285 } 14286 14287 void sub_27016750(void) { 14288 int _fpu_cmp = 0; 14289 uint32_t _cf = 0; 14290 int _df = 1; 14291 uint32_t _flag_k = FK_NONE; 14292 uint32_t _flag_a = 0, _flag_b = 0; 14293 uint32_t _itail_tgt = 0; 14294 RECOMP_REGS_LOCALS 14295 RECOMP_ENTER(0x27016750u); 14296 14297 L_27016750: 14298 PUSH32(esp, ebp); /* 0x27016750: push ebp */ 14299 ebp = esp; /* 0x27016751: mov ebp, esp */ 14300 PUSH32(esp, 0xFFFFFFFFu); /* 0x27016753: push -1 */ 14301 PUSH32(esp, 0x27027BA8u); /* 0x27016755: push 0x27027ba8 */ 14302 eax = MEM32(FS_BASE + (0)); /* 0x2701675A: mov eax, dword ptr fs:[0] */ 14303 PUSH32(esp, eax); /* 0x27016760: push eax */ 14304 MEM32(FS_BASE + (0)) = esp; /* 0x27016761: mov dword ptr fs:[0], esp */ 14305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 14306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14307 esp = esp - 0x14u; /* 0x27016768: sub esp, 0x14 */ 14308 _flag_k = FK_CMP; 14309 eax = MEM32(ebp + 0x34); /* 0x2701676B: mov eax, dword ptr [ebp + 0x34] */ 14310 PUSH32(esp, ebx); /* 0x2701676E: push ebx */ 14311 PUSH32(esp, esi); /* 0x2701676F: push esi */ 14312 PUSH32(esp, edi); /* 0x27016770: push edi */ 14313 esi = ecx; /* 0x27016771: mov esi, ecx */ 14314 PUSH32(esp, eax); /* 0x27016773: push eax */ 14315 MEM32(ebp + (-0x10)) = esi; /* 0x27016774: mov dword ptr [ebp - 0x10], esi */ 14316 RECOMP_ICALL(0x270104B0u); /* 0x27016777: call 0x270104b0 */ /* not lifted */ 14317 RECOMP_FLAGS_IN(); 14318 ecx = MEM32(ebp + 0x8); /* 0x2701677C: mov ecx, dword ptr [ebp + 8] */ 14319 edx = MEM32(ebp + 0xC); /* 0x2701677F: mov edx, dword ptr [ebp + 0xc] */ 14320 edi = MEM32(ebp + 0x14); /* 0x27016782: mov edi, dword ptr [ebp + 0x14] */ 14321 ebx = MEM32(ebp + 0x18); /* 0x27016785: mov ebx, dword ptr [ebp + 0x18] */ 14322 MEM32(esi + 0x54) = ecx; /* 0x27016788: mov dword ptr [esi + 0x54], ecx */ 14323 ecx = MEM32(ebp + 0x2C); /* 0x2701678B: mov ecx, dword ptr [ebp + 0x2c] */ 14324 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14325 eax = 0; /* 0x2701678E: xor eax, eax */ 14326 _cf = 0; 14327 _flag_k = FK_TEST; 14328 MEM32(esi + 0x58) = edx; /* 0x27016790: mov dword ptr [esi + 0x58], edx */ 14329 edx = MEM32(ebp + 0x30); /* 0x27016793: mov edx, dword ptr [ebp + 0x30] */ 14330 MEM32(esi + 0x5C) = ecx; /* 0x27016796: mov dword ptr [esi + 0x5c], ecx */ 14331 ecx = MEM32(ebp + 0x24); /* 0x27016799: mov ecx, dword ptr [ebp + 0x24] */ 14332 MEM32(ebp + (-0x4)) = eax; /* 0x2701679C: mov dword ptr [ebp - 4], eax */ 14333 MEM32(esi + 0x6C) = eax; /* 0x2701679F: mov dword ptr [esi + 0x6c], eax */ 14334 MEM32(esi + 0x60) = edx; /* 0x270167A2: mov dword ptr [esi + 0x60], edx */ 14335 edx = MEM32(ebp + 0x28); /* 0x270167A5: mov edx, dword ptr [ebp + 0x28] */ 14336 eax = ebp + (-0x18); /* 0x270167A8: lea eax, [ebp - 0x18] */ 14337 MEM32(esi + 0x64) = ecx; /* 0x270167AB: mov dword ptr [esi + 0x64], ecx */ 14338 PUSH32(esp, eax); /* 0x270167AE: push eax */ 14339 ecx = esi; /* 0x270167AF: mov ecx, esi */ 14340 MEM32(esi + 0x68) = edx; /* 0x270167B1: mov dword ptr [esi + 0x68], edx */ 14341 MEM32(esi) = 0x270343F8u; /* 0x270167B4: mov dword ptr [esi], 0x270343f8 */ 14342 MEM8(esi + 0x9) = (uint8_t)(1); /* 0x270167BA: mov byte ptr [esi + 9], 1 */ 14343 MEM32(ebp + (-0x18)) = edi; /* 0x270167BE: mov dword ptr [ebp - 0x18], edi */ 14344 MEM32(ebp + (-0x14)) = ebx; /* 0x270167C1: mov dword ptr [ebp - 0x14], ebx */ 14345 RECOMP_ICALL(0x270109B0u); /* 0x270167C4: call 0x270109b0 */ /* not lifted */ 14346 RECOMP_FLAGS_IN(); 14347 ecx = MEM32(ebp + 0x1C); /* 0x270167C9: mov ecx, dword ptr [ebp + 0x1c] */ 14348 edx = MEM32(ebp + 0x20); /* 0x270167CC: mov edx, dword ptr [ebp + 0x20] */ 14349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 14350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14351 ecx = ecx - edi; /* 0x270167CF: sub ecx, edi */ 14352 _flag_k = FK_CMP; 14353 eax = ebp + (-0x20); /* 0x270167D1: lea eax, [ebp - 0x20] */ 14354 MEM32(ebp + (-0x20)) = ecx; /* 0x270167D4: mov dword ptr [ebp - 0x20], ecx */ 14355 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 14356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14357 edx = edx - ebx; /* 0x270167D7: sub edx, ebx */ 14358 _flag_k = FK_CMP; 14359 PUSH32(esp, eax); /* 0x270167D9: push eax */ 14360 ecx = esi; /* 0x270167DA: mov ecx, esi */ 14361 MEM32(ebp + (-0x1C)) = edx; /* 0x270167DC: mov dword ptr [ebp - 0x1c], edx */ 14362 RECOMP_ICALL(0x27010A90u); /* 0x270167DF: call 0x27010a90 */ /* not lifted */ 14363 RECOMP_FLAGS_IN(); 14364 ecx = MEM32(ebp + 0x10); /* 0x270167E4: mov ecx, dword ptr [ebp + 0x10] */ 14365 PUSH32(esp, ecx); /* 0x270167E7: push ecx */ 14366 ecx = esi; /* 0x270167E8: mov ecx, esi */ 14367 RECOMP_ICALL(0x270105B0u); /* 0x270167EA: call 0x270105b0 */ /* not lifted */ 14368 RECOMP_FLAGS_IN(); 14369 ecx = MEM32(ebp + (-0xC)); /* 0x270167EF: mov ecx, dword ptr [ebp - 0xc] */ 14370 edi = POP32_VAL(esp); /* 0x270167F2: pop edi */ 14371 eax = esi; /* 0x270167F3: mov eax, esi */ 14372 esi = POP32_VAL(esp); /* 0x270167F5: pop esi */ 14373 ebx = POP32_VAL(esp); /* 0x270167F6: pop ebx */ 14374 MEM32(FS_BASE + (0)) = ecx; /* 0x270167F7: mov dword ptr fs:[0], ecx */ 14375 esp = ebp; /* 0x270167FE: mov esp, ebp */ 14376 ebp = POP32_VAL(esp); /* 0x27016800: pop ebp */ 14377 RECOMP_FLAGS_OUT(); esp += 52; { RECOMP_REGS_OUT(); return; } /* 0x27016801: ret 0x30 */ 14378 RECOMP_REGS_OUT(); 14379 }