client/game/ccr.dll/lifted-0008.c (627687B)
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 #ifdef __EMSCRIPTEN__ 9 extern int browser_cursor_hidden(void); 10 extern void browser_cursor_update(uint32_t owner); 11 #endif 12 13 void sub_27016810(void) { 14 int _fpu_cmp = 0; 15 uint32_t _cf = 0; 16 int _df = 1; 17 uint32_t _flag_k = FK_NONE; 18 uint32_t _flag_a = 0, _flag_b = 0; 19 uint32_t _itail_tgt = 0; 20 RECOMP_REGS_LOCALS 21 RECOMP_ENTER(0x27016810u); 22 23 L_27016810: 24 PUSH32(esp, ebp); /* 0x27016810: push ebp */ 25 ebp = esp; /* 0x27016811: mov ebp, esp */ 26 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 27 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28 esp = esp - 0xCu; /* 0x27016813: sub esp, 0xc */ 29 _flag_k = FK_CMP; 30 PUSH32(esp, ebx); /* 0x27016816: push ebx */ 31 ebx = MEM32(ebp + 0x8); /* 0x27016817: mov ebx, dword ptr [ebp + 8] */ 32 PUSH32(esp, esi); /* 0x2701681A: push esi */ 33 PUSH32(esp, edi); /* 0x2701681B: push edi */ 34 edi = MEM32(ebp + 0xC); /* 0x2701681C: mov edi, dword ptr [ebp + 0xc] */ 35 PUSH32(esp, edi); /* 0x2701681F: push edi */ 36 esi = ecx; /* 0x27016820: mov esi, ecx */ 37 PUSH32(esp, ebx); /* 0x27016822: push ebx */ 38 RECOMP_ICALL(0x27010980u); /* 0x27016823: call 0x27010980 */ /* not lifted */ 39 RECOMP_FLAGS_IN(); 40 /* test LO8(eax), LO8(eax) */ /* 0x27016828: test al, al */ 41 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 42 _cf = 0; 43 _flag_k = FK_NARROW(FK_TEST, 24); 44 if (TEST_Z(_flag_a, _flag_b)) goto L_2701697F; /* 0x2701682A: je 0x2701697f */ 45 L_27016830: 46 ecx = MEM32(esi + 0x54); /* 0x27016830: mov ecx, dword ptr [esi + 0x54] */ 47 /* test ecx, ecx */ /* 0x27016833: test ecx, ecx */ 48 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 49 _cf = 0; 50 _flag_k = FK_TEST; 51 if (TEST_Z(_flag_a, _flag_b)) goto L_2701696B; /* 0x27016835: je 0x2701696b */ 52 L_2701683B: 53 eax = MEM32(esi + 0x64); /* 0x2701683B: mov eax, dword ptr [esi + 0x64] */ 54 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0); 55 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 56 eax = eax - 0; /* 0x2701683E: sub eax, 0 */ 57 _flag_k = FK_CMP; 58 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_27016958; /* 0x27016841: je 0x27016958 */ 59 L_27016847: 60 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 61 eax = eax - 1; /* 0x27016847: dec eax */ 62 _flag_k = FK_DEC; 63 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_270168F6; /* 0x27016848: je 0x270168f6 */ 64 L_2701684E: 65 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 66 eax = eax - 1; /* 0x2701684E: dec eax */ 67 _flag_k = FK_DEC; 68 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2701696B; /* 0x2701684F: jne 0x2701696b */ 69 L_27016855: 70 edx = MEM32(esi + 0x2C); /* 0x27016855: mov edx, dword ptr [esi + 0x2c] */ 71 eax = MEM32(esi + 0x34); /* 0x27016858: mov eax, dword ptr [esi + 0x34] */ 72 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 73 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 74 eax = eax - edx; /* 0x2701685B: sub eax, edx */ 75 _flag_k = FK_CMP; 76 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 77 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 78 ebx = ebx - edx; /* 0x2701685D: sub ebx, edx */ 79 _flag_k = FK_CMP; 80 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701685F: cdq */ 81 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 82 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 83 eax = eax - edx; /* 0x27016860: sub eax, edx */ 84 _flag_k = FK_CMP; 85 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x27016862: sar eax, 1 */ 86 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 87 eax = (uint32_t)((int32_t)eax >> 1u); 88 MEM32(ebp + 0xC) = ebx; /* 0x27016864: mov dword ptr [ebp + 0xc], ebx */ 89 edx = MEM32(esi + 0x30); /* 0x27016867: mov edx, dword ptr [esi + 0x30] */ 90 fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x2701686A: fild dword ptr [ebp + 0xc] */ 91 MEM32(ebp + 0xC) = eax; /* 0x2701686D: mov dword ptr [ebp + 0xc], eax */ 92 eax = MEM32(esi + 0x38); /* 0x27016870: mov eax, dword ptr [esi + 0x38] */ 93 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 94 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 95 eax = eax - edx; /* 0x27016873: sub eax, edx */ 96 _flag_k = FK_CMP; 97 _st[0] = _st[0] / (double)(int32_t)MEM32(ebp + 0xC); /* 0x27016875: fidiv dword ptr [ebp + 0xc] */ 98 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 99 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 100 edi = edi - edx; /* 0x27016878: sub edi, edx */ 101 _flag_k = FK_CMP; 102 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701687A: cdq */ 103 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 105 eax = eax - edx; /* 0x2701687B: sub eax, edx */ 106 _flag_k = FK_CMP; 107 MEM32(ebp + 0xC) = edi; /* 0x2701687D: mov dword ptr [ebp + 0xc], edi */ 108 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x27016880: sar eax, 1 */ 109 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 110 eax = (uint32_t)((int32_t)eax >> 1u); 111 MEM32(ebp + (-0x4)) = 0; /* 0x27016882: mov dword ptr [ebp - 4], 0 */ 112 _st[0] -= (double)*(float*)ADDR(0x270343A8); /* 0x27016889: fsub dword ptr [0x270343a8] */ 113 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2701688F: fstp dword ptr [ebp - 0xc] */ 114 fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x27016892: fild dword ptr [ebp + 0xc] */ 115 MEM32(ebp + 0xC) = eax; /* 0x27016895: mov dword ptr [ebp + 0xc], eax */ 116 eax = MEM32(ebp + 0x10); /* 0x27016898: mov eax, dword ptr [ebp + 0x10] */ 117 /* cmp eax, 4 */ /* 0x2701689B: cmp eax, 4 */ 118 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 120 _flag_k = FK_CMP; 121 _st[0] = _st[0] / (double)(int32_t)MEM32(ebp + 0xC); /* 0x2701689E: fidiv dword ptr [ebp + 0xc] */ 122 _st[0] -= (double)*(float*)ADDR(0x270343A8); /* 0x270168A1: fsub dword ptr [0x270343a8] */ 123 _st[0] *= (double)*(float*)ADDR(0x2703445C); /* 0x270168A7: fmul dword ptr [0x2703445c] */ 124 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x270168AD: fstp dword ptr [ebp - 8] */ 125 if (CMP_NE(_flag_a, _flag_b)) goto L_270168B7; /* 0x270168B0: jne 0x270168b7 */ 126 L_270168B2: 127 eax = MEM32(esi + 0x5C); /* 0x270168B2: mov eax, dword ptr [esi + 0x5c] */ 128 goto L_270168BF; /* 0x270168B5: jmp 0x270168bf */ 129 L_270168B7: 130 /* cmp eax, 8 */ /* 0x270168B7: cmp eax, 8 */ 131 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 133 _flag_k = FK_CMP; 134 if (CMP_NE(_flag_a, _flag_b)) goto L_270168DD; /* 0x270168BA: jne 0x270168dd */ 135 L_270168BC: 136 eax = MEM32(esi + 0x60); /* 0x270168BC: mov eax, dword ptr [esi + 0x60] */ 137 L_270168BF: 138 /* cmp eax, 0xFFFFFFFFu */ /* 0x270168BF: cmp eax, -1 */ 139 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 141 _flag_k = FK_CMP; 142 if (CMP_EQ(_flag_a, _flag_b)) goto L_270168DD; /* 0x270168C2: je 0x270168dd */ 143 L_270168C4: 144 edx = ebp + (-0xC); /* 0x270168C4: lea edx, [ebp - 0xc] */ 145 PUSH32(esp, edx); /* 0x270168C7: push edx */ 146 PUSH32(esp, eax); /* 0x270168C8: push eax */ 147 PUSH32(esp, ecx); /* 0x270168C9: push ecx */ 148 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x270168CA: call dword ptr [0x270291d0] */ 149 RECOMP_FLAGS_IN(); 150 ecx = eax; /* 0x270168D0: mov ecx, eax */ 151 RECOMP_ICALL(MEM32(0x27029178)); /* 0x270168D2: call dword ptr [0x27029178] */ 152 RECOMP_FLAGS_IN(); 153 goto L_2701696B; /* 0x270168D8: jmp 0x2701696b */ 154 L_270168DD: 155 edx = MEM32(esi + 0x58); /* 0x270168DD: mov edx, dword ptr [esi + 0x58] */ 156 eax = ebp + (-0xC); /* 0x270168E0: lea eax, [ebp - 0xc] */ 157 PUSH32(esp, eax); /* 0x270168E3: push eax */ 158 PUSH32(esp, edx); /* 0x270168E4: push edx */ 159 PUSH32(esp, ecx); /* 0x270168E5: push ecx */ 160 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x270168E6: call dword ptr [0x270291d0] */ 161 RECOMP_FLAGS_IN(); 162 ecx = eax; /* 0x270168EC: mov ecx, eax */ 163 RECOMP_ICALL(MEM32(0x27029178)); /* 0x270168EE: call dword ptr [0x27029178] */ 164 RECOMP_FLAGS_IN(); 165 goto L_2701696B; /* 0x270168F4: jmp 0x2701696b */ 166 L_270168F6: 167 eax = MEM32(ebp + 0x10); /* 0x270168F6: mov eax, dword ptr [ebp + 0x10] */ 168 /* cmp eax, 4 */ /* 0x270168F9: cmp eax, 4 */ 169 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 171 _flag_k = FK_CMP; 172 if (CMP_NE(_flag_a, _flag_b)) goto L_27016922; /* 0x270168FC: jne 0x27016922 */ 173 L_270168FE: 174 eax = MEM32(esi + 0x5C); /* 0x270168FE: mov eax, dword ptr [esi + 0x5c] */ 175 /* cmp eax, 0xFFFFFFFFu */ /* 0x27016901: cmp eax, -1 */ 176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 178 _flag_k = FK_CMP; 179 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701694B; /* 0x27016904: je 0x2701694b */ 180 L_27016906: 181 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x30)); 182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 183 edi = edi - MEM32(esi + 0x30); /* 0x27016906: sub edi, dword ptr [esi + 0x30] */ 184 _flag_k = FK_CMP; 185 edx = MEM32(esi + 0x2C); /* 0x27016909: mov edx, dword ptr [esi + 0x2c] */ 186 PUSH32(esp, edi); /* 0x2701690C: push edi */ 187 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 189 ebx = ebx - edx; /* 0x2701690D: sub ebx, edx */ 190 _flag_k = FK_CMP; 191 PUSH32(esp, ebx); /* 0x2701690F: push ebx */ 192 PUSH32(esp, eax); /* 0x27016910: push eax */ 193 PUSH32(esp, ecx); /* 0x27016911: push ecx */ 194 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x27016912: call dword ptr [0x270291d0] */ 195 RECOMP_FLAGS_IN(); 196 ecx = eax; /* 0x27016918: mov ecx, eax */ 197 RECOMP_ICALL(MEM32(0x270291BC)); /* 0x2701691A: call dword ptr [0x270291bc] */ 198 RECOMP_FLAGS_IN(); 199 goto L_2701696B; /* 0x27016920: jmp 0x2701696b */ 200 L_27016922: 201 /* cmp eax, 8 */ /* 0x27016922: cmp eax, 8 */ 202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 204 _flag_k = FK_CMP; 205 if (CMP_NE(_flag_a, _flag_b)) goto L_2701694B; /* 0x27016925: jne 0x2701694b */ 206 L_27016927: 207 eax = MEM32(esi + 0x60); /* 0x27016927: mov eax, dword ptr [esi + 0x60] */ 208 /* cmp eax, 0xFFFFFFFFu */ /* 0x2701692A: cmp eax, -1 */ 209 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 211 _flag_k = FK_CMP; 212 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701694B; /* 0x2701692D: je 0x2701694b */ 213 L_2701692F: 214 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x30)); 215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 216 edi = edi - MEM32(esi + 0x30); /* 0x2701692F: sub edi, dword ptr [esi + 0x30] */ 217 _flag_k = FK_CMP; 218 edx = MEM32(esi + 0x2C); /* 0x27016932: mov edx, dword ptr [esi + 0x2c] */ 219 PUSH32(esp, edi); /* 0x27016935: push edi */ 220 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 222 ebx = ebx - edx; /* 0x27016936: sub ebx, edx */ 223 _flag_k = FK_CMP; 224 PUSH32(esp, ebx); /* 0x27016938: push ebx */ 225 L_27016939: 226 PUSH32(esp, eax); /* 0x27016939: push eax */ 227 PUSH32(esp, ecx); /* 0x2701693A: push ecx */ 228 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x2701693B: call dword ptr [0x270291d0] */ 229 RECOMP_FLAGS_IN(); 230 ecx = eax; /* 0x27016941: mov ecx, eax */ 231 RECOMP_ICALL(MEM32(0x270291BC)); /* 0x27016943: call dword ptr [0x270291bc] */ 232 RECOMP_FLAGS_IN(); 233 goto L_2701696B; /* 0x27016949: jmp 0x2701696b */ 234 L_2701694B: 235 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x30)); 236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 237 edi = edi - MEM32(esi + 0x30); /* 0x2701694B: sub edi, dword ptr [esi + 0x30] */ 238 _flag_k = FK_CMP; 239 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x2C)); 240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 241 ebx = ebx - MEM32(esi + 0x2C); /* 0x2701694E: sub ebx, dword ptr [esi + 0x2c] */ 242 _flag_k = FK_CMP; 243 eax = MEM32(esi + 0x58); /* 0x27016951: mov eax, dword ptr [esi + 0x58] */ 244 PUSH32(esp, edi); /* 0x27016954: push edi */ 245 PUSH32(esp, ebx); /* 0x27016955: push ebx */ 246 RECOMP_BACKEDGE(); 247 goto L_27016939; /* 0x27016956: jmp 0x27016939 */ 248 L_27016958: 249 edx = MEM32(esi + 0x58); /* 0x27016958: mov edx, dword ptr [esi + 0x58] */ 250 PUSH32(esp, edx); /* 0x2701695B: push edx */ 251 PUSH32(esp, ecx); /* 0x2701695C: push ecx */ 252 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x2701695D: call dword ptr [0x270291d0] */ 253 RECOMP_FLAGS_IN(); 254 ecx = eax; /* 0x27016963: mov ecx, eax */ 255 RECOMP_ICALL(MEM32(0x270291D4)); /* 0x27016965: call dword ptr [0x270291d4] */ 256 RECOMP_FLAGS_IN(); 257 L_2701696B: 258 esi = MEM32(esi + 0x68); /* 0x2701696B: mov esi, dword ptr [esi + 0x68] */ 259 /* test esi, esi */ /* 0x2701696E: test esi, esi */ 260 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 261 _cf = 0; 262 _flag_k = FK_TEST; 263 if (TEST_Z(_flag_a, _flag_b)) goto L_2701697F; /* 0x27016970: je 0x2701697f */ 264 L_27016972: 265 PUSH32(esp, esi); /* 0x27016972: push esi */ 266 RECOMP_ICALL(0x27002B60u); /* 0x27016973: call 0x27002b60 */ /* not lifted */ 267 RECOMP_FLAGS_IN(); 268 ecx = eax; /* 0x27016978: mov ecx, eax */ 269 RECOMP_ICALL(0x27003EB0u); /* 0x2701697A: call 0x27003eb0 */ /* not lifted */ 270 RECOMP_FLAGS_IN(); 271 L_2701697F: 272 edi = POP32_VAL(esp); /* 0x2701697F: pop edi */ 273 esi = POP32_VAL(esp); /* 0x27016980: pop esi */ 274 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 275 SET_LO8(eax, 0); /* 0x27016981: xor al, al */ 276 _cf = 0; 277 _flag_k = FK_NARROW(FK_TEST, 24); 278 ebx = POP32_VAL(esp); /* 0x27016983: pop ebx */ 279 esp = ebp; /* 0x27016984: mov esp, ebp */ 280 ebp = POP32_VAL(esp); /* 0x27016986: pop ebp */ 281 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016987: ret 0x10 */ 282 RECOMP_REGS_OUT(); 283 } 284 285 void sub_2701696B(void) { 286 int _fpu_cmp = 0; 287 uint32_t _cf = 0; 288 int _df = 1; 289 uint32_t _flag_k = FK_NONE; 290 uint32_t _flag_a = 0, _flag_b = 0; 291 uint32_t _itail_tgt = 0; 292 RECOMP_REGS_LOCALS 293 RECOMP_ENTER(0x2701696Bu); 294 295 L_2701696B: 296 esi = MEM32(esi + 0x68); /* 0x2701696B: mov esi, dword ptr [esi + 0x68] */ 297 /* test esi, esi */ /* 0x2701696E: test esi, esi */ 298 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 299 _cf = 0; 300 _flag_k = FK_TEST; 301 if (TEST_Z(_flag_a, _flag_b)) goto L_2701697F; /* 0x27016970: je 0x2701697f */ 302 L_27016972: 303 PUSH32(esp, esi); /* 0x27016972: push esi */ 304 RECOMP_ICALL(0x27002B60u); /* 0x27016973: call 0x27002b60 */ /* not lifted */ 305 RECOMP_FLAGS_IN(); 306 ecx = eax; /* 0x27016978: mov ecx, eax */ 307 RECOMP_ICALL(0x27003EB0u); /* 0x2701697A: call 0x27003eb0 */ /* not lifted */ 308 RECOMP_FLAGS_IN(); 309 L_2701697F: 310 edi = POP32_VAL(esp); /* 0x2701697F: pop edi */ 311 esi = POP32_VAL(esp); /* 0x27016980: pop esi */ 312 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 313 SET_LO8(eax, 0); /* 0x27016981: xor al, al */ 314 _cf = 0; 315 _flag_k = FK_NARROW(FK_TEST, 24); 316 ebx = POP32_VAL(esp); /* 0x27016983: pop ebx */ 317 esp = ebp; /* 0x27016984: mov esp, ebp */ 318 ebp = POP32_VAL(esp); /* 0x27016986: pop ebp */ 319 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27016987: ret 0x10 */ 320 RECOMP_REGS_OUT(); 321 } 322 323 void sub_27016990(void) { 324 int _fpu_cmp = 0; 325 uint32_t _cf = 0; 326 int _df = 1; 327 uint32_t _flag_k = FK_NONE; 328 uint32_t _flag_a = 0, _flag_b = 0; 329 uint32_t _itail_tgt = 0; 330 RECOMP_REGS_LOCALS 331 RECOMP_ENTER(0x27016990u); 332 333 L_27016990: 334 MEM32(0x27048BB0) = 0; /* 0x27016990: mov dword ptr [0x27048bb0], 0 */ 335 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701699A: ret */ 336 RECOMP_REGS_OUT(); 337 } 338 339 void sub_270169A0(void) { 340 int _fpu_cmp = 0; 341 uint32_t _cf = 0; 342 int _df = 1; 343 uint32_t _flag_k = FK_NONE; 344 uint32_t _flag_a = 0, _flag_b = 0; 345 uint32_t _itail_tgt = 0; 346 RECOMP_REGS_LOCALS 347 RECOMP_ENTER(0x270169A0u); 348 349 L_270169A0: 350 PUSH32(esp, ebp); /* 0x270169A0: push ebp */ 351 ebp = esp; /* 0x270169A1: mov ebp, esp */ 352 PUSH32(esp, 0xFFFFFFFFu); /* 0x270169A3: push -1 */ 353 PUSH32(esp, 0x27027BCBu); /* 0x270169A5: push 0x27027bcb */ 354 eax = MEM32(FS_BASE + (0)); /* 0x270169AA: mov eax, dword ptr fs:[0] */ 355 PUSH32(esp, eax); /* 0x270169B0: push eax */ 356 MEM32(FS_BASE + (0)) = esp; /* 0x270169B1: mov dword ptr fs:[0], esp */ 357 PUSH32(esp, ecx); /* 0x270169B8: push ecx */ 358 eax = MEM32(0x27048BB0); /* 0x270169B9: mov eax, dword ptr [0x27048bb0] */ 359 /* test eax, eax */ /* 0x270169BE: test eax, eax */ 360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 361 _cf = 0; 362 _flag_k = FK_TEST; 363 if (TEST_NZ(_flag_a, _flag_b)) goto L_270169FB; /* 0x270169C0: jne 0x270169fb */ 364 L_270169C2: 365 PUSH32(esp, 1); /* 0x270169C2: push 1 */ 366 RECOMP_ICALL(0x27026EA4u); /* 0x270169C4: call 0x27026ea4 */ /* not lifted */ 367 RECOMP_FLAGS_IN(); 368 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 370 esp = esp + 4; /* 0x270169C9: add esp, 4 */ 371 _flag_k = FK_ADD; 372 MEM32(ebp + (-0x10)) = eax; /* 0x270169CC: mov dword ptr [ebp - 0x10], eax */ 373 /* test eax, eax */ /* 0x270169CF: test eax, eax */ 374 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 375 _cf = 0; 376 _flag_k = FK_TEST; 377 MEM32(ebp + (-0x4)) = 0; /* 0x270169D1: mov dword ptr [ebp - 4], 0 */ 378 if (TEST_Z(_flag_a, _flag_b)) goto L_270169F4; /* 0x270169D8: je 0x270169f4 */ 379 L_270169DA: 380 ecx = eax; /* 0x270169DA: mov ecx, eax */ 381 RECOMP_ICALL(0x27016A20u); /* 0x270169DC: call 0x27016a20 */ /* not lifted */ 382 RECOMP_FLAGS_IN(); 383 MEM32(0x27048BB0) = eax; /* 0x270169E1: mov dword ptr [0x27048bb0], eax */ 384 ecx = MEM32(ebp + (-0xC)); /* 0x270169E6: mov ecx, dword ptr [ebp - 0xc] */ 385 MEM32(FS_BASE + (0)) = ecx; /* 0x270169E9: mov dword ptr fs:[0], ecx */ 386 esp = ebp; /* 0x270169F0: mov esp, ebp */ 387 ebp = POP32_VAL(esp); /* 0x270169F2: pop ebp */ 388 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270169F3: ret */ 389 L_270169F4: 390 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 391 eax = 0; /* 0x270169F4: xor eax, eax */ 392 _cf = 0; 393 _flag_k = FK_TEST; 394 MEM32(0x27048BB0) = eax; /* 0x270169F6: mov dword ptr [0x27048bb0], eax */ 395 L_270169FB: 396 ecx = MEM32(ebp + (-0xC)); /* 0x270169FB: mov ecx, dword ptr [ebp - 0xc] */ 397 MEM32(FS_BASE + (0)) = ecx; /* 0x270169FE: mov dword ptr fs:[0], ecx */ 398 esp = ebp; /* 0x27016A05: mov esp, ebp */ 399 ebp = POP32_VAL(esp); /* 0x27016A07: pop ebp */ 400 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016A08: ret */ 401 RECOMP_REGS_OUT(); 402 } 403 404 void sub_27016A10(void) { 405 int _fpu_cmp = 0; 406 uint32_t _cf = 0; 407 int _df = 1; 408 uint32_t _flag_k = FK_NONE; 409 uint32_t _flag_a = 0, _flag_b = 0; 410 uint32_t _itail_tgt = 0; 411 RECOMP_REGS_LOCALS 412 RECOMP_ENTER(0x27016A10u); 413 414 L_27016A10: 415 eax = MEM32(0x27048BB0); /* 0x27016A10: mov eax, dword ptr [0x27048bb0] */ 416 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016A15: ret */ 417 RECOMP_REGS_OUT(); 418 } 419 420 void sub_27016A20(void) { 421 int _fpu_cmp = 0; 422 uint32_t _cf = 0; 423 int _df = 1; 424 uint32_t _flag_k = FK_NONE; 425 uint32_t _flag_a = 0, _flag_b = 0; 426 uint32_t _itail_tgt = 0; 427 RECOMP_REGS_LOCALS 428 RECOMP_ENTER(0x27016A20u); 429 430 L_27016A20: 431 PUSH32(esp, ebx); /* 0x27016A20: push ebx */ 432 PUSH32(esp, esi); /* 0x27016A21: push esi */ 433 esi = MEM32(0x270291D0); /* 0x27016A22: mov esi, dword ptr [0x270291d0] */ 434 PUSH32(esp, edi); /* 0x27016A28: push edi */ 435 ebx = ecx; /* 0x27016A29: mov ebx, ecx */ 436 RECOMP_ICALL(esi); /* 0x27016A2B: call esi */ 437 RECOMP_FLAGS_IN(); 438 ecx = eax; /* 0x27016A2D: mov ecx, eax */ 439 RECOMP_ICALL(MEM32(0x27029188)); /* 0x27016A2F: call dword ptr [0x27029188] */ 440 RECOMP_FLAGS_IN(); 441 PUSH32(esp, 0x7D0u); /* 0x27016A35: push 0x7d0 */ 442 PUSH32(esp, 2); /* 0x27016A3A: push 2 */ 443 PUSH32(esp, 2); /* 0x27016A3C: push 2 */ 444 RECOMP_ICALL(esi); /* 0x27016A3E: call esi */ 445 RECOMP_FLAGS_IN(); 446 ecx = eax; /* 0x27016A40: mov ecx, eax */ 447 RECOMP_ICALL(MEM32(0x27029184)); /* 0x27016A42: call dword ptr [0x27029184] */ 448 RECOMP_FLAGS_IN(); 449 PUSH32(esp, 0x27016CD0u); /* 0x27016A48: push 0x27016cd0 */ 450 RECOMP_ICALL(esi); /* 0x27016A4D: call esi */ 451 RECOMP_FLAGS_IN(); 452 ecx = eax; /* 0x27016A4F: mov ecx, eax */ 453 RECOMP_ICALL(MEM32(0x2702919C)); /* 0x27016A51: call dword ptr [0x2702919c] */ 454 RECOMP_FLAGS_IN(); 455 PUSH32(esp, 0x27016B60u); /* 0x27016A57: push 0x27016b60 */ 456 PUSH32(esp, 5); /* 0x27016A5C: push 5 */ 457 RECOMP_ICALL(esi); /* 0x27016A5E: call esi */ 458 RECOMP_FLAGS_IN(); 459 edi = MEM32(0x27029180); /* 0x27016A60: mov edi, dword ptr [0x27029180] */ 460 ecx = eax; /* 0x27016A66: mov ecx, eax */ 461 RECOMP_ICALL(edi); /* 0x27016A68: call edi */ 462 RECOMP_FLAGS_IN(); 463 PUSH32(esp, 0x27016BC0u); /* 0x27016A6A: push 0x27016bc0 */ 464 PUSH32(esp, 6); /* 0x27016A6F: push 6 */ 465 RECOMP_ICALL(esi); /* 0x27016A71: call esi */ 466 RECOMP_FLAGS_IN(); 467 ecx = eax; /* 0x27016A73: mov ecx, eax */ 468 RECOMP_ICALL(edi); /* 0x27016A75: call edi */ 469 RECOMP_FLAGS_IN(); 470 PUSH32(esp, 0x27016CE0u); /* 0x27016A77: push 0x27016ce0 */ 471 PUSH32(esp, 0x29u); /* 0x27016A7C: push 0x29 */ 472 RECOMP_ICALL(esi); /* 0x27016A7E: call esi */ 473 RECOMP_FLAGS_IN(); 474 ecx = eax; /* 0x27016A80: mov ecx, eax */ 475 RECOMP_ICALL(edi); /* 0x27016A82: call edi */ 476 RECOMP_FLAGS_IN(); 477 PUSH32(esp, 0x27016CF0u); /* 0x27016A84: push 0x27016cf0 */ 478 PUSH32(esp, 0x2Au); /* 0x27016A89: push 0x2a */ 479 RECOMP_ICALL(esi); /* 0x27016A8B: call esi */ 480 RECOMP_FLAGS_IN(); 481 ecx = eax; /* 0x27016A8D: mov ecx, eax */ 482 RECOMP_ICALL(edi); /* 0x27016A8F: call edi */ 483 RECOMP_FLAGS_IN(); 484 PUSH32(esp, 0x27016D00u); /* 0x27016A91: push 0x27016d00 */ 485 PUSH32(esp, 0x2Bu); /* 0x27016A96: push 0x2b */ 486 RECOMP_ICALL(esi); /* 0x27016A98: call esi */ 487 RECOMP_FLAGS_IN(); 488 ecx = eax; /* 0x27016A9A: mov ecx, eax */ 489 RECOMP_ICALL(edi); /* 0x27016A9C: call edi */ 490 RECOMP_FLAGS_IN(); 491 PUSH32(esp, 0x27016BF0u); /* 0x27016A9E: push 0x27016bf0 */ 492 PUSH32(esp, 0x2Cu); /* 0x27016AA3: push 0x2c */ 493 RECOMP_ICALL(esi); /* 0x27016AA5: call esi */ 494 RECOMP_FLAGS_IN(); 495 ecx = eax; /* 0x27016AA7: mov ecx, eax */ 496 RECOMP_ICALL(edi); /* 0x27016AA9: call edi */ 497 RECOMP_FLAGS_IN(); 498 PUSH32(esp, 0x27016C00u); /* 0x27016AAB: push 0x27016c00 */ 499 PUSH32(esp, 3); /* 0x27016AB0: push 3 */ 500 RECOMP_ICALL(esi); /* 0x27016AB2: call esi */ 501 RECOMP_FLAGS_IN(); 502 ecx = eax; /* 0x27016AB4: mov ecx, eax */ 503 RECOMP_ICALL(edi); /* 0x27016AB6: call edi */ 504 RECOMP_FLAGS_IN(); 505 PUSH32(esp, 0x27016C10u); /* 0x27016AB8: push 0x27016c10 */ 506 PUSH32(esp, 0x2Du); /* 0x27016ABD: push 0x2d */ 507 RECOMP_ICALL(esi); /* 0x27016ABF: call esi */ 508 RECOMP_FLAGS_IN(); 509 ecx = eax; /* 0x27016AC1: mov ecx, eax */ 510 RECOMP_ICALL(edi); /* 0x27016AC3: call edi */ 511 RECOMP_FLAGS_IN(); 512 PUSH32(esp, 0x27016C20u); /* 0x27016AC5: push 0x27016c20 */ 513 PUSH32(esp, 0x2Eu); /* 0x27016ACA: push 0x2e */ 514 RECOMP_ICALL(esi); /* 0x27016ACC: call esi */ 515 RECOMP_FLAGS_IN(); 516 ecx = eax; /* 0x27016ACE: mov ecx, eax */ 517 RECOMP_ICALL(edi); /* 0x27016AD0: call edi */ 518 RECOMP_FLAGS_IN(); 519 PUSH32(esp, 0x27016C30u); /* 0x27016AD2: push 0x27016c30 */ 520 PUSH32(esp, 0x2Fu); /* 0x27016AD7: push 0x2f */ 521 RECOMP_ICALL(esi); /* 0x27016AD9: call esi */ 522 RECOMP_FLAGS_IN(); 523 ecx = eax; /* 0x27016ADB: mov ecx, eax */ 524 RECOMP_ICALL(edi); /* 0x27016ADD: call edi */ 525 RECOMP_FLAGS_IN(); 526 PUSH32(esp, 0x27016C40u); /* 0x27016ADF: push 0x27016c40 */ 527 PUSH32(esp, 0x30u); /* 0x27016AE4: push 0x30 */ 528 RECOMP_ICALL(esi); /* 0x27016AE6: call esi */ 529 RECOMP_FLAGS_IN(); 530 ecx = eax; /* 0x27016AE8: mov ecx, eax */ 531 RECOMP_ICALL(edi); /* 0x27016AEA: call edi */ 532 RECOMP_FLAGS_IN(); 533 PUSH32(esp, 0x27016C50u); /* 0x27016AEC: push 0x27016c50 */ 534 PUSH32(esp, 0x31u); /* 0x27016AF1: push 0x31 */ 535 RECOMP_ICALL(esi); /* 0x27016AF3: call esi */ 536 RECOMP_FLAGS_IN(); 537 ecx = eax; /* 0x27016AF5: mov ecx, eax */ 538 RECOMP_ICALL(edi); /* 0x27016AF7: call edi */ 539 RECOMP_FLAGS_IN(); 540 PUSH32(esp, 0x27016C60u); /* 0x27016AF9: push 0x27016c60 */ 541 PUSH32(esp, 0x32u); /* 0x27016AFE: push 0x32 */ 542 RECOMP_ICALL(esi); /* 0x27016B00: call esi */ 543 RECOMP_FLAGS_IN(); 544 ecx = eax; /* 0x27016B02: mov ecx, eax */ 545 RECOMP_ICALL(edi); /* 0x27016B04: call edi */ 546 RECOMP_FLAGS_IN(); 547 PUSH32(esp, 0x27016C70u); /* 0x27016B06: push 0x27016c70 */ 548 PUSH32(esp, 0x33u); /* 0x27016B0B: push 0x33 */ 549 RECOMP_ICALL(esi); /* 0x27016B0D: call esi */ 550 RECOMP_FLAGS_IN(); 551 ecx = eax; /* 0x27016B0F: mov ecx, eax */ 552 RECOMP_ICALL(edi); /* 0x27016B11: call edi */ 553 RECOMP_FLAGS_IN(); 554 PUSH32(esp, 0x27016C80u); /* 0x27016B13: push 0x27016c80 */ 555 PUSH32(esp, 0x34u); /* 0x27016B18: push 0x34 */ 556 RECOMP_ICALL(esi); /* 0x27016B1A: call esi */ 557 RECOMP_FLAGS_IN(); 558 ecx = eax; /* 0x27016B1C: mov ecx, eax */ 559 RECOMP_ICALL(edi); /* 0x27016B1E: call edi */ 560 RECOMP_FLAGS_IN(); 561 PUSH32(esp, 0x27016C90u); /* 0x27016B20: push 0x27016c90 */ 562 PUSH32(esp, 0x35u); /* 0x27016B25: push 0x35 */ 563 RECOMP_ICALL(esi); /* 0x27016B27: call esi */ 564 RECOMP_FLAGS_IN(); 565 ecx = eax; /* 0x27016B29: mov ecx, eax */ 566 RECOMP_ICALL(edi); /* 0x27016B2B: call edi */ 567 RECOMP_FLAGS_IN(); 568 PUSH32(esp, 0x27016CA0u); /* 0x27016B2D: push 0x27016ca0 */ 569 PUSH32(esp, 0x36u); /* 0x27016B32: push 0x36 */ 570 RECOMP_ICALL(esi); /* 0x27016B34: call esi */ 571 RECOMP_FLAGS_IN(); 572 ecx = eax; /* 0x27016B36: mov ecx, eax */ 573 RECOMP_ICALL(edi); /* 0x27016B38: call edi */ 574 RECOMP_FLAGS_IN(); 575 PUSH32(esp, 0x27016CB0u); /* 0x27016B3A: push 0x27016cb0 */ 576 PUSH32(esp, 0x37u); /* 0x27016B3F: push 0x37 */ 577 RECOMP_ICALL(esi); /* 0x27016B41: call esi */ 578 RECOMP_FLAGS_IN(); 579 ecx = eax; /* 0x27016B43: mov ecx, eax */ 580 RECOMP_ICALL(edi); /* 0x27016B45: call edi */ 581 RECOMP_FLAGS_IN(); 582 PUSH32(esp, 0x27016CC0u); /* 0x27016B47: push 0x27016cc0 */ 583 PUSH32(esp, 0x38u); /* 0x27016B4C: push 0x38 */ 584 RECOMP_ICALL(esi); /* 0x27016B4E: call esi */ 585 RECOMP_FLAGS_IN(); 586 ecx = eax; /* 0x27016B50: mov ecx, eax */ 587 RECOMP_ICALL(edi); /* 0x27016B52: call edi */ 588 RECOMP_FLAGS_IN(); 589 edi = POP32_VAL(esp); /* 0x27016B54: pop edi */ 590 esi = POP32_VAL(esp); /* 0x27016B55: pop esi */ 591 eax = ebx; /* 0x27016B56: mov eax, ebx */ 592 ebx = POP32_VAL(esp); /* 0x27016B58: pop ebx */ 593 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016B59: ret */ 594 RECOMP_REGS_OUT(); 595 } 596 597 void sub_27016B60(void) { 598 int _fpu_cmp = 0; 599 uint32_t _cf = 0; 600 int _df = 1; 601 uint32_t _flag_k = FK_NONE; 602 uint32_t _flag_a = 0, _flag_b = 0; 603 uint32_t _itail_tgt = 0; 604 RECOMP_REGS_LOCALS 605 RECOMP_ENTER(0x27016B60u); 606 607 L_27016B60: 608 PUSH32(esp, ebp); /* 0x27016B60: push ebp */ 609 ebp = esp; /* 0x27016B61: mov ebp, esp */ 610 PUSH32(esp, 0xFFFFFFFFu); /* 0x27016B63: push -1 */ 611 PUSH32(esp, 0x27027BEBu); /* 0x27016B65: push 0x27027beb */ 612 eax = MEM32(FS_BASE + (0)); /* 0x27016B6A: mov eax, dword ptr fs:[0] */ 613 PUSH32(esp, eax); /* 0x27016B70: push eax */ 614 MEM32(FS_BASE + (0)) = esp; /* 0x27016B71: mov dword ptr fs:[0], esp */ 615 PUSH32(esp, ecx); /* 0x27016B78: push ecx */ 616 PUSH32(esp, 0x14u); /* 0x27016B79: push 0x14 */ 617 RECOMP_ICALL(0x27026EA4u); /* 0x27016B7B: call 0x27026ea4 */ /* not lifted */ 618 RECOMP_FLAGS_IN(); 619 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 621 esp = esp + 4; /* 0x27016B80: add esp, 4 */ 622 _flag_k = FK_ADD; 623 MEM32(ebp + (-0x10)) = eax; /* 0x27016B83: mov dword ptr [ebp - 0x10], eax */ 624 /* test eax, eax */ /* 0x27016B86: test eax, eax */ 625 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 626 _cf = 0; 627 _flag_k = FK_TEST; 628 MEM32(ebp + (-0x4)) = 0; /* 0x27016B88: mov dword ptr [ebp - 4], 0 */ 629 if (TEST_Z(_flag_a, _flag_b)) goto L_27016BAB; /* 0x27016B8F: je 0x27016bab */ 630 L_27016B91: 631 ecx = eax; /* 0x27016B91: mov ecx, eax */ 632 RECOMP_ICALL(0x27016D40u); /* 0x27016B93: call 0x27016d40 */ /* not lifted */ 633 RECOMP_FLAGS_IN(); 634 MEM32(0x27048BB4) = eax; /* 0x27016B98: mov dword ptr [0x27048bb4], eax */ 635 ecx = MEM32(ebp + (-0xC)); /* 0x27016B9D: mov ecx, dword ptr [ebp - 0xc] */ 636 MEM32(FS_BASE + (0)) = ecx; /* 0x27016BA0: mov dword ptr fs:[0], ecx */ 637 esp = ebp; /* 0x27016BA7: mov esp, ebp */ 638 ebp = POP32_VAL(esp); /* 0x27016BA9: pop ebp */ 639 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016BAA: ret */ 640 L_27016BAB: 641 ecx = MEM32(ebp + (-0xC)); /* 0x27016BAB: mov ecx, dword ptr [ebp - 0xc] */ 642 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 643 eax = 0; /* 0x27016BAE: xor eax, eax */ 644 _cf = 0; 645 _flag_k = FK_TEST; 646 MEM32(0x27048BB4) = eax; /* 0x27016BB0: mov dword ptr [0x27048bb4], eax */ 647 MEM32(FS_BASE + (0)) = ecx; /* 0x27016BB5: mov dword ptr fs:[0], ecx */ 648 esp = ebp; /* 0x27016BBC: mov esp, ebp */ 649 ebp = POP32_VAL(esp); /* 0x27016BBE: pop ebp */ 650 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016BBF: ret */ 651 RECOMP_REGS_OUT(); 652 } 653 654 void sub_27016BC0(void) { 655 int _fpu_cmp = 0; 656 uint32_t _cf = 0; 657 int _df = 1; 658 uint32_t _flag_k = FK_NONE; 659 uint32_t _flag_a = 0, _flag_b = 0; 660 uint32_t _itail_tgt = 0; 661 RECOMP_REGS_LOCALS 662 RECOMP_ENTER(0x27016BC0u); 663 664 L_27016BC0: 665 PUSH32(esp, esi); /* 0x27016BC0: push esi */ 666 esi = MEM32(0x27048BB4); /* 0x27016BC1: mov esi, dword ptr [0x27048bb4] */ 667 /* test esi, esi */ /* 0x27016BC7: test esi, esi */ 668 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 669 _cf = 0; 670 _flag_k = FK_TEST; 671 if (TEST_Z(_flag_a, _flag_b)) goto L_27016BDB; /* 0x27016BC9: je 0x27016bdb */ 672 L_27016BCB: 673 ecx = esi; /* 0x27016BCB: mov ecx, esi */ 674 RECOMP_ICALL(0x27016E30u); /* 0x27016BCD: call 0x27016e30 */ /* not lifted */ 675 RECOMP_FLAGS_IN(); 676 PUSH32(esp, esi); /* 0x27016BD2: push esi */ 677 RECOMP_ICALL(0x27026DA4u); /* 0x27016BD3: call 0x27026da4 */ /* not lifted */ 678 RECOMP_FLAGS_IN(); 679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 680 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 681 esp = esp + 4; /* 0x27016BD8: add esp, 4 */ 682 _flag_k = FK_ADD; 683 L_27016BDB: 684 MEM32(0x27048BB4) = 0; /* 0x27016BDB: mov dword ptr [0x27048bb4], 0 */ 685 esi = POP32_VAL(esp); /* 0x27016BE5: pop esi */ 686 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016BE6: ret */ 687 RECOMP_REGS_OUT(); 688 } 689 690 void sub_27016BF0(void) { 691 int _fpu_cmp = 0; 692 uint32_t _cf = 0; 693 int _df = 1; 694 uint32_t _flag_k = FK_NONE; 695 uint32_t _flag_a = 0, _flag_b = 0; 696 uint32_t _itail_tgt = 0; 697 RECOMP_REGS_LOCALS 698 RECOMP_ENTER(0x27016BF0u); 699 700 L_27016BF0: 701 eax = MEM32(0x27048BB4); /* 0x27016BF0: mov eax, dword ptr [0x27048bb4] */ 702 MEM32(eax + 0xC) = 0; /* 0x27016BF5: mov dword ptr [eax + 0xc], 0 */ 703 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016BFC: ret */ 704 RECOMP_REGS_OUT(); 705 } 706 707 void sub_27016C00(void) { 708 int _fpu_cmp = 0; 709 uint32_t _cf = 0; 710 int _df = 1; 711 uint32_t _flag_k = FK_NONE; 712 uint32_t _flag_a = 0, _flag_b = 0; 713 uint32_t _itail_tgt = 0; 714 RECOMP_REGS_LOCALS 715 RECOMP_ENTER(0x27016C00u); 716 717 L_27016C00: 718 eax = MEM32(0x27048BB4); /* 0x27016C00: mov eax, dword ptr [0x27048bb4] */ 719 MEM32(eax + 0xC) = 1; /* 0x27016C05: mov dword ptr [eax + 0xc], 1 */ 720 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016C0C: ret */ 721 RECOMP_REGS_OUT(); 722 } 723 724 void sub_27016C10(void) { 725 int _fpu_cmp = 0; 726 uint32_t _cf = 0; 727 int _df = 1; 728 uint32_t _flag_k = FK_NONE; 729 uint32_t _flag_a = 0, _flag_b = 0; 730 uint32_t _itail_tgt = 0; 731 RECOMP_REGS_LOCALS 732 RECOMP_ENTER(0x27016C10u); 733 734 L_27016C10: 735 eax = MEM32(0x27048BB4); /* 0x27016C10: mov eax, dword ptr [0x27048bb4] */ 736 MEM32(eax + 0xC) = 2; /* 0x27016C15: mov dword ptr [eax + 0xc], 2 */ 737 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016C1C: ret */ 738 RECOMP_REGS_OUT(); 739 } 740 741 void sub_27016C20(void) { 742 int _fpu_cmp = 0; 743 uint32_t _cf = 0; 744 int _df = 1; 745 uint32_t _flag_k = FK_NONE; 746 uint32_t _flag_a = 0, _flag_b = 0; 747 uint32_t _itail_tgt = 0; 748 RECOMP_REGS_LOCALS 749 RECOMP_ENTER(0x27016C20u); 750 751 L_27016C20: 752 eax = MEM32(0x27048BB4); /* 0x27016C20: mov eax, dword ptr [0x27048bb4] */ 753 MEM32(eax + 0xC) = 3; /* 0x27016C25: mov dword ptr [eax + 0xc], 3 */ 754 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016C2C: ret */ 755 RECOMP_REGS_OUT(); 756 } 757 758 void sub_27016C30(void) { 759 int _fpu_cmp = 0; 760 uint32_t _cf = 0; 761 int _df = 1; 762 uint32_t _flag_k = FK_NONE; 763 uint32_t _flag_a = 0, _flag_b = 0; 764 uint32_t _itail_tgt = 0; 765 RECOMP_REGS_LOCALS 766 RECOMP_ENTER(0x27016C30u); 767 768 L_27016C30: 769 eax = MEM32(0x27048BB4); /* 0x27016C30: mov eax, dword ptr [0x27048bb4] */ 770 MEM32(eax + 0xC) = 4; /* 0x27016C35: mov dword ptr [eax + 0xc], 4 */ 771 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016C3C: ret */ 772 RECOMP_REGS_OUT(); 773 } 774 775 void sub_27016C40(void) { 776 int _fpu_cmp = 0; 777 uint32_t _cf = 0; 778 int _df = 1; 779 uint32_t _flag_k = FK_NONE; 780 uint32_t _flag_a = 0, _flag_b = 0; 781 uint32_t _itail_tgt = 0; 782 RECOMP_REGS_LOCALS 783 RECOMP_ENTER(0x27016C40u); 784 785 L_27016C40: 786 eax = MEM32(0x27048BB4); /* 0x27016C40: mov eax, dword ptr [0x27048bb4] */ 787 MEM32(eax + 0xC) = 5; /* 0x27016C45: mov dword ptr [eax + 0xc], 5 */ 788 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016C4C: ret */ 789 RECOMP_REGS_OUT(); 790 } 791 792 void sub_27016C50(void) { 793 int _fpu_cmp = 0; 794 uint32_t _cf = 0; 795 int _df = 1; 796 uint32_t _flag_k = FK_NONE; 797 uint32_t _flag_a = 0, _flag_b = 0; 798 uint32_t _itail_tgt = 0; 799 RECOMP_REGS_LOCALS 800 RECOMP_ENTER(0x27016C50u); 801 802 L_27016C50: 803 eax = MEM32(0x27048BB4); /* 0x27016C50: mov eax, dword ptr [0x27048bb4] */ 804 MEM32(eax + 0xC) = 6; /* 0x27016C55: mov dword ptr [eax + 0xc], 6 */ 805 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016C5C: ret */ 806 RECOMP_REGS_OUT(); 807 } 808 809 void sub_27016C60(void) { 810 int _fpu_cmp = 0; 811 uint32_t _cf = 0; 812 int _df = 1; 813 uint32_t _flag_k = FK_NONE; 814 uint32_t _flag_a = 0, _flag_b = 0; 815 uint32_t _itail_tgt = 0; 816 RECOMP_REGS_LOCALS 817 RECOMP_ENTER(0x27016C60u); 818 819 L_27016C60: 820 eax = MEM32(0x27048BB4); /* 0x27016C60: mov eax, dword ptr [0x27048bb4] */ 821 MEM32(eax + 0xC) = 7; /* 0x27016C65: mov dword ptr [eax + 0xc], 7 */ 822 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016C6C: ret */ 823 RECOMP_REGS_OUT(); 824 } 825 826 void sub_27016C70(void) { 827 int _fpu_cmp = 0; 828 uint32_t _cf = 0; 829 int _df = 1; 830 uint32_t _flag_k = FK_NONE; 831 uint32_t _flag_a = 0, _flag_b = 0; 832 uint32_t _itail_tgt = 0; 833 RECOMP_REGS_LOCALS 834 RECOMP_ENTER(0x27016C70u); 835 836 L_27016C70: 837 eax = MEM32(0x27048BB4); /* 0x27016C70: mov eax, dword ptr [0x27048bb4] */ 838 MEM32(eax + 0xC) = 8; /* 0x27016C75: mov dword ptr [eax + 0xc], 8 */ 839 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016C7C: ret */ 840 RECOMP_REGS_OUT(); 841 } 842 843 void sub_27016C80(void) { 844 int _fpu_cmp = 0; 845 uint32_t _cf = 0; 846 int _df = 1; 847 uint32_t _flag_k = FK_NONE; 848 uint32_t _flag_a = 0, _flag_b = 0; 849 uint32_t _itail_tgt = 0; 850 RECOMP_REGS_LOCALS 851 RECOMP_ENTER(0x27016C80u); 852 853 L_27016C80: 854 eax = MEM32(0x27048BB4); /* 0x27016C80: mov eax, dword ptr [0x27048bb4] */ 855 MEM32(eax + 0xC) = 9; /* 0x27016C85: mov dword ptr [eax + 0xc], 9 */ 856 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016C8C: ret */ 857 RECOMP_REGS_OUT(); 858 } 859 860 void sub_27016C90(void) { 861 int _fpu_cmp = 0; 862 uint32_t _cf = 0; 863 int _df = 1; 864 uint32_t _flag_k = FK_NONE; 865 uint32_t _flag_a = 0, _flag_b = 0; 866 uint32_t _itail_tgt = 0; 867 RECOMP_REGS_LOCALS 868 RECOMP_ENTER(0x27016C90u); 869 870 L_27016C90: 871 eax = MEM32(0x27048BB4); /* 0x27016C90: mov eax, dword ptr [0x27048bb4] */ 872 MEM32(eax + 0xC) = 0xAu; /* 0x27016C95: mov dword ptr [eax + 0xc], 0xa */ 873 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016C9C: ret */ 874 RECOMP_REGS_OUT(); 875 } 876 877 void sub_27016CA0(void) { 878 int _fpu_cmp = 0; 879 uint32_t _cf = 0; 880 int _df = 1; 881 uint32_t _flag_k = FK_NONE; 882 uint32_t _flag_a = 0, _flag_b = 0; 883 uint32_t _itail_tgt = 0; 884 RECOMP_REGS_LOCALS 885 RECOMP_ENTER(0x27016CA0u); 886 887 L_27016CA0: 888 eax = MEM32(0x27048BB4); /* 0x27016CA0: mov eax, dword ptr [0x27048bb4] */ 889 MEM32(eax + 0xC) = 0xBu; /* 0x27016CA5: mov dword ptr [eax + 0xc], 0xb */ 890 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016CAC: ret */ 891 RECOMP_REGS_OUT(); 892 } 893 894 void sub_27016CB0(void) { 895 int _fpu_cmp = 0; 896 uint32_t _cf = 0; 897 int _df = 1; 898 uint32_t _flag_k = FK_NONE; 899 uint32_t _flag_a = 0, _flag_b = 0; 900 uint32_t _itail_tgt = 0; 901 RECOMP_REGS_LOCALS 902 RECOMP_ENTER(0x27016CB0u); 903 904 L_27016CB0: 905 eax = MEM32(0x27048BB4); /* 0x27016CB0: mov eax, dword ptr [0x27048bb4] */ 906 MEM32(eax + 0xC) = 0xCu; /* 0x27016CB5: mov dword ptr [eax + 0xc], 0xc */ 907 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016CBC: ret */ 908 RECOMP_REGS_OUT(); 909 } 910 911 void sub_27016CC0(void) { 912 int _fpu_cmp = 0; 913 uint32_t _cf = 0; 914 int _df = 1; 915 uint32_t _flag_k = FK_NONE; 916 uint32_t _flag_a = 0, _flag_b = 0; 917 uint32_t _itail_tgt = 0; 918 RECOMP_REGS_LOCALS 919 RECOMP_ENTER(0x27016CC0u); 920 921 L_27016CC0: 922 eax = MEM32(0x27048BB4); /* 0x27016CC0: mov eax, dword ptr [0x27048bb4] */ 923 MEM32(eax + 0xC) = 0xDu; /* 0x27016CC5: mov dword ptr [eax + 0xc], 0xd */ 924 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016CCC: ret */ 925 RECOMP_REGS_OUT(); 926 } 927 928 void sub_27016CD0(void) { 929 int _fpu_cmp = 0; 930 uint32_t _cf = 0; 931 int _df = 1; 932 uint32_t _flag_k = FK_NONE; 933 uint32_t _flag_a = 0, _flag_b = 0; 934 uint32_t _itail_tgt = 0; 935 RECOMP_REGS_LOCALS 936 RECOMP_ENTER(0x27016CD0u); 937 938 L_27016CD0: 939 ecx = MEM32(0x27048BB4); /* 0x27016CD0: mov ecx, dword ptr [0x27048bb4] */ 940 goto L_27016F10; /* 0x27016CD6: jmp 0x27016f10 */ 941 L_27016F10: 942 PUSH32(esp, ebp); /* 0x27016F10: push ebp */ 943 ebp = esp; /* 0x27016F11: mov ebp, esp */ 944 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 946 esp = esp - 0x10u; /* 0x27016F13: sub esp, 0x10 */ 947 _flag_k = FK_CMP; 948 PUSH32(esp, esi); /* 0x27016F16: push esi */ 949 esi = ecx; /* 0x27016F17: mov esi, ecx */ 950 eax = MEM32(esi + 0x8); /* 0x27016F19: mov eax, dword ptr [esi + 8] */ 951 /* cmp eax, MEM32(esi + 0xC) */ /* 0x27016F1C: cmp eax, dword ptr [esi + 0xc] */ 952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 954 _flag_k = FK_CMP; 955 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016F36; /* 0x27016F1F: je 0x27016f36 */ 956 L_27016F21: 957 eax = eax + eax * 4; /* 0x27016F21: lea eax, [eax + eax*4] */ 958 ecx = MEM32(eax * 4 + 0x270485F0); /* 0x27016F24: mov ecx, dword ptr [eax*4 + 0x270485f0] */ 959 edx = MEM32(ecx); /* 0x27016F2B: mov edx, dword ptr [ecx] */ 960 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x27016F2D: call dword ptr [edx + 0xc] */ 961 RECOMP_FLAGS_IN(); 962 eax = MEM32(esi + 0xC); /* 0x27016F30: mov eax, dword ptr [esi + 0xc] */ 963 MEM32(esi + 0x8) = eax; /* 0x27016F33: mov dword ptr [esi + 8], eax */ 964 L_27016F36: 965 SET_LO8(eax, MEM8(esi + 0x10)); /* 0x27016F36: mov al, byte ptr [esi + 0x10] */ 966 #ifdef __EMSCRIPTEN__ 967 /* Hide the software pointer on mobile without changing native input state. */ 968 if (browser_cursor_hidden()) SET_LO8(eax, 0); 969 #endif 970 /* test LO8(eax), LO8(eax) */ /* 0x27016F39: test al, al */ 971 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 972 _cf = 0; 973 _flag_k = FK_NARROW(FK_TEST, 24); 974 if (TEST_Z(_flag_a, _flag_b)) goto L_2701703C; /* 0x27016F3B: je 0x2701703c */ 975 L_27016F41: 976 eax = MEM32(esi + 0x8); /* 0x27016F41: mov eax, dword ptr [esi + 8] */ 977 ecx = eax + eax * 4; /* 0x27016F44: lea ecx, [eax + eax*4] */ 978 ecx = MEM32(ecx * 4 + 0x270485F0); /* 0x27016F47: mov ecx, dword ptr [ecx*4 + 0x270485f0] */ 979 edx = MEM32(ecx); /* 0x27016F4E: mov edx, dword ptr [ecx] */ 980 #ifndef __EMSCRIPTEN__ 981 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x27016F50: call dword ptr [edx + 8] */ 982 RECOMP_FLAGS_IN(); 983 #endif 984 SET_LO8(eax, MEM8(esi + 0x11)); /* 0x27016F53: mov al, byte ptr [esi + 0x11] */ 985 /* test LO8(eax), LO8(eax) */ /* 0x27016F56: test al, al */ 986 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 987 _cf = 0; 988 _flag_k = FK_NARROW(FK_TEST, 24); 989 if (TEST_Z(_flag_a, _flag_b)) goto L_27016FE5; /* 0x27016F58: je 0x27016fe5 */ 990 L_27016F5E: 991 SET_LO8(ecx, MEM8(0x27048BAC)); /* 0x27016F5E: mov cl, byte ptr [0x27048bac] */ 992 SET_LO8(eax, 1); /* 0x27016F64: mov al, 1 */ 993 /* test LO8(eax), LO8(ecx) */ /* 0x27016F66: test al, cl */ 994 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 995 _cf = 0; 996 _flag_k = FK_NARROW(FK_TEST, 24); 997 PUSH32(esp, edi); /* 0x27016F68: push edi */ 998 edi = MEM32(0x27029278); /* 0x27016F69: mov edi, dword ptr [0x27029278] */ 999 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016F95; /* 0x27016F6F: jne 0x27016f95 */ 1000 L_27016F71: 1001 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 1002 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x27016F71: or cl, al */ 1003 _cf = 0; 1004 _flag_k = FK_NARROW(FK_TEST, 24); 1005 MEM8(0x27048BAC) = (uint8_t)(LO8(ecx)); /* 0x27016F73: mov byte ptr [0x27048bac], cl */ 1006 RECOMP_ICALL(edi); /* 0x27016F79: call edi */ 1007 RECOMP_FLAGS_IN(); 1008 ecx = eax; /* 0x27016F7B: mov ecx, eax */ 1009 RECOMP_ICALL(MEM32(0x2702927C)); /* 0x27016F7D: call dword ptr [0x2702927c] */ 1010 RECOMP_FLAGS_IN(); 1011 MEM32(ebp + (-0x4)) = eax; /* 0x27016F83: mov dword ptr [ebp - 4], eax */ 1012 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x27016F86: fild dword ptr [ebp - 4] */ 1013 _st[0] *= (double)*(float*)ADDR(0x27034464); /* 0x27016F89: fmul dword ptr [0x27034464] */ 1014 { float _v = (float)fp_pop(); *(float*)ADDR(0x27048BA8) = _v; } /* 0x27016F8F: fstp dword ptr [0x27048ba8] */ 1015 L_27016F95: 1016 SET_LO8(ecx, MEM8(0x27048BAC)); /* 0x27016F95: mov cl, byte ptr [0x27048bac] */ 1017 SET_LO8(eax, 2); /* 0x27016F9B: mov al, 2 */ 1018 /* test LO8(eax), LO8(ecx) */ /* 0x27016F9D: test al, cl */ 1019 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 1020 _cf = 0; 1021 _flag_k = FK_NARROW(FK_TEST, 24); 1022 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016FC5; /* 0x27016F9F: jne 0x27016fc5 */ 1023 L_27016FA1: 1024 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 1025 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x27016FA1: or cl, al */ 1026 _cf = 0; 1027 _flag_k = FK_NARROW(FK_TEST, 24); 1028 MEM8(0x27048BAC) = (uint8_t)(LO8(ecx)); /* 0x27016FA3: mov byte ptr [0x27048bac], cl */ 1029 RECOMP_ICALL(edi); /* 0x27016FA9: call edi */ 1030 RECOMP_FLAGS_IN(); 1031 ecx = eax; /* 0x27016FAB: mov ecx, eax */ 1032 RECOMP_ICALL(MEM32(0x27029280)); /* 0x27016FAD: call dword ptr [0x27029280] */ 1033 RECOMP_FLAGS_IN(); 1034 MEM32(ebp + (-0x4)) = eax; /* 0x27016FB3: mov dword ptr [ebp - 4], eax */ 1035 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x27016FB6: fild dword ptr [ebp - 4] */ 1036 _st[0] *= (double)*(float*)ADDR(0x27034460); /* 0x27016FB9: fmul dword ptr [0x27034460] */ 1037 { float _v = (float)fp_pop(); *(float*)ADDR(0x27048BA4) = _v; } /* 0x27016FBF: fstp dword ptr [0x27048ba4] */ 1038 L_27016FC5: 1039 eax = MEM32(esi + 0x8); /* 0x27016FC5: mov eax, dword ptr [esi + 8] */ 1040 PUSH32(esp, 0x27048BA4u); /* 0x27016FC8: push 0x27048ba4 */ 1041 eax = eax + eax * 4; /* 0x27016FCD: lea eax, [eax + eax*4] */ 1042 ecx = MEM32(eax * 4 + 0x270485F0); /* 0x27016FD0: mov ecx, dword ptr [eax*4 + 0x270485f0] */ 1043 PUSH32(esp, 0x27048BA8u); /* 0x27016FD7: push 0x27048ba8 */ 1044 RECOMP_ICALL(MEM32(0x27029218)); /* 0x27016FDC: call dword ptr [0x27029218] */ 1045 RECOMP_FLAGS_IN(); 1046 edi = POP32_VAL(esp); /* 0x27016FE2: pop edi */ 1047 goto L_2701700E; /* 0x27016FE3: jmp 0x2701700e */ 1048 L_27016FE5: 1049 eax = MEM32(esi + 0x8); /* 0x27016FE5: mov eax, dword ptr [esi + 8] */ 1050 ecx = ebp + (-0x4); /* 0x27016FE8: lea ecx, [ebp - 4] */ 1051 PUSH32(esp, ecx); /* 0x27016FEB: push ecx */ 1052 edx = ebp + (-0x8); /* 0x27016FEC: lea edx, [ebp - 8] */ 1053 eax = eax + eax * 4; /* 0x27016FEF: lea eax, [eax + eax*4] */ 1054 ecx = MEM32(eax * 4 + 0x270485F0); /* 0x27016FF2: mov ecx, dword ptr [eax*4 + 0x270485f0] */ 1055 PUSH32(esp, edx); /* 0x27016FF9: push edx */ 1056 MEM32(ebp + (-0x4)) = 0x3F800000u; /* 0x27016FFA: mov dword ptr [ebp - 4], 0x3f800000 */ 1057 MEM32(ebp + (-0x8)) = 0x3F800000u; /* 0x27017001: mov dword ptr [ebp - 8], 0x3f800000 */ 1058 RECOMP_ICALL(MEM32(0x27029218)); /* 0x27017008: call dword ptr [0x27029218] */ 1059 RECOMP_FLAGS_IN(); 1060 L_2701700E: 1061 RECOMP_ICALL(0x27002B60u); /* 0x2701700E: call 0x27002b60 */ /* not lifted */ 1062 RECOMP_FLAGS_IN(); 1063 ecx = MEM32(eax + 0x108); /* 0x27017013: mov ecx, dword ptr [eax + 0x108] */ 1064 MEM32(ebp + (-0x10)) = ecx; /* 0x27017019: mov dword ptr [ebp - 0x10], ecx */ 1065 edx = MEM32(eax + 0x10C); /* 0x2701701C: mov edx, dword ptr [eax + 0x10c] */ 1066 eax = ebp + (-0x10); /* 0x27017022: lea eax, [ebp - 0x10] */ 1067 PUSH32(esp, eax); /* 0x27017025: push eax */ 1068 ecx = esi; /* 0x27017026: mov ecx, esi */ 1069 MEM32(ebp + (-0xC)) = edx; /* 0x27017028: mov dword ptr [ebp - 0xc], edx */ 1070 RECOMP_ICALL(0x27016E80u); /* 0x2701702B: call 0x27016e80 */ /* not lifted */ 1071 RECOMP_FLAGS_IN(); 1072 #ifdef __EMSCRIPTEN__ 1073 browser_cursor_update(esi); 1074 #endif 1075 MEM32(esi + 0xC) = 0; /* 0x27017030: mov dword ptr [esi + 0xc], 0 */ 1076 esi = POP32_VAL(esp); /* 0x27017037: pop esi */ 1077 esp = ebp; /* 0x27017038: mov esp, ebp */ 1078 ebp = POP32_VAL(esp); /* 0x2701703A: pop ebp */ 1079 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701703B: ret */ 1080 L_2701703C: 1081 #ifdef __EMSCRIPTEN__ 1082 browser_cursor_update(esi); 1083 #endif 1084 esi = MEM32(esi + 0x8); /* 0x2701703C: mov esi, dword ptr [esi + 8] */ 1085 ecx = esi + esi * 4; /* 0x2701703F: lea ecx, [esi + esi*4] */ 1086 ecx = MEM32(ecx * 4 + 0x270485F0); /* 0x27017042: mov ecx, dword ptr [ecx*4 + 0x270485f0] */ 1087 edx = MEM32(ecx); /* 0x27017049: mov edx, dword ptr [ecx] */ 1088 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2701704B: call dword ptr [edx + 0xc] */ 1089 RECOMP_FLAGS_IN(); 1090 esi = POP32_VAL(esp); /* 0x2701704E: pop esi */ 1091 esp = ebp; /* 0x2701704F: mov esp, ebp */ 1092 ebp = POP32_VAL(esp); /* 0x27017051: pop ebp */ 1093 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017052: ret */ 1094 RECOMP_REGS_OUT(); 1095 } 1096 1097 void sub_27016CE0(void) { 1098 int _fpu_cmp = 0; 1099 uint32_t _cf = 0; 1100 int _df = 1; 1101 uint32_t _flag_k = FK_NONE; 1102 uint32_t _flag_a = 0, _flag_b = 0; 1103 uint32_t _itail_tgt = 0; 1104 RECOMP_REGS_LOCALS 1105 RECOMP_ENTER(0x27016CE0u); 1106 1107 L_27016CE0: 1108 eax = MEM32(0x27048BB4); /* 0x27016CE0: mov eax, dword ptr [0x27048bb4] */ 1109 MEM8(eax + 0x10) = (uint8_t)(0); /* 0x27016CE5: mov byte ptr [eax + 0x10], 0 */ 1110 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016CE9: ret */ 1111 RECOMP_REGS_OUT(); 1112 } 1113 1114 void sub_27016CF0(void) { 1115 int _fpu_cmp = 0; 1116 uint32_t _cf = 0; 1117 int _df = 1; 1118 uint32_t _flag_k = FK_NONE; 1119 uint32_t _flag_a = 0, _flag_b = 0; 1120 uint32_t _itail_tgt = 0; 1121 RECOMP_REGS_LOCALS 1122 RECOMP_ENTER(0x27016CF0u); 1123 1124 L_27016CF0: 1125 eax = MEM32(0x27048BB4); /* 0x27016CF0: mov eax, dword ptr [0x27048bb4] */ 1126 MEM8(eax + 0x10) = (uint8_t)(1); /* 0x27016CF5: mov byte ptr [eax + 0x10], 1 */ 1127 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016CF9: ret */ 1128 RECOMP_REGS_OUT(); 1129 } 1130 1131 void sub_27016D00(void) { 1132 int _fpu_cmp = 0; 1133 uint32_t _cf = 0; 1134 int _df = 1; 1135 uint32_t _flag_k = FK_NONE; 1136 uint32_t _flag_a = 0, _flag_b = 0; 1137 uint32_t _itail_tgt = 0; 1138 RECOMP_REGS_LOCALS 1139 RECOMP_ENTER(0x27016D00u); 1140 1141 L_27016D00: 1142 PUSH32(esp, ebp); /* 0x27016D00: push ebp */ 1143 ebp = esp; /* 0x27016D01: mov ebp, esp */ 1144 PUSH32(esp, ecx); /* 0x27016D03: push ecx */ 1145 eax = MEM32(0x27048BB4); /* 0x27016D04: mov eax, dword ptr [0x27048bb4] */ 1146 /* test eax, eax */ /* 0x27016D09: test eax, eax */ 1147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1148 _cf = 0; 1149 _flag_k = FK_TEST; 1150 if (TEST_Z(_flag_a, _flag_b)) goto L_27016D33; /* 0x27016D0B: je 0x27016d33 */ 1151 L_27016D0D: 1152 eax = ebp + (-0x4); /* 0x27016D0D: lea eax, [ebp - 4] */ 1153 PUSH32(esp, eax); /* 0x27016D10: push eax */ 1154 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x27016D11: call dword ptr [0x270291d0] */ 1155 RECOMP_FLAGS_IN(); 1156 ecx = eax; /* 0x27016D17: mov ecx, eax */ 1157 RECOMP_ICALL(MEM32(0x270291C0)); /* 0x27016D19: call dword ptr [0x270291c0] */ 1158 RECOMP_FLAGS_IN(); 1159 ecx = MEM32(ebp + (-0x4)); /* 0x27016D1F: mov ecx, dword ptr [ebp - 4] */ 1160 /* test ecx, ecx */ /* 0x27016D22: test ecx, ecx */ 1161 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1162 _cf = 0; 1163 _flag_k = FK_TEST; 1164 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x27016D24: setne cl */ 1165 PUSH32(esp, ecx); /* 0x27016D27: push ecx */ 1166 ecx = MEM32(0x27048BB4); /* 0x27016D28: mov ecx, dword ptr [0x27048bb4] */ 1167 RECOMP_ICALL(0x27017060u); /* 0x27016D2E: call 0x27017060 */ /* not lifted */ 1168 RECOMP_FLAGS_IN(); 1169 L_27016D33: 1170 esp = ebp; /* 0x27016D33: mov esp, ebp */ 1171 ebp = POP32_VAL(esp); /* 0x27016D35: pop ebp */ 1172 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016D36: ret */ 1173 RECOMP_REGS_OUT(); 1174 } 1175 1176 void sub_27016D40(void) { 1177 int _fpu_cmp = 0; 1178 uint32_t _cf = 0; 1179 int _df = 1; 1180 uint32_t _flag_k = FK_NONE; 1181 uint32_t _flag_a = 0, _flag_b = 0; 1182 uint32_t _itail_tgt = 0; 1183 RECOMP_REGS_LOCALS 1184 RECOMP_ENTER(0x27016D40u); 1185 1186 L_27016D40: 1187 PUSH32(esp, ebp); /* 0x27016D40: push ebp */ 1188 ebp = esp; /* 0x27016D41: mov ebp, esp */ 1189 PUSH32(esp, 0xFFFFFFFFu); /* 0x27016D43: push -1 */ 1190 PUSH32(esp, 0x27027C0Bu); /* 0x27016D45: push 0x27027c0b */ 1191 eax = MEM32(FS_BASE + (0)); /* 0x27016D4A: mov eax, dword ptr fs:[0] */ 1192 PUSH32(esp, eax); /* 0x27016D50: push eax */ 1193 MEM32(FS_BASE + (0)) = esp; /* 0x27016D51: mov dword ptr fs:[0], esp */ 1194 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1196 esp = esp - 0xCu; /* 0x27016D58: sub esp, 0xc */ 1197 _flag_k = FK_CMP; 1198 PUSH32(esp, ebx); /* 0x27016D5B: push ebx */ 1199 ebx = ecx; /* 0x27016D5C: mov ebx, ecx */ 1200 PUSH32(esp, esi); /* 0x27016D5E: push esi */ 1201 eax = 1; /* 0x27016D5F: mov eax, 1 */ 1202 PUSH32(esp, edi); /* 0x27016D64: push edi */ 1203 MEM32(ebx + 0x8) = eax; /* 0x27016D65: mov dword ptr [ebx + 8], eax */ 1204 MEM32(ebx + 0xC) = 0; /* 0x27016D68: mov dword ptr [ebx + 0xc], 0 */ 1205 MEM8(ebx + 0x10) = (uint8_t)(LO8(eax)); /* 0x27016D6F: mov byte ptr [ebx + 0x10], al */ 1206 MEM8(ebx + 0x11) = (uint8_t)(0); /* 0x27016D72: mov byte ptr [ebx + 0x11], 0 */ 1207 MEM32(ebx) = 0x1F40u; /* 0x27016D76: mov dword ptr [ebx], 0x1f40 */ 1208 MEM32(ebx + 0x4) = 0x1F40u; /* 0x27016D7C: mov dword ptr [ebx + 4], 0x1f40 */ 1209 edi = 0x270485F0u; /* 0x27016D83: mov edi, 0x270485f0 */ 1210 L_27016D88: 1211 PUSH32(esp, 0xD8u); /* 0x27016D88: push 0xd8 */ 1212 RECOMP_ICALL(0x27026EA4u); /* 0x27016D8D: call 0x27026ea4 */ /* not lifted */ 1213 RECOMP_FLAGS_IN(); 1214 esi = eax; /* 0x27016D92: mov esi, eax */ 1215 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1216 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1217 esp = esp + 4; /* 0x27016D94: add esp, 4 */ 1218 _flag_k = FK_ADD; 1219 MEM32(ebp + (-0x18)) = esi; /* 0x27016D97: mov dword ptr [ebp - 0x18], esi */ 1220 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1221 ecx = 0; /* 0x27016D9A: xor ecx, ecx */ 1222 _cf = 0; 1223 _flag_k = FK_TEST; 1224 /* cmp esi, ecx */ /* 0x27016D9C: cmp esi, ecx */ 1225 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 1226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1227 _flag_k = FK_CMP; 1228 MEM32(ebp + (-0x4)) = ecx; /* 0x27016D9E: mov dword ptr [ebp - 4], ecx */ 1229 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016DE5; /* 0x27016DA1: je 0x27016de5 */ 1230 L_27016DA3: 1231 eax = ebp + (-0x10); /* 0x27016DA3: lea eax, [ebp - 0x10] */ 1232 PUSH32(esp, eax); /* 0x27016DA6: push eax */ 1233 eax = MEM32(edi + (-0x4)); /* 0x27016DA7: mov eax, dword ptr [edi - 4] */ 1234 edx = ebp + (-0x14); /* 0x27016DAA: lea edx, [ebp - 0x14] */ 1235 PUSH32(esp, edx); /* 0x27016DAD: push edx */ 1236 PUSH32(esp, ecx); /* 0x27016DAE: push ecx */ 1237 PUSH32(esp, 0x7D00u); /* 0x27016DAF: push 0x7d00 */ 1238 PUSH32(esp, 2); /* 0x27016DB4: push 2 */ 1239 PUSH32(esp, eax); /* 0x27016DB6: push eax */ 1240 MEM32(ebp + (-0x10)) = 0x3F800000u; /* 0x27016DB7: mov dword ptr [ebp - 0x10], 0x3f800000 */ 1241 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x27016DBE: mov dword ptr [ebp - 0x14], 0x3f800000 */ 1242 RECOMP_ICALL(MEM32(0x2702939C)); /* 0x27016DC5: call dword ptr [0x2702939c] */ 1243 RECOMP_FLAGS_IN(); 1244 ecx = eax; /* 0x27016DCB: mov ecx, eax */ 1245 RECOMP_ICALL(MEM32(0x270293A4)); /* 0x27016DCD: call dword ptr [0x270293a4] */ 1246 RECOMP_FLAGS_IN(); 1247 PUSH32(esp, eax); /* 0x27016DD3: push eax */ 1248 PUSH32(esp, ebx); /* 0x27016DD4: push ebx */ 1249 ecx = esi; /* 0x27016DD5: mov ecx, esi */ 1250 RECOMP_ICALL(MEM32(0x27029208)); /* 0x27016DD7: call dword ptr [0x27029208] */ 1251 RECOMP_FLAGS_IN(); 1252 MEM32(esi) = 0x27034304u; /* 0x27016DDD: mov dword ptr [esi], 0x27034304 */ 1253 ecx = esi; /* 0x27016DE3: mov ecx, esi */ 1254 L_27016DE5: 1255 MEM32(edi) = ecx; /* 0x27016DE5: mov dword ptr [edi], ecx */ 1256 edx = MEM32(ecx); /* 0x27016DE7: mov edx, dword ptr [ecx] */ 1257 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27016DE9: mov dword ptr [ebp - 4], 0xffffffff */ 1258 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x27016DF0: call dword ptr [edx + 0xc] */ 1259 RECOMP_FLAGS_IN(); 1260 eax = MEM32(edi + (-0x8)); /* 0x27016DF3: mov eax, dword ptr [edi - 8] */ 1261 ecx = MEM32(edi); /* 0x27016DF6: mov ecx, dword ptr [edi] */ 1262 PUSH32(esp, eax); /* 0x27016DF8: push eax */ 1263 RECOMP_ICALL(MEM32(0x27029220)); /* 0x27016DF9: call dword ptr [0x27029220] */ 1264 RECOMP_FLAGS_IN(); 1265 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 1266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1267 edi = edi + 0x14u; /* 0x27016DFF: add edi, 0x14 */ 1268 _flag_k = FK_ADD; 1269 /* cmp edi, 0x27048708u */ /* 0x27016E02: cmp edi, 0x27048708 */ 1270 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x27048708u); 1271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1272 _flag_k = FK_CMP; 1273 RECOMP_BACKEDGE(); 1274 if (CMP_L(_flag_a, _flag_b)) goto L_27016D88; /* 0x27016E08: jl 0x27016d88 */ 1275 L_27016E0E: 1276 ecx = MEM32(ebp + (-0xC)); /* 0x27016E0E: mov ecx, dword ptr [ebp - 0xc] */ 1277 edi = POP32_VAL(esp); /* 0x27016E11: pop edi */ 1278 esi = POP32_VAL(esp); /* 0x27016E12: pop esi */ 1279 eax = ebx; /* 0x27016E13: mov eax, ebx */ 1280 ebx = POP32_VAL(esp); /* 0x27016E15: pop ebx */ 1281 MEM32(FS_BASE + (0)) = ecx; /* 0x27016E16: mov dword ptr fs:[0], ecx */ 1282 esp = ebp; /* 0x27016E1D: mov esp, ebp */ 1283 ebp = POP32_VAL(esp); /* 0x27016E1F: pop ebp */ 1284 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016E20: ret */ 1285 RECOMP_REGS_OUT(); 1286 } 1287 1288 void sub_27016E30(void) { 1289 int _fpu_cmp = 0; 1290 uint32_t _cf = 0; 1291 int _df = 1; 1292 uint32_t _flag_k = FK_NONE; 1293 uint32_t _flag_a = 0, _flag_b = 0; 1294 uint32_t _itail_tgt = 0; 1295 RECOMP_REGS_LOCALS 1296 RECOMP_ENTER(0x27016E30u); 1297 1298 L_27016E30: 1299 RECOMP_ICALL(MEM32(0x27029398)); /* 0x27016E30: call dword ptr [0x27029398] */ 1300 RECOMP_FLAGS_IN(); 1301 /* test eax, eax */ /* 0x27016E36: test eax, eax */ 1302 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1303 _cf = 0; 1304 _flag_k = FK_TEST; 1305 if (TEST_Z(_flag_a, _flag_b)) goto L_27016E74; /* 0x27016E38: je 0x27016e74 */ 1306 L_27016E3A: 1307 PUSH32(esp, ebx); /* 0x27016E3A: push ebx */ 1308 ebx = MEM32(0x2702939C); /* 0x27016E3B: mov ebx, dword ptr [0x2702939c] */ 1309 PUSH32(esp, esi); /* 0x27016E41: push esi */ 1310 PUSH32(esp, edi); /* 0x27016E42: push edi */ 1311 edi = MEM32(0x27029388); /* 0x27016E43: mov edi, dword ptr [0x27029388] */ 1312 esi = 0x270485F0u; /* 0x27016E49: mov esi, 0x270485f0 */ 1313 L_27016E4E: 1314 eax = MEM32(esi); /* 0x27016E4E: mov eax, dword ptr [esi] */ 1315 eax = MEM32(eax + 0x28); /* 0x27016E50: mov eax, dword ptr [eax + 0x28] */ 1316 PUSH32(esp, eax); /* 0x27016E53: push eax */ 1317 RECOMP_ICALL(ebx); /* 0x27016E54: call ebx */ 1318 RECOMP_FLAGS_IN(); 1319 ecx = eax; /* 0x27016E56: mov ecx, eax */ 1320 RECOMP_ICALL(edi); /* 0x27016E58: call edi */ 1321 RECOMP_FLAGS_IN(); 1322 ecx = MEM32(esi); /* 0x27016E5A: mov ecx, dword ptr [esi] */ 1323 /* test ecx, ecx */ /* 0x27016E5C: test ecx, ecx */ 1324 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1325 _cf = 0; 1326 _flag_k = FK_TEST; 1327 if (TEST_Z(_flag_a, _flag_b)) goto L_27016E66; /* 0x27016E5E: je 0x27016e66 */ 1328 L_27016E60: 1329 edx = MEM32(ecx); /* 0x27016E60: mov edx, dword ptr [ecx] */ 1330 PUSH32(esp, 1); /* 0x27016E62: push 1 */ 1331 RECOMP_ICALL(MEM32(edx)); /* 0x27016E64: call dword ptr [edx] */ 1332 RECOMP_FLAGS_IN(); 1333 L_27016E66: 1334 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 1335 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1336 esi = esi + 0x14u; /* 0x27016E66: add esi, 0x14 */ 1337 _flag_k = FK_ADD; 1338 /* cmp esi, 0x27048708u */ /* 0x27016E69: cmp esi, 0x27048708 */ 1339 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x27048708u); 1340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1341 _flag_k = FK_CMP; 1342 RECOMP_BACKEDGE(); 1343 if (CMP_L(_flag_a, _flag_b)) goto L_27016E4E; /* 0x27016E6F: jl 0x27016e4e */ 1344 L_27016E71: 1345 edi = POP32_VAL(esp); /* 0x27016E71: pop edi */ 1346 esi = POP32_VAL(esp); /* 0x27016E72: pop esi */ 1347 ebx = POP32_VAL(esp); /* 0x27016E73: pop ebx */ 1348 L_27016E74: 1349 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27016E74: ret */ 1350 RECOMP_REGS_OUT(); 1351 } 1352 1353 void sub_27016E80(void) { 1354 int _fpu_cmp = 0; 1355 uint32_t _cf = 0; 1356 int _df = 1; 1357 uint32_t _flag_k = FK_NONE; 1358 uint32_t _flag_a = 0, _flag_b = 0; 1359 uint32_t _itail_tgt = 0; 1360 RECOMP_REGS_LOCALS 1361 RECOMP_ENTER(0x27016E80u); 1362 1363 L_27016E80: 1364 PUSH32(esp, ebp); /* 0x27016E80: push ebp */ 1365 ebp = esp; /* 0x27016E81: mov ebp, esp */ 1366 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1368 esp = esp - 8; /* 0x27016E83: sub esp, 8 */ 1369 _flag_k = FK_CMP; 1370 PUSH32(esp, esi); /* 0x27016E86: push esi */ 1371 PUSH32(esp, edi); /* 0x27016E87: push edi */ 1372 edi = MEM32(ebp + 0x8); /* 0x27016E88: mov edi, dword ptr [ebp + 8] */ 1373 /* cmp MEM32(edi), 0 */ /* 0x27016E8B: cmp dword ptr [edi], 0 */ 1374 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(0); 1375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1376 _flag_k = FK_CMP; 1377 esi = ecx; /* 0x27016E8E: mov esi, ecx */ 1378 if (CMP_L(_flag_a, _flag_b)) goto L_27016EF1; /* 0x27016E90: jl 0x27016ef1 */ 1379 L_27016E92: 1380 eax = MEM32(edi + 0x4); /* 0x27016E92: mov eax, dword ptr [edi + 4] */ 1381 /* test eax, eax */ /* 0x27016E95: test eax, eax */ 1382 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1383 _cf = 0; 1384 _flag_k = FK_TEST; 1385 if (TEST_S(_flag_a, _flag_b)) goto L_27016EF1; /* 0x27016E97: jl 0x27016ef1 */ 1386 L_27016E99: 1387 SET_LO8(eax, MEM8(esi + 0x10)); /* 0x27016E99: mov al, byte ptr [esi + 0x10] */ 1388 /* test LO8(eax), LO8(eax) */ /* 0x27016E9C: test al, al */ 1389 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1390 _cf = 0; 1391 _flag_k = FK_NARROW(FK_TEST, 24); 1392 if (TEST_Z(_flag_a, _flag_b)) goto L_27016EB2; /* 0x27016E9E: je 0x27016eb2 */ 1393 L_27016EA0: 1394 eax = MEM32(esi + 0x8); /* 0x27016EA0: mov eax, dword ptr [esi + 8] */ 1395 eax = eax + eax * 4; /* 0x27016EA3: lea eax, [eax + eax*4] */ 1396 ecx = MEM32(eax * 4 + 0x270485F0); /* 0x27016EA6: mov ecx, dword ptr [eax*4 + 0x270485f0] */ 1397 edx = MEM32(ecx); /* 0x27016EAD: mov edx, dword ptr [ecx] */ 1398 #ifndef __EMSCRIPTEN__ 1399 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x27016EAF: call dword ptr [edx + 8] */ 1400 RECOMP_FLAGS_IN(); 1401 #endif 1402 L_27016EB2: 1403 eax = MEM32(edi); /* 0x27016EB2: mov eax, dword ptr [edi] */ 1404 MEM32(esi) = eax; /* 0x27016EB4: mov dword ptr [esi], eax */ 1405 eax = MEM32(esi + 0x8); /* 0x27016EB6: mov eax, dword ptr [esi + 8] */ 1406 ecx = MEM32(edi + 0x4); /* 0x27016EB9: mov ecx, dword ptr [edi + 4] */ 1407 MEM32(esi + 0x4) = ecx; /* 0x27016EBC: mov dword ptr [esi + 4], ecx */ 1408 edx = MEM32(esi); /* 0x27016EBF: mov edx, dword ptr [esi] */ 1409 eax = eax + eax * 4; /* 0x27016EC1: lea eax, [eax + eax*4] */ 1410 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x27016EC4: shl eax, 2 */ 1411 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1412 eax = eax << 2u; /* 0x27016EC4: shl eax, 2 */ 1413 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x270485E0)); 1414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1415 edx = edx - MEM32(eax + 0x270485E0); /* 0x27016EC7: sub edx, dword ptr [eax + 0x270485e0] */ 1416 _flag_k = FK_CMP; 1417 MEM32(ebp + (-0x8)) = edx; /* 0x27016ECD: mov dword ptr [ebp - 8], edx */ 1418 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x270485E4)); 1419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1420 ecx = ecx - MEM32(eax + 0x270485E4); /* 0x27016ED0: sub ecx, dword ptr [eax + 0x270485e4] */ 1421 _flag_k = FK_CMP; 1422 edx = ebp + (-0x8); /* 0x27016ED6: lea edx, [ebp - 8] */ 1423 MEM32(ebp + (-0x4)) = ecx; /* 0x27016ED9: mov dword ptr [ebp - 4], ecx */ 1424 ecx = MEM32(eax + 0x270485F0); /* 0x27016EDC: mov ecx, dword ptr [eax + 0x270485f0] */ 1425 PUSH32(esp, edx); /* 0x27016EE2: push edx */ 1426 RECOMP_ICALL(MEM32(0x27029214)); /* 0x27016EE3: call dword ptr [0x27029214] */ 1427 RECOMP_FLAGS_IN(); 1428 edi = POP32_VAL(esp); /* 0x27016EE9: pop edi */ 1429 esi = POP32_VAL(esp); /* 0x27016EEA: pop esi */ 1430 esp = ebp; /* 0x27016EEB: mov esp, ebp */ 1431 ebp = POP32_VAL(esp); /* 0x27016EED: pop ebp */ 1432 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27016EEE: ret 4 */ 1433 L_27016EF1: 1434 esi = MEM32(esi + 0x8); /* 0x27016EF1: mov esi, dword ptr [esi + 8] */ 1435 eax = esi + esi * 4; /* 0x27016EF4: lea eax, [esi + esi*4] */ 1436 ecx = MEM32(eax * 4 + 0x270485F0); /* 0x27016EF7: mov ecx, dword ptr [eax*4 + 0x270485f0] */ 1437 edx = MEM32(ecx); /* 0x27016EFE: mov edx, dword ptr [ecx] */ 1438 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x27016F00: call dword ptr [edx + 0xc] */ 1439 RECOMP_FLAGS_IN(); 1440 edi = POP32_VAL(esp); /* 0x27016F03: pop edi */ 1441 esi = POP32_VAL(esp); /* 0x27016F04: pop esi */ 1442 esp = ebp; /* 0x27016F05: mov esp, ebp */ 1443 ebp = POP32_VAL(esp); /* 0x27016F07: pop ebp */ 1444 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27016F08: ret 4 */ 1445 RECOMP_REGS_OUT(); 1446 } 1447 1448 void sub_27016F10(void) { 1449 int _fpu_cmp = 0; 1450 uint32_t _cf = 0; 1451 int _df = 1; 1452 uint32_t _flag_k = FK_NONE; 1453 uint32_t _flag_a = 0, _flag_b = 0; 1454 uint32_t _itail_tgt = 0; 1455 RECOMP_REGS_LOCALS 1456 RECOMP_ENTER(0x27016F10u); 1457 1458 L_27016F10: 1459 PUSH32(esp, ebp); /* 0x27016F10: push ebp */ 1460 ebp = esp; /* 0x27016F11: mov ebp, esp */ 1461 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1463 esp = esp - 0x10u; /* 0x27016F13: sub esp, 0x10 */ 1464 _flag_k = FK_CMP; 1465 PUSH32(esp, esi); /* 0x27016F16: push esi */ 1466 esi = ecx; /* 0x27016F17: mov esi, ecx */ 1467 eax = MEM32(esi + 0x8); /* 0x27016F19: mov eax, dword ptr [esi + 8] */ 1468 /* cmp eax, MEM32(esi + 0xC) */ /* 0x27016F1C: cmp eax, dword ptr [esi + 0xc] */ 1469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 1470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1471 _flag_k = FK_CMP; 1472 if (CMP_EQ(_flag_a, _flag_b)) goto L_27016F36; /* 0x27016F1F: je 0x27016f36 */ 1473 L_27016F21: 1474 eax = eax + eax * 4; /* 0x27016F21: lea eax, [eax + eax*4] */ 1475 ecx = MEM32(eax * 4 + 0x270485F0); /* 0x27016F24: mov ecx, dword ptr [eax*4 + 0x270485f0] */ 1476 edx = MEM32(ecx); /* 0x27016F2B: mov edx, dword ptr [ecx] */ 1477 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x27016F2D: call dword ptr [edx + 0xc] */ 1478 RECOMP_FLAGS_IN(); 1479 eax = MEM32(esi + 0xC); /* 0x27016F30: mov eax, dword ptr [esi + 0xc] */ 1480 MEM32(esi + 0x8) = eax; /* 0x27016F33: mov dword ptr [esi + 8], eax */ 1481 L_27016F36: 1482 SET_LO8(eax, MEM8(esi + 0x10)); /* 0x27016F36: mov al, byte ptr [esi + 0x10] */ 1483 #ifdef __EMSCRIPTEN__ 1484 /* Hide the software pointer on mobile without changing native input state. */ 1485 if (browser_cursor_hidden()) SET_LO8(eax, 0); 1486 #endif 1487 /* test LO8(eax), LO8(eax) */ /* 0x27016F39: test al, al */ 1488 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1489 _cf = 0; 1490 _flag_k = FK_NARROW(FK_TEST, 24); 1491 if (TEST_Z(_flag_a, _flag_b)) goto L_2701703C; /* 0x27016F3B: je 0x2701703c */ 1492 L_27016F41: 1493 eax = MEM32(esi + 0x8); /* 0x27016F41: mov eax, dword ptr [esi + 8] */ 1494 ecx = eax + eax * 4; /* 0x27016F44: lea ecx, [eax + eax*4] */ 1495 ecx = MEM32(ecx * 4 + 0x270485F0); /* 0x27016F47: mov ecx, dword ptr [ecx*4 + 0x270485f0] */ 1496 edx = MEM32(ecx); /* 0x27016F4E: mov edx, dword ptr [ecx] */ 1497 #ifndef __EMSCRIPTEN__ 1498 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x27016F50: call dword ptr [edx + 8] */ 1499 RECOMP_FLAGS_IN(); 1500 #endif 1501 SET_LO8(eax, MEM8(esi + 0x11)); /* 0x27016F53: mov al, byte ptr [esi + 0x11] */ 1502 /* test LO8(eax), LO8(eax) */ /* 0x27016F56: test al, al */ 1503 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1504 _cf = 0; 1505 _flag_k = FK_NARROW(FK_TEST, 24); 1506 if (TEST_Z(_flag_a, _flag_b)) goto L_27016FE5; /* 0x27016F58: je 0x27016fe5 */ 1507 L_27016F5E: 1508 SET_LO8(ecx, MEM8(0x27048BAC)); /* 0x27016F5E: mov cl, byte ptr [0x27048bac] */ 1509 SET_LO8(eax, 1); /* 0x27016F64: mov al, 1 */ 1510 /* test LO8(eax), LO8(ecx) */ /* 0x27016F66: test al, cl */ 1511 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 1512 _cf = 0; 1513 _flag_k = FK_NARROW(FK_TEST, 24); 1514 PUSH32(esp, edi); /* 0x27016F68: push edi */ 1515 edi = MEM32(0x27029278); /* 0x27016F69: mov edi, dword ptr [0x27029278] */ 1516 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016F95; /* 0x27016F6F: jne 0x27016f95 */ 1517 L_27016F71: 1518 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 1519 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x27016F71: or cl, al */ 1520 _cf = 0; 1521 _flag_k = FK_NARROW(FK_TEST, 24); 1522 MEM8(0x27048BAC) = (uint8_t)(LO8(ecx)); /* 0x27016F73: mov byte ptr [0x27048bac], cl */ 1523 RECOMP_ICALL(edi); /* 0x27016F79: call edi */ 1524 RECOMP_FLAGS_IN(); 1525 ecx = eax; /* 0x27016F7B: mov ecx, eax */ 1526 RECOMP_ICALL(MEM32(0x2702927C)); /* 0x27016F7D: call dword ptr [0x2702927c] */ 1527 RECOMP_FLAGS_IN(); 1528 MEM32(ebp + (-0x4)) = eax; /* 0x27016F83: mov dword ptr [ebp - 4], eax */ 1529 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x27016F86: fild dword ptr [ebp - 4] */ 1530 _st[0] *= (double)*(float*)ADDR(0x27034464); /* 0x27016F89: fmul dword ptr [0x27034464] */ 1531 { float _v = (float)fp_pop(); *(float*)ADDR(0x27048BA8) = _v; } /* 0x27016F8F: fstp dword ptr [0x27048ba8] */ 1532 L_27016F95: 1533 SET_LO8(ecx, MEM8(0x27048BAC)); /* 0x27016F95: mov cl, byte ptr [0x27048bac] */ 1534 SET_LO8(eax, 2); /* 0x27016F9B: mov al, 2 */ 1535 /* test LO8(eax), LO8(ecx) */ /* 0x27016F9D: test al, cl */ 1536 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 1537 _cf = 0; 1538 _flag_k = FK_NARROW(FK_TEST, 24); 1539 if (TEST_NZ(_flag_a, _flag_b)) goto L_27016FC5; /* 0x27016F9F: jne 0x27016fc5 */ 1540 L_27016FA1: 1541 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 1542 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x27016FA1: or cl, al */ 1543 _cf = 0; 1544 _flag_k = FK_NARROW(FK_TEST, 24); 1545 MEM8(0x27048BAC) = (uint8_t)(LO8(ecx)); /* 0x27016FA3: mov byte ptr [0x27048bac], cl */ 1546 RECOMP_ICALL(edi); /* 0x27016FA9: call edi */ 1547 RECOMP_FLAGS_IN(); 1548 ecx = eax; /* 0x27016FAB: mov ecx, eax */ 1549 RECOMP_ICALL(MEM32(0x27029280)); /* 0x27016FAD: call dword ptr [0x27029280] */ 1550 RECOMP_FLAGS_IN(); 1551 MEM32(ebp + (-0x4)) = eax; /* 0x27016FB3: mov dword ptr [ebp - 4], eax */ 1552 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x27016FB6: fild dword ptr [ebp - 4] */ 1553 _st[0] *= (double)*(float*)ADDR(0x27034460); /* 0x27016FB9: fmul dword ptr [0x27034460] */ 1554 { float _v = (float)fp_pop(); *(float*)ADDR(0x27048BA4) = _v; } /* 0x27016FBF: fstp dword ptr [0x27048ba4] */ 1555 L_27016FC5: 1556 eax = MEM32(esi + 0x8); /* 0x27016FC5: mov eax, dword ptr [esi + 8] */ 1557 PUSH32(esp, 0x27048BA4u); /* 0x27016FC8: push 0x27048ba4 */ 1558 eax = eax + eax * 4; /* 0x27016FCD: lea eax, [eax + eax*4] */ 1559 ecx = MEM32(eax * 4 + 0x270485F0); /* 0x27016FD0: mov ecx, dword ptr [eax*4 + 0x270485f0] */ 1560 PUSH32(esp, 0x27048BA8u); /* 0x27016FD7: push 0x27048ba8 */ 1561 RECOMP_ICALL(MEM32(0x27029218)); /* 0x27016FDC: call dword ptr [0x27029218] */ 1562 RECOMP_FLAGS_IN(); 1563 edi = POP32_VAL(esp); /* 0x27016FE2: pop edi */ 1564 goto L_2701700E; /* 0x27016FE3: jmp 0x2701700e */ 1565 L_27016FE5: 1566 eax = MEM32(esi + 0x8); /* 0x27016FE5: mov eax, dword ptr [esi + 8] */ 1567 ecx = ebp + (-0x4); /* 0x27016FE8: lea ecx, [ebp - 4] */ 1568 PUSH32(esp, ecx); /* 0x27016FEB: push ecx */ 1569 edx = ebp + (-0x8); /* 0x27016FEC: lea edx, [ebp - 8] */ 1570 eax = eax + eax * 4; /* 0x27016FEF: lea eax, [eax + eax*4] */ 1571 ecx = MEM32(eax * 4 + 0x270485F0); /* 0x27016FF2: mov ecx, dword ptr [eax*4 + 0x270485f0] */ 1572 PUSH32(esp, edx); /* 0x27016FF9: push edx */ 1573 MEM32(ebp + (-0x4)) = 0x3F800000u; /* 0x27016FFA: mov dword ptr [ebp - 4], 0x3f800000 */ 1574 MEM32(ebp + (-0x8)) = 0x3F800000u; /* 0x27017001: mov dword ptr [ebp - 8], 0x3f800000 */ 1575 RECOMP_ICALL(MEM32(0x27029218)); /* 0x27017008: call dword ptr [0x27029218] */ 1576 RECOMP_FLAGS_IN(); 1577 L_2701700E: 1578 RECOMP_ICALL(0x27002B60u); /* 0x2701700E: call 0x27002b60 */ /* not lifted */ 1579 RECOMP_FLAGS_IN(); 1580 ecx = MEM32(eax + 0x108); /* 0x27017013: mov ecx, dword ptr [eax + 0x108] */ 1581 MEM32(ebp + (-0x10)) = ecx; /* 0x27017019: mov dword ptr [ebp - 0x10], ecx */ 1582 edx = MEM32(eax + 0x10C); /* 0x2701701C: mov edx, dword ptr [eax + 0x10c] */ 1583 eax = ebp + (-0x10); /* 0x27017022: lea eax, [ebp - 0x10] */ 1584 PUSH32(esp, eax); /* 0x27017025: push eax */ 1585 ecx = esi; /* 0x27017026: mov ecx, esi */ 1586 MEM32(ebp + (-0xC)) = edx; /* 0x27017028: mov dword ptr [ebp - 0xc], edx */ 1587 RECOMP_ICALL(0x27016E80u); /* 0x2701702B: call 0x27016e80 */ /* not lifted */ 1588 RECOMP_FLAGS_IN(); 1589 #ifdef __EMSCRIPTEN__ 1590 browser_cursor_update(esi); 1591 #endif 1592 MEM32(esi + 0xC) = 0; /* 0x27017030: mov dword ptr [esi + 0xc], 0 */ 1593 esi = POP32_VAL(esp); /* 0x27017037: pop esi */ 1594 esp = ebp; /* 0x27017038: mov esp, ebp */ 1595 ebp = POP32_VAL(esp); /* 0x2701703A: pop ebp */ 1596 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701703B: ret */ 1597 L_2701703C: 1598 #ifdef __EMSCRIPTEN__ 1599 browser_cursor_update(esi); 1600 #endif 1601 esi = MEM32(esi + 0x8); /* 0x2701703C: mov esi, dword ptr [esi + 8] */ 1602 ecx = esi + esi * 4; /* 0x2701703F: lea ecx, [esi + esi*4] */ 1603 ecx = MEM32(ecx * 4 + 0x270485F0); /* 0x27017042: mov ecx, dword ptr [ecx*4 + 0x270485f0] */ 1604 edx = MEM32(ecx); /* 0x27017049: mov edx, dword ptr [ecx] */ 1605 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2701704B: call dword ptr [edx + 0xc] */ 1606 RECOMP_FLAGS_IN(); 1607 esi = POP32_VAL(esp); /* 0x2701704E: pop esi */ 1608 esp = ebp; /* 0x2701704F: mov esp, ebp */ 1609 ebp = POP32_VAL(esp); /* 0x27017051: pop ebp */ 1610 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017052: ret */ 1611 RECOMP_REGS_OUT(); 1612 } 1613 1614 void sub_2701700E(void) { 1615 int _fpu_cmp = 0; 1616 uint32_t _cf = 0; 1617 int _df = 1; 1618 uint32_t _flag_k = FK_NONE; 1619 uint32_t _flag_a = 0, _flag_b = 0; 1620 uint32_t _itail_tgt = 0; 1621 RECOMP_REGS_LOCALS 1622 RECOMP_ENTER(0x2701700Eu); 1623 1624 L_2701700E: 1625 RECOMP_ICALL(0x27002B60u); /* 0x2701700E: call 0x27002b60 */ /* not lifted */ 1626 RECOMP_FLAGS_IN(); 1627 ecx = MEM32(eax + 0x108); /* 0x27017013: mov ecx, dword ptr [eax + 0x108] */ 1628 MEM32(ebp + (-0x10)) = ecx; /* 0x27017019: mov dword ptr [ebp - 0x10], ecx */ 1629 edx = MEM32(eax + 0x10C); /* 0x2701701C: mov edx, dword ptr [eax + 0x10c] */ 1630 eax = ebp + (-0x10); /* 0x27017022: lea eax, [ebp - 0x10] */ 1631 PUSH32(esp, eax); /* 0x27017025: push eax */ 1632 ecx = esi; /* 0x27017026: mov ecx, esi */ 1633 MEM32(ebp + (-0xC)) = edx; /* 0x27017028: mov dword ptr [ebp - 0xc], edx */ 1634 RECOMP_ICALL(0x27016E80u); /* 0x2701702B: call 0x27016e80 */ /* not lifted */ 1635 RECOMP_FLAGS_IN(); 1636 #ifdef __EMSCRIPTEN__ 1637 browser_cursor_update(esi); 1638 #endif 1639 MEM32(esi + 0xC) = 0; /* 0x27017030: mov dword ptr [esi + 0xc], 0 */ 1640 esi = POP32_VAL(esp); /* 0x27017037: pop esi */ 1641 esp = ebp; /* 0x27017038: mov esp, ebp */ 1642 ebp = POP32_VAL(esp); /* 0x2701703A: pop ebp */ 1643 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701703B: ret */ 1644 RECOMP_REGS_OUT(); 1645 } 1646 1647 void sub_27017060(void) { 1648 int _fpu_cmp = 0; 1649 uint32_t _cf = 0; 1650 int _df = 1; 1651 uint32_t _flag_k = FK_NONE; 1652 uint32_t _flag_a = 0, _flag_b = 0; 1653 uint32_t _itail_tgt = 0; 1654 RECOMP_REGS_LOCALS 1655 RECOMP_ENTER(0x27017060u); 1656 1657 L_27017060: 1658 PUSH32(esp, ebp); /* 0x27017060: push ebp */ 1659 ebp = esp; /* 0x27017061: mov ebp, esp */ 1660 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x27017063: mov al, byte ptr [ebp + 8] */ 1661 MEM8(ecx + 0x11) = (uint8_t)(LO8(eax)); /* 0x27017066: mov byte ptr [ecx + 0x11], al */ 1662 ebp = POP32_VAL(esp); /* 0x27017069: pop ebp */ 1663 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701706A: ret 4 */ 1664 RECOMP_REGS_OUT(); 1665 } 1666 1667 void sub_27017070(void) { 1668 int _fpu_cmp = 0; 1669 uint32_t _cf = 0; 1670 int _df = 1; 1671 uint32_t _flag_k = FK_NONE; 1672 uint32_t _flag_a = 0, _flag_b = 0; 1673 uint32_t _itail_tgt = 0; 1674 RECOMP_REGS_LOCALS 1675 RECOMP_ENTER(0x27017070u); 1676 1677 L_27017070: 1678 PUSH32(esp, ebp); /* 0x27017070: push ebp */ 1679 ebp = esp; /* 0x27017071: mov ebp, esp */ 1680 edx = MEM32(ecx + 0x8); /* 0x27017073: mov edx, dword ptr [ecx + 8] */ 1681 eax = MEM32(ebp + 0x8); /* 0x27017076: mov eax, dword ptr [ebp + 8] */ 1682 MEM32(eax) = edx; /* 0x27017079: mov dword ptr [eax], edx */ 1683 ecx = MEM32(ecx + 0xC); /* 0x2701707B: mov ecx, dword ptr [ecx + 0xc] */ 1684 MEM32(eax + 0x4) = ecx; /* 0x2701707E: mov dword ptr [eax + 4], ecx */ 1685 ebp = POP32_VAL(esp); /* 0x27017081: pop ebp */ 1686 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27017082: ret 4 */ 1687 RECOMP_REGS_OUT(); 1688 } 1689 1690 void sub_27017090(void) { 1691 int _fpu_cmp = 0; 1692 uint32_t _cf = 0; 1693 int _df = 1; 1694 uint32_t _flag_k = FK_NONE; 1695 uint32_t _flag_a = 0, _flag_b = 0; 1696 uint32_t _itail_tgt = 0; 1697 RECOMP_REGS_LOCALS 1698 RECOMP_ENTER(0x27017090u); 1699 1700 L_27017090: 1701 PUSH32(esp, ebp); /* 0x27017090: push ebp */ 1702 ebp = esp; /* 0x27017091: mov ebp, esp */ 1703 PUSH32(esp, 0xFFFFFFFFu); /* 0x27017093: push -1 */ 1704 PUSH32(esp, 0x27027C2Bu); /* 0x27017095: push 0x27027c2b */ 1705 eax = MEM32(FS_BASE + (0)); /* 0x2701709A: mov eax, dword ptr fs:[0] */ 1706 PUSH32(esp, eax); /* 0x270170A0: push eax */ 1707 MEM32(FS_BASE + (0)) = esp; /* 0x270170A1: mov dword ptr fs:[0], esp */ 1708 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1710 esp = esp - 0x10u; /* 0x270170A8: sub esp, 0x10 */ 1711 _flag_k = FK_CMP; 1712 PUSH32(esp, ebx); /* 0x270170AB: push ebx */ 1713 PUSH32(esp, esi); /* 0x270170AC: push esi */ 1714 esi = ecx; /* 0x270170AD: mov esi, ecx */ 1715 PUSH32(esp, edi); /* 0x270170AF: push edi */ 1716 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1717 ebx = 0; /* 0x270170B0: xor ebx, ebx */ 1718 _cf = 0; 1719 _flag_k = FK_TEST; 1720 MEM32(esi + 0x8) = ebx; /* 0x270170B2: mov dword ptr [esi + 8], ebx */ 1721 MEM32(esi + 0xC) = ebx; /* 0x270170B5: mov dword ptr [esi + 0xc], ebx */ 1722 eax = 0x10u; /* 0x270170B8: mov eax, 0x10 */ 1723 PUSH32(esp, 2); /* 0x270170BD: push 2 */ 1724 PUSH32(esp, 0x45u); /* 0x270170BF: push 0x45 */ 1725 MEM32(esi) = ebx; /* 0x270170C1: mov dword ptr [esi], ebx */ 1726 MEM32(esi + 0x4) = ebx; /* 0x270170C3: mov dword ptr [esi + 4], ebx */ 1727 MEM32(esi + 0x8) = eax; /* 0x270170C6: mov dword ptr [esi + 8], eax */ 1728 MEM32(esi + 0xC) = eax; /* 0x270170C9: mov dword ptr [esi + 0xc], eax */ 1729 RECOMP_ICALL(MEM32(0x2702939C)); /* 0x270170CC: call dword ptr [0x2702939c] */ 1730 RECOMP_FLAGS_IN(); 1731 ecx = eax; /* 0x270170D2: mov ecx, eax */ 1732 RECOMP_ICALL(MEM32(0x270293A4)); /* 0x270170D4: call dword ptr [0x270293a4] */ 1733 RECOMP_FLAGS_IN(); 1734 PUSH32(esp, 0xD8u); /* 0x270170DA: push 0xd8 */ 1735 MEM32(ebp + (-0x18)) = eax; /* 0x270170DF: mov dword ptr [ebp - 0x18], eax */ 1736 RECOMP_ICALL(0x27026EA4u); /* 0x270170E2: call 0x27026ea4 */ /* not lifted */ 1737 RECOMP_FLAGS_IN(); 1738 edi = eax; /* 0x270170E7: mov edi, eax */ 1739 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1741 esp = esp + 4; /* 0x270170E9: add esp, 4 */ 1742 _flag_k = FK_ADD; 1743 MEM32(ebp + (-0x1C)) = edi; /* 0x270170EC: mov dword ptr [ebp - 0x1c], edi */ 1744 /* cmp edi, ebx */ /* 0x270170EF: cmp edi, ebx */ 1745 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1747 _flag_k = FK_CMP; 1748 MEM32(ebp + (-0x4)) = ebx; /* 0x270170F1: mov dword ptr [ebp - 4], ebx */ 1749 if (CMP_EQ(_flag_a, _flag_b)) goto L_27017129; /* 0x270170F4: je 0x27017129 */ 1750 L_270170F6: 1751 edx = MEM32(ebp + 0x8); /* 0x270170F6: mov edx, dword ptr [ebp + 8] */ 1752 eax = ebp + (-0x10); /* 0x270170F9: lea eax, [ebp - 0x10] */ 1753 PUSH32(esp, eax); /* 0x270170FC: push eax */ 1754 eax = MEM32(ebp + (-0x18)); /* 0x270170FD: mov eax, dword ptr [ebp - 0x18] */ 1755 ecx = ebp + (-0x14); /* 0x27017100: lea ecx, [ebp - 0x14] */ 1756 PUSH32(esp, ecx); /* 0x27017103: push ecx */ 1757 PUSH32(esp, ebx); /* 0x27017104: push ebx */ 1758 PUSH32(esp, edx); /* 0x27017105: push edx */ 1759 PUSH32(esp, eax); /* 0x27017106: push eax */ 1760 PUSH32(esp, esi); /* 0x27017107: push esi */ 1761 ecx = edi; /* 0x27017108: mov ecx, edi */ 1762 MEM32(ebp + (-0x10)) = 0x3F800000u; /* 0x2701710A: mov dword ptr [ebp - 0x10], 0x3f800000 */ 1763 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x27017111: mov dword ptr [ebp - 0x14], 0x3f800000 */ 1764 RECOMP_ICALL(MEM32(0x27029208)); /* 0x27017118: call dword ptr [0x27029208] */ 1765 RECOMP_FLAGS_IN(); 1766 MEM32(edi) = 0x27034304u; /* 0x2701711E: mov dword ptr [edi], 0x27034304 */ 1767 MEM32(esi + 0x10) = edi; /* 0x27017124: mov dword ptr [esi + 0x10], edi */ 1768 goto L_2701712C; /* 0x27017127: jmp 0x2701712c */ 1769 L_27017129: 1770 MEM32(esi + 0x10) = ebx; /* 0x27017129: mov dword ptr [esi + 0x10], ebx */ 1771 L_2701712C: 1772 ecx = MEM32(ebp + (-0xC)); /* 0x2701712C: mov ecx, dword ptr [ebp - 0xc] */ 1773 edi = POP32_VAL(esp); /* 0x2701712F: pop edi */ 1774 eax = esi; /* 0x27017130: mov eax, esi */ 1775 esi = POP32_VAL(esp); /* 0x27017132: pop esi */ 1776 ebx = POP32_VAL(esp); /* 0x27017133: pop ebx */ 1777 MEM32(FS_BASE + (0)) = ecx; /* 0x27017134: mov dword ptr fs:[0], ecx */ 1778 esp = ebp; /* 0x2701713B: mov esp, ebp */ 1779 ebp = POP32_VAL(esp); /* 0x2701713D: pop ebp */ 1780 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701713E: ret 4 */ 1781 RECOMP_REGS_OUT(); 1782 } 1783 1784 void sub_27017150(void) { 1785 int _fpu_cmp = 0; 1786 uint32_t _cf = 0; 1787 int _df = 1; 1788 uint32_t _flag_k = FK_NONE; 1789 uint32_t _flag_a = 0, _flag_b = 0; 1790 uint32_t _itail_tgt = 0; 1791 RECOMP_REGS_LOCALS 1792 RECOMP_ENTER(0x27017150u); 1793 1794 L_27017150: 1795 PUSH32(esp, esi); /* 0x27017150: push esi */ 1796 esi = ecx; /* 0x27017151: mov esi, ecx */ 1797 eax = MEM32(esi + 0x10); /* 0x27017153: mov eax, dword ptr [esi + 0x10] */ 1798 eax = MEM32(eax + 0x28); /* 0x27017156: mov eax, dword ptr [eax + 0x28] */ 1799 PUSH32(esp, eax); /* 0x27017159: push eax */ 1800 RECOMP_ICALL(MEM32(0x2702939C)); /* 0x2701715A: call dword ptr [0x2702939c] */ 1801 RECOMP_FLAGS_IN(); 1802 ecx = eax; /* 0x27017160: mov ecx, eax */ 1803 RECOMP_ICALL(MEM32(0x27029388)); /* 0x27017162: call dword ptr [0x27029388] */ 1804 RECOMP_FLAGS_IN(); 1805 ecx = MEM32(esi + 0x10); /* 0x27017168: mov ecx, dword ptr [esi + 0x10] */ 1806 /* test ecx, ecx */ /* 0x2701716B: test ecx, ecx */ 1807 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1808 _cf = 0; 1809 _flag_k = FK_TEST; 1810 esi = POP32_VAL(esp); /* 0x2701716D: pop esi */ 1811 if (TEST_Z(_flag_a, _flag_b)) goto L_27017176; /* 0x2701716E: je 0x27017176 */ 1812 L_27017170: 1813 edx = MEM32(ecx); /* 0x27017170: mov edx, dword ptr [ecx] */ 1814 PUSH32(esp, 1); /* 0x27017172: push 1 */ 1815 RECOMP_ICALL(MEM32(edx)); /* 0x27017174: call dword ptr [edx] */ 1816 RECOMP_FLAGS_IN(); 1817 L_27017176: 1818 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017176: ret */ 1819 RECOMP_REGS_OUT(); 1820 } 1821 1822 void sub_27017180(void) { 1823 int _fpu_cmp = 0; 1824 uint32_t _cf = 0; 1825 int _df = 1; 1826 uint32_t _flag_k = FK_NONE; 1827 uint32_t _flag_a = 0, _flag_b = 0; 1828 uint32_t _itail_tgt = 0; 1829 RECOMP_REGS_LOCALS 1830 RECOMP_ENTER(0x27017180u); 1831 1832 L_27017180: 1833 PUSH32(esp, ebp); /* 0x27017180: push ebp */ 1834 ebp = esp; /* 0x27017181: mov ebp, esp */ 1835 eax = MEM32(ebp + 0x8); /* 0x27017183: mov eax, dword ptr [ebp + 8] */ 1836 edx = MEM32(eax); /* 0x27017186: mov edx, dword ptr [eax] */ 1837 MEM32(ecx) = edx; /* 0x27017188: mov dword ptr [ecx], edx */ 1838 edx = MEM32(eax + 0x4); /* 0x2701718A: mov edx, dword ptr [eax + 4] */ 1839 MEM32(ecx + 0x4) = edx; /* 0x2701718D: mov dword ptr [ecx + 4], edx */ 1840 ecx = MEM32(ecx + 0x10); /* 0x27017190: mov ecx, dword ptr [ecx + 0x10] */ 1841 PUSH32(esp, eax); /* 0x27017193: push eax */ 1842 RECOMP_ICALL(MEM32(0x27029214)); /* 0x27017194: call dword ptr [0x27029214] */ 1843 RECOMP_FLAGS_IN(); 1844 ebp = POP32_VAL(esp); /* 0x2701719A: pop ebp */ 1845 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701719B: ret 4 */ 1846 RECOMP_REGS_OUT(); 1847 } 1848 1849 void sub_270171A0(void) { 1850 int _fpu_cmp = 0; 1851 uint32_t _cf = 0; 1852 int _df = 1; 1853 uint32_t _flag_k = FK_NONE; 1854 uint32_t _flag_a = 0, _flag_b = 0; 1855 uint32_t _itail_tgt = 0; 1856 RECOMP_REGS_LOCALS 1857 RECOMP_ENTER(0x270171A0u); 1858 1859 L_270171A0: 1860 PUSH32(esp, ebp); /* 0x270171A0: push ebp */ 1861 ebp = esp; /* 0x270171A1: mov ebp, esp */ 1862 PUSH32(esp, ecx); /* 0x270171A3: push ecx */ 1863 eax = MEM32(ebp + 0x8); /* 0x270171A4: mov eax, dword ptr [ebp + 8] */ 1864 PUSH32(esp, esi); /* 0x270171A7: push esi */ 1865 esi = ecx; /* 0x270171A8: mov esi, ecx */ 1866 ecx = MEM32(eax); /* 0x270171AA: mov ecx, dword ptr [eax] */ 1867 MEM32(esi + 0x8) = ecx; /* 0x270171AC: mov dword ptr [esi + 8], ecx */ 1868 edx = MEM32(eax + 0x4); /* 0x270171AF: mov edx, dword ptr [eax + 4] */ 1869 MEM32(esi + 0xC) = edx; /* 0x270171B2: mov dword ptr [esi + 0xc], edx */ 1870 fp_push((double)(int32_t)MEM32(eax + 0x4)); /* 0x270171B5: fild dword ptr [eax + 4] */ 1871 ecx = ebp + (-0x4); /* 0x270171B8: lea ecx, [ebp - 4] */ 1872 _st[0] *= (double)*(float*)ADDR(0x27034468); /* 0x270171BB: fmul dword ptr [0x27034468] */ 1873 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x270171C1: fstp dword ptr [ebp + 8] */ 1874 fp_push((double)(int32_t)MEM32(eax)); /* 0x270171C4: fild dword ptr [eax] */ 1875 eax = ebp + 0x8; /* 0x270171C6: lea eax, [ebp + 8] */ 1876 PUSH32(esp, eax); /* 0x270171C9: push eax */ 1877 PUSH32(esp, ecx); /* 0x270171CA: push ecx */ 1878 _st[0] *= (double)*(float*)ADDR(0x27034468); /* 0x270171CB: fmul dword ptr [0x27034468] */ 1879 ecx = MEM32(esi + 0x10); /* 0x270171D1: mov ecx, dword ptr [esi + 0x10] */ 1880 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x270171D4: fstp dword ptr [ebp - 4] */ 1881 RECOMP_ICALL(MEM32(0x27029218)); /* 0x270171D7: call dword ptr [0x27029218] */ 1882 RECOMP_FLAGS_IN(); 1883 PUSH32(esp, esi); /* 0x270171DD: push esi */ 1884 ecx = esi; /* 0x270171DE: mov ecx, esi */ 1885 RECOMP_ICALL(0x27017180u); /* 0x270171E0: call 0x27017180 */ /* not lifted */ 1886 RECOMP_FLAGS_IN(); 1887 esi = POP32_VAL(esp); /* 0x270171E5: pop esi */ 1888 esp = ebp; /* 0x270171E6: mov esp, ebp */ 1889 ebp = POP32_VAL(esp); /* 0x270171E8: pop ebp */ 1890 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270171E9: ret 4 */ 1891 RECOMP_REGS_OUT(); 1892 } 1893 1894 void sub_270171F0(void) { 1895 int _fpu_cmp = 0; 1896 uint32_t _cf = 0; 1897 int _df = 1; 1898 uint32_t _flag_k = FK_NONE; 1899 uint32_t _flag_a = 0, _flag_b = 0; 1900 uint32_t _itail_tgt = 0; 1901 RECOMP_REGS_LOCALS 1902 RECOMP_ENTER(0x270171F0u); 1903 1904 L_270171F0: 1905 ecx = MEM32(ecx + 0x10); /* 0x270171F0: mov ecx, dword ptr [ecx + 0x10] */ 1906 L_270171F3: 1907 eax = MEM32(ecx); /* 0x270171F3: mov eax, dword ptr [ecx] */ 1908 L_270171F5: 1909 { _itail_tgt = (uint32_t)(MEM32(eax + 0x8)); goto _ljump; } 1910 { RECOMP_REGS_OUT(); return; } /* end of function */ 1911 _ljump: 1912 switch (_itail_tgt) { 1913 case 0x270171F0u: goto L_270171F0; 1914 case 0x270171F3u: goto L_270171F3; 1915 case 0x270171F5u: goto L_270171F5; 1916 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1917 } 1918 RECOMP_REGS_OUT(); 1919 } 1920 1921 void sub_27017200(void) { 1922 int _fpu_cmp = 0; 1923 uint32_t _cf = 0; 1924 int _df = 1; 1925 uint32_t _flag_k = FK_NONE; 1926 uint32_t _flag_a = 0, _flag_b = 0; 1927 uint32_t _itail_tgt = 0; 1928 RECOMP_REGS_LOCALS 1929 RECOMP_ENTER(0x27017200u); 1930 1931 L_27017200: 1932 ecx = MEM32(ecx + 0x10); /* 0x27017200: mov ecx, dword ptr [ecx + 0x10] */ 1933 L_27017203: 1934 eax = MEM32(ecx); /* 0x27017203: mov eax, dword ptr [ecx] */ 1935 L_27017205: 1936 { _itail_tgt = (uint32_t)(MEM32(eax + 0xC)); goto _ljump; } 1937 { RECOMP_REGS_OUT(); return; } /* end of function */ 1938 _ljump: 1939 switch (_itail_tgt) { 1940 case 0x27017200u: goto L_27017200; 1941 case 0x27017203u: goto L_27017203; 1942 case 0x27017205u: goto L_27017205; 1943 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1944 } 1945 RECOMP_REGS_OUT(); 1946 } 1947 1948 void sub_27017210(void) { 1949 int _fpu_cmp = 0; 1950 uint32_t _cf = 0; 1951 int _df = 1; 1952 uint32_t _flag_k = FK_NONE; 1953 uint32_t _flag_a = 0, _flag_b = 0; 1954 uint32_t _itail_tgt = 0; 1955 RECOMP_REGS_LOCALS 1956 RECOMP_ENTER(0x27017210u); 1957 1958 L_27017210: 1959 PUSH32(esp, ebp); /* 0x27017210: push ebp */ 1960 ebp = esp; /* 0x27017211: mov ebp, esp */ 1961 eax = MEM32(ebp + 0x8); /* 0x27017213: mov eax, dword ptr [ebp + 8] */ 1962 ecx = MEM32(ecx + 0x10); /* 0x27017216: mov ecx, dword ptr [ecx + 0x10] */ 1963 PUSH32(esp, eax); /* 0x27017219: push eax */ 1964 RECOMP_ICALL(MEM32(0x27029224)); /* 0x2701721A: call dword ptr [0x27029224] */ 1965 RECOMP_FLAGS_IN(); 1966 ebp = POP32_VAL(esp); /* 0x27017220: pop ebp */ 1967 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27017221: ret 4 */ 1968 RECOMP_REGS_OUT(); 1969 } 1970 1971 void sub_27017230(void) { 1972 int _fpu_cmp = 0; 1973 uint32_t _cf = 0; 1974 int _df = 1; 1975 uint32_t _flag_k = FK_NONE; 1976 uint32_t _flag_a = 0, _flag_b = 0; 1977 uint32_t _itail_tgt = 0; 1978 RECOMP_REGS_LOCALS 1979 RECOMP_ENTER(0x27017230u); 1980 1981 L_27017230: 1982 PUSH32(esp, ebp); /* 0x27017230: push ebp */ 1983 ebp = esp; /* 0x27017231: mov ebp, esp */ 1984 eax = MEM32(ebp + 0x8); /* 0x27017233: mov eax, dword ptr [ebp + 8] */ 1985 ecx = MEM32(ecx + 0x10); /* 0x27017236: mov ecx, dword ptr [ecx + 0x10] */ 1986 PUSH32(esp, eax); /* 0x27017239: push eax */ 1987 RECOMP_ICALL(MEM32(0x27029220)); /* 0x2701723A: call dword ptr [0x27029220] */ 1988 RECOMP_FLAGS_IN(); 1989 ebp = POP32_VAL(esp); /* 0x27017240: pop ebp */ 1990 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27017241: ret 4 */ 1991 RECOMP_REGS_OUT(); 1992 } 1993 1994 void sub_27017250(void) { 1995 int _fpu_cmp = 0; 1996 uint32_t _cf = 0; 1997 int _df = 1; 1998 uint32_t _flag_k = FK_NONE; 1999 uint32_t _flag_a = 0, _flag_b = 0; 2000 uint32_t _itail_tgt = 0; 2001 RECOMP_REGS_LOCALS 2002 RECOMP_ENTER(0x27017250u); 2003 2004 L_27017250: 2005 edx = MEM32(ecx + 0x5C); /* 0x27017250: mov edx, dword ptr [ecx + 0x5c] */ 2006 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2007 SET_LO8(eax, 0); /* 0x27017253: xor al, al */ 2008 _cf = 0; 2009 _flag_k = FK_NARROW(FK_TEST, 24); 2010 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x27017255: mov byte ptr [ecx + 8], al */ 2011 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x27017258: mov byte ptr [edx + 8], al */ 2012 ecx = MEM32(ecx + 0x60); /* 0x2701725B: mov ecx, dword ptr [ecx + 0x60] */ 2013 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701725E: mov byte ptr [ecx + 8], al */ 2014 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017261: ret */ 2015 RECOMP_REGS_OUT(); 2016 } 2017 2018 void sub_27017270(void) { 2019 int _fpu_cmp = 0; 2020 uint32_t _cf = 0; 2021 int _df = 1; 2022 uint32_t _flag_k = FK_NONE; 2023 uint32_t _flag_a = 0, _flag_b = 0; 2024 uint32_t _itail_tgt = 0; 2025 RECOMP_REGS_LOCALS 2026 RECOMP_ENTER(0x27017270u); 2027 2028 L_27017270: 2029 edx = MEM32(ecx + 0x5C); /* 0x27017270: mov edx, dword ptr [ecx + 0x5c] */ 2030 SET_LO8(eax, 1); /* 0x27017273: mov al, 1 */ 2031 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x27017275: mov byte ptr [ecx + 8], al */ 2032 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x27017278: mov byte ptr [edx + 8], al */ 2033 ecx = MEM32(ecx + 0x60); /* 0x2701727B: mov ecx, dword ptr [ecx + 0x60] */ 2034 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701727E: mov byte ptr [ecx + 8], al */ 2035 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017281: ret */ 2036 RECOMP_REGS_OUT(); 2037 } 2038 2039 void sub_27017290(void) { 2040 int _fpu_cmp = 0; 2041 uint32_t _cf = 0; 2042 int _df = 1; 2043 uint32_t _flag_k = FK_NONE; 2044 uint32_t _flag_a = 0, _flag_b = 0; 2045 uint32_t _itail_tgt = 0; 2046 RECOMP_REGS_LOCALS 2047 RECOMP_ENTER(0x27017290u); 2048 2049 L_27017290: 2050 PUSH32(esp, ebp); /* 0x27017290: push ebp */ 2051 ebp = esp; /* 0x27017291: mov ebp, esp */ 2052 edx = MEM32(ecx + 0x6C); /* 0x27017293: mov edx, dword ptr [ecx + 0x6c] */ 2053 eax = MEM32(ebp + 0x8); /* 0x27017296: mov eax, dword ptr [ebp + 8] */ 2054 MEM32(eax) = edx; /* 0x27017299: mov dword ptr [eax], edx */ 2055 ecx = MEM32(ecx + 0x70); /* 0x2701729B: mov ecx, dword ptr [ecx + 0x70] */ 2056 MEM32(eax + 0x4) = ecx; /* 0x2701729E: mov dword ptr [eax + 4], ecx */ 2057 ebp = POP32_VAL(esp); /* 0x270172A1: pop ebp */ 2058 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270172A2: ret 4 */ 2059 RECOMP_REGS_OUT(); 2060 } 2061 2062 void sub_270172B0(void) { 2063 int _fpu_cmp = 0; 2064 uint32_t _cf = 0; 2065 int _df = 1; 2066 uint32_t _flag_k = FK_NONE; 2067 uint32_t _flag_a = 0, _flag_b = 0; 2068 uint32_t _itail_tgt = 0; 2069 RECOMP_REGS_LOCALS 2070 RECOMP_ENTER(0x270172B0u); 2071 2072 L_270172B0: 2073 eax = 0x2703446Cu; /* 0x270172B0: mov eax, 0x2703446c */ 2074 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270172B5: ret */ 2075 RECOMP_REGS_OUT(); 2076 } 2077 2078 void sub_270172C0(void) { 2079 int _fpu_cmp = 0; 2080 uint32_t _cf = 0; 2081 int _df = 1; 2082 uint32_t _flag_k = FK_NONE; 2083 uint32_t _flag_a = 0, _flag_b = 0; 2084 uint32_t _itail_tgt = 0; 2085 RECOMP_REGS_LOCALS 2086 RECOMP_ENTER(0x270172C0u); 2087 2088 L_270172C0: 2089 PUSH32(esp, ebp); /* 0x270172C0: push ebp */ 2090 ebp = esp; /* 0x270172C1: mov ebp, esp */ 2091 eax = ecx; /* 0x270172C3: mov eax, ecx */ 2092 ecx = MEM32(ebp + 0x8); /* 0x270172C5: mov ecx, dword ptr [ebp + 8] */ 2093 edx = MEM32(ecx + 0x4); /* 0x270172C8: mov edx, dword ptr [ecx + 4] */ 2094 MEM32(eax + 0x4) = edx; /* 0x270172CB: mov dword ptr [eax + 4], edx */ 2095 SET_LO8(edx, MEM8(ecx + 0x8)); /* 0x270172CE: mov dl, byte ptr [ecx + 8] */ 2096 MEM8(eax + 0x8) = (uint8_t)(LO8(edx)); /* 0x270172D1: mov byte ptr [eax + 8], dl */ 2097 SET_LO8(edx, MEM8(ecx + 0x9)); /* 0x270172D4: mov dl, byte ptr [ecx + 9] */ 2098 MEM8(eax + 0x9) = (uint8_t)(LO8(edx)); /* 0x270172D7: mov byte ptr [eax + 9], dl */ 2099 edx = MEM32(ecx + 0xC); /* 0x270172DA: mov edx, dword ptr [ecx + 0xc] */ 2100 MEM32(eax + 0xC) = edx; /* 0x270172DD: mov dword ptr [eax + 0xc], edx */ 2101 edx = MEM32(ecx + 0x10); /* 0x270172E0: mov edx, dword ptr [ecx + 0x10] */ 2102 MEM32(eax + 0x10) = edx; /* 0x270172E3: mov dword ptr [eax + 0x10], edx */ 2103 edx = MEM32(ecx + 0x14); /* 0x270172E6: mov edx, dword ptr [ecx + 0x14] */ 2104 MEM32(eax + 0x14) = edx; /* 0x270172E9: mov dword ptr [eax + 0x14], edx */ 2105 edx = MEM32(ecx + 0x18); /* 0x270172EC: mov edx, dword ptr [ecx + 0x18] */ 2106 MEM32(eax + 0x18) = edx; /* 0x270172EF: mov dword ptr [eax + 0x18], edx */ 2107 edx = MEM32(ecx + 0x1C); /* 0x270172F2: mov edx, dword ptr [ecx + 0x1c] */ 2108 MEM32(eax + 0x1C) = edx; /* 0x270172F5: mov dword ptr [eax + 0x1c], edx */ 2109 edx = MEM32(ecx + 0x20); /* 0x270172F8: mov edx, dword ptr [ecx + 0x20] */ 2110 MEM32(eax + 0x20) = edx; /* 0x270172FB: mov dword ptr [eax + 0x20], edx */ 2111 SET_LO8(edx, MEM8(ecx + 0x24)); /* 0x270172FE: mov dl, byte ptr [ecx + 0x24] */ 2112 MEM8(eax + 0x24) = (uint8_t)(LO8(edx)); /* 0x27017301: mov byte ptr [eax + 0x24], dl */ 2113 SET_LO8(edx, MEM8(ecx + 0x25)); /* 0x27017304: mov dl, byte ptr [ecx + 0x25] */ 2114 MEM8(eax + 0x25) = (uint8_t)(LO8(edx)); /* 0x27017307: mov byte ptr [eax + 0x25], dl */ 2115 edx = MEM32(ecx + 0x28); /* 0x2701730A: mov edx, dword ptr [ecx + 0x28] */ 2116 MEM32(eax + 0x28) = edx; /* 0x2701730D: mov dword ptr [eax + 0x28], edx */ 2117 PUSH32(esp, esi); /* 0x27017310: push esi */ 2118 PUSH32(esp, edi); /* 0x27017311: push edi */ 2119 edx = ecx + 0x2C; /* 0x27017312: lea edx, [ecx + 0x2c] */ 2120 edi = MEM32(edx); /* 0x27017315: mov edi, dword ptr [edx] */ 2121 esi = eax + 0x2C; /* 0x27017317: lea esi, [eax + 0x2c] */ 2122 MEM32(esi) = edi; /* 0x2701731A: mov dword ptr [esi], edi */ 2123 edi = MEM32(edx + 0x4); /* 0x2701731C: mov edi, dword ptr [edx + 4] */ 2124 MEM32(esi + 0x4) = edi; /* 0x2701731F: mov dword ptr [esi + 4], edi */ 2125 edi = MEM32(edx + 0x8); /* 0x27017322: mov edi, dword ptr [edx + 8] */ 2126 MEM32(esi + 0x8) = edi; /* 0x27017325: mov dword ptr [esi + 8], edi */ 2127 edx = MEM32(edx + 0xC); /* 0x27017328: mov edx, dword ptr [edx + 0xc] */ 2128 MEM32(esi + 0xC) = edx; /* 0x2701732B: mov dword ptr [esi + 0xc], edx */ 2129 edx = MEM32(ecx + 0x3C); /* 0x2701732E: mov edx, dword ptr [ecx + 0x3c] */ 2130 MEM32(eax + 0x3C) = edx; /* 0x27017331: mov dword ptr [eax + 0x3c], edx */ 2131 edx = MEM32(ecx + 0x40); /* 0x27017334: mov edx, dword ptr [ecx + 0x40] */ 2132 MEM32(eax + 0x40) = edx; /* 0x27017337: mov dword ptr [eax + 0x40], edx */ 2133 edx = MEM32(ecx + 0x44); /* 0x2701733A: mov edx, dword ptr [ecx + 0x44] */ 2134 MEM32(eax + 0x44) = edx; /* 0x2701733D: mov dword ptr [eax + 0x44], edx */ 2135 edx = MEM32(ecx + 0x48); /* 0x27017340: mov edx, dword ptr [ecx + 0x48] */ 2136 MEM32(eax + 0x48) = edx; /* 0x27017343: mov dword ptr [eax + 0x48], edx */ 2137 edx = MEM32(ecx + 0x4C); /* 0x27017346: mov edx, dword ptr [ecx + 0x4c] */ 2138 MEM32(eax + 0x4C) = edx; /* 0x27017349: mov dword ptr [eax + 0x4c], edx */ 2139 SET_LO8(edx, MEM8(ecx + 0x50)); /* 0x2701734C: mov dl, byte ptr [ecx + 0x50] */ 2140 MEM32(eax) = 0x2703429Cu; /* 0x2701734F: mov dword ptr [eax], 0x2703429c */ 2141 MEM8(eax + 0x50) = (uint8_t)(LO8(edx)); /* 0x27017355: mov byte ptr [eax + 0x50], dl */ 2142 edx = MEM32(ecx + 0x54); /* 0x27017358: mov edx, dword ptr [ecx + 0x54] */ 2143 MEM32(eax + 0x54) = edx; /* 0x2701735B: mov dword ptr [eax + 0x54], edx */ 2144 edx = MEM32(ecx + 0x58); /* 0x2701735E: mov edx, dword ptr [ecx + 0x58] */ 2145 MEM32(eax + 0x58) = edx; /* 0x27017361: mov dword ptr [eax + 0x58], edx */ 2146 edx = MEM32(ecx + 0x5C); /* 0x27017364: mov edx, dword ptr [ecx + 0x5c] */ 2147 MEM32(eax + 0x5C) = edx; /* 0x27017367: mov dword ptr [eax + 0x5c], edx */ 2148 edx = MEM32(ecx + 0x60); /* 0x2701736A: mov edx, dword ptr [ecx + 0x60] */ 2149 MEM32(eax + 0x60) = edx; /* 0x2701736D: mov dword ptr [eax + 0x60], edx */ 2150 edx = MEM32(ecx + 0x64); /* 0x27017370: mov edx, dword ptr [ecx + 0x64] */ 2151 MEM32(eax + 0x64) = edx; /* 0x27017373: mov dword ptr [eax + 0x64], edx */ 2152 edx = MEM32(ecx + 0x68); /* 0x27017376: mov edx, dword ptr [ecx + 0x68] */ 2153 MEM32(eax + 0x68) = edx; /* 0x27017379: mov dword ptr [eax + 0x68], edx */ 2154 edx = MEM32(ecx + 0x6C); /* 0x2701737C: mov edx, dword ptr [ecx + 0x6c] */ 2155 MEM32(eax + 0x6C) = edx; /* 0x2701737F: mov dword ptr [eax + 0x6c], edx */ 2156 ecx = MEM32(ecx + 0x70); /* 0x27017382: mov ecx, dword ptr [ecx + 0x70] */ 2157 edi = POP32_VAL(esp); /* 0x27017385: pop edi */ 2158 MEM32(eax + 0x70) = ecx; /* 0x27017386: mov dword ptr [eax + 0x70], ecx */ 2159 MEM32(eax) = 0x2703447Cu; /* 0x27017389: mov dword ptr [eax], 0x2703447c */ 2160 esi = POP32_VAL(esp); /* 0x2701738F: pop esi */ 2161 ebp = POP32_VAL(esp); /* 0x27017390: pop ebp */ 2162 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27017391: ret 4 */ 2163 RECOMP_REGS_OUT(); 2164 } 2165 2166 void sub_270173A0(void) { 2167 int _fpu_cmp = 0; 2168 uint32_t _cf = 0; 2169 int _df = 1; 2170 uint32_t _flag_k = FK_NONE; 2171 uint32_t _flag_a = 0, _flag_b = 0; 2172 uint32_t _itail_tgt = 0; 2173 RECOMP_REGS_LOCALS 2174 RECOMP_ENTER(0x270173A0u); 2175 2176 L_270173A0: 2177 PUSH32(esp, ebp); /* 0x270173A0: push ebp */ 2178 ebp = esp; /* 0x270173A1: mov ebp, esp */ 2179 eax = ecx; /* 0x270173A3: mov eax, ecx */ 2180 ecx = MEM32(ebp + 0x8); /* 0x270173A5: mov ecx, dword ptr [ebp + 8] */ 2181 edx = MEM32(ecx + 0x4); /* 0x270173A8: mov edx, dword ptr [ecx + 4] */ 2182 MEM32(eax + 0x4) = edx; /* 0x270173AB: mov dword ptr [eax + 4], edx */ 2183 SET_LO8(edx, MEM8(ecx + 0x8)); /* 0x270173AE: mov dl, byte ptr [ecx + 8] */ 2184 MEM8(eax + 0x8) = (uint8_t)(LO8(edx)); /* 0x270173B1: mov byte ptr [eax + 8], dl */ 2185 SET_LO8(edx, MEM8(ecx + 0x9)); /* 0x270173B4: mov dl, byte ptr [ecx + 9] */ 2186 MEM8(eax + 0x9) = (uint8_t)(LO8(edx)); /* 0x270173B7: mov byte ptr [eax + 9], dl */ 2187 edx = MEM32(ecx + 0xC); /* 0x270173BA: mov edx, dword ptr [ecx + 0xc] */ 2188 MEM32(eax + 0xC) = edx; /* 0x270173BD: mov dword ptr [eax + 0xc], edx */ 2189 edx = MEM32(ecx + 0x10); /* 0x270173C0: mov edx, dword ptr [ecx + 0x10] */ 2190 MEM32(eax + 0x10) = edx; /* 0x270173C3: mov dword ptr [eax + 0x10], edx */ 2191 edx = MEM32(ecx + 0x14); /* 0x270173C6: mov edx, dword ptr [ecx + 0x14] */ 2192 MEM32(eax + 0x14) = edx; /* 0x270173C9: mov dword ptr [eax + 0x14], edx */ 2193 edx = MEM32(ecx + 0x18); /* 0x270173CC: mov edx, dword ptr [ecx + 0x18] */ 2194 MEM32(eax + 0x18) = edx; /* 0x270173CF: mov dword ptr [eax + 0x18], edx */ 2195 edx = MEM32(ecx + 0x1C); /* 0x270173D2: mov edx, dword ptr [ecx + 0x1c] */ 2196 MEM32(eax + 0x1C) = edx; /* 0x270173D5: mov dword ptr [eax + 0x1c], edx */ 2197 edx = MEM32(ecx + 0x20); /* 0x270173D8: mov edx, dword ptr [ecx + 0x20] */ 2198 MEM32(eax + 0x20) = edx; /* 0x270173DB: mov dword ptr [eax + 0x20], edx */ 2199 SET_LO8(edx, MEM8(ecx + 0x24)); /* 0x270173DE: mov dl, byte ptr [ecx + 0x24] */ 2200 MEM8(eax + 0x24) = (uint8_t)(LO8(edx)); /* 0x270173E1: mov byte ptr [eax + 0x24], dl */ 2201 SET_LO8(edx, MEM8(ecx + 0x25)); /* 0x270173E4: mov dl, byte ptr [ecx + 0x25] */ 2202 MEM8(eax + 0x25) = (uint8_t)(LO8(edx)); /* 0x270173E7: mov byte ptr [eax + 0x25], dl */ 2203 edx = MEM32(ecx + 0x28); /* 0x270173EA: mov edx, dword ptr [ecx + 0x28] */ 2204 MEM32(eax + 0x28) = edx; /* 0x270173ED: mov dword ptr [eax + 0x28], edx */ 2205 PUSH32(esp, esi); /* 0x270173F0: push esi */ 2206 PUSH32(esp, edi); /* 0x270173F1: push edi */ 2207 edx = ecx + 0x2C; /* 0x270173F2: lea edx, [ecx + 0x2c] */ 2208 edi = MEM32(edx); /* 0x270173F5: mov edi, dword ptr [edx] */ 2209 esi = eax + 0x2C; /* 0x270173F7: lea esi, [eax + 0x2c] */ 2210 MEM32(esi) = edi; /* 0x270173FA: mov dword ptr [esi], edi */ 2211 edi = MEM32(edx + 0x4); /* 0x270173FC: mov edi, dword ptr [edx + 4] */ 2212 MEM32(esi + 0x4) = edi; /* 0x270173FF: mov dword ptr [esi + 4], edi */ 2213 edi = MEM32(edx + 0x8); /* 0x27017402: mov edi, dword ptr [edx + 8] */ 2214 MEM32(esi + 0x8) = edi; /* 0x27017405: mov dword ptr [esi + 8], edi */ 2215 edx = MEM32(edx + 0xC); /* 0x27017408: mov edx, dword ptr [edx + 0xc] */ 2216 MEM32(esi + 0xC) = edx; /* 0x2701740B: mov dword ptr [esi + 0xc], edx */ 2217 edx = MEM32(ecx + 0x3C); /* 0x2701740E: mov edx, dword ptr [ecx + 0x3c] */ 2218 MEM32(eax + 0x3C) = edx; /* 0x27017411: mov dword ptr [eax + 0x3c], edx */ 2219 edx = MEM32(ecx + 0x40); /* 0x27017414: mov edx, dword ptr [ecx + 0x40] */ 2220 MEM32(eax + 0x40) = edx; /* 0x27017417: mov dword ptr [eax + 0x40], edx */ 2221 edx = MEM32(ecx + 0x44); /* 0x2701741A: mov edx, dword ptr [ecx + 0x44] */ 2222 MEM32(eax + 0x44) = edx; /* 0x2701741D: mov dword ptr [eax + 0x44], edx */ 2223 edx = MEM32(ecx + 0x48); /* 0x27017420: mov edx, dword ptr [ecx + 0x48] */ 2224 MEM32(eax + 0x48) = edx; /* 0x27017423: mov dword ptr [eax + 0x48], edx */ 2225 edx = MEM32(ecx + 0x4C); /* 0x27017426: mov edx, dword ptr [ecx + 0x4c] */ 2226 MEM32(eax + 0x4C) = edx; /* 0x27017429: mov dword ptr [eax + 0x4c], edx */ 2227 SET_LO8(edx, MEM8(ecx + 0x50)); /* 0x2701742C: mov dl, byte ptr [ecx + 0x50] */ 2228 MEM8(eax + 0x50) = (uint8_t)(LO8(edx)); /* 0x2701742F: mov byte ptr [eax + 0x50], dl */ 2229 edx = MEM32(ecx + 0x54); /* 0x27017432: mov edx, dword ptr [ecx + 0x54] */ 2230 MEM32(eax + 0x54) = edx; /* 0x27017435: mov dword ptr [eax + 0x54], edx */ 2231 edx = MEM32(ecx + 0x58); /* 0x27017438: mov edx, dword ptr [ecx + 0x58] */ 2232 MEM32(eax + 0x58) = edx; /* 0x2701743B: mov dword ptr [eax + 0x58], edx */ 2233 edx = MEM32(ecx + 0x5C); /* 0x2701743E: mov edx, dword ptr [ecx + 0x5c] */ 2234 MEM32(eax + 0x5C) = edx; /* 0x27017441: mov dword ptr [eax + 0x5c], edx */ 2235 edx = MEM32(ecx + 0x60); /* 0x27017444: mov edx, dword ptr [ecx + 0x60] */ 2236 MEM32(eax + 0x60) = edx; /* 0x27017447: mov dword ptr [eax + 0x60], edx */ 2237 edx = MEM32(ecx + 0x64); /* 0x2701744A: mov edx, dword ptr [ecx + 0x64] */ 2238 MEM32(eax + 0x64) = edx; /* 0x2701744D: mov dword ptr [eax + 0x64], edx */ 2239 edx = MEM32(ecx + 0x68); /* 0x27017450: mov edx, dword ptr [ecx + 0x68] */ 2240 MEM32(eax + 0x68) = edx; /* 0x27017453: mov dword ptr [eax + 0x68], edx */ 2241 edx = MEM32(ecx + 0x6C); /* 0x27017456: mov edx, dword ptr [ecx + 0x6c] */ 2242 MEM32(eax + 0x6C) = edx; /* 0x27017459: mov dword ptr [eax + 0x6c], edx */ 2243 ecx = MEM32(ecx + 0x70); /* 0x2701745C: mov ecx, dword ptr [ecx + 0x70] */ 2244 edi = POP32_VAL(esp); /* 0x2701745F: pop edi */ 2245 MEM32(eax + 0x70) = ecx; /* 0x27017460: mov dword ptr [eax + 0x70], ecx */ 2246 esi = POP32_VAL(esp); /* 0x27017463: pop esi */ 2247 ebp = POP32_VAL(esp); /* 0x27017464: pop ebp */ 2248 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27017465: ret 4 */ 2249 RECOMP_REGS_OUT(); 2250 } 2251 2252 void sub_27017470(void) { 2253 int _fpu_cmp = 0; 2254 uint32_t _cf = 0; 2255 int _df = 1; 2256 uint32_t _flag_k = FK_NONE; 2257 uint32_t _flag_a = 0, _flag_b = 0; 2258 uint32_t _itail_tgt = 0; 2259 RECOMP_REGS_LOCALS 2260 RECOMP_ENTER(0x27017470u); 2261 2262 L_27017470: 2263 PUSH32(esp, ebp); /* 0x27017470: push ebp */ 2264 ebp = esp; /* 0x27017471: mov ebp, esp */ 2265 PUSH32(esp, ebx); /* 0x27017473: push ebx */ 2266 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x27017474: mov bl, byte ptr [ebp + 8] */ 2267 /* test LO8(ebx), 2 */ /* 0x27017477: test bl, 2 */ 2268 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2269 _cf = 0; 2270 _flag_k = FK_NARROW(FK_TEST, 24); 2271 PUSH32(esp, esi); /* 0x2701747A: push esi */ 2272 esi = ecx; /* 0x2701747B: mov esi, ecx */ 2273 if (TEST_Z(_flag_a, _flag_b)) goto L_270174AB; /* 0x2701747D: je 0x270174ab */ 2274 L_2701747F: 2275 eax = MEM32(esi + (-0x4)); /* 0x2701747F: mov eax, dword ptr [esi - 4] */ 2276 PUSH32(esp, edi); /* 0x27017482: push edi */ 2277 PUSH32(esp, 0x27017600u); /* 0x27017483: push 0x27017600 */ 2278 edi = esi + (-0x4); /* 0x27017488: lea edi, [esi - 4] */ 2279 PUSH32(esp, eax); /* 0x2701748B: push eax */ 2280 PUSH32(esp, 0x74u); /* 0x2701748C: push 0x74 */ 2281 PUSH32(esp, esi); /* 0x2701748E: push esi */ 2282 RECOMP_ICALL(0x27026DB0u); /* 0x2701748F: call 0x27026db0 */ /* not lifted */ 2283 RECOMP_FLAGS_IN(); 2284 /* test LO8(ebx), 1 */ /* 0x27017494: test bl, 1 */ 2285 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2286 _cf = 0; 2287 _flag_k = FK_NARROW(FK_TEST, 24); 2288 if (TEST_Z(_flag_a, _flag_b)) goto L_270174A2; /* 0x27017497: je 0x270174a2 */ 2289 L_27017499: 2290 PUSH32(esp, edi); /* 0x27017499: push edi */ 2291 RECOMP_ICALL(0x27026DA4u); /* 0x2701749A: call 0x27026da4 */ /* not lifted */ 2292 RECOMP_FLAGS_IN(); 2293 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2294 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2295 esp = esp + 4; /* 0x2701749F: add esp, 4 */ 2296 _flag_k = FK_ADD; 2297 L_270174A2: 2298 eax = edi; /* 0x270174A2: mov eax, edi */ 2299 edi = POP32_VAL(esp); /* 0x270174A4: pop edi */ 2300 esi = POP32_VAL(esp); /* 0x270174A5: pop esi */ 2301 ebx = POP32_VAL(esp); /* 0x270174A6: pop ebx */ 2302 ebp = POP32_VAL(esp); /* 0x270174A7: pop ebp */ 2303 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270174A8: ret 4 */ 2304 L_270174AB: 2305 ecx = esi; /* 0x270174AB: mov ecx, esi */ 2306 RECOMP_ICALL(0x27017600u); /* 0x270174AD: call 0x27017600 */ /* not lifted */ 2307 RECOMP_FLAGS_IN(); 2308 /* test LO8(ebx), 1 */ /* 0x270174B2: test bl, 1 */ 2309 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2310 _cf = 0; 2311 _flag_k = FK_NARROW(FK_TEST, 24); 2312 if (TEST_Z(_flag_a, _flag_b)) goto L_270174C0; /* 0x270174B5: je 0x270174c0 */ 2313 L_270174B7: 2314 PUSH32(esp, esi); /* 0x270174B7: push esi */ 2315 RECOMP_ICALL(0x27026DA4u); /* 0x270174B8: call 0x27026da4 */ /* not lifted */ 2316 RECOMP_FLAGS_IN(); 2317 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2319 esp = esp + 4; /* 0x270174BD: add esp, 4 */ 2320 _flag_k = FK_ADD; 2321 L_270174C0: 2322 eax = esi; /* 0x270174C0: mov eax, esi */ 2323 esi = POP32_VAL(esp); /* 0x270174C2: pop esi */ 2324 ebx = POP32_VAL(esp); /* 0x270174C3: pop ebx */ 2325 ebp = POP32_VAL(esp); /* 0x270174C4: pop ebp */ 2326 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270174C5: ret 4 */ 2327 RECOMP_REGS_OUT(); 2328 } 2329 2330 void sub_270174D0(void) { 2331 int _fpu_cmp = 0; 2332 uint32_t _cf = 0; 2333 int _df = 1; 2334 uint32_t _flag_k = FK_NONE; 2335 uint32_t _flag_a = 0, _flag_b = 0; 2336 uint32_t _itail_tgt = 0; 2337 RECOMP_REGS_LOCALS 2338 RECOMP_ENTER(0x270174D0u); 2339 2340 L_270174D0: 2341 PUSH32(esp, ebp); /* 0x270174D0: push ebp */ 2342 ebp = esp; /* 0x270174D1: mov ebp, esp */ 2343 PUSH32(esp, 0xFFFFFFFFu); /* 0x270174D3: push -1 */ 2344 PUSH32(esp, 0x27027C5Eu); /* 0x270174D5: push 0x27027c5e */ 2345 eax = MEM32(FS_BASE + (0)); /* 0x270174DA: mov eax, dword ptr fs:[0] */ 2346 PUSH32(esp, eax); /* 0x270174E0: push eax */ 2347 MEM32(FS_BASE + (0)) = esp; /* 0x270174E1: mov dword ptr fs:[0], esp */ 2348 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2350 esp = esp - 0x14u; /* 0x270174E8: sub esp, 0x14 */ 2351 _flag_k = FK_CMP; 2352 PUSH32(esp, ebx); /* 0x270174EB: push ebx */ 2353 PUSH32(esp, esi); /* 0x270174EC: push esi */ 2354 PUSH32(esp, edi); /* 0x270174ED: push edi */ 2355 edi = MEM32(ebp + 0x2C); /* 0x270174EE: mov edi, dword ptr [ebp + 0x2c] */ 2356 esi = ecx; /* 0x270174F1: mov esi, ecx */ 2357 PUSH32(esp, edi); /* 0x270174F3: push edi */ 2358 MEM32(ebp + (-0x10)) = esi; /* 0x270174F4: mov dword ptr [ebp - 0x10], esi */ 2359 RECOMP_ICALL(0x270104B0u); /* 0x270174F7: call 0x270104b0 */ /* not lifted */ 2360 RECOMP_FLAGS_IN(); 2361 eax = MEM32(ebp + 0x8); /* 0x270174FC: mov eax, dword ptr [ebp + 8] */ 2362 ecx = MEM32(ebp + 0xC); /* 0x270174FF: mov ecx, dword ptr [ebp + 0xc] */ 2363 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2364 ebx = 0; /* 0x27017502: xor ebx, ebx */ 2365 _cf = 0; 2366 _flag_k = FK_TEST; 2367 PUSH32(esp, 0x38u); /* 0x27017504: push 0x38 */ 2368 MEM32(ebp + (-0x4)) = ebx; /* 0x27017506: mov dword ptr [ebp - 4], ebx */ 2369 MEM32(esi) = 0x2703447Cu; /* 0x27017509: mov dword ptr [esi], 0x2703447c */ 2370 MEM32(ebp + (-0x18)) = eax; /* 0x2701750F: mov dword ptr [ebp - 0x18], eax */ 2371 MEM32(ebp + (-0x14)) = ecx; /* 0x27017512: mov dword ptr [ebp - 0x14], ecx */ 2372 RECOMP_ICALL(0x27026EA4u); /* 0x27017515: call 0x27026ea4 */ /* not lifted */ 2373 RECOMP_FLAGS_IN(); 2374 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2376 esp = esp + 4; /* 0x2701751A: add esp, 4 */ 2377 _flag_k = FK_ADD; 2378 MEM32(ebp + 0x2C) = eax; /* 0x2701751D: mov dword ptr [ebp + 0x2c], eax */ 2379 /* cmp eax, ebx */ /* 0x27017520: cmp eax, ebx */ 2380 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2382 _flag_k = FK_CMP; 2383 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x27017522: mov byte ptr [ebp - 4], 1 */ 2384 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701753E; /* 0x27017526: je 0x2701753e */ 2385 L_27017528: 2386 edx = MEM32(ebp + 0x1C); /* 0x27017528: mov edx, dword ptr [ebp + 0x1c] */ 2387 ecx = MEM32(ebp + 0x18); /* 0x2701752B: mov ecx, dword ptr [ebp + 0x18] */ 2388 PUSH32(esp, edi); /* 0x2701752E: push edi */ 2389 PUSH32(esp, edx); /* 0x2701752F: push edx */ 2390 PUSH32(esp, ecx); /* 0x27017530: push ecx */ 2391 edx = ebp + (-0x18); /* 0x27017531: lea edx, [ebp - 0x18] */ 2392 PUSH32(esp, edx); /* 0x27017534: push edx */ 2393 ecx = eax; /* 0x27017535: mov ecx, eax */ 2394 RECOMP_ICALL(0x2701C720u); /* 0x27017537: call 0x2701c720 */ /* not lifted */ 2395 RECOMP_FLAGS_IN(); 2396 goto L_27017540; /* 0x2701753C: jmp 0x27017540 */ 2397 L_2701753E: 2398 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2399 eax = 0; /* 0x2701753E: xor eax, eax */ 2400 _cf = 0; 2401 _flag_k = FK_TEST; 2402 L_27017540: 2403 ecx = ebp + (-0x20); /* 0x27017540: lea ecx, [ebp - 0x20] */ 2404 PUSH32(esp, ecx); /* 0x27017543: push ecx */ 2405 ecx = eax; /* 0x27017544: mov ecx, eax */ 2406 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x27017546: mov byte ptr [ebp - 4], bl */ 2407 MEM32(esi + 0x5C) = eax; /* 0x27017549: mov dword ptr [esi + 0x5c], eax */ 2408 MEM32(ebp + (-0x20)) = ebx; /* 0x2701754C: mov dword ptr [ebp - 0x20], ebx */ 2409 MEM32(ebp + (-0x1C)) = ebx; /* 0x2701754F: mov dword ptr [ebp - 0x1c], ebx */ 2410 RECOMP_ICALL(0x2701CB60u); /* 0x27017552: call 0x2701cb60 */ /* not lifted */ 2411 RECOMP_FLAGS_IN(); 2412 eax = MEM32(ebp + (-0x1C)); /* 0x27017557: mov eax, dword ptr [ebp - 0x1c] */ 2413 edx = MEM32(ebp + (-0x20)); /* 0x2701755A: mov edx, dword ptr [ebp - 0x20] */ 2414 MEM32(esi + 0x70) = eax; /* 0x2701755D: mov dword ptr [esi + 0x70], eax */ 2415 /* cmp MEM32(ebp + 0x14), ebx */ /* 0x27017560: cmp dword ptr [ebp + 0x14], ebx */ 2416 _flag_a = (uint32_t)(MEM32(ebp + 0x14)); _flag_b = (uint32_t)(ebx); 2417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2418 _flag_k = FK_CMP; 2419 MEM32(esi + 0x6C) = edx; /* 0x27017563: mov dword ptr [esi + 0x6c], edx */ 2420 MEM32(esi + 0x60) = ebx; /* 0x27017566: mov dword ptr [esi + 0x60], ebx */ 2421 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701759E; /* 0x27017569: je 0x2701759e */ 2422 L_2701756B: 2423 PUSH32(esp, 0x38u); /* 0x2701756B: push 0x38 */ 2424 RECOMP_ICALL(0x27026EA4u); /* 0x2701756D: call 0x27026ea4 */ /* not lifted */ 2425 RECOMP_FLAGS_IN(); 2426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2428 esp = esp + 4; /* 0x27017572: add esp, 4 */ 2429 _flag_k = FK_ADD; 2430 MEM32(ebp + 0x2C) = eax; /* 0x27017575: mov dword ptr [ebp + 0x2c], eax */ 2431 /* cmp eax, ebx */ /* 0x27017578: cmp eax, ebx */ 2432 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2434 _flag_k = FK_CMP; 2435 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2701757A: mov byte ptr [ebp - 4], 2 */ 2436 if (CMP_EQ(_flag_a, _flag_b)) goto L_27017596; /* 0x2701757E: je 0x27017596 */ 2437 L_27017580: 2438 ecx = MEM32(ebp + 0x1C); /* 0x27017580: mov ecx, dword ptr [ebp + 0x1c] */ 2439 edx = MEM32(ebp + 0x14); /* 0x27017583: mov edx, dword ptr [ebp + 0x14] */ 2440 PUSH32(esp, edi); /* 0x27017586: push edi */ 2441 PUSH32(esp, ecx); /* 0x27017587: push ecx */ 2442 PUSH32(esp, edx); /* 0x27017588: push edx */ 2443 ecx = ebp + (-0x18); /* 0x27017589: lea ecx, [ebp - 0x18] */ 2444 PUSH32(esp, ecx); /* 0x2701758C: push ecx */ 2445 ecx = eax; /* 0x2701758D: mov ecx, eax */ 2446 RECOMP_ICALL(0x2701C720u); /* 0x2701758F: call 0x2701c720 */ /* not lifted */ 2447 RECOMP_FLAGS_IN(); 2448 goto L_27017598; /* 0x27017594: jmp 0x27017598 */ 2449 L_27017596: 2450 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2451 eax = 0; /* 0x27017596: xor eax, eax */ 2452 _cf = 0; 2453 _flag_k = FK_TEST; 2454 L_27017598: 2455 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x27017598: mov byte ptr [ebp - 4], bl */ 2456 MEM32(esi + 0x60) = eax; /* 0x2701759B: mov dword ptr [esi + 0x60], eax */ 2457 L_2701759E: 2458 eax = MEM32(ebp + 0x20); /* 0x2701759E: mov eax, dword ptr [ebp + 0x20] */ 2459 edx = MEM32(ebp + 0x10); /* 0x270175A1: mov edx, dword ptr [ebp + 0x10] */ 2460 PUSH32(esp, eax); /* 0x270175A4: push eax */ 2461 ecx = esi; /* 0x270175A5: mov ecx, esi */ 2462 MEM32(esi + 0x58) = edx; /* 0x270175A7: mov dword ptr [esi + 0x58], edx */ 2463 MEM32(esi + 0x54) = ebx; /* 0x270175AA: mov dword ptr [esi + 0x54], ebx */ 2464 RECOMP_ICALL(0x27017690u); /* 0x270175AD: call 0x27017690 */ /* not lifted */ 2465 RECOMP_FLAGS_IN(); 2466 /* cmp MEM8(ebp + 0x28), LO8(ebx) */ /* 0x270175B2: cmp byte ptr [ebp + 0x28], bl */ 2467 _flag_a = (uint32_t)(MEM8(ebp + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2469 _flag_k = FK_NARROW(FK_CMP, 24); 2470 if (CMP_EQ(_flag_a, _flag_b)) goto L_270175CF; /* 0x270175B5: je 0x270175cf */ 2471 L_270175B7: 2472 ecx = MEM32(ebp + 0x1C); /* 0x270175B7: mov ecx, dword ptr [ebp + 0x1c] */ 2473 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 2474 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2475 ecx = ecx + 5; /* 0x270175BA: add ecx, 5 */ 2476 _flag_k = FK_ADD; 2477 PUSH32(esp, ecx); /* 0x270175BD: push ecx */ 2478 ecx = esi; /* 0x270175BE: mov ecx, esi */ 2479 MEM32(esi + 0x10) = 0x27017910u; /* 0x270175C0: mov dword ptr [esi + 0x10], 0x27017910 */ 2480 MEM32(esi + 0x14) = esi; /* 0x270175C7: mov dword ptr [esi + 0x14], esi */ 2481 RECOMP_ICALL(0x270105B0u); /* 0x270175CA: call 0x270105b0 */ /* not lifted */ 2482 RECOMP_FLAGS_IN(); 2483 L_270175CF: 2484 edx = MEM32(ebp + (-0x14)); /* 0x270175CF: mov edx, dword ptr [ebp - 0x14] */ 2485 eax = MEM32(ebp + (-0x18)); /* 0x270175D2: mov eax, dword ptr [ebp - 0x18] */ 2486 PUSH32(esp, edx); /* 0x270175D5: push edx */ 2487 PUSH32(esp, eax); /* 0x270175D6: push eax */ 2488 ecx = esi; /* 0x270175D7: mov ecx, esi */ 2489 RECOMP_ICALL(0x270178B0u); /* 0x270175D9: call 0x270178b0 */ /* not lifted */ 2490 RECOMP_FLAGS_IN(); 2491 ecx = MEM32(ebp + (-0xC)); /* 0x270175DE: mov ecx, dword ptr [ebp - 0xc] */ 2492 edi = POP32_VAL(esp); /* 0x270175E1: pop edi */ 2493 eax = esi; /* 0x270175E2: mov eax, esi */ 2494 esi = POP32_VAL(esp); /* 0x270175E4: pop esi */ 2495 ebx = POP32_VAL(esp); /* 0x270175E5: pop ebx */ 2496 MEM32(FS_BASE + (0)) = ecx; /* 0x270175E6: mov dword ptr fs:[0], ecx */ 2497 esp = ebp; /* 0x270175ED: mov esp, ebp */ 2498 ebp = POP32_VAL(esp); /* 0x270175EF: pop ebp */ 2499 RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x270175F0: ret 0x28 */ 2500 RECOMP_REGS_OUT(); 2501 } 2502 2503 void sub_27017600(void) { 2504 int _fpu_cmp = 0; 2505 uint32_t _cf = 0; 2506 int _df = 1; 2507 uint32_t _flag_k = FK_NONE; 2508 uint32_t _flag_a = 0, _flag_b = 0; 2509 uint32_t _itail_tgt = 0; 2510 RECOMP_REGS_LOCALS 2511 RECOMP_ENTER(0x27017600u); 2512 2513 L_27017600: 2514 PUSH32(esp, ebp); /* 0x27017600: push ebp */ 2515 ebp = esp; /* 0x27017601: mov ebp, esp */ 2516 PUSH32(esp, 0xFFFFFFFFu); /* 0x27017603: push -1 */ 2517 PUSH32(esp, 0x27027C78u); /* 0x27017605: push 0x27027c78 */ 2518 eax = MEM32(FS_BASE + (0)); /* 0x2701760A: mov eax, dword ptr fs:[0] */ 2519 PUSH32(esp, eax); /* 0x27017610: push eax */ 2520 MEM32(FS_BASE + (0)) = esp; /* 0x27017611: mov dword ptr fs:[0], esp */ 2521 PUSH32(esp, ecx); /* 0x27017618: push ecx */ 2522 PUSH32(esp, esi); /* 0x27017619: push esi */ 2523 esi = ecx; /* 0x2701761A: mov esi, ecx */ 2524 MEM32(ebp + (-0x10)) = esi; /* 0x2701761C: mov dword ptr [ebp - 0x10], esi */ 2525 MEM32(esi) = 0x2703447Cu; /* 0x2701761F: mov dword ptr [esi], 0x2703447c */ 2526 ecx = MEM32(esi + 0x5C); /* 0x27017625: mov ecx, dword ptr [esi + 0x5c] */ 2527 /* test ecx, ecx */ /* 0x27017628: test ecx, ecx */ 2528 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2529 _cf = 0; 2530 _flag_k = FK_TEST; 2531 MEM32(ebp + (-0x4)) = 0; /* 0x2701762A: mov dword ptr [ebp - 4], 0 */ 2532 if (TEST_Z(_flag_a, _flag_b)) goto L_27017639; /* 0x27017631: je 0x27017639 */ 2533 L_27017633: 2534 eax = MEM32(ecx); /* 0x27017633: mov eax, dword ptr [ecx] */ 2535 PUSH32(esp, 1); /* 0x27017635: push 1 */ 2536 RECOMP_ICALL(MEM32(eax)); /* 0x27017637: call dword ptr [eax] */ 2537 RECOMP_FLAGS_IN(); 2538 L_27017639: 2539 ecx = MEM32(esi + 0x60); /* 0x27017639: mov ecx, dword ptr [esi + 0x60] */ 2540 /* test ecx, ecx */ /* 0x2701763C: test ecx, ecx */ 2541 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2542 _cf = 0; 2543 _flag_k = FK_TEST; 2544 if (TEST_Z(_flag_a, _flag_b)) goto L_27017646; /* 0x2701763E: je 0x27017646 */ 2545 L_27017640: 2546 edx = MEM32(ecx); /* 0x27017640: mov edx, dword ptr [ecx] */ 2547 PUSH32(esp, 1); /* 0x27017642: push 1 */ 2548 RECOMP_ICALL(MEM32(edx)); /* 0x27017644: call dword ptr [edx] */ 2549 RECOMP_FLAGS_IN(); 2550 L_27017646: 2551 ecx = esi; /* 0x27017646: mov ecx, esi */ 2552 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27017648: mov dword ptr [ebp - 4], 0xffffffff */ 2553 RECOMP_ICALL(0x27010510u); /* 0x2701764F: call 0x27010510 */ /* not lifted */ 2554 RECOMP_FLAGS_IN(); 2555 ecx = MEM32(ebp + (-0xC)); /* 0x27017654: mov ecx, dword ptr [ebp - 0xc] */ 2556 esi = POP32_VAL(esp); /* 0x27017657: pop esi */ 2557 MEM32(FS_BASE + (0)) = ecx; /* 0x27017658: mov dword ptr fs:[0], ecx */ 2558 esp = ebp; /* 0x2701765F: mov esp, ebp */ 2559 ebp = POP32_VAL(esp); /* 0x27017661: pop ebp */ 2560 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017662: ret */ 2561 RECOMP_REGS_OUT(); 2562 } 2563 2564 void sub_27017670(void) { 2565 int _fpu_cmp = 0; 2566 uint32_t _cf = 0; 2567 int _df = 1; 2568 uint32_t _flag_k = FK_NONE; 2569 uint32_t _flag_a = 0, _flag_b = 0; 2570 uint32_t _itail_tgt = 0; 2571 RECOMP_REGS_LOCALS 2572 RECOMP_ENTER(0x27017670u); 2573 2574 L_27017670: 2575 edx = MEM32(ecx + 0x5C); /* 0x27017670: mov edx, dword ptr [ecx + 0x5c] */ 2576 SET_LO8(eax, 1); /* 0x27017673: mov al, 1 */ 2577 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x27017675: mov byte ptr [edx + 9], al */ 2578 ecx = MEM32(ecx + 0x60); /* 0x27017678: mov ecx, dword ptr [ecx + 0x60] */ 2579 /* test ecx, ecx */ /* 0x2701767B: test ecx, ecx */ 2580 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2581 _cf = 0; 2582 _flag_k = FK_TEST; 2583 if (TEST_Z(_flag_a, _flag_b)) goto L_27017682; /* 0x2701767D: je 0x27017682 */ 2584 L_2701767F: 2585 MEM8(ecx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2701767F: mov byte ptr [ecx + 9], al */ 2586 L_27017682: 2587 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017682: ret */ 2588 RECOMP_REGS_OUT(); 2589 } 2590 2591 void sub_27017690(void) { 2592 int _fpu_cmp = 0; 2593 uint32_t _cf = 0; 2594 int _df = 1; 2595 uint32_t _flag_k = FK_NONE; 2596 uint32_t _flag_a = 0, _flag_b = 0; 2597 uint32_t _itail_tgt = 0; 2598 RECOMP_REGS_LOCALS 2599 RECOMP_ENTER(0x27017690u); 2600 2601 L_27017690: 2602 PUSH32(esp, ebp); /* 0x27017690: push ebp */ 2603 ebp = esp; /* 0x27017691: mov ebp, esp */ 2604 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x27017693: fld dword ptr [ebp + 8] */ 2605 PUSH32(esp, esi); /* 0x27017696: push esi */ 2606 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x270344A0)); /* 0x27017697: fcom qword ptr [0x270344a0] */ 2607 esi = ecx; /* 0x2701769D: mov esi, ecx */ 2608 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2701769F: fnstsw ax */ 2609 /* test HI8(eax), 1 */ /* 0x270176A1: test ah, 1 */ 2610 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2611 _cf = 0; 2612 _flag_k = FK_NARROW(FK_TEST, 24); 2613 if (TEST_Z(_flag_a, _flag_b)) goto L_270176B0; /* 0x270176A4: je 0x270176b0 */ 2614 L_270176A6: 2615 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x270176A6: fstp st(0) */ 2616 fp_push(*(float*)&MEM32(0x2703449C)); /* 0x270176A8: fld dword ptr [0x2703449c] */ 2617 goto L_270176C5; /* 0x270176AE: jmp 0x270176c5 */ 2618 L_270176B0: 2619 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x27034398)); /* 0x270176B0: fcom qword ptr [0x27034398] */ 2620 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x270176B6: fnstsw ax */ 2621 /* test HI8(eax), 0x41u */ /* 0x270176B8: test ah, 0x41 */ 2622 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2623 _cf = 0; 2624 _flag_k = FK_NARROW(FK_TEST, 24); 2625 if (TEST_NZ(_flag_a, _flag_b)) goto L_270176C5; /* 0x270176BB: jne 0x270176c5 */ 2626 L_270176BD: 2627 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x270176BD: fstp st(0) */ 2628 fp_push(*(float*)&MEM32(0x270343A8)); /* 0x270176BF: fld dword ptr [0x270343a8] */ 2629 L_270176C5: 2630 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x54)); /* 0x270176C5: fcom dword ptr [esi + 0x54] */ 2631 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x270176C8: fnstsw ax */ 2632 /* test HI8(eax), 0x40u */ /* 0x270176CA: test ah, 0x40 */ 2633 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 2634 _cf = 0; 2635 _flag_k = FK_NARROW(FK_TEST, 24); 2636 if (TEST_NZ(_flag_a, _flag_b)) goto L_270176E5; /* 0x270176CD: jne 0x270176e5 */ 2637 L_270176CF: 2638 ecx = esi; /* 0x270176CF: mov ecx, esi */ 2639 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x54) = _v; } /* 0x270176D1: fstp dword ptr [esi + 0x54] */ 2640 RECOMP_ICALL(0x270176F0u); /* 0x270176D4: call 0x270176f0 */ /* not lifted */ 2641 RECOMP_FLAGS_IN(); 2642 ecx = esi; /* 0x270176D9: mov ecx, esi */ 2643 RECOMP_ICALL(0x27017670u); /* 0x270176DB: call 0x27017670 */ /* not lifted */ 2644 RECOMP_FLAGS_IN(); 2645 esi = POP32_VAL(esp); /* 0x270176E0: pop esi */ 2646 ebp = POP32_VAL(esp); /* 0x270176E1: pop ebp */ 2647 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270176E2: ret 4 */ 2648 L_270176E5: 2649 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x270176E5: fstp st(0) */ 2650 esi = POP32_VAL(esp); /* 0x270176E7: pop esi */ 2651 ebp = POP32_VAL(esp); /* 0x270176E8: pop ebp */ 2652 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270176E9: ret 4 */ 2653 RECOMP_REGS_OUT(); 2654 } 2655 2656 void sub_270176F0(void) { 2657 int _fpu_cmp = 0; 2658 uint32_t _cf = 0; 2659 int _df = 1; 2660 uint32_t _flag_k = FK_NONE; 2661 uint32_t _flag_a = 0, _flag_b = 0; 2662 uint32_t _itail_tgt = 0; 2663 RECOMP_REGS_LOCALS 2664 RECOMP_ENTER(0x270176F0u); 2665 2666 L_270176F0: 2667 PUSH32(esp, ebp); /* 0x270176F0: push ebp */ 2668 L_270176F1: 2669 ebp = esp; /* 0x270176F1: mov ebp, esp */ 2670 L_270176F3: 2671 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 2672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2673 esp = esp - 0x18u; /* 0x270176F3: sub esp, 0x18 */ 2674 _flag_k = FK_CMP; 2675 L_270176F6: 2676 PUSH32(esp, esi); /* 0x270176F6: push esi */ 2677 L_270176F7: 2678 esi = ecx; /* 0x270176F7: mov esi, ecx */ 2679 L_270176F9: 2680 eax = MEM32(esi + 0x6C); /* 0x270176F9: mov eax, dword ptr [esi + 0x6c] */ 2681 L_270176FC: 2682 ecx = MEM32(esi + 0x70); /* 0x270176FC: mov ecx, dword ptr [esi + 0x70] */ 2683 L_270176FF: 2684 edx = MEM32(esi + 0x3C); /* 0x270176FF: mov edx, dword ptr [esi + 0x3c] */ 2685 L_27017702: 2686 MEM32(ebp + (-0x8)) = eax; /* 0x27017702: mov dword ptr [ebp - 8], eax */ 2687 L_27017705: 2688 eax = MEM32(esi + 0x40); /* 0x27017705: mov eax, dword ptr [esi + 0x40] */ 2689 L_27017708: 2690 MEM32(ebp + (-0x4)) = ecx; /* 0x27017708: mov dword ptr [ebp - 4], ecx */ 2691 L_2701770B: 2692 ecx = MEM32(esi + 0x5C); /* 0x2701770B: mov ecx, dword ptr [esi + 0x5c] */ 2693 L_2701770E: 2694 PUSH32(esp, edi); /* 0x2701770E: push edi */ 2695 L_2701770F: 2696 MEM32(ebp + (-0x10)) = edx; /* 0x2701770F: mov dword ptr [ebp - 0x10], edx */ 2697 L_27017712: 2698 MEM32(ebp + (-0xC)) = eax; /* 0x27017712: mov dword ptr [ebp - 0xc], eax */ 2699 L_27017715: 2700 MEM32(ebp + (-0x18)) = 0; /* 0x27017715: mov dword ptr [ebp - 0x18], 0 */ 2701 L_2701771C: 2702 MEM32(ebp + (-0x14)) = 0; /* 0x2701771C: mov dword ptr [ebp - 0x14], 0 */ 2703 L_27017723: 2704 RECOMP_ICALL(0x2701CB40u); /* 0x27017723: call 0x2701cb40 */ /* not lifted */ 2705 RECOMP_FLAGS_IN(); 2706 L_27017728: 2707 ecx = MEM32(esi + 0x60); /* 0x27017728: mov ecx, dword ptr [esi + 0x60] */ 2708 L_2701772B: 2709 /* test ecx, ecx */ /* 0x2701772B: test ecx, ecx */ 2710 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2711 _cf = 0; 2712 _flag_k = FK_TEST; 2713 L_2701772D: 2714 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_27017734; /* 0x2701772D: je 0x27017734 */ 2715 L_2701772F: 2716 RECOMP_ICALL(0x2701CB40u); /* 0x2701772F: call 0x2701cb40 */ /* not lifted */ 2717 RECOMP_FLAGS_IN(); 2718 L_27017734: 2719 eax = MEM32(esi + 0x58); /* 0x27017734: mov eax, dword ptr [esi + 0x58] */ 2720 L_27017737: 2721 /* cmp eax, 3 */ /* 0x27017737: cmp eax, 3 */ 2722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 2723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2724 _flag_k = FK_CMP; 2725 L_2701773A: 2726 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_2701788F; /* 0x2701773A: ja 0x2701788f */ 2727 L_27017740: 2728 { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x27017898)); goto _ljump; } 2729 L_27017747: 2730 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x27017747: fild dword ptr [ebp - 4] */ 2731 L_2701774A: 2732 _st[0] *= (double)*(float*)ADDR(esi + 0x54); /* 0x2701774A: fmul dword ptr [esi + 0x54] */ 2733 L_2701774D: 2734 RECOMP_ICALL(0x27026ED2u); /* 0x2701774D: call 0x27026ed2 */ /* not lifted */ 2735 RECOMP_FLAGS_IN(); 2736 L_27017752: 2737 edi = MEM32(ebp + (-0x4)); /* 0x27017752: mov edi, dword ptr [ebp - 4] */ 2738 L_27017755: 2739 ecx = ebp + (-0x8); /* 0x27017755: lea ecx, [ebp - 8] */ 2740 L_27017758: 2741 PUSH32(esp, ecx); /* 0x27017758: push ecx */ 2742 L_27017759: 2743 ecx = MEM32(esi + 0x5C); /* 0x27017759: mov ecx, dword ptr [esi + 0x5c] */ 2744 L_2701775C: 2745 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2747 edi = edi - eax; /* 0x2701775C: sub edi, eax */ 2748 _flag_k = FK_CMP; 2749 L_2701775E: 2750 MEM32(ebp + (-0x4)) = eax; /* 0x2701775E: mov dword ptr [ebp - 4], eax */ 2751 L_27017761: 2752 RECOMP_ICALL(0x2701CB00u); /* 0x27017761: call 0x2701cb00 */ /* not lifted */ 2753 RECOMP_FLAGS_IN(); 2754 L_27017766: 2755 eax = MEM32(ebp + (-0x4)); /* 0x27017766: mov eax, dword ptr [ebp - 4] */ 2756 L_27017769: 2757 _flag_a = (uint32_t)(MEM32(ebp + (-0xC))); _flag_b = (uint32_t)(eax); 2758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2759 MEM32(ebp + (-0xC)) = MEM32(ebp + (-0xC)) + eax; /* 0x27017769: add dword ptr [ebp - 0xc], eax */ 2760 _flag_k = FK_ADD; 2761 L_2701776C: 2762 MEM32(ebp + (-0x14)) = eax; /* 0x2701776C: mov dword ptr [ebp - 0x14], eax */ 2763 L_2701776F: 2764 MEM32(ebp + (-0x4)) = edi; /* 0x2701776F: mov dword ptr [ebp - 4], edi */ 2765 L_27017772: 2766 goto L_270177A8; /* 0x27017772: jmp 0x270177a8 */ 2767 L_27017774: 2768 edi = MEM32(esi + 0x6C); /* 0x27017774: mov edi, dword ptr [esi + 0x6c] */ 2769 L_27017777: 2770 edx = MEM32(esi + 0x70); /* 0x27017777: mov edx, dword ptr [esi + 0x70] */ 2771 L_2701777A: 2772 MEM32(ebp + (-0x8)) = edi; /* 0x2701777A: mov dword ptr [ebp - 8], edi */ 2773 L_2701777D: 2774 fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x2701777D: fild dword ptr [ebp - 8] */ 2775 L_27017780: 2776 MEM32(ebp + (-0x4)) = edx; /* 0x27017780: mov dword ptr [ebp - 4], edx */ 2777 L_27017783: 2778 _st[0] *= (double)*(float*)ADDR(esi + 0x54); /* 0x27017783: fmul dword ptr [esi + 0x54] */ 2779 L_27017786: 2780 RECOMP_ICALL(0x27026ED2u); /* 0x27017786: call 0x27026ed2 */ /* not lifted */ 2781 RECOMP_FLAGS_IN(); 2782 L_2701778B: 2783 ecx = MEM32(esi + 0x5C); /* 0x2701778B: mov ecx, dword ptr [esi + 0x5c] */ 2784 L_2701778E: 2785 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2787 edi = edi - eax; /* 0x2701778E: sub edi, eax */ 2788 _flag_k = FK_CMP; 2789 L_27017790: 2790 MEM32(ebp + (-0x8)) = eax; /* 0x27017790: mov dword ptr [ebp - 8], eax */ 2791 L_27017793: 2792 eax = ebp + (-0x8); /* 0x27017793: lea eax, [ebp - 8] */ 2793 L_27017796: 2794 PUSH32(esp, eax); /* 0x27017796: push eax */ 2795 L_27017797: 2796 RECOMP_ICALL(0x2701CB00u); /* 0x27017797: call 0x2701cb00 */ /* not lifted */ 2797 RECOMP_FLAGS_IN(); 2798 L_2701779C: 2799 eax = MEM32(ebp + (-0x8)); /* 0x2701779C: mov eax, dword ptr [ebp - 8] */ 2800 L_2701779F: 2801 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(eax); 2802 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2803 MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) + eax; /* 0x2701779F: add dword ptr [ebp - 0x10], eax */ 2804 _flag_k = FK_ADD; 2805 L_270177A2: 2806 MEM32(ebp + (-0x18)) = eax; /* 0x270177A2: mov dword ptr [ebp - 0x18], eax */ 2807 L_270177A5: 2808 MEM32(ebp + (-0x8)) = edi; /* 0x270177A5: mov dword ptr [ebp - 8], edi */ 2809 L_270177A8: 2810 ecx = MEM32(esi + 0x60); /* 0x270177A8: mov ecx, dword ptr [esi + 0x60] */ 2811 L_270177AB: 2812 /* test ecx, ecx */ /* 0x270177AB: test ecx, ecx */ 2813 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2814 _cf = 0; 2815 _flag_k = FK_TEST; 2816 L_270177AD: 2817 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2701788F; /* 0x270177AD: je 0x2701788f */ 2818 L_270177B3: 2819 edx = ebp + (-0x18); /* 0x270177B3: lea edx, [ebp - 0x18] */ 2820 L_270177B6: 2821 PUSH32(esp, edx); /* 0x270177B6: push edx */ 2822 L_270177B7: 2823 RECOMP_ICALL(0x2701CAD0u); /* 0x270177B7: call 0x2701cad0 */ /* not lifted */ 2824 RECOMP_FLAGS_IN(); 2825 L_270177BC: 2826 ecx = MEM32(esi + 0x60); /* 0x270177BC: mov ecx, dword ptr [esi + 0x60] */ 2827 L_270177BF: 2828 eax = ebp + (-0x8); /* 0x270177BF: lea eax, [ebp - 8] */ 2829 L_270177C2: 2830 PUSH32(esp, eax); /* 0x270177C2: push eax */ 2831 L_270177C3: 2832 RECOMP_ICALL(0x2701CB00u); /* 0x270177C3: call 0x2701cb00 */ /* not lifted */ 2833 RECOMP_FLAGS_IN(); 2834 L_270177C8: 2835 ecx = ebp + (-0x10); /* 0x270177C8: lea ecx, [ebp - 0x10] */ 2836 L_270177CB: 2837 PUSH32(esp, ecx); /* 0x270177CB: push ecx */ 2838 L_270177CC: 2839 ecx = MEM32(esi + 0x60); /* 0x270177CC: mov ecx, dword ptr [esi + 0x60] */ 2840 L_270177CF: 2841 RECOMP_ICALL(0x2701CAB0u); /* 0x270177CF: call 0x2701cab0 */ /* not lifted */ 2842 RECOMP_FLAGS_IN(); 2843 L_270177D4: 2844 edi = POP32_VAL(esp); /* 0x270177D4: pop edi */ 2845 L_270177D5: 2846 esi = POP32_VAL(esp); /* 0x270177D5: pop esi */ 2847 L_270177D6: 2848 esp = ebp; /* 0x270177D6: mov esp, ebp */ 2849 L_270177D8: 2850 ebp = POP32_VAL(esp); /* 0x270177D8: pop ebp */ 2851 L_270177D9: 2852 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270177D9: ret */ 2853 L_270177DA: 2854 fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x270177DA: fild dword ptr [ebp - 8] */ 2855 L_270177DD: 2856 _st[0] *= (double)*(float*)ADDR(esi + 0x54); /* 0x270177DD: fmul dword ptr [esi + 0x54] */ 2857 L_270177E0: 2858 RECOMP_ICALL(0x27026ED2u); /* 0x270177E0: call 0x27026ed2 */ /* not lifted */ 2859 RECOMP_FLAGS_IN(); 2860 L_270177E5: 2861 ecx = MEM32(ebp + (-0x8)); /* 0x270177E5: mov ecx, dword ptr [ebp - 8] */ 2862 L_270177E8: 2863 edi = eax; /* 0x270177E8: mov edi, eax */ 2864 L_270177EA: 2865 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2867 ecx = ecx - edi; /* 0x270177EA: sub ecx, edi */ 2868 _flag_k = FK_CMP; 2869 L_270177EC: 2870 MEM32(ebp + (-0x8)) = ecx; /* 0x270177EC: mov dword ptr [ebp - 8], ecx */ 2871 L_270177EF: 2872 ecx = MEM32(esi + 0x60); /* 0x270177EF: mov ecx, dword ptr [esi + 0x60] */ 2873 L_270177F2: 2874 /* test ecx, ecx */ /* 0x270177F2: test ecx, ecx */ 2875 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2876 _cf = 0; 2877 _flag_k = FK_TEST; 2878 L_270177F4: 2879 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_270177FF; /* 0x270177F4: je 0x270177ff */ 2880 L_270177F6: 2881 edx = ebp + (-0x8); /* 0x270177F6: lea edx, [ebp - 8] */ 2882 L_270177F9: 2883 PUSH32(esp, edx); /* 0x270177F9: push edx */ 2884 L_270177FA: 2885 RECOMP_ICALL(0x2701CB00u); /* 0x270177FA: call 0x2701cb00 */ /* not lifted */ 2886 RECOMP_FLAGS_IN(); 2887 L_270177FF: 2888 eax = MEM32(ebp + (-0x8)); /* 0x270177FF: mov eax, dword ptr [ebp - 8] */ 2889 L_27017802: 2890 ecx = MEM32(ebp + (-0x10)); /* 0x27017802: mov ecx, dword ptr [ebp - 0x10] */ 2891 L_27017805: 2892 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2893 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2894 ecx = ecx + eax; /* 0x27017805: add ecx, eax */ 2895 _flag_k = FK_ADD; 2896 L_27017807: 2897 MEM32(ebp + (-0x18)) = eax; /* 0x27017807: mov dword ptr [ebp - 0x18], eax */ 2898 L_2701780A: 2899 eax = ebp + (-0x18); /* 0x2701780A: lea eax, [ebp - 0x18] */ 2900 L_2701780D: 2901 MEM32(ebp + (-0x10)) = ecx; /* 0x2701780D: mov dword ptr [ebp - 0x10], ecx */ 2902 L_27017810: 2903 ecx = MEM32(esi + 0x5C); /* 0x27017810: mov ecx, dword ptr [esi + 0x5c] */ 2904 L_27017813: 2905 PUSH32(esp, eax); /* 0x27017813: push eax */ 2906 L_27017814: 2907 MEM32(ebp + (-0x8)) = edi; /* 0x27017814: mov dword ptr [ebp - 8], edi */ 2908 L_27017817: 2909 RECOMP_ICALL(0x2701CAD0u); /* 0x27017817: call 0x2701cad0 */ /* not lifted */ 2910 RECOMP_FLAGS_IN(); 2911 L_2701781C: 2912 ecx = ebp + (-0x8); /* 0x2701781C: lea ecx, [ebp - 8] */ 2913 L_2701781F: 2914 PUSH32(esp, ecx); /* 0x2701781F: push ecx */ 2915 L_27017820: 2916 ecx = MEM32(esi + 0x5C); /* 0x27017820: mov ecx, dword ptr [esi + 0x5c] */ 2917 L_27017823: 2918 RECOMP_ICALL(0x2701CB00u); /* 0x27017823: call 0x2701cb00 */ /* not lifted */ 2919 RECOMP_FLAGS_IN(); 2920 L_27017828: 2921 ecx = MEM32(esi + 0x5C); /* 0x27017828: mov ecx, dword ptr [esi + 0x5c] */ 2922 L_2701782B: 2923 edx = ebp + (-0x10); /* 0x2701782B: lea edx, [ebp - 0x10] */ 2924 L_2701782E: 2925 PUSH32(esp, edx); /* 0x2701782E: push edx */ 2926 L_2701782F: 2927 RECOMP_ICALL(0x2701CAB0u); /* 0x2701782F: call 0x2701cab0 */ /* not lifted */ 2928 RECOMP_FLAGS_IN(); 2929 L_27017834: 2930 edi = POP32_VAL(esp); /* 0x27017834: pop edi */ 2931 L_27017835: 2932 esi = POP32_VAL(esp); /* 0x27017835: pop esi */ 2933 L_27017836: 2934 esp = ebp; /* 0x27017836: mov esp, ebp */ 2935 L_27017838: 2936 ebp = POP32_VAL(esp); /* 0x27017838: pop ebp */ 2937 L_27017839: 2938 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017839: ret */ 2939 L_2701783A: 2940 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701783A: fild dword ptr [ebp - 4] */ 2941 L_2701783D: 2942 _st[0] *= (double)*(float*)ADDR(esi + 0x54); /* 0x2701783D: fmul dword ptr [esi + 0x54] */ 2943 L_27017840: 2944 RECOMP_ICALL(0x27026ED2u); /* 0x27017840: call 0x27026ed2 */ /* not lifted */ 2945 RECOMP_FLAGS_IN(); 2946 L_27017845: 2947 ecx = MEM32(ebp + (-0x4)); /* 0x27017845: mov ecx, dword ptr [ebp - 4] */ 2948 L_27017848: 2949 edi = eax; /* 0x27017848: mov edi, eax */ 2950 L_2701784A: 2951 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2953 ecx = ecx - edi; /* 0x2701784A: sub ecx, edi */ 2954 _flag_k = FK_CMP; 2955 L_2701784C: 2956 MEM32(ebp + (-0x4)) = ecx; /* 0x2701784C: mov dword ptr [ebp - 4], ecx */ 2957 L_2701784F: 2958 ecx = MEM32(esi + 0x60); /* 0x2701784F: mov ecx, dword ptr [esi + 0x60] */ 2959 L_27017852: 2960 /* test ecx, ecx */ /* 0x27017852: test ecx, ecx */ 2961 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2962 _cf = 0; 2963 _flag_k = FK_TEST; 2964 L_27017854: 2965 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2701785F; /* 0x27017854: je 0x2701785f */ 2966 L_27017856: 2967 eax = ebp + (-0x8); /* 0x27017856: lea eax, [ebp - 8] */ 2968 L_27017859: 2969 PUSH32(esp, eax); /* 0x27017859: push eax */ 2970 L_2701785A: 2971 RECOMP_ICALL(0x2701CB00u); /* 0x2701785A: call 0x2701cb00 */ /* not lifted */ 2972 RECOMP_FLAGS_IN(); 2973 L_2701785F: 2974 eax = MEM32(ebp + (-0x4)); /* 0x2701785F: mov eax, dword ptr [ebp - 4] */ 2975 L_27017862: 2976 _flag_a = (uint32_t)(MEM32(ebp + (-0xC))); _flag_b = (uint32_t)(eax); 2977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2978 MEM32(ebp + (-0xC)) = MEM32(ebp + (-0xC)) + eax; /* 0x27017862: add dword ptr [ebp - 0xc], eax */ 2979 _flag_k = FK_ADD; 2980 L_27017865: 2981 ecx = ebp + (-0x18); /* 0x27017865: lea ecx, [ebp - 0x18] */ 2982 L_27017868: 2983 PUSH32(esp, ecx); /* 0x27017868: push ecx */ 2984 L_27017869: 2985 ecx = MEM32(esi + 0x5C); /* 0x27017869: mov ecx, dword ptr [esi + 0x5c] */ 2986 L_2701786C: 2987 MEM32(ebp + (-0x14)) = eax; /* 0x2701786C: mov dword ptr [ebp - 0x14], eax */ 2988 L_2701786F: 2989 MEM32(ebp + (-0x4)) = edi; /* 0x2701786F: mov dword ptr [ebp - 4], edi */ 2990 L_27017872: 2991 RECOMP_ICALL(0x2701CAD0u); /* 0x27017872: call 0x2701cad0 */ /* not lifted */ 2992 RECOMP_FLAGS_IN(); 2993 L_27017877: 2994 ecx = MEM32(esi + 0x5C); /* 0x27017877: mov ecx, dword ptr [esi + 0x5c] */ 2995 L_2701787A: 2996 edx = ebp + (-0x8); /* 0x2701787A: lea edx, [ebp - 8] */ 2997 L_2701787D: 2998 PUSH32(esp, edx); /* 0x2701787D: push edx */ 2999 L_2701787E: 3000 RECOMP_ICALL(0x2701CB00u); /* 0x2701787E: call 0x2701cb00 */ /* not lifted */ 3001 RECOMP_FLAGS_IN(); 3002 L_27017883: 3003 ecx = MEM32(esi + 0x5C); /* 0x27017883: mov ecx, dword ptr [esi + 0x5c] */ 3004 L_27017886: 3005 eax = ebp + (-0x10); /* 0x27017886: lea eax, [ebp - 0x10] */ 3006 L_27017889: 3007 PUSH32(esp, eax); /* 0x27017889: push eax */ 3008 L_2701788A: 3009 RECOMP_ICALL(0x2701CAB0u); /* 0x2701788A: call 0x2701cab0 */ /* not lifted */ 3010 RECOMP_FLAGS_IN(); 3011 L_2701788F: 3012 edi = POP32_VAL(esp); /* 0x2701788F: pop edi */ 3013 L_27017890: 3014 esi = POP32_VAL(esp); /* 0x27017890: pop esi */ 3015 L_27017891: 3016 esp = ebp; /* 0x27017891: mov esp, ebp */ 3017 L_27017893: 3018 ebp = POP32_VAL(esp); /* 0x27017893: pop ebp */ 3019 L_27017894: 3020 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017894: ret */ 3021 _ljump: 3022 switch (_itail_tgt) { 3023 case 0x270176F0u: goto L_270176F0; 3024 case 0x270176F1u: goto L_270176F1; 3025 case 0x270176F3u: goto L_270176F3; 3026 case 0x270176F6u: goto L_270176F6; 3027 case 0x270176F7u: goto L_270176F7; 3028 case 0x270176F9u: goto L_270176F9; 3029 case 0x270176FCu: goto L_270176FC; 3030 case 0x270176FFu: goto L_270176FF; 3031 case 0x27017702u: goto L_27017702; 3032 case 0x27017705u: goto L_27017705; 3033 case 0x27017708u: goto L_27017708; 3034 case 0x2701770Bu: goto L_2701770B; 3035 case 0x2701770Eu: goto L_2701770E; 3036 case 0x2701770Fu: goto L_2701770F; 3037 case 0x27017712u: goto L_27017712; 3038 case 0x27017715u: goto L_27017715; 3039 case 0x2701771Cu: goto L_2701771C; 3040 case 0x27017723u: goto L_27017723; 3041 case 0x27017728u: goto L_27017728; 3042 case 0x2701772Bu: goto L_2701772B; 3043 case 0x2701772Du: goto L_2701772D; 3044 case 0x2701772Fu: goto L_2701772F; 3045 case 0x27017734u: goto L_27017734; 3046 case 0x27017737u: goto L_27017737; 3047 case 0x2701773Au: goto L_2701773A; 3048 case 0x27017740u: goto L_27017740; 3049 case 0x27017747u: goto L_27017747; 3050 case 0x2701774Au: goto L_2701774A; 3051 case 0x2701774Du: goto L_2701774D; 3052 case 0x27017752u: goto L_27017752; 3053 case 0x27017755u: goto L_27017755; 3054 case 0x27017758u: goto L_27017758; 3055 case 0x27017759u: goto L_27017759; 3056 case 0x2701775Cu: goto L_2701775C; 3057 case 0x2701775Eu: goto L_2701775E; 3058 case 0x27017761u: goto L_27017761; 3059 case 0x27017766u: goto L_27017766; 3060 case 0x27017769u: goto L_27017769; 3061 case 0x2701776Cu: goto L_2701776C; 3062 case 0x2701776Fu: goto L_2701776F; 3063 case 0x27017772u: goto L_27017772; 3064 case 0x27017774u: goto L_27017774; 3065 case 0x27017777u: goto L_27017777; 3066 case 0x2701777Au: goto L_2701777A; 3067 case 0x2701777Du: goto L_2701777D; 3068 case 0x27017780u: goto L_27017780; 3069 case 0x27017783u: goto L_27017783; 3070 case 0x27017786u: goto L_27017786; 3071 case 0x2701778Bu: goto L_2701778B; 3072 case 0x2701778Eu: goto L_2701778E; 3073 case 0x27017790u: goto L_27017790; 3074 case 0x27017793u: goto L_27017793; 3075 case 0x27017796u: goto L_27017796; 3076 case 0x27017797u: goto L_27017797; 3077 case 0x2701779Cu: goto L_2701779C; 3078 case 0x2701779Fu: goto L_2701779F; 3079 case 0x270177A2u: goto L_270177A2; 3080 case 0x270177A5u: goto L_270177A5; 3081 case 0x270177A8u: goto L_270177A8; 3082 case 0x270177ABu: goto L_270177AB; 3083 case 0x270177ADu: goto L_270177AD; 3084 case 0x270177B3u: goto L_270177B3; 3085 case 0x270177B6u: goto L_270177B6; 3086 case 0x270177B7u: goto L_270177B7; 3087 case 0x270177BCu: goto L_270177BC; 3088 case 0x270177BFu: goto L_270177BF; 3089 case 0x270177C2u: goto L_270177C2; 3090 case 0x270177C3u: goto L_270177C3; 3091 case 0x270177C8u: goto L_270177C8; 3092 case 0x270177CBu: goto L_270177CB; 3093 case 0x270177CCu: goto L_270177CC; 3094 case 0x270177CFu: goto L_270177CF; 3095 case 0x270177D4u: goto L_270177D4; 3096 case 0x270177D5u: goto L_270177D5; 3097 case 0x270177D6u: goto L_270177D6; 3098 case 0x270177D8u: goto L_270177D8; 3099 case 0x270177D9u: goto L_270177D9; 3100 case 0x270177DAu: goto L_270177DA; 3101 case 0x270177DDu: goto L_270177DD; 3102 case 0x270177E0u: goto L_270177E0; 3103 case 0x270177E5u: goto L_270177E5; 3104 case 0x270177E8u: goto L_270177E8; 3105 case 0x270177EAu: goto L_270177EA; 3106 case 0x270177ECu: goto L_270177EC; 3107 case 0x270177EFu: goto L_270177EF; 3108 case 0x270177F2u: goto L_270177F2; 3109 case 0x270177F4u: goto L_270177F4; 3110 case 0x270177F6u: goto L_270177F6; 3111 case 0x270177F9u: goto L_270177F9; 3112 case 0x270177FAu: goto L_270177FA; 3113 case 0x270177FFu: goto L_270177FF; 3114 case 0x27017802u: goto L_27017802; 3115 case 0x27017805u: goto L_27017805; 3116 case 0x27017807u: goto L_27017807; 3117 case 0x2701780Au: goto L_2701780A; 3118 case 0x2701780Du: goto L_2701780D; 3119 case 0x27017810u: goto L_27017810; 3120 case 0x27017813u: goto L_27017813; 3121 case 0x27017814u: goto L_27017814; 3122 case 0x27017817u: goto L_27017817; 3123 case 0x2701781Cu: goto L_2701781C; 3124 case 0x2701781Fu: goto L_2701781F; 3125 case 0x27017820u: goto L_27017820; 3126 case 0x27017823u: goto L_27017823; 3127 case 0x27017828u: goto L_27017828; 3128 case 0x2701782Bu: goto L_2701782B; 3129 case 0x2701782Eu: goto L_2701782E; 3130 case 0x2701782Fu: goto L_2701782F; 3131 case 0x27017834u: goto L_27017834; 3132 case 0x27017835u: goto L_27017835; 3133 case 0x27017836u: goto L_27017836; 3134 case 0x27017838u: goto L_27017838; 3135 case 0x27017839u: goto L_27017839; 3136 case 0x2701783Au: goto L_2701783A; 3137 case 0x2701783Du: goto L_2701783D; 3138 case 0x27017840u: goto L_27017840; 3139 case 0x27017845u: goto L_27017845; 3140 case 0x27017848u: goto L_27017848; 3141 case 0x2701784Au: goto L_2701784A; 3142 case 0x2701784Cu: goto L_2701784C; 3143 case 0x2701784Fu: goto L_2701784F; 3144 case 0x27017852u: goto L_27017852; 3145 case 0x27017854u: goto L_27017854; 3146 case 0x27017856u: goto L_27017856; 3147 case 0x27017859u: goto L_27017859; 3148 case 0x2701785Au: goto L_2701785A; 3149 case 0x2701785Fu: goto L_2701785F; 3150 case 0x27017862u: goto L_27017862; 3151 case 0x27017865u: goto L_27017865; 3152 case 0x27017868u: goto L_27017868; 3153 case 0x27017869u: goto L_27017869; 3154 case 0x2701786Cu: goto L_2701786C; 3155 case 0x2701786Fu: goto L_2701786F; 3156 case 0x27017872u: goto L_27017872; 3157 case 0x27017877u: goto L_27017877; 3158 case 0x2701787Au: goto L_2701787A; 3159 case 0x2701787Du: goto L_2701787D; 3160 case 0x2701787Eu: goto L_2701787E; 3161 case 0x27017883u: goto L_27017883; 3162 case 0x27017886u: goto L_27017886; 3163 case 0x27017889u: goto L_27017889; 3164 case 0x2701788Au: goto L_2701788A; 3165 case 0x2701788Fu: goto L_2701788F; 3166 case 0x27017890u: goto L_27017890; 3167 case 0x27017891u: goto L_27017891; 3168 case 0x27017893u: goto L_27017893; 3169 case 0x27017894u: goto L_27017894; 3170 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3171 } 3172 RECOMP_REGS_OUT(); 3173 } 3174 3175 void sub_2701771C(void) { 3176 int _fpu_cmp = 0; 3177 uint32_t _cf = 0; 3178 int _df = 1; 3179 uint32_t _flag_k = FK_NONE; 3180 uint32_t _flag_a = 0, _flag_b = 0; 3181 uint32_t _itail_tgt = 0; 3182 RECOMP_REGS_LOCALS 3183 RECOMP_ENTER(0x2701771Cu); 3184 3185 L_2701771C: 3186 MEM32(ebp + (-0x14)) = 0; /* 0x2701771C: mov dword ptr [ebp - 0x14], 0 */ 3187 L_27017723: 3188 RECOMP_ICALL(0x2701CB40u); /* 0x27017723: call 0x2701cb40 */ /* not lifted */ 3189 RECOMP_FLAGS_IN(); 3190 L_27017728: 3191 ecx = MEM32(esi + 0x60); /* 0x27017728: mov ecx, dword ptr [esi + 0x60] */ 3192 L_2701772B: 3193 /* test ecx, ecx */ /* 0x2701772B: test ecx, ecx */ 3194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3195 _cf = 0; 3196 _flag_k = FK_TEST; 3197 L_2701772D: 3198 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_27017734; /* 0x2701772D: je 0x27017734 */ 3199 L_2701772F: 3200 RECOMP_ICALL(0x2701CB40u); /* 0x2701772F: call 0x2701cb40 */ /* not lifted */ 3201 RECOMP_FLAGS_IN(); 3202 L_27017734: 3203 eax = MEM32(esi + 0x58); /* 0x27017734: mov eax, dword ptr [esi + 0x58] */ 3204 L_27017737: 3205 /* cmp eax, 3 */ /* 0x27017737: cmp eax, 3 */ 3206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 3207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3208 _flag_k = FK_CMP; 3209 L_2701773A: 3210 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_2701788F; /* 0x2701773A: ja 0x2701788f */ 3211 L_27017740: 3212 { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x27017898)); goto _ljump; } 3213 L_27017747: 3214 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x27017747: fild dword ptr [ebp - 4] */ 3215 L_2701774A: 3216 _st[0] *= (double)*(float*)ADDR(esi + 0x54); /* 0x2701774A: fmul dword ptr [esi + 0x54] */ 3217 L_2701774D: 3218 RECOMP_ICALL(0x27026ED2u); /* 0x2701774D: call 0x27026ed2 */ /* not lifted */ 3219 RECOMP_FLAGS_IN(); 3220 L_27017752: 3221 edi = MEM32(ebp + (-0x4)); /* 0x27017752: mov edi, dword ptr [ebp - 4] */ 3222 L_27017755: 3223 ecx = ebp + (-0x8); /* 0x27017755: lea ecx, [ebp - 8] */ 3224 L_27017758: 3225 PUSH32(esp, ecx); /* 0x27017758: push ecx */ 3226 L_27017759: 3227 ecx = MEM32(esi + 0x5C); /* 0x27017759: mov ecx, dword ptr [esi + 0x5c] */ 3228 L_2701775C: 3229 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3231 edi = edi - eax; /* 0x2701775C: sub edi, eax */ 3232 _flag_k = FK_CMP; 3233 L_2701775E: 3234 MEM32(ebp + (-0x4)) = eax; /* 0x2701775E: mov dword ptr [ebp - 4], eax */ 3235 L_27017761: 3236 RECOMP_ICALL(0x2701CB00u); /* 0x27017761: call 0x2701cb00 */ /* not lifted */ 3237 RECOMP_FLAGS_IN(); 3238 L_27017766: 3239 eax = MEM32(ebp + (-0x4)); /* 0x27017766: mov eax, dword ptr [ebp - 4] */ 3240 L_27017769: 3241 _flag_a = (uint32_t)(MEM32(ebp + (-0xC))); _flag_b = (uint32_t)(eax); 3242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3243 MEM32(ebp + (-0xC)) = MEM32(ebp + (-0xC)) + eax; /* 0x27017769: add dword ptr [ebp - 0xc], eax */ 3244 _flag_k = FK_ADD; 3245 L_2701776C: 3246 MEM32(ebp + (-0x14)) = eax; /* 0x2701776C: mov dword ptr [ebp - 0x14], eax */ 3247 L_2701776F: 3248 MEM32(ebp + (-0x4)) = edi; /* 0x2701776F: mov dword ptr [ebp - 4], edi */ 3249 L_27017772: 3250 goto L_270177A8; /* 0x27017772: jmp 0x270177a8 */ 3251 L_27017774: 3252 edi = MEM32(esi + 0x6C); /* 0x27017774: mov edi, dword ptr [esi + 0x6c] */ 3253 L_27017777: 3254 edx = MEM32(esi + 0x70); /* 0x27017777: mov edx, dword ptr [esi + 0x70] */ 3255 L_2701777A: 3256 MEM32(ebp + (-0x8)) = edi; /* 0x2701777A: mov dword ptr [ebp - 8], edi */ 3257 L_2701777D: 3258 fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x2701777D: fild dword ptr [ebp - 8] */ 3259 L_27017780: 3260 MEM32(ebp + (-0x4)) = edx; /* 0x27017780: mov dword ptr [ebp - 4], edx */ 3261 L_27017783: 3262 _st[0] *= (double)*(float*)ADDR(esi + 0x54); /* 0x27017783: fmul dword ptr [esi + 0x54] */ 3263 L_27017786: 3264 RECOMP_ICALL(0x27026ED2u); /* 0x27017786: call 0x27026ed2 */ /* not lifted */ 3265 RECOMP_FLAGS_IN(); 3266 L_2701778B: 3267 ecx = MEM32(esi + 0x5C); /* 0x2701778B: mov ecx, dword ptr [esi + 0x5c] */ 3268 L_2701778E: 3269 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3271 edi = edi - eax; /* 0x2701778E: sub edi, eax */ 3272 _flag_k = FK_CMP; 3273 L_27017790: 3274 MEM32(ebp + (-0x8)) = eax; /* 0x27017790: mov dword ptr [ebp - 8], eax */ 3275 L_27017793: 3276 eax = ebp + (-0x8); /* 0x27017793: lea eax, [ebp - 8] */ 3277 L_27017796: 3278 PUSH32(esp, eax); /* 0x27017796: push eax */ 3279 L_27017797: 3280 RECOMP_ICALL(0x2701CB00u); /* 0x27017797: call 0x2701cb00 */ /* not lifted */ 3281 RECOMP_FLAGS_IN(); 3282 L_2701779C: 3283 eax = MEM32(ebp + (-0x8)); /* 0x2701779C: mov eax, dword ptr [ebp - 8] */ 3284 L_2701779F: 3285 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(eax); 3286 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3287 MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) + eax; /* 0x2701779F: add dword ptr [ebp - 0x10], eax */ 3288 _flag_k = FK_ADD; 3289 L_270177A2: 3290 MEM32(ebp + (-0x18)) = eax; /* 0x270177A2: mov dword ptr [ebp - 0x18], eax */ 3291 L_270177A5: 3292 MEM32(ebp + (-0x8)) = edi; /* 0x270177A5: mov dword ptr [ebp - 8], edi */ 3293 L_270177A8: 3294 ecx = MEM32(esi + 0x60); /* 0x270177A8: mov ecx, dword ptr [esi + 0x60] */ 3295 L_270177AB: 3296 /* test ecx, ecx */ /* 0x270177AB: test ecx, ecx */ 3297 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3298 _cf = 0; 3299 _flag_k = FK_TEST; 3300 L_270177AD: 3301 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2701788F; /* 0x270177AD: je 0x2701788f */ 3302 L_270177B3: 3303 edx = ebp + (-0x18); /* 0x270177B3: lea edx, [ebp - 0x18] */ 3304 L_270177B6: 3305 PUSH32(esp, edx); /* 0x270177B6: push edx */ 3306 L_270177B7: 3307 RECOMP_ICALL(0x2701CAD0u); /* 0x270177B7: call 0x2701cad0 */ /* not lifted */ 3308 RECOMP_FLAGS_IN(); 3309 L_270177BC: 3310 ecx = MEM32(esi + 0x60); /* 0x270177BC: mov ecx, dword ptr [esi + 0x60] */ 3311 L_270177BF: 3312 eax = ebp + (-0x8); /* 0x270177BF: lea eax, [ebp - 8] */ 3313 L_270177C2: 3314 PUSH32(esp, eax); /* 0x270177C2: push eax */ 3315 L_270177C3: 3316 RECOMP_ICALL(0x2701CB00u); /* 0x270177C3: call 0x2701cb00 */ /* not lifted */ 3317 RECOMP_FLAGS_IN(); 3318 L_270177C8: 3319 ecx = ebp + (-0x10); /* 0x270177C8: lea ecx, [ebp - 0x10] */ 3320 L_270177CB: 3321 PUSH32(esp, ecx); /* 0x270177CB: push ecx */ 3322 L_270177CC: 3323 ecx = MEM32(esi + 0x60); /* 0x270177CC: mov ecx, dword ptr [esi + 0x60] */ 3324 L_270177CF: 3325 RECOMP_ICALL(0x2701CAB0u); /* 0x270177CF: call 0x2701cab0 */ /* not lifted */ 3326 RECOMP_FLAGS_IN(); 3327 L_270177D4: 3328 edi = POP32_VAL(esp); /* 0x270177D4: pop edi */ 3329 L_270177D5: 3330 esi = POP32_VAL(esp); /* 0x270177D5: pop esi */ 3331 L_270177D6: 3332 esp = ebp; /* 0x270177D6: mov esp, ebp */ 3333 L_270177D8: 3334 ebp = POP32_VAL(esp); /* 0x270177D8: pop ebp */ 3335 L_270177D9: 3336 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270177D9: ret */ 3337 L_270177DA: 3338 fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x270177DA: fild dword ptr [ebp - 8] */ 3339 L_270177DD: 3340 _st[0] *= (double)*(float*)ADDR(esi + 0x54); /* 0x270177DD: fmul dword ptr [esi + 0x54] */ 3341 L_270177E0: 3342 RECOMP_ICALL(0x27026ED2u); /* 0x270177E0: call 0x27026ed2 */ /* not lifted */ 3343 RECOMP_FLAGS_IN(); 3344 L_270177E5: 3345 ecx = MEM32(ebp + (-0x8)); /* 0x270177E5: mov ecx, dword ptr [ebp - 8] */ 3346 L_270177E8: 3347 edi = eax; /* 0x270177E8: mov edi, eax */ 3348 L_270177EA: 3349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3351 ecx = ecx - edi; /* 0x270177EA: sub ecx, edi */ 3352 _flag_k = FK_CMP; 3353 L_270177EC: 3354 MEM32(ebp + (-0x8)) = ecx; /* 0x270177EC: mov dword ptr [ebp - 8], ecx */ 3355 L_270177EF: 3356 ecx = MEM32(esi + 0x60); /* 0x270177EF: mov ecx, dword ptr [esi + 0x60] */ 3357 L_270177F2: 3358 /* test ecx, ecx */ /* 0x270177F2: test ecx, ecx */ 3359 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3360 _cf = 0; 3361 _flag_k = FK_TEST; 3362 L_270177F4: 3363 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_270177FF; /* 0x270177F4: je 0x270177ff */ 3364 L_270177F6: 3365 edx = ebp + (-0x8); /* 0x270177F6: lea edx, [ebp - 8] */ 3366 L_270177F9: 3367 PUSH32(esp, edx); /* 0x270177F9: push edx */ 3368 L_270177FA: 3369 RECOMP_ICALL(0x2701CB00u); /* 0x270177FA: call 0x2701cb00 */ /* not lifted */ 3370 RECOMP_FLAGS_IN(); 3371 L_270177FF: 3372 eax = MEM32(ebp + (-0x8)); /* 0x270177FF: mov eax, dword ptr [ebp - 8] */ 3373 L_27017802: 3374 ecx = MEM32(ebp + (-0x10)); /* 0x27017802: mov ecx, dword ptr [ebp - 0x10] */ 3375 L_27017805: 3376 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3377 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3378 ecx = ecx + eax; /* 0x27017805: add ecx, eax */ 3379 _flag_k = FK_ADD; 3380 L_27017807: 3381 MEM32(ebp + (-0x18)) = eax; /* 0x27017807: mov dword ptr [ebp - 0x18], eax */ 3382 L_2701780A: 3383 eax = ebp + (-0x18); /* 0x2701780A: lea eax, [ebp - 0x18] */ 3384 L_2701780D: 3385 MEM32(ebp + (-0x10)) = ecx; /* 0x2701780D: mov dword ptr [ebp - 0x10], ecx */ 3386 L_27017810: 3387 ecx = MEM32(esi + 0x5C); /* 0x27017810: mov ecx, dword ptr [esi + 0x5c] */ 3388 L_27017813: 3389 PUSH32(esp, eax); /* 0x27017813: push eax */ 3390 L_27017814: 3391 MEM32(ebp + (-0x8)) = edi; /* 0x27017814: mov dword ptr [ebp - 8], edi */ 3392 L_27017817: 3393 RECOMP_ICALL(0x2701CAD0u); /* 0x27017817: call 0x2701cad0 */ /* not lifted */ 3394 RECOMP_FLAGS_IN(); 3395 L_2701781C: 3396 ecx = ebp + (-0x8); /* 0x2701781C: lea ecx, [ebp - 8] */ 3397 L_2701781F: 3398 PUSH32(esp, ecx); /* 0x2701781F: push ecx */ 3399 L_27017820: 3400 ecx = MEM32(esi + 0x5C); /* 0x27017820: mov ecx, dword ptr [esi + 0x5c] */ 3401 L_27017823: 3402 RECOMP_ICALL(0x2701CB00u); /* 0x27017823: call 0x2701cb00 */ /* not lifted */ 3403 RECOMP_FLAGS_IN(); 3404 L_27017828: 3405 ecx = MEM32(esi + 0x5C); /* 0x27017828: mov ecx, dword ptr [esi + 0x5c] */ 3406 L_2701782B: 3407 edx = ebp + (-0x10); /* 0x2701782B: lea edx, [ebp - 0x10] */ 3408 L_2701782E: 3409 PUSH32(esp, edx); /* 0x2701782E: push edx */ 3410 L_2701782F: 3411 RECOMP_ICALL(0x2701CAB0u); /* 0x2701782F: call 0x2701cab0 */ /* not lifted */ 3412 RECOMP_FLAGS_IN(); 3413 L_27017834: 3414 edi = POP32_VAL(esp); /* 0x27017834: pop edi */ 3415 L_27017835: 3416 esi = POP32_VAL(esp); /* 0x27017835: pop esi */ 3417 L_27017836: 3418 esp = ebp; /* 0x27017836: mov esp, ebp */ 3419 L_27017838: 3420 ebp = POP32_VAL(esp); /* 0x27017838: pop ebp */ 3421 L_27017839: 3422 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017839: ret */ 3423 L_2701783A: 3424 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701783A: fild dword ptr [ebp - 4] */ 3425 L_2701783D: 3426 _st[0] *= (double)*(float*)ADDR(esi + 0x54); /* 0x2701783D: fmul dword ptr [esi + 0x54] */ 3427 L_27017840: 3428 RECOMP_ICALL(0x27026ED2u); /* 0x27017840: call 0x27026ed2 */ /* not lifted */ 3429 RECOMP_FLAGS_IN(); 3430 L_27017845: 3431 ecx = MEM32(ebp + (-0x4)); /* 0x27017845: mov ecx, dword ptr [ebp - 4] */ 3432 L_27017848: 3433 edi = eax; /* 0x27017848: mov edi, eax */ 3434 L_2701784A: 3435 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3437 ecx = ecx - edi; /* 0x2701784A: sub ecx, edi */ 3438 _flag_k = FK_CMP; 3439 L_2701784C: 3440 MEM32(ebp + (-0x4)) = ecx; /* 0x2701784C: mov dword ptr [ebp - 4], ecx */ 3441 L_2701784F: 3442 ecx = MEM32(esi + 0x60); /* 0x2701784F: mov ecx, dword ptr [esi + 0x60] */ 3443 L_27017852: 3444 /* test ecx, ecx */ /* 0x27017852: test ecx, ecx */ 3445 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3446 _cf = 0; 3447 _flag_k = FK_TEST; 3448 L_27017854: 3449 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2701785F; /* 0x27017854: je 0x2701785f */ 3450 L_27017856: 3451 eax = ebp + (-0x8); /* 0x27017856: lea eax, [ebp - 8] */ 3452 L_27017859: 3453 PUSH32(esp, eax); /* 0x27017859: push eax */ 3454 L_2701785A: 3455 RECOMP_ICALL(0x2701CB00u); /* 0x2701785A: call 0x2701cb00 */ /* not lifted */ 3456 RECOMP_FLAGS_IN(); 3457 L_2701785F: 3458 eax = MEM32(ebp + (-0x4)); /* 0x2701785F: mov eax, dword ptr [ebp - 4] */ 3459 L_27017862: 3460 _flag_a = (uint32_t)(MEM32(ebp + (-0xC))); _flag_b = (uint32_t)(eax); 3461 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3462 MEM32(ebp + (-0xC)) = MEM32(ebp + (-0xC)) + eax; /* 0x27017862: add dword ptr [ebp - 0xc], eax */ 3463 _flag_k = FK_ADD; 3464 L_27017865: 3465 ecx = ebp + (-0x18); /* 0x27017865: lea ecx, [ebp - 0x18] */ 3466 L_27017868: 3467 PUSH32(esp, ecx); /* 0x27017868: push ecx */ 3468 L_27017869: 3469 ecx = MEM32(esi + 0x5C); /* 0x27017869: mov ecx, dword ptr [esi + 0x5c] */ 3470 L_2701786C: 3471 MEM32(ebp + (-0x14)) = eax; /* 0x2701786C: mov dword ptr [ebp - 0x14], eax */ 3472 L_2701786F: 3473 MEM32(ebp + (-0x4)) = edi; /* 0x2701786F: mov dword ptr [ebp - 4], edi */ 3474 L_27017872: 3475 RECOMP_ICALL(0x2701CAD0u); /* 0x27017872: call 0x2701cad0 */ /* not lifted */ 3476 RECOMP_FLAGS_IN(); 3477 L_27017877: 3478 ecx = MEM32(esi + 0x5C); /* 0x27017877: mov ecx, dword ptr [esi + 0x5c] */ 3479 L_2701787A: 3480 edx = ebp + (-0x8); /* 0x2701787A: lea edx, [ebp - 8] */ 3481 L_2701787D: 3482 PUSH32(esp, edx); /* 0x2701787D: push edx */ 3483 L_2701787E: 3484 RECOMP_ICALL(0x2701CB00u); /* 0x2701787E: call 0x2701cb00 */ /* not lifted */ 3485 RECOMP_FLAGS_IN(); 3486 L_27017883: 3487 ecx = MEM32(esi + 0x5C); /* 0x27017883: mov ecx, dword ptr [esi + 0x5c] */ 3488 L_27017886: 3489 eax = ebp + (-0x10); /* 0x27017886: lea eax, [ebp - 0x10] */ 3490 L_27017889: 3491 PUSH32(esp, eax); /* 0x27017889: push eax */ 3492 L_2701788A: 3493 RECOMP_ICALL(0x2701CAB0u); /* 0x2701788A: call 0x2701cab0 */ /* not lifted */ 3494 RECOMP_FLAGS_IN(); 3495 L_2701788F: 3496 edi = POP32_VAL(esp); /* 0x2701788F: pop edi */ 3497 L_27017890: 3498 esi = POP32_VAL(esp); /* 0x27017890: pop esi */ 3499 L_27017891: 3500 esp = ebp; /* 0x27017891: mov esp, ebp */ 3501 L_27017893: 3502 ebp = POP32_VAL(esp); /* 0x27017893: pop ebp */ 3503 L_27017894: 3504 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017894: ret */ 3505 _ljump: 3506 switch (_itail_tgt) { 3507 case 0x2701771Cu: goto L_2701771C; 3508 case 0x27017723u: goto L_27017723; 3509 case 0x27017728u: goto L_27017728; 3510 case 0x2701772Bu: goto L_2701772B; 3511 case 0x2701772Du: goto L_2701772D; 3512 case 0x2701772Fu: goto L_2701772F; 3513 case 0x27017734u: goto L_27017734; 3514 case 0x27017737u: goto L_27017737; 3515 case 0x2701773Au: goto L_2701773A; 3516 case 0x27017740u: goto L_27017740; 3517 case 0x27017747u: goto L_27017747; 3518 case 0x2701774Au: goto L_2701774A; 3519 case 0x2701774Du: goto L_2701774D; 3520 case 0x27017752u: goto L_27017752; 3521 case 0x27017755u: goto L_27017755; 3522 case 0x27017758u: goto L_27017758; 3523 case 0x27017759u: goto L_27017759; 3524 case 0x2701775Cu: goto L_2701775C; 3525 case 0x2701775Eu: goto L_2701775E; 3526 case 0x27017761u: goto L_27017761; 3527 case 0x27017766u: goto L_27017766; 3528 case 0x27017769u: goto L_27017769; 3529 case 0x2701776Cu: goto L_2701776C; 3530 case 0x2701776Fu: goto L_2701776F; 3531 case 0x27017772u: goto L_27017772; 3532 case 0x27017774u: goto L_27017774; 3533 case 0x27017777u: goto L_27017777; 3534 case 0x2701777Au: goto L_2701777A; 3535 case 0x2701777Du: goto L_2701777D; 3536 case 0x27017780u: goto L_27017780; 3537 case 0x27017783u: goto L_27017783; 3538 case 0x27017786u: goto L_27017786; 3539 case 0x2701778Bu: goto L_2701778B; 3540 case 0x2701778Eu: goto L_2701778E; 3541 case 0x27017790u: goto L_27017790; 3542 case 0x27017793u: goto L_27017793; 3543 case 0x27017796u: goto L_27017796; 3544 case 0x27017797u: goto L_27017797; 3545 case 0x2701779Cu: goto L_2701779C; 3546 case 0x2701779Fu: goto L_2701779F; 3547 case 0x270177A2u: goto L_270177A2; 3548 case 0x270177A5u: goto L_270177A5; 3549 case 0x270177A8u: goto L_270177A8; 3550 case 0x270177ABu: goto L_270177AB; 3551 case 0x270177ADu: goto L_270177AD; 3552 case 0x270177B3u: goto L_270177B3; 3553 case 0x270177B6u: goto L_270177B6; 3554 case 0x270177B7u: goto L_270177B7; 3555 case 0x270177BCu: goto L_270177BC; 3556 case 0x270177BFu: goto L_270177BF; 3557 case 0x270177C2u: goto L_270177C2; 3558 case 0x270177C3u: goto L_270177C3; 3559 case 0x270177C8u: goto L_270177C8; 3560 case 0x270177CBu: goto L_270177CB; 3561 case 0x270177CCu: goto L_270177CC; 3562 case 0x270177CFu: goto L_270177CF; 3563 case 0x270177D4u: goto L_270177D4; 3564 case 0x270177D5u: goto L_270177D5; 3565 case 0x270177D6u: goto L_270177D6; 3566 case 0x270177D8u: goto L_270177D8; 3567 case 0x270177D9u: goto L_270177D9; 3568 case 0x270177DAu: goto L_270177DA; 3569 case 0x270177DDu: goto L_270177DD; 3570 case 0x270177E0u: goto L_270177E0; 3571 case 0x270177E5u: goto L_270177E5; 3572 case 0x270177E8u: goto L_270177E8; 3573 case 0x270177EAu: goto L_270177EA; 3574 case 0x270177ECu: goto L_270177EC; 3575 case 0x270177EFu: goto L_270177EF; 3576 case 0x270177F2u: goto L_270177F2; 3577 case 0x270177F4u: goto L_270177F4; 3578 case 0x270177F6u: goto L_270177F6; 3579 case 0x270177F9u: goto L_270177F9; 3580 case 0x270177FAu: goto L_270177FA; 3581 case 0x270177FFu: goto L_270177FF; 3582 case 0x27017802u: goto L_27017802; 3583 case 0x27017805u: goto L_27017805; 3584 case 0x27017807u: goto L_27017807; 3585 case 0x2701780Au: goto L_2701780A; 3586 case 0x2701780Du: goto L_2701780D; 3587 case 0x27017810u: goto L_27017810; 3588 case 0x27017813u: goto L_27017813; 3589 case 0x27017814u: goto L_27017814; 3590 case 0x27017817u: goto L_27017817; 3591 case 0x2701781Cu: goto L_2701781C; 3592 case 0x2701781Fu: goto L_2701781F; 3593 case 0x27017820u: goto L_27017820; 3594 case 0x27017823u: goto L_27017823; 3595 case 0x27017828u: goto L_27017828; 3596 case 0x2701782Bu: goto L_2701782B; 3597 case 0x2701782Eu: goto L_2701782E; 3598 case 0x2701782Fu: goto L_2701782F; 3599 case 0x27017834u: goto L_27017834; 3600 case 0x27017835u: goto L_27017835; 3601 case 0x27017836u: goto L_27017836; 3602 case 0x27017838u: goto L_27017838; 3603 case 0x27017839u: goto L_27017839; 3604 case 0x2701783Au: goto L_2701783A; 3605 case 0x2701783Du: goto L_2701783D; 3606 case 0x27017840u: goto L_27017840; 3607 case 0x27017845u: goto L_27017845; 3608 case 0x27017848u: goto L_27017848; 3609 case 0x2701784Au: goto L_2701784A; 3610 case 0x2701784Cu: goto L_2701784C; 3611 case 0x2701784Fu: goto L_2701784F; 3612 case 0x27017852u: goto L_27017852; 3613 case 0x27017854u: goto L_27017854; 3614 case 0x27017856u: goto L_27017856; 3615 case 0x27017859u: goto L_27017859; 3616 case 0x2701785Au: goto L_2701785A; 3617 case 0x2701785Fu: goto L_2701785F; 3618 case 0x27017862u: goto L_27017862; 3619 case 0x27017865u: goto L_27017865; 3620 case 0x27017868u: goto L_27017868; 3621 case 0x27017869u: goto L_27017869; 3622 case 0x2701786Cu: goto L_2701786C; 3623 case 0x2701786Fu: goto L_2701786F; 3624 case 0x27017872u: goto L_27017872; 3625 case 0x27017877u: goto L_27017877; 3626 case 0x2701787Au: goto L_2701787A; 3627 case 0x2701787Du: goto L_2701787D; 3628 case 0x2701787Eu: goto L_2701787E; 3629 case 0x27017883u: goto L_27017883; 3630 case 0x27017886u: goto L_27017886; 3631 case 0x27017889u: goto L_27017889; 3632 case 0x2701788Au: goto L_2701788A; 3633 case 0x2701788Fu: goto L_2701788F; 3634 case 0x27017890u: goto L_27017890; 3635 case 0x27017891u: goto L_27017891; 3636 case 0x27017893u: goto L_27017893; 3637 case 0x27017894u: goto L_27017894; 3638 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3639 } 3640 RECOMP_REGS_OUT(); 3641 } 3642 3643 void sub_270177A8(void) { 3644 int _fpu_cmp = 0; 3645 uint32_t _cf = 0; 3646 int _df = 1; 3647 uint32_t _flag_k = FK_NONE; 3648 uint32_t _flag_a = 0, _flag_b = 0; 3649 uint32_t _itail_tgt = 0; 3650 RECOMP_REGS_LOCALS 3651 RECOMP_ENTER(0x270177A8u); 3652 3653 L_270177A8: 3654 ecx = MEM32(esi + 0x60); /* 0x270177A8: mov ecx, dword ptr [esi + 0x60] */ 3655 /* test ecx, ecx */ /* 0x270177AB: test ecx, ecx */ 3656 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3657 _cf = 0; 3658 _flag_k = FK_TEST; 3659 if (TEST_Z(_flag_a, _flag_b)) goto L_2701788F; /* 0x270177AD: je 0x2701788f */ 3660 L_270177B3: 3661 edx = ebp + (-0x18); /* 0x270177B3: lea edx, [ebp - 0x18] */ 3662 PUSH32(esp, edx); /* 0x270177B6: push edx */ 3663 RECOMP_ICALL(0x2701CAD0u); /* 0x270177B7: call 0x2701cad0 */ /* not lifted */ 3664 RECOMP_FLAGS_IN(); 3665 ecx = MEM32(esi + 0x60); /* 0x270177BC: mov ecx, dword ptr [esi + 0x60] */ 3666 eax = ebp + (-0x8); /* 0x270177BF: lea eax, [ebp - 8] */ 3667 PUSH32(esp, eax); /* 0x270177C2: push eax */ 3668 RECOMP_ICALL(0x2701CB00u); /* 0x270177C3: call 0x2701cb00 */ /* not lifted */ 3669 RECOMP_FLAGS_IN(); 3670 ecx = ebp + (-0x10); /* 0x270177C8: lea ecx, [ebp - 0x10] */ 3671 PUSH32(esp, ecx); /* 0x270177CB: push ecx */ 3672 ecx = MEM32(esi + 0x60); /* 0x270177CC: mov ecx, dword ptr [esi + 0x60] */ 3673 RECOMP_ICALL(0x2701CAB0u); /* 0x270177CF: call 0x2701cab0 */ /* not lifted */ 3674 RECOMP_FLAGS_IN(); 3675 edi = POP32_VAL(esp); /* 0x270177D4: pop edi */ 3676 esi = POP32_VAL(esp); /* 0x270177D5: pop esi */ 3677 esp = ebp; /* 0x270177D6: mov esp, ebp */ 3678 ebp = POP32_VAL(esp); /* 0x270177D8: pop ebp */ 3679 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270177D9: ret */ 3680 L_2701788F: 3681 edi = POP32_VAL(esp); /* 0x2701788F: pop edi */ 3682 esi = POP32_VAL(esp); /* 0x27017890: pop esi */ 3683 esp = ebp; /* 0x27017891: mov esp, ebp */ 3684 ebp = POP32_VAL(esp); /* 0x27017893: pop ebp */ 3685 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017894: ret */ 3686 RECOMP_REGS_OUT(); 3687 } 3688 3689 void sub_270178B0(void) { 3690 int _fpu_cmp = 0; 3691 uint32_t _cf = 0; 3692 int _df = 1; 3693 uint32_t _flag_k = FK_NONE; 3694 uint32_t _flag_a = 0, _flag_b = 0; 3695 uint32_t _itail_tgt = 0; 3696 RECOMP_REGS_LOCALS 3697 RECOMP_ENTER(0x270178B0u); 3698 3699 L_270178B0: 3700 PUSH32(esp, ebp); /* 0x270178B0: push ebp */ 3701 ebp = esp; /* 0x270178B1: mov ebp, esp */ 3702 PUSH32(esp, esi); /* 0x270178B3: push esi */ 3703 eax = ebp + 0x8; /* 0x270178B4: lea eax, [ebp + 8] */ 3704 esi = ecx; /* 0x270178B7: mov esi, ecx */ 3705 PUSH32(esp, eax); /* 0x270178B9: push eax */ 3706 RECOMP_ICALL(0x270109B0u); /* 0x270178BA: call 0x270109b0 */ /* not lifted */ 3707 RECOMP_FLAGS_IN(); 3708 ecx = ebp + 0x8; /* 0x270178BF: lea ecx, [ebp + 8] */ 3709 PUSH32(esp, ecx); /* 0x270178C2: push ecx */ 3710 ecx = MEM32(esi + 0x5C); /* 0x270178C3: mov ecx, dword ptr [esi + 0x5c] */ 3711 RECOMP_ICALL(0x2701CAB0u); /* 0x270178C6: call 0x2701cab0 */ /* not lifted */ 3712 RECOMP_FLAGS_IN(); 3713 ecx = MEM32(esi + 0x60); /* 0x270178CB: mov ecx, dword ptr [esi + 0x60] */ 3714 /* test ecx, ecx */ /* 0x270178CE: test ecx, ecx */ 3715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3716 _cf = 0; 3717 _flag_k = FK_TEST; 3718 if (TEST_Z(_flag_a, _flag_b)) goto L_270178DB; /* 0x270178D0: je 0x270178db */ 3719 L_270178D2: 3720 edx = ebp + 0x8; /* 0x270178D2: lea edx, [ebp + 8] */ 3721 PUSH32(esp, edx); /* 0x270178D5: push edx */ 3722 RECOMP_ICALL(0x2701CAB0u); /* 0x270178D6: call 0x2701cab0 */ /* not lifted */ 3723 RECOMP_FLAGS_IN(); 3724 L_270178DB: 3725 ecx = esi; /* 0x270178DB: mov ecx, esi */ 3726 RECOMP_ICALL(0x270176F0u); /* 0x270178DD: call 0x270176f0 */ /* not lifted */ 3727 RECOMP_FLAGS_IN(); 3728 esi = POP32_VAL(esp); /* 0x270178E2: pop esi */ 3729 ebp = POP32_VAL(esp); /* 0x270178E3: pop ebp */ 3730 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270178E4: ret 8 */ 3731 RECOMP_REGS_OUT(); 3732 } 3733 3734 void sub_270178F0(void) { 3735 int _fpu_cmp = 0; 3736 uint32_t _cf = 0; 3737 int _df = 1; 3738 uint32_t _flag_k = FK_NONE; 3739 uint32_t _flag_a = 0, _flag_b = 0; 3740 uint32_t _itail_tgt = 0; 3741 RECOMP_REGS_LOCALS 3742 RECOMP_ENTER(0x270178F0u); 3743 3744 L_270178F0: 3745 PUSH32(esp, ebp); /* 0x270178F0: push ebp */ 3746 ebp = esp; /* 0x270178F1: mov ebp, esp */ 3747 eax = MEM32(ebp + 0x8); /* 0x270178F3: mov eax, dword ptr [ebp + 8] */ 3748 edx = MEM32(ebp + 0xC); /* 0x270178F6: mov edx, dword ptr [ebp + 0xc] */ 3749 MEM32(ecx + 0x6C) = eax; /* 0x270178F9: mov dword ptr [ecx + 0x6c], eax */ 3750 MEM32(ecx + 0x70) = edx; /* 0x270178FC: mov dword ptr [ecx + 0x70], edx */ 3751 RECOMP_ICALL(0x270176F0u); /* 0x270178FF: call 0x270176f0 */ /* not lifted */ 3752 RECOMP_FLAGS_IN(); 3753 ebp = POP32_VAL(esp); /* 0x27017904: pop ebp */ 3754 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27017905: ret 8 */ 3755 RECOMP_REGS_OUT(); 3756 } 3757 3758 void sub_27017910(void) { 3759 int _fpu_cmp = 0; 3760 uint32_t _cf = 0; 3761 int _df = 1; 3762 uint32_t _flag_k = FK_NONE; 3763 uint32_t _flag_a = 0, _flag_b = 0; 3764 uint32_t _itail_tgt = 0; 3765 RECOMP_REGS_LOCALS 3766 RECOMP_ENTER(0x27017910u); 3767 3768 L_27017910: 3769 PUSH32(esp, ebp); /* 0x27017910: push ebp */ 3770 ebp = esp; /* 0x27017911: mov ebp, esp */ 3771 eax = MEM32(ebp + 0xC); /* 0x27017913: mov eax, dword ptr [ebp + 0xc] */ 3772 ecx = MEM32(ebp + 0x8); /* 0x27017916: mov ecx, dword ptr [ebp + 8] */ 3773 PUSH32(esp, eax); /* 0x27017919: push eax */ 3774 RECOMP_ICALL(0x27017930u); /* 0x2701791A: call 0x27017930 */ /* not lifted */ 3775 RECOMP_FLAGS_IN(); 3776 ebp = POP32_VAL(esp); /* 0x2701791F: pop ebp */ 3777 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017920: ret */ 3778 RECOMP_REGS_OUT(); 3779 } 3780 3781 void sub_27017930(void) { 3782 int _fpu_cmp = 0; 3783 uint32_t _cf = 0; 3784 int _df = 1; 3785 uint32_t _flag_k = FK_NONE; 3786 uint32_t _flag_a = 0, _flag_b = 0; 3787 uint32_t _itail_tgt = 0; 3788 RECOMP_REGS_LOCALS 3789 RECOMP_ENTER(0x27017930u); 3790 3791 L_27017930: 3792 PUSH32(esp, ebp); /* 0x27017930: push ebp */ 3793 ebp = esp; /* 0x27017931: mov ebp, esp */ 3794 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 3795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3796 esp = esp - 0x38u; /* 0x27017933: sub esp, 0x38 */ 3797 _flag_k = FK_CMP; 3798 fp_push(*(float*)&MEM32(ecx + 0x54)); /* 0x27017936: fld dword ptr [ecx + 0x54] */ 3799 PUSH32(esp, ebx); /* 0x27017939: push ebx */ 3800 _st[0] *= (double)*(float*)ADDR(0x270344A8); /* 0x2701793A: fmul dword ptr [0x270344a8] */ 3801 PUSH32(esp, esi); /* 0x27017940: push esi */ 3802 PUSH32(esp, edi); /* 0x27017941: push edi */ 3803 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3805 esp = esp - 8; /* 0x27017942: sub esp, 8 */ 3806 _flag_k = FK_CMP; 3807 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x27017945: fstp qword ptr [esp] */ 3808 eax = ebp + (-0x38); /* 0x27017948: lea eax, [ebp - 0x38] */ 3809 PUSH32(esp, 0x27048714u); /* 0x2701794B: push 0x27048714 */ 3810 PUSH32(esp, eax); /* 0x27017950: push eax */ 3811 RECOMP_ICALL(MEM32(0x270290F8)); /* 0x27017951: call dword ptr [0x270290f8] */ 3812 RECOMP_FLAGS_IN(); 3813 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3814 ecx = ecx | 0xFFFFFFFFu; /* 0x27017957: or ecx, 0xffffffff */ 3815 _cf = 0; 3816 _flag_k = FK_TEST; 3817 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3818 eax = 0; /* 0x2701795A: xor eax, eax */ 3819 _cf = 0; 3820 _flag_k = FK_TEST; 3821 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3823 esp = esp + 0x10u; /* 0x2701795C: add esp, 0x10 */ 3824 _flag_k = FK_ADD; 3825 edi = ebp + (-0x38); /* 0x2701795F: lea edi, [ebp - 0x38] */ 3826 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; } /* 0x27017962: repne scasb al, byte ptr es:[edi] */ 3827 ecx = ~ecx; /* 0x27017964: not ecx */ 3828 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3829 ecx = ecx - 1; /* 0x27017966: dec ecx */ 3830 _flag_k = FK_DEC; 3831 esi = ecx; /* 0x27017967: mov esi, ecx */ 3832 /* cmp esi, 0xFFFFFFFDu */ /* 0x27017969: cmp esi, -3 */ 3833 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFDu); 3834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3835 _flag_k = FK_CMP; 3836 MEM32(ebp + (-0x4)) = esi; /* 0x2701796C: mov dword ptr [ebp - 4], esi */ 3837 if (CMP_BE(_flag_a, _flag_b)) goto L_27017977; /* 0x2701796F: jbe 0x27017977 */ 3838 L_27017971: 3839 RECOMP_ICALL(MEM32(0x270290B8)); /* 0x27017971: call dword ptr [0x270290b8] */ 3840 RECOMP_FLAGS_IN(); 3841 L_27017977: 3842 ebx = MEM32(ebp + 0x8); /* 0x27017977: mov ebx, dword ptr [ebp + 8] */ 3843 ecx = MEM32(ebx + 0x4); /* 0x2701797A: mov ecx, dword ptr [ebx + 4] */ 3844 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3845 edx = 0; /* 0x2701797D: xor edx, edx */ 3846 _cf = 0; 3847 _flag_k = FK_TEST; 3848 /* cmp ecx, edx */ /* 0x2701797F: cmp ecx, edx */ 3849 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3850 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3851 _flag_k = FK_CMP; 3852 MEM32(ebx + 0x8) = edx; /* 0x27017981: mov dword ptr [ebx + 8], edx */ 3853 if (CMP_EQ(_flag_a, _flag_b)) goto L_270179AC; /* 0x27017984: je 0x270179ac */ 3854 L_27017986: 3855 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x27017986: mov al, byte ptr [ecx - 1] */ 3856 /* test LO8(eax), LO8(eax) */ /* 0x27017989: test al, al */ 3857 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3858 _cf = 0; 3859 _flag_k = FK_NARROW(FK_TEST, 24); 3860 if (TEST_Z(_flag_a, _flag_b)) goto L_270179AC; /* 0x2701798B: je 0x270179ac */ 3861 L_2701798D: 3862 /* cmp LO8(eax), 0xFFu */ /* 0x2701798D: cmp al, 0xff */ 3863 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3865 _flag_k = FK_NARROW(FK_CMP, 24); 3866 if (CMP_EQ(_flag_a, _flag_b)) goto L_270179AC; /* 0x2701798F: je 0x270179ac */ 3867 L_27017991: 3868 /* cmp esi, edx */ /* 0x27017991: cmp esi, edx */ 3869 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 3870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3871 _flag_k = FK_CMP; 3872 if (CMP_NE(_flag_a, _flag_b)) goto L_270179D9; /* 0x27017993: jne 0x270179d9 */ 3873 L_27017995: 3874 edi = POP32_VAL(esp); /* 0x27017995: pop edi */ 3875 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3876 SET_LO8(eax, LO8(eax) - 1); /* 0x27017996: dec al */ 3877 _flag_k = FK_NARROW(FK_DEC, 24); 3878 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x27017998: mov byte ptr [ecx - 1], al */ 3879 esi = POP32_VAL(esp); /* 0x2701799B: pop esi */ 3880 MEM32(ebx + 0x4) = edx; /* 0x2701799C: mov dword ptr [ebx + 4], edx */ 3881 MEM32(ebx + 0x8) = edx; /* 0x2701799F: mov dword ptr [ebx + 8], edx */ 3882 MEM32(ebx + 0xC) = edx; /* 0x270179A2: mov dword ptr [ebx + 0xc], edx */ 3883 ebx = POP32_VAL(esp); /* 0x270179A5: pop ebx */ 3884 esp = ebp; /* 0x270179A6: mov esp, ebp */ 3885 ebp = POP32_VAL(esp); /* 0x270179A8: pop ebp */ 3886 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270179A9: ret 4 */ 3887 L_270179AC: 3888 /* cmp esi, edx */ /* 0x270179AC: cmp esi, edx */ 3889 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 3890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3891 _flag_k = FK_CMP; 3892 if (CMP_NE(_flag_a, _flag_b)) goto L_270179C3; /* 0x270179AE: jne 0x270179c3 */ 3893 L_270179B0: 3894 PUSH32(esp, 1); /* 0x270179B0: push 1 */ 3895 ecx = ebx; /* 0x270179B2: mov ecx, ebx */ 3896 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x270179B4: call dword ptr [0x270290c8] */ 3897 RECOMP_FLAGS_IN(); 3898 edi = POP32_VAL(esp); /* 0x270179BA: pop edi */ 3899 esi = POP32_VAL(esp); /* 0x270179BB: pop esi */ 3900 ebx = POP32_VAL(esp); /* 0x270179BC: pop ebx */ 3901 esp = ebp; /* 0x270179BD: mov esp, ebp */ 3902 ebp = POP32_VAL(esp); /* 0x270179BF: pop ebp */ 3903 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270179C0: ret 4 */ 3904 L_270179C3: 3905 eax = MEM32(ebx + 0xC); /* 0x270179C3: mov eax, dword ptr [ebx + 0xc] */ 3906 /* cmp eax, 0x1Fu */ /* 0x270179C6: cmp eax, 0x1f */ 3907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu); 3908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3909 _flag_k = FK_CMP; 3910 if (CMP_A(_flag_a, _flag_b)) goto L_270179CF; /* 0x270179C9: ja 0x270179cf */ 3911 L_270179CB: 3912 /* cmp eax, esi */ /* 0x270179CB: cmp eax, esi */ 3913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3915 _flag_k = FK_CMP; 3916 if (CMP_AE(_flag_a, _flag_b)) goto L_270179E2; /* 0x270179CD: jae 0x270179e2 */ 3917 L_270179CF: 3918 PUSH32(esp, 1); /* 0x270179CF: push 1 */ 3919 ecx = ebx; /* 0x270179D1: mov ecx, ebx */ 3920 RECOMP_ICALL(MEM32(0x270290C8)); /* 0x270179D3: call dword ptr [0x270290c8] */ 3921 RECOMP_FLAGS_IN(); 3922 L_270179D9: 3923 PUSH32(esp, esi); /* 0x270179D9: push esi */ 3924 ecx = ebx; /* 0x270179DA: mov ecx, ebx */ 3925 RECOMP_ICALL(MEM32(0x270290BC)); /* 0x270179DC: call dword ptr [0x270290bc] */ 3926 RECOMP_FLAGS_IN(); 3927 L_270179E2: 3928 edi = MEM32(ebx + 0x4); /* 0x270179E2: mov edi, dword ptr [ebx + 4] */ 3929 eax = MEM32(ebp + (-0x4)); /* 0x270179E5: mov eax, dword ptr [ebp - 4] */ 3930 ecx = esi; /* 0x270179E8: mov ecx, esi */ 3931 edx = ecx; /* 0x270179EA: mov edx, ecx */ 3932 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x270179EC: shr ecx, 2 */ 3933 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3934 ecx = ecx >> 2u; /* 0x270179EC: shr ecx, 2 */ 3935 esi = ebp + (-0x38); /* 0x270179EF: lea esi, [ebp - 0x38] */ 3936 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x270179F2: 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; } 3937 ecx = edx; /* 0x270179F4: mov ecx, edx */ 3938 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3939 ecx = ecx & 3; /* 0x270179F6: and ecx, 3 */ 3940 _cf = 0; 3941 _flag_k = FK_TEST; 3942 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x270179F9: 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; } 3943 ecx = MEM32(ebx + 0x4); /* 0x270179FB: mov ecx, dword ptr [ebx + 4] */ 3944 edi = POP32_VAL(esp); /* 0x270179FE: pop edi */ 3945 MEM32(ebx + 0x8) = eax; /* 0x270179FF: mov dword ptr [ebx + 8], eax */ 3946 esi = POP32_VAL(esp); /* 0x27017A02: pop esi */ 3947 MEM8(ecx + eax) = (uint8_t)(0); /* 0x27017A03: mov byte ptr [ecx + eax], 0 */ 3948 ebx = POP32_VAL(esp); /* 0x27017A07: pop ebx */ 3949 esp = ebp; /* 0x27017A08: mov esp, ebp */ 3950 ebp = POP32_VAL(esp); /* 0x27017A0A: pop ebp */ 3951 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27017A0B: ret 4 */ 3952 RECOMP_REGS_OUT(); 3953 } 3954 3955 void sub_27017A10(void) { 3956 int _fpu_cmp = 0; 3957 uint32_t _cf = 0; 3958 int _df = 1; 3959 uint32_t _flag_k = FK_NONE; 3960 uint32_t _flag_a = 0, _flag_b = 0; 3961 uint32_t _itail_tgt = 0; 3962 RECOMP_REGS_LOCALS 3963 RECOMP_ENTER(0x27017A10u); 3964 3965 L_27017A10: 3966 PUSH32(esp, ebp); /* 0x27017A10: push ebp */ 3967 ebp = esp; /* 0x27017A11: mov ebp, esp */ 3968 PUSH32(esp, 0xFFFFFFFFu); /* 0x27017A13: push -1 */ 3969 PUSH32(esp, 0x27027CB1u); /* 0x27017A15: push 0x27027cb1 */ 3970 eax = MEM32(FS_BASE + (0)); /* 0x27017A1A: mov eax, dword ptr fs:[0] */ 3971 PUSH32(esp, eax); /* 0x27017A20: push eax */ 3972 MEM32(FS_BASE + (0)) = esp; /* 0x27017A21: mov dword ptr fs:[0], esp */ 3973 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3975 esp = esp - 0x14u; /* 0x27017A28: sub esp, 0x14 */ 3976 _flag_k = FK_CMP; 3977 eax = MEM32(ebp + 0x10); /* 0x27017A2B: mov eax, dword ptr [ebp + 0x10] */ 3978 edx = MEM32(ebp + 0x18); /* 0x27017A2E: mov edx, dword ptr [ebp + 0x18] */ 3979 PUSH32(esp, ebx); /* 0x27017A31: push ebx */ 3980 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3981 ebx = 0; /* 0x27017A32: xor ebx, ebx */ 3982 _cf = 0; 3983 _flag_k = FK_TEST; 3984 PUSH32(esp, esi); /* 0x27017A34: push esi */ 3985 esi = ecx; /* 0x27017A35: mov esi, ecx */ 3986 ecx = MEM32(ebp + 0x14); /* 0x27017A37: mov ecx, dword ptr [ebp + 0x14] */ 3987 MEM32(esi + 0x14) = eax; /* 0x27017A3A: mov dword ptr [esi + 0x14], eax */ 3988 MEM32(esi) = ebx; /* 0x27017A3D: mov dword ptr [esi], ebx */ 3989 MEM32(esi + 0x4) = ebx; /* 0x27017A3F: mov dword ptr [esi + 4], ebx */ 3990 MEM32(esi + 0x18) = ecx; /* 0x27017A42: mov dword ptr [esi + 0x18], ecx */ 3991 PUSH32(esp, edi); /* 0x27017A45: push edi */ 3992 MEM32(esi + 0x1C) = ebx; /* 0x27017A46: mov dword ptr [esi + 0x1c], ebx */ 3993 MEM32(esi + 0x20) = ebx; /* 0x27017A49: mov dword ptr [esi + 0x20], ebx */ 3994 PUSH32(esp, 0x34u); /* 0x27017A4C: push 0x34 */ 3995 MEM32(esi + 0x24) = edx; /* 0x27017A4E: mov dword ptr [esi + 0x24], edx */ 3996 MEM32(ebp + (-0x20)) = ebx; /* 0x27017A51: mov dword ptr [ebp - 0x20], ebx */ 3997 MEM32(ebp + (-0x1C)) = ebx; /* 0x27017A54: mov dword ptr [ebp - 0x1c], ebx */ 3998 RECOMP_ICALL(0x27026EA4u); /* 0x27017A57: call 0x27026ea4 */ /* not lifted */ 3999 RECOMP_FLAGS_IN(); 4000 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4002 esp = esp + 4; /* 0x27017A5C: add esp, 4 */ 4003 _flag_k = FK_ADD; 4004 MEM32(ebp + (-0x14)) = eax; /* 0x27017A5F: mov dword ptr [ebp - 0x14], eax */ 4005 /* cmp eax, ebx */ /* 0x27017A62: cmp eax, ebx */ 4006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4008 _flag_k = FK_CMP; 4009 MEM32(ebp + (-0x4)) = ebx; /* 0x27017A64: mov dword ptr [ebp - 4], ebx */ 4010 if (CMP_EQ(_flag_a, _flag_b)) goto L_27017A79; /* 0x27017A67: je 0x27017a79 */ 4011 L_27017A69: 4012 PUSH32(esp, 2); /* 0x27017A69: push 2 */ 4013 PUSH32(esp, 0x10u); /* 0x27017A6B: push 0x10 */ 4014 PUSH32(esp, 0x10u); /* 0x27017A6D: push 0x10 */ 4015 ecx = eax; /* 0x27017A6F: mov ecx, eax */ 4016 RECOMP_ICALL(MEM32(0x2702920C)); /* 0x27017A71: call dword ptr [0x2702920c] */ 4017 RECOMP_FLAGS_IN(); 4018 goto L_27017A7B; /* 0x27017A77: jmp 0x27017a7b */ 4019 L_27017A79: 4020 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4021 eax = 0; /* 0x27017A79: xor eax, eax */ 4022 _cf = 0; 4023 _flag_k = FK_TEST; 4024 L_27017A7B: 4025 PUSH32(esp, ebx); /* 0x27017A7B: push ebx */ 4026 PUSH32(esp, 0x00FFFFFFu); /* 0x27017A7C: push 0xffffff */ 4027 PUSH32(esp, ebx); /* 0x27017A81: push ebx */ 4028 ecx = eax; /* 0x27017A82: mov ecx, eax */ 4029 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27017A84: mov dword ptr [ebp - 4], 0xffffffff */ 4030 MEM32(esi + 0x10) = eax; /* 0x27017A8B: mov dword ptr [esi + 0x10], eax */ 4031 RECOMP_ICALL(MEM32(0x27029270)); /* 0x27017A8E: call dword ptr [0x27029270] */ 4032 RECOMP_FLAGS_IN(); 4033 PUSH32(esp, 0xD8u); /* 0x27017A94: push 0xd8 */ 4034 RECOMP_ICALL(0x27026EA4u); /* 0x27017A99: call 0x27026ea4 */ /* not lifted */ 4035 RECOMP_FLAGS_IN(); 4036 edi = eax; /* 0x27017A9E: mov edi, eax */ 4037 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4038 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4039 esp = esp + 4; /* 0x27017AA0: add esp, 4 */ 4040 _flag_k = FK_ADD; 4041 MEM32(ebp + (-0x18)) = edi; /* 0x27017AA3: mov dword ptr [ebp - 0x18], edi */ 4042 /* cmp edi, ebx */ /* 0x27017AA6: cmp edi, ebx */ 4043 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4045 _flag_k = FK_CMP; 4046 MEM32(ebp + (-0x4)) = 1; /* 0x27017AA8: mov dword ptr [ebp - 4], 1 */ 4047 if (CMP_EQ(_flag_a, _flag_b)) goto L_27017AE7; /* 0x27017AAF: je 0x27017ae7 */ 4048 L_27017AB1: 4049 edx = MEM32(ebp + 0x18); /* 0x27017AB1: mov edx, dword ptr [ebp + 0x18] */ 4050 eax = ebp + (-0x10); /* 0x27017AB4: lea eax, [ebp - 0x10] */ 4051 PUSH32(esp, eax); /* 0x27017AB7: push eax */ 4052 eax = MEM32(esi + 0x10); /* 0x27017AB8: mov eax, dword ptr [esi + 0x10] */ 4053 ecx = ebp + (-0x14); /* 0x27017ABB: lea ecx, [ebp - 0x14] */ 4054 PUSH32(esp, ecx); /* 0x27017ABE: push ecx */ 4055 PUSH32(esp, ebx); /* 0x27017ABF: push ebx */ 4056 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4057 edx = edx + 1; /* 0x27017AC0: inc edx */ 4058 _flag_k = FK_INC; 4059 PUSH32(esp, edx); /* 0x27017AC1: push edx */ 4060 PUSH32(esp, eax); /* 0x27017AC2: push eax */ 4061 ecx = ebp + (-0x20); /* 0x27017AC3: lea ecx, [ebp - 0x20] */ 4062 PUSH32(esp, ecx); /* 0x27017AC6: push ecx */ 4063 ecx = edi; /* 0x27017AC7: mov ecx, edi */ 4064 MEM32(ebp + (-0x10)) = 0x3F800000u; /* 0x27017AC9: mov dword ptr [ebp - 0x10], 0x3f800000 */ 4065 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x27017AD0: mov dword ptr [ebp - 0x14], 0x3f800000 */ 4066 RECOMP_ICALL(MEM32(0x27029208)); /* 0x27017AD7: call dword ptr [0x27029208] */ 4067 RECOMP_FLAGS_IN(); 4068 MEM32(edi) = 0x27034304u; /* 0x27017ADD: mov dword ptr [edi], 0x27034304 */ 4069 ecx = edi; /* 0x27017AE3: mov ecx, edi */ 4070 goto L_27017AE9; /* 0x27017AE5: jmp 0x27017ae9 */ 4071 L_27017AE7: 4072 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4073 ecx = 0; /* 0x27017AE7: xor ecx, ecx */ 4074 _cf = 0; 4075 _flag_k = FK_TEST; 4076 L_27017AE9: 4077 edx = MEM32(ebp + 0x8); /* 0x27017AE9: mov edx, dword ptr [ebp + 8] */ 4078 ebx = MEM32(0x27029220); /* 0x27017AEC: mov ebx, dword ptr [0x27029220] */ 4079 PUSH32(esp, edx); /* 0x27017AF2: push edx */ 4080 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27017AF3: mov dword ptr [ebp - 4], 0xffffffff */ 4081 MEM32(esi + 0xC) = ecx; /* 0x27017AFA: mov dword ptr [esi + 0xc], ecx */ 4082 RECOMP_ICALL(ebx); /* 0x27017AFD: call ebx */ 4083 RECOMP_FLAGS_IN(); 4084 eax = MEM32(ebp + 0x1C); /* 0x27017AFF: mov eax, dword ptr [ebp + 0x1c] */ 4085 ecx = MEM32(esi + 0xC); /* 0x27017B02: mov ecx, dword ptr [esi + 0xc] */ 4086 PUSH32(esp, eax); /* 0x27017B05: push eax */ 4087 RECOMP_ICALL(MEM32(0x27029224)); /* 0x27017B06: call dword ptr [0x27029224] */ 4088 RECOMP_FLAGS_IN(); 4089 fp_push((double)(int32_t)MEM32(ebp + 0x14)); /* 0x27017B0C: fild dword ptr [ebp + 0x14] */ 4090 ecx = ebp + 0x8; /* 0x27017B0F: lea ecx, [ebp + 8] */ 4091 PUSH32(esp, ecx); /* 0x27017B12: push ecx */ 4092 _st[0] *= (double)*(float*)ADDR(0x27034468); /* 0x27017B13: fmul dword ptr [0x27034468] */ 4093 ecx = MEM32(esi + 0xC); /* 0x27017B19: mov ecx, dword ptr [esi + 0xc] */ 4094 edx = ebp + 0x14; /* 0x27017B1C: lea edx, [ebp + 0x14] */ 4095 PUSH32(esp, edx); /* 0x27017B1F: push edx */ 4096 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x27017B20: fst dword ptr [ebp - 0x14] */ 4097 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x27017B23: fstp dword ptr [ebp + 8] */ 4098 fp_push((double)(int32_t)MEM32(ebp + 0x10)); /* 0x27017B26: fild dword ptr [ebp + 0x10] */ 4099 _st[0] *= (double)*(float*)ADDR(0x27034468); /* 0x27017B29: fmul dword ptr [0x27034468] */ 4100 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x27017B2F: fst dword ptr [ebp - 0x10] */ 4101 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x14) = _v; } /* 0x27017B32: fstp dword ptr [ebp + 0x14] */ 4102 RECOMP_ICALL(MEM32(0x27029218)); /* 0x27017B35: call dword ptr [0x27029218] */ 4103 RECOMP_FLAGS_IN(); 4104 PUSH32(esp, 0xD8u); /* 0x27017B3B: push 0xd8 */ 4105 RECOMP_ICALL(0x27026EA4u); /* 0x27017B40: call 0x27026ea4 */ /* not lifted */ 4106 RECOMP_FLAGS_IN(); 4107 edi = eax; /* 0x27017B45: mov edi, eax */ 4108 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4109 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4110 esp = esp + 4; /* 0x27017B47: add esp, 4 */ 4111 _flag_k = FK_ADD; 4112 MEM32(ebp + (-0x18)) = edi; /* 0x27017B4A: mov dword ptr [ebp - 0x18], edi */ 4113 /* test edi, edi */ /* 0x27017B4D: test edi, edi */ 4114 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4115 _cf = 0; 4116 _flag_k = FK_TEST; 4117 MEM32(ebp + (-0x4)) = 2; /* 0x27017B4F: mov dword ptr [ebp - 4], 2 */ 4118 if (TEST_Z(_flag_a, _flag_b)) goto L_27017B8E; /* 0x27017B56: je 0x27017b8e */ 4119 L_27017B58: 4120 edx = MEM32(ebp + 0x18); /* 0x27017B58: mov edx, dword ptr [ebp + 0x18] */ 4121 eax = ebp + 0x8; /* 0x27017B5B: lea eax, [ebp + 8] */ 4122 PUSH32(esp, eax); /* 0x27017B5E: push eax */ 4123 eax = MEM32(esi + 0x10); /* 0x27017B5F: mov eax, dword ptr [esi + 0x10] */ 4124 ecx = ebp + 0x14; /* 0x27017B62: lea ecx, [ebp + 0x14] */ 4125 PUSH32(esp, ecx); /* 0x27017B65: push ecx */ 4126 PUSH32(esp, 0); /* 0x27017B66: push 0 */ 4127 PUSH32(esp, edx); /* 0x27017B68: push edx */ 4128 PUSH32(esp, eax); /* 0x27017B69: push eax */ 4129 ecx = ebp + (-0x20); /* 0x27017B6A: lea ecx, [ebp - 0x20] */ 4130 PUSH32(esp, ecx); /* 0x27017B6D: push ecx */ 4131 ecx = edi; /* 0x27017B6E: mov ecx, edi */ 4132 MEM32(ebp + 0x8) = 0x3F800000u; /* 0x27017B70: mov dword ptr [ebp + 8], 0x3f800000 */ 4133 MEM32(ebp + 0x14) = 0x3F800000u; /* 0x27017B77: mov dword ptr [ebp + 0x14], 0x3f800000 */ 4134 RECOMP_ICALL(MEM32(0x27029208)); /* 0x27017B7E: call dword ptr [0x27029208] */ 4135 RECOMP_FLAGS_IN(); 4136 MEM32(edi) = 0x27034304u; /* 0x27017B84: mov dword ptr [edi], 0x27034304 */ 4137 ecx = edi; /* 0x27017B8A: mov ecx, edi */ 4138 goto L_27017B90; /* 0x27017B8C: jmp 0x27017b90 */ 4139 L_27017B8E: 4140 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4141 ecx = 0; /* 0x27017B8E: xor ecx, ecx */ 4142 _cf = 0; 4143 _flag_k = FK_TEST; 4144 L_27017B90: 4145 edx = MEM32(ebp + 0xC); /* 0x27017B90: mov edx, dword ptr [ebp + 0xc] */ 4146 PUSH32(esp, edx); /* 0x27017B93: push edx */ 4147 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27017B94: mov dword ptr [ebp - 4], 0xffffffff */ 4148 MEM32(esi + 0x8) = ecx; /* 0x27017B9B: mov dword ptr [esi + 8], ecx */ 4149 RECOMP_ICALL(ebx); /* 0x27017B9E: call ebx */ 4150 RECOMP_FLAGS_IN(); 4151 eax = MEM32(ebp + 0x1C); /* 0x27017BA0: mov eax, dword ptr [ebp + 0x1c] */ 4152 ecx = MEM32(esi + 0x8); /* 0x27017BA3: mov ecx, dword ptr [esi + 8] */ 4153 PUSH32(esp, eax); /* 0x27017BA6: push eax */ 4154 RECOMP_ICALL(MEM32(0x27029224)); /* 0x27017BA7: call dword ptr [0x27029224] */ 4155 RECOMP_FLAGS_IN(); 4156 ecx = MEM32(ebp + (-0x14)); /* 0x27017BAD: mov ecx, dword ptr [ebp - 0x14] */ 4157 edx = MEM32(ebp + (-0x10)); /* 0x27017BB0: mov edx, dword ptr [ebp - 0x10] */ 4158 MEM32(ebp + 0x18) = ecx; /* 0x27017BB3: mov dword ptr [ebp + 0x18], ecx */ 4159 eax = ebp + 0x18; /* 0x27017BB6: lea eax, [ebp + 0x18] */ 4160 PUSH32(esp, eax); /* 0x27017BB9: push eax */ 4161 ecx = ebp + 0x1C; /* 0x27017BBA: lea ecx, [ebp + 0x1c] */ 4162 PUSH32(esp, ecx); /* 0x27017BBD: push ecx */ 4163 ecx = MEM32(esi + 0x8); /* 0x27017BBE: mov ecx, dword ptr [esi + 8] */ 4164 MEM32(ebp + 0x1C) = edx; /* 0x27017BC1: mov dword ptr [ebp + 0x1c], edx */ 4165 RECOMP_ICALL(MEM32(0x27029218)); /* 0x27017BC4: call dword ptr [0x27029218] */ 4166 RECOMP_FLAGS_IN(); 4167 edx = ebp + (-0x20); /* 0x27017BCA: lea edx, [ebp - 0x20] */ 4168 PUSH32(esp, edx); /* 0x27017BCD: push edx */ 4169 ecx = esi; /* 0x27017BCE: mov ecx, esi */ 4170 RECOMP_ICALL(0x27017EC0u); /* 0x27017BD0: call 0x27017ec0 */ /* not lifted */ 4171 RECOMP_FLAGS_IN(); 4172 ecx = MEM32(ebp + (-0xC)); /* 0x27017BD5: mov ecx, dword ptr [ebp - 0xc] */ 4173 edi = POP32_VAL(esp); /* 0x27017BD8: pop edi */ 4174 eax = esi; /* 0x27017BD9: mov eax, esi */ 4175 esi = POP32_VAL(esp); /* 0x27017BDB: pop esi */ 4176 ebx = POP32_VAL(esp); /* 0x27017BDC: pop ebx */ 4177 MEM32(FS_BASE + (0)) = ecx; /* 0x27017BDD: mov dword ptr fs:[0], ecx */ 4178 esp = ebp; /* 0x27017BE4: mov esp, ebp */ 4179 ebp = POP32_VAL(esp); /* 0x27017BE6: pop ebp */ 4180 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x27017BE7: ret 0x18 */ 4181 RECOMP_REGS_OUT(); 4182 } 4183 4184 void sub_27017BF0(void) { 4185 int _fpu_cmp = 0; 4186 uint32_t _cf = 0; 4187 int _df = 1; 4188 uint32_t _flag_k = FK_NONE; 4189 uint32_t _flag_a = 0, _flag_b = 0; 4190 uint32_t _itail_tgt = 0; 4191 RECOMP_REGS_LOCALS 4192 RECOMP_ENTER(0x27017BF0u); 4193 4194 L_27017BF0: 4195 PUSH32(esp, esi); /* 0x27017BF0: push esi */ 4196 esi = ecx; /* 0x27017BF1: mov esi, ecx */ 4197 ecx = MEM32(esi + 0x4); /* 0x27017BF3: mov ecx, dword ptr [esi + 4] */ 4198 /* test ecx, ecx */ /* 0x27017BF6: test ecx, ecx */ 4199 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4200 _cf = 0; 4201 _flag_k = FK_TEST; 4202 if (TEST_Z(_flag_a, _flag_b)) goto L_27017C00; /* 0x27017BF8: je 0x27017c00 */ 4203 L_27017BFA: 4204 eax = MEM32(ecx); /* 0x27017BFA: mov eax, dword ptr [ecx] */ 4205 PUSH32(esp, 1); /* 0x27017BFC: push 1 */ 4206 RECOMP_ICALL(MEM32(eax)); /* 0x27017BFE: call dword ptr [eax] */ 4207 RECOMP_FLAGS_IN(); 4208 L_27017C00: 4209 PUSH32(esp, edi); /* 0x27017C00: push edi */ 4210 edi = MEM32(esi); /* 0x27017C01: mov edi, dword ptr [esi] */ 4211 /* test edi, edi */ /* 0x27017C03: test edi, edi */ 4212 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4213 _cf = 0; 4214 _flag_k = FK_TEST; 4215 if (TEST_Z(_flag_a, _flag_b)) goto L_27017C17; /* 0x27017C05: je 0x27017c17 */ 4216 L_27017C07: 4217 ecx = edi; /* 0x27017C07: mov ecx, edi */ 4218 RECOMP_ICALL(0x27018500u); /* 0x27017C09: call 0x27018500 */ /* not lifted */ 4219 RECOMP_FLAGS_IN(); 4220 PUSH32(esp, edi); /* 0x27017C0E: push edi */ 4221 RECOMP_ICALL(0x27026DA4u); /* 0x27017C0F: call 0x27026da4 */ /* not lifted */ 4222 RECOMP_FLAGS_IN(); 4223 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4225 esp = esp + 4; /* 0x27017C14: add esp, 4 */ 4226 _flag_k = FK_ADD; 4227 L_27017C17: 4228 ecx = MEM32(esi + 0xC); /* 0x27017C17: mov ecx, dword ptr [esi + 0xc] */ 4229 /* test ecx, ecx */ /* 0x27017C1A: test ecx, ecx */ 4230 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4231 _cf = 0; 4232 _flag_k = FK_TEST; 4233 edi = POP32_VAL(esp); /* 0x27017C1C: pop edi */ 4234 if (TEST_Z(_flag_a, _flag_b)) goto L_27017C25; /* 0x27017C1D: je 0x27017c25 */ 4235 L_27017C1F: 4236 edx = MEM32(ecx); /* 0x27017C1F: mov edx, dword ptr [ecx] */ 4237 PUSH32(esp, 1); /* 0x27017C21: push 1 */ 4238 RECOMP_ICALL(MEM32(edx)); /* 0x27017C23: call dword ptr [edx] */ 4239 RECOMP_FLAGS_IN(); 4240 L_27017C25: 4241 ecx = MEM32(esi + 0x8); /* 0x27017C25: mov ecx, dword ptr [esi + 8] */ 4242 /* test ecx, ecx */ /* 0x27017C28: test ecx, ecx */ 4243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4244 _cf = 0; 4245 _flag_k = FK_TEST; 4246 if (TEST_Z(_flag_a, _flag_b)) goto L_27017C32; /* 0x27017C2A: je 0x27017c32 */ 4247 L_27017C2C: 4248 eax = MEM32(ecx); /* 0x27017C2C: mov eax, dword ptr [ecx] */ 4249 PUSH32(esp, 1); /* 0x27017C2E: push 1 */ 4250 RECOMP_ICALL(MEM32(eax)); /* 0x27017C30: call dword ptr [eax] */ 4251 RECOMP_FLAGS_IN(); 4252 L_27017C32: 4253 esi = MEM32(esi + 0x10); /* 0x27017C32: mov esi, dword ptr [esi + 0x10] */ 4254 /* test esi, esi */ /* 0x27017C35: test esi, esi */ 4255 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4256 _cf = 0; 4257 _flag_k = FK_TEST; 4258 if (TEST_Z(_flag_a, _flag_b)) goto L_27017C4A; /* 0x27017C37: je 0x27017c4a */ 4259 L_27017C39: 4260 ecx = esi; /* 0x27017C39: mov ecx, esi */ 4261 RECOMP_ICALL(MEM32(0x27029284)); /* 0x27017C3B: call dword ptr [0x27029284] */ 4262 RECOMP_FLAGS_IN(); 4263 PUSH32(esp, esi); /* 0x27017C41: push esi */ 4264 RECOMP_ICALL(0x27026DA4u); /* 0x27017C42: call 0x27026da4 */ /* not lifted */ 4265 RECOMP_FLAGS_IN(); 4266 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4268 esp = esp + 4; /* 0x27017C47: add esp, 4 */ 4269 _flag_k = FK_ADD; 4270 L_27017C4A: 4271 esi = POP32_VAL(esp); /* 0x27017C4A: pop esi */ 4272 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017C4B: ret */ 4273 RECOMP_REGS_OUT(); 4274 } 4275 4276 void sub_27017C50(void) { 4277 int _fpu_cmp = 0; 4278 uint32_t _cf = 0; 4279 int _df = 1; 4280 uint32_t _flag_k = FK_NONE; 4281 uint32_t _flag_a = 0, _flag_b = 0; 4282 uint32_t _itail_tgt = 0; 4283 RECOMP_REGS_LOCALS 4284 RECOMP_ENTER(0x27017C50u); 4285 4286 L_27017C50: 4287 PUSH32(esp, ebp); /* 0x27017C50: push ebp */ 4288 ebp = esp; /* 0x27017C51: mov ebp, esp */ 4289 PUSH32(esp, 0xFFFFFFFFu); /* 0x27017C53: push -1 */ 4290 PUSH32(esp, 0x27027CE1u); /* 0x27017C55: push 0x27027ce1 */ 4291 eax = MEM32(FS_BASE + (0)); /* 0x27017C5A: mov eax, dword ptr fs:[0] */ 4292 PUSH32(esp, eax); /* 0x27017C60: push eax */ 4293 MEM32(FS_BASE + (0)) = esp; /* 0x27017C61: mov dword ptr fs:[0], esp */ 4294 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4296 esp = esp - 0xCu; /* 0x27017C68: sub esp, 0xc */ 4297 _flag_k = FK_CMP; 4298 PUSH32(esp, ebx); /* 0x27017C6B: push ebx */ 4299 PUSH32(esp, esi); /* 0x27017C6C: push esi */ 4300 esi = ecx; /* 0x27017C6D: mov esi, ecx */ 4301 eax = MEM32(esi); /* 0x27017C6F: mov eax, dword ptr [esi] */ 4302 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4303 ecx = 0; /* 0x27017C71: xor ecx, ecx */ 4304 _cf = 0; 4305 _flag_k = FK_TEST; 4306 /* cmp eax, ecx */ /* 0x27017C73: cmp eax, ecx */ 4307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4309 _flag_k = FK_CMP; 4310 PUSH32(esp, edi); /* 0x27017C75: push edi */ 4311 MEM32(ebp + (-0x18)) = esi; /* 0x27017C76: mov dword ptr [ebp - 0x18], esi */ 4312 if (CMP_NE(_flag_a, _flag_b)) goto L_27017DAE; /* 0x27017C79: jne 0x27017dae */ 4313 L_27017C7F: 4314 eax = MEM32(ebp + 0x8); /* 0x27017C7F: mov eax, dword ptr [ebp + 8] */ 4315 eax = MEM32(eax + 0x4); /* 0x27017C82: mov eax, dword ptr [eax + 4] */ 4316 /* cmp eax, ecx */ /* 0x27017C85: cmp eax, ecx */ 4317 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4319 _flag_k = FK_CMP; 4320 MEM32(ebp + (-0x14)) = ecx; /* 0x27017C87: mov dword ptr [ebp - 0x14], ecx */ 4321 MEM32(ebp + (-0x10)) = ecx; /* 0x27017C8A: mov dword ptr [ebp - 0x10], ecx */ 4322 if (CMP_NE(_flag_a, _flag_b)) goto L_27017C94; /* 0x27017C8D: jne 0x27017c94 */ 4323 L_27017C8F: 4324 eax = MEM32(0x27029064); /* 0x27017C8F: mov eax, dword ptr [0x27029064] */ 4325 L_27017C94: 4326 PUSH32(esp, ecx); /* 0x27017C94: push ecx */ 4327 PUSH32(esp, eax); /* 0x27017C95: push eax */ 4328 PUSH32(esp, 5); /* 0x27017C96: push 5 */ 4329 RECOMP_ICALL(0x27024600u); /* 0x27017C98: call 0x27024600 */ /* not lifted */ 4330 RECOMP_FLAGS_IN(); 4331 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4333 esp = esp + 0xCu; /* 0x27017C9D: add esp, 0xc */ 4334 _flag_k = FK_ADD; 4335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4336 eax = eax + 1; /* 0x27017CA0: inc eax */ 4337 _flag_k = FK_INC; 4338 edi = esi + 0x1C; /* 0x27017CA1: lea edi, [esi + 0x1c] */ 4339 MEM32(edi) = eax; /* 0x27017CA4: mov dword ptr [edi], eax */ 4340 ecx = MEM32(0x27048B70); /* 0x27017CA6: mov ecx, dword ptr [0x27048b70] */ 4341 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 4342 ebx = ebx | 0xFFFFFFFFu; /* 0x27017CAC: or ebx, 0xffffffff */ 4343 _cf = 0; 4344 _flag_k = FK_TEST; 4345 /* test ecx, ecx */ /* 0x27017CAF: test ecx, ecx */ 4346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4347 _cf = 0; 4348 _flag_k = FK_TEST; 4349 if (TEST_NZ(_flag_a, _flag_b)) goto L_27017CE1; /* 0x27017CB1: jne 0x27017ce1 */ 4350 L_27017CB3: 4351 PUSH32(esp, 0x20u); /* 0x27017CB3: push 0x20 */ 4352 RECOMP_ICALL(0x27026EA4u); /* 0x27017CB5: call 0x27026ea4 */ /* not lifted */ 4353 RECOMP_FLAGS_IN(); 4354 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4355 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4356 esp = esp + 4; /* 0x27017CBA: add esp, 4 */ 4357 _flag_k = FK_ADD; 4358 MEM32(ebp + (-0x18)) = eax; /* 0x27017CBD: mov dword ptr [ebp - 0x18], eax */ 4359 /* test eax, eax */ /* 0x27017CC0: test eax, eax */ 4360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4361 _cf = 0; 4362 _flag_k = FK_TEST; 4363 MEM32(ebp + (-0x4)) = 0; /* 0x27017CC2: mov dword ptr [ebp - 4], 0 */ 4364 if (TEST_Z(_flag_a, _flag_b)) goto L_27017CD4; /* 0x27017CC9: je 0x27017cd4 */ 4365 L_27017CCB: 4366 ecx = eax; /* 0x27017CCB: mov ecx, eax */ 4367 RECOMP_ICALL(0x2700E3B0u); /* 0x27017CCD: call 0x2700e3b0 */ /* not lifted */ 4368 RECOMP_FLAGS_IN(); 4369 goto L_27017CD6; /* 0x27017CD2: jmp 0x27017cd6 */ 4370 L_27017CD4: 4371 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4372 eax = 0; /* 0x27017CD4: xor eax, eax */ 4373 _cf = 0; 4374 _flag_k = FK_TEST; 4375 L_27017CD6: 4376 ecx = eax; /* 0x27017CD6: mov ecx, eax */ 4377 MEM32(ebp + (-0x4)) = ebx; /* 0x27017CD8: mov dword ptr [ebp - 4], ebx */ 4378 MEM32(0x27048B70) = ecx; /* 0x27017CDB: mov dword ptr [0x27048b70], ecx */ 4379 L_27017CE1: 4380 PUSH32(esp, 5); /* 0x27017CE1: push 5 */ 4381 RECOMP_ICALL(0x2700EAB0u); /* 0x27017CE3: call 0x2700eab0 */ /* not lifted */ 4382 RECOMP_FLAGS_IN(); 4383 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4384 eax = eax + 1; /* 0x27017CE8: inc eax */ 4385 _flag_k = FK_INC; 4386 PUSH32(esp, 0x50u); /* 0x27017CE9: push 0x50 */ 4387 MEM32(esi + 0x20) = eax; /* 0x27017CEB: mov dword ptr [esi + 0x20], eax */ 4388 RECOMP_ICALL(0x27026EA4u); /* 0x27017CEE: call 0x27026ea4 */ /* not lifted */ 4389 RECOMP_FLAGS_IN(); 4390 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4392 esp = esp + 4; /* 0x27017CF3: add esp, 4 */ 4393 _flag_k = FK_ADD; 4394 MEM32(ebp + (-0x18)) = eax; /* 0x27017CF6: mov dword ptr [ebp - 0x18], eax */ 4395 /* test eax, eax */ /* 0x27017CF9: test eax, eax */ 4396 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4397 _cf = 0; 4398 _flag_k = FK_TEST; 4399 MEM32(ebp + (-0x4)) = 1; /* 0x27017CFB: mov dword ptr [ebp - 4], 1 */ 4400 if (TEST_Z(_flag_a, _flag_b)) goto L_27017D29; /* 0x27017D02: je 0x27017d29 */ 4401 L_27017D04: 4402 ecx = MEM32(esi + 0x24); /* 0x27017D04: mov ecx, dword ptr [esi + 0x24] */ 4403 PUSH32(esp, 0); /* 0x27017D07: push 0 */ 4404 PUSH32(esp, 0x3F800000u); /* 0x27017D09: push 0x3f800000 */ 4405 PUSH32(esp, 0x3F800000u); /* 0x27017D0E: push 0x3f800000 */ 4406 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 4407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4408 ecx = ecx + 2; /* 0x27017D13: add ecx, 2 */ 4409 _flag_k = FK_ADD; 4410 PUSH32(esp, ecx); /* 0x27017D16: push ecx */ 4411 edx = ebp + (-0x14); /* 0x27017D17: lea edx, [ebp - 0x14] */ 4412 PUSH32(esp, edx); /* 0x27017D1A: push edx */ 4413 PUSH32(esp, edi); /* 0x27017D1B: push edi */ 4414 PUSH32(esp, 6); /* 0x27017D1C: push 6 */ 4415 PUSH32(esp, 6); /* 0x27017D1E: push 6 */ 4416 ecx = eax; /* 0x27017D20: mov ecx, eax */ 4417 RECOMP_ICALL(0x27018030u); /* 0x27017D22: call 0x27018030 */ /* not lifted */ 4418 RECOMP_FLAGS_IN(); 4419 goto L_27017D2B; /* 0x27017D27: jmp 0x27017d2b */ 4420 L_27017D29: 4421 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4422 eax = 0; /* 0x27017D29: xor eax, eax */ 4423 _cf = 0; 4424 _flag_k = FK_TEST; 4425 L_27017D2B: 4426 PUSH32(esp, 1); /* 0x27017D2B: push 1 */ 4427 MEM32(esi) = eax; /* 0x27017D2D: mov dword ptr [esi], eax */ 4428 eax = MEM32(eax + 0x28); /* 0x27017D2F: mov eax, dword ptr [eax + 0x28] */ 4429 PUSH32(esp, 0); /* 0x27017D32: push 0 */ 4430 PUSH32(esp, 0); /* 0x27017D34: push 0 */ 4431 ecx = eax; /* 0x27017D36: mov ecx, eax */ 4432 MEM32(ebp + (-0x4)) = ebx; /* 0x27017D38: mov dword ptr [ebp - 4], ebx */ 4433 RECOMP_ICALL(MEM32(0x27029270)); /* 0x27017D3B: call dword ptr [0x27029270] */ 4434 RECOMP_FLAGS_IN(); 4435 PUSH32(esp, 0x50u); /* 0x27017D41: push 0x50 */ 4436 RECOMP_ICALL(0x27026EA4u); /* 0x27017D43: call 0x27026ea4 */ /* not lifted */ 4437 RECOMP_FLAGS_IN(); 4438 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4439 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4440 esp = esp + 4; /* 0x27017D48: add esp, 4 */ 4441 _flag_k = FK_ADD; 4442 MEM32(ebp + (-0x18)) = eax; /* 0x27017D4B: mov dword ptr [ebp - 0x18], eax */ 4443 /* test eax, eax */ /* 0x27017D4E: test eax, eax */ 4444 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4445 _cf = 0; 4446 _flag_k = FK_TEST; 4447 MEM32(ebp + (-0x4)) = 2; /* 0x27017D50: mov dword ptr [ebp - 4], 2 */ 4448 if (TEST_Z(_flag_a, _flag_b)) goto L_27017D7A; /* 0x27017D57: je 0x27017d7a */ 4449 L_27017D59: 4450 ecx = MEM32(esi); /* 0x27017D59: mov ecx, dword ptr [esi] */ 4451 edx = MEM32(ebp + (-0x10)); /* 0x27017D5B: mov edx, dword ptr [ebp - 0x10] */ 4452 PUSH32(esp, ecx); /* 0x27017D5E: push ecx */ 4453 ecx = MEM32(ebp + (-0x14)); /* 0x27017D5F: mov ecx, dword ptr [ebp - 0x14] */ 4454 PUSH32(esp, 0); /* 0x27017D62: push 0 */ 4455 PUSH32(esp, edx); /* 0x27017D64: push edx */ 4456 edx = MEM32(ebp + 0x8); /* 0x27017D65: mov edx, dword ptr [ebp + 8] */ 4457 PUSH32(esp, ecx); /* 0x27017D68: push ecx */ 4458 PUSH32(esp, 0xFA0u); /* 0x27017D69: push 0xfa0 */ 4459 PUSH32(esp, edx); /* 0x27017D6E: push edx */ 4460 PUSH32(esp, 5); /* 0x27017D6F: push 5 */ 4461 ecx = eax; /* 0x27017D71: mov ecx, eax */ 4462 RECOMP_ICALL(0x27020A80u); /* 0x27017D73: call 0x27020a80 */ /* not lifted */ 4463 RECOMP_FLAGS_IN(); 4464 goto L_27017D7C; /* 0x27017D78: jmp 0x27017d7c */ 4465 L_27017D7A: 4466 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4467 eax = 0; /* 0x27017D7A: xor eax, eax */ 4468 _cf = 0; 4469 _flag_k = FK_TEST; 4470 L_27017D7C: 4471 PUSH32(esp, 0x00DDDDDDu); /* 0x27017D7C: push 0xdddddd */ 4472 ecx = eax; /* 0x27017D81: mov ecx, eax */ 4473 MEM32(ebp + (-0x4)) = ebx; /* 0x27017D83: mov dword ptr [ebp - 4], ebx */ 4474 MEM32(esi + 0x4) = eax; /* 0x27017D86: mov dword ptr [esi + 4], eax */ 4475 RECOMP_ICALL(0x27020EB0u); /* 0x27017D89: call 0x27020eb0 */ /* not lifted */ 4476 RECOMP_FLAGS_IN(); 4477 ecx = MEM32(esi + 0x4); /* 0x27017D8E: mov ecx, dword ptr [esi + 4] */ 4478 PUSH32(esp, 0x00888888u); /* 0x27017D91: push 0x888888 */ 4479 RECOMP_ICALL(0x27020EC0u); /* 0x27017D96: call 0x27020ec0 */ /* not lifted */ 4480 RECOMP_FLAGS_IN(); 4481 edi = POP32_VAL(esp); /* 0x27017D9B: pop edi */ 4482 esi = POP32_VAL(esp); /* 0x27017D9C: pop esi */ 4483 ebx = POP32_VAL(esp); /* 0x27017D9D: pop ebx */ 4484 ecx = MEM32(ebp + (-0xC)); /* 0x27017D9E: mov ecx, dword ptr [ebp - 0xc] */ 4485 MEM32(FS_BASE + (0)) = ecx; /* 0x27017DA1: mov dword ptr fs:[0], ecx */ 4486 esp = ebp; /* 0x27017DA8: mov esp, ebp */ 4487 ebp = POP32_VAL(esp); /* 0x27017DAA: pop ebp */ 4488 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27017DAB: ret 4 */ 4489 L_27017DAE: 4490 edx = MEM32(ebp + 0x8); /* 0x27017DAE: mov edx, dword ptr [ebp + 8] */ 4491 eax = MEM32(0x27029070); /* 0x27017DB1: mov eax, dword ptr [0x27029070] */ 4492 ecx = MEM32(edx + 0x8); /* 0x27017DB6: mov ecx, dword ptr [edx + 8] */ 4493 ebx = MEM32(esi + 0x4); /* 0x27017DB9: mov ebx, dword ptr [esi + 4] */ 4494 eax = MEM32(eax); /* 0x27017DBC: mov eax, dword ptr [eax] */ 4495 edi = ecx; /* 0x27017DBE: mov edi, ecx */ 4496 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x14u); 4497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4498 ebx = ebx + 0x14u; /* 0x27017DC0: add ebx, 0x14 */ 4499 _flag_k = FK_ADD; 4500 /* cmp eax, edi */ /* 0x27017DC3: cmp eax, edi */ 4501 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4503 _flag_k = FK_CMP; 4504 MEM32(ebp + (-0x10)) = edi; /* 0x27017DC5: mov dword ptr [ebp - 0x10], edi */ 4505 if (CMP_AE(_flag_a, _flag_b)) goto L_27017DCF; /* 0x27017DC8: jae 0x27017dcf */ 4506 L_27017DCA: 4507 MEM32(ebp + (-0x10)) = eax; /* 0x27017DCA: mov dword ptr [ebp - 0x10], eax */ 4508 edi = eax; /* 0x27017DCD: mov edi, eax */ 4509 L_27017DCF: 4510 /* cmp ebx, edx */ /* 0x27017DCF: cmp ebx, edx */ 4511 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 4512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4513 _flag_k = FK_CMP; 4514 if (CMP_NE(_flag_a, _flag_b)) goto L_27017DEE; /* 0x27017DD1: jne 0x27017dee */ 4515 L_27017DD3: 4516 PUSH32(esp, eax); /* 0x27017DD3: push eax */ 4517 PUSH32(esp, edi); /* 0x27017DD4: push edi */ 4518 ecx = ebx; /* 0x27017DD5: mov ecx, ebx */ 4519 RECOMP_ICALL(MEM32(0x270290C4)); /* 0x27017DD7: call dword ptr [0x270290c4] */ 4520 RECOMP_FLAGS_IN(); 4521 PUSH32(esp, 0); /* 0x27017DDD: push 0 */ 4522 PUSH32(esp, 0); /* 0x27017DDF: push 0 */ 4523 ecx = ebx; /* 0x27017DE1: mov ecx, ebx */ 4524 RECOMP_ICALL(MEM32(0x270290C4)); /* 0x27017DE3: call dword ptr [0x270290c4] */ 4525 RECOMP_FLAGS_IN(); 4526 goto L_27017E9A; /* 0x27017DE9: jmp 0x27017e9a */ 4527 L_27017DEE: 4528 /* test edi, edi */ /* 0x27017DEE: test edi, edi */ 4529 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4530 _cf = 0; 4531 _flag_k = FK_TEST; 4532 if (TEST_Z(_flag_a, _flag_b)) goto L_27017E58; /* 0x27017DF0: jbe 0x27017e58 */ 4533 L_27017DF2: 4534 /* cmp edi, ecx */ /* 0x27017DF2: cmp edi, ecx */ 4535 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4537 _flag_k = FK_CMP; 4538 if (CMP_NE(_flag_a, _flag_b)) goto L_27017E58; /* 0x27017DF4: jne 0x27017e58 */ 4539 L_27017DF6: 4540 eax = MEM32(edx + 0x4); /* 0x27017DF6: mov eax, dword ptr [edx + 4] */ 4541 /* test eax, eax */ /* 0x27017DF9: test eax, eax */ 4542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4543 _cf = 0; 4544 _flag_k = FK_TEST; 4545 if (TEST_NZ(_flag_a, _flag_b)) goto L_27017E02; /* 0x27017DFB: jne 0x27017e02 */ 4546 L_27017DFD: 4547 eax = MEM32(0x27029064); /* 0x27017DFD: mov eax, dword ptr [0x27029064] */ 4548 L_27017E02: 4549 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x27017E02: cmp byte ptr [eax - 1], 0xfe */ 4550 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 4551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4552 _flag_k = FK_NARROW(FK_CMP, 24); 4553 if (CMP_AE(_flag_a, _flag_b)) goto L_27017E58; /* 0x27017E06: jae 0x27017e58 */ 4554 L_27017E08: 4555 ecx = MEM32(ebx + 0x4); /* 0x27017E08: mov ecx, dword ptr [ebx + 4] */ 4556 /* test ecx, ecx */ /* 0x27017E0B: test ecx, ecx */ 4557 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4558 _cf = 0; 4559 _flag_k = FK_TEST; 4560 if (TEST_Z(_flag_a, _flag_b)) goto L_27017E2D; /* 0x27017E0D: je 0x27017e2d */ 4561 L_27017E0F: 4562 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x27017E0F: mov al, byte ptr [ecx - 1] */ 4563 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4564 ecx = ecx - 1; /* 0x27017E12: dec ecx */ 4565 _flag_k = FK_DEC; 4566 /* test LO8(eax), LO8(eax) */ /* 0x27017E13: test al, al */ 4567 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4568 _cf = 0; 4569 _flag_k = FK_NARROW(FK_TEST, 24); 4570 if (TEST_Z(_flag_a, _flag_b)) goto L_27017E21; /* 0x27017E15: je 0x27017e21 */ 4571 L_27017E17: 4572 /* cmp LO8(eax), 0xFFu */ /* 0x27017E17: cmp al, 0xff */ 4573 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 4574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4575 _flag_k = FK_NARROW(FK_CMP, 24); 4576 if (CMP_EQ(_flag_a, _flag_b)) goto L_27017E21; /* 0x27017E19: je 0x27017e21 */ 4577 L_27017E1B: 4578 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4579 SET_LO8(eax, LO8(eax) - 1); /* 0x27017E1B: dec al */ 4580 _flag_k = FK_NARROW(FK_DEC, 24); 4581 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x27017E1D: mov byte ptr [ecx], al */ 4582 goto L_27017E2D; /* 0x27017E1F: jmp 0x27017e2d */ 4583 L_27017E21: 4584 PUSH32(esp, ecx); /* 0x27017E21: push ecx */ 4585 RECOMP_ICALL(0x27026DA4u); /* 0x27017E22: call 0x27026da4 */ /* not lifted */ 4586 RECOMP_FLAGS_IN(); 4587 edx = MEM32(ebp + 0x8); /* 0x27017E27: mov edx, dword ptr [ebp + 8] */ 4588 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4589 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4590 esp = esp + 4; /* 0x27017E2A: add esp, 4 */ 4591 _flag_k = FK_ADD; 4592 L_27017E2D: 4593 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4594 eax = 0; /* 0x27017E2D: xor eax, eax */ 4595 _cf = 0; 4596 _flag_k = FK_TEST; 4597 MEM32(ebx + 0x4) = eax; /* 0x27017E2F: mov dword ptr [ebx + 4], eax */ 4598 MEM32(ebx + 0x8) = eax; /* 0x27017E32: mov dword ptr [ebx + 8], eax */ 4599 MEM32(ebx + 0xC) = eax; /* 0x27017E35: mov dword ptr [ebx + 0xc], eax */ 4600 eax = MEM32(edx + 0x4); /* 0x27017E38: mov eax, dword ptr [edx + 4] */ 4601 /* test eax, eax */ /* 0x27017E3B: test eax, eax */ 4602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4603 _cf = 0; 4604 _flag_k = FK_TEST; 4605 if (TEST_NZ(_flag_a, _flag_b)) goto L_27017E44; /* 0x27017E3D: jne 0x27017e44 */ 4606 L_27017E3F: 4607 eax = MEM32(0x27029064); /* 0x27017E3F: mov eax, dword ptr [0x27029064] */ 4608 L_27017E44: 4609 MEM32(ebx + 0x4) = eax; /* 0x27017E44: mov dword ptr [ebx + 4], eax */ 4610 ecx = MEM32(edx + 0x8); /* 0x27017E47: mov ecx, dword ptr [edx + 8] */ 4611 MEM32(ebx + 0x8) = ecx; /* 0x27017E4A: mov dword ptr [ebx + 8], ecx */ 4612 edx = MEM32(edx + 0xC); /* 0x27017E4D: mov edx, dword ptr [edx + 0xc] */ 4613 MEM32(ebx + 0xC) = edx; /* 0x27017E50: mov dword ptr [ebx + 0xc], edx */ 4614 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 4615 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x27017E53: inc byte ptr [eax - 1] */ 4616 _flag_k = FK_NARROW(FK_INC, 24); 4617 goto L_27017E9A; /* 0x27017E56: jmp 0x27017e9a */ 4618 L_27017E58: 4619 PUSH32(esp, 1); /* 0x27017E58: push 1 */ 4620 PUSH32(esp, edi); /* 0x27017E5A: push edi */ 4621 ecx = ebx; /* 0x27017E5B: mov ecx, ebx */ 4622 RECOMP_ICALL(MEM32(0x270290C0)); /* 0x27017E5D: call dword ptr [0x270290c0] */ 4623 RECOMP_FLAGS_IN(); 4624 /* test LO8(eax), LO8(eax) */ /* 0x27017E63: test al, al */ 4625 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4626 _cf = 0; 4627 _flag_k = FK_NARROW(FK_TEST, 24); 4628 if (TEST_Z(_flag_a, _flag_b)) goto L_27017E9A; /* 0x27017E65: je 0x27017e9a */ 4629 L_27017E67: 4630 eax = MEM32(ebp + 0x8); /* 0x27017E67: mov eax, dword ptr [ebp + 8] */ 4631 eax = MEM32(eax + 0x4); /* 0x27017E6A: mov eax, dword ptr [eax + 4] */ 4632 /* test eax, eax */ /* 0x27017E6D: test eax, eax */ 4633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4634 _cf = 0; 4635 _flag_k = FK_TEST; 4636 if (TEST_NZ(_flag_a, _flag_b)) goto L_27017E76; /* 0x27017E6F: jne 0x27017e76 */ 4637 L_27017E71: 4638 eax = MEM32(0x27029064); /* 0x27017E71: mov eax, dword ptr [0x27029064] */ 4639 L_27017E76: 4640 ecx = edi; /* 0x27017E76: mov ecx, edi */ 4641 edi = MEM32(ebx + 0x4); /* 0x27017E78: mov edi, dword ptr [ebx + 4] */ 4642 edx = ecx; /* 0x27017E7B: mov edx, ecx */ 4643 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x27017E7D: shr ecx, 2 */ 4644 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4645 ecx = ecx >> 2u; /* 0x27017E7D: shr ecx, 2 */ 4646 esi = eax; /* 0x27017E80: mov esi, eax */ 4647 eax = MEM32(ebp + (-0x10)); /* 0x27017E82: mov eax, dword ptr [ebp - 0x10] */ 4648 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x27017E85: 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; } 4649 ecx = edx; /* 0x27017E87: mov ecx, edx */ 4650 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4651 ecx = ecx & 3; /* 0x27017E89: and ecx, 3 */ 4652 _cf = 0; 4653 _flag_k = FK_TEST; 4654 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x27017E8C: 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; } 4655 PUSH32(esp, eax); /* 0x27017E8E: push eax */ 4656 ecx = ebx; /* 0x27017E8F: mov ecx, ebx */ 4657 RECOMP_ICALL(MEM32(0x270290A8)); /* 0x27017E91: call dword ptr [0x270290a8] */ 4658 RECOMP_FLAGS_IN(); 4659 esi = MEM32(ebp + (-0x18)); /* 0x27017E97: mov esi, dword ptr [ebp - 0x18] */ 4660 L_27017E9A: 4661 ecx = MEM32(esi + 0x4); /* 0x27017E9A: mov ecx, dword ptr [esi + 4] */ 4662 edi = POP32_VAL(esp); /* 0x27017E9D: pop edi */ 4663 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x27017E9E: mov byte ptr [ecx + 9], 1 */ 4664 ecx = MEM32(ebp + (-0xC)); /* 0x27017EA2: mov ecx, dword ptr [ebp - 0xc] */ 4665 esi = POP32_VAL(esp); /* 0x27017EA5: pop esi */ 4666 ebx = POP32_VAL(esp); /* 0x27017EA6: pop ebx */ 4667 MEM32(FS_BASE + (0)) = ecx; /* 0x27017EA7: mov dword ptr fs:[0], ecx */ 4668 esp = ebp; /* 0x27017EAE: mov esp, ebp */ 4669 ebp = POP32_VAL(esp); /* 0x27017EB0: pop ebp */ 4670 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27017EB1: ret 4 */ 4671 RECOMP_REGS_OUT(); 4672 } 4673 4674 void sub_27017E9A(void) { 4675 int _fpu_cmp = 0; 4676 uint32_t _cf = 0; 4677 int _df = 1; 4678 uint32_t _flag_k = FK_NONE; 4679 uint32_t _flag_a = 0, _flag_b = 0; 4680 uint32_t _itail_tgt = 0; 4681 RECOMP_REGS_LOCALS 4682 RECOMP_ENTER(0x27017E9Au); 4683 4684 L_27017E9A: 4685 ecx = MEM32(esi + 0x4); /* 0x27017E9A: mov ecx, dword ptr [esi + 4] */ 4686 edi = POP32_VAL(esp); /* 0x27017E9D: pop edi */ 4687 MEM8(ecx + 0x9) = (uint8_t)(1); /* 0x27017E9E: mov byte ptr [ecx + 9], 1 */ 4688 ecx = MEM32(ebp + (-0xC)); /* 0x27017EA2: mov ecx, dword ptr [ebp - 0xc] */ 4689 esi = POP32_VAL(esp); /* 0x27017EA5: pop esi */ 4690 ebx = POP32_VAL(esp); /* 0x27017EA6: pop ebx */ 4691 MEM32(FS_BASE + (0)) = ecx; /* 0x27017EA7: mov dword ptr fs:[0], ecx */ 4692 esp = ebp; /* 0x27017EAE: mov esp, ebp */ 4693 ebp = POP32_VAL(esp); /* 0x27017EB0: pop ebp */ 4694 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27017EB1: ret 4 */ 4695 RECOMP_REGS_OUT(); 4696 } 4697 4698 void sub_27017EC0(void) { 4699 int _fpu_cmp = 0; 4700 uint32_t _cf = 0; 4701 int _df = 1; 4702 uint32_t _flag_k = FK_NONE; 4703 uint32_t _flag_a = 0, _flag_b = 0; 4704 uint32_t _itail_tgt = 0; 4705 RECOMP_REGS_LOCALS 4706 RECOMP_ENTER(0x27017EC0u); 4707 4708 L_27017EC0: 4709 PUSH32(esp, ebp); /* 0x27017EC0: push ebp */ 4710 ebp = esp; /* 0x27017EC1: mov ebp, esp */ 4711 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4713 esp = esp - 8; /* 0x27017EC3: sub esp, 8 */ 4714 _flag_k = FK_CMP; 4715 PUSH32(esp, ebx); /* 0x27017EC6: push ebx */ 4716 PUSH32(esp, esi); /* 0x27017EC7: push esi */ 4717 esi = ecx; /* 0x27017EC8: mov esi, ecx */ 4718 ecx = MEM32(esi); /* 0x27017ECA: mov ecx, dword ptr [esi] */ 4719 /* test ecx, ecx */ /* 0x27017ECC: test ecx, ecx */ 4720 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4721 _cf = 0; 4722 _flag_k = FK_TEST; 4723 PUSH32(esp, edi); /* 0x27017ECE: push edi */ 4724 edi = MEM32(ebp + 0x8); /* 0x27017ECF: mov edi, dword ptr [ebp + 8] */ 4725 if (TEST_Z(_flag_a, _flag_b)) goto L_27017F06; /* 0x27017ED2: je 0x27017f06 */ 4726 L_27017ED4: 4727 edx = MEM32(esi + 0x1C); /* 0x27017ED4: mov edx, dword ptr [esi + 0x1c] */ 4728 eax = MEM32(esi + 0x14); /* 0x27017ED7: mov eax, dword ptr [esi + 0x14] */ 4729 ebx = MEM32(edi); /* 0x27017EDA: mov ebx, dword ptr [edi] */ 4730 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4732 eax = eax - edx; /* 0x27017EDC: sub eax, edx */ 4733 _flag_k = FK_CMP; 4734 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x27017EDE: cdq */ 4735 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4737 eax = eax - edx; /* 0x27017EDF: sub eax, edx */ 4738 _flag_k = FK_CMP; 4739 edx = MEM32(esi + 0x20); /* 0x27017EE1: mov edx, dword ptr [esi + 0x20] */ 4740 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x27017EE4: sar eax, 1 */ 4741 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4742 eax = (uint32_t)((int32_t)eax >> 1u); 4743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4745 eax = eax + ebx; /* 0x27017EE6: add eax, ebx */ 4746 _flag_k = FK_ADD; 4747 ebx = MEM32(edi + 0x4); /* 0x27017EE8: mov ebx, dword ptr [edi + 4] */ 4748 MEM32(ebp + (-0x8)) = eax; /* 0x27017EEB: mov dword ptr [ebp - 8], eax */ 4749 eax = MEM32(esi + 0x18); /* 0x27017EEE: mov eax, dword ptr [esi + 0x18] */ 4750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4752 eax = eax - edx; /* 0x27017EF1: sub eax, edx */ 4753 _flag_k = FK_CMP; 4754 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x27017EF3: cdq */ 4755 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4757 eax = eax - edx; /* 0x27017EF4: sub eax, edx */ 4758 _flag_k = FK_CMP; 4759 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x27017EF6: sar eax, 1 */ 4760 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4761 eax = (uint32_t)((int32_t)eax >> 1u); 4762 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4763 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4764 eax = eax + ebx; /* 0x27017EF8: add eax, ebx */ 4765 _flag_k = FK_ADD; 4766 MEM32(ebp + (-0x4)) = eax; /* 0x27017EFA: mov dword ptr [ebp - 4], eax */ 4767 eax = ebp + (-0x8); /* 0x27017EFD: lea eax, [ebp - 8] */ 4768 PUSH32(esp, eax); /* 0x27017F00: push eax */ 4769 RECOMP_ICALL(0x27018620u); /* 0x27017F01: call 0x27018620 */ /* not lifted */ 4770 RECOMP_FLAGS_IN(); 4771 L_27017F06: 4772 ecx = MEM32(esi + 0x8); /* 0x27017F06: mov ecx, dword ptr [esi + 8] */ 4773 ebx = MEM32(0x27029214); /* 0x27017F09: mov ebx, dword ptr [0x27029214] */ 4774 PUSH32(esp, edi); /* 0x27017F0F: push edi */ 4775 RECOMP_ICALL(ebx); /* 0x27017F10: call ebx */ 4776 RECOMP_FLAGS_IN(); 4777 ecx = MEM32(esi + 0xC); /* 0x27017F12: mov ecx, dword ptr [esi + 0xc] */ 4778 PUSH32(esp, edi); /* 0x27017F15: push edi */ 4779 RECOMP_ICALL(ebx); /* 0x27017F16: call ebx */ 4780 RECOMP_FLAGS_IN(); 4781 edi = POP32_VAL(esp); /* 0x27017F18: pop edi */ 4782 esi = POP32_VAL(esp); /* 0x27017F19: pop esi */ 4783 ebx = POP32_VAL(esp); /* 0x27017F1A: pop ebx */ 4784 esp = ebp; /* 0x27017F1B: mov esp, ebp */ 4785 ebp = POP32_VAL(esp); /* 0x27017F1D: pop ebp */ 4786 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27017F1E: ret 4 */ 4787 RECOMP_REGS_OUT(); 4788 } 4789 4790 void sub_27017F30(void) { 4791 int _fpu_cmp = 0; 4792 uint32_t _cf = 0; 4793 int _df = 1; 4794 uint32_t _flag_k = FK_NONE; 4795 uint32_t _flag_a = 0, _flag_b = 0; 4796 uint32_t _itail_tgt = 0; 4797 RECOMP_REGS_LOCALS 4798 RECOMP_ENTER(0x27017F30u); 4799 4800 L_27017F30: 4801 PUSH32(esp, esi); /* 0x27017F30: push esi */ 4802 esi = ecx; /* 0x27017F31: mov esi, ecx */ 4803 ecx = MEM32(esi); /* 0x27017F33: mov ecx, dword ptr [esi] */ 4804 /* test ecx, ecx */ /* 0x27017F35: test ecx, ecx */ 4805 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4806 _cf = 0; 4807 _flag_k = FK_TEST; 4808 if (TEST_Z(_flag_a, _flag_b)) goto L_27017F45; /* 0x27017F37: je 0x27017f45 */ 4809 L_27017F39: 4810 RECOMP_ICALL(0x27018860u); /* 0x27017F39: call 0x27018860 */ /* not lifted */ 4811 RECOMP_FLAGS_IN(); 4812 eax = MEM32(esi + 0x4); /* 0x27017F3E: mov eax, dword ptr [esi + 4] */ 4813 MEM8(eax + 0x8) = (uint8_t)(1); /* 0x27017F41: mov byte ptr [eax + 8], 1 */ 4814 L_27017F45: 4815 ecx = MEM32(esi + 0x8); /* 0x27017F45: mov ecx, dword ptr [esi + 8] */ 4816 edx = MEM32(ecx); /* 0x27017F48: mov edx, dword ptr [ecx] */ 4817 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x27017F4A: call dword ptr [edx + 8] */ 4818 RECOMP_FLAGS_IN(); 4819 ecx = MEM32(esi + 0xC); /* 0x27017F4D: mov ecx, dword ptr [esi + 0xc] */ 4820 eax = MEM32(ecx); /* 0x27017F50: mov eax, dword ptr [ecx] */ 4821 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x27017F52: call dword ptr [eax + 8] */ 4822 RECOMP_FLAGS_IN(); 4823 esi = POP32_VAL(esp); /* 0x27017F55: pop esi */ 4824 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017F56: ret */ 4825 RECOMP_REGS_OUT(); 4826 } 4827 4828 void sub_27017F60(void) { 4829 int _fpu_cmp = 0; 4830 uint32_t _cf = 0; 4831 int _df = 1; 4832 uint32_t _flag_k = FK_NONE; 4833 uint32_t _flag_a = 0, _flag_b = 0; 4834 uint32_t _itail_tgt = 0; 4835 RECOMP_REGS_LOCALS 4836 RECOMP_ENTER(0x27017F60u); 4837 4838 L_27017F60: 4839 PUSH32(esp, esi); /* 0x27017F60: push esi */ 4840 esi = ecx; /* 0x27017F61: mov esi, ecx */ 4841 ecx = MEM32(esi); /* 0x27017F63: mov ecx, dword ptr [esi] */ 4842 /* test ecx, ecx */ /* 0x27017F65: test ecx, ecx */ 4843 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4844 _cf = 0; 4845 _flag_k = FK_TEST; 4846 if (TEST_Z(_flag_a, _flag_b)) goto L_27017F75; /* 0x27017F67: je 0x27017f75 */ 4847 L_27017F69: 4848 RECOMP_ICALL(0x27018890u); /* 0x27017F69: call 0x27018890 */ /* not lifted */ 4849 RECOMP_FLAGS_IN(); 4850 eax = MEM32(esi + 0x4); /* 0x27017F6E: mov eax, dword ptr [esi + 4] */ 4851 MEM8(eax + 0x8) = (uint8_t)(0); /* 0x27017F71: mov byte ptr [eax + 8], 0 */ 4852 L_27017F75: 4853 ecx = MEM32(esi + 0x8); /* 0x27017F75: mov ecx, dword ptr [esi + 8] */ 4854 edx = MEM32(ecx); /* 0x27017F78: mov edx, dword ptr [ecx] */ 4855 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x27017F7A: call dword ptr [edx + 0xc] */ 4856 RECOMP_FLAGS_IN(); 4857 ecx = MEM32(esi + 0xC); /* 0x27017F7D: mov ecx, dword ptr [esi + 0xc] */ 4858 eax = MEM32(ecx); /* 0x27017F80: mov eax, dword ptr [ecx] */ 4859 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x27017F82: call dword ptr [eax + 0xc] */ 4860 RECOMP_FLAGS_IN(); 4861 esi = POP32_VAL(esp); /* 0x27017F85: pop esi */ 4862 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27017F86: ret */ 4863 RECOMP_REGS_OUT(); 4864 } 4865 4866 void sub_27017F90(void) { 4867 int _fpu_cmp = 0; 4868 uint32_t _cf = 0; 4869 int _df = 1; 4870 uint32_t _flag_k = FK_NONE; 4871 uint32_t _flag_a = 0, _flag_b = 0; 4872 uint32_t _itail_tgt = 0; 4873 RECOMP_REGS_LOCALS 4874 RECOMP_ENTER(0x27017F90u); 4875 4876 L_27017F90: 4877 PUSH32(esp, ebp); /* 0x27017F90: push ebp */ 4878 ebp = esp; /* 0x27017F91: mov ebp, esp */ 4879 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4881 esp = esp - 0xCu; /* 0x27017F93: sub esp, 0xc */ 4882 _flag_k = FK_CMP; 4883 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x27017F96: fld dword ptr [ebp + 8] */ 4884 PUSH32(esp, esi); /* 0x27017F99: push esi */ 4885 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x270344A0)); /* 0x27017F9A: fcom qword ptr [0x270344a0] */ 4886 esi = ecx; /* 0x27017FA0: mov esi, ecx */ 4887 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x27017FA2: fnstsw ax */ 4888 /* test HI8(eax), 1 */ /* 0x27017FA4: test ah, 1 */ 4889 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4890 _cf = 0; 4891 _flag_k = FK_NARROW(FK_TEST, 24); 4892 if (TEST_Z(_flag_a, _flag_b)) goto L_27017FB3; /* 0x27017FA7: je 0x27017fb3 */ 4893 L_27017FA9: 4894 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x27017FA9: fstp st(0) */ 4895 fp_push(*(float*)&MEM32(0x2703449C)); /* 0x27017FAB: fld dword ptr [0x2703449c] */ 4896 goto L_27017FC8; /* 0x27017FB1: jmp 0x27017fc8 */ 4897 L_27017FB3: 4898 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x27034398)); /* 0x27017FB3: fcom qword ptr [0x27034398] */ 4899 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x27017FB9: fnstsw ax */ 4900 /* test HI8(eax), 0x41u */ /* 0x27017FBB: test ah, 0x41 */ 4901 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4902 _cf = 0; 4903 _flag_k = FK_NARROW(FK_TEST, 24); 4904 if (TEST_NZ(_flag_a, _flag_b)) goto L_27017FC8; /* 0x27017FBE: jne 0x27017fc8 */ 4905 L_27017FC0: 4906 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x27017FC0: fstp st(0) */ 4907 fp_push(*(float*)&MEM32(0x270343A8)); /* 0x27017FC2: fld dword ptr [0x270343a8] */ 4908 L_27017FC8: 4909 _st[0] = _st[0] * (double)(int32_t)MEM32(esi + 0x14); /* 0x27017FC8: fimul dword ptr [esi + 0x14] */ 4910 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2703449C)); /* 0x27017FCB: fcom dword ptr [0x2703449c] */ 4911 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x27017FD1: fnstsw ax */ 4912 /* test HI8(eax), 0x41u */ /* 0x27017FD3: test ah, 0x41 */ 4913 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4914 _cf = 0; 4915 _flag_k = FK_NARROW(FK_TEST, 24); 4916 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018000; /* 0x27017FD6: jne 0x27018000 */ 4917 L_27017FD8: 4918 fp_push((double)(int32_t)MEM32(esi + 0x18)); /* 0x27017FD8: fild dword ptr [esi + 0x18] */ 4919 eax = ebp + 0x8; /* 0x27017FDB: lea eax, [ebp + 8] */ 4920 PUSH32(esp, eax); /* 0x27017FDE: push eax */ 4921 ecx = ebp + (-0x4); /* 0x27017FDF: lea ecx, [ebp - 4] */ 4922 _st[0] *= (double)*(float*)ADDR(0x27034468); /* 0x27017FE2: fmul dword ptr [0x27034468] */ 4923 PUSH32(esp, ecx); /* 0x27017FE8: push ecx */ 4924 ecx = MEM32(esi + 0xC); /* 0x27017FE9: mov ecx, dword ptr [esi + 0xc] */ 4925 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x27017FEC: fstp dword ptr [ebp + 8] */ 4926 _st[0] *= (double)*(float*)ADDR(0x27034468); /* 0x27017FEF: fmul dword ptr [0x27034468] */ 4927 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x27017FF5: fstp dword ptr [ebp - 4] */ 4928 RECOMP_ICALL(MEM32(0x27029218)); /* 0x27017FF8: call dword ptr [0x27029218] */ 4929 RECOMP_FLAGS_IN(); 4930 goto L_27018002; /* 0x27017FFE: jmp 0x27018002 */ 4931 L_27018000: 4932 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x27018000: fstp st(0) */ 4933 L_27018002: 4934 esi = MEM32(esi + 0xC); /* 0x27018002: mov esi, dword ptr [esi + 0xc] */ 4935 fp_push(*(float*)&MEM32(esi + 0x18)); /* 0x27018005: fld dword ptr [esi + 0x18] */ 4936 RECOMP_ICALL(0x27026ED2u); /* 0x27018008: call 0x27026ed2 */ /* not lifted */ 4937 RECOMP_FLAGS_IN(); 4938 MEM32(ebp + (-0xC)) = eax; /* 0x2701800D: mov dword ptr [ebp - 0xc], eax */ 4939 fp_push(*(float*)&MEM32(esi + 0x1C)); /* 0x27018010: fld dword ptr [esi + 0x1c] */ 4940 RECOMP_ICALL(0x27026ED2u); /* 0x27018013: call 0x27026ed2 */ /* not lifted */ 4941 RECOMP_FLAGS_IN(); 4942 edx = ebp + (-0xC); /* 0x27018018: lea edx, [ebp - 0xc] */ 4943 PUSH32(esp, edx); /* 0x2701801B: push edx */ 4944 ecx = esi; /* 0x2701801C: mov ecx, esi */ 4945 MEM32(ebp + (-0x8)) = eax; /* 0x2701801E: mov dword ptr [ebp - 8], eax */ 4946 RECOMP_ICALL(MEM32(0x27029214)); /* 0x27018021: call dword ptr [0x27029214] */ 4947 RECOMP_FLAGS_IN(); 4948 esi = POP32_VAL(esp); /* 0x27018027: pop esi */ 4949 esp = ebp; /* 0x27018028: mov esp, ebp */ 4950 ebp = POP32_VAL(esp); /* 0x2701802A: pop ebp */ 4951 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701802B: ret 4 */ 4952 RECOMP_REGS_OUT(); 4953 } 4954 4955 void sub_27018030(void) { 4956 int _fpu_cmp = 0; 4957 uint32_t _cf = 0; 4958 int _df = 1; 4959 uint32_t _flag_k = FK_NONE; 4960 uint32_t _flag_a = 0, _flag_b = 0; 4961 uint32_t _itail_tgt = 0; 4962 RECOMP_REGS_LOCALS 4963 RECOMP_ENTER(0x27018030u); 4964 4965 L_27018030: 4966 PUSH32(esp, ebp); /* 0x27018030: push ebp */ 4967 ebp = esp; /* 0x27018031: mov ebp, esp */ 4968 eax = MEM32(FS_BASE + (0)); /* 0x27018033: mov eax, dword ptr fs:[0] */ 4969 PUSH32(esp, 0xFFFFFFFFu); /* 0x27018039: push -1 */ 4970 PUSH32(esp, 0x27027CFBu); /* 0x2701803B: push 0x27027cfb */ 4971 PUSH32(esp, eax); /* 0x27018040: push eax */ 4972 eax = MEM32(ebp + 0x24); /* 0x27018041: mov eax, dword ptr [ebp + 0x24] */ 4973 MEM32(FS_BASE + (0)) = esp; /* 0x27018044: mov dword ptr fs:[0], esp */ 4974 PUSH32(esp, ebx); /* 0x2701804B: push ebx */ 4975 PUSH32(esp, esi); /* 0x2701804C: push esi */ 4976 PUSH32(esp, edi); /* 0x2701804D: push edi */ 4977 edi = ecx; /* 0x2701804E: mov edi, ecx */ 4978 MEM32(edi + 0x20) = eax; /* 0x27018050: mov dword ptr [edi + 0x20], eax */ 4979 MEM8(edi + 0x24) = (uint8_t)(1); /* 0x27018053: mov byte ptr [edi + 0x24], 1 */ 4980 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4981 ebx = 0; /* 0x27018057: xor ebx, ebx */ 4982 _cf = 0; 4983 _flag_k = FK_TEST; 4984 MEM32(edi + 0x34) = ebx; /* 0x27018059: mov dword ptr [edi + 0x34], ebx */ 4985 MEM32(edi + 0x38) = ebx; /* 0x2701805C: mov dword ptr [edi + 0x38], ebx */ 4986 RECOMP_ICALL(0x270181A0u); /* 0x2701805F: call 0x270181a0 */ /* not lifted */ 4987 RECOMP_FLAGS_IN(); 4988 ecx = MEM32(ebp + 0x1C); /* 0x27018064: mov ecx, dword ptr [ebp + 0x1c] */ 4989 edx = MEM32(ebp + 0x20); /* 0x27018067: mov edx, dword ptr [ebp + 0x20] */ 4990 eax = MEM32(ebp + 0x18); /* 0x2701806A: mov eax, dword ptr [ebp + 0x18] */ 4991 PUSH32(esp, 0x14u); /* 0x2701806D: push 0x14 */ 4992 MEM32(edi + 0x3C) = ecx; /* 0x2701806F: mov dword ptr [edi + 0x3c], ecx */ 4993 MEM32(edi + 0x40) = edx; /* 0x27018072: mov dword ptr [edi + 0x40], edx */ 4994 MEM32(edi + 0x1C) = ebx; /* 0x27018075: mov dword ptr [edi + 0x1c], ebx */ 4995 MEM32(edi + 0x18) = ebx; /* 0x27018078: mov dword ptr [edi + 0x18], ebx */ 4996 MEM32(edi + 0x28) = ebx; /* 0x2701807B: mov dword ptr [edi + 0x28], ebx */ 4997 MEM32(edi + 0x14) = ebx; /* 0x2701807E: mov dword ptr [edi + 0x14], ebx */ 4998 MEM32(edi + 0x44) = eax; /* 0x27018081: mov dword ptr [edi + 0x44], eax */ 4999 RECOMP_ICALL(0x27026EA4u); /* 0x27018084: call 0x27026ea4 */ /* not lifted */ 5000 RECOMP_FLAGS_IN(); 5001 esi = eax; /* 0x27018089: mov esi, eax */ 5002 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5004 esp = esp + 4; /* 0x2701808B: add esp, 4 */ 5005 _flag_k = FK_ADD; 5006 MEM32(ebp + 0x1C) = esi; /* 0x2701808E: mov dword ptr [ebp + 0x1c], esi */ 5007 /* cmp esi, ebx */ /* 0x27018091: cmp esi, ebx */ 5008 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5010 _flag_k = FK_CMP; 5011 MEM32(ebp + (-0x4)) = ebx; /* 0x27018093: mov dword ptr [ebp - 4], ebx */ 5012 if (CMP_EQ(_flag_a, _flag_b)) goto L_270180F5; /* 0x27018096: je 0x270180f5 */ 5013 L_27018098: 5014 SET_LO8(ecx, MEM8(ebp + 0x27)); /* 0x27018098: mov cl, byte ptr [ebp + 0x27] */ 5015 SET_LO8(edx, MEM8(ebp + 0x27)); /* 0x2701809B: mov dl, byte ptr [ebp + 0x27] */ 5016 PUSH32(esp, 0x14u); /* 0x2701809E: push 0x14 */ 5017 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x270180A0: mov byte ptr [esi], cl */ 5018 MEM8(esi + 0x1) = (uint8_t)(LO8(edx)); /* 0x270180A2: mov byte ptr [esi + 1], dl */ 5019 MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x270180A5: mov byte ptr [esi + 0xc], bl */ 5020 RECOMP_ICALL(0x27026EA4u); /* 0x270180A8: call 0x27026ea4 */ /* not lifted */ 5021 RECOMP_FLAGS_IN(); 5022 MEM32(eax + 0x4) = ebx; /* 0x270180AD: mov dword ptr [eax + 4], ebx */ 5023 MEM8(eax + 0x10) = (uint8_t)(1); /* 0x270180B0: mov byte ptr [eax + 0x10], 1 */ 5024 MEM8(eax + 0x11) = (uint8_t)(LO8(ebx)); /* 0x270180B4: mov byte ptr [eax + 0x11], bl */ 5025 MEM32(esi + 0x8) = eax; /* 0x270180B7: mov dword ptr [esi + 8], eax */ 5026 MEM8(eax + 0x11) = (uint8_t)(1); /* 0x270180BA: mov byte ptr [eax + 0x11], 1 */ 5027 eax = MEM32(esi + 0x8); /* 0x270180BE: mov eax, dword ptr [esi + 8] */ 5028 MEM32(eax) = ebx; /* 0x270180C1: mov dword ptr [eax], ebx */ 5029 eax = MEM32(esi + 0x8); /* 0x270180C3: mov eax, dword ptr [esi + 8] */ 5030 MEM32(eax + 0x8) = ebx; /* 0x270180C6: mov dword ptr [eax + 8], ebx */ 5031 ecx = MEM32(esi + 0x8); /* 0x270180C9: mov ecx, dword ptr [esi + 8] */ 5032 PUSH32(esp, 0x14u); /* 0x270180CC: push 0x14 */ 5033 MEM32(ebp + 0x24) = ecx; /* 0x270180CE: mov dword ptr [ebp + 0x24], ecx */ 5034 RECOMP_ICALL(0x27026EA4u); /* 0x270180D1: call 0x27026ea4 */ /* not lifted */ 5035 RECOMP_FLAGS_IN(); 5036 edx = MEM32(ebp + 0x24); /* 0x270180D6: mov edx, dword ptr [ebp + 0x24] */ 5037 MEM32(eax + 0x4) = edx; /* 0x270180D9: mov dword ptr [eax + 4], edx */ 5038 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270180DC: mov byte ptr [eax + 0x10], bl */ 5039 MEM8(eax + 0x11) = (uint8_t)(LO8(ebx)); /* 0x270180DF: mov byte ptr [eax + 0x11], bl */ 5040 MEM32(esi + 0x4) = eax; /* 0x270180E2: mov dword ptr [esi + 4], eax */ 5041 MEM32(eax) = eax; /* 0x270180E5: mov dword ptr [eax], eax */ 5042 eax = MEM32(esi + 0x4); /* 0x270180E7: mov eax, dword ptr [esi + 4] */ 5043 MEM32(eax + 0x8) = eax; /* 0x270180EA: mov dword ptr [eax + 8], eax */ 5044 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5045 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5046 esp = esp + 8; /* 0x270180ED: add esp, 8 */ 5047 _flag_k = FK_ADD; 5048 MEM32(esi + 0x10) = ebx; /* 0x270180F0: mov dword ptr [esi + 0x10], ebx */ 5049 goto L_270180F7; /* 0x270180F3: jmp 0x270180f7 */ 5050 L_270180F5: 5051 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5052 esi = 0; /* 0x270180F5: xor esi, esi */ 5053 _cf = 0; 5054 _flag_k = FK_TEST; 5055 L_270180F7: 5056 eax = MEM32(ebp + 0x8); /* 0x270180F7: mov eax, dword ptr [ebp + 8] */ 5057 /* cmp eax, 0xFFFFFFFFu */ /* 0x270180FA: cmp eax, -1 */ 5058 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5060 _flag_k = FK_CMP; 5061 MEM32(edi + 0x48) = esi; /* 0x270180FD: mov dword ptr [edi + 0x48], esi */ 5062 esi = MEM32(ebp + 0x10); /* 0x27018100: mov esi, dword ptr [ebp + 0x10] */ 5063 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27018103: mov dword ptr [ebp - 4], 0xffffffff */ 5064 MEM8(edi + 0x4C) = (uint8_t)(LO8(ebx)); /* 0x2701810A: mov byte ptr [edi + 0x4c], bl */ 5065 if (CMP_NE(_flag_a, _flag_b)) goto L_27018138; /* 0x2701810D: jne 0x27018138 */ 5066 L_2701810F: 5067 eax = MEM32(esi); /* 0x2701810F: mov eax, dword ptr [esi] */ 5068 /* cmp eax, 0x20u */ /* 0x27018111: cmp eax, 0x20 */ 5069 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 5070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5071 _flag_k = FK_CMP; 5072 if (CMP_GE(_flag_a, _flag_b)) goto L_2701811D; /* 0x27018114: jge 0x2701811d */ 5073 L_27018116: 5074 eax = 4; /* 0x27018116: mov eax, 4 */ 5075 goto L_27018138; /* 0x2701811B: jmp 0x27018138 */ 5076 L_2701811D: 5077 /* cmp eax, 0x60u */ /* 0x2701811D: cmp eax, 0x60 */ 5078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x60u); 5079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5080 _flag_k = FK_CMP; 5081 if (CMP_GE(_flag_a, _flag_b)) goto L_27018129; /* 0x27018120: jge 0x27018129 */ 5082 L_27018122: 5083 eax = 5; /* 0x27018122: mov eax, 5 */ 5084 goto L_27018138; /* 0x27018127: jmp 0x27018138 */ 5085 L_27018129: 5086 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5087 ecx = 0; /* 0x27018129: xor ecx, ecx */ 5088 _cf = 0; 5089 _flag_k = FK_TEST; 5090 /* cmp eax, 0xC0u */ /* 0x2701812B: cmp eax, 0xc0 */ 5091 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC0u); 5092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5093 _flag_k = FK_CMP; 5094 SET_LO8(ecx, (CMP_GE(_flag_a, _flag_b)) ? 1 : 0); /* 0x27018130: setge cl */ 5095 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(6); 5096 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5097 ecx = ecx + 6; /* 0x27018133: add ecx, 6 */ 5098 _flag_k = FK_ADD; 5099 eax = ecx; /* 0x27018136: mov eax, ecx */ 5100 L_27018138: 5101 ecx = MEM32(ebp + 0xC); /* 0x27018138: mov ecx, dword ptr [ebp + 0xc] */ 5102 /* cmp ecx, 0xFFFFFFFFu */ /* 0x2701813B: cmp ecx, -1 */ 5103 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 5104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5105 _flag_k = FK_CMP; 5106 if (CMP_NE(_flag_a, _flag_b)) goto L_2701816B; /* 0x2701813E: jne 0x2701816b */ 5107 L_27018140: 5108 ecx = MEM32(esi + 0x4); /* 0x27018140: mov ecx, dword ptr [esi + 4] */ 5109 /* cmp ecx, 0x20u */ /* 0x27018143: cmp ecx, 0x20 */ 5110 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 5111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5112 _flag_k = FK_CMP; 5113 if (CMP_GE(_flag_a, _flag_b)) goto L_2701814F; /* 0x27018146: jge 0x2701814f */ 5114 L_27018148: 5115 ecx = 4; /* 0x27018148: mov ecx, 4 */ 5116 goto L_2701816B; /* 0x2701814D: jmp 0x2701816b */ 5117 L_2701814F: 5118 /* cmp ecx, 0x60u */ /* 0x2701814F: cmp ecx, 0x60 */ 5119 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x60u); 5120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5121 _flag_k = FK_CMP; 5122 if (CMP_GE(_flag_a, _flag_b)) goto L_2701815B; /* 0x27018152: jge 0x2701815b */ 5123 L_27018154: 5124 ecx = 5; /* 0x27018154: mov ecx, 5 */ 5125 goto L_2701816B; /* 0x27018159: jmp 0x2701816b */ 5126 L_2701815B: 5127 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5128 edx = 0; /* 0x2701815B: xor edx, edx */ 5129 _cf = 0; 5130 _flag_k = FK_TEST; 5131 /* cmp ecx, 0xC0u */ /* 0x2701815D: cmp ecx, 0xc0 */ 5132 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC0u); 5133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5134 _flag_k = FK_CMP; 5135 SET_LO8(edx, (CMP_GE(_flag_a, _flag_b)) ? 1 : 0); /* 0x27018163: setge dl */ 5136 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(6); 5137 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5138 edx = edx + 6; /* 0x27018166: add edx, 6 */ 5139 _flag_k = FK_ADD; 5140 ecx = edx; /* 0x27018169: mov ecx, edx */ 5141 L_2701816B: 5142 PUSH32(esp, esi); /* 0x2701816B: push esi */ 5143 PUSH32(esp, ecx); /* 0x2701816C: push ecx */ 5144 PUSH32(esp, eax); /* 0x2701816D: push eax */ 5145 ecx = edi; /* 0x2701816E: mov ecx, edi */ 5146 RECOMP_ICALL(0x270181E0u); /* 0x27018170: call 0x270181e0 */ /* not lifted */ 5147 RECOMP_FLAGS_IN(); 5148 eax = MEM32(ebp + 0x14); /* 0x27018175: mov eax, dword ptr [ebp + 0x14] */ 5149 PUSH32(esp, eax); /* 0x27018178: push eax */ 5150 ecx = edi; /* 0x27018179: mov ecx, edi */ 5151 RECOMP_ICALL(0x27018620u); /* 0x2701817B: call 0x27018620 */ /* not lifted */ 5152 RECOMP_FLAGS_IN(); 5153 ecx = MEM32(ebp + (-0xC)); /* 0x27018180: mov ecx, dword ptr [ebp - 0xc] */ 5154 eax = edi; /* 0x27018183: mov eax, edi */ 5155 edi = POP32_VAL(esp); /* 0x27018185: pop edi */ 5156 esi = POP32_VAL(esp); /* 0x27018186: pop esi */ 5157 MEM32(FS_BASE + (0)) = ecx; /* 0x27018187: mov dword ptr fs:[0], ecx */ 5158 ebx = POP32_VAL(esp); /* 0x2701818E: pop ebx */ 5159 esp = ebp; /* 0x2701818F: mov esp, ebp */ 5160 ebp = POP32_VAL(esp); /* 0x27018191: pop ebp */ 5161 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x27018192: ret 0x20 */ 5162 RECOMP_REGS_OUT(); 5163 } 5164 5165 void sub_270181A0(void) { 5166 int _fpu_cmp = 0; 5167 uint32_t _cf = 0; 5168 int _df = 1; 5169 uint32_t _flag_k = FK_NONE; 5170 uint32_t _flag_a = 0, _flag_b = 0; 5171 uint32_t _itail_tgt = 0; 5172 RECOMP_REGS_LOCALS 5173 RECOMP_ENTER(0x270181A0u); 5174 5175 L_270181A0: 5176 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5177 eax = 0; /* 0x270181A0: xor eax, eax */ 5178 _cf = 0; 5179 _flag_k = FK_TEST; 5180 MEM32(ecx) = eax; /* 0x270181A2: mov dword ptr [ecx], eax */ 5181 MEM32(ecx + 0x4) = eax; /* 0x270181A4: mov dword ptr [ecx + 4], eax */ 5182 MEM32(ecx + 0x8) = eax; /* 0x270181A7: mov dword ptr [ecx + 8], eax */ 5183 MEM32(ecx + 0xC) = eax; /* 0x270181AA: mov dword ptr [ecx + 0xc], eax */ 5184 MEM32(ecx + 0x10) = eax; /* 0x270181AD: mov dword ptr [ecx + 0x10], eax */ 5185 MEM32(ecx + 0x14) = eax; /* 0x270181B0: mov dword ptr [ecx + 0x14], eax */ 5186 MEM32(ecx + 0x18) = eax; /* 0x270181B3: mov dword ptr [ecx + 0x18], eax */ 5187 MEM32(ecx + 0x1C) = eax; /* 0x270181B6: mov dword ptr [ecx + 0x1c], eax */ 5188 MEM32(ecx + 0x30) = eax; /* 0x270181B9: mov dword ptr [ecx + 0x30], eax */ 5189 MEM32(ecx + 0x2C) = eax; /* 0x270181BC: mov dword ptr [ecx + 0x2c], eax */ 5190 MEM32(ecx + 0x28) = eax; /* 0x270181BF: mov dword ptr [ecx + 0x28], eax */ 5191 MEM32(ecx + 0x3C) = eax; /* 0x270181C2: mov dword ptr [ecx + 0x3c], eax */ 5192 MEM32(ecx + 0x40) = eax; /* 0x270181C5: mov dword ptr [ecx + 0x40], eax */ 5193 MEM32(ecx + 0x44) = eax; /* 0x270181C8: mov dword ptr [ecx + 0x44], eax */ 5194 MEM32(ecx + 0x48) = eax; /* 0x270181CB: mov dword ptr [ecx + 0x48], eax */ 5195 MEM8(ecx + 0x4C) = (uint8_t)(LO8(eax)); /* 0x270181CE: mov byte ptr [ecx + 0x4c], al */ 5196 MEM8(ecx + 0x24) = (uint8_t)(1); /* 0x270181D1: mov byte ptr [ecx + 0x24], 1 */ 5197 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270181D5: ret */ 5198 RECOMP_REGS_OUT(); 5199 } 5200 5201 void sub_270181E0(void) { 5202 int _fpu_cmp = 0; 5203 uint32_t _cf = 0; 5204 int _df = 1; 5205 uint32_t _flag_k = FK_NONE; 5206 uint32_t _flag_a = 0, _flag_b = 0; 5207 uint32_t _itail_tgt = 0; 5208 RECOMP_REGS_LOCALS 5209 RECOMP_ENTER(0x270181E0u); 5210 5211 L_270181E0: 5212 PUSH32(esp, ebp); /* 0x270181E0: push ebp */ 5213 ebp = esp; /* 0x270181E1: mov ebp, esp */ 5214 PUSH32(esp, 0xFFFFFFFFu); /* 0x270181E3: push -1 */ 5215 PUSH32(esp, 0x27027D31u); /* 0x270181E5: push 0x27027d31 */ 5216 eax = MEM32(FS_BASE + (0)); /* 0x270181EA: mov eax, dword ptr fs:[0] */ 5217 PUSH32(esp, eax); /* 0x270181F0: push eax */ 5218 MEM32(FS_BASE + (0)) = esp; /* 0x270181F1: mov dword ptr fs:[0], esp */ 5219 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5221 esp = esp - 0x10u; /* 0x270181F8: sub esp, 0x10 */ 5222 _flag_k = FK_CMP; 5223 PUSH32(esp, ebx); /* 0x270181FB: push ebx */ 5224 PUSH32(esp, esi); /* 0x270181FC: push esi */ 5225 PUSH32(esp, edi); /* 0x270181FD: push edi */ 5226 esi = ecx; /* 0x270181FE: mov esi, ecx */ 5227 RECOMP_ICALL(0x27018450u); /* 0x27018200: call 0x27018450 */ /* not lifted */ 5228 RECOMP_FLAGS_IN(); 5229 ecx = MEM32(ebp + 0x8); /* 0x27018205: mov ecx, dword ptr [ebp + 8] */ 5230 edi = 1; /* 0x27018208: mov edi, 1 */ 5231 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edi) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x2701820D: shl edi, cl */ 5232 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edi << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5233 edi = edi << ((LO8(ecx)) & 31); /* 0x2701820D: shl edi, cl */ 5234 ecx = MEM32(ebp + 0xC); /* 0x2701820F: mov ecx, dword ptr [ebp + 0xc] */ 5235 ebx = 1; /* 0x27018212: mov ebx, 1 */ 5236 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((ebx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x27018217: shl ebx, cl */ 5237 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((ebx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5238 ebx = ebx << ((LO8(ecx)) & 31); /* 0x27018217: shl ebx, cl */ 5239 ecx = MEM32(ebp + 0x10); /* 0x27018219: mov ecx, dword ptr [ebp + 0x10] */ 5240 MEM32(esi) = edi; /* 0x2701821C: mov dword ptr [esi], edi */ 5241 MEM32(esi + 0x4) = ebx; /* 0x2701821E: mov dword ptr [esi + 4], ebx */ 5242 eax = MEM32(ecx); /* 0x27018221: mov eax, dword ptr [ecx] */ 5243 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x27018223: cdq */ 5244 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)edi; /* 0x27018224: idiv edi */ 5245 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5246 else { eax = 0; edx = 0; } } 5247 MEM32(ebp + 0x8) = eax; /* 0x27018226: mov dword ptr [ebp + 8], eax */ 5248 MEM32(esi + 0x8) = eax; /* 0x27018229: mov dword ptr [esi + 8], eax */ 5249 eax = MEM32(ecx); /* 0x2701822C: mov eax, dword ptr [ecx] */ 5250 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701822E: cdq */ 5251 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)edi; /* 0x2701822F: idiv edi */ 5252 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5253 else { eax = 0; edx = 0; } } 5254 /* test edx, edx */ /* 0x27018231: test edx, edx */ 5255 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 5256 _cf = 0; 5257 _flag_k = FK_TEST; 5258 if (TEST_Z(_flag_a, _flag_b)) goto L_2701823C; /* 0x27018233: je 0x2701823c */ 5259 L_27018235: 5260 eax = MEM32(ebp + 0x8); /* 0x27018235: mov eax, dword ptr [ebp + 8] */ 5261 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5262 eax = eax + 1; /* 0x27018238: inc eax */ 5263 _flag_k = FK_INC; 5264 MEM32(esi + 0x8) = eax; /* 0x27018239: mov dword ptr [esi + 8], eax */ 5265 L_2701823C: 5266 eax = MEM32(ecx + 0x4); /* 0x2701823C: mov eax, dword ptr [ecx + 4] */ 5267 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701823F: cdq */ 5268 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x27018240: idiv ebx */ 5269 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5270 else { eax = 0; edx = 0; } } 5271 MEM32(ebp + 0x8) = eax; /* 0x27018242: mov dword ptr [ebp + 8], eax */ 5272 MEM32(esi + 0xC) = eax; /* 0x27018245: mov dword ptr [esi + 0xc], eax */ 5273 eax = MEM32(ecx + 0x4); /* 0x27018248: mov eax, dword ptr [ecx + 4] */ 5274 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701824B: cdq */ 5275 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ebx; /* 0x2701824C: idiv ebx */ 5276 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 5277 else { eax = 0; edx = 0; } } 5278 /* test edx, edx */ /* 0x2701824E: test edx, edx */ 5279 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 5280 _cf = 0; 5281 _flag_k = FK_TEST; 5282 if (TEST_Z(_flag_a, _flag_b)) goto L_27018259; /* 0x27018250: je 0x27018259 */ 5283 L_27018252: 5284 ecx = MEM32(ebp + 0x8); /* 0x27018252: mov ecx, dword ptr [ebp + 8] */ 5285 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5286 ecx = ecx + 1; /* 0x27018255: inc ecx */ 5287 _flag_k = FK_INC; 5288 MEM32(esi + 0xC) = ecx; /* 0x27018256: mov dword ptr [esi + 0xc], ecx */ 5289 L_27018259: 5290 edx = MEM32(esi + 0x8); /* 0x27018259: mov edx, dword ptr [esi + 8] */ 5291 edi = (uint32_t)((int32_t)edi * (int32_t)MEM32(esi + 0x8)); /* 0x2701825C: imul edi, dword ptr [esi + 8] */ 5292 ebx = (uint32_t)((int32_t)ebx * (int32_t)MEM32(esi + 0xC)); /* 0x27018260: imul ebx, dword ptr [esi + 0xc] */ 5293 edx = (uint32_t)((int32_t)edx * (int32_t)MEM32(esi + 0xC)); /* 0x27018264: imul edx, dword ptr [esi + 0xc] */ 5294 PUSH32(esp, 0x34u); /* 0x27018268: push 0x34 */ 5295 MEM32(esi + 0x10) = edx; /* 0x2701826A: mov dword ptr [esi + 0x10], edx */ 5296 MEM32(ebp + (-0x10)) = edi; /* 0x2701826D: mov dword ptr [ebp - 0x10], edi */ 5297 RECOMP_ICALL(0x27026EA4u); /* 0x27018270: call 0x27026ea4 */ /* not lifted */ 5298 RECOMP_FLAGS_IN(); 5299 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5300 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5301 esp = esp + 4; /* 0x27018275: add esp, 4 */ 5302 _flag_k = FK_ADD; 5303 MEM32(ebp + 0x8) = eax; /* 0x27018278: mov dword ptr [ebp + 8], eax */ 5304 /* test eax, eax */ /* 0x2701827B: test eax, eax */ 5305 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5306 _cf = 0; 5307 _flag_k = FK_TEST; 5308 MEM32(ebp + (-0x4)) = 0; /* 0x2701827D: mov dword ptr [ebp - 4], 0 */ 5309 if (TEST_Z(_flag_a, _flag_b)) goto L_27018294; /* 0x27018284: je 0x27018294 */ 5310 L_27018286: 5311 PUSH32(esp, 2); /* 0x27018286: push 2 */ 5312 PUSH32(esp, ebx); /* 0x27018288: push ebx */ 5313 PUSH32(esp, edi); /* 0x27018289: push edi */ 5314 ecx = eax; /* 0x2701828A: mov ecx, eax */ 5315 RECOMP_ICALL(MEM32(0x2702920C)); /* 0x2701828C: call dword ptr [0x2702920c] */ 5316 RECOMP_FLAGS_IN(); 5317 goto L_27018296; /* 0x27018292: jmp 0x27018296 */ 5318 L_27018294: 5319 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5320 eax = 0; /* 0x27018294: xor eax, eax */ 5321 _cf = 0; 5322 _flag_k = FK_TEST; 5323 L_27018296: 5324 MEM32(esi + 0x28) = eax; /* 0x27018296: mov dword ptr [esi + 0x28], eax */ 5325 eax = MEM32(esi + 0x10); /* 0x27018299: mov eax, dword ptr [esi + 0x10] */ 5326 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2701829C: shl eax, 2 */ 5327 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5328 eax = eax << 2u; /* 0x2701829C: shl eax, 2 */ 5329 PUSH32(esp, eax); /* 0x2701829F: push eax */ 5330 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x270182A0: mov dword ptr [ebp - 4], 0xffffffff */ 5331 RECOMP_ICALL(0x27026EA4u); /* 0x270182A7: call 0x27026ea4 */ /* not lifted */ 5332 RECOMP_FLAGS_IN(); 5333 ecx = MEM32(esi + 0x10); /* 0x270182AC: mov ecx, dword ptr [esi + 0x10] */ 5334 PUSH32(esp, ecx); /* 0x270182AF: push ecx */ 5335 MEM32(esi + 0x18) = eax; /* 0x270182B0: mov dword ptr [esi + 0x18], eax */ 5336 RECOMP_ICALL(0x27026EA4u); /* 0x270182B3: call 0x27026ea4 */ /* not lifted */ 5337 RECOMP_FLAGS_IN(); 5338 ecx = MEM32(esi + 0x10); /* 0x270182B8: mov ecx, dword ptr [esi + 0x10] */ 5339 MEM32(esi + 0x14) = eax; /* 0x270182BB: mov dword ptr [esi + 0x14], eax */ 5340 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5341 edi = 0; /* 0x270182BE: xor edi, edi */ 5342 _cf = 0; 5343 _flag_k = FK_TEST; 5344 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5345 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5346 esp = esp + 8; /* 0x270182C0: add esp, 8 */ 5347 _flag_k = FK_ADD; 5348 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5349 eax = 0; /* 0x270182C3: xor eax, eax */ 5350 _cf = 0; 5351 _flag_k = FK_TEST; 5352 /* cmp ecx, edi */ /* 0x270182C5: cmp ecx, edi */ 5353 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5355 _flag_k = FK_CMP; 5356 if (CMP_LE(_flag_a, _flag_b)) goto L_270182D8; /* 0x270182C7: jle 0x270182d8 */ 5357 L_270182C9: 5358 edx = MEM32(esi + 0x14); /* 0x270182C9: mov edx, dword ptr [esi + 0x14] */ 5359 MEM8(edx + eax) = (uint8_t)(1); /* 0x270182CC: mov byte ptr [edx + eax], 1 */ 5360 ecx = MEM32(esi + 0x10); /* 0x270182D0: mov ecx, dword ptr [esi + 0x10] */ 5361 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5362 eax = eax + 1; /* 0x270182D3: inc eax */ 5363 _flag_k = FK_INC; 5364 /* cmp eax, ecx */ /* 0x270182D4: cmp eax, ecx */ 5365 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5367 _flag_k = FK_CMP; 5368 RECOMP_BACKEDGE(); 5369 if (CMP_L(_flag_a, _flag_b)) goto L_270182C9; /* 0x270182D6: jl 0x270182c9 */ 5370 L_270182D8: 5371 eax = MEM32(esi + 0x10); /* 0x270182D8: mov eax, dword ptr [esi + 0x10] */ 5372 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x270182DB: shl eax, 2 */ 5373 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5374 eax = eax << 2u; /* 0x270182DB: shl eax, 2 */ 5375 PUSH32(esp, eax); /* 0x270182DE: push eax */ 5376 MEM32(ebp + (-0x1C)) = edi; /* 0x270182DF: mov dword ptr [ebp - 0x1c], edi */ 5377 MEM32(ebp + (-0x18)) = edi; /* 0x270182E2: mov dword ptr [ebp - 0x18], edi */ 5378 RECOMP_ICALL(0x27026EA4u); /* 0x270182E5: call 0x27026ea4 */ /* not lifted */ 5379 RECOMP_FLAGS_IN(); 5380 MEM32(esi + 0x1C) = eax; /* 0x270182EA: mov dword ptr [esi + 0x1c], eax */ 5381 eax = MEM32(esi + 0xC); /* 0x270182ED: mov eax, dword ptr [esi + 0xc] */ 5382 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5384 esp = esp + 4; /* 0x270182F0: add esp, 4 */ 5385 _flag_k = FK_ADD; 5386 /* test eax, eax */ /* 0x270182F3: test eax, eax */ 5387 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5388 _cf = 0; 5389 _flag_k = FK_TEST; 5390 MEM32(ebp + 0xC) = 0; /* 0x270182F5: mov dword ptr [ebp + 0xc], 0 */ 5391 if (TEST_LE(_flag_a, _flag_b)) goto L_2701842A; /* 0x270182FC: jle 0x2701842a */ 5392 L_27018302: 5393 eax = MEM32(esi + 0x8); /* 0x27018302: mov eax, dword ptr [esi + 8] */ 5394 /* test eax, eax */ /* 0x27018305: test eax, eax */ 5395 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5396 _cf = 0; 5397 _flag_k = FK_TEST; 5398 MEM32(ebp + 0x8) = 0; /* 0x27018307: mov dword ptr [ebp + 8], 0 */ 5399 if (TEST_LE(_flag_a, _flag_b)) goto L_27018418; /* 0x2701830E: jle 0x27018418 */ 5400 L_27018314: 5401 PUSH32(esp, 0x34u); /* 0x27018314: push 0x34 */ 5402 RECOMP_ICALL(0x27026EA4u); /* 0x27018316: call 0x27026ea4 */ /* not lifted */ 5403 RECOMP_FLAGS_IN(); 5404 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5406 esp = esp + 4; /* 0x2701831B: add esp, 4 */ 5407 _flag_k = FK_ADD; 5408 MEM32(ebp + (-0x14)) = eax; /* 0x2701831E: mov dword ptr [ebp - 0x14], eax */ 5409 /* test eax, eax */ /* 0x27018321: test eax, eax */ 5410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5411 _cf = 0; 5412 _flag_k = FK_TEST; 5413 MEM32(ebp + (-0x4)) = 1; /* 0x27018323: mov dword ptr [ebp - 4], 1 */ 5414 if (TEST_Z(_flag_a, _flag_b)) goto L_27018336; /* 0x2701832A: je 0x27018336 */ 5415 L_2701832C: 5416 ecx = eax; /* 0x2701832C: mov ecx, eax */ 5417 RECOMP_ICALL(MEM32(0x2702922C)); /* 0x2701832E: call dword ptr [0x2702922c] */ 5418 RECOMP_FLAGS_IN(); 5419 goto L_27018338; /* 0x27018334: jmp 0x27018338 */ 5420 L_27018336: 5421 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5422 eax = 0; /* 0x27018336: xor eax, eax */ 5423 _cf = 0; 5424 _flag_k = FK_TEST; 5425 L_27018338: 5426 ecx = MEM32(esi + 0x1C); /* 0x27018338: mov ecx, dword ptr [esi + 0x1c] */ 5427 MEM32(ecx + edi * 4) = eax; /* 0x2701833B: mov dword ptr [ecx + edi*4], eax */ 5428 edx = MEM32(esi + 0x1C); /* 0x2701833E: mov edx, dword ptr [esi + 0x1c] */ 5429 ecx = MEM32(edx + edi * 4); /* 0x27018341: mov ecx, dword ptr [edx + edi*4] */ 5430 PUSH32(esp, 2); /* 0x27018344: push 2 */ 5431 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27018346: mov dword ptr [ebp - 4], 0xffffffff */ 5432 RECOMP_ICALL(MEM32(0x27029228)); /* 0x2701834D: call dword ptr [0x27029228] */ 5433 RECOMP_FLAGS_IN(); 5434 ecx = MEM32(esi + 0x4); /* 0x27018353: mov ecx, dword ptr [esi + 4] */ 5435 ecx = (uint32_t)((int32_t)ecx * (int32_t)MEM32(ebp + 0xC)); /* 0x27018356: imul ecx, dword ptr [ebp + 0xc] */ 5436 ecx = (uint32_t)((int32_t)ecx * (int32_t)MEM32(ebp + (-0x10))); /* 0x2701835A: imul ecx, dword ptr [ebp - 0x10] */ 5437 edx = MEM32(esi); /* 0x2701835E: mov edx, dword ptr [esi] */ 5438 edx = (uint32_t)((int32_t)edx * (int32_t)MEM32(ebp + 0x8)); /* 0x27018360: imul edx, dword ptr [ebp + 8] */ 5439 eax = MEM32(esi + 0x28); /* 0x27018364: mov eax, dword ptr [esi + 0x28] */ 5440 ebx = MEM32(eax); /* 0x27018367: mov ebx, dword ptr [eax] */ 5441 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5443 ecx = ecx + edx; /* 0x27018369: add ecx, edx */ 5444 _flag_k = FK_ADD; 5445 ecx = (uint32_t)((int32_t)ecx * (int32_t)MEM32(eax + 0x24)); /* 0x2701836B: imul ecx, dword ptr [eax + 0x24] */ 5446 eax = MEM32(esi + 0x1C); /* 0x2701836F: mov eax, dword ptr [esi + 0x1c] */ 5447 edx = MEM32(eax + edi * 4); /* 0x27018372: mov edx, dword ptr [eax + edi*4] */ 5448 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5449 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5450 ecx = ecx + ebx; /* 0x27018375: add ecx, ebx */ 5451 _flag_k = FK_ADD; 5452 MEM32(edx) = ecx; /* 0x27018377: mov dword ptr [edx], ecx */ 5453 eax = MEM32(esi + 0x1C); /* 0x27018379: mov eax, dword ptr [esi + 0x1c] */ 5454 ecx = MEM32(eax + edi * 4); /* 0x2701837C: mov ecx, dword ptr [eax + edi*4] */ 5455 edx = MEM32(esi); /* 0x2701837F: mov edx, dword ptr [esi] */ 5456 MEM32(ecx + 0xC) = edx; /* 0x27018381: mov dword ptr [ecx + 0xc], edx */ 5457 eax = MEM32(esi + 0x1C); /* 0x27018384: mov eax, dword ptr [esi + 0x1c] */ 5458 ecx = MEM32(eax + edi * 4); /* 0x27018387: mov ecx, dword ptr [eax + edi*4] */ 5459 edx = MEM32(esi + 0x4); /* 0x2701838A: mov edx, dword ptr [esi + 4] */ 5460 MEM32(ecx + 0x8) = edx; /* 0x2701838D: mov dword ptr [ecx + 8], edx */ 5461 ecx = MEM32(esi + 0x1C); /* 0x27018390: mov ecx, dword ptr [esi + 0x1c] */ 5462 eax = MEM32(esi + 0x28); /* 0x27018393: mov eax, dword ptr [esi + 0x28] */ 5463 edx = MEM32(ecx + edi * 4); /* 0x27018396: mov edx, dword ptr [ecx + edi*4] */ 5464 eax = MEM32(eax + 0x20); /* 0x27018399: mov eax, dword ptr [eax + 0x20] */ 5465 MEM32(edx + 0x20) = eax; /* 0x2701839C: mov dword ptr [edx + 0x20], eax */ 5466 ecx = MEM32(esi + 0x28); /* 0x2701839F: mov ecx, dword ptr [esi + 0x28] */ 5467 edx = MEM32(esi + 0x1C); /* 0x270183A2: mov edx, dword ptr [esi + 0x1c] */ 5468 eax = MEM32(edx + edi * 4); /* 0x270183A5: mov eax, dword ptr [edx + edi*4] */ 5469 ecx = MEM32(ecx + 0x24); /* 0x270183A8: mov ecx, dword ptr [ecx + 0x24] */ 5470 PUSH32(esp, 0xD8u); /* 0x270183AB: push 0xd8 */ 5471 MEM32(eax + 0x24) = ecx; /* 0x270183B0: mov dword ptr [eax + 0x24], ecx */ 5472 RECOMP_ICALL(0x27026EA4u); /* 0x270183B3: call 0x27026ea4 */ /* not lifted */ 5473 RECOMP_FLAGS_IN(); 5474 ebx = eax; /* 0x270183B8: mov ebx, eax */ 5475 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5477 esp = esp + 4; /* 0x270183BA: add esp, 4 */ 5478 _flag_k = FK_ADD; 5479 MEM32(ebp + (-0x14)) = ebx; /* 0x270183BD: mov dword ptr [ebp - 0x14], ebx */ 5480 /* test ebx, ebx */ /* 0x270183C0: test ebx, ebx */ 5481 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5482 _cf = 0; 5483 _flag_k = FK_TEST; 5484 MEM32(ebp + (-0x4)) = 2; /* 0x270183C2: mov dword ptr [ebp - 4], 2 */ 5485 if (TEST_Z(_flag_a, _flag_b)) goto L_270183F6; /* 0x270183C9: je 0x270183f6 */ 5486 L_270183CB: 5487 ecx = MEM32(esi + 0x20); /* 0x270183CB: mov ecx, dword ptr [esi + 0x20] */ 5488 edx = esi + 0x40; /* 0x270183CE: lea edx, [esi + 0x40] */ 5489 PUSH32(esp, edx); /* 0x270183D1: push edx */ 5490 edx = MEM32(esi + 0x44); /* 0x270183D2: mov edx, dword ptr [esi + 0x44] */ 5491 eax = esi + 0x3C; /* 0x270183D5: lea eax, [esi + 0x3c] */ 5492 PUSH32(esp, eax); /* 0x270183D8: push eax */ 5493 eax = MEM32(esi + 0x1C); /* 0x270183D9: mov eax, dword ptr [esi + 0x1c] */ 5494 PUSH32(esp, ecx); /* 0x270183DC: push ecx */ 5495 ecx = MEM32(eax + edi * 4); /* 0x270183DD: mov ecx, dword ptr [eax + edi*4] */ 5496 PUSH32(esp, edx); /* 0x270183E0: push edx */ 5497 PUSH32(esp, ecx); /* 0x270183E1: push ecx */ 5498 edx = ebp + (-0x1C); /* 0x270183E2: lea edx, [ebp - 0x1c] */ 5499 PUSH32(esp, edx); /* 0x270183E5: push edx */ 5500 ecx = ebx; /* 0x270183E6: mov ecx, ebx */ 5501 RECOMP_ICALL(MEM32(0x27029208)); /* 0x270183E8: call dword ptr [0x27029208] */ 5502 RECOMP_FLAGS_IN(); 5503 MEM32(ebx) = 0x27034304u; /* 0x270183EE: mov dword ptr [ebx], 0x27034304 */ 5504 goto L_270183F8; /* 0x270183F4: jmp 0x270183f8 */ 5505 L_270183F6: 5506 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5507 ebx = 0; /* 0x270183F6: xor ebx, ebx */ 5508 _cf = 0; 5509 _flag_k = FK_TEST; 5510 L_270183F8: 5511 eax = MEM32(esi + 0x18); /* 0x270183F8: mov eax, dword ptr [esi + 0x18] */ 5512 MEM32(eax + edi * 4) = ebx; /* 0x270183FB: mov dword ptr [eax + edi*4], ebx */ 5513 eax = MEM32(ebp + 0x8); /* 0x270183FE: mov eax, dword ptr [ebp + 8] */ 5514 ecx = MEM32(esi + 0x8); /* 0x27018401: mov ecx, dword ptr [esi + 8] */ 5515 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 5516 edi = edi + 1; /* 0x27018404: inc edi */ 5517 _flag_k = FK_INC; 5518 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5519 eax = eax + 1; /* 0x27018405: inc eax */ 5520 _flag_k = FK_INC; 5521 /* cmp eax, ecx */ /* 0x27018406: cmp eax, ecx */ 5522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5524 _flag_k = FK_CMP; 5525 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27018408: mov dword ptr [ebp - 4], 0xffffffff */ 5526 MEM32(ebp + 0x8) = eax; /* 0x2701840F: mov dword ptr [ebp + 8], eax */ 5527 RECOMP_BACKEDGE(); 5528 if (CMP_L(_flag_a, _flag_b)) goto L_27018314; /* 0x27018412: jl 0x27018314 */ 5529 L_27018418: 5530 eax = MEM32(ebp + 0xC); /* 0x27018418: mov eax, dword ptr [ebp + 0xc] */ 5531 ecx = MEM32(esi + 0xC); /* 0x2701841B: mov ecx, dword ptr [esi + 0xc] */ 5532 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5533 eax = eax + 1; /* 0x2701841E: inc eax */ 5534 _flag_k = FK_INC; 5535 /* cmp eax, ecx */ /* 0x2701841F: cmp eax, ecx */ 5536 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5538 _flag_k = FK_CMP; 5539 MEM32(ebp + 0xC) = eax; /* 0x27018421: mov dword ptr [ebp + 0xc], eax */ 5540 RECOMP_BACKEDGE(); 5541 if (CMP_L(_flag_a, _flag_b)) goto L_27018302; /* 0x27018424: jl 0x27018302 */ 5542 L_2701842A: 5543 ecx = MEM32(ebp + 0x10); /* 0x2701842A: mov ecx, dword ptr [ebp + 0x10] */ 5544 PUSH32(esp, ecx); /* 0x2701842D: push ecx */ 5545 ecx = esi; /* 0x2701842E: mov ecx, esi */ 5546 RECOMP_ICALL(0x27018720u); /* 0x27018430: call 0x27018720 */ /* not lifted */ 5547 RECOMP_FLAGS_IN(); 5548 ecx = MEM32(ebp + (-0xC)); /* 0x27018435: mov ecx, dword ptr [ebp - 0xc] */ 5549 edi = POP32_VAL(esp); /* 0x27018438: pop edi */ 5550 esi = POP32_VAL(esp); /* 0x27018439: pop esi */ 5551 ebx = POP32_VAL(esp); /* 0x2701843A: pop ebx */ 5552 MEM32(FS_BASE + (0)) = ecx; /* 0x2701843B: mov dword ptr fs:[0], ecx */ 5553 esp = ebp; /* 0x27018442: mov esp, ebp */ 5554 ebp = POP32_VAL(esp); /* 0x27018444: pop ebp */ 5555 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x27018445: ret 0xc */ 5556 RECOMP_REGS_OUT(); 5557 } 5558 5559 void sub_27018450(void) { 5560 int _fpu_cmp = 0; 5561 uint32_t _cf = 0; 5562 int _df = 1; 5563 uint32_t _flag_k = FK_NONE; 5564 uint32_t _flag_a = 0, _flag_b = 0; 5565 uint32_t _itail_tgt = 0; 5566 RECOMP_REGS_LOCALS 5567 RECOMP_ENTER(0x27018450u); 5568 5569 L_27018450: 5570 PUSH32(esp, ebx); /* 0x27018450: push ebx */ 5571 PUSH32(esp, esi); /* 0x27018451: push esi */ 5572 esi = ecx; /* 0x27018452: mov esi, ecx */ 5573 eax = MEM32(esi + 0x10); /* 0x27018454: mov eax, dword ptr [esi + 0x10] */ 5574 PUSH32(esp, edi); /* 0x27018457: push edi */ 5575 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5576 ebx = 0; /* 0x27018458: xor ebx, ebx */ 5577 _cf = 0; 5578 _flag_k = FK_TEST; 5579 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5580 edi = 0; /* 0x2701845A: xor edi, edi */ 5581 _cf = 0; 5582 _flag_k = FK_TEST; 5583 /* cmp eax, ebx */ /* 0x2701845C: cmp eax, ebx */ 5584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5586 _flag_k = FK_CMP; 5587 if (CMP_LE(_flag_a, _flag_b)) goto L_270184AB; /* 0x2701845E: jle 0x270184ab */ 5588 L_27018460: 5589 eax = MEM32(esi + 0x1C); /* 0x27018460: mov eax, dword ptr [esi + 0x1c] */ 5590 /* cmp eax, ebx */ /* 0x27018463: cmp eax, ebx */ 5591 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5593 _flag_k = FK_CMP; 5594 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018487; /* 0x27018465: je 0x27018487 */ 5595 L_27018467: 5596 eax = MEM32(eax + edi * 4); /* 0x27018467: mov eax, dword ptr [eax + edi*4] */ 5597 MEM32(eax) = ebx; /* 0x2701846A: mov dword ptr [eax], ebx */ 5598 ecx = MEM32(esi + 0x1C); /* 0x2701846C: mov ecx, dword ptr [esi + 0x1c] */ 5599 ebx = MEM32(ecx + edi * 4); /* 0x2701846F: mov ebx, dword ptr [ecx + edi*4] */ 5600 /* test ebx, ebx */ /* 0x27018472: test ebx, ebx */ 5601 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5602 _cf = 0; 5603 _flag_k = FK_TEST; 5604 if (TEST_Z(_flag_a, _flag_b)) goto L_27018487; /* 0x27018474: je 0x27018487 */ 5605 L_27018476: 5606 ecx = ebx; /* 0x27018476: mov ecx, ebx */ 5607 RECOMP_ICALL(MEM32(0x27029284)); /* 0x27018478: call dword ptr [0x27029284] */ 5608 RECOMP_FLAGS_IN(); 5609 PUSH32(esp, ebx); /* 0x2701847E: push ebx */ 5610 RECOMP_ICALL(0x27026DA4u); /* 0x2701847F: call 0x27026da4 */ /* not lifted */ 5611 RECOMP_FLAGS_IN(); 5612 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5614 esp = esp + 4; /* 0x27018484: add esp, 4 */ 5615 _flag_k = FK_ADD; 5616 L_27018487: 5617 eax = MEM32(esi + 0x18); /* 0x27018487: mov eax, dword ptr [esi + 0x18] */ 5618 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5619 ebx = 0; /* 0x2701848A: xor ebx, ebx */ 5620 _cf = 0; 5621 _flag_k = FK_TEST; 5622 /* cmp eax, ebx */ /* 0x2701848C: cmp eax, ebx */ 5623 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5625 _flag_k = FK_CMP; 5626 if (CMP_EQ(_flag_a, _flag_b)) goto L_270184A3; /* 0x2701848E: je 0x270184a3 */ 5627 L_27018490: 5628 ecx = MEM32(eax + edi * 4); /* 0x27018490: mov ecx, dword ptr [eax + edi*4] */ 5629 /* cmp ecx, ebx */ /* 0x27018493: cmp ecx, ebx */ 5630 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5632 _flag_k = FK_CMP; 5633 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701849D; /* 0x27018495: je 0x2701849d */ 5634 L_27018497: 5635 edx = MEM32(ecx); /* 0x27018497: mov edx, dword ptr [ecx] */ 5636 PUSH32(esp, 1); /* 0x27018499: push 1 */ 5637 RECOMP_ICALL(MEM32(edx)); /* 0x2701849B: call dword ptr [edx] */ 5638 RECOMP_FLAGS_IN(); 5639 L_2701849D: 5640 eax = MEM32(esi + 0x18); /* 0x2701849D: mov eax, dword ptr [esi + 0x18] */ 5641 MEM32(eax + edi * 4) = ebx; /* 0x270184A0: mov dword ptr [eax + edi*4], ebx */ 5642 L_270184A3: 5643 eax = MEM32(esi + 0x10); /* 0x270184A3: mov eax, dword ptr [esi + 0x10] */ 5644 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 5645 edi = edi + 1; /* 0x270184A6: inc edi */ 5646 _flag_k = FK_INC; 5647 /* cmp edi, eax */ /* 0x270184A7: cmp edi, eax */ 5648 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5650 _flag_k = FK_CMP; 5651 RECOMP_BACKEDGE(); 5652 if (CMP_L(_flag_a, _flag_b)) goto L_27018460; /* 0x270184A9: jl 0x27018460 */ 5653 L_270184AB: 5654 ecx = MEM32(esi + 0x1C); /* 0x270184AB: mov ecx, dword ptr [esi + 0x1c] */ 5655 PUSH32(esp, ecx); /* 0x270184AE: push ecx */ 5656 RECOMP_ICALL(0x27026DA4u); /* 0x270184AF: call 0x27026da4 */ /* not lifted */ 5657 RECOMP_FLAGS_IN(); 5658 edx = MEM32(esi + 0x18); /* 0x270184B4: mov edx, dword ptr [esi + 0x18] */ 5659 PUSH32(esp, edx); /* 0x270184B7: push edx */ 5660 MEM32(esi + 0x1C) = ebx; /* 0x270184B8: mov dword ptr [esi + 0x1c], ebx */ 5661 RECOMP_ICALL(0x27026DA4u); /* 0x270184BB: call 0x27026da4 */ /* not lifted */ 5662 RECOMP_FLAGS_IN(); 5663 edi = MEM32(esi + 0x28); /* 0x270184C0: mov edi, dword ptr [esi + 0x28] */ 5664 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5665 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5666 esp = esp + 8; /* 0x270184C3: add esp, 8 */ 5667 _flag_k = FK_ADD; 5668 /* cmp edi, ebx */ /* 0x270184C6: cmp edi, ebx */ 5669 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5671 _flag_k = FK_CMP; 5672 MEM32(esi + 0x18) = ebx; /* 0x270184C8: mov dword ptr [esi + 0x18], ebx */ 5673 if (CMP_EQ(_flag_a, _flag_b)) goto L_270184DE; /* 0x270184CB: je 0x270184de */ 5674 L_270184CD: 5675 ecx = edi; /* 0x270184CD: mov ecx, edi */ 5676 RECOMP_ICALL(MEM32(0x27029284)); /* 0x270184CF: call dword ptr [0x27029284] */ 5677 RECOMP_FLAGS_IN(); 5678 PUSH32(esp, edi); /* 0x270184D5: push edi */ 5679 RECOMP_ICALL(0x27026DA4u); /* 0x270184D6: call 0x27026da4 */ /* not lifted */ 5680 RECOMP_FLAGS_IN(); 5681 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5682 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5683 esp = esp + 4; /* 0x270184DB: add esp, 4 */ 5684 _flag_k = FK_ADD; 5685 L_270184DE: 5686 eax = MEM32(esi + 0x14); /* 0x270184DE: mov eax, dword ptr [esi + 0x14] */ 5687 PUSH32(esp, eax); /* 0x270184E1: push eax */ 5688 MEM32(esi + 0x28) = ebx; /* 0x270184E2: mov dword ptr [esi + 0x28], ebx */ 5689 RECOMP_ICALL(0x27026DA4u); /* 0x270184E5: call 0x27026da4 */ /* not lifted */ 5690 RECOMP_FLAGS_IN(); 5691 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5692 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5693 esp = esp + 4; /* 0x270184EA: add esp, 4 */ 5694 _flag_k = FK_ADD; 5695 edi = POP32_VAL(esp); /* 0x270184ED: pop edi */ 5696 MEM32(esi + 0x14) = ebx; /* 0x270184EE: mov dword ptr [esi + 0x14], ebx */ 5697 esi = POP32_VAL(esp); /* 0x270184F1: pop esi */ 5698 ebx = POP32_VAL(esp); /* 0x270184F2: pop ebx */ 5699 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270184F3: ret */ 5700 RECOMP_REGS_OUT(); 5701 } 5702 5703 void sub_27018500(void) { 5704 int _fpu_cmp = 0; 5705 uint32_t _cf = 0; 5706 int _df = 1; 5707 uint32_t _flag_k = FK_NONE; 5708 uint32_t _flag_a = 0, _flag_b = 0; 5709 uint32_t _itail_tgt = 0; 5710 RECOMP_REGS_LOCALS 5711 RECOMP_ENTER(0x27018500u); 5712 5713 L_27018500: 5714 PUSH32(esp, esi); /* 0x27018500: push esi */ 5715 esi = ecx; /* 0x27018501: mov esi, ecx */ 5716 SET_LO8(eax, MEM8(esi + 0x4C)); /* 0x27018503: mov al, byte ptr [esi + 0x4c] */ 5717 /* test LO8(eax), LO8(eax) */ /* 0x27018506: test al, al */ 5718 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5719 _cf = 0; 5720 _flag_k = FK_NARROW(FK_TEST, 24); 5721 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018526; /* 0x27018508: jne 0x27018526 */ 5722 L_2701850A: 5723 RECOMP_ICALL(0x27018450u); /* 0x2701850A: call 0x27018450 */ /* not lifted */ 5724 RECOMP_FLAGS_IN(); 5725 esi = MEM32(esi + 0x48); /* 0x2701850F: mov esi, dword ptr [esi + 0x48] */ 5726 /* test esi, esi */ /* 0x27018512: test esi, esi */ 5727 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5728 _cf = 0; 5729 _flag_k = FK_TEST; 5730 if (TEST_Z(_flag_a, _flag_b)) goto L_27018526; /* 0x27018514: je 0x27018526 */ 5731 L_27018516: 5732 ecx = esi; /* 0x27018516: mov ecx, esi */ 5733 RECOMP_ICALL(0x27018530u); /* 0x27018518: call 0x27018530 */ /* not lifted */ 5734 RECOMP_FLAGS_IN(); 5735 PUSH32(esp, esi); /* 0x2701851D: push esi */ 5736 RECOMP_ICALL(0x27026DA4u); /* 0x2701851E: call 0x27026da4 */ /* not lifted */ 5737 RECOMP_FLAGS_IN(); 5738 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5739 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5740 esp = esp + 4; /* 0x27018523: add esp, 4 */ 5741 _flag_k = FK_ADD; 5742 L_27018526: 5743 esi = POP32_VAL(esp); /* 0x27018526: pop esi */ 5744 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27018527: ret */ 5745 RECOMP_REGS_OUT(); 5746 } 5747 5748 void sub_27018530(void) { 5749 int _fpu_cmp = 0; 5750 uint32_t _cf = 0; 5751 int _df = 1; 5752 uint32_t _flag_k = FK_NONE; 5753 uint32_t _flag_a = 0, _flag_b = 0; 5754 uint32_t _itail_tgt = 0; 5755 RECOMP_REGS_LOCALS 5756 RECOMP_ENTER(0x27018530u); 5757 5758 L_27018530: 5759 PUSH32(esp, ebp); /* 0x27018530: push ebp */ 5760 ebp = esp; /* 0x27018531: mov ebp, esp */ 5761 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5763 esp = esp - 8; /* 0x27018533: sub esp, 8 */ 5764 _flag_k = FK_CMP; 5765 PUSH32(esp, ebx); /* 0x27018536: push ebx */ 5766 PUSH32(esp, esi); /* 0x27018537: push esi */ 5767 esi = ecx; /* 0x27018538: mov esi, ecx */ 5768 ecx = MEM32(esi + 0x10); /* 0x2701853A: mov ecx, dword ptr [esi + 0x10] */ 5769 /* test ecx, ecx */ /* 0x2701853D: test ecx, ecx */ 5770 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5771 _cf = 0; 5772 _flag_k = FK_TEST; 5773 PUSH32(esp, edi); /* 0x2701853F: push edi */ 5774 edi = MEM32(esi + 0x4); /* 0x27018540: mov edi, dword ptr [esi + 4] */ 5775 eax = MEM32(edi); /* 0x27018543: mov eax, dword ptr [edi] */ 5776 MEM32(ebp + (-0x4)) = eax; /* 0x27018545: mov dword ptr [ebp - 4], eax */ 5777 if (TEST_Z(_flag_a, _flag_b)) goto L_270185A5; /* 0x27018548: je 0x270185a5 */ 5778 L_2701854A: 5779 ecx = eax; /* 0x2701854A: mov ecx, eax */ 5780 /* cmp eax, ecx */ /* 0x2701854C: cmp eax, ecx */ 5781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5783 _flag_k = FK_CMP; 5784 if (CMP_NE(_flag_a, _flag_b)) goto L_270185A5; /* 0x2701854E: jne 0x270185a5 */ 5785 L_27018550: 5786 /* cmp edi, edi */ /* 0x27018550: cmp edi, edi */ 5787 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5789 _flag_k = FK_CMP; 5790 if (CMP_NE(_flag_a, _flag_b)) goto L_270185A5; /* 0x27018552: jne 0x270185a5 */ 5791 L_27018554: 5792 ebx = MEM32(edi + 0x4); /* 0x27018554: mov ebx, dword ptr [edi + 4] */ 5793 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x27018557: cmp ebx, dword ptr [esi + 8] */ 5794 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5796 _flag_k = FK_CMP; 5797 edi = ebx; /* 0x2701855A: mov edi, ebx */ 5798 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701857D; /* 0x2701855C: je 0x2701857d */ 5799 L_2701855E: 5800 eax = MEM32(edi + 0x8); /* 0x2701855E: mov eax, dword ptr [edi + 8] */ 5801 PUSH32(esp, eax); /* 0x27018561: push eax */ 5802 ecx = esi; /* 0x27018562: mov ecx, esi */ 5803 RECOMP_ICALL(0x270190E0u); /* 0x27018564: call 0x270190e0 */ /* not lifted */ 5804 RECOMP_FLAGS_IN(); 5805 edi = MEM32(edi); /* 0x27018569: mov edi, dword ptr [edi] */ 5806 PUSH32(esp, ebx); /* 0x2701856B: push ebx */ 5807 RECOMP_ICALL(0x27026DA4u); /* 0x2701856C: call 0x27026da4 */ /* not lifted */ 5808 RECOMP_FLAGS_IN(); 5809 eax = MEM32(esi + 0x8); /* 0x27018571: mov eax, dword ptr [esi + 8] */ 5810 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5811 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5812 esp = esp + 4; /* 0x27018574: add esp, 4 */ 5813 _flag_k = FK_ADD; 5814 /* cmp edi, eax */ /* 0x27018577: cmp edi, eax */ 5815 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5817 _flag_k = FK_CMP; 5818 ebx = edi; /* 0x27018579: mov ebx, edi */ 5819 RECOMP_BACKEDGE(); 5820 if (CMP_NE(_flag_a, _flag_b)) goto L_2701855E; /* 0x2701857B: jne 0x2701855e */ 5821 L_2701857D: 5822 ecx = MEM32(esi + 0x4); /* 0x2701857D: mov ecx, dword ptr [esi + 4] */ 5823 edx = MEM32(esi + 0x8); /* 0x27018580: mov edx, dword ptr [esi + 8] */ 5824 MEM32(ecx + 0x4) = edx; /* 0x27018583: mov dword ptr [ecx + 4], edx */ 5825 eax = MEM32(esi + 0x4); /* 0x27018586: mov eax, dword ptr [esi + 4] */ 5826 MEM32(esi + 0x10) = 0; /* 0x27018589: mov dword ptr [esi + 0x10], 0 */ 5827 MEM32(eax) = eax; /* 0x27018590: mov dword ptr [eax], eax */ 5828 eax = MEM32(esi + 0x4); /* 0x27018592: mov eax, dword ptr [esi + 4] */ 5829 MEM32(eax + 0x8) = eax; /* 0x27018595: mov dword ptr [eax + 8], eax */ 5830 eax = ebp + (-0x8); /* 0x27018598: lea eax, [ebp - 8] */ 5831 PUSH32(esp, eax); /* 0x2701859B: push eax */ 5832 ecx = esi; /* 0x2701859C: mov ecx, esi */ 5833 RECOMP_ICALL(0x2700F720u); /* 0x2701859E: call 0x2700f720 */ /* not lifted */ 5834 RECOMP_FLAGS_IN(); 5835 goto L_270185C6; /* 0x270185A3: jmp 0x270185c6 */ 5836 L_270185A5: 5837 /* cmp eax, edi */ /* 0x270185A5: cmp eax, edi */ 5838 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5840 _flag_k = FK_CMP; 5841 if (CMP_EQ(_flag_a, _flag_b)) goto L_270185C6; /* 0x270185A7: je 0x270185c6 */ 5842 L_270185A9: 5843 ecx = ebp + (-0x4); /* 0x270185A9: lea ecx, [ebp - 4] */ 5844 ebx = eax; /* 0x270185AC: mov ebx, eax */ 5845 RECOMP_ICALL(0x27018CD0u); /* 0x270185AE: call 0x27018cd0 */ /* not lifted */ 5846 RECOMP_FLAGS_IN(); 5847 PUSH32(esp, ebx); /* 0x270185B3: push ebx */ 5848 ecx = ebp + (-0x8); /* 0x270185B4: lea ecx, [ebp - 8] */ 5849 PUSH32(esp, ecx); /* 0x270185B7: push ecx */ 5850 ecx = esi; /* 0x270185B8: mov ecx, esi */ 5851 RECOMP_ICALL(0x27018D20u); /* 0x270185BA: call 0x27018d20 */ /* not lifted */ 5852 RECOMP_FLAGS_IN(); 5853 eax = MEM32(ebp + (-0x4)); /* 0x270185BF: mov eax, dword ptr [ebp - 4] */ 5854 /* cmp eax, edi */ /* 0x270185C2: cmp eax, edi */ 5855 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5857 _flag_k = FK_CMP; 5858 RECOMP_BACKEDGE(); 5859 if (CMP_NE(_flag_a, _flag_b)) goto L_270185A9; /* 0x270185C4: jne 0x270185a9 */ 5860 L_270185C6: 5861 edx = MEM32(esi + 0x4); /* 0x270185C6: mov edx, dword ptr [esi + 4] */ 5862 PUSH32(esp, edx); /* 0x270185C9: push edx */ 5863 RECOMP_ICALL(0x27026DA4u); /* 0x270185CA: call 0x27026da4 */ /* not lifted */ 5864 RECOMP_FLAGS_IN(); 5865 eax = MEM32(esi + 0x8); /* 0x270185CF: mov eax, dword ptr [esi + 8] */ 5866 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5867 edi = 0; /* 0x270185D2: xor edi, edi */ 5868 _cf = 0; 5869 _flag_k = FK_TEST; 5870 PUSH32(esp, eax); /* 0x270185D4: push eax */ 5871 MEM32(esi + 0x4) = edi; /* 0x270185D5: mov dword ptr [esi + 4], edi */ 5872 MEM32(esi + 0x10) = edi; /* 0x270185D8: mov dword ptr [esi + 0x10], edi */ 5873 RECOMP_ICALL(0x27026DA4u); /* 0x270185DB: call 0x27026da4 */ /* not lifted */ 5874 RECOMP_FLAGS_IN(); 5875 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5876 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5877 esp = esp + 8; /* 0x270185E0: add esp, 8 */ 5878 _flag_k = FK_ADD; 5879 MEM32(esi + 0x8) = edi; /* 0x270185E3: mov dword ptr [esi + 8], edi */ 5880 edi = POP32_VAL(esp); /* 0x270185E6: pop edi */ 5881 esi = POP32_VAL(esp); /* 0x270185E7: pop esi */ 5882 ebx = POP32_VAL(esp); /* 0x270185E8: pop ebx */ 5883 esp = ebp; /* 0x270185E9: mov esp, ebp */ 5884 ebp = POP32_VAL(esp); /* 0x270185EB: pop ebp */ 5885 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270185EC: ret */ 5886 RECOMP_REGS_OUT(); 5887 } 5888 5889 void sub_270185F0(void) { 5890 int _fpu_cmp = 0; 5891 uint32_t _cf = 0; 5892 int _df = 1; 5893 uint32_t _flag_k = FK_NONE; 5894 uint32_t _flag_a = 0, _flag_b = 0; 5895 uint32_t _itail_tgt = 0; 5896 RECOMP_REGS_LOCALS 5897 RECOMP_ENTER(0x270185F0u); 5898 5899 L_270185F0: 5900 PUSH32(esp, esi); /* 0x270185F0: push esi */ 5901 PUSH32(esp, edi); /* 0x270185F1: push edi */ 5902 edi = ecx; /* 0x270185F2: mov edi, ecx */ 5903 eax = MEM32(edi + 0x10); /* 0x270185F4: mov eax, dword ptr [edi + 0x10] */ 5904 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5905 esi = 0; /* 0x270185F7: xor esi, esi */ 5906 _cf = 0; 5907 _flag_k = FK_TEST; 5908 /* test eax, eax */ /* 0x270185F9: test eax, eax */ 5909 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5910 _cf = 0; 5911 _flag_k = FK_TEST; 5912 if (TEST_LE(_flag_a, _flag_b)) goto L_2701861C; /* 0x270185FB: jle 0x2701861c */ 5913 L_270185FD: 5914 PUSH32(esp, ebx); /* 0x270185FD: push ebx */ 5915 ebx = MEM32(0x27029230); /* 0x270185FE: mov ebx, dword ptr [0x27029230] */ 5916 L_27018604: 5917 eax = MEM32(edi + 0x1C); /* 0x27018604: mov eax, dword ptr [edi + 0x1c] */ 5918 ecx = MEM32(eax + esi * 4); /* 0x27018607: mov ecx, dword ptr [eax + esi*4] */ 5919 edx = MEM32(edi + 0x18); /* 0x2701860A: mov edx, dword ptr [edi + 0x18] */ 5920 PUSH32(esp, ecx); /* 0x2701860D: push ecx */ 5921 ecx = MEM32(edx + esi * 4); /* 0x2701860E: mov ecx, dword ptr [edx + esi*4] */ 5922 RECOMP_ICALL(ebx); /* 0x27018611: call ebx */ 5923 RECOMP_FLAGS_IN(); 5924 eax = MEM32(edi + 0x10); /* 0x27018613: mov eax, dword ptr [edi + 0x10] */ 5925 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 5926 esi = esi + 1; /* 0x27018616: inc esi */ 5927 _flag_k = FK_INC; 5928 /* cmp esi, eax */ /* 0x27018617: cmp esi, eax */ 5929 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5931 _flag_k = FK_CMP; 5932 RECOMP_BACKEDGE(); 5933 if (CMP_L(_flag_a, _flag_b)) goto L_27018604; /* 0x27018619: jl 0x27018604 */ 5934 L_2701861B: 5935 ebx = POP32_VAL(esp); /* 0x2701861B: pop ebx */ 5936 L_2701861C: 5937 edi = POP32_VAL(esp); /* 0x2701861C: pop edi */ 5938 esi = POP32_VAL(esp); /* 0x2701861D: pop esi */ 5939 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701861E: ret */ 5940 RECOMP_REGS_OUT(); 5941 } 5942 5943 void sub_27018620(void) { 5944 int _fpu_cmp = 0; 5945 uint32_t _cf = 0; 5946 int _df = 1; 5947 uint32_t _flag_k = FK_NONE; 5948 uint32_t _flag_a = 0, _flag_b = 0; 5949 uint32_t _itail_tgt = 0; 5950 RECOMP_REGS_LOCALS 5951 RECOMP_ENTER(0x27018620u); 5952 5953 L_27018620: 5954 PUSH32(esp, ebp); /* 0x27018620: push ebp */ 5955 ebp = esp; /* 0x27018621: mov ebp, esp */ 5956 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5958 esp = esp - 0x14u; /* 0x27018623: sub esp, 0x14 */ 5959 _flag_k = FK_CMP; 5960 eax = MEM32(ebp + 0x8); /* 0x27018626: mov eax, dword ptr [ebp + 8] */ 5961 PUSH32(esp, ebx); /* 0x27018629: push ebx */ 5962 PUSH32(esp, esi); /* 0x2701862A: push esi */ 5963 esi = ecx; /* 0x2701862B: mov esi, ecx */ 5964 ecx = MEM32(eax); /* 0x2701862D: mov ecx, dword ptr [eax] */ 5965 fp_push((double)(int32_t)MEM32(esi)); /* 0x2701862F: fild dword ptr [esi] */ 5966 MEM32(esi + 0x2C) = ecx; /* 0x27018631: mov dword ptr [esi + 0x2c], ecx */ 5967 edx = MEM32(eax + 0x4); /* 0x27018634: mov edx, dword ptr [eax + 4] */ 5968 _st[0] *= (double)*(float*)ADDR(esi + 0x3C); /* 0x27018637: fmul dword ptr [esi + 0x3c] */ 5969 MEM32(esi + 0x30) = edx; /* 0x2701863A: mov dword ptr [esi + 0x30], edx */ 5970 ecx = MEM32(eax); /* 0x2701863D: mov ecx, dword ptr [eax] */ 5971 edx = MEM32(eax + 0x4); /* 0x2701863F: mov edx, dword ptr [eax + 4] */ 5972 PUSH32(esp, edi); /* 0x27018642: push edi */ 5973 MEM32(ebp + (-0x14)) = ecx; /* 0x27018643: mov dword ptr [ebp - 0x14], ecx */ 5974 MEM32(ebp + (-0x10)) = edx; /* 0x27018646: mov dword ptr [ebp - 0x10], edx */ 5975 RECOMP_ICALL(0x27026ED2u); /* 0x27018649: call 0x27026ed2 */ /* not lifted */ 5976 RECOMP_FLAGS_IN(); 5977 fp_push((double)(int32_t)MEM32(esi + 0x4)); /* 0x2701864E: fild dword ptr [esi + 4] */ 5978 MEM32(ebp + (-0x8)) = eax; /* 0x27018651: mov dword ptr [ebp - 8], eax */ 5979 _st[0] *= (double)*(float*)ADDR(esi + 0x40); /* 0x27018654: fmul dword ptr [esi + 0x40] */ 5980 RECOMP_ICALL(0x27026ED2u); /* 0x27018657: call 0x27026ed2 */ /* not lifted */ 5981 RECOMP_FLAGS_IN(); 5982 MEM32(ebp + (-0xC)) = eax; /* 0x2701865C: mov dword ptr [ebp - 0xc], eax */ 5983 eax = MEM32(esi + 0xC); /* 0x2701865F: mov eax, dword ptr [esi + 0xc] */ 5984 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5985 ebx = 0; /* 0x27018662: xor ebx, ebx */ 5986 _cf = 0; 5987 _flag_k = FK_TEST; 5988 /* cmp eax, ebx */ /* 0x27018664: cmp eax, ebx */ 5989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5991 _flag_k = FK_CMP; 5992 MEM32(ebp + (-0x4)) = ebx; /* 0x27018666: mov dword ptr [ebp - 4], ebx */ 5993 if (CMP_LE(_flag_a, _flag_b)) goto L_270186B9; /* 0x27018669: jle 0x270186b9 */ 5994 L_2701866B: 5995 eax = MEM32(esi + 0x8); /* 0x2701866B: mov eax, dword ptr [esi + 8] */ 5996 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5997 edi = 0; /* 0x2701866E: xor edi, edi */ 5998 _cf = 0; 5999 _flag_k = FK_TEST; 6000 /* test eax, eax */ /* 0x27018670: test eax, eax */ 6001 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6002 _cf = 0; 6003 _flag_k = FK_TEST; 6004 if (TEST_LE(_flag_a, _flag_b)) goto L_27018698; /* 0x27018672: jle 0x27018698 */ 6005 L_27018674: 6006 ecx = MEM32(esi + 0x18); /* 0x27018674: mov ecx, dword ptr [esi + 0x18] */ 6007 ecx = MEM32(ecx + ebx * 4); /* 0x27018677: mov ecx, dword ptr [ecx + ebx*4] */ 6008 eax = ebp + (-0x14); /* 0x2701867A: lea eax, [ebp - 0x14] */ 6009 PUSH32(esp, eax); /* 0x2701867D: push eax */ 6010 RECOMP_ICALL(MEM32(0x27029214)); /* 0x2701867E: call dword ptr [0x27029214] */ 6011 RECOMP_FLAGS_IN(); 6012 eax = MEM32(ebp + (-0x14)); /* 0x27018684: mov eax, dword ptr [ebp - 0x14] */ 6013 edx = MEM32(ebp + (-0x8)); /* 0x27018687: mov edx, dword ptr [ebp - 8] */ 6014 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6015 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6016 eax = eax + edx; /* 0x2701868A: add eax, edx */ 6017 _flag_k = FK_ADD; 6018 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 6019 ebx = ebx + 1; /* 0x2701868C: inc ebx */ 6020 _flag_k = FK_INC; 6021 MEM32(ebp + (-0x14)) = eax; /* 0x2701868D: mov dword ptr [ebp - 0x14], eax */ 6022 eax = MEM32(esi + 0x8); /* 0x27018690: mov eax, dword ptr [esi + 8] */ 6023 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 6024 edi = edi + 1; /* 0x27018693: inc edi */ 6025 _flag_k = FK_INC; 6026 /* cmp edi, eax */ /* 0x27018694: cmp edi, eax */ 6027 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6029 _flag_k = FK_CMP; 6030 RECOMP_BACKEDGE(); 6031 if (CMP_L(_flag_a, _flag_b)) goto L_27018674; /* 0x27018696: jl 0x27018674 */ 6032 L_27018698: 6033 eax = MEM32(ebp + 0x8); /* 0x27018698: mov eax, dword ptr [ebp + 8] */ 6034 ecx = MEM32(eax); /* 0x2701869B: mov ecx, dword ptr [eax] */ 6035 edi = MEM32(ebp + (-0x10)); /* 0x2701869D: mov edi, dword ptr [ebp - 0x10] */ 6036 edx = MEM32(ebp + (-0xC)); /* 0x270186A0: mov edx, dword ptr [ebp - 0xc] */ 6037 eax = MEM32(ebp + (-0x4)); /* 0x270186A3: mov eax, dword ptr [ebp - 4] */ 6038 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 6039 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6040 edi = edi + edx; /* 0x270186A6: add edi, edx */ 6041 _flag_k = FK_ADD; 6042 MEM32(ebp + (-0x14)) = ecx; /* 0x270186A8: mov dword ptr [ebp - 0x14], ecx */ 6043 ecx = MEM32(esi + 0xC); /* 0x270186AB: mov ecx, dword ptr [esi + 0xc] */ 6044 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6045 eax = eax + 1; /* 0x270186AE: inc eax */ 6046 _flag_k = FK_INC; 6047 /* cmp eax, ecx */ /* 0x270186AF: cmp eax, ecx */ 6048 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6050 _flag_k = FK_CMP; 6051 MEM32(ebp + (-0x10)) = edi; /* 0x270186B1: mov dword ptr [ebp - 0x10], edi */ 6052 MEM32(ebp + (-0x4)) = eax; /* 0x270186B4: mov dword ptr [ebp - 4], eax */ 6053 RECOMP_BACKEDGE(); 6054 if (CMP_L(_flag_a, _flag_b)) goto L_2701866B; /* 0x270186B7: jl 0x2701866b */ 6055 L_270186B9: 6056 eax = MEM32(esi + 0x48); /* 0x270186B9: mov eax, dword ptr [esi + 0x48] */ 6057 ecx = MEM32(eax + 0x4); /* 0x270186BC: mov ecx, dword ptr [eax + 4] */ 6058 edi = MEM32(ecx); /* 0x270186BF: mov edi, dword ptr [ecx] */ 6059 L_270186C1: 6060 edx = MEM32(esi + 0x48); /* 0x270186C1: mov edx, dword ptr [esi + 0x48] */ 6061 /* cmp edi, MEM32(edx + 0x4) */ /* 0x270186C4: cmp edi, dword ptr [edx + 4] */ 6062 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6064 _flag_k = FK_CMP; 6065 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701870E; /* 0x270186C7: je 0x2701870e */ 6066 L_270186C9: 6067 ecx = MEM32(edi + 0xC); /* 0x270186C9: mov ecx, dword ptr [edi + 0xc] */ 6068 RECOMP_ICALL(0x270109D0u); /* 0x270186CC: call 0x270109d0 */ /* not lifted */ 6069 RECOMP_FLAGS_IN(); 6070 eax = MEM32(edi + 0x8); /* 0x270186D1: mov eax, dword ptr [edi + 8] */ 6071 SET_LO8(ecx, MEM8(eax + 0x11)); /* 0x270186D4: mov cl, byte ptr [eax + 0x11] */ 6072 /* test LO8(ecx), LO8(ecx) */ /* 0x270186D7: test cl, cl */ 6073 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6074 _cf = 0; 6075 _flag_k = FK_NARROW(FK_TEST, 24); 6076 if (TEST_NZ(_flag_a, _flag_b)) goto L_270186F3; /* 0x270186D9: jne 0x270186f3 */ 6077 L_270186DB: 6078 edi = eax; /* 0x270186DB: mov edi, eax */ 6079 eax = MEM32(edi); /* 0x270186DD: mov eax, dword ptr [edi] */ 6080 SET_LO8(ecx, MEM8(eax + 0x11)); /* 0x270186DF: mov cl, byte ptr [eax + 0x11] */ 6081 /* test LO8(ecx), LO8(ecx) */ /* 0x270186E2: test cl, cl */ 6082 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6083 _cf = 0; 6084 _flag_k = FK_NARROW(FK_TEST, 24); 6085 RECOMP_BACKEDGE(); 6086 if (TEST_NZ(_flag_a, _flag_b)) goto L_270186C1; /* 0x270186E4: jne 0x270186c1 */ 6087 L_270186E6: 6088 edi = eax; /* 0x270186E6: mov edi, eax */ 6089 eax = MEM32(edi); /* 0x270186E8: mov eax, dword ptr [edi] */ 6090 SET_LO8(ecx, MEM8(eax + 0x11)); /* 0x270186EA: mov cl, byte ptr [eax + 0x11] */ 6091 /* test LO8(ecx), LO8(ecx) */ /* 0x270186ED: test cl, cl */ 6092 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6093 _cf = 0; 6094 _flag_k = FK_NARROW(FK_TEST, 24); 6095 RECOMP_BACKEDGE(); 6096 if (TEST_Z(_flag_a, _flag_b)) goto L_270186E6; /* 0x270186EF: je 0x270186e6 */ 6097 L_270186F1: 6098 RECOMP_BACKEDGE(); 6099 goto L_270186C1; /* 0x270186F1: jmp 0x270186c1 */ 6100 L_270186F3: 6101 eax = MEM32(edi + 0x4); /* 0x270186F3: mov eax, dword ptr [edi + 4] */ 6102 /* cmp edi, MEM32(eax + 0x8) */ /* 0x270186F6: cmp edi, dword ptr [eax + 8] */ 6103 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 6104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6105 _flag_k = FK_CMP; 6106 if (CMP_NE(_flag_a, _flag_b)) goto L_27018705; /* 0x270186F9: jne 0x27018705 */ 6107 L_270186FB: 6108 edi = eax; /* 0x270186FB: mov edi, eax */ 6109 eax = MEM32(eax + 0x4); /* 0x270186FD: mov eax, dword ptr [eax + 4] */ 6110 /* cmp edi, MEM32(eax + 0x8) */ /* 0x27018700: cmp edi, dword ptr [eax + 8] */ 6111 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 6112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6113 _flag_k = FK_CMP; 6114 RECOMP_BACKEDGE(); 6115 if (CMP_EQ(_flag_a, _flag_b)) goto L_270186FB; /* 0x27018703: je 0x270186fb */ 6116 L_27018705: 6117 /* cmp MEM32(edi + 0x8), eax */ /* 0x27018705: cmp dword ptr [edi + 8], eax */ 6118 _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(eax); 6119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6120 _flag_k = FK_CMP; 6121 RECOMP_BACKEDGE(); 6122 if (CMP_EQ(_flag_a, _flag_b)) goto L_270186C1; /* 0x27018708: je 0x270186c1 */ 6123 L_2701870A: 6124 edi = eax; /* 0x2701870A: mov edi, eax */ 6125 RECOMP_BACKEDGE(); 6126 goto L_270186C1; /* 0x2701870C: jmp 0x270186c1 */ 6127 L_2701870E: 6128 edi = POP32_VAL(esp); /* 0x2701870E: pop edi */ 6129 esi = POP32_VAL(esp); /* 0x2701870F: pop esi */ 6130 ebx = POP32_VAL(esp); /* 0x27018710: pop ebx */ 6131 esp = ebp; /* 0x27018711: mov esp, ebp */ 6132 ebp = POP32_VAL(esp); /* 0x27018713: pop ebp */ 6133 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27018714: ret 4 */ 6134 RECOMP_REGS_OUT(); 6135 } 6136 6137 void sub_27018720(void) { 6138 int _fpu_cmp = 0; 6139 uint32_t _cf = 0; 6140 int _df = 1; 6141 uint32_t _flag_k = FK_NONE; 6142 uint32_t _flag_a = 0, _flag_b = 0; 6143 uint32_t _itail_tgt = 0; 6144 RECOMP_REGS_LOCALS 6145 RECOMP_ENTER(0x27018720u); 6146 6147 L_27018720: 6148 PUSH32(esp, ebp); /* 0x27018720: push ebp */ 6149 ebp = esp; /* 0x27018721: mov ebp, esp */ 6150 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 6151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6152 esp = esp - 0x20u; /* 0x27018723: sub esp, 0x20 */ 6153 _flag_k = FK_CMP; 6154 PUSH32(esp, ebx); /* 0x27018726: push ebx */ 6155 PUSH32(esp, esi); /* 0x27018727: push esi */ 6156 PUSH32(esp, edi); /* 0x27018728: push edi */ 6157 edi = MEM32(ebp + 0x8); /* 0x27018729: mov edi, dword ptr [ebp + 8] */ 6158 eax = MEM32(edi); /* 0x2701872C: mov eax, dword ptr [edi] */ 6159 esi = ecx; /* 0x2701872E: mov esi, ecx */ 6160 MEM32(esi + 0x34) = eax; /* 0x27018730: mov dword ptr [esi + 0x34], eax */ 6161 ecx = MEM32(edi + 0x4); /* 0x27018733: mov ecx, dword ptr [edi + 4] */ 6162 MEM32(esi + 0x38) = ecx; /* 0x27018736: mov dword ptr [esi + 0x38], ecx */ 6163 ebx = MEM32(edi); /* 0x27018739: mov ebx, dword ptr [edi] */ 6164 ecx = MEM32(esi); /* 0x2701873B: mov ecx, dword ptr [esi] */ 6165 eax = ebx; /* 0x2701873D: mov eax, ebx */ 6166 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701873F: cdq */ 6167 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x27018740: idiv ecx */ 6168 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 6169 else { eax = 0; edx = 0; } } 6170 MEM32(ebp + (-0xC)) = ecx; /* 0x27018742: mov dword ptr [ebp - 0xc], ecx */ 6171 MEM32(ebp + (-0x4)) = eax; /* 0x27018745: mov dword ptr [ebp - 4], eax */ 6172 eax = MEM32(edi + 0x4); /* 0x27018748: mov eax, dword ptr [edi + 4] */ 6173 edi = MEM32(esi + 0x4); /* 0x2701874B: mov edi, dword ptr [esi + 4] */ 6174 MEM32(ebp + (-0x8)) = eax; /* 0x2701874E: mov dword ptr [ebp - 8], eax */ 6175 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x27018751: cdq */ 6176 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)edi; /* 0x27018752: idiv edi */ 6177 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 6178 else { eax = 0; edx = 0; } } 6179 MEM32(ebp + (-0x10)) = edi; /* 0x27018754: mov dword ptr [ebp - 0x10], edi */ 6180 MEM32(ebp + 0x8) = eax; /* 0x27018757: mov dword ptr [ebp + 8], eax */ 6181 eax = ebx; /* 0x2701875A: mov eax, ebx */ 6182 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701875C: cdq */ 6183 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x2701875D: idiv ecx */ 6184 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 6185 else { eax = 0; edx = 0; } } 6186 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6187 ebx = 0; /* 0x2701875F: xor ebx, ebx */ 6188 _cf = 0; 6189 _flag_k = FK_TEST; 6190 /* cmp edx, ebx */ /* 0x27018761: cmp edx, ebx */ 6191 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 6192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6193 _flag_k = FK_CMP; 6194 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701876B; /* 0x27018763: je 0x2701876b */ 6195 L_27018765: 6196 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(1); 6197 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 1; /* 0x27018765: inc dword ptr [ebp - 4] */ 6198 _flag_k = FK_INC; 6199 MEM32(ebp + (-0xC)) = edx; /* 0x27018768: mov dword ptr [ebp - 0xc], edx */ 6200 L_2701876B: 6201 eax = MEM32(ebp + (-0x8)); /* 0x2701876B: mov eax, dword ptr [ebp - 8] */ 6202 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701876E: cdq */ 6203 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)edi; /* 0x2701876F: idiv edi */ 6204 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 6205 else { eax = 0; edx = 0; } } 6206 /* cmp edx, ebx */ /* 0x27018771: cmp edx, ebx */ 6207 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 6208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6209 _flag_k = FK_CMP; 6210 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701877B; /* 0x27018773: je 0x2701877b */ 6211 L_27018775: 6212 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(1); 6213 MEM32(ebp + 0x8) = MEM32(ebp + 0x8) + 1; /* 0x27018775: inc dword ptr [ebp + 8] */ 6214 _flag_k = FK_INC; 6215 MEM32(ebp + (-0x10)) = edx; /* 0x27018778: mov dword ptr [ebp - 0x10], edx */ 6216 L_2701877B: 6217 edx = MEM32(esi + 0xC); /* 0x2701877B: mov edx, dword ptr [esi + 0xc] */ 6218 MEM32(ebp + (-0x1C)) = edi; /* 0x2701877E: mov dword ptr [ebp - 0x1c], edi */ 6219 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6220 edi = 0; /* 0x27018781: xor edi, edi */ 6221 _cf = 0; 6222 _flag_k = FK_TEST; 6223 MEM32(ebp + (-0x20)) = ecx; /* 0x27018783: mov dword ptr [ebp - 0x20], ecx */ 6224 ecx = 1; /* 0x27018786: mov ecx, 1 */ 6225 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6226 edx = edx + 1; /* 0x2701878B: inc edx */ 6227 _flag_k = FK_INC; 6228 /* cmp edx, ecx */ /* 0x2701878C: cmp edx, ecx */ 6229 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6231 _flag_k = FK_CMP; 6232 MEM32(ebp + (-0x18)) = ebx; /* 0x2701878E: mov dword ptr [ebp - 0x18], ebx */ 6233 MEM32(ebp + (-0x14)) = ebx; /* 0x27018791: mov dword ptr [ebp - 0x14], ebx */ 6234 MEM32(ebp + (-0x8)) = ecx; /* 0x27018794: mov dword ptr [ebp - 8], ecx */ 6235 if (CMP_LE(_flag_a, _flag_b)) goto L_27018853; /* 0x27018797: jle 0x27018853 */ 6236 L_2701879D: 6237 eax = MEM32(esi + 0x8); /* 0x2701879D: mov eax, dword ptr [esi + 8] */ 6238 ebx = 1; /* 0x270187A0: mov ebx, 1 */ 6239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6240 eax = eax + 1; /* 0x270187A5: inc eax */ 6241 _flag_k = FK_INC; 6242 /* cmp eax, ebx */ /* 0x270187A6: cmp eax, ebx */ 6243 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6245 _flag_k = FK_CMP; 6246 if (CMP_LE(_flag_a, _flag_b)) goto L_27018843; /* 0x270187A8: jle 0x27018843 */ 6247 L_270187AE: 6248 edx = MEM32(ebp + (-0x4)); /* 0x270187AE: mov edx, dword ptr [ebp - 4] */ 6249 /* cmp ebx, edx */ /* 0x270187B1: cmp ebx, edx */ 6250 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 6251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6252 _flag_k = FK_CMP; 6253 if (CMP_G(_flag_a, _flag_b)) goto L_27018820; /* 0x270187B3: jg 0x27018820 */ 6254 L_270187B5: 6255 eax = MEM32(ebp + 0x8); /* 0x270187B5: mov eax, dword ptr [ebp + 8] */ 6256 /* cmp ecx, eax */ /* 0x270187B8: cmp ecx, eax */ 6257 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6259 _flag_k = FK_CMP; 6260 if (CMP_G(_flag_a, _flag_b)) goto L_27018820; /* 0x270187BA: jg 0x27018820 */ 6261 L_270187BC: 6262 /* cmp ebx, edx */ /* 0x270187BC: cmp ebx, edx */ 6263 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 6264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6265 _flag_k = FK_CMP; 6266 if (CMP_EQ(_flag_a, _flag_b)) goto L_270187FB; /* 0x270187BE: je 0x270187fb */ 6267 L_270187C0: 6268 /* cmp ecx, eax */ /* 0x270187C0: cmp ecx, eax */ 6269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6271 _flag_k = FK_CMP; 6272 if (CMP_EQ(_flag_a, _flag_b)) goto L_270187FB; /* 0x270187C2: je 0x270187fb */ 6273 L_270187C4: 6274 ecx = ebp + (-0x20); /* 0x270187C4: lea ecx, [ebp - 0x20] */ 6275 L_270187C7: 6276 edx = MEM32(esi + 0x18); /* 0x270187C7: mov edx, dword ptr [esi + 0x18] */ 6277 PUSH32(esp, ecx); /* 0x270187CA: push ecx */ 6278 ecx = MEM32(edx + edi * 4); /* 0x270187CB: mov ecx, dword ptr [edx + edi*4] */ 6279 RECOMP_ICALL(MEM32(0x27029204)); /* 0x270187CE: call dword ptr [0x27029204] */ 6280 RECOMP_FLAGS_IN(); 6281 SET_LO8(eax, MEM8(esi + 0x24)); /* 0x270187D4: mov al, byte ptr [esi + 0x24] */ 6282 /* test LO8(eax), LO8(eax) */ /* 0x270187D7: test al, al */ 6283 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6284 _cf = 0; 6285 _flag_k = FK_NARROW(FK_TEST, 24); 6286 eax = MEM32(esi + 0x18); /* 0x270187D9: mov eax, dword ptr [esi + 0x18] */ 6287 ecx = MEM32(eax + edi * 4); /* 0x270187DC: mov ecx, dword ptr [eax + edi*4] */ 6288 edx = MEM32(ecx); /* 0x270187DF: mov edx, dword ptr [ecx] */ 6289 if (TEST_Z(_flag_a, _flag_b)) goto L_270187EF; /* 0x270187E1: je 0x270187ef */ 6290 L_270187E3: 6291 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x270187E3: call dword ptr [edx + 8] */ 6292 RECOMP_FLAGS_IN(); 6293 eax = MEM32(esi + 0x14); /* 0x270187E6: mov eax, dword ptr [esi + 0x14] */ 6294 MEM8(eax + edi) = (uint8_t)(1); /* 0x270187E9: mov byte ptr [eax + edi], 1 */ 6295 goto L_27018832; /* 0x270187ED: jmp 0x27018832 */ 6296 L_270187EF: 6297 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x270187EF: call dword ptr [edx + 0xc] */ 6298 RECOMP_FLAGS_IN(); 6299 eax = MEM32(esi + 0x14); /* 0x270187F2: mov eax, dword ptr [esi + 0x14] */ 6300 MEM8(eax + edi) = (uint8_t)(1); /* 0x270187F5: mov byte ptr [eax + edi], 1 */ 6301 goto L_27018832; /* 0x270187F9: jmp 0x27018832 */ 6302 L_270187FB: 6303 /* cmp ebx, edx */ /* 0x270187FB: cmp ebx, edx */ 6304 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 6305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6306 _flag_k = FK_CMP; 6307 eax = MEM32(esi); /* 0x270187FD: mov eax, dword ptr [esi] */ 6308 MEM32(ebp + (-0x18)) = eax; /* 0x270187FF: mov dword ptr [ebp - 0x18], eax */ 6309 eax = MEM32(esi + 0x4); /* 0x27018802: mov eax, dword ptr [esi + 4] */ 6310 MEM32(ebp + (-0x14)) = eax; /* 0x27018805: mov dword ptr [ebp - 0x14], eax */ 6311 if (CMP_NE(_flag_a, _flag_b)) goto L_27018810; /* 0x27018808: jne 0x27018810 */ 6312 L_2701880A: 6313 edx = MEM32(ebp + (-0xC)); /* 0x2701880A: mov edx, dword ptr [ebp - 0xc] */ 6314 MEM32(ebp + (-0x18)) = edx; /* 0x2701880D: mov dword ptr [ebp - 0x18], edx */ 6315 L_27018810: 6316 /* cmp ecx, MEM32(ebp + 0x8) */ /* 0x27018810: cmp ecx, dword ptr [ebp + 8] */ 6317 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 6318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6319 _flag_k = FK_CMP; 6320 if (CMP_NE(_flag_a, _flag_b)) goto L_2701881B; /* 0x27018813: jne 0x2701881b */ 6321 L_27018815: 6322 eax = MEM32(ebp + (-0x10)); /* 0x27018815: mov eax, dword ptr [ebp - 0x10] */ 6323 MEM32(ebp + (-0x14)) = eax; /* 0x27018818: mov dword ptr [ebp - 0x14], eax */ 6324 L_2701881B: 6325 ecx = ebp + (-0x18); /* 0x2701881B: lea ecx, [ebp - 0x18] */ 6326 RECOMP_BACKEDGE(); 6327 goto L_270187C7; /* 0x2701881E: jmp 0x270187c7 */ 6328 L_27018820: 6329 ecx = MEM32(esi + 0x18); /* 0x27018820: mov ecx, dword ptr [esi + 0x18] */ 6330 ecx = MEM32(ecx + edi * 4); /* 0x27018823: mov ecx, dword ptr [ecx + edi*4] */ 6331 edx = MEM32(ecx); /* 0x27018826: mov edx, dword ptr [ecx] */ 6332 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x27018828: call dword ptr [edx + 0xc] */ 6333 RECOMP_FLAGS_IN(); 6334 eax = MEM32(esi + 0x14); /* 0x2701882B: mov eax, dword ptr [esi + 0x14] */ 6335 MEM8(eax + edi) = (uint8_t)(0); /* 0x2701882E: mov byte ptr [eax + edi], 0 */ 6336 L_27018832: 6337 ecx = MEM32(esi + 0x8); /* 0x27018832: mov ecx, dword ptr [esi + 8] */ 6338 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 6339 edi = edi + 1; /* 0x27018835: inc edi */ 6340 _flag_k = FK_INC; 6341 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 6342 ebx = ebx + 1; /* 0x27018836: inc ebx */ 6343 _flag_k = FK_INC; 6344 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6345 ecx = ecx + 1; /* 0x27018837: inc ecx */ 6346 _flag_k = FK_INC; 6347 /* cmp ebx, ecx */ /* 0x27018838: cmp ebx, ecx */ 6348 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 6349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6350 _flag_k = FK_CMP; 6351 ecx = MEM32(ebp + (-0x8)); /* 0x2701883A: mov ecx, dword ptr [ebp - 8] */ 6352 RECOMP_BACKEDGE(); 6353 if (CMP_L(_flag_a, _flag_b)) goto L_270187AE; /* 0x2701883D: jl 0x270187ae */ 6354 L_27018843: 6355 edx = MEM32(esi + 0xC); /* 0x27018843: mov edx, dword ptr [esi + 0xc] */ 6356 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6357 ecx = ecx + 1; /* 0x27018846: inc ecx */ 6358 _flag_k = FK_INC; 6359 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6360 edx = edx + 1; /* 0x27018847: inc edx */ 6361 _flag_k = FK_INC; 6362 /* cmp ecx, edx */ /* 0x27018848: cmp ecx, edx */ 6363 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6365 _flag_k = FK_CMP; 6366 MEM32(ebp + (-0x8)) = ecx; /* 0x2701884A: mov dword ptr [ebp - 8], ecx */ 6367 RECOMP_BACKEDGE(); 6368 if (CMP_L(_flag_a, _flag_b)) goto L_2701879D; /* 0x2701884D: jl 0x2701879d */ 6369 L_27018853: 6370 edi = POP32_VAL(esp); /* 0x27018853: pop edi */ 6371 esi = POP32_VAL(esp); /* 0x27018854: pop esi */ 6372 ebx = POP32_VAL(esp); /* 0x27018855: pop ebx */ 6373 esp = ebp; /* 0x27018856: mov esp, ebp */ 6374 ebp = POP32_VAL(esp); /* 0x27018858: pop ebp */ 6375 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27018859: ret 4 */ 6376 RECOMP_REGS_OUT(); 6377 } 6378 6379 void sub_27018860(void) { 6380 int _fpu_cmp = 0; 6381 uint32_t _cf = 0; 6382 int _df = 1; 6383 uint32_t _flag_k = FK_NONE; 6384 uint32_t _flag_a = 0, _flag_b = 0; 6385 uint32_t _itail_tgt = 0; 6386 RECOMP_REGS_LOCALS 6387 RECOMP_ENTER(0x27018860u); 6388 6389 L_27018860: 6390 PUSH32(esp, esi); /* 0x27018860: push esi */ 6391 esi = ecx; /* 0x27018861: mov esi, ecx */ 6392 eax = MEM32(esi + 0x10); /* 0x27018863: mov eax, dword ptr [esi + 0x10] */ 6393 PUSH32(esp, edi); /* 0x27018866: push edi */ 6394 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6395 edi = 0; /* 0x27018867: xor edi, edi */ 6396 _cf = 0; 6397 _flag_k = FK_TEST; 6398 /* test eax, eax */ /* 0x27018869: test eax, eax */ 6399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6400 _cf = 0; 6401 _flag_k = FK_TEST; 6402 MEM8(esi + 0x24) = (uint8_t)(1); /* 0x2701886B: mov byte ptr [esi + 0x24], 1 */ 6403 if (TEST_LE(_flag_a, _flag_b)) goto L_2701888D; /* 0x2701886F: jle 0x2701888d */ 6404 L_27018871: 6405 eax = MEM32(esi + 0x14); /* 0x27018871: mov eax, dword ptr [esi + 0x14] */ 6406 /* cmp MEM8(eax + edi), 0 */ /* 0x27018874: cmp byte ptr [eax + edi], 0 */ 6407 _flag_a = (uint32_t)(MEM8(eax + edi)) << 24; _flag_b = (uint32_t)(0) << 24; 6408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6409 _flag_k = FK_NARROW(FK_CMP, 24); 6410 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018885; /* 0x27018878: je 0x27018885 */ 6411 L_2701887A: 6412 ecx = MEM32(esi + 0x18); /* 0x2701887A: mov ecx, dword ptr [esi + 0x18] */ 6413 ecx = MEM32(ecx + edi * 4); /* 0x2701887D: mov ecx, dword ptr [ecx + edi*4] */ 6414 edx = MEM32(ecx); /* 0x27018880: mov edx, dword ptr [ecx] */ 6415 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x27018882: call dword ptr [edx + 8] */ 6416 RECOMP_FLAGS_IN(); 6417 L_27018885: 6418 eax = MEM32(esi + 0x10); /* 0x27018885: mov eax, dword ptr [esi + 0x10] */ 6419 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 6420 edi = edi + 1; /* 0x27018888: inc edi */ 6421 _flag_k = FK_INC; 6422 /* cmp edi, eax */ /* 0x27018889: cmp edi, eax */ 6423 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6425 _flag_k = FK_CMP; 6426 RECOMP_BACKEDGE(); 6427 if (CMP_L(_flag_a, _flag_b)) goto L_27018871; /* 0x2701888B: jl 0x27018871 */ 6428 L_2701888D: 6429 edi = POP32_VAL(esp); /* 0x2701888D: pop edi */ 6430 esi = POP32_VAL(esp); /* 0x2701888E: pop esi */ 6431 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701888F: ret */ 6432 RECOMP_REGS_OUT(); 6433 } 6434 6435 void sub_27018890(void) { 6436 int _fpu_cmp = 0; 6437 uint32_t _cf = 0; 6438 int _df = 1; 6439 uint32_t _flag_k = FK_NONE; 6440 uint32_t _flag_a = 0, _flag_b = 0; 6441 uint32_t _itail_tgt = 0; 6442 RECOMP_REGS_LOCALS 6443 RECOMP_ENTER(0x27018890u); 6444 6445 L_27018890: 6446 PUSH32(esp, esi); /* 0x27018890: push esi */ 6447 PUSH32(esp, edi); /* 0x27018891: push edi */ 6448 edi = ecx; /* 0x27018892: mov edi, ecx */ 6449 eax = MEM32(edi + 0x10); /* 0x27018894: mov eax, dword ptr [edi + 0x10] */ 6450 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6451 esi = 0; /* 0x27018897: xor esi, esi */ 6452 _cf = 0; 6453 _flag_k = FK_TEST; 6454 /* test eax, eax */ /* 0x27018899: test eax, eax */ 6455 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6456 _cf = 0; 6457 _flag_k = FK_TEST; 6458 MEM8(edi + 0x24) = (uint8_t)(0); /* 0x2701889B: mov byte ptr [edi + 0x24], 0 */ 6459 if (TEST_LE(_flag_a, _flag_b)) goto L_270188B4; /* 0x2701889F: jle 0x270188b4 */ 6460 L_270188A1: 6461 eax = MEM32(edi + 0x18); /* 0x270188A1: mov eax, dword ptr [edi + 0x18] */ 6462 ecx = MEM32(eax + esi * 4); /* 0x270188A4: mov ecx, dword ptr [eax + esi*4] */ 6463 edx = MEM32(ecx); /* 0x270188A7: mov edx, dword ptr [ecx] */ 6464 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x270188A9: call dword ptr [edx + 0xc] */ 6465 RECOMP_FLAGS_IN(); 6466 eax = MEM32(edi + 0x10); /* 0x270188AC: mov eax, dword ptr [edi + 0x10] */ 6467 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 6468 esi = esi + 1; /* 0x270188AF: inc esi */ 6469 _flag_k = FK_INC; 6470 /* cmp esi, eax */ /* 0x270188B0: cmp esi, eax */ 6471 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6473 _flag_k = FK_CMP; 6474 RECOMP_BACKEDGE(); 6475 if (CMP_L(_flag_a, _flag_b)) goto L_270188A1; /* 0x270188B2: jl 0x270188a1 */ 6476 L_270188B4: 6477 edi = POP32_VAL(esp); /* 0x270188B4: pop edi */ 6478 esi = POP32_VAL(esp); /* 0x270188B5: pop esi */ 6479 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270188B6: ret */ 6480 RECOMP_REGS_OUT(); 6481 } 6482 6483 void sub_270188C0(void) { 6484 int _fpu_cmp = 0; 6485 uint32_t _cf = 0; 6486 int _df = 1; 6487 uint32_t _flag_k = FK_NONE; 6488 uint32_t _flag_a = 0, _flag_b = 0; 6489 uint32_t _itail_tgt = 0; 6490 RECOMP_REGS_LOCALS 6491 RECOMP_ENTER(0x270188C0u); 6492 6493 L_270188C0: 6494 PUSH32(esp, ebp); /* 0x270188C0: push ebp */ 6495 ebp = esp; /* 0x270188C1: mov ebp, esp */ 6496 PUSH32(esp, esi); /* 0x270188C3: push esi */ 6497 PUSH32(esp, edi); /* 0x270188C4: push edi */ 6498 edi = ecx; /* 0x270188C5: mov edi, ecx */ 6499 eax = MEM32(edi + 0x10); /* 0x270188C7: mov eax, dword ptr [edi + 0x10] */ 6500 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6501 esi = 0; /* 0x270188CA: xor esi, esi */ 6502 _cf = 0; 6503 _flag_k = FK_TEST; 6504 /* test eax, eax */ /* 0x270188CC: test eax, eax */ 6505 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6506 _cf = 0; 6507 _flag_k = FK_TEST; 6508 if (TEST_LE(_flag_a, _flag_b)) goto L_270188EA; /* 0x270188CE: jle 0x270188ea */ 6509 L_270188D0: 6510 PUSH32(esp, ebx); /* 0x270188D0: push ebx */ 6511 ebx = MEM32(ebp + 0x8); /* 0x270188D1: mov ebx, dword ptr [ebp + 8] */ 6512 L_270188D4: 6513 eax = MEM32(edi + 0x18); /* 0x270188D4: mov eax, dword ptr [edi + 0x18] */ 6514 ecx = MEM32(eax + esi * 4); /* 0x270188D7: mov ecx, dword ptr [eax + esi*4] */ 6515 PUSH32(esp, ebx); /* 0x270188DA: push ebx */ 6516 RECOMP_ICALL(MEM32(0x27029224)); /* 0x270188DB: call dword ptr [0x27029224] */ 6517 RECOMP_FLAGS_IN(); 6518 eax = MEM32(edi + 0x10); /* 0x270188E1: mov eax, dword ptr [edi + 0x10] */ 6519 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 6520 esi = esi + 1; /* 0x270188E4: inc esi */ 6521 _flag_k = FK_INC; 6522 /* cmp esi, eax */ /* 0x270188E5: cmp esi, eax */ 6523 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6525 _flag_k = FK_CMP; 6526 RECOMP_BACKEDGE(); 6527 if (CMP_L(_flag_a, _flag_b)) goto L_270188D4; /* 0x270188E7: jl 0x270188d4 */ 6528 L_270188E9: 6529 ebx = POP32_VAL(esp); /* 0x270188E9: pop ebx */ 6530 L_270188EA: 6531 edi = POP32_VAL(esp); /* 0x270188EA: pop edi */ 6532 esi = POP32_VAL(esp); /* 0x270188EB: pop esi */ 6533 ebp = POP32_VAL(esp); /* 0x270188EC: pop ebp */ 6534 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270188ED: ret 4 */ 6535 RECOMP_REGS_OUT(); 6536 } 6537 6538 void sub_270188F0(void) { 6539 int _fpu_cmp = 0; 6540 uint32_t _cf = 0; 6541 int _df = 1; 6542 uint32_t _flag_k = FK_NONE; 6543 uint32_t _flag_a = 0, _flag_b = 0; 6544 uint32_t _itail_tgt = 0; 6545 RECOMP_REGS_LOCALS 6546 RECOMP_ENTER(0x270188F0u); 6547 6548 L_270188F0: 6549 PUSH32(esp, ebp); /* 0x270188F0: push ebp */ 6550 ebp = esp; /* 0x270188F1: mov ebp, esp */ 6551 PUSH32(esp, esi); /* 0x270188F3: push esi */ 6552 PUSH32(esp, edi); /* 0x270188F4: push edi */ 6553 edi = ecx; /* 0x270188F5: mov edi, ecx */ 6554 eax = MEM32(edi + 0x10); /* 0x270188F7: mov eax, dword ptr [edi + 0x10] */ 6555 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6556 esi = 0; /* 0x270188FA: xor esi, esi */ 6557 _cf = 0; 6558 _flag_k = FK_TEST; 6559 /* test eax, eax */ /* 0x270188FC: test eax, eax */ 6560 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6561 _cf = 0; 6562 _flag_k = FK_TEST; 6563 if (TEST_LE(_flag_a, _flag_b)) goto L_2701891A; /* 0x270188FE: jle 0x2701891a */ 6564 L_27018900: 6565 PUSH32(esp, ebx); /* 0x27018900: push ebx */ 6566 ebx = MEM32(ebp + 0x8); /* 0x27018901: mov ebx, dword ptr [ebp + 8] */ 6567 L_27018904: 6568 eax = MEM32(edi + 0x18); /* 0x27018904: mov eax, dword ptr [edi + 0x18] */ 6569 ecx = MEM32(eax + esi * 4); /* 0x27018907: mov ecx, dword ptr [eax + esi*4] */ 6570 PUSH32(esp, ebx); /* 0x2701890A: push ebx */ 6571 RECOMP_ICALL(MEM32(0x27029220)); /* 0x2701890B: call dword ptr [0x27029220] */ 6572 RECOMP_FLAGS_IN(); 6573 eax = MEM32(edi + 0x10); /* 0x27018911: mov eax, dword ptr [edi + 0x10] */ 6574 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 6575 esi = esi + 1; /* 0x27018914: inc esi */ 6576 _flag_k = FK_INC; 6577 /* cmp esi, eax */ /* 0x27018915: cmp esi, eax */ 6578 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6580 _flag_k = FK_CMP; 6581 RECOMP_BACKEDGE(); 6582 if (CMP_L(_flag_a, _flag_b)) goto L_27018904; /* 0x27018917: jl 0x27018904 */ 6583 L_27018919: 6584 ebx = POP32_VAL(esp); /* 0x27018919: pop ebx */ 6585 L_2701891A: 6586 edi = POP32_VAL(esp); /* 0x2701891A: pop edi */ 6587 esi = POP32_VAL(esp); /* 0x2701891B: pop esi */ 6588 ebp = POP32_VAL(esp); /* 0x2701891C: pop ebp */ 6589 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701891D: ret 4 */ 6590 RECOMP_REGS_OUT(); 6591 } 6592 6593 void sub_27018920(void) { 6594 int _fpu_cmp = 0; 6595 uint32_t _cf = 0; 6596 int _df = 1; 6597 uint32_t _flag_k = FK_NONE; 6598 uint32_t _flag_a = 0, _flag_b = 0; 6599 uint32_t _itail_tgt = 0; 6600 RECOMP_REGS_LOCALS 6601 RECOMP_ENTER(0x27018920u); 6602 6603 L_27018920: 6604 PUSH32(esp, ebp); /* 0x27018920: push ebp */ 6605 ebp = esp; /* 0x27018921: mov ebp, esp */ 6606 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6608 esp = esp - 8; /* 0x27018923: sub esp, 8 */ 6609 _flag_k = FK_CMP; 6610 PUSH32(esp, ebx); /* 0x27018926: push ebx */ 6611 PUSH32(esp, esi); /* 0x27018927: push esi */ 6612 esi = MEM32(ecx + 0x48); /* 0x27018928: mov esi, dword ptr [ecx + 0x48] */ 6613 PUSH32(esp, edi); /* 0x2701892B: push edi */ 6614 eax = ebp + 0x8; /* 0x2701892C: lea eax, [ebp + 8] */ 6615 PUSH32(esp, eax); /* 0x2701892F: push eax */ 6616 ecx = esi; /* 0x27018930: mov ecx, esi */ 6617 RECOMP_ICALL(0x270193E0u); /* 0x27018932: call 0x270193e0 */ /* not lifted */ 6618 RECOMP_FLAGS_IN(); 6619 ecx = ebp + 0x8; /* 0x27018937: lea ecx, [ebp + 8] */ 6620 PUSH32(esp, ecx); /* 0x2701893A: push ecx */ 6621 ecx = esi; /* 0x2701893B: mov ecx, esi */ 6622 ebx = eax; /* 0x2701893D: mov ebx, eax */ 6623 RECOMP_ICALL(0x270102A0u); /* 0x2701893F: call 0x270102a0 */ /* not lifted */ 6624 RECOMP_FLAGS_IN(); 6625 edi = eax; /* 0x27018944: mov edi, eax */ 6626 /* cmp edi, ebx */ /* 0x27018946: cmp edi, ebx */ 6627 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 6628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6629 _flag_k = FK_CMP; 6630 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701897C; /* 0x27018948: je 0x2701897c */ 6631 L_2701894A: 6632 ecx = MEM32(eax + 0x8); /* 0x2701894A: mov ecx, dword ptr [eax + 8] */ 6633 SET_LO8(edx, MEM8(ecx + 0x11)); /* 0x2701894D: mov dl, byte ptr [ecx + 0x11] */ 6634 /* test LO8(edx), LO8(edx) */ /* 0x27018950: test dl, dl */ 6635 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6636 _cf = 0; 6637 _flag_k = FK_NARROW(FK_TEST, 24); 6638 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701895F; /* 0x27018952: jne 0x2701895f */ 6639 L_27018954: 6640 PUSH32(esp, ecx); /* 0x27018954: push ecx */ 6641 RECOMP_ICALL(0x27019360u); /* 0x27018955: call 0x27019360 */ /* not lifted */ 6642 RECOMP_FLAGS_IN(); 6643 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6645 esp = esp + 4; /* 0x2701895A: add esp, 4 */ 6646 _flag_k = FK_ADD; 6647 goto L_27018978; /* 0x2701895D: jmp 0x27018978 */ 6648 L_2701895F: 6649 ecx = MEM32(eax + 0x4); /* 0x2701895F: mov ecx, dword ptr [eax + 4] */ 6650 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x27018962: cmp eax, dword ptr [ecx + 8] */ 6651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 6652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6653 _flag_k = FK_CMP; 6654 if (CMP_NE(_flag_a, _flag_b)) goto L_27018971; /* 0x27018965: jne 0x27018971 */ 6655 L_27018967: 6656 eax = ecx; /* 0x27018967: mov eax, ecx */ 6657 ecx = MEM32(ecx + 0x4); /* 0x27018969: mov ecx, dword ptr [ecx + 4] */ 6658 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x2701896C: cmp eax, dword ptr [ecx + 8] */ 6659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 6660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6661 _flag_k = FK_CMP; 6662 RECOMP_BACKEDGE(); 6663 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018967; /* 0x2701896F: je 0x27018967 */ 6664 L_27018971: 6665 /* cmp MEM32(eax + 0x8), ecx */ /* 0x27018971: cmp dword ptr [eax + 8], ecx */ 6666 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 6667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6668 _flag_k = FK_CMP; 6669 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018978; /* 0x27018974: je 0x27018978 */ 6670 L_27018976: 6671 eax = ecx; /* 0x27018976: mov eax, ecx */ 6672 L_27018978: 6673 /* cmp eax, ebx */ /* 0x27018978: cmp eax, ebx */ 6674 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6676 _flag_k = FK_CMP; 6677 RECOMP_BACKEDGE(); 6678 if (CMP_NE(_flag_a, _flag_b)) goto L_2701894A; /* 0x2701897A: jne 0x2701894a */ 6679 L_2701897C: 6680 eax = MEM32(esi + 0x10); /* 0x2701897C: mov eax, dword ptr [esi + 0x10] */ 6681 /* test eax, eax */ /* 0x2701897F: test eax, eax */ 6682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6683 _cf = 0; 6684 _flag_k = FK_TEST; 6685 MEM32(ebp + (-0x4)) = edi; /* 0x27018981: mov dword ptr [ebp - 4], edi */ 6686 if (TEST_Z(_flag_a, _flag_b)) goto L_270189DE; /* 0x27018984: je 0x270189de */ 6687 L_27018986: 6688 eax = MEM32(esi + 0x4); /* 0x27018986: mov eax, dword ptr [esi + 4] */ 6689 /* cmp edi, MEM32(eax) */ /* 0x27018989: cmp edi, dword ptr [eax] */ 6690 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 6691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6692 _flag_k = FK_CMP; 6693 if (CMP_NE(_flag_a, _flag_b)) goto L_270189DE; /* 0x2701898B: jne 0x270189de */ 6694 L_2701898D: 6695 /* cmp ebx, eax */ /* 0x2701898D: cmp ebx, eax */ 6696 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 6697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6698 _flag_k = FK_CMP; 6699 if (CMP_NE(_flag_a, _flag_b)) goto L_270189DE; /* 0x2701898F: jne 0x270189de */ 6700 L_27018991: 6701 ebx = MEM32(eax + 0x4); /* 0x27018991: mov ebx, dword ptr [eax + 4] */ 6702 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x27018994: cmp ebx, dword ptr [esi + 8] */ 6703 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6705 _flag_k = FK_CMP; 6706 edi = ebx; /* 0x27018997: mov edi, ebx */ 6707 if (CMP_EQ(_flag_a, _flag_b)) goto L_270189BA; /* 0x27018999: je 0x270189ba */ 6708 L_2701899B: 6709 edx = MEM32(edi + 0x8); /* 0x2701899B: mov edx, dword ptr [edi + 8] */ 6710 PUSH32(esp, edx); /* 0x2701899E: push edx */ 6711 ecx = esi; /* 0x2701899F: mov ecx, esi */ 6712 RECOMP_ICALL(0x270190E0u); /* 0x270189A1: call 0x270190e0 */ /* not lifted */ 6713 RECOMP_FLAGS_IN(); 6714 edi = MEM32(edi); /* 0x270189A6: mov edi, dword ptr [edi] */ 6715 PUSH32(esp, ebx); /* 0x270189A8: push ebx */ 6716 RECOMP_ICALL(0x27026DA4u); /* 0x270189A9: call 0x27026da4 */ /* not lifted */ 6717 RECOMP_FLAGS_IN(); 6718 eax = MEM32(esi + 0x8); /* 0x270189AE: mov eax, dword ptr [esi + 8] */ 6719 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6720 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6721 esp = esp + 4; /* 0x270189B1: add esp, 4 */ 6722 _flag_k = FK_ADD; 6723 /* cmp edi, eax */ /* 0x270189B4: cmp edi, eax */ 6724 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6726 _flag_k = FK_CMP; 6727 ebx = edi; /* 0x270189B6: mov ebx, edi */ 6728 RECOMP_BACKEDGE(); 6729 if (CMP_NE(_flag_a, _flag_b)) goto L_2701899B; /* 0x270189B8: jne 0x2701899b */ 6730 L_270189BA: 6731 eax = MEM32(esi + 0x4); /* 0x270189BA: mov eax, dword ptr [esi + 4] */ 6732 ecx = MEM32(esi + 0x8); /* 0x270189BD: mov ecx, dword ptr [esi + 8] */ 6733 MEM32(eax + 0x4) = ecx; /* 0x270189C0: mov dword ptr [eax + 4], ecx */ 6734 eax = MEM32(esi + 0x4); /* 0x270189C3: mov eax, dword ptr [esi + 4] */ 6735 MEM32(esi + 0x10) = 0; /* 0x270189C6: mov dword ptr [esi + 0x10], 0 */ 6736 MEM32(eax) = eax; /* 0x270189CD: mov dword ptr [eax], eax */ 6737 esi = MEM32(esi + 0x4); /* 0x270189CF: mov esi, dword ptr [esi + 4] */ 6738 edi = POP32_VAL(esp); /* 0x270189D2: pop edi */ 6739 MEM32(esi + 0x8) = esi; /* 0x270189D3: mov dword ptr [esi + 8], esi */ 6740 esi = POP32_VAL(esp); /* 0x270189D6: pop esi */ 6741 ebx = POP32_VAL(esp); /* 0x270189D7: pop ebx */ 6742 esp = ebp; /* 0x270189D8: mov esp, ebp */ 6743 ebp = POP32_VAL(esp); /* 0x270189DA: pop ebp */ 6744 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270189DB: ret 4 */ 6745 L_270189DE: 6746 /* cmp edi, ebx */ /* 0x270189DE: cmp edi, ebx */ 6747 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 6748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6749 _flag_k = FK_CMP; 6750 if (CMP_EQ(_flag_a, _flag_b)) goto L_270189FD; /* 0x270189E0: je 0x270189fd */ 6751 L_270189E2: 6752 ecx = ebp + (-0x4); /* 0x270189E2: lea ecx, [ebp - 4] */ 6753 RECOMP_ICALL(0x27018CD0u); /* 0x270189E5: call 0x27018cd0 */ /* not lifted */ 6754 RECOMP_FLAGS_IN(); 6755 PUSH32(esp, edi); /* 0x270189EA: push edi */ 6756 edx = ebp + (-0x8); /* 0x270189EB: lea edx, [ebp - 8] */ 6757 PUSH32(esp, edx); /* 0x270189EE: push edx */ 6758 ecx = esi; /* 0x270189EF: mov ecx, esi */ 6759 RECOMP_ICALL(0x27018D20u); /* 0x270189F1: call 0x27018d20 */ /* not lifted */ 6760 RECOMP_FLAGS_IN(); 6761 edi = MEM32(ebp + (-0x4)); /* 0x270189F6: mov edi, dword ptr [ebp - 4] */ 6762 /* cmp edi, ebx */ /* 0x270189F9: cmp edi, ebx */ 6763 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 6764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6765 _flag_k = FK_CMP; 6766 RECOMP_BACKEDGE(); 6767 if (CMP_NE(_flag_a, _flag_b)) goto L_270189E2; /* 0x270189FB: jne 0x270189e2 */ 6768 L_270189FD: 6769 edi = POP32_VAL(esp); /* 0x270189FD: pop edi */ 6770 esi = POP32_VAL(esp); /* 0x270189FE: pop esi */ 6771 ebx = POP32_VAL(esp); /* 0x270189FF: pop ebx */ 6772 esp = ebp; /* 0x27018A00: mov esp, ebp */ 6773 ebp = POP32_VAL(esp); /* 0x27018A02: pop ebp */ 6774 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27018A03: ret 4 */ 6775 RECOMP_REGS_OUT(); 6776 } 6777 6778 void sub_27018A10(void) { 6779 int _fpu_cmp = 0; 6780 uint32_t _cf = 0; 6781 int _df = 1; 6782 uint32_t _flag_k = FK_NONE; 6783 uint32_t _flag_a = 0, _flag_b = 0; 6784 uint32_t _itail_tgt = 0; 6785 RECOMP_REGS_LOCALS 6786 RECOMP_ENTER(0x27018A10u); 6787 6788 L_27018A10: 6789 PUSH32(esp, ebp); /* 0x27018A10: push ebp */ 6790 ebp = esp; /* 0x27018A11: mov ebp, esp */ 6791 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6793 esp = esp - 0x10u; /* 0x27018A13: sub esp, 0x10 */ 6794 _flag_k = FK_CMP; 6795 PUSH32(esp, ebx); /* 0x27018A16: push ebx */ 6796 ebx = MEM32(ecx + 0x48); /* 0x27018A17: mov ebx, dword ptr [ecx + 0x48] */ 6797 ecx = MEM32(ebx + 0x4); /* 0x27018A1A: mov ecx, dword ptr [ebx + 4] */ 6798 edx = MEM32(ebx + 0x8); /* 0x27018A1D: mov edx, dword ptr [ebx + 8] */ 6799 PUSH32(esp, esi); /* 0x27018A20: push esi */ 6800 esi = MEM32(ecx + 0x4); /* 0x27018A21: mov esi, dword ptr [ecx + 4] */ 6801 /* cmp esi, edx */ /* 0x27018A24: cmp esi, edx */ 6802 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 6803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6804 _flag_k = FK_CMP; 6805 PUSH32(esp, edi); /* 0x27018A26: push edi */ 6806 edi = ecx; /* 0x27018A27: mov edi, ecx */ 6807 SET_LO8(eax, 1); /* 0x27018A29: mov al, 1 */ 6808 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018A47; /* 0x27018A2B: je 0x27018a47 */ 6809 L_27018A2D: 6810 eax = MEM32(ebp + 0x8); /* 0x27018A2D: mov eax, dword ptr [ebp + 8] */ 6811 /* cmp eax, MEM32(esi + 0xC) */ /* 0x27018A30: cmp eax, dword ptr [esi + 0xc] */ 6812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 6813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6814 _flag_k = FK_CMP; 6815 edi = esi; /* 0x27018A33: mov edi, esi */ 6816 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x27018A35: setb al */ 6817 /* test LO8(eax), LO8(eax) */ /* 0x27018A38: test al, al */ 6818 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6819 _cf = 0; 6820 _flag_k = FK_NARROW(FK_TEST, 24); 6821 if (TEST_Z(_flag_a, _flag_b)) goto L_27018A40; /* 0x27018A3A: je 0x27018a40 */ 6822 L_27018A3C: 6823 esi = MEM32(esi); /* 0x27018A3C: mov esi, dword ptr [esi] */ 6824 goto L_27018A43; /* 0x27018A3E: jmp 0x27018a43 */ 6825 L_27018A40: 6826 esi = MEM32(esi + 0x8); /* 0x27018A40: mov esi, dword ptr [esi + 8] */ 6827 L_27018A43: 6828 /* cmp esi, edx */ /* 0x27018A43: cmp esi, edx */ 6829 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 6830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6831 _flag_k = FK_CMP; 6832 RECOMP_BACKEDGE(); 6833 if (CMP_NE(_flag_a, _flag_b)) goto L_27018A2D; /* 0x27018A45: jne 0x27018a2d */ 6834 L_27018A47: 6835 SET_LO8(edx, MEM8(ebx + 0xC)); /* 0x27018A47: mov dl, byte ptr [ebx + 0xc] */ 6836 /* test LO8(edx), LO8(edx) */ /* 0x27018A4A: test dl, dl */ 6837 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6838 _cf = 0; 6839 _flag_k = FK_NARROW(FK_TEST, 24); 6840 if (TEST_Z(_flag_a, _flag_b)) goto L_27018A68; /* 0x27018A4C: je 0x27018a68 */ 6841 L_27018A4E: 6842 ecx = ebp + 0x8; /* 0x27018A4E: lea ecx, [ebp + 8] */ 6843 PUSH32(esp, ecx); /* 0x27018A51: push ecx */ 6844 PUSH32(esp, edi); /* 0x27018A52: push edi */ 6845 PUSH32(esp, esi); /* 0x27018A53: push esi */ 6846 edx = ebp + (-0x8); /* 0x27018A54: lea edx, [ebp - 8] */ 6847 PUSH32(esp, edx); /* 0x27018A57: push edx */ 6848 ecx = ebx; /* 0x27018A58: mov ecx, ebx */ 6849 RECOMP_ICALL(0x27019120u); /* 0x27018A5A: call 0x27019120 */ /* not lifted */ 6850 RECOMP_FLAGS_IN(); 6851 edi = POP32_VAL(esp); /* 0x27018A5F: pop edi */ 6852 esi = POP32_VAL(esp); /* 0x27018A60: pop esi */ 6853 ebx = POP32_VAL(esp); /* 0x27018A61: pop ebx */ 6854 esp = ebp; /* 0x27018A62: mov esp, ebp */ 6855 ebp = POP32_VAL(esp); /* 0x27018A64: pop ebp */ 6856 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27018A65: ret 4 */ 6857 L_27018A68: 6858 /* test LO8(eax), LO8(eax) */ /* 0x27018A68: test al, al */ 6859 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6860 _cf = 0; 6861 _flag_k = FK_NARROW(FK_TEST, 24); 6862 MEM32(ebp + (-0x4)) = edi; /* 0x27018A6A: mov dword ptr [ebp - 4], edi */ 6863 if (TEST_Z(_flag_a, _flag_b)) goto L_27018A95; /* 0x27018A6D: je 0x27018a95 */ 6864 L_27018A6F: 6865 /* cmp edi, MEM32(ecx) */ /* 0x27018A6F: cmp edi, dword ptr [ecx] */ 6866 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ecx)); 6867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6868 _flag_k = FK_CMP; 6869 if (CMP_NE(_flag_a, _flag_b)) goto L_27018A8D; /* 0x27018A71: jne 0x27018a8d */ 6870 L_27018A73: 6871 eax = ebp + 0x8; /* 0x27018A73: lea eax, [ebp + 8] */ 6872 PUSH32(esp, eax); /* 0x27018A76: push eax */ 6873 PUSH32(esp, edi); /* 0x27018A77: push edi */ 6874 PUSH32(esp, esi); /* 0x27018A78: push esi */ 6875 ecx = ebp + (-0xC); /* 0x27018A79: lea ecx, [ebp - 0xc] */ 6876 PUSH32(esp, ecx); /* 0x27018A7C: push ecx */ 6877 ecx = ebx; /* 0x27018A7D: mov ecx, ebx */ 6878 RECOMP_ICALL(0x27019120u); /* 0x27018A7F: call 0x27019120 */ /* not lifted */ 6879 RECOMP_FLAGS_IN(); 6880 edi = POP32_VAL(esp); /* 0x27018A84: pop edi */ 6881 esi = POP32_VAL(esp); /* 0x27018A85: pop esi */ 6882 ebx = POP32_VAL(esp); /* 0x27018A86: pop ebx */ 6883 esp = ebp; /* 0x27018A87: mov esp, ebp */ 6884 ebp = POP32_VAL(esp); /* 0x27018A89: pop ebp */ 6885 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27018A8A: ret 4 */ 6886 L_27018A8D: 6887 ecx = ebp + (-0x4); /* 0x27018A8D: lea ecx, [ebp - 4] */ 6888 RECOMP_ICALL(0x27019380u); /* 0x27018A90: call 0x27019380 */ /* not lifted */ 6889 RECOMP_FLAGS_IN(); 6890 L_27018A95: 6891 edx = MEM32(ebp + (-0x4)); /* 0x27018A95: mov edx, dword ptr [ebp - 4] */ 6892 eax = MEM32(edx + 0xC); /* 0x27018A98: mov eax, dword ptr [edx + 0xc] */ 6893 /* cmp eax, MEM32(ebp + 0x8) */ /* 0x27018A9B: cmp eax, dword ptr [ebp + 8] */ 6894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 6895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6896 _flag_k = FK_CMP; 6897 if (CMP_AE(_flag_a, _flag_b)) goto L_27018AB1; /* 0x27018A9E: jae 0x27018ab1 */ 6898 L_27018AA0: 6899 ecx = ebp + 0x8; /* 0x27018AA0: lea ecx, [ebp + 8] */ 6900 PUSH32(esp, ecx); /* 0x27018AA3: push ecx */ 6901 PUSH32(esp, edi); /* 0x27018AA4: push edi */ 6902 PUSH32(esp, esi); /* 0x27018AA5: push esi */ 6903 edx = ebp + (-0x10); /* 0x27018AA6: lea edx, [ebp - 0x10] */ 6904 PUSH32(esp, edx); /* 0x27018AA9: push edx */ 6905 ecx = ebx; /* 0x27018AAA: mov ecx, ebx */ 6906 RECOMP_ICALL(0x27019120u); /* 0x27018AAC: call 0x27019120 */ /* not lifted */ 6907 RECOMP_FLAGS_IN(); 6908 L_27018AB1: 6909 edi = POP32_VAL(esp); /* 0x27018AB1: pop edi */ 6910 esi = POP32_VAL(esp); /* 0x27018AB2: pop esi */ 6911 ebx = POP32_VAL(esp); /* 0x27018AB3: pop ebx */ 6912 esp = ebp; /* 0x27018AB4: mov esp, ebp */ 6913 ebp = POP32_VAL(esp); /* 0x27018AB6: pop ebp */ 6914 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27018AB7: ret 4 */ 6915 RECOMP_REGS_OUT(); 6916 } 6917 6918 void sub_27018AC0(void) { 6919 int _fpu_cmp = 0; 6920 uint32_t _cf = 0; 6921 int _df = 1; 6922 uint32_t _flag_k = FK_NONE; 6923 uint32_t _flag_a = 0, _flag_b = 0; 6924 uint32_t _itail_tgt = 0; 6925 RECOMP_REGS_LOCALS 6926 RECOMP_ENTER(0x27018AC0u); 6927 6928 L_27018AC0: 6929 PUSH32(esp, ebp); /* 0x27018AC0: push ebp */ 6930 ebp = esp; /* 0x27018AC1: mov ebp, esp */ 6931 eax = MEM32(ebp + 0x8); /* 0x27018AC3: mov eax, dword ptr [ebp + 8] */ 6932 edx = MEM32(ebp + 0xC); /* 0x27018AC6: mov edx, dword ptr [ebp + 0xc] */ 6933 PUSH32(esp, ebx); /* 0x27018AC9: push ebx */ 6934 PUSH32(esp, esi); /* 0x27018ACA: push esi */ 6935 esi = ecx; /* 0x27018ACB: mov esi, ecx */ 6936 ecx = MEM32(eax); /* 0x27018ACD: mov ecx, dword ptr [eax] */ 6937 MEM32(esi + 0x3C) = ecx; /* 0x27018ACF: mov dword ptr [esi + 0x3c], ecx */ 6938 eax = MEM32(edx); /* 0x27018AD2: mov eax, dword ptr [edx] */ 6939 MEM32(esi + 0x40) = eax; /* 0x27018AD4: mov dword ptr [esi + 0x40], eax */ 6940 eax = MEM32(esi + 0xC); /* 0x27018AD7: mov eax, dword ptr [esi + 0xc] */ 6941 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6942 ebx = 0; /* 0x27018ADA: xor ebx, ebx */ 6943 _cf = 0; 6944 _flag_k = FK_TEST; 6945 /* cmp eax, ebx */ /* 0x27018ADC: cmp eax, ebx */ 6946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6948 _flag_k = FK_CMP; 6949 MEM32(ebp + 0x8) = ebx; /* 0x27018ADE: mov dword ptr [ebp + 8], ebx */ 6950 if (CMP_LE(_flag_a, _flag_b)) goto L_27018B19; /* 0x27018AE1: jle 0x27018b19 */ 6951 L_27018AE3: 6952 PUSH32(esp, edi); /* 0x27018AE3: push edi */ 6953 L_27018AE4: 6954 eax = MEM32(esi + 0x8); /* 0x27018AE4: mov eax, dword ptr [esi + 8] */ 6955 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6956 edi = 0; /* 0x27018AE7: xor edi, edi */ 6957 _cf = 0; 6958 _flag_k = FK_TEST; 6959 /* test eax, eax */ /* 0x27018AE9: test eax, eax */ 6960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6961 _cf = 0; 6962 _flag_k = FK_TEST; 6963 if (TEST_LE(_flag_a, _flag_b)) goto L_27018B0A; /* 0x27018AEB: jle 0x27018b0a */ 6964 L_27018AED: 6965 ecx = MEM32(esi + 0x18); /* 0x27018AED: mov ecx, dword ptr [esi + 0x18] */ 6966 ecx = MEM32(ecx + ebx * 4); /* 0x27018AF0: mov ecx, dword ptr [ecx + ebx*4] */ 6967 eax = esi + 0x40; /* 0x27018AF3: lea eax, [esi + 0x40] */ 6968 PUSH32(esp, eax); /* 0x27018AF6: push eax */ 6969 eax = esi + 0x3C; /* 0x27018AF7: lea eax, [esi + 0x3c] */ 6970 PUSH32(esp, eax); /* 0x27018AFA: push eax */ 6971 RECOMP_ICALL(MEM32(0x27029218)); /* 0x27018AFB: call dword ptr [0x27029218] */ 6972 RECOMP_FLAGS_IN(); 6973 eax = MEM32(esi + 0x8); /* 0x27018B01: mov eax, dword ptr [esi + 8] */ 6974 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 6975 ebx = ebx + 1; /* 0x27018B04: inc ebx */ 6976 _flag_k = FK_INC; 6977 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 6978 edi = edi + 1; /* 0x27018B05: inc edi */ 6979 _flag_k = FK_INC; 6980 /* cmp edi, eax */ /* 0x27018B06: cmp edi, eax */ 6981 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6983 _flag_k = FK_CMP; 6984 RECOMP_BACKEDGE(); 6985 if (CMP_L(_flag_a, _flag_b)) goto L_27018AED; /* 0x27018B08: jl 0x27018aed */ 6986 L_27018B0A: 6987 eax = MEM32(ebp + 0x8); /* 0x27018B0A: mov eax, dword ptr [ebp + 8] */ 6988 ecx = MEM32(esi + 0xC); /* 0x27018B0D: mov ecx, dword ptr [esi + 0xc] */ 6989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6990 eax = eax + 1; /* 0x27018B10: inc eax */ 6991 _flag_k = FK_INC; 6992 /* cmp eax, ecx */ /* 0x27018B11: cmp eax, ecx */ 6993 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6995 _flag_k = FK_CMP; 6996 MEM32(ebp + 0x8) = eax; /* 0x27018B13: mov dword ptr [ebp + 8], eax */ 6997 RECOMP_BACKEDGE(); 6998 if (CMP_L(_flag_a, _flag_b)) goto L_27018AE4; /* 0x27018B16: jl 0x27018ae4 */ 6999 L_27018B18: 7000 edi = POP32_VAL(esp); /* 0x27018B18: pop edi */ 7001 L_27018B19: 7002 esi = POP32_VAL(esp); /* 0x27018B19: pop esi */ 7003 ebx = POP32_VAL(esp); /* 0x27018B1A: pop ebx */ 7004 ebp = POP32_VAL(esp); /* 0x27018B1B: pop ebp */ 7005 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27018B1C: ret 8 */ 7006 RECOMP_REGS_OUT(); 7007 } 7008 7009 void sub_27018B20(void) { 7010 int _fpu_cmp = 0; 7011 uint32_t _cf = 0; 7012 int _df = 1; 7013 uint32_t _flag_k = FK_NONE; 7014 uint32_t _flag_a = 0, _flag_b = 0; 7015 uint32_t _itail_tgt = 0; 7016 RECOMP_REGS_LOCALS 7017 RECOMP_ENTER(0x27018B20u); 7018 7019 L_27018B20: 7020 PUSH32(esp, ebp); /* 0x27018B20: push ebp */ 7021 ebp = esp; /* 0x27018B21: mov ebp, esp */ 7022 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7024 esp = esp - 0xCu; /* 0x27018B23: sub esp, 0xc */ 7025 _flag_k = FK_CMP; 7026 PUSH32(esp, esi); /* 0x27018B26: push esi */ 7027 esi = ecx; /* 0x27018B27: mov esi, ecx */ 7028 SET_LO8(ecx, MEM8(0x27048BD0)); /* 0x27018B29: mov cl, byte ptr [0x27048bd0] */ 7029 SET_LO8(eax, 1); /* 0x27018B2F: mov al, 1 */ 7030 /* test LO8(eax), LO8(ecx) */ /* 0x27018B31: test al, cl */ 7031 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7032 _cf = 0; 7033 _flag_k = FK_NARROW(FK_TEST, 24); 7034 PUSH32(esp, edi); /* 0x27018B33: push edi */ 7035 edi = MEM32(0x27029278); /* 0x27018B34: mov edi, dword ptr [0x27029278] */ 7036 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018B5A; /* 0x27018B3A: jne 0x27018b5a */ 7037 L_27018B3C: 7038 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 7039 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x27018B3C: or cl, al */ 7040 _cf = 0; 7041 _flag_k = FK_NARROW(FK_TEST, 24); 7042 MEM8(0x27048BD0) = (uint8_t)(LO8(ecx)); /* 0x27018B3E: mov byte ptr [0x27048bd0], cl */ 7043 RECOMP_ICALL(edi); /* 0x27018B44: call edi */ 7044 RECOMP_FLAGS_IN(); 7045 ecx = eax; /* 0x27018B46: mov ecx, eax */ 7046 RECOMP_ICALL(MEM32(0x2702927C)); /* 0x27018B48: call dword ptr [0x2702927c] */ 7047 RECOMP_FLAGS_IN(); 7048 MEM32(ebp + (-0x4)) = eax; /* 0x27018B4E: mov dword ptr [ebp - 4], eax */ 7049 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x27018B51: fild dword ptr [ebp - 4] */ 7050 { float _v = (float)fp_pop(); *(float*)ADDR(0x27048BCC) = _v; } /* 0x27018B54: fstp dword ptr [0x27048bcc] */ 7051 L_27018B5A: 7052 SET_LO8(ecx, MEM8(0x27048BD0)); /* 0x27018B5A: mov cl, byte ptr [0x27048bd0] */ 7053 SET_LO8(eax, 2); /* 0x27018B60: mov al, 2 */ 7054 /* test LO8(eax), LO8(ecx) */ /* 0x27018B62: test al, cl */ 7055 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7056 _cf = 0; 7057 _flag_k = FK_NARROW(FK_TEST, 24); 7058 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018B84; /* 0x27018B64: jne 0x27018b84 */ 7059 L_27018B66: 7060 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 7061 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x27018B66: or cl, al */ 7062 _cf = 0; 7063 _flag_k = FK_NARROW(FK_TEST, 24); 7064 MEM8(0x27048BD0) = (uint8_t)(LO8(ecx)); /* 0x27018B68: mov byte ptr [0x27048bd0], cl */ 7065 RECOMP_ICALL(edi); /* 0x27018B6E: call edi */ 7066 RECOMP_FLAGS_IN(); 7067 ecx = eax; /* 0x27018B70: mov ecx, eax */ 7068 RECOMP_ICALL(MEM32(0x27029280)); /* 0x27018B72: call dword ptr [0x27029280] */ 7069 RECOMP_FLAGS_IN(); 7070 MEM32(ebp + (-0x4)) = eax; /* 0x27018B78: mov dword ptr [ebp - 4], eax */ 7071 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x27018B7B: fild dword ptr [ebp - 4] */ 7072 { float _v = (float)fp_pop(); *(float*)ADDR(0x27048BC8) = _v; } /* 0x27018B7E: fstp dword ptr [0x27048bc8] */ 7073 L_27018B84: 7074 fp_push(*(float*)&MEM32(0x27048BCC)); /* 0x27018B84: fld dword ptr [0x27048bcc] */ 7075 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x27018B8A: fmul dword ptr [ebp + 8] */ 7076 fp_push((double)(int32_t)MEM32(esi + 0x34)); /* 0x27018B8D: fild dword ptr [esi + 0x34] */ 7077 _st[0] *= (double)*(float*)ADDR(esi + 0x3C); /* 0x27018B90: fmul dword ptr [esi + 0x3c] */ 7078 _st[0] *= (double)*(float*)ADDR(0x270342BC); /* 0x27018B93: fmul dword ptr [0x270342bc] */ 7079 { double _v = fp_pop(); _st[0] -= _v; } /* 0x27018B99: fsubp st(1) */ 7080 RECOMP_ICALL(0x27026ED2u); /* 0x27018B9B: call 0x27026ed2 */ /* not lifted */ 7081 RECOMP_FLAGS_IN(); 7082 fp_push(*(float*)&MEM32(0x27048BC8)); /* 0x27018BA0: fld dword ptr [0x27048bc8] */ 7083 _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x27018BA6: fmul dword ptr [ebp + 0xc] */ 7084 MEM32(ebp + (-0xC)) = eax; /* 0x27018BA9: mov dword ptr [ebp - 0xc], eax */ 7085 fp_push((double)(int32_t)MEM32(esi + 0x38)); /* 0x27018BAC: fild dword ptr [esi + 0x38] */ 7086 _st[0] *= (double)*(float*)ADDR(esi + 0x3C); /* 0x27018BAF: fmul dword ptr [esi + 0x3c] */ 7087 _st[0] *= (double)*(float*)ADDR(0x270342BC); /* 0x27018BB2: fmul dword ptr [0x270342bc] */ 7088 { double _v = fp_pop(); _st[0] -= _v; } /* 0x27018BB8: fsubp st(1) */ 7089 RECOMP_ICALL(0x27026ED2u); /* 0x27018BBA: call 0x27026ed2 */ /* not lifted */ 7090 RECOMP_FLAGS_IN(); 7091 MEM32(ebp + (-0x8)) = eax; /* 0x27018BBF: mov dword ptr [ebp - 8], eax */ 7092 eax = ebp + (-0xC); /* 0x27018BC2: lea eax, [ebp - 0xc] */ 7093 PUSH32(esp, eax); /* 0x27018BC5: push eax */ 7094 ecx = esi; /* 0x27018BC6: mov ecx, esi */ 7095 RECOMP_ICALL(0x27018620u); /* 0x27018BC8: call 0x27018620 */ /* not lifted */ 7096 RECOMP_FLAGS_IN(); 7097 edi = POP32_VAL(esp); /* 0x27018BCD: pop edi */ 7098 esi = POP32_VAL(esp); /* 0x27018BCE: pop esi */ 7099 esp = ebp; /* 0x27018BCF: mov esp, ebp */ 7100 ebp = POP32_VAL(esp); /* 0x27018BD1: pop ebp */ 7101 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27018BD2: ret 8 */ 7102 RECOMP_REGS_OUT(); 7103 } 7104 7105 void sub_27018BE0(void) { 7106 int _fpu_cmp = 0; 7107 uint32_t _cf = 0; 7108 int _df = 1; 7109 uint32_t _flag_k = FK_NONE; 7110 uint32_t _flag_a = 0, _flag_b = 0; 7111 uint32_t _itail_tgt = 0; 7112 RECOMP_REGS_LOCALS 7113 RECOMP_ENTER(0x27018BE0u); 7114 7115 L_27018BE0: 7116 PUSH32(esp, ebp); /* 0x27018BE0: push ebp */ 7117 ebp = esp; /* 0x27018BE1: mov ebp, esp */ 7118 PUSH32(esp, ecx); /* 0x27018BE3: push ecx */ 7119 PUSH32(esp, esi); /* 0x27018BE4: push esi */ 7120 esi = MEM32(0x27029278); /* 0x27018BE5: mov esi, dword ptr [0x27029278] */ 7121 PUSH32(esp, edi); /* 0x27018BEB: push edi */ 7122 edi = ecx; /* 0x27018BEC: mov edi, ecx */ 7123 SET_LO8(ecx, MEM8(0x27048BC4)); /* 0x27018BEE: mov cl, byte ptr [0x27048bc4] */ 7124 SET_LO8(eax, 1); /* 0x27018BF4: mov al, 1 */ 7125 /* test LO8(eax), LO8(ecx) */ /* 0x27018BF6: test al, cl */ 7126 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7127 _cf = 0; 7128 _flag_k = FK_NARROW(FK_TEST, 24); 7129 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018C18; /* 0x27018BF8: jne 0x27018c18 */ 7130 L_27018BFA: 7131 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 7132 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x27018BFA: or cl, al */ 7133 _cf = 0; 7134 _flag_k = FK_NARROW(FK_TEST, 24); 7135 MEM8(0x27048BC4) = (uint8_t)(LO8(ecx)); /* 0x27018BFC: mov byte ptr [0x27048bc4], cl */ 7136 RECOMP_ICALL(esi); /* 0x27018C02: call esi */ 7137 RECOMP_FLAGS_IN(); 7138 ecx = eax; /* 0x27018C04: mov ecx, eax */ 7139 RECOMP_ICALL(MEM32(0x2702927C)); /* 0x27018C06: call dword ptr [0x2702927c] */ 7140 RECOMP_FLAGS_IN(); 7141 MEM32(ebp + (-0x4)) = eax; /* 0x27018C0C: mov dword ptr [ebp - 4], eax */ 7142 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x27018C0F: fild dword ptr [ebp - 4] */ 7143 { float _v = (float)fp_pop(); *(float*)ADDR(0x27048BC0) = _v; } /* 0x27018C12: fstp dword ptr [0x27048bc0] */ 7144 L_27018C18: 7145 SET_LO8(ecx, MEM8(0x27048BC4)); /* 0x27018C18: mov cl, byte ptr [0x27048bc4] */ 7146 SET_LO8(eax, 2); /* 0x27018C1E: mov al, 2 */ 7147 /* test LO8(eax), LO8(ecx) */ /* 0x27018C20: test al, cl */ 7148 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7149 _cf = 0; 7150 _flag_k = FK_NARROW(FK_TEST, 24); 7151 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018C42; /* 0x27018C22: jne 0x27018c42 */ 7152 L_27018C24: 7153 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 7154 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x27018C24: or cl, al */ 7155 _cf = 0; 7156 _flag_k = FK_NARROW(FK_TEST, 24); 7157 MEM8(0x27048BC4) = (uint8_t)(LO8(ecx)); /* 0x27018C26: mov byte ptr [0x27048bc4], cl */ 7158 RECOMP_ICALL(esi); /* 0x27018C2C: call esi */ 7159 RECOMP_FLAGS_IN(); 7160 ecx = eax; /* 0x27018C2E: mov ecx, eax */ 7161 RECOMP_ICALL(MEM32(0x27029280)); /* 0x27018C30: call dword ptr [0x27029280] */ 7162 RECOMP_FLAGS_IN(); 7163 MEM32(ebp + (-0x4)) = eax; /* 0x27018C36: mov dword ptr [ebp - 4], eax */ 7164 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x27018C39: fild dword ptr [ebp - 4] */ 7165 { float _v = (float)fp_pop(); *(float*)ADDR(0x27048BBC) = _v; } /* 0x27018C3C: fstp dword ptr [0x27048bbc] */ 7166 L_27018C42: 7167 fp_push(*(float*)&MEM32(0x27048BBC)); /* 0x27018C42: fld dword ptr [0x27048bbc] */ 7168 eax = ebp + 0xC; /* 0x27018C48: lea eax, [ebp + 0xc] */ 7169 _st[0] /= (double)*(float*)ADDR(ebp + 0xC); /* 0x27018C4B: fdiv dword ptr [ebp + 0xc] */ 7170 PUSH32(esp, eax); /* 0x27018C4E: push eax */ 7171 ecx = ebp + 0x8; /* 0x27018C4F: lea ecx, [ebp + 8] */ 7172 PUSH32(esp, ecx); /* 0x27018C52: push ecx */ 7173 ecx = edi; /* 0x27018C53: mov ecx, edi */ 7174 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x27018C55: fstp dword ptr [ebp + 0xc] */ 7175 fp_push(*(float*)&MEM32(0x27048BC0)); /* 0x27018C58: fld dword ptr [0x27048bc0] */ 7176 _st[0] /= (double)*(float*)ADDR(ebp + 0x8); /* 0x27018C5E: fdiv dword ptr [ebp + 8] */ 7177 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x27018C61: fstp dword ptr [ebp + 8] */ 7178 RECOMP_ICALL(0x27018AC0u); /* 0x27018C64: call 0x27018ac0 */ /* not lifted */ 7179 RECOMP_FLAGS_IN(); 7180 edi = POP32_VAL(esp); /* 0x27018C69: pop edi */ 7181 esi = POP32_VAL(esp); /* 0x27018C6A: pop esi */ 7182 esp = ebp; /* 0x27018C6B: mov esp, ebp */ 7183 ebp = POP32_VAL(esp); /* 0x27018C6D: pop ebp */ 7184 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27018C6E: ret 8 */ 7185 RECOMP_REGS_OUT(); 7186 } 7187 7188 void sub_27018C80(void) { 7189 int _fpu_cmp = 0; 7190 uint32_t _cf = 0; 7191 int _df = 1; 7192 uint32_t _flag_k = FK_NONE; 7193 uint32_t _flag_a = 0, _flag_b = 0; 7194 uint32_t _itail_tgt = 0; 7195 RECOMP_REGS_LOCALS 7196 RECOMP_ENTER(0x27018C80u); 7197 7198 L_27018C80: 7199 PUSH32(esp, ebp); /* 0x27018C80: push ebp */ 7200 ebp = esp; /* 0x27018C81: mov ebp, esp */ 7201 eax = MEM32(ecx + 0xC); /* 0x27018C83: mov eax, dword ptr [ecx + 0xc] */ 7202 PUSH32(esp, esi); /* 0x27018C86: push esi */ 7203 PUSH32(esp, edi); /* 0x27018C87: push edi */ 7204 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7205 esi = 0; /* 0x27018C88: xor esi, esi */ 7206 _cf = 0; 7207 _flag_k = FK_TEST; 7208 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7209 edi = 0; /* 0x27018C8A: xor edi, edi */ 7210 _cf = 0; 7211 _flag_k = FK_TEST; 7212 /* test eax, eax */ /* 0x27018C8C: test eax, eax */ 7213 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7214 _cf = 0; 7215 _flag_k = FK_TEST; 7216 if (TEST_LE(_flag_a, _flag_b)) goto L_27018CBB; /* 0x27018C8E: jle 0x27018cbb */ 7217 L_27018C90: 7218 SET_LO8(edx, MEM8(ebp + 0x8)); /* 0x27018C90: mov dl, byte ptr [ebp + 8] */ 7219 PUSH32(esp, ebx); /* 0x27018C93: push ebx */ 7220 L_27018C94: 7221 ebx = MEM32(ecx + 0x8); /* 0x27018C94: mov ebx, dword ptr [ecx + 8] */ 7222 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7223 eax = 0; /* 0x27018C97: xor eax, eax */ 7224 _cf = 0; 7225 _flag_k = FK_TEST; 7226 /* test ebx, ebx */ /* 0x27018C99: test ebx, ebx */ 7227 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 7228 _cf = 0; 7229 _flag_k = FK_TEST; 7230 if (TEST_LE(_flag_a, _flag_b)) goto L_27018CB2; /* 0x27018C9B: jle 0x27018cb2 */ 7231 L_27018C9D: 7232 ebx = MEM32(ecx + 0x18); /* 0x27018C9D: mov ebx, dword ptr [ecx + 0x18] */ 7233 ebx = MEM32(ebx + esi * 4); /* 0x27018CA0: mov ebx, dword ptr [ebx + esi*4] */ 7234 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 7235 esi = esi + 1; /* 0x27018CA3: inc esi */ 7236 _flag_k = FK_INC; 7237 MEM8(ebx + 0xD4) = (uint8_t)(LO8(edx)); /* 0x27018CA4: mov byte ptr [ebx + 0xd4], dl */ 7238 ebx = MEM32(ecx + 0x8); /* 0x27018CAA: mov ebx, dword ptr [ecx + 8] */ 7239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7240 eax = eax + 1; /* 0x27018CAD: inc eax */ 7241 _flag_k = FK_INC; 7242 /* cmp eax, ebx */ /* 0x27018CAE: cmp eax, ebx */ 7243 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7245 _flag_k = FK_CMP; 7246 RECOMP_BACKEDGE(); 7247 if (CMP_L(_flag_a, _flag_b)) goto L_27018C9D; /* 0x27018CB0: jl 0x27018c9d */ 7248 L_27018CB2: 7249 eax = MEM32(ecx + 0xC); /* 0x27018CB2: mov eax, dword ptr [ecx + 0xc] */ 7250 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 7251 edi = edi + 1; /* 0x27018CB5: inc edi */ 7252 _flag_k = FK_INC; 7253 /* cmp edi, eax */ /* 0x27018CB6: cmp edi, eax */ 7254 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7256 _flag_k = FK_CMP; 7257 RECOMP_BACKEDGE(); 7258 if (CMP_L(_flag_a, _flag_b)) goto L_27018C94; /* 0x27018CB8: jl 0x27018c94 */ 7259 L_27018CBA: 7260 ebx = POP32_VAL(esp); /* 0x27018CBA: pop ebx */ 7261 L_27018CBB: 7262 edi = POP32_VAL(esp); /* 0x27018CBB: pop edi */ 7263 esi = POP32_VAL(esp); /* 0x27018CBC: pop esi */ 7264 ebp = POP32_VAL(esp); /* 0x27018CBD: pop ebp */ 7265 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27018CBE: ret 4 */ 7266 RECOMP_REGS_OUT(); 7267 } 7268 7269 void sub_27018CD0(void) { 7270 int _fpu_cmp = 0; 7271 uint32_t _cf = 0; 7272 int _df = 1; 7273 uint32_t _flag_k = FK_NONE; 7274 uint32_t _flag_a = 0, _flag_b = 0; 7275 uint32_t _itail_tgt = 0; 7276 RECOMP_REGS_LOCALS 7277 RECOMP_ENTER(0x27018CD0u); 7278 7279 L_27018CD0: 7280 eax = MEM32(ecx); /* 0x27018CD0: mov eax, dword ptr [ecx] */ 7281 edx = MEM32(eax + 0x8); /* 0x27018CD2: mov edx, dword ptr [eax + 8] */ 7282 PUSH32(esp, ebx); /* 0x27018CD5: push ebx */ 7283 SET_LO8(ebx, MEM8(edx + 0x11)); /* 0x27018CD6: mov bl, byte ptr [edx + 0x11] */ 7284 /* test LO8(ebx), LO8(ebx) */ /* 0x27018CD9: test bl, bl */ 7285 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7286 _cf = 0; 7287 _flag_k = FK_NARROW(FK_TEST, 24); 7288 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018CF5; /* 0x27018CDB: jne 0x27018cf5 */ 7289 L_27018CDD: 7290 eax = MEM32(edx); /* 0x27018CDD: mov eax, dword ptr [edx] */ 7291 SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x27018CDF: mov bl, byte ptr [eax + 0x11] */ 7292 /* test LO8(ebx), LO8(ebx) */ /* 0x27018CE2: test bl, bl */ 7293 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7294 _cf = 0; 7295 _flag_k = FK_NARROW(FK_TEST, 24); 7296 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018CF1; /* 0x27018CE4: jne 0x27018cf1 */ 7297 L_27018CE6: 7298 edx = eax; /* 0x27018CE6: mov edx, eax */ 7299 eax = MEM32(edx); /* 0x27018CE8: mov eax, dword ptr [edx] */ 7300 SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x27018CEA: mov bl, byte ptr [eax + 0x11] */ 7301 /* test LO8(ebx), LO8(ebx) */ /* 0x27018CED: test bl, bl */ 7302 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7303 _cf = 0; 7304 _flag_k = FK_NARROW(FK_TEST, 24); 7305 RECOMP_BACKEDGE(); 7306 if (TEST_Z(_flag_a, _flag_b)) goto L_27018CE6; /* 0x27018CEF: je 0x27018ce6 */ 7307 L_27018CF1: 7308 MEM32(ecx) = edx; /* 0x27018CF1: mov dword ptr [ecx], edx */ 7309 ebx = POP32_VAL(esp); /* 0x27018CF3: pop ebx */ 7310 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27018CF4: ret */ 7311 L_27018CF5: 7312 eax = MEM32(eax + 0x4); /* 0x27018CF5: mov eax, dword ptr [eax + 4] */ 7313 edx = MEM32(ecx); /* 0x27018CF8: mov edx, dword ptr [ecx] */ 7314 /* cmp edx, MEM32(eax + 0x8) */ /* 0x27018CFA: cmp edx, dword ptr [eax + 8] */ 7315 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7317 _flag_k = FK_CMP; 7318 if (CMP_NE(_flag_a, _flag_b)) goto L_27018D0B; /* 0x27018CFD: jne 0x27018d0b */ 7319 L_27018CFF: 7320 MEM32(ecx) = eax; /* 0x27018CFF: mov dword ptr [ecx], eax */ 7321 eax = MEM32(eax + 0x4); /* 0x27018D01: mov eax, dword ptr [eax + 4] */ 7322 edx = MEM32(ecx); /* 0x27018D04: mov edx, dword ptr [ecx] */ 7323 /* cmp edx, MEM32(eax + 0x8) */ /* 0x27018D06: cmp edx, dword ptr [eax + 8] */ 7324 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7326 _flag_k = FK_CMP; 7327 RECOMP_BACKEDGE(); 7328 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018CFF; /* 0x27018D09: je 0x27018cff */ 7329 L_27018D0B: 7330 edx = MEM32(ecx); /* 0x27018D0B: mov edx, dword ptr [ecx] */ 7331 /* cmp MEM32(edx + 0x8), eax */ /* 0x27018D0D: cmp dword ptr [edx + 8], eax */ 7332 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 7333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7334 _flag_k = FK_CMP; 7335 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018D14; /* 0x27018D10: je 0x27018d14 */ 7336 L_27018D12: 7337 MEM32(ecx) = eax; /* 0x27018D12: mov dword ptr [ecx], eax */ 7338 L_27018D14: 7339 ebx = POP32_VAL(esp); /* 0x27018D14: pop ebx */ 7340 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27018D15: ret */ 7341 RECOMP_REGS_OUT(); 7342 } 7343 7344 void sub_27018D20(void) { 7345 int _fpu_cmp = 0; 7346 uint32_t _cf = 0; 7347 int _df = 1; 7348 uint32_t _flag_k = FK_NONE; 7349 uint32_t _flag_a = 0, _flag_b = 0; 7350 uint32_t _itail_tgt = 0; 7351 RECOMP_REGS_LOCALS 7352 RECOMP_ENTER(0x27018D20u); 7353 7354 L_27018D20: 7355 PUSH32(esp, ebp); /* 0x27018D20: push ebp */ 7356 ebp = esp; /* 0x27018D21: mov ebp, esp */ 7357 PUSH32(esp, ecx); /* 0x27018D23: push ecx */ 7358 PUSH32(esp, ebx); /* 0x27018D24: push ebx */ 7359 PUSH32(esp, esi); /* 0x27018D25: push esi */ 7360 esi = MEM32(ebp + 0xC); /* 0x27018D26: mov esi, dword ptr [ebp + 0xc] */ 7361 PUSH32(esp, edi); /* 0x27018D29: push edi */ 7362 edi = ecx; /* 0x27018D2A: mov edi, ecx */ 7363 ecx = ebp + 0xC; /* 0x27018D2C: lea ecx, [ebp + 0xc] */ 7364 RECOMP_ICALL(0x27018CD0u); /* 0x27018D2F: call 0x27018cd0 */ /* not lifted */ 7365 RECOMP_FLAGS_IN(); 7366 edx = MEM32(esi); /* 0x27018D34: mov edx, dword ptr [esi] */ 7367 eax = MEM32(edi + 0x8); /* 0x27018D36: mov eax, dword ptr [edi + 8] */ 7368 /* cmp edx, eax */ /* 0x27018D39: cmp edx, eax */ 7369 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7371 _flag_k = FK_CMP; 7372 MEM32(ebp + (-0x4)) = esi; /* 0x27018D3B: mov dword ptr [ebp - 4], esi */ 7373 if (CMP_NE(_flag_a, _flag_b)) goto L_27018D60; /* 0x27018D3E: jne 0x27018d60 */ 7374 L_27018D40: 7375 eax = MEM32(esi + 0x8); /* 0x27018D40: mov eax, dword ptr [esi + 8] */ 7376 L_27018D43: 7377 ecx = MEM32(ebp + (-0x4)); /* 0x27018D43: mov ecx, dword ptr [ebp - 4] */ 7378 edx = MEM32(ecx + 0x4); /* 0x27018D46: mov edx, dword ptr [ecx + 4] */ 7379 MEM32(eax + 0x4) = edx; /* 0x27018D49: mov dword ptr [eax + 4], edx */ 7380 ecx = MEM32(edi + 0x4); /* 0x27018D4C: mov ecx, dword ptr [edi + 4] */ 7381 /* cmp MEM32(ecx + 0x4), esi */ /* 0x27018D4F: cmp dword ptr [ecx + 4], esi */ 7382 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 7383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7384 _flag_k = FK_CMP; 7385 if (CMP_NE(_flag_a, _flag_b)) goto L_27018DE3; /* 0x27018D52: jne 0x27018de3 */ 7386 L_27018D58: 7387 MEM32(ecx + 0x4) = eax; /* 0x27018D58: mov dword ptr [ecx + 4], eax */ 7388 goto L_27018DF1; /* 0x27018D5B: jmp 0x27018df1 */ 7389 L_27018D60: 7390 ecx = MEM32(esi + 0x8); /* 0x27018D60: mov ecx, dword ptr [esi + 8] */ 7391 /* cmp ecx, eax */ /* 0x27018D63: cmp ecx, eax */ 7392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7394 _flag_k = FK_CMP; 7395 if (CMP_NE(_flag_a, _flag_b)) goto L_27018D6B; /* 0x27018D65: jne 0x27018d6b */ 7396 L_27018D67: 7397 eax = edx; /* 0x27018D67: mov eax, edx */ 7398 RECOMP_BACKEDGE(); 7399 goto L_27018D43; /* 0x27018D69: jmp 0x27018d43 */ 7400 L_27018D6B: 7401 eax = MEM32(ecx); /* 0x27018D6B: mov eax, dword ptr [ecx] */ 7402 SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x27018D6D: mov bl, byte ptr [eax + 0x11] */ 7403 /* test LO8(ebx), LO8(ebx) */ /* 0x27018D70: test bl, bl */ 7404 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7405 _cf = 0; 7406 _flag_k = FK_NARROW(FK_TEST, 24); 7407 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018D7F; /* 0x27018D72: jne 0x27018d7f */ 7408 L_27018D74: 7409 ecx = eax; /* 0x27018D74: mov ecx, eax */ 7410 eax = MEM32(ecx); /* 0x27018D76: mov eax, dword ptr [ecx] */ 7411 SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x27018D78: mov bl, byte ptr [eax + 0x11] */ 7412 /* test LO8(ebx), LO8(ebx) */ /* 0x27018D7B: test bl, bl */ 7413 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7414 _cf = 0; 7415 _flag_k = FK_NARROW(FK_TEST, 24); 7416 RECOMP_BACKEDGE(); 7417 if (TEST_Z(_flag_a, _flag_b)) goto L_27018D74; /* 0x27018D7D: je 0x27018d74 */ 7418 L_27018D7F: 7419 /* cmp ecx, esi */ /* 0x27018D7F: cmp ecx, esi */ 7420 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 7421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7422 _flag_k = FK_CMP; 7423 eax = MEM32(ecx + 0x8); /* 0x27018D81: mov eax, dword ptr [ecx + 8] */ 7424 MEM32(ebp + (-0x4)) = ecx; /* 0x27018D84: mov dword ptr [ebp - 4], ecx */ 7425 RECOMP_BACKEDGE(); 7426 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018D43; /* 0x27018D87: je 0x27018d43 */ 7427 L_27018D89: 7428 MEM32(edx + 0x4) = ecx; /* 0x27018D89: mov dword ptr [edx + 4], ecx */ 7429 edx = MEM32(esi); /* 0x27018D8C: mov edx, dword ptr [esi] */ 7430 MEM32(ecx) = edx; /* 0x27018D8E: mov dword ptr [ecx], edx */ 7431 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018D90: cmp ecx, dword ptr [esi + 8] */ 7432 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7434 _flag_k = FK_CMP; 7435 if (CMP_NE(_flag_a, _flag_b)) goto L_27018D9A; /* 0x27018D93: jne 0x27018d9a */ 7436 L_27018D95: 7437 MEM32(eax + 0x4) = ecx; /* 0x27018D95: mov dword ptr [eax + 4], ecx */ 7438 goto L_27018DB1; /* 0x27018D98: jmp 0x27018db1 */ 7439 L_27018D9A: 7440 edx = MEM32(ecx + 0x4); /* 0x27018D9A: mov edx, dword ptr [ecx + 4] */ 7441 MEM32(eax + 0x4) = edx; /* 0x27018D9D: mov dword ptr [eax + 4], edx */ 7442 edx = MEM32(ecx + 0x4); /* 0x27018DA0: mov edx, dword ptr [ecx + 4] */ 7443 MEM32(edx) = eax; /* 0x27018DA3: mov dword ptr [edx], eax */ 7444 edx = MEM32(esi + 0x8); /* 0x27018DA5: mov edx, dword ptr [esi + 8] */ 7445 MEM32(ecx + 0x8) = edx; /* 0x27018DA8: mov dword ptr [ecx + 8], edx */ 7446 edx = MEM32(esi + 0x8); /* 0x27018DAB: mov edx, dword ptr [esi + 8] */ 7447 MEM32(edx + 0x4) = ecx; /* 0x27018DAE: mov dword ptr [edx + 4], ecx */ 7448 L_27018DB1: 7449 edx = MEM32(edi + 0x4); /* 0x27018DB1: mov edx, dword ptr [edi + 4] */ 7450 /* cmp MEM32(edx + 0x4), esi */ /* 0x27018DB4: cmp dword ptr [edx + 4], esi */ 7451 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 7452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7453 _flag_k = FK_CMP; 7454 if (CMP_NE(_flag_a, _flag_b)) goto L_27018DBE; /* 0x27018DB7: jne 0x27018dbe */ 7455 L_27018DB9: 7456 MEM32(edx + 0x4) = ecx; /* 0x27018DB9: mov dword ptr [edx + 4], ecx */ 7457 goto L_27018DCC; /* 0x27018DBC: jmp 0x27018dcc */ 7458 L_27018DBE: 7459 edx = MEM32(esi + 0x4); /* 0x27018DBE: mov edx, dword ptr [esi + 4] */ 7460 /* cmp MEM32(edx), esi */ /* 0x27018DC1: cmp dword ptr [edx], esi */ 7461 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 7462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7463 _flag_k = FK_CMP; 7464 if (CMP_NE(_flag_a, _flag_b)) goto L_27018DC9; /* 0x27018DC3: jne 0x27018dc9 */ 7465 L_27018DC5: 7466 MEM32(edx) = ecx; /* 0x27018DC5: mov dword ptr [edx], ecx */ 7467 goto L_27018DCC; /* 0x27018DC7: jmp 0x27018dcc */ 7468 L_27018DC9: 7469 MEM32(edx + 0x8) = ecx; /* 0x27018DC9: mov dword ptr [edx + 8], ecx */ 7470 L_27018DCC: 7471 edx = MEM32(esi + 0x4); /* 0x27018DCC: mov edx, dword ptr [esi + 4] */ 7472 MEM32(ecx + 0x4) = edx; /* 0x27018DCF: mov dword ptr [ecx + 4], edx */ 7473 SET_LO8(ebx, MEM8(esi + 0x10)); /* 0x27018DD2: mov bl, byte ptr [esi + 0x10] */ 7474 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018DD5: mov dl, byte ptr [ecx + 0x10] */ 7475 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018DD8: mov byte ptr [ecx + 0x10], bl */ 7476 MEM8(esi + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018DDB: mov byte ptr [esi + 0x10], dl */ 7477 MEM32(ebp + (-0x4)) = esi; /* 0x27018DDE: mov dword ptr [ebp - 4], esi */ 7478 goto L_27018E48; /* 0x27018DE1: jmp 0x27018e48 */ 7479 L_27018DE3: 7480 ecx = MEM32(esi + 0x4); /* 0x27018DE3: mov ecx, dword ptr [esi + 4] */ 7481 /* cmp MEM32(ecx), esi */ /* 0x27018DE6: cmp dword ptr [ecx], esi */ 7482 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 7483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7484 _flag_k = FK_CMP; 7485 if (CMP_NE(_flag_a, _flag_b)) goto L_27018DEE; /* 0x27018DE8: jne 0x27018dee */ 7486 L_27018DEA: 7487 MEM32(ecx) = eax; /* 0x27018DEA: mov dword ptr [ecx], eax */ 7488 goto L_27018DF1; /* 0x27018DEC: jmp 0x27018df1 */ 7489 L_27018DEE: 7490 MEM32(ecx + 0x8) = eax; /* 0x27018DEE: mov dword ptr [ecx + 8], eax */ 7491 L_27018DF1: 7492 ebx = MEM32(edi + 0x4); /* 0x27018DF1: mov ebx, dword ptr [edi + 4] */ 7493 /* cmp MEM32(ebx), esi */ /* 0x27018DF4: cmp dword ptr [ebx], esi */ 7494 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 7495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7496 _flag_k = FK_CMP; 7497 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E1B; /* 0x27018DF6: jne 0x27018e1b */ 7498 L_27018DF8: 7499 ecx = MEM32(esi + 0x8); /* 0x27018DF8: mov ecx, dword ptr [esi + 8] */ 7500 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x27018DFB: cmp ecx, dword ptr [edi + 8] */ 7501 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7503 _flag_k = FK_CMP; 7504 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E05; /* 0x27018DFE: jne 0x27018e05 */ 7505 L_27018E00: 7506 edx = MEM32(esi + 0x4); /* 0x27018E00: mov edx, dword ptr [esi + 4] */ 7507 goto L_27018E19; /* 0x27018E03: jmp 0x27018e19 */ 7508 L_27018E05: 7509 ecx = MEM32(eax); /* 0x27018E05: mov ecx, dword ptr [eax] */ 7510 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x27018E07: cmp byte ptr [ecx + 0x11], 0 */ 7511 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 7512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7513 _flag_k = FK_NARROW(FK_CMP, 24); 7514 edx = eax; /* 0x27018E0B: mov edx, eax */ 7515 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E19; /* 0x27018E0D: jne 0x27018e19 */ 7516 L_27018E0F: 7517 edx = ecx; /* 0x27018E0F: mov edx, ecx */ 7518 ecx = MEM32(edx); /* 0x27018E11: mov ecx, dword ptr [edx] */ 7519 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x27018E13: cmp byte ptr [ecx + 0x11], 0 */ 7520 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 7521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7522 _flag_k = FK_NARROW(FK_CMP, 24); 7523 RECOMP_BACKEDGE(); 7524 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E0F; /* 0x27018E17: je 0x27018e0f */ 7525 L_27018E19: 7526 MEM32(ebx) = edx; /* 0x27018E19: mov dword ptr [ebx], edx */ 7527 L_27018E1B: 7528 ebx = MEM32(edi + 0x4); /* 0x27018E1B: mov ebx, dword ptr [edi + 4] */ 7529 /* cmp MEM32(ebx + 0x8), esi */ /* 0x27018E1E: cmp dword ptr [ebx + 8], esi */ 7530 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 7531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7532 _flag_k = FK_CMP; 7533 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E48; /* 0x27018E21: jne 0x27018e48 */ 7534 L_27018E23: 7535 ecx = MEM32(esi); /* 0x27018E23: mov ecx, dword ptr [esi] */ 7536 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x27018E25: cmp ecx, dword ptr [edi + 8] */ 7537 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7539 _flag_k = FK_CMP; 7540 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E2F; /* 0x27018E28: jne 0x27018e2f */ 7541 L_27018E2A: 7542 edx = MEM32(esi + 0x4); /* 0x27018E2A: mov edx, dword ptr [esi + 4] */ 7543 goto L_27018E45; /* 0x27018E2D: jmp 0x27018e45 */ 7544 L_27018E2F: 7545 ecx = MEM32(eax + 0x8); /* 0x27018E2F: mov ecx, dword ptr [eax + 8] */ 7546 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x27018E32: cmp byte ptr [ecx + 0x11], 0 */ 7547 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 7548 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7549 _flag_k = FK_NARROW(FK_CMP, 24); 7550 edx = eax; /* 0x27018E36: mov edx, eax */ 7551 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E45; /* 0x27018E38: jne 0x27018e45 */ 7552 L_27018E3A: 7553 edx = ecx; /* 0x27018E3A: mov edx, ecx */ 7554 ecx = MEM32(edx + 0x8); /* 0x27018E3C: mov ecx, dword ptr [edx + 8] */ 7555 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x27018E3F: cmp byte ptr [ecx + 0x11], 0 */ 7556 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 7557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7558 _flag_k = FK_NARROW(FK_CMP, 24); 7559 RECOMP_BACKEDGE(); 7560 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E3A; /* 0x27018E43: je 0x27018e3a */ 7561 L_27018E45: 7562 MEM32(ebx + 0x8) = edx; /* 0x27018E45: mov dword ptr [ebx + 8], edx */ 7563 L_27018E48: 7564 ecx = MEM32(ebp + (-0x4)); /* 0x27018E48: mov ecx, dword ptr [ebp - 4] */ 7565 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E4B: mov dl, byte ptr [ecx + 0x10] */ 7566 SET_LO8(ebx, 1); /* 0x27018E4E: mov bl, 1 */ 7567 /* cmp LO8(edx), LO8(ebx) */ /* 0x27018E50: cmp dl, bl */ 7568 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7570 _flag_k = FK_NARROW(FK_CMP, 24); 7571 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B5; /* 0x27018E52: jne 0x270190b5 */ 7572 L_27018E58: 7573 edx = MEM32(edi + 0x4); /* 0x27018E58: mov edx, dword ptr [edi + 4] */ 7574 /* cmp eax, MEM32(edx + 0x4) */ /* 0x27018E5B: cmp eax, dword ptr [edx + 4] */ 7575 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7577 _flag_k = FK_CMP; 7578 if (CMP_EQ(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E5E: je 0x270190b2 */ 7579 L_27018E64: 7580 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x27018E64: cmp byte ptr [eax + 0x10], bl */ 7581 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7583 _flag_k = FK_NARROW(FK_CMP, 24); 7584 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E67: jne 0x270190b2 */ 7585 L_27018E6D: 7586 edx = MEM32(eax + 0x4); /* 0x27018E6D: mov edx, dword ptr [eax + 4] */ 7587 ecx = MEM32(edx); /* 0x27018E70: mov ecx, dword ptr [edx] */ 7588 /* cmp eax, ecx */ /* 0x27018E72: cmp eax, ecx */ 7589 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7591 _flag_k = FK_CMP; 7592 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EE4; /* 0x27018E74: jne 0x27018ee4 */ 7593 L_27018E76: 7594 ecx = MEM32(edx + 0x8); /* 0x27018E76: mov ecx, dword ptr [edx + 8] */ 7595 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E79: mov dl, byte ptr [ecx + 0x10] */ 7596 /* test LO8(edx), LO8(edx) */ /* 0x27018E7C: test dl, dl */ 7597 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7598 _cf = 0; 7599 _flag_k = FK_NARROW(FK_TEST, 24); 7600 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018ECB; /* 0x27018E7E: jne 0x27018ecb */ 7601 L_27018E80: 7602 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018E80: mov byte ptr [ecx + 0x10], bl */ 7603 ecx = MEM32(eax + 0x4); /* 0x27018E83: mov ecx, dword ptr [eax + 4] */ 7604 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018E86: mov byte ptr [ecx + 0x10], 0 */ 7605 ecx = MEM32(eax + 0x4); /* 0x27018E8A: mov ecx, dword ptr [eax + 4] */ 7606 edx = MEM32(ecx + 0x8); /* 0x27018E8D: mov edx, dword ptr [ecx + 8] */ 7607 esi = MEM32(edx); /* 0x27018E90: mov esi, dword ptr [edx] */ 7608 MEM32(ecx + 0x8) = esi; /* 0x27018E92: mov dword ptr [ecx + 8], esi */ 7609 esi = MEM32(edx); /* 0x27018E95: mov esi, dword ptr [edx] */ 7610 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018E97: cmp esi, dword ptr [edi + 8] */ 7611 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7613 _flag_k = FK_CMP; 7614 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E9F; /* 0x27018E9A: je 0x27018e9f */ 7615 L_27018E9C: 7616 MEM32(esi + 0x4) = ecx; /* 0x27018E9C: mov dword ptr [esi + 4], ecx */ 7617 L_27018E9F: 7618 esi = MEM32(ecx + 0x4); /* 0x27018E9F: mov esi, dword ptr [ecx + 4] */ 7619 MEM32(edx + 0x4) = esi; /* 0x27018EA2: mov dword ptr [edx + 4], esi */ 7620 esi = MEM32(edi + 0x4); /* 0x27018EA5: mov esi, dword ptr [edi + 4] */ 7621 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018EA8: cmp ecx, dword ptr [esi + 4] */ 7622 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7624 _flag_k = FK_CMP; 7625 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EB2; /* 0x27018EAB: jne 0x27018eb2 */ 7626 L_27018EAD: 7627 MEM32(esi + 0x4) = edx; /* 0x27018EAD: mov dword ptr [esi + 4], edx */ 7628 goto L_27018EC0; /* 0x27018EB0: jmp 0x27018ec0 */ 7629 L_27018EB2: 7630 esi = MEM32(ecx + 0x4); /* 0x27018EB2: mov esi, dword ptr [ecx + 4] */ 7631 /* cmp ecx, MEM32(esi) */ /* 0x27018EB5: cmp ecx, dword ptr [esi] */ 7632 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7634 _flag_k = FK_CMP; 7635 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EBD; /* 0x27018EB7: jne 0x27018ebd */ 7636 L_27018EB9: 7637 MEM32(esi) = edx; /* 0x27018EB9: mov dword ptr [esi], edx */ 7638 goto L_27018EC0; /* 0x27018EBB: jmp 0x27018ec0 */ 7639 L_27018EBD: 7640 MEM32(esi + 0x8) = edx; /* 0x27018EBD: mov dword ptr [esi + 8], edx */ 7641 L_27018EC0: 7642 MEM32(edx) = ecx; /* 0x27018EC0: mov dword ptr [edx], ecx */ 7643 MEM32(ecx + 0x4) = edx; /* 0x27018EC2: mov dword ptr [ecx + 4], edx */ 7644 edx = MEM32(eax + 0x4); /* 0x27018EC5: mov edx, dword ptr [eax + 4] */ 7645 ecx = MEM32(edx + 0x8); /* 0x27018EC8: mov ecx, dword ptr [edx + 8] */ 7646 L_27018ECB: 7647 edx = MEM32(ecx); /* 0x27018ECB: mov edx, dword ptr [ecx] */ 7648 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ECD: cmp byte ptr [edx + 0x10], bl */ 7649 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7651 _flag_k = FK_NARROW(FK_CMP, 24); 7652 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018ED0: jne 0x27018f66 */ 7653 L_27018ED6: 7654 edx = MEM32(ecx + 0x8); /* 0x27018ED6: mov edx, dword ptr [ecx + 8] */ 7655 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ED9: cmp byte ptr [edx + 0x10], bl */ 7656 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7658 _flag_k = FK_NARROW(FK_CMP, 24); 7659 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018EDC: jne 0x27018f66 */ 7660 L_27018EE2: 7661 goto L_27018F4E; /* 0x27018EE2: jmp 0x27018f4e */ 7662 L_27018EE4: 7663 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018EE4: mov dl, byte ptr [ecx + 0x10] */ 7664 /* test LO8(edx), LO8(edx) */ /* 0x27018EE7: test dl, dl */ 7665 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7666 _cf = 0; 7667 _flag_k = FK_NARROW(FK_TEST, 24); 7668 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018F37; /* 0x27018EE9: jne 0x27018f37 */ 7669 L_27018EEB: 7670 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018EEB: mov byte ptr [ecx + 0x10], bl */ 7671 ecx = MEM32(eax + 0x4); /* 0x27018EEE: mov ecx, dword ptr [eax + 4] */ 7672 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018EF1: mov byte ptr [ecx + 0x10], 0 */ 7673 ecx = MEM32(eax + 0x4); /* 0x27018EF5: mov ecx, dword ptr [eax + 4] */ 7674 edx = MEM32(ecx); /* 0x27018EF8: mov edx, dword ptr [ecx] */ 7675 esi = MEM32(edx + 0x8); /* 0x27018EFA: mov esi, dword ptr [edx + 8] */ 7676 MEM32(ecx) = esi; /* 0x27018EFD: mov dword ptr [ecx], esi */ 7677 esi = MEM32(edx + 0x8); /* 0x27018EFF: mov esi, dword ptr [edx + 8] */ 7678 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F02: cmp esi, dword ptr [edi + 8] */ 7679 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7681 _flag_k = FK_CMP; 7682 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F0A; /* 0x27018F05: je 0x27018f0a */ 7683 L_27018F07: 7684 MEM32(esi + 0x4) = ecx; /* 0x27018F07: mov dword ptr [esi + 4], ecx */ 7685 L_27018F0A: 7686 esi = MEM32(ecx + 0x4); /* 0x27018F0A: mov esi, dword ptr [ecx + 4] */ 7687 MEM32(edx + 0x4) = esi; /* 0x27018F0D: mov dword ptr [edx + 4], esi */ 7688 esi = MEM32(edi + 0x4); /* 0x27018F10: mov esi, dword ptr [edi + 4] */ 7689 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F13: cmp ecx, dword ptr [esi + 4] */ 7690 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7692 _flag_k = FK_CMP; 7693 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F1D; /* 0x27018F16: jne 0x27018f1d */ 7694 L_27018F18: 7695 MEM32(esi + 0x4) = edx; /* 0x27018F18: mov dword ptr [esi + 4], edx */ 7696 goto L_27018F2C; /* 0x27018F1B: jmp 0x27018f2c */ 7697 L_27018F1D: 7698 esi = MEM32(ecx + 0x4); /* 0x27018F1D: mov esi, dword ptr [ecx + 4] */ 7699 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F20: cmp ecx, dword ptr [esi + 8] */ 7700 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7702 _flag_k = FK_CMP; 7703 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F2A; /* 0x27018F23: jne 0x27018f2a */ 7704 L_27018F25: 7705 MEM32(esi + 0x8) = edx; /* 0x27018F25: mov dword ptr [esi + 8], edx */ 7706 goto L_27018F2C; /* 0x27018F28: jmp 0x27018f2c */ 7707 L_27018F2A: 7708 MEM32(esi) = edx; /* 0x27018F2A: mov dword ptr [esi], edx */ 7709 L_27018F2C: 7710 MEM32(edx + 0x8) = ecx; /* 0x27018F2C: mov dword ptr [edx + 8], ecx */ 7711 MEM32(ecx + 0x4) = edx; /* 0x27018F2F: mov dword ptr [ecx + 4], edx */ 7712 edx = MEM32(eax + 0x4); /* 0x27018F32: mov edx, dword ptr [eax + 4] */ 7713 ecx = MEM32(edx); /* 0x27018F35: mov ecx, dword ptr [edx] */ 7714 L_27018F37: 7715 edx = MEM32(ecx + 0x8); /* 0x27018F37: mov edx, dword ptr [ecx + 8] */ 7716 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F3A: cmp byte ptr [edx + 0x10], bl */ 7717 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7719 _flag_k = FK_NARROW(FK_CMP, 24); 7720 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F3D: jne 0x27019013 */ 7721 L_27018F43: 7722 edx = MEM32(ecx); /* 0x27018F43: mov edx, dword ptr [ecx] */ 7723 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F45: cmp byte ptr [edx + 0x10], bl */ 7724 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7726 _flag_k = FK_NARROW(FK_CMP, 24); 7727 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F48: jne 0x27019013 */ 7728 L_27018F4E: 7729 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F4E: mov byte ptr [ecx + 0x10], 0 */ 7730 ecx = MEM32(edi + 0x4); /* 0x27018F52: mov ecx, dword ptr [edi + 4] */ 7731 eax = MEM32(eax + 0x4); /* 0x27018F55: mov eax, dword ptr [eax + 4] */ 7732 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27018F58: cmp eax, dword ptr [ecx + 4] */ 7733 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7735 _flag_k = FK_CMP; 7736 RECOMP_BACKEDGE(); 7737 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E64; /* 0x27018F5B: jne 0x27018e64 */ 7738 L_27018F61: 7739 goto L_270190B2; /* 0x27018F61: jmp 0x270190b2 */ 7740 L_27018F66: 7741 edx = MEM32(ecx + 0x8); /* 0x27018F66: mov edx, dword ptr [ecx + 8] */ 7742 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F69: cmp byte ptr [edx + 0x10], bl */ 7743 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7745 _flag_k = FK_NARROW(FK_CMP, 24); 7746 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FB7; /* 0x27018F6C: jne 0x27018fb7 */ 7747 L_27018F6E: 7748 edx = MEM32(ecx); /* 0x27018F6E: mov edx, dword ptr [ecx] */ 7749 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018F70: mov byte ptr [edx + 0x10], bl */ 7750 edx = MEM32(ecx); /* 0x27018F73: mov edx, dword ptr [ecx] */ 7751 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F75: mov byte ptr [ecx + 0x10], 0 */ 7752 esi = MEM32(edx + 0x8); /* 0x27018F79: mov esi, dword ptr [edx + 8] */ 7753 MEM32(ecx) = esi; /* 0x27018F7C: mov dword ptr [ecx], esi */ 7754 esi = MEM32(edx + 0x8); /* 0x27018F7E: mov esi, dword ptr [edx + 8] */ 7755 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F81: cmp esi, dword ptr [edi + 8] */ 7756 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7758 _flag_k = FK_CMP; 7759 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F89; /* 0x27018F84: je 0x27018f89 */ 7760 L_27018F86: 7761 MEM32(esi + 0x4) = ecx; /* 0x27018F86: mov dword ptr [esi + 4], ecx */ 7762 L_27018F89: 7763 esi = MEM32(ecx + 0x4); /* 0x27018F89: mov esi, dword ptr [ecx + 4] */ 7764 MEM32(edx + 0x4) = esi; /* 0x27018F8C: mov dword ptr [edx + 4], esi */ 7765 esi = MEM32(edi + 0x4); /* 0x27018F8F: mov esi, dword ptr [edi + 4] */ 7766 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F92: cmp ecx, dword ptr [esi + 4] */ 7767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7769 _flag_k = FK_CMP; 7770 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F9C; /* 0x27018F95: jne 0x27018f9c */ 7771 L_27018F97: 7772 MEM32(esi + 0x4) = edx; /* 0x27018F97: mov dword ptr [esi + 4], edx */ 7773 goto L_27018FAB; /* 0x27018F9A: jmp 0x27018fab */ 7774 L_27018F9C: 7775 esi = MEM32(ecx + 0x4); /* 0x27018F9C: mov esi, dword ptr [ecx + 4] */ 7776 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F9F: cmp ecx, dword ptr [esi + 8] */ 7777 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7779 _flag_k = FK_CMP; 7780 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FA9; /* 0x27018FA2: jne 0x27018fa9 */ 7781 L_27018FA4: 7782 MEM32(esi + 0x8) = edx; /* 0x27018FA4: mov dword ptr [esi + 8], edx */ 7783 goto L_27018FAB; /* 0x27018FA7: jmp 0x27018fab */ 7784 L_27018FA9: 7785 MEM32(esi) = edx; /* 0x27018FA9: mov dword ptr [esi], edx */ 7786 L_27018FAB: 7787 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 7788 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 7789 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 7790 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 7791 L_27018FB7: 7792 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 7793 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 7794 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 7795 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 7796 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 7797 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 7798 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 7799 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 7800 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 7801 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 7802 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 7803 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 7804 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: cmp esi, dword ptr [edi + 8] */ 7805 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7807 _flag_k = FK_CMP; 7808 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 7809 L_27018FDE: 7810 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 7811 L_27018FE1: 7812 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 7813 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 7814 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 7815 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: cmp ecx, dword ptr [esi + 4] */ 7816 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7818 _flag_k = FK_CMP; 7819 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 7820 L_27018FEF: 7821 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 7822 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 7823 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 7824 L_27018FF9: 7825 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 7826 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: cmp ecx, dword ptr [esi] */ 7827 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7829 _flag_k = FK_CMP; 7830 if (CMP_NE(_flag_a, _flag_b)) goto L_27019009; /* 0x27018FFE: jne 0x27019009 */ 7831 L_27019000: 7832 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 7833 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 7834 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 7835 L_27019009: 7836 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 7837 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 7838 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 7839 L_27019013: 7840 edx = MEM32(ecx); /* 0x27019013: mov edx, dword ptr [ecx] */ 7841 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27019015: cmp byte ptr [edx + 0x10], bl */ 7842 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7844 _flag_k = FK_NARROW(FK_CMP, 24); 7845 if (CMP_NE(_flag_a, _flag_b)) goto L_27019061; /* 0x27019018: jne 0x27019061 */ 7846 L_2701901A: 7847 edx = MEM32(ecx + 0x8); /* 0x2701901A: mov edx, dword ptr [ecx + 8] */ 7848 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701901D: mov byte ptr [edx + 0x10], bl */ 7849 edx = MEM32(ecx + 0x8); /* 0x27019020: mov edx, dword ptr [ecx + 8] */ 7850 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019023: mov byte ptr [ecx + 0x10], 0 */ 7851 esi = MEM32(edx); /* 0x27019027: mov esi, dword ptr [edx] */ 7852 MEM32(ecx + 0x8) = esi; /* 0x27019029: mov dword ptr [ecx + 8], esi */ 7853 esi = MEM32(edx); /* 0x2701902C: mov esi, dword ptr [edx] */ 7854 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701902E: cmp esi, dword ptr [edi + 8] */ 7855 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7857 _flag_k = FK_CMP; 7858 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019036; /* 0x27019031: je 0x27019036 */ 7859 L_27019033: 7860 MEM32(esi + 0x4) = ecx; /* 0x27019033: mov dword ptr [esi + 4], ecx */ 7861 L_27019036: 7862 esi = MEM32(ecx + 0x4); /* 0x27019036: mov esi, dword ptr [ecx + 4] */ 7863 MEM32(edx + 0x4) = esi; /* 0x27019039: mov dword ptr [edx + 4], esi */ 7864 esi = MEM32(edi + 0x4); /* 0x2701903C: mov esi, dword ptr [edi + 4] */ 7865 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701903F: cmp ecx, dword ptr [esi + 4] */ 7866 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7868 _flag_k = FK_CMP; 7869 if (CMP_NE(_flag_a, _flag_b)) goto L_27019049; /* 0x27019042: jne 0x27019049 */ 7870 L_27019044: 7871 MEM32(esi + 0x4) = edx; /* 0x27019044: mov dword ptr [esi + 4], edx */ 7872 goto L_27019057; /* 0x27019047: jmp 0x27019057 */ 7873 L_27019049: 7874 esi = MEM32(ecx + 0x4); /* 0x27019049: mov esi, dword ptr [ecx + 4] */ 7875 /* cmp ecx, MEM32(esi) */ /* 0x2701904C: cmp ecx, dword ptr [esi] */ 7876 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7878 _flag_k = FK_CMP; 7879 if (CMP_NE(_flag_a, _flag_b)) goto L_27019054; /* 0x2701904E: jne 0x27019054 */ 7880 L_27019050: 7881 MEM32(esi) = edx; /* 0x27019050: mov dword ptr [esi], edx */ 7882 goto L_27019057; /* 0x27019052: jmp 0x27019057 */ 7883 L_27019054: 7884 MEM32(esi + 0x8) = edx; /* 0x27019054: mov dword ptr [esi + 8], edx */ 7885 L_27019057: 7886 MEM32(edx) = ecx; /* 0x27019057: mov dword ptr [edx], ecx */ 7887 MEM32(ecx + 0x4) = edx; /* 0x27019059: mov dword ptr [ecx + 4], edx */ 7888 ecx = MEM32(eax + 0x4); /* 0x2701905C: mov ecx, dword ptr [eax + 4] */ 7889 ecx = MEM32(ecx); /* 0x2701905F: mov ecx, dword ptr [ecx] */ 7890 L_27019061: 7891 edx = MEM32(eax + 0x4); /* 0x27019061: mov edx, dword ptr [eax + 4] */ 7892 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27019064: mov dl, byte ptr [edx + 0x10] */ 7893 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27019067: mov byte ptr [ecx + 0x10], dl */ 7894 edx = MEM32(eax + 0x4); /* 0x2701906A: mov edx, dword ptr [eax + 4] */ 7895 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701906D: mov byte ptr [edx + 0x10], bl */ 7896 ecx = MEM32(ecx); /* 0x27019070: mov ecx, dword ptr [ecx] */ 7897 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019072: mov byte ptr [ecx + 0x10], bl */ 7898 ecx = MEM32(eax + 0x4); /* 0x27019075: mov ecx, dword ptr [eax + 4] */ 7899 edx = MEM32(ecx); /* 0x27019078: mov edx, dword ptr [ecx] */ 7900 esi = MEM32(edx + 0x8); /* 0x2701907A: mov esi, dword ptr [edx + 8] */ 7901 MEM32(ecx) = esi; /* 0x2701907D: mov dword ptr [ecx], esi */ 7902 esi = MEM32(edx + 0x8); /* 0x2701907F: mov esi, dword ptr [edx + 8] */ 7903 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27019082: cmp esi, dword ptr [edi + 8] */ 7904 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7906 _flag_k = FK_CMP; 7907 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701908A; /* 0x27019085: je 0x2701908a */ 7908 L_27019087: 7909 MEM32(esi + 0x4) = ecx; /* 0x27019087: mov dword ptr [esi + 4], ecx */ 7910 L_2701908A: 7911 esi = MEM32(ecx + 0x4); /* 0x2701908A: mov esi, dword ptr [ecx + 4] */ 7912 MEM32(edx + 0x4) = esi; /* 0x2701908D: mov dword ptr [edx + 4], esi */ 7913 esi = MEM32(edi + 0x4); /* 0x27019090: mov esi, dword ptr [edi + 4] */ 7914 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27019093: cmp ecx, dword ptr [esi + 4] */ 7915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7917 _flag_k = FK_CMP; 7918 if (CMP_NE(_flag_a, _flag_b)) goto L_2701909D; /* 0x27019096: jne 0x2701909d */ 7919 L_27019098: 7920 MEM32(esi + 0x4) = edx; /* 0x27019098: mov dword ptr [esi + 4], edx */ 7921 goto L_270190AC; /* 0x2701909B: jmp 0x270190ac */ 7922 L_2701909D: 7923 esi = MEM32(ecx + 0x4); /* 0x2701909D: mov esi, dword ptr [ecx + 4] */ 7924 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x270190A0: cmp ecx, dword ptr [esi + 8] */ 7925 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7927 _flag_k = FK_CMP; 7928 if (CMP_NE(_flag_a, _flag_b)) goto L_270190AA; /* 0x270190A3: jne 0x270190aa */ 7929 L_270190A5: 7930 MEM32(esi + 0x8) = edx; /* 0x270190A5: mov dword ptr [esi + 8], edx */ 7931 goto L_270190AC; /* 0x270190A8: jmp 0x270190ac */ 7932 L_270190AA: 7933 MEM32(esi) = edx; /* 0x270190AA: mov dword ptr [esi], edx */ 7934 L_270190AC: 7935 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 7936 L_270190AF: 7937 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 7938 L_270190B2: 7939 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 7940 L_270190B5: 7941 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 7942 PUSH32(esp, edx); /* 0x270190B8: push edx */ 7943 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 7944 RECOMP_FLAGS_IN(); 7945 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 7946 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 7947 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7948 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7949 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 7950 _flag_k = FK_ADD; 7951 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7952 eax = eax - 1; /* 0x270190C7: dec eax */ 7953 _flag_k = FK_DEC; 7954 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 7955 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 7956 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 7957 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 7958 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 7959 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 7960 esp = ebp; /* 0x270190D3: mov esp, ebp */ 7961 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 7962 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 7963 RECOMP_REGS_OUT(); 7964 } 7965 7966 void sub_27018DF1(void) { 7967 int _fpu_cmp = 0; 7968 uint32_t _cf = 0; 7969 int _df = 1; 7970 uint32_t _flag_k = FK_NONE; 7971 uint32_t _flag_a = 0, _flag_b = 0; 7972 uint32_t _itail_tgt = 0; 7973 RECOMP_REGS_LOCALS 7974 RECOMP_ENTER(0x27018DF1u); 7975 7976 L_27018DF1: 7977 ebx = MEM32(edi + 0x4); /* 0x27018DF1: mov ebx, dword ptr [edi + 4] */ 7978 /* cmp MEM32(ebx), esi */ /* 0x27018DF4: cmp dword ptr [ebx], esi */ 7979 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 7980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7981 _flag_k = FK_CMP; 7982 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E1B; /* 0x27018DF6: jne 0x27018e1b */ 7983 L_27018DF8: 7984 ecx = MEM32(esi + 0x8); /* 0x27018DF8: mov ecx, dword ptr [esi + 8] */ 7985 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x27018DFB: cmp ecx, dword ptr [edi + 8] */ 7986 _flag_a = (uint32_t)(ecx); _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_NE(_flag_a, _flag_b)) goto L_27018E05; /* 0x27018DFE: jne 0x27018e05 */ 7990 L_27018E00: 7991 edx = MEM32(esi + 0x4); /* 0x27018E00: mov edx, dword ptr [esi + 4] */ 7992 goto L_27018E19; /* 0x27018E03: jmp 0x27018e19 */ 7993 L_27018E05: 7994 ecx = MEM32(eax); /* 0x27018E05: mov ecx, dword ptr [eax] */ 7995 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x27018E07: cmp byte ptr [ecx + 0x11], 0 */ 7996 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 7997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7998 _flag_k = FK_NARROW(FK_CMP, 24); 7999 edx = eax; /* 0x27018E0B: mov edx, eax */ 8000 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E19; /* 0x27018E0D: jne 0x27018e19 */ 8001 L_27018E0F: 8002 edx = ecx; /* 0x27018E0F: mov edx, ecx */ 8003 ecx = MEM32(edx); /* 0x27018E11: mov ecx, dword ptr [edx] */ 8004 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x27018E13: cmp byte ptr [ecx + 0x11], 0 */ 8005 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 8006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8007 _flag_k = FK_NARROW(FK_CMP, 24); 8008 RECOMP_BACKEDGE(); 8009 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E0F; /* 0x27018E17: je 0x27018e0f */ 8010 L_27018E19: 8011 MEM32(ebx) = edx; /* 0x27018E19: mov dword ptr [ebx], edx */ 8012 L_27018E1B: 8013 ebx = MEM32(edi + 0x4); /* 0x27018E1B: mov ebx, dword ptr [edi + 4] */ 8014 /* cmp MEM32(ebx + 0x8), esi */ /* 0x27018E1E: cmp dword ptr [ebx + 8], esi */ 8015 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 8016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8017 _flag_k = FK_CMP; 8018 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E48; /* 0x27018E21: jne 0x27018e48 */ 8019 L_27018E23: 8020 ecx = MEM32(esi); /* 0x27018E23: mov ecx, dword ptr [esi] */ 8021 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x27018E25: cmp ecx, dword ptr [edi + 8] */ 8022 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8024 _flag_k = FK_CMP; 8025 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E2F; /* 0x27018E28: jne 0x27018e2f */ 8026 L_27018E2A: 8027 edx = MEM32(esi + 0x4); /* 0x27018E2A: mov edx, dword ptr [esi + 4] */ 8028 goto L_27018E45; /* 0x27018E2D: jmp 0x27018e45 */ 8029 L_27018E2F: 8030 ecx = MEM32(eax + 0x8); /* 0x27018E2F: mov ecx, dword ptr [eax + 8] */ 8031 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x27018E32: cmp byte ptr [ecx + 0x11], 0 */ 8032 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 8033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8034 _flag_k = FK_NARROW(FK_CMP, 24); 8035 edx = eax; /* 0x27018E36: mov edx, eax */ 8036 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E45; /* 0x27018E38: jne 0x27018e45 */ 8037 L_27018E3A: 8038 edx = ecx; /* 0x27018E3A: mov edx, ecx */ 8039 ecx = MEM32(edx + 0x8); /* 0x27018E3C: mov ecx, dword ptr [edx + 8] */ 8040 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x27018E3F: cmp byte ptr [ecx + 0x11], 0 */ 8041 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 8042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8043 _flag_k = FK_NARROW(FK_CMP, 24); 8044 RECOMP_BACKEDGE(); 8045 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E3A; /* 0x27018E43: je 0x27018e3a */ 8046 L_27018E45: 8047 MEM32(ebx + 0x8) = edx; /* 0x27018E45: mov dword ptr [ebx + 8], edx */ 8048 L_27018E48: 8049 ecx = MEM32(ebp + (-0x4)); /* 0x27018E48: mov ecx, dword ptr [ebp - 4] */ 8050 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E4B: mov dl, byte ptr [ecx + 0x10] */ 8051 SET_LO8(ebx, 1); /* 0x27018E4E: mov bl, 1 */ 8052 /* cmp LO8(edx), LO8(ebx) */ /* 0x27018E50: cmp dl, bl */ 8053 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8055 _flag_k = FK_NARROW(FK_CMP, 24); 8056 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B5; /* 0x27018E52: jne 0x270190b5 */ 8057 L_27018E58: 8058 edx = MEM32(edi + 0x4); /* 0x27018E58: mov edx, dword ptr [edi + 4] */ 8059 /* cmp eax, MEM32(edx + 0x4) */ /* 0x27018E5B: cmp eax, dword ptr [edx + 4] */ 8060 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8062 _flag_k = FK_CMP; 8063 if (CMP_EQ(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E5E: je 0x270190b2 */ 8064 L_27018E64: 8065 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x27018E64: cmp byte ptr [eax + 0x10], bl */ 8066 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8068 _flag_k = FK_NARROW(FK_CMP, 24); 8069 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E67: jne 0x270190b2 */ 8070 L_27018E6D: 8071 edx = MEM32(eax + 0x4); /* 0x27018E6D: mov edx, dword ptr [eax + 4] */ 8072 ecx = MEM32(edx); /* 0x27018E70: mov ecx, dword ptr [edx] */ 8073 /* cmp eax, ecx */ /* 0x27018E72: cmp eax, ecx */ 8074 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8076 _flag_k = FK_CMP; 8077 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EE4; /* 0x27018E74: jne 0x27018ee4 */ 8078 L_27018E76: 8079 ecx = MEM32(edx + 0x8); /* 0x27018E76: mov ecx, dword ptr [edx + 8] */ 8080 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E79: mov dl, byte ptr [ecx + 0x10] */ 8081 /* test LO8(edx), LO8(edx) */ /* 0x27018E7C: test dl, dl */ 8082 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8083 _cf = 0; 8084 _flag_k = FK_NARROW(FK_TEST, 24); 8085 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018ECB; /* 0x27018E7E: jne 0x27018ecb */ 8086 L_27018E80: 8087 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018E80: mov byte ptr [ecx + 0x10], bl */ 8088 ecx = MEM32(eax + 0x4); /* 0x27018E83: mov ecx, dword ptr [eax + 4] */ 8089 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018E86: mov byte ptr [ecx + 0x10], 0 */ 8090 ecx = MEM32(eax + 0x4); /* 0x27018E8A: mov ecx, dword ptr [eax + 4] */ 8091 edx = MEM32(ecx + 0x8); /* 0x27018E8D: mov edx, dword ptr [ecx + 8] */ 8092 esi = MEM32(edx); /* 0x27018E90: mov esi, dword ptr [edx] */ 8093 MEM32(ecx + 0x8) = esi; /* 0x27018E92: mov dword ptr [ecx + 8], esi */ 8094 esi = MEM32(edx); /* 0x27018E95: mov esi, dword ptr [edx] */ 8095 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018E97: cmp esi, dword ptr [edi + 8] */ 8096 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8097 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8098 _flag_k = FK_CMP; 8099 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E9F; /* 0x27018E9A: je 0x27018e9f */ 8100 L_27018E9C: 8101 MEM32(esi + 0x4) = ecx; /* 0x27018E9C: mov dword ptr [esi + 4], ecx */ 8102 L_27018E9F: 8103 esi = MEM32(ecx + 0x4); /* 0x27018E9F: mov esi, dword ptr [ecx + 4] */ 8104 MEM32(edx + 0x4) = esi; /* 0x27018EA2: mov dword ptr [edx + 4], esi */ 8105 esi = MEM32(edi + 0x4); /* 0x27018EA5: mov esi, dword ptr [edi + 4] */ 8106 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018EA8: cmp ecx, dword ptr [esi + 4] */ 8107 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8109 _flag_k = FK_CMP; 8110 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EB2; /* 0x27018EAB: jne 0x27018eb2 */ 8111 L_27018EAD: 8112 MEM32(esi + 0x4) = edx; /* 0x27018EAD: mov dword ptr [esi + 4], edx */ 8113 goto L_27018EC0; /* 0x27018EB0: jmp 0x27018ec0 */ 8114 L_27018EB2: 8115 esi = MEM32(ecx + 0x4); /* 0x27018EB2: mov esi, dword ptr [ecx + 4] */ 8116 /* cmp ecx, MEM32(esi) */ /* 0x27018EB5: cmp ecx, dword ptr [esi] */ 8117 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8119 _flag_k = FK_CMP; 8120 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EBD; /* 0x27018EB7: jne 0x27018ebd */ 8121 L_27018EB9: 8122 MEM32(esi) = edx; /* 0x27018EB9: mov dword ptr [esi], edx */ 8123 goto L_27018EC0; /* 0x27018EBB: jmp 0x27018ec0 */ 8124 L_27018EBD: 8125 MEM32(esi + 0x8) = edx; /* 0x27018EBD: mov dword ptr [esi + 8], edx */ 8126 L_27018EC0: 8127 MEM32(edx) = ecx; /* 0x27018EC0: mov dword ptr [edx], ecx */ 8128 MEM32(ecx + 0x4) = edx; /* 0x27018EC2: mov dword ptr [ecx + 4], edx */ 8129 edx = MEM32(eax + 0x4); /* 0x27018EC5: mov edx, dword ptr [eax + 4] */ 8130 ecx = MEM32(edx + 0x8); /* 0x27018EC8: mov ecx, dword ptr [edx + 8] */ 8131 L_27018ECB: 8132 edx = MEM32(ecx); /* 0x27018ECB: mov edx, dword ptr [ecx] */ 8133 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ECD: cmp byte ptr [edx + 0x10], bl */ 8134 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8136 _flag_k = FK_NARROW(FK_CMP, 24); 8137 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018ED0: jne 0x27018f66 */ 8138 L_27018ED6: 8139 edx = MEM32(ecx + 0x8); /* 0x27018ED6: mov edx, dword ptr [ecx + 8] */ 8140 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ED9: cmp byte ptr [edx + 0x10], bl */ 8141 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8143 _flag_k = FK_NARROW(FK_CMP, 24); 8144 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018EDC: jne 0x27018f66 */ 8145 L_27018EE2: 8146 goto L_27018F4E; /* 0x27018EE2: jmp 0x27018f4e */ 8147 L_27018EE4: 8148 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018EE4: mov dl, byte ptr [ecx + 0x10] */ 8149 /* test LO8(edx), LO8(edx) */ /* 0x27018EE7: test dl, dl */ 8150 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8151 _cf = 0; 8152 _flag_k = FK_NARROW(FK_TEST, 24); 8153 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018F37; /* 0x27018EE9: jne 0x27018f37 */ 8154 L_27018EEB: 8155 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018EEB: mov byte ptr [ecx + 0x10], bl */ 8156 ecx = MEM32(eax + 0x4); /* 0x27018EEE: mov ecx, dword ptr [eax + 4] */ 8157 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018EF1: mov byte ptr [ecx + 0x10], 0 */ 8158 ecx = MEM32(eax + 0x4); /* 0x27018EF5: mov ecx, dword ptr [eax + 4] */ 8159 edx = MEM32(ecx); /* 0x27018EF8: mov edx, dword ptr [ecx] */ 8160 esi = MEM32(edx + 0x8); /* 0x27018EFA: mov esi, dword ptr [edx + 8] */ 8161 MEM32(ecx) = esi; /* 0x27018EFD: mov dword ptr [ecx], esi */ 8162 esi = MEM32(edx + 0x8); /* 0x27018EFF: mov esi, dword ptr [edx + 8] */ 8163 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F02: cmp esi, dword ptr [edi + 8] */ 8164 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8166 _flag_k = FK_CMP; 8167 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F0A; /* 0x27018F05: je 0x27018f0a */ 8168 L_27018F07: 8169 MEM32(esi + 0x4) = ecx; /* 0x27018F07: mov dword ptr [esi + 4], ecx */ 8170 L_27018F0A: 8171 esi = MEM32(ecx + 0x4); /* 0x27018F0A: mov esi, dword ptr [ecx + 4] */ 8172 MEM32(edx + 0x4) = esi; /* 0x27018F0D: mov dword ptr [edx + 4], esi */ 8173 esi = MEM32(edi + 0x4); /* 0x27018F10: mov esi, dword ptr [edi + 4] */ 8174 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F13: cmp ecx, dword ptr [esi + 4] */ 8175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8177 _flag_k = FK_CMP; 8178 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F1D; /* 0x27018F16: jne 0x27018f1d */ 8179 L_27018F18: 8180 MEM32(esi + 0x4) = edx; /* 0x27018F18: mov dword ptr [esi + 4], edx */ 8181 goto L_27018F2C; /* 0x27018F1B: jmp 0x27018f2c */ 8182 L_27018F1D: 8183 esi = MEM32(ecx + 0x4); /* 0x27018F1D: mov esi, dword ptr [ecx + 4] */ 8184 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F20: cmp ecx, dword ptr [esi + 8] */ 8185 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8187 _flag_k = FK_CMP; 8188 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F2A; /* 0x27018F23: jne 0x27018f2a */ 8189 L_27018F25: 8190 MEM32(esi + 0x8) = edx; /* 0x27018F25: mov dword ptr [esi + 8], edx */ 8191 goto L_27018F2C; /* 0x27018F28: jmp 0x27018f2c */ 8192 L_27018F2A: 8193 MEM32(esi) = edx; /* 0x27018F2A: mov dword ptr [esi], edx */ 8194 L_27018F2C: 8195 MEM32(edx + 0x8) = ecx; /* 0x27018F2C: mov dword ptr [edx + 8], ecx */ 8196 MEM32(ecx + 0x4) = edx; /* 0x27018F2F: mov dword ptr [ecx + 4], edx */ 8197 edx = MEM32(eax + 0x4); /* 0x27018F32: mov edx, dword ptr [eax + 4] */ 8198 ecx = MEM32(edx); /* 0x27018F35: mov ecx, dword ptr [edx] */ 8199 L_27018F37: 8200 edx = MEM32(ecx + 0x8); /* 0x27018F37: mov edx, dword ptr [ecx + 8] */ 8201 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F3A: cmp byte ptr [edx + 0x10], bl */ 8202 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8204 _flag_k = FK_NARROW(FK_CMP, 24); 8205 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F3D: jne 0x27019013 */ 8206 L_27018F43: 8207 edx = MEM32(ecx); /* 0x27018F43: mov edx, dword ptr [ecx] */ 8208 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F45: cmp byte ptr [edx + 0x10], bl */ 8209 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8211 _flag_k = FK_NARROW(FK_CMP, 24); 8212 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F48: jne 0x27019013 */ 8213 L_27018F4E: 8214 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F4E: mov byte ptr [ecx + 0x10], 0 */ 8215 ecx = MEM32(edi + 0x4); /* 0x27018F52: mov ecx, dword ptr [edi + 4] */ 8216 eax = MEM32(eax + 0x4); /* 0x27018F55: mov eax, dword ptr [eax + 4] */ 8217 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27018F58: cmp eax, dword ptr [ecx + 4] */ 8218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8220 _flag_k = FK_CMP; 8221 RECOMP_BACKEDGE(); 8222 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E64; /* 0x27018F5B: jne 0x27018e64 */ 8223 L_27018F61: 8224 goto L_270190B2; /* 0x27018F61: jmp 0x270190b2 */ 8225 L_27018F66: 8226 edx = MEM32(ecx + 0x8); /* 0x27018F66: mov edx, dword ptr [ecx + 8] */ 8227 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F69: cmp byte ptr [edx + 0x10], bl */ 8228 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8230 _flag_k = FK_NARROW(FK_CMP, 24); 8231 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FB7; /* 0x27018F6C: jne 0x27018fb7 */ 8232 L_27018F6E: 8233 edx = MEM32(ecx); /* 0x27018F6E: mov edx, dword ptr [ecx] */ 8234 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018F70: mov byte ptr [edx + 0x10], bl */ 8235 edx = MEM32(ecx); /* 0x27018F73: mov edx, dword ptr [ecx] */ 8236 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F75: mov byte ptr [ecx + 0x10], 0 */ 8237 esi = MEM32(edx + 0x8); /* 0x27018F79: mov esi, dword ptr [edx + 8] */ 8238 MEM32(ecx) = esi; /* 0x27018F7C: mov dword ptr [ecx], esi */ 8239 esi = MEM32(edx + 0x8); /* 0x27018F7E: mov esi, dword ptr [edx + 8] */ 8240 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F81: cmp esi, dword ptr [edi + 8] */ 8241 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8243 _flag_k = FK_CMP; 8244 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F89; /* 0x27018F84: je 0x27018f89 */ 8245 L_27018F86: 8246 MEM32(esi + 0x4) = ecx; /* 0x27018F86: mov dword ptr [esi + 4], ecx */ 8247 L_27018F89: 8248 esi = MEM32(ecx + 0x4); /* 0x27018F89: mov esi, dword ptr [ecx + 4] */ 8249 MEM32(edx + 0x4) = esi; /* 0x27018F8C: mov dword ptr [edx + 4], esi */ 8250 esi = MEM32(edi + 0x4); /* 0x27018F8F: mov esi, dword ptr [edi + 4] */ 8251 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F92: cmp ecx, dword ptr [esi + 4] */ 8252 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8254 _flag_k = FK_CMP; 8255 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F9C; /* 0x27018F95: jne 0x27018f9c */ 8256 L_27018F97: 8257 MEM32(esi + 0x4) = edx; /* 0x27018F97: mov dword ptr [esi + 4], edx */ 8258 goto L_27018FAB; /* 0x27018F9A: jmp 0x27018fab */ 8259 L_27018F9C: 8260 esi = MEM32(ecx + 0x4); /* 0x27018F9C: mov esi, dword ptr [ecx + 4] */ 8261 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F9F: cmp ecx, dword ptr [esi + 8] */ 8262 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8264 _flag_k = FK_CMP; 8265 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FA9; /* 0x27018FA2: jne 0x27018fa9 */ 8266 L_27018FA4: 8267 MEM32(esi + 0x8) = edx; /* 0x27018FA4: mov dword ptr [esi + 8], edx */ 8268 goto L_27018FAB; /* 0x27018FA7: jmp 0x27018fab */ 8269 L_27018FA9: 8270 MEM32(esi) = edx; /* 0x27018FA9: mov dword ptr [esi], edx */ 8271 L_27018FAB: 8272 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 8273 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 8274 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 8275 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 8276 L_27018FB7: 8277 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 8278 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 8279 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 8280 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 8281 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 8282 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 8283 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 8284 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 8285 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 8286 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 8287 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 8288 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 8289 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: cmp esi, dword ptr [edi + 8] */ 8290 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8292 _flag_k = FK_CMP; 8293 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 8294 L_27018FDE: 8295 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 8296 L_27018FE1: 8297 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 8298 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 8299 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 8300 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: cmp ecx, dword ptr [esi + 4] */ 8301 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8303 _flag_k = FK_CMP; 8304 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 8305 L_27018FEF: 8306 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 8307 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 8308 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 8309 L_27018FF9: 8310 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 8311 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: cmp ecx, dword ptr [esi] */ 8312 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8314 _flag_k = FK_CMP; 8315 if (CMP_NE(_flag_a, _flag_b)) goto L_27019009; /* 0x27018FFE: jne 0x27019009 */ 8316 L_27019000: 8317 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 8318 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 8319 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 8320 L_27019009: 8321 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 8322 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 8323 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 8324 L_27019013: 8325 edx = MEM32(ecx); /* 0x27019013: mov edx, dword ptr [ecx] */ 8326 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27019015: cmp byte ptr [edx + 0x10], bl */ 8327 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8329 _flag_k = FK_NARROW(FK_CMP, 24); 8330 if (CMP_NE(_flag_a, _flag_b)) goto L_27019061; /* 0x27019018: jne 0x27019061 */ 8331 L_2701901A: 8332 edx = MEM32(ecx + 0x8); /* 0x2701901A: mov edx, dword ptr [ecx + 8] */ 8333 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701901D: mov byte ptr [edx + 0x10], bl */ 8334 edx = MEM32(ecx + 0x8); /* 0x27019020: mov edx, dword ptr [ecx + 8] */ 8335 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019023: mov byte ptr [ecx + 0x10], 0 */ 8336 esi = MEM32(edx); /* 0x27019027: mov esi, dword ptr [edx] */ 8337 MEM32(ecx + 0x8) = esi; /* 0x27019029: mov dword ptr [ecx + 8], esi */ 8338 esi = MEM32(edx); /* 0x2701902C: mov esi, dword ptr [edx] */ 8339 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701902E: cmp esi, dword ptr [edi + 8] */ 8340 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8342 _flag_k = FK_CMP; 8343 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019036; /* 0x27019031: je 0x27019036 */ 8344 L_27019033: 8345 MEM32(esi + 0x4) = ecx; /* 0x27019033: mov dword ptr [esi + 4], ecx */ 8346 L_27019036: 8347 esi = MEM32(ecx + 0x4); /* 0x27019036: mov esi, dword ptr [ecx + 4] */ 8348 MEM32(edx + 0x4) = esi; /* 0x27019039: mov dword ptr [edx + 4], esi */ 8349 esi = MEM32(edi + 0x4); /* 0x2701903C: mov esi, dword ptr [edi + 4] */ 8350 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701903F: cmp ecx, dword ptr [esi + 4] */ 8351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8353 _flag_k = FK_CMP; 8354 if (CMP_NE(_flag_a, _flag_b)) goto L_27019049; /* 0x27019042: jne 0x27019049 */ 8355 L_27019044: 8356 MEM32(esi + 0x4) = edx; /* 0x27019044: mov dword ptr [esi + 4], edx */ 8357 goto L_27019057; /* 0x27019047: jmp 0x27019057 */ 8358 L_27019049: 8359 esi = MEM32(ecx + 0x4); /* 0x27019049: mov esi, dword ptr [ecx + 4] */ 8360 /* cmp ecx, MEM32(esi) */ /* 0x2701904C: cmp ecx, dword ptr [esi] */ 8361 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8363 _flag_k = FK_CMP; 8364 if (CMP_NE(_flag_a, _flag_b)) goto L_27019054; /* 0x2701904E: jne 0x27019054 */ 8365 L_27019050: 8366 MEM32(esi) = edx; /* 0x27019050: mov dword ptr [esi], edx */ 8367 goto L_27019057; /* 0x27019052: jmp 0x27019057 */ 8368 L_27019054: 8369 MEM32(esi + 0x8) = edx; /* 0x27019054: mov dword ptr [esi + 8], edx */ 8370 L_27019057: 8371 MEM32(edx) = ecx; /* 0x27019057: mov dword ptr [edx], ecx */ 8372 MEM32(ecx + 0x4) = edx; /* 0x27019059: mov dword ptr [ecx + 4], edx */ 8373 ecx = MEM32(eax + 0x4); /* 0x2701905C: mov ecx, dword ptr [eax + 4] */ 8374 ecx = MEM32(ecx); /* 0x2701905F: mov ecx, dword ptr [ecx] */ 8375 L_27019061: 8376 edx = MEM32(eax + 0x4); /* 0x27019061: mov edx, dword ptr [eax + 4] */ 8377 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27019064: mov dl, byte ptr [edx + 0x10] */ 8378 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27019067: mov byte ptr [ecx + 0x10], dl */ 8379 edx = MEM32(eax + 0x4); /* 0x2701906A: mov edx, dword ptr [eax + 4] */ 8380 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701906D: mov byte ptr [edx + 0x10], bl */ 8381 ecx = MEM32(ecx); /* 0x27019070: mov ecx, dword ptr [ecx] */ 8382 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019072: mov byte ptr [ecx + 0x10], bl */ 8383 ecx = MEM32(eax + 0x4); /* 0x27019075: mov ecx, dword ptr [eax + 4] */ 8384 edx = MEM32(ecx); /* 0x27019078: mov edx, dword ptr [ecx] */ 8385 esi = MEM32(edx + 0x8); /* 0x2701907A: mov esi, dword ptr [edx + 8] */ 8386 MEM32(ecx) = esi; /* 0x2701907D: mov dword ptr [ecx], esi */ 8387 esi = MEM32(edx + 0x8); /* 0x2701907F: mov esi, dword ptr [edx + 8] */ 8388 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27019082: cmp esi, dword ptr [edi + 8] */ 8389 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8391 _flag_k = FK_CMP; 8392 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701908A; /* 0x27019085: je 0x2701908a */ 8393 L_27019087: 8394 MEM32(esi + 0x4) = ecx; /* 0x27019087: mov dword ptr [esi + 4], ecx */ 8395 L_2701908A: 8396 esi = MEM32(ecx + 0x4); /* 0x2701908A: mov esi, dword ptr [ecx + 4] */ 8397 MEM32(edx + 0x4) = esi; /* 0x2701908D: mov dword ptr [edx + 4], esi */ 8398 esi = MEM32(edi + 0x4); /* 0x27019090: mov esi, dword ptr [edi + 4] */ 8399 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27019093: cmp ecx, dword ptr [esi + 4] */ 8400 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8402 _flag_k = FK_CMP; 8403 if (CMP_NE(_flag_a, _flag_b)) goto L_2701909D; /* 0x27019096: jne 0x2701909d */ 8404 L_27019098: 8405 MEM32(esi + 0x4) = edx; /* 0x27019098: mov dword ptr [esi + 4], edx */ 8406 goto L_270190AC; /* 0x2701909B: jmp 0x270190ac */ 8407 L_2701909D: 8408 esi = MEM32(ecx + 0x4); /* 0x2701909D: mov esi, dword ptr [ecx + 4] */ 8409 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x270190A0: cmp ecx, dword ptr [esi + 8] */ 8410 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8412 _flag_k = FK_CMP; 8413 if (CMP_NE(_flag_a, _flag_b)) goto L_270190AA; /* 0x270190A3: jne 0x270190aa */ 8414 L_270190A5: 8415 MEM32(esi + 0x8) = edx; /* 0x270190A5: mov dword ptr [esi + 8], edx */ 8416 goto L_270190AC; /* 0x270190A8: jmp 0x270190ac */ 8417 L_270190AA: 8418 MEM32(esi) = edx; /* 0x270190AA: mov dword ptr [esi], edx */ 8419 L_270190AC: 8420 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 8421 L_270190AF: 8422 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 8423 L_270190B2: 8424 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 8425 L_270190B5: 8426 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 8427 PUSH32(esp, edx); /* 0x270190B8: push edx */ 8428 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 8429 RECOMP_FLAGS_IN(); 8430 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 8431 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 8432 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8433 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8434 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 8435 _flag_k = FK_ADD; 8436 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8437 eax = eax - 1; /* 0x270190C7: dec eax */ 8438 _flag_k = FK_DEC; 8439 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 8440 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 8441 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 8442 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 8443 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 8444 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 8445 esp = ebp; /* 0x270190D3: mov esp, ebp */ 8446 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 8447 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 8448 RECOMP_REGS_OUT(); 8449 } 8450 8451 void sub_27018E19(void) { 8452 int _fpu_cmp = 0; 8453 uint32_t _cf = 0; 8454 int _df = 1; 8455 uint32_t _flag_k = FK_NONE; 8456 uint32_t _flag_a = 0, _flag_b = 0; 8457 uint32_t _itail_tgt = 0; 8458 RECOMP_REGS_LOCALS 8459 RECOMP_ENTER(0x27018E19u); 8460 8461 L_27018E19: 8462 MEM32(ebx) = edx; /* 0x27018E19: mov dword ptr [ebx], edx */ 8463 ebx = MEM32(edi + 0x4); /* 0x27018E1B: mov ebx, dword ptr [edi + 4] */ 8464 /* cmp MEM32(ebx + 0x8), esi */ /* 0x27018E1E: cmp dword ptr [ebx + 8], esi */ 8465 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 8466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8467 _flag_k = FK_CMP; 8468 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E48; /* 0x27018E21: jne 0x27018e48 */ 8469 L_27018E23: 8470 ecx = MEM32(esi); /* 0x27018E23: mov ecx, dword ptr [esi] */ 8471 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x27018E25: cmp ecx, dword ptr [edi + 8] */ 8472 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8474 _flag_k = FK_CMP; 8475 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E2F; /* 0x27018E28: jne 0x27018e2f */ 8476 L_27018E2A: 8477 edx = MEM32(esi + 0x4); /* 0x27018E2A: mov edx, dword ptr [esi + 4] */ 8478 goto L_27018E45; /* 0x27018E2D: jmp 0x27018e45 */ 8479 L_27018E2F: 8480 ecx = MEM32(eax + 0x8); /* 0x27018E2F: mov ecx, dword ptr [eax + 8] */ 8481 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x27018E32: cmp byte ptr [ecx + 0x11], 0 */ 8482 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 8483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8484 _flag_k = FK_NARROW(FK_CMP, 24); 8485 edx = eax; /* 0x27018E36: mov edx, eax */ 8486 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E45; /* 0x27018E38: jne 0x27018e45 */ 8487 L_27018E3A: 8488 edx = ecx; /* 0x27018E3A: mov edx, ecx */ 8489 ecx = MEM32(edx + 0x8); /* 0x27018E3C: mov ecx, dword ptr [edx + 8] */ 8490 /* cmp MEM8(ecx + 0x11), 0 */ /* 0x27018E3F: cmp byte ptr [ecx + 0x11], 0 */ 8491 _flag_a = (uint32_t)(MEM8(ecx + 0x11)) << 24; _flag_b = (uint32_t)(0) << 24; 8492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8493 _flag_k = FK_NARROW(FK_CMP, 24); 8494 RECOMP_BACKEDGE(); 8495 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E3A; /* 0x27018E43: je 0x27018e3a */ 8496 L_27018E45: 8497 MEM32(ebx + 0x8) = edx; /* 0x27018E45: mov dword ptr [ebx + 8], edx */ 8498 L_27018E48: 8499 ecx = MEM32(ebp + (-0x4)); /* 0x27018E48: mov ecx, dword ptr [ebp - 4] */ 8500 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E4B: mov dl, byte ptr [ecx + 0x10] */ 8501 SET_LO8(ebx, 1); /* 0x27018E4E: mov bl, 1 */ 8502 /* cmp LO8(edx), LO8(ebx) */ /* 0x27018E50: cmp dl, bl */ 8503 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8505 _flag_k = FK_NARROW(FK_CMP, 24); 8506 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B5; /* 0x27018E52: jne 0x270190b5 */ 8507 L_27018E58: 8508 edx = MEM32(edi + 0x4); /* 0x27018E58: mov edx, dword ptr [edi + 4] */ 8509 /* cmp eax, MEM32(edx + 0x4) */ /* 0x27018E5B: cmp eax, dword ptr [edx + 4] */ 8510 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8512 _flag_k = FK_CMP; 8513 if (CMP_EQ(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E5E: je 0x270190b2 */ 8514 L_27018E64: 8515 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x27018E64: cmp byte ptr [eax + 0x10], bl */ 8516 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8518 _flag_k = FK_NARROW(FK_CMP, 24); 8519 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E67: jne 0x270190b2 */ 8520 L_27018E6D: 8521 edx = MEM32(eax + 0x4); /* 0x27018E6D: mov edx, dword ptr [eax + 4] */ 8522 ecx = MEM32(edx); /* 0x27018E70: mov ecx, dword ptr [edx] */ 8523 /* cmp eax, ecx */ /* 0x27018E72: cmp eax, ecx */ 8524 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8526 _flag_k = FK_CMP; 8527 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EE4; /* 0x27018E74: jne 0x27018ee4 */ 8528 L_27018E76: 8529 ecx = MEM32(edx + 0x8); /* 0x27018E76: mov ecx, dword ptr [edx + 8] */ 8530 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E79: mov dl, byte ptr [ecx + 0x10] */ 8531 /* test LO8(edx), LO8(edx) */ /* 0x27018E7C: test dl, dl */ 8532 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8533 _cf = 0; 8534 _flag_k = FK_NARROW(FK_TEST, 24); 8535 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018ECB; /* 0x27018E7E: jne 0x27018ecb */ 8536 L_27018E80: 8537 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018E80: mov byte ptr [ecx + 0x10], bl */ 8538 ecx = MEM32(eax + 0x4); /* 0x27018E83: mov ecx, dword ptr [eax + 4] */ 8539 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018E86: mov byte ptr [ecx + 0x10], 0 */ 8540 ecx = MEM32(eax + 0x4); /* 0x27018E8A: mov ecx, dword ptr [eax + 4] */ 8541 edx = MEM32(ecx + 0x8); /* 0x27018E8D: mov edx, dword ptr [ecx + 8] */ 8542 esi = MEM32(edx); /* 0x27018E90: mov esi, dword ptr [edx] */ 8543 MEM32(ecx + 0x8) = esi; /* 0x27018E92: mov dword ptr [ecx + 8], esi */ 8544 esi = MEM32(edx); /* 0x27018E95: mov esi, dword ptr [edx] */ 8545 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018E97: cmp esi, dword ptr [edi + 8] */ 8546 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8548 _flag_k = FK_CMP; 8549 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E9F; /* 0x27018E9A: je 0x27018e9f */ 8550 L_27018E9C: 8551 MEM32(esi + 0x4) = ecx; /* 0x27018E9C: mov dword ptr [esi + 4], ecx */ 8552 L_27018E9F: 8553 esi = MEM32(ecx + 0x4); /* 0x27018E9F: mov esi, dword ptr [ecx + 4] */ 8554 MEM32(edx + 0x4) = esi; /* 0x27018EA2: mov dword ptr [edx + 4], esi */ 8555 esi = MEM32(edi + 0x4); /* 0x27018EA5: mov esi, dword ptr [edi + 4] */ 8556 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018EA8: cmp ecx, dword ptr [esi + 4] */ 8557 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8559 _flag_k = FK_CMP; 8560 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EB2; /* 0x27018EAB: jne 0x27018eb2 */ 8561 L_27018EAD: 8562 MEM32(esi + 0x4) = edx; /* 0x27018EAD: mov dword ptr [esi + 4], edx */ 8563 goto L_27018EC0; /* 0x27018EB0: jmp 0x27018ec0 */ 8564 L_27018EB2: 8565 esi = MEM32(ecx + 0x4); /* 0x27018EB2: mov esi, dword ptr [ecx + 4] */ 8566 /* cmp ecx, MEM32(esi) */ /* 0x27018EB5: cmp ecx, dword ptr [esi] */ 8567 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8569 _flag_k = FK_CMP; 8570 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EBD; /* 0x27018EB7: jne 0x27018ebd */ 8571 L_27018EB9: 8572 MEM32(esi) = edx; /* 0x27018EB9: mov dword ptr [esi], edx */ 8573 goto L_27018EC0; /* 0x27018EBB: jmp 0x27018ec0 */ 8574 L_27018EBD: 8575 MEM32(esi + 0x8) = edx; /* 0x27018EBD: mov dword ptr [esi + 8], edx */ 8576 L_27018EC0: 8577 MEM32(edx) = ecx; /* 0x27018EC0: mov dword ptr [edx], ecx */ 8578 MEM32(ecx + 0x4) = edx; /* 0x27018EC2: mov dword ptr [ecx + 4], edx */ 8579 edx = MEM32(eax + 0x4); /* 0x27018EC5: mov edx, dword ptr [eax + 4] */ 8580 ecx = MEM32(edx + 0x8); /* 0x27018EC8: mov ecx, dword ptr [edx + 8] */ 8581 L_27018ECB: 8582 edx = MEM32(ecx); /* 0x27018ECB: mov edx, dword ptr [ecx] */ 8583 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ECD: cmp byte ptr [edx + 0x10], bl */ 8584 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8586 _flag_k = FK_NARROW(FK_CMP, 24); 8587 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018ED0: jne 0x27018f66 */ 8588 L_27018ED6: 8589 edx = MEM32(ecx + 0x8); /* 0x27018ED6: mov edx, dword ptr [ecx + 8] */ 8590 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ED9: cmp byte ptr [edx + 0x10], bl */ 8591 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8593 _flag_k = FK_NARROW(FK_CMP, 24); 8594 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018EDC: jne 0x27018f66 */ 8595 L_27018EE2: 8596 goto L_27018F4E; /* 0x27018EE2: jmp 0x27018f4e */ 8597 L_27018EE4: 8598 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018EE4: mov dl, byte ptr [ecx + 0x10] */ 8599 /* test LO8(edx), LO8(edx) */ /* 0x27018EE7: test dl, dl */ 8600 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8601 _cf = 0; 8602 _flag_k = FK_NARROW(FK_TEST, 24); 8603 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018F37; /* 0x27018EE9: jne 0x27018f37 */ 8604 L_27018EEB: 8605 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018EEB: mov byte ptr [ecx + 0x10], bl */ 8606 ecx = MEM32(eax + 0x4); /* 0x27018EEE: mov ecx, dword ptr [eax + 4] */ 8607 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018EF1: mov byte ptr [ecx + 0x10], 0 */ 8608 ecx = MEM32(eax + 0x4); /* 0x27018EF5: mov ecx, dword ptr [eax + 4] */ 8609 edx = MEM32(ecx); /* 0x27018EF8: mov edx, dword ptr [ecx] */ 8610 esi = MEM32(edx + 0x8); /* 0x27018EFA: mov esi, dword ptr [edx + 8] */ 8611 MEM32(ecx) = esi; /* 0x27018EFD: mov dword ptr [ecx], esi */ 8612 esi = MEM32(edx + 0x8); /* 0x27018EFF: mov esi, dword ptr [edx + 8] */ 8613 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F02: cmp esi, dword ptr [edi + 8] */ 8614 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8616 _flag_k = FK_CMP; 8617 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F0A; /* 0x27018F05: je 0x27018f0a */ 8618 L_27018F07: 8619 MEM32(esi + 0x4) = ecx; /* 0x27018F07: mov dword ptr [esi + 4], ecx */ 8620 L_27018F0A: 8621 esi = MEM32(ecx + 0x4); /* 0x27018F0A: mov esi, dword ptr [ecx + 4] */ 8622 MEM32(edx + 0x4) = esi; /* 0x27018F0D: mov dword ptr [edx + 4], esi */ 8623 esi = MEM32(edi + 0x4); /* 0x27018F10: mov esi, dword ptr [edi + 4] */ 8624 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F13: cmp ecx, dword ptr [esi + 4] */ 8625 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8627 _flag_k = FK_CMP; 8628 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F1D; /* 0x27018F16: jne 0x27018f1d */ 8629 L_27018F18: 8630 MEM32(esi + 0x4) = edx; /* 0x27018F18: mov dword ptr [esi + 4], edx */ 8631 goto L_27018F2C; /* 0x27018F1B: jmp 0x27018f2c */ 8632 L_27018F1D: 8633 esi = MEM32(ecx + 0x4); /* 0x27018F1D: mov esi, dword ptr [ecx + 4] */ 8634 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F20: cmp ecx, dword ptr [esi + 8] */ 8635 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8637 _flag_k = FK_CMP; 8638 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F2A; /* 0x27018F23: jne 0x27018f2a */ 8639 L_27018F25: 8640 MEM32(esi + 0x8) = edx; /* 0x27018F25: mov dword ptr [esi + 8], edx */ 8641 goto L_27018F2C; /* 0x27018F28: jmp 0x27018f2c */ 8642 L_27018F2A: 8643 MEM32(esi) = edx; /* 0x27018F2A: mov dword ptr [esi], edx */ 8644 L_27018F2C: 8645 MEM32(edx + 0x8) = ecx; /* 0x27018F2C: mov dword ptr [edx + 8], ecx */ 8646 MEM32(ecx + 0x4) = edx; /* 0x27018F2F: mov dword ptr [ecx + 4], edx */ 8647 edx = MEM32(eax + 0x4); /* 0x27018F32: mov edx, dword ptr [eax + 4] */ 8648 ecx = MEM32(edx); /* 0x27018F35: mov ecx, dword ptr [edx] */ 8649 L_27018F37: 8650 edx = MEM32(ecx + 0x8); /* 0x27018F37: mov edx, dword ptr [ecx + 8] */ 8651 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F3A: cmp byte ptr [edx + 0x10], bl */ 8652 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8654 _flag_k = FK_NARROW(FK_CMP, 24); 8655 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F3D: jne 0x27019013 */ 8656 L_27018F43: 8657 edx = MEM32(ecx); /* 0x27018F43: mov edx, dword ptr [ecx] */ 8658 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F45: cmp byte ptr [edx + 0x10], bl */ 8659 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8661 _flag_k = FK_NARROW(FK_CMP, 24); 8662 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F48: jne 0x27019013 */ 8663 L_27018F4E: 8664 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F4E: mov byte ptr [ecx + 0x10], 0 */ 8665 ecx = MEM32(edi + 0x4); /* 0x27018F52: mov ecx, dword ptr [edi + 4] */ 8666 eax = MEM32(eax + 0x4); /* 0x27018F55: mov eax, dword ptr [eax + 4] */ 8667 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27018F58: cmp eax, dword ptr [ecx + 4] */ 8668 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8670 _flag_k = FK_CMP; 8671 RECOMP_BACKEDGE(); 8672 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E64; /* 0x27018F5B: jne 0x27018e64 */ 8673 L_27018F61: 8674 goto L_270190B2; /* 0x27018F61: jmp 0x270190b2 */ 8675 L_27018F66: 8676 edx = MEM32(ecx + 0x8); /* 0x27018F66: mov edx, dword ptr [ecx + 8] */ 8677 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F69: cmp byte ptr [edx + 0x10], bl */ 8678 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8680 _flag_k = FK_NARROW(FK_CMP, 24); 8681 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FB7; /* 0x27018F6C: jne 0x27018fb7 */ 8682 L_27018F6E: 8683 edx = MEM32(ecx); /* 0x27018F6E: mov edx, dword ptr [ecx] */ 8684 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018F70: mov byte ptr [edx + 0x10], bl */ 8685 edx = MEM32(ecx); /* 0x27018F73: mov edx, dword ptr [ecx] */ 8686 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F75: mov byte ptr [ecx + 0x10], 0 */ 8687 esi = MEM32(edx + 0x8); /* 0x27018F79: mov esi, dword ptr [edx + 8] */ 8688 MEM32(ecx) = esi; /* 0x27018F7C: mov dword ptr [ecx], esi */ 8689 esi = MEM32(edx + 0x8); /* 0x27018F7E: mov esi, dword ptr [edx + 8] */ 8690 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F81: cmp esi, dword ptr [edi + 8] */ 8691 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8693 _flag_k = FK_CMP; 8694 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F89; /* 0x27018F84: je 0x27018f89 */ 8695 L_27018F86: 8696 MEM32(esi + 0x4) = ecx; /* 0x27018F86: mov dword ptr [esi + 4], ecx */ 8697 L_27018F89: 8698 esi = MEM32(ecx + 0x4); /* 0x27018F89: mov esi, dword ptr [ecx + 4] */ 8699 MEM32(edx + 0x4) = esi; /* 0x27018F8C: mov dword ptr [edx + 4], esi */ 8700 esi = MEM32(edi + 0x4); /* 0x27018F8F: mov esi, dword ptr [edi + 4] */ 8701 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F92: cmp ecx, dword ptr [esi + 4] */ 8702 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8704 _flag_k = FK_CMP; 8705 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F9C; /* 0x27018F95: jne 0x27018f9c */ 8706 L_27018F97: 8707 MEM32(esi + 0x4) = edx; /* 0x27018F97: mov dword ptr [esi + 4], edx */ 8708 goto L_27018FAB; /* 0x27018F9A: jmp 0x27018fab */ 8709 L_27018F9C: 8710 esi = MEM32(ecx + 0x4); /* 0x27018F9C: mov esi, dword ptr [ecx + 4] */ 8711 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F9F: cmp ecx, dword ptr [esi + 8] */ 8712 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8714 _flag_k = FK_CMP; 8715 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FA9; /* 0x27018FA2: jne 0x27018fa9 */ 8716 L_27018FA4: 8717 MEM32(esi + 0x8) = edx; /* 0x27018FA4: mov dword ptr [esi + 8], edx */ 8718 goto L_27018FAB; /* 0x27018FA7: jmp 0x27018fab */ 8719 L_27018FA9: 8720 MEM32(esi) = edx; /* 0x27018FA9: mov dword ptr [esi], edx */ 8721 L_27018FAB: 8722 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 8723 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 8724 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 8725 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 8726 L_27018FB7: 8727 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 8728 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 8729 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 8730 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 8731 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 8732 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 8733 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 8734 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 8735 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 8736 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 8737 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 8738 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 8739 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: cmp esi, dword ptr [edi + 8] */ 8740 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8742 _flag_k = FK_CMP; 8743 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 8744 L_27018FDE: 8745 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 8746 L_27018FE1: 8747 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 8748 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 8749 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 8750 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: cmp ecx, dword ptr [esi + 4] */ 8751 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8753 _flag_k = FK_CMP; 8754 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 8755 L_27018FEF: 8756 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 8757 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 8758 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 8759 L_27018FF9: 8760 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 8761 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: cmp ecx, dword ptr [esi] */ 8762 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8763 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8764 _flag_k = FK_CMP; 8765 if (CMP_NE(_flag_a, _flag_b)) goto L_27019009; /* 0x27018FFE: jne 0x27019009 */ 8766 L_27019000: 8767 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 8768 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 8769 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 8770 L_27019009: 8771 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 8772 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 8773 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 8774 L_27019013: 8775 edx = MEM32(ecx); /* 0x27019013: mov edx, dword ptr [ecx] */ 8776 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27019015: cmp byte ptr [edx + 0x10], bl */ 8777 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8779 _flag_k = FK_NARROW(FK_CMP, 24); 8780 if (CMP_NE(_flag_a, _flag_b)) goto L_27019061; /* 0x27019018: jne 0x27019061 */ 8781 L_2701901A: 8782 edx = MEM32(ecx + 0x8); /* 0x2701901A: mov edx, dword ptr [ecx + 8] */ 8783 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701901D: mov byte ptr [edx + 0x10], bl */ 8784 edx = MEM32(ecx + 0x8); /* 0x27019020: mov edx, dword ptr [ecx + 8] */ 8785 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019023: mov byte ptr [ecx + 0x10], 0 */ 8786 esi = MEM32(edx); /* 0x27019027: mov esi, dword ptr [edx] */ 8787 MEM32(ecx + 0x8) = esi; /* 0x27019029: mov dword ptr [ecx + 8], esi */ 8788 esi = MEM32(edx); /* 0x2701902C: mov esi, dword ptr [edx] */ 8789 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701902E: cmp esi, dword ptr [edi + 8] */ 8790 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8792 _flag_k = FK_CMP; 8793 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019036; /* 0x27019031: je 0x27019036 */ 8794 L_27019033: 8795 MEM32(esi + 0x4) = ecx; /* 0x27019033: mov dword ptr [esi + 4], ecx */ 8796 L_27019036: 8797 esi = MEM32(ecx + 0x4); /* 0x27019036: mov esi, dword ptr [ecx + 4] */ 8798 MEM32(edx + 0x4) = esi; /* 0x27019039: mov dword ptr [edx + 4], esi */ 8799 esi = MEM32(edi + 0x4); /* 0x2701903C: mov esi, dword ptr [edi + 4] */ 8800 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701903F: cmp ecx, dword ptr [esi + 4] */ 8801 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 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_27019049; /* 0x27019042: jne 0x27019049 */ 8805 L_27019044: 8806 MEM32(esi + 0x4) = edx; /* 0x27019044: mov dword ptr [esi + 4], edx */ 8807 goto L_27019057; /* 0x27019047: jmp 0x27019057 */ 8808 L_27019049: 8809 esi = MEM32(ecx + 0x4); /* 0x27019049: mov esi, dword ptr [ecx + 4] */ 8810 /* cmp ecx, MEM32(esi) */ /* 0x2701904C: cmp ecx, dword ptr [esi] */ 8811 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8813 _flag_k = FK_CMP; 8814 if (CMP_NE(_flag_a, _flag_b)) goto L_27019054; /* 0x2701904E: jne 0x27019054 */ 8815 L_27019050: 8816 MEM32(esi) = edx; /* 0x27019050: mov dword ptr [esi], edx */ 8817 goto L_27019057; /* 0x27019052: jmp 0x27019057 */ 8818 L_27019054: 8819 MEM32(esi + 0x8) = edx; /* 0x27019054: mov dword ptr [esi + 8], edx */ 8820 L_27019057: 8821 MEM32(edx) = ecx; /* 0x27019057: mov dword ptr [edx], ecx */ 8822 MEM32(ecx + 0x4) = edx; /* 0x27019059: mov dword ptr [ecx + 4], edx */ 8823 ecx = MEM32(eax + 0x4); /* 0x2701905C: mov ecx, dword ptr [eax + 4] */ 8824 ecx = MEM32(ecx); /* 0x2701905F: mov ecx, dword ptr [ecx] */ 8825 L_27019061: 8826 edx = MEM32(eax + 0x4); /* 0x27019061: mov edx, dword ptr [eax + 4] */ 8827 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27019064: mov dl, byte ptr [edx + 0x10] */ 8828 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27019067: mov byte ptr [ecx + 0x10], dl */ 8829 edx = MEM32(eax + 0x4); /* 0x2701906A: mov edx, dword ptr [eax + 4] */ 8830 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701906D: mov byte ptr [edx + 0x10], bl */ 8831 ecx = MEM32(ecx); /* 0x27019070: mov ecx, dword ptr [ecx] */ 8832 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019072: mov byte ptr [ecx + 0x10], bl */ 8833 ecx = MEM32(eax + 0x4); /* 0x27019075: mov ecx, dword ptr [eax + 4] */ 8834 edx = MEM32(ecx); /* 0x27019078: mov edx, dword ptr [ecx] */ 8835 esi = MEM32(edx + 0x8); /* 0x2701907A: mov esi, dword ptr [edx + 8] */ 8836 MEM32(ecx) = esi; /* 0x2701907D: mov dword ptr [ecx], esi */ 8837 esi = MEM32(edx + 0x8); /* 0x2701907F: mov esi, dword ptr [edx + 8] */ 8838 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27019082: cmp esi, dword ptr [edi + 8] */ 8839 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8841 _flag_k = FK_CMP; 8842 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701908A; /* 0x27019085: je 0x2701908a */ 8843 L_27019087: 8844 MEM32(esi + 0x4) = ecx; /* 0x27019087: mov dword ptr [esi + 4], ecx */ 8845 L_2701908A: 8846 esi = MEM32(ecx + 0x4); /* 0x2701908A: mov esi, dword ptr [ecx + 4] */ 8847 MEM32(edx + 0x4) = esi; /* 0x2701908D: mov dword ptr [edx + 4], esi */ 8848 esi = MEM32(edi + 0x4); /* 0x27019090: mov esi, dword ptr [edi + 4] */ 8849 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27019093: cmp ecx, dword ptr [esi + 4] */ 8850 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8852 _flag_k = FK_CMP; 8853 if (CMP_NE(_flag_a, _flag_b)) goto L_2701909D; /* 0x27019096: jne 0x2701909d */ 8854 L_27019098: 8855 MEM32(esi + 0x4) = edx; /* 0x27019098: mov dword ptr [esi + 4], edx */ 8856 goto L_270190AC; /* 0x2701909B: jmp 0x270190ac */ 8857 L_2701909D: 8858 esi = MEM32(ecx + 0x4); /* 0x2701909D: mov esi, dword ptr [ecx + 4] */ 8859 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x270190A0: cmp ecx, dword ptr [esi + 8] */ 8860 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8862 _flag_k = FK_CMP; 8863 if (CMP_NE(_flag_a, _flag_b)) goto L_270190AA; /* 0x270190A3: jne 0x270190aa */ 8864 L_270190A5: 8865 MEM32(esi + 0x8) = edx; /* 0x270190A5: mov dword ptr [esi + 8], edx */ 8866 goto L_270190AC; /* 0x270190A8: jmp 0x270190ac */ 8867 L_270190AA: 8868 MEM32(esi) = edx; /* 0x270190AA: mov dword ptr [esi], edx */ 8869 L_270190AC: 8870 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 8871 L_270190AF: 8872 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 8873 L_270190B2: 8874 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 8875 L_270190B5: 8876 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 8877 PUSH32(esp, edx); /* 0x270190B8: push edx */ 8878 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 8879 RECOMP_FLAGS_IN(); 8880 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 8881 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 8882 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8883 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8884 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 8885 _flag_k = FK_ADD; 8886 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8887 eax = eax - 1; /* 0x270190C7: dec eax */ 8888 _flag_k = FK_DEC; 8889 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 8890 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 8891 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 8892 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 8893 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 8894 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 8895 esp = ebp; /* 0x270190D3: mov esp, ebp */ 8896 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 8897 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 8898 RECOMP_REGS_OUT(); 8899 } 8900 8901 void sub_27018E45(void) { 8902 int _fpu_cmp = 0; 8903 uint32_t _cf = 0; 8904 int _df = 1; 8905 uint32_t _flag_k = FK_NONE; 8906 uint32_t _flag_a = 0, _flag_b = 0; 8907 uint32_t _itail_tgt = 0; 8908 RECOMP_REGS_LOCALS 8909 RECOMP_ENTER(0x27018E45u); 8910 8911 L_27018E45: 8912 MEM32(ebx + 0x8) = edx; /* 0x27018E45: mov dword ptr [ebx + 8], edx */ 8913 ecx = MEM32(ebp + (-0x4)); /* 0x27018E48: mov ecx, dword ptr [ebp - 4] */ 8914 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E4B: mov dl, byte ptr [ecx + 0x10] */ 8915 SET_LO8(ebx, 1); /* 0x27018E4E: mov bl, 1 */ 8916 /* cmp LO8(edx), LO8(ebx) */ /* 0x27018E50: cmp dl, bl */ 8917 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8919 _flag_k = FK_NARROW(FK_CMP, 24); 8920 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B5; /* 0x27018E52: jne 0x270190b5 */ 8921 L_27018E58: 8922 edx = MEM32(edi + 0x4); /* 0x27018E58: mov edx, dword ptr [edi + 4] */ 8923 /* cmp eax, MEM32(edx + 0x4) */ /* 0x27018E5B: cmp eax, dword ptr [edx + 4] */ 8924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8926 _flag_k = FK_CMP; 8927 if (CMP_EQ(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E5E: je 0x270190b2 */ 8928 L_27018E64: 8929 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x27018E64: cmp byte ptr [eax + 0x10], bl */ 8930 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8932 _flag_k = FK_NARROW(FK_CMP, 24); 8933 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E67: jne 0x270190b2 */ 8934 L_27018E6D: 8935 edx = MEM32(eax + 0x4); /* 0x27018E6D: mov edx, dword ptr [eax + 4] */ 8936 ecx = MEM32(edx); /* 0x27018E70: mov ecx, dword ptr [edx] */ 8937 /* cmp eax, ecx */ /* 0x27018E72: cmp eax, ecx */ 8938 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8940 _flag_k = FK_CMP; 8941 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EE4; /* 0x27018E74: jne 0x27018ee4 */ 8942 L_27018E76: 8943 ecx = MEM32(edx + 0x8); /* 0x27018E76: mov ecx, dword ptr [edx + 8] */ 8944 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E79: mov dl, byte ptr [ecx + 0x10] */ 8945 /* test LO8(edx), LO8(edx) */ /* 0x27018E7C: test dl, dl */ 8946 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8947 _cf = 0; 8948 _flag_k = FK_NARROW(FK_TEST, 24); 8949 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018ECB; /* 0x27018E7E: jne 0x27018ecb */ 8950 L_27018E80: 8951 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018E80: mov byte ptr [ecx + 0x10], bl */ 8952 ecx = MEM32(eax + 0x4); /* 0x27018E83: mov ecx, dword ptr [eax + 4] */ 8953 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018E86: mov byte ptr [ecx + 0x10], 0 */ 8954 ecx = MEM32(eax + 0x4); /* 0x27018E8A: mov ecx, dword ptr [eax + 4] */ 8955 edx = MEM32(ecx + 0x8); /* 0x27018E8D: mov edx, dword ptr [ecx + 8] */ 8956 esi = MEM32(edx); /* 0x27018E90: mov esi, dword ptr [edx] */ 8957 MEM32(ecx + 0x8) = esi; /* 0x27018E92: mov dword ptr [ecx + 8], esi */ 8958 esi = MEM32(edx); /* 0x27018E95: mov esi, dword ptr [edx] */ 8959 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018E97: cmp esi, dword ptr [edi + 8] */ 8960 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8962 _flag_k = FK_CMP; 8963 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E9F; /* 0x27018E9A: je 0x27018e9f */ 8964 L_27018E9C: 8965 MEM32(esi + 0x4) = ecx; /* 0x27018E9C: mov dword ptr [esi + 4], ecx */ 8966 L_27018E9F: 8967 esi = MEM32(ecx + 0x4); /* 0x27018E9F: mov esi, dword ptr [ecx + 4] */ 8968 MEM32(edx + 0x4) = esi; /* 0x27018EA2: mov dword ptr [edx + 4], esi */ 8969 esi = MEM32(edi + 0x4); /* 0x27018EA5: mov esi, dword ptr [edi + 4] */ 8970 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018EA8: cmp ecx, dword ptr [esi + 4] */ 8971 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 8972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8973 _flag_k = FK_CMP; 8974 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EB2; /* 0x27018EAB: jne 0x27018eb2 */ 8975 L_27018EAD: 8976 MEM32(esi + 0x4) = edx; /* 0x27018EAD: mov dword ptr [esi + 4], edx */ 8977 goto L_27018EC0; /* 0x27018EB0: jmp 0x27018ec0 */ 8978 L_27018EB2: 8979 esi = MEM32(ecx + 0x4); /* 0x27018EB2: mov esi, dword ptr [ecx + 4] */ 8980 /* cmp ecx, MEM32(esi) */ /* 0x27018EB5: cmp ecx, dword ptr [esi] */ 8981 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 8982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8983 _flag_k = FK_CMP; 8984 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EBD; /* 0x27018EB7: jne 0x27018ebd */ 8985 L_27018EB9: 8986 MEM32(esi) = edx; /* 0x27018EB9: mov dword ptr [esi], edx */ 8987 goto L_27018EC0; /* 0x27018EBB: jmp 0x27018ec0 */ 8988 L_27018EBD: 8989 MEM32(esi + 0x8) = edx; /* 0x27018EBD: mov dword ptr [esi + 8], edx */ 8990 L_27018EC0: 8991 MEM32(edx) = ecx; /* 0x27018EC0: mov dword ptr [edx], ecx */ 8992 MEM32(ecx + 0x4) = edx; /* 0x27018EC2: mov dword ptr [ecx + 4], edx */ 8993 edx = MEM32(eax + 0x4); /* 0x27018EC5: mov edx, dword ptr [eax + 4] */ 8994 ecx = MEM32(edx + 0x8); /* 0x27018EC8: mov ecx, dword ptr [edx + 8] */ 8995 L_27018ECB: 8996 edx = MEM32(ecx); /* 0x27018ECB: mov edx, dword ptr [ecx] */ 8997 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ECD: cmp byte ptr [edx + 0x10], bl */ 8998 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9000 _flag_k = FK_NARROW(FK_CMP, 24); 9001 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018ED0: jne 0x27018f66 */ 9002 L_27018ED6: 9003 edx = MEM32(ecx + 0x8); /* 0x27018ED6: mov edx, dword ptr [ecx + 8] */ 9004 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ED9: cmp byte ptr [edx + 0x10], bl */ 9005 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9007 _flag_k = FK_NARROW(FK_CMP, 24); 9008 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018EDC: jne 0x27018f66 */ 9009 L_27018EE2: 9010 goto L_27018F4E; /* 0x27018EE2: jmp 0x27018f4e */ 9011 L_27018EE4: 9012 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018EE4: mov dl, byte ptr [ecx + 0x10] */ 9013 /* test LO8(edx), LO8(edx) */ /* 0x27018EE7: test dl, dl */ 9014 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9015 _cf = 0; 9016 _flag_k = FK_NARROW(FK_TEST, 24); 9017 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018F37; /* 0x27018EE9: jne 0x27018f37 */ 9018 L_27018EEB: 9019 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018EEB: mov byte ptr [ecx + 0x10], bl */ 9020 ecx = MEM32(eax + 0x4); /* 0x27018EEE: mov ecx, dword ptr [eax + 4] */ 9021 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018EF1: mov byte ptr [ecx + 0x10], 0 */ 9022 ecx = MEM32(eax + 0x4); /* 0x27018EF5: mov ecx, dword ptr [eax + 4] */ 9023 edx = MEM32(ecx); /* 0x27018EF8: mov edx, dword ptr [ecx] */ 9024 esi = MEM32(edx + 0x8); /* 0x27018EFA: mov esi, dword ptr [edx + 8] */ 9025 MEM32(ecx) = esi; /* 0x27018EFD: mov dword ptr [ecx], esi */ 9026 esi = MEM32(edx + 0x8); /* 0x27018EFF: mov esi, dword ptr [edx + 8] */ 9027 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F02: cmp esi, dword ptr [edi + 8] */ 9028 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9030 _flag_k = FK_CMP; 9031 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F0A; /* 0x27018F05: je 0x27018f0a */ 9032 L_27018F07: 9033 MEM32(esi + 0x4) = ecx; /* 0x27018F07: mov dword ptr [esi + 4], ecx */ 9034 L_27018F0A: 9035 esi = MEM32(ecx + 0x4); /* 0x27018F0A: mov esi, dword ptr [ecx + 4] */ 9036 MEM32(edx + 0x4) = esi; /* 0x27018F0D: mov dword ptr [edx + 4], esi */ 9037 esi = MEM32(edi + 0x4); /* 0x27018F10: mov esi, dword ptr [edi + 4] */ 9038 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F13: cmp ecx, dword ptr [esi + 4] */ 9039 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9041 _flag_k = FK_CMP; 9042 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F1D; /* 0x27018F16: jne 0x27018f1d */ 9043 L_27018F18: 9044 MEM32(esi + 0x4) = edx; /* 0x27018F18: mov dword ptr [esi + 4], edx */ 9045 goto L_27018F2C; /* 0x27018F1B: jmp 0x27018f2c */ 9046 L_27018F1D: 9047 esi = MEM32(ecx + 0x4); /* 0x27018F1D: mov esi, dword ptr [ecx + 4] */ 9048 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F20: cmp ecx, dword ptr [esi + 8] */ 9049 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9051 _flag_k = FK_CMP; 9052 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F2A; /* 0x27018F23: jne 0x27018f2a */ 9053 L_27018F25: 9054 MEM32(esi + 0x8) = edx; /* 0x27018F25: mov dword ptr [esi + 8], edx */ 9055 goto L_27018F2C; /* 0x27018F28: jmp 0x27018f2c */ 9056 L_27018F2A: 9057 MEM32(esi) = edx; /* 0x27018F2A: mov dword ptr [esi], edx */ 9058 L_27018F2C: 9059 MEM32(edx + 0x8) = ecx; /* 0x27018F2C: mov dword ptr [edx + 8], ecx */ 9060 MEM32(ecx + 0x4) = edx; /* 0x27018F2F: mov dword ptr [ecx + 4], edx */ 9061 edx = MEM32(eax + 0x4); /* 0x27018F32: mov edx, dword ptr [eax + 4] */ 9062 ecx = MEM32(edx); /* 0x27018F35: mov ecx, dword ptr [edx] */ 9063 L_27018F37: 9064 edx = MEM32(ecx + 0x8); /* 0x27018F37: mov edx, dword ptr [ecx + 8] */ 9065 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F3A: cmp byte ptr [edx + 0x10], bl */ 9066 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9068 _flag_k = FK_NARROW(FK_CMP, 24); 9069 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F3D: jne 0x27019013 */ 9070 L_27018F43: 9071 edx = MEM32(ecx); /* 0x27018F43: mov edx, dword ptr [ecx] */ 9072 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F45: cmp byte ptr [edx + 0x10], bl */ 9073 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9075 _flag_k = FK_NARROW(FK_CMP, 24); 9076 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F48: jne 0x27019013 */ 9077 L_27018F4E: 9078 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F4E: mov byte ptr [ecx + 0x10], 0 */ 9079 ecx = MEM32(edi + 0x4); /* 0x27018F52: mov ecx, dword ptr [edi + 4] */ 9080 eax = MEM32(eax + 0x4); /* 0x27018F55: mov eax, dword ptr [eax + 4] */ 9081 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27018F58: cmp eax, dword ptr [ecx + 4] */ 9082 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9084 _flag_k = FK_CMP; 9085 RECOMP_BACKEDGE(); 9086 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E64; /* 0x27018F5B: jne 0x27018e64 */ 9087 L_27018F61: 9088 goto L_270190B2; /* 0x27018F61: jmp 0x270190b2 */ 9089 L_27018F66: 9090 edx = MEM32(ecx + 0x8); /* 0x27018F66: mov edx, dword ptr [ecx + 8] */ 9091 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F69: cmp byte ptr [edx + 0x10], bl */ 9092 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9094 _flag_k = FK_NARROW(FK_CMP, 24); 9095 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FB7; /* 0x27018F6C: jne 0x27018fb7 */ 9096 L_27018F6E: 9097 edx = MEM32(ecx); /* 0x27018F6E: mov edx, dword ptr [ecx] */ 9098 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018F70: mov byte ptr [edx + 0x10], bl */ 9099 edx = MEM32(ecx); /* 0x27018F73: mov edx, dword ptr [ecx] */ 9100 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F75: mov byte ptr [ecx + 0x10], 0 */ 9101 esi = MEM32(edx + 0x8); /* 0x27018F79: mov esi, dword ptr [edx + 8] */ 9102 MEM32(ecx) = esi; /* 0x27018F7C: mov dword ptr [ecx], esi */ 9103 esi = MEM32(edx + 0x8); /* 0x27018F7E: mov esi, dword ptr [edx + 8] */ 9104 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F81: cmp esi, dword ptr [edi + 8] */ 9105 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9107 _flag_k = FK_CMP; 9108 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F89; /* 0x27018F84: je 0x27018f89 */ 9109 L_27018F86: 9110 MEM32(esi + 0x4) = ecx; /* 0x27018F86: mov dword ptr [esi + 4], ecx */ 9111 L_27018F89: 9112 esi = MEM32(ecx + 0x4); /* 0x27018F89: mov esi, dword ptr [ecx + 4] */ 9113 MEM32(edx + 0x4) = esi; /* 0x27018F8C: mov dword ptr [edx + 4], esi */ 9114 esi = MEM32(edi + 0x4); /* 0x27018F8F: mov esi, dword ptr [edi + 4] */ 9115 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F92: cmp ecx, dword ptr [esi + 4] */ 9116 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9118 _flag_k = FK_CMP; 9119 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F9C; /* 0x27018F95: jne 0x27018f9c */ 9120 L_27018F97: 9121 MEM32(esi + 0x4) = edx; /* 0x27018F97: mov dword ptr [esi + 4], edx */ 9122 goto L_27018FAB; /* 0x27018F9A: jmp 0x27018fab */ 9123 L_27018F9C: 9124 esi = MEM32(ecx + 0x4); /* 0x27018F9C: mov esi, dword ptr [ecx + 4] */ 9125 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F9F: cmp ecx, dword ptr [esi + 8] */ 9126 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9128 _flag_k = FK_CMP; 9129 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FA9; /* 0x27018FA2: jne 0x27018fa9 */ 9130 L_27018FA4: 9131 MEM32(esi + 0x8) = edx; /* 0x27018FA4: mov dword ptr [esi + 8], edx */ 9132 goto L_27018FAB; /* 0x27018FA7: jmp 0x27018fab */ 9133 L_27018FA9: 9134 MEM32(esi) = edx; /* 0x27018FA9: mov dword ptr [esi], edx */ 9135 L_27018FAB: 9136 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 9137 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 9138 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 9139 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 9140 L_27018FB7: 9141 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 9142 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 9143 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 9144 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 9145 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 9146 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 9147 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 9148 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 9149 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 9150 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 9151 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 9152 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 9153 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: cmp esi, dword ptr [edi + 8] */ 9154 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9156 _flag_k = FK_CMP; 9157 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 9158 L_27018FDE: 9159 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 9160 L_27018FE1: 9161 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 9162 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 9163 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 9164 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: cmp ecx, dword ptr [esi + 4] */ 9165 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9167 _flag_k = FK_CMP; 9168 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 9169 L_27018FEF: 9170 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 9171 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 9172 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 9173 L_27018FF9: 9174 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 9175 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: cmp ecx, dword ptr [esi] */ 9176 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9178 _flag_k = FK_CMP; 9179 if (CMP_NE(_flag_a, _flag_b)) goto L_27019009; /* 0x27018FFE: jne 0x27019009 */ 9180 L_27019000: 9181 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 9182 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 9183 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 9184 L_27019009: 9185 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 9186 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 9187 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 9188 L_27019013: 9189 edx = MEM32(ecx); /* 0x27019013: mov edx, dword ptr [ecx] */ 9190 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27019015: cmp byte ptr [edx + 0x10], bl */ 9191 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9193 _flag_k = FK_NARROW(FK_CMP, 24); 9194 if (CMP_NE(_flag_a, _flag_b)) goto L_27019061; /* 0x27019018: jne 0x27019061 */ 9195 L_2701901A: 9196 edx = MEM32(ecx + 0x8); /* 0x2701901A: mov edx, dword ptr [ecx + 8] */ 9197 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701901D: mov byte ptr [edx + 0x10], bl */ 9198 edx = MEM32(ecx + 0x8); /* 0x27019020: mov edx, dword ptr [ecx + 8] */ 9199 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019023: mov byte ptr [ecx + 0x10], 0 */ 9200 esi = MEM32(edx); /* 0x27019027: mov esi, dword ptr [edx] */ 9201 MEM32(ecx + 0x8) = esi; /* 0x27019029: mov dword ptr [ecx + 8], esi */ 9202 esi = MEM32(edx); /* 0x2701902C: mov esi, dword ptr [edx] */ 9203 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701902E: cmp esi, dword ptr [edi + 8] */ 9204 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9206 _flag_k = FK_CMP; 9207 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019036; /* 0x27019031: je 0x27019036 */ 9208 L_27019033: 9209 MEM32(esi + 0x4) = ecx; /* 0x27019033: mov dword ptr [esi + 4], ecx */ 9210 L_27019036: 9211 esi = MEM32(ecx + 0x4); /* 0x27019036: mov esi, dword ptr [ecx + 4] */ 9212 MEM32(edx + 0x4) = esi; /* 0x27019039: mov dword ptr [edx + 4], esi */ 9213 esi = MEM32(edi + 0x4); /* 0x2701903C: mov esi, dword ptr [edi + 4] */ 9214 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701903F: cmp ecx, dword ptr [esi + 4] */ 9215 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9217 _flag_k = FK_CMP; 9218 if (CMP_NE(_flag_a, _flag_b)) goto L_27019049; /* 0x27019042: jne 0x27019049 */ 9219 L_27019044: 9220 MEM32(esi + 0x4) = edx; /* 0x27019044: mov dword ptr [esi + 4], edx */ 9221 goto L_27019057; /* 0x27019047: jmp 0x27019057 */ 9222 L_27019049: 9223 esi = MEM32(ecx + 0x4); /* 0x27019049: mov esi, dword ptr [ecx + 4] */ 9224 /* cmp ecx, MEM32(esi) */ /* 0x2701904C: cmp ecx, dword ptr [esi] */ 9225 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9227 _flag_k = FK_CMP; 9228 if (CMP_NE(_flag_a, _flag_b)) goto L_27019054; /* 0x2701904E: jne 0x27019054 */ 9229 L_27019050: 9230 MEM32(esi) = edx; /* 0x27019050: mov dword ptr [esi], edx */ 9231 goto L_27019057; /* 0x27019052: jmp 0x27019057 */ 9232 L_27019054: 9233 MEM32(esi + 0x8) = edx; /* 0x27019054: mov dword ptr [esi + 8], edx */ 9234 L_27019057: 9235 MEM32(edx) = ecx; /* 0x27019057: mov dword ptr [edx], ecx */ 9236 MEM32(ecx + 0x4) = edx; /* 0x27019059: mov dword ptr [ecx + 4], edx */ 9237 ecx = MEM32(eax + 0x4); /* 0x2701905C: mov ecx, dword ptr [eax + 4] */ 9238 ecx = MEM32(ecx); /* 0x2701905F: mov ecx, dword ptr [ecx] */ 9239 L_27019061: 9240 edx = MEM32(eax + 0x4); /* 0x27019061: mov edx, dword ptr [eax + 4] */ 9241 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27019064: mov dl, byte ptr [edx + 0x10] */ 9242 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27019067: mov byte ptr [ecx + 0x10], dl */ 9243 edx = MEM32(eax + 0x4); /* 0x2701906A: mov edx, dword ptr [eax + 4] */ 9244 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701906D: mov byte ptr [edx + 0x10], bl */ 9245 ecx = MEM32(ecx); /* 0x27019070: mov ecx, dword ptr [ecx] */ 9246 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019072: mov byte ptr [ecx + 0x10], bl */ 9247 ecx = MEM32(eax + 0x4); /* 0x27019075: mov ecx, dword ptr [eax + 4] */ 9248 edx = MEM32(ecx); /* 0x27019078: mov edx, dword ptr [ecx] */ 9249 esi = MEM32(edx + 0x8); /* 0x2701907A: mov esi, dword ptr [edx + 8] */ 9250 MEM32(ecx) = esi; /* 0x2701907D: mov dword ptr [ecx], esi */ 9251 esi = MEM32(edx + 0x8); /* 0x2701907F: mov esi, dword ptr [edx + 8] */ 9252 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27019082: cmp esi, dword ptr [edi + 8] */ 9253 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9255 _flag_k = FK_CMP; 9256 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701908A; /* 0x27019085: je 0x2701908a */ 9257 L_27019087: 9258 MEM32(esi + 0x4) = ecx; /* 0x27019087: mov dword ptr [esi + 4], ecx */ 9259 L_2701908A: 9260 esi = MEM32(ecx + 0x4); /* 0x2701908A: mov esi, dword ptr [ecx + 4] */ 9261 MEM32(edx + 0x4) = esi; /* 0x2701908D: mov dword ptr [edx + 4], esi */ 9262 esi = MEM32(edi + 0x4); /* 0x27019090: mov esi, dword ptr [edi + 4] */ 9263 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27019093: cmp ecx, dword ptr [esi + 4] */ 9264 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9266 _flag_k = FK_CMP; 9267 if (CMP_NE(_flag_a, _flag_b)) goto L_2701909D; /* 0x27019096: jne 0x2701909d */ 9268 L_27019098: 9269 MEM32(esi + 0x4) = edx; /* 0x27019098: mov dword ptr [esi + 4], edx */ 9270 goto L_270190AC; /* 0x2701909B: jmp 0x270190ac */ 9271 L_2701909D: 9272 esi = MEM32(ecx + 0x4); /* 0x2701909D: mov esi, dword ptr [ecx + 4] */ 9273 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x270190A0: cmp ecx, dword ptr [esi + 8] */ 9274 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9276 _flag_k = FK_CMP; 9277 if (CMP_NE(_flag_a, _flag_b)) goto L_270190AA; /* 0x270190A3: jne 0x270190aa */ 9278 L_270190A5: 9279 MEM32(esi + 0x8) = edx; /* 0x270190A5: mov dword ptr [esi + 8], edx */ 9280 goto L_270190AC; /* 0x270190A8: jmp 0x270190ac */ 9281 L_270190AA: 9282 MEM32(esi) = edx; /* 0x270190AA: mov dword ptr [esi], edx */ 9283 L_270190AC: 9284 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 9285 L_270190AF: 9286 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 9287 L_270190B2: 9288 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 9289 L_270190B5: 9290 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 9291 PUSH32(esp, edx); /* 0x270190B8: push edx */ 9292 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 9293 RECOMP_FLAGS_IN(); 9294 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 9295 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 9296 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9298 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 9299 _flag_k = FK_ADD; 9300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9301 eax = eax - 1; /* 0x270190C7: dec eax */ 9302 _flag_k = FK_DEC; 9303 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 9304 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 9305 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 9306 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 9307 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 9308 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 9309 esp = ebp; /* 0x270190D3: mov esp, ebp */ 9310 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 9311 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 9312 RECOMP_REGS_OUT(); 9313 } 9314 9315 void sub_27018E64(void) { 9316 int _fpu_cmp = 0; 9317 uint32_t _cf = 0; 9318 int _df = 1; 9319 uint32_t _flag_k = FK_NONE; 9320 uint32_t _flag_a = 0, _flag_b = 0; 9321 uint32_t _itail_tgt = 0; 9322 RECOMP_REGS_LOCALS 9323 RECOMP_ENTER(0x27018E64u); 9324 9325 L_27018E64: 9326 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x27018E64: cmp byte ptr [eax + 0x10], bl */ 9327 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9329 _flag_k = FK_NARROW(FK_CMP, 24); 9330 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E67: jne 0x270190b2 */ 9331 L_27018E6D: 9332 edx = MEM32(eax + 0x4); /* 0x27018E6D: mov edx, dword ptr [eax + 4] */ 9333 ecx = MEM32(edx); /* 0x27018E70: mov ecx, dword ptr [edx] */ 9334 /* cmp eax, ecx */ /* 0x27018E72: cmp eax, ecx */ 9335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9337 _flag_k = FK_CMP; 9338 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EE4; /* 0x27018E74: jne 0x27018ee4 */ 9339 L_27018E76: 9340 ecx = MEM32(edx + 0x8); /* 0x27018E76: mov ecx, dword ptr [edx + 8] */ 9341 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E79: mov dl, byte ptr [ecx + 0x10] */ 9342 /* test LO8(edx), LO8(edx) */ /* 0x27018E7C: test dl, dl */ 9343 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9344 _cf = 0; 9345 _flag_k = FK_NARROW(FK_TEST, 24); 9346 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018ECB; /* 0x27018E7E: jne 0x27018ecb */ 9347 L_27018E80: 9348 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018E80: mov byte ptr [ecx + 0x10], bl */ 9349 ecx = MEM32(eax + 0x4); /* 0x27018E83: mov ecx, dword ptr [eax + 4] */ 9350 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018E86: mov byte ptr [ecx + 0x10], 0 */ 9351 ecx = MEM32(eax + 0x4); /* 0x27018E8A: mov ecx, dword ptr [eax + 4] */ 9352 edx = MEM32(ecx + 0x8); /* 0x27018E8D: mov edx, dword ptr [ecx + 8] */ 9353 esi = MEM32(edx); /* 0x27018E90: mov esi, dword ptr [edx] */ 9354 MEM32(ecx + 0x8) = esi; /* 0x27018E92: mov dword ptr [ecx + 8], esi */ 9355 esi = MEM32(edx); /* 0x27018E95: mov esi, dword ptr [edx] */ 9356 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018E97: cmp esi, dword ptr [edi + 8] */ 9357 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9359 _flag_k = FK_CMP; 9360 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E9F; /* 0x27018E9A: je 0x27018e9f */ 9361 L_27018E9C: 9362 MEM32(esi + 0x4) = ecx; /* 0x27018E9C: mov dword ptr [esi + 4], ecx */ 9363 L_27018E9F: 9364 esi = MEM32(ecx + 0x4); /* 0x27018E9F: mov esi, dword ptr [ecx + 4] */ 9365 MEM32(edx + 0x4) = esi; /* 0x27018EA2: mov dword ptr [edx + 4], esi */ 9366 esi = MEM32(edi + 0x4); /* 0x27018EA5: mov esi, dword ptr [edi + 4] */ 9367 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018EA8: cmp ecx, dword ptr [esi + 4] */ 9368 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9370 _flag_k = FK_CMP; 9371 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EB2; /* 0x27018EAB: jne 0x27018eb2 */ 9372 L_27018EAD: 9373 MEM32(esi + 0x4) = edx; /* 0x27018EAD: mov dword ptr [esi + 4], edx */ 9374 goto L_27018EC0; /* 0x27018EB0: jmp 0x27018ec0 */ 9375 L_27018EB2: 9376 esi = MEM32(ecx + 0x4); /* 0x27018EB2: mov esi, dword ptr [ecx + 4] */ 9377 /* cmp ecx, MEM32(esi) */ /* 0x27018EB5: cmp ecx, dword ptr [esi] */ 9378 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9380 _flag_k = FK_CMP; 9381 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EBD; /* 0x27018EB7: jne 0x27018ebd */ 9382 L_27018EB9: 9383 MEM32(esi) = edx; /* 0x27018EB9: mov dword ptr [esi], edx */ 9384 goto L_27018EC0; /* 0x27018EBB: jmp 0x27018ec0 */ 9385 L_27018EBD: 9386 MEM32(esi + 0x8) = edx; /* 0x27018EBD: mov dword ptr [esi + 8], edx */ 9387 L_27018EC0: 9388 MEM32(edx) = ecx; /* 0x27018EC0: mov dword ptr [edx], ecx */ 9389 MEM32(ecx + 0x4) = edx; /* 0x27018EC2: mov dword ptr [ecx + 4], edx */ 9390 edx = MEM32(eax + 0x4); /* 0x27018EC5: mov edx, dword ptr [eax + 4] */ 9391 ecx = MEM32(edx + 0x8); /* 0x27018EC8: mov ecx, dword ptr [edx + 8] */ 9392 L_27018ECB: 9393 edx = MEM32(ecx); /* 0x27018ECB: mov edx, dword ptr [ecx] */ 9394 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ECD: cmp byte ptr [edx + 0x10], bl */ 9395 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9397 _flag_k = FK_NARROW(FK_CMP, 24); 9398 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018ED0: jne 0x27018f66 */ 9399 L_27018ED6: 9400 edx = MEM32(ecx + 0x8); /* 0x27018ED6: mov edx, dword ptr [ecx + 8] */ 9401 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ED9: cmp byte ptr [edx + 0x10], bl */ 9402 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9404 _flag_k = FK_NARROW(FK_CMP, 24); 9405 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018EDC: jne 0x27018f66 */ 9406 L_27018EE2: 9407 goto L_27018F4E; /* 0x27018EE2: jmp 0x27018f4e */ 9408 L_27018EE4: 9409 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018EE4: mov dl, byte ptr [ecx + 0x10] */ 9410 /* test LO8(edx), LO8(edx) */ /* 0x27018EE7: test dl, dl */ 9411 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9412 _cf = 0; 9413 _flag_k = FK_NARROW(FK_TEST, 24); 9414 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018F37; /* 0x27018EE9: jne 0x27018f37 */ 9415 L_27018EEB: 9416 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018EEB: mov byte ptr [ecx + 0x10], bl */ 9417 ecx = MEM32(eax + 0x4); /* 0x27018EEE: mov ecx, dword ptr [eax + 4] */ 9418 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018EF1: mov byte ptr [ecx + 0x10], 0 */ 9419 ecx = MEM32(eax + 0x4); /* 0x27018EF5: mov ecx, dword ptr [eax + 4] */ 9420 edx = MEM32(ecx); /* 0x27018EF8: mov edx, dword ptr [ecx] */ 9421 esi = MEM32(edx + 0x8); /* 0x27018EFA: mov esi, dword ptr [edx + 8] */ 9422 MEM32(ecx) = esi; /* 0x27018EFD: mov dword ptr [ecx], esi */ 9423 esi = MEM32(edx + 0x8); /* 0x27018EFF: mov esi, dword ptr [edx + 8] */ 9424 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F02: cmp esi, dword ptr [edi + 8] */ 9425 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9427 _flag_k = FK_CMP; 9428 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F0A; /* 0x27018F05: je 0x27018f0a */ 9429 L_27018F07: 9430 MEM32(esi + 0x4) = ecx; /* 0x27018F07: mov dword ptr [esi + 4], ecx */ 9431 L_27018F0A: 9432 esi = MEM32(ecx + 0x4); /* 0x27018F0A: mov esi, dword ptr [ecx + 4] */ 9433 MEM32(edx + 0x4) = esi; /* 0x27018F0D: mov dword ptr [edx + 4], esi */ 9434 esi = MEM32(edi + 0x4); /* 0x27018F10: mov esi, dword ptr [edi + 4] */ 9435 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F13: cmp ecx, dword ptr [esi + 4] */ 9436 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9438 _flag_k = FK_CMP; 9439 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F1D; /* 0x27018F16: jne 0x27018f1d */ 9440 L_27018F18: 9441 MEM32(esi + 0x4) = edx; /* 0x27018F18: mov dword ptr [esi + 4], edx */ 9442 goto L_27018F2C; /* 0x27018F1B: jmp 0x27018f2c */ 9443 L_27018F1D: 9444 esi = MEM32(ecx + 0x4); /* 0x27018F1D: mov esi, dword ptr [ecx + 4] */ 9445 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F20: cmp ecx, dword ptr [esi + 8] */ 9446 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9448 _flag_k = FK_CMP; 9449 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F2A; /* 0x27018F23: jne 0x27018f2a */ 9450 L_27018F25: 9451 MEM32(esi + 0x8) = edx; /* 0x27018F25: mov dword ptr [esi + 8], edx */ 9452 goto L_27018F2C; /* 0x27018F28: jmp 0x27018f2c */ 9453 L_27018F2A: 9454 MEM32(esi) = edx; /* 0x27018F2A: mov dword ptr [esi], edx */ 9455 L_27018F2C: 9456 MEM32(edx + 0x8) = ecx; /* 0x27018F2C: mov dword ptr [edx + 8], ecx */ 9457 MEM32(ecx + 0x4) = edx; /* 0x27018F2F: mov dword ptr [ecx + 4], edx */ 9458 edx = MEM32(eax + 0x4); /* 0x27018F32: mov edx, dword ptr [eax + 4] */ 9459 ecx = MEM32(edx); /* 0x27018F35: mov ecx, dword ptr [edx] */ 9460 L_27018F37: 9461 edx = MEM32(ecx + 0x8); /* 0x27018F37: mov edx, dword ptr [ecx + 8] */ 9462 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F3A: cmp byte ptr [edx + 0x10], bl */ 9463 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9465 _flag_k = FK_NARROW(FK_CMP, 24); 9466 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F3D: jne 0x27019013 */ 9467 L_27018F43: 9468 edx = MEM32(ecx); /* 0x27018F43: mov edx, dword ptr [ecx] */ 9469 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F45: cmp byte ptr [edx + 0x10], bl */ 9470 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9471 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9472 _flag_k = FK_NARROW(FK_CMP, 24); 9473 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F48: jne 0x27019013 */ 9474 L_27018F4E: 9475 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F4E: mov byte ptr [ecx + 0x10], 0 */ 9476 ecx = MEM32(edi + 0x4); /* 0x27018F52: mov ecx, dword ptr [edi + 4] */ 9477 eax = MEM32(eax + 0x4); /* 0x27018F55: mov eax, dword ptr [eax + 4] */ 9478 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27018F58: cmp eax, dword ptr [ecx + 4] */ 9479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9481 _flag_k = FK_CMP; 9482 RECOMP_BACKEDGE(); 9483 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E64; /* 0x27018F5B: jne 0x27018e64 */ 9484 L_27018F61: 9485 goto L_270190B2; /* 0x27018F61: jmp 0x270190b2 */ 9486 L_27018F66: 9487 edx = MEM32(ecx + 0x8); /* 0x27018F66: mov edx, dword ptr [ecx + 8] */ 9488 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F69: cmp byte ptr [edx + 0x10], bl */ 9489 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9491 _flag_k = FK_NARROW(FK_CMP, 24); 9492 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FB7; /* 0x27018F6C: jne 0x27018fb7 */ 9493 L_27018F6E: 9494 edx = MEM32(ecx); /* 0x27018F6E: mov edx, dword ptr [ecx] */ 9495 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018F70: mov byte ptr [edx + 0x10], bl */ 9496 edx = MEM32(ecx); /* 0x27018F73: mov edx, dword ptr [ecx] */ 9497 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F75: mov byte ptr [ecx + 0x10], 0 */ 9498 esi = MEM32(edx + 0x8); /* 0x27018F79: mov esi, dword ptr [edx + 8] */ 9499 MEM32(ecx) = esi; /* 0x27018F7C: mov dword ptr [ecx], esi */ 9500 esi = MEM32(edx + 0x8); /* 0x27018F7E: mov esi, dword ptr [edx + 8] */ 9501 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F81: cmp esi, dword ptr [edi + 8] */ 9502 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9504 _flag_k = FK_CMP; 9505 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F89; /* 0x27018F84: je 0x27018f89 */ 9506 L_27018F86: 9507 MEM32(esi + 0x4) = ecx; /* 0x27018F86: mov dword ptr [esi + 4], ecx */ 9508 L_27018F89: 9509 esi = MEM32(ecx + 0x4); /* 0x27018F89: mov esi, dword ptr [ecx + 4] */ 9510 MEM32(edx + 0x4) = esi; /* 0x27018F8C: mov dword ptr [edx + 4], esi */ 9511 esi = MEM32(edi + 0x4); /* 0x27018F8F: mov esi, dword ptr [edi + 4] */ 9512 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F92: cmp ecx, dword ptr [esi + 4] */ 9513 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9515 _flag_k = FK_CMP; 9516 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F9C; /* 0x27018F95: jne 0x27018f9c */ 9517 L_27018F97: 9518 MEM32(esi + 0x4) = edx; /* 0x27018F97: mov dword ptr [esi + 4], edx */ 9519 goto L_27018FAB; /* 0x27018F9A: jmp 0x27018fab */ 9520 L_27018F9C: 9521 esi = MEM32(ecx + 0x4); /* 0x27018F9C: mov esi, dword ptr [ecx + 4] */ 9522 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F9F: cmp ecx, dword ptr [esi + 8] */ 9523 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9525 _flag_k = FK_CMP; 9526 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FA9; /* 0x27018FA2: jne 0x27018fa9 */ 9527 L_27018FA4: 9528 MEM32(esi + 0x8) = edx; /* 0x27018FA4: mov dword ptr [esi + 8], edx */ 9529 goto L_27018FAB; /* 0x27018FA7: jmp 0x27018fab */ 9530 L_27018FA9: 9531 MEM32(esi) = edx; /* 0x27018FA9: mov dword ptr [esi], edx */ 9532 L_27018FAB: 9533 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 9534 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 9535 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 9536 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 9537 L_27018FB7: 9538 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 9539 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 9540 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 9541 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 9542 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 9543 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 9544 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 9545 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 9546 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 9547 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 9548 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 9549 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 9550 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: cmp esi, dword ptr [edi + 8] */ 9551 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9553 _flag_k = FK_CMP; 9554 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 9555 L_27018FDE: 9556 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 9557 L_27018FE1: 9558 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 9559 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 9560 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 9561 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: cmp ecx, dword ptr [esi + 4] */ 9562 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9564 _flag_k = FK_CMP; 9565 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 9566 L_27018FEF: 9567 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 9568 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 9569 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 9570 L_27018FF9: 9571 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 9572 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: cmp ecx, dword ptr [esi] */ 9573 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9575 _flag_k = FK_CMP; 9576 if (CMP_NE(_flag_a, _flag_b)) goto L_27019009; /* 0x27018FFE: jne 0x27019009 */ 9577 L_27019000: 9578 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 9579 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 9580 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 9581 L_27019009: 9582 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 9583 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 9584 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 9585 L_27019013: 9586 edx = MEM32(ecx); /* 0x27019013: mov edx, dword ptr [ecx] */ 9587 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27019015: cmp byte ptr [edx + 0x10], bl */ 9588 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9590 _flag_k = FK_NARROW(FK_CMP, 24); 9591 if (CMP_NE(_flag_a, _flag_b)) goto L_27019061; /* 0x27019018: jne 0x27019061 */ 9592 L_2701901A: 9593 edx = MEM32(ecx + 0x8); /* 0x2701901A: mov edx, dword ptr [ecx + 8] */ 9594 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701901D: mov byte ptr [edx + 0x10], bl */ 9595 edx = MEM32(ecx + 0x8); /* 0x27019020: mov edx, dword ptr [ecx + 8] */ 9596 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019023: mov byte ptr [ecx + 0x10], 0 */ 9597 esi = MEM32(edx); /* 0x27019027: mov esi, dword ptr [edx] */ 9598 MEM32(ecx + 0x8) = esi; /* 0x27019029: mov dword ptr [ecx + 8], esi */ 9599 esi = MEM32(edx); /* 0x2701902C: mov esi, dword ptr [edx] */ 9600 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701902E: cmp esi, dword ptr [edi + 8] */ 9601 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9603 _flag_k = FK_CMP; 9604 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019036; /* 0x27019031: je 0x27019036 */ 9605 L_27019033: 9606 MEM32(esi + 0x4) = ecx; /* 0x27019033: mov dword ptr [esi + 4], ecx */ 9607 L_27019036: 9608 esi = MEM32(ecx + 0x4); /* 0x27019036: mov esi, dword ptr [ecx + 4] */ 9609 MEM32(edx + 0x4) = esi; /* 0x27019039: mov dword ptr [edx + 4], esi */ 9610 esi = MEM32(edi + 0x4); /* 0x2701903C: mov esi, dword ptr [edi + 4] */ 9611 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701903F: cmp ecx, dword ptr [esi + 4] */ 9612 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9614 _flag_k = FK_CMP; 9615 if (CMP_NE(_flag_a, _flag_b)) goto L_27019049; /* 0x27019042: jne 0x27019049 */ 9616 L_27019044: 9617 MEM32(esi + 0x4) = edx; /* 0x27019044: mov dword ptr [esi + 4], edx */ 9618 goto L_27019057; /* 0x27019047: jmp 0x27019057 */ 9619 L_27019049: 9620 esi = MEM32(ecx + 0x4); /* 0x27019049: mov esi, dword ptr [ecx + 4] */ 9621 /* cmp ecx, MEM32(esi) */ /* 0x2701904C: cmp ecx, dword ptr [esi] */ 9622 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9624 _flag_k = FK_CMP; 9625 if (CMP_NE(_flag_a, _flag_b)) goto L_27019054; /* 0x2701904E: jne 0x27019054 */ 9626 L_27019050: 9627 MEM32(esi) = edx; /* 0x27019050: mov dword ptr [esi], edx */ 9628 goto L_27019057; /* 0x27019052: jmp 0x27019057 */ 9629 L_27019054: 9630 MEM32(esi + 0x8) = edx; /* 0x27019054: mov dword ptr [esi + 8], edx */ 9631 L_27019057: 9632 MEM32(edx) = ecx; /* 0x27019057: mov dword ptr [edx], ecx */ 9633 MEM32(ecx + 0x4) = edx; /* 0x27019059: mov dword ptr [ecx + 4], edx */ 9634 ecx = MEM32(eax + 0x4); /* 0x2701905C: mov ecx, dword ptr [eax + 4] */ 9635 ecx = MEM32(ecx); /* 0x2701905F: mov ecx, dword ptr [ecx] */ 9636 L_27019061: 9637 edx = MEM32(eax + 0x4); /* 0x27019061: mov edx, dword ptr [eax + 4] */ 9638 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27019064: mov dl, byte ptr [edx + 0x10] */ 9639 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27019067: mov byte ptr [ecx + 0x10], dl */ 9640 edx = MEM32(eax + 0x4); /* 0x2701906A: mov edx, dword ptr [eax + 4] */ 9641 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701906D: mov byte ptr [edx + 0x10], bl */ 9642 ecx = MEM32(ecx); /* 0x27019070: mov ecx, dword ptr [ecx] */ 9643 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019072: mov byte ptr [ecx + 0x10], bl */ 9644 ecx = MEM32(eax + 0x4); /* 0x27019075: mov ecx, dword ptr [eax + 4] */ 9645 edx = MEM32(ecx); /* 0x27019078: mov edx, dword ptr [ecx] */ 9646 esi = MEM32(edx + 0x8); /* 0x2701907A: mov esi, dword ptr [edx + 8] */ 9647 MEM32(ecx) = esi; /* 0x2701907D: mov dword ptr [ecx], esi */ 9648 esi = MEM32(edx + 0x8); /* 0x2701907F: mov esi, dword ptr [edx + 8] */ 9649 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27019082: cmp esi, dword ptr [edi + 8] */ 9650 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9652 _flag_k = FK_CMP; 9653 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701908A; /* 0x27019085: je 0x2701908a */ 9654 L_27019087: 9655 MEM32(esi + 0x4) = ecx; /* 0x27019087: mov dword ptr [esi + 4], ecx */ 9656 L_2701908A: 9657 esi = MEM32(ecx + 0x4); /* 0x2701908A: mov esi, dword ptr [ecx + 4] */ 9658 MEM32(edx + 0x4) = esi; /* 0x2701908D: mov dword ptr [edx + 4], esi */ 9659 esi = MEM32(edi + 0x4); /* 0x27019090: mov esi, dword ptr [edi + 4] */ 9660 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27019093: cmp ecx, dword ptr [esi + 4] */ 9661 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9663 _flag_k = FK_CMP; 9664 if (CMP_NE(_flag_a, _flag_b)) goto L_2701909D; /* 0x27019096: jne 0x2701909d */ 9665 L_27019098: 9666 MEM32(esi + 0x4) = edx; /* 0x27019098: mov dword ptr [esi + 4], edx */ 9667 goto L_270190AC; /* 0x2701909B: jmp 0x270190ac */ 9668 L_2701909D: 9669 esi = MEM32(ecx + 0x4); /* 0x2701909D: mov esi, dword ptr [ecx + 4] */ 9670 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x270190A0: cmp ecx, dword ptr [esi + 8] */ 9671 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9673 _flag_k = FK_CMP; 9674 if (CMP_NE(_flag_a, _flag_b)) goto L_270190AA; /* 0x270190A3: jne 0x270190aa */ 9675 L_270190A5: 9676 MEM32(esi + 0x8) = edx; /* 0x270190A5: mov dword ptr [esi + 8], edx */ 9677 goto L_270190AC; /* 0x270190A8: jmp 0x270190ac */ 9678 L_270190AA: 9679 MEM32(esi) = edx; /* 0x270190AA: mov dword ptr [esi], edx */ 9680 L_270190AC: 9681 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 9682 L_270190AF: 9683 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 9684 L_270190B2: 9685 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 9686 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 9687 PUSH32(esp, edx); /* 0x270190B8: push edx */ 9688 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 9689 RECOMP_FLAGS_IN(); 9690 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 9691 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 9692 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9693 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9694 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 9695 _flag_k = FK_ADD; 9696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9697 eax = eax - 1; /* 0x270190C7: dec eax */ 9698 _flag_k = FK_DEC; 9699 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 9700 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 9701 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 9702 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 9703 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 9704 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 9705 esp = ebp; /* 0x270190D3: mov esp, ebp */ 9706 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 9707 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 9708 RECOMP_REGS_OUT(); 9709 } 9710 9711 void sub_27018EC0(void) { 9712 int _fpu_cmp = 0; 9713 uint32_t _cf = 0; 9714 int _df = 1; 9715 uint32_t _flag_k = FK_NONE; 9716 uint32_t _flag_a = 0, _flag_b = 0; 9717 uint32_t _itail_tgt = 0; 9718 RECOMP_REGS_LOCALS 9719 RECOMP_ENTER(0x27018EC0u); 9720 9721 goto L_27018EC0; 9722 L_27018E64: 9723 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x27018E64: cmp byte ptr [eax + 0x10], bl */ 9724 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9726 _flag_k = FK_NARROW(FK_CMP, 24); 9727 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E67: jne 0x270190b2 */ 9728 L_27018E6D: 9729 edx = MEM32(eax + 0x4); /* 0x27018E6D: mov edx, dword ptr [eax + 4] */ 9730 ecx = MEM32(edx); /* 0x27018E70: mov ecx, dword ptr [edx] */ 9731 /* cmp eax, ecx */ /* 0x27018E72: cmp eax, ecx */ 9732 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9734 _flag_k = FK_CMP; 9735 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EE4; /* 0x27018E74: jne 0x27018ee4 */ 9736 L_27018E76: 9737 ecx = MEM32(edx + 0x8); /* 0x27018E76: mov ecx, dword ptr [edx + 8] */ 9738 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E79: mov dl, byte ptr [ecx + 0x10] */ 9739 /* test LO8(edx), LO8(edx) */ /* 0x27018E7C: test dl, dl */ 9740 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9741 _cf = 0; 9742 _flag_k = FK_NARROW(FK_TEST, 24); 9743 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018ECB; /* 0x27018E7E: jne 0x27018ecb */ 9744 L_27018E80: 9745 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018E80: mov byte ptr [ecx + 0x10], bl */ 9746 ecx = MEM32(eax + 0x4); /* 0x27018E83: mov ecx, dword ptr [eax + 4] */ 9747 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018E86: mov byte ptr [ecx + 0x10], 0 */ 9748 ecx = MEM32(eax + 0x4); /* 0x27018E8A: mov ecx, dword ptr [eax + 4] */ 9749 edx = MEM32(ecx + 0x8); /* 0x27018E8D: mov edx, dword ptr [ecx + 8] */ 9750 esi = MEM32(edx); /* 0x27018E90: mov esi, dword ptr [edx] */ 9751 MEM32(ecx + 0x8) = esi; /* 0x27018E92: mov dword ptr [ecx + 8], esi */ 9752 esi = MEM32(edx); /* 0x27018E95: mov esi, dword ptr [edx] */ 9753 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018E97: cmp esi, dword ptr [edi + 8] */ 9754 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9756 _flag_k = FK_CMP; 9757 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E9F; /* 0x27018E9A: je 0x27018e9f */ 9758 L_27018E9C: 9759 MEM32(esi + 0x4) = ecx; /* 0x27018E9C: mov dword ptr [esi + 4], ecx */ 9760 L_27018E9F: 9761 esi = MEM32(ecx + 0x4); /* 0x27018E9F: mov esi, dword ptr [ecx + 4] */ 9762 MEM32(edx + 0x4) = esi; /* 0x27018EA2: mov dword ptr [edx + 4], esi */ 9763 esi = MEM32(edi + 0x4); /* 0x27018EA5: mov esi, dword ptr [edi + 4] */ 9764 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018EA8: cmp ecx, dword ptr [esi + 4] */ 9765 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9767 _flag_k = FK_CMP; 9768 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EB2; /* 0x27018EAB: jne 0x27018eb2 */ 9769 L_27018EAD: 9770 MEM32(esi + 0x4) = edx; /* 0x27018EAD: mov dword ptr [esi + 4], edx */ 9771 goto L_27018EC0; /* 0x27018EB0: jmp 0x27018ec0 */ 9772 L_27018EB2: 9773 esi = MEM32(ecx + 0x4); /* 0x27018EB2: mov esi, dword ptr [ecx + 4] */ 9774 /* cmp ecx, MEM32(esi) */ /* 0x27018EB5: cmp ecx, dword ptr [esi] */ 9775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9777 _flag_k = FK_CMP; 9778 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EBD; /* 0x27018EB7: jne 0x27018ebd */ 9779 L_27018EB9: 9780 MEM32(esi) = edx; /* 0x27018EB9: mov dword ptr [esi], edx */ 9781 goto L_27018EC0; /* 0x27018EBB: jmp 0x27018ec0 */ 9782 L_27018EBD: 9783 MEM32(esi + 0x8) = edx; /* 0x27018EBD: mov dword ptr [esi + 8], edx */ 9784 L_27018EC0: 9785 MEM32(edx) = ecx; /* 0x27018EC0: mov dword ptr [edx], ecx */ 9786 MEM32(ecx + 0x4) = edx; /* 0x27018EC2: mov dword ptr [ecx + 4], edx */ 9787 edx = MEM32(eax + 0x4); /* 0x27018EC5: mov edx, dword ptr [eax + 4] */ 9788 ecx = MEM32(edx + 0x8); /* 0x27018EC8: mov ecx, dword ptr [edx + 8] */ 9789 L_27018ECB: 9790 edx = MEM32(ecx); /* 0x27018ECB: mov edx, dword ptr [ecx] */ 9791 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ECD: cmp byte ptr [edx + 0x10], bl */ 9792 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9794 _flag_k = FK_NARROW(FK_CMP, 24); 9795 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018ED0: jne 0x27018f66 */ 9796 L_27018ED6: 9797 edx = MEM32(ecx + 0x8); /* 0x27018ED6: mov edx, dword ptr [ecx + 8] */ 9798 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ED9: cmp byte ptr [edx + 0x10], bl */ 9799 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9800 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9801 _flag_k = FK_NARROW(FK_CMP, 24); 9802 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018EDC: jne 0x27018f66 */ 9803 L_27018EE2: 9804 goto L_27018F4E; /* 0x27018EE2: jmp 0x27018f4e */ 9805 L_27018EE4: 9806 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018EE4: mov dl, byte ptr [ecx + 0x10] */ 9807 /* test LO8(edx), LO8(edx) */ /* 0x27018EE7: test dl, dl */ 9808 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9809 _cf = 0; 9810 _flag_k = FK_NARROW(FK_TEST, 24); 9811 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018F37; /* 0x27018EE9: jne 0x27018f37 */ 9812 L_27018EEB: 9813 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018EEB: mov byte ptr [ecx + 0x10], bl */ 9814 ecx = MEM32(eax + 0x4); /* 0x27018EEE: mov ecx, dword ptr [eax + 4] */ 9815 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018EF1: mov byte ptr [ecx + 0x10], 0 */ 9816 ecx = MEM32(eax + 0x4); /* 0x27018EF5: mov ecx, dword ptr [eax + 4] */ 9817 edx = MEM32(ecx); /* 0x27018EF8: mov edx, dword ptr [ecx] */ 9818 esi = MEM32(edx + 0x8); /* 0x27018EFA: mov esi, dword ptr [edx + 8] */ 9819 MEM32(ecx) = esi; /* 0x27018EFD: mov dword ptr [ecx], esi */ 9820 esi = MEM32(edx + 0x8); /* 0x27018EFF: mov esi, dword ptr [edx + 8] */ 9821 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F02: cmp esi, dword ptr [edi + 8] */ 9822 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9824 _flag_k = FK_CMP; 9825 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F0A; /* 0x27018F05: je 0x27018f0a */ 9826 L_27018F07: 9827 MEM32(esi + 0x4) = ecx; /* 0x27018F07: mov dword ptr [esi + 4], ecx */ 9828 L_27018F0A: 9829 esi = MEM32(ecx + 0x4); /* 0x27018F0A: mov esi, dword ptr [ecx + 4] */ 9830 MEM32(edx + 0x4) = esi; /* 0x27018F0D: mov dword ptr [edx + 4], esi */ 9831 esi = MEM32(edi + 0x4); /* 0x27018F10: mov esi, dword ptr [edi + 4] */ 9832 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F13: cmp ecx, dword ptr [esi + 4] */ 9833 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9835 _flag_k = FK_CMP; 9836 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F1D; /* 0x27018F16: jne 0x27018f1d */ 9837 L_27018F18: 9838 MEM32(esi + 0x4) = edx; /* 0x27018F18: mov dword ptr [esi + 4], edx */ 9839 goto L_27018F2C; /* 0x27018F1B: jmp 0x27018f2c */ 9840 L_27018F1D: 9841 esi = MEM32(ecx + 0x4); /* 0x27018F1D: mov esi, dword ptr [ecx + 4] */ 9842 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F20: cmp ecx, dword ptr [esi + 8] */ 9843 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9845 _flag_k = FK_CMP; 9846 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F2A; /* 0x27018F23: jne 0x27018f2a */ 9847 L_27018F25: 9848 MEM32(esi + 0x8) = edx; /* 0x27018F25: mov dword ptr [esi + 8], edx */ 9849 goto L_27018F2C; /* 0x27018F28: jmp 0x27018f2c */ 9850 L_27018F2A: 9851 MEM32(esi) = edx; /* 0x27018F2A: mov dword ptr [esi], edx */ 9852 L_27018F2C: 9853 MEM32(edx + 0x8) = ecx; /* 0x27018F2C: mov dword ptr [edx + 8], ecx */ 9854 MEM32(ecx + 0x4) = edx; /* 0x27018F2F: mov dword ptr [ecx + 4], edx */ 9855 edx = MEM32(eax + 0x4); /* 0x27018F32: mov edx, dword ptr [eax + 4] */ 9856 ecx = MEM32(edx); /* 0x27018F35: mov ecx, dword ptr [edx] */ 9857 L_27018F37: 9858 edx = MEM32(ecx + 0x8); /* 0x27018F37: mov edx, dword ptr [ecx + 8] */ 9859 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F3A: cmp byte ptr [edx + 0x10], bl */ 9860 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9862 _flag_k = FK_NARROW(FK_CMP, 24); 9863 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F3D: jne 0x27019013 */ 9864 L_27018F43: 9865 edx = MEM32(ecx); /* 0x27018F43: mov edx, dword ptr [ecx] */ 9866 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F45: cmp byte ptr [edx + 0x10], bl */ 9867 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9869 _flag_k = FK_NARROW(FK_CMP, 24); 9870 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F48: jne 0x27019013 */ 9871 L_27018F4E: 9872 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F4E: mov byte ptr [ecx + 0x10], 0 */ 9873 ecx = MEM32(edi + 0x4); /* 0x27018F52: mov ecx, dword ptr [edi + 4] */ 9874 eax = MEM32(eax + 0x4); /* 0x27018F55: mov eax, dword ptr [eax + 4] */ 9875 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27018F58: cmp eax, dword ptr [ecx + 4] */ 9876 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9878 _flag_k = FK_CMP; 9879 RECOMP_BACKEDGE(); 9880 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E64; /* 0x27018F5B: jne 0x27018e64 */ 9881 L_27018F61: 9882 goto L_270190B2; /* 0x27018F61: jmp 0x270190b2 */ 9883 L_27018F66: 9884 edx = MEM32(ecx + 0x8); /* 0x27018F66: mov edx, dword ptr [ecx + 8] */ 9885 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F69: cmp byte ptr [edx + 0x10], bl */ 9886 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9888 _flag_k = FK_NARROW(FK_CMP, 24); 9889 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FB7; /* 0x27018F6C: jne 0x27018fb7 */ 9890 L_27018F6E: 9891 edx = MEM32(ecx); /* 0x27018F6E: mov edx, dword ptr [ecx] */ 9892 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018F70: mov byte ptr [edx + 0x10], bl */ 9893 edx = MEM32(ecx); /* 0x27018F73: mov edx, dword ptr [ecx] */ 9894 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F75: mov byte ptr [ecx + 0x10], 0 */ 9895 esi = MEM32(edx + 0x8); /* 0x27018F79: mov esi, dword ptr [edx + 8] */ 9896 MEM32(ecx) = esi; /* 0x27018F7C: mov dword ptr [ecx], esi */ 9897 esi = MEM32(edx + 0x8); /* 0x27018F7E: mov esi, dword ptr [edx + 8] */ 9898 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F81: cmp esi, dword ptr [edi + 8] */ 9899 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9901 _flag_k = FK_CMP; 9902 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F89; /* 0x27018F84: je 0x27018f89 */ 9903 L_27018F86: 9904 MEM32(esi + 0x4) = ecx; /* 0x27018F86: mov dword ptr [esi + 4], ecx */ 9905 L_27018F89: 9906 esi = MEM32(ecx + 0x4); /* 0x27018F89: mov esi, dword ptr [ecx + 4] */ 9907 MEM32(edx + 0x4) = esi; /* 0x27018F8C: mov dword ptr [edx + 4], esi */ 9908 esi = MEM32(edi + 0x4); /* 0x27018F8F: mov esi, dword ptr [edi + 4] */ 9909 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F92: cmp ecx, dword ptr [esi + 4] */ 9910 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9912 _flag_k = FK_CMP; 9913 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F9C; /* 0x27018F95: jne 0x27018f9c */ 9914 L_27018F97: 9915 MEM32(esi + 0x4) = edx; /* 0x27018F97: mov dword ptr [esi + 4], edx */ 9916 goto L_27018FAB; /* 0x27018F9A: jmp 0x27018fab */ 9917 L_27018F9C: 9918 esi = MEM32(ecx + 0x4); /* 0x27018F9C: mov esi, dword ptr [ecx + 4] */ 9919 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F9F: cmp ecx, dword ptr [esi + 8] */ 9920 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9922 _flag_k = FK_CMP; 9923 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FA9; /* 0x27018FA2: jne 0x27018fa9 */ 9924 L_27018FA4: 9925 MEM32(esi + 0x8) = edx; /* 0x27018FA4: mov dword ptr [esi + 8], edx */ 9926 goto L_27018FAB; /* 0x27018FA7: jmp 0x27018fab */ 9927 L_27018FA9: 9928 MEM32(esi) = edx; /* 0x27018FA9: mov dword ptr [esi], edx */ 9929 L_27018FAB: 9930 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 9931 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 9932 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 9933 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 9934 L_27018FB7: 9935 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 9936 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 9937 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 9938 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 9939 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 9940 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 9941 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 9942 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 9943 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 9944 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 9945 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 9946 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 9947 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: cmp esi, dword ptr [edi + 8] */ 9948 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9950 _flag_k = FK_CMP; 9951 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 9952 L_27018FDE: 9953 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 9954 L_27018FE1: 9955 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 9956 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 9957 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 9958 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: cmp ecx, dword ptr [esi + 4] */ 9959 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 9960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9961 _flag_k = FK_CMP; 9962 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 9963 L_27018FEF: 9964 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 9965 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 9966 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 9967 L_27018FF9: 9968 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 9969 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: cmp ecx, dword ptr [esi] */ 9970 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 9971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9972 _flag_k = FK_CMP; 9973 if (CMP_NE(_flag_a, _flag_b)) goto L_27019009; /* 0x27018FFE: jne 0x27019009 */ 9974 L_27019000: 9975 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 9976 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 9977 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 9978 L_27019009: 9979 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 9980 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 9981 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 9982 L_27019013: 9983 edx = MEM32(ecx); /* 0x27019013: mov edx, dword ptr [ecx] */ 9984 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27019015: cmp byte ptr [edx + 0x10], bl */ 9985 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9987 _flag_k = FK_NARROW(FK_CMP, 24); 9988 if (CMP_NE(_flag_a, _flag_b)) goto L_27019061; /* 0x27019018: jne 0x27019061 */ 9989 L_2701901A: 9990 edx = MEM32(ecx + 0x8); /* 0x2701901A: mov edx, dword ptr [ecx + 8] */ 9991 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701901D: mov byte ptr [edx + 0x10], bl */ 9992 edx = MEM32(ecx + 0x8); /* 0x27019020: mov edx, dword ptr [ecx + 8] */ 9993 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019023: mov byte ptr [ecx + 0x10], 0 */ 9994 esi = MEM32(edx); /* 0x27019027: mov esi, dword ptr [edx] */ 9995 MEM32(ecx + 0x8) = esi; /* 0x27019029: mov dword ptr [ecx + 8], esi */ 9996 esi = MEM32(edx); /* 0x2701902C: mov esi, dword ptr [edx] */ 9997 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701902E: cmp esi, dword ptr [edi + 8] */ 9998 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10000 _flag_k = FK_CMP; 10001 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019036; /* 0x27019031: je 0x27019036 */ 10002 L_27019033: 10003 MEM32(esi + 0x4) = ecx; /* 0x27019033: mov dword ptr [esi + 4], ecx */ 10004 L_27019036: 10005 esi = MEM32(ecx + 0x4); /* 0x27019036: mov esi, dword ptr [ecx + 4] */ 10006 MEM32(edx + 0x4) = esi; /* 0x27019039: mov dword ptr [edx + 4], esi */ 10007 esi = MEM32(edi + 0x4); /* 0x2701903C: mov esi, dword ptr [edi + 4] */ 10008 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701903F: cmp ecx, dword ptr [esi + 4] */ 10009 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10011 _flag_k = FK_CMP; 10012 if (CMP_NE(_flag_a, _flag_b)) goto L_27019049; /* 0x27019042: jne 0x27019049 */ 10013 L_27019044: 10014 MEM32(esi + 0x4) = edx; /* 0x27019044: mov dword ptr [esi + 4], edx */ 10015 goto L_27019057; /* 0x27019047: jmp 0x27019057 */ 10016 L_27019049: 10017 esi = MEM32(ecx + 0x4); /* 0x27019049: mov esi, dword ptr [ecx + 4] */ 10018 /* cmp ecx, MEM32(esi) */ /* 0x2701904C: cmp ecx, dword ptr [esi] */ 10019 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10021 _flag_k = FK_CMP; 10022 if (CMP_NE(_flag_a, _flag_b)) goto L_27019054; /* 0x2701904E: jne 0x27019054 */ 10023 L_27019050: 10024 MEM32(esi) = edx; /* 0x27019050: mov dword ptr [esi], edx */ 10025 goto L_27019057; /* 0x27019052: jmp 0x27019057 */ 10026 L_27019054: 10027 MEM32(esi + 0x8) = edx; /* 0x27019054: mov dword ptr [esi + 8], edx */ 10028 L_27019057: 10029 MEM32(edx) = ecx; /* 0x27019057: mov dword ptr [edx], ecx */ 10030 MEM32(ecx + 0x4) = edx; /* 0x27019059: mov dword ptr [ecx + 4], edx */ 10031 ecx = MEM32(eax + 0x4); /* 0x2701905C: mov ecx, dword ptr [eax + 4] */ 10032 ecx = MEM32(ecx); /* 0x2701905F: mov ecx, dword ptr [ecx] */ 10033 L_27019061: 10034 edx = MEM32(eax + 0x4); /* 0x27019061: mov edx, dword ptr [eax + 4] */ 10035 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27019064: mov dl, byte ptr [edx + 0x10] */ 10036 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27019067: mov byte ptr [ecx + 0x10], dl */ 10037 edx = MEM32(eax + 0x4); /* 0x2701906A: mov edx, dword ptr [eax + 4] */ 10038 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701906D: mov byte ptr [edx + 0x10], bl */ 10039 ecx = MEM32(ecx); /* 0x27019070: mov ecx, dword ptr [ecx] */ 10040 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019072: mov byte ptr [ecx + 0x10], bl */ 10041 ecx = MEM32(eax + 0x4); /* 0x27019075: mov ecx, dword ptr [eax + 4] */ 10042 edx = MEM32(ecx); /* 0x27019078: mov edx, dword ptr [ecx] */ 10043 esi = MEM32(edx + 0x8); /* 0x2701907A: mov esi, dword ptr [edx + 8] */ 10044 MEM32(ecx) = esi; /* 0x2701907D: mov dword ptr [ecx], esi */ 10045 esi = MEM32(edx + 0x8); /* 0x2701907F: mov esi, dword ptr [edx + 8] */ 10046 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27019082: cmp esi, dword ptr [edi + 8] */ 10047 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10049 _flag_k = FK_CMP; 10050 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701908A; /* 0x27019085: je 0x2701908a */ 10051 L_27019087: 10052 MEM32(esi + 0x4) = ecx; /* 0x27019087: mov dword ptr [esi + 4], ecx */ 10053 L_2701908A: 10054 esi = MEM32(ecx + 0x4); /* 0x2701908A: mov esi, dword ptr [ecx + 4] */ 10055 MEM32(edx + 0x4) = esi; /* 0x2701908D: mov dword ptr [edx + 4], esi */ 10056 esi = MEM32(edi + 0x4); /* 0x27019090: mov esi, dword ptr [edi + 4] */ 10057 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27019093: cmp ecx, dword ptr [esi + 4] */ 10058 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10060 _flag_k = FK_CMP; 10061 if (CMP_NE(_flag_a, _flag_b)) goto L_2701909D; /* 0x27019096: jne 0x2701909d */ 10062 L_27019098: 10063 MEM32(esi + 0x4) = edx; /* 0x27019098: mov dword ptr [esi + 4], edx */ 10064 goto L_270190AC; /* 0x2701909B: jmp 0x270190ac */ 10065 L_2701909D: 10066 esi = MEM32(ecx + 0x4); /* 0x2701909D: mov esi, dword ptr [ecx + 4] */ 10067 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x270190A0: cmp ecx, dword ptr [esi + 8] */ 10068 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10070 _flag_k = FK_CMP; 10071 if (CMP_NE(_flag_a, _flag_b)) goto L_270190AA; /* 0x270190A3: jne 0x270190aa */ 10072 L_270190A5: 10073 MEM32(esi + 0x8) = edx; /* 0x270190A5: mov dword ptr [esi + 8], edx */ 10074 goto L_270190AC; /* 0x270190A8: jmp 0x270190ac */ 10075 L_270190AA: 10076 MEM32(esi) = edx; /* 0x270190AA: mov dword ptr [esi], edx */ 10077 L_270190AC: 10078 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 10079 L_270190AF: 10080 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 10081 L_270190B2: 10082 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 10083 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 10084 PUSH32(esp, edx); /* 0x270190B8: push edx */ 10085 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 10086 RECOMP_FLAGS_IN(); 10087 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 10088 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 10089 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10090 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10091 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 10092 _flag_k = FK_ADD; 10093 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10094 eax = eax - 1; /* 0x270190C7: dec eax */ 10095 _flag_k = FK_DEC; 10096 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 10097 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 10098 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 10099 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 10100 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 10101 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 10102 esp = ebp; /* 0x270190D3: mov esp, ebp */ 10103 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 10104 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 10105 RECOMP_REGS_OUT(); 10106 } 10107 10108 void sub_27018ECB(void) { 10109 int _fpu_cmp = 0; 10110 uint32_t _cf = 0; 10111 int _df = 1; 10112 uint32_t _flag_k = FK_NONE; 10113 uint32_t _flag_a = 0, _flag_b = 0; 10114 uint32_t _itail_tgt = 0; 10115 RECOMP_REGS_LOCALS 10116 RECOMP_ENTER(0x27018ECBu); 10117 10118 goto L_27018ECB; 10119 L_27018E64: 10120 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x27018E64: cmp byte ptr [eax + 0x10], bl */ 10121 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10123 _flag_k = FK_NARROW(FK_CMP, 24); 10124 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E67: jne 0x270190b2 */ 10125 L_27018E6D: 10126 edx = MEM32(eax + 0x4); /* 0x27018E6D: mov edx, dword ptr [eax + 4] */ 10127 ecx = MEM32(edx); /* 0x27018E70: mov ecx, dword ptr [edx] */ 10128 /* cmp eax, ecx */ /* 0x27018E72: cmp eax, ecx */ 10129 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10131 _flag_k = FK_CMP; 10132 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EE4; /* 0x27018E74: jne 0x27018ee4 */ 10133 L_27018E76: 10134 ecx = MEM32(edx + 0x8); /* 0x27018E76: mov ecx, dword ptr [edx + 8] */ 10135 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E79: mov dl, byte ptr [ecx + 0x10] */ 10136 /* test LO8(edx), LO8(edx) */ /* 0x27018E7C: test dl, dl */ 10137 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10138 _cf = 0; 10139 _flag_k = FK_NARROW(FK_TEST, 24); 10140 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018ECB; /* 0x27018E7E: jne 0x27018ecb */ 10141 L_27018E80: 10142 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018E80: mov byte ptr [ecx + 0x10], bl */ 10143 ecx = MEM32(eax + 0x4); /* 0x27018E83: mov ecx, dword ptr [eax + 4] */ 10144 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018E86: mov byte ptr [ecx + 0x10], 0 */ 10145 ecx = MEM32(eax + 0x4); /* 0x27018E8A: mov ecx, dword ptr [eax + 4] */ 10146 edx = MEM32(ecx + 0x8); /* 0x27018E8D: mov edx, dword ptr [ecx + 8] */ 10147 esi = MEM32(edx); /* 0x27018E90: mov esi, dword ptr [edx] */ 10148 MEM32(ecx + 0x8) = esi; /* 0x27018E92: mov dword ptr [ecx + 8], esi */ 10149 esi = MEM32(edx); /* 0x27018E95: mov esi, dword ptr [edx] */ 10150 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018E97: cmp esi, dword ptr [edi + 8] */ 10151 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10153 _flag_k = FK_CMP; 10154 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E9F; /* 0x27018E9A: je 0x27018e9f */ 10155 L_27018E9C: 10156 MEM32(esi + 0x4) = ecx; /* 0x27018E9C: mov dword ptr [esi + 4], ecx */ 10157 L_27018E9F: 10158 esi = MEM32(ecx + 0x4); /* 0x27018E9F: mov esi, dword ptr [ecx + 4] */ 10159 MEM32(edx + 0x4) = esi; /* 0x27018EA2: mov dword ptr [edx + 4], esi */ 10160 esi = MEM32(edi + 0x4); /* 0x27018EA5: mov esi, dword ptr [edi + 4] */ 10161 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018EA8: cmp ecx, dword ptr [esi + 4] */ 10162 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10164 _flag_k = FK_CMP; 10165 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EB2; /* 0x27018EAB: jne 0x27018eb2 */ 10166 L_27018EAD: 10167 MEM32(esi + 0x4) = edx; /* 0x27018EAD: mov dword ptr [esi + 4], edx */ 10168 goto L_27018EC0; /* 0x27018EB0: jmp 0x27018ec0 */ 10169 L_27018EB2: 10170 esi = MEM32(ecx + 0x4); /* 0x27018EB2: mov esi, dword ptr [ecx + 4] */ 10171 /* cmp ecx, MEM32(esi) */ /* 0x27018EB5: cmp ecx, dword ptr [esi] */ 10172 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10174 _flag_k = FK_CMP; 10175 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EBD; /* 0x27018EB7: jne 0x27018ebd */ 10176 L_27018EB9: 10177 MEM32(esi) = edx; /* 0x27018EB9: mov dword ptr [esi], edx */ 10178 goto L_27018EC0; /* 0x27018EBB: jmp 0x27018ec0 */ 10179 L_27018EBD: 10180 MEM32(esi + 0x8) = edx; /* 0x27018EBD: mov dword ptr [esi + 8], edx */ 10181 L_27018EC0: 10182 MEM32(edx) = ecx; /* 0x27018EC0: mov dword ptr [edx], ecx */ 10183 MEM32(ecx + 0x4) = edx; /* 0x27018EC2: mov dword ptr [ecx + 4], edx */ 10184 edx = MEM32(eax + 0x4); /* 0x27018EC5: mov edx, dword ptr [eax + 4] */ 10185 ecx = MEM32(edx + 0x8); /* 0x27018EC8: mov ecx, dword ptr [edx + 8] */ 10186 L_27018ECB: 10187 edx = MEM32(ecx); /* 0x27018ECB: mov edx, dword ptr [ecx] */ 10188 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ECD: cmp byte ptr [edx + 0x10], bl */ 10189 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10191 _flag_k = FK_NARROW(FK_CMP, 24); 10192 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018ED0: jne 0x27018f66 */ 10193 L_27018ED6: 10194 edx = MEM32(ecx + 0x8); /* 0x27018ED6: mov edx, dword ptr [ecx + 8] */ 10195 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ED9: cmp byte ptr [edx + 0x10], bl */ 10196 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10198 _flag_k = FK_NARROW(FK_CMP, 24); 10199 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018EDC: jne 0x27018f66 */ 10200 L_27018EE2: 10201 goto L_27018F4E; /* 0x27018EE2: jmp 0x27018f4e */ 10202 L_27018EE4: 10203 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018EE4: mov dl, byte ptr [ecx + 0x10] */ 10204 /* test LO8(edx), LO8(edx) */ /* 0x27018EE7: test dl, dl */ 10205 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10206 _cf = 0; 10207 _flag_k = FK_NARROW(FK_TEST, 24); 10208 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018F37; /* 0x27018EE9: jne 0x27018f37 */ 10209 L_27018EEB: 10210 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018EEB: mov byte ptr [ecx + 0x10], bl */ 10211 ecx = MEM32(eax + 0x4); /* 0x27018EEE: mov ecx, dword ptr [eax + 4] */ 10212 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018EF1: mov byte ptr [ecx + 0x10], 0 */ 10213 ecx = MEM32(eax + 0x4); /* 0x27018EF5: mov ecx, dword ptr [eax + 4] */ 10214 edx = MEM32(ecx); /* 0x27018EF8: mov edx, dword ptr [ecx] */ 10215 esi = MEM32(edx + 0x8); /* 0x27018EFA: mov esi, dword ptr [edx + 8] */ 10216 MEM32(ecx) = esi; /* 0x27018EFD: mov dword ptr [ecx], esi */ 10217 esi = MEM32(edx + 0x8); /* 0x27018EFF: mov esi, dword ptr [edx + 8] */ 10218 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F02: cmp esi, dword ptr [edi + 8] */ 10219 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10221 _flag_k = FK_CMP; 10222 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F0A; /* 0x27018F05: je 0x27018f0a */ 10223 L_27018F07: 10224 MEM32(esi + 0x4) = ecx; /* 0x27018F07: mov dword ptr [esi + 4], ecx */ 10225 L_27018F0A: 10226 esi = MEM32(ecx + 0x4); /* 0x27018F0A: mov esi, dword ptr [ecx + 4] */ 10227 MEM32(edx + 0x4) = esi; /* 0x27018F0D: mov dword ptr [edx + 4], esi */ 10228 esi = MEM32(edi + 0x4); /* 0x27018F10: mov esi, dword ptr [edi + 4] */ 10229 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F13: cmp ecx, dword ptr [esi + 4] */ 10230 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10232 _flag_k = FK_CMP; 10233 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F1D; /* 0x27018F16: jne 0x27018f1d */ 10234 L_27018F18: 10235 MEM32(esi + 0x4) = edx; /* 0x27018F18: mov dword ptr [esi + 4], edx */ 10236 goto L_27018F2C; /* 0x27018F1B: jmp 0x27018f2c */ 10237 L_27018F1D: 10238 esi = MEM32(ecx + 0x4); /* 0x27018F1D: mov esi, dword ptr [ecx + 4] */ 10239 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F20: cmp ecx, dword ptr [esi + 8] */ 10240 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10242 _flag_k = FK_CMP; 10243 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F2A; /* 0x27018F23: jne 0x27018f2a */ 10244 L_27018F25: 10245 MEM32(esi + 0x8) = edx; /* 0x27018F25: mov dword ptr [esi + 8], edx */ 10246 goto L_27018F2C; /* 0x27018F28: jmp 0x27018f2c */ 10247 L_27018F2A: 10248 MEM32(esi) = edx; /* 0x27018F2A: mov dword ptr [esi], edx */ 10249 L_27018F2C: 10250 MEM32(edx + 0x8) = ecx; /* 0x27018F2C: mov dword ptr [edx + 8], ecx */ 10251 MEM32(ecx + 0x4) = edx; /* 0x27018F2F: mov dword ptr [ecx + 4], edx */ 10252 edx = MEM32(eax + 0x4); /* 0x27018F32: mov edx, dword ptr [eax + 4] */ 10253 ecx = MEM32(edx); /* 0x27018F35: mov ecx, dword ptr [edx] */ 10254 L_27018F37: 10255 edx = MEM32(ecx + 0x8); /* 0x27018F37: mov edx, dword ptr [ecx + 8] */ 10256 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F3A: cmp byte ptr [edx + 0x10], bl */ 10257 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10259 _flag_k = FK_NARROW(FK_CMP, 24); 10260 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F3D: jne 0x27019013 */ 10261 L_27018F43: 10262 edx = MEM32(ecx); /* 0x27018F43: mov edx, dword ptr [ecx] */ 10263 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F45: cmp byte ptr [edx + 0x10], bl */ 10264 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10266 _flag_k = FK_NARROW(FK_CMP, 24); 10267 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F48: jne 0x27019013 */ 10268 L_27018F4E: 10269 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F4E: mov byte ptr [ecx + 0x10], 0 */ 10270 ecx = MEM32(edi + 0x4); /* 0x27018F52: mov ecx, dword ptr [edi + 4] */ 10271 eax = MEM32(eax + 0x4); /* 0x27018F55: mov eax, dword ptr [eax + 4] */ 10272 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27018F58: cmp eax, dword ptr [ecx + 4] */ 10273 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10275 _flag_k = FK_CMP; 10276 RECOMP_BACKEDGE(); 10277 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E64; /* 0x27018F5B: jne 0x27018e64 */ 10278 L_27018F61: 10279 goto L_270190B2; /* 0x27018F61: jmp 0x270190b2 */ 10280 L_27018F66: 10281 edx = MEM32(ecx + 0x8); /* 0x27018F66: mov edx, dword ptr [ecx + 8] */ 10282 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F69: cmp byte ptr [edx + 0x10], bl */ 10283 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10285 _flag_k = FK_NARROW(FK_CMP, 24); 10286 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FB7; /* 0x27018F6C: jne 0x27018fb7 */ 10287 L_27018F6E: 10288 edx = MEM32(ecx); /* 0x27018F6E: mov edx, dword ptr [ecx] */ 10289 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018F70: mov byte ptr [edx + 0x10], bl */ 10290 edx = MEM32(ecx); /* 0x27018F73: mov edx, dword ptr [ecx] */ 10291 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F75: mov byte ptr [ecx + 0x10], 0 */ 10292 esi = MEM32(edx + 0x8); /* 0x27018F79: mov esi, dword ptr [edx + 8] */ 10293 MEM32(ecx) = esi; /* 0x27018F7C: mov dword ptr [ecx], esi */ 10294 esi = MEM32(edx + 0x8); /* 0x27018F7E: mov esi, dword ptr [edx + 8] */ 10295 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F81: cmp esi, dword ptr [edi + 8] */ 10296 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10298 _flag_k = FK_CMP; 10299 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F89; /* 0x27018F84: je 0x27018f89 */ 10300 L_27018F86: 10301 MEM32(esi + 0x4) = ecx; /* 0x27018F86: mov dword ptr [esi + 4], ecx */ 10302 L_27018F89: 10303 esi = MEM32(ecx + 0x4); /* 0x27018F89: mov esi, dword ptr [ecx + 4] */ 10304 MEM32(edx + 0x4) = esi; /* 0x27018F8C: mov dword ptr [edx + 4], esi */ 10305 esi = MEM32(edi + 0x4); /* 0x27018F8F: mov esi, dword ptr [edi + 4] */ 10306 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F92: cmp ecx, dword ptr [esi + 4] */ 10307 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10309 _flag_k = FK_CMP; 10310 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F9C; /* 0x27018F95: jne 0x27018f9c */ 10311 L_27018F97: 10312 MEM32(esi + 0x4) = edx; /* 0x27018F97: mov dword ptr [esi + 4], edx */ 10313 goto L_27018FAB; /* 0x27018F9A: jmp 0x27018fab */ 10314 L_27018F9C: 10315 esi = MEM32(ecx + 0x4); /* 0x27018F9C: mov esi, dword ptr [ecx + 4] */ 10316 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F9F: cmp ecx, dword ptr [esi + 8] */ 10317 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10319 _flag_k = FK_CMP; 10320 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FA9; /* 0x27018FA2: jne 0x27018fa9 */ 10321 L_27018FA4: 10322 MEM32(esi + 0x8) = edx; /* 0x27018FA4: mov dword ptr [esi + 8], edx */ 10323 goto L_27018FAB; /* 0x27018FA7: jmp 0x27018fab */ 10324 L_27018FA9: 10325 MEM32(esi) = edx; /* 0x27018FA9: mov dword ptr [esi], edx */ 10326 L_27018FAB: 10327 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 10328 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 10329 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 10330 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 10331 L_27018FB7: 10332 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 10333 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 10334 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 10335 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 10336 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 10337 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 10338 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 10339 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 10340 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 10341 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 10342 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 10343 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 10344 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: cmp esi, dword ptr [edi + 8] */ 10345 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10347 _flag_k = FK_CMP; 10348 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 10349 L_27018FDE: 10350 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 10351 L_27018FE1: 10352 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 10353 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 10354 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 10355 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: cmp ecx, dword ptr [esi + 4] */ 10356 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10358 _flag_k = FK_CMP; 10359 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 10360 L_27018FEF: 10361 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 10362 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 10363 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 10364 L_27018FF9: 10365 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 10366 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: cmp ecx, dword ptr [esi] */ 10367 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10369 _flag_k = FK_CMP; 10370 if (CMP_NE(_flag_a, _flag_b)) goto L_27019009; /* 0x27018FFE: jne 0x27019009 */ 10371 L_27019000: 10372 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 10373 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 10374 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 10375 L_27019009: 10376 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 10377 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 10378 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 10379 L_27019013: 10380 edx = MEM32(ecx); /* 0x27019013: mov edx, dword ptr [ecx] */ 10381 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27019015: cmp byte ptr [edx + 0x10], bl */ 10382 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10384 _flag_k = FK_NARROW(FK_CMP, 24); 10385 if (CMP_NE(_flag_a, _flag_b)) goto L_27019061; /* 0x27019018: jne 0x27019061 */ 10386 L_2701901A: 10387 edx = MEM32(ecx + 0x8); /* 0x2701901A: mov edx, dword ptr [ecx + 8] */ 10388 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701901D: mov byte ptr [edx + 0x10], bl */ 10389 edx = MEM32(ecx + 0x8); /* 0x27019020: mov edx, dword ptr [ecx + 8] */ 10390 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019023: mov byte ptr [ecx + 0x10], 0 */ 10391 esi = MEM32(edx); /* 0x27019027: mov esi, dword ptr [edx] */ 10392 MEM32(ecx + 0x8) = esi; /* 0x27019029: mov dword ptr [ecx + 8], esi */ 10393 esi = MEM32(edx); /* 0x2701902C: mov esi, dword ptr [edx] */ 10394 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701902E: cmp esi, dword ptr [edi + 8] */ 10395 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10397 _flag_k = FK_CMP; 10398 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019036; /* 0x27019031: je 0x27019036 */ 10399 L_27019033: 10400 MEM32(esi + 0x4) = ecx; /* 0x27019033: mov dword ptr [esi + 4], ecx */ 10401 L_27019036: 10402 esi = MEM32(ecx + 0x4); /* 0x27019036: mov esi, dword ptr [ecx + 4] */ 10403 MEM32(edx + 0x4) = esi; /* 0x27019039: mov dword ptr [edx + 4], esi */ 10404 esi = MEM32(edi + 0x4); /* 0x2701903C: mov esi, dword ptr [edi + 4] */ 10405 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701903F: cmp ecx, dword ptr [esi + 4] */ 10406 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10408 _flag_k = FK_CMP; 10409 if (CMP_NE(_flag_a, _flag_b)) goto L_27019049; /* 0x27019042: jne 0x27019049 */ 10410 L_27019044: 10411 MEM32(esi + 0x4) = edx; /* 0x27019044: mov dword ptr [esi + 4], edx */ 10412 goto L_27019057; /* 0x27019047: jmp 0x27019057 */ 10413 L_27019049: 10414 esi = MEM32(ecx + 0x4); /* 0x27019049: mov esi, dword ptr [ecx + 4] */ 10415 /* cmp ecx, MEM32(esi) */ /* 0x2701904C: cmp ecx, dword ptr [esi] */ 10416 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10418 _flag_k = FK_CMP; 10419 if (CMP_NE(_flag_a, _flag_b)) goto L_27019054; /* 0x2701904E: jne 0x27019054 */ 10420 L_27019050: 10421 MEM32(esi) = edx; /* 0x27019050: mov dword ptr [esi], edx */ 10422 goto L_27019057; /* 0x27019052: jmp 0x27019057 */ 10423 L_27019054: 10424 MEM32(esi + 0x8) = edx; /* 0x27019054: mov dword ptr [esi + 8], edx */ 10425 L_27019057: 10426 MEM32(edx) = ecx; /* 0x27019057: mov dword ptr [edx], ecx */ 10427 MEM32(ecx + 0x4) = edx; /* 0x27019059: mov dword ptr [ecx + 4], edx */ 10428 ecx = MEM32(eax + 0x4); /* 0x2701905C: mov ecx, dword ptr [eax + 4] */ 10429 ecx = MEM32(ecx); /* 0x2701905F: mov ecx, dword ptr [ecx] */ 10430 L_27019061: 10431 edx = MEM32(eax + 0x4); /* 0x27019061: mov edx, dword ptr [eax + 4] */ 10432 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27019064: mov dl, byte ptr [edx + 0x10] */ 10433 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27019067: mov byte ptr [ecx + 0x10], dl */ 10434 edx = MEM32(eax + 0x4); /* 0x2701906A: mov edx, dword ptr [eax + 4] */ 10435 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701906D: mov byte ptr [edx + 0x10], bl */ 10436 ecx = MEM32(ecx); /* 0x27019070: mov ecx, dword ptr [ecx] */ 10437 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019072: mov byte ptr [ecx + 0x10], bl */ 10438 ecx = MEM32(eax + 0x4); /* 0x27019075: mov ecx, dword ptr [eax + 4] */ 10439 edx = MEM32(ecx); /* 0x27019078: mov edx, dword ptr [ecx] */ 10440 esi = MEM32(edx + 0x8); /* 0x2701907A: mov esi, dword ptr [edx + 8] */ 10441 MEM32(ecx) = esi; /* 0x2701907D: mov dword ptr [ecx], esi */ 10442 esi = MEM32(edx + 0x8); /* 0x2701907F: mov esi, dword ptr [edx + 8] */ 10443 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27019082: cmp esi, dword ptr [edi + 8] */ 10444 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10446 _flag_k = FK_CMP; 10447 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701908A; /* 0x27019085: je 0x2701908a */ 10448 L_27019087: 10449 MEM32(esi + 0x4) = ecx; /* 0x27019087: mov dword ptr [esi + 4], ecx */ 10450 L_2701908A: 10451 esi = MEM32(ecx + 0x4); /* 0x2701908A: mov esi, dword ptr [ecx + 4] */ 10452 MEM32(edx + 0x4) = esi; /* 0x2701908D: mov dword ptr [edx + 4], esi */ 10453 esi = MEM32(edi + 0x4); /* 0x27019090: mov esi, dword ptr [edi + 4] */ 10454 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27019093: cmp ecx, dword ptr [esi + 4] */ 10455 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10457 _flag_k = FK_CMP; 10458 if (CMP_NE(_flag_a, _flag_b)) goto L_2701909D; /* 0x27019096: jne 0x2701909d */ 10459 L_27019098: 10460 MEM32(esi + 0x4) = edx; /* 0x27019098: mov dword ptr [esi + 4], edx */ 10461 goto L_270190AC; /* 0x2701909B: jmp 0x270190ac */ 10462 L_2701909D: 10463 esi = MEM32(ecx + 0x4); /* 0x2701909D: mov esi, dword ptr [ecx + 4] */ 10464 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x270190A0: cmp ecx, dword ptr [esi + 8] */ 10465 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10467 _flag_k = FK_CMP; 10468 if (CMP_NE(_flag_a, _flag_b)) goto L_270190AA; /* 0x270190A3: jne 0x270190aa */ 10469 L_270190A5: 10470 MEM32(esi + 0x8) = edx; /* 0x270190A5: mov dword ptr [esi + 8], edx */ 10471 goto L_270190AC; /* 0x270190A8: jmp 0x270190ac */ 10472 L_270190AA: 10473 MEM32(esi) = edx; /* 0x270190AA: mov dword ptr [esi], edx */ 10474 L_270190AC: 10475 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 10476 L_270190AF: 10477 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 10478 L_270190B2: 10479 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 10480 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 10481 PUSH32(esp, edx); /* 0x270190B8: push edx */ 10482 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 10483 RECOMP_FLAGS_IN(); 10484 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 10485 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 10486 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10488 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 10489 _flag_k = FK_ADD; 10490 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10491 eax = eax - 1; /* 0x270190C7: dec eax */ 10492 _flag_k = FK_DEC; 10493 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 10494 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 10495 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 10496 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 10497 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 10498 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 10499 esp = ebp; /* 0x270190D3: mov esp, ebp */ 10500 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 10501 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 10502 RECOMP_REGS_OUT(); 10503 } 10504 10505 void sub_27018EE4(void) { 10506 int _fpu_cmp = 0; 10507 uint32_t _cf = 0; 10508 int _df = 1; 10509 uint32_t _flag_k = FK_NONE; 10510 uint32_t _flag_a = 0, _flag_b = 0; 10511 uint32_t _itail_tgt = 0; 10512 RECOMP_REGS_LOCALS 10513 RECOMP_ENTER(0x27018EE4u); 10514 10515 goto L_27018EE4; 10516 L_27018E64: 10517 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x27018E64: cmp byte ptr [eax + 0x10], bl */ 10518 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10520 _flag_k = FK_NARROW(FK_CMP, 24); 10521 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E67: jne 0x270190b2 */ 10522 L_27018E6D: 10523 edx = MEM32(eax + 0x4); /* 0x27018E6D: mov edx, dword ptr [eax + 4] */ 10524 ecx = MEM32(edx); /* 0x27018E70: mov ecx, dword ptr [edx] */ 10525 /* cmp eax, ecx */ /* 0x27018E72: cmp eax, ecx */ 10526 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10528 _flag_k = FK_CMP; 10529 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EE4; /* 0x27018E74: jne 0x27018ee4 */ 10530 L_27018E76: 10531 ecx = MEM32(edx + 0x8); /* 0x27018E76: mov ecx, dword ptr [edx + 8] */ 10532 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E79: mov dl, byte ptr [ecx + 0x10] */ 10533 /* test LO8(edx), LO8(edx) */ /* 0x27018E7C: test dl, dl */ 10534 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10535 _cf = 0; 10536 _flag_k = FK_NARROW(FK_TEST, 24); 10537 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018ECB; /* 0x27018E7E: jne 0x27018ecb */ 10538 L_27018E80: 10539 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018E80: mov byte ptr [ecx + 0x10], bl */ 10540 ecx = MEM32(eax + 0x4); /* 0x27018E83: mov ecx, dword ptr [eax + 4] */ 10541 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018E86: mov byte ptr [ecx + 0x10], 0 */ 10542 ecx = MEM32(eax + 0x4); /* 0x27018E8A: mov ecx, dword ptr [eax + 4] */ 10543 edx = MEM32(ecx + 0x8); /* 0x27018E8D: mov edx, dword ptr [ecx + 8] */ 10544 esi = MEM32(edx); /* 0x27018E90: mov esi, dword ptr [edx] */ 10545 MEM32(ecx + 0x8) = esi; /* 0x27018E92: mov dword ptr [ecx + 8], esi */ 10546 esi = MEM32(edx); /* 0x27018E95: mov esi, dword ptr [edx] */ 10547 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018E97: cmp esi, dword ptr [edi + 8] */ 10548 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10550 _flag_k = FK_CMP; 10551 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E9F; /* 0x27018E9A: je 0x27018e9f */ 10552 L_27018E9C: 10553 MEM32(esi + 0x4) = ecx; /* 0x27018E9C: mov dword ptr [esi + 4], ecx */ 10554 L_27018E9F: 10555 esi = MEM32(ecx + 0x4); /* 0x27018E9F: mov esi, dword ptr [ecx + 4] */ 10556 MEM32(edx + 0x4) = esi; /* 0x27018EA2: mov dword ptr [edx + 4], esi */ 10557 esi = MEM32(edi + 0x4); /* 0x27018EA5: mov esi, dword ptr [edi + 4] */ 10558 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018EA8: cmp ecx, dword ptr [esi + 4] */ 10559 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10561 _flag_k = FK_CMP; 10562 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EB2; /* 0x27018EAB: jne 0x27018eb2 */ 10563 L_27018EAD: 10564 MEM32(esi + 0x4) = edx; /* 0x27018EAD: mov dword ptr [esi + 4], edx */ 10565 goto L_27018EC0; /* 0x27018EB0: jmp 0x27018ec0 */ 10566 L_27018EB2: 10567 esi = MEM32(ecx + 0x4); /* 0x27018EB2: mov esi, dword ptr [ecx + 4] */ 10568 /* cmp ecx, MEM32(esi) */ /* 0x27018EB5: cmp ecx, dword ptr [esi] */ 10569 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10571 _flag_k = FK_CMP; 10572 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EBD; /* 0x27018EB7: jne 0x27018ebd */ 10573 L_27018EB9: 10574 MEM32(esi) = edx; /* 0x27018EB9: mov dword ptr [esi], edx */ 10575 goto L_27018EC0; /* 0x27018EBB: jmp 0x27018ec0 */ 10576 L_27018EBD: 10577 MEM32(esi + 0x8) = edx; /* 0x27018EBD: mov dword ptr [esi + 8], edx */ 10578 L_27018EC0: 10579 MEM32(edx) = ecx; /* 0x27018EC0: mov dword ptr [edx], ecx */ 10580 MEM32(ecx + 0x4) = edx; /* 0x27018EC2: mov dword ptr [ecx + 4], edx */ 10581 edx = MEM32(eax + 0x4); /* 0x27018EC5: mov edx, dword ptr [eax + 4] */ 10582 ecx = MEM32(edx + 0x8); /* 0x27018EC8: mov ecx, dword ptr [edx + 8] */ 10583 L_27018ECB: 10584 edx = MEM32(ecx); /* 0x27018ECB: mov edx, dword ptr [ecx] */ 10585 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ECD: cmp byte ptr [edx + 0x10], bl */ 10586 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10588 _flag_k = FK_NARROW(FK_CMP, 24); 10589 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018ED0: jne 0x27018f66 */ 10590 L_27018ED6: 10591 edx = MEM32(ecx + 0x8); /* 0x27018ED6: mov edx, dword ptr [ecx + 8] */ 10592 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ED9: cmp byte ptr [edx + 0x10], bl */ 10593 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10595 _flag_k = FK_NARROW(FK_CMP, 24); 10596 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018EDC: jne 0x27018f66 */ 10597 L_27018EE2: 10598 goto L_27018F4E; /* 0x27018EE2: jmp 0x27018f4e */ 10599 L_27018EE4: 10600 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018EE4: mov dl, byte ptr [ecx + 0x10] */ 10601 /* test LO8(edx), LO8(edx) */ /* 0x27018EE7: test dl, dl */ 10602 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10603 _cf = 0; 10604 _flag_k = FK_NARROW(FK_TEST, 24); 10605 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018F37; /* 0x27018EE9: jne 0x27018f37 */ 10606 L_27018EEB: 10607 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018EEB: mov byte ptr [ecx + 0x10], bl */ 10608 ecx = MEM32(eax + 0x4); /* 0x27018EEE: mov ecx, dword ptr [eax + 4] */ 10609 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018EF1: mov byte ptr [ecx + 0x10], 0 */ 10610 ecx = MEM32(eax + 0x4); /* 0x27018EF5: mov ecx, dword ptr [eax + 4] */ 10611 edx = MEM32(ecx); /* 0x27018EF8: mov edx, dword ptr [ecx] */ 10612 esi = MEM32(edx + 0x8); /* 0x27018EFA: mov esi, dword ptr [edx + 8] */ 10613 MEM32(ecx) = esi; /* 0x27018EFD: mov dword ptr [ecx], esi */ 10614 esi = MEM32(edx + 0x8); /* 0x27018EFF: mov esi, dword ptr [edx + 8] */ 10615 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F02: cmp esi, dword ptr [edi + 8] */ 10616 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10618 _flag_k = FK_CMP; 10619 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F0A; /* 0x27018F05: je 0x27018f0a */ 10620 L_27018F07: 10621 MEM32(esi + 0x4) = ecx; /* 0x27018F07: mov dword ptr [esi + 4], ecx */ 10622 L_27018F0A: 10623 esi = MEM32(ecx + 0x4); /* 0x27018F0A: mov esi, dword ptr [ecx + 4] */ 10624 MEM32(edx + 0x4) = esi; /* 0x27018F0D: mov dword ptr [edx + 4], esi */ 10625 esi = MEM32(edi + 0x4); /* 0x27018F10: mov esi, dword ptr [edi + 4] */ 10626 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F13: cmp ecx, dword ptr [esi + 4] */ 10627 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10629 _flag_k = FK_CMP; 10630 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F1D; /* 0x27018F16: jne 0x27018f1d */ 10631 L_27018F18: 10632 MEM32(esi + 0x4) = edx; /* 0x27018F18: mov dword ptr [esi + 4], edx */ 10633 goto L_27018F2C; /* 0x27018F1B: jmp 0x27018f2c */ 10634 L_27018F1D: 10635 esi = MEM32(ecx + 0x4); /* 0x27018F1D: mov esi, dword ptr [ecx + 4] */ 10636 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F20: cmp ecx, dword ptr [esi + 8] */ 10637 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10639 _flag_k = FK_CMP; 10640 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F2A; /* 0x27018F23: jne 0x27018f2a */ 10641 L_27018F25: 10642 MEM32(esi + 0x8) = edx; /* 0x27018F25: mov dword ptr [esi + 8], edx */ 10643 goto L_27018F2C; /* 0x27018F28: jmp 0x27018f2c */ 10644 L_27018F2A: 10645 MEM32(esi) = edx; /* 0x27018F2A: mov dword ptr [esi], edx */ 10646 L_27018F2C: 10647 MEM32(edx + 0x8) = ecx; /* 0x27018F2C: mov dword ptr [edx + 8], ecx */ 10648 MEM32(ecx + 0x4) = edx; /* 0x27018F2F: mov dword ptr [ecx + 4], edx */ 10649 edx = MEM32(eax + 0x4); /* 0x27018F32: mov edx, dword ptr [eax + 4] */ 10650 ecx = MEM32(edx); /* 0x27018F35: mov ecx, dword ptr [edx] */ 10651 L_27018F37: 10652 edx = MEM32(ecx + 0x8); /* 0x27018F37: mov edx, dword ptr [ecx + 8] */ 10653 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F3A: cmp byte ptr [edx + 0x10], bl */ 10654 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10656 _flag_k = FK_NARROW(FK_CMP, 24); 10657 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F3D: jne 0x27019013 */ 10658 L_27018F43: 10659 edx = MEM32(ecx); /* 0x27018F43: mov edx, dword ptr [ecx] */ 10660 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F45: cmp byte ptr [edx + 0x10], bl */ 10661 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10663 _flag_k = FK_NARROW(FK_CMP, 24); 10664 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F48: jne 0x27019013 */ 10665 L_27018F4E: 10666 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F4E: mov byte ptr [ecx + 0x10], 0 */ 10667 ecx = MEM32(edi + 0x4); /* 0x27018F52: mov ecx, dword ptr [edi + 4] */ 10668 eax = MEM32(eax + 0x4); /* 0x27018F55: mov eax, dword ptr [eax + 4] */ 10669 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27018F58: cmp eax, dword ptr [ecx + 4] */ 10670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10672 _flag_k = FK_CMP; 10673 RECOMP_BACKEDGE(); 10674 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E64; /* 0x27018F5B: jne 0x27018e64 */ 10675 L_27018F61: 10676 goto L_270190B2; /* 0x27018F61: jmp 0x270190b2 */ 10677 L_27018F66: 10678 edx = MEM32(ecx + 0x8); /* 0x27018F66: mov edx, dword ptr [ecx + 8] */ 10679 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F69: cmp byte ptr [edx + 0x10], bl */ 10680 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10682 _flag_k = FK_NARROW(FK_CMP, 24); 10683 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FB7; /* 0x27018F6C: jne 0x27018fb7 */ 10684 L_27018F6E: 10685 edx = MEM32(ecx); /* 0x27018F6E: mov edx, dword ptr [ecx] */ 10686 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018F70: mov byte ptr [edx + 0x10], bl */ 10687 edx = MEM32(ecx); /* 0x27018F73: mov edx, dword ptr [ecx] */ 10688 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F75: mov byte ptr [ecx + 0x10], 0 */ 10689 esi = MEM32(edx + 0x8); /* 0x27018F79: mov esi, dword ptr [edx + 8] */ 10690 MEM32(ecx) = esi; /* 0x27018F7C: mov dword ptr [ecx], esi */ 10691 esi = MEM32(edx + 0x8); /* 0x27018F7E: mov esi, dword ptr [edx + 8] */ 10692 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F81: cmp esi, dword ptr [edi + 8] */ 10693 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10695 _flag_k = FK_CMP; 10696 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F89; /* 0x27018F84: je 0x27018f89 */ 10697 L_27018F86: 10698 MEM32(esi + 0x4) = ecx; /* 0x27018F86: mov dword ptr [esi + 4], ecx */ 10699 L_27018F89: 10700 esi = MEM32(ecx + 0x4); /* 0x27018F89: mov esi, dword ptr [ecx + 4] */ 10701 MEM32(edx + 0x4) = esi; /* 0x27018F8C: mov dword ptr [edx + 4], esi */ 10702 esi = MEM32(edi + 0x4); /* 0x27018F8F: mov esi, dword ptr [edi + 4] */ 10703 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F92: cmp ecx, dword ptr [esi + 4] */ 10704 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10706 _flag_k = FK_CMP; 10707 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F9C; /* 0x27018F95: jne 0x27018f9c */ 10708 L_27018F97: 10709 MEM32(esi + 0x4) = edx; /* 0x27018F97: mov dword ptr [esi + 4], edx */ 10710 goto L_27018FAB; /* 0x27018F9A: jmp 0x27018fab */ 10711 L_27018F9C: 10712 esi = MEM32(ecx + 0x4); /* 0x27018F9C: mov esi, dword ptr [ecx + 4] */ 10713 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F9F: cmp ecx, dword ptr [esi + 8] */ 10714 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10716 _flag_k = FK_CMP; 10717 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FA9; /* 0x27018FA2: jne 0x27018fa9 */ 10718 L_27018FA4: 10719 MEM32(esi + 0x8) = edx; /* 0x27018FA4: mov dword ptr [esi + 8], edx */ 10720 goto L_27018FAB; /* 0x27018FA7: jmp 0x27018fab */ 10721 L_27018FA9: 10722 MEM32(esi) = edx; /* 0x27018FA9: mov dword ptr [esi], edx */ 10723 L_27018FAB: 10724 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 10725 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 10726 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 10727 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 10728 L_27018FB7: 10729 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 10730 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 10731 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 10732 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 10733 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 10734 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 10735 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 10736 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 10737 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 10738 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 10739 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 10740 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 10741 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: 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_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 10746 L_27018FDE: 10747 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 10748 L_27018FE1: 10749 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 10750 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 10751 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 10752 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: 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_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 10757 L_27018FEF: 10758 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 10759 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 10760 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 10761 L_27018FF9: 10762 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 10763 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: 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_27019009; /* 0x27018FFE: jne 0x27019009 */ 10768 L_27019000: 10769 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 10770 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 10771 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 10772 L_27019009: 10773 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 10774 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 10775 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 10776 L_27019013: 10777 edx = MEM32(ecx); /* 0x27019013: mov edx, dword ptr [ecx] */ 10778 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27019015: cmp byte ptr [edx + 0x10], bl */ 10779 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10781 _flag_k = FK_NARROW(FK_CMP, 24); 10782 if (CMP_NE(_flag_a, _flag_b)) goto L_27019061; /* 0x27019018: jne 0x27019061 */ 10783 L_2701901A: 10784 edx = MEM32(ecx + 0x8); /* 0x2701901A: mov edx, dword ptr [ecx + 8] */ 10785 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701901D: mov byte ptr [edx + 0x10], bl */ 10786 edx = MEM32(ecx + 0x8); /* 0x27019020: mov edx, dword ptr [ecx + 8] */ 10787 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019023: mov byte ptr [ecx + 0x10], 0 */ 10788 esi = MEM32(edx); /* 0x27019027: mov esi, dword ptr [edx] */ 10789 MEM32(ecx + 0x8) = esi; /* 0x27019029: mov dword ptr [ecx + 8], esi */ 10790 esi = MEM32(edx); /* 0x2701902C: mov esi, dword ptr [edx] */ 10791 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701902E: cmp esi, dword ptr [edi + 8] */ 10792 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10794 _flag_k = FK_CMP; 10795 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019036; /* 0x27019031: je 0x27019036 */ 10796 L_27019033: 10797 MEM32(esi + 0x4) = ecx; /* 0x27019033: mov dword ptr [esi + 4], ecx */ 10798 L_27019036: 10799 esi = MEM32(ecx + 0x4); /* 0x27019036: mov esi, dword ptr [ecx + 4] */ 10800 MEM32(edx + 0x4) = esi; /* 0x27019039: mov dword ptr [edx + 4], esi */ 10801 esi = MEM32(edi + 0x4); /* 0x2701903C: mov esi, dword ptr [edi + 4] */ 10802 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701903F: cmp ecx, dword ptr [esi + 4] */ 10803 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10805 _flag_k = FK_CMP; 10806 if (CMP_NE(_flag_a, _flag_b)) goto L_27019049; /* 0x27019042: jne 0x27019049 */ 10807 L_27019044: 10808 MEM32(esi + 0x4) = edx; /* 0x27019044: mov dword ptr [esi + 4], edx */ 10809 goto L_27019057; /* 0x27019047: jmp 0x27019057 */ 10810 L_27019049: 10811 esi = MEM32(ecx + 0x4); /* 0x27019049: mov esi, dword ptr [ecx + 4] */ 10812 /* cmp ecx, MEM32(esi) */ /* 0x2701904C: cmp ecx, dword ptr [esi] */ 10813 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10815 _flag_k = FK_CMP; 10816 if (CMP_NE(_flag_a, _flag_b)) goto L_27019054; /* 0x2701904E: jne 0x27019054 */ 10817 L_27019050: 10818 MEM32(esi) = edx; /* 0x27019050: mov dword ptr [esi], edx */ 10819 goto L_27019057; /* 0x27019052: jmp 0x27019057 */ 10820 L_27019054: 10821 MEM32(esi + 0x8) = edx; /* 0x27019054: mov dword ptr [esi + 8], edx */ 10822 L_27019057: 10823 MEM32(edx) = ecx; /* 0x27019057: mov dword ptr [edx], ecx */ 10824 MEM32(ecx + 0x4) = edx; /* 0x27019059: mov dword ptr [ecx + 4], edx */ 10825 ecx = MEM32(eax + 0x4); /* 0x2701905C: mov ecx, dword ptr [eax + 4] */ 10826 ecx = MEM32(ecx); /* 0x2701905F: mov ecx, dword ptr [ecx] */ 10827 L_27019061: 10828 edx = MEM32(eax + 0x4); /* 0x27019061: mov edx, dword ptr [eax + 4] */ 10829 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27019064: mov dl, byte ptr [edx + 0x10] */ 10830 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27019067: mov byte ptr [ecx + 0x10], dl */ 10831 edx = MEM32(eax + 0x4); /* 0x2701906A: mov edx, dword ptr [eax + 4] */ 10832 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701906D: mov byte ptr [edx + 0x10], bl */ 10833 ecx = MEM32(ecx); /* 0x27019070: mov ecx, dword ptr [ecx] */ 10834 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019072: mov byte ptr [ecx + 0x10], bl */ 10835 ecx = MEM32(eax + 0x4); /* 0x27019075: mov ecx, dword ptr [eax + 4] */ 10836 edx = MEM32(ecx); /* 0x27019078: mov edx, dword ptr [ecx] */ 10837 esi = MEM32(edx + 0x8); /* 0x2701907A: mov esi, dword ptr [edx + 8] */ 10838 MEM32(ecx) = esi; /* 0x2701907D: mov dword ptr [ecx], esi */ 10839 esi = MEM32(edx + 0x8); /* 0x2701907F: mov esi, dword ptr [edx + 8] */ 10840 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27019082: cmp esi, dword ptr [edi + 8] */ 10841 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10843 _flag_k = FK_CMP; 10844 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701908A; /* 0x27019085: je 0x2701908a */ 10845 L_27019087: 10846 MEM32(esi + 0x4) = ecx; /* 0x27019087: mov dword ptr [esi + 4], ecx */ 10847 L_2701908A: 10848 esi = MEM32(ecx + 0x4); /* 0x2701908A: mov esi, dword ptr [ecx + 4] */ 10849 MEM32(edx + 0x4) = esi; /* 0x2701908D: mov dword ptr [edx + 4], esi */ 10850 esi = MEM32(edi + 0x4); /* 0x27019090: mov esi, dword ptr [edi + 4] */ 10851 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27019093: cmp ecx, dword ptr [esi + 4] */ 10852 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10854 _flag_k = FK_CMP; 10855 if (CMP_NE(_flag_a, _flag_b)) goto L_2701909D; /* 0x27019096: jne 0x2701909d */ 10856 L_27019098: 10857 MEM32(esi + 0x4) = edx; /* 0x27019098: mov dword ptr [esi + 4], edx */ 10858 goto L_270190AC; /* 0x2701909B: jmp 0x270190ac */ 10859 L_2701909D: 10860 esi = MEM32(ecx + 0x4); /* 0x2701909D: mov esi, dword ptr [ecx + 4] */ 10861 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x270190A0: cmp ecx, dword ptr [esi + 8] */ 10862 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10864 _flag_k = FK_CMP; 10865 if (CMP_NE(_flag_a, _flag_b)) goto L_270190AA; /* 0x270190A3: jne 0x270190aa */ 10866 L_270190A5: 10867 MEM32(esi + 0x8) = edx; /* 0x270190A5: mov dword ptr [esi + 8], edx */ 10868 goto L_270190AC; /* 0x270190A8: jmp 0x270190ac */ 10869 L_270190AA: 10870 MEM32(esi) = edx; /* 0x270190AA: mov dword ptr [esi], edx */ 10871 L_270190AC: 10872 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 10873 L_270190AF: 10874 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 10875 L_270190B2: 10876 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 10877 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 10878 PUSH32(esp, edx); /* 0x270190B8: push edx */ 10879 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 10880 RECOMP_FLAGS_IN(); 10881 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 10882 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 10883 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10884 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10885 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 10886 _flag_k = FK_ADD; 10887 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10888 eax = eax - 1; /* 0x270190C7: dec eax */ 10889 _flag_k = FK_DEC; 10890 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 10891 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 10892 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 10893 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 10894 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 10895 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 10896 esp = ebp; /* 0x270190D3: mov esp, ebp */ 10897 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 10898 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 10899 RECOMP_REGS_OUT(); 10900 } 10901 10902 void sub_27018F2C(void) { 10903 int _fpu_cmp = 0; 10904 uint32_t _cf = 0; 10905 int _df = 1; 10906 uint32_t _flag_k = FK_NONE; 10907 uint32_t _flag_a = 0, _flag_b = 0; 10908 uint32_t _itail_tgt = 0; 10909 RECOMP_REGS_LOCALS 10910 RECOMP_ENTER(0x27018F2Cu); 10911 10912 goto L_27018F2C; 10913 L_27018E64: 10914 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x27018E64: cmp byte ptr [eax + 0x10], bl */ 10915 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10917 _flag_k = FK_NARROW(FK_CMP, 24); 10918 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E67: jne 0x270190b2 */ 10919 L_27018E6D: 10920 edx = MEM32(eax + 0x4); /* 0x27018E6D: mov edx, dword ptr [eax + 4] */ 10921 ecx = MEM32(edx); /* 0x27018E70: mov ecx, dword ptr [edx] */ 10922 /* cmp eax, ecx */ /* 0x27018E72: cmp eax, ecx */ 10923 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10925 _flag_k = FK_CMP; 10926 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EE4; /* 0x27018E74: jne 0x27018ee4 */ 10927 L_27018E76: 10928 ecx = MEM32(edx + 0x8); /* 0x27018E76: mov ecx, dword ptr [edx + 8] */ 10929 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E79: mov dl, byte ptr [ecx + 0x10] */ 10930 /* test LO8(edx), LO8(edx) */ /* 0x27018E7C: test dl, dl */ 10931 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10932 _cf = 0; 10933 _flag_k = FK_NARROW(FK_TEST, 24); 10934 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018ECB; /* 0x27018E7E: jne 0x27018ecb */ 10935 L_27018E80: 10936 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018E80: mov byte ptr [ecx + 0x10], bl */ 10937 ecx = MEM32(eax + 0x4); /* 0x27018E83: mov ecx, dword ptr [eax + 4] */ 10938 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018E86: mov byte ptr [ecx + 0x10], 0 */ 10939 ecx = MEM32(eax + 0x4); /* 0x27018E8A: mov ecx, dword ptr [eax + 4] */ 10940 edx = MEM32(ecx + 0x8); /* 0x27018E8D: mov edx, dword ptr [ecx + 8] */ 10941 esi = MEM32(edx); /* 0x27018E90: mov esi, dword ptr [edx] */ 10942 MEM32(ecx + 0x8) = esi; /* 0x27018E92: mov dword ptr [ecx + 8], esi */ 10943 esi = MEM32(edx); /* 0x27018E95: mov esi, dword ptr [edx] */ 10944 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018E97: cmp esi, dword ptr [edi + 8] */ 10945 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10947 _flag_k = FK_CMP; 10948 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E9F; /* 0x27018E9A: je 0x27018e9f */ 10949 L_27018E9C: 10950 MEM32(esi + 0x4) = ecx; /* 0x27018E9C: mov dword ptr [esi + 4], ecx */ 10951 L_27018E9F: 10952 esi = MEM32(ecx + 0x4); /* 0x27018E9F: mov esi, dword ptr [ecx + 4] */ 10953 MEM32(edx + 0x4) = esi; /* 0x27018EA2: mov dword ptr [edx + 4], esi */ 10954 esi = MEM32(edi + 0x4); /* 0x27018EA5: mov esi, dword ptr [edi + 4] */ 10955 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018EA8: cmp ecx, dword ptr [esi + 4] */ 10956 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10958 _flag_k = FK_CMP; 10959 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EB2; /* 0x27018EAB: jne 0x27018eb2 */ 10960 L_27018EAD: 10961 MEM32(esi + 0x4) = edx; /* 0x27018EAD: mov dword ptr [esi + 4], edx */ 10962 goto L_27018EC0; /* 0x27018EB0: jmp 0x27018ec0 */ 10963 L_27018EB2: 10964 esi = MEM32(ecx + 0x4); /* 0x27018EB2: mov esi, dword ptr [ecx + 4] */ 10965 /* cmp ecx, MEM32(esi) */ /* 0x27018EB5: cmp ecx, dword ptr [esi] */ 10966 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10968 _flag_k = FK_CMP; 10969 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EBD; /* 0x27018EB7: jne 0x27018ebd */ 10970 L_27018EB9: 10971 MEM32(esi) = edx; /* 0x27018EB9: mov dword ptr [esi], edx */ 10972 goto L_27018EC0; /* 0x27018EBB: jmp 0x27018ec0 */ 10973 L_27018EBD: 10974 MEM32(esi + 0x8) = edx; /* 0x27018EBD: mov dword ptr [esi + 8], edx */ 10975 L_27018EC0: 10976 MEM32(edx) = ecx; /* 0x27018EC0: mov dword ptr [edx], ecx */ 10977 MEM32(ecx + 0x4) = edx; /* 0x27018EC2: mov dword ptr [ecx + 4], edx */ 10978 edx = MEM32(eax + 0x4); /* 0x27018EC5: mov edx, dword ptr [eax + 4] */ 10979 ecx = MEM32(edx + 0x8); /* 0x27018EC8: mov ecx, dword ptr [edx + 8] */ 10980 L_27018ECB: 10981 edx = MEM32(ecx); /* 0x27018ECB: mov edx, dword ptr [ecx] */ 10982 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ECD: cmp byte ptr [edx + 0x10], bl */ 10983 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10985 _flag_k = FK_NARROW(FK_CMP, 24); 10986 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018ED0: jne 0x27018f66 */ 10987 L_27018ED6: 10988 edx = MEM32(ecx + 0x8); /* 0x27018ED6: mov edx, dword ptr [ecx + 8] */ 10989 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ED9: cmp byte ptr [edx + 0x10], bl */ 10990 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10992 _flag_k = FK_NARROW(FK_CMP, 24); 10993 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018EDC: jne 0x27018f66 */ 10994 L_27018EE2: 10995 goto L_27018F4E; /* 0x27018EE2: jmp 0x27018f4e */ 10996 L_27018EE4: 10997 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018EE4: mov dl, byte ptr [ecx + 0x10] */ 10998 /* test LO8(edx), LO8(edx) */ /* 0x27018EE7: test dl, dl */ 10999 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11000 _cf = 0; 11001 _flag_k = FK_NARROW(FK_TEST, 24); 11002 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018F37; /* 0x27018EE9: jne 0x27018f37 */ 11003 L_27018EEB: 11004 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018EEB: mov byte ptr [ecx + 0x10], bl */ 11005 ecx = MEM32(eax + 0x4); /* 0x27018EEE: mov ecx, dword ptr [eax + 4] */ 11006 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018EF1: mov byte ptr [ecx + 0x10], 0 */ 11007 ecx = MEM32(eax + 0x4); /* 0x27018EF5: mov ecx, dword ptr [eax + 4] */ 11008 edx = MEM32(ecx); /* 0x27018EF8: mov edx, dword ptr [ecx] */ 11009 esi = MEM32(edx + 0x8); /* 0x27018EFA: mov esi, dword ptr [edx + 8] */ 11010 MEM32(ecx) = esi; /* 0x27018EFD: mov dword ptr [ecx], esi */ 11011 esi = MEM32(edx + 0x8); /* 0x27018EFF: mov esi, dword ptr [edx + 8] */ 11012 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F02: cmp esi, dword ptr [edi + 8] */ 11013 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11015 _flag_k = FK_CMP; 11016 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F0A; /* 0x27018F05: je 0x27018f0a */ 11017 L_27018F07: 11018 MEM32(esi + 0x4) = ecx; /* 0x27018F07: mov dword ptr [esi + 4], ecx */ 11019 L_27018F0A: 11020 esi = MEM32(ecx + 0x4); /* 0x27018F0A: mov esi, dword ptr [ecx + 4] */ 11021 MEM32(edx + 0x4) = esi; /* 0x27018F0D: mov dword ptr [edx + 4], esi */ 11022 esi = MEM32(edi + 0x4); /* 0x27018F10: mov esi, dword ptr [edi + 4] */ 11023 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F13: cmp ecx, dword ptr [esi + 4] */ 11024 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11026 _flag_k = FK_CMP; 11027 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F1D; /* 0x27018F16: jne 0x27018f1d */ 11028 L_27018F18: 11029 MEM32(esi + 0x4) = edx; /* 0x27018F18: mov dword ptr [esi + 4], edx */ 11030 goto L_27018F2C; /* 0x27018F1B: jmp 0x27018f2c */ 11031 L_27018F1D: 11032 esi = MEM32(ecx + 0x4); /* 0x27018F1D: mov esi, dword ptr [ecx + 4] */ 11033 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F20: cmp ecx, dword ptr [esi + 8] */ 11034 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11036 _flag_k = FK_CMP; 11037 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F2A; /* 0x27018F23: jne 0x27018f2a */ 11038 L_27018F25: 11039 MEM32(esi + 0x8) = edx; /* 0x27018F25: mov dword ptr [esi + 8], edx */ 11040 goto L_27018F2C; /* 0x27018F28: jmp 0x27018f2c */ 11041 L_27018F2A: 11042 MEM32(esi) = edx; /* 0x27018F2A: mov dword ptr [esi], edx */ 11043 L_27018F2C: 11044 MEM32(edx + 0x8) = ecx; /* 0x27018F2C: mov dword ptr [edx + 8], ecx */ 11045 MEM32(ecx + 0x4) = edx; /* 0x27018F2F: mov dword ptr [ecx + 4], edx */ 11046 edx = MEM32(eax + 0x4); /* 0x27018F32: mov edx, dword ptr [eax + 4] */ 11047 ecx = MEM32(edx); /* 0x27018F35: mov ecx, dword ptr [edx] */ 11048 L_27018F37: 11049 edx = MEM32(ecx + 0x8); /* 0x27018F37: mov edx, dword ptr [ecx + 8] */ 11050 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F3A: cmp byte ptr [edx + 0x10], bl */ 11051 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11053 _flag_k = FK_NARROW(FK_CMP, 24); 11054 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F3D: jne 0x27019013 */ 11055 L_27018F43: 11056 edx = MEM32(ecx); /* 0x27018F43: mov edx, dword ptr [ecx] */ 11057 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F45: cmp byte ptr [edx + 0x10], bl */ 11058 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11060 _flag_k = FK_NARROW(FK_CMP, 24); 11061 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F48: jne 0x27019013 */ 11062 L_27018F4E: 11063 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F4E: mov byte ptr [ecx + 0x10], 0 */ 11064 ecx = MEM32(edi + 0x4); /* 0x27018F52: mov ecx, dword ptr [edi + 4] */ 11065 eax = MEM32(eax + 0x4); /* 0x27018F55: mov eax, dword ptr [eax + 4] */ 11066 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27018F58: cmp eax, dword ptr [ecx + 4] */ 11067 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11069 _flag_k = FK_CMP; 11070 RECOMP_BACKEDGE(); 11071 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E64; /* 0x27018F5B: jne 0x27018e64 */ 11072 L_27018F61: 11073 goto L_270190B2; /* 0x27018F61: jmp 0x270190b2 */ 11074 L_27018F66: 11075 edx = MEM32(ecx + 0x8); /* 0x27018F66: mov edx, dword ptr [ecx + 8] */ 11076 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F69: cmp byte ptr [edx + 0x10], bl */ 11077 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11079 _flag_k = FK_NARROW(FK_CMP, 24); 11080 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FB7; /* 0x27018F6C: jne 0x27018fb7 */ 11081 L_27018F6E: 11082 edx = MEM32(ecx); /* 0x27018F6E: mov edx, dword ptr [ecx] */ 11083 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018F70: mov byte ptr [edx + 0x10], bl */ 11084 edx = MEM32(ecx); /* 0x27018F73: mov edx, dword ptr [ecx] */ 11085 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F75: mov byte ptr [ecx + 0x10], 0 */ 11086 esi = MEM32(edx + 0x8); /* 0x27018F79: mov esi, dword ptr [edx + 8] */ 11087 MEM32(ecx) = esi; /* 0x27018F7C: mov dword ptr [ecx], esi */ 11088 esi = MEM32(edx + 0x8); /* 0x27018F7E: mov esi, dword ptr [edx + 8] */ 11089 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F81: cmp esi, dword ptr [edi + 8] */ 11090 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11092 _flag_k = FK_CMP; 11093 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F89; /* 0x27018F84: je 0x27018f89 */ 11094 L_27018F86: 11095 MEM32(esi + 0x4) = ecx; /* 0x27018F86: mov dword ptr [esi + 4], ecx */ 11096 L_27018F89: 11097 esi = MEM32(ecx + 0x4); /* 0x27018F89: mov esi, dword ptr [ecx + 4] */ 11098 MEM32(edx + 0x4) = esi; /* 0x27018F8C: mov dword ptr [edx + 4], esi */ 11099 esi = MEM32(edi + 0x4); /* 0x27018F8F: mov esi, dword ptr [edi + 4] */ 11100 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F92: cmp ecx, dword ptr [esi + 4] */ 11101 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11103 _flag_k = FK_CMP; 11104 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F9C; /* 0x27018F95: jne 0x27018f9c */ 11105 L_27018F97: 11106 MEM32(esi + 0x4) = edx; /* 0x27018F97: mov dword ptr [esi + 4], edx */ 11107 goto L_27018FAB; /* 0x27018F9A: jmp 0x27018fab */ 11108 L_27018F9C: 11109 esi = MEM32(ecx + 0x4); /* 0x27018F9C: mov esi, dword ptr [ecx + 4] */ 11110 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F9F: cmp ecx, dword ptr [esi + 8] */ 11111 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11113 _flag_k = FK_CMP; 11114 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FA9; /* 0x27018FA2: jne 0x27018fa9 */ 11115 L_27018FA4: 11116 MEM32(esi + 0x8) = edx; /* 0x27018FA4: mov dword ptr [esi + 8], edx */ 11117 goto L_27018FAB; /* 0x27018FA7: jmp 0x27018fab */ 11118 L_27018FA9: 11119 MEM32(esi) = edx; /* 0x27018FA9: mov dword ptr [esi], edx */ 11120 L_27018FAB: 11121 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 11122 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 11123 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 11124 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 11125 L_27018FB7: 11126 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 11127 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 11128 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 11129 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 11130 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 11131 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 11132 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 11133 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 11134 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 11135 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 11136 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 11137 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 11138 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: cmp esi, dword ptr [edi + 8] */ 11139 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11141 _flag_k = FK_CMP; 11142 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 11143 L_27018FDE: 11144 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 11145 L_27018FE1: 11146 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 11147 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 11148 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 11149 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: cmp ecx, dword ptr [esi + 4] */ 11150 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11152 _flag_k = FK_CMP; 11153 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 11154 L_27018FEF: 11155 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 11156 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 11157 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 11158 L_27018FF9: 11159 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 11160 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: cmp ecx, dword ptr [esi] */ 11161 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11163 _flag_k = FK_CMP; 11164 if (CMP_NE(_flag_a, _flag_b)) goto L_27019009; /* 0x27018FFE: jne 0x27019009 */ 11165 L_27019000: 11166 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 11167 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 11168 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 11169 L_27019009: 11170 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 11171 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 11172 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 11173 L_27019013: 11174 edx = MEM32(ecx); /* 0x27019013: mov edx, dword ptr [ecx] */ 11175 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27019015: cmp byte ptr [edx + 0x10], bl */ 11176 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11178 _flag_k = FK_NARROW(FK_CMP, 24); 11179 if (CMP_NE(_flag_a, _flag_b)) goto L_27019061; /* 0x27019018: jne 0x27019061 */ 11180 L_2701901A: 11181 edx = MEM32(ecx + 0x8); /* 0x2701901A: mov edx, dword ptr [ecx + 8] */ 11182 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701901D: mov byte ptr [edx + 0x10], bl */ 11183 edx = MEM32(ecx + 0x8); /* 0x27019020: mov edx, dword ptr [ecx + 8] */ 11184 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019023: mov byte ptr [ecx + 0x10], 0 */ 11185 esi = MEM32(edx); /* 0x27019027: mov esi, dword ptr [edx] */ 11186 MEM32(ecx + 0x8) = esi; /* 0x27019029: mov dword ptr [ecx + 8], esi */ 11187 esi = MEM32(edx); /* 0x2701902C: mov esi, dword ptr [edx] */ 11188 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701902E: cmp esi, dword ptr [edi + 8] */ 11189 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11191 _flag_k = FK_CMP; 11192 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019036; /* 0x27019031: je 0x27019036 */ 11193 L_27019033: 11194 MEM32(esi + 0x4) = ecx; /* 0x27019033: mov dword ptr [esi + 4], ecx */ 11195 L_27019036: 11196 esi = MEM32(ecx + 0x4); /* 0x27019036: mov esi, dword ptr [ecx + 4] */ 11197 MEM32(edx + 0x4) = esi; /* 0x27019039: mov dword ptr [edx + 4], esi */ 11198 esi = MEM32(edi + 0x4); /* 0x2701903C: mov esi, dword ptr [edi + 4] */ 11199 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701903F: cmp ecx, dword ptr [esi + 4] */ 11200 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11202 _flag_k = FK_CMP; 11203 if (CMP_NE(_flag_a, _flag_b)) goto L_27019049; /* 0x27019042: jne 0x27019049 */ 11204 L_27019044: 11205 MEM32(esi + 0x4) = edx; /* 0x27019044: mov dword ptr [esi + 4], edx */ 11206 goto L_27019057; /* 0x27019047: jmp 0x27019057 */ 11207 L_27019049: 11208 esi = MEM32(ecx + 0x4); /* 0x27019049: mov esi, dword ptr [ecx + 4] */ 11209 /* cmp ecx, MEM32(esi) */ /* 0x2701904C: cmp ecx, dword ptr [esi] */ 11210 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11212 _flag_k = FK_CMP; 11213 if (CMP_NE(_flag_a, _flag_b)) goto L_27019054; /* 0x2701904E: jne 0x27019054 */ 11214 L_27019050: 11215 MEM32(esi) = edx; /* 0x27019050: mov dword ptr [esi], edx */ 11216 goto L_27019057; /* 0x27019052: jmp 0x27019057 */ 11217 L_27019054: 11218 MEM32(esi + 0x8) = edx; /* 0x27019054: mov dword ptr [esi + 8], edx */ 11219 L_27019057: 11220 MEM32(edx) = ecx; /* 0x27019057: mov dword ptr [edx], ecx */ 11221 MEM32(ecx + 0x4) = edx; /* 0x27019059: mov dword ptr [ecx + 4], edx */ 11222 ecx = MEM32(eax + 0x4); /* 0x2701905C: mov ecx, dword ptr [eax + 4] */ 11223 ecx = MEM32(ecx); /* 0x2701905F: mov ecx, dword ptr [ecx] */ 11224 L_27019061: 11225 edx = MEM32(eax + 0x4); /* 0x27019061: mov edx, dword ptr [eax + 4] */ 11226 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27019064: mov dl, byte ptr [edx + 0x10] */ 11227 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27019067: mov byte ptr [ecx + 0x10], dl */ 11228 edx = MEM32(eax + 0x4); /* 0x2701906A: mov edx, dword ptr [eax + 4] */ 11229 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701906D: mov byte ptr [edx + 0x10], bl */ 11230 ecx = MEM32(ecx); /* 0x27019070: mov ecx, dword ptr [ecx] */ 11231 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019072: mov byte ptr [ecx + 0x10], bl */ 11232 ecx = MEM32(eax + 0x4); /* 0x27019075: mov ecx, dword ptr [eax + 4] */ 11233 edx = MEM32(ecx); /* 0x27019078: mov edx, dword ptr [ecx] */ 11234 esi = MEM32(edx + 0x8); /* 0x2701907A: mov esi, dword ptr [edx + 8] */ 11235 MEM32(ecx) = esi; /* 0x2701907D: mov dword ptr [ecx], esi */ 11236 esi = MEM32(edx + 0x8); /* 0x2701907F: mov esi, dword ptr [edx + 8] */ 11237 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27019082: cmp esi, dword ptr [edi + 8] */ 11238 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11240 _flag_k = FK_CMP; 11241 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701908A; /* 0x27019085: je 0x2701908a */ 11242 L_27019087: 11243 MEM32(esi + 0x4) = ecx; /* 0x27019087: mov dword ptr [esi + 4], ecx */ 11244 L_2701908A: 11245 esi = MEM32(ecx + 0x4); /* 0x2701908A: mov esi, dword ptr [ecx + 4] */ 11246 MEM32(edx + 0x4) = esi; /* 0x2701908D: mov dword ptr [edx + 4], esi */ 11247 esi = MEM32(edi + 0x4); /* 0x27019090: mov esi, dword ptr [edi + 4] */ 11248 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27019093: cmp ecx, dword ptr [esi + 4] */ 11249 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11251 _flag_k = FK_CMP; 11252 if (CMP_NE(_flag_a, _flag_b)) goto L_2701909D; /* 0x27019096: jne 0x2701909d */ 11253 L_27019098: 11254 MEM32(esi + 0x4) = edx; /* 0x27019098: mov dword ptr [esi + 4], edx */ 11255 goto L_270190AC; /* 0x2701909B: jmp 0x270190ac */ 11256 L_2701909D: 11257 esi = MEM32(ecx + 0x4); /* 0x2701909D: mov esi, dword ptr [ecx + 4] */ 11258 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x270190A0: cmp ecx, dword ptr [esi + 8] */ 11259 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11261 _flag_k = FK_CMP; 11262 if (CMP_NE(_flag_a, _flag_b)) goto L_270190AA; /* 0x270190A3: jne 0x270190aa */ 11263 L_270190A5: 11264 MEM32(esi + 0x8) = edx; /* 0x270190A5: mov dword ptr [esi + 8], edx */ 11265 goto L_270190AC; /* 0x270190A8: jmp 0x270190ac */ 11266 L_270190AA: 11267 MEM32(esi) = edx; /* 0x270190AA: mov dword ptr [esi], edx */ 11268 L_270190AC: 11269 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 11270 L_270190AF: 11271 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 11272 L_270190B2: 11273 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 11274 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 11275 PUSH32(esp, edx); /* 0x270190B8: push edx */ 11276 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 11277 RECOMP_FLAGS_IN(); 11278 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 11279 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 11280 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11281 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11282 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 11283 _flag_k = FK_ADD; 11284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11285 eax = eax - 1; /* 0x270190C7: dec eax */ 11286 _flag_k = FK_DEC; 11287 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 11288 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 11289 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 11290 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 11291 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 11292 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 11293 esp = ebp; /* 0x270190D3: mov esp, ebp */ 11294 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 11295 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 11296 RECOMP_REGS_OUT(); 11297 } 11298 11299 void sub_27018F37(void) { 11300 int _fpu_cmp = 0; 11301 uint32_t _cf = 0; 11302 int _df = 1; 11303 uint32_t _flag_k = FK_NONE; 11304 uint32_t _flag_a = 0, _flag_b = 0; 11305 uint32_t _itail_tgt = 0; 11306 RECOMP_REGS_LOCALS 11307 RECOMP_ENTER(0x27018F37u); 11308 11309 goto L_27018F37; 11310 L_27018E64: 11311 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x27018E64: cmp byte ptr [eax + 0x10], bl */ 11312 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11314 _flag_k = FK_NARROW(FK_CMP, 24); 11315 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E67: jne 0x270190b2 */ 11316 L_27018E6D: 11317 edx = MEM32(eax + 0x4); /* 0x27018E6D: mov edx, dword ptr [eax + 4] */ 11318 ecx = MEM32(edx); /* 0x27018E70: mov ecx, dword ptr [edx] */ 11319 /* cmp eax, ecx */ /* 0x27018E72: cmp eax, ecx */ 11320 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11322 _flag_k = FK_CMP; 11323 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EE4; /* 0x27018E74: jne 0x27018ee4 */ 11324 L_27018E76: 11325 ecx = MEM32(edx + 0x8); /* 0x27018E76: mov ecx, dword ptr [edx + 8] */ 11326 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E79: mov dl, byte ptr [ecx + 0x10] */ 11327 /* test LO8(edx), LO8(edx) */ /* 0x27018E7C: test dl, dl */ 11328 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11329 _cf = 0; 11330 _flag_k = FK_NARROW(FK_TEST, 24); 11331 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018ECB; /* 0x27018E7E: jne 0x27018ecb */ 11332 L_27018E80: 11333 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018E80: mov byte ptr [ecx + 0x10], bl */ 11334 ecx = MEM32(eax + 0x4); /* 0x27018E83: mov ecx, dword ptr [eax + 4] */ 11335 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018E86: mov byte ptr [ecx + 0x10], 0 */ 11336 ecx = MEM32(eax + 0x4); /* 0x27018E8A: mov ecx, dword ptr [eax + 4] */ 11337 edx = MEM32(ecx + 0x8); /* 0x27018E8D: mov edx, dword ptr [ecx + 8] */ 11338 esi = MEM32(edx); /* 0x27018E90: mov esi, dword ptr [edx] */ 11339 MEM32(ecx + 0x8) = esi; /* 0x27018E92: mov dword ptr [ecx + 8], esi */ 11340 esi = MEM32(edx); /* 0x27018E95: mov esi, dword ptr [edx] */ 11341 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018E97: cmp esi, dword ptr [edi + 8] */ 11342 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11344 _flag_k = FK_CMP; 11345 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E9F; /* 0x27018E9A: je 0x27018e9f */ 11346 L_27018E9C: 11347 MEM32(esi + 0x4) = ecx; /* 0x27018E9C: mov dword ptr [esi + 4], ecx */ 11348 L_27018E9F: 11349 esi = MEM32(ecx + 0x4); /* 0x27018E9F: mov esi, dword ptr [ecx + 4] */ 11350 MEM32(edx + 0x4) = esi; /* 0x27018EA2: mov dword ptr [edx + 4], esi */ 11351 esi = MEM32(edi + 0x4); /* 0x27018EA5: mov esi, dword ptr [edi + 4] */ 11352 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018EA8: cmp ecx, dword ptr [esi + 4] */ 11353 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11355 _flag_k = FK_CMP; 11356 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EB2; /* 0x27018EAB: jne 0x27018eb2 */ 11357 L_27018EAD: 11358 MEM32(esi + 0x4) = edx; /* 0x27018EAD: mov dword ptr [esi + 4], edx */ 11359 goto L_27018EC0; /* 0x27018EB0: jmp 0x27018ec0 */ 11360 L_27018EB2: 11361 esi = MEM32(ecx + 0x4); /* 0x27018EB2: mov esi, dword ptr [ecx + 4] */ 11362 /* cmp ecx, MEM32(esi) */ /* 0x27018EB5: cmp ecx, dword ptr [esi] */ 11363 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11365 _flag_k = FK_CMP; 11366 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EBD; /* 0x27018EB7: jne 0x27018ebd */ 11367 L_27018EB9: 11368 MEM32(esi) = edx; /* 0x27018EB9: mov dword ptr [esi], edx */ 11369 goto L_27018EC0; /* 0x27018EBB: jmp 0x27018ec0 */ 11370 L_27018EBD: 11371 MEM32(esi + 0x8) = edx; /* 0x27018EBD: mov dword ptr [esi + 8], edx */ 11372 L_27018EC0: 11373 MEM32(edx) = ecx; /* 0x27018EC0: mov dword ptr [edx], ecx */ 11374 MEM32(ecx + 0x4) = edx; /* 0x27018EC2: mov dword ptr [ecx + 4], edx */ 11375 edx = MEM32(eax + 0x4); /* 0x27018EC5: mov edx, dword ptr [eax + 4] */ 11376 ecx = MEM32(edx + 0x8); /* 0x27018EC8: mov ecx, dword ptr [edx + 8] */ 11377 L_27018ECB: 11378 edx = MEM32(ecx); /* 0x27018ECB: mov edx, dword ptr [ecx] */ 11379 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ECD: cmp byte ptr [edx + 0x10], bl */ 11380 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11382 _flag_k = FK_NARROW(FK_CMP, 24); 11383 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018ED0: jne 0x27018f66 */ 11384 L_27018ED6: 11385 edx = MEM32(ecx + 0x8); /* 0x27018ED6: mov edx, dword ptr [ecx + 8] */ 11386 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ED9: cmp byte ptr [edx + 0x10], bl */ 11387 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11389 _flag_k = FK_NARROW(FK_CMP, 24); 11390 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018EDC: jne 0x27018f66 */ 11391 L_27018EE2: 11392 goto L_27018F4E; /* 0x27018EE2: jmp 0x27018f4e */ 11393 L_27018EE4: 11394 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018EE4: mov dl, byte ptr [ecx + 0x10] */ 11395 /* test LO8(edx), LO8(edx) */ /* 0x27018EE7: test dl, dl */ 11396 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11397 _cf = 0; 11398 _flag_k = FK_NARROW(FK_TEST, 24); 11399 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018F37; /* 0x27018EE9: jne 0x27018f37 */ 11400 L_27018EEB: 11401 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018EEB: mov byte ptr [ecx + 0x10], bl */ 11402 ecx = MEM32(eax + 0x4); /* 0x27018EEE: mov ecx, dword ptr [eax + 4] */ 11403 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018EF1: mov byte ptr [ecx + 0x10], 0 */ 11404 ecx = MEM32(eax + 0x4); /* 0x27018EF5: mov ecx, dword ptr [eax + 4] */ 11405 edx = MEM32(ecx); /* 0x27018EF8: mov edx, dword ptr [ecx] */ 11406 esi = MEM32(edx + 0x8); /* 0x27018EFA: mov esi, dword ptr [edx + 8] */ 11407 MEM32(ecx) = esi; /* 0x27018EFD: mov dword ptr [ecx], esi */ 11408 esi = MEM32(edx + 0x8); /* 0x27018EFF: mov esi, dword ptr [edx + 8] */ 11409 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F02: cmp esi, dword ptr [edi + 8] */ 11410 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11412 _flag_k = FK_CMP; 11413 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F0A; /* 0x27018F05: je 0x27018f0a */ 11414 L_27018F07: 11415 MEM32(esi + 0x4) = ecx; /* 0x27018F07: mov dword ptr [esi + 4], ecx */ 11416 L_27018F0A: 11417 esi = MEM32(ecx + 0x4); /* 0x27018F0A: mov esi, dword ptr [ecx + 4] */ 11418 MEM32(edx + 0x4) = esi; /* 0x27018F0D: mov dword ptr [edx + 4], esi */ 11419 esi = MEM32(edi + 0x4); /* 0x27018F10: mov esi, dword ptr [edi + 4] */ 11420 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F13: cmp ecx, dword ptr [esi + 4] */ 11421 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11423 _flag_k = FK_CMP; 11424 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F1D; /* 0x27018F16: jne 0x27018f1d */ 11425 L_27018F18: 11426 MEM32(esi + 0x4) = edx; /* 0x27018F18: mov dword ptr [esi + 4], edx */ 11427 goto L_27018F2C; /* 0x27018F1B: jmp 0x27018f2c */ 11428 L_27018F1D: 11429 esi = MEM32(ecx + 0x4); /* 0x27018F1D: mov esi, dword ptr [ecx + 4] */ 11430 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F20: cmp ecx, dword ptr [esi + 8] */ 11431 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11433 _flag_k = FK_CMP; 11434 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F2A; /* 0x27018F23: jne 0x27018f2a */ 11435 L_27018F25: 11436 MEM32(esi + 0x8) = edx; /* 0x27018F25: mov dword ptr [esi + 8], edx */ 11437 goto L_27018F2C; /* 0x27018F28: jmp 0x27018f2c */ 11438 L_27018F2A: 11439 MEM32(esi) = edx; /* 0x27018F2A: mov dword ptr [esi], edx */ 11440 L_27018F2C: 11441 MEM32(edx + 0x8) = ecx; /* 0x27018F2C: mov dword ptr [edx + 8], ecx */ 11442 MEM32(ecx + 0x4) = edx; /* 0x27018F2F: mov dword ptr [ecx + 4], edx */ 11443 edx = MEM32(eax + 0x4); /* 0x27018F32: mov edx, dword ptr [eax + 4] */ 11444 ecx = MEM32(edx); /* 0x27018F35: mov ecx, dword ptr [edx] */ 11445 L_27018F37: 11446 edx = MEM32(ecx + 0x8); /* 0x27018F37: mov edx, dword ptr [ecx + 8] */ 11447 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F3A: cmp byte ptr [edx + 0x10], bl */ 11448 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11450 _flag_k = FK_NARROW(FK_CMP, 24); 11451 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F3D: jne 0x27019013 */ 11452 L_27018F43: 11453 edx = MEM32(ecx); /* 0x27018F43: mov edx, dword ptr [ecx] */ 11454 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F45: cmp byte ptr [edx + 0x10], bl */ 11455 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11457 _flag_k = FK_NARROW(FK_CMP, 24); 11458 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F48: jne 0x27019013 */ 11459 L_27018F4E: 11460 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F4E: mov byte ptr [ecx + 0x10], 0 */ 11461 ecx = MEM32(edi + 0x4); /* 0x27018F52: mov ecx, dword ptr [edi + 4] */ 11462 eax = MEM32(eax + 0x4); /* 0x27018F55: mov eax, dword ptr [eax + 4] */ 11463 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27018F58: cmp eax, dword ptr [ecx + 4] */ 11464 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11466 _flag_k = FK_CMP; 11467 RECOMP_BACKEDGE(); 11468 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E64; /* 0x27018F5B: jne 0x27018e64 */ 11469 L_27018F61: 11470 goto L_270190B2; /* 0x27018F61: jmp 0x270190b2 */ 11471 L_27018F66: 11472 edx = MEM32(ecx + 0x8); /* 0x27018F66: mov edx, dword ptr [ecx + 8] */ 11473 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F69: cmp byte ptr [edx + 0x10], bl */ 11474 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11476 _flag_k = FK_NARROW(FK_CMP, 24); 11477 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FB7; /* 0x27018F6C: jne 0x27018fb7 */ 11478 L_27018F6E: 11479 edx = MEM32(ecx); /* 0x27018F6E: mov edx, dword ptr [ecx] */ 11480 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018F70: mov byte ptr [edx + 0x10], bl */ 11481 edx = MEM32(ecx); /* 0x27018F73: mov edx, dword ptr [ecx] */ 11482 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F75: mov byte ptr [ecx + 0x10], 0 */ 11483 esi = MEM32(edx + 0x8); /* 0x27018F79: mov esi, dword ptr [edx + 8] */ 11484 MEM32(ecx) = esi; /* 0x27018F7C: mov dword ptr [ecx], esi */ 11485 esi = MEM32(edx + 0x8); /* 0x27018F7E: mov esi, dword ptr [edx + 8] */ 11486 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F81: cmp esi, dword ptr [edi + 8] */ 11487 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11489 _flag_k = FK_CMP; 11490 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F89; /* 0x27018F84: je 0x27018f89 */ 11491 L_27018F86: 11492 MEM32(esi + 0x4) = ecx; /* 0x27018F86: mov dword ptr [esi + 4], ecx */ 11493 L_27018F89: 11494 esi = MEM32(ecx + 0x4); /* 0x27018F89: mov esi, dword ptr [ecx + 4] */ 11495 MEM32(edx + 0x4) = esi; /* 0x27018F8C: mov dword ptr [edx + 4], esi */ 11496 esi = MEM32(edi + 0x4); /* 0x27018F8F: mov esi, dword ptr [edi + 4] */ 11497 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F92: cmp ecx, dword ptr [esi + 4] */ 11498 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 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_27018F9C; /* 0x27018F95: jne 0x27018f9c */ 11502 L_27018F97: 11503 MEM32(esi + 0x4) = edx; /* 0x27018F97: mov dword ptr [esi + 4], edx */ 11504 goto L_27018FAB; /* 0x27018F9A: jmp 0x27018fab */ 11505 L_27018F9C: 11506 esi = MEM32(ecx + 0x4); /* 0x27018F9C: mov esi, dword ptr [ecx + 4] */ 11507 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F9F: cmp ecx, dword ptr [esi + 8] */ 11508 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11510 _flag_k = FK_CMP; 11511 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FA9; /* 0x27018FA2: jne 0x27018fa9 */ 11512 L_27018FA4: 11513 MEM32(esi + 0x8) = edx; /* 0x27018FA4: mov dword ptr [esi + 8], edx */ 11514 goto L_27018FAB; /* 0x27018FA7: jmp 0x27018fab */ 11515 L_27018FA9: 11516 MEM32(esi) = edx; /* 0x27018FA9: mov dword ptr [esi], edx */ 11517 L_27018FAB: 11518 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 11519 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 11520 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 11521 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 11522 L_27018FB7: 11523 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 11524 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 11525 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 11526 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 11527 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 11528 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 11529 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 11530 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 11531 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 11532 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 11533 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 11534 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 11535 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: cmp esi, dword ptr [edi + 8] */ 11536 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11538 _flag_k = FK_CMP; 11539 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 11540 L_27018FDE: 11541 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 11542 L_27018FE1: 11543 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 11544 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 11545 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 11546 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: cmp ecx, dword ptr [esi + 4] */ 11547 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11548 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11549 _flag_k = FK_CMP; 11550 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 11551 L_27018FEF: 11552 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 11553 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 11554 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 11555 L_27018FF9: 11556 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 11557 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: cmp ecx, dword ptr [esi] */ 11558 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11560 _flag_k = FK_CMP; 11561 if (CMP_NE(_flag_a, _flag_b)) goto L_27019009; /* 0x27018FFE: jne 0x27019009 */ 11562 L_27019000: 11563 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 11564 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 11565 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 11566 L_27019009: 11567 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 11568 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 11569 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 11570 L_27019013: 11571 edx = MEM32(ecx); /* 0x27019013: mov edx, dword ptr [ecx] */ 11572 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27019015: cmp byte ptr [edx + 0x10], bl */ 11573 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11575 _flag_k = FK_NARROW(FK_CMP, 24); 11576 if (CMP_NE(_flag_a, _flag_b)) goto L_27019061; /* 0x27019018: jne 0x27019061 */ 11577 L_2701901A: 11578 edx = MEM32(ecx + 0x8); /* 0x2701901A: mov edx, dword ptr [ecx + 8] */ 11579 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701901D: mov byte ptr [edx + 0x10], bl */ 11580 edx = MEM32(ecx + 0x8); /* 0x27019020: mov edx, dword ptr [ecx + 8] */ 11581 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019023: mov byte ptr [ecx + 0x10], 0 */ 11582 esi = MEM32(edx); /* 0x27019027: mov esi, dword ptr [edx] */ 11583 MEM32(ecx + 0x8) = esi; /* 0x27019029: mov dword ptr [ecx + 8], esi */ 11584 esi = MEM32(edx); /* 0x2701902C: mov esi, dword ptr [edx] */ 11585 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701902E: cmp esi, dword ptr [edi + 8] */ 11586 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11588 _flag_k = FK_CMP; 11589 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019036; /* 0x27019031: je 0x27019036 */ 11590 L_27019033: 11591 MEM32(esi + 0x4) = ecx; /* 0x27019033: mov dword ptr [esi + 4], ecx */ 11592 L_27019036: 11593 esi = MEM32(ecx + 0x4); /* 0x27019036: mov esi, dword ptr [ecx + 4] */ 11594 MEM32(edx + 0x4) = esi; /* 0x27019039: mov dword ptr [edx + 4], esi */ 11595 esi = MEM32(edi + 0x4); /* 0x2701903C: mov esi, dword ptr [edi + 4] */ 11596 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701903F: cmp ecx, dword ptr [esi + 4] */ 11597 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11599 _flag_k = FK_CMP; 11600 if (CMP_NE(_flag_a, _flag_b)) goto L_27019049; /* 0x27019042: jne 0x27019049 */ 11601 L_27019044: 11602 MEM32(esi + 0x4) = edx; /* 0x27019044: mov dword ptr [esi + 4], edx */ 11603 goto L_27019057; /* 0x27019047: jmp 0x27019057 */ 11604 L_27019049: 11605 esi = MEM32(ecx + 0x4); /* 0x27019049: mov esi, dword ptr [ecx + 4] */ 11606 /* cmp ecx, MEM32(esi) */ /* 0x2701904C: cmp ecx, dword ptr [esi] */ 11607 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11609 _flag_k = FK_CMP; 11610 if (CMP_NE(_flag_a, _flag_b)) goto L_27019054; /* 0x2701904E: jne 0x27019054 */ 11611 L_27019050: 11612 MEM32(esi) = edx; /* 0x27019050: mov dword ptr [esi], edx */ 11613 goto L_27019057; /* 0x27019052: jmp 0x27019057 */ 11614 L_27019054: 11615 MEM32(esi + 0x8) = edx; /* 0x27019054: mov dword ptr [esi + 8], edx */ 11616 L_27019057: 11617 MEM32(edx) = ecx; /* 0x27019057: mov dword ptr [edx], ecx */ 11618 MEM32(ecx + 0x4) = edx; /* 0x27019059: mov dword ptr [ecx + 4], edx */ 11619 ecx = MEM32(eax + 0x4); /* 0x2701905C: mov ecx, dword ptr [eax + 4] */ 11620 ecx = MEM32(ecx); /* 0x2701905F: mov ecx, dword ptr [ecx] */ 11621 L_27019061: 11622 edx = MEM32(eax + 0x4); /* 0x27019061: mov edx, dword ptr [eax + 4] */ 11623 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27019064: mov dl, byte ptr [edx + 0x10] */ 11624 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27019067: mov byte ptr [ecx + 0x10], dl */ 11625 edx = MEM32(eax + 0x4); /* 0x2701906A: mov edx, dword ptr [eax + 4] */ 11626 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701906D: mov byte ptr [edx + 0x10], bl */ 11627 ecx = MEM32(ecx); /* 0x27019070: mov ecx, dword ptr [ecx] */ 11628 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019072: mov byte ptr [ecx + 0x10], bl */ 11629 ecx = MEM32(eax + 0x4); /* 0x27019075: mov ecx, dword ptr [eax + 4] */ 11630 edx = MEM32(ecx); /* 0x27019078: mov edx, dword ptr [ecx] */ 11631 esi = MEM32(edx + 0x8); /* 0x2701907A: mov esi, dword ptr [edx + 8] */ 11632 MEM32(ecx) = esi; /* 0x2701907D: mov dword ptr [ecx], esi */ 11633 esi = MEM32(edx + 0x8); /* 0x2701907F: mov esi, dword ptr [edx + 8] */ 11634 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27019082: cmp esi, dword ptr [edi + 8] */ 11635 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11637 _flag_k = FK_CMP; 11638 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701908A; /* 0x27019085: je 0x2701908a */ 11639 L_27019087: 11640 MEM32(esi + 0x4) = ecx; /* 0x27019087: mov dword ptr [esi + 4], ecx */ 11641 L_2701908A: 11642 esi = MEM32(ecx + 0x4); /* 0x2701908A: mov esi, dword ptr [ecx + 4] */ 11643 MEM32(edx + 0x4) = esi; /* 0x2701908D: mov dword ptr [edx + 4], esi */ 11644 esi = MEM32(edi + 0x4); /* 0x27019090: mov esi, dword ptr [edi + 4] */ 11645 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27019093: cmp ecx, dword ptr [esi + 4] */ 11646 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11648 _flag_k = FK_CMP; 11649 if (CMP_NE(_flag_a, _flag_b)) goto L_2701909D; /* 0x27019096: jne 0x2701909d */ 11650 L_27019098: 11651 MEM32(esi + 0x4) = edx; /* 0x27019098: mov dword ptr [esi + 4], edx */ 11652 goto L_270190AC; /* 0x2701909B: jmp 0x270190ac */ 11653 L_2701909D: 11654 esi = MEM32(ecx + 0x4); /* 0x2701909D: mov esi, dword ptr [ecx + 4] */ 11655 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x270190A0: cmp ecx, dword ptr [esi + 8] */ 11656 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11658 _flag_k = FK_CMP; 11659 if (CMP_NE(_flag_a, _flag_b)) goto L_270190AA; /* 0x270190A3: jne 0x270190aa */ 11660 L_270190A5: 11661 MEM32(esi + 0x8) = edx; /* 0x270190A5: mov dword ptr [esi + 8], edx */ 11662 goto L_270190AC; /* 0x270190A8: jmp 0x270190ac */ 11663 L_270190AA: 11664 MEM32(esi) = edx; /* 0x270190AA: mov dword ptr [esi], edx */ 11665 L_270190AC: 11666 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 11667 L_270190AF: 11668 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 11669 L_270190B2: 11670 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 11671 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 11672 PUSH32(esp, edx); /* 0x270190B8: push edx */ 11673 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 11674 RECOMP_FLAGS_IN(); 11675 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 11676 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 11677 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11678 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11679 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 11680 _flag_k = FK_ADD; 11681 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11682 eax = eax - 1; /* 0x270190C7: dec eax */ 11683 _flag_k = FK_DEC; 11684 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 11685 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 11686 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 11687 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 11688 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 11689 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 11690 esp = ebp; /* 0x270190D3: mov esp, ebp */ 11691 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 11692 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 11693 RECOMP_REGS_OUT(); 11694 } 11695 11696 void sub_27018F4E(void) { 11697 int _fpu_cmp = 0; 11698 uint32_t _cf = 0; 11699 int _df = 1; 11700 uint32_t _flag_k = FK_NONE; 11701 uint32_t _flag_a = 0, _flag_b = 0; 11702 uint32_t _itail_tgt = 0; 11703 RECOMP_REGS_LOCALS 11704 RECOMP_ENTER(0x27018F4Eu); 11705 11706 goto L_27018F4E; 11707 L_27018E64: 11708 /* cmp MEM8(eax + 0x10), LO8(ebx) */ /* 0x27018E64: cmp byte ptr [eax + 0x10], bl */ 11709 _flag_a = (uint32_t)(MEM8(eax + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11711 _flag_k = FK_NARROW(FK_CMP, 24); 11712 if (CMP_NE(_flag_a, _flag_b)) goto L_270190B2; /* 0x27018E67: jne 0x270190b2 */ 11713 L_27018E6D: 11714 edx = MEM32(eax + 0x4); /* 0x27018E6D: mov edx, dword ptr [eax + 4] */ 11715 ecx = MEM32(edx); /* 0x27018E70: mov ecx, dword ptr [edx] */ 11716 /* cmp eax, ecx */ /* 0x27018E72: cmp eax, ecx */ 11717 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11719 _flag_k = FK_CMP; 11720 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EE4; /* 0x27018E74: jne 0x27018ee4 */ 11721 L_27018E76: 11722 ecx = MEM32(edx + 0x8); /* 0x27018E76: mov ecx, dword ptr [edx + 8] */ 11723 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018E79: mov dl, byte ptr [ecx + 0x10] */ 11724 /* test LO8(edx), LO8(edx) */ /* 0x27018E7C: test dl, dl */ 11725 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11726 _cf = 0; 11727 _flag_k = FK_NARROW(FK_TEST, 24); 11728 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018ECB; /* 0x27018E7E: jne 0x27018ecb */ 11729 L_27018E80: 11730 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018E80: mov byte ptr [ecx + 0x10], bl */ 11731 ecx = MEM32(eax + 0x4); /* 0x27018E83: mov ecx, dword ptr [eax + 4] */ 11732 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018E86: mov byte ptr [ecx + 0x10], 0 */ 11733 ecx = MEM32(eax + 0x4); /* 0x27018E8A: mov ecx, dword ptr [eax + 4] */ 11734 edx = MEM32(ecx + 0x8); /* 0x27018E8D: mov edx, dword ptr [ecx + 8] */ 11735 esi = MEM32(edx); /* 0x27018E90: mov esi, dword ptr [edx] */ 11736 MEM32(ecx + 0x8) = esi; /* 0x27018E92: mov dword ptr [ecx + 8], esi */ 11737 esi = MEM32(edx); /* 0x27018E95: mov esi, dword ptr [edx] */ 11738 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018E97: cmp esi, dword ptr [edi + 8] */ 11739 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11741 _flag_k = FK_CMP; 11742 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018E9F; /* 0x27018E9A: je 0x27018e9f */ 11743 L_27018E9C: 11744 MEM32(esi + 0x4) = ecx; /* 0x27018E9C: mov dword ptr [esi + 4], ecx */ 11745 L_27018E9F: 11746 esi = MEM32(ecx + 0x4); /* 0x27018E9F: mov esi, dword ptr [ecx + 4] */ 11747 MEM32(edx + 0x4) = esi; /* 0x27018EA2: mov dword ptr [edx + 4], esi */ 11748 esi = MEM32(edi + 0x4); /* 0x27018EA5: mov esi, dword ptr [edi + 4] */ 11749 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018EA8: cmp ecx, dword ptr [esi + 4] */ 11750 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11752 _flag_k = FK_CMP; 11753 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EB2; /* 0x27018EAB: jne 0x27018eb2 */ 11754 L_27018EAD: 11755 MEM32(esi + 0x4) = edx; /* 0x27018EAD: mov dword ptr [esi + 4], edx */ 11756 goto L_27018EC0; /* 0x27018EB0: jmp 0x27018ec0 */ 11757 L_27018EB2: 11758 esi = MEM32(ecx + 0x4); /* 0x27018EB2: mov esi, dword ptr [ecx + 4] */ 11759 /* cmp ecx, MEM32(esi) */ /* 0x27018EB5: cmp ecx, dword ptr [esi] */ 11760 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11762 _flag_k = FK_CMP; 11763 if (CMP_NE(_flag_a, _flag_b)) goto L_27018EBD; /* 0x27018EB7: jne 0x27018ebd */ 11764 L_27018EB9: 11765 MEM32(esi) = edx; /* 0x27018EB9: mov dword ptr [esi], edx */ 11766 goto L_27018EC0; /* 0x27018EBB: jmp 0x27018ec0 */ 11767 L_27018EBD: 11768 MEM32(esi + 0x8) = edx; /* 0x27018EBD: mov dword ptr [esi + 8], edx */ 11769 L_27018EC0: 11770 MEM32(edx) = ecx; /* 0x27018EC0: mov dword ptr [edx], ecx */ 11771 MEM32(ecx + 0x4) = edx; /* 0x27018EC2: mov dword ptr [ecx + 4], edx */ 11772 edx = MEM32(eax + 0x4); /* 0x27018EC5: mov edx, dword ptr [eax + 4] */ 11773 ecx = MEM32(edx + 0x8); /* 0x27018EC8: mov ecx, dword ptr [edx + 8] */ 11774 L_27018ECB: 11775 edx = MEM32(ecx); /* 0x27018ECB: mov edx, dword ptr [ecx] */ 11776 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ECD: cmp byte ptr [edx + 0x10], bl */ 11777 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11779 _flag_k = FK_NARROW(FK_CMP, 24); 11780 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018ED0: jne 0x27018f66 */ 11781 L_27018ED6: 11782 edx = MEM32(ecx + 0x8); /* 0x27018ED6: mov edx, dword ptr [ecx + 8] */ 11783 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018ED9: cmp byte ptr [edx + 0x10], bl */ 11784 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11786 _flag_k = FK_NARROW(FK_CMP, 24); 11787 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F66; /* 0x27018EDC: jne 0x27018f66 */ 11788 L_27018EE2: 11789 goto L_27018F4E; /* 0x27018EE2: jmp 0x27018f4e */ 11790 L_27018EE4: 11791 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x27018EE4: mov dl, byte ptr [ecx + 0x10] */ 11792 /* test LO8(edx), LO8(edx) */ /* 0x27018EE7: test dl, dl */ 11793 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11794 _cf = 0; 11795 _flag_k = FK_NARROW(FK_TEST, 24); 11796 if (TEST_NZ(_flag_a, _flag_b)) goto L_27018F37; /* 0x27018EE9: jne 0x27018f37 */ 11797 L_27018EEB: 11798 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018EEB: mov byte ptr [ecx + 0x10], bl */ 11799 ecx = MEM32(eax + 0x4); /* 0x27018EEE: mov ecx, dword ptr [eax + 4] */ 11800 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018EF1: mov byte ptr [ecx + 0x10], 0 */ 11801 ecx = MEM32(eax + 0x4); /* 0x27018EF5: mov ecx, dword ptr [eax + 4] */ 11802 edx = MEM32(ecx); /* 0x27018EF8: mov edx, dword ptr [ecx] */ 11803 esi = MEM32(edx + 0x8); /* 0x27018EFA: mov esi, dword ptr [edx + 8] */ 11804 MEM32(ecx) = esi; /* 0x27018EFD: mov dword ptr [ecx], esi */ 11805 esi = MEM32(edx + 0x8); /* 0x27018EFF: mov esi, dword ptr [edx + 8] */ 11806 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F02: cmp esi, dword ptr [edi + 8] */ 11807 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11809 _flag_k = FK_CMP; 11810 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F0A; /* 0x27018F05: je 0x27018f0a */ 11811 L_27018F07: 11812 MEM32(esi + 0x4) = ecx; /* 0x27018F07: mov dword ptr [esi + 4], ecx */ 11813 L_27018F0A: 11814 esi = MEM32(ecx + 0x4); /* 0x27018F0A: mov esi, dword ptr [ecx + 4] */ 11815 MEM32(edx + 0x4) = esi; /* 0x27018F0D: mov dword ptr [edx + 4], esi */ 11816 esi = MEM32(edi + 0x4); /* 0x27018F10: mov esi, dword ptr [edi + 4] */ 11817 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F13: cmp ecx, dword ptr [esi + 4] */ 11818 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11820 _flag_k = FK_CMP; 11821 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F1D; /* 0x27018F16: jne 0x27018f1d */ 11822 L_27018F18: 11823 MEM32(esi + 0x4) = edx; /* 0x27018F18: mov dword ptr [esi + 4], edx */ 11824 goto L_27018F2C; /* 0x27018F1B: jmp 0x27018f2c */ 11825 L_27018F1D: 11826 esi = MEM32(ecx + 0x4); /* 0x27018F1D: mov esi, dword ptr [ecx + 4] */ 11827 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F20: cmp ecx, dword ptr [esi + 8] */ 11828 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11830 _flag_k = FK_CMP; 11831 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F2A; /* 0x27018F23: jne 0x27018f2a */ 11832 L_27018F25: 11833 MEM32(esi + 0x8) = edx; /* 0x27018F25: mov dword ptr [esi + 8], edx */ 11834 goto L_27018F2C; /* 0x27018F28: jmp 0x27018f2c */ 11835 L_27018F2A: 11836 MEM32(esi) = edx; /* 0x27018F2A: mov dword ptr [esi], edx */ 11837 L_27018F2C: 11838 MEM32(edx + 0x8) = ecx; /* 0x27018F2C: mov dword ptr [edx + 8], ecx */ 11839 MEM32(ecx + 0x4) = edx; /* 0x27018F2F: mov dword ptr [ecx + 4], edx */ 11840 edx = MEM32(eax + 0x4); /* 0x27018F32: mov edx, dword ptr [eax + 4] */ 11841 ecx = MEM32(edx); /* 0x27018F35: mov ecx, dword ptr [edx] */ 11842 L_27018F37: 11843 edx = MEM32(ecx + 0x8); /* 0x27018F37: mov edx, dword ptr [ecx + 8] */ 11844 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F3A: cmp byte ptr [edx + 0x10], bl */ 11845 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11847 _flag_k = FK_NARROW(FK_CMP, 24); 11848 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F3D: jne 0x27019013 */ 11849 L_27018F43: 11850 edx = MEM32(ecx); /* 0x27018F43: mov edx, dword ptr [ecx] */ 11851 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F45: cmp byte ptr [edx + 0x10], bl */ 11852 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11854 _flag_k = FK_NARROW(FK_CMP, 24); 11855 if (CMP_NE(_flag_a, _flag_b)) goto L_27019013; /* 0x27018F48: jne 0x27019013 */ 11856 L_27018F4E: 11857 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F4E: mov byte ptr [ecx + 0x10], 0 */ 11858 ecx = MEM32(edi + 0x4); /* 0x27018F52: mov ecx, dword ptr [edi + 4] */ 11859 eax = MEM32(eax + 0x4); /* 0x27018F55: mov eax, dword ptr [eax + 4] */ 11860 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27018F58: cmp eax, dword ptr [ecx + 4] */ 11861 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11863 _flag_k = FK_CMP; 11864 RECOMP_BACKEDGE(); 11865 if (CMP_NE(_flag_a, _flag_b)) goto L_27018E64; /* 0x27018F5B: jne 0x27018e64 */ 11866 L_27018F61: 11867 goto L_270190B2; /* 0x27018F61: jmp 0x270190b2 */ 11868 L_27018F66: 11869 edx = MEM32(ecx + 0x8); /* 0x27018F66: mov edx, dword ptr [ecx + 8] */ 11870 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F69: cmp byte ptr [edx + 0x10], bl */ 11871 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11873 _flag_k = FK_NARROW(FK_CMP, 24); 11874 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FB7; /* 0x27018F6C: jne 0x27018fb7 */ 11875 L_27018F6E: 11876 edx = MEM32(ecx); /* 0x27018F6E: mov edx, dword ptr [ecx] */ 11877 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018F70: mov byte ptr [edx + 0x10], bl */ 11878 edx = MEM32(ecx); /* 0x27018F73: mov edx, dword ptr [ecx] */ 11879 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F75: mov byte ptr [ecx + 0x10], 0 */ 11880 esi = MEM32(edx + 0x8); /* 0x27018F79: mov esi, dword ptr [edx + 8] */ 11881 MEM32(ecx) = esi; /* 0x27018F7C: mov dword ptr [ecx], esi */ 11882 esi = MEM32(edx + 0x8); /* 0x27018F7E: mov esi, dword ptr [edx + 8] */ 11883 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F81: cmp esi, dword ptr [edi + 8] */ 11884 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11886 _flag_k = FK_CMP; 11887 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F89; /* 0x27018F84: je 0x27018f89 */ 11888 L_27018F86: 11889 MEM32(esi + 0x4) = ecx; /* 0x27018F86: mov dword ptr [esi + 4], ecx */ 11890 L_27018F89: 11891 esi = MEM32(ecx + 0x4); /* 0x27018F89: mov esi, dword ptr [ecx + 4] */ 11892 MEM32(edx + 0x4) = esi; /* 0x27018F8C: mov dword ptr [edx + 4], esi */ 11893 esi = MEM32(edi + 0x4); /* 0x27018F8F: mov esi, dword ptr [edi + 4] */ 11894 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F92: cmp ecx, dword ptr [esi + 4] */ 11895 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11897 _flag_k = FK_CMP; 11898 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F9C; /* 0x27018F95: jne 0x27018f9c */ 11899 L_27018F97: 11900 MEM32(esi + 0x4) = edx; /* 0x27018F97: mov dword ptr [esi + 4], edx */ 11901 goto L_27018FAB; /* 0x27018F9A: jmp 0x27018fab */ 11902 L_27018F9C: 11903 esi = MEM32(ecx + 0x4); /* 0x27018F9C: mov esi, dword ptr [ecx + 4] */ 11904 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F9F: cmp ecx, dword ptr [esi + 8] */ 11905 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11907 _flag_k = FK_CMP; 11908 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FA9; /* 0x27018FA2: jne 0x27018fa9 */ 11909 L_27018FA4: 11910 MEM32(esi + 0x8) = edx; /* 0x27018FA4: mov dword ptr [esi + 8], edx */ 11911 goto L_27018FAB; /* 0x27018FA7: jmp 0x27018fab */ 11912 L_27018FA9: 11913 MEM32(esi) = edx; /* 0x27018FA9: mov dword ptr [esi], edx */ 11914 L_27018FAB: 11915 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 11916 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 11917 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 11918 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 11919 L_27018FB7: 11920 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 11921 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 11922 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 11923 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 11924 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 11925 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 11926 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 11927 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 11928 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 11929 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 11930 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 11931 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 11932 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: cmp esi, dword ptr [edi + 8] */ 11933 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11935 _flag_k = FK_CMP; 11936 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 11937 L_27018FDE: 11938 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 11939 L_27018FE1: 11940 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 11941 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 11942 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 11943 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: cmp ecx, dword ptr [esi + 4] */ 11944 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11946 _flag_k = FK_CMP; 11947 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 11948 L_27018FEF: 11949 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 11950 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 11951 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 11952 L_27018FF9: 11953 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 11954 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: cmp ecx, dword ptr [esi] */ 11955 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11957 _flag_k = FK_CMP; 11958 if (CMP_NE(_flag_a, _flag_b)) goto L_27019009; /* 0x27018FFE: jne 0x27019009 */ 11959 L_27019000: 11960 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 11961 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 11962 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 11963 L_27019009: 11964 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 11965 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 11966 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 11967 L_27019013: 11968 edx = MEM32(ecx); /* 0x27019013: mov edx, dword ptr [ecx] */ 11969 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27019015: cmp byte ptr [edx + 0x10], bl */ 11970 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11972 _flag_k = FK_NARROW(FK_CMP, 24); 11973 if (CMP_NE(_flag_a, _flag_b)) goto L_27019061; /* 0x27019018: jne 0x27019061 */ 11974 L_2701901A: 11975 edx = MEM32(ecx + 0x8); /* 0x2701901A: mov edx, dword ptr [ecx + 8] */ 11976 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701901D: mov byte ptr [edx + 0x10], bl */ 11977 edx = MEM32(ecx + 0x8); /* 0x27019020: mov edx, dword ptr [ecx + 8] */ 11978 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019023: mov byte ptr [ecx + 0x10], 0 */ 11979 esi = MEM32(edx); /* 0x27019027: mov esi, dword ptr [edx] */ 11980 MEM32(ecx + 0x8) = esi; /* 0x27019029: mov dword ptr [ecx + 8], esi */ 11981 esi = MEM32(edx); /* 0x2701902C: mov esi, dword ptr [edx] */ 11982 /* cmp esi, MEM32(edi + 0x8) */ /* 0x2701902E: cmp esi, dword ptr [edi + 8] */ 11983 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11985 _flag_k = FK_CMP; 11986 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019036; /* 0x27019031: je 0x27019036 */ 11987 L_27019033: 11988 MEM32(esi + 0x4) = ecx; /* 0x27019033: mov dword ptr [esi + 4], ecx */ 11989 L_27019036: 11990 esi = MEM32(ecx + 0x4); /* 0x27019036: mov esi, dword ptr [ecx + 4] */ 11991 MEM32(edx + 0x4) = esi; /* 0x27019039: mov dword ptr [edx + 4], esi */ 11992 esi = MEM32(edi + 0x4); /* 0x2701903C: mov esi, dword ptr [edi + 4] */ 11993 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2701903F: cmp ecx, dword ptr [esi + 4] */ 11994 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11996 _flag_k = FK_CMP; 11997 if (CMP_NE(_flag_a, _flag_b)) goto L_27019049; /* 0x27019042: jne 0x27019049 */ 11998 L_27019044: 11999 MEM32(esi + 0x4) = edx; /* 0x27019044: mov dword ptr [esi + 4], edx */ 12000 goto L_27019057; /* 0x27019047: jmp 0x27019057 */ 12001 L_27019049: 12002 esi = MEM32(ecx + 0x4); /* 0x27019049: mov esi, dword ptr [ecx + 4] */ 12003 /* cmp ecx, MEM32(esi) */ /* 0x2701904C: cmp ecx, dword ptr [esi] */ 12004 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12006 _flag_k = FK_CMP; 12007 if (CMP_NE(_flag_a, _flag_b)) goto L_27019054; /* 0x2701904E: jne 0x27019054 */ 12008 L_27019050: 12009 MEM32(esi) = edx; /* 0x27019050: mov dword ptr [esi], edx */ 12010 goto L_27019057; /* 0x27019052: jmp 0x27019057 */ 12011 L_27019054: 12012 MEM32(esi + 0x8) = edx; /* 0x27019054: mov dword ptr [esi + 8], edx */ 12013 L_27019057: 12014 MEM32(edx) = ecx; /* 0x27019057: mov dword ptr [edx], ecx */ 12015 MEM32(ecx + 0x4) = edx; /* 0x27019059: mov dword ptr [ecx + 4], edx */ 12016 ecx = MEM32(eax + 0x4); /* 0x2701905C: mov ecx, dword ptr [eax + 4] */ 12017 ecx = MEM32(ecx); /* 0x2701905F: mov ecx, dword ptr [ecx] */ 12018 L_27019061: 12019 edx = MEM32(eax + 0x4); /* 0x27019061: mov edx, dword ptr [eax + 4] */ 12020 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27019064: mov dl, byte ptr [edx + 0x10] */ 12021 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27019067: mov byte ptr [ecx + 0x10], dl */ 12022 edx = MEM32(eax + 0x4); /* 0x2701906A: mov edx, dword ptr [eax + 4] */ 12023 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701906D: mov byte ptr [edx + 0x10], bl */ 12024 ecx = MEM32(ecx); /* 0x27019070: mov ecx, dword ptr [ecx] */ 12025 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019072: mov byte ptr [ecx + 0x10], bl */ 12026 ecx = MEM32(eax + 0x4); /* 0x27019075: mov ecx, dword ptr [eax + 4] */ 12027 edx = MEM32(ecx); /* 0x27019078: mov edx, dword ptr [ecx] */ 12028 esi = MEM32(edx + 0x8); /* 0x2701907A: mov esi, dword ptr [edx + 8] */ 12029 MEM32(ecx) = esi; /* 0x2701907D: mov dword ptr [ecx], esi */ 12030 esi = MEM32(edx + 0x8); /* 0x2701907F: mov esi, dword ptr [edx + 8] */ 12031 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27019082: cmp esi, dword ptr [edi + 8] */ 12032 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12034 _flag_k = FK_CMP; 12035 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701908A; /* 0x27019085: je 0x2701908a */ 12036 L_27019087: 12037 MEM32(esi + 0x4) = ecx; /* 0x27019087: mov dword ptr [esi + 4], ecx */ 12038 L_2701908A: 12039 esi = MEM32(ecx + 0x4); /* 0x2701908A: mov esi, dword ptr [ecx + 4] */ 12040 MEM32(edx + 0x4) = esi; /* 0x2701908D: mov dword ptr [edx + 4], esi */ 12041 esi = MEM32(edi + 0x4); /* 0x27019090: mov esi, dword ptr [edi + 4] */ 12042 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27019093: cmp ecx, dword ptr [esi + 4] */ 12043 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12045 _flag_k = FK_CMP; 12046 if (CMP_NE(_flag_a, _flag_b)) goto L_2701909D; /* 0x27019096: jne 0x2701909d */ 12047 L_27019098: 12048 MEM32(esi + 0x4) = edx; /* 0x27019098: mov dword ptr [esi + 4], edx */ 12049 goto L_270190AC; /* 0x2701909B: jmp 0x270190ac */ 12050 L_2701909D: 12051 esi = MEM32(ecx + 0x4); /* 0x2701909D: mov esi, dword ptr [ecx + 4] */ 12052 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x270190A0: cmp ecx, dword ptr [esi + 8] */ 12053 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12055 _flag_k = FK_CMP; 12056 if (CMP_NE(_flag_a, _flag_b)) goto L_270190AA; /* 0x270190A3: jne 0x270190aa */ 12057 L_270190A5: 12058 MEM32(esi + 0x8) = edx; /* 0x270190A5: mov dword ptr [esi + 8], edx */ 12059 goto L_270190AC; /* 0x270190A8: jmp 0x270190ac */ 12060 L_270190AA: 12061 MEM32(esi) = edx; /* 0x270190AA: mov dword ptr [esi], edx */ 12062 L_270190AC: 12063 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 12064 L_270190AF: 12065 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 12066 L_270190B2: 12067 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 12068 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 12069 PUSH32(esp, edx); /* 0x270190B8: push edx */ 12070 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 12071 RECOMP_FLAGS_IN(); 12072 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 12073 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 12074 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12075 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12076 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 12077 _flag_k = FK_ADD; 12078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12079 eax = eax - 1; /* 0x270190C7: dec eax */ 12080 _flag_k = FK_DEC; 12081 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 12082 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 12083 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 12084 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 12085 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 12086 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 12087 esp = ebp; /* 0x270190D3: mov esp, ebp */ 12088 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 12089 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 12090 RECOMP_REGS_OUT(); 12091 } 12092 12093 void sub_27018F66(void) { 12094 int _fpu_cmp = 0; 12095 uint32_t _cf = 0; 12096 int _df = 1; 12097 uint32_t _flag_k = FK_NONE; 12098 uint32_t _flag_a = 0, _flag_b = 0; 12099 uint32_t _itail_tgt = 0; 12100 RECOMP_REGS_LOCALS 12101 RECOMP_ENTER(0x27018F66u); 12102 12103 L_27018F66: 12104 edx = MEM32(ecx + 0x8); /* 0x27018F66: mov edx, dword ptr [ecx + 8] */ 12105 /* cmp MEM8(edx + 0x10), LO8(ebx) */ /* 0x27018F69: cmp byte ptr [edx + 0x10], bl */ 12106 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12108 _flag_k = FK_NARROW(FK_CMP, 24); 12109 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FB7; /* 0x27018F6C: jne 0x27018fb7 */ 12110 L_27018F6E: 12111 edx = MEM32(ecx); /* 0x27018F6E: mov edx, dword ptr [ecx] */ 12112 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018F70: mov byte ptr [edx + 0x10], bl */ 12113 edx = MEM32(ecx); /* 0x27018F73: mov edx, dword ptr [ecx] */ 12114 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27018F75: mov byte ptr [ecx + 0x10], 0 */ 12115 esi = MEM32(edx + 0x8); /* 0x27018F79: mov esi, dword ptr [edx + 8] */ 12116 MEM32(ecx) = esi; /* 0x27018F7C: mov dword ptr [ecx], esi */ 12117 esi = MEM32(edx + 0x8); /* 0x27018F7E: mov esi, dword ptr [edx + 8] */ 12118 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018F81: cmp esi, dword ptr [edi + 8] */ 12119 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12121 _flag_k = FK_CMP; 12122 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018F89; /* 0x27018F84: je 0x27018f89 */ 12123 L_27018F86: 12124 MEM32(esi + 0x4) = ecx; /* 0x27018F86: mov dword ptr [esi + 4], ecx */ 12125 L_27018F89: 12126 esi = MEM32(ecx + 0x4); /* 0x27018F89: mov esi, dword ptr [ecx + 4] */ 12127 MEM32(edx + 0x4) = esi; /* 0x27018F8C: mov dword ptr [edx + 4], esi */ 12128 esi = MEM32(edi + 0x4); /* 0x27018F8F: mov esi, dword ptr [edi + 4] */ 12129 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018F92: cmp ecx, dword ptr [esi + 4] */ 12130 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12132 _flag_k = FK_CMP; 12133 if (CMP_NE(_flag_a, _flag_b)) goto L_27018F9C; /* 0x27018F95: jne 0x27018f9c */ 12134 L_27018F97: 12135 MEM32(esi + 0x4) = edx; /* 0x27018F97: mov dword ptr [esi + 4], edx */ 12136 goto L_27018FAB; /* 0x27018F9A: jmp 0x27018fab */ 12137 L_27018F9C: 12138 esi = MEM32(ecx + 0x4); /* 0x27018F9C: mov esi, dword ptr [ecx + 4] */ 12139 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x27018F9F: cmp ecx, dword ptr [esi + 8] */ 12140 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12142 _flag_k = FK_CMP; 12143 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FA9; /* 0x27018FA2: jne 0x27018fa9 */ 12144 L_27018FA4: 12145 MEM32(esi + 0x8) = edx; /* 0x27018FA4: mov dword ptr [esi + 8], edx */ 12146 goto L_27018FAB; /* 0x27018FA7: jmp 0x27018fab */ 12147 L_27018FA9: 12148 MEM32(esi) = edx; /* 0x27018FA9: mov dword ptr [esi], edx */ 12149 L_27018FAB: 12150 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 12151 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 12152 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 12153 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 12154 L_27018FB7: 12155 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 12156 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 12157 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 12158 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 12159 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 12160 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 12161 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 12162 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 12163 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 12164 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 12165 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 12166 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 12167 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: cmp esi, dword ptr [edi + 8] */ 12168 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12170 _flag_k = FK_CMP; 12171 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 12172 L_27018FDE: 12173 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 12174 L_27018FE1: 12175 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 12176 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 12177 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 12178 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: cmp ecx, dword ptr [esi + 4] */ 12179 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12181 _flag_k = FK_CMP; 12182 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 12183 L_27018FEF: 12184 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 12185 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 12186 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 12187 L_27018FF9: 12188 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 12189 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: cmp ecx, dword ptr [esi] */ 12190 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12192 _flag_k = FK_CMP; 12193 if (CMP_NE(_flag_a, _flag_b)) goto L_27019009; /* 0x27018FFE: jne 0x27019009 */ 12194 L_27019000: 12195 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 12196 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 12197 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 12198 L_27019009: 12199 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 12200 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 12201 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 12202 L_270190AF: 12203 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 12204 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 12205 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 12206 PUSH32(esp, edx); /* 0x270190B8: push edx */ 12207 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 12208 RECOMP_FLAGS_IN(); 12209 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 12210 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 12211 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12212 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12213 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 12214 _flag_k = FK_ADD; 12215 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12216 eax = eax - 1; /* 0x270190C7: dec eax */ 12217 _flag_k = FK_DEC; 12218 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 12219 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 12220 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 12221 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 12222 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 12223 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 12224 esp = ebp; /* 0x270190D3: mov esp, ebp */ 12225 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 12226 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 12227 RECOMP_REGS_OUT(); 12228 } 12229 12230 void sub_27018FAB(void) { 12231 int _fpu_cmp = 0; 12232 uint32_t _cf = 0; 12233 int _df = 1; 12234 uint32_t _flag_k = FK_NONE; 12235 uint32_t _flag_a = 0, _flag_b = 0; 12236 uint32_t _itail_tgt = 0; 12237 RECOMP_REGS_LOCALS 12238 RECOMP_ENTER(0x27018FABu); 12239 12240 L_27018FAB: 12241 MEM32(edx + 0x8) = ecx; /* 0x27018FAB: mov dword ptr [edx + 8], ecx */ 12242 MEM32(ecx + 0x4) = edx; /* 0x27018FAE: mov dword ptr [ecx + 4], edx */ 12243 ecx = MEM32(eax + 0x4); /* 0x27018FB1: mov ecx, dword ptr [eax + 4] */ 12244 ecx = MEM32(ecx + 0x8); /* 0x27018FB4: mov ecx, dword ptr [ecx + 8] */ 12245 edx = MEM32(eax + 0x4); /* 0x27018FB7: mov edx, dword ptr [eax + 4] */ 12246 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27018FBA: mov dl, byte ptr [edx + 0x10] */ 12247 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27018FBD: mov byte ptr [ecx + 0x10], dl */ 12248 edx = MEM32(eax + 0x4); /* 0x27018FC0: mov edx, dword ptr [eax + 4] */ 12249 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC3: mov byte ptr [edx + 0x10], bl */ 12250 ecx = MEM32(ecx + 0x8); /* 0x27018FC6: mov ecx, dword ptr [ecx + 8] */ 12251 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27018FC9: mov byte ptr [ecx + 0x10], bl */ 12252 ecx = MEM32(eax + 0x4); /* 0x27018FCC: mov ecx, dword ptr [eax + 4] */ 12253 edx = MEM32(ecx + 0x8); /* 0x27018FCF: mov edx, dword ptr [ecx + 8] */ 12254 esi = MEM32(edx); /* 0x27018FD2: mov esi, dword ptr [edx] */ 12255 MEM32(ecx + 0x8) = esi; /* 0x27018FD4: mov dword ptr [ecx + 8], esi */ 12256 esi = MEM32(edx); /* 0x27018FD7: mov esi, dword ptr [edx] */ 12257 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27018FD9: cmp esi, dword ptr [edi + 8] */ 12258 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12260 _flag_k = FK_CMP; 12261 if (CMP_EQ(_flag_a, _flag_b)) goto L_27018FE1; /* 0x27018FDC: je 0x27018fe1 */ 12262 L_27018FDE: 12263 MEM32(esi + 0x4) = ecx; /* 0x27018FDE: mov dword ptr [esi + 4], ecx */ 12264 L_27018FE1: 12265 esi = MEM32(ecx + 0x4); /* 0x27018FE1: mov esi, dword ptr [ecx + 4] */ 12266 MEM32(edx + 0x4) = esi; /* 0x27018FE4: mov dword ptr [edx + 4], esi */ 12267 esi = MEM32(edi + 0x4); /* 0x27018FE7: mov esi, dword ptr [edi + 4] */ 12268 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27018FEA: cmp ecx, dword ptr [esi + 4] */ 12269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12271 _flag_k = FK_CMP; 12272 if (CMP_NE(_flag_a, _flag_b)) goto L_27018FF9; /* 0x27018FED: jne 0x27018ff9 */ 12273 L_27018FEF: 12274 MEM32(esi + 0x4) = edx; /* 0x27018FEF: mov dword ptr [esi + 4], edx */ 12275 MEM32(edx) = ecx; /* 0x27018FF2: mov dword ptr [edx], ecx */ 12276 goto L_270190AF; /* 0x27018FF4: jmp 0x270190af */ 12277 L_27018FF9: 12278 esi = MEM32(ecx + 0x4); /* 0x27018FF9: mov esi, dword ptr [ecx + 4] */ 12279 /* cmp ecx, MEM32(esi) */ /* 0x27018FFC: cmp ecx, dword ptr [esi] */ 12280 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12282 _flag_k = FK_CMP; 12283 if (CMP_NE(_flag_a, _flag_b)) goto L_27019009; /* 0x27018FFE: jne 0x27019009 */ 12284 L_27019000: 12285 MEM32(esi) = edx; /* 0x27019000: mov dword ptr [esi], edx */ 12286 MEM32(edx) = ecx; /* 0x27019002: mov dword ptr [edx], ecx */ 12287 goto L_270190AF; /* 0x27019004: jmp 0x270190af */ 12288 L_27019009: 12289 MEM32(esi + 0x8) = edx; /* 0x27019009: mov dword ptr [esi + 8], edx */ 12290 MEM32(edx) = ecx; /* 0x2701900C: mov dword ptr [edx], ecx */ 12291 goto L_270190AF; /* 0x2701900E: jmp 0x270190af */ 12292 L_270190AF: 12293 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 12294 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 12295 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 12296 PUSH32(esp, edx); /* 0x270190B8: push edx */ 12297 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 12298 RECOMP_FLAGS_IN(); 12299 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 12300 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 12301 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12302 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12303 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 12304 _flag_k = FK_ADD; 12305 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12306 eax = eax - 1; /* 0x270190C7: dec eax */ 12307 _flag_k = FK_DEC; 12308 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 12309 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 12310 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 12311 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 12312 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 12313 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 12314 esp = ebp; /* 0x270190D3: mov esp, ebp */ 12315 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 12316 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 12317 RECOMP_REGS_OUT(); 12318 }