client/game/ccr.dll/lifted-0009.c (502886B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #include <math.h> 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 void sub_27019057(void) { 9 int _fpu_cmp = 0; 10 uint32_t _cf = 0; 11 int _df = 1; 12 uint32_t _flag_k = FK_NONE; 13 uint32_t _flag_a = 0, _flag_b = 0; 14 uint32_t _itail_tgt = 0; 15 RECOMP_REGS_LOCALS 16 RECOMP_ENTER(0x27019057u); 17 18 L_27019057: 19 MEM32(edx) = ecx; /* 0x27019057: mov dword ptr [edx], ecx */ 20 MEM32(ecx + 0x4) = edx; /* 0x27019059: mov dword ptr [ecx + 4], edx */ 21 ecx = MEM32(eax + 0x4); /* 0x2701905C: mov ecx, dword ptr [eax + 4] */ 22 ecx = MEM32(ecx); /* 0x2701905F: mov ecx, dword ptr [ecx] */ 23 edx = MEM32(eax + 0x4); /* 0x27019061: mov edx, dword ptr [eax + 4] */ 24 SET_LO8(edx, MEM8(edx + 0x10)); /* 0x27019064: mov dl, byte ptr [edx + 0x10] */ 25 MEM8(ecx + 0x10) = (uint8_t)(LO8(edx)); /* 0x27019067: mov byte ptr [ecx + 0x10], dl */ 26 edx = MEM32(eax + 0x4); /* 0x2701906A: mov edx, dword ptr [eax + 4] */ 27 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701906D: mov byte ptr [edx + 0x10], bl */ 28 ecx = MEM32(ecx); /* 0x27019070: mov ecx, dword ptr [ecx] */ 29 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019072: mov byte ptr [ecx + 0x10], bl */ 30 ecx = MEM32(eax + 0x4); /* 0x27019075: mov ecx, dword ptr [eax + 4] */ 31 edx = MEM32(ecx); /* 0x27019078: mov edx, dword ptr [ecx] */ 32 esi = MEM32(edx + 0x8); /* 0x2701907A: mov esi, dword ptr [edx + 8] */ 33 MEM32(ecx) = esi; /* 0x2701907D: mov dword ptr [ecx], esi */ 34 esi = MEM32(edx + 0x8); /* 0x2701907F: mov esi, dword ptr [edx + 8] */ 35 /* cmp esi, MEM32(edi + 0x8) */ /* 0x27019082: cmp esi, dword ptr [edi + 8] */ 36 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 37 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 38 _flag_k = FK_CMP; 39 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701908A; /* 0x27019085: je 0x2701908a */ 40 L_27019087: 41 MEM32(esi + 0x4) = ecx; /* 0x27019087: mov dword ptr [esi + 4], ecx */ 42 L_2701908A: 43 esi = MEM32(ecx + 0x4); /* 0x2701908A: mov esi, dword ptr [ecx + 4] */ 44 MEM32(edx + 0x4) = esi; /* 0x2701908D: mov dword ptr [edx + 4], esi */ 45 esi = MEM32(edi + 0x4); /* 0x27019090: mov esi, dword ptr [edi + 4] */ 46 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x27019093: cmp ecx, dword ptr [esi + 4] */ 47 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 48 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 49 _flag_k = FK_CMP; 50 if (CMP_NE(_flag_a, _flag_b)) goto L_2701909D; /* 0x27019096: jne 0x2701909d */ 51 L_27019098: 52 MEM32(esi + 0x4) = edx; /* 0x27019098: mov dword ptr [esi + 4], edx */ 53 goto L_270190AC; /* 0x2701909B: jmp 0x270190ac */ 54 L_2701909D: 55 esi = MEM32(ecx + 0x4); /* 0x2701909D: mov esi, dword ptr [ecx + 4] */ 56 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x270190A0: cmp ecx, dword ptr [esi + 8] */ 57 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 58 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 59 _flag_k = FK_CMP; 60 if (CMP_NE(_flag_a, _flag_b)) goto L_270190AA; /* 0x270190A3: jne 0x270190aa */ 61 L_270190A5: 62 MEM32(esi + 0x8) = edx; /* 0x270190A5: mov dword ptr [esi + 8], edx */ 63 goto L_270190AC; /* 0x270190A8: jmp 0x270190ac */ 64 L_270190AA: 65 MEM32(esi) = edx; /* 0x270190AA: mov dword ptr [esi], edx */ 66 L_270190AC: 67 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 68 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 69 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 70 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 71 PUSH32(esp, edx); /* 0x270190B8: push edx */ 72 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 73 RECOMP_FLAGS_IN(); 74 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 75 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 76 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 77 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 78 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 79 _flag_k = FK_ADD; 80 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 81 eax = eax - 1; /* 0x270190C7: dec eax */ 82 _flag_k = FK_DEC; 83 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 84 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 85 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 86 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 87 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 88 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 89 esp = ebp; /* 0x270190D3: mov esp, ebp */ 90 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 91 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 92 RECOMP_REGS_OUT(); 93 } 94 95 void sub_270190AC(void) { 96 int _fpu_cmp = 0; 97 uint32_t _cf = 0; 98 int _df = 1; 99 uint32_t _flag_k = FK_NONE; 100 uint32_t _flag_a = 0, _flag_b = 0; 101 uint32_t _itail_tgt = 0; 102 RECOMP_REGS_LOCALS 103 RECOMP_ENTER(0x270190ACu); 104 105 L_270190AC: 106 MEM32(edx + 0x8) = ecx; /* 0x270190AC: mov dword ptr [edx + 8], ecx */ 107 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 108 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 109 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 110 PUSH32(esp, edx); /* 0x270190B8: push edx */ 111 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 112 RECOMP_FLAGS_IN(); 113 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 114 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 117 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 118 _flag_k = FK_ADD; 119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 120 eax = eax - 1; /* 0x270190C7: dec eax */ 121 _flag_k = FK_DEC; 122 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 123 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 124 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 125 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 126 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 127 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 128 esp = ebp; /* 0x270190D3: mov esp, ebp */ 129 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 130 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 131 RECOMP_REGS_OUT(); 132 } 133 134 void sub_270190AF(void) { 135 int _fpu_cmp = 0; 136 uint32_t _cf = 0; 137 int _df = 1; 138 uint32_t _flag_k = FK_NONE; 139 uint32_t _flag_a = 0, _flag_b = 0; 140 uint32_t _itail_tgt = 0; 141 RECOMP_REGS_LOCALS 142 RECOMP_ENTER(0x270190AFu); 143 144 L_270190AF: 145 MEM32(ecx + 0x4) = edx; /* 0x270190AF: mov dword ptr [ecx + 4], edx */ 146 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 147 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 148 PUSH32(esp, edx); /* 0x270190B8: push edx */ 149 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 150 RECOMP_FLAGS_IN(); 151 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 152 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 153 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 155 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 156 _flag_k = FK_ADD; 157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 158 eax = eax - 1; /* 0x270190C7: dec eax */ 159 _flag_k = FK_DEC; 160 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 161 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 162 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 163 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 164 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 165 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 166 esp = ebp; /* 0x270190D3: mov esp, ebp */ 167 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 168 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 169 RECOMP_REGS_OUT(); 170 } 171 172 void sub_270190B2(void) { 173 int _fpu_cmp = 0; 174 uint32_t _cf = 0; 175 int _df = 1; 176 uint32_t _flag_k = FK_NONE; 177 uint32_t _flag_a = 0, _flag_b = 0; 178 uint32_t _itail_tgt = 0; 179 RECOMP_REGS_LOCALS 180 RECOMP_ENTER(0x270190B2u); 181 182 L_270190B2: 183 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270190B2: mov byte ptr [eax + 0x10], bl */ 184 edx = MEM32(ebp + (-0x4)); /* 0x270190B5: mov edx, dword ptr [ebp - 4] */ 185 PUSH32(esp, edx); /* 0x270190B8: push edx */ 186 RECOMP_ICALL(0x27026DA4u); /* 0x270190B9: call 0x27026da4 */ /* not lifted */ 187 RECOMP_FLAGS_IN(); 188 eax = MEM32(edi + 0x10); /* 0x270190BE: mov eax, dword ptr [edi + 0x10] */ 189 ecx = MEM32(ebp + 0xC); /* 0x270190C1: mov ecx, dword ptr [ebp + 0xc] */ 190 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 191 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 192 esp = esp + 4; /* 0x270190C4: add esp, 4 */ 193 _flag_k = FK_ADD; 194 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 195 eax = eax - 1; /* 0x270190C7: dec eax */ 196 _flag_k = FK_DEC; 197 MEM32(edi + 0x10) = eax; /* 0x270190C8: mov dword ptr [edi + 0x10], eax */ 198 eax = MEM32(ebp + 0x8); /* 0x270190CB: mov eax, dword ptr [ebp + 8] */ 199 edi = POP32_VAL(esp); /* 0x270190CE: pop edi */ 200 esi = POP32_VAL(esp); /* 0x270190CF: pop esi */ 201 MEM32(eax) = ecx; /* 0x270190D0: mov dword ptr [eax], ecx */ 202 ebx = POP32_VAL(esp); /* 0x270190D2: pop ebx */ 203 esp = ebp; /* 0x270190D3: mov esp, ebp */ 204 ebp = POP32_VAL(esp); /* 0x270190D5: pop ebp */ 205 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x270190D6: ret 8 */ 206 RECOMP_REGS_OUT(); 207 } 208 209 void sub_270190E0(void) { 210 int _fpu_cmp = 0; 211 uint32_t _cf = 0; 212 int _df = 1; 213 uint32_t _flag_k = FK_NONE; 214 uint32_t _flag_a = 0, _flag_b = 0; 215 uint32_t _itail_tgt = 0; 216 RECOMP_REGS_LOCALS 217 RECOMP_ENTER(0x270190E0u); 218 219 L_270190E0: 220 PUSH32(esp, ebp); /* 0x270190E0: push ebp */ 221 ebp = esp; /* 0x270190E1: mov ebp, esp */ 222 PUSH32(esp, ebx); /* 0x270190E3: push ebx */ 223 PUSH32(esp, esi); /* 0x270190E4: push esi */ 224 ebx = ecx; /* 0x270190E5: mov ebx, ecx */ 225 eax = MEM32(ebx + 0x8); /* 0x270190E7: mov eax, dword ptr [ebx + 8] */ 226 PUSH32(esp, edi); /* 0x270190EA: push edi */ 227 edi = MEM32(ebp + 0x8); /* 0x270190EB: mov edi, dword ptr [ebp + 8] */ 228 /* cmp edi, eax */ /* 0x270190EE: cmp edi, eax */ 229 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 231 _flag_k = FK_CMP; 232 esi = edi; /* 0x270190F0: mov esi, edi */ 233 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019113; /* 0x270190F2: je 0x27019113 */ 234 L_270190F4: 235 eax = MEM32(esi + 0x8); /* 0x270190F4: mov eax, dword ptr [esi + 8] */ 236 PUSH32(esp, eax); /* 0x270190F7: push eax */ 237 ecx = ebx; /* 0x270190F8: mov ecx, ebx */ 238 RECOMP_ICALL(0x270190E0u); /* 0x270190FA: call 0x270190e0 */ /* not lifted */ 239 RECOMP_FLAGS_IN(); 240 esi = MEM32(esi); /* 0x270190FF: mov esi, dword ptr [esi] */ 241 PUSH32(esp, edi); /* 0x27019101: push edi */ 242 RECOMP_ICALL(0x27026DA4u); /* 0x27019102: call 0x27026da4 */ /* not lifted */ 243 RECOMP_FLAGS_IN(); 244 eax = MEM32(ebx + 0x8); /* 0x27019107: mov eax, dword ptr [ebx + 8] */ 245 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 246 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 247 esp = esp + 4; /* 0x2701910A: add esp, 4 */ 248 _flag_k = FK_ADD; 249 /* cmp esi, eax */ /* 0x2701910D: cmp esi, eax */ 250 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 252 _flag_k = FK_CMP; 253 edi = esi; /* 0x2701910F: mov edi, esi */ 254 RECOMP_BACKEDGE(); 255 if (CMP_NE(_flag_a, _flag_b)) goto L_270190F4; /* 0x27019111: jne 0x270190f4 */ 256 L_27019113: 257 edi = POP32_VAL(esp); /* 0x27019113: pop edi */ 258 esi = POP32_VAL(esp); /* 0x27019114: pop esi */ 259 ebx = POP32_VAL(esp); /* 0x27019115: pop ebx */ 260 ebp = POP32_VAL(esp); /* 0x27019116: pop ebp */ 261 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27019117: ret 4 */ 262 RECOMP_REGS_OUT(); 263 } 264 265 void sub_27019120(void) { 266 int _fpu_cmp = 0; 267 uint32_t _cf = 0; 268 int _df = 1; 269 uint32_t _flag_k = FK_NONE; 270 uint32_t _flag_a = 0, _flag_b = 0; 271 uint32_t _itail_tgt = 0; 272 RECOMP_REGS_LOCALS 273 RECOMP_ENTER(0x27019120u); 274 275 L_27019120: 276 PUSH32(esp, ebp); /* 0x27019120: push ebp */ 277 ebp = esp; /* 0x27019121: mov ebp, esp */ 278 PUSH32(esp, ecx); /* 0x27019123: push ecx */ 279 PUSH32(esp, ebx); /* 0x27019124: push ebx */ 280 PUSH32(esp, esi); /* 0x27019125: push esi */ 281 PUSH32(esp, edi); /* 0x27019126: push edi */ 282 PUSH32(esp, 0x14u); /* 0x27019127: push 0x14 */ 283 esi = ecx; /* 0x27019129: mov esi, ecx */ 284 RECOMP_ICALL(0x27026EA4u); /* 0x2701912B: call 0x27026ea4 */ /* not lifted */ 285 RECOMP_FLAGS_IN(); 286 edi = MEM32(ebp + 0x10); /* 0x27019130: mov edi, dword ptr [ebp + 0x10] */ 287 ebx = MEM32(ebp + 0x14); /* 0x27019133: mov ebx, dword ptr [ebp + 0x14] */ 288 MEM32(eax + 0x4) = edi; /* 0x27019136: mov dword ptr [eax + 4], edi */ 289 MEM8(eax + 0x10) = (uint8_t)(0); /* 0x27019139: mov byte ptr [eax + 0x10], 0 */ 290 MEM8(eax + 0x11) = (uint8_t)(0); /* 0x2701913D: mov byte ptr [eax + 0x11], 0 */ 291 ecx = MEM32(esi + 0x8); /* 0x27019141: mov ecx, dword ptr [esi + 8] */ 292 MEM32(eax) = ecx; /* 0x27019144: mov dword ptr [eax], ecx */ 293 edx = MEM32(esi + 0x8); /* 0x27019146: mov edx, dword ptr [esi + 8] */ 294 MEM32(ebp + (-0x4)) = eax; /* 0x27019149: mov dword ptr [ebp - 4], eax */ 295 MEM32(eax + 0x8) = edx; /* 0x2701914C: mov dword ptr [eax + 8], edx */ 296 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 298 eax = eax + 0xCu; /* 0x2701914F: add eax, 0xc */ 299 _flag_k = FK_ADD; 300 PUSH32(esp, ebx); /* 0x27019152: push ebx */ 301 PUSH32(esp, eax); /* 0x27019153: push eax */ 302 RECOMP_ICALL(0x27010CD0u); /* 0x27019154: call 0x27010cd0 */ /* not lifted */ 303 RECOMP_FLAGS_IN(); 304 ecx = MEM32(esi + 0x10); /* 0x27019159: mov ecx, dword ptr [esi + 0x10] */ 305 eax = MEM32(esi + 0x4); /* 0x2701915C: mov eax, dword ptr [esi + 4] */ 306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 308 esp = esp + 0xCu; /* 0x2701915F: add esp, 0xc */ 309 _flag_k = FK_ADD; 310 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 311 ecx = ecx + 1; /* 0x27019162: inc ecx */ 312 _flag_k = FK_INC; 313 /* cmp edi, eax */ /* 0x27019163: cmp edi, eax */ 314 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 316 _flag_k = FK_CMP; 317 MEM32(esi + 0x10) = ecx; /* 0x27019165: mov dword ptr [esi + 0x10], ecx */ 318 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701918C; /* 0x27019168: je 0x2701918c */ 319 L_2701916A: 320 eax = MEM32(ebp + 0xC); /* 0x2701916A: mov eax, dword ptr [ebp + 0xc] */ 321 /* cmp eax, MEM32(esi + 0x8) */ /* 0x2701916D: cmp eax, dword ptr [esi + 8] */ 322 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 324 _flag_k = FK_CMP; 325 if (CMP_NE(_flag_a, _flag_b)) goto L_2701918C; /* 0x27019170: jne 0x2701918c */ 326 L_27019172: 327 ecx = MEM32(ebx); /* 0x27019172: mov ecx, dword ptr [ebx] */ 328 /* cmp ecx, MEM32(edi + 0xC) */ /* 0x27019174: cmp ecx, dword ptr [edi + 0xc] */ 329 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 331 _flag_k = FK_CMP; 332 if (CMP_B(_flag_a, _flag_b)) goto L_2701918C; /* 0x27019177: jb 0x2701918c */ 333 L_27019179: 334 ecx = MEM32(ebp + (-0x4)); /* 0x27019179: mov ecx, dword ptr [ebp - 4] */ 335 MEM32(edi + 0x8) = ecx; /* 0x2701917C: mov dword ptr [edi + 8], ecx */ 336 eax = MEM32(esi + 0x4); /* 0x2701917F: mov eax, dword ptr [esi + 4] */ 337 /* cmp edi, MEM32(eax + 0x8) */ /* 0x27019182: cmp edi, dword ptr [eax + 8] */ 338 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 340 _flag_k = FK_CMP; 341 if (CMP_NE(_flag_a, _flag_b)) goto L_270191AC; /* 0x27019185: jne 0x270191ac */ 342 L_27019187: 343 MEM32(eax + 0x8) = ecx; /* 0x27019187: mov dword ptr [eax + 8], ecx */ 344 goto L_270191AC; /* 0x2701918A: jmp 0x270191ac */ 345 L_2701918C: 346 ecx = MEM32(ebp + (-0x4)); /* 0x2701918C: mov ecx, dword ptr [ebp - 4] */ 347 MEM32(edi) = ecx; /* 0x2701918F: mov dword ptr [edi], ecx */ 348 eax = MEM32(esi + 0x4); /* 0x27019191: mov eax, dword ptr [esi + 4] */ 349 /* cmp edi, eax */ /* 0x27019194: cmp edi, eax */ 350 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 352 _flag_k = FK_CMP; 353 if (CMP_NE(_flag_a, _flag_b)) goto L_270191A3; /* 0x27019196: jne 0x270191a3 */ 354 L_27019198: 355 MEM32(eax + 0x4) = ecx; /* 0x27019198: mov dword ptr [eax + 4], ecx */ 356 edx = MEM32(esi + 0x4); /* 0x2701919B: mov edx, dword ptr [esi + 4] */ 357 MEM32(edx + 0x8) = ecx; /* 0x2701919E: mov dword ptr [edx + 8], ecx */ 358 goto L_270191AC; /* 0x270191A1: jmp 0x270191ac */ 359 L_270191A3: 360 /* cmp edi, MEM32(eax) */ /* 0x270191A3: cmp edi, dword ptr [eax] */ 361 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 363 _flag_k = FK_CMP; 364 if (CMP_NE(_flag_a, _flag_b)) goto L_270191AC; /* 0x270191A5: jne 0x270191ac */ 365 L_270191A7: 366 ecx = MEM32(ebp + (-0x4)); /* 0x270191A7: mov ecx, dword ptr [ebp - 4] */ 367 MEM32(eax) = ecx; /* 0x270191AA: mov dword ptr [eax], ecx */ 368 L_270191AC: 369 edx = MEM32(esi + 0x4); /* 0x270191AC: mov edx, dword ptr [esi + 4] */ 370 eax = MEM32(ebp + (-0x4)); /* 0x270191AF: mov eax, dword ptr [ebp - 4] */ 371 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270191B2: cmp eax, dword ptr [edx + 4] */ 372 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 374 _flag_k = FK_CMP; 375 SET_LO8(ebx, 1); /* 0x270191B5: mov bl, 1 */ 376 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701933D; /* 0x270191B7: je 0x2701933d */ 377 L_270191BD: 378 ecx = MEM32(eax + 0x4); /* 0x270191BD: mov ecx, dword ptr [eax + 4] */ 379 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x270191C0: mov dl, byte ptr [ecx + 0x10] */ 380 /* test LO8(edx), LO8(edx) */ /* 0x270191C3: test dl, dl */ 381 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 382 _cf = 0; 383 _flag_k = FK_NARROW(FK_TEST, 24); 384 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701933D; /* 0x270191C5: jne 0x2701933d */ 385 L_270191CB: 386 edi = MEM32(ecx + 0x4); /* 0x270191CB: mov edi, dword ptr [ecx + 4] */ 387 edx = MEM32(edi); /* 0x270191CE: mov edx, dword ptr [edi] */ 388 /* cmp ecx, edx */ /* 0x270191D0: cmp ecx, edx */ 389 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 391 _flag_k = FK_CMP; 392 if (CMP_NE(_flag_a, _flag_b)) goto L_27019299; /* 0x270191D2: jne 0x27019299 */ 393 L_270191D8: 394 edx = MEM32(edi + 0x8); /* 0x270191D8: mov edx, dword ptr [edi + 8] */ 395 /* cmp MEM8(edx + 0x10), 0 */ /* 0x270191DB: cmp byte ptr [edx + 0x10], 0 */ 396 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 398 _flag_k = FK_NARROW(FK_CMP, 24); 399 if (CMP_NE(_flag_a, _flag_b)) goto L_270191FC; /* 0x270191DF: jne 0x270191fc */ 400 L_270191E1: 401 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E1: mov byte ptr [ecx + 0x10], bl */ 402 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E4: mov byte ptr [edx + 0x10], bl */ 403 ecx = MEM32(eax + 0x4); /* 0x270191E7: mov ecx, dword ptr [eax + 4] */ 404 edx = MEM32(ecx + 0x4); /* 0x270191EA: mov edx, dword ptr [ecx + 4] */ 405 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x270191ED: mov byte ptr [edx + 0x10], 0 */ 406 eax = MEM32(eax + 0x4); /* 0x270191F1: mov eax, dword ptr [eax + 4] */ 407 eax = MEM32(eax + 0x4); /* 0x270191F4: mov eax, dword ptr [eax + 4] */ 408 goto L_27019331; /* 0x270191F7: jmp 0x27019331 */ 409 L_270191FC: 410 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270191FC: cmp eax, dword ptr [ecx + 8] */ 411 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 413 _flag_k = FK_CMP; 414 if (CMP_NE(_flag_a, _flag_b)) goto L_2701923B; /* 0x270191FF: jne 0x2701923b */ 415 L_27019201: 416 eax = ecx; /* 0x27019201: mov eax, ecx */ 417 ecx = MEM32(eax + 0x8); /* 0x27019203: mov ecx, dword ptr [eax + 8] */ 418 edx = MEM32(ecx); /* 0x27019206: mov edx, dword ptr [ecx] */ 419 MEM32(eax + 0x8) = edx; /* 0x27019208: mov dword ptr [eax + 8], edx */ 420 edx = MEM32(ecx); /* 0x2701920B: mov edx, dword ptr [ecx] */ 421 /* cmp edx, MEM32(esi + 0x8) */ /* 0x2701920D: cmp edx, dword ptr [esi + 8] */ 422 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 424 _flag_k = FK_CMP; 425 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019215; /* 0x27019210: je 0x27019215 */ 426 L_27019212: 427 MEM32(edx + 0x4) = eax; /* 0x27019212: mov dword ptr [edx + 4], eax */ 428 L_27019215: 429 edx = MEM32(eax + 0x4); /* 0x27019215: mov edx, dword ptr [eax + 4] */ 430 MEM32(ecx + 0x4) = edx; /* 0x27019218: mov dword ptr [ecx + 4], edx */ 431 edx = MEM32(esi + 0x4); /* 0x2701921B: mov edx, dword ptr [esi + 4] */ 432 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701921E: cmp eax, dword ptr [edx + 4] */ 433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 435 _flag_k = FK_CMP; 436 if (CMP_NE(_flag_a, _flag_b)) goto L_27019228; /* 0x27019221: jne 0x27019228 */ 437 L_27019223: 438 MEM32(edx + 0x4) = ecx; /* 0x27019223: mov dword ptr [edx + 4], ecx */ 439 goto L_27019236; /* 0x27019226: jmp 0x27019236 */ 440 L_27019228: 441 edx = MEM32(eax + 0x4); /* 0x27019228: mov edx, dword ptr [eax + 4] */ 442 /* cmp eax, MEM32(edx) */ /* 0x2701922B: cmp eax, dword ptr [edx] */ 443 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 445 _flag_k = FK_CMP; 446 if (CMP_NE(_flag_a, _flag_b)) goto L_27019233; /* 0x2701922D: jne 0x27019233 */ 447 L_2701922F: 448 MEM32(edx) = ecx; /* 0x2701922F: mov dword ptr [edx], ecx */ 449 goto L_27019236; /* 0x27019231: jmp 0x27019236 */ 450 L_27019233: 451 MEM32(edx + 0x8) = ecx; /* 0x27019233: mov dword ptr [edx + 8], ecx */ 452 L_27019236: 453 MEM32(ecx) = eax; /* 0x27019236: mov dword ptr [ecx], eax */ 454 MEM32(eax + 0x4) = ecx; /* 0x27019238: mov dword ptr [eax + 4], ecx */ 455 L_2701923B: 456 ecx = MEM32(eax + 0x4); /* 0x2701923B: mov ecx, dword ptr [eax + 4] */ 457 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701923E: mov byte ptr [ecx + 0x10], bl */ 458 edx = MEM32(eax + 0x4); /* 0x27019241: mov edx, dword ptr [eax + 4] */ 459 ecx = MEM32(edx + 0x4); /* 0x27019244: mov ecx, dword ptr [edx + 4] */ 460 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019247: mov byte ptr [ecx + 0x10], 0 */ 461 edx = MEM32(eax + 0x4); /* 0x2701924B: mov edx, dword ptr [eax + 4] */ 462 ecx = MEM32(edx + 0x4); /* 0x2701924E: mov ecx, dword ptr [edx + 4] */ 463 edx = MEM32(ecx); /* 0x27019251: mov edx, dword ptr [ecx] */ 464 edi = MEM32(edx + 0x8); /* 0x27019253: mov edi, dword ptr [edx + 8] */ 465 MEM32(ecx) = edi; /* 0x27019256: mov dword ptr [ecx], edi */ 466 edi = MEM32(edx + 0x8); /* 0x27019258: mov edi, dword ptr [edx + 8] */ 467 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701925B: cmp edi, dword ptr [esi + 8] */ 468 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 470 _flag_k = FK_CMP; 471 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019263; /* 0x2701925E: je 0x27019263 */ 472 L_27019260: 473 MEM32(edi + 0x4) = ecx; /* 0x27019260: mov dword ptr [edi + 4], ecx */ 474 L_27019263: 475 edi = MEM32(ecx + 0x4); /* 0x27019263: mov edi, dword ptr [ecx + 4] */ 476 MEM32(edx + 0x4) = edi; /* 0x27019266: mov dword ptr [edx + 4], edi */ 477 edi = MEM32(esi + 0x4); /* 0x27019269: mov edi, dword ptr [esi + 4] */ 478 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701926C: cmp ecx, dword ptr [edi + 4] */ 479 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 481 _flag_k = FK_CMP; 482 if (CMP_NE(_flag_a, _flag_b)) goto L_2701927C; /* 0x2701926F: jne 0x2701927c */ 483 L_27019271: 484 MEM32(edi + 0x4) = edx; /* 0x27019271: mov dword ptr [edi + 4], edx */ 485 MEM32(edx + 0x8) = ecx; /* 0x27019274: mov dword ptr [edx + 8], ecx */ 486 goto L_2701932E; /* 0x27019277: jmp 0x2701932e */ 487 L_2701927C: 488 edi = MEM32(ecx + 0x4); /* 0x2701927C: mov edi, dword ptr [ecx + 4] */ 489 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701927F: cmp ecx, dword ptr [edi + 8] */ 490 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 492 _flag_k = FK_CMP; 493 if (CMP_NE(_flag_a, _flag_b)) goto L_2701928F; /* 0x27019282: jne 0x2701928f */ 494 L_27019284: 495 MEM32(edi + 0x8) = edx; /* 0x27019284: mov dword ptr [edi + 8], edx */ 496 MEM32(edx + 0x8) = ecx; /* 0x27019287: mov dword ptr [edx + 8], ecx */ 497 goto L_2701932E; /* 0x2701928A: jmp 0x2701932e */ 498 L_2701928F: 499 MEM32(edi) = edx; /* 0x2701928F: mov dword ptr [edi], edx */ 500 MEM32(edx + 0x8) = ecx; /* 0x27019291: mov dword ptr [edx + 8], ecx */ 501 goto L_2701932E; /* 0x27019294: jmp 0x2701932e */ 502 L_27019299: 503 /* cmp MEM8(edx + 0x10), 0 */ /* 0x27019299: cmp byte ptr [edx + 0x10], 0 */ 504 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 506 _flag_k = FK_NARROW(FK_CMP, 24); 507 RECOMP_BACKEDGE(); 508 if (CMP_EQ(_flag_a, _flag_b)) goto L_270191E1; /* 0x2701929D: je 0x270191e1 */ 509 L_270192A3: 510 /* cmp eax, MEM32(ecx) */ /* 0x270192A3: cmp eax, dword ptr [ecx] */ 511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 513 _flag_k = FK_CMP; 514 if (CMP_NE(_flag_a, _flag_b)) goto L_270192E3; /* 0x270192A5: jne 0x270192e3 */ 515 L_270192A7: 516 eax = ecx; /* 0x270192A7: mov eax, ecx */ 517 ecx = MEM32(eax); /* 0x270192A9: mov ecx, dword ptr [eax] */ 518 edx = MEM32(ecx + 0x8); /* 0x270192AB: mov edx, dword ptr [ecx + 8] */ 519 MEM32(eax) = edx; /* 0x270192AE: mov dword ptr [eax], edx */ 520 edx = MEM32(ecx + 0x8); /* 0x270192B0: mov edx, dword ptr [ecx + 8] */ 521 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270192B3: cmp edx, dword ptr [esi + 8] */ 522 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 524 _flag_k = FK_CMP; 525 if (CMP_EQ(_flag_a, _flag_b)) goto L_270192BB; /* 0x270192B6: je 0x270192bb */ 526 L_270192B8: 527 MEM32(edx + 0x4) = eax; /* 0x270192B8: mov dword ptr [edx + 4], eax */ 528 L_270192BB: 529 edx = MEM32(eax + 0x4); /* 0x270192BB: mov edx, dword ptr [eax + 4] */ 530 MEM32(ecx + 0x4) = edx; /* 0x270192BE: mov dword ptr [ecx + 4], edx */ 531 edx = MEM32(esi + 0x4); /* 0x270192C1: mov edx, dword ptr [esi + 4] */ 532 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270192C4: cmp eax, dword ptr [edx + 4] */ 533 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 535 _flag_k = FK_CMP; 536 if (CMP_NE(_flag_a, _flag_b)) goto L_270192CE; /* 0x270192C7: jne 0x270192ce */ 537 L_270192C9: 538 MEM32(edx + 0x4) = ecx; /* 0x270192C9: mov dword ptr [edx + 4], ecx */ 539 goto L_270192DD; /* 0x270192CC: jmp 0x270192dd */ 540 L_270192CE: 541 edx = MEM32(eax + 0x4); /* 0x270192CE: mov edx, dword ptr [eax + 4] */ 542 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270192D1: cmp eax, dword ptr [edx + 8] */ 543 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 545 _flag_k = FK_CMP; 546 if (CMP_NE(_flag_a, _flag_b)) goto L_270192DB; /* 0x270192D4: jne 0x270192db */ 547 L_270192D6: 548 MEM32(edx + 0x8) = ecx; /* 0x270192D6: mov dword ptr [edx + 8], ecx */ 549 goto L_270192DD; /* 0x270192D9: jmp 0x270192dd */ 550 L_270192DB: 551 MEM32(edx) = ecx; /* 0x270192DB: mov dword ptr [edx], ecx */ 552 L_270192DD: 553 MEM32(ecx + 0x8) = eax; /* 0x270192DD: mov dword ptr [ecx + 8], eax */ 554 MEM32(eax + 0x4) = ecx; /* 0x270192E0: mov dword ptr [eax + 4], ecx */ 555 L_270192E3: 556 ecx = MEM32(eax + 0x4); /* 0x270192E3: mov ecx, dword ptr [eax + 4] */ 557 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270192E6: mov byte ptr [ecx + 0x10], bl */ 558 edx = MEM32(eax + 0x4); /* 0x270192E9: mov edx, dword ptr [eax + 4] */ 559 ecx = MEM32(edx + 0x4); /* 0x270192EC: mov ecx, dword ptr [edx + 4] */ 560 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x270192EF: mov byte ptr [ecx + 0x10], 0 */ 561 edx = MEM32(eax + 0x4); /* 0x270192F3: mov edx, dword ptr [eax + 4] */ 562 ecx = MEM32(edx + 0x4); /* 0x270192F6: mov ecx, dword ptr [edx + 4] */ 563 edx = MEM32(ecx + 0x8); /* 0x270192F9: mov edx, dword ptr [ecx + 8] */ 564 edi = MEM32(edx); /* 0x270192FC: mov edi, dword ptr [edx] */ 565 MEM32(ecx + 0x8) = edi; /* 0x270192FE: mov dword ptr [ecx + 8], edi */ 566 edi = MEM32(edx); /* 0x27019301: mov edi, dword ptr [edx] */ 567 /* cmp edi, MEM32(esi + 0x8) */ /* 0x27019303: cmp edi, dword ptr [esi + 8] */ 568 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 570 _flag_k = FK_CMP; 571 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701930B; /* 0x27019306: je 0x2701930b */ 572 L_27019308: 573 MEM32(edi + 0x4) = ecx; /* 0x27019308: mov dword ptr [edi + 4], ecx */ 574 L_2701930B: 575 edi = MEM32(ecx + 0x4); /* 0x2701930B: mov edi, dword ptr [ecx + 4] */ 576 MEM32(edx + 0x4) = edi; /* 0x2701930E: mov dword ptr [edx + 4], edi */ 577 edi = MEM32(esi + 0x4); /* 0x27019311: mov edi, dword ptr [esi + 4] */ 578 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x27019314: cmp ecx, dword ptr [edi + 4] */ 579 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 581 _flag_k = FK_CMP; 582 if (CMP_NE(_flag_a, _flag_b)) goto L_2701931E; /* 0x27019317: jne 0x2701931e */ 583 L_27019319: 584 MEM32(edi + 0x4) = edx; /* 0x27019319: mov dword ptr [edi + 4], edx */ 585 goto L_2701932C; /* 0x2701931C: jmp 0x2701932c */ 586 L_2701931E: 587 edi = MEM32(ecx + 0x4); /* 0x2701931E: mov edi, dword ptr [ecx + 4] */ 588 /* cmp ecx, MEM32(edi) */ /* 0x27019321: cmp ecx, dword ptr [edi] */ 589 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 591 _flag_k = FK_CMP; 592 if (CMP_NE(_flag_a, _flag_b)) goto L_27019329; /* 0x27019323: jne 0x27019329 */ 593 L_27019325: 594 MEM32(edi) = edx; /* 0x27019325: mov dword ptr [edi], edx */ 595 goto L_2701932C; /* 0x27019327: jmp 0x2701932c */ 596 L_27019329: 597 MEM32(edi + 0x8) = edx; /* 0x27019329: mov dword ptr [edi + 8], edx */ 598 L_2701932C: 599 MEM32(edx) = ecx; /* 0x2701932C: mov dword ptr [edx], ecx */ 600 L_2701932E: 601 MEM32(ecx + 0x4) = edx; /* 0x2701932E: mov dword ptr [ecx + 4], edx */ 602 L_27019331: 603 ecx = MEM32(esi + 0x4); /* 0x27019331: mov ecx, dword ptr [esi + 4] */ 604 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27019334: cmp eax, dword ptr [ecx + 4] */ 605 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 607 _flag_k = FK_CMP; 608 RECOMP_BACKEDGE(); 609 if (CMP_NE(_flag_a, _flag_b)) goto L_270191BD; /* 0x27019337: jne 0x270191bd */ 610 L_2701933D: 611 edx = MEM32(esi + 0x4); /* 0x2701933D: mov edx, dword ptr [esi + 4] */ 612 eax = MEM32(edx + 0x4); /* 0x27019340: mov eax, dword ptr [edx + 4] */ 613 ecx = MEM32(ebp + (-0x4)); /* 0x27019343: mov ecx, dword ptr [ebp - 4] */ 614 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019346: mov byte ptr [eax + 0x10], bl */ 615 eax = MEM32(ebp + 0x8); /* 0x27019349: mov eax, dword ptr [ebp + 8] */ 616 edi = POP32_VAL(esp); /* 0x2701934C: pop edi */ 617 esi = POP32_VAL(esp); /* 0x2701934D: pop esi */ 618 MEM32(eax) = ecx; /* 0x2701934E: mov dword ptr [eax], ecx */ 619 ebx = POP32_VAL(esp); /* 0x27019350: pop ebx */ 620 esp = ebp; /* 0x27019351: mov esp, ebp */ 621 ebp = POP32_VAL(esp); /* 0x27019353: pop ebp */ 622 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019354: ret 0x10 */ 623 RECOMP_REGS_OUT(); 624 } 625 626 void sub_270191BD(void) { 627 int _fpu_cmp = 0; 628 uint32_t _cf = 0; 629 int _df = 1; 630 uint32_t _flag_k = FK_NONE; 631 uint32_t _flag_a = 0, _flag_b = 0; 632 uint32_t _itail_tgt = 0; 633 RECOMP_REGS_LOCALS 634 RECOMP_ENTER(0x270191BDu); 635 636 L_270191BD: 637 ecx = MEM32(eax + 0x4); /* 0x270191BD: mov ecx, dword ptr [eax + 4] */ 638 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x270191C0: mov dl, byte ptr [ecx + 0x10] */ 639 /* test LO8(edx), LO8(edx) */ /* 0x270191C3: test dl, dl */ 640 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 641 _cf = 0; 642 _flag_k = FK_NARROW(FK_TEST, 24); 643 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701933D; /* 0x270191C5: jne 0x2701933d */ 644 L_270191CB: 645 edi = MEM32(ecx + 0x4); /* 0x270191CB: mov edi, dword ptr [ecx + 4] */ 646 edx = MEM32(edi); /* 0x270191CE: mov edx, dword ptr [edi] */ 647 /* cmp ecx, edx */ /* 0x270191D0: cmp ecx, edx */ 648 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 650 _flag_k = FK_CMP; 651 if (CMP_NE(_flag_a, _flag_b)) goto L_27019299; /* 0x270191D2: jne 0x27019299 */ 652 L_270191D8: 653 edx = MEM32(edi + 0x8); /* 0x270191D8: mov edx, dword ptr [edi + 8] */ 654 /* cmp MEM8(edx + 0x10), 0 */ /* 0x270191DB: cmp byte ptr [edx + 0x10], 0 */ 655 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 657 _flag_k = FK_NARROW(FK_CMP, 24); 658 if (CMP_NE(_flag_a, _flag_b)) goto L_270191FC; /* 0x270191DF: jne 0x270191fc */ 659 L_270191E1: 660 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E1: mov byte ptr [ecx + 0x10], bl */ 661 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E4: mov byte ptr [edx + 0x10], bl */ 662 ecx = MEM32(eax + 0x4); /* 0x270191E7: mov ecx, dword ptr [eax + 4] */ 663 edx = MEM32(ecx + 0x4); /* 0x270191EA: mov edx, dword ptr [ecx + 4] */ 664 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x270191ED: mov byte ptr [edx + 0x10], 0 */ 665 eax = MEM32(eax + 0x4); /* 0x270191F1: mov eax, dword ptr [eax + 4] */ 666 eax = MEM32(eax + 0x4); /* 0x270191F4: mov eax, dword ptr [eax + 4] */ 667 goto L_27019331; /* 0x270191F7: jmp 0x27019331 */ 668 L_270191FC: 669 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270191FC: cmp eax, dword ptr [ecx + 8] */ 670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 672 _flag_k = FK_CMP; 673 if (CMP_NE(_flag_a, _flag_b)) goto L_2701923B; /* 0x270191FF: jne 0x2701923b */ 674 L_27019201: 675 eax = ecx; /* 0x27019201: mov eax, ecx */ 676 ecx = MEM32(eax + 0x8); /* 0x27019203: mov ecx, dword ptr [eax + 8] */ 677 edx = MEM32(ecx); /* 0x27019206: mov edx, dword ptr [ecx] */ 678 MEM32(eax + 0x8) = edx; /* 0x27019208: mov dword ptr [eax + 8], edx */ 679 edx = MEM32(ecx); /* 0x2701920B: mov edx, dword ptr [ecx] */ 680 /* cmp edx, MEM32(esi + 0x8) */ /* 0x2701920D: cmp edx, dword ptr [esi + 8] */ 681 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 683 _flag_k = FK_CMP; 684 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019215; /* 0x27019210: je 0x27019215 */ 685 L_27019212: 686 MEM32(edx + 0x4) = eax; /* 0x27019212: mov dword ptr [edx + 4], eax */ 687 L_27019215: 688 edx = MEM32(eax + 0x4); /* 0x27019215: mov edx, dword ptr [eax + 4] */ 689 MEM32(ecx + 0x4) = edx; /* 0x27019218: mov dword ptr [ecx + 4], edx */ 690 edx = MEM32(esi + 0x4); /* 0x2701921B: mov edx, dword ptr [esi + 4] */ 691 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701921E: cmp eax, dword ptr [edx + 4] */ 692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 694 _flag_k = FK_CMP; 695 if (CMP_NE(_flag_a, _flag_b)) goto L_27019228; /* 0x27019221: jne 0x27019228 */ 696 L_27019223: 697 MEM32(edx + 0x4) = ecx; /* 0x27019223: mov dword ptr [edx + 4], ecx */ 698 goto L_27019236; /* 0x27019226: jmp 0x27019236 */ 699 L_27019228: 700 edx = MEM32(eax + 0x4); /* 0x27019228: mov edx, dword ptr [eax + 4] */ 701 /* cmp eax, MEM32(edx) */ /* 0x2701922B: cmp eax, dword ptr [edx] */ 702 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 704 _flag_k = FK_CMP; 705 if (CMP_NE(_flag_a, _flag_b)) goto L_27019233; /* 0x2701922D: jne 0x27019233 */ 706 L_2701922F: 707 MEM32(edx) = ecx; /* 0x2701922F: mov dword ptr [edx], ecx */ 708 goto L_27019236; /* 0x27019231: jmp 0x27019236 */ 709 L_27019233: 710 MEM32(edx + 0x8) = ecx; /* 0x27019233: mov dword ptr [edx + 8], ecx */ 711 L_27019236: 712 MEM32(ecx) = eax; /* 0x27019236: mov dword ptr [ecx], eax */ 713 MEM32(eax + 0x4) = ecx; /* 0x27019238: mov dword ptr [eax + 4], ecx */ 714 L_2701923B: 715 ecx = MEM32(eax + 0x4); /* 0x2701923B: mov ecx, dword ptr [eax + 4] */ 716 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701923E: mov byte ptr [ecx + 0x10], bl */ 717 edx = MEM32(eax + 0x4); /* 0x27019241: mov edx, dword ptr [eax + 4] */ 718 ecx = MEM32(edx + 0x4); /* 0x27019244: mov ecx, dword ptr [edx + 4] */ 719 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019247: mov byte ptr [ecx + 0x10], 0 */ 720 edx = MEM32(eax + 0x4); /* 0x2701924B: mov edx, dword ptr [eax + 4] */ 721 ecx = MEM32(edx + 0x4); /* 0x2701924E: mov ecx, dword ptr [edx + 4] */ 722 edx = MEM32(ecx); /* 0x27019251: mov edx, dword ptr [ecx] */ 723 edi = MEM32(edx + 0x8); /* 0x27019253: mov edi, dword ptr [edx + 8] */ 724 MEM32(ecx) = edi; /* 0x27019256: mov dword ptr [ecx], edi */ 725 edi = MEM32(edx + 0x8); /* 0x27019258: mov edi, dword ptr [edx + 8] */ 726 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701925B: cmp edi, dword ptr [esi + 8] */ 727 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 729 _flag_k = FK_CMP; 730 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019263; /* 0x2701925E: je 0x27019263 */ 731 L_27019260: 732 MEM32(edi + 0x4) = ecx; /* 0x27019260: mov dword ptr [edi + 4], ecx */ 733 L_27019263: 734 edi = MEM32(ecx + 0x4); /* 0x27019263: mov edi, dword ptr [ecx + 4] */ 735 MEM32(edx + 0x4) = edi; /* 0x27019266: mov dword ptr [edx + 4], edi */ 736 edi = MEM32(esi + 0x4); /* 0x27019269: mov edi, dword ptr [esi + 4] */ 737 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701926C: cmp ecx, dword ptr [edi + 4] */ 738 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 740 _flag_k = FK_CMP; 741 if (CMP_NE(_flag_a, _flag_b)) goto L_2701927C; /* 0x2701926F: jne 0x2701927c */ 742 L_27019271: 743 MEM32(edi + 0x4) = edx; /* 0x27019271: mov dword ptr [edi + 4], edx */ 744 MEM32(edx + 0x8) = ecx; /* 0x27019274: mov dword ptr [edx + 8], ecx */ 745 goto L_2701932E; /* 0x27019277: jmp 0x2701932e */ 746 L_2701927C: 747 edi = MEM32(ecx + 0x4); /* 0x2701927C: mov edi, dword ptr [ecx + 4] */ 748 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701927F: cmp ecx, dword ptr [edi + 8] */ 749 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 751 _flag_k = FK_CMP; 752 if (CMP_NE(_flag_a, _flag_b)) goto L_2701928F; /* 0x27019282: jne 0x2701928f */ 753 L_27019284: 754 MEM32(edi + 0x8) = edx; /* 0x27019284: mov dword ptr [edi + 8], edx */ 755 MEM32(edx + 0x8) = ecx; /* 0x27019287: mov dword ptr [edx + 8], ecx */ 756 goto L_2701932E; /* 0x2701928A: jmp 0x2701932e */ 757 L_2701928F: 758 MEM32(edi) = edx; /* 0x2701928F: mov dword ptr [edi], edx */ 759 MEM32(edx + 0x8) = ecx; /* 0x27019291: mov dword ptr [edx + 8], ecx */ 760 goto L_2701932E; /* 0x27019294: jmp 0x2701932e */ 761 L_27019299: 762 /* cmp MEM8(edx + 0x10), 0 */ /* 0x27019299: cmp byte ptr [edx + 0x10], 0 */ 763 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 765 _flag_k = FK_NARROW(FK_CMP, 24); 766 RECOMP_BACKEDGE(); 767 if (CMP_EQ(_flag_a, _flag_b)) goto L_270191E1; /* 0x2701929D: je 0x270191e1 */ 768 L_270192A3: 769 /* cmp eax, MEM32(ecx) */ /* 0x270192A3: cmp eax, dword ptr [ecx] */ 770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 772 _flag_k = FK_CMP; 773 if (CMP_NE(_flag_a, _flag_b)) goto L_270192E3; /* 0x270192A5: jne 0x270192e3 */ 774 L_270192A7: 775 eax = ecx; /* 0x270192A7: mov eax, ecx */ 776 ecx = MEM32(eax); /* 0x270192A9: mov ecx, dword ptr [eax] */ 777 edx = MEM32(ecx + 0x8); /* 0x270192AB: mov edx, dword ptr [ecx + 8] */ 778 MEM32(eax) = edx; /* 0x270192AE: mov dword ptr [eax], edx */ 779 edx = MEM32(ecx + 0x8); /* 0x270192B0: mov edx, dword ptr [ecx + 8] */ 780 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270192B3: cmp edx, dword ptr [esi + 8] */ 781 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 783 _flag_k = FK_CMP; 784 if (CMP_EQ(_flag_a, _flag_b)) goto L_270192BB; /* 0x270192B6: je 0x270192bb */ 785 L_270192B8: 786 MEM32(edx + 0x4) = eax; /* 0x270192B8: mov dword ptr [edx + 4], eax */ 787 L_270192BB: 788 edx = MEM32(eax + 0x4); /* 0x270192BB: mov edx, dword ptr [eax + 4] */ 789 MEM32(ecx + 0x4) = edx; /* 0x270192BE: mov dword ptr [ecx + 4], edx */ 790 edx = MEM32(esi + 0x4); /* 0x270192C1: mov edx, dword ptr [esi + 4] */ 791 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270192C4: cmp eax, dword ptr [edx + 4] */ 792 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 794 _flag_k = FK_CMP; 795 if (CMP_NE(_flag_a, _flag_b)) goto L_270192CE; /* 0x270192C7: jne 0x270192ce */ 796 L_270192C9: 797 MEM32(edx + 0x4) = ecx; /* 0x270192C9: mov dword ptr [edx + 4], ecx */ 798 goto L_270192DD; /* 0x270192CC: jmp 0x270192dd */ 799 L_270192CE: 800 edx = MEM32(eax + 0x4); /* 0x270192CE: mov edx, dword ptr [eax + 4] */ 801 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270192D1: cmp eax, dword ptr [edx + 8] */ 802 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 804 _flag_k = FK_CMP; 805 if (CMP_NE(_flag_a, _flag_b)) goto L_270192DB; /* 0x270192D4: jne 0x270192db */ 806 L_270192D6: 807 MEM32(edx + 0x8) = ecx; /* 0x270192D6: mov dword ptr [edx + 8], ecx */ 808 goto L_270192DD; /* 0x270192D9: jmp 0x270192dd */ 809 L_270192DB: 810 MEM32(edx) = ecx; /* 0x270192DB: mov dword ptr [edx], ecx */ 811 L_270192DD: 812 MEM32(ecx + 0x8) = eax; /* 0x270192DD: mov dword ptr [ecx + 8], eax */ 813 MEM32(eax + 0x4) = ecx; /* 0x270192E0: mov dword ptr [eax + 4], ecx */ 814 L_270192E3: 815 ecx = MEM32(eax + 0x4); /* 0x270192E3: mov ecx, dword ptr [eax + 4] */ 816 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270192E6: mov byte ptr [ecx + 0x10], bl */ 817 edx = MEM32(eax + 0x4); /* 0x270192E9: mov edx, dword ptr [eax + 4] */ 818 ecx = MEM32(edx + 0x4); /* 0x270192EC: mov ecx, dword ptr [edx + 4] */ 819 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x270192EF: mov byte ptr [ecx + 0x10], 0 */ 820 edx = MEM32(eax + 0x4); /* 0x270192F3: mov edx, dword ptr [eax + 4] */ 821 ecx = MEM32(edx + 0x4); /* 0x270192F6: mov ecx, dword ptr [edx + 4] */ 822 edx = MEM32(ecx + 0x8); /* 0x270192F9: mov edx, dword ptr [ecx + 8] */ 823 edi = MEM32(edx); /* 0x270192FC: mov edi, dword ptr [edx] */ 824 MEM32(ecx + 0x8) = edi; /* 0x270192FE: mov dword ptr [ecx + 8], edi */ 825 edi = MEM32(edx); /* 0x27019301: mov edi, dword ptr [edx] */ 826 /* cmp edi, MEM32(esi + 0x8) */ /* 0x27019303: cmp edi, dword ptr [esi + 8] */ 827 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 829 _flag_k = FK_CMP; 830 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701930B; /* 0x27019306: je 0x2701930b */ 831 L_27019308: 832 MEM32(edi + 0x4) = ecx; /* 0x27019308: mov dword ptr [edi + 4], ecx */ 833 L_2701930B: 834 edi = MEM32(ecx + 0x4); /* 0x2701930B: mov edi, dword ptr [ecx + 4] */ 835 MEM32(edx + 0x4) = edi; /* 0x2701930E: mov dword ptr [edx + 4], edi */ 836 edi = MEM32(esi + 0x4); /* 0x27019311: mov edi, dword ptr [esi + 4] */ 837 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x27019314: cmp ecx, dword ptr [edi + 4] */ 838 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 840 _flag_k = FK_CMP; 841 if (CMP_NE(_flag_a, _flag_b)) goto L_2701931E; /* 0x27019317: jne 0x2701931e */ 842 L_27019319: 843 MEM32(edi + 0x4) = edx; /* 0x27019319: mov dword ptr [edi + 4], edx */ 844 goto L_2701932C; /* 0x2701931C: jmp 0x2701932c */ 845 L_2701931E: 846 edi = MEM32(ecx + 0x4); /* 0x2701931E: mov edi, dword ptr [ecx + 4] */ 847 /* cmp ecx, MEM32(edi) */ /* 0x27019321: cmp ecx, dword ptr [edi] */ 848 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 850 _flag_k = FK_CMP; 851 if (CMP_NE(_flag_a, _flag_b)) goto L_27019329; /* 0x27019323: jne 0x27019329 */ 852 L_27019325: 853 MEM32(edi) = edx; /* 0x27019325: mov dword ptr [edi], edx */ 854 goto L_2701932C; /* 0x27019327: jmp 0x2701932c */ 855 L_27019329: 856 MEM32(edi + 0x8) = edx; /* 0x27019329: mov dword ptr [edi + 8], edx */ 857 L_2701932C: 858 MEM32(edx) = ecx; /* 0x2701932C: mov dword ptr [edx], ecx */ 859 L_2701932E: 860 MEM32(ecx + 0x4) = edx; /* 0x2701932E: mov dword ptr [ecx + 4], edx */ 861 L_27019331: 862 ecx = MEM32(esi + 0x4); /* 0x27019331: mov ecx, dword ptr [esi + 4] */ 863 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27019334: cmp eax, dword ptr [ecx + 4] */ 864 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 866 _flag_k = FK_CMP; 867 RECOMP_BACKEDGE(); 868 if (CMP_NE(_flag_a, _flag_b)) goto L_270191BD; /* 0x27019337: jne 0x270191bd */ 869 L_2701933D: 870 edx = MEM32(esi + 0x4); /* 0x2701933D: mov edx, dword ptr [esi + 4] */ 871 eax = MEM32(edx + 0x4); /* 0x27019340: mov eax, dword ptr [edx + 4] */ 872 ecx = MEM32(ebp + (-0x4)); /* 0x27019343: mov ecx, dword ptr [ebp - 4] */ 873 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019346: mov byte ptr [eax + 0x10], bl */ 874 eax = MEM32(ebp + 0x8); /* 0x27019349: mov eax, dword ptr [ebp + 8] */ 875 edi = POP32_VAL(esp); /* 0x2701934C: pop edi */ 876 esi = POP32_VAL(esp); /* 0x2701934D: pop esi */ 877 MEM32(eax) = ecx; /* 0x2701934E: mov dword ptr [eax], ecx */ 878 ebx = POP32_VAL(esp); /* 0x27019350: pop ebx */ 879 esp = ebp; /* 0x27019351: mov esp, ebp */ 880 ebp = POP32_VAL(esp); /* 0x27019353: pop ebp */ 881 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019354: ret 0x10 */ 882 RECOMP_REGS_OUT(); 883 } 884 885 void sub_270191E1(void) { 886 int _fpu_cmp = 0; 887 uint32_t _cf = 0; 888 int _df = 1; 889 uint32_t _flag_k = FK_NONE; 890 uint32_t _flag_a = 0, _flag_b = 0; 891 uint32_t _itail_tgt = 0; 892 RECOMP_REGS_LOCALS 893 RECOMP_ENTER(0x270191E1u); 894 895 goto L_270191E1; 896 L_270191BD: 897 ecx = MEM32(eax + 0x4); /* 0x270191BD: mov ecx, dword ptr [eax + 4] */ 898 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x270191C0: mov dl, byte ptr [ecx + 0x10] */ 899 /* test LO8(edx), LO8(edx) */ /* 0x270191C3: test dl, dl */ 900 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 901 _cf = 0; 902 _flag_k = FK_NARROW(FK_TEST, 24); 903 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701933D; /* 0x270191C5: jne 0x2701933d */ 904 L_270191CB: 905 edi = MEM32(ecx + 0x4); /* 0x270191CB: mov edi, dword ptr [ecx + 4] */ 906 edx = MEM32(edi); /* 0x270191CE: mov edx, dword ptr [edi] */ 907 /* cmp ecx, edx */ /* 0x270191D0: cmp ecx, edx */ 908 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 910 _flag_k = FK_CMP; 911 if (CMP_NE(_flag_a, _flag_b)) goto L_27019299; /* 0x270191D2: jne 0x27019299 */ 912 L_270191D8: 913 edx = MEM32(edi + 0x8); /* 0x270191D8: mov edx, dword ptr [edi + 8] */ 914 /* cmp MEM8(edx + 0x10), 0 */ /* 0x270191DB: cmp byte ptr [edx + 0x10], 0 */ 915 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 917 _flag_k = FK_NARROW(FK_CMP, 24); 918 if (CMP_NE(_flag_a, _flag_b)) goto L_270191FC; /* 0x270191DF: jne 0x270191fc */ 919 L_270191E1: 920 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E1: mov byte ptr [ecx + 0x10], bl */ 921 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E4: mov byte ptr [edx + 0x10], bl */ 922 ecx = MEM32(eax + 0x4); /* 0x270191E7: mov ecx, dword ptr [eax + 4] */ 923 edx = MEM32(ecx + 0x4); /* 0x270191EA: mov edx, dword ptr [ecx + 4] */ 924 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x270191ED: mov byte ptr [edx + 0x10], 0 */ 925 eax = MEM32(eax + 0x4); /* 0x270191F1: mov eax, dword ptr [eax + 4] */ 926 eax = MEM32(eax + 0x4); /* 0x270191F4: mov eax, dword ptr [eax + 4] */ 927 goto L_27019331; /* 0x270191F7: jmp 0x27019331 */ 928 L_270191FC: 929 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270191FC: cmp eax, dword ptr [ecx + 8] */ 930 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 932 _flag_k = FK_CMP; 933 if (CMP_NE(_flag_a, _flag_b)) goto L_2701923B; /* 0x270191FF: jne 0x2701923b */ 934 L_27019201: 935 eax = ecx; /* 0x27019201: mov eax, ecx */ 936 ecx = MEM32(eax + 0x8); /* 0x27019203: mov ecx, dword ptr [eax + 8] */ 937 edx = MEM32(ecx); /* 0x27019206: mov edx, dword ptr [ecx] */ 938 MEM32(eax + 0x8) = edx; /* 0x27019208: mov dword ptr [eax + 8], edx */ 939 edx = MEM32(ecx); /* 0x2701920B: mov edx, dword ptr [ecx] */ 940 /* cmp edx, MEM32(esi + 0x8) */ /* 0x2701920D: cmp edx, dword ptr [esi + 8] */ 941 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 943 _flag_k = FK_CMP; 944 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019215; /* 0x27019210: je 0x27019215 */ 945 L_27019212: 946 MEM32(edx + 0x4) = eax; /* 0x27019212: mov dword ptr [edx + 4], eax */ 947 L_27019215: 948 edx = MEM32(eax + 0x4); /* 0x27019215: mov edx, dword ptr [eax + 4] */ 949 MEM32(ecx + 0x4) = edx; /* 0x27019218: mov dword ptr [ecx + 4], edx */ 950 edx = MEM32(esi + 0x4); /* 0x2701921B: mov edx, dword ptr [esi + 4] */ 951 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701921E: cmp eax, dword ptr [edx + 4] */ 952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 954 _flag_k = FK_CMP; 955 if (CMP_NE(_flag_a, _flag_b)) goto L_27019228; /* 0x27019221: jne 0x27019228 */ 956 L_27019223: 957 MEM32(edx + 0x4) = ecx; /* 0x27019223: mov dword ptr [edx + 4], ecx */ 958 goto L_27019236; /* 0x27019226: jmp 0x27019236 */ 959 L_27019228: 960 edx = MEM32(eax + 0x4); /* 0x27019228: mov edx, dword ptr [eax + 4] */ 961 /* cmp eax, MEM32(edx) */ /* 0x2701922B: cmp eax, dword ptr [edx] */ 962 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 964 _flag_k = FK_CMP; 965 if (CMP_NE(_flag_a, _flag_b)) goto L_27019233; /* 0x2701922D: jne 0x27019233 */ 966 L_2701922F: 967 MEM32(edx) = ecx; /* 0x2701922F: mov dword ptr [edx], ecx */ 968 goto L_27019236; /* 0x27019231: jmp 0x27019236 */ 969 L_27019233: 970 MEM32(edx + 0x8) = ecx; /* 0x27019233: mov dword ptr [edx + 8], ecx */ 971 L_27019236: 972 MEM32(ecx) = eax; /* 0x27019236: mov dword ptr [ecx], eax */ 973 MEM32(eax + 0x4) = ecx; /* 0x27019238: mov dword ptr [eax + 4], ecx */ 974 L_2701923B: 975 ecx = MEM32(eax + 0x4); /* 0x2701923B: mov ecx, dword ptr [eax + 4] */ 976 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701923E: mov byte ptr [ecx + 0x10], bl */ 977 edx = MEM32(eax + 0x4); /* 0x27019241: mov edx, dword ptr [eax + 4] */ 978 ecx = MEM32(edx + 0x4); /* 0x27019244: mov ecx, dword ptr [edx + 4] */ 979 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019247: mov byte ptr [ecx + 0x10], 0 */ 980 edx = MEM32(eax + 0x4); /* 0x2701924B: mov edx, dword ptr [eax + 4] */ 981 ecx = MEM32(edx + 0x4); /* 0x2701924E: mov ecx, dword ptr [edx + 4] */ 982 edx = MEM32(ecx); /* 0x27019251: mov edx, dword ptr [ecx] */ 983 edi = MEM32(edx + 0x8); /* 0x27019253: mov edi, dword ptr [edx + 8] */ 984 MEM32(ecx) = edi; /* 0x27019256: mov dword ptr [ecx], edi */ 985 edi = MEM32(edx + 0x8); /* 0x27019258: mov edi, dword ptr [edx + 8] */ 986 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701925B: cmp edi, dword ptr [esi + 8] */ 987 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 989 _flag_k = FK_CMP; 990 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019263; /* 0x2701925E: je 0x27019263 */ 991 L_27019260: 992 MEM32(edi + 0x4) = ecx; /* 0x27019260: mov dword ptr [edi + 4], ecx */ 993 L_27019263: 994 edi = MEM32(ecx + 0x4); /* 0x27019263: mov edi, dword ptr [ecx + 4] */ 995 MEM32(edx + 0x4) = edi; /* 0x27019266: mov dword ptr [edx + 4], edi */ 996 edi = MEM32(esi + 0x4); /* 0x27019269: mov edi, dword ptr [esi + 4] */ 997 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701926C: cmp ecx, dword ptr [edi + 4] */ 998 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1000 _flag_k = FK_CMP; 1001 if (CMP_NE(_flag_a, _flag_b)) goto L_2701927C; /* 0x2701926F: jne 0x2701927c */ 1002 L_27019271: 1003 MEM32(edi + 0x4) = edx; /* 0x27019271: mov dword ptr [edi + 4], edx */ 1004 MEM32(edx + 0x8) = ecx; /* 0x27019274: mov dword ptr [edx + 8], ecx */ 1005 goto L_2701932E; /* 0x27019277: jmp 0x2701932e */ 1006 L_2701927C: 1007 edi = MEM32(ecx + 0x4); /* 0x2701927C: mov edi, dword ptr [ecx + 4] */ 1008 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701927F: cmp ecx, dword ptr [edi + 8] */ 1009 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1011 _flag_k = FK_CMP; 1012 if (CMP_NE(_flag_a, _flag_b)) goto L_2701928F; /* 0x27019282: jne 0x2701928f */ 1013 L_27019284: 1014 MEM32(edi + 0x8) = edx; /* 0x27019284: mov dword ptr [edi + 8], edx */ 1015 MEM32(edx + 0x8) = ecx; /* 0x27019287: mov dword ptr [edx + 8], ecx */ 1016 goto L_2701932E; /* 0x2701928A: jmp 0x2701932e */ 1017 L_2701928F: 1018 MEM32(edi) = edx; /* 0x2701928F: mov dword ptr [edi], edx */ 1019 MEM32(edx + 0x8) = ecx; /* 0x27019291: mov dword ptr [edx + 8], ecx */ 1020 goto L_2701932E; /* 0x27019294: jmp 0x2701932e */ 1021 L_27019299: 1022 /* cmp MEM8(edx + 0x10), 0 */ /* 0x27019299: cmp byte ptr [edx + 0x10], 0 */ 1023 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 1024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1025 _flag_k = FK_NARROW(FK_CMP, 24); 1026 RECOMP_BACKEDGE(); 1027 if (CMP_EQ(_flag_a, _flag_b)) goto L_270191E1; /* 0x2701929D: je 0x270191e1 */ 1028 L_270192A3: 1029 /* cmp eax, MEM32(ecx) */ /* 0x270192A3: cmp eax, dword ptr [ecx] */ 1030 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1032 _flag_k = FK_CMP; 1033 if (CMP_NE(_flag_a, _flag_b)) goto L_270192E3; /* 0x270192A5: jne 0x270192e3 */ 1034 L_270192A7: 1035 eax = ecx; /* 0x270192A7: mov eax, ecx */ 1036 ecx = MEM32(eax); /* 0x270192A9: mov ecx, dword ptr [eax] */ 1037 edx = MEM32(ecx + 0x8); /* 0x270192AB: mov edx, dword ptr [ecx + 8] */ 1038 MEM32(eax) = edx; /* 0x270192AE: mov dword ptr [eax], edx */ 1039 edx = MEM32(ecx + 0x8); /* 0x270192B0: mov edx, dword ptr [ecx + 8] */ 1040 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270192B3: cmp edx, dword ptr [esi + 8] */ 1041 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1043 _flag_k = FK_CMP; 1044 if (CMP_EQ(_flag_a, _flag_b)) goto L_270192BB; /* 0x270192B6: je 0x270192bb */ 1045 L_270192B8: 1046 MEM32(edx + 0x4) = eax; /* 0x270192B8: mov dword ptr [edx + 4], eax */ 1047 L_270192BB: 1048 edx = MEM32(eax + 0x4); /* 0x270192BB: mov edx, dword ptr [eax + 4] */ 1049 MEM32(ecx + 0x4) = edx; /* 0x270192BE: mov dword ptr [ecx + 4], edx */ 1050 edx = MEM32(esi + 0x4); /* 0x270192C1: mov edx, dword ptr [esi + 4] */ 1051 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270192C4: cmp eax, dword ptr [edx + 4] */ 1052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1054 _flag_k = FK_CMP; 1055 if (CMP_NE(_flag_a, _flag_b)) goto L_270192CE; /* 0x270192C7: jne 0x270192ce */ 1056 L_270192C9: 1057 MEM32(edx + 0x4) = ecx; /* 0x270192C9: mov dword ptr [edx + 4], ecx */ 1058 goto L_270192DD; /* 0x270192CC: jmp 0x270192dd */ 1059 L_270192CE: 1060 edx = MEM32(eax + 0x4); /* 0x270192CE: mov edx, dword ptr [eax + 4] */ 1061 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270192D1: cmp eax, dword ptr [edx + 8] */ 1062 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1064 _flag_k = FK_CMP; 1065 if (CMP_NE(_flag_a, _flag_b)) goto L_270192DB; /* 0x270192D4: jne 0x270192db */ 1066 L_270192D6: 1067 MEM32(edx + 0x8) = ecx; /* 0x270192D6: mov dword ptr [edx + 8], ecx */ 1068 goto L_270192DD; /* 0x270192D9: jmp 0x270192dd */ 1069 L_270192DB: 1070 MEM32(edx) = ecx; /* 0x270192DB: mov dword ptr [edx], ecx */ 1071 L_270192DD: 1072 MEM32(ecx + 0x8) = eax; /* 0x270192DD: mov dword ptr [ecx + 8], eax */ 1073 MEM32(eax + 0x4) = ecx; /* 0x270192E0: mov dword ptr [eax + 4], ecx */ 1074 L_270192E3: 1075 ecx = MEM32(eax + 0x4); /* 0x270192E3: mov ecx, dword ptr [eax + 4] */ 1076 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270192E6: mov byte ptr [ecx + 0x10], bl */ 1077 edx = MEM32(eax + 0x4); /* 0x270192E9: mov edx, dword ptr [eax + 4] */ 1078 ecx = MEM32(edx + 0x4); /* 0x270192EC: mov ecx, dword ptr [edx + 4] */ 1079 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x270192EF: mov byte ptr [ecx + 0x10], 0 */ 1080 edx = MEM32(eax + 0x4); /* 0x270192F3: mov edx, dword ptr [eax + 4] */ 1081 ecx = MEM32(edx + 0x4); /* 0x270192F6: mov ecx, dword ptr [edx + 4] */ 1082 edx = MEM32(ecx + 0x8); /* 0x270192F9: mov edx, dword ptr [ecx + 8] */ 1083 edi = MEM32(edx); /* 0x270192FC: mov edi, dword ptr [edx] */ 1084 MEM32(ecx + 0x8) = edi; /* 0x270192FE: mov dword ptr [ecx + 8], edi */ 1085 edi = MEM32(edx); /* 0x27019301: mov edi, dword ptr [edx] */ 1086 /* cmp edi, MEM32(esi + 0x8) */ /* 0x27019303: cmp edi, dword ptr [esi + 8] */ 1087 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1089 _flag_k = FK_CMP; 1090 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701930B; /* 0x27019306: je 0x2701930b */ 1091 L_27019308: 1092 MEM32(edi + 0x4) = ecx; /* 0x27019308: mov dword ptr [edi + 4], ecx */ 1093 L_2701930B: 1094 edi = MEM32(ecx + 0x4); /* 0x2701930B: mov edi, dword ptr [ecx + 4] */ 1095 MEM32(edx + 0x4) = edi; /* 0x2701930E: mov dword ptr [edx + 4], edi */ 1096 edi = MEM32(esi + 0x4); /* 0x27019311: mov edi, dword ptr [esi + 4] */ 1097 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x27019314: cmp ecx, dword ptr [edi + 4] */ 1098 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1100 _flag_k = FK_CMP; 1101 if (CMP_NE(_flag_a, _flag_b)) goto L_2701931E; /* 0x27019317: jne 0x2701931e */ 1102 L_27019319: 1103 MEM32(edi + 0x4) = edx; /* 0x27019319: mov dword ptr [edi + 4], edx */ 1104 goto L_2701932C; /* 0x2701931C: jmp 0x2701932c */ 1105 L_2701931E: 1106 edi = MEM32(ecx + 0x4); /* 0x2701931E: mov edi, dword ptr [ecx + 4] */ 1107 /* cmp ecx, MEM32(edi) */ /* 0x27019321: cmp ecx, dword ptr [edi] */ 1108 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1110 _flag_k = FK_CMP; 1111 if (CMP_NE(_flag_a, _flag_b)) goto L_27019329; /* 0x27019323: jne 0x27019329 */ 1112 L_27019325: 1113 MEM32(edi) = edx; /* 0x27019325: mov dword ptr [edi], edx */ 1114 goto L_2701932C; /* 0x27019327: jmp 0x2701932c */ 1115 L_27019329: 1116 MEM32(edi + 0x8) = edx; /* 0x27019329: mov dword ptr [edi + 8], edx */ 1117 L_2701932C: 1118 MEM32(edx) = ecx; /* 0x2701932C: mov dword ptr [edx], ecx */ 1119 L_2701932E: 1120 MEM32(ecx + 0x4) = edx; /* 0x2701932E: mov dword ptr [ecx + 4], edx */ 1121 L_27019331: 1122 ecx = MEM32(esi + 0x4); /* 0x27019331: mov ecx, dword ptr [esi + 4] */ 1123 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27019334: cmp eax, dword ptr [ecx + 4] */ 1124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1126 _flag_k = FK_CMP; 1127 RECOMP_BACKEDGE(); 1128 if (CMP_NE(_flag_a, _flag_b)) goto L_270191BD; /* 0x27019337: jne 0x270191bd */ 1129 L_2701933D: 1130 edx = MEM32(esi + 0x4); /* 0x2701933D: mov edx, dword ptr [esi + 4] */ 1131 eax = MEM32(edx + 0x4); /* 0x27019340: mov eax, dword ptr [edx + 4] */ 1132 ecx = MEM32(ebp + (-0x4)); /* 0x27019343: mov ecx, dword ptr [ebp - 4] */ 1133 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019346: mov byte ptr [eax + 0x10], bl */ 1134 eax = MEM32(ebp + 0x8); /* 0x27019349: mov eax, dword ptr [ebp + 8] */ 1135 edi = POP32_VAL(esp); /* 0x2701934C: pop edi */ 1136 esi = POP32_VAL(esp); /* 0x2701934D: pop esi */ 1137 MEM32(eax) = ecx; /* 0x2701934E: mov dword ptr [eax], ecx */ 1138 ebx = POP32_VAL(esp); /* 0x27019350: pop ebx */ 1139 esp = ebp; /* 0x27019351: mov esp, ebp */ 1140 ebp = POP32_VAL(esp); /* 0x27019353: pop ebp */ 1141 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019354: ret 0x10 */ 1142 RECOMP_REGS_OUT(); 1143 } 1144 1145 void sub_27019236(void) { 1146 int _fpu_cmp = 0; 1147 uint32_t _cf = 0; 1148 int _df = 1; 1149 uint32_t _flag_k = FK_NONE; 1150 uint32_t _flag_a = 0, _flag_b = 0; 1151 uint32_t _itail_tgt = 0; 1152 RECOMP_REGS_LOCALS 1153 RECOMP_ENTER(0x27019236u); 1154 1155 goto L_27019236; 1156 L_270191BD: 1157 ecx = MEM32(eax + 0x4); /* 0x270191BD: mov ecx, dword ptr [eax + 4] */ 1158 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x270191C0: mov dl, byte ptr [ecx + 0x10] */ 1159 /* test LO8(edx), LO8(edx) */ /* 0x270191C3: test dl, dl */ 1160 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1161 _cf = 0; 1162 _flag_k = FK_NARROW(FK_TEST, 24); 1163 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701933D; /* 0x270191C5: jne 0x2701933d */ 1164 L_270191CB: 1165 edi = MEM32(ecx + 0x4); /* 0x270191CB: mov edi, dword ptr [ecx + 4] */ 1166 edx = MEM32(edi); /* 0x270191CE: mov edx, dword ptr [edi] */ 1167 /* cmp ecx, edx */ /* 0x270191D0: cmp ecx, edx */ 1168 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1170 _flag_k = FK_CMP; 1171 if (CMP_NE(_flag_a, _flag_b)) goto L_27019299; /* 0x270191D2: jne 0x27019299 */ 1172 L_270191D8: 1173 edx = MEM32(edi + 0x8); /* 0x270191D8: mov edx, dword ptr [edi + 8] */ 1174 /* cmp MEM8(edx + 0x10), 0 */ /* 0x270191DB: cmp byte ptr [edx + 0x10], 0 */ 1175 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 1176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1177 _flag_k = FK_NARROW(FK_CMP, 24); 1178 if (CMP_NE(_flag_a, _flag_b)) goto L_270191FC; /* 0x270191DF: jne 0x270191fc */ 1179 L_270191E1: 1180 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E1: mov byte ptr [ecx + 0x10], bl */ 1181 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E4: mov byte ptr [edx + 0x10], bl */ 1182 ecx = MEM32(eax + 0x4); /* 0x270191E7: mov ecx, dword ptr [eax + 4] */ 1183 edx = MEM32(ecx + 0x4); /* 0x270191EA: mov edx, dword ptr [ecx + 4] */ 1184 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x270191ED: mov byte ptr [edx + 0x10], 0 */ 1185 eax = MEM32(eax + 0x4); /* 0x270191F1: mov eax, dword ptr [eax + 4] */ 1186 eax = MEM32(eax + 0x4); /* 0x270191F4: mov eax, dword ptr [eax + 4] */ 1187 goto L_27019331; /* 0x270191F7: jmp 0x27019331 */ 1188 L_270191FC: 1189 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270191FC: cmp eax, dword ptr [ecx + 8] */ 1190 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1192 _flag_k = FK_CMP; 1193 if (CMP_NE(_flag_a, _flag_b)) goto L_2701923B; /* 0x270191FF: jne 0x2701923b */ 1194 L_27019201: 1195 eax = ecx; /* 0x27019201: mov eax, ecx */ 1196 ecx = MEM32(eax + 0x8); /* 0x27019203: mov ecx, dword ptr [eax + 8] */ 1197 edx = MEM32(ecx); /* 0x27019206: mov edx, dword ptr [ecx] */ 1198 MEM32(eax + 0x8) = edx; /* 0x27019208: mov dword ptr [eax + 8], edx */ 1199 edx = MEM32(ecx); /* 0x2701920B: mov edx, dword ptr [ecx] */ 1200 /* cmp edx, MEM32(esi + 0x8) */ /* 0x2701920D: cmp edx, dword ptr [esi + 8] */ 1201 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1203 _flag_k = FK_CMP; 1204 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019215; /* 0x27019210: je 0x27019215 */ 1205 L_27019212: 1206 MEM32(edx + 0x4) = eax; /* 0x27019212: mov dword ptr [edx + 4], eax */ 1207 L_27019215: 1208 edx = MEM32(eax + 0x4); /* 0x27019215: mov edx, dword ptr [eax + 4] */ 1209 MEM32(ecx + 0x4) = edx; /* 0x27019218: mov dword ptr [ecx + 4], edx */ 1210 edx = MEM32(esi + 0x4); /* 0x2701921B: mov edx, dword ptr [esi + 4] */ 1211 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701921E: cmp eax, dword ptr [edx + 4] */ 1212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1214 _flag_k = FK_CMP; 1215 if (CMP_NE(_flag_a, _flag_b)) goto L_27019228; /* 0x27019221: jne 0x27019228 */ 1216 L_27019223: 1217 MEM32(edx + 0x4) = ecx; /* 0x27019223: mov dword ptr [edx + 4], ecx */ 1218 goto L_27019236; /* 0x27019226: jmp 0x27019236 */ 1219 L_27019228: 1220 edx = MEM32(eax + 0x4); /* 0x27019228: mov edx, dword ptr [eax + 4] */ 1221 /* cmp eax, MEM32(edx) */ /* 0x2701922B: cmp eax, dword ptr [edx] */ 1222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1224 _flag_k = FK_CMP; 1225 if (CMP_NE(_flag_a, _flag_b)) goto L_27019233; /* 0x2701922D: jne 0x27019233 */ 1226 L_2701922F: 1227 MEM32(edx) = ecx; /* 0x2701922F: mov dword ptr [edx], ecx */ 1228 goto L_27019236; /* 0x27019231: jmp 0x27019236 */ 1229 L_27019233: 1230 MEM32(edx + 0x8) = ecx; /* 0x27019233: mov dword ptr [edx + 8], ecx */ 1231 L_27019236: 1232 MEM32(ecx) = eax; /* 0x27019236: mov dword ptr [ecx], eax */ 1233 MEM32(eax + 0x4) = ecx; /* 0x27019238: mov dword ptr [eax + 4], ecx */ 1234 L_2701923B: 1235 ecx = MEM32(eax + 0x4); /* 0x2701923B: mov ecx, dword ptr [eax + 4] */ 1236 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701923E: mov byte ptr [ecx + 0x10], bl */ 1237 edx = MEM32(eax + 0x4); /* 0x27019241: mov edx, dword ptr [eax + 4] */ 1238 ecx = MEM32(edx + 0x4); /* 0x27019244: mov ecx, dword ptr [edx + 4] */ 1239 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019247: mov byte ptr [ecx + 0x10], 0 */ 1240 edx = MEM32(eax + 0x4); /* 0x2701924B: mov edx, dword ptr [eax + 4] */ 1241 ecx = MEM32(edx + 0x4); /* 0x2701924E: mov ecx, dword ptr [edx + 4] */ 1242 edx = MEM32(ecx); /* 0x27019251: mov edx, dword ptr [ecx] */ 1243 edi = MEM32(edx + 0x8); /* 0x27019253: mov edi, dword ptr [edx + 8] */ 1244 MEM32(ecx) = edi; /* 0x27019256: mov dword ptr [ecx], edi */ 1245 edi = MEM32(edx + 0x8); /* 0x27019258: mov edi, dword ptr [edx + 8] */ 1246 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701925B: cmp edi, dword ptr [esi + 8] */ 1247 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1249 _flag_k = FK_CMP; 1250 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019263; /* 0x2701925E: je 0x27019263 */ 1251 L_27019260: 1252 MEM32(edi + 0x4) = ecx; /* 0x27019260: mov dword ptr [edi + 4], ecx */ 1253 L_27019263: 1254 edi = MEM32(ecx + 0x4); /* 0x27019263: mov edi, dword ptr [ecx + 4] */ 1255 MEM32(edx + 0x4) = edi; /* 0x27019266: mov dword ptr [edx + 4], edi */ 1256 edi = MEM32(esi + 0x4); /* 0x27019269: mov edi, dword ptr [esi + 4] */ 1257 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701926C: cmp ecx, dword ptr [edi + 4] */ 1258 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1260 _flag_k = FK_CMP; 1261 if (CMP_NE(_flag_a, _flag_b)) goto L_2701927C; /* 0x2701926F: jne 0x2701927c */ 1262 L_27019271: 1263 MEM32(edi + 0x4) = edx; /* 0x27019271: mov dword ptr [edi + 4], edx */ 1264 MEM32(edx + 0x8) = ecx; /* 0x27019274: mov dword ptr [edx + 8], ecx */ 1265 goto L_2701932E; /* 0x27019277: jmp 0x2701932e */ 1266 L_2701927C: 1267 edi = MEM32(ecx + 0x4); /* 0x2701927C: mov edi, dword ptr [ecx + 4] */ 1268 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701927F: cmp ecx, dword ptr [edi + 8] */ 1269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1271 _flag_k = FK_CMP; 1272 if (CMP_NE(_flag_a, _flag_b)) goto L_2701928F; /* 0x27019282: jne 0x2701928f */ 1273 L_27019284: 1274 MEM32(edi + 0x8) = edx; /* 0x27019284: mov dword ptr [edi + 8], edx */ 1275 MEM32(edx + 0x8) = ecx; /* 0x27019287: mov dword ptr [edx + 8], ecx */ 1276 goto L_2701932E; /* 0x2701928A: jmp 0x2701932e */ 1277 L_2701928F: 1278 MEM32(edi) = edx; /* 0x2701928F: mov dword ptr [edi], edx */ 1279 MEM32(edx + 0x8) = ecx; /* 0x27019291: mov dword ptr [edx + 8], ecx */ 1280 goto L_2701932E; /* 0x27019294: jmp 0x2701932e */ 1281 L_27019299: 1282 /* cmp MEM8(edx + 0x10), 0 */ /* 0x27019299: cmp byte ptr [edx + 0x10], 0 */ 1283 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 1284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1285 _flag_k = FK_NARROW(FK_CMP, 24); 1286 RECOMP_BACKEDGE(); 1287 if (CMP_EQ(_flag_a, _flag_b)) goto L_270191E1; /* 0x2701929D: je 0x270191e1 */ 1288 L_270192A3: 1289 /* cmp eax, MEM32(ecx) */ /* 0x270192A3: cmp eax, dword ptr [ecx] */ 1290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1292 _flag_k = FK_CMP; 1293 if (CMP_NE(_flag_a, _flag_b)) goto L_270192E3; /* 0x270192A5: jne 0x270192e3 */ 1294 L_270192A7: 1295 eax = ecx; /* 0x270192A7: mov eax, ecx */ 1296 ecx = MEM32(eax); /* 0x270192A9: mov ecx, dword ptr [eax] */ 1297 edx = MEM32(ecx + 0x8); /* 0x270192AB: mov edx, dword ptr [ecx + 8] */ 1298 MEM32(eax) = edx; /* 0x270192AE: mov dword ptr [eax], edx */ 1299 edx = MEM32(ecx + 0x8); /* 0x270192B0: mov edx, dword ptr [ecx + 8] */ 1300 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270192B3: cmp edx, dword ptr [esi + 8] */ 1301 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1303 _flag_k = FK_CMP; 1304 if (CMP_EQ(_flag_a, _flag_b)) goto L_270192BB; /* 0x270192B6: je 0x270192bb */ 1305 L_270192B8: 1306 MEM32(edx + 0x4) = eax; /* 0x270192B8: mov dword ptr [edx + 4], eax */ 1307 L_270192BB: 1308 edx = MEM32(eax + 0x4); /* 0x270192BB: mov edx, dword ptr [eax + 4] */ 1309 MEM32(ecx + 0x4) = edx; /* 0x270192BE: mov dword ptr [ecx + 4], edx */ 1310 edx = MEM32(esi + 0x4); /* 0x270192C1: mov edx, dword ptr [esi + 4] */ 1311 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270192C4: cmp eax, dword ptr [edx + 4] */ 1312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1314 _flag_k = FK_CMP; 1315 if (CMP_NE(_flag_a, _flag_b)) goto L_270192CE; /* 0x270192C7: jne 0x270192ce */ 1316 L_270192C9: 1317 MEM32(edx + 0x4) = ecx; /* 0x270192C9: mov dword ptr [edx + 4], ecx */ 1318 goto L_270192DD; /* 0x270192CC: jmp 0x270192dd */ 1319 L_270192CE: 1320 edx = MEM32(eax + 0x4); /* 0x270192CE: mov edx, dword ptr [eax + 4] */ 1321 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270192D1: cmp eax, dword ptr [edx + 8] */ 1322 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1324 _flag_k = FK_CMP; 1325 if (CMP_NE(_flag_a, _flag_b)) goto L_270192DB; /* 0x270192D4: jne 0x270192db */ 1326 L_270192D6: 1327 MEM32(edx + 0x8) = ecx; /* 0x270192D6: mov dword ptr [edx + 8], ecx */ 1328 goto L_270192DD; /* 0x270192D9: jmp 0x270192dd */ 1329 L_270192DB: 1330 MEM32(edx) = ecx; /* 0x270192DB: mov dword ptr [edx], ecx */ 1331 L_270192DD: 1332 MEM32(ecx + 0x8) = eax; /* 0x270192DD: mov dword ptr [ecx + 8], eax */ 1333 MEM32(eax + 0x4) = ecx; /* 0x270192E0: mov dword ptr [eax + 4], ecx */ 1334 L_270192E3: 1335 ecx = MEM32(eax + 0x4); /* 0x270192E3: mov ecx, dword ptr [eax + 4] */ 1336 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270192E6: mov byte ptr [ecx + 0x10], bl */ 1337 edx = MEM32(eax + 0x4); /* 0x270192E9: mov edx, dword ptr [eax + 4] */ 1338 ecx = MEM32(edx + 0x4); /* 0x270192EC: mov ecx, dword ptr [edx + 4] */ 1339 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x270192EF: mov byte ptr [ecx + 0x10], 0 */ 1340 edx = MEM32(eax + 0x4); /* 0x270192F3: mov edx, dword ptr [eax + 4] */ 1341 ecx = MEM32(edx + 0x4); /* 0x270192F6: mov ecx, dword ptr [edx + 4] */ 1342 edx = MEM32(ecx + 0x8); /* 0x270192F9: mov edx, dword ptr [ecx + 8] */ 1343 edi = MEM32(edx); /* 0x270192FC: mov edi, dword ptr [edx] */ 1344 MEM32(ecx + 0x8) = edi; /* 0x270192FE: mov dword ptr [ecx + 8], edi */ 1345 edi = MEM32(edx); /* 0x27019301: mov edi, dword ptr [edx] */ 1346 /* cmp edi, MEM32(esi + 0x8) */ /* 0x27019303: cmp edi, dword ptr [esi + 8] */ 1347 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1349 _flag_k = FK_CMP; 1350 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701930B; /* 0x27019306: je 0x2701930b */ 1351 L_27019308: 1352 MEM32(edi + 0x4) = ecx; /* 0x27019308: mov dword ptr [edi + 4], ecx */ 1353 L_2701930B: 1354 edi = MEM32(ecx + 0x4); /* 0x2701930B: mov edi, dword ptr [ecx + 4] */ 1355 MEM32(edx + 0x4) = edi; /* 0x2701930E: mov dword ptr [edx + 4], edi */ 1356 edi = MEM32(esi + 0x4); /* 0x27019311: mov edi, dword ptr [esi + 4] */ 1357 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x27019314: cmp ecx, dword ptr [edi + 4] */ 1358 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1360 _flag_k = FK_CMP; 1361 if (CMP_NE(_flag_a, _flag_b)) goto L_2701931E; /* 0x27019317: jne 0x2701931e */ 1362 L_27019319: 1363 MEM32(edi + 0x4) = edx; /* 0x27019319: mov dword ptr [edi + 4], edx */ 1364 goto L_2701932C; /* 0x2701931C: jmp 0x2701932c */ 1365 L_2701931E: 1366 edi = MEM32(ecx + 0x4); /* 0x2701931E: mov edi, dword ptr [ecx + 4] */ 1367 /* cmp ecx, MEM32(edi) */ /* 0x27019321: cmp ecx, dword ptr [edi] */ 1368 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1370 _flag_k = FK_CMP; 1371 if (CMP_NE(_flag_a, _flag_b)) goto L_27019329; /* 0x27019323: jne 0x27019329 */ 1372 L_27019325: 1373 MEM32(edi) = edx; /* 0x27019325: mov dword ptr [edi], edx */ 1374 goto L_2701932C; /* 0x27019327: jmp 0x2701932c */ 1375 L_27019329: 1376 MEM32(edi + 0x8) = edx; /* 0x27019329: mov dword ptr [edi + 8], edx */ 1377 L_2701932C: 1378 MEM32(edx) = ecx; /* 0x2701932C: mov dword ptr [edx], ecx */ 1379 L_2701932E: 1380 MEM32(ecx + 0x4) = edx; /* 0x2701932E: mov dword ptr [ecx + 4], edx */ 1381 L_27019331: 1382 ecx = MEM32(esi + 0x4); /* 0x27019331: mov ecx, dword ptr [esi + 4] */ 1383 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27019334: cmp eax, dword ptr [ecx + 4] */ 1384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1386 _flag_k = FK_CMP; 1387 RECOMP_BACKEDGE(); 1388 if (CMP_NE(_flag_a, _flag_b)) goto L_270191BD; /* 0x27019337: jne 0x270191bd */ 1389 L_2701933D: 1390 edx = MEM32(esi + 0x4); /* 0x2701933D: mov edx, dword ptr [esi + 4] */ 1391 eax = MEM32(edx + 0x4); /* 0x27019340: mov eax, dword ptr [edx + 4] */ 1392 ecx = MEM32(ebp + (-0x4)); /* 0x27019343: mov ecx, dword ptr [ebp - 4] */ 1393 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019346: mov byte ptr [eax + 0x10], bl */ 1394 eax = MEM32(ebp + 0x8); /* 0x27019349: mov eax, dword ptr [ebp + 8] */ 1395 edi = POP32_VAL(esp); /* 0x2701934C: pop edi */ 1396 esi = POP32_VAL(esp); /* 0x2701934D: pop esi */ 1397 MEM32(eax) = ecx; /* 0x2701934E: mov dword ptr [eax], ecx */ 1398 ebx = POP32_VAL(esp); /* 0x27019350: pop ebx */ 1399 esp = ebp; /* 0x27019351: mov esp, ebp */ 1400 ebp = POP32_VAL(esp); /* 0x27019353: pop ebp */ 1401 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019354: ret 0x10 */ 1402 RECOMP_REGS_OUT(); 1403 } 1404 1405 void sub_2701923B(void) { 1406 int _fpu_cmp = 0; 1407 uint32_t _cf = 0; 1408 int _df = 1; 1409 uint32_t _flag_k = FK_NONE; 1410 uint32_t _flag_a = 0, _flag_b = 0; 1411 uint32_t _itail_tgt = 0; 1412 RECOMP_REGS_LOCALS 1413 RECOMP_ENTER(0x2701923Bu); 1414 1415 goto L_2701923B; 1416 L_270191BD: 1417 ecx = MEM32(eax + 0x4); /* 0x270191BD: mov ecx, dword ptr [eax + 4] */ 1418 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x270191C0: mov dl, byte ptr [ecx + 0x10] */ 1419 /* test LO8(edx), LO8(edx) */ /* 0x270191C3: test dl, dl */ 1420 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1421 _cf = 0; 1422 _flag_k = FK_NARROW(FK_TEST, 24); 1423 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701933D; /* 0x270191C5: jne 0x2701933d */ 1424 L_270191CB: 1425 edi = MEM32(ecx + 0x4); /* 0x270191CB: mov edi, dword ptr [ecx + 4] */ 1426 edx = MEM32(edi); /* 0x270191CE: mov edx, dword ptr [edi] */ 1427 /* cmp ecx, edx */ /* 0x270191D0: cmp ecx, edx */ 1428 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1430 _flag_k = FK_CMP; 1431 if (CMP_NE(_flag_a, _flag_b)) goto L_27019299; /* 0x270191D2: jne 0x27019299 */ 1432 L_270191D8: 1433 edx = MEM32(edi + 0x8); /* 0x270191D8: mov edx, dword ptr [edi + 8] */ 1434 /* cmp MEM8(edx + 0x10), 0 */ /* 0x270191DB: cmp byte ptr [edx + 0x10], 0 */ 1435 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 1436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1437 _flag_k = FK_NARROW(FK_CMP, 24); 1438 if (CMP_NE(_flag_a, _flag_b)) goto L_270191FC; /* 0x270191DF: jne 0x270191fc */ 1439 L_270191E1: 1440 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E1: mov byte ptr [ecx + 0x10], bl */ 1441 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E4: mov byte ptr [edx + 0x10], bl */ 1442 ecx = MEM32(eax + 0x4); /* 0x270191E7: mov ecx, dword ptr [eax + 4] */ 1443 edx = MEM32(ecx + 0x4); /* 0x270191EA: mov edx, dword ptr [ecx + 4] */ 1444 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x270191ED: mov byte ptr [edx + 0x10], 0 */ 1445 eax = MEM32(eax + 0x4); /* 0x270191F1: mov eax, dword ptr [eax + 4] */ 1446 eax = MEM32(eax + 0x4); /* 0x270191F4: mov eax, dword ptr [eax + 4] */ 1447 goto L_27019331; /* 0x270191F7: jmp 0x27019331 */ 1448 L_270191FC: 1449 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270191FC: cmp eax, dword ptr [ecx + 8] */ 1450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1452 _flag_k = FK_CMP; 1453 if (CMP_NE(_flag_a, _flag_b)) goto L_2701923B; /* 0x270191FF: jne 0x2701923b */ 1454 L_27019201: 1455 eax = ecx; /* 0x27019201: mov eax, ecx */ 1456 ecx = MEM32(eax + 0x8); /* 0x27019203: mov ecx, dword ptr [eax + 8] */ 1457 edx = MEM32(ecx); /* 0x27019206: mov edx, dword ptr [ecx] */ 1458 MEM32(eax + 0x8) = edx; /* 0x27019208: mov dword ptr [eax + 8], edx */ 1459 edx = MEM32(ecx); /* 0x2701920B: mov edx, dword ptr [ecx] */ 1460 /* cmp edx, MEM32(esi + 0x8) */ /* 0x2701920D: cmp edx, dword ptr [esi + 8] */ 1461 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1463 _flag_k = FK_CMP; 1464 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019215; /* 0x27019210: je 0x27019215 */ 1465 L_27019212: 1466 MEM32(edx + 0x4) = eax; /* 0x27019212: mov dword ptr [edx + 4], eax */ 1467 L_27019215: 1468 edx = MEM32(eax + 0x4); /* 0x27019215: mov edx, dword ptr [eax + 4] */ 1469 MEM32(ecx + 0x4) = edx; /* 0x27019218: mov dword ptr [ecx + 4], edx */ 1470 edx = MEM32(esi + 0x4); /* 0x2701921B: mov edx, dword ptr [esi + 4] */ 1471 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701921E: cmp eax, dword ptr [edx + 4] */ 1472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1474 _flag_k = FK_CMP; 1475 if (CMP_NE(_flag_a, _flag_b)) goto L_27019228; /* 0x27019221: jne 0x27019228 */ 1476 L_27019223: 1477 MEM32(edx + 0x4) = ecx; /* 0x27019223: mov dword ptr [edx + 4], ecx */ 1478 goto L_27019236; /* 0x27019226: jmp 0x27019236 */ 1479 L_27019228: 1480 edx = MEM32(eax + 0x4); /* 0x27019228: mov edx, dword ptr [eax + 4] */ 1481 /* cmp eax, MEM32(edx) */ /* 0x2701922B: cmp eax, dword ptr [edx] */ 1482 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1484 _flag_k = FK_CMP; 1485 if (CMP_NE(_flag_a, _flag_b)) goto L_27019233; /* 0x2701922D: jne 0x27019233 */ 1486 L_2701922F: 1487 MEM32(edx) = ecx; /* 0x2701922F: mov dword ptr [edx], ecx */ 1488 goto L_27019236; /* 0x27019231: jmp 0x27019236 */ 1489 L_27019233: 1490 MEM32(edx + 0x8) = ecx; /* 0x27019233: mov dword ptr [edx + 8], ecx */ 1491 L_27019236: 1492 MEM32(ecx) = eax; /* 0x27019236: mov dword ptr [ecx], eax */ 1493 MEM32(eax + 0x4) = ecx; /* 0x27019238: mov dword ptr [eax + 4], ecx */ 1494 L_2701923B: 1495 ecx = MEM32(eax + 0x4); /* 0x2701923B: mov ecx, dword ptr [eax + 4] */ 1496 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701923E: mov byte ptr [ecx + 0x10], bl */ 1497 edx = MEM32(eax + 0x4); /* 0x27019241: mov edx, dword ptr [eax + 4] */ 1498 ecx = MEM32(edx + 0x4); /* 0x27019244: mov ecx, dword ptr [edx + 4] */ 1499 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019247: mov byte ptr [ecx + 0x10], 0 */ 1500 edx = MEM32(eax + 0x4); /* 0x2701924B: mov edx, dword ptr [eax + 4] */ 1501 ecx = MEM32(edx + 0x4); /* 0x2701924E: mov ecx, dword ptr [edx + 4] */ 1502 edx = MEM32(ecx); /* 0x27019251: mov edx, dword ptr [ecx] */ 1503 edi = MEM32(edx + 0x8); /* 0x27019253: mov edi, dword ptr [edx + 8] */ 1504 MEM32(ecx) = edi; /* 0x27019256: mov dword ptr [ecx], edi */ 1505 edi = MEM32(edx + 0x8); /* 0x27019258: mov edi, dword ptr [edx + 8] */ 1506 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701925B: cmp edi, dword ptr [esi + 8] */ 1507 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1509 _flag_k = FK_CMP; 1510 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019263; /* 0x2701925E: je 0x27019263 */ 1511 L_27019260: 1512 MEM32(edi + 0x4) = ecx; /* 0x27019260: mov dword ptr [edi + 4], ecx */ 1513 L_27019263: 1514 edi = MEM32(ecx + 0x4); /* 0x27019263: mov edi, dword ptr [ecx + 4] */ 1515 MEM32(edx + 0x4) = edi; /* 0x27019266: mov dword ptr [edx + 4], edi */ 1516 edi = MEM32(esi + 0x4); /* 0x27019269: mov edi, dword ptr [esi + 4] */ 1517 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701926C: cmp ecx, dword ptr [edi + 4] */ 1518 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1520 _flag_k = FK_CMP; 1521 if (CMP_NE(_flag_a, _flag_b)) goto L_2701927C; /* 0x2701926F: jne 0x2701927c */ 1522 L_27019271: 1523 MEM32(edi + 0x4) = edx; /* 0x27019271: mov dword ptr [edi + 4], edx */ 1524 MEM32(edx + 0x8) = ecx; /* 0x27019274: mov dword ptr [edx + 8], ecx */ 1525 goto L_2701932E; /* 0x27019277: jmp 0x2701932e */ 1526 L_2701927C: 1527 edi = MEM32(ecx + 0x4); /* 0x2701927C: mov edi, dword ptr [ecx + 4] */ 1528 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701927F: cmp ecx, dword ptr [edi + 8] */ 1529 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1531 _flag_k = FK_CMP; 1532 if (CMP_NE(_flag_a, _flag_b)) goto L_2701928F; /* 0x27019282: jne 0x2701928f */ 1533 L_27019284: 1534 MEM32(edi + 0x8) = edx; /* 0x27019284: mov dword ptr [edi + 8], edx */ 1535 MEM32(edx + 0x8) = ecx; /* 0x27019287: mov dword ptr [edx + 8], ecx */ 1536 goto L_2701932E; /* 0x2701928A: jmp 0x2701932e */ 1537 L_2701928F: 1538 MEM32(edi) = edx; /* 0x2701928F: mov dword ptr [edi], edx */ 1539 MEM32(edx + 0x8) = ecx; /* 0x27019291: mov dword ptr [edx + 8], ecx */ 1540 goto L_2701932E; /* 0x27019294: jmp 0x2701932e */ 1541 L_27019299: 1542 /* cmp MEM8(edx + 0x10), 0 */ /* 0x27019299: cmp byte ptr [edx + 0x10], 0 */ 1543 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 1544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1545 _flag_k = FK_NARROW(FK_CMP, 24); 1546 RECOMP_BACKEDGE(); 1547 if (CMP_EQ(_flag_a, _flag_b)) goto L_270191E1; /* 0x2701929D: je 0x270191e1 */ 1548 L_270192A3: 1549 /* cmp eax, MEM32(ecx) */ /* 0x270192A3: cmp eax, dword ptr [ecx] */ 1550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1552 _flag_k = FK_CMP; 1553 if (CMP_NE(_flag_a, _flag_b)) goto L_270192E3; /* 0x270192A5: jne 0x270192e3 */ 1554 L_270192A7: 1555 eax = ecx; /* 0x270192A7: mov eax, ecx */ 1556 ecx = MEM32(eax); /* 0x270192A9: mov ecx, dword ptr [eax] */ 1557 edx = MEM32(ecx + 0x8); /* 0x270192AB: mov edx, dword ptr [ecx + 8] */ 1558 MEM32(eax) = edx; /* 0x270192AE: mov dword ptr [eax], edx */ 1559 edx = MEM32(ecx + 0x8); /* 0x270192B0: mov edx, dword ptr [ecx + 8] */ 1560 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270192B3: cmp edx, dword ptr [esi + 8] */ 1561 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1563 _flag_k = FK_CMP; 1564 if (CMP_EQ(_flag_a, _flag_b)) goto L_270192BB; /* 0x270192B6: je 0x270192bb */ 1565 L_270192B8: 1566 MEM32(edx + 0x4) = eax; /* 0x270192B8: mov dword ptr [edx + 4], eax */ 1567 L_270192BB: 1568 edx = MEM32(eax + 0x4); /* 0x270192BB: mov edx, dword ptr [eax + 4] */ 1569 MEM32(ecx + 0x4) = edx; /* 0x270192BE: mov dword ptr [ecx + 4], edx */ 1570 edx = MEM32(esi + 0x4); /* 0x270192C1: mov edx, dword ptr [esi + 4] */ 1571 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270192C4: cmp eax, dword ptr [edx + 4] */ 1572 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1574 _flag_k = FK_CMP; 1575 if (CMP_NE(_flag_a, _flag_b)) goto L_270192CE; /* 0x270192C7: jne 0x270192ce */ 1576 L_270192C9: 1577 MEM32(edx + 0x4) = ecx; /* 0x270192C9: mov dword ptr [edx + 4], ecx */ 1578 goto L_270192DD; /* 0x270192CC: jmp 0x270192dd */ 1579 L_270192CE: 1580 edx = MEM32(eax + 0x4); /* 0x270192CE: mov edx, dword ptr [eax + 4] */ 1581 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270192D1: cmp eax, dword ptr [edx + 8] */ 1582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1584 _flag_k = FK_CMP; 1585 if (CMP_NE(_flag_a, _flag_b)) goto L_270192DB; /* 0x270192D4: jne 0x270192db */ 1586 L_270192D6: 1587 MEM32(edx + 0x8) = ecx; /* 0x270192D6: mov dword ptr [edx + 8], ecx */ 1588 goto L_270192DD; /* 0x270192D9: jmp 0x270192dd */ 1589 L_270192DB: 1590 MEM32(edx) = ecx; /* 0x270192DB: mov dword ptr [edx], ecx */ 1591 L_270192DD: 1592 MEM32(ecx + 0x8) = eax; /* 0x270192DD: mov dword ptr [ecx + 8], eax */ 1593 MEM32(eax + 0x4) = ecx; /* 0x270192E0: mov dword ptr [eax + 4], ecx */ 1594 L_270192E3: 1595 ecx = MEM32(eax + 0x4); /* 0x270192E3: mov ecx, dword ptr [eax + 4] */ 1596 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270192E6: mov byte ptr [ecx + 0x10], bl */ 1597 edx = MEM32(eax + 0x4); /* 0x270192E9: mov edx, dword ptr [eax + 4] */ 1598 ecx = MEM32(edx + 0x4); /* 0x270192EC: mov ecx, dword ptr [edx + 4] */ 1599 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x270192EF: mov byte ptr [ecx + 0x10], 0 */ 1600 edx = MEM32(eax + 0x4); /* 0x270192F3: mov edx, dword ptr [eax + 4] */ 1601 ecx = MEM32(edx + 0x4); /* 0x270192F6: mov ecx, dword ptr [edx + 4] */ 1602 edx = MEM32(ecx + 0x8); /* 0x270192F9: mov edx, dword ptr [ecx + 8] */ 1603 edi = MEM32(edx); /* 0x270192FC: mov edi, dword ptr [edx] */ 1604 MEM32(ecx + 0x8) = edi; /* 0x270192FE: mov dword ptr [ecx + 8], edi */ 1605 edi = MEM32(edx); /* 0x27019301: mov edi, dword ptr [edx] */ 1606 /* cmp edi, MEM32(esi + 0x8) */ /* 0x27019303: cmp edi, dword ptr [esi + 8] */ 1607 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1609 _flag_k = FK_CMP; 1610 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701930B; /* 0x27019306: je 0x2701930b */ 1611 L_27019308: 1612 MEM32(edi + 0x4) = ecx; /* 0x27019308: mov dword ptr [edi + 4], ecx */ 1613 L_2701930B: 1614 edi = MEM32(ecx + 0x4); /* 0x2701930B: mov edi, dword ptr [ecx + 4] */ 1615 MEM32(edx + 0x4) = edi; /* 0x2701930E: mov dword ptr [edx + 4], edi */ 1616 edi = MEM32(esi + 0x4); /* 0x27019311: mov edi, dword ptr [esi + 4] */ 1617 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x27019314: cmp ecx, dword ptr [edi + 4] */ 1618 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1620 _flag_k = FK_CMP; 1621 if (CMP_NE(_flag_a, _flag_b)) goto L_2701931E; /* 0x27019317: jne 0x2701931e */ 1622 L_27019319: 1623 MEM32(edi + 0x4) = edx; /* 0x27019319: mov dword ptr [edi + 4], edx */ 1624 goto L_2701932C; /* 0x2701931C: jmp 0x2701932c */ 1625 L_2701931E: 1626 edi = MEM32(ecx + 0x4); /* 0x2701931E: mov edi, dword ptr [ecx + 4] */ 1627 /* cmp ecx, MEM32(edi) */ /* 0x27019321: cmp ecx, dword ptr [edi] */ 1628 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1630 _flag_k = FK_CMP; 1631 if (CMP_NE(_flag_a, _flag_b)) goto L_27019329; /* 0x27019323: jne 0x27019329 */ 1632 L_27019325: 1633 MEM32(edi) = edx; /* 0x27019325: mov dword ptr [edi], edx */ 1634 goto L_2701932C; /* 0x27019327: jmp 0x2701932c */ 1635 L_27019329: 1636 MEM32(edi + 0x8) = edx; /* 0x27019329: mov dword ptr [edi + 8], edx */ 1637 L_2701932C: 1638 MEM32(edx) = ecx; /* 0x2701932C: mov dword ptr [edx], ecx */ 1639 L_2701932E: 1640 MEM32(ecx + 0x4) = edx; /* 0x2701932E: mov dword ptr [ecx + 4], edx */ 1641 L_27019331: 1642 ecx = MEM32(esi + 0x4); /* 0x27019331: mov ecx, dword ptr [esi + 4] */ 1643 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27019334: cmp eax, dword ptr [ecx + 4] */ 1644 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1646 _flag_k = FK_CMP; 1647 RECOMP_BACKEDGE(); 1648 if (CMP_NE(_flag_a, _flag_b)) goto L_270191BD; /* 0x27019337: jne 0x270191bd */ 1649 L_2701933D: 1650 edx = MEM32(esi + 0x4); /* 0x2701933D: mov edx, dword ptr [esi + 4] */ 1651 eax = MEM32(edx + 0x4); /* 0x27019340: mov eax, dword ptr [edx + 4] */ 1652 ecx = MEM32(ebp + (-0x4)); /* 0x27019343: mov ecx, dword ptr [ebp - 4] */ 1653 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019346: mov byte ptr [eax + 0x10], bl */ 1654 eax = MEM32(ebp + 0x8); /* 0x27019349: mov eax, dword ptr [ebp + 8] */ 1655 edi = POP32_VAL(esp); /* 0x2701934C: pop edi */ 1656 esi = POP32_VAL(esp); /* 0x2701934D: pop esi */ 1657 MEM32(eax) = ecx; /* 0x2701934E: mov dword ptr [eax], ecx */ 1658 ebx = POP32_VAL(esp); /* 0x27019350: pop ebx */ 1659 esp = ebp; /* 0x27019351: mov esp, ebp */ 1660 ebp = POP32_VAL(esp); /* 0x27019353: pop ebp */ 1661 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019354: ret 0x10 */ 1662 RECOMP_REGS_OUT(); 1663 } 1664 1665 void sub_27019299(void) { 1666 int _fpu_cmp = 0; 1667 uint32_t _cf = 0; 1668 int _df = 1; 1669 uint32_t _flag_k = FK_NONE; 1670 uint32_t _flag_a = 0, _flag_b = 0; 1671 uint32_t _itail_tgt = 0; 1672 RECOMP_REGS_LOCALS 1673 RECOMP_ENTER(0x27019299u); 1674 1675 goto L_27019299; 1676 L_270191BD: 1677 ecx = MEM32(eax + 0x4); /* 0x270191BD: mov ecx, dword ptr [eax + 4] */ 1678 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x270191C0: mov dl, byte ptr [ecx + 0x10] */ 1679 /* test LO8(edx), LO8(edx) */ /* 0x270191C3: test dl, dl */ 1680 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1681 _cf = 0; 1682 _flag_k = FK_NARROW(FK_TEST, 24); 1683 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701933D; /* 0x270191C5: jne 0x2701933d */ 1684 L_270191CB: 1685 edi = MEM32(ecx + 0x4); /* 0x270191CB: mov edi, dword ptr [ecx + 4] */ 1686 edx = MEM32(edi); /* 0x270191CE: mov edx, dword ptr [edi] */ 1687 /* cmp ecx, edx */ /* 0x270191D0: cmp ecx, edx */ 1688 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1690 _flag_k = FK_CMP; 1691 if (CMP_NE(_flag_a, _flag_b)) goto L_27019299; /* 0x270191D2: jne 0x27019299 */ 1692 L_270191D8: 1693 edx = MEM32(edi + 0x8); /* 0x270191D8: mov edx, dword ptr [edi + 8] */ 1694 /* cmp MEM8(edx + 0x10), 0 */ /* 0x270191DB: cmp byte ptr [edx + 0x10], 0 */ 1695 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 1696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1697 _flag_k = FK_NARROW(FK_CMP, 24); 1698 if (CMP_NE(_flag_a, _flag_b)) goto L_270191FC; /* 0x270191DF: jne 0x270191fc */ 1699 L_270191E1: 1700 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E1: mov byte ptr [ecx + 0x10], bl */ 1701 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E4: mov byte ptr [edx + 0x10], bl */ 1702 ecx = MEM32(eax + 0x4); /* 0x270191E7: mov ecx, dword ptr [eax + 4] */ 1703 edx = MEM32(ecx + 0x4); /* 0x270191EA: mov edx, dword ptr [ecx + 4] */ 1704 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x270191ED: mov byte ptr [edx + 0x10], 0 */ 1705 eax = MEM32(eax + 0x4); /* 0x270191F1: mov eax, dword ptr [eax + 4] */ 1706 eax = MEM32(eax + 0x4); /* 0x270191F4: mov eax, dword ptr [eax + 4] */ 1707 goto L_27019331; /* 0x270191F7: jmp 0x27019331 */ 1708 L_270191FC: 1709 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270191FC: cmp eax, dword ptr [ecx + 8] */ 1710 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1711 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1712 _flag_k = FK_CMP; 1713 if (CMP_NE(_flag_a, _flag_b)) goto L_2701923B; /* 0x270191FF: jne 0x2701923b */ 1714 L_27019201: 1715 eax = ecx; /* 0x27019201: mov eax, ecx */ 1716 ecx = MEM32(eax + 0x8); /* 0x27019203: mov ecx, dword ptr [eax + 8] */ 1717 edx = MEM32(ecx); /* 0x27019206: mov edx, dword ptr [ecx] */ 1718 MEM32(eax + 0x8) = edx; /* 0x27019208: mov dword ptr [eax + 8], edx */ 1719 edx = MEM32(ecx); /* 0x2701920B: mov edx, dword ptr [ecx] */ 1720 /* cmp edx, MEM32(esi + 0x8) */ /* 0x2701920D: cmp edx, dword ptr [esi + 8] */ 1721 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1723 _flag_k = FK_CMP; 1724 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019215; /* 0x27019210: je 0x27019215 */ 1725 L_27019212: 1726 MEM32(edx + 0x4) = eax; /* 0x27019212: mov dword ptr [edx + 4], eax */ 1727 L_27019215: 1728 edx = MEM32(eax + 0x4); /* 0x27019215: mov edx, dword ptr [eax + 4] */ 1729 MEM32(ecx + 0x4) = edx; /* 0x27019218: mov dword ptr [ecx + 4], edx */ 1730 edx = MEM32(esi + 0x4); /* 0x2701921B: mov edx, dword ptr [esi + 4] */ 1731 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701921E: cmp eax, dword ptr [edx + 4] */ 1732 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1734 _flag_k = FK_CMP; 1735 if (CMP_NE(_flag_a, _flag_b)) goto L_27019228; /* 0x27019221: jne 0x27019228 */ 1736 L_27019223: 1737 MEM32(edx + 0x4) = ecx; /* 0x27019223: mov dword ptr [edx + 4], ecx */ 1738 goto L_27019236; /* 0x27019226: jmp 0x27019236 */ 1739 L_27019228: 1740 edx = MEM32(eax + 0x4); /* 0x27019228: mov edx, dword ptr [eax + 4] */ 1741 /* cmp eax, MEM32(edx) */ /* 0x2701922B: cmp eax, dword ptr [edx] */ 1742 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1744 _flag_k = FK_CMP; 1745 if (CMP_NE(_flag_a, _flag_b)) goto L_27019233; /* 0x2701922D: jne 0x27019233 */ 1746 L_2701922F: 1747 MEM32(edx) = ecx; /* 0x2701922F: mov dword ptr [edx], ecx */ 1748 goto L_27019236; /* 0x27019231: jmp 0x27019236 */ 1749 L_27019233: 1750 MEM32(edx + 0x8) = ecx; /* 0x27019233: mov dword ptr [edx + 8], ecx */ 1751 L_27019236: 1752 MEM32(ecx) = eax; /* 0x27019236: mov dword ptr [ecx], eax */ 1753 MEM32(eax + 0x4) = ecx; /* 0x27019238: mov dword ptr [eax + 4], ecx */ 1754 L_2701923B: 1755 ecx = MEM32(eax + 0x4); /* 0x2701923B: mov ecx, dword ptr [eax + 4] */ 1756 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701923E: mov byte ptr [ecx + 0x10], bl */ 1757 edx = MEM32(eax + 0x4); /* 0x27019241: mov edx, dword ptr [eax + 4] */ 1758 ecx = MEM32(edx + 0x4); /* 0x27019244: mov ecx, dword ptr [edx + 4] */ 1759 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019247: mov byte ptr [ecx + 0x10], 0 */ 1760 edx = MEM32(eax + 0x4); /* 0x2701924B: mov edx, dword ptr [eax + 4] */ 1761 ecx = MEM32(edx + 0x4); /* 0x2701924E: mov ecx, dword ptr [edx + 4] */ 1762 edx = MEM32(ecx); /* 0x27019251: mov edx, dword ptr [ecx] */ 1763 edi = MEM32(edx + 0x8); /* 0x27019253: mov edi, dword ptr [edx + 8] */ 1764 MEM32(ecx) = edi; /* 0x27019256: mov dword ptr [ecx], edi */ 1765 edi = MEM32(edx + 0x8); /* 0x27019258: mov edi, dword ptr [edx + 8] */ 1766 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701925B: cmp edi, dword ptr [esi + 8] */ 1767 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1769 _flag_k = FK_CMP; 1770 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019263; /* 0x2701925E: je 0x27019263 */ 1771 L_27019260: 1772 MEM32(edi + 0x4) = ecx; /* 0x27019260: mov dword ptr [edi + 4], ecx */ 1773 L_27019263: 1774 edi = MEM32(ecx + 0x4); /* 0x27019263: mov edi, dword ptr [ecx + 4] */ 1775 MEM32(edx + 0x4) = edi; /* 0x27019266: mov dword ptr [edx + 4], edi */ 1776 edi = MEM32(esi + 0x4); /* 0x27019269: mov edi, dword ptr [esi + 4] */ 1777 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701926C: cmp ecx, dword ptr [edi + 4] */ 1778 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1780 _flag_k = FK_CMP; 1781 if (CMP_NE(_flag_a, _flag_b)) goto L_2701927C; /* 0x2701926F: jne 0x2701927c */ 1782 L_27019271: 1783 MEM32(edi + 0x4) = edx; /* 0x27019271: mov dword ptr [edi + 4], edx */ 1784 MEM32(edx + 0x8) = ecx; /* 0x27019274: mov dword ptr [edx + 8], ecx */ 1785 goto L_2701932E; /* 0x27019277: jmp 0x2701932e */ 1786 L_2701927C: 1787 edi = MEM32(ecx + 0x4); /* 0x2701927C: mov edi, dword ptr [ecx + 4] */ 1788 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701927F: cmp ecx, dword ptr [edi + 8] */ 1789 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1791 _flag_k = FK_CMP; 1792 if (CMP_NE(_flag_a, _flag_b)) goto L_2701928F; /* 0x27019282: jne 0x2701928f */ 1793 L_27019284: 1794 MEM32(edi + 0x8) = edx; /* 0x27019284: mov dword ptr [edi + 8], edx */ 1795 MEM32(edx + 0x8) = ecx; /* 0x27019287: mov dword ptr [edx + 8], ecx */ 1796 goto L_2701932E; /* 0x2701928A: jmp 0x2701932e */ 1797 L_2701928F: 1798 MEM32(edi) = edx; /* 0x2701928F: mov dword ptr [edi], edx */ 1799 MEM32(edx + 0x8) = ecx; /* 0x27019291: mov dword ptr [edx + 8], ecx */ 1800 goto L_2701932E; /* 0x27019294: jmp 0x2701932e */ 1801 L_27019299: 1802 /* cmp MEM8(edx + 0x10), 0 */ /* 0x27019299: cmp byte ptr [edx + 0x10], 0 */ 1803 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 1804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1805 _flag_k = FK_NARROW(FK_CMP, 24); 1806 RECOMP_BACKEDGE(); 1807 if (CMP_EQ(_flag_a, _flag_b)) goto L_270191E1; /* 0x2701929D: je 0x270191e1 */ 1808 L_270192A3: 1809 /* cmp eax, MEM32(ecx) */ /* 0x270192A3: cmp eax, dword ptr [ecx] */ 1810 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1812 _flag_k = FK_CMP; 1813 if (CMP_NE(_flag_a, _flag_b)) goto L_270192E3; /* 0x270192A5: jne 0x270192e3 */ 1814 L_270192A7: 1815 eax = ecx; /* 0x270192A7: mov eax, ecx */ 1816 ecx = MEM32(eax); /* 0x270192A9: mov ecx, dword ptr [eax] */ 1817 edx = MEM32(ecx + 0x8); /* 0x270192AB: mov edx, dword ptr [ecx + 8] */ 1818 MEM32(eax) = edx; /* 0x270192AE: mov dword ptr [eax], edx */ 1819 edx = MEM32(ecx + 0x8); /* 0x270192B0: mov edx, dword ptr [ecx + 8] */ 1820 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270192B3: cmp edx, dword ptr [esi + 8] */ 1821 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1823 _flag_k = FK_CMP; 1824 if (CMP_EQ(_flag_a, _flag_b)) goto L_270192BB; /* 0x270192B6: je 0x270192bb */ 1825 L_270192B8: 1826 MEM32(edx + 0x4) = eax; /* 0x270192B8: mov dword ptr [edx + 4], eax */ 1827 L_270192BB: 1828 edx = MEM32(eax + 0x4); /* 0x270192BB: mov edx, dword ptr [eax + 4] */ 1829 MEM32(ecx + 0x4) = edx; /* 0x270192BE: mov dword ptr [ecx + 4], edx */ 1830 edx = MEM32(esi + 0x4); /* 0x270192C1: mov edx, dword ptr [esi + 4] */ 1831 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270192C4: cmp eax, dword ptr [edx + 4] */ 1832 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1834 _flag_k = FK_CMP; 1835 if (CMP_NE(_flag_a, _flag_b)) goto L_270192CE; /* 0x270192C7: jne 0x270192ce */ 1836 L_270192C9: 1837 MEM32(edx + 0x4) = ecx; /* 0x270192C9: mov dword ptr [edx + 4], ecx */ 1838 goto L_270192DD; /* 0x270192CC: jmp 0x270192dd */ 1839 L_270192CE: 1840 edx = MEM32(eax + 0x4); /* 0x270192CE: mov edx, dword ptr [eax + 4] */ 1841 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270192D1: cmp eax, dword ptr [edx + 8] */ 1842 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1844 _flag_k = FK_CMP; 1845 if (CMP_NE(_flag_a, _flag_b)) goto L_270192DB; /* 0x270192D4: jne 0x270192db */ 1846 L_270192D6: 1847 MEM32(edx + 0x8) = ecx; /* 0x270192D6: mov dword ptr [edx + 8], ecx */ 1848 goto L_270192DD; /* 0x270192D9: jmp 0x270192dd */ 1849 L_270192DB: 1850 MEM32(edx) = ecx; /* 0x270192DB: mov dword ptr [edx], ecx */ 1851 L_270192DD: 1852 MEM32(ecx + 0x8) = eax; /* 0x270192DD: mov dword ptr [ecx + 8], eax */ 1853 MEM32(eax + 0x4) = ecx; /* 0x270192E0: mov dword ptr [eax + 4], ecx */ 1854 L_270192E3: 1855 ecx = MEM32(eax + 0x4); /* 0x270192E3: mov ecx, dword ptr [eax + 4] */ 1856 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270192E6: mov byte ptr [ecx + 0x10], bl */ 1857 edx = MEM32(eax + 0x4); /* 0x270192E9: mov edx, dword ptr [eax + 4] */ 1858 ecx = MEM32(edx + 0x4); /* 0x270192EC: mov ecx, dword ptr [edx + 4] */ 1859 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x270192EF: mov byte ptr [ecx + 0x10], 0 */ 1860 edx = MEM32(eax + 0x4); /* 0x270192F3: mov edx, dword ptr [eax + 4] */ 1861 ecx = MEM32(edx + 0x4); /* 0x270192F6: mov ecx, dword ptr [edx + 4] */ 1862 edx = MEM32(ecx + 0x8); /* 0x270192F9: mov edx, dword ptr [ecx + 8] */ 1863 edi = MEM32(edx); /* 0x270192FC: mov edi, dword ptr [edx] */ 1864 MEM32(ecx + 0x8) = edi; /* 0x270192FE: mov dword ptr [ecx + 8], edi */ 1865 edi = MEM32(edx); /* 0x27019301: mov edi, dword ptr [edx] */ 1866 /* cmp edi, MEM32(esi + 0x8) */ /* 0x27019303: cmp edi, dword ptr [esi + 8] */ 1867 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1869 _flag_k = FK_CMP; 1870 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701930B; /* 0x27019306: je 0x2701930b */ 1871 L_27019308: 1872 MEM32(edi + 0x4) = ecx; /* 0x27019308: mov dword ptr [edi + 4], ecx */ 1873 L_2701930B: 1874 edi = MEM32(ecx + 0x4); /* 0x2701930B: mov edi, dword ptr [ecx + 4] */ 1875 MEM32(edx + 0x4) = edi; /* 0x2701930E: mov dword ptr [edx + 4], edi */ 1876 edi = MEM32(esi + 0x4); /* 0x27019311: mov edi, dword ptr [esi + 4] */ 1877 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x27019314: cmp ecx, dword ptr [edi + 4] */ 1878 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1880 _flag_k = FK_CMP; 1881 if (CMP_NE(_flag_a, _flag_b)) goto L_2701931E; /* 0x27019317: jne 0x2701931e */ 1882 L_27019319: 1883 MEM32(edi + 0x4) = edx; /* 0x27019319: mov dword ptr [edi + 4], edx */ 1884 goto L_2701932C; /* 0x2701931C: jmp 0x2701932c */ 1885 L_2701931E: 1886 edi = MEM32(ecx + 0x4); /* 0x2701931E: mov edi, dword ptr [ecx + 4] */ 1887 /* cmp ecx, MEM32(edi) */ /* 0x27019321: cmp ecx, dword ptr [edi] */ 1888 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1890 _flag_k = FK_CMP; 1891 if (CMP_NE(_flag_a, _flag_b)) goto L_27019329; /* 0x27019323: jne 0x27019329 */ 1892 L_27019325: 1893 MEM32(edi) = edx; /* 0x27019325: mov dword ptr [edi], edx */ 1894 goto L_2701932C; /* 0x27019327: jmp 0x2701932c */ 1895 L_27019329: 1896 MEM32(edi + 0x8) = edx; /* 0x27019329: mov dword ptr [edi + 8], edx */ 1897 L_2701932C: 1898 MEM32(edx) = ecx; /* 0x2701932C: mov dword ptr [edx], ecx */ 1899 L_2701932E: 1900 MEM32(ecx + 0x4) = edx; /* 0x2701932E: mov dword ptr [ecx + 4], edx */ 1901 L_27019331: 1902 ecx = MEM32(esi + 0x4); /* 0x27019331: mov ecx, dword ptr [esi + 4] */ 1903 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27019334: cmp eax, dword ptr [ecx + 4] */ 1904 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1906 _flag_k = FK_CMP; 1907 RECOMP_BACKEDGE(); 1908 if (CMP_NE(_flag_a, _flag_b)) goto L_270191BD; /* 0x27019337: jne 0x270191bd */ 1909 L_2701933D: 1910 edx = MEM32(esi + 0x4); /* 0x2701933D: mov edx, dword ptr [esi + 4] */ 1911 eax = MEM32(edx + 0x4); /* 0x27019340: mov eax, dword ptr [edx + 4] */ 1912 ecx = MEM32(ebp + (-0x4)); /* 0x27019343: mov ecx, dword ptr [ebp - 4] */ 1913 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019346: mov byte ptr [eax + 0x10], bl */ 1914 eax = MEM32(ebp + 0x8); /* 0x27019349: mov eax, dword ptr [ebp + 8] */ 1915 edi = POP32_VAL(esp); /* 0x2701934C: pop edi */ 1916 esi = POP32_VAL(esp); /* 0x2701934D: pop esi */ 1917 MEM32(eax) = ecx; /* 0x2701934E: mov dword ptr [eax], ecx */ 1918 ebx = POP32_VAL(esp); /* 0x27019350: pop ebx */ 1919 esp = ebp; /* 0x27019351: mov esp, ebp */ 1920 ebp = POP32_VAL(esp); /* 0x27019353: pop ebp */ 1921 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019354: ret 0x10 */ 1922 RECOMP_REGS_OUT(); 1923 } 1924 1925 void sub_270192DD(void) { 1926 int _fpu_cmp = 0; 1927 uint32_t _cf = 0; 1928 int _df = 1; 1929 uint32_t _flag_k = FK_NONE; 1930 uint32_t _flag_a = 0, _flag_b = 0; 1931 uint32_t _itail_tgt = 0; 1932 RECOMP_REGS_LOCALS 1933 RECOMP_ENTER(0x270192DDu); 1934 1935 goto L_270192DD; 1936 L_270191BD: 1937 ecx = MEM32(eax + 0x4); /* 0x270191BD: mov ecx, dword ptr [eax + 4] */ 1938 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x270191C0: mov dl, byte ptr [ecx + 0x10] */ 1939 /* test LO8(edx), LO8(edx) */ /* 0x270191C3: test dl, dl */ 1940 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1941 _cf = 0; 1942 _flag_k = FK_NARROW(FK_TEST, 24); 1943 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701933D; /* 0x270191C5: jne 0x2701933d */ 1944 L_270191CB: 1945 edi = MEM32(ecx + 0x4); /* 0x270191CB: mov edi, dword ptr [ecx + 4] */ 1946 edx = MEM32(edi); /* 0x270191CE: mov edx, dword ptr [edi] */ 1947 /* cmp ecx, edx */ /* 0x270191D0: cmp ecx, edx */ 1948 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1950 _flag_k = FK_CMP; 1951 if (CMP_NE(_flag_a, _flag_b)) goto L_27019299; /* 0x270191D2: jne 0x27019299 */ 1952 L_270191D8: 1953 edx = MEM32(edi + 0x8); /* 0x270191D8: mov edx, dword ptr [edi + 8] */ 1954 /* cmp MEM8(edx + 0x10), 0 */ /* 0x270191DB: cmp byte ptr [edx + 0x10], 0 */ 1955 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 1956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1957 _flag_k = FK_NARROW(FK_CMP, 24); 1958 if (CMP_NE(_flag_a, _flag_b)) goto L_270191FC; /* 0x270191DF: jne 0x270191fc */ 1959 L_270191E1: 1960 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E1: mov byte ptr [ecx + 0x10], bl */ 1961 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E4: mov byte ptr [edx + 0x10], bl */ 1962 ecx = MEM32(eax + 0x4); /* 0x270191E7: mov ecx, dword ptr [eax + 4] */ 1963 edx = MEM32(ecx + 0x4); /* 0x270191EA: mov edx, dword ptr [ecx + 4] */ 1964 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x270191ED: mov byte ptr [edx + 0x10], 0 */ 1965 eax = MEM32(eax + 0x4); /* 0x270191F1: mov eax, dword ptr [eax + 4] */ 1966 eax = MEM32(eax + 0x4); /* 0x270191F4: mov eax, dword ptr [eax + 4] */ 1967 goto L_27019331; /* 0x270191F7: jmp 0x27019331 */ 1968 L_270191FC: 1969 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270191FC: cmp eax, dword ptr [ecx + 8] */ 1970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1972 _flag_k = FK_CMP; 1973 if (CMP_NE(_flag_a, _flag_b)) goto L_2701923B; /* 0x270191FF: jne 0x2701923b */ 1974 L_27019201: 1975 eax = ecx; /* 0x27019201: mov eax, ecx */ 1976 ecx = MEM32(eax + 0x8); /* 0x27019203: mov ecx, dword ptr [eax + 8] */ 1977 edx = MEM32(ecx); /* 0x27019206: mov edx, dword ptr [ecx] */ 1978 MEM32(eax + 0x8) = edx; /* 0x27019208: mov dword ptr [eax + 8], edx */ 1979 edx = MEM32(ecx); /* 0x2701920B: mov edx, dword ptr [ecx] */ 1980 /* cmp edx, MEM32(esi + 0x8) */ /* 0x2701920D: cmp edx, dword ptr [esi + 8] */ 1981 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1983 _flag_k = FK_CMP; 1984 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019215; /* 0x27019210: je 0x27019215 */ 1985 L_27019212: 1986 MEM32(edx + 0x4) = eax; /* 0x27019212: mov dword ptr [edx + 4], eax */ 1987 L_27019215: 1988 edx = MEM32(eax + 0x4); /* 0x27019215: mov edx, dword ptr [eax + 4] */ 1989 MEM32(ecx + 0x4) = edx; /* 0x27019218: mov dword ptr [ecx + 4], edx */ 1990 edx = MEM32(esi + 0x4); /* 0x2701921B: mov edx, dword ptr [esi + 4] */ 1991 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701921E: cmp eax, dword ptr [edx + 4] */ 1992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1994 _flag_k = FK_CMP; 1995 if (CMP_NE(_flag_a, _flag_b)) goto L_27019228; /* 0x27019221: jne 0x27019228 */ 1996 L_27019223: 1997 MEM32(edx + 0x4) = ecx; /* 0x27019223: mov dword ptr [edx + 4], ecx */ 1998 goto L_27019236; /* 0x27019226: jmp 0x27019236 */ 1999 L_27019228: 2000 edx = MEM32(eax + 0x4); /* 0x27019228: mov edx, dword ptr [eax + 4] */ 2001 /* cmp eax, MEM32(edx) */ /* 0x2701922B: cmp eax, dword ptr [edx] */ 2002 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2004 _flag_k = FK_CMP; 2005 if (CMP_NE(_flag_a, _flag_b)) goto L_27019233; /* 0x2701922D: jne 0x27019233 */ 2006 L_2701922F: 2007 MEM32(edx) = ecx; /* 0x2701922F: mov dword ptr [edx], ecx */ 2008 goto L_27019236; /* 0x27019231: jmp 0x27019236 */ 2009 L_27019233: 2010 MEM32(edx + 0x8) = ecx; /* 0x27019233: mov dword ptr [edx + 8], ecx */ 2011 L_27019236: 2012 MEM32(ecx) = eax; /* 0x27019236: mov dword ptr [ecx], eax */ 2013 MEM32(eax + 0x4) = ecx; /* 0x27019238: mov dword ptr [eax + 4], ecx */ 2014 L_2701923B: 2015 ecx = MEM32(eax + 0x4); /* 0x2701923B: mov ecx, dword ptr [eax + 4] */ 2016 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701923E: mov byte ptr [ecx + 0x10], bl */ 2017 edx = MEM32(eax + 0x4); /* 0x27019241: mov edx, dword ptr [eax + 4] */ 2018 ecx = MEM32(edx + 0x4); /* 0x27019244: mov ecx, dword ptr [edx + 4] */ 2019 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019247: mov byte ptr [ecx + 0x10], 0 */ 2020 edx = MEM32(eax + 0x4); /* 0x2701924B: mov edx, dword ptr [eax + 4] */ 2021 ecx = MEM32(edx + 0x4); /* 0x2701924E: mov ecx, dword ptr [edx + 4] */ 2022 edx = MEM32(ecx); /* 0x27019251: mov edx, dword ptr [ecx] */ 2023 edi = MEM32(edx + 0x8); /* 0x27019253: mov edi, dword ptr [edx + 8] */ 2024 MEM32(ecx) = edi; /* 0x27019256: mov dword ptr [ecx], edi */ 2025 edi = MEM32(edx + 0x8); /* 0x27019258: mov edi, dword ptr [edx + 8] */ 2026 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701925B: cmp edi, dword ptr [esi + 8] */ 2027 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2029 _flag_k = FK_CMP; 2030 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019263; /* 0x2701925E: je 0x27019263 */ 2031 L_27019260: 2032 MEM32(edi + 0x4) = ecx; /* 0x27019260: mov dword ptr [edi + 4], ecx */ 2033 L_27019263: 2034 edi = MEM32(ecx + 0x4); /* 0x27019263: mov edi, dword ptr [ecx + 4] */ 2035 MEM32(edx + 0x4) = edi; /* 0x27019266: mov dword ptr [edx + 4], edi */ 2036 edi = MEM32(esi + 0x4); /* 0x27019269: mov edi, dword ptr [esi + 4] */ 2037 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701926C: cmp ecx, dword ptr [edi + 4] */ 2038 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2040 _flag_k = FK_CMP; 2041 if (CMP_NE(_flag_a, _flag_b)) goto L_2701927C; /* 0x2701926F: jne 0x2701927c */ 2042 L_27019271: 2043 MEM32(edi + 0x4) = edx; /* 0x27019271: mov dword ptr [edi + 4], edx */ 2044 MEM32(edx + 0x8) = ecx; /* 0x27019274: mov dword ptr [edx + 8], ecx */ 2045 goto L_2701932E; /* 0x27019277: jmp 0x2701932e */ 2046 L_2701927C: 2047 edi = MEM32(ecx + 0x4); /* 0x2701927C: mov edi, dword ptr [ecx + 4] */ 2048 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701927F: cmp ecx, dword ptr [edi + 8] */ 2049 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2051 _flag_k = FK_CMP; 2052 if (CMP_NE(_flag_a, _flag_b)) goto L_2701928F; /* 0x27019282: jne 0x2701928f */ 2053 L_27019284: 2054 MEM32(edi + 0x8) = edx; /* 0x27019284: mov dword ptr [edi + 8], edx */ 2055 MEM32(edx + 0x8) = ecx; /* 0x27019287: mov dword ptr [edx + 8], ecx */ 2056 goto L_2701932E; /* 0x2701928A: jmp 0x2701932e */ 2057 L_2701928F: 2058 MEM32(edi) = edx; /* 0x2701928F: mov dword ptr [edi], edx */ 2059 MEM32(edx + 0x8) = ecx; /* 0x27019291: mov dword ptr [edx + 8], ecx */ 2060 goto L_2701932E; /* 0x27019294: jmp 0x2701932e */ 2061 L_27019299: 2062 /* cmp MEM8(edx + 0x10), 0 */ /* 0x27019299: cmp byte ptr [edx + 0x10], 0 */ 2063 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 2064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2065 _flag_k = FK_NARROW(FK_CMP, 24); 2066 RECOMP_BACKEDGE(); 2067 if (CMP_EQ(_flag_a, _flag_b)) goto L_270191E1; /* 0x2701929D: je 0x270191e1 */ 2068 L_270192A3: 2069 /* cmp eax, MEM32(ecx) */ /* 0x270192A3: cmp eax, dword ptr [ecx] */ 2070 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2072 _flag_k = FK_CMP; 2073 if (CMP_NE(_flag_a, _flag_b)) goto L_270192E3; /* 0x270192A5: jne 0x270192e3 */ 2074 L_270192A7: 2075 eax = ecx; /* 0x270192A7: mov eax, ecx */ 2076 ecx = MEM32(eax); /* 0x270192A9: mov ecx, dword ptr [eax] */ 2077 edx = MEM32(ecx + 0x8); /* 0x270192AB: mov edx, dword ptr [ecx + 8] */ 2078 MEM32(eax) = edx; /* 0x270192AE: mov dword ptr [eax], edx */ 2079 edx = MEM32(ecx + 0x8); /* 0x270192B0: mov edx, dword ptr [ecx + 8] */ 2080 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270192B3: cmp edx, dword ptr [esi + 8] */ 2081 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2083 _flag_k = FK_CMP; 2084 if (CMP_EQ(_flag_a, _flag_b)) goto L_270192BB; /* 0x270192B6: je 0x270192bb */ 2085 L_270192B8: 2086 MEM32(edx + 0x4) = eax; /* 0x270192B8: mov dword ptr [edx + 4], eax */ 2087 L_270192BB: 2088 edx = MEM32(eax + 0x4); /* 0x270192BB: mov edx, dword ptr [eax + 4] */ 2089 MEM32(ecx + 0x4) = edx; /* 0x270192BE: mov dword ptr [ecx + 4], edx */ 2090 edx = MEM32(esi + 0x4); /* 0x270192C1: mov edx, dword ptr [esi + 4] */ 2091 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270192C4: cmp eax, dword ptr [edx + 4] */ 2092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2094 _flag_k = FK_CMP; 2095 if (CMP_NE(_flag_a, _flag_b)) goto L_270192CE; /* 0x270192C7: jne 0x270192ce */ 2096 L_270192C9: 2097 MEM32(edx + 0x4) = ecx; /* 0x270192C9: mov dword ptr [edx + 4], ecx */ 2098 goto L_270192DD; /* 0x270192CC: jmp 0x270192dd */ 2099 L_270192CE: 2100 edx = MEM32(eax + 0x4); /* 0x270192CE: mov edx, dword ptr [eax + 4] */ 2101 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270192D1: cmp eax, dword ptr [edx + 8] */ 2102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2104 _flag_k = FK_CMP; 2105 if (CMP_NE(_flag_a, _flag_b)) goto L_270192DB; /* 0x270192D4: jne 0x270192db */ 2106 L_270192D6: 2107 MEM32(edx + 0x8) = ecx; /* 0x270192D6: mov dword ptr [edx + 8], ecx */ 2108 goto L_270192DD; /* 0x270192D9: jmp 0x270192dd */ 2109 L_270192DB: 2110 MEM32(edx) = ecx; /* 0x270192DB: mov dword ptr [edx], ecx */ 2111 L_270192DD: 2112 MEM32(ecx + 0x8) = eax; /* 0x270192DD: mov dword ptr [ecx + 8], eax */ 2113 MEM32(eax + 0x4) = ecx; /* 0x270192E0: mov dword ptr [eax + 4], ecx */ 2114 L_270192E3: 2115 ecx = MEM32(eax + 0x4); /* 0x270192E3: mov ecx, dword ptr [eax + 4] */ 2116 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270192E6: mov byte ptr [ecx + 0x10], bl */ 2117 edx = MEM32(eax + 0x4); /* 0x270192E9: mov edx, dword ptr [eax + 4] */ 2118 ecx = MEM32(edx + 0x4); /* 0x270192EC: mov ecx, dword ptr [edx + 4] */ 2119 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x270192EF: mov byte ptr [ecx + 0x10], 0 */ 2120 edx = MEM32(eax + 0x4); /* 0x270192F3: mov edx, dword ptr [eax + 4] */ 2121 ecx = MEM32(edx + 0x4); /* 0x270192F6: mov ecx, dword ptr [edx + 4] */ 2122 edx = MEM32(ecx + 0x8); /* 0x270192F9: mov edx, dword ptr [ecx + 8] */ 2123 edi = MEM32(edx); /* 0x270192FC: mov edi, dword ptr [edx] */ 2124 MEM32(ecx + 0x8) = edi; /* 0x270192FE: mov dword ptr [ecx + 8], edi */ 2125 edi = MEM32(edx); /* 0x27019301: mov edi, dword ptr [edx] */ 2126 /* cmp edi, MEM32(esi + 0x8) */ /* 0x27019303: cmp edi, dword ptr [esi + 8] */ 2127 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2129 _flag_k = FK_CMP; 2130 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701930B; /* 0x27019306: je 0x2701930b */ 2131 L_27019308: 2132 MEM32(edi + 0x4) = ecx; /* 0x27019308: mov dword ptr [edi + 4], ecx */ 2133 L_2701930B: 2134 edi = MEM32(ecx + 0x4); /* 0x2701930B: mov edi, dword ptr [ecx + 4] */ 2135 MEM32(edx + 0x4) = edi; /* 0x2701930E: mov dword ptr [edx + 4], edi */ 2136 edi = MEM32(esi + 0x4); /* 0x27019311: mov edi, dword ptr [esi + 4] */ 2137 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x27019314: cmp ecx, dword ptr [edi + 4] */ 2138 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2140 _flag_k = FK_CMP; 2141 if (CMP_NE(_flag_a, _flag_b)) goto L_2701931E; /* 0x27019317: jne 0x2701931e */ 2142 L_27019319: 2143 MEM32(edi + 0x4) = edx; /* 0x27019319: mov dword ptr [edi + 4], edx */ 2144 goto L_2701932C; /* 0x2701931C: jmp 0x2701932c */ 2145 L_2701931E: 2146 edi = MEM32(ecx + 0x4); /* 0x2701931E: mov edi, dword ptr [ecx + 4] */ 2147 /* cmp ecx, MEM32(edi) */ /* 0x27019321: cmp ecx, dword ptr [edi] */ 2148 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2150 _flag_k = FK_CMP; 2151 if (CMP_NE(_flag_a, _flag_b)) goto L_27019329; /* 0x27019323: jne 0x27019329 */ 2152 L_27019325: 2153 MEM32(edi) = edx; /* 0x27019325: mov dword ptr [edi], edx */ 2154 goto L_2701932C; /* 0x27019327: jmp 0x2701932c */ 2155 L_27019329: 2156 MEM32(edi + 0x8) = edx; /* 0x27019329: mov dword ptr [edi + 8], edx */ 2157 L_2701932C: 2158 MEM32(edx) = ecx; /* 0x2701932C: mov dword ptr [edx], ecx */ 2159 L_2701932E: 2160 MEM32(ecx + 0x4) = edx; /* 0x2701932E: mov dword ptr [ecx + 4], edx */ 2161 L_27019331: 2162 ecx = MEM32(esi + 0x4); /* 0x27019331: mov ecx, dword ptr [esi + 4] */ 2163 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27019334: cmp eax, dword ptr [ecx + 4] */ 2164 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2166 _flag_k = FK_CMP; 2167 RECOMP_BACKEDGE(); 2168 if (CMP_NE(_flag_a, _flag_b)) goto L_270191BD; /* 0x27019337: jne 0x270191bd */ 2169 L_2701933D: 2170 edx = MEM32(esi + 0x4); /* 0x2701933D: mov edx, dword ptr [esi + 4] */ 2171 eax = MEM32(edx + 0x4); /* 0x27019340: mov eax, dword ptr [edx + 4] */ 2172 ecx = MEM32(ebp + (-0x4)); /* 0x27019343: mov ecx, dword ptr [ebp - 4] */ 2173 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019346: mov byte ptr [eax + 0x10], bl */ 2174 eax = MEM32(ebp + 0x8); /* 0x27019349: mov eax, dword ptr [ebp + 8] */ 2175 edi = POP32_VAL(esp); /* 0x2701934C: pop edi */ 2176 esi = POP32_VAL(esp); /* 0x2701934D: pop esi */ 2177 MEM32(eax) = ecx; /* 0x2701934E: mov dword ptr [eax], ecx */ 2178 ebx = POP32_VAL(esp); /* 0x27019350: pop ebx */ 2179 esp = ebp; /* 0x27019351: mov esp, ebp */ 2180 ebp = POP32_VAL(esp); /* 0x27019353: pop ebp */ 2181 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019354: ret 0x10 */ 2182 RECOMP_REGS_OUT(); 2183 } 2184 2185 void sub_270192E3(void) { 2186 int _fpu_cmp = 0; 2187 uint32_t _cf = 0; 2188 int _df = 1; 2189 uint32_t _flag_k = FK_NONE; 2190 uint32_t _flag_a = 0, _flag_b = 0; 2191 uint32_t _itail_tgt = 0; 2192 RECOMP_REGS_LOCALS 2193 RECOMP_ENTER(0x270192E3u); 2194 2195 goto L_270192E3; 2196 L_270191BD: 2197 ecx = MEM32(eax + 0x4); /* 0x270191BD: mov ecx, dword ptr [eax + 4] */ 2198 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x270191C0: mov dl, byte ptr [ecx + 0x10] */ 2199 /* test LO8(edx), LO8(edx) */ /* 0x270191C3: test dl, dl */ 2200 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2201 _cf = 0; 2202 _flag_k = FK_NARROW(FK_TEST, 24); 2203 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701933D; /* 0x270191C5: jne 0x2701933d */ 2204 L_270191CB: 2205 edi = MEM32(ecx + 0x4); /* 0x270191CB: mov edi, dword ptr [ecx + 4] */ 2206 edx = MEM32(edi); /* 0x270191CE: mov edx, dword ptr [edi] */ 2207 /* cmp ecx, edx */ /* 0x270191D0: cmp ecx, edx */ 2208 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2210 _flag_k = FK_CMP; 2211 if (CMP_NE(_flag_a, _flag_b)) goto L_27019299; /* 0x270191D2: jne 0x27019299 */ 2212 L_270191D8: 2213 edx = MEM32(edi + 0x8); /* 0x270191D8: mov edx, dword ptr [edi + 8] */ 2214 /* cmp MEM8(edx + 0x10), 0 */ /* 0x270191DB: cmp byte ptr [edx + 0x10], 0 */ 2215 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 2216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2217 _flag_k = FK_NARROW(FK_CMP, 24); 2218 if (CMP_NE(_flag_a, _flag_b)) goto L_270191FC; /* 0x270191DF: jne 0x270191fc */ 2219 L_270191E1: 2220 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E1: mov byte ptr [ecx + 0x10], bl */ 2221 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E4: mov byte ptr [edx + 0x10], bl */ 2222 ecx = MEM32(eax + 0x4); /* 0x270191E7: mov ecx, dword ptr [eax + 4] */ 2223 edx = MEM32(ecx + 0x4); /* 0x270191EA: mov edx, dword ptr [ecx + 4] */ 2224 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x270191ED: mov byte ptr [edx + 0x10], 0 */ 2225 eax = MEM32(eax + 0x4); /* 0x270191F1: mov eax, dword ptr [eax + 4] */ 2226 eax = MEM32(eax + 0x4); /* 0x270191F4: mov eax, dword ptr [eax + 4] */ 2227 goto L_27019331; /* 0x270191F7: jmp 0x27019331 */ 2228 L_270191FC: 2229 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270191FC: cmp eax, dword ptr [ecx + 8] */ 2230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2232 _flag_k = FK_CMP; 2233 if (CMP_NE(_flag_a, _flag_b)) goto L_2701923B; /* 0x270191FF: jne 0x2701923b */ 2234 L_27019201: 2235 eax = ecx; /* 0x27019201: mov eax, ecx */ 2236 ecx = MEM32(eax + 0x8); /* 0x27019203: mov ecx, dword ptr [eax + 8] */ 2237 edx = MEM32(ecx); /* 0x27019206: mov edx, dword ptr [ecx] */ 2238 MEM32(eax + 0x8) = edx; /* 0x27019208: mov dword ptr [eax + 8], edx */ 2239 edx = MEM32(ecx); /* 0x2701920B: mov edx, dword ptr [ecx] */ 2240 /* cmp edx, MEM32(esi + 0x8) */ /* 0x2701920D: cmp edx, dword ptr [esi + 8] */ 2241 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2243 _flag_k = FK_CMP; 2244 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019215; /* 0x27019210: je 0x27019215 */ 2245 L_27019212: 2246 MEM32(edx + 0x4) = eax; /* 0x27019212: mov dword ptr [edx + 4], eax */ 2247 L_27019215: 2248 edx = MEM32(eax + 0x4); /* 0x27019215: mov edx, dword ptr [eax + 4] */ 2249 MEM32(ecx + 0x4) = edx; /* 0x27019218: mov dword ptr [ecx + 4], edx */ 2250 edx = MEM32(esi + 0x4); /* 0x2701921B: mov edx, dword ptr [esi + 4] */ 2251 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701921E: cmp eax, dword ptr [edx + 4] */ 2252 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2254 _flag_k = FK_CMP; 2255 if (CMP_NE(_flag_a, _flag_b)) goto L_27019228; /* 0x27019221: jne 0x27019228 */ 2256 L_27019223: 2257 MEM32(edx + 0x4) = ecx; /* 0x27019223: mov dword ptr [edx + 4], ecx */ 2258 goto L_27019236; /* 0x27019226: jmp 0x27019236 */ 2259 L_27019228: 2260 edx = MEM32(eax + 0x4); /* 0x27019228: mov edx, dword ptr [eax + 4] */ 2261 /* cmp eax, MEM32(edx) */ /* 0x2701922B: cmp eax, dword ptr [edx] */ 2262 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2264 _flag_k = FK_CMP; 2265 if (CMP_NE(_flag_a, _flag_b)) goto L_27019233; /* 0x2701922D: jne 0x27019233 */ 2266 L_2701922F: 2267 MEM32(edx) = ecx; /* 0x2701922F: mov dword ptr [edx], ecx */ 2268 goto L_27019236; /* 0x27019231: jmp 0x27019236 */ 2269 L_27019233: 2270 MEM32(edx + 0x8) = ecx; /* 0x27019233: mov dword ptr [edx + 8], ecx */ 2271 L_27019236: 2272 MEM32(ecx) = eax; /* 0x27019236: mov dword ptr [ecx], eax */ 2273 MEM32(eax + 0x4) = ecx; /* 0x27019238: mov dword ptr [eax + 4], ecx */ 2274 L_2701923B: 2275 ecx = MEM32(eax + 0x4); /* 0x2701923B: mov ecx, dword ptr [eax + 4] */ 2276 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701923E: mov byte ptr [ecx + 0x10], bl */ 2277 edx = MEM32(eax + 0x4); /* 0x27019241: mov edx, dword ptr [eax + 4] */ 2278 ecx = MEM32(edx + 0x4); /* 0x27019244: mov ecx, dword ptr [edx + 4] */ 2279 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019247: mov byte ptr [ecx + 0x10], 0 */ 2280 edx = MEM32(eax + 0x4); /* 0x2701924B: mov edx, dword ptr [eax + 4] */ 2281 ecx = MEM32(edx + 0x4); /* 0x2701924E: mov ecx, dword ptr [edx + 4] */ 2282 edx = MEM32(ecx); /* 0x27019251: mov edx, dword ptr [ecx] */ 2283 edi = MEM32(edx + 0x8); /* 0x27019253: mov edi, dword ptr [edx + 8] */ 2284 MEM32(ecx) = edi; /* 0x27019256: mov dword ptr [ecx], edi */ 2285 edi = MEM32(edx + 0x8); /* 0x27019258: mov edi, dword ptr [edx + 8] */ 2286 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701925B: cmp edi, dword ptr [esi + 8] */ 2287 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2289 _flag_k = FK_CMP; 2290 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019263; /* 0x2701925E: je 0x27019263 */ 2291 L_27019260: 2292 MEM32(edi + 0x4) = ecx; /* 0x27019260: mov dword ptr [edi + 4], ecx */ 2293 L_27019263: 2294 edi = MEM32(ecx + 0x4); /* 0x27019263: mov edi, dword ptr [ecx + 4] */ 2295 MEM32(edx + 0x4) = edi; /* 0x27019266: mov dword ptr [edx + 4], edi */ 2296 edi = MEM32(esi + 0x4); /* 0x27019269: mov edi, dword ptr [esi + 4] */ 2297 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701926C: cmp ecx, dword ptr [edi + 4] */ 2298 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2300 _flag_k = FK_CMP; 2301 if (CMP_NE(_flag_a, _flag_b)) goto L_2701927C; /* 0x2701926F: jne 0x2701927c */ 2302 L_27019271: 2303 MEM32(edi + 0x4) = edx; /* 0x27019271: mov dword ptr [edi + 4], edx */ 2304 MEM32(edx + 0x8) = ecx; /* 0x27019274: mov dword ptr [edx + 8], ecx */ 2305 goto L_2701932E; /* 0x27019277: jmp 0x2701932e */ 2306 L_2701927C: 2307 edi = MEM32(ecx + 0x4); /* 0x2701927C: mov edi, dword ptr [ecx + 4] */ 2308 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701927F: cmp ecx, dword ptr [edi + 8] */ 2309 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2311 _flag_k = FK_CMP; 2312 if (CMP_NE(_flag_a, _flag_b)) goto L_2701928F; /* 0x27019282: jne 0x2701928f */ 2313 L_27019284: 2314 MEM32(edi + 0x8) = edx; /* 0x27019284: mov dword ptr [edi + 8], edx */ 2315 MEM32(edx + 0x8) = ecx; /* 0x27019287: mov dword ptr [edx + 8], ecx */ 2316 goto L_2701932E; /* 0x2701928A: jmp 0x2701932e */ 2317 L_2701928F: 2318 MEM32(edi) = edx; /* 0x2701928F: mov dword ptr [edi], edx */ 2319 MEM32(edx + 0x8) = ecx; /* 0x27019291: mov dword ptr [edx + 8], ecx */ 2320 goto L_2701932E; /* 0x27019294: jmp 0x2701932e */ 2321 L_27019299: 2322 /* cmp MEM8(edx + 0x10), 0 */ /* 0x27019299: cmp byte ptr [edx + 0x10], 0 */ 2323 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 2324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2325 _flag_k = FK_NARROW(FK_CMP, 24); 2326 RECOMP_BACKEDGE(); 2327 if (CMP_EQ(_flag_a, _flag_b)) goto L_270191E1; /* 0x2701929D: je 0x270191e1 */ 2328 L_270192A3: 2329 /* cmp eax, MEM32(ecx) */ /* 0x270192A3: cmp eax, dword ptr [ecx] */ 2330 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2332 _flag_k = FK_CMP; 2333 if (CMP_NE(_flag_a, _flag_b)) goto L_270192E3; /* 0x270192A5: jne 0x270192e3 */ 2334 L_270192A7: 2335 eax = ecx; /* 0x270192A7: mov eax, ecx */ 2336 ecx = MEM32(eax); /* 0x270192A9: mov ecx, dword ptr [eax] */ 2337 edx = MEM32(ecx + 0x8); /* 0x270192AB: mov edx, dword ptr [ecx + 8] */ 2338 MEM32(eax) = edx; /* 0x270192AE: mov dword ptr [eax], edx */ 2339 edx = MEM32(ecx + 0x8); /* 0x270192B0: mov edx, dword ptr [ecx + 8] */ 2340 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270192B3: cmp edx, dword ptr [esi + 8] */ 2341 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2343 _flag_k = FK_CMP; 2344 if (CMP_EQ(_flag_a, _flag_b)) goto L_270192BB; /* 0x270192B6: je 0x270192bb */ 2345 L_270192B8: 2346 MEM32(edx + 0x4) = eax; /* 0x270192B8: mov dword ptr [edx + 4], eax */ 2347 L_270192BB: 2348 edx = MEM32(eax + 0x4); /* 0x270192BB: mov edx, dword ptr [eax + 4] */ 2349 MEM32(ecx + 0x4) = edx; /* 0x270192BE: mov dword ptr [ecx + 4], edx */ 2350 edx = MEM32(esi + 0x4); /* 0x270192C1: mov edx, dword ptr [esi + 4] */ 2351 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270192C4: cmp eax, dword ptr [edx + 4] */ 2352 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2354 _flag_k = FK_CMP; 2355 if (CMP_NE(_flag_a, _flag_b)) goto L_270192CE; /* 0x270192C7: jne 0x270192ce */ 2356 L_270192C9: 2357 MEM32(edx + 0x4) = ecx; /* 0x270192C9: mov dword ptr [edx + 4], ecx */ 2358 goto L_270192DD; /* 0x270192CC: jmp 0x270192dd */ 2359 L_270192CE: 2360 edx = MEM32(eax + 0x4); /* 0x270192CE: mov edx, dword ptr [eax + 4] */ 2361 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270192D1: cmp eax, dword ptr [edx + 8] */ 2362 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2364 _flag_k = FK_CMP; 2365 if (CMP_NE(_flag_a, _flag_b)) goto L_270192DB; /* 0x270192D4: jne 0x270192db */ 2366 L_270192D6: 2367 MEM32(edx + 0x8) = ecx; /* 0x270192D6: mov dword ptr [edx + 8], ecx */ 2368 goto L_270192DD; /* 0x270192D9: jmp 0x270192dd */ 2369 L_270192DB: 2370 MEM32(edx) = ecx; /* 0x270192DB: mov dword ptr [edx], ecx */ 2371 L_270192DD: 2372 MEM32(ecx + 0x8) = eax; /* 0x270192DD: mov dword ptr [ecx + 8], eax */ 2373 MEM32(eax + 0x4) = ecx; /* 0x270192E0: mov dword ptr [eax + 4], ecx */ 2374 L_270192E3: 2375 ecx = MEM32(eax + 0x4); /* 0x270192E3: mov ecx, dword ptr [eax + 4] */ 2376 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270192E6: mov byte ptr [ecx + 0x10], bl */ 2377 edx = MEM32(eax + 0x4); /* 0x270192E9: mov edx, dword ptr [eax + 4] */ 2378 ecx = MEM32(edx + 0x4); /* 0x270192EC: mov ecx, dword ptr [edx + 4] */ 2379 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x270192EF: mov byte ptr [ecx + 0x10], 0 */ 2380 edx = MEM32(eax + 0x4); /* 0x270192F3: mov edx, dword ptr [eax + 4] */ 2381 ecx = MEM32(edx + 0x4); /* 0x270192F6: mov ecx, dword ptr [edx + 4] */ 2382 edx = MEM32(ecx + 0x8); /* 0x270192F9: mov edx, dword ptr [ecx + 8] */ 2383 edi = MEM32(edx); /* 0x270192FC: mov edi, dword ptr [edx] */ 2384 MEM32(ecx + 0x8) = edi; /* 0x270192FE: mov dword ptr [ecx + 8], edi */ 2385 edi = MEM32(edx); /* 0x27019301: mov edi, dword ptr [edx] */ 2386 /* cmp edi, MEM32(esi + 0x8) */ /* 0x27019303: cmp edi, dword ptr [esi + 8] */ 2387 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2389 _flag_k = FK_CMP; 2390 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701930B; /* 0x27019306: je 0x2701930b */ 2391 L_27019308: 2392 MEM32(edi + 0x4) = ecx; /* 0x27019308: mov dword ptr [edi + 4], ecx */ 2393 L_2701930B: 2394 edi = MEM32(ecx + 0x4); /* 0x2701930B: mov edi, dword ptr [ecx + 4] */ 2395 MEM32(edx + 0x4) = edi; /* 0x2701930E: mov dword ptr [edx + 4], edi */ 2396 edi = MEM32(esi + 0x4); /* 0x27019311: mov edi, dword ptr [esi + 4] */ 2397 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x27019314: cmp ecx, dword ptr [edi + 4] */ 2398 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2400 _flag_k = FK_CMP; 2401 if (CMP_NE(_flag_a, _flag_b)) goto L_2701931E; /* 0x27019317: jne 0x2701931e */ 2402 L_27019319: 2403 MEM32(edi + 0x4) = edx; /* 0x27019319: mov dword ptr [edi + 4], edx */ 2404 goto L_2701932C; /* 0x2701931C: jmp 0x2701932c */ 2405 L_2701931E: 2406 edi = MEM32(ecx + 0x4); /* 0x2701931E: mov edi, dword ptr [ecx + 4] */ 2407 /* cmp ecx, MEM32(edi) */ /* 0x27019321: cmp ecx, dword ptr [edi] */ 2408 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2409 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2410 _flag_k = FK_CMP; 2411 if (CMP_NE(_flag_a, _flag_b)) goto L_27019329; /* 0x27019323: jne 0x27019329 */ 2412 L_27019325: 2413 MEM32(edi) = edx; /* 0x27019325: mov dword ptr [edi], edx */ 2414 goto L_2701932C; /* 0x27019327: jmp 0x2701932c */ 2415 L_27019329: 2416 MEM32(edi + 0x8) = edx; /* 0x27019329: mov dword ptr [edi + 8], edx */ 2417 L_2701932C: 2418 MEM32(edx) = ecx; /* 0x2701932C: mov dword ptr [edx], ecx */ 2419 L_2701932E: 2420 MEM32(ecx + 0x4) = edx; /* 0x2701932E: mov dword ptr [ecx + 4], edx */ 2421 L_27019331: 2422 ecx = MEM32(esi + 0x4); /* 0x27019331: mov ecx, dword ptr [esi + 4] */ 2423 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27019334: cmp eax, dword ptr [ecx + 4] */ 2424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2426 _flag_k = FK_CMP; 2427 RECOMP_BACKEDGE(); 2428 if (CMP_NE(_flag_a, _flag_b)) goto L_270191BD; /* 0x27019337: jne 0x270191bd */ 2429 L_2701933D: 2430 edx = MEM32(esi + 0x4); /* 0x2701933D: mov edx, dword ptr [esi + 4] */ 2431 eax = MEM32(edx + 0x4); /* 0x27019340: mov eax, dword ptr [edx + 4] */ 2432 ecx = MEM32(ebp + (-0x4)); /* 0x27019343: mov ecx, dword ptr [ebp - 4] */ 2433 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019346: mov byte ptr [eax + 0x10], bl */ 2434 eax = MEM32(ebp + 0x8); /* 0x27019349: mov eax, dword ptr [ebp + 8] */ 2435 edi = POP32_VAL(esp); /* 0x2701934C: pop edi */ 2436 esi = POP32_VAL(esp); /* 0x2701934D: pop esi */ 2437 MEM32(eax) = ecx; /* 0x2701934E: mov dword ptr [eax], ecx */ 2438 ebx = POP32_VAL(esp); /* 0x27019350: pop ebx */ 2439 esp = ebp; /* 0x27019351: mov esp, ebp */ 2440 ebp = POP32_VAL(esp); /* 0x27019353: pop ebp */ 2441 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019354: ret 0x10 */ 2442 RECOMP_REGS_OUT(); 2443 } 2444 2445 void sub_2701932C(void) { 2446 int _fpu_cmp = 0; 2447 uint32_t _cf = 0; 2448 int _df = 1; 2449 uint32_t _flag_k = FK_NONE; 2450 uint32_t _flag_a = 0, _flag_b = 0; 2451 uint32_t _itail_tgt = 0; 2452 RECOMP_REGS_LOCALS 2453 RECOMP_ENTER(0x2701932Cu); 2454 2455 goto L_2701932C; 2456 L_270191BD: 2457 ecx = MEM32(eax + 0x4); /* 0x270191BD: mov ecx, dword ptr [eax + 4] */ 2458 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x270191C0: mov dl, byte ptr [ecx + 0x10] */ 2459 /* test LO8(edx), LO8(edx) */ /* 0x270191C3: test dl, dl */ 2460 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2461 _cf = 0; 2462 _flag_k = FK_NARROW(FK_TEST, 24); 2463 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701933D; /* 0x270191C5: jne 0x2701933d */ 2464 L_270191CB: 2465 edi = MEM32(ecx + 0x4); /* 0x270191CB: mov edi, dword ptr [ecx + 4] */ 2466 edx = MEM32(edi); /* 0x270191CE: mov edx, dword ptr [edi] */ 2467 /* cmp ecx, edx */ /* 0x270191D0: cmp ecx, edx */ 2468 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2470 _flag_k = FK_CMP; 2471 if (CMP_NE(_flag_a, _flag_b)) goto L_27019299; /* 0x270191D2: jne 0x27019299 */ 2472 L_270191D8: 2473 edx = MEM32(edi + 0x8); /* 0x270191D8: mov edx, dword ptr [edi + 8] */ 2474 /* cmp MEM8(edx + 0x10), 0 */ /* 0x270191DB: cmp byte ptr [edx + 0x10], 0 */ 2475 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 2476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2477 _flag_k = FK_NARROW(FK_CMP, 24); 2478 if (CMP_NE(_flag_a, _flag_b)) goto L_270191FC; /* 0x270191DF: jne 0x270191fc */ 2479 L_270191E1: 2480 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E1: mov byte ptr [ecx + 0x10], bl */ 2481 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E4: mov byte ptr [edx + 0x10], bl */ 2482 ecx = MEM32(eax + 0x4); /* 0x270191E7: mov ecx, dword ptr [eax + 4] */ 2483 edx = MEM32(ecx + 0x4); /* 0x270191EA: mov edx, dword ptr [ecx + 4] */ 2484 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x270191ED: mov byte ptr [edx + 0x10], 0 */ 2485 eax = MEM32(eax + 0x4); /* 0x270191F1: mov eax, dword ptr [eax + 4] */ 2486 eax = MEM32(eax + 0x4); /* 0x270191F4: mov eax, dword ptr [eax + 4] */ 2487 goto L_27019331; /* 0x270191F7: jmp 0x27019331 */ 2488 L_270191FC: 2489 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270191FC: cmp eax, dword ptr [ecx + 8] */ 2490 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2492 _flag_k = FK_CMP; 2493 if (CMP_NE(_flag_a, _flag_b)) goto L_2701923B; /* 0x270191FF: jne 0x2701923b */ 2494 L_27019201: 2495 eax = ecx; /* 0x27019201: mov eax, ecx */ 2496 ecx = MEM32(eax + 0x8); /* 0x27019203: mov ecx, dword ptr [eax + 8] */ 2497 edx = MEM32(ecx); /* 0x27019206: mov edx, dword ptr [ecx] */ 2498 MEM32(eax + 0x8) = edx; /* 0x27019208: mov dword ptr [eax + 8], edx */ 2499 edx = MEM32(ecx); /* 0x2701920B: mov edx, dword ptr [ecx] */ 2500 /* cmp edx, MEM32(esi + 0x8) */ /* 0x2701920D: cmp edx, dword ptr [esi + 8] */ 2501 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2503 _flag_k = FK_CMP; 2504 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019215; /* 0x27019210: je 0x27019215 */ 2505 L_27019212: 2506 MEM32(edx + 0x4) = eax; /* 0x27019212: mov dword ptr [edx + 4], eax */ 2507 L_27019215: 2508 edx = MEM32(eax + 0x4); /* 0x27019215: mov edx, dword ptr [eax + 4] */ 2509 MEM32(ecx + 0x4) = edx; /* 0x27019218: mov dword ptr [ecx + 4], edx */ 2510 edx = MEM32(esi + 0x4); /* 0x2701921B: mov edx, dword ptr [esi + 4] */ 2511 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701921E: cmp eax, dword ptr [edx + 4] */ 2512 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2514 _flag_k = FK_CMP; 2515 if (CMP_NE(_flag_a, _flag_b)) goto L_27019228; /* 0x27019221: jne 0x27019228 */ 2516 L_27019223: 2517 MEM32(edx + 0x4) = ecx; /* 0x27019223: mov dword ptr [edx + 4], ecx */ 2518 goto L_27019236; /* 0x27019226: jmp 0x27019236 */ 2519 L_27019228: 2520 edx = MEM32(eax + 0x4); /* 0x27019228: mov edx, dword ptr [eax + 4] */ 2521 /* cmp eax, MEM32(edx) */ /* 0x2701922B: cmp eax, dword ptr [edx] */ 2522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2524 _flag_k = FK_CMP; 2525 if (CMP_NE(_flag_a, _flag_b)) goto L_27019233; /* 0x2701922D: jne 0x27019233 */ 2526 L_2701922F: 2527 MEM32(edx) = ecx; /* 0x2701922F: mov dword ptr [edx], ecx */ 2528 goto L_27019236; /* 0x27019231: jmp 0x27019236 */ 2529 L_27019233: 2530 MEM32(edx + 0x8) = ecx; /* 0x27019233: mov dword ptr [edx + 8], ecx */ 2531 L_27019236: 2532 MEM32(ecx) = eax; /* 0x27019236: mov dword ptr [ecx], eax */ 2533 MEM32(eax + 0x4) = ecx; /* 0x27019238: mov dword ptr [eax + 4], ecx */ 2534 L_2701923B: 2535 ecx = MEM32(eax + 0x4); /* 0x2701923B: mov ecx, dword ptr [eax + 4] */ 2536 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701923E: mov byte ptr [ecx + 0x10], bl */ 2537 edx = MEM32(eax + 0x4); /* 0x27019241: mov edx, dword ptr [eax + 4] */ 2538 ecx = MEM32(edx + 0x4); /* 0x27019244: mov ecx, dword ptr [edx + 4] */ 2539 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019247: mov byte ptr [ecx + 0x10], 0 */ 2540 edx = MEM32(eax + 0x4); /* 0x2701924B: mov edx, dword ptr [eax + 4] */ 2541 ecx = MEM32(edx + 0x4); /* 0x2701924E: mov ecx, dword ptr [edx + 4] */ 2542 edx = MEM32(ecx); /* 0x27019251: mov edx, dword ptr [ecx] */ 2543 edi = MEM32(edx + 0x8); /* 0x27019253: mov edi, dword ptr [edx + 8] */ 2544 MEM32(ecx) = edi; /* 0x27019256: mov dword ptr [ecx], edi */ 2545 edi = MEM32(edx + 0x8); /* 0x27019258: mov edi, dword ptr [edx + 8] */ 2546 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701925B: cmp edi, dword ptr [esi + 8] */ 2547 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2548 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2549 _flag_k = FK_CMP; 2550 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019263; /* 0x2701925E: je 0x27019263 */ 2551 L_27019260: 2552 MEM32(edi + 0x4) = ecx; /* 0x27019260: mov dword ptr [edi + 4], ecx */ 2553 L_27019263: 2554 edi = MEM32(ecx + 0x4); /* 0x27019263: mov edi, dword ptr [ecx + 4] */ 2555 MEM32(edx + 0x4) = edi; /* 0x27019266: mov dword ptr [edx + 4], edi */ 2556 edi = MEM32(esi + 0x4); /* 0x27019269: mov edi, dword ptr [esi + 4] */ 2557 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701926C: cmp ecx, dword ptr [edi + 4] */ 2558 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2560 _flag_k = FK_CMP; 2561 if (CMP_NE(_flag_a, _flag_b)) goto L_2701927C; /* 0x2701926F: jne 0x2701927c */ 2562 L_27019271: 2563 MEM32(edi + 0x4) = edx; /* 0x27019271: mov dword ptr [edi + 4], edx */ 2564 MEM32(edx + 0x8) = ecx; /* 0x27019274: mov dword ptr [edx + 8], ecx */ 2565 goto L_2701932E; /* 0x27019277: jmp 0x2701932e */ 2566 L_2701927C: 2567 edi = MEM32(ecx + 0x4); /* 0x2701927C: mov edi, dword ptr [ecx + 4] */ 2568 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701927F: cmp ecx, dword ptr [edi + 8] */ 2569 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2571 _flag_k = FK_CMP; 2572 if (CMP_NE(_flag_a, _flag_b)) goto L_2701928F; /* 0x27019282: jne 0x2701928f */ 2573 L_27019284: 2574 MEM32(edi + 0x8) = edx; /* 0x27019284: mov dword ptr [edi + 8], edx */ 2575 MEM32(edx + 0x8) = ecx; /* 0x27019287: mov dword ptr [edx + 8], ecx */ 2576 goto L_2701932E; /* 0x2701928A: jmp 0x2701932e */ 2577 L_2701928F: 2578 MEM32(edi) = edx; /* 0x2701928F: mov dword ptr [edi], edx */ 2579 MEM32(edx + 0x8) = ecx; /* 0x27019291: mov dword ptr [edx + 8], ecx */ 2580 goto L_2701932E; /* 0x27019294: jmp 0x2701932e */ 2581 L_27019299: 2582 /* cmp MEM8(edx + 0x10), 0 */ /* 0x27019299: cmp byte ptr [edx + 0x10], 0 */ 2583 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 2584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2585 _flag_k = FK_NARROW(FK_CMP, 24); 2586 RECOMP_BACKEDGE(); 2587 if (CMP_EQ(_flag_a, _flag_b)) goto L_270191E1; /* 0x2701929D: je 0x270191e1 */ 2588 L_270192A3: 2589 /* cmp eax, MEM32(ecx) */ /* 0x270192A3: cmp eax, dword ptr [ecx] */ 2590 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2592 _flag_k = FK_CMP; 2593 if (CMP_NE(_flag_a, _flag_b)) goto L_270192E3; /* 0x270192A5: jne 0x270192e3 */ 2594 L_270192A7: 2595 eax = ecx; /* 0x270192A7: mov eax, ecx */ 2596 ecx = MEM32(eax); /* 0x270192A9: mov ecx, dword ptr [eax] */ 2597 edx = MEM32(ecx + 0x8); /* 0x270192AB: mov edx, dword ptr [ecx + 8] */ 2598 MEM32(eax) = edx; /* 0x270192AE: mov dword ptr [eax], edx */ 2599 edx = MEM32(ecx + 0x8); /* 0x270192B0: mov edx, dword ptr [ecx + 8] */ 2600 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270192B3: cmp edx, dword ptr [esi + 8] */ 2601 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2603 _flag_k = FK_CMP; 2604 if (CMP_EQ(_flag_a, _flag_b)) goto L_270192BB; /* 0x270192B6: je 0x270192bb */ 2605 L_270192B8: 2606 MEM32(edx + 0x4) = eax; /* 0x270192B8: mov dword ptr [edx + 4], eax */ 2607 L_270192BB: 2608 edx = MEM32(eax + 0x4); /* 0x270192BB: mov edx, dword ptr [eax + 4] */ 2609 MEM32(ecx + 0x4) = edx; /* 0x270192BE: mov dword ptr [ecx + 4], edx */ 2610 edx = MEM32(esi + 0x4); /* 0x270192C1: mov edx, dword ptr [esi + 4] */ 2611 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270192C4: cmp eax, dword ptr [edx + 4] */ 2612 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2614 _flag_k = FK_CMP; 2615 if (CMP_NE(_flag_a, _flag_b)) goto L_270192CE; /* 0x270192C7: jne 0x270192ce */ 2616 L_270192C9: 2617 MEM32(edx + 0x4) = ecx; /* 0x270192C9: mov dword ptr [edx + 4], ecx */ 2618 goto L_270192DD; /* 0x270192CC: jmp 0x270192dd */ 2619 L_270192CE: 2620 edx = MEM32(eax + 0x4); /* 0x270192CE: mov edx, dword ptr [eax + 4] */ 2621 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270192D1: cmp eax, dword ptr [edx + 8] */ 2622 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2624 _flag_k = FK_CMP; 2625 if (CMP_NE(_flag_a, _flag_b)) goto L_270192DB; /* 0x270192D4: jne 0x270192db */ 2626 L_270192D6: 2627 MEM32(edx + 0x8) = ecx; /* 0x270192D6: mov dword ptr [edx + 8], ecx */ 2628 goto L_270192DD; /* 0x270192D9: jmp 0x270192dd */ 2629 L_270192DB: 2630 MEM32(edx) = ecx; /* 0x270192DB: mov dword ptr [edx], ecx */ 2631 L_270192DD: 2632 MEM32(ecx + 0x8) = eax; /* 0x270192DD: mov dword ptr [ecx + 8], eax */ 2633 MEM32(eax + 0x4) = ecx; /* 0x270192E0: mov dword ptr [eax + 4], ecx */ 2634 L_270192E3: 2635 ecx = MEM32(eax + 0x4); /* 0x270192E3: mov ecx, dword ptr [eax + 4] */ 2636 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270192E6: mov byte ptr [ecx + 0x10], bl */ 2637 edx = MEM32(eax + 0x4); /* 0x270192E9: mov edx, dword ptr [eax + 4] */ 2638 ecx = MEM32(edx + 0x4); /* 0x270192EC: mov ecx, dword ptr [edx + 4] */ 2639 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x270192EF: mov byte ptr [ecx + 0x10], 0 */ 2640 edx = MEM32(eax + 0x4); /* 0x270192F3: mov edx, dword ptr [eax + 4] */ 2641 ecx = MEM32(edx + 0x4); /* 0x270192F6: mov ecx, dword ptr [edx + 4] */ 2642 edx = MEM32(ecx + 0x8); /* 0x270192F9: mov edx, dword ptr [ecx + 8] */ 2643 edi = MEM32(edx); /* 0x270192FC: mov edi, dword ptr [edx] */ 2644 MEM32(ecx + 0x8) = edi; /* 0x270192FE: mov dword ptr [ecx + 8], edi */ 2645 edi = MEM32(edx); /* 0x27019301: mov edi, dword ptr [edx] */ 2646 /* cmp edi, MEM32(esi + 0x8) */ /* 0x27019303: cmp edi, dword ptr [esi + 8] */ 2647 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2649 _flag_k = FK_CMP; 2650 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701930B; /* 0x27019306: je 0x2701930b */ 2651 L_27019308: 2652 MEM32(edi + 0x4) = ecx; /* 0x27019308: mov dword ptr [edi + 4], ecx */ 2653 L_2701930B: 2654 edi = MEM32(ecx + 0x4); /* 0x2701930B: mov edi, dword ptr [ecx + 4] */ 2655 MEM32(edx + 0x4) = edi; /* 0x2701930E: mov dword ptr [edx + 4], edi */ 2656 edi = MEM32(esi + 0x4); /* 0x27019311: mov edi, dword ptr [esi + 4] */ 2657 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x27019314: cmp ecx, dword ptr [edi + 4] */ 2658 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2660 _flag_k = FK_CMP; 2661 if (CMP_NE(_flag_a, _flag_b)) goto L_2701931E; /* 0x27019317: jne 0x2701931e */ 2662 L_27019319: 2663 MEM32(edi + 0x4) = edx; /* 0x27019319: mov dword ptr [edi + 4], edx */ 2664 goto L_2701932C; /* 0x2701931C: jmp 0x2701932c */ 2665 L_2701931E: 2666 edi = MEM32(ecx + 0x4); /* 0x2701931E: mov edi, dword ptr [ecx + 4] */ 2667 /* cmp ecx, MEM32(edi) */ /* 0x27019321: cmp ecx, dword ptr [edi] */ 2668 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2670 _flag_k = FK_CMP; 2671 if (CMP_NE(_flag_a, _flag_b)) goto L_27019329; /* 0x27019323: jne 0x27019329 */ 2672 L_27019325: 2673 MEM32(edi) = edx; /* 0x27019325: mov dword ptr [edi], edx */ 2674 goto L_2701932C; /* 0x27019327: jmp 0x2701932c */ 2675 L_27019329: 2676 MEM32(edi + 0x8) = edx; /* 0x27019329: mov dword ptr [edi + 8], edx */ 2677 L_2701932C: 2678 MEM32(edx) = ecx; /* 0x2701932C: mov dword ptr [edx], ecx */ 2679 L_2701932E: 2680 MEM32(ecx + 0x4) = edx; /* 0x2701932E: mov dword ptr [ecx + 4], edx */ 2681 L_27019331: 2682 ecx = MEM32(esi + 0x4); /* 0x27019331: mov ecx, dword ptr [esi + 4] */ 2683 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27019334: cmp eax, dword ptr [ecx + 4] */ 2684 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2686 _flag_k = FK_CMP; 2687 RECOMP_BACKEDGE(); 2688 if (CMP_NE(_flag_a, _flag_b)) goto L_270191BD; /* 0x27019337: jne 0x270191bd */ 2689 L_2701933D: 2690 edx = MEM32(esi + 0x4); /* 0x2701933D: mov edx, dword ptr [esi + 4] */ 2691 eax = MEM32(edx + 0x4); /* 0x27019340: mov eax, dword ptr [edx + 4] */ 2692 ecx = MEM32(ebp + (-0x4)); /* 0x27019343: mov ecx, dword ptr [ebp - 4] */ 2693 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019346: mov byte ptr [eax + 0x10], bl */ 2694 eax = MEM32(ebp + 0x8); /* 0x27019349: mov eax, dword ptr [ebp + 8] */ 2695 edi = POP32_VAL(esp); /* 0x2701934C: pop edi */ 2696 esi = POP32_VAL(esp); /* 0x2701934D: pop esi */ 2697 MEM32(eax) = ecx; /* 0x2701934E: mov dword ptr [eax], ecx */ 2698 ebx = POP32_VAL(esp); /* 0x27019350: pop ebx */ 2699 esp = ebp; /* 0x27019351: mov esp, ebp */ 2700 ebp = POP32_VAL(esp); /* 0x27019353: pop ebp */ 2701 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019354: ret 0x10 */ 2702 RECOMP_REGS_OUT(); 2703 } 2704 2705 void sub_2701932E(void) { 2706 int _fpu_cmp = 0; 2707 uint32_t _cf = 0; 2708 int _df = 1; 2709 uint32_t _flag_k = FK_NONE; 2710 uint32_t _flag_a = 0, _flag_b = 0; 2711 uint32_t _itail_tgt = 0; 2712 RECOMP_REGS_LOCALS 2713 RECOMP_ENTER(0x2701932Eu); 2714 2715 goto L_2701932E; 2716 L_270191BD: 2717 ecx = MEM32(eax + 0x4); /* 0x270191BD: mov ecx, dword ptr [eax + 4] */ 2718 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x270191C0: mov dl, byte ptr [ecx + 0x10] */ 2719 /* test LO8(edx), LO8(edx) */ /* 0x270191C3: test dl, dl */ 2720 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2721 _cf = 0; 2722 _flag_k = FK_NARROW(FK_TEST, 24); 2723 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701933D; /* 0x270191C5: jne 0x2701933d */ 2724 L_270191CB: 2725 edi = MEM32(ecx + 0x4); /* 0x270191CB: mov edi, dword ptr [ecx + 4] */ 2726 edx = MEM32(edi); /* 0x270191CE: mov edx, dword ptr [edi] */ 2727 /* cmp ecx, edx */ /* 0x270191D0: cmp ecx, edx */ 2728 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2730 _flag_k = FK_CMP; 2731 if (CMP_NE(_flag_a, _flag_b)) goto L_27019299; /* 0x270191D2: jne 0x27019299 */ 2732 L_270191D8: 2733 edx = MEM32(edi + 0x8); /* 0x270191D8: mov edx, dword ptr [edi + 8] */ 2734 /* cmp MEM8(edx + 0x10), 0 */ /* 0x270191DB: cmp byte ptr [edx + 0x10], 0 */ 2735 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 2736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2737 _flag_k = FK_NARROW(FK_CMP, 24); 2738 if (CMP_NE(_flag_a, _flag_b)) goto L_270191FC; /* 0x270191DF: jne 0x270191fc */ 2739 L_270191E1: 2740 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E1: mov byte ptr [ecx + 0x10], bl */ 2741 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E4: mov byte ptr [edx + 0x10], bl */ 2742 ecx = MEM32(eax + 0x4); /* 0x270191E7: mov ecx, dword ptr [eax + 4] */ 2743 edx = MEM32(ecx + 0x4); /* 0x270191EA: mov edx, dword ptr [ecx + 4] */ 2744 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x270191ED: mov byte ptr [edx + 0x10], 0 */ 2745 eax = MEM32(eax + 0x4); /* 0x270191F1: mov eax, dword ptr [eax + 4] */ 2746 eax = MEM32(eax + 0x4); /* 0x270191F4: mov eax, dword ptr [eax + 4] */ 2747 goto L_27019331; /* 0x270191F7: jmp 0x27019331 */ 2748 L_270191FC: 2749 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270191FC: cmp eax, dword ptr [ecx + 8] */ 2750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2752 _flag_k = FK_CMP; 2753 if (CMP_NE(_flag_a, _flag_b)) goto L_2701923B; /* 0x270191FF: jne 0x2701923b */ 2754 L_27019201: 2755 eax = ecx; /* 0x27019201: mov eax, ecx */ 2756 ecx = MEM32(eax + 0x8); /* 0x27019203: mov ecx, dword ptr [eax + 8] */ 2757 edx = MEM32(ecx); /* 0x27019206: mov edx, dword ptr [ecx] */ 2758 MEM32(eax + 0x8) = edx; /* 0x27019208: mov dword ptr [eax + 8], edx */ 2759 edx = MEM32(ecx); /* 0x2701920B: mov edx, dword ptr [ecx] */ 2760 /* cmp edx, MEM32(esi + 0x8) */ /* 0x2701920D: cmp edx, dword ptr [esi + 8] */ 2761 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2763 _flag_k = FK_CMP; 2764 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019215; /* 0x27019210: je 0x27019215 */ 2765 L_27019212: 2766 MEM32(edx + 0x4) = eax; /* 0x27019212: mov dword ptr [edx + 4], eax */ 2767 L_27019215: 2768 edx = MEM32(eax + 0x4); /* 0x27019215: mov edx, dword ptr [eax + 4] */ 2769 MEM32(ecx + 0x4) = edx; /* 0x27019218: mov dword ptr [ecx + 4], edx */ 2770 edx = MEM32(esi + 0x4); /* 0x2701921B: mov edx, dword ptr [esi + 4] */ 2771 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701921E: cmp eax, dword ptr [edx + 4] */ 2772 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2774 _flag_k = FK_CMP; 2775 if (CMP_NE(_flag_a, _flag_b)) goto L_27019228; /* 0x27019221: jne 0x27019228 */ 2776 L_27019223: 2777 MEM32(edx + 0x4) = ecx; /* 0x27019223: mov dword ptr [edx + 4], ecx */ 2778 goto L_27019236; /* 0x27019226: jmp 0x27019236 */ 2779 L_27019228: 2780 edx = MEM32(eax + 0x4); /* 0x27019228: mov edx, dword ptr [eax + 4] */ 2781 /* cmp eax, MEM32(edx) */ /* 0x2701922B: cmp eax, dword ptr [edx] */ 2782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2784 _flag_k = FK_CMP; 2785 if (CMP_NE(_flag_a, _flag_b)) goto L_27019233; /* 0x2701922D: jne 0x27019233 */ 2786 L_2701922F: 2787 MEM32(edx) = ecx; /* 0x2701922F: mov dword ptr [edx], ecx */ 2788 goto L_27019236; /* 0x27019231: jmp 0x27019236 */ 2789 L_27019233: 2790 MEM32(edx + 0x8) = ecx; /* 0x27019233: mov dword ptr [edx + 8], ecx */ 2791 L_27019236: 2792 MEM32(ecx) = eax; /* 0x27019236: mov dword ptr [ecx], eax */ 2793 MEM32(eax + 0x4) = ecx; /* 0x27019238: mov dword ptr [eax + 4], ecx */ 2794 L_2701923B: 2795 ecx = MEM32(eax + 0x4); /* 0x2701923B: mov ecx, dword ptr [eax + 4] */ 2796 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701923E: mov byte ptr [ecx + 0x10], bl */ 2797 edx = MEM32(eax + 0x4); /* 0x27019241: mov edx, dword ptr [eax + 4] */ 2798 ecx = MEM32(edx + 0x4); /* 0x27019244: mov ecx, dword ptr [edx + 4] */ 2799 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019247: mov byte ptr [ecx + 0x10], 0 */ 2800 edx = MEM32(eax + 0x4); /* 0x2701924B: mov edx, dword ptr [eax + 4] */ 2801 ecx = MEM32(edx + 0x4); /* 0x2701924E: mov ecx, dword ptr [edx + 4] */ 2802 edx = MEM32(ecx); /* 0x27019251: mov edx, dword ptr [ecx] */ 2803 edi = MEM32(edx + 0x8); /* 0x27019253: mov edi, dword ptr [edx + 8] */ 2804 MEM32(ecx) = edi; /* 0x27019256: mov dword ptr [ecx], edi */ 2805 edi = MEM32(edx + 0x8); /* 0x27019258: mov edi, dword ptr [edx + 8] */ 2806 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701925B: cmp edi, dword ptr [esi + 8] */ 2807 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2809 _flag_k = FK_CMP; 2810 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019263; /* 0x2701925E: je 0x27019263 */ 2811 L_27019260: 2812 MEM32(edi + 0x4) = ecx; /* 0x27019260: mov dword ptr [edi + 4], ecx */ 2813 L_27019263: 2814 edi = MEM32(ecx + 0x4); /* 0x27019263: mov edi, dword ptr [ecx + 4] */ 2815 MEM32(edx + 0x4) = edi; /* 0x27019266: mov dword ptr [edx + 4], edi */ 2816 edi = MEM32(esi + 0x4); /* 0x27019269: mov edi, dword ptr [esi + 4] */ 2817 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701926C: cmp ecx, dword ptr [edi + 4] */ 2818 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2820 _flag_k = FK_CMP; 2821 if (CMP_NE(_flag_a, _flag_b)) goto L_2701927C; /* 0x2701926F: jne 0x2701927c */ 2822 L_27019271: 2823 MEM32(edi + 0x4) = edx; /* 0x27019271: mov dword ptr [edi + 4], edx */ 2824 MEM32(edx + 0x8) = ecx; /* 0x27019274: mov dword ptr [edx + 8], ecx */ 2825 goto L_2701932E; /* 0x27019277: jmp 0x2701932e */ 2826 L_2701927C: 2827 edi = MEM32(ecx + 0x4); /* 0x2701927C: mov edi, dword ptr [ecx + 4] */ 2828 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701927F: cmp ecx, dword ptr [edi + 8] */ 2829 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2831 _flag_k = FK_CMP; 2832 if (CMP_NE(_flag_a, _flag_b)) goto L_2701928F; /* 0x27019282: jne 0x2701928f */ 2833 L_27019284: 2834 MEM32(edi + 0x8) = edx; /* 0x27019284: mov dword ptr [edi + 8], edx */ 2835 MEM32(edx + 0x8) = ecx; /* 0x27019287: mov dword ptr [edx + 8], ecx */ 2836 goto L_2701932E; /* 0x2701928A: jmp 0x2701932e */ 2837 L_2701928F: 2838 MEM32(edi) = edx; /* 0x2701928F: mov dword ptr [edi], edx */ 2839 MEM32(edx + 0x8) = ecx; /* 0x27019291: mov dword ptr [edx + 8], ecx */ 2840 goto L_2701932E; /* 0x27019294: jmp 0x2701932e */ 2841 L_27019299: 2842 /* cmp MEM8(edx + 0x10), 0 */ /* 0x27019299: cmp byte ptr [edx + 0x10], 0 */ 2843 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 2844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2845 _flag_k = FK_NARROW(FK_CMP, 24); 2846 RECOMP_BACKEDGE(); 2847 if (CMP_EQ(_flag_a, _flag_b)) goto L_270191E1; /* 0x2701929D: je 0x270191e1 */ 2848 L_270192A3: 2849 /* cmp eax, MEM32(ecx) */ /* 0x270192A3: cmp eax, dword ptr [ecx] */ 2850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2852 _flag_k = FK_CMP; 2853 if (CMP_NE(_flag_a, _flag_b)) goto L_270192E3; /* 0x270192A5: jne 0x270192e3 */ 2854 L_270192A7: 2855 eax = ecx; /* 0x270192A7: mov eax, ecx */ 2856 ecx = MEM32(eax); /* 0x270192A9: mov ecx, dword ptr [eax] */ 2857 edx = MEM32(ecx + 0x8); /* 0x270192AB: mov edx, dword ptr [ecx + 8] */ 2858 MEM32(eax) = edx; /* 0x270192AE: mov dword ptr [eax], edx */ 2859 edx = MEM32(ecx + 0x8); /* 0x270192B0: mov edx, dword ptr [ecx + 8] */ 2860 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270192B3: cmp edx, dword ptr [esi + 8] */ 2861 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2863 _flag_k = FK_CMP; 2864 if (CMP_EQ(_flag_a, _flag_b)) goto L_270192BB; /* 0x270192B6: je 0x270192bb */ 2865 L_270192B8: 2866 MEM32(edx + 0x4) = eax; /* 0x270192B8: mov dword ptr [edx + 4], eax */ 2867 L_270192BB: 2868 edx = MEM32(eax + 0x4); /* 0x270192BB: mov edx, dword ptr [eax + 4] */ 2869 MEM32(ecx + 0x4) = edx; /* 0x270192BE: mov dword ptr [ecx + 4], edx */ 2870 edx = MEM32(esi + 0x4); /* 0x270192C1: mov edx, dword ptr [esi + 4] */ 2871 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270192C4: cmp eax, dword ptr [edx + 4] */ 2872 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2874 _flag_k = FK_CMP; 2875 if (CMP_NE(_flag_a, _flag_b)) goto L_270192CE; /* 0x270192C7: jne 0x270192ce */ 2876 L_270192C9: 2877 MEM32(edx + 0x4) = ecx; /* 0x270192C9: mov dword ptr [edx + 4], ecx */ 2878 goto L_270192DD; /* 0x270192CC: jmp 0x270192dd */ 2879 L_270192CE: 2880 edx = MEM32(eax + 0x4); /* 0x270192CE: mov edx, dword ptr [eax + 4] */ 2881 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270192D1: cmp eax, dword ptr [edx + 8] */ 2882 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2884 _flag_k = FK_CMP; 2885 if (CMP_NE(_flag_a, _flag_b)) goto L_270192DB; /* 0x270192D4: jne 0x270192db */ 2886 L_270192D6: 2887 MEM32(edx + 0x8) = ecx; /* 0x270192D6: mov dword ptr [edx + 8], ecx */ 2888 goto L_270192DD; /* 0x270192D9: jmp 0x270192dd */ 2889 L_270192DB: 2890 MEM32(edx) = ecx; /* 0x270192DB: mov dword ptr [edx], ecx */ 2891 L_270192DD: 2892 MEM32(ecx + 0x8) = eax; /* 0x270192DD: mov dword ptr [ecx + 8], eax */ 2893 MEM32(eax + 0x4) = ecx; /* 0x270192E0: mov dword ptr [eax + 4], ecx */ 2894 L_270192E3: 2895 ecx = MEM32(eax + 0x4); /* 0x270192E3: mov ecx, dword ptr [eax + 4] */ 2896 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270192E6: mov byte ptr [ecx + 0x10], bl */ 2897 edx = MEM32(eax + 0x4); /* 0x270192E9: mov edx, dword ptr [eax + 4] */ 2898 ecx = MEM32(edx + 0x4); /* 0x270192EC: mov ecx, dword ptr [edx + 4] */ 2899 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x270192EF: mov byte ptr [ecx + 0x10], 0 */ 2900 edx = MEM32(eax + 0x4); /* 0x270192F3: mov edx, dword ptr [eax + 4] */ 2901 ecx = MEM32(edx + 0x4); /* 0x270192F6: mov ecx, dword ptr [edx + 4] */ 2902 edx = MEM32(ecx + 0x8); /* 0x270192F9: mov edx, dword ptr [ecx + 8] */ 2903 edi = MEM32(edx); /* 0x270192FC: mov edi, dword ptr [edx] */ 2904 MEM32(ecx + 0x8) = edi; /* 0x270192FE: mov dword ptr [ecx + 8], edi */ 2905 edi = MEM32(edx); /* 0x27019301: mov edi, dword ptr [edx] */ 2906 /* cmp edi, MEM32(esi + 0x8) */ /* 0x27019303: cmp edi, dword ptr [esi + 8] */ 2907 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2909 _flag_k = FK_CMP; 2910 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701930B; /* 0x27019306: je 0x2701930b */ 2911 L_27019308: 2912 MEM32(edi + 0x4) = ecx; /* 0x27019308: mov dword ptr [edi + 4], ecx */ 2913 L_2701930B: 2914 edi = MEM32(ecx + 0x4); /* 0x2701930B: mov edi, dword ptr [ecx + 4] */ 2915 MEM32(edx + 0x4) = edi; /* 0x2701930E: mov dword ptr [edx + 4], edi */ 2916 edi = MEM32(esi + 0x4); /* 0x27019311: mov edi, dword ptr [esi + 4] */ 2917 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x27019314: cmp ecx, dword ptr [edi + 4] */ 2918 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2920 _flag_k = FK_CMP; 2921 if (CMP_NE(_flag_a, _flag_b)) goto L_2701931E; /* 0x27019317: jne 0x2701931e */ 2922 L_27019319: 2923 MEM32(edi + 0x4) = edx; /* 0x27019319: mov dword ptr [edi + 4], edx */ 2924 goto L_2701932C; /* 0x2701931C: jmp 0x2701932c */ 2925 L_2701931E: 2926 edi = MEM32(ecx + 0x4); /* 0x2701931E: mov edi, dword ptr [ecx + 4] */ 2927 /* cmp ecx, MEM32(edi) */ /* 0x27019321: cmp ecx, dword ptr [edi] */ 2928 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2930 _flag_k = FK_CMP; 2931 if (CMP_NE(_flag_a, _flag_b)) goto L_27019329; /* 0x27019323: jne 0x27019329 */ 2932 L_27019325: 2933 MEM32(edi) = edx; /* 0x27019325: mov dword ptr [edi], edx */ 2934 goto L_2701932C; /* 0x27019327: jmp 0x2701932c */ 2935 L_27019329: 2936 MEM32(edi + 0x8) = edx; /* 0x27019329: mov dword ptr [edi + 8], edx */ 2937 L_2701932C: 2938 MEM32(edx) = ecx; /* 0x2701932C: mov dword ptr [edx], ecx */ 2939 L_2701932E: 2940 MEM32(ecx + 0x4) = edx; /* 0x2701932E: mov dword ptr [ecx + 4], edx */ 2941 L_27019331: 2942 ecx = MEM32(esi + 0x4); /* 0x27019331: mov ecx, dword ptr [esi + 4] */ 2943 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27019334: cmp eax, dword ptr [ecx + 4] */ 2944 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2946 _flag_k = FK_CMP; 2947 RECOMP_BACKEDGE(); 2948 if (CMP_NE(_flag_a, _flag_b)) goto L_270191BD; /* 0x27019337: jne 0x270191bd */ 2949 L_2701933D: 2950 edx = MEM32(esi + 0x4); /* 0x2701933D: mov edx, dword ptr [esi + 4] */ 2951 eax = MEM32(edx + 0x4); /* 0x27019340: mov eax, dword ptr [edx + 4] */ 2952 ecx = MEM32(ebp + (-0x4)); /* 0x27019343: mov ecx, dword ptr [ebp - 4] */ 2953 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019346: mov byte ptr [eax + 0x10], bl */ 2954 eax = MEM32(ebp + 0x8); /* 0x27019349: mov eax, dword ptr [ebp + 8] */ 2955 edi = POP32_VAL(esp); /* 0x2701934C: pop edi */ 2956 esi = POP32_VAL(esp); /* 0x2701934D: pop esi */ 2957 MEM32(eax) = ecx; /* 0x2701934E: mov dword ptr [eax], ecx */ 2958 ebx = POP32_VAL(esp); /* 0x27019350: pop ebx */ 2959 esp = ebp; /* 0x27019351: mov esp, ebp */ 2960 ebp = POP32_VAL(esp); /* 0x27019353: pop ebp */ 2961 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019354: ret 0x10 */ 2962 RECOMP_REGS_OUT(); 2963 } 2964 2965 void sub_27019331(void) { 2966 int _fpu_cmp = 0; 2967 uint32_t _cf = 0; 2968 int _df = 1; 2969 uint32_t _flag_k = FK_NONE; 2970 uint32_t _flag_a = 0, _flag_b = 0; 2971 uint32_t _itail_tgt = 0; 2972 RECOMP_REGS_LOCALS 2973 RECOMP_ENTER(0x27019331u); 2974 2975 goto L_27019331; 2976 L_270191BD: 2977 ecx = MEM32(eax + 0x4); /* 0x270191BD: mov ecx, dword ptr [eax + 4] */ 2978 SET_LO8(edx, MEM8(ecx + 0x10)); /* 0x270191C0: mov dl, byte ptr [ecx + 0x10] */ 2979 /* test LO8(edx), LO8(edx) */ /* 0x270191C3: test dl, dl */ 2980 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2981 _cf = 0; 2982 _flag_k = FK_NARROW(FK_TEST, 24); 2983 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701933D; /* 0x270191C5: jne 0x2701933d */ 2984 L_270191CB: 2985 edi = MEM32(ecx + 0x4); /* 0x270191CB: mov edi, dword ptr [ecx + 4] */ 2986 edx = MEM32(edi); /* 0x270191CE: mov edx, dword ptr [edi] */ 2987 /* cmp ecx, edx */ /* 0x270191D0: cmp ecx, edx */ 2988 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2990 _flag_k = FK_CMP; 2991 if (CMP_NE(_flag_a, _flag_b)) goto L_27019299; /* 0x270191D2: jne 0x27019299 */ 2992 L_270191D8: 2993 edx = MEM32(edi + 0x8); /* 0x270191D8: mov edx, dword ptr [edi + 8] */ 2994 /* cmp MEM8(edx + 0x10), 0 */ /* 0x270191DB: cmp byte ptr [edx + 0x10], 0 */ 2995 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 2996 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2997 _flag_k = FK_NARROW(FK_CMP, 24); 2998 if (CMP_NE(_flag_a, _flag_b)) goto L_270191FC; /* 0x270191DF: jne 0x270191fc */ 2999 L_270191E1: 3000 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E1: mov byte ptr [ecx + 0x10], bl */ 3001 MEM8(edx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270191E4: mov byte ptr [edx + 0x10], bl */ 3002 ecx = MEM32(eax + 0x4); /* 0x270191E7: mov ecx, dword ptr [eax + 4] */ 3003 edx = MEM32(ecx + 0x4); /* 0x270191EA: mov edx, dword ptr [ecx + 4] */ 3004 MEM8(edx + 0x10) = (uint8_t)(0); /* 0x270191ED: mov byte ptr [edx + 0x10], 0 */ 3005 eax = MEM32(eax + 0x4); /* 0x270191F1: mov eax, dword ptr [eax + 4] */ 3006 eax = MEM32(eax + 0x4); /* 0x270191F4: mov eax, dword ptr [eax + 4] */ 3007 goto L_27019331; /* 0x270191F7: jmp 0x27019331 */ 3008 L_270191FC: 3009 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x270191FC: cmp eax, dword ptr [ecx + 8] */ 3010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3012 _flag_k = FK_CMP; 3013 if (CMP_NE(_flag_a, _flag_b)) goto L_2701923B; /* 0x270191FF: jne 0x2701923b */ 3014 L_27019201: 3015 eax = ecx; /* 0x27019201: mov eax, ecx */ 3016 ecx = MEM32(eax + 0x8); /* 0x27019203: mov ecx, dword ptr [eax + 8] */ 3017 edx = MEM32(ecx); /* 0x27019206: mov edx, dword ptr [ecx] */ 3018 MEM32(eax + 0x8) = edx; /* 0x27019208: mov dword ptr [eax + 8], edx */ 3019 edx = MEM32(ecx); /* 0x2701920B: mov edx, dword ptr [ecx] */ 3020 /* cmp edx, MEM32(esi + 0x8) */ /* 0x2701920D: cmp edx, dword ptr [esi + 8] */ 3021 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3023 _flag_k = FK_CMP; 3024 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019215; /* 0x27019210: je 0x27019215 */ 3025 L_27019212: 3026 MEM32(edx + 0x4) = eax; /* 0x27019212: mov dword ptr [edx + 4], eax */ 3027 L_27019215: 3028 edx = MEM32(eax + 0x4); /* 0x27019215: mov edx, dword ptr [eax + 4] */ 3029 MEM32(ecx + 0x4) = edx; /* 0x27019218: mov dword ptr [ecx + 4], edx */ 3030 edx = MEM32(esi + 0x4); /* 0x2701921B: mov edx, dword ptr [esi + 4] */ 3031 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2701921E: cmp eax, dword ptr [edx + 4] */ 3032 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3034 _flag_k = FK_CMP; 3035 if (CMP_NE(_flag_a, _flag_b)) goto L_27019228; /* 0x27019221: jne 0x27019228 */ 3036 L_27019223: 3037 MEM32(edx + 0x4) = ecx; /* 0x27019223: mov dword ptr [edx + 4], ecx */ 3038 goto L_27019236; /* 0x27019226: jmp 0x27019236 */ 3039 L_27019228: 3040 edx = MEM32(eax + 0x4); /* 0x27019228: mov edx, dword ptr [eax + 4] */ 3041 /* cmp eax, MEM32(edx) */ /* 0x2701922B: cmp eax, dword ptr [edx] */ 3042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 3043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3044 _flag_k = FK_CMP; 3045 if (CMP_NE(_flag_a, _flag_b)) goto L_27019233; /* 0x2701922D: jne 0x27019233 */ 3046 L_2701922F: 3047 MEM32(edx) = ecx; /* 0x2701922F: mov dword ptr [edx], ecx */ 3048 goto L_27019236; /* 0x27019231: jmp 0x27019236 */ 3049 L_27019233: 3050 MEM32(edx + 0x8) = ecx; /* 0x27019233: mov dword ptr [edx + 8], ecx */ 3051 L_27019236: 3052 MEM32(ecx) = eax; /* 0x27019236: mov dword ptr [ecx], eax */ 3053 MEM32(eax + 0x4) = ecx; /* 0x27019238: mov dword ptr [eax + 4], ecx */ 3054 L_2701923B: 3055 ecx = MEM32(eax + 0x4); /* 0x2701923B: mov ecx, dword ptr [eax + 4] */ 3056 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x2701923E: mov byte ptr [ecx + 0x10], bl */ 3057 edx = MEM32(eax + 0x4); /* 0x27019241: mov edx, dword ptr [eax + 4] */ 3058 ecx = MEM32(edx + 0x4); /* 0x27019244: mov ecx, dword ptr [edx + 4] */ 3059 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x27019247: mov byte ptr [ecx + 0x10], 0 */ 3060 edx = MEM32(eax + 0x4); /* 0x2701924B: mov edx, dword ptr [eax + 4] */ 3061 ecx = MEM32(edx + 0x4); /* 0x2701924E: mov ecx, dword ptr [edx + 4] */ 3062 edx = MEM32(ecx); /* 0x27019251: mov edx, dword ptr [ecx] */ 3063 edi = MEM32(edx + 0x8); /* 0x27019253: mov edi, dword ptr [edx + 8] */ 3064 MEM32(ecx) = edi; /* 0x27019256: mov dword ptr [ecx], edi */ 3065 edi = MEM32(edx + 0x8); /* 0x27019258: mov edi, dword ptr [edx + 8] */ 3066 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2701925B: cmp edi, dword ptr [esi + 8] */ 3067 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3069 _flag_k = FK_CMP; 3070 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019263; /* 0x2701925E: je 0x27019263 */ 3071 L_27019260: 3072 MEM32(edi + 0x4) = ecx; /* 0x27019260: mov dword ptr [edi + 4], ecx */ 3073 L_27019263: 3074 edi = MEM32(ecx + 0x4); /* 0x27019263: mov edi, dword ptr [ecx + 4] */ 3075 MEM32(edx + 0x4) = edi; /* 0x27019266: mov dword ptr [edx + 4], edi */ 3076 edi = MEM32(esi + 0x4); /* 0x27019269: mov edi, dword ptr [esi + 4] */ 3077 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2701926C: cmp ecx, dword ptr [edi + 4] */ 3078 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3080 _flag_k = FK_CMP; 3081 if (CMP_NE(_flag_a, _flag_b)) goto L_2701927C; /* 0x2701926F: jne 0x2701927c */ 3082 L_27019271: 3083 MEM32(edi + 0x4) = edx; /* 0x27019271: mov dword ptr [edi + 4], edx */ 3084 MEM32(edx + 0x8) = ecx; /* 0x27019274: mov dword ptr [edx + 8], ecx */ 3085 goto L_2701932E; /* 0x27019277: jmp 0x2701932e */ 3086 L_2701927C: 3087 edi = MEM32(ecx + 0x4); /* 0x2701927C: mov edi, dword ptr [ecx + 4] */ 3088 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x2701927F: cmp ecx, dword ptr [edi + 8] */ 3089 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3091 _flag_k = FK_CMP; 3092 if (CMP_NE(_flag_a, _flag_b)) goto L_2701928F; /* 0x27019282: jne 0x2701928f */ 3093 L_27019284: 3094 MEM32(edi + 0x8) = edx; /* 0x27019284: mov dword ptr [edi + 8], edx */ 3095 MEM32(edx + 0x8) = ecx; /* 0x27019287: mov dword ptr [edx + 8], ecx */ 3096 goto L_2701932E; /* 0x2701928A: jmp 0x2701932e */ 3097 L_2701928F: 3098 MEM32(edi) = edx; /* 0x2701928F: mov dword ptr [edi], edx */ 3099 MEM32(edx + 0x8) = ecx; /* 0x27019291: mov dword ptr [edx + 8], ecx */ 3100 goto L_2701932E; /* 0x27019294: jmp 0x2701932e */ 3101 L_27019299: 3102 /* cmp MEM8(edx + 0x10), 0 */ /* 0x27019299: cmp byte ptr [edx + 0x10], 0 */ 3103 _flag_a = (uint32_t)(MEM8(edx + 0x10)) << 24; _flag_b = (uint32_t)(0) << 24; 3104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3105 _flag_k = FK_NARROW(FK_CMP, 24); 3106 RECOMP_BACKEDGE(); 3107 if (CMP_EQ(_flag_a, _flag_b)) goto L_270191E1; /* 0x2701929D: je 0x270191e1 */ 3108 L_270192A3: 3109 /* cmp eax, MEM32(ecx) */ /* 0x270192A3: cmp eax, dword ptr [ecx] */ 3110 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 3111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3112 _flag_k = FK_CMP; 3113 if (CMP_NE(_flag_a, _flag_b)) goto L_270192E3; /* 0x270192A5: jne 0x270192e3 */ 3114 L_270192A7: 3115 eax = ecx; /* 0x270192A7: mov eax, ecx */ 3116 ecx = MEM32(eax); /* 0x270192A9: mov ecx, dword ptr [eax] */ 3117 edx = MEM32(ecx + 0x8); /* 0x270192AB: mov edx, dword ptr [ecx + 8] */ 3118 MEM32(eax) = edx; /* 0x270192AE: mov dword ptr [eax], edx */ 3119 edx = MEM32(ecx + 0x8); /* 0x270192B0: mov edx, dword ptr [ecx + 8] */ 3120 /* cmp edx, MEM32(esi + 0x8) */ /* 0x270192B3: cmp edx, dword ptr [esi + 8] */ 3121 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3123 _flag_k = FK_CMP; 3124 if (CMP_EQ(_flag_a, _flag_b)) goto L_270192BB; /* 0x270192B6: je 0x270192bb */ 3125 L_270192B8: 3126 MEM32(edx + 0x4) = eax; /* 0x270192B8: mov dword ptr [edx + 4], eax */ 3127 L_270192BB: 3128 edx = MEM32(eax + 0x4); /* 0x270192BB: mov edx, dword ptr [eax + 4] */ 3129 MEM32(ecx + 0x4) = edx; /* 0x270192BE: mov dword ptr [ecx + 4], edx */ 3130 edx = MEM32(esi + 0x4); /* 0x270192C1: mov edx, dword ptr [esi + 4] */ 3131 /* cmp eax, MEM32(edx + 0x4) */ /* 0x270192C4: cmp eax, dword ptr [edx + 4] */ 3132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3134 _flag_k = FK_CMP; 3135 if (CMP_NE(_flag_a, _flag_b)) goto L_270192CE; /* 0x270192C7: jne 0x270192ce */ 3136 L_270192C9: 3137 MEM32(edx + 0x4) = ecx; /* 0x270192C9: mov dword ptr [edx + 4], ecx */ 3138 goto L_270192DD; /* 0x270192CC: jmp 0x270192dd */ 3139 L_270192CE: 3140 edx = MEM32(eax + 0x4); /* 0x270192CE: mov edx, dword ptr [eax + 4] */ 3141 /* cmp eax, MEM32(edx + 0x8) */ /* 0x270192D1: cmp eax, dword ptr [edx + 8] */ 3142 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 3143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3144 _flag_k = FK_CMP; 3145 if (CMP_NE(_flag_a, _flag_b)) goto L_270192DB; /* 0x270192D4: jne 0x270192db */ 3146 L_270192D6: 3147 MEM32(edx + 0x8) = ecx; /* 0x270192D6: mov dword ptr [edx + 8], ecx */ 3148 goto L_270192DD; /* 0x270192D9: jmp 0x270192dd */ 3149 L_270192DB: 3150 MEM32(edx) = ecx; /* 0x270192DB: mov dword ptr [edx], ecx */ 3151 L_270192DD: 3152 MEM32(ecx + 0x8) = eax; /* 0x270192DD: mov dword ptr [ecx + 8], eax */ 3153 MEM32(eax + 0x4) = ecx; /* 0x270192E0: mov dword ptr [eax + 4], ecx */ 3154 L_270192E3: 3155 ecx = MEM32(eax + 0x4); /* 0x270192E3: mov ecx, dword ptr [eax + 4] */ 3156 MEM8(ecx + 0x10) = (uint8_t)(LO8(ebx)); /* 0x270192E6: mov byte ptr [ecx + 0x10], bl */ 3157 edx = MEM32(eax + 0x4); /* 0x270192E9: mov edx, dword ptr [eax + 4] */ 3158 ecx = MEM32(edx + 0x4); /* 0x270192EC: mov ecx, dword ptr [edx + 4] */ 3159 MEM8(ecx + 0x10) = (uint8_t)(0); /* 0x270192EF: mov byte ptr [ecx + 0x10], 0 */ 3160 edx = MEM32(eax + 0x4); /* 0x270192F3: mov edx, dword ptr [eax + 4] */ 3161 ecx = MEM32(edx + 0x4); /* 0x270192F6: mov ecx, dword ptr [edx + 4] */ 3162 edx = MEM32(ecx + 0x8); /* 0x270192F9: mov edx, dword ptr [ecx + 8] */ 3163 edi = MEM32(edx); /* 0x270192FC: mov edi, dword ptr [edx] */ 3164 MEM32(ecx + 0x8) = edi; /* 0x270192FE: mov dword ptr [ecx + 8], edi */ 3165 edi = MEM32(edx); /* 0x27019301: mov edi, dword ptr [edx] */ 3166 /* cmp edi, MEM32(esi + 0x8) */ /* 0x27019303: cmp edi, dword ptr [esi + 8] */ 3167 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3169 _flag_k = FK_CMP; 3170 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701930B; /* 0x27019306: je 0x2701930b */ 3171 L_27019308: 3172 MEM32(edi + 0x4) = ecx; /* 0x27019308: mov dword ptr [edi + 4], ecx */ 3173 L_2701930B: 3174 edi = MEM32(ecx + 0x4); /* 0x2701930B: mov edi, dword ptr [ecx + 4] */ 3175 MEM32(edx + 0x4) = edi; /* 0x2701930E: mov dword ptr [edx + 4], edi */ 3176 edi = MEM32(esi + 0x4); /* 0x27019311: mov edi, dword ptr [esi + 4] */ 3177 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x27019314: cmp ecx, dword ptr [edi + 4] */ 3178 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3180 _flag_k = FK_CMP; 3181 if (CMP_NE(_flag_a, _flag_b)) goto L_2701931E; /* 0x27019317: jne 0x2701931e */ 3182 L_27019319: 3183 MEM32(edi + 0x4) = edx; /* 0x27019319: mov dword ptr [edi + 4], edx */ 3184 goto L_2701932C; /* 0x2701931C: jmp 0x2701932c */ 3185 L_2701931E: 3186 edi = MEM32(ecx + 0x4); /* 0x2701931E: mov edi, dword ptr [ecx + 4] */ 3187 /* cmp ecx, MEM32(edi) */ /* 0x27019321: cmp ecx, dword ptr [edi] */ 3188 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 3189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3190 _flag_k = FK_CMP; 3191 if (CMP_NE(_flag_a, _flag_b)) goto L_27019329; /* 0x27019323: jne 0x27019329 */ 3192 L_27019325: 3193 MEM32(edi) = edx; /* 0x27019325: mov dword ptr [edi], edx */ 3194 goto L_2701932C; /* 0x27019327: jmp 0x2701932c */ 3195 L_27019329: 3196 MEM32(edi + 0x8) = edx; /* 0x27019329: mov dword ptr [edi + 8], edx */ 3197 L_2701932C: 3198 MEM32(edx) = ecx; /* 0x2701932C: mov dword ptr [edx], ecx */ 3199 L_2701932E: 3200 MEM32(ecx + 0x4) = edx; /* 0x2701932E: mov dword ptr [ecx + 4], edx */ 3201 L_27019331: 3202 ecx = MEM32(esi + 0x4); /* 0x27019331: mov ecx, dword ptr [esi + 4] */ 3203 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x27019334: cmp eax, dword ptr [ecx + 4] */ 3204 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3206 _flag_k = FK_CMP; 3207 RECOMP_BACKEDGE(); 3208 if (CMP_NE(_flag_a, _flag_b)) goto L_270191BD; /* 0x27019337: jne 0x270191bd */ 3209 L_2701933D: 3210 edx = MEM32(esi + 0x4); /* 0x2701933D: mov edx, dword ptr [esi + 4] */ 3211 eax = MEM32(edx + 0x4); /* 0x27019340: mov eax, dword ptr [edx + 4] */ 3212 ecx = MEM32(ebp + (-0x4)); /* 0x27019343: mov ecx, dword ptr [ebp - 4] */ 3213 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019346: mov byte ptr [eax + 0x10], bl */ 3214 eax = MEM32(ebp + 0x8); /* 0x27019349: mov eax, dword ptr [ebp + 8] */ 3215 edi = POP32_VAL(esp); /* 0x2701934C: pop edi */ 3216 esi = POP32_VAL(esp); /* 0x2701934D: pop esi */ 3217 MEM32(eax) = ecx; /* 0x2701934E: mov dword ptr [eax], ecx */ 3218 ebx = POP32_VAL(esp); /* 0x27019350: pop ebx */ 3219 esp = ebp; /* 0x27019351: mov esp, ebp */ 3220 ebp = POP32_VAL(esp); /* 0x27019353: pop ebp */ 3221 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019354: ret 0x10 */ 3222 RECOMP_REGS_OUT(); 3223 } 3224 3225 void sub_2701933D(void) { 3226 int _fpu_cmp = 0; 3227 uint32_t _cf = 0; 3228 int _df = 1; 3229 uint32_t _flag_k = FK_NONE; 3230 uint32_t _flag_a = 0, _flag_b = 0; 3231 uint32_t _itail_tgt = 0; 3232 RECOMP_REGS_LOCALS 3233 RECOMP_ENTER(0x2701933Du); 3234 3235 L_2701933D: 3236 edx = MEM32(esi + 0x4); /* 0x2701933D: mov edx, dword ptr [esi + 4] */ 3237 eax = MEM32(edx + 0x4); /* 0x27019340: mov eax, dword ptr [edx + 4] */ 3238 ecx = MEM32(ebp + (-0x4)); /* 0x27019343: mov ecx, dword ptr [ebp - 4] */ 3239 MEM8(eax + 0x10) = (uint8_t)(LO8(ebx)); /* 0x27019346: mov byte ptr [eax + 0x10], bl */ 3240 eax = MEM32(ebp + 0x8); /* 0x27019349: mov eax, dword ptr [ebp + 8] */ 3241 edi = POP32_VAL(esp); /* 0x2701934C: pop edi */ 3242 esi = POP32_VAL(esp); /* 0x2701934D: pop esi */ 3243 MEM32(eax) = ecx; /* 0x2701934E: mov dword ptr [eax], ecx */ 3244 ebx = POP32_VAL(esp); /* 0x27019350: pop ebx */ 3245 esp = ebp; /* 0x27019351: mov esp, ebp */ 3246 ebp = POP32_VAL(esp); /* 0x27019353: pop ebp */ 3247 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019354: ret 0x10 */ 3248 RECOMP_REGS_OUT(); 3249 } 3250 3251 void sub_27019360(void) { 3252 int _fpu_cmp = 0; 3253 uint32_t _cf = 0; 3254 int _df = 1; 3255 uint32_t _flag_k = FK_NONE; 3256 uint32_t _flag_a = 0, _flag_b = 0; 3257 uint32_t _itail_tgt = 0; 3258 RECOMP_REGS_LOCALS 3259 RECOMP_ENTER(0x27019360u); 3260 3261 L_27019360: 3262 PUSH32(esp, ebp); /* 0x27019360: push ebp */ 3263 ebp = esp; /* 0x27019361: mov ebp, esp */ 3264 eax = MEM32(ebp + 0x8); /* 0x27019363: mov eax, dword ptr [ebp + 8] */ 3265 ecx = MEM32(eax); /* 0x27019366: mov ecx, dword ptr [eax] */ 3266 SET_LO8(edx, MEM8(ecx + 0x11)); /* 0x27019368: mov dl, byte ptr [ecx + 0x11] */ 3267 /* test LO8(edx), LO8(edx) */ /* 0x2701936B: test dl, dl */ 3268 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3269 _cf = 0; 3270 _flag_k = FK_NARROW(FK_TEST, 24); 3271 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701937A; /* 0x2701936D: jne 0x2701937a */ 3272 L_2701936F: 3273 eax = ecx; /* 0x2701936F: mov eax, ecx */ 3274 ecx = MEM32(eax); /* 0x27019371: mov ecx, dword ptr [eax] */ 3275 SET_LO8(edx, MEM8(ecx + 0x11)); /* 0x27019373: mov dl, byte ptr [ecx + 0x11] */ 3276 /* test LO8(edx), LO8(edx) */ /* 0x27019376: test dl, dl */ 3277 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3278 _cf = 0; 3279 _flag_k = FK_NARROW(FK_TEST, 24); 3280 RECOMP_BACKEDGE(); 3281 if (TEST_Z(_flag_a, _flag_b)) goto L_2701936F; /* 0x27019378: je 0x2701936f */ 3282 L_2701937A: 3283 ebp = POP32_VAL(esp); /* 0x2701937A: pop ebp */ 3284 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701937B: ret */ 3285 RECOMP_REGS_OUT(); 3286 } 3287 3288 void sub_27019380(void) { 3289 int _fpu_cmp = 0; 3290 uint32_t _cf = 0; 3291 int _df = 1; 3292 uint32_t _flag_k = FK_NONE; 3293 uint32_t _flag_a = 0, _flag_b = 0; 3294 uint32_t _itail_tgt = 0; 3295 RECOMP_REGS_LOCALS 3296 RECOMP_ENTER(0x27019380u); 3297 3298 L_27019380: 3299 eax = MEM32(ecx); /* 0x27019380: mov eax, dword ptr [ecx] */ 3300 SET_LO8(edx, MEM8(eax + 0x10)); /* 0x27019382: mov dl, byte ptr [eax + 0x10] */ 3301 /* test LO8(edx), LO8(edx) */ /* 0x27019385: test dl, dl */ 3302 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3303 _cf = 0; 3304 _flag_k = FK_NARROW(FK_TEST, 24); 3305 PUSH32(esp, ebx); /* 0x27019387: push ebx */ 3306 if (TEST_NZ(_flag_a, _flag_b)) goto L_27019399; /* 0x27019388: jne 0x27019399 */ 3307 L_2701938A: 3308 edx = MEM32(eax + 0x4); /* 0x2701938A: mov edx, dword ptr [eax + 4] */ 3309 /* cmp MEM32(edx + 0x4), eax */ /* 0x2701938D: cmp dword ptr [edx + 4], eax */ 3310 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(eax); 3311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3312 _flag_k = FK_CMP; 3313 if (CMP_NE(_flag_a, _flag_b)) goto L_27019399; /* 0x27019390: jne 0x27019399 */ 3314 L_27019392: 3315 eax = MEM32(eax + 0x8); /* 0x27019392: mov eax, dword ptr [eax + 8] */ 3316 MEM32(ecx) = eax; /* 0x27019395: mov dword ptr [ecx], eax */ 3317 ebx = POP32_VAL(esp); /* 0x27019397: pop ebx */ 3318 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019398: ret */ 3319 L_27019399: 3320 edx = MEM32(eax); /* 0x27019399: mov edx, dword ptr [eax] */ 3321 SET_LO8(ebx, MEM8(edx + 0x11)); /* 0x2701939B: mov bl, byte ptr [edx + 0x11] */ 3322 /* test LO8(ebx), LO8(ebx) */ /* 0x2701939E: test bl, bl */ 3323 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3324 _cf = 0; 3325 _flag_k = FK_NARROW(FK_TEST, 24); 3326 if (TEST_NZ(_flag_a, _flag_b)) goto L_270193BC; /* 0x270193A0: jne 0x270193bc */ 3327 L_270193A2: 3328 eax = MEM32(edx + 0x8); /* 0x270193A2: mov eax, dword ptr [edx + 8] */ 3329 SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x270193A5: mov bl, byte ptr [eax + 0x11] */ 3330 /* test LO8(ebx), LO8(ebx) */ /* 0x270193A8: test bl, bl */ 3331 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3332 _cf = 0; 3333 _flag_k = FK_NARROW(FK_TEST, 24); 3334 if (TEST_NZ(_flag_a, _flag_b)) goto L_270193B8; /* 0x270193AA: jne 0x270193b8 */ 3335 L_270193AC: 3336 edx = eax; /* 0x270193AC: mov edx, eax */ 3337 eax = MEM32(edx + 0x8); /* 0x270193AE: mov eax, dword ptr [edx + 8] */ 3338 SET_LO8(ebx, MEM8(eax + 0x11)); /* 0x270193B1: mov bl, byte ptr [eax + 0x11] */ 3339 /* test LO8(ebx), LO8(ebx) */ /* 0x270193B4: test bl, bl */ 3340 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3341 _cf = 0; 3342 _flag_k = FK_NARROW(FK_TEST, 24); 3343 RECOMP_BACKEDGE(); 3344 if (TEST_Z(_flag_a, _flag_b)) goto L_270193AC; /* 0x270193B6: je 0x270193ac */ 3345 L_270193B8: 3346 MEM32(ecx) = edx; /* 0x270193B8: mov dword ptr [ecx], edx */ 3347 ebx = POP32_VAL(esp); /* 0x270193BA: pop ebx */ 3348 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270193BB: ret */ 3349 L_270193BC: 3350 eax = MEM32(eax + 0x4); /* 0x270193BC: mov eax, dword ptr [eax + 4] */ 3351 edx = MEM32(ecx); /* 0x270193BF: mov edx, dword ptr [ecx] */ 3352 /* cmp edx, MEM32(eax) */ /* 0x270193C1: cmp edx, dword ptr [eax] */ 3353 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 3354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3355 _flag_k = FK_CMP; 3356 if (CMP_NE(_flag_a, _flag_b)) goto L_270193D0; /* 0x270193C3: jne 0x270193d0 */ 3357 L_270193C5: 3358 MEM32(ecx) = eax; /* 0x270193C5: mov dword ptr [ecx], eax */ 3359 eax = MEM32(eax + 0x4); /* 0x270193C7: mov eax, dword ptr [eax + 4] */ 3360 edx = MEM32(ecx); /* 0x270193CA: mov edx, dword ptr [ecx] */ 3361 /* cmp edx, MEM32(eax) */ /* 0x270193CC: cmp edx, dword ptr [eax] */ 3362 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 3363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3364 _flag_k = FK_CMP; 3365 RECOMP_BACKEDGE(); 3366 if (CMP_EQ(_flag_a, _flag_b)) goto L_270193C5; /* 0x270193CE: je 0x270193c5 */ 3367 L_270193D0: 3368 MEM32(ecx) = eax; /* 0x270193D0: mov dword ptr [ecx], eax */ 3369 ebx = POP32_VAL(esp); /* 0x270193D2: pop ebx */ 3370 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x270193D3: ret */ 3371 RECOMP_REGS_OUT(); 3372 } 3373 3374 void sub_270193E0(void) { 3375 int _fpu_cmp = 0; 3376 uint32_t _cf = 0; 3377 int _df = 1; 3378 uint32_t _flag_k = FK_NONE; 3379 uint32_t _flag_a = 0, _flag_b = 0; 3380 uint32_t _itail_tgt = 0; 3381 RECOMP_REGS_LOCALS 3382 RECOMP_ENTER(0x270193E0u); 3383 3384 L_270193E0: 3385 PUSH32(esp, ebp); /* 0x270193E0: push ebp */ 3386 ebp = esp; /* 0x270193E1: mov ebp, esp */ 3387 eax = MEM32(ecx + 0x4); /* 0x270193E3: mov eax, dword ptr [ecx + 4] */ 3388 edx = MEM32(eax + 0x4); /* 0x270193E6: mov edx, dword ptr [eax + 4] */ 3389 ecx = MEM32(ecx + 0x8); /* 0x270193E9: mov ecx, dword ptr [ecx + 8] */ 3390 /* cmp edx, ecx */ /* 0x270193EC: cmp edx, ecx */ 3391 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3393 _flag_k = FK_CMP; 3394 if (CMP_EQ(_flag_a, _flag_b)) goto L_27019409; /* 0x270193EE: je 0x27019409 */ 3395 L_270193F0: 3396 PUSH32(esp, esi); /* 0x270193F0: push esi */ 3397 esi = MEM32(ebp + 0x8); /* 0x270193F1: mov esi, dword ptr [ebp + 8] */ 3398 esi = MEM32(esi); /* 0x270193F4: mov esi, dword ptr [esi] */ 3399 L_270193F6: 3400 /* cmp esi, MEM32(edx + 0xC) */ /* 0x270193F6: cmp esi, dword ptr [edx + 0xc] */ 3401 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0xC)); 3402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3403 _flag_k = FK_CMP; 3404 if (CMP_AE(_flag_a, _flag_b)) goto L_27019401; /* 0x270193F9: jae 0x27019401 */ 3405 L_270193FB: 3406 eax = edx; /* 0x270193FB: mov eax, edx */ 3407 edx = MEM32(edx); /* 0x270193FD: mov edx, dword ptr [edx] */ 3408 goto L_27019404; /* 0x270193FF: jmp 0x27019404 */ 3409 L_27019401: 3410 edx = MEM32(edx + 0x8); /* 0x27019401: mov edx, dword ptr [edx + 8] */ 3411 L_27019404: 3412 /* cmp edx, ecx */ /* 0x27019404: cmp edx, ecx */ 3413 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3415 _flag_k = FK_CMP; 3416 RECOMP_BACKEDGE(); 3417 if (CMP_NE(_flag_a, _flag_b)) goto L_270193F6; /* 0x27019406: jne 0x270193f6 */ 3418 L_27019408: 3419 esi = POP32_VAL(esp); /* 0x27019408: pop esi */ 3420 L_27019409: 3421 ebp = POP32_VAL(esp); /* 0x27019409: pop ebp */ 3422 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701940A: ret 4 */ 3423 RECOMP_REGS_OUT(); 3424 } 3425 3426 void sub_27019410(void) { 3427 int _fpu_cmp = 0; 3428 uint32_t _cf = 0; 3429 int _df = 1; 3430 uint32_t _flag_k = FK_NONE; 3431 uint32_t _flag_a = 0, _flag_b = 0; 3432 uint32_t _itail_tgt = 0; 3433 RECOMP_REGS_LOCALS 3434 RECOMP_ENTER(0x27019410u); 3435 3436 L_27019410: 3437 PUSH32(esp, ebp); /* 0x27019410: push ebp */ 3438 ebp = esp; /* 0x27019411: mov ebp, esp */ 3439 eax = MEM32(ebp + 0x8); /* 0x27019413: mov eax, dword ptr [ebp + 8] */ 3440 edx = MEM32(eax); /* 0x27019416: mov edx, dword ptr [eax] */ 3441 MEM32(ecx + 0x6C) = edx; /* 0x27019418: mov dword ptr [ecx + 0x6c], edx */ 3442 eax = MEM32(eax + 0x4); /* 0x2701941B: mov eax, dword ptr [eax + 4] */ 3443 MEM32(ecx + 0x70) = eax; /* 0x2701941E: mov dword ptr [ecx + 0x70], eax */ 3444 ebp = POP32_VAL(esp); /* 0x27019421: pop ebp */ 3445 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27019422: ret 4 */ 3446 RECOMP_REGS_OUT(); 3447 } 3448 3449 void sub_27019430(void) { 3450 int _fpu_cmp = 0; 3451 uint32_t _cf = 0; 3452 int _df = 1; 3453 uint32_t _flag_k = FK_NONE; 3454 uint32_t _flag_a = 0, _flag_b = 0; 3455 uint32_t _itail_tgt = 0; 3456 RECOMP_REGS_LOCALS 3457 RECOMP_ENTER(0x27019430u); 3458 3459 L_27019430: 3460 SET_LO8(eax, MEM8(ecx + 0xA8)); /* 0x27019430: mov al, byte ptr [ecx + 0xa8] */ 3461 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019436: ret */ 3462 RECOMP_REGS_OUT(); 3463 } 3464 3465 void sub_27019440(void) { 3466 int _fpu_cmp = 0; 3467 uint32_t _cf = 0; 3468 int _df = 1; 3469 uint32_t _flag_k = FK_NONE; 3470 uint32_t _flag_a = 0, _flag_b = 0; 3471 uint32_t _itail_tgt = 0; 3472 RECOMP_REGS_LOCALS 3473 RECOMP_ENTER(0x27019440u); 3474 3475 L_27019440: 3476 PUSH32(esp, ebp); /* 0x27019440: push ebp */ 3477 ebp = esp; /* 0x27019441: mov ebp, esp */ 3478 eax = MEM32(ebp + 0x8); /* 0x27019443: mov eax, dword ptr [ebp + 8] */ 3479 edx = MEM32(ebp + 0xC); /* 0x27019446: mov edx, dword ptr [ebp + 0xc] */ 3480 MEM32(ecx + 0x90) = eax; /* 0x27019449: mov dword ptr [ecx + 0x90], eax */ 3481 MEM32(ecx + 0x94) = edx; /* 0x2701944F: mov dword ptr [ecx + 0x94], edx */ 3482 ebp = POP32_VAL(esp); /* 0x27019455: pop ebp */ 3483 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27019456: ret 8 */ 3484 RECOMP_REGS_OUT(); 3485 } 3486 3487 void sub_27019460(void) { 3488 int _fpu_cmp = 0; 3489 uint32_t _cf = 0; 3490 int _df = 1; 3491 uint32_t _flag_k = FK_NONE; 3492 uint32_t _flag_a = 0, _flag_b = 0; 3493 uint32_t _itail_tgt = 0; 3494 RECOMP_REGS_LOCALS 3495 RECOMP_ENTER(0x27019460u); 3496 3497 L_27019460: 3498 eax = 0x270344ACu; /* 0x27019460: mov eax, 0x270344ac */ 3499 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019465: ret */ 3500 RECOMP_REGS_OUT(); 3501 } 3502 3503 void sub_27019470(void) { 3504 int _fpu_cmp = 0; 3505 uint32_t _cf = 0; 3506 int _df = 1; 3507 uint32_t _flag_k = FK_NONE; 3508 uint32_t _flag_a = 0, _flag_b = 0; 3509 uint32_t _itail_tgt = 0; 3510 RECOMP_REGS_LOCALS 3511 RECOMP_ENTER(0x27019470u); 3512 3513 L_27019470: 3514 PUSH32(esp, ebp); /* 0x27019470: push ebp */ 3515 ebp = esp; /* 0x27019471: mov ebp, esp */ 3516 eax = ecx; /* 0x27019473: mov eax, ecx */ 3517 ecx = MEM32(ebp + 0x8); /* 0x27019475: mov ecx, dword ptr [ebp + 8] */ 3518 edx = MEM32(ecx + 0x4); /* 0x27019478: mov edx, dword ptr [ecx + 4] */ 3519 MEM32(eax + 0x4) = edx; /* 0x2701947B: mov dword ptr [eax + 4], edx */ 3520 SET_LO8(edx, MEM8(ecx + 0x8)); /* 0x2701947E: mov dl, byte ptr [ecx + 8] */ 3521 MEM8(eax + 0x8) = (uint8_t)(LO8(edx)); /* 0x27019481: mov byte ptr [eax + 8], dl */ 3522 SET_LO8(edx, MEM8(ecx + 0x9)); /* 0x27019484: mov dl, byte ptr [ecx + 9] */ 3523 MEM8(eax + 0x9) = (uint8_t)(LO8(edx)); /* 0x27019487: mov byte ptr [eax + 9], dl */ 3524 edx = MEM32(ecx + 0xC); /* 0x2701948A: mov edx, dword ptr [ecx + 0xc] */ 3525 MEM32(eax + 0xC) = edx; /* 0x2701948D: mov dword ptr [eax + 0xc], edx */ 3526 edx = MEM32(ecx + 0x10); /* 0x27019490: mov edx, dword ptr [ecx + 0x10] */ 3527 MEM32(eax + 0x10) = edx; /* 0x27019493: mov dword ptr [eax + 0x10], edx */ 3528 edx = MEM32(ecx + 0x14); /* 0x27019496: mov edx, dword ptr [ecx + 0x14] */ 3529 MEM32(eax + 0x14) = edx; /* 0x27019499: mov dword ptr [eax + 0x14], edx */ 3530 edx = MEM32(ecx + 0x18); /* 0x2701949C: mov edx, dword ptr [ecx + 0x18] */ 3531 MEM32(eax + 0x18) = edx; /* 0x2701949F: mov dword ptr [eax + 0x18], edx */ 3532 edx = MEM32(ecx + 0x1C); /* 0x270194A2: mov edx, dword ptr [ecx + 0x1c] */ 3533 MEM32(eax + 0x1C) = edx; /* 0x270194A5: mov dword ptr [eax + 0x1c], edx */ 3534 edx = MEM32(ecx + 0x20); /* 0x270194A8: mov edx, dword ptr [ecx + 0x20] */ 3535 MEM32(eax + 0x20) = edx; /* 0x270194AB: mov dword ptr [eax + 0x20], edx */ 3536 SET_LO8(edx, MEM8(ecx + 0x24)); /* 0x270194AE: mov dl, byte ptr [ecx + 0x24] */ 3537 MEM8(eax + 0x24) = (uint8_t)(LO8(edx)); /* 0x270194B1: mov byte ptr [eax + 0x24], dl */ 3538 SET_LO8(edx, MEM8(ecx + 0x25)); /* 0x270194B4: mov dl, byte ptr [ecx + 0x25] */ 3539 MEM8(eax + 0x25) = (uint8_t)(LO8(edx)); /* 0x270194B7: mov byte ptr [eax + 0x25], dl */ 3540 edx = MEM32(ecx + 0x28); /* 0x270194BA: mov edx, dword ptr [ecx + 0x28] */ 3541 MEM32(eax + 0x28) = edx; /* 0x270194BD: mov dword ptr [eax + 0x28], edx */ 3542 PUSH32(esp, esi); /* 0x270194C0: push esi */ 3543 PUSH32(esp, edi); /* 0x270194C1: push edi */ 3544 edx = ecx + 0x2C; /* 0x270194C2: lea edx, [ecx + 0x2c] */ 3545 edi = MEM32(edx); /* 0x270194C5: mov edi, dword ptr [edx] */ 3546 esi = eax + 0x2C; /* 0x270194C7: lea esi, [eax + 0x2c] */ 3547 MEM32(esi) = edi; /* 0x270194CA: mov dword ptr [esi], edi */ 3548 edi = MEM32(edx + 0x4); /* 0x270194CC: mov edi, dword ptr [edx + 4] */ 3549 MEM32(esi + 0x4) = edi; /* 0x270194CF: mov dword ptr [esi + 4], edi */ 3550 edi = MEM32(edx + 0x8); /* 0x270194D2: mov edi, dword ptr [edx + 8] */ 3551 MEM32(esi + 0x8) = edi; /* 0x270194D5: mov dword ptr [esi + 8], edi */ 3552 edx = MEM32(edx + 0xC); /* 0x270194D8: mov edx, dword ptr [edx + 0xc] */ 3553 MEM32(esi + 0xC) = edx; /* 0x270194DB: mov dword ptr [esi + 0xc], edx */ 3554 edx = MEM32(ecx + 0x3C); /* 0x270194DE: mov edx, dword ptr [ecx + 0x3c] */ 3555 MEM32(eax + 0x3C) = edx; /* 0x270194E1: mov dword ptr [eax + 0x3c], edx */ 3556 edx = MEM32(ecx + 0x40); /* 0x270194E4: mov edx, dword ptr [ecx + 0x40] */ 3557 MEM32(eax + 0x40) = edx; /* 0x270194E7: mov dword ptr [eax + 0x40], edx */ 3558 edx = MEM32(ecx + 0x44); /* 0x270194EA: mov edx, dword ptr [ecx + 0x44] */ 3559 MEM32(eax + 0x44) = edx; /* 0x270194ED: mov dword ptr [eax + 0x44], edx */ 3560 edx = MEM32(ecx + 0x48); /* 0x270194F0: mov edx, dword ptr [ecx + 0x48] */ 3561 MEM32(eax + 0x48) = edx; /* 0x270194F3: mov dword ptr [eax + 0x48], edx */ 3562 edx = MEM32(ecx + 0x4C); /* 0x270194F6: mov edx, dword ptr [ecx + 0x4c] */ 3563 MEM32(eax + 0x4C) = edx; /* 0x270194F9: mov dword ptr [eax + 0x4c], edx */ 3564 SET_LO8(edx, MEM8(ecx + 0x50)); /* 0x270194FC: mov dl, byte ptr [ecx + 0x50] */ 3565 MEM8(eax + 0x50) = (uint8_t)(LO8(edx)); /* 0x270194FF: mov byte ptr [eax + 0x50], dl */ 3566 MEM32(eax) = 0x2703429Cu; /* 0x27019502: mov dword ptr [eax], 0x2703429c */ 3567 edx = MEM32(ecx + 0x54); /* 0x27019508: mov edx, dword ptr [ecx + 0x54] */ 3568 MEM32(eax + 0x54) = edx; /* 0x2701950B: mov dword ptr [eax + 0x54], edx */ 3569 edx = MEM32(ecx + 0x58); /* 0x2701950E: mov edx, dword ptr [ecx + 0x58] */ 3570 MEM32(eax + 0x58) = edx; /* 0x27019511: mov dword ptr [eax + 0x58], edx */ 3571 edx = MEM32(ecx + 0x5C); /* 0x27019514: mov edx, dword ptr [ecx + 0x5c] */ 3572 MEM32(eax + 0x5C) = edx; /* 0x27019517: mov dword ptr [eax + 0x5c], edx */ 3573 edx = MEM32(ecx + 0x60); /* 0x2701951A: mov edx, dword ptr [ecx + 0x60] */ 3574 MEM32(eax + 0x60) = edx; /* 0x2701951D: mov dword ptr [eax + 0x60], edx */ 3575 edx = MEM32(ecx + 0x64); /* 0x27019520: mov edx, dword ptr [ecx + 0x64] */ 3576 MEM32(eax + 0x64) = edx; /* 0x27019523: mov dword ptr [eax + 0x64], edx */ 3577 edx = MEM32(ecx + 0x68); /* 0x27019526: mov edx, dword ptr [ecx + 0x68] */ 3578 MEM32(eax + 0x68) = edx; /* 0x27019529: mov dword ptr [eax + 0x68], edx */ 3579 edx = MEM32(ecx + 0x6C); /* 0x2701952C: mov edx, dword ptr [ecx + 0x6c] */ 3580 MEM32(eax + 0x6C) = edx; /* 0x2701952F: mov dword ptr [eax + 0x6c], edx */ 3581 edx = MEM32(ecx + 0x70); /* 0x27019532: mov edx, dword ptr [ecx + 0x70] */ 3582 MEM32(eax + 0x70) = edx; /* 0x27019535: mov dword ptr [eax + 0x70], edx */ 3583 edx = MEM32(ecx + 0x74); /* 0x27019538: mov edx, dword ptr [ecx + 0x74] */ 3584 MEM32(eax + 0x74) = edx; /* 0x2701953B: mov dword ptr [eax + 0x74], edx */ 3585 edx = MEM32(ecx + 0x78); /* 0x2701953E: mov edx, dword ptr [ecx + 0x78] */ 3586 MEM32(eax + 0x78) = edx; /* 0x27019541: mov dword ptr [eax + 0x78], edx */ 3587 edx = MEM32(ecx + 0x7C); /* 0x27019544: mov edx, dword ptr [ecx + 0x7c] */ 3588 MEM32(eax + 0x7C) = edx; /* 0x27019547: mov dword ptr [eax + 0x7c], edx */ 3589 edx = MEM32(ecx + 0x80); /* 0x2701954A: mov edx, dword ptr [ecx + 0x80] */ 3590 MEM32(eax + 0x80) = edx; /* 0x27019550: mov dword ptr [eax + 0x80], edx */ 3591 edx = MEM32(ecx + 0x84); /* 0x27019556: mov edx, dword ptr [ecx + 0x84] */ 3592 MEM32(eax + 0x84) = edx; /* 0x2701955C: mov dword ptr [eax + 0x84], edx */ 3593 edx = MEM32(ecx + 0x88); /* 0x27019562: mov edx, dword ptr [ecx + 0x88] */ 3594 MEM32(eax + 0x88) = edx; /* 0x27019568: mov dword ptr [eax + 0x88], edx */ 3595 edx = MEM32(ecx + 0x8C); /* 0x2701956E: mov edx, dword ptr [ecx + 0x8c] */ 3596 MEM32(eax + 0x8C) = edx; /* 0x27019574: mov dword ptr [eax + 0x8c], edx */ 3597 edx = MEM32(ecx + 0x90); /* 0x2701957A: mov edx, dword ptr [ecx + 0x90] */ 3598 MEM32(eax + 0x90) = edx; /* 0x27019580: mov dword ptr [eax + 0x90], edx */ 3599 edx = MEM32(ecx + 0x94); /* 0x27019586: mov edx, dword ptr [ecx + 0x94] */ 3600 MEM32(eax + 0x94) = edx; /* 0x2701958C: mov dword ptr [eax + 0x94], edx */ 3601 edx = MEM32(ecx + 0x98); /* 0x27019592: mov edx, dword ptr [ecx + 0x98] */ 3602 MEM32(eax + 0x98) = edx; /* 0x27019598: mov dword ptr [eax + 0x98], edx */ 3603 edx = MEM32(ecx + 0x9C); /* 0x2701959E: mov edx, dword ptr [ecx + 0x9c] */ 3604 MEM32(eax + 0x9C) = edx; /* 0x270195A4: mov dword ptr [eax + 0x9c], edx */ 3605 edx = MEM32(ecx + 0xA0); /* 0x270195AA: mov edx, dword ptr [ecx + 0xa0] */ 3606 MEM32(eax + 0xA0) = edx; /* 0x270195B0: mov dword ptr [eax + 0xa0], edx */ 3607 edx = MEM32(ecx + 0xA4); /* 0x270195B6: mov edx, dword ptr [ecx + 0xa4] */ 3608 MEM32(eax + 0xA4) = edx; /* 0x270195BC: mov dword ptr [eax + 0xa4], edx */ 3609 SET_LO8(ecx, MEM8(ecx + 0xA8)); /* 0x270195C2: mov cl, byte ptr [ecx + 0xa8] */ 3610 edi = POP32_VAL(esp); /* 0x270195C8: pop edi */ 3611 MEM8(eax + 0xA8) = (uint8_t)(LO8(ecx)); /* 0x270195C9: mov byte ptr [eax + 0xa8], cl */ 3612 MEM32(eax) = 0x270344C0u; /* 0x270195CF: mov dword ptr [eax], 0x270344c0 */ 3613 esi = POP32_VAL(esp); /* 0x270195D5: pop esi */ 3614 ebp = POP32_VAL(esp); /* 0x270195D6: pop ebp */ 3615 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x270195D7: ret 4 */ 3616 RECOMP_REGS_OUT(); 3617 } 3618 3619 void sub_270195E0(void) { 3620 int _fpu_cmp = 0; 3621 uint32_t _cf = 0; 3622 int _df = 1; 3623 uint32_t _flag_k = FK_NONE; 3624 uint32_t _flag_a = 0, _flag_b = 0; 3625 uint32_t _itail_tgt = 0; 3626 RECOMP_REGS_LOCALS 3627 RECOMP_ENTER(0x270195E0u); 3628 3629 L_270195E0: 3630 PUSH32(esp, ebp); /* 0x270195E0: push ebp */ 3631 ebp = esp; /* 0x270195E1: mov ebp, esp */ 3632 eax = ecx; /* 0x270195E3: mov eax, ecx */ 3633 ecx = MEM32(ebp + 0x8); /* 0x270195E5: mov ecx, dword ptr [ebp + 8] */ 3634 edx = MEM32(ecx + 0x4); /* 0x270195E8: mov edx, dword ptr [ecx + 4] */ 3635 MEM32(eax + 0x4) = edx; /* 0x270195EB: mov dword ptr [eax + 4], edx */ 3636 SET_LO8(edx, MEM8(ecx + 0x8)); /* 0x270195EE: mov dl, byte ptr [ecx + 8] */ 3637 MEM8(eax + 0x8) = (uint8_t)(LO8(edx)); /* 0x270195F1: mov byte ptr [eax + 8], dl */ 3638 SET_LO8(edx, MEM8(ecx + 0x9)); /* 0x270195F4: mov dl, byte ptr [ecx + 9] */ 3639 MEM8(eax + 0x9) = (uint8_t)(LO8(edx)); /* 0x270195F7: mov byte ptr [eax + 9], dl */ 3640 edx = MEM32(ecx + 0xC); /* 0x270195FA: mov edx, dword ptr [ecx + 0xc] */ 3641 MEM32(eax + 0xC) = edx; /* 0x270195FD: mov dword ptr [eax + 0xc], edx */ 3642 edx = MEM32(ecx + 0x10); /* 0x27019600: mov edx, dword ptr [ecx + 0x10] */ 3643 MEM32(eax + 0x10) = edx; /* 0x27019603: mov dword ptr [eax + 0x10], edx */ 3644 edx = MEM32(ecx + 0x14); /* 0x27019606: mov edx, dword ptr [ecx + 0x14] */ 3645 MEM32(eax + 0x14) = edx; /* 0x27019609: mov dword ptr [eax + 0x14], edx */ 3646 edx = MEM32(ecx + 0x18); /* 0x2701960C: mov edx, dword ptr [ecx + 0x18] */ 3647 MEM32(eax + 0x18) = edx; /* 0x2701960F: mov dword ptr [eax + 0x18], edx */ 3648 edx = MEM32(ecx + 0x1C); /* 0x27019612: mov edx, dword ptr [ecx + 0x1c] */ 3649 MEM32(eax + 0x1C) = edx; /* 0x27019615: mov dword ptr [eax + 0x1c], edx */ 3650 edx = MEM32(ecx + 0x20); /* 0x27019618: mov edx, dword ptr [ecx + 0x20] */ 3651 MEM32(eax + 0x20) = edx; /* 0x2701961B: mov dword ptr [eax + 0x20], edx */ 3652 SET_LO8(edx, MEM8(ecx + 0x24)); /* 0x2701961E: mov dl, byte ptr [ecx + 0x24] */ 3653 MEM8(eax + 0x24) = (uint8_t)(LO8(edx)); /* 0x27019621: mov byte ptr [eax + 0x24], dl */ 3654 SET_LO8(edx, MEM8(ecx + 0x25)); /* 0x27019624: mov dl, byte ptr [ecx + 0x25] */ 3655 MEM8(eax + 0x25) = (uint8_t)(LO8(edx)); /* 0x27019627: mov byte ptr [eax + 0x25], dl */ 3656 edx = MEM32(ecx + 0x28); /* 0x2701962A: mov edx, dword ptr [ecx + 0x28] */ 3657 MEM32(eax + 0x28) = edx; /* 0x2701962D: mov dword ptr [eax + 0x28], edx */ 3658 PUSH32(esp, esi); /* 0x27019630: push esi */ 3659 PUSH32(esp, edi); /* 0x27019631: push edi */ 3660 edx = ecx + 0x2C; /* 0x27019632: lea edx, [ecx + 0x2c] */ 3661 edi = MEM32(edx); /* 0x27019635: mov edi, dword ptr [edx] */ 3662 esi = eax + 0x2C; /* 0x27019637: lea esi, [eax + 0x2c] */ 3663 MEM32(esi) = edi; /* 0x2701963A: mov dword ptr [esi], edi */ 3664 edi = MEM32(edx + 0x4); /* 0x2701963C: mov edi, dword ptr [edx + 4] */ 3665 MEM32(esi + 0x4) = edi; /* 0x2701963F: mov dword ptr [esi + 4], edi */ 3666 edi = MEM32(edx + 0x8); /* 0x27019642: mov edi, dword ptr [edx + 8] */ 3667 MEM32(esi + 0x8) = edi; /* 0x27019645: mov dword ptr [esi + 8], edi */ 3668 edx = MEM32(edx + 0xC); /* 0x27019648: mov edx, dword ptr [edx + 0xc] */ 3669 MEM32(esi + 0xC) = edx; /* 0x2701964B: mov dword ptr [esi + 0xc], edx */ 3670 edx = MEM32(ecx + 0x3C); /* 0x2701964E: mov edx, dword ptr [ecx + 0x3c] */ 3671 MEM32(eax + 0x3C) = edx; /* 0x27019651: mov dword ptr [eax + 0x3c], edx */ 3672 edx = MEM32(ecx + 0x40); /* 0x27019654: mov edx, dword ptr [ecx + 0x40] */ 3673 MEM32(eax + 0x40) = edx; /* 0x27019657: mov dword ptr [eax + 0x40], edx */ 3674 edx = MEM32(ecx + 0x44); /* 0x2701965A: mov edx, dword ptr [ecx + 0x44] */ 3675 MEM32(eax + 0x44) = edx; /* 0x2701965D: mov dword ptr [eax + 0x44], edx */ 3676 edx = MEM32(ecx + 0x48); /* 0x27019660: mov edx, dword ptr [ecx + 0x48] */ 3677 MEM32(eax + 0x48) = edx; /* 0x27019663: mov dword ptr [eax + 0x48], edx */ 3678 edx = MEM32(ecx + 0x4C); /* 0x27019666: mov edx, dword ptr [ecx + 0x4c] */ 3679 MEM32(eax + 0x4C) = edx; /* 0x27019669: mov dword ptr [eax + 0x4c], edx */ 3680 SET_LO8(edx, MEM8(ecx + 0x50)); /* 0x2701966C: mov dl, byte ptr [ecx + 0x50] */ 3681 MEM8(eax + 0x50) = (uint8_t)(LO8(edx)); /* 0x2701966F: mov byte ptr [eax + 0x50], dl */ 3682 edx = MEM32(ecx + 0x54); /* 0x27019672: mov edx, dword ptr [ecx + 0x54] */ 3683 MEM32(eax + 0x54) = edx; /* 0x27019675: mov dword ptr [eax + 0x54], edx */ 3684 edx = MEM32(ecx + 0x58); /* 0x27019678: mov edx, dword ptr [ecx + 0x58] */ 3685 MEM32(eax + 0x58) = edx; /* 0x2701967B: mov dword ptr [eax + 0x58], edx */ 3686 edx = MEM32(ecx + 0x5C); /* 0x2701967E: mov edx, dword ptr [ecx + 0x5c] */ 3687 MEM32(eax + 0x5C) = edx; /* 0x27019681: mov dword ptr [eax + 0x5c], edx */ 3688 edx = MEM32(ecx + 0x60); /* 0x27019684: mov edx, dword ptr [ecx + 0x60] */ 3689 MEM32(eax + 0x60) = edx; /* 0x27019687: mov dword ptr [eax + 0x60], edx */ 3690 edx = MEM32(ecx + 0x64); /* 0x2701968A: mov edx, dword ptr [ecx + 0x64] */ 3691 MEM32(eax + 0x64) = edx; /* 0x2701968D: mov dword ptr [eax + 0x64], edx */ 3692 edx = MEM32(ecx + 0x68); /* 0x27019690: mov edx, dword ptr [ecx + 0x68] */ 3693 MEM32(eax + 0x68) = edx; /* 0x27019693: mov dword ptr [eax + 0x68], edx */ 3694 edx = MEM32(ecx + 0x6C); /* 0x27019696: mov edx, dword ptr [ecx + 0x6c] */ 3695 MEM32(eax + 0x6C) = edx; /* 0x27019699: mov dword ptr [eax + 0x6c], edx */ 3696 edx = MEM32(ecx + 0x70); /* 0x2701969C: mov edx, dword ptr [ecx + 0x70] */ 3697 MEM32(eax + 0x70) = edx; /* 0x2701969F: mov dword ptr [eax + 0x70], edx */ 3698 edx = MEM32(ecx + 0x74); /* 0x270196A2: mov edx, dword ptr [ecx + 0x74] */ 3699 MEM32(eax + 0x74) = edx; /* 0x270196A5: mov dword ptr [eax + 0x74], edx */ 3700 edx = MEM32(ecx + 0x78); /* 0x270196A8: mov edx, dword ptr [ecx + 0x78] */ 3701 MEM32(eax + 0x78) = edx; /* 0x270196AB: mov dword ptr [eax + 0x78], edx */ 3702 edx = MEM32(ecx + 0x7C); /* 0x270196AE: mov edx, dword ptr [ecx + 0x7c] */ 3703 MEM32(eax + 0x7C) = edx; /* 0x270196B1: mov dword ptr [eax + 0x7c], edx */ 3704 edx = MEM32(ecx + 0x80); /* 0x270196B4: mov edx, dword ptr [ecx + 0x80] */ 3705 MEM32(eax + 0x80) = edx; /* 0x270196BA: mov dword ptr [eax + 0x80], edx */ 3706 edx = MEM32(ecx + 0x84); /* 0x270196C0: mov edx, dword ptr [ecx + 0x84] */ 3707 MEM32(eax + 0x84) = edx; /* 0x270196C6: mov dword ptr [eax + 0x84], edx */ 3708 edx = MEM32(ecx + 0x88); /* 0x270196CC: mov edx, dword ptr [ecx + 0x88] */ 3709 MEM32(eax + 0x88) = edx; /* 0x270196D2: mov dword ptr [eax + 0x88], edx */ 3710 edx = MEM32(ecx + 0x8C); /* 0x270196D8: mov edx, dword ptr [ecx + 0x8c] */ 3711 MEM32(eax + 0x8C) = edx; /* 0x270196DE: mov dword ptr [eax + 0x8c], edx */ 3712 edx = MEM32(ecx + 0x90); /* 0x270196E4: mov edx, dword ptr [ecx + 0x90] */ 3713 MEM32(eax + 0x90) = edx; /* 0x270196EA: mov dword ptr [eax + 0x90], edx */ 3714 edx = MEM32(ecx + 0x94); /* 0x270196F0: mov edx, dword ptr [ecx + 0x94] */ 3715 MEM32(eax + 0x94) = edx; /* 0x270196F6: mov dword ptr [eax + 0x94], edx */ 3716 edx = MEM32(ecx + 0x98); /* 0x270196FC: mov edx, dword ptr [ecx + 0x98] */ 3717 MEM32(eax + 0x98) = edx; /* 0x27019702: mov dword ptr [eax + 0x98], edx */ 3718 edx = MEM32(ecx + 0x9C); /* 0x27019708: mov edx, dword ptr [ecx + 0x9c] */ 3719 MEM32(eax + 0x9C) = edx; /* 0x2701970E: mov dword ptr [eax + 0x9c], edx */ 3720 edx = MEM32(ecx + 0xA0); /* 0x27019714: mov edx, dword ptr [ecx + 0xa0] */ 3721 MEM32(eax + 0xA0) = edx; /* 0x2701971A: mov dword ptr [eax + 0xa0], edx */ 3722 edx = MEM32(ecx + 0xA4); /* 0x27019720: mov edx, dword ptr [ecx + 0xa4] */ 3723 MEM32(eax + 0xA4) = edx; /* 0x27019726: mov dword ptr [eax + 0xa4], edx */ 3724 SET_LO8(ecx, MEM8(ecx + 0xA8)); /* 0x2701972C: mov cl, byte ptr [ecx + 0xa8] */ 3725 edi = POP32_VAL(esp); /* 0x27019732: pop edi */ 3726 MEM8(eax + 0xA8) = (uint8_t)(LO8(ecx)); /* 0x27019733: mov byte ptr [eax + 0xa8], cl */ 3727 esi = POP32_VAL(esp); /* 0x27019739: pop esi */ 3728 ebp = POP32_VAL(esp); /* 0x2701973A: pop ebp */ 3729 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701973B: ret 4 */ 3730 RECOMP_REGS_OUT(); 3731 } 3732 3733 void sub_27019740(void) { 3734 int _fpu_cmp = 0; 3735 uint32_t _cf = 0; 3736 int _df = 1; 3737 uint32_t _flag_k = FK_NONE; 3738 uint32_t _flag_a = 0, _flag_b = 0; 3739 uint32_t _itail_tgt = 0; 3740 RECOMP_REGS_LOCALS 3741 RECOMP_ENTER(0x27019740u); 3742 3743 L_27019740: 3744 PUSH32(esp, ebp); /* 0x27019740: push ebp */ 3745 ebp = esp; /* 0x27019741: mov ebp, esp */ 3746 PUSH32(esp, ebx); /* 0x27019743: push ebx */ 3747 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x27019744: mov bl, byte ptr [ebp + 8] */ 3748 /* test LO8(ebx), 2 */ /* 0x27019747: test bl, 2 */ 3749 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3750 _cf = 0; 3751 _flag_k = FK_NARROW(FK_TEST, 24); 3752 PUSH32(esp, esi); /* 0x2701974A: push esi */ 3753 esi = ecx; /* 0x2701974B: mov esi, ecx */ 3754 if (TEST_Z(_flag_a, _flag_b)) goto L_2701977E; /* 0x2701974D: je 0x2701977e */ 3755 L_2701974F: 3756 eax = MEM32(esi + (-0x4)); /* 0x2701974F: mov eax, dword ptr [esi - 4] */ 3757 PUSH32(esp, edi); /* 0x27019752: push edi */ 3758 PUSH32(esp, 0x270198E0u); /* 0x27019753: push 0x270198e0 */ 3759 edi = esi + (-0x4); /* 0x27019758: lea edi, [esi - 4] */ 3760 PUSH32(esp, eax); /* 0x2701975B: push eax */ 3761 PUSH32(esp, 0xACu); /* 0x2701975C: push 0xac */ 3762 PUSH32(esp, esi); /* 0x27019761: push esi */ 3763 RECOMP_ICALL(0x27026DB0u); /* 0x27019762: call 0x27026db0 */ /* not lifted */ 3764 RECOMP_FLAGS_IN(); 3765 /* test LO8(ebx), 1 */ /* 0x27019767: test bl, 1 */ 3766 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3767 _cf = 0; 3768 _flag_k = FK_NARROW(FK_TEST, 24); 3769 if (TEST_Z(_flag_a, _flag_b)) goto L_27019775; /* 0x2701976A: je 0x27019775 */ 3770 L_2701976C: 3771 PUSH32(esp, edi); /* 0x2701976C: push edi */ 3772 RECOMP_ICALL(0x27026DA4u); /* 0x2701976D: call 0x27026da4 */ /* not lifted */ 3773 RECOMP_FLAGS_IN(); 3774 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3775 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3776 esp = esp + 4; /* 0x27019772: add esp, 4 */ 3777 _flag_k = FK_ADD; 3778 L_27019775: 3779 eax = edi; /* 0x27019775: mov eax, edi */ 3780 edi = POP32_VAL(esp); /* 0x27019777: pop edi */ 3781 esi = POP32_VAL(esp); /* 0x27019778: pop esi */ 3782 ebx = POP32_VAL(esp); /* 0x27019779: pop ebx */ 3783 ebp = POP32_VAL(esp); /* 0x2701977A: pop ebp */ 3784 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701977B: ret 4 */ 3785 L_2701977E: 3786 ecx = esi; /* 0x2701977E: mov ecx, esi */ 3787 RECOMP_ICALL(0x270198E0u); /* 0x27019780: call 0x270198e0 */ /* not lifted */ 3788 RECOMP_FLAGS_IN(); 3789 /* test LO8(ebx), 1 */ /* 0x27019785: test bl, 1 */ 3790 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3791 _cf = 0; 3792 _flag_k = FK_NARROW(FK_TEST, 24); 3793 if (TEST_Z(_flag_a, _flag_b)) goto L_27019793; /* 0x27019788: je 0x27019793 */ 3794 L_2701978A: 3795 PUSH32(esp, esi); /* 0x2701978A: push esi */ 3796 RECOMP_ICALL(0x27026DA4u); /* 0x2701978B: call 0x27026da4 */ /* not lifted */ 3797 RECOMP_FLAGS_IN(); 3798 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3799 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3800 esp = esp + 4; /* 0x27019790: add esp, 4 */ 3801 _flag_k = FK_ADD; 3802 L_27019793: 3803 eax = esi; /* 0x27019793: mov eax, esi */ 3804 esi = POP32_VAL(esp); /* 0x27019795: pop esi */ 3805 ebx = POP32_VAL(esp); /* 0x27019796: pop ebx */ 3806 ebp = POP32_VAL(esp); /* 0x27019797: pop ebp */ 3807 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27019798: ret 4 */ 3808 RECOMP_REGS_OUT(); 3809 } 3810 3811 void sub_270197A0(void) { 3812 int _fpu_cmp = 0; 3813 uint32_t _cf = 0; 3814 int _df = 1; 3815 uint32_t _flag_k = FK_NONE; 3816 uint32_t _flag_a = 0, _flag_b = 0; 3817 uint32_t _itail_tgt = 0; 3818 RECOMP_REGS_LOCALS 3819 RECOMP_ENTER(0x270197A0u); 3820 3821 L_270197A0: 3822 PUSH32(esp, ebp); /* 0x270197A0: push ebp */ 3823 ebp = esp; /* 0x270197A1: mov ebp, esp */ 3824 PUSH32(esp, 0xFFFFFFFFu); /* 0x270197A3: push -1 */ 3825 PUSH32(esp, 0x27027D48u); /* 0x270197A5: push 0x27027d48 */ 3826 eax = MEM32(FS_BASE + (0)); /* 0x270197AA: mov eax, dword ptr fs:[0] */ 3827 PUSH32(esp, eax); /* 0x270197B0: push eax */ 3828 MEM32(FS_BASE + (0)) = esp; /* 0x270197B1: mov dword ptr fs:[0], esp */ 3829 PUSH32(esp, ecx); /* 0x270197B8: push ecx */ 3830 eax = MEM32(ebp + 0x30); /* 0x270197B9: mov eax, dword ptr [ebp + 0x30] */ 3831 PUSH32(esp, ebx); /* 0x270197BC: push ebx */ 3832 PUSH32(esp, esi); /* 0x270197BD: push esi */ 3833 PUSH32(esp, edi); /* 0x270197BE: push edi */ 3834 esi = ecx; /* 0x270197BF: mov esi, ecx */ 3835 PUSH32(esp, eax); /* 0x270197C1: push eax */ 3836 MEM32(ebp + (-0x10)) = esi; /* 0x270197C2: mov dword ptr [ebp - 0x10], esi */ 3837 RECOMP_ICALL(0x270104B0u); /* 0x270197C5: call 0x270104b0 */ /* not lifted */ 3838 RECOMP_FLAGS_IN(); 3839 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3840 eax = 0; /* 0x270197CA: xor eax, eax */ 3841 _cf = 0; 3842 _flag_k = FK_TEST; 3843 MEM32(esi + 0x5C) = eax; /* 0x270197CC: mov dword ptr [esi + 0x5c], eax */ 3844 MEM32(esi + 0x60) = eax; /* 0x270197CF: mov dword ptr [esi + 0x60], eax */ 3845 MEM32(esi + 0x64) = eax; /* 0x270197D2: mov dword ptr [esi + 0x64], eax */ 3846 MEM32(esi + 0x68) = eax; /* 0x270197D5: mov dword ptr [esi + 0x68], eax */ 3847 MEM32(esi + 0x6C) = eax; /* 0x270197D8: mov dword ptr [esi + 0x6c], eax */ 3848 MEM32(esi + 0x70) = eax; /* 0x270197DB: mov dword ptr [esi + 0x70], eax */ 3849 MEM32(esi + 0x74) = eax; /* 0x270197DE: mov dword ptr [esi + 0x74], eax */ 3850 MEM32(esi + 0x78) = eax; /* 0x270197E1: mov dword ptr [esi + 0x78], eax */ 3851 MEM32(esi + 0x7C) = eax; /* 0x270197E4: mov dword ptr [esi + 0x7c], eax */ 3852 MEM32(esi + 0x80) = eax; /* 0x270197E7: mov dword ptr [esi + 0x80], eax */ 3853 edx = MEM32(ebp + 0x24); /* 0x270197ED: mov edx, dword ptr [ebp + 0x24] */ 3854 edi = MEM32(ebp + 0x8); /* 0x270197F0: mov edi, dword ptr [ebp + 8] */ 3855 ebx = MEM32(ebp + 0xC); /* 0x270197F3: mov ebx, dword ptr [ebp + 0xc] */ 3856 MEM32(esi + 0x84) = edx; /* 0x270197F6: mov dword ptr [esi + 0x84], edx */ 3857 edx = MEM32(ebp + 0x28); /* 0x270197FC: mov edx, dword ptr [ebp + 0x28] */ 3858 MEM32(esi + 0x90) = eax; /* 0x270197FF: mov dword ptr [esi + 0x90], eax */ 3859 MEM32(esi + 0x94) = eax; /* 0x27019805: mov dword ptr [esi + 0x94], eax */ 3860 MEM32(esi + 0x98) = eax; /* 0x2701980B: mov dword ptr [esi + 0x98], eax */ 3861 MEM32(esi + 0x9C) = eax; /* 0x27019811: mov dword ptr [esi + 0x9c], eax */ 3862 MEM32(esi + 0x88) = edx; /* 0x27019817: mov dword ptr [esi + 0x88], edx */ 3863 edx = MEM32(ebp + 0x2C); /* 0x2701981D: mov edx, dword ptr [ebp + 0x2c] */ 3864 ecx = esi + 0x64; /* 0x27019820: lea ecx, [esi + 0x64] */ 3865 MEM32(esi + 0x8C) = edx; /* 0x27019823: mov dword ptr [esi + 0x8c], edx */ 3866 MEM32(esi + 0xA0) = eax; /* 0x27019829: mov dword ptr [esi + 0xa0], eax */ 3867 MEM32(esi + 0xA4) = eax; /* 0x2701982F: mov dword ptr [esi + 0xa4], eax */ 3868 MEM8(esi + 0xA8) = (uint8_t)(LO8(eax)); /* 0x27019835: mov byte ptr [esi + 0xa8], al */ 3869 MEM32(esi) = 0x270344C0u; /* 0x2701983B: mov dword ptr [esi], 0x270344c0 */ 3870 MEM32(ebp + (-0x4)) = eax; /* 0x27019841: mov dword ptr [ebp - 4], eax */ 3871 eax = MEM32(edi); /* 0x27019844: mov eax, dword ptr [edi] */ 3872 MEM32(esi + 0x54) = eax; /* 0x27019846: mov dword ptr [esi + 0x54], eax */ 3873 edx = MEM32(edi + 0x4); /* 0x27019849: mov edx, dword ptr [edi + 4] */ 3874 MEM32(esi + 0x58) = edx; /* 0x2701984C: mov dword ptr [esi + 0x58], edx */ 3875 eax = MEM32(ebx); /* 0x2701984F: mov eax, dword ptr [ebx] */ 3876 MEM32(esi + 0x5C) = eax; /* 0x27019851: mov dword ptr [esi + 0x5c], eax */ 3877 edx = MEM32(ebx + 0x4); /* 0x27019854: mov edx, dword ptr [ebx + 4] */ 3878 eax = MEM32(ebp + 0x10); /* 0x27019857: mov eax, dword ptr [ebp + 0x10] */ 3879 MEM32(esi + 0x60) = edx; /* 0x2701985A: mov dword ptr [esi + 0x60], edx */ 3880 edx = MEM32(eax); /* 0x2701985D: mov edx, dword ptr [eax] */ 3881 MEM32(ecx) = edx; /* 0x2701985F: mov dword ptr [ecx], edx */ 3882 eax = MEM32(eax + 0x4); /* 0x27019861: mov eax, dword ptr [eax + 4] */ 3883 MEM32(ecx + 0x4) = eax; /* 0x27019864: mov dword ptr [ecx + 4], eax */ 3884 eax = MEM32(ebp + 0x14); /* 0x27019867: mov eax, dword ptr [ebp + 0x14] */ 3885 edx = MEM32(eax); /* 0x2701986A: mov edx, dword ptr [eax] */ 3886 MEM32(esi + 0x6C) = edx; /* 0x2701986C: mov dword ptr [esi + 0x6c], edx */ 3887 eax = MEM32(eax + 0x4); /* 0x2701986F: mov eax, dword ptr [eax + 4] */ 3888 MEM32(esi + 0x70) = eax; /* 0x27019872: mov dword ptr [esi + 0x70], eax */ 3889 eax = MEM32(ebp + 0x18); /* 0x27019875: mov eax, dword ptr [ebp + 0x18] */ 3890 edx = MEM32(eax); /* 0x27019878: mov edx, dword ptr [eax] */ 3891 MEM32(esi + 0x74) = edx; /* 0x2701987A: mov dword ptr [esi + 0x74], edx */ 3892 eax = MEM32(eax + 0x4); /* 0x2701987D: mov eax, dword ptr [eax + 4] */ 3893 MEM32(esi + 0x78) = eax; /* 0x27019880: mov dword ptr [esi + 0x78], eax */ 3894 eax = MEM32(ebp + 0x1C); /* 0x27019883: mov eax, dword ptr [ebp + 0x1c] */ 3895 edx = MEM32(eax); /* 0x27019886: mov edx, dword ptr [eax] */ 3896 MEM32(esi + 0x7C) = edx; /* 0x27019888: mov dword ptr [esi + 0x7c], edx */ 3897 eax = MEM32(eax + 0x4); /* 0x2701988B: mov eax, dword ptr [eax + 4] */ 3898 MEM32(esi + 0x80) = eax; /* 0x2701988E: mov dword ptr [esi + 0x80], eax */ 3899 SET_LO8(eax, 1); /* 0x27019894: mov al, 1 */ 3900 PUSH32(esp, ecx); /* 0x27019896: push ecx */ 3901 ecx = esi; /* 0x27019897: mov ecx, esi */ 3902 MEM8(esi + 0x24) = (uint8_t)(LO8(eax)); /* 0x27019899: mov byte ptr [esi + 0x24], al */ 3903 MEM8(esi + 0x25) = (uint8_t)(LO8(eax)); /* 0x2701989C: mov byte ptr [esi + 0x25], al */ 3904 RECOMP_ICALL(0x27010A90u); /* 0x2701989F: call 0x27010a90 */ /* not lifted */ 3905 RECOMP_FLAGS_IN(); 3906 PUSH32(esp, edi); /* 0x270198A4: push edi */ 3907 ecx = esi; /* 0x270198A5: mov ecx, esi */ 3908 RECOMP_ICALL(0x27019C90u); /* 0x270198A7: call 0x27019c90 */ /* not lifted */ 3909 RECOMP_FLAGS_IN(); 3910 PUSH32(esp, ebx); /* 0x270198AC: push ebx */ 3911 ecx = esi; /* 0x270198AD: mov ecx, esi */ 3912 RECOMP_ICALL(0x27019CD0u); /* 0x270198AF: call 0x27019cd0 */ /* not lifted */ 3913 RECOMP_FLAGS_IN(); 3914 ecx = MEM32(ebp + 0x20); /* 0x270198B4: mov ecx, dword ptr [ebp + 0x20] */ 3915 PUSH32(esp, ecx); /* 0x270198B7: push ecx */ 3916 ecx = esi; /* 0x270198B8: mov ecx, esi */ 3917 RECOMP_ICALL(0x270105B0u); /* 0x270198BA: call 0x270105b0 */ /* not lifted */ 3918 RECOMP_FLAGS_IN(); 3919 ecx = MEM32(ebp + (-0xC)); /* 0x270198BF: mov ecx, dword ptr [ebp - 0xc] */ 3920 edi = POP32_VAL(esp); /* 0x270198C2: pop edi */ 3921 eax = esi; /* 0x270198C3: mov eax, esi */ 3922 esi = POP32_VAL(esp); /* 0x270198C5: pop esi */ 3923 ebx = POP32_VAL(esp); /* 0x270198C6: pop ebx */ 3924 MEM32(FS_BASE + (0)) = ecx; /* 0x270198C7: mov dword ptr fs:[0], ecx */ 3925 esp = ebp; /* 0x270198CE: mov esp, ebp */ 3926 ebp = POP32_VAL(esp); /* 0x270198D0: pop ebp */ 3927 RECOMP_FLAGS_OUT(); esp += 48; { RECOMP_REGS_OUT(); return; } /* 0x270198D1: ret 0x2c */ 3928 RECOMP_REGS_OUT(); 3929 } 3930 3931 void sub_270198E0(void) { 3932 int _fpu_cmp = 0; 3933 uint32_t _cf = 0; 3934 int _df = 1; 3935 uint32_t _flag_k = FK_NONE; 3936 uint32_t _flag_a = 0, _flag_b = 0; 3937 uint32_t _itail_tgt = 0; 3938 RECOMP_REGS_LOCALS 3939 RECOMP_ENTER(0x270198E0u); 3940 3941 L_270198E0: 3942 PUSH32(esp, ebp); /* 0x270198E0: push ebp */ 3943 ebp = esp; /* 0x270198E1: mov ebp, esp */ 3944 PUSH32(esp, 0xFFFFFFFFu); /* 0x270198E3: push -1 */ 3945 PUSH32(esp, 0x27027D68u); /* 0x270198E5: push 0x27027d68 */ 3946 eax = MEM32(FS_BASE + (0)); /* 0x270198EA: mov eax, dword ptr fs:[0] */ 3947 PUSH32(esp, eax); /* 0x270198F0: push eax */ 3948 MEM32(FS_BASE + (0)) = esp; /* 0x270198F1: mov dword ptr fs:[0], esp */ 3949 PUSH32(esp, ecx); /* 0x270198F8: push ecx */ 3950 PUSH32(esp, esi); /* 0x270198F9: push esi */ 3951 esi = ecx; /* 0x270198FA: mov esi, ecx */ 3952 MEM32(ebp + (-0x10)) = esi; /* 0x270198FC: mov dword ptr [ebp - 0x10], esi */ 3953 MEM32(esi) = 0x270344C0u; /* 0x270198FF: mov dword ptr [esi], 0x270344c0 */ 3954 MEM32(ebp + (-0x4)) = 0; /* 0x27019905: mov dword ptr [ebp - 4], 0 */ 3955 RECOMP_ICALL(0x27019C20u); /* 0x2701990C: call 0x27019c20 */ /* not lifted */ 3956 RECOMP_FLAGS_IN(); 3957 ecx = esi; /* 0x27019911: mov ecx, esi */ 3958 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27019913: mov dword ptr [ebp - 4], 0xffffffff */ 3959 RECOMP_ICALL(0x27010510u); /* 0x2701991A: call 0x27010510 */ /* not lifted */ 3960 RECOMP_FLAGS_IN(); 3961 ecx = MEM32(ebp + (-0xC)); /* 0x2701991F: mov ecx, dword ptr [ebp - 0xc] */ 3962 esi = POP32_VAL(esp); /* 0x27019922: pop esi */ 3963 MEM32(FS_BASE + (0)) = ecx; /* 0x27019923: mov dword ptr fs:[0], ecx */ 3964 esp = ebp; /* 0x2701992A: mov esp, ebp */ 3965 ebp = POP32_VAL(esp); /* 0x2701992C: pop ebp */ 3966 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701992D: ret */ 3967 RECOMP_REGS_OUT(); 3968 } 3969 3970 void sub_27019930(void) { 3971 int _fpu_cmp = 0; 3972 uint32_t _cf = 0; 3973 int _df = 1; 3974 uint32_t _flag_k = FK_NONE; 3975 uint32_t _flag_a = 0, _flag_b = 0; 3976 uint32_t _itail_tgt = 0; 3977 RECOMP_REGS_LOCALS 3978 RECOMP_ENTER(0x27019930u); 3979 3980 L_27019930: 3981 PUSH32(esp, ebp); /* 0x27019930: push ebp */ 3982 ebp = esp; /* 0x27019931: mov ebp, esp */ 3983 SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x27019933: mov al, byte ptr [ebp + 0x14] */ 3984 /* test LO8(eax), LO8(eax) */ /* 0x27019936: test al, al */ 3985 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3986 _cf = 0; 3987 _flag_k = FK_NARROW(FK_TEST, 24); 3988 if (TEST_NZ(_flag_a, _flag_b)) goto L_27019963; /* 0x27019938: jne 0x27019963 */ 3989 L_2701993A: 3990 eax = MEM32(ebp + 0xC); /* 0x2701993A: mov eax, dword ptr [ebp + 0xc] */ 3991 edx = MEM32(ebp + 0x8); /* 0x2701993D: mov edx, dword ptr [ebp + 8] */ 3992 PUSH32(esp, eax); /* 0x27019940: push eax */ 3993 PUSH32(esp, edx); /* 0x27019941: push edx */ 3994 RECOMP_ICALL(0x27010980u); /* 0x27019942: call 0x27010980 */ /* not lifted */ 3995 RECOMP_FLAGS_IN(); 3996 /* test LO8(eax), LO8(eax) */ /* 0x27019947: test al, al */ 3997 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3998 _cf = 0; 3999 _flag_k = FK_NARROW(FK_TEST, 24); 4000 if (TEST_Z(_flag_a, _flag_b)) goto L_27019963; /* 0x27019949: je 0x27019963 */ 4001 L_2701994B: 4002 PUSH32(esp, 0x36u); /* 0x2701994B: push 0x36 */ 4003 PUSH32(esp, 2); /* 0x2701994D: push 2 */ 4004 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x2701994F: call dword ptr [0x270291d0] */ 4005 RECOMP_FLAGS_IN(); 4006 ecx = eax; /* 0x27019955: mov ecx, eax */ 4007 RECOMP_ICALL(MEM32(0x270291D4)); /* 0x27019957: call dword ptr [0x270291d4] */ 4008 RECOMP_FLAGS_IN(); 4009 SET_LO8(eax, 1); /* 0x2701995D: mov al, 1 */ 4010 ebp = POP32_VAL(esp); /* 0x2701995F: pop ebp */ 4011 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019960: ret 0x10 */ 4012 L_27019963: 4013 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 4014 SET_LO8(eax, 0); /* 0x27019963: xor al, al */ 4015 _cf = 0; 4016 _flag_k = FK_NARROW(FK_TEST, 24); 4017 ebp = POP32_VAL(esp); /* 0x27019965: pop ebp */ 4018 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019966: ret 0x10 */ 4019 RECOMP_REGS_OUT(); 4020 } 4021 4022 void sub_27019970(void) { 4023 int _fpu_cmp = 0; 4024 uint32_t _cf = 0; 4025 int _df = 1; 4026 uint32_t _flag_k = FK_NONE; 4027 uint32_t _flag_a = 0, _flag_b = 0; 4028 uint32_t _itail_tgt = 0; 4029 RECOMP_REGS_LOCALS 4030 RECOMP_ENTER(0x27019970u); 4031 4032 L_27019970: 4033 PUSH32(esp, ebp); /* 0x27019970: push ebp */ 4034 ebp = esp; /* 0x27019971: mov ebp, esp */ 4035 PUSH32(esp, 0xFFFFFFFFu); /* 0x27019973: push -1 */ 4036 PUSH32(esp, 0x27027D96u); /* 0x27019975: push 0x27027d96 */ 4037 eax = MEM32(FS_BASE + (0)); /* 0x2701997A: mov eax, dword ptr fs:[0] */ 4038 PUSH32(esp, eax); /* 0x27019980: push eax */ 4039 MEM32(FS_BASE + (0)) = esp; /* 0x27019981: mov dword ptr fs:[0], esp */ 4040 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4042 esp = esp - 0x14u; /* 0x27019988: sub esp, 0x14 */ 4043 _flag_k = FK_CMP; 4044 PUSH32(esp, esi); /* 0x2701998B: push esi */ 4045 esi = ecx; /* 0x2701998C: mov esi, ecx */ 4046 eax = MEM32(esi + 0x5C); /* 0x2701998E: mov eax, dword ptr [esi + 0x5c] */ 4047 ecx = MEM32(esi + 0x60); /* 0x27019991: mov ecx, dword ptr [esi + 0x60] */ 4048 MEM32(esi + 0xA0) = eax; /* 0x27019994: mov dword ptr [esi + 0xa0], eax */ 4049 eax = MEM32(esi + 0x8C); /* 0x2701999A: mov eax, dword ptr [esi + 0x8c] */ 4050 /* cmp eax, 0xFFFFFFFFu */ /* 0x270199A0: cmp eax, -1 */ 4051 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4053 _flag_k = FK_CMP; 4054 PUSH32(esp, edi); /* 0x270199A3: push edi */ 4055 MEM8(esi + 0xA8) = (uint8_t)(1); /* 0x270199A4: mov byte ptr [esi + 0xa8], 1 */ 4056 MEM32(esi + 0xA4) = ecx; /* 0x270199AB: mov dword ptr [esi + 0xa4], ecx */ 4057 if (CMP_NE(_flag_a, _flag_b)) goto L_270199FD; /* 0x270199B1: jne 0x270199fd */ 4058 L_270199B3: 4059 PUSH32(esp, 0x34u); /* 0x270199B3: push 0x34 */ 4060 RECOMP_ICALL(0x27026EA4u); /* 0x270199B5: call 0x27026ea4 */ /* not lifted */ 4061 RECOMP_FLAGS_IN(); 4062 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4063 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4064 esp = esp + 4; /* 0x270199BA: add esp, 4 */ 4065 _flag_k = FK_ADD; 4066 MEM32(ebp + (-0x14)) = eax; /* 0x270199BD: mov dword ptr [ebp - 0x14], eax */ 4067 /* test eax, eax */ /* 0x270199C0: test eax, eax */ 4068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4069 _cf = 0; 4070 _flag_k = FK_TEST; 4071 MEM32(ebp + (-0x4)) = 0; /* 0x270199C2: mov dword ptr [ebp - 4], 0 */ 4072 if (TEST_Z(_flag_a, _flag_b)) goto L_270199DB; /* 0x270199C9: je 0x270199db */ 4073 L_270199CB: 4074 PUSH32(esp, 2); /* 0x270199CB: push 2 */ 4075 PUSH32(esp, 0x10u); /* 0x270199CD: push 0x10 */ 4076 PUSH32(esp, 0x10u); /* 0x270199CF: push 0x10 */ 4077 ecx = eax; /* 0x270199D1: mov ecx, eax */ 4078 RECOMP_ICALL(MEM32(0x2702920C)); /* 0x270199D3: call dword ptr [0x2702920c] */ 4079 RECOMP_FLAGS_IN(); 4080 goto L_270199DD; /* 0x270199D9: jmp 0x270199dd */ 4081 L_270199DB: 4082 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4083 eax = 0; /* 0x270199DB: xor eax, eax */ 4084 _cf = 0; 4085 _flag_k = FK_TEST; 4086 L_270199DD: 4087 PUSH32(esp, 0); /* 0x270199DD: push 0 */ 4088 PUSH32(esp, 0x88FFu); /* 0x270199DF: push 0x88ff */ 4089 PUSH32(esp, 0); /* 0x270199E4: push 0 */ 4090 ecx = eax; /* 0x270199E6: mov ecx, eax */ 4091 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x270199E8: mov dword ptr [ebp - 4], 0xffffffff */ 4092 MEM32(esi + 0x98) = eax; /* 0x270199EF: mov dword ptr [esi + 0x98], eax */ 4093 RECOMP_ICALL(MEM32(0x27029270)); /* 0x270199F5: call dword ptr [0x27029270] */ 4094 RECOMP_FLAGS_IN(); 4095 goto L_27019A14; /* 0x270199FB: jmp 0x27019a14 */ 4096 L_270199FD: 4097 PUSH32(esp, 1); /* 0x270199FD: push 1 */ 4098 PUSH32(esp, eax); /* 0x270199FF: push eax */ 4099 RECOMP_ICALL(MEM32(0x2702939C)); /* 0x27019A00: call dword ptr [0x2702939c] */ 4100 RECOMP_FLAGS_IN(); 4101 ecx = eax; /* 0x27019A06: mov ecx, eax */ 4102 RECOMP_ICALL(MEM32(0x270293A4)); /* 0x27019A08: call dword ptr [0x270293a4] */ 4103 RECOMP_FLAGS_IN(); 4104 MEM32(esi + 0x98) = eax; /* 0x27019A0E: mov dword ptr [esi + 0x98], eax */ 4105 L_27019A14: 4106 PUSH32(esp, 0xD8u); /* 0x27019A14: push 0xd8 */ 4107 MEM32(ebp + (-0x20)) = 0; /* 0x27019A19: mov dword ptr [ebp - 0x20], 0 */ 4108 MEM32(ebp + (-0x1C)) = 0; /* 0x27019A20: mov dword ptr [ebp - 0x1c], 0 */ 4109 RECOMP_ICALL(0x27026EA4u); /* 0x27019A27: call 0x27026ea4 */ /* not lifted */ 4110 RECOMP_FLAGS_IN(); 4111 edi = eax; /* 0x27019A2C: mov edi, eax */ 4112 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4113 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4114 esp = esp + 4; /* 0x27019A2E: add esp, 4 */ 4115 _flag_k = FK_ADD; 4116 MEM32(ebp + (-0x18)) = edi; /* 0x27019A31: mov dword ptr [ebp - 0x18], edi */ 4117 /* test edi, edi */ /* 0x27019A34: test edi, edi */ 4118 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4119 _cf = 0; 4120 _flag_k = FK_TEST; 4121 MEM32(ebp + (-0x4)) = 1; /* 0x27019A36: mov dword ptr [ebp - 4], 1 */ 4122 if (TEST_Z(_flag_a, _flag_b)) goto L_27019A79; /* 0x27019A3D: je 0x27019a79 */ 4123 L_27019A3F: 4124 ecx = MEM32(esi + 0x98); /* 0x27019A3F: mov ecx, dword ptr [esi + 0x98] */ 4125 edx = ebp + (-0x10); /* 0x27019A45: lea edx, [ebp - 0x10] */ 4126 PUSH32(esp, edx); /* 0x27019A48: push edx */ 4127 eax = ebp + (-0x14); /* 0x27019A49: lea eax, [ebp - 0x14] */ 4128 PUSH32(esp, eax); /* 0x27019A4C: push eax */ 4129 PUSH32(esp, 0); /* 0x27019A4D: push 0 */ 4130 PUSH32(esp, 0x7918u); /* 0x27019A4F: push 0x7918 */ 4131 PUSH32(esp, ecx); /* 0x27019A54: push ecx */ 4132 edx = ebp + (-0x20); /* 0x27019A55: lea edx, [ebp - 0x20] */ 4133 PUSH32(esp, edx); /* 0x27019A58: push edx */ 4134 ecx = edi; /* 0x27019A59: mov ecx, edi */ 4135 MEM32(ebp + (-0x10)) = 0x3F800000u; /* 0x27019A5B: mov dword ptr [ebp - 0x10], 0x3f800000 */ 4136 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x27019A62: mov dword ptr [ebp - 0x14], 0x3f800000 */ 4137 RECOMP_ICALL(MEM32(0x27029208)); /* 0x27019A69: call dword ptr [0x27029208] */ 4138 RECOMP_FLAGS_IN(); 4139 MEM32(edi) = 0x27034304u; /* 0x27019A6F: mov dword ptr [edi], 0x27034304 */ 4140 ecx = edi; /* 0x27019A75: mov ecx, edi */ 4141 goto L_27019A7B; /* 0x27019A77: jmp 0x27019a7b */ 4142 L_27019A79: 4143 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4144 ecx = 0; /* 0x27019A79: xor ecx, ecx */ 4145 _cf = 0; 4146 _flag_k = FK_TEST; 4147 L_27019A7B: 4148 PUSH32(esp, 0x80u); /* 0x27019A7B: push 0x80 */ 4149 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27019A80: mov dword ptr [ebp - 4], 0xffffffff */ 4150 MEM32(esi + 0x9C) = ecx; /* 0x27019A87: mov dword ptr [esi + 0x9c], ecx */ 4151 RECOMP_ICALL(MEM32(0x27029224)); /* 0x27019A8D: call dword ptr [0x27029224] */ 4152 RECOMP_FLAGS_IN(); 4153 ecx = MEM32(esi + 0x9C); /* 0x27019A93: mov ecx, dword ptr [esi + 0x9c] */ 4154 eax = MEM32(ecx); /* 0x27019A99: mov eax, dword ptr [ecx] */ 4155 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x27019A9B: call dword ptr [eax + 0xc] */ 4156 RECOMP_FLAGS_IN(); 4157 ecx = MEM32(ebp + (-0xC)); /* 0x27019A9E: mov ecx, dword ptr [ebp - 0xc] */ 4158 edi = POP32_VAL(esp); /* 0x27019AA1: pop edi */ 4159 esi = POP32_VAL(esp); /* 0x27019AA2: pop esi */ 4160 MEM32(FS_BASE + (0)) = ecx; /* 0x27019AA3: mov dword ptr fs:[0], ecx */ 4161 esp = ebp; /* 0x27019AAA: mov esp, ebp */ 4162 ebp = POP32_VAL(esp); /* 0x27019AAC: pop ebp */ 4163 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019AAD: ret */ 4164 RECOMP_REGS_OUT(); 4165 } 4166 4167 void sub_27019AB0(void) { 4168 int _fpu_cmp = 0; 4169 uint32_t _cf = 0; 4170 int _df = 1; 4171 uint32_t _flag_k = FK_NONE; 4172 uint32_t _flag_a = 0, _flag_b = 0; 4173 uint32_t _itail_tgt = 0; 4174 RECOMP_REGS_LOCALS 4175 RECOMP_ENTER(0x27019AB0u); 4176 4177 L_27019AB0: 4178 PUSH32(esp, ebp); /* 0x27019AB0: push ebp */ 4179 ebp = esp; /* 0x27019AB1: mov ebp, esp */ 4180 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4182 esp = esp - 0x10u; /* 0x27019AB3: sub esp, 0x10 */ 4183 _flag_k = FK_CMP; 4184 PUSH32(esp, esi); /* 0x27019AB6: push esi */ 4185 esi = ecx; /* 0x27019AB7: mov esi, ecx */ 4186 eax = MEM32(esi + 0x28); /* 0x27019AB9: mov eax, dword ptr [esi + 0x28] */ 4187 /* test eax, eax */ /* 0x27019ABC: test eax, eax */ 4188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4189 _cf = 0; 4190 _flag_k = FK_TEST; 4191 ecx = MEM32(esi + 0x54); /* 0x27019ABE: mov ecx, dword ptr [esi + 0x54] */ 4192 edx = MEM32(esi + 0x58); /* 0x27019AC1: mov edx, dword ptr [esi + 0x58] */ 4193 PUSH32(esp, edi); /* 0x27019AC4: push edi */ 4194 MEM32(ebp + (-0x10)) = ecx; /* 0x27019AC5: mov dword ptr [ebp - 0x10], ecx */ 4195 MEM32(ebp + (-0xC)) = edx; /* 0x27019AC8: mov dword ptr [ebp - 0xc], edx */ 4196 if (TEST_Z(_flag_a, _flag_b)) goto L_27019AD9; /* 0x27019ACB: je 0x27019ad9 */ 4197 L_27019ACD: 4198 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x2C)); 4199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4200 ecx = ecx + MEM32(eax + 0x2C); /* 0x27019ACD: add ecx, dword ptr [eax + 0x2c] */ 4201 _flag_k = FK_ADD; 4202 MEM32(ebp + (-0x10)) = ecx; /* 0x27019AD0: mov dword ptr [ebp - 0x10], ecx */ 4203 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x30)); 4204 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4205 edx = edx + MEM32(eax + 0x30); /* 0x27019AD3: add edx, dword ptr [eax + 0x30] */ 4206 _flag_k = FK_ADD; 4207 MEM32(ebp + (-0xC)) = edx; /* 0x27019AD6: mov dword ptr [ebp - 0xc], edx */ 4208 L_27019AD9: 4209 PUSH32(esp, ebx); /* 0x27019AD9: push ebx */ 4210 ebx = MEM32(0x27029278); /* 0x27019ADA: mov ebx, dword ptr [0x27029278] */ 4211 RECOMP_ICALL(ebx); /* 0x27019AE0: call ebx */ 4212 RECOMP_FLAGS_IN(); 4213 ecx = eax; /* 0x27019AE2: mov ecx, eax */ 4214 RECOMP_ICALL(MEM32(0x2702927C)); /* 0x27019AE4: call dword ptr [0x2702927c] */ 4215 RECOMP_FLAGS_IN(); 4216 edi = eax; /* 0x27019AEA: mov edi, eax */ 4217 RECOMP_ICALL(ebx); /* 0x27019AEC: call ebx */ 4218 RECOMP_FLAGS_IN(); 4219 ecx = eax; /* 0x27019AEE: mov ecx, eax */ 4220 RECOMP_ICALL(MEM32(0x27029280)); /* 0x27019AF0: call dword ptr [0x27029280] */ 4221 RECOMP_FLAGS_IN(); 4222 edx = MEM32(ebp + 0x8); /* 0x27019AF6: mov edx, dword ptr [ebp + 8] */ 4223 /* cmp edx, edi */ /* 0x27019AF9: cmp edx, edi */ 4224 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 4225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4226 _flag_k = FK_CMP; 4227 if (CMP_LE(_flag_a, _flag_b)) goto L_27019AFF; /* 0x27019AFB: jle 0x27019aff */ 4228 L_27019AFD: 4229 edx = edi; /* 0x27019AFD: mov edx, edi */ 4230 L_27019AFF: 4231 ecx = MEM32(ebp + 0xC); /* 0x27019AFF: mov ecx, dword ptr [ebp + 0xc] */ 4232 /* cmp ecx, eax */ /* 0x27019B02: cmp ecx, eax */ 4233 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4235 _flag_k = FK_CMP; 4236 if (CMP_LE(_flag_a, _flag_b)) goto L_27019B08; /* 0x27019B04: jle 0x27019b08 */ 4237 L_27019B06: 4238 ecx = eax; /* 0x27019B06: mov ecx, eax */ 4239 L_27019B08: 4240 eax = MEM32(ebp + (-0x10)); /* 0x27019B08: mov eax, dword ptr [ebp - 0x10] */ 4241 ebx = MEM32(ebp + (-0xC)); /* 0x27019B0B: mov ebx, dword ptr [ebp - 0xc] */ 4242 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4244 edx = edx - eax; /* 0x27019B0E: sub edx, eax */ 4245 _flag_k = FK_CMP; 4246 eax = MEM32(esi + 0x6C); /* 0x27019B10: mov eax, dword ptr [esi + 0x6c] */ 4247 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4249 ecx = ecx - ebx; /* 0x27019B13: sub ecx, ebx */ 4250 _flag_k = FK_CMP; 4251 /* cmp edx, eax */ /* 0x27019B15: cmp edx, eax */ 4252 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4254 _flag_k = FK_CMP; 4255 MEM32(ebp + (-0x8)) = edx; /* 0x27019B17: mov dword ptr [ebp - 8], edx */ 4256 MEM32(ebp + (-0x4)) = ecx; /* 0x27019B1A: mov dword ptr [ebp - 4], ecx */ 4257 ebx = POP32_VAL(esp); /* 0x27019B1D: pop ebx */ 4258 if (CMP_GE(_flag_a, _flag_b)) goto L_27019B25; /* 0x27019B1E: jge 0x27019b25 */ 4259 L_27019B20: 4260 edx = eax; /* 0x27019B20: mov edx, eax */ 4261 MEM32(ebp + (-0x8)) = edx; /* 0x27019B22: mov dword ptr [ebp - 8], edx */ 4262 L_27019B25: 4263 eax = MEM32(esi + 0x70); /* 0x27019B25: mov eax, dword ptr [esi + 0x70] */ 4264 /* cmp ecx, eax */ /* 0x27019B28: cmp ecx, eax */ 4265 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4267 _flag_k = FK_CMP; 4268 if (CMP_GE(_flag_a, _flag_b)) goto L_27019B31; /* 0x27019B2A: jge 0x27019b31 */ 4269 L_27019B2C: 4270 ecx = eax; /* 0x27019B2C: mov ecx, eax */ 4271 MEM32(ebp + (-0x4)) = ecx; /* 0x27019B2E: mov dword ptr [ebp - 4], ecx */ 4272 L_27019B31: 4273 eax = MEM32(esi + 0x74); /* 0x27019B31: mov eax, dword ptr [esi + 0x74] */ 4274 /* cmp edx, eax */ /* 0x27019B34: cmp edx, eax */ 4275 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4277 _flag_k = FK_CMP; 4278 if (CMP_LE(_flag_a, _flag_b)) goto L_27019B3D; /* 0x27019B36: jle 0x27019b3d */ 4279 L_27019B38: 4280 edx = eax; /* 0x27019B38: mov edx, eax */ 4281 MEM32(ebp + (-0x8)) = edx; /* 0x27019B3A: mov dword ptr [ebp - 8], edx */ 4282 L_27019B3D: 4283 eax = MEM32(esi + 0x78); /* 0x27019B3D: mov eax, dword ptr [esi + 0x78] */ 4284 /* cmp ecx, eax */ /* 0x27019B40: cmp ecx, eax */ 4285 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4287 _flag_k = FK_CMP; 4288 if (CMP_LE(_flag_a, _flag_b)) goto L_27019B49; /* 0x27019B42: jle 0x27019b49 */ 4289 L_27019B44: 4290 ecx = eax; /* 0x27019B44: mov ecx, eax */ 4291 MEM32(ebp + (-0x4)) = ecx; /* 0x27019B46: mov dword ptr [ebp - 4], ecx */ 4292 L_27019B49: 4293 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x27019B49: fild dword ptr [ebp - 4] */ 4294 MEM32(esi + 0xA0) = edx; /* 0x27019B4C: mov dword ptr [esi + 0xa0], edx */ 4295 MEM32(esi + 0xA4) = ecx; /* 0x27019B52: mov dword ptr [esi + 0xa4], ecx */ 4296 eax = ebp + 0x8; /* 0x27019B58: lea eax, [ebp + 8] */ 4297 _st[0] *= (double)*(float*)ADDR(0x27034468); /* 0x27019B5B: fmul dword ptr [0x27034468] */ 4298 PUSH32(esp, eax); /* 0x27019B61: push eax */ 4299 ecx = ebp + 0xC; /* 0x27019B62: lea ecx, [ebp + 0xc] */ 4300 PUSH32(esp, ecx); /* 0x27019B65: push ecx */ 4301 ecx = MEM32(esi + 0x9C); /* 0x27019B66: mov ecx, dword ptr [esi + 0x9c] */ 4302 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x27019B6C: fstp dword ptr [ebp + 8] */ 4303 fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x27019B6F: fild dword ptr [ebp - 8] */ 4304 _st[0] *= (double)*(float*)ADDR(0x27034468); /* 0x27019B72: fmul dword ptr [0x27034468] */ 4305 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x27019B78: fstp dword ptr [ebp + 0xc] */ 4306 RECOMP_ICALL(MEM32(0x27029218)); /* 0x27019B7B: call dword ptr [0x27029218] */ 4307 RECOMP_FLAGS_IN(); 4308 ecx = MEM32(esi + 0x9C); /* 0x27019B81: mov ecx, dword ptr [esi + 0x9c] */ 4309 edx = ebp + (-0x10); /* 0x27019B87: lea edx, [ebp - 0x10] */ 4310 PUSH32(esp, edx); /* 0x27019B8A: push edx */ 4311 RECOMP_ICALL(MEM32(0x27029214)); /* 0x27019B8B: call dword ptr [0x27029214] */ 4312 RECOMP_FLAGS_IN(); 4313 ecx = MEM32(esi + 0x9C); /* 0x27019B91: mov ecx, dword ptr [esi + 0x9c] */ 4314 eax = MEM32(ecx); /* 0x27019B97: mov eax, dword ptr [ecx] */ 4315 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x27019B99: call dword ptr [eax + 8] */ 4316 RECOMP_FLAGS_IN(); 4317 PUSH32(esp, 0x36u); /* 0x27019B9C: push 0x36 */ 4318 PUSH32(esp, 2); /* 0x27019B9E: push 2 */ 4319 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x27019BA0: call dword ptr [0x270291d0] */ 4320 RECOMP_FLAGS_IN(); 4321 ecx = eax; /* 0x27019BA6: mov ecx, eax */ 4322 RECOMP_ICALL(MEM32(0x270291D4)); /* 0x27019BA8: call dword ptr [0x270291d4] */ 4323 RECOMP_FLAGS_IN(); 4324 edi = POP32_VAL(esp); /* 0x27019BAE: pop edi */ 4325 SET_LO8(eax, 1); /* 0x27019BAF: mov al, 1 */ 4326 esi = POP32_VAL(esp); /* 0x27019BB1: pop esi */ 4327 esp = ebp; /* 0x27019BB2: mov esp, ebp */ 4328 ebp = POP32_VAL(esp); /* 0x27019BB4: pop ebp */ 4329 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27019BB5: ret 8 */ 4330 RECOMP_REGS_OUT(); 4331 } 4332 4333 void sub_27019BC0(void) { 4334 int _fpu_cmp = 0; 4335 uint32_t _cf = 0; 4336 int _df = 1; 4337 uint32_t _flag_k = FK_NONE; 4338 uint32_t _flag_a = 0, _flag_b = 0; 4339 uint32_t _itail_tgt = 0; 4340 RECOMP_REGS_LOCALS 4341 RECOMP_ENTER(0x27019BC0u); 4342 4343 L_27019BC0: 4344 PUSH32(esp, esi); /* 0x27019BC0: push esi */ 4345 esi = ecx; /* 0x27019BC1: mov esi, ecx */ 4346 MEM8(esi + 0xA8) = (uint8_t)(0); /* 0x27019BC3: mov byte ptr [esi + 0xa8], 0 */ 4347 RECOMP_ICALL(0x27019C20u); /* 0x27019BCA: call 0x27019c20 */ /* not lifted */ 4348 RECOMP_FLAGS_IN(); 4349 eax = MEM32(esi + 0x90); /* 0x27019BCF: mov eax, dword ptr [esi + 0x90] */ 4350 /* test eax, eax */ /* 0x27019BD5: test eax, eax */ 4351 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4352 _cf = 0; 4353 _flag_k = FK_TEST; 4354 if (TEST_Z(_flag_a, _flag_b)) goto L_27019BF2; /* 0x27019BD7: je 0x27019bf2 */ 4355 L_27019BD9: 4356 edx = MEM32(esi + 0x94); /* 0x27019BD9: mov edx, dword ptr [esi + 0x94] */ 4357 PUSH32(esp, 0); /* 0x27019BDF: push 0 */ 4358 ecx = esi + 0xA0; /* 0x27019BE1: lea ecx, [esi + 0xa0] */ 4359 PUSH32(esp, ecx); /* 0x27019BE7: push ecx */ 4360 PUSH32(esp, edx); /* 0x27019BE8: push edx */ 4361 RECOMP_ICALL(eax); /* 0x27019BE9: call eax */ 4362 RECOMP_FLAGS_IN(); 4363 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4365 esp = esp + 0xCu; /* 0x27019BEB: add esp, 0xc */ 4366 _flag_k = FK_ADD; 4367 esi = POP32_VAL(esp); /* 0x27019BEE: pop esi */ 4368 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27019BEF: ret 8 */ 4369 L_27019BF2: 4370 eax = MEM32(esi + 0x84); /* 0x27019BF2: mov eax, dword ptr [esi + 0x84] */ 4371 /* test eax, eax */ /* 0x27019BF8: test eax, eax */ 4372 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4373 _cf = 0; 4374 _flag_k = FK_TEST; 4375 if (TEST_Z(_flag_a, _flag_b)) goto L_27019C19; /* 0x27019BFA: je 0x27019c19 */ 4376 L_27019BFC: 4377 edx = MEM32(esi + 0x88); /* 0x27019BFC: mov edx, dword ptr [esi + 0x88] */ 4378 ecx = esi + 0xA0; /* 0x27019C02: lea ecx, [esi + 0xa0] */ 4379 PUSH32(esp, ecx); /* 0x27019C08: push ecx */ 4380 PUSH32(esp, edx); /* 0x27019C09: push edx */ 4381 PUSH32(esp, eax); /* 0x27019C0A: push eax */ 4382 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x27019C0B: call dword ptr [0x270291d0] */ 4383 RECOMP_FLAGS_IN(); 4384 ecx = eax; /* 0x27019C11: mov ecx, eax */ 4385 RECOMP_ICALL(MEM32(0x270291C4)); /* 0x27019C13: call dword ptr [0x270291c4] */ 4386 RECOMP_FLAGS_IN(); 4387 L_27019C19: 4388 esi = POP32_VAL(esp); /* 0x27019C19: pop esi */ 4389 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x27019C1A: ret 8 */ 4390 RECOMP_REGS_OUT(); 4391 } 4392 4393 void sub_27019C20(void) { 4394 int _fpu_cmp = 0; 4395 uint32_t _cf = 0; 4396 int _df = 1; 4397 uint32_t _flag_k = FK_NONE; 4398 uint32_t _flag_a = 0, _flag_b = 0; 4399 uint32_t _itail_tgt = 0; 4400 RECOMP_REGS_LOCALS 4401 RECOMP_ENTER(0x27019C20u); 4402 4403 L_27019C20: 4404 PUSH32(esp, esi); /* 0x27019C20: push esi */ 4405 esi = ecx; /* 0x27019C21: mov esi, ecx */ 4406 /* cmp MEM32(esi + 0x8C), 0xFFFFFFFFu */ /* 0x27019C23: cmp dword ptr [esi + 0x8c], -1 */ 4407 _flag_a = (uint32_t)(MEM32(esi + 0x8C)); _flag_b = (uint32_t)(0xFFFFFFFFu); 4408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4409 _flag_k = FK_CMP; 4410 PUSH32(esp, edi); /* 0x27019C2A: push edi */ 4411 if (CMP_NE(_flag_a, _flag_b)) goto L_27019C4A; /* 0x27019C2B: jne 0x27019c4a */ 4412 L_27019C2D: 4413 edi = MEM32(esi + 0x98); /* 0x27019C2D: mov edi, dword ptr [esi + 0x98] */ 4414 /* test edi, edi */ /* 0x27019C33: test edi, edi */ 4415 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4416 _cf = 0; 4417 _flag_k = FK_TEST; 4418 if (TEST_Z(_flag_a, _flag_b)) goto L_27019C5F; /* 0x27019C35: je 0x27019c5f */ 4419 L_27019C37: 4420 ecx = edi; /* 0x27019C37: mov ecx, edi */ 4421 RECOMP_ICALL(MEM32(0x27029284)); /* 0x27019C39: call dword ptr [0x27029284] */ 4422 RECOMP_FLAGS_IN(); 4423 PUSH32(esp, edi); /* 0x27019C3F: push edi */ 4424 RECOMP_ICALL(0x27026DA4u); /* 0x27019C40: call 0x27026da4 */ /* not lifted */ 4425 RECOMP_FLAGS_IN(); 4426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4428 esp = esp + 4; /* 0x27019C45: add esp, 4 */ 4429 _flag_k = FK_ADD; 4430 goto L_27019C5F; /* 0x27019C48: jmp 0x27019c5f */ 4431 L_27019C4A: 4432 eax = MEM32(esi + 0x98); /* 0x27019C4A: mov eax, dword ptr [esi + 0x98] */ 4433 PUSH32(esp, eax); /* 0x27019C50: push eax */ 4434 RECOMP_ICALL(MEM32(0x2702939C)); /* 0x27019C51: call dword ptr [0x2702939c] */ 4435 RECOMP_FLAGS_IN(); 4436 ecx = eax; /* 0x27019C57: mov ecx, eax */ 4437 RECOMP_ICALL(MEM32(0x27029388)); /* 0x27019C59: call dword ptr [0x27029388] */ 4438 RECOMP_FLAGS_IN(); 4439 L_27019C5F: 4440 ecx = MEM32(esi + 0x9C); /* 0x27019C5F: mov ecx, dword ptr [esi + 0x9c] */ 4441 /* test ecx, ecx */ /* 0x27019C65: test ecx, ecx */ 4442 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4443 _cf = 0; 4444 _flag_k = FK_TEST; 4445 MEM32(esi + 0x98) = 0; /* 0x27019C67: mov dword ptr [esi + 0x98], 0 */ 4446 if (TEST_Z(_flag_a, _flag_b)) goto L_27019C79; /* 0x27019C71: je 0x27019c79 */ 4447 L_27019C73: 4448 edx = MEM32(ecx); /* 0x27019C73: mov edx, dword ptr [ecx] */ 4449 PUSH32(esp, 1); /* 0x27019C75: push 1 */ 4450 RECOMP_ICALL(MEM32(edx)); /* 0x27019C77: call dword ptr [edx] */ 4451 RECOMP_FLAGS_IN(); 4452 L_27019C79: 4453 edi = POP32_VAL(esp); /* 0x27019C79: pop edi */ 4454 MEM32(esi + 0x9C) = 0; /* 0x27019C7A: mov dword ptr [esi + 0x9c], 0 */ 4455 esi = POP32_VAL(esp); /* 0x27019C84: pop esi */ 4456 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019C85: ret */ 4457 RECOMP_REGS_OUT(); 4458 } 4459 4460 void sub_27019C90(void) { 4461 int _fpu_cmp = 0; 4462 uint32_t _cf = 0; 4463 int _df = 1; 4464 uint32_t _flag_k = FK_NONE; 4465 uint32_t _flag_a = 0, _flag_b = 0; 4466 uint32_t _itail_tgt = 0; 4467 RECOMP_REGS_LOCALS 4468 RECOMP_ENTER(0x27019C90u); 4469 4470 L_27019C90: 4471 PUSH32(esp, ebp); /* 0x27019C90: push ebp */ 4472 ebp = esp; /* 0x27019C91: mov ebp, esp */ 4473 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4475 esp = esp - 8; /* 0x27019C93: sub esp, 8 */ 4476 _flag_k = FK_CMP; 4477 eax = MEM32(ebp + 0x8); /* 0x27019C96: mov eax, dword ptr [ebp + 8] */ 4478 edx = MEM32(eax); /* 0x27019C99: mov edx, dword ptr [eax] */ 4479 MEM32(ecx + 0x54) = edx; /* 0x27019C9B: mov dword ptr [ecx + 0x54], edx */ 4480 edx = MEM32(eax + 0x4); /* 0x27019C9E: mov edx, dword ptr [eax + 4] */ 4481 MEM32(ecx + 0x58) = edx; /* 0x27019CA1: mov dword ptr [ecx + 0x58], edx */ 4482 edx = MEM32(ecx + 0x5C); /* 0x27019CA4: mov edx, dword ptr [ecx + 0x5c] */ 4483 PUSH32(esp, esi); /* 0x27019CA7: push esi */ 4484 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x64)); 4485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4486 edx = edx - MEM32(ecx + 0x64); /* 0x27019CA8: sub edx, dword ptr [ecx + 0x64] */ 4487 _flag_k = FK_CMP; 4488 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 4489 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4490 edx = edx + MEM32(eax); /* 0x27019CAB: add edx, dword ptr [eax] */ 4491 _flag_k = FK_ADD; 4492 esi = MEM32(ecx + 0x68); /* 0x27019CAD: mov esi, dword ptr [ecx + 0x68] */ 4493 MEM32(ebp + (-0x8)) = edx; /* 0x27019CB0: mov dword ptr [ebp - 8], edx */ 4494 edx = MEM32(ecx + 0x60); /* 0x27019CB3: mov edx, dword ptr [ecx + 0x60] */ 4495 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 4496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4497 edx = edx - esi; /* 0x27019CB6: sub edx, esi */ 4498 _flag_k = FK_CMP; 4499 esi = MEM32(eax + 0x4); /* 0x27019CB8: mov esi, dword ptr [eax + 4] */ 4500 eax = ebp + (-0x8); /* 0x27019CBB: lea eax, [ebp - 8] */ 4501 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 4502 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4503 edx = edx + esi; /* 0x27019CBE: add edx, esi */ 4504 _flag_k = FK_ADD; 4505 PUSH32(esp, eax); /* 0x27019CC0: push eax */ 4506 MEM32(ebp + (-0x4)) = edx; /* 0x27019CC1: mov dword ptr [ebp - 4], edx */ 4507 RECOMP_ICALL(0x270109B0u); /* 0x27019CC4: call 0x270109b0 */ /* not lifted */ 4508 RECOMP_FLAGS_IN(); 4509 esi = POP32_VAL(esp); /* 0x27019CC9: pop esi */ 4510 esp = ebp; /* 0x27019CCA: mov esp, ebp */ 4511 ebp = POP32_VAL(esp); /* 0x27019CCC: pop ebp */ 4512 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27019CCD: ret 4 */ 4513 RECOMP_REGS_OUT(); 4514 } 4515 4516 void sub_27019CD0(void) { 4517 int _fpu_cmp = 0; 4518 uint32_t _cf = 0; 4519 int _df = 1; 4520 uint32_t _flag_k = FK_NONE; 4521 uint32_t _flag_a = 0, _flag_b = 0; 4522 uint32_t _itail_tgt = 0; 4523 RECOMP_REGS_LOCALS 4524 RECOMP_ENTER(0x27019CD0u); 4525 4526 L_27019CD0: 4527 PUSH32(esp, ebp); /* 0x27019CD0: push ebp */ 4528 ebp = esp; /* 0x27019CD1: mov ebp, esp */ 4529 eax = MEM32(ebp + 0x8); /* 0x27019CD3: mov eax, dword ptr [ebp + 8] */ 4530 edx = MEM32(eax); /* 0x27019CD6: mov edx, dword ptr [eax] */ 4531 MEM32(ecx + 0x5C) = edx; /* 0x27019CD8: mov dword ptr [ecx + 0x5c], edx */ 4532 eax = MEM32(eax + 0x4); /* 0x27019CDB: mov eax, dword ptr [eax + 4] */ 4533 edx = MEM32(ecx); /* 0x27019CDE: mov edx, dword ptr [ecx] */ 4534 MEM32(ecx + 0x60) = eax; /* 0x27019CE0: mov dword ptr [ecx + 0x60], eax */ 4535 eax = ecx + 0x54; /* 0x27019CE3: lea eax, [ecx + 0x54] */ 4536 PUSH32(esp, eax); /* 0x27019CE6: push eax */ 4537 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x27019CE7: call dword ptr [edx + 0x14] */ 4538 RECOMP_FLAGS_IN(); 4539 ebp = POP32_VAL(esp); /* 0x27019CEA: pop ebp */ 4540 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27019CEB: ret 4 */ 4541 RECOMP_REGS_OUT(); 4542 } 4543 4544 void sub_27019CF0(void) { 4545 int _fpu_cmp = 0; 4546 uint32_t _cf = 0; 4547 int _df = 1; 4548 uint32_t _flag_k = FK_NONE; 4549 uint32_t _flag_a = 0, _flag_b = 0; 4550 uint32_t _itail_tgt = 0; 4551 RECOMP_REGS_LOCALS 4552 RECOMP_ENTER(0x27019CF0u); 4553 4554 L_27019CF0: 4555 PUSH32(esp, ebp); /* 0x27019CF0: push ebp */ 4556 ebp = esp; /* 0x27019CF1: mov ebp, esp */ 4557 PUSH32(esp, 0xFFFFFFFFu); /* 0x27019CF3: push -1 */ 4558 PUSH32(esp, 0x27027DC1u); /* 0x27019CF5: push 0x27027dc1 */ 4559 eax = MEM32(FS_BASE + (0)); /* 0x27019CFA: mov eax, dword ptr fs:[0] */ 4560 PUSH32(esp, eax); /* 0x27019D00: push eax */ 4561 MEM32(FS_BASE + (0)) = esp; /* 0x27019D01: mov dword ptr fs:[0], esp */ 4562 PUSH32(esp, ecx); /* 0x27019D08: push ecx */ 4563 PUSH32(esp, ebx); /* 0x27019D09: push ebx */ 4564 PUSH32(esp, esi); /* 0x27019D0A: push esi */ 4565 PUSH32(esp, 0xC0u); /* 0x27019D0B: push 0xc0 */ 4566 esi = ecx; /* 0x27019D10: mov esi, ecx */ 4567 RECOMP_ICALL(0x27026EA4u); /* 0x27019D12: call 0x27026ea4 */ /* not lifted */ 4568 RECOMP_FLAGS_IN(); 4569 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4570 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4571 esp = esp + 4; /* 0x27019D17: add esp, 4 */ 4572 _flag_k = FK_ADD; 4573 MEM32(ebp + (-0x10)) = eax; /* 0x27019D1A: mov dword ptr [ebp - 0x10], eax */ 4574 /* test eax, eax */ /* 0x27019D1D: test eax, eax */ 4575 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4576 _cf = 0; 4577 _flag_k = FK_TEST; 4578 ebx = MEM32(ebp + 0x14); /* 0x27019D1F: mov ebx, dword ptr [ebp + 0x14] */ 4579 MEM32(ebp + (-0x4)) = 0; /* 0x27019D22: mov dword ptr [ebp - 4], 0 */ 4580 if (TEST_Z(_flag_a, _flag_b)) goto L_27019D39; /* 0x27019D29: je 0x27019d39 */ 4581 L_27019D2B: 4582 ecx = MEM32(ebp + 0x8); /* 0x27019D2B: mov ecx, dword ptr [ebp + 8] */ 4583 PUSH32(esp, ebx); /* 0x27019D2E: push ebx */ 4584 PUSH32(esp, ecx); /* 0x27019D2F: push ecx */ 4585 ecx = eax; /* 0x27019D30: mov ecx, eax */ 4586 RECOMP_ICALL(0x2701B1D0u); /* 0x27019D32: call 0x2701b1d0 */ /* not lifted */ 4587 RECOMP_FLAGS_IN(); 4588 goto L_27019D3B; /* 0x27019D37: jmp 0x27019d3b */ 4589 L_27019D39: 4590 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4591 eax = 0; /* 0x27019D39: xor eax, eax */ 4592 _cf = 0; 4593 _flag_k = FK_TEST; 4594 L_27019D3B: 4595 PUSH32(esp, 0xBCu); /* 0x27019D3B: push 0xbc */ 4596 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27019D40: mov dword ptr [ebp - 4], 0xffffffff */ 4597 MEM32(esi) = eax; /* 0x27019D47: mov dword ptr [esi], eax */ 4598 RECOMP_ICALL(0x27026EA4u); /* 0x27019D49: call 0x27026ea4 */ /* not lifted */ 4599 RECOMP_FLAGS_IN(); 4600 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4601 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4602 esp = esp + 4; /* 0x27019D4E: add esp, 4 */ 4603 _flag_k = FK_ADD; 4604 MEM32(ebp + 0x14) = eax; /* 0x27019D51: mov dword ptr [ebp + 0x14], eax */ 4605 /* test eax, eax */ /* 0x27019D54: test eax, eax */ 4606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4607 _cf = 0; 4608 _flag_k = FK_TEST; 4609 MEM32(ebp + (-0x4)) = 1; /* 0x27019D56: mov dword ptr [ebp - 4], 1 */ 4610 if (TEST_Z(_flag_a, _flag_b)) goto L_27019D6D; /* 0x27019D5D: je 0x27019d6d */ 4611 L_27019D5F: 4612 edx = MEM32(ebp + 0xC); /* 0x27019D5F: mov edx, dword ptr [ebp + 0xc] */ 4613 PUSH32(esp, ebx); /* 0x27019D62: push ebx */ 4614 PUSH32(esp, edx); /* 0x27019D63: push edx */ 4615 ecx = eax; /* 0x27019D64: mov ecx, eax */ 4616 RECOMP_ICALL(0x2700ABC0u); /* 0x27019D66: call 0x2700abc0 */ /* not lifted */ 4617 RECOMP_FLAGS_IN(); 4618 goto L_27019D6F; /* 0x27019D6B: jmp 0x27019d6f */ 4619 L_27019D6D: 4620 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4621 eax = 0; /* 0x27019D6D: xor eax, eax */ 4622 _cf = 0; 4623 _flag_k = FK_TEST; 4624 L_27019D6F: 4625 PUSH32(esp, 0xBCu); /* 0x27019D6F: push 0xbc */ 4626 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27019D74: mov dword ptr [ebp - 4], 0xffffffff */ 4627 MEM32(esi + 0x4) = eax; /* 0x27019D7B: mov dword ptr [esi + 4], eax */ 4628 RECOMP_ICALL(0x27026EA4u); /* 0x27019D7E: call 0x27026ea4 */ /* not lifted */ 4629 RECOMP_FLAGS_IN(); 4630 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4632 esp = esp + 4; /* 0x27019D83: add esp, 4 */ 4633 _flag_k = FK_ADD; 4634 MEM32(ebp + 0x14) = eax; /* 0x27019D86: mov dword ptr [ebp + 0x14], eax */ 4635 /* test eax, eax */ /* 0x27019D89: test eax, eax */ 4636 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4637 _cf = 0; 4638 _flag_k = FK_TEST; 4639 MEM32(ebp + (-0x4)) = 2; /* 0x27019D8B: mov dword ptr [ebp - 4], 2 */ 4640 if (TEST_Z(_flag_a, _flag_b)) goto L_27019DA2; /* 0x27019D92: je 0x27019da2 */ 4641 L_27019D94: 4642 ecx = MEM32(ebp + 0x10); /* 0x27019D94: mov ecx, dword ptr [ebp + 0x10] */ 4643 PUSH32(esp, ebx); /* 0x27019D97: push ebx */ 4644 PUSH32(esp, ecx); /* 0x27019D98: push ecx */ 4645 ecx = eax; /* 0x27019D99: mov ecx, eax */ 4646 RECOMP_ICALL(0x2700ABC0u); /* 0x27019D9B: call 0x2700abc0 */ /* not lifted */ 4647 RECOMP_FLAGS_IN(); 4648 goto L_27019DA4; /* 0x27019DA0: jmp 0x27019da4 */ 4649 L_27019DA2: 4650 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4651 eax = 0; /* 0x27019DA2: xor eax, eax */ 4652 _cf = 0; 4653 _flag_k = FK_TEST; 4654 L_27019DA4: 4655 edx = MEM32(esi); /* 0x27019DA4: mov edx, dword ptr [esi] */ 4656 ecx = MEM32(esi + 0x4); /* 0x27019DA6: mov ecx, dword ptr [esi + 4] */ 4657 PUSH32(esp, edx); /* 0x27019DA9: push edx */ 4658 PUSH32(esp, 0x27010E90u); /* 0x27019DAA: push 0x27010e90 */ 4659 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x27019DAF: mov dword ptr [ebp - 4], 0xffffffff */ 4660 MEM32(esi + 0x8) = eax; /* 0x27019DB6: mov dword ptr [esi + 8], eax */ 4661 RECOMP_ICALL(0x2700B320u); /* 0x27019DB9: call 0x2700b320 */ /* not lifted */ 4662 RECOMP_FLAGS_IN(); 4663 eax = MEM32(esi); /* 0x27019DBE: mov eax, dword ptr [esi] */ 4664 ecx = MEM32(esi + 0x8); /* 0x27019DC0: mov ecx, dword ptr [esi + 8] */ 4665 PUSH32(esp, eax); /* 0x27019DC3: push eax */ 4666 PUSH32(esp, 0x27019F10u); /* 0x27019DC4: push 0x27019f10 */ 4667 RECOMP_ICALL(0x2700B320u); /* 0x27019DC9: call 0x2700b320 */ /* not lifted */ 4668 RECOMP_FLAGS_IN(); 4669 ecx = MEM32(ebp + (-0xC)); /* 0x27019DCE: mov ecx, dword ptr [ebp - 0xc] */ 4670 eax = esi; /* 0x27019DD1: mov eax, esi */ 4671 esi = POP32_VAL(esp); /* 0x27019DD3: pop esi */ 4672 ebx = POP32_VAL(esp); /* 0x27019DD4: pop ebx */ 4673 MEM32(FS_BASE + (0)) = ecx; /* 0x27019DD5: mov dword ptr fs:[0], ecx */ 4674 esp = ebp; /* 0x27019DDC: mov esp, ebp */ 4675 ebp = POP32_VAL(esp); /* 0x27019DDE: pop ebp */ 4676 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x27019DDF: ret 0x10 */ 4677 RECOMP_REGS_OUT(); 4678 } 4679 4680 void sub_27019DF0(void) { 4681 int _fpu_cmp = 0; 4682 uint32_t _cf = 0; 4683 int _df = 1; 4684 uint32_t _flag_k = FK_NONE; 4685 uint32_t _flag_a = 0, _flag_b = 0; 4686 uint32_t _itail_tgt = 0; 4687 RECOMP_REGS_LOCALS 4688 RECOMP_ENTER(0x27019DF0u); 4689 4690 L_27019DF0: 4691 PUSH32(esp, esi); /* 0x27019DF0: push esi */ 4692 esi = ecx; /* 0x27019DF1: mov esi, ecx */ 4693 ecx = MEM32(esi); /* 0x27019DF3: mov ecx, dword ptr [esi] */ 4694 /* test ecx, ecx */ /* 0x27019DF5: test ecx, ecx */ 4695 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4696 _cf = 0; 4697 _flag_k = FK_TEST; 4698 if (TEST_Z(_flag_a, _flag_b)) goto L_27019DFF; /* 0x27019DF7: je 0x27019dff */ 4699 L_27019DF9: 4700 eax = MEM32(ecx); /* 0x27019DF9: mov eax, dword ptr [ecx] */ 4701 PUSH32(esp, 1); /* 0x27019DFB: push 1 */ 4702 RECOMP_ICALL(MEM32(eax)); /* 0x27019DFD: call dword ptr [eax] */ 4703 RECOMP_FLAGS_IN(); 4704 L_27019DFF: 4705 ecx = MEM32(esi + 0x4); /* 0x27019DFF: mov ecx, dword ptr [esi + 4] */ 4706 /* test ecx, ecx */ /* 0x27019E02: test ecx, ecx */ 4707 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4708 _cf = 0; 4709 _flag_k = FK_TEST; 4710 if (TEST_Z(_flag_a, _flag_b)) goto L_27019E0C; /* 0x27019E04: je 0x27019e0c */ 4711 L_27019E06: 4712 edx = MEM32(ecx); /* 0x27019E06: mov edx, dword ptr [ecx] */ 4713 PUSH32(esp, 1); /* 0x27019E08: push 1 */ 4714 RECOMP_ICALL(MEM32(edx)); /* 0x27019E0A: call dword ptr [edx] */ 4715 RECOMP_FLAGS_IN(); 4716 L_27019E0C: 4717 ecx = MEM32(esi + 0x8); /* 0x27019E0C: mov ecx, dword ptr [esi + 8] */ 4718 /* test ecx, ecx */ /* 0x27019E0F: test ecx, ecx */ 4719 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4720 _cf = 0; 4721 _flag_k = FK_TEST; 4722 esi = POP32_VAL(esp); /* 0x27019E11: pop esi */ 4723 if (TEST_Z(_flag_a, _flag_b)) goto L_27019E1A; /* 0x27019E12: je 0x27019e1a */ 4724 L_27019E14: 4725 eax = MEM32(ecx); /* 0x27019E14: mov eax, dword ptr [ecx] */ 4726 PUSH32(esp, 1); /* 0x27019E16: push 1 */ 4727 RECOMP_ICALL(MEM32(eax)); /* 0x27019E18: call dword ptr [eax] */ 4728 RECOMP_FLAGS_IN(); 4729 L_27019E1A: 4730 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019E1A: ret */ 4731 RECOMP_REGS_OUT(); 4732 } 4733 4734 void sub_27019E20(void) { 4735 int _fpu_cmp = 0; 4736 uint32_t _cf = 0; 4737 int _df = 1; 4738 uint32_t _flag_k = FK_NONE; 4739 uint32_t _flag_a = 0, _flag_b = 0; 4740 uint32_t _itail_tgt = 0; 4741 RECOMP_REGS_LOCALS 4742 RECOMP_ENTER(0x27019E20u); 4743 4744 L_27019E20: 4745 PUSH32(esp, ebp); /* 0x27019E20: push ebp */ 4746 ebp = esp; /* 0x27019E21: mov ebp, esp */ 4747 PUSH32(esp, esi); /* 0x27019E23: push esi */ 4748 PUSH32(esp, edi); /* 0x27019E24: push edi */ 4749 edi = MEM32(ebp + 0x8); /* 0x27019E25: mov edi, dword ptr [ebp + 8] */ 4750 esi = ecx; /* 0x27019E28: mov esi, ecx */ 4751 ecx = MEM32(esi); /* 0x27019E2A: mov ecx, dword ptr [esi] */ 4752 PUSH32(esp, edi); /* 0x27019E2C: push edi */ 4753 RECOMP_ICALL(0x2701BC70u); /* 0x27019E2D: call 0x2701bc70 */ /* not lifted */ 4754 RECOMP_FLAGS_IN(); 4755 ecx = MEM32(esi + 0x8); /* 0x27019E32: mov ecx, dword ptr [esi + 8] */ 4756 PUSH32(esp, edi); /* 0x27019E35: push edi */ 4757 RECOMP_ICALL(0x2700B390u); /* 0x27019E36: call 0x2700b390 */ /* not lifted */ 4758 RECOMP_FLAGS_IN(); 4759 ecx = MEM32(esi + 0x4); /* 0x27019E3B: mov ecx, dword ptr [esi + 4] */ 4760 PUSH32(esp, edi); /* 0x27019E3E: push edi */ 4761 RECOMP_ICALL(0x2700B390u); /* 0x27019E3F: call 0x2700b390 */ /* not lifted */ 4762 RECOMP_FLAGS_IN(); 4763 edi = POP32_VAL(esp); /* 0x27019E44: pop edi */ 4764 esi = POP32_VAL(esp); /* 0x27019E45: pop esi */ 4765 ebp = POP32_VAL(esp); /* 0x27019E46: pop ebp */ 4766 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27019E47: ret 4 */ 4767 RECOMP_REGS_OUT(); 4768 } 4769 4770 void sub_27019E50(void) { 4771 int _fpu_cmp = 0; 4772 uint32_t _cf = 0; 4773 int _df = 1; 4774 uint32_t _flag_k = FK_NONE; 4775 uint32_t _flag_a = 0, _flag_b = 0; 4776 uint32_t _itail_tgt = 0; 4777 RECOMP_REGS_LOCALS 4778 RECOMP_ENTER(0x27019E50u); 4779 4780 L_27019E50: 4781 PUSH32(esp, esi); /* 0x27019E50: push esi */ 4782 esi = ecx; /* 0x27019E51: mov esi, ecx */ 4783 ecx = MEM32(esi); /* 0x27019E53: mov ecx, dword ptr [esi] */ 4784 RECOMP_ICALL(0x2701BCA0u); /* 0x27019E55: call 0x2701bca0 */ /* not lifted */ 4785 RECOMP_FLAGS_IN(); 4786 ecx = MEM32(esi + 0x4); /* 0x27019E5A: mov ecx, dword ptr [esi + 4] */ 4787 RECOMP_ICALL(0x2700B3C0u); /* 0x27019E5D: call 0x2700b3c0 */ /* not lifted */ 4788 RECOMP_FLAGS_IN(); 4789 ecx = MEM32(esi + 0x8); /* 0x27019E62: mov ecx, dword ptr [esi + 8] */ 4790 RECOMP_ICALL(0x2700B3C0u); /* 0x27019E65: call 0x2700b3c0 */ /* not lifted */ 4791 RECOMP_FLAGS_IN(); 4792 esi = POP32_VAL(esp); /* 0x27019E6A: pop esi */ 4793 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019E6B: ret */ 4794 RECOMP_REGS_OUT(); 4795 } 4796 4797 void sub_27019E70(void) { 4798 int _fpu_cmp = 0; 4799 uint32_t _cf = 0; 4800 int _df = 1; 4801 uint32_t _flag_k = FK_NONE; 4802 uint32_t _flag_a = 0, _flag_b = 0; 4803 uint32_t _itail_tgt = 0; 4804 RECOMP_REGS_LOCALS 4805 RECOMP_ENTER(0x27019E70u); 4806 4807 L_27019E70: 4808 PUSH32(esp, esi); /* 0x27019E70: push esi */ 4809 esi = ecx; /* 0x27019E71: mov esi, ecx */ 4810 ecx = MEM32(esi); /* 0x27019E73: mov ecx, dword ptr [esi] */ 4811 RECOMP_ICALL(0x2701BCD0u); /* 0x27019E75: call 0x2701bcd0 */ /* not lifted */ 4812 RECOMP_FLAGS_IN(); 4813 ecx = MEM32(esi + 0x4); /* 0x27019E7A: mov ecx, dword ptr [esi + 4] */ 4814 RECOMP_ICALL(0x2700B3E0u); /* 0x27019E7D: call 0x2700b3e0 */ /* not lifted */ 4815 RECOMP_FLAGS_IN(); 4816 ecx = MEM32(esi + 0x8); /* 0x27019E82: mov ecx, dword ptr [esi + 8] */ 4817 RECOMP_ICALL(0x2700B3E0u); /* 0x27019E85: call 0x2700b3e0 */ /* not lifted */ 4818 RECOMP_FLAGS_IN(); 4819 esi = POP32_VAL(esp); /* 0x27019E8A: pop esi */ 4820 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019E8B: ret */ 4821 RECOMP_REGS_OUT(); 4822 } 4823 4824 void sub_27019E90(void) { 4825 int _fpu_cmp = 0; 4826 uint32_t _cf = 0; 4827 int _df = 1; 4828 uint32_t _flag_k = FK_NONE; 4829 uint32_t _flag_a = 0, _flag_b = 0; 4830 uint32_t _itail_tgt = 0; 4831 RECOMP_REGS_LOCALS 4832 RECOMP_ENTER(0x27019E90u); 4833 4834 L_27019E90: 4835 PUSH32(esp, esi); /* 0x27019E90: push esi */ 4836 esi = ecx; /* 0x27019E91: mov esi, ecx */ 4837 ecx = MEM32(esi); /* 0x27019E93: mov ecx, dword ptr [esi] */ 4838 RECOMP_ICALL(0x2701B860u); /* 0x27019E95: call 0x2701b860 */ /* not lifted */ 4839 RECOMP_FLAGS_IN(); 4840 ecx = MEM32(esi + 0x4); /* 0x27019E9A: mov ecx, dword ptr [esi + 4] */ 4841 RECOMP_ICALL(0x2700B2F0u); /* 0x27019E9D: call 0x2700b2f0 */ /* not lifted */ 4842 RECOMP_FLAGS_IN(); 4843 ecx = MEM32(esi + 0x8); /* 0x27019EA2: mov ecx, dword ptr [esi + 8] */ 4844 RECOMP_ICALL(0x2700B2F0u); /* 0x27019EA5: call 0x2700b2f0 */ /* not lifted */ 4845 RECOMP_FLAGS_IN(); 4846 esi = POP32_VAL(esp); /* 0x27019EAA: pop esi */ 4847 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019EAB: ret */ 4848 RECOMP_REGS_OUT(); 4849 } 4850 4851 void sub_27019EB0(void) { 4852 int _fpu_cmp = 0; 4853 uint32_t _cf = 0; 4854 int _df = 1; 4855 uint32_t _flag_k = FK_NONE; 4856 uint32_t _flag_a = 0, _flag_b = 0; 4857 uint32_t _itail_tgt = 0; 4858 RECOMP_REGS_LOCALS 4859 RECOMP_ENTER(0x27019EB0u); 4860 4861 L_27019EB0: 4862 PUSH32(esp, ebp); /* 0x27019EB0: push ebp */ 4863 ebp = esp; /* 0x27019EB1: mov ebp, esp */ 4864 PUSH32(esp, esi); /* 0x27019EB3: push esi */ 4865 esi = ecx; /* 0x27019EB4: mov esi, ecx */ 4866 ecx = MEM32(esi); /* 0x27019EB6: mov ecx, dword ptr [esi] */ 4867 eax = MEM32(ecx); /* 0x27019EB8: mov eax, dword ptr [ecx] */ 4868 edx = ebp + 0x8; /* 0x27019EBA: lea edx, [ebp + 8] */ 4869 PUSH32(esp, edx); /* 0x27019EBD: push edx */ 4870 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x27019EBE: call dword ptr [eax + 0x14] */ 4871 RECOMP_FLAGS_IN(); 4872 eax = MEM32(ebp + 0x14); /* 0x27019EC1: mov eax, dword ptr [ebp + 0x14] */ 4873 ecx = MEM32(ebp + 0x10); /* 0x27019EC4: mov ecx, dword ptr [ebp + 0x10] */ 4874 PUSH32(esp, eax); /* 0x27019EC7: push eax */ 4875 PUSH32(esp, ecx); /* 0x27019EC8: push ecx */ 4876 ecx = MEM32(esi + 0x4); /* 0x27019EC9: mov ecx, dword ptr [esi + 4] */ 4877 RECOMP_ICALL(0x2700B270u); /* 0x27019ECC: call 0x2700b270 */ /* not lifted */ 4878 RECOMP_FLAGS_IN(); 4879 edx = MEM32(ebp + 0x1C); /* 0x27019ED1: mov edx, dword ptr [ebp + 0x1c] */ 4880 eax = MEM32(ebp + 0x18); /* 0x27019ED4: mov eax, dword ptr [ebp + 0x18] */ 4881 ecx = MEM32(esi + 0x8); /* 0x27019ED7: mov ecx, dword ptr [esi + 8] */ 4882 PUSH32(esp, edx); /* 0x27019EDA: push edx */ 4883 PUSH32(esp, eax); /* 0x27019EDB: push eax */ 4884 RECOMP_ICALL(0x2700B270u); /* 0x27019EDC: call 0x2700b270 */ /* not lifted */ 4885 RECOMP_FLAGS_IN(); 4886 esi = POP32_VAL(esp); /* 0x27019EE1: pop esi */ 4887 ebp = POP32_VAL(esp); /* 0x27019EE2: pop ebp */ 4888 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x27019EE3: ret 0x18 */ 4889 RECOMP_REGS_OUT(); 4890 } 4891 4892 void sub_27019EF0(void) { 4893 int _fpu_cmp = 0; 4894 uint32_t _cf = 0; 4895 int _df = 1; 4896 uint32_t _flag_k = FK_NONE; 4897 uint32_t _flag_a = 0, _flag_b = 0; 4898 uint32_t _itail_tgt = 0; 4899 RECOMP_REGS_LOCALS 4900 RECOMP_ENTER(0x27019EF0u); 4901 4902 L_27019EF0: 4903 eax = MEM32(ecx + 0x4); /* 0x27019EF0: mov eax, dword ptr [ecx + 4] */ 4904 /* test eax, eax */ /* 0x27019EF3: test eax, eax */ 4905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4906 _cf = 0; 4907 _flag_k = FK_TEST; 4908 if (TEST_Z(_flag_a, _flag_b)) goto L_27019F0B; /* 0x27019EF5: je 0x27019f0b */ 4909 L_27019EF7: 4910 ecx = MEM32(ecx + 0x8); /* 0x27019EF7: mov ecx, dword ptr [ecx + 8] */ 4911 /* test ecx, ecx */ /* 0x27019EFA: test ecx, ecx */ 4912 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4913 _cf = 0; 4914 _flag_k = FK_TEST; 4915 if (TEST_Z(_flag_a, _flag_b)) goto L_27019F0B; /* 0x27019EFC: je 0x27019f0b */ 4916 L_27019EFE: 4917 eax = MEM32(eax + 0x44); /* 0x27019EFE: mov eax, dword ptr [eax + 0x44] */ 4918 ecx = MEM32(ecx + 0x44); /* 0x27019F01: mov ecx, dword ptr [ecx + 0x44] */ 4919 /* cmp eax, ecx */ /* 0x27019F04: cmp eax, ecx */ 4920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4922 _flag_k = FK_CMP; 4923 if (CMP_GE(_flag_a, _flag_b)) goto L_27019F0D; /* 0x27019F06: jge 0x27019f0d */ 4924 L_27019F08: 4925 eax = ecx; /* 0x27019F08: mov eax, ecx */ 4926 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019F0A: ret */ 4927 L_27019F0B: 4928 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4929 eax = 0; /* 0x27019F0B: xor eax, eax */ 4930 _cf = 0; 4931 _flag_k = FK_TEST; 4932 L_27019F0D: 4933 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019F0D: ret */ 4934 RECOMP_REGS_OUT(); 4935 } 4936 4937 void sub_27019F10(void) { 4938 int _fpu_cmp = 0; 4939 uint32_t _cf = 0; 4940 int _df = 1; 4941 uint32_t _flag_k = FK_NONE; 4942 uint32_t _flag_a = 0, _flag_b = 0; 4943 uint32_t _itail_tgt = 0; 4944 RECOMP_REGS_LOCALS 4945 RECOMP_ENTER(0x27019F10u); 4946 4947 L_27019F10: 4948 PUSH32(esp, ebp); /* 0x27019F10: push ebp */ 4949 ebp = esp; /* 0x27019F11: mov ebp, esp */ 4950 ecx = MEM32(ebp + 0x8); /* 0x27019F13: mov ecx, dword ptr [ebp + 8] */ 4951 RECOMP_ICALL(0x2701B8A0u); /* 0x27019F16: call 0x2701b8a0 */ /* not lifted */ 4952 RECOMP_FLAGS_IN(); 4953 ebp = POP32_VAL(esp); /* 0x27019F1B: pop ebp */ 4954 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019F1C: ret */ 4955 RECOMP_REGS_OUT(); 4956 } 4957 4958 void sub_27019F20(void) { 4959 int _fpu_cmp = 0; 4960 uint32_t _cf = 0; 4961 int _df = 1; 4962 uint32_t _flag_k = FK_NONE; 4963 uint32_t _flag_a = 0, _flag_b = 0; 4964 uint32_t _itail_tgt = 0; 4965 RECOMP_REGS_LOCALS 4966 RECOMP_ENTER(0x27019F20u); 4967 4968 L_27019F20: 4969 PUSH32(esp, ebp); /* 0x27019F20: push ebp */ 4970 ebp = esp; /* 0x27019F21: mov ebp, esp */ 4971 ecx = MEM32(ebp + 0x8); /* 0x27019F23: mov ecx, dword ptr [ebp + 8] */ 4972 RECOMP_ICALL(0x2701AC10u); /* 0x27019F26: call 0x2701ac10 */ /* not lifted */ 4973 RECOMP_FLAGS_IN(); 4974 ebp = POP32_VAL(esp); /* 0x27019F2B: pop ebp */ 4975 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019F2C: ret */ 4976 RECOMP_REGS_OUT(); 4977 } 4978 4979 void sub_27019F30(void) { 4980 int _fpu_cmp = 0; 4981 uint32_t _cf = 0; 4982 int _df = 1; 4983 uint32_t _flag_k = FK_NONE; 4984 uint32_t _flag_a = 0, _flag_b = 0; 4985 uint32_t _itail_tgt = 0; 4986 RECOMP_REGS_LOCALS 4987 RECOMP_ENTER(0x27019F30u); 4988 4989 L_27019F30: 4990 PUSH32(esp, ebp); /* 0x27019F30: push ebp */ 4991 ebp = esp; /* 0x27019F31: mov ebp, esp */ 4992 ecx = MEM32(ebp + 0x8); /* 0x27019F33: mov ecx, dword ptr [ebp + 8] */ 4993 RECOMP_ICALL(0x2701AC30u); /* 0x27019F36: call 0x2701ac30 */ /* not lifted */ 4994 RECOMP_FLAGS_IN(); 4995 ebp = POP32_VAL(esp); /* 0x27019F3B: pop ebp */ 4996 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019F3C: ret */ 4997 RECOMP_REGS_OUT(); 4998 } 4999 5000 void sub_27019F40(void) { 5001 int _fpu_cmp = 0; 5002 uint32_t _cf = 0; 5003 int _df = 1; 5004 uint32_t _flag_k = FK_NONE; 5005 uint32_t _flag_a = 0, _flag_b = 0; 5006 uint32_t _itail_tgt = 0; 5007 RECOMP_REGS_LOCALS 5008 RECOMP_ENTER(0x27019F40u); 5009 5010 L_27019F40: 5011 eax = MEM32(ecx + 0x7C); /* 0x27019F40: mov eax, dword ptr [ecx + 0x7c] */ 5012 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019F43: ret */ 5013 RECOMP_REGS_OUT(); 5014 } 5015 5016 void sub_27019F50(void) { 5017 int _fpu_cmp = 0; 5018 uint32_t _cf = 0; 5019 int _df = 1; 5020 uint32_t _flag_k = FK_NONE; 5021 uint32_t _flag_a = 0, _flag_b = 0; 5022 uint32_t _itail_tgt = 0; 5023 RECOMP_REGS_LOCALS 5024 RECOMP_ENTER(0x27019F50u); 5025 5026 L_27019F50: 5027 fp_push(*(double*)ADDR(ecx + 0xB0)); /* 0x27019F50: fld qword ptr [ecx + 0xb0] */ 5028 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019F56: ret */ 5029 RECOMP_REGS_OUT(); 5030 } 5031 5032 void sub_27019F60(void) { 5033 int _fpu_cmp = 0; 5034 uint32_t _cf = 0; 5035 int _df = 1; 5036 uint32_t _flag_k = FK_NONE; 5037 uint32_t _flag_a = 0, _flag_b = 0; 5038 uint32_t _itail_tgt = 0; 5039 RECOMP_REGS_LOCALS 5040 RECOMP_ENTER(0x27019F60u); 5041 5042 L_27019F60: 5043 PUSH32(esp, ebp); /* 0x27019F60: push ebp */ 5044 ebp = esp; /* 0x27019F61: mov ebp, esp */ 5045 eax = MEM32(ebp + 0x8); /* 0x27019F63: mov eax, dword ptr [ebp + 8] */ 5046 MEM32(ecx + 0x98) = eax; /* 0x27019F66: mov dword ptr [ecx + 0x98], eax */ 5047 ebp = POP32_VAL(esp); /* 0x27019F6C: pop ebp */ 5048 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x27019F6D: ret 4 */ 5049 RECOMP_REGS_OUT(); 5050 } 5051 5052 void sub_27019F70(void) { 5053 int _fpu_cmp = 0; 5054 uint32_t _cf = 0; 5055 int _df = 1; 5056 uint32_t _flag_k = FK_NONE; 5057 uint32_t _flag_a = 0, _flag_b = 0; 5058 uint32_t _itail_tgt = 0; 5059 RECOMP_REGS_LOCALS 5060 RECOMP_ENTER(0x27019F70u); 5061 5062 L_27019F70: 5063 eax = 0x270344E0u; /* 0x27019F70: mov eax, 0x270344e0 */ 5064 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x27019F75: ret */ 5065 RECOMP_REGS_OUT(); 5066 } 5067 5068 void sub_27019F80(void) { 5069 int _fpu_cmp = 0; 5070 uint32_t _cf = 0; 5071 int _df = 1; 5072 uint32_t _flag_k = FK_NONE; 5073 uint32_t _flag_a = 0, _flag_b = 0; 5074 uint32_t _itail_tgt = 0; 5075 RECOMP_REGS_LOCALS 5076 RECOMP_ENTER(0x27019F80u); 5077 5078 L_27019F80: 5079 PUSH32(esp, ebp); /* 0x27019F80: push ebp */ 5080 ebp = esp; /* 0x27019F81: mov ebp, esp */ 5081 eax = ecx; /* 0x27019F83: mov eax, ecx */ 5082 ecx = MEM32(ebp + 0x8); /* 0x27019F85: mov ecx, dword ptr [ebp + 8] */ 5083 edx = MEM32(ecx + 0x4); /* 0x27019F88: mov edx, dword ptr [ecx + 4] */ 5084 MEM32(eax + 0x4) = edx; /* 0x27019F8B: mov dword ptr [eax + 4], edx */ 5085 SET_LO8(edx, MEM8(ecx + 0x8)); /* 0x27019F8E: mov dl, byte ptr [ecx + 8] */ 5086 MEM8(eax + 0x8) = (uint8_t)(LO8(edx)); /* 0x27019F91: mov byte ptr [eax + 8], dl */ 5087 SET_LO8(edx, MEM8(ecx + 0x9)); /* 0x27019F94: mov dl, byte ptr [ecx + 9] */ 5088 MEM8(eax + 0x9) = (uint8_t)(LO8(edx)); /* 0x27019F97: mov byte ptr [eax + 9], dl */ 5089 edx = MEM32(ecx + 0xC); /* 0x27019F9A: mov edx, dword ptr [ecx + 0xc] */ 5090 MEM32(eax + 0xC) = edx; /* 0x27019F9D: mov dword ptr [eax + 0xc], edx */ 5091 edx = MEM32(ecx + 0x10); /* 0x27019FA0: mov edx, dword ptr [ecx + 0x10] */ 5092 MEM32(eax + 0x10) = edx; /* 0x27019FA3: mov dword ptr [eax + 0x10], edx */ 5093 edx = MEM32(ecx + 0x14); /* 0x27019FA6: mov edx, dword ptr [ecx + 0x14] */ 5094 MEM32(eax + 0x14) = edx; /* 0x27019FA9: mov dword ptr [eax + 0x14], edx */ 5095 edx = MEM32(ecx + 0x18); /* 0x27019FAC: mov edx, dword ptr [ecx + 0x18] */ 5096 MEM32(eax + 0x18) = edx; /* 0x27019FAF: mov dword ptr [eax + 0x18], edx */ 5097 edx = MEM32(ecx + 0x1C); /* 0x27019FB2: mov edx, dword ptr [ecx + 0x1c] */ 5098 MEM32(eax + 0x1C) = edx; /* 0x27019FB5: mov dword ptr [eax + 0x1c], edx */ 5099 edx = MEM32(ecx + 0x20); /* 0x27019FB8: mov edx, dword ptr [ecx + 0x20] */ 5100 MEM32(eax + 0x20) = edx; /* 0x27019FBB: mov dword ptr [eax + 0x20], edx */ 5101 SET_LO8(edx, MEM8(ecx + 0x24)); /* 0x27019FBE: mov dl, byte ptr [ecx + 0x24] */ 5102 MEM8(eax + 0x24) = (uint8_t)(LO8(edx)); /* 0x27019FC1: mov byte ptr [eax + 0x24], dl */ 5103 SET_LO8(edx, MEM8(ecx + 0x25)); /* 0x27019FC4: mov dl, byte ptr [ecx + 0x25] */ 5104 MEM8(eax + 0x25) = (uint8_t)(LO8(edx)); /* 0x27019FC7: mov byte ptr [eax + 0x25], dl */ 5105 edx = MEM32(ecx + 0x28); /* 0x27019FCA: mov edx, dword ptr [ecx + 0x28] */ 5106 MEM32(eax + 0x28) = edx; /* 0x27019FCD: mov dword ptr [eax + 0x28], edx */ 5107 PUSH32(esp, esi); /* 0x27019FD0: push esi */ 5108 PUSH32(esp, edi); /* 0x27019FD1: push edi */ 5109 edx = ecx + 0x2C; /* 0x27019FD2: lea edx, [ecx + 0x2c] */ 5110 edi = MEM32(edx); /* 0x27019FD5: mov edi, dword ptr [edx] */ 5111 esi = eax + 0x2C; /* 0x27019FD7: lea esi, [eax + 0x2c] */ 5112 MEM32(esi) = edi; /* 0x27019FDA: mov dword ptr [esi], edi */ 5113 edi = MEM32(edx + 0x4); /* 0x27019FDC: mov edi, dword ptr [edx + 4] */ 5114 MEM32(esi + 0x4) = edi; /* 0x27019FDF: mov dword ptr [esi + 4], edi */ 5115 edi = MEM32(edx + 0x8); /* 0x27019FE2: mov edi, dword ptr [edx + 8] */ 5116 MEM32(esi + 0x8) = edi; /* 0x27019FE5: mov dword ptr [esi + 8], edi */ 5117 edx = MEM32(edx + 0xC); /* 0x27019FE8: mov edx, dword ptr [edx + 0xc] */ 5118 MEM32(esi + 0xC) = edx; /* 0x27019FEB: mov dword ptr [esi + 0xc], edx */ 5119 edx = MEM32(ecx + 0x3C); /* 0x27019FEE: mov edx, dword ptr [ecx + 0x3c] */ 5120 MEM32(eax + 0x3C) = edx; /* 0x27019FF1: mov dword ptr [eax + 0x3c], edx */ 5121 edx = MEM32(ecx + 0x40); /* 0x27019FF4: mov edx, dword ptr [ecx + 0x40] */ 5122 MEM32(eax + 0x40) = edx; /* 0x27019FF7: mov dword ptr [eax + 0x40], edx */ 5123 edx = MEM32(ecx + 0x44); /* 0x27019FFA: mov edx, dword ptr [ecx + 0x44] */ 5124 MEM32(eax + 0x44) = edx; /* 0x27019FFD: mov dword ptr [eax + 0x44], edx */ 5125 edx = MEM32(ecx + 0x48); /* 0x2701A000: mov edx, dword ptr [ecx + 0x48] */ 5126 MEM32(eax + 0x48) = edx; /* 0x2701A003: mov dword ptr [eax + 0x48], edx */ 5127 edx = MEM32(ecx + 0x4C); /* 0x2701A006: mov edx, dword ptr [ecx + 0x4c] */ 5128 MEM32(eax + 0x4C) = edx; /* 0x2701A009: mov dword ptr [eax + 0x4c], edx */ 5129 SET_LO8(edx, MEM8(ecx + 0x50)); /* 0x2701A00C: mov dl, byte ptr [ecx + 0x50] */ 5130 MEM8(eax + 0x50) = (uint8_t)(LO8(edx)); /* 0x2701A00F: mov byte ptr [eax + 0x50], dl */ 5131 MEM32(eax) = 0x2703429Cu; /* 0x2701A012: mov dword ptr [eax], 0x2703429c */ 5132 edx = MEM32(ecx + 0x54); /* 0x2701A018: mov edx, dword ptr [ecx + 0x54] */ 5133 MEM32(eax + 0x54) = edx; /* 0x2701A01B: mov dword ptr [eax + 0x54], edx */ 5134 edx = MEM32(ecx + 0x58); /* 0x2701A01E: mov edx, dword ptr [ecx + 0x58] */ 5135 MEM32(eax + 0x58) = edx; /* 0x2701A021: mov dword ptr [eax + 0x58], edx */ 5136 edx = MEM32(ecx + 0x5C); /* 0x2701A024: mov edx, dword ptr [ecx + 0x5c] */ 5137 MEM32(eax + 0x5C) = edx; /* 0x2701A027: mov dword ptr [eax + 0x5c], edx */ 5138 edx = MEM32(ecx + 0x60); /* 0x2701A02A: mov edx, dword ptr [ecx + 0x60] */ 5139 MEM32(eax + 0x60) = edx; /* 0x2701A02D: mov dword ptr [eax + 0x60], edx */ 5140 edx = MEM32(ecx + 0x64); /* 0x2701A030: mov edx, dword ptr [ecx + 0x64] */ 5141 MEM32(eax + 0x64) = edx; /* 0x2701A033: mov dword ptr [eax + 0x64], edx */ 5142 edx = MEM32(ecx + 0x68); /* 0x2701A036: mov edx, dword ptr [ecx + 0x68] */ 5143 MEM32(eax + 0x68) = edx; /* 0x2701A039: mov dword ptr [eax + 0x68], edx */ 5144 edx = MEM32(ecx + 0x6C); /* 0x2701A03C: mov edx, dword ptr [ecx + 0x6c] */ 5145 MEM32(eax + 0x6C) = edx; /* 0x2701A03F: mov dword ptr [eax + 0x6c], edx */ 5146 edx = MEM32(ecx + 0x70); /* 0x2701A042: mov edx, dword ptr [ecx + 0x70] */ 5147 MEM32(eax + 0x70) = edx; /* 0x2701A045: mov dword ptr [eax + 0x70], edx */ 5148 edx = MEM32(ecx + 0x74); /* 0x2701A048: mov edx, dword ptr [ecx + 0x74] */ 5149 MEM32(eax + 0x74) = edx; /* 0x2701A04B: mov dword ptr [eax + 0x74], edx */ 5150 edx = MEM32(ecx + 0x78); /* 0x2701A04E: mov edx, dword ptr [ecx + 0x78] */ 5151 MEM32(eax + 0x78) = edx; /* 0x2701A051: mov dword ptr [eax + 0x78], edx */ 5152 edx = MEM32(ecx + 0x7C); /* 0x2701A054: mov edx, dword ptr [ecx + 0x7c] */ 5153 MEM32(eax + 0x7C) = edx; /* 0x2701A057: mov dword ptr [eax + 0x7c], edx */ 5154 edx = MEM32(ecx + 0x80); /* 0x2701A05A: mov edx, dword ptr [ecx + 0x80] */ 5155 MEM32(eax + 0x80) = edx; /* 0x2701A060: mov dword ptr [eax + 0x80], edx */ 5156 edx = MEM32(ecx + 0x84); /* 0x2701A066: mov edx, dword ptr [ecx + 0x84] */ 5157 MEM32(eax + 0x84) = edx; /* 0x2701A06C: mov dword ptr [eax + 0x84], edx */ 5158 edx = MEM32(ecx + 0x88); /* 0x2701A072: mov edx, dword ptr [ecx + 0x88] */ 5159 MEM32(eax + 0x88) = edx; /* 0x2701A078: mov dword ptr [eax + 0x88], edx */ 5160 edx = MEM32(ecx + 0x8C); /* 0x2701A07E: mov edx, dword ptr [ecx + 0x8c] */ 5161 MEM32(eax + 0x8C) = edx; /* 0x2701A084: mov dword ptr [eax + 0x8c], edx */ 5162 edx = MEM32(ecx + 0x90); /* 0x2701A08A: mov edx, dword ptr [ecx + 0x90] */ 5163 MEM32(eax + 0x90) = edx; /* 0x2701A090: mov dword ptr [eax + 0x90], edx */ 5164 edx = MEM32(ecx + 0x94); /* 0x2701A096: mov edx, dword ptr [ecx + 0x94] */ 5165 MEM32(eax + 0x94) = edx; /* 0x2701A09C: mov dword ptr [eax + 0x94], edx */ 5166 edx = MEM32(ecx + 0x98); /* 0x2701A0A2: mov edx, dword ptr [ecx + 0x98] */ 5167 MEM32(eax + 0x98) = edx; /* 0x2701A0A8: mov dword ptr [eax + 0x98], edx */ 5168 edx = MEM32(ecx + 0x9C); /* 0x2701A0AE: mov edx, dword ptr [ecx + 0x9c] */ 5169 MEM32(eax + 0x9C) = edx; /* 0x2701A0B4: mov dword ptr [eax + 0x9c], edx */ 5170 edx = MEM32(ecx + 0xA0); /* 0x2701A0BA: mov edx, dword ptr [ecx + 0xa0] */ 5171 MEM32(eax + 0xA0) = edx; /* 0x2701A0C0: mov dword ptr [eax + 0xa0], edx */ 5172 edx = MEM32(ecx + 0xA4); /* 0x2701A0C6: mov edx, dword ptr [ecx + 0xa4] */ 5173 MEM32(eax + 0xA4) = edx; /* 0x2701A0CC: mov dword ptr [eax + 0xa4], edx */ 5174 edx = MEM32(ecx + 0xA8); /* 0x2701A0D2: mov edx, dword ptr [ecx + 0xa8] */ 5175 MEM32(eax + 0xA8) = edx; /* 0x2701A0D8: mov dword ptr [eax + 0xa8], edx */ 5176 edx = MEM32(ecx + 0xB0); /* 0x2701A0DE: mov edx, dword ptr [ecx + 0xb0] */ 5177 MEM32(eax + 0xB0) = edx; /* 0x2701A0E4: mov dword ptr [eax + 0xb0], edx */ 5178 edx = MEM32(ecx + 0xB4); /* 0x2701A0EA: mov edx, dword ptr [ecx + 0xb4] */ 5179 MEM32(eax + 0xB4) = edx; /* 0x2701A0F0: mov dword ptr [eax + 0xb4], edx */ 5180 SET_LO8(edx, MEM8(ecx + 0xB8)); /* 0x2701A0F6: mov dl, byte ptr [ecx + 0xb8] */ 5181 MEM8(eax + 0xB8) = (uint8_t)(LO8(edx)); /* 0x2701A0FC: mov byte ptr [eax + 0xb8], dl */ 5182 edx = MEM32(ecx + 0xBC); /* 0x2701A102: mov edx, dword ptr [ecx + 0xbc] */ 5183 MEM32(eax + 0xBC) = edx; /* 0x2701A108: mov dword ptr [eax + 0xbc], edx */ 5184 ecx = MEM32(ecx + 0xC0); /* 0x2701A10E: mov ecx, dword ptr [ecx + 0xc0] */ 5185 edi = POP32_VAL(esp); /* 0x2701A114: pop edi */ 5186 MEM32(eax + 0xC0) = ecx; /* 0x2701A115: mov dword ptr [eax + 0xc0], ecx */ 5187 MEM32(eax) = 0x270344F4u; /* 0x2701A11B: mov dword ptr [eax], 0x270344f4 */ 5188 esi = POP32_VAL(esp); /* 0x2701A121: pop esi */ 5189 ebp = POP32_VAL(esp); /* 0x2701A122: pop ebp */ 5190 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701A123: ret 4 */ 5191 RECOMP_REGS_OUT(); 5192 } 5193 5194 void sub_2701A130(void) { 5195 int _fpu_cmp = 0; 5196 uint32_t _cf = 0; 5197 int _df = 1; 5198 uint32_t _flag_k = FK_NONE; 5199 uint32_t _flag_a = 0, _flag_b = 0; 5200 uint32_t _itail_tgt = 0; 5201 RECOMP_REGS_LOCALS 5202 RECOMP_ENTER(0x2701A130u); 5203 5204 L_2701A130: 5205 PUSH32(esp, ebp); /* 0x2701A130: push ebp */ 5206 ebp = esp; /* 0x2701A131: mov ebp, esp */ 5207 eax = ecx; /* 0x2701A133: mov eax, ecx */ 5208 ecx = MEM32(ebp + 0x8); /* 0x2701A135: mov ecx, dword ptr [ebp + 8] */ 5209 edx = MEM32(ecx + 0x4); /* 0x2701A138: mov edx, dword ptr [ecx + 4] */ 5210 MEM32(eax + 0x4) = edx; /* 0x2701A13B: mov dword ptr [eax + 4], edx */ 5211 SET_LO8(edx, MEM8(ecx + 0x8)); /* 0x2701A13E: mov dl, byte ptr [ecx + 8] */ 5212 MEM8(eax + 0x8) = (uint8_t)(LO8(edx)); /* 0x2701A141: mov byte ptr [eax + 8], dl */ 5213 SET_LO8(edx, MEM8(ecx + 0x9)); /* 0x2701A144: mov dl, byte ptr [ecx + 9] */ 5214 MEM8(eax + 0x9) = (uint8_t)(LO8(edx)); /* 0x2701A147: mov byte ptr [eax + 9], dl */ 5215 edx = MEM32(ecx + 0xC); /* 0x2701A14A: mov edx, dword ptr [ecx + 0xc] */ 5216 MEM32(eax + 0xC) = edx; /* 0x2701A14D: mov dword ptr [eax + 0xc], edx */ 5217 edx = MEM32(ecx + 0x10); /* 0x2701A150: mov edx, dword ptr [ecx + 0x10] */ 5218 MEM32(eax + 0x10) = edx; /* 0x2701A153: mov dword ptr [eax + 0x10], edx */ 5219 edx = MEM32(ecx + 0x14); /* 0x2701A156: mov edx, dword ptr [ecx + 0x14] */ 5220 MEM32(eax + 0x14) = edx; /* 0x2701A159: mov dword ptr [eax + 0x14], edx */ 5221 edx = MEM32(ecx + 0x18); /* 0x2701A15C: mov edx, dword ptr [ecx + 0x18] */ 5222 MEM32(eax + 0x18) = edx; /* 0x2701A15F: mov dword ptr [eax + 0x18], edx */ 5223 edx = MEM32(ecx + 0x1C); /* 0x2701A162: mov edx, dword ptr [ecx + 0x1c] */ 5224 MEM32(eax + 0x1C) = edx; /* 0x2701A165: mov dword ptr [eax + 0x1c], edx */ 5225 edx = MEM32(ecx + 0x20); /* 0x2701A168: mov edx, dword ptr [ecx + 0x20] */ 5226 MEM32(eax + 0x20) = edx; /* 0x2701A16B: mov dword ptr [eax + 0x20], edx */ 5227 SET_LO8(edx, MEM8(ecx + 0x24)); /* 0x2701A16E: mov dl, byte ptr [ecx + 0x24] */ 5228 MEM8(eax + 0x24) = (uint8_t)(LO8(edx)); /* 0x2701A171: mov byte ptr [eax + 0x24], dl */ 5229 SET_LO8(edx, MEM8(ecx + 0x25)); /* 0x2701A174: mov dl, byte ptr [ecx + 0x25] */ 5230 MEM8(eax + 0x25) = (uint8_t)(LO8(edx)); /* 0x2701A177: mov byte ptr [eax + 0x25], dl */ 5231 edx = MEM32(ecx + 0x28); /* 0x2701A17A: mov edx, dword ptr [ecx + 0x28] */ 5232 MEM32(eax + 0x28) = edx; /* 0x2701A17D: mov dword ptr [eax + 0x28], edx */ 5233 PUSH32(esp, esi); /* 0x2701A180: push esi */ 5234 PUSH32(esp, edi); /* 0x2701A181: push edi */ 5235 edx = ecx + 0x2C; /* 0x2701A182: lea edx, [ecx + 0x2c] */ 5236 edi = MEM32(edx); /* 0x2701A185: mov edi, dword ptr [edx] */ 5237 esi = eax + 0x2C; /* 0x2701A187: lea esi, [eax + 0x2c] */ 5238 MEM32(esi) = edi; /* 0x2701A18A: mov dword ptr [esi], edi */ 5239 edi = MEM32(edx + 0x4); /* 0x2701A18C: mov edi, dword ptr [edx + 4] */ 5240 MEM32(esi + 0x4) = edi; /* 0x2701A18F: mov dword ptr [esi + 4], edi */ 5241 edi = MEM32(edx + 0x8); /* 0x2701A192: mov edi, dword ptr [edx + 8] */ 5242 MEM32(esi + 0x8) = edi; /* 0x2701A195: mov dword ptr [esi + 8], edi */ 5243 edx = MEM32(edx + 0xC); /* 0x2701A198: mov edx, dword ptr [edx + 0xc] */ 5244 MEM32(esi + 0xC) = edx; /* 0x2701A19B: mov dword ptr [esi + 0xc], edx */ 5245 edx = MEM32(ecx + 0x3C); /* 0x2701A19E: mov edx, dword ptr [ecx + 0x3c] */ 5246 MEM32(eax + 0x3C) = edx; /* 0x2701A1A1: mov dword ptr [eax + 0x3c], edx */ 5247 edx = MEM32(ecx + 0x40); /* 0x2701A1A4: mov edx, dword ptr [ecx + 0x40] */ 5248 MEM32(eax + 0x40) = edx; /* 0x2701A1A7: mov dword ptr [eax + 0x40], edx */ 5249 edx = MEM32(ecx + 0x44); /* 0x2701A1AA: mov edx, dword ptr [ecx + 0x44] */ 5250 MEM32(eax + 0x44) = edx; /* 0x2701A1AD: mov dword ptr [eax + 0x44], edx */ 5251 edx = MEM32(ecx + 0x48); /* 0x2701A1B0: mov edx, dword ptr [ecx + 0x48] */ 5252 MEM32(eax + 0x48) = edx; /* 0x2701A1B3: mov dword ptr [eax + 0x48], edx */ 5253 edx = MEM32(ecx + 0x4C); /* 0x2701A1B6: mov edx, dword ptr [ecx + 0x4c] */ 5254 MEM32(eax + 0x4C) = edx; /* 0x2701A1B9: mov dword ptr [eax + 0x4c], edx */ 5255 SET_LO8(edx, MEM8(ecx + 0x50)); /* 0x2701A1BC: mov dl, byte ptr [ecx + 0x50] */ 5256 MEM8(eax + 0x50) = (uint8_t)(LO8(edx)); /* 0x2701A1BF: mov byte ptr [eax + 0x50], dl */ 5257 edx = MEM32(ecx + 0x54); /* 0x2701A1C2: mov edx, dword ptr [ecx + 0x54] */ 5258 MEM32(eax + 0x54) = edx; /* 0x2701A1C5: mov dword ptr [eax + 0x54], edx */ 5259 edx = MEM32(ecx + 0x58); /* 0x2701A1C8: mov edx, dword ptr [ecx + 0x58] */ 5260 MEM32(eax + 0x58) = edx; /* 0x2701A1CB: mov dword ptr [eax + 0x58], edx */ 5261 edx = MEM32(ecx + 0x5C); /* 0x2701A1CE: mov edx, dword ptr [ecx + 0x5c] */ 5262 MEM32(eax + 0x5C) = edx; /* 0x2701A1D1: mov dword ptr [eax + 0x5c], edx */ 5263 edx = MEM32(ecx + 0x60); /* 0x2701A1D4: mov edx, dword ptr [ecx + 0x60] */ 5264 MEM32(eax + 0x60) = edx; /* 0x2701A1D7: mov dword ptr [eax + 0x60], edx */ 5265 edx = MEM32(ecx + 0x64); /* 0x2701A1DA: mov edx, dword ptr [ecx + 0x64] */ 5266 MEM32(eax + 0x64) = edx; /* 0x2701A1DD: mov dword ptr [eax + 0x64], edx */ 5267 edx = MEM32(ecx + 0x68); /* 0x2701A1E0: mov edx, dword ptr [ecx + 0x68] */ 5268 MEM32(eax + 0x68) = edx; /* 0x2701A1E3: mov dword ptr [eax + 0x68], edx */ 5269 edx = MEM32(ecx + 0x6C); /* 0x2701A1E6: mov edx, dword ptr [ecx + 0x6c] */ 5270 MEM32(eax + 0x6C) = edx; /* 0x2701A1E9: mov dword ptr [eax + 0x6c], edx */ 5271 edx = MEM32(ecx + 0x70); /* 0x2701A1EC: mov edx, dword ptr [ecx + 0x70] */ 5272 MEM32(eax + 0x70) = edx; /* 0x2701A1EF: mov dword ptr [eax + 0x70], edx */ 5273 edx = MEM32(ecx + 0x74); /* 0x2701A1F2: mov edx, dword ptr [ecx + 0x74] */ 5274 MEM32(eax + 0x74) = edx; /* 0x2701A1F5: mov dword ptr [eax + 0x74], edx */ 5275 edx = MEM32(ecx + 0x78); /* 0x2701A1F8: mov edx, dword ptr [ecx + 0x78] */ 5276 MEM32(eax + 0x78) = edx; /* 0x2701A1FB: mov dword ptr [eax + 0x78], edx */ 5277 edx = MEM32(ecx + 0x7C); /* 0x2701A1FE: mov edx, dword ptr [ecx + 0x7c] */ 5278 MEM32(eax + 0x7C) = edx; /* 0x2701A201: mov dword ptr [eax + 0x7c], edx */ 5279 edx = MEM32(ecx + 0x80); /* 0x2701A204: mov edx, dword ptr [ecx + 0x80] */ 5280 MEM32(eax + 0x80) = edx; /* 0x2701A20A: mov dword ptr [eax + 0x80], edx */ 5281 edx = MEM32(ecx + 0x84); /* 0x2701A210: mov edx, dword ptr [ecx + 0x84] */ 5282 MEM32(eax + 0x84) = edx; /* 0x2701A216: mov dword ptr [eax + 0x84], edx */ 5283 edx = MEM32(ecx + 0x88); /* 0x2701A21C: mov edx, dword ptr [ecx + 0x88] */ 5284 MEM32(eax + 0x88) = edx; /* 0x2701A222: mov dword ptr [eax + 0x88], edx */ 5285 edx = MEM32(ecx + 0x8C); /* 0x2701A228: mov edx, dword ptr [ecx + 0x8c] */ 5286 MEM32(eax + 0x8C) = edx; /* 0x2701A22E: mov dword ptr [eax + 0x8c], edx */ 5287 edx = MEM32(ecx + 0x90); /* 0x2701A234: mov edx, dword ptr [ecx + 0x90] */ 5288 MEM32(eax + 0x90) = edx; /* 0x2701A23A: mov dword ptr [eax + 0x90], edx */ 5289 edx = MEM32(ecx + 0x94); /* 0x2701A240: mov edx, dword ptr [ecx + 0x94] */ 5290 MEM32(eax + 0x94) = edx; /* 0x2701A246: mov dword ptr [eax + 0x94], edx */ 5291 edx = MEM32(ecx + 0x98); /* 0x2701A24C: mov edx, dword ptr [ecx + 0x98] */ 5292 MEM32(eax + 0x98) = edx; /* 0x2701A252: mov dword ptr [eax + 0x98], edx */ 5293 edx = MEM32(ecx + 0x9C); /* 0x2701A258: mov edx, dword ptr [ecx + 0x9c] */ 5294 MEM32(eax + 0x9C) = edx; /* 0x2701A25E: mov dword ptr [eax + 0x9c], edx */ 5295 edx = MEM32(ecx + 0xA0); /* 0x2701A264: mov edx, dword ptr [ecx + 0xa0] */ 5296 MEM32(eax + 0xA0) = edx; /* 0x2701A26A: mov dword ptr [eax + 0xa0], edx */ 5297 edx = MEM32(ecx + 0xA4); /* 0x2701A270: mov edx, dword ptr [ecx + 0xa4] */ 5298 MEM32(eax + 0xA4) = edx; /* 0x2701A276: mov dword ptr [eax + 0xa4], edx */ 5299 edx = MEM32(ecx + 0xA8); /* 0x2701A27C: mov edx, dword ptr [ecx + 0xa8] */ 5300 MEM32(eax + 0xA8) = edx; /* 0x2701A282: mov dword ptr [eax + 0xa8], edx */ 5301 edx = MEM32(ecx + 0xB0); /* 0x2701A288: mov edx, dword ptr [ecx + 0xb0] */ 5302 MEM32(eax + 0xB0) = edx; /* 0x2701A28E: mov dword ptr [eax + 0xb0], edx */ 5303 edx = MEM32(ecx + 0xB4); /* 0x2701A294: mov edx, dword ptr [ecx + 0xb4] */ 5304 MEM32(eax + 0xB4) = edx; /* 0x2701A29A: mov dword ptr [eax + 0xb4], edx */ 5305 SET_LO8(edx, MEM8(ecx + 0xB8)); /* 0x2701A2A0: mov dl, byte ptr [ecx + 0xb8] */ 5306 MEM8(eax + 0xB8) = (uint8_t)(LO8(edx)); /* 0x2701A2A6: mov byte ptr [eax + 0xb8], dl */ 5307 edx = MEM32(ecx + 0xBC); /* 0x2701A2AC: mov edx, dword ptr [ecx + 0xbc] */ 5308 MEM32(eax + 0xBC) = edx; /* 0x2701A2B2: mov dword ptr [eax + 0xbc], edx */ 5309 ecx = MEM32(ecx + 0xC0); /* 0x2701A2B8: mov ecx, dword ptr [ecx + 0xc0] */ 5310 edi = POP32_VAL(esp); /* 0x2701A2BE: pop edi */ 5311 MEM32(eax + 0xC0) = ecx; /* 0x2701A2BF: mov dword ptr [eax + 0xc0], ecx */ 5312 esi = POP32_VAL(esp); /* 0x2701A2C5: pop esi */ 5313 ebp = POP32_VAL(esp); /* 0x2701A2C6: pop ebp */ 5314 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701A2C7: ret 4 */ 5315 RECOMP_REGS_OUT(); 5316 } 5317 5318 void sub_2701A2D0(void) { 5319 int _fpu_cmp = 0; 5320 uint32_t _cf = 0; 5321 int _df = 1; 5322 uint32_t _flag_k = FK_NONE; 5323 uint32_t _flag_a = 0, _flag_b = 0; 5324 uint32_t _itail_tgt = 0; 5325 RECOMP_REGS_LOCALS 5326 RECOMP_ENTER(0x2701A2D0u); 5327 5328 L_2701A2D0: 5329 PUSH32(esp, ebp); /* 0x2701A2D0: push ebp */ 5330 ebp = esp; /* 0x2701A2D1: mov ebp, esp */ 5331 PUSH32(esp, ebx); /* 0x2701A2D3: push ebx */ 5332 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x2701A2D4: mov bl, byte ptr [ebp + 8] */ 5333 /* test LO8(ebx), 2 */ /* 0x2701A2D7: test bl, 2 */ 5334 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 5335 _cf = 0; 5336 _flag_k = FK_NARROW(FK_TEST, 24); 5337 PUSH32(esp, esi); /* 0x2701A2DA: push esi */ 5338 esi = ecx; /* 0x2701A2DB: mov esi, ecx */ 5339 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A30E; /* 0x2701A2DD: je 0x2701a30e */ 5340 L_2701A2DF: 5341 eax = MEM32(esi + (-0x4)); /* 0x2701A2DF: mov eax, dword ptr [esi - 4] */ 5342 PUSH32(esp, edi); /* 0x2701A2E2: push edi */ 5343 PUSH32(esp, 0x2701A930u); /* 0x2701A2E3: push 0x2701a930 */ 5344 edi = esi + (-0x4); /* 0x2701A2E8: lea edi, [esi - 4] */ 5345 PUSH32(esp, eax); /* 0x2701A2EB: push eax */ 5346 PUSH32(esp, 0xC8u); /* 0x2701A2EC: push 0xc8 */ 5347 PUSH32(esp, esi); /* 0x2701A2F1: push esi */ 5348 RECOMP_ICALL(0x27026DB0u); /* 0x2701A2F2: call 0x27026db0 */ /* not lifted */ 5349 RECOMP_FLAGS_IN(); 5350 /* test LO8(ebx), 1 */ /* 0x2701A2F7: test bl, 1 */ 5351 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5352 _cf = 0; 5353 _flag_k = FK_NARROW(FK_TEST, 24); 5354 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A305; /* 0x2701A2FA: je 0x2701a305 */ 5355 L_2701A2FC: 5356 PUSH32(esp, edi); /* 0x2701A2FC: push edi */ 5357 RECOMP_ICALL(0x27026DA4u); /* 0x2701A2FD: call 0x27026da4 */ /* not lifted */ 5358 RECOMP_FLAGS_IN(); 5359 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5361 esp = esp + 4; /* 0x2701A302: add esp, 4 */ 5362 _flag_k = FK_ADD; 5363 L_2701A305: 5364 eax = edi; /* 0x2701A305: mov eax, edi */ 5365 edi = POP32_VAL(esp); /* 0x2701A307: pop edi */ 5366 esi = POP32_VAL(esp); /* 0x2701A308: pop esi */ 5367 ebx = POP32_VAL(esp); /* 0x2701A309: pop ebx */ 5368 ebp = POP32_VAL(esp); /* 0x2701A30A: pop ebp */ 5369 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701A30B: ret 4 */ 5370 L_2701A30E: 5371 ecx = esi; /* 0x2701A30E: mov ecx, esi */ 5372 RECOMP_ICALL(0x2701A930u); /* 0x2701A310: call 0x2701a930 */ /* not lifted */ 5373 RECOMP_FLAGS_IN(); 5374 /* test LO8(ebx), 1 */ /* 0x2701A315: test bl, 1 */ 5375 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5376 _cf = 0; 5377 _flag_k = FK_NARROW(FK_TEST, 24); 5378 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A323; /* 0x2701A318: je 0x2701a323 */ 5379 L_2701A31A: 5380 PUSH32(esp, esi); /* 0x2701A31A: push esi */ 5381 RECOMP_ICALL(0x27026DA4u); /* 0x2701A31B: call 0x27026da4 */ /* not lifted */ 5382 RECOMP_FLAGS_IN(); 5383 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5384 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5385 esp = esp + 4; /* 0x2701A320: add esp, 4 */ 5386 _flag_k = FK_ADD; 5387 L_2701A323: 5388 eax = esi; /* 0x2701A323: mov eax, esi */ 5389 esi = POP32_VAL(esp); /* 0x2701A325: pop esi */ 5390 ebx = POP32_VAL(esp); /* 0x2701A326: pop ebx */ 5391 ebp = POP32_VAL(esp); /* 0x2701A327: pop ebp */ 5392 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701A328: ret 4 */ 5393 RECOMP_REGS_OUT(); 5394 } 5395 5396 void sub_2701A330(void) { 5397 int _fpu_cmp = 0; 5398 uint32_t _cf = 0; 5399 int _df = 1; 5400 uint32_t _flag_k = FK_NONE; 5401 uint32_t _flag_a = 0, _flag_b = 0; 5402 uint32_t _itail_tgt = 0; 5403 RECOMP_REGS_LOCALS 5404 RECOMP_ENTER(0x2701A330u); 5405 5406 L_2701A330: 5407 PUSH32(esp, ebp); /* 0x2701A330: push ebp */ 5408 ebp = esp; /* 0x2701A331: mov ebp, esp */ 5409 PUSH32(esp, 0xFFFFFFFFu); /* 0x2701A333: push -1 */ 5410 PUSH32(esp, 0x27027E46u); /* 0x2701A335: push 0x27027e46 */ 5411 eax = MEM32(FS_BASE + (0)); /* 0x2701A33A: mov eax, dword ptr fs:[0] */ 5412 PUSH32(esp, eax); /* 0x2701A340: push eax */ 5413 MEM32(FS_BASE + (0)) = esp; /* 0x2701A341: mov dword ptr fs:[0], esp */ 5414 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xC4u); 5415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5416 esp = esp - 0xC4u; /* 0x2701A348: sub esp, 0xc4 */ 5417 _flag_k = FK_CMP; 5418 PUSH32(esp, ebx); /* 0x2701A34E: push ebx */ 5419 PUSH32(esp, esi); /* 0x2701A34F: push esi */ 5420 PUSH32(esp, edi); /* 0x2701A350: push edi */ 5421 esi = ecx; /* 0x2701A351: mov esi, ecx */ 5422 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5423 edi = 0; /* 0x2701A353: xor edi, edi */ 5424 _cf = 0; 5425 _flag_k = FK_TEST; 5426 PUSH32(esp, edi); /* 0x2701A355: push edi */ 5427 MEM32(ebp + (-0x60)) = esi; /* 0x2701A356: mov dword ptr [ebp - 0x60], esi */ 5428 RECOMP_ICALL(0x270104B0u); /* 0x2701A359: call 0x270104b0 */ /* not lifted */ 5429 RECOMP_FLAGS_IN(); 5430 ebx = MEM32(ebp + 0x8); /* 0x2701A35E: mov ebx, dword ptr [ebp + 8] */ 5431 MEM32(esi + 0x54) = edi; /* 0x2701A361: mov dword ptr [esi + 0x54], edi */ 5432 MEM32(esi + 0x58) = edi; /* 0x2701A364: mov dword ptr [esi + 0x58], edi */ 5433 MEM32(esi + 0x98) = 1; /* 0x2701A367: mov dword ptr [esi + 0x98], 1 */ 5434 MEM8(esi + 0xB8) = (uint8_t)(0); /* 0x2701A371: mov byte ptr [esi + 0xb8], 0 */ 5435 MEM32(esi + 0xBC) = edi; /* 0x2701A378: mov dword ptr [esi + 0xbc], edi */ 5436 MEM32(esi) = 0x270344F4u; /* 0x2701A37E: mov dword ptr [esi], 0x270344f4 */ 5437 /* cmp MEM32(ebx + 0x38), edi */ /* 0x2701A384: cmp dword ptr [ebx + 0x38], edi */ 5438 _flag_a = (uint32_t)(MEM32(ebx + 0x38)); _flag_b = (uint32_t)(edi); 5439 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5440 _flag_k = FK_CMP; 5441 MEM32(ebp + (-0x4)) = edi; /* 0x2701A387: mov dword ptr [ebp - 4], edi */ 5442 if (CMP_NE(_flag_a, _flag_b)) goto L_2701A393; /* 0x2701A38A: jne 0x2701a393 */ 5443 L_2701A38C: 5444 MEM32(ebx + 0x38) = 0x28u; /* 0x2701A38C: mov dword ptr [ebx + 0x38], 0x28 */ 5445 L_2701A393: 5446 /* cmp MEM32(ebx + 0x3C), edi */ /* 0x2701A393: cmp dword ptr [ebx + 0x3c], edi */ 5447 _flag_a = (uint32_t)(MEM32(ebx + 0x3C)); _flag_b = (uint32_t)(edi); 5448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5449 _flag_k = FK_CMP; 5450 if (CMP_NE(_flag_a, _flag_b)) goto L_2701A39F; /* 0x2701A396: jne 0x2701a39f */ 5451 L_2701A398: 5452 MEM32(ebx + 0x3C) = 0x29u; /* 0x2701A398: mov dword ptr [ebx + 0x3c], 0x29 */ 5453 L_2701A39F: 5454 /* cmp MEM32(ebx + 0x40), edi */ /* 0x2701A39F: cmp dword ptr [ebx + 0x40], edi */ 5455 _flag_a = (uint32_t)(MEM32(ebx + 0x40)); _flag_b = (uint32_t)(edi); 5456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5457 _flag_k = FK_CMP; 5458 if (CMP_NE(_flag_a, _flag_b)) goto L_2701A3AB; /* 0x2701A3A2: jne 0x2701a3ab */ 5459 L_2701A3A4: 5460 MEM32(ebx + 0x40) = 0x2Au; /* 0x2701A3A4: mov dword ptr [ebx + 0x40], 0x2a */ 5461 L_2701A3AB: 5462 /* cmp MEM32(ebx + 0x44), edi */ /* 0x2701A3AB: cmp dword ptr [ebx + 0x44], edi */ 5463 _flag_a = (uint32_t)(MEM32(ebx + 0x44)); _flag_b = (uint32_t)(edi); 5464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5465 _flag_k = FK_CMP; 5466 if (CMP_NE(_flag_a, _flag_b)) goto L_2701A3B7; /* 0x2701A3AE: jne 0x2701a3b7 */ 5467 L_2701A3B0: 5468 MEM32(ebx + 0x44) = 0x2Bu; /* 0x2701A3B0: mov dword ptr [ebx + 0x44], 0x2b */ 5469 L_2701A3B7: 5470 /* cmp MEM32(ebx + 0x48), edi */ /* 0x2701A3B7: cmp dword ptr [ebx + 0x48], edi */ 5471 _flag_a = (uint32_t)(MEM32(ebx + 0x48)); _flag_b = (uint32_t)(edi); 5472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5473 _flag_k = FK_CMP; 5474 if (CMP_NE(_flag_a, _flag_b)) goto L_2701A3C3; /* 0x2701A3BA: jne 0x2701a3c3 */ 5475 L_2701A3BC: 5476 MEM32(ebx + 0x48) = 0x27u; /* 0x2701A3BC: mov dword ptr [ebx + 0x48], 0x27 */ 5477 L_2701A3C3: 5478 /* cmp MEM32(ebx + 0x4C), edi */ /* 0x2701A3C3: cmp dword ptr [ebx + 0x4c], edi */ 5479 _flag_a = (uint32_t)(MEM32(ebx + 0x4C)); _flag_b = (uint32_t)(edi); 5480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5481 _flag_k = FK_CMP; 5482 if (CMP_NE(_flag_a, _flag_b)) goto L_2701A3CF; /* 0x2701A3C6: jne 0x2701a3cf */ 5483 L_2701A3C8: 5484 MEM32(ebx + 0x4C) = 0x26u; /* 0x2701A3C8: mov dword ptr [ebx + 0x4c], 0x26 */ 5485 L_2701A3CF: 5486 eax = 0x10u; /* 0x2701A3CF: mov eax, 0x10 */ 5487 MEM32(ebp + (-0x34)) = eax; /* 0x2701A3D4: mov dword ptr [ebp - 0x34], eax */ 5488 MEM32(ebp + (-0x30)) = eax; /* 0x2701A3D7: mov dword ptr [ebp - 0x30], eax */ 5489 eax = 0xBu; /* 0x2701A3DA: mov eax, 0xb */ 5490 PUSH32(esp, 0x50u); /* 0x2701A3DF: push 0x50 */ 5491 MEM32(ebp + (-0x3C)) = eax; /* 0x2701A3E1: mov dword ptr [ebp - 0x3c], eax */ 5492 MEM32(ebp + (-0x38)) = eax; /* 0x2701A3E4: mov dword ptr [ebp - 0x38], eax */ 5493 MEM32(ebp + (-0x14)) = edi; /* 0x2701A3E7: mov dword ptr [ebp - 0x14], edi */ 5494 MEM32(ebp + (-0x10)) = edi; /* 0x2701A3EA: mov dword ptr [ebp - 0x10], edi */ 5495 RECOMP_ICALL(0x27026EA4u); /* 0x2701A3ED: call 0x27026ea4 */ /* not lifted */ 5496 RECOMP_FLAGS_IN(); 5497 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5498 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5499 esp = esp + 4; /* 0x2701A3F2: add esp, 4 */ 5500 _flag_k = FK_ADD; 5501 MEM32(ebp + 0x8) = eax; /* 0x2701A3F5: mov dword ptr [ebp + 8], eax */ 5502 /* cmp eax, edi */ /* 0x2701A3F8: cmp eax, edi */ 5503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5505 _flag_k = FK_CMP; 5506 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2701A3FA: mov byte ptr [ebp - 4], 1 */ 5507 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701A424; /* 0x2701A3FE: je 0x2701a424 */ 5508 L_2701A400: 5509 ecx = MEM32(ebx + 0xC); /* 0x2701A400: mov ecx, dword ptr [ebx + 0xc] */ 5510 PUSH32(esp, edi); /* 0x2701A403: push edi */ 5511 PUSH32(esp, 0x3F800000u); /* 0x2701A404: push 0x3f800000 */ 5512 PUSH32(esp, 0x3F800000u); /* 0x2701A409: push 0x3f800000 */ 5513 PUSH32(esp, ecx); /* 0x2701A40E: push ecx */ 5514 edx = ebp + (-0x14); /* 0x2701A40F: lea edx, [ebp - 0x14] */ 5515 PUSH32(esp, edx); /* 0x2701A412: push edx */ 5516 ecx = ebp + (-0x34); /* 0x2701A413: lea ecx, [ebp - 0x34] */ 5517 PUSH32(esp, ecx); /* 0x2701A416: push ecx */ 5518 PUSH32(esp, 4); /* 0x2701A417: push 4 */ 5519 PUSH32(esp, 4); /* 0x2701A419: push 4 */ 5520 ecx = eax; /* 0x2701A41B: mov ecx, eax */ 5521 RECOMP_ICALL(0x27018030u); /* 0x2701A41D: call 0x27018030 */ /* not lifted */ 5522 RECOMP_FLAGS_IN(); 5523 goto L_2701A426; /* 0x2701A422: jmp 0x2701a426 */ 5524 L_2701A424: 5525 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5526 eax = 0; /* 0x2701A424: xor eax, eax */ 5527 _cf = 0; 5528 _flag_k = FK_TEST; 5529 L_2701A426: 5530 edx = ebp + (-0x3C); /* 0x2701A426: lea edx, [ebp - 0x3c] */ 5531 PUSH32(esp, edx); /* 0x2701A429: push edx */ 5532 ecx = eax; /* 0x2701A42A: mov ecx, eax */ 5533 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701A42C: mov byte ptr [ebp - 4], 0 */ 5534 MEM32(esi + 0x60) = eax; /* 0x2701A430: mov dword ptr [esi + 0x60], eax */ 5535 RECOMP_ICALL(0x27018720u); /* 0x2701A433: call 0x27018720 */ /* not lifted */ 5536 RECOMP_FLAGS_IN(); 5537 edx = MEM32(ebx + 0x3C); /* 0x2701A438: mov edx, dword ptr [ebx + 0x3c] */ 5538 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5539 eax = 0; /* 0x2701A43B: xor eax, eax */ 5540 _cf = 0; 5541 _flag_k = FK_TEST; 5542 ecx = 0xCu; /* 0x2701A43D: mov ecx, 0xc */ 5543 edi = ebp + (-0xA0); /* 0x2701A442: lea edi, [ebp - 0xa0] */ 5544 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2701A448: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 5545 eax = MEM32(ebx + 0xC); /* 0x2701A44A: mov eax, dword ptr [ebx + 0xc] */ 5546 ecx = MEM32(ebx + 0x38); /* 0x2701A44D: mov ecx, dword ptr [ebx + 0x38] */ 5547 PUSH32(esp, 0xBCu); /* 0x2701A450: push 0xbc */ 5548 MEM32(ebp + (-0x88)) = eax; /* 0x2701A455: mov dword ptr [ebp - 0x88], eax */ 5549 MEM32(ebp + (-0x80)) = ecx; /* 0x2701A45B: mov dword ptr [ebp - 0x80], ecx */ 5550 MEM32(ebp + (-0x7C)) = edx; /* 0x2701A45E: mov dword ptr [ebp - 0x7c], edx */ 5551 RECOMP_ICALL(0x27026EA4u); /* 0x2701A461: call 0x27026ea4 */ /* not lifted */ 5552 RECOMP_FLAGS_IN(); 5553 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5554 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5555 esp = esp + 4; /* 0x2701A466: add esp, 4 */ 5556 _flag_k = FK_ADD; 5557 MEM32(ebp + 0x8) = eax; /* 0x2701A469: mov dword ptr [ebp + 8], eax */ 5558 /* test eax, eax */ /* 0x2701A46C: test eax, eax */ 5559 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5560 _cf = 0; 5561 _flag_k = FK_TEST; 5562 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2701A46E: mov byte ptr [ebp - 4], 2 */ 5563 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A488; /* 0x2701A472: je 0x2701a488 */ 5564 L_2701A474: 5565 ecx = MEM32(esi + 0x60); /* 0x2701A474: mov ecx, dword ptr [esi + 0x60] */ 5566 PUSH32(esp, ecx); /* 0x2701A477: push ecx */ 5567 edx = ebp + (-0xA0); /* 0x2701A478: lea edx, [ebp - 0xa0] */ 5568 PUSH32(esp, edx); /* 0x2701A47E: push edx */ 5569 ecx = eax; /* 0x2701A47F: mov ecx, eax */ 5570 RECOMP_ICALL(0x2700ABC0u); /* 0x2701A481: call 0x2700abc0 */ /* not lifted */ 5571 RECOMP_FLAGS_IN(); 5572 goto L_2701A48A; /* 0x2701A486: jmp 0x2701a48a */ 5573 L_2701A488: 5574 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5575 eax = 0; /* 0x2701A488: xor eax, eax */ 5576 _cf = 0; 5577 _flag_k = FK_TEST; 5578 L_2701A48A: 5579 PUSH32(esp, esi); /* 0x2701A48A: push esi */ 5580 PUSH32(esp, 0x27019F30u); /* 0x2701A48B: push 0x27019f30 */ 5581 ecx = eax; /* 0x2701A490: mov ecx, eax */ 5582 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701A492: mov byte ptr [ebp - 4], 0 */ 5583 MEM32(esi + 0x5C) = eax; /* 0x2701A496: mov dword ptr [esi + 0x5c], eax */ 5584 RECOMP_ICALL(0x2700B320u); /* 0x2701A499: call 0x2700b320 */ /* not lifted */ 5585 RECOMP_FLAGS_IN(); 5586 PUSH32(esp, 0x50u); /* 0x2701A49E: push 0x50 */ 5587 RECOMP_ICALL(0x27026EA4u); /* 0x2701A4A0: call 0x27026ea4 */ /* not lifted */ 5588 RECOMP_FLAGS_IN(); 5589 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5590 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5591 esp = esp + 4; /* 0x2701A4A5: add esp, 4 */ 5592 _flag_k = FK_ADD; 5593 MEM32(ebp + 0x8) = eax; /* 0x2701A4A8: mov dword ptr [ebp + 8], eax */ 5594 /* test eax, eax */ /* 0x2701A4AB: test eax, eax */ 5595 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5596 _cf = 0; 5597 _flag_k = FK_TEST; 5598 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2701A4AD: mov byte ptr [ebp - 4], 3 */ 5599 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A4D8; /* 0x2701A4B1: je 0x2701a4d8 */ 5600 L_2701A4B3: 5601 ecx = MEM32(ebx + 0xC); /* 0x2701A4B3: mov ecx, dword ptr [ebx + 0xc] */ 5602 PUSH32(esp, 0); /* 0x2701A4B6: push 0 */ 5603 PUSH32(esp, 0x3F800000u); /* 0x2701A4B8: push 0x3f800000 */ 5604 PUSH32(esp, 0x3F800000u); /* 0x2701A4BD: push 0x3f800000 */ 5605 PUSH32(esp, ecx); /* 0x2701A4C2: push ecx */ 5606 edx = ebp + (-0x14); /* 0x2701A4C3: lea edx, [ebp - 0x14] */ 5607 PUSH32(esp, edx); /* 0x2701A4C6: push edx */ 5608 ecx = ebp + (-0x34); /* 0x2701A4C7: lea ecx, [ebp - 0x34] */ 5609 PUSH32(esp, ecx); /* 0x2701A4CA: push ecx */ 5610 PUSH32(esp, 4); /* 0x2701A4CB: push 4 */ 5611 PUSH32(esp, 4); /* 0x2701A4CD: push 4 */ 5612 ecx = eax; /* 0x2701A4CF: mov ecx, eax */ 5613 RECOMP_ICALL(0x27018030u); /* 0x2701A4D1: call 0x27018030 */ /* not lifted */ 5614 RECOMP_FLAGS_IN(); 5615 goto L_2701A4DA; /* 0x2701A4D6: jmp 0x2701a4da */ 5616 L_2701A4D8: 5617 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5618 eax = 0; /* 0x2701A4D8: xor eax, eax */ 5619 _cf = 0; 5620 _flag_k = FK_TEST; 5621 L_2701A4DA: 5622 edx = ebp + (-0x3C); /* 0x2701A4DA: lea edx, [ebp - 0x3c] */ 5623 PUSH32(esp, edx); /* 0x2701A4DD: push edx */ 5624 ecx = eax; /* 0x2701A4DE: mov ecx, eax */ 5625 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701A4E0: mov byte ptr [ebp - 4], 0 */ 5626 MEM32(esi + 0x68) = eax; /* 0x2701A4E4: mov dword ptr [esi + 0x68], eax */ 5627 RECOMP_ICALL(0x27018720u); /* 0x2701A4E7: call 0x27018720 */ /* not lifted */ 5628 RECOMP_FLAGS_IN(); 5629 edx = MEM32(ebx + 0x44); /* 0x2701A4EC: mov edx, dword ptr [ebx + 0x44] */ 5630 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5631 eax = 0; /* 0x2701A4EF: xor eax, eax */ 5632 _cf = 0; 5633 _flag_k = FK_TEST; 5634 ecx = 0xCu; /* 0x2701A4F1: mov ecx, 0xc */ 5635 edi = ebp + (-0xD0); /* 0x2701A4F6: lea edi, [ebp - 0xd0] */ 5636 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2701A4FC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 5637 eax = MEM32(ebx + 0xC); /* 0x2701A4FE: mov eax, dword ptr [ebx + 0xc] */ 5638 ecx = MEM32(ebx + 0x40); /* 0x2701A501: mov ecx, dword ptr [ebx + 0x40] */ 5639 PUSH32(esp, 0xBCu); /* 0x2701A504: push 0xbc */ 5640 MEM32(ebp + (-0xB8)) = eax; /* 0x2701A509: mov dword ptr [ebp - 0xb8], eax */ 5641 MEM32(ebp + (-0xB0)) = ecx; /* 0x2701A50F: mov dword ptr [ebp - 0xb0], ecx */ 5642 MEM32(ebp + (-0xAC)) = edx; /* 0x2701A515: mov dword ptr [ebp - 0xac], edx */ 5643 RECOMP_ICALL(0x27026EA4u); /* 0x2701A51B: call 0x27026ea4 */ /* not lifted */ 5644 RECOMP_FLAGS_IN(); 5645 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5647 esp = esp + 4; /* 0x2701A520: add esp, 4 */ 5648 _flag_k = FK_ADD; 5649 MEM32(ebp + 0x8) = eax; /* 0x2701A523: mov dword ptr [ebp + 8], eax */ 5650 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5651 edi = 0; /* 0x2701A526: xor edi, edi */ 5652 _cf = 0; 5653 _flag_k = FK_TEST; 5654 /* cmp eax, edi */ /* 0x2701A528: cmp eax, edi */ 5655 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5657 _flag_k = FK_CMP; 5658 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2701A52A: mov byte ptr [ebp - 4], 4 */ 5659 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701A544; /* 0x2701A52E: je 0x2701a544 */ 5660 L_2701A530: 5661 ecx = MEM32(esi + 0x68); /* 0x2701A530: mov ecx, dword ptr [esi + 0x68] */ 5662 PUSH32(esp, ecx); /* 0x2701A533: push ecx */ 5663 edx = ebp + (-0xD0); /* 0x2701A534: lea edx, [ebp - 0xd0] */ 5664 PUSH32(esp, edx); /* 0x2701A53A: push edx */ 5665 ecx = eax; /* 0x2701A53B: mov ecx, eax */ 5666 RECOMP_ICALL(0x2700ABC0u); /* 0x2701A53D: call 0x2700abc0 */ /* not lifted */ 5667 RECOMP_FLAGS_IN(); 5668 goto L_2701A546; /* 0x2701A542: jmp 0x2701a546 */ 5669 L_2701A544: 5670 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5671 eax = 0; /* 0x2701A544: xor eax, eax */ 5672 _cf = 0; 5673 _flag_k = FK_TEST; 5674 L_2701A546: 5675 PUSH32(esp, esi); /* 0x2701A546: push esi */ 5676 PUSH32(esp, 0x27019F20u); /* 0x2701A547: push 0x27019f20 */ 5677 ecx = eax; /* 0x2701A54C: mov ecx, eax */ 5678 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701A54E: mov byte ptr [ebp - 4], 0 */ 5679 MEM32(esi + 0x64) = eax; /* 0x2701A552: mov dword ptr [esi + 0x64], eax */ 5680 RECOMP_ICALL(0x2700B320u); /* 0x2701A555: call 0x2700b320 */ /* not lifted */ 5681 RECOMP_FLAGS_IN(); 5682 eax = MEM32(ebx + 0xC); /* 0x2701A55A: mov eax, dword ptr [ebx + 0xc] */ 5683 PUSH32(esp, eax); /* 0x2701A55D: push eax */ 5684 ecx = esi; /* 0x2701A55E: mov ecx, esi */ 5685 RECOMP_ICALL(0x270105B0u); /* 0x2701A560: call 0x270105b0 */ /* not lifted */ 5686 RECOMP_FLAGS_IN(); 5687 ecx = ebp + (-0x14); /* 0x2701A565: lea ecx, [ebp - 0x14] */ 5688 PUSH32(esp, ecx); /* 0x2701A568: push ecx */ 5689 ecx = esi; /* 0x2701A569: mov ecx, esi */ 5690 RECOMP_ICALL(0x270109B0u); /* 0x2701A56B: call 0x270109b0 */ /* not lifted */ 5691 RECOMP_FLAGS_IN(); 5692 MEM32(esi + 0x74) = edi; /* 0x2701A570: mov dword ptr [esi + 0x74], edi */ 5693 MEM32(esi + 0x78) = edi; /* 0x2701A573: mov dword ptr [esi + 0x78], edi */ 5694 edx = MEM32(ebx + 0x1C); /* 0x2701A576: mov edx, dword ptr [ebx + 0x1c] */ 5695 MEM32(esi + 0xA4) = edx; /* 0x2701A579: mov dword ptr [esi + 0xa4], edx */ 5696 eax = MEM32(ebx + 0x20); /* 0x2701A57F: mov eax, dword ptr [ebx + 0x20] */ 5697 MEM32(esi + 0xA8) = eax; /* 0x2701A582: mov dword ptr [esi + 0xa8], eax */ 5698 ecx = MEM32(ebx + 0x28); /* 0x2701A588: mov ecx, dword ptr [ebx + 0x28] */ 5699 MEM32(esi + 0x9C) = ecx; /* 0x2701A58B: mov dword ptr [esi + 0x9c], ecx */ 5700 edx = MEM32(ebx + 0x2C); /* 0x2701A591: mov edx, dword ptr [ebx + 0x2c] */ 5701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xA4)); 5702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5703 eax = eax - MEM32(esi + 0xA4); /* 0x2701A594: sub eax, dword ptr [esi + 0xa4] */ 5704 _flag_k = FK_CMP; 5705 MEM32(esi + 0xA0) = edx; /* 0x2701A59A: mov dword ptr [esi + 0xa0], edx */ 5706 MEM32(esi + 0x88) = eax; /* 0x2701A5A0: mov dword ptr [esi + 0x88], eax */ 5707 MEM32(esi + 0x70) = edi; /* 0x2701A5A6: mov dword ptr [esi + 0x70], edi */ 5708 MEM32(esi + 0x6C) = edi; /* 0x2701A5A9: mov dword ptr [esi + 0x6c], edi */ 5709 ecx = MEM32(ebx + 0x48); /* 0x2701A5AC: mov ecx, dword ptr [ebx + 0x48] */ 5710 PUSH32(esp, 2); /* 0x2701A5AF: push 2 */ 5711 PUSH32(esp, ecx); /* 0x2701A5B1: push ecx */ 5712 RECOMP_ICALL(MEM32(0x2702939C)); /* 0x2701A5B2: call dword ptr [0x2702939c] */ 5713 RECOMP_FLAGS_IN(); 5714 ecx = eax; /* 0x2701A5B8: mov ecx, eax */ 5715 RECOMP_ICALL(MEM32(0x270293A4)); /* 0x2701A5BA: call dword ptr [0x270293a4] */ 5716 RECOMP_FLAGS_IN(); 5717 PUSH32(esp, 0x34u); /* 0x2701A5C0: push 0x34 */ 5718 edi = eax; /* 0x2701A5C2: mov edi, eax */ 5719 RECOMP_ICALL(0x27026EA4u); /* 0x2701A5C4: call 0x27026ea4 */ /* not lifted */ 5720 RECOMP_FLAGS_IN(); 5721 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5722 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5723 esp = esp + 4; /* 0x2701A5C9: add esp, 4 */ 5724 _flag_k = FK_ADD; 5725 MEM32(ebp + 0x8) = eax; /* 0x2701A5CC: mov dword ptr [ebp + 8], eax */ 5726 /* test eax, eax */ /* 0x2701A5CF: test eax, eax */ 5727 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5728 _cf = 0; 5729 _flag_k = FK_TEST; 5730 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2701A5D1: mov byte ptr [ebp - 4], 5 */ 5731 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A5EA; /* 0x2701A5D5: je 0x2701a5ea */ 5732 L_2701A5D7: 5733 PUSH32(esp, 2); /* 0x2701A5D7: push 2 */ 5734 PUSH32(esp, 1); /* 0x2701A5D9: push 1 */ 5735 PUSH32(esp, 0x10u); /* 0x2701A5DB: push 0x10 */ 5736 ecx = eax; /* 0x2701A5DD: mov ecx, eax */ 5737 RECOMP_ICALL(MEM32(0x2702920C)); /* 0x2701A5DF: call dword ptr [0x2702920c] */ 5738 RECOMP_FLAGS_IN(); 5739 MEM32(ebp + 0x8) = eax; /* 0x2701A5E5: mov dword ptr [ebp + 8], eax */ 5740 goto L_2701A5F1; /* 0x2701A5E8: jmp 0x2701a5f1 */ 5741 L_2701A5EA: 5742 MEM32(ebp + 0x8) = 0; /* 0x2701A5EA: mov dword ptr [ebp + 8], 0 */ 5743 L_2701A5F1: 5744 ecx = MEM32(ebp + 0x8); /* 0x2701A5F1: mov ecx, dword ptr [ebp + 8] */ 5745 PUSH32(esp, 1); /* 0x2701A5F4: push 1 */ 5746 PUSH32(esp, 0xFF00u); /* 0x2701A5F6: push 0xff00 */ 5747 PUSH32(esp, 0); /* 0x2701A5FB: push 0 */ 5748 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701A5FD: mov byte ptr [ebp - 4], 0 */ 5749 RECOMP_ICALL(MEM32(0x27029270)); /* 0x2701A601: call dword ptr [0x27029270] */ 5750 RECOMP_FLAGS_IN(); 5751 eax = MEM32(edi + 0xC); /* 0x2701A607: mov eax, dword ptr [edi + 0xc] */ 5752 PUSH32(esp, 0xFF00u); /* 0x2701A60A: push 0xff00 */ 5753 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5754 ecx = 0; /* 0x2701A60F: xor ecx, ecx */ 5755 _cf = 0; 5756 _flag_k = FK_TEST; 5757 PUSH32(esp, edi); /* 0x2701A611: push edi */ 5758 edx = ebp + (-0x14); /* 0x2701A612: lea edx, [ebp - 0x14] */ 5759 MEM32(ebp + (-0x44)) = eax; /* 0x2701A615: mov dword ptr [ebp - 0x44], eax */ 5760 PUSH32(esp, edx); /* 0x2701A618: push edx */ 5761 eax = ebp + (-0x4C); /* 0x2701A619: lea eax, [ebp - 0x4c] */ 5762 MEM32(ebp + (-0x4C)) = ecx; /* 0x2701A61C: mov dword ptr [ebp - 0x4c], ecx */ 5763 MEM32(ebp + (-0x48)) = ecx; /* 0x2701A61F: mov dword ptr [ebp - 0x48], ecx */ 5764 ecx = MEM32(ebp + 0x8); /* 0x2701A622: mov ecx, dword ptr [ebp + 8] */ 5765 PUSH32(esp, eax); /* 0x2701A625: push eax */ 5766 MEM32(ebp + (-0x40)) = 1; /* 0x2701A626: mov dword ptr [ebp - 0x40], 1 */ 5767 RECOMP_ICALL(MEM32(0x27029268)); /* 0x2701A62D: call dword ptr [0x27029268] */ 5768 RECOMP_FLAGS_IN(); 5769 PUSH32(esp, edi); /* 0x2701A633: push edi */ 5770 RECOMP_ICALL(MEM32(0x2702939C)); /* 0x2701A634: call dword ptr [0x2702939c] */ 5771 RECOMP_FLAGS_IN(); 5772 ecx = eax; /* 0x2701A63A: mov ecx, eax */ 5773 RECOMP_ICALL(MEM32(0x27029388)); /* 0x2701A63C: call dword ptr [0x27029388] */ 5774 RECOMP_FLAGS_IN(); 5775 PUSH32(esp, 0xD8u); /* 0x2701A642: push 0xd8 */ 5776 RECOMP_ICALL(0x27026EA4u); /* 0x2701A647: call 0x27026ea4 */ /* not lifted */ 5777 RECOMP_FLAGS_IN(); 5778 edi = eax; /* 0x2701A64C: mov edi, eax */ 5779 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5780 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5781 esp = esp + 4; /* 0x2701A64E: add esp, 4 */ 5782 _flag_k = FK_ADD; 5783 MEM32(ebp + (-0x20)) = edi; /* 0x2701A651: mov dword ptr [ebp - 0x20], edi */ 5784 /* test edi, edi */ /* 0x2701A654: test edi, edi */ 5785 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5786 _cf = 0; 5787 _flag_k = FK_TEST; 5788 MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x2701A656: mov byte ptr [ebp - 4], 6 */ 5789 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A692; /* 0x2701A65A: je 0x2701a692 */ 5790 L_2701A65C: 5791 eax = MEM32(ebx + 0xC); /* 0x2701A65C: mov eax, dword ptr [ebx + 0xc] */ 5792 ecx = ebp + (-0x28); /* 0x2701A65F: lea ecx, [ebp - 0x28] */ 5793 PUSH32(esp, ecx); /* 0x2701A662: push ecx */ 5794 ecx = MEM32(ebp + 0x8); /* 0x2701A663: mov ecx, dword ptr [ebp + 8] */ 5795 edx = ebp + (-0x18); /* 0x2701A666: lea edx, [ebp - 0x18] */ 5796 PUSH32(esp, edx); /* 0x2701A669: push edx */ 5797 PUSH32(esp, 0); /* 0x2701A66A: push 0 */ 5798 PUSH32(esp, eax); /* 0x2701A66C: push eax */ 5799 PUSH32(esp, ecx); /* 0x2701A66D: push ecx */ 5800 edx = ebp + (-0x14); /* 0x2701A66E: lea edx, [ebp - 0x14] */ 5801 PUSH32(esp, edx); /* 0x2701A671: push edx */ 5802 ecx = edi; /* 0x2701A672: mov ecx, edi */ 5803 MEM32(ebp + (-0x28)) = 0x3F800000u; /* 0x2701A674: mov dword ptr [ebp - 0x28], 0x3f800000 */ 5804 MEM32(ebp + (-0x18)) = 0x3F800000u; /* 0x2701A67B: mov dword ptr [ebp - 0x18], 0x3f800000 */ 5805 RECOMP_ICALL(MEM32(0x27029208)); /* 0x2701A682: call dword ptr [0x27029208] */ 5806 RECOMP_FLAGS_IN(); 5807 MEM32(edi) = 0x27034304u; /* 0x2701A688: mov dword ptr [edi], 0x27034304 */ 5808 ecx = edi; /* 0x2701A68E: mov ecx, edi */ 5809 goto L_2701A694; /* 0x2701A690: jmp 0x2701a694 */ 5810 L_2701A692: 5811 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5812 ecx = 0; /* 0x2701A692: xor ecx, ecx */ 5813 _cf = 0; 5814 _flag_k = FK_TEST; 5815 L_2701A694: 5816 edx = MEM32(esi + 0xA4); /* 0x2701A694: mov edx, dword ptr [esi + 0xa4] */ 5817 eax = MEM32(esi + 0xA8); /* 0x2701A69A: mov eax, dword ptr [esi + 0xa8] */ 5818 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5820 eax = eax - edx; /* 0x2701A6A0: sub eax, edx */ 5821 _flag_k = FK_CMP; 5822 MEM32(ebp + 0x8) = eax; /* 0x2701A6A2: mov dword ptr [ebp + 8], eax */ 5823 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2701A6A5: fild dword ptr [ebp + 8] */ 5824 edx = ebp + 0x8; /* 0x2701A6A8: lea edx, [ebp + 8] */ 5825 PUSH32(esp, edx); /* 0x2701A6AB: push edx */ 5826 eax = ebp + (-0x18); /* 0x2701A6AC: lea eax, [ebp - 0x18] */ 5827 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2701A6AF: fstp dword ptr [ebp + 8] */ 5828 PUSH32(esp, eax); /* 0x2701A6B2: push eax */ 5829 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701A6B3: mov byte ptr [ebp - 4], 0 */ 5830 MEM32(esi + 0x58) = ecx; /* 0x2701A6B7: mov dword ptr [esi + 0x58], ecx */ 5831 MEM32(ebp + (-0x18)) = 0x3F800000u; /* 0x2701A6BA: mov dword ptr [ebp - 0x18], 0x3f800000 */ 5832 RECOMP_ICALL(MEM32(0x27029218)); /* 0x2701A6C1: call dword ptr [0x27029218] */ 5833 RECOMP_FLAGS_IN(); 5834 ecx = ebp + (-0x14); /* 0x2701A6C7: lea ecx, [ebp - 0x14] */ 5835 PUSH32(esp, ecx); /* 0x2701A6CA: push ecx */ 5836 ecx = MEM32(esi + 0x58); /* 0x2701A6CB: mov ecx, dword ptr [esi + 0x58] */ 5837 RECOMP_ICALL(MEM32(0x27029214)); /* 0x2701A6CE: call dword ptr [0x27029214] */ 5838 RECOMP_FLAGS_IN(); 5839 edx = MEM32(ebx + 0x4C); /* 0x2701A6D4: mov edx, dword ptr [ebx + 0x4c] */ 5840 PUSH32(esp, 2); /* 0x2701A6D7: push 2 */ 5841 PUSH32(esp, edx); /* 0x2701A6D9: push edx */ 5842 RECOMP_ICALL(MEM32(0x2702939C)); /* 0x2701A6DA: call dword ptr [0x2702939c] */ 5843 RECOMP_FLAGS_IN(); 5844 ecx = eax; /* 0x2701A6E0: mov ecx, eax */ 5845 RECOMP_ICALL(MEM32(0x270293A4)); /* 0x2701A6E2: call dword ptr [0x270293a4] */ 5846 RECOMP_FLAGS_IN(); 5847 PUSH32(esp, 0x34u); /* 0x2701A6E8: push 0x34 */ 5848 edi = eax; /* 0x2701A6EA: mov edi, eax */ 5849 RECOMP_ICALL(0x27026EA4u); /* 0x2701A6EC: call 0x27026ea4 */ /* not lifted */ 5850 RECOMP_FLAGS_IN(); 5851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5853 esp = esp + 4; /* 0x2701A6F1: add esp, 4 */ 5854 _flag_k = FK_ADD; 5855 MEM32(ebp + 0x8) = eax; /* 0x2701A6F4: mov dword ptr [ebp + 8], eax */ 5856 /* test eax, eax */ /* 0x2701A6F7: test eax, eax */ 5857 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5858 _cf = 0; 5859 _flag_k = FK_TEST; 5860 MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x2701A6F9: mov byte ptr [ebp - 4], 7 */ 5861 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A712; /* 0x2701A6FD: je 0x2701a712 */ 5862 L_2701A6FF: 5863 PUSH32(esp, 2); /* 0x2701A6FF: push 2 */ 5864 PUSH32(esp, 1); /* 0x2701A701: push 1 */ 5865 PUSH32(esp, 0x10u); /* 0x2701A703: push 0x10 */ 5866 ecx = eax; /* 0x2701A705: mov ecx, eax */ 5867 RECOMP_ICALL(MEM32(0x2702920C)); /* 0x2701A707: call dword ptr [0x2702920c] */ 5868 RECOMP_FLAGS_IN(); 5869 MEM32(ebp + 0x8) = eax; /* 0x2701A70D: mov dword ptr [ebp + 8], eax */ 5870 goto L_2701A719; /* 0x2701A710: jmp 0x2701a719 */ 5871 L_2701A712: 5872 MEM32(ebp + 0x8) = 0; /* 0x2701A712: mov dword ptr [ebp + 8], 0 */ 5873 L_2701A719: 5874 ecx = MEM32(ebp + 0x8); /* 0x2701A719: mov ecx, dword ptr [ebp + 8] */ 5875 PUSH32(esp, 1); /* 0x2701A71C: push 1 */ 5876 PUSH32(esp, 0xFF00u); /* 0x2701A71E: push 0xff00 */ 5877 PUSH32(esp, 0); /* 0x2701A723: push 0 */ 5878 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701A725: mov byte ptr [ebp - 4], 0 */ 5879 RECOMP_ICALL(MEM32(0x27029270)); /* 0x2701A729: call dword ptr [0x27029270] */ 5880 RECOMP_FLAGS_IN(); 5881 eax = MEM32(edi + 0xC); /* 0x2701A72F: mov eax, dword ptr [edi + 0xc] */ 5882 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5883 ecx = 0; /* 0x2701A732: xor ecx, ecx */ 5884 _cf = 0; 5885 _flag_k = FK_TEST; 5886 PUSH32(esp, 0xFF00u); /* 0x2701A734: push 0xff00 */ 5887 MEM32(ebp + (-0x54)) = eax; /* 0x2701A739: mov dword ptr [ebp - 0x54], eax */ 5888 PUSH32(esp, edi); /* 0x2701A73C: push edi */ 5889 MEM32(ebp + (-0x5C)) = ecx; /* 0x2701A73D: mov dword ptr [ebp - 0x5c], ecx */ 5890 MEM32(ebp + (-0x58)) = ecx; /* 0x2701A740: mov dword ptr [ebp - 0x58], ecx */ 5891 eax = ebp + (-0x14); /* 0x2701A743: lea eax, [ebp - 0x14] */ 5892 PUSH32(esp, eax); /* 0x2701A746: push eax */ 5893 ecx = ebp + (-0x5C); /* 0x2701A747: lea ecx, [ebp - 0x5c] */ 5894 PUSH32(esp, ecx); /* 0x2701A74A: push ecx */ 5895 ecx = MEM32(ebp + 0x8); /* 0x2701A74B: mov ecx, dword ptr [ebp + 8] */ 5896 MEM32(ebp + (-0x50)) = 1; /* 0x2701A74E: mov dword ptr [ebp - 0x50], 1 */ 5897 RECOMP_ICALL(MEM32(0x27029268)); /* 0x2701A755: call dword ptr [0x27029268] */ 5898 RECOMP_FLAGS_IN(); 5899 PUSH32(esp, edi); /* 0x2701A75B: push edi */ 5900 RECOMP_ICALL(MEM32(0x2702939C)); /* 0x2701A75C: call dword ptr [0x2702939c] */ 5901 RECOMP_FLAGS_IN(); 5902 ecx = eax; /* 0x2701A762: mov ecx, eax */ 5903 RECOMP_ICALL(MEM32(0x27029388)); /* 0x2701A764: call dword ptr [0x27029388] */ 5904 RECOMP_FLAGS_IN(); 5905 PUSH32(esp, 0xD8u); /* 0x2701A76A: push 0xd8 */ 5906 RECOMP_ICALL(0x27026EA4u); /* 0x2701A76F: call 0x27026ea4 */ /* not lifted */ 5907 RECOMP_FLAGS_IN(); 5908 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5910 esp = esp + 4; /* 0x2701A774: add esp, 4 */ 5911 _flag_k = FK_ADD; 5912 MEM32(ebp + (-0x20)) = eax; /* 0x2701A777: mov dword ptr [ebp - 0x20], eax */ 5913 /* test eax, eax */ /* 0x2701A77A: test eax, eax */ 5914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5915 _cf = 0; 5916 _flag_k = FK_TEST; 5917 MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x2701A77C: mov byte ptr [ebp - 4], 8 */ 5918 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A7BA; /* 0x2701A780: je 0x2701a7ba */ 5919 L_2701A782: 5920 edx = ebp + (-0x18); /* 0x2701A782: lea edx, [ebp - 0x18] */ 5921 PUSH32(esp, edx); /* 0x2701A785: push edx */ 5922 edx = MEM32(ebx + 0xC); /* 0x2701A786: mov edx, dword ptr [ebx + 0xc] */ 5923 ecx = ebp + (-0x28); /* 0x2701A789: lea ecx, [ebp - 0x28] */ 5924 PUSH32(esp, ecx); /* 0x2701A78C: push ecx */ 5925 ecx = MEM32(ebp + 0x8); /* 0x2701A78D: mov ecx, dword ptr [ebp + 8] */ 5926 PUSH32(esp, 0); /* 0x2701A790: push 0 */ 5927 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5928 edx = edx + 1; /* 0x2701A792: inc edx */ 5929 _flag_k = FK_INC; 5930 PUSH32(esp, edx); /* 0x2701A793: push edx */ 5931 PUSH32(esp, ecx); /* 0x2701A794: push ecx */ 5932 edx = ebp + (-0x14); /* 0x2701A795: lea edx, [ebp - 0x14] */ 5933 PUSH32(esp, edx); /* 0x2701A798: push edx */ 5934 ecx = eax; /* 0x2701A799: mov ecx, eax */ 5935 MEM32(ebp + (-0x18)) = 0x3F800000u; /* 0x2701A79B: mov dword ptr [ebp - 0x18], 0x3f800000 */ 5936 MEM32(ebp + (-0x28)) = 0x3F800000u; /* 0x2701A7A2: mov dword ptr [ebp - 0x28], 0x3f800000 */ 5937 RECOMP_ICALL(MEM32(0x27029208)); /* 0x2701A7A9: call dword ptr [0x27029208] */ 5938 RECOMP_FLAGS_IN(); 5939 eax = MEM32(ebp + (-0x20)); /* 0x2701A7AF: mov eax, dword ptr [ebp - 0x20] */ 5940 MEM32(eax) = 0x27034304u; /* 0x2701A7B2: mov dword ptr [eax], 0x27034304 */ 5941 goto L_2701A7BC; /* 0x2701A7B8: jmp 0x2701a7bc */ 5942 L_2701A7BA: 5943 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5944 eax = 0; /* 0x2701A7BA: xor eax, eax */ 5945 _cf = 0; 5946 _flag_k = FK_TEST; 5947 L_2701A7BC: 5948 MEM32(esi + 0x54) = eax; /* 0x2701A7BC: mov dword ptr [esi + 0x54], eax */ 5949 eax = MEM32(edi + 0xC); /* 0x2701A7BF: mov eax, dword ptr [edi + 0xc] */ 5950 MEM32(esi + 0x44) = eax; /* 0x2701A7C2: mov dword ptr [esi + 0x44], eax */ 5951 ecx = MEM32(edi + 0x8); /* 0x2701A7C5: mov ecx, dword ptr [edi + 8] */ 5952 MEM32(esi + 0x48) = ecx; /* 0x2701A7C8: mov dword ptr [esi + 0x48], ecx */ 5953 MEM32(esi + 0x44) = 0xBu; /* 0x2701A7CB: mov dword ptr [esi + 0x44], 0xb */ 5954 edx = MEM32(ebx + 0x30); /* 0x2701A7D2: mov edx, dword ptr [ebx + 0x30] */ 5955 PUSH32(esp, edx); /* 0x2701A7D5: push edx */ 5956 ecx = esi; /* 0x2701A7D6: mov ecx, esi */ 5957 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701A7D8: mov byte ptr [ebp - 4], 0 */ 5958 RECOMP_ICALL(0x2701AC50u); /* 0x2701A7DC: call 0x2701ac50 */ /* not lifted */ 5959 RECOMP_FLAGS_IN(); 5960 eax = MEM32(esi + 0x48); /* 0x2701A7E1: mov eax, dword ptr [esi + 0x48] */ 5961 edx = MEM32(esi + 0xA4); /* 0x2701A7E4: mov edx, dword ptr [esi + 0xa4] */ 5962 edi = MEM32(esi + 0xA8); /* 0x2701A7EA: mov edi, dword ptr [esi + 0xa8] */ 5963 ecx = MEM32(esi + 0x44); /* 0x2701A7F0: mov ecx, dword ptr [esi + 0x44] */ 5964 MEM32(ebp + (-0x30)) = eax; /* 0x2701A7F3: mov dword ptr [ebp - 0x30], eax */ 5965 MEM32(ebp + 0x8) = edx; /* 0x2701A7F6: mov dword ptr [ebp + 8], edx */ 5966 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701A7F9: cdq */ 5967 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5969 eax = eax - edx; /* 0x2701A7FA: sub eax, edx */ 5970 _flag_k = FK_CMP; 5971 edx = MEM32(ebp + (-0x10)); /* 0x2701A7FC: mov edx, dword ptr [ebp - 0x10] */ 5972 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701A7FF: sar eax, 1 */ 5973 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5974 eax = (uint32_t)((int32_t)eax >> 1u); 5975 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5976 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5977 edi = edi - eax; /* 0x2701A801: sub edi, eax */ 5978 _flag_k = FK_CMP; 5979 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 5980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5981 edi = edi - edx; /* 0x2701A803: sub edi, edx */ 5982 _flag_k = FK_CMP; 5983 edx = MEM32(ebp + (-0x14)); /* 0x2701A805: mov edx, dword ptr [ebp - 0x14] */ 5984 MEM32(ebp + (-0x70)) = edx; /* 0x2701A808: mov dword ptr [ebp - 0x70], edx */ 5985 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 5986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5987 eax = eax - MEM32(ebp + 0x8); /* 0x2701A80B: sub eax, dword ptr [ebp + 8] */ 5988 _flag_k = FK_CMP; 5989 edx = MEM32(ebp + (-0x10)); /* 0x2701A80E: mov edx, dword ptr [ebp - 0x10] */ 5990 MEM32(ebp + (-0x34)) = ecx; /* 0x2701A811: mov dword ptr [ebp - 0x34], ecx */ 5991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5992 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5993 eax = eax + edx; /* 0x2701A814: add eax, edx */ 5994 _flag_k = FK_ADD; 5995 MEM32(ebp + (-0x1C)) = ecx; /* 0x2701A816: mov dword ptr [ebp - 0x1c], ecx */ 5996 MEM32(ebp + (-0x68)) = ecx; /* 0x2701A819: mov dword ptr [ebp - 0x68], ecx */ 5997 ecx = ebp + (-0x34); /* 0x2701A81C: lea ecx, [ebp - 0x34] */ 5998 MEM32(ebp + (-0x18)) = eax; /* 0x2701A81F: mov dword ptr [ebp - 0x18], eax */ 5999 eax = MEM32(ebp + (-0x14)); /* 0x2701A822: mov eax, dword ptr [ebp - 0x14] */ 6000 PUSH32(esp, ecx); /* 0x2701A825: push ecx */ 6001 ecx = esi; /* 0x2701A826: mov ecx, esi */ 6002 MEM32(ebp + (-0x2C)) = eax; /* 0x2701A828: mov dword ptr [ebp - 0x2c], eax */ 6003 RECOMP_ICALL(0x27010A90u); /* 0x2701A82B: call 0x27010a90 */ /* not lifted */ 6004 RECOMP_FLAGS_IN(); 6005 PUSH32(esp, 0x9Cu); /* 0x2701A830: push 0x9c */ 6006 RECOMP_ICALL(0x27026EA4u); /* 0x2701A835: call 0x27026ea4 */ /* not lifted */ 6007 RECOMP_FLAGS_IN(); 6008 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6009 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6010 esp = esp + 4; /* 0x2701A83A: add esp, 4 */ 6011 _flag_k = FK_ADD; 6012 MEM32(ebp + (-0x20)) = eax; /* 0x2701A83D: mov dword ptr [ebp - 0x20], eax */ 6013 /* test eax, eax */ /* 0x2701A840: test eax, eax */ 6014 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6015 _cf = 0; 6016 _flag_k = FK_TEST; 6017 MEM8(ebp + (-0x4)) = (uint8_t)(9); /* 0x2701A842: mov byte ptr [ebp - 4], 9 */ 6018 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A872; /* 0x2701A846: je 0x2701a872 */ 6019 L_2701A848: 6020 edx = MEM32(ebx + 0xC); /* 0x2701A848: mov edx, dword ptr [ebx + 0xc] */ 6021 ecx = MEM32(ebp + (-0x18)); /* 0x2701A84B: mov ecx, dword ptr [ebp - 0x18] */ 6022 PUSH32(esp, 0); /* 0x2701A84E: push 0 */ 6023 PUSH32(esp, 0); /* 0x2701A850: push 0 */ 6024 PUSH32(esp, 0); /* 0x2701A852: push 0 */ 6025 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6026 edx = edx - 1; /* 0x2701A854: dec edx */ 6027 _flag_k = FK_DEC; 6028 PUSH32(esp, edx); /* 0x2701A855: push edx */ 6029 edx = MEM32(ebp + (-0x1C)); /* 0x2701A856: mov edx, dword ptr [ebp - 0x1c] */ 6030 PUSH32(esp, 0); /* 0x2701A859: push 0 */ 6031 PUSH32(esp, 0); /* 0x2701A85B: push 0 */ 6032 PUSH32(esp, 0); /* 0x2701A85D: push 0 */ 6033 PUSH32(esp, ecx); /* 0x2701A85F: push ecx */ 6034 ecx = MEM32(ebp + 0x8); /* 0x2701A860: mov ecx, dword ptr [ebp + 8] */ 6035 PUSH32(esp, edx); /* 0x2701A863: push edx */ 6036 edx = MEM32(ebp + (-0x70)); /* 0x2701A864: mov edx, dword ptr [ebp - 0x70] */ 6037 PUSH32(esp, ecx); /* 0x2701A867: push ecx */ 6038 PUSH32(esp, edx); /* 0x2701A868: push edx */ 6039 ecx = eax; /* 0x2701A869: mov ecx, eax */ 6040 RECOMP_ICALL(0x27015990u); /* 0x2701A86B: call 0x27015990 */ /* not lifted */ 6041 RECOMP_FLAGS_IN(); 6042 goto L_2701A874; /* 0x2701A870: jmp 0x2701a874 */ 6043 L_2701A872: 6044 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6045 eax = 0; /* 0x2701A872: xor eax, eax */ 6046 _cf = 0; 6047 _flag_k = FK_TEST; 6048 L_2701A874: 6049 PUSH32(esp, esi); /* 0x2701A874: push esi */ 6050 PUSH32(esp, 0x27019F30u); /* 0x2701A875: push 0x27019f30 */ 6051 ecx = eax; /* 0x2701A87A: mov ecx, eax */ 6052 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701A87C: mov byte ptr [ebp - 4], 0 */ 6053 MEM32(esi + 0x6C) = eax; /* 0x2701A880: mov dword ptr [esi + 0x6c], eax */ 6054 RECOMP_ICALL(0x27015E40u); /* 0x2701A883: call 0x27015e40 */ /* not lifted */ 6055 RECOMP_FLAGS_IN(); 6056 PUSH32(esp, 0x9Cu); /* 0x2701A888: push 0x9c */ 6057 RECOMP_ICALL(0x27026EA4u); /* 0x2701A88D: call 0x27026ea4 */ /* not lifted */ 6058 RECOMP_FLAGS_IN(); 6059 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6061 esp = esp + 4; /* 0x2701A892: add esp, 4 */ 6062 _flag_k = FK_ADD; 6063 MEM32(ebp + 0x8) = eax; /* 0x2701A895: mov dword ptr [ebp + 8], eax */ 6064 /* test eax, eax */ /* 0x2701A898: test eax, eax */ 6065 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6066 _cf = 0; 6067 _flag_k = FK_TEST; 6068 MEM8(ebp + (-0x4)) = (uint8_t)(0xAu); /* 0x2701A89A: mov byte ptr [ebp - 4], 0xa */ 6069 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A8C7; /* 0x2701A89E: je 0x2701a8c7 */ 6070 L_2701A8A0: 6071 ecx = MEM32(ebx + 0xC); /* 0x2701A8A0: mov ecx, dword ptr [ebx + 0xc] */ 6072 edx = MEM32(ebp + (-0x68)); /* 0x2701A8A3: mov edx, dword ptr [ebp - 0x68] */ 6073 PUSH32(esp, 0); /* 0x2701A8A6: push 0 */ 6074 PUSH32(esp, 0); /* 0x2701A8A8: push 0 */ 6075 PUSH32(esp, 0); /* 0x2701A8AA: push 0 */ 6076 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6077 ecx = ecx - 1; /* 0x2701A8AC: dec ecx */ 6078 _flag_k = FK_DEC; 6079 PUSH32(esp, ecx); /* 0x2701A8AD: push ecx */ 6080 ecx = MEM32(ebp + (-0x28)); /* 0x2701A8AE: mov ecx, dword ptr [ebp - 0x28] */ 6081 PUSH32(esp, 0); /* 0x2701A8B1: push 0 */ 6082 PUSH32(esp, 0); /* 0x2701A8B3: push 0 */ 6083 PUSH32(esp, 0); /* 0x2701A8B5: push 0 */ 6084 PUSH32(esp, edi); /* 0x2701A8B7: push edi */ 6085 PUSH32(esp, edx); /* 0x2701A8B8: push edx */ 6086 edx = MEM32(ebp + (-0x2C)); /* 0x2701A8B9: mov edx, dword ptr [ebp - 0x2c] */ 6087 PUSH32(esp, ecx); /* 0x2701A8BC: push ecx */ 6088 PUSH32(esp, edx); /* 0x2701A8BD: push edx */ 6089 ecx = eax; /* 0x2701A8BE: mov ecx, eax */ 6090 RECOMP_ICALL(0x27015990u); /* 0x2701A8C0: call 0x27015990 */ /* not lifted */ 6091 RECOMP_FLAGS_IN(); 6092 goto L_2701A8C9; /* 0x2701A8C5: jmp 0x2701a8c9 */ 6093 L_2701A8C7: 6094 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6095 eax = 0; /* 0x2701A8C7: xor eax, eax */ 6096 _cf = 0; 6097 _flag_k = FK_TEST; 6098 L_2701A8C9: 6099 PUSH32(esp, esi); /* 0x2701A8C9: push esi */ 6100 PUSH32(esp, 0x27019F20u); /* 0x2701A8CA: push 0x27019f20 */ 6101 ecx = eax; /* 0x2701A8CF: mov ecx, eax */ 6102 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701A8D1: mov byte ptr [ebp - 4], 0 */ 6103 MEM32(esi + 0x70) = eax; /* 0x2701A8D5: mov dword ptr [esi + 0x70], eax */ 6104 RECOMP_ICALL(0x27015E40u); /* 0x2701A8D8: call 0x27015e40 */ /* not lifted */ 6105 RECOMP_FLAGS_IN(); 6106 PUSH32(esp, 0); /* 0x2701A8DD: push 0 */ 6107 eax = ebp + (-0x24); /* 0x2701A8DF: lea eax, [ebp - 0x24] */ 6108 PUSH32(esp, eax); /* 0x2701A8E2: push eax */ 6109 ecx = esi; /* 0x2701A8E3: mov ecx, esi */ 6110 MEM32(ebp + (-0x24)) = 0; /* 0x2701A8E5: mov dword ptr [ebp - 0x24], 0 */ 6111 MEM32(ebp + (-0x20)) = 0; /* 0x2701A8EC: mov dword ptr [ebp - 0x20], 0 */ 6112 RECOMP_ICALL(0x2701AA30u); /* 0x2701A8F3: call 0x2701aa30 */ /* not lifted */ 6113 RECOMP_FLAGS_IN(); 6114 MEM8(esi + 0x24) = (uint8_t)(1); /* 0x2701A8F8: mov byte ptr [esi + 0x24], 1 */ 6115 MEM8(esi + 0x25) = (uint8_t)(1); /* 0x2701A8FC: mov byte ptr [esi + 0x25], 1 */ 6116 ecx = MEM32(ebx + 0x4); /* 0x2701A900: mov ecx, dword ptr [ebx + 4] */ 6117 edx = MEM32(ebx + 0x8); /* 0x2701A903: mov edx, dword ptr [ebx + 8] */ 6118 eax = ebp + (-0x14); /* 0x2701A906: lea eax, [ebp - 0x14] */ 6119 MEM32(ebp + (-0x14)) = ecx; /* 0x2701A909: mov dword ptr [ebp - 0x14], ecx */ 6120 PUSH32(esp, eax); /* 0x2701A90C: push eax */ 6121 ecx = esi; /* 0x2701A90D: mov ecx, esi */ 6122 MEM32(ebp + (-0x10)) = edx; /* 0x2701A90F: mov dword ptr [ebp - 0x10], edx */ 6123 RECOMP_ICALL(0x2701B040u); /* 0x2701A912: call 0x2701b040 */ /* not lifted */ 6124 RECOMP_FLAGS_IN(); 6125 ecx = MEM32(ebp + (-0xC)); /* 0x2701A917: mov ecx, dword ptr [ebp - 0xc] */ 6126 edi = POP32_VAL(esp); /* 0x2701A91A: pop edi */ 6127 eax = esi; /* 0x2701A91B: mov eax, esi */ 6128 esi = POP32_VAL(esp); /* 0x2701A91D: pop esi */ 6129 ebx = POP32_VAL(esp); /* 0x2701A91E: pop ebx */ 6130 MEM32(FS_BASE + (0)) = ecx; /* 0x2701A91F: mov dword ptr fs:[0], ecx */ 6131 esp = ebp; /* 0x2701A926: mov esp, ebp */ 6132 ebp = POP32_VAL(esp); /* 0x2701A928: pop ebp */ 6133 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701A929: ret 4 */ 6134 RECOMP_REGS_OUT(); 6135 } 6136 6137 void sub_2701A930(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(0x2701A930u); 6146 6147 L_2701A930: 6148 PUSH32(esp, ebp); /* 0x2701A930: push ebp */ 6149 ebp = esp; /* 0x2701A931: mov ebp, esp */ 6150 PUSH32(esp, 0xFFFFFFFFu); /* 0x2701A933: push -1 */ 6151 PUSH32(esp, 0x27027E58u); /* 0x2701A935: push 0x27027e58 */ 6152 eax = MEM32(FS_BASE + (0)); /* 0x2701A93A: mov eax, dword ptr fs:[0] */ 6153 PUSH32(esp, eax); /* 0x2701A940: push eax */ 6154 MEM32(FS_BASE + (0)) = esp; /* 0x2701A941: mov dword ptr fs:[0], esp */ 6155 PUSH32(esp, ecx); /* 0x2701A948: push ecx */ 6156 PUSH32(esp, esi); /* 0x2701A949: push esi */ 6157 esi = ecx; /* 0x2701A94A: mov esi, ecx */ 6158 MEM32(ebp + (-0x10)) = esi; /* 0x2701A94C: mov dword ptr [ebp - 0x10], esi */ 6159 MEM32(esi) = 0x270344F4u; /* 0x2701A94F: mov dword ptr [esi], 0x270344f4 */ 6160 ecx = MEM32(esi + 0x5C); /* 0x2701A955: mov ecx, dword ptr [esi + 0x5c] */ 6161 /* test ecx, ecx */ /* 0x2701A958: test ecx, ecx */ 6162 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6163 _cf = 0; 6164 _flag_k = FK_TEST; 6165 MEM32(ebp + (-0x4)) = 0; /* 0x2701A95A: mov dword ptr [ebp - 4], 0 */ 6166 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A969; /* 0x2701A961: je 0x2701a969 */ 6167 L_2701A963: 6168 eax = MEM32(ecx); /* 0x2701A963: mov eax, dword ptr [ecx] */ 6169 PUSH32(esp, 1); /* 0x2701A965: push 1 */ 6170 RECOMP_ICALL(MEM32(eax)); /* 0x2701A967: call dword ptr [eax] */ 6171 RECOMP_FLAGS_IN(); 6172 L_2701A969: 6173 PUSH32(esp, ebx); /* 0x2701A969: push ebx */ 6174 PUSH32(esp, edi); /* 0x2701A96A: push edi */ 6175 edi = MEM32(esi + 0x60); /* 0x2701A96B: mov edi, dword ptr [esi + 0x60] */ 6176 /* test edi, edi */ /* 0x2701A96E: test edi, edi */ 6177 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6178 _cf = 0; 6179 _flag_k = FK_TEST; 6180 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A982; /* 0x2701A970: je 0x2701a982 */ 6181 L_2701A972: 6182 ecx = edi; /* 0x2701A972: mov ecx, edi */ 6183 RECOMP_ICALL(0x27018500u); /* 0x2701A974: call 0x27018500 */ /* not lifted */ 6184 RECOMP_FLAGS_IN(); 6185 PUSH32(esp, edi); /* 0x2701A979: push edi */ 6186 RECOMP_ICALL(0x27026DA4u); /* 0x2701A97A: call 0x27026da4 */ /* not lifted */ 6187 RECOMP_FLAGS_IN(); 6188 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6190 esp = esp + 4; /* 0x2701A97F: add esp, 4 */ 6191 _flag_k = FK_ADD; 6192 L_2701A982: 6193 ecx = MEM32(esi + 0x64); /* 0x2701A982: mov ecx, dword ptr [esi + 0x64] */ 6194 /* test ecx, ecx */ /* 0x2701A985: test ecx, ecx */ 6195 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6196 _cf = 0; 6197 _flag_k = FK_TEST; 6198 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A98F; /* 0x2701A987: je 0x2701a98f */ 6199 L_2701A989: 6200 edx = MEM32(ecx); /* 0x2701A989: mov edx, dword ptr [ecx] */ 6201 PUSH32(esp, 1); /* 0x2701A98B: push 1 */ 6202 RECOMP_ICALL(MEM32(edx)); /* 0x2701A98D: call dword ptr [edx] */ 6203 RECOMP_FLAGS_IN(); 6204 L_2701A98F: 6205 edi = MEM32(esi + 0x68); /* 0x2701A98F: mov edi, dword ptr [esi + 0x68] */ 6206 /* test edi, edi */ /* 0x2701A992: test edi, edi */ 6207 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6208 _cf = 0; 6209 _flag_k = FK_TEST; 6210 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A9A6; /* 0x2701A994: je 0x2701a9a6 */ 6211 L_2701A996: 6212 ecx = edi; /* 0x2701A996: mov ecx, edi */ 6213 RECOMP_ICALL(0x27018500u); /* 0x2701A998: call 0x27018500 */ /* not lifted */ 6214 RECOMP_FLAGS_IN(); 6215 PUSH32(esp, edi); /* 0x2701A99D: push edi */ 6216 RECOMP_ICALL(0x27026DA4u); /* 0x2701A99E: call 0x27026da4 */ /* not lifted */ 6217 RECOMP_FLAGS_IN(); 6218 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6219 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6220 esp = esp + 4; /* 0x2701A9A3: add esp, 4 */ 6221 _flag_k = FK_ADD; 6222 L_2701A9A6: 6223 ecx = MEM32(esi + 0x6C); /* 0x2701A9A6: mov ecx, dword ptr [esi + 0x6c] */ 6224 /* test ecx, ecx */ /* 0x2701A9A9: test ecx, ecx */ 6225 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6226 _cf = 0; 6227 _flag_k = FK_TEST; 6228 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A9B3; /* 0x2701A9AB: je 0x2701a9b3 */ 6229 L_2701A9AD: 6230 eax = MEM32(ecx); /* 0x2701A9AD: mov eax, dword ptr [ecx] */ 6231 PUSH32(esp, 1); /* 0x2701A9AF: push 1 */ 6232 RECOMP_ICALL(MEM32(eax)); /* 0x2701A9B1: call dword ptr [eax] */ 6233 RECOMP_FLAGS_IN(); 6234 L_2701A9B3: 6235 ecx = MEM32(esi + 0x70); /* 0x2701A9B3: mov ecx, dword ptr [esi + 0x70] */ 6236 /* test ecx, ecx */ /* 0x2701A9B6: test ecx, ecx */ 6237 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6238 _cf = 0; 6239 _flag_k = FK_TEST; 6240 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A9C0; /* 0x2701A9B8: je 0x2701a9c0 */ 6241 L_2701A9BA: 6242 edx = MEM32(ecx); /* 0x2701A9BA: mov edx, dword ptr [ecx] */ 6243 PUSH32(esp, 1); /* 0x2701A9BC: push 1 */ 6244 RECOMP_ICALL(MEM32(edx)); /* 0x2701A9BE: call dword ptr [edx] */ 6245 RECOMP_FLAGS_IN(); 6246 L_2701A9C0: 6247 eax = MEM32(esi + 0x54); /* 0x2701A9C0: mov eax, dword ptr [esi + 0x54] */ 6248 edi = MEM32(eax + 0x28); /* 0x2701A9C3: mov edi, dword ptr [eax + 0x28] */ 6249 /* test edi, edi */ /* 0x2701A9C6: test edi, edi */ 6250 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6251 _cf = 0; 6252 _flag_k = FK_TEST; 6253 ebx = MEM32(0x27029284); /* 0x2701A9C8: mov ebx, dword ptr [0x27029284] */ 6254 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A9DD; /* 0x2701A9CE: je 0x2701a9dd */ 6255 L_2701A9D0: 6256 ecx = edi; /* 0x2701A9D0: mov ecx, edi */ 6257 RECOMP_ICALL(ebx); /* 0x2701A9D2: call ebx */ 6258 RECOMP_FLAGS_IN(); 6259 PUSH32(esp, edi); /* 0x2701A9D4: push edi */ 6260 RECOMP_ICALL(0x27026DA4u); /* 0x2701A9D5: call 0x27026da4 */ /* not lifted */ 6261 RECOMP_FLAGS_IN(); 6262 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6263 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6264 esp = esp + 4; /* 0x2701A9DA: add esp, 4 */ 6265 _flag_k = FK_ADD; 6266 L_2701A9DD: 6267 ecx = MEM32(esi + 0x54); /* 0x2701A9DD: mov ecx, dword ptr [esi + 0x54] */ 6268 /* test ecx, ecx */ /* 0x2701A9E0: test ecx, ecx */ 6269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6270 _cf = 0; 6271 _flag_k = FK_TEST; 6272 if (TEST_Z(_flag_a, _flag_b)) goto L_2701A9EA; /* 0x2701A9E2: je 0x2701a9ea */ 6273 L_2701A9E4: 6274 edx = MEM32(ecx); /* 0x2701A9E4: mov edx, dword ptr [ecx] */ 6275 PUSH32(esp, 1); /* 0x2701A9E6: push 1 */ 6276 RECOMP_ICALL(MEM32(edx)); /* 0x2701A9E8: call dword ptr [edx] */ 6277 RECOMP_FLAGS_IN(); 6278 L_2701A9EA: 6279 eax = MEM32(esi + 0x58); /* 0x2701A9EA: mov eax, dword ptr [esi + 0x58] */ 6280 edi = MEM32(eax + 0x28); /* 0x2701A9ED: mov edi, dword ptr [eax + 0x28] */ 6281 /* test edi, edi */ /* 0x2701A9F0: test edi, edi */ 6282 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6283 _cf = 0; 6284 _flag_k = FK_TEST; 6285 if (TEST_Z(_flag_a, _flag_b)) goto L_2701AA01; /* 0x2701A9F2: je 0x2701aa01 */ 6286 L_2701A9F4: 6287 ecx = edi; /* 0x2701A9F4: mov ecx, edi */ 6288 RECOMP_ICALL(ebx); /* 0x2701A9F6: call ebx */ 6289 RECOMP_FLAGS_IN(); 6290 PUSH32(esp, edi); /* 0x2701A9F8: push edi */ 6291 RECOMP_ICALL(0x27026DA4u); /* 0x2701A9F9: call 0x27026da4 */ /* not lifted */ 6292 RECOMP_FLAGS_IN(); 6293 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6294 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6295 esp = esp + 4; /* 0x2701A9FE: add esp, 4 */ 6296 _flag_k = FK_ADD; 6297 L_2701AA01: 6298 ecx = MEM32(esi + 0x58); /* 0x2701AA01: mov ecx, dword ptr [esi + 0x58] */ 6299 /* test ecx, ecx */ /* 0x2701AA04: test ecx, ecx */ 6300 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6301 _cf = 0; 6302 _flag_k = FK_TEST; 6303 edi = POP32_VAL(esp); /* 0x2701AA06: pop edi */ 6304 ebx = POP32_VAL(esp); /* 0x2701AA07: pop ebx */ 6305 if (TEST_Z(_flag_a, _flag_b)) goto L_2701AA10; /* 0x2701AA08: je 0x2701aa10 */ 6306 L_2701AA0A: 6307 edx = MEM32(ecx); /* 0x2701AA0A: mov edx, dword ptr [ecx] */ 6308 PUSH32(esp, 1); /* 0x2701AA0C: push 1 */ 6309 RECOMP_ICALL(MEM32(edx)); /* 0x2701AA0E: call dword ptr [edx] */ 6310 RECOMP_FLAGS_IN(); 6311 L_2701AA10: 6312 ecx = esi; /* 0x2701AA10: mov ecx, esi */ 6313 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2701AA12: mov dword ptr [ebp - 4], 0xffffffff */ 6314 RECOMP_ICALL(0x27010510u); /* 0x2701AA19: call 0x27010510 */ /* not lifted */ 6315 RECOMP_FLAGS_IN(); 6316 ecx = MEM32(ebp + (-0xC)); /* 0x2701AA1E: mov ecx, dword ptr [ebp - 0xc] */ 6317 esi = POP32_VAL(esp); /* 0x2701AA21: pop esi */ 6318 MEM32(FS_BASE + (0)) = ecx; /* 0x2701AA22: mov dword ptr fs:[0], ecx */ 6319 esp = ebp; /* 0x2701AA29: mov esp, ebp */ 6320 ebp = POP32_VAL(esp); /* 0x2701AA2B: pop ebp */ 6321 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701AA2C: ret */ 6322 RECOMP_REGS_OUT(); 6323 } 6324 6325 void sub_2701AA30(void) { 6326 int _fpu_cmp = 0; 6327 uint32_t _cf = 0; 6328 int _df = 1; 6329 uint32_t _flag_k = FK_NONE; 6330 uint32_t _flag_a = 0, _flag_b = 0; 6331 uint32_t _itail_tgt = 0; 6332 RECOMP_REGS_LOCALS 6333 RECOMP_ENTER(0x2701AA30u); 6334 6335 L_2701AA30: 6336 PUSH32(esp, ebp); /* 0x2701AA30: push ebp */ 6337 ebp = esp; /* 0x2701AA31: mov ebp, esp */ 6338 eax = MEM32(ebp + 0x8); /* 0x2701AA33: mov eax, dword ptr [ebp + 8] */ 6339 edx = MEM32(eax); /* 0x2701AA36: mov edx, dword ptr [eax] */ 6340 MEM32(ecx + 0xB0) = edx; /* 0x2701AA38: mov dword ptr [ecx + 0xb0], edx */ 6341 edx = MEM32(ebp + 0xC); /* 0x2701AA3E: mov edx, dword ptr [ebp + 0xc] */ 6342 eax = MEM32(eax + 0x4); /* 0x2701AA41: mov eax, dword ptr [eax + 4] */ 6343 PUSH32(esp, edx); /* 0x2701AA44: push edx */ 6344 MEM32(ecx + 0xB4) = eax; /* 0x2701AA45: mov dword ptr [ecx + 0xb4], eax */ 6345 RECOMP_ICALL(0x2701AA60u); /* 0x2701AA4B: call 0x2701aa60 */ /* not lifted */ 6346 RECOMP_FLAGS_IN(); 6347 ebp = POP32_VAL(esp); /* 0x2701AA50: pop ebp */ 6348 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2701AA51: ret 8 */ 6349 RECOMP_REGS_OUT(); 6350 } 6351 6352 void sub_2701AA60(void) { 6353 int _fpu_cmp = 0; 6354 uint32_t _cf = 0; 6355 int _df = 1; 6356 uint32_t _flag_k = FK_NONE; 6357 uint32_t _flag_a = 0, _flag_b = 0; 6358 uint32_t _itail_tgt = 0; 6359 RECOMP_REGS_LOCALS 6360 RECOMP_ENTER(0x2701AA60u); 6361 6362 L_2701AA60: 6363 PUSH32(esp, ebp); /* 0x2701AA60: push ebp */ 6364 ebp = esp; /* 0x2701AA61: mov ebp, esp */ 6365 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 6366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6367 esp = esp - 0x24u; /* 0x2701AA63: sub esp, 0x24 */ 6368 _flag_k = FK_CMP; 6369 PUSH32(esp, esi); /* 0x2701AA66: push esi */ 6370 esi = ecx; /* 0x2701AA67: mov esi, ecx */ 6371 SET_LO8(eax, MEM8(esi + 0xB8)); /* 0x2701AA69: mov al, byte ptr [esi + 0xb8] */ 6372 /* test LO8(eax), LO8(eax) */ /* 0x2701AA6F: test al, al */ 6373 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6374 _cf = 0; 6375 _flag_k = FK_NARROW(FK_TEST, 24); 6376 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701AB60; /* 0x2701AA71: jne 0x2701ab60 */ 6377 L_2701AA77: 6378 PUSH32(esp, edi); /* 0x2701AA77: push edi */ 6379 RECOMP_ICALL(0x2701AEA0u); /* 0x2701AA78: call 0x2701aea0 */ /* not lifted */ 6380 RECOMP_FLAGS_IN(); 6381 fp_push((double)(int32_t)MEM32(esi + 0x8C)); /* 0x2701AA7D: fild dword ptr [esi + 0x8c] */ 6382 edi = MEM32(esi + 0xA4); /* 0x2701AA83: mov edi, dword ptr [esi + 0xa4] */ 6383 eax = MEM32(esi + 0x3C); /* 0x2701AA89: mov eax, dword ptr [esi + 0x3c] */ 6384 _st[0] *= *(double*)ADDR(esi + 0xB0); /* 0x2701AA8C: fmul qword ptr [esi + 0xb0] */ 6385 ecx = MEM32(esi + 0x40); /* 0x2701AA92: mov ecx, dword ptr [esi + 0x40] */ 6386 MEM32(ebp + (-0x4)) = edi; /* 0x2701AA95: mov dword ptr [ebp - 4], edi */ 6387 MEM32(ebp + (-0xC)) = eax; /* 0x2701AA98: mov dword ptr [ebp - 0xc], eax */ 6388 _st[0] = _st[0] + (double)(int32_t)MEM32(ebp + (-0x4)); /* 0x2701AA9B: fiadd dword ptr [ebp - 4] */ 6389 MEM32(ebp + (-0x8)) = ecx; /* 0x2701AA9E: mov dword ptr [ebp - 8], ecx */ 6390 RECOMP_ICALL(0x27026ED2u); /* 0x2701AAA1: call 0x27026ed2 */ /* not lifted */ 6391 RECOMP_FLAGS_IN(); 6392 ecx = eax; /* 0x2701AAA6: mov ecx, eax */ 6393 eax = MEM32(esi + 0x48); /* 0x2701AAA8: mov eax, dword ptr [esi + 0x48] */ 6394 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701AAAB: cdq */ 6395 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6397 eax = eax - edx; /* 0x2701AAAC: sub eax, edx */ 6398 _flag_k = FK_CMP; 6399 edx = MEM32(esi + 0x44); /* 0x2701AAAE: mov edx, dword ptr [esi + 0x44] */ 6400 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701AAB1: sar eax, 1 */ 6401 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6402 eax = (uint32_t)((int32_t)eax >> 1u); 6403 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6405 eax = eax - edi; /* 0x2701AAB3: sub eax, edi */ 6406 _flag_k = FK_CMP; 6407 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6408 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6409 eax = eax + ecx; /* 0x2701AAB5: add eax, ecx */ 6410 _flag_k = FK_ADD; 6411 MEM32(ebp + (-0x8)) = ecx; /* 0x2701AAB7: mov dword ptr [ebp - 8], ecx */ 6412 ecx = MEM32(esi + 0x6C); /* 0x2701AABA: mov ecx, dword ptr [esi + 0x6c] */ 6413 MEM32(ebp + (-0x14)) = edx; /* 0x2701AABD: mov dword ptr [ebp - 0x14], edx */ 6414 edx = ebp + (-0x14); /* 0x2701AAC0: lea edx, [ebp - 0x14] */ 6415 MEM32(ebp + (-0x10)) = eax; /* 0x2701AAC3: mov dword ptr [ebp - 0x10], eax */ 6416 eax = MEM32(ecx); /* 0x2701AAC6: mov eax, dword ptr [ecx] */ 6417 PUSH32(esp, edx); /* 0x2701AAC8: push edx */ 6418 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x2701AAC9: call dword ptr [eax + 0x18] */ 6419 RECOMP_FLAGS_IN(); 6420 eax = MEM32(esi + 0x48); /* 0x2701AACC: mov eax, dword ptr [esi + 0x48] */ 6421 ecx = MEM32(ebp + (-0x8)); /* 0x2701AACF: mov ecx, dword ptr [ebp - 8] */ 6422 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701AAD2: cdq */ 6423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6425 eax = eax - edx; /* 0x2701AAD3: sub eax, edx */ 6426 _flag_k = FK_CMP; 6427 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701AAD5: sar eax, 1 */ 6428 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6429 eax = (uint32_t)((int32_t)eax >> 1u); 6430 edx = eax + ecx; /* 0x2701AAD7: lea edx, [eax + ecx] */ 6431 MEM32(ebp + (-0x18)) = edx; /* 0x2701AADA: mov dword ptr [ebp - 0x18], edx */ 6432 edx = MEM32(ebp + (-0xC)); /* 0x2701AADD: mov edx, dword ptr [ebp - 0xc] */ 6433 MEM32(ebp + (-0x1C)) = edx; /* 0x2701AAE0: mov dword ptr [ebp - 0x1c], edx */ 6434 edx = MEM32(esi + 0xA8); /* 0x2701AAE3: mov edx, dword ptr [esi + 0xa8] */ 6435 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6437 edx = edx - eax; /* 0x2701AAE9: sub edx, eax */ 6438 _flag_k = FK_CMP; 6439 eax = MEM32(esi + 0x44); /* 0x2701AAEB: mov eax, dword ptr [esi + 0x44] */ 6440 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6442 edx = edx - ecx; /* 0x2701AAEE: sub edx, ecx */ 6443 _flag_k = FK_CMP; 6444 ecx = MEM32(esi + 0x70); /* 0x2701AAF0: mov ecx, dword ptr [esi + 0x70] */ 6445 MEM32(ebp + (-0x14)) = eax; /* 0x2701AAF3: mov dword ptr [ebp - 0x14], eax */ 6446 eax = ebp + (-0x1C); /* 0x2701AAF6: lea eax, [ebp - 0x1c] */ 6447 MEM32(ebp + (-0x10)) = edx; /* 0x2701AAF9: mov dword ptr [ebp - 0x10], edx */ 6448 edx = MEM32(ecx); /* 0x2701AAFC: mov edx, dword ptr [ecx] */ 6449 PUSH32(esp, eax); /* 0x2701AAFE: push eax */ 6450 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2701AAFF: call dword ptr [edx + 0x14] */ 6451 RECOMP_FLAGS_IN(); 6452 ecx = MEM32(esi + 0x70); /* 0x2701AB02: mov ecx, dword ptr [esi + 0x70] */ 6453 edx = MEM32(ecx); /* 0x2701AB05: mov edx, dword ptr [ecx] */ 6454 eax = ebp + (-0x14); /* 0x2701AB07: lea eax, [ebp - 0x14] */ 6455 PUSH32(esp, eax); /* 0x2701AB0A: push eax */ 6456 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2701AB0B: call dword ptr [edx + 0x18] */ 6457 RECOMP_FLAGS_IN(); 6458 ecx = MEM32(ebp + (-0xC)); /* 0x2701AB0E: mov ecx, dword ptr [ebp - 0xc] */ 6459 edx = MEM32(ebp + (-0x8)); /* 0x2701AB11: mov edx, dword ptr [ebp - 8] */ 6460 eax = ebp + (-0x24); /* 0x2701AB14: lea eax, [ebp - 0x24] */ 6461 MEM32(ebp + (-0x24)) = ecx; /* 0x2701AB17: mov dword ptr [ebp - 0x24], ecx */ 6462 ecx = MEM32(esi + 0x54); /* 0x2701AB1A: mov ecx, dword ptr [esi + 0x54] */ 6463 PUSH32(esp, eax); /* 0x2701AB1D: push eax */ 6464 MEM32(ebp + (-0x20)) = edx; /* 0x2701AB1E: mov dword ptr [ebp - 0x20], edx */ 6465 RECOMP_ICALL(MEM32(0x27029214)); /* 0x2701AB21: call dword ptr [0x27029214] */ 6466 RECOMP_FLAGS_IN(); 6467 ecx = ebp + (-0xC); /* 0x2701AB27: lea ecx, [ebp - 0xc] */ 6468 PUSH32(esp, ecx); /* 0x2701AB2A: push ecx */ 6469 ecx = esi; /* 0x2701AB2B: mov ecx, esi */ 6470 RECOMP_ICALL(0x270109B0u); /* 0x2701AB2D: call 0x270109b0 */ /* not lifted */ 6471 RECOMP_FLAGS_IN(); 6472 ecx = esi; /* 0x2701AB32: mov ecx, esi */ 6473 RECOMP_ICALL(0x2701ABC0u); /* 0x2701AB34: call 0x2701abc0 */ /* not lifted */ 6474 RECOMP_FLAGS_IN(); 6475 ecx = MEM32(esi + 0x74); /* 0x2701AB39: mov ecx, dword ptr [esi + 0x74] */ 6476 eax = MEM32(ebp + (-0xC)); /* 0x2701AB3C: mov eax, dword ptr [ebp - 0xc] */ 6477 /* cmp ecx, eax */ /* 0x2701AB3F: cmp ecx, eax */ 6478 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6480 _flag_k = FK_CMP; 6481 ecx = MEM32(ebp + (-0x8)); /* 0x2701AB41: mov ecx, dword ptr [ebp - 8] */ 6482 edi = POP32_VAL(esp); /* 0x2701AB44: pop edi */ 6483 if (CMP_NE(_flag_a, _flag_b)) goto L_2701AB4C; /* 0x2701AB45: jne 0x2701ab4c */ 6484 L_2701AB47: 6485 /* cmp MEM32(esi + 0x78), ecx */ /* 0x2701AB47: cmp dword ptr [esi + 0x78], ecx */ 6486 _flag_a = (uint32_t)(MEM32(esi + 0x78)); _flag_b = (uint32_t)(ecx); 6487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6488 _flag_k = FK_CMP; 6489 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701AB60; /* 0x2701AB4A: je 0x2701ab60 */ 6490 L_2701AB4C: 6491 MEM32(esi + 0x74) = eax; /* 0x2701AB4C: mov dword ptr [esi + 0x74], eax */ 6492 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x2701AB4F: mov al, byte ptr [ebp + 8] */ 6493 /* test LO8(eax), LO8(eax) */ /* 0x2701AB52: test al, al */ 6494 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6495 _cf = 0; 6496 _flag_k = FK_NARROW(FK_TEST, 24); 6497 MEM32(esi + 0x78) = ecx; /* 0x2701AB54: mov dword ptr [esi + 0x78], ecx */ 6498 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701AB60; /* 0x2701AB57: jne 0x2701ab60 */ 6499 L_2701AB59: 6500 ecx = esi; /* 0x2701AB59: mov ecx, esi */ 6501 RECOMP_ICALL(0x2701AB70u); /* 0x2701AB5B: call 0x2701ab70 */ /* not lifted */ 6502 RECOMP_FLAGS_IN(); 6503 L_2701AB60: 6504 esi = POP32_VAL(esp); /* 0x2701AB60: pop esi */ 6505 esp = ebp; /* 0x2701AB61: mov esp, ebp */ 6506 ebp = POP32_VAL(esp); /* 0x2701AB63: pop ebp */ 6507 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701AB64: ret 4 */ 6508 RECOMP_REGS_OUT(); 6509 } 6510 6511 void sub_2701AB70(void) { 6512 int _fpu_cmp = 0; 6513 uint32_t _cf = 0; 6514 int _df = 1; 6515 uint32_t _flag_k = FK_NONE; 6516 uint32_t _flag_a = 0, _flag_b = 0; 6517 uint32_t _itail_tgt = 0; 6518 RECOMP_REGS_LOCALS 6519 RECOMP_ENTER(0x2701AB70u); 6520 6521 L_2701AB70: 6522 eax = MEM32(ecx + 0xBC); /* 0x2701AB70: mov eax, dword ptr [ecx + 0xbc] */ 6523 /* test eax, eax */ /* 0x2701AB76: test eax, eax */ 6524 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6525 _cf = 0; 6526 _flag_k = FK_TEST; 6527 if (TEST_Z(_flag_a, _flag_b)) goto L_2701AB94; /* 0x2701AB78: je 0x2701ab94 */ 6528 L_2701AB7A: 6529 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6530 edx = 0; /* 0x2701AB7A: xor edx, edx */ 6531 _cf = 0; 6532 _flag_k = FK_TEST; 6533 SET_LO8(edx, MEM8(ecx + 0xB8)); /* 0x2701AB7C: mov dl, byte ptr [ecx + 0xb8] */ 6534 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xB0u); 6535 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6536 ecx = ecx + 0xB0u; /* 0x2701AB82: add ecx, 0xb0 */ 6537 _flag_k = FK_ADD; 6538 PUSH32(esp, edx); /* 0x2701AB88: push edx */ 6539 edx = MEM32(ecx + 0x10); /* 0x2701AB89: mov edx, dword ptr [ecx + 0x10] */ 6540 PUSH32(esp, edx); /* 0x2701AB8C: push edx */ 6541 PUSH32(esp, ecx); /* 0x2701AB8D: push ecx */ 6542 RECOMP_ICALL(eax); /* 0x2701AB8E: call eax */ 6543 RECOMP_FLAGS_IN(); 6544 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6545 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6546 esp = esp + 0xCu; /* 0x2701AB90: add esp, 0xc */ 6547 _flag_k = FK_ADD; 6548 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701AB93: ret */ 6549 L_2701AB94: 6550 eax = MEM32(ecx + 0x9C); /* 0x2701AB94: mov eax, dword ptr [ecx + 0x9c] */ 6551 /* test eax, eax */ /* 0x2701AB9A: test eax, eax */ 6552 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6553 _cf = 0; 6554 _flag_k = FK_TEST; 6555 if (TEST_Z(_flag_a, _flag_b)) goto L_2701ABBE; /* 0x2701AB9C: je 0x2701abbe */ 6556 L_2701AB9E: 6557 fp_push(*(double*)ADDR(ecx + 0xB0)); /* 0x2701AB9E: fld qword ptr [ecx + 0xb0] */ 6558 PUSH32(esp, ecx); /* 0x2701ABA4: push ecx */ 6559 ecx = MEM32(ecx + 0xA0); /* 0x2701ABA5: mov ecx, dword ptr [ecx + 0xa0] */ 6560 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x2701ABAB: fstp dword ptr [esp] */ 6561 PUSH32(esp, ecx); /* 0x2701ABAE: push ecx */ 6562 PUSH32(esp, eax); /* 0x2701ABAF: push eax */ 6563 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x2701ABB0: call dword ptr [0x270291d0] */ 6564 RECOMP_FLAGS_IN(); 6565 ecx = eax; /* 0x2701ABB6: mov ecx, eax */ 6566 RECOMP_ICALL(MEM32(0x270291E8)); /* 0x2701ABB8: call dword ptr [0x270291e8] */ 6567 RECOMP_FLAGS_IN(); 6568 L_2701ABBE: 6569 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701ABBE: ret */ 6570 RECOMP_REGS_OUT(); 6571 } 6572 6573 void sub_2701ABC0(void) { 6574 int _fpu_cmp = 0; 6575 uint32_t _cf = 0; 6576 int _df = 1; 6577 uint32_t _flag_k = FK_NONE; 6578 uint32_t _flag_a = 0, _flag_b = 0; 6579 uint32_t _itail_tgt = 0; 6580 RECOMP_REGS_LOCALS 6581 RECOMP_ENTER(0x2701ABC0u); 6582 6583 L_2701ABC0: 6584 PUSH32(esp, esi); /* 0x2701ABC0: push esi */ 6585 esi = ecx; /* 0x2701ABC1: mov esi, ecx */ 6586 ecx = MEM32(esi + 0x5C); /* 0x2701ABC3: mov ecx, dword ptr [esi + 0x5c] */ 6587 RECOMP_ICALL(0x2700B2F0u); /* 0x2701ABC6: call 0x2700b2f0 */ /* not lifted */ 6588 RECOMP_FLAGS_IN(); 6589 ecx = MEM32(esi + 0x64); /* 0x2701ABCB: mov ecx, dword ptr [esi + 0x64] */ 6590 RECOMP_ICALL(0x2700B2F0u); /* 0x2701ABCE: call 0x2700b2f0 */ /* not lifted */ 6591 RECOMP_FLAGS_IN(); 6592 esi = POP32_VAL(esp); /* 0x2701ABD3: pop esi */ 6593 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701ABD4: ret */ 6594 RECOMP_REGS_OUT(); 6595 } 6596 6597 void sub_2701ABE0(void) { 6598 int _fpu_cmp = 0; 6599 uint32_t _cf = 0; 6600 int _df = 1; 6601 uint32_t _flag_k = FK_NONE; 6602 uint32_t _flag_a = 0, _flag_b = 0; 6603 uint32_t _itail_tgt = 0; 6604 RECOMP_REGS_LOCALS 6605 RECOMP_ENTER(0x2701ABE0u); 6606 6607 L_2701ABE0: 6608 PUSH32(esp, ebp); /* 0x2701ABE0: push ebp */ 6609 ebp = esp; /* 0x2701ABE1: mov ebp, esp */ 6610 SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x2701ABE3: mov al, byte ptr [ebp + 0x14] */ 6611 /* test LO8(eax), LO8(eax) */ /* 0x2701ABE6: test al, al */ 6612 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6613 _cf = 0; 6614 _flag_k = FK_NARROW(FK_TEST, 24); 6615 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701AC01; /* 0x2701ABE8: jne 0x2701ac01 */ 6616 L_2701ABEA: 6617 eax = MEM32(ebp + 0xC); /* 0x2701ABEA: mov eax, dword ptr [ebp + 0xc] */ 6618 edx = MEM32(ebp + 0x8); /* 0x2701ABED: mov edx, dword ptr [ebp + 8] */ 6619 PUSH32(esp, eax); /* 0x2701ABF0: push eax */ 6620 PUSH32(esp, edx); /* 0x2701ABF1: push edx */ 6621 RECOMP_ICALL(0x27010980u); /* 0x2701ABF2: call 0x27010980 */ /* not lifted */ 6622 RECOMP_FLAGS_IN(); 6623 /* test LO8(eax), LO8(eax) */ /* 0x2701ABF7: test al, al */ 6624 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6625 _cf = 0; 6626 _flag_k = FK_NARROW(FK_TEST, 24); 6627 if (TEST_Z(_flag_a, _flag_b)) goto L_2701AC01; /* 0x2701ABF9: je 0x2701ac01 */ 6628 L_2701ABFB: 6629 SET_LO8(eax, 1); /* 0x2701ABFB: mov al, 1 */ 6630 ebp = POP32_VAL(esp); /* 0x2701ABFD: pop ebp */ 6631 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2701ABFE: ret 0x10 */ 6632 L_2701AC01: 6633 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 6634 SET_LO8(eax, 0); /* 0x2701AC01: xor al, al */ 6635 _cf = 0; 6636 _flag_k = FK_NARROW(FK_TEST, 24); 6637 ebp = POP32_VAL(esp); /* 0x2701AC03: pop ebp */ 6638 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2701AC04: ret 0x10 */ 6639 RECOMP_REGS_OUT(); 6640 } 6641 6642 void sub_2701AC10(void) { 6643 int _fpu_cmp = 0; 6644 uint32_t _cf = 0; 6645 int _df = 1; 6646 uint32_t _flag_k = FK_NONE; 6647 uint32_t _flag_a = 0, _flag_b = 0; 6648 uint32_t _itail_tgt = 0; 6649 RECOMP_REGS_LOCALS 6650 RECOMP_ENTER(0x2701AC10u); 6651 6652 L_2701AC10: 6653 fp_push((double)(int32_t)MEM32(ecx + 0x98)); /* 0x2701AC10: fild dword ptr [ecx + 0x98] */ 6654 PUSH32(esp, 0); /* 0x2701AC16: push 0 */ 6655 _st[0] *= *(double*)ADDR(ecx + 0x80); /* 0x2701AC18: fmul qword ptr [ecx + 0x80] */ 6656 _st[0] += *(double*)ADDR(ecx + 0xB0); /* 0x2701AC1E: fadd qword ptr [ecx + 0xb0] */ 6657 { double _v = fp_pop(); *(double*)ADDR(ecx + 0xB0) = _v; } /* 0x2701AC24: fstp qword ptr [ecx + 0xb0] */ 6658 RECOMP_ICALL(0x2701AA60u); /* 0x2701AC2A: call 0x2701aa60 */ /* not lifted */ 6659 RECOMP_FLAGS_IN(); 6660 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701AC2F: ret */ 6661 RECOMP_REGS_OUT(); 6662 } 6663 6664 void sub_2701AC30(void) { 6665 int _fpu_cmp = 0; 6666 uint32_t _cf = 0; 6667 int _df = 1; 6668 uint32_t _flag_k = FK_NONE; 6669 uint32_t _flag_a = 0, _flag_b = 0; 6670 uint32_t _itail_tgt = 0; 6671 RECOMP_REGS_LOCALS 6672 RECOMP_ENTER(0x2701AC30u); 6673 6674 L_2701AC30: 6675 fp_push((double)(int32_t)MEM32(ecx + 0x98)); /* 0x2701AC30: fild dword ptr [ecx + 0x98] */ 6676 PUSH32(esp, 0); /* 0x2701AC36: push 0 */ 6677 _st[0] *= *(double*)ADDR(ecx + 0x80); /* 0x2701AC38: fmul qword ptr [ecx + 0x80] */ 6678 _st[0] = *(double*)ADDR(ecx + 0xB0) - _st[0]; /* 0x2701AC3E: fsubr qword ptr [ecx + 0xb0] */ 6679 { double _v = fp_pop(); *(double*)ADDR(ecx + 0xB0) = _v; } /* 0x2701AC44: fstp qword ptr [ecx + 0xb0] */ 6680 RECOMP_ICALL(0x2701AA60u); /* 0x2701AC4A: call 0x2701aa60 */ /* not lifted */ 6681 RECOMP_FLAGS_IN(); 6682 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701AC4F: ret */ 6683 RECOMP_REGS_OUT(); 6684 } 6685 6686 void sub_2701AC50(void) { 6687 int _fpu_cmp = 0; 6688 uint32_t _cf = 0; 6689 int _df = 1; 6690 uint32_t _flag_k = FK_NONE; 6691 uint32_t _flag_a = 0, _flag_b = 0; 6692 uint32_t _itail_tgt = 0; 6693 RECOMP_REGS_LOCALS 6694 RECOMP_ENTER(0x2701AC50u); 6695 6696 L_2701AC50: 6697 PUSH32(esp, ebp); /* 0x2701AC50: push ebp */ 6698 ebp = esp; /* 0x2701AC51: mov ebp, esp */ 6699 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6701 esp = esp - 0x14u; /* 0x2701AC53: sub esp, 0x14 */ 6702 _flag_k = FK_CMP; 6703 PUSH32(esp, esi); /* 0x2701AC56: push esi */ 6704 esi = ecx; /* 0x2701AC57: mov esi, ecx */ 6705 ecx = MEM32(ebp + 0x8); /* 0x2701AC59: mov ecx, dword ptr [ebp + 8] */ 6706 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6707 eax = 0; /* 0x2701AC5C: xor eax, eax */ 6708 _cf = 0; 6709 _flag_k = FK_TEST; 6710 /* cmp ecx, eax */ /* 0x2701AC5E: cmp ecx, eax */ 6711 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6713 _flag_k = FK_CMP; 6714 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701AD43; /* 0x2701AC60: je 0x2701ad43 */ 6715 L_2701AC66: 6716 /* cmp ecx, 1 */ /* 0x2701AC66: cmp ecx, 1 */ 6717 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6719 _flag_k = FK_CMP; 6720 MEM32(esi + 0x7C) = ecx; /* 0x2701AC69: mov dword ptr [esi + 0x7c], ecx */ 6721 if (CMP_NE(_flag_a, _flag_b)) goto L_2701AC7C; /* 0x2701AC6C: jne 0x2701ac7c */ 6722 L_2701AC6E: 6723 MEM32(esi + 0x80) = eax; /* 0x2701AC6E: mov dword ptr [esi + 0x80], eax */ 6724 MEM32(esi + 0x84) = eax; /* 0x2701AC74: mov dword ptr [esi + 0x84], eax */ 6725 goto L_2701AC91; /* 0x2701AC7A: jmp 0x2701ac91 */ 6726 L_2701AC7C: 6727 eax = ecx + (-0x1); /* 0x2701AC7C: lea eax, [ecx - 1] */ 6728 MEM32(ebp + 0x8) = eax; /* 0x2701AC7F: mov dword ptr [ebp + 8], eax */ 6729 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2701AC82: fild dword ptr [ebp + 8] */ 6730 _st[0] = *(double*)ADDR(0x27034398) / _st[0]; /* 0x2701AC85: fdivr qword ptr [0x27034398] */ 6731 { double _v = fp_pop(); *(double*)ADDR(esi + 0x80) = _v; } /* 0x2701AC8B: fstp qword ptr [esi + 0x80] */ 6732 L_2701AC91: 6733 edx = MEM32(esi + 0x44); /* 0x2701AC91: mov edx, dword ptr [esi + 0x44] */ 6734 eax = MEM32(esi + 0x48); /* 0x2701AC94: mov eax, dword ptr [esi + 0x48] */ 6735 PUSH32(esp, ebx); /* 0x2701AC97: push ebx */ 6736 ebx = MEM32(esi + 0x88); /* 0x2701AC98: mov ebx, dword ptr [esi + 0x88] */ 6737 PUSH32(esp, edi); /* 0x2701AC9E: push edi */ 6738 edi = MEM32(esi + 0xA8); /* 0x2701AC9F: mov edi, dword ptr [esi + 0xa8] */ 6739 MEM32(ebp + (-0xC)) = edx; /* 0x2701ACA5: mov dword ptr [ebp - 0xc], edx */ 6740 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0xA4)); 6741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6742 edi = edi - MEM32(esi + 0xA4); /* 0x2701ACA8: sub edi, dword ptr [esi + 0xa4] */ 6743 _flag_k = FK_CMP; 6744 /* cmp ecx, ebx */ /* 0x2701ACAE: cmp ecx, ebx */ 6745 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6747 _flag_k = FK_CMP; 6748 edx = edi; /* 0x2701ACB0: mov edx, edi */ 6749 MEM32(ebp + (-0x8)) = eax; /* 0x2701ACB2: mov dword ptr [ebp - 8], eax */ 6750 MEM32(ebp + 0x8) = edx; /* 0x2701ACB5: mov dword ptr [ebp + 8], edx */ 6751 if (CMP_LE(_flag_a, _flag_b)) goto L_2701ACE8; /* 0x2701ACB8: jle 0x2701ace8 */ 6752 L_2701ACBA: 6753 eax = ebx; /* 0x2701ACBA: mov eax, ebx */ 6754 eax = (uint32_t)((int32_t)eax * (int32_t)edx); /* 0x2701ACBC: imul eax, edx */ 6755 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701ACBF: cdq */ 6756 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x2701ACC0: idiv ecx */ 6757 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 6758 else { eax = 0; edx = 0; } } 6759 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6761 ecx = ecx - ebx; /* 0x2701ACC2: sub ecx, ebx */ 6762 _flag_k = FK_CMP; 6763 MEM32(ebp + (-0x4)) = ecx; /* 0x2701ACC4: mov dword ptr [ebp - 4], ecx */ 6764 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701ACC7: fild dword ptr [ebp - 4] */ 6765 _st[0] = *(double*)ADDR(0x27034398) / _st[0]; /* 0x2701ACCA: fdivr qword ptr [0x27034398] */ 6766 edx = eax; /* 0x2701ACD0: mov edx, eax */ 6767 /* cmp edx, 8 */ /* 0x2701ACD2: cmp edx, 8 */ 6768 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 6769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6770 _flag_k = FK_CMP; 6771 MEM32(ebp + 0x8) = edx; /* 0x2701ACD5: mov dword ptr [ebp + 8], edx */ 6772 { double _v = fp_pop(); *(double*)ADDR(esi + 0x80) = _v; } /* 0x2701ACD8: fstp qword ptr [esi + 0x80] */ 6773 if (CMP_GE(_flag_a, _flag_b)) goto L_2701ACE8; /* 0x2701ACDE: jge 0x2701ace8 */ 6774 L_2701ACE0: 6775 edx = 8; /* 0x2701ACE0: mov edx, 8 */ 6776 MEM32(ebp + 0x8) = edx; /* 0x2701ACE5: mov dword ptr [ebp + 8], edx */ 6777 L_2701ACE8: 6778 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2701ACE8: fild dword ptr [ebp + 8] */ 6779 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 6780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6781 edi = edi - edx; /* 0x2701ACEB: sub edi, edx */ 6782 _flag_k = FK_CMP; 6783 ecx = ebp + 0x8; /* 0x2701ACED: lea ecx, [ebp + 8] */ 6784 MEM32(ebp + (-0x8)) = edx; /* 0x2701ACF0: mov dword ptr [ebp - 8], edx */ 6785 PUSH32(esp, ecx); /* 0x2701ACF3: push ecx */ 6786 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2701ACF4: fstp dword ptr [ebp + 8] */ 6787 ecx = MEM32(esi + 0x54); /* 0x2701ACF7: mov ecx, dword ptr [esi + 0x54] */ 6788 edx = ebp + (-0x4); /* 0x2701ACFA: lea edx, [ebp - 4] */ 6789 PUSH32(esp, edx); /* 0x2701ACFD: push edx */ 6790 MEM32(esi + 0x8C) = edi; /* 0x2701ACFE: mov dword ptr [esi + 0x8c], edi */ 6791 MEM32(ebp + (-0x4)) = 0x3F800000u; /* 0x2701AD04: mov dword ptr [ebp - 4], 0x3f800000 */ 6792 RECOMP_ICALL(MEM32(0x27029218)); /* 0x2701AD0B: call dword ptr [0x27029218] */ 6793 RECOMP_FLAGS_IN(); 6794 edi = MEM32(esi + 0x54); /* 0x2701AD11: mov edi, dword ptr [esi + 0x54] */ 6795 fp_push(*(float*)&MEM32(edi + 0x18)); /* 0x2701AD14: fld dword ptr [edi + 0x18] */ 6796 RECOMP_ICALL(0x27026ED2u); /* 0x2701AD17: call 0x27026ed2 */ /* not lifted */ 6797 RECOMP_FLAGS_IN(); 6798 MEM32(ebp + (-0x14)) = eax; /* 0x2701AD1C: mov dword ptr [ebp - 0x14], eax */ 6799 fp_push(*(float*)&MEM32(edi + 0x1C)); /* 0x2701AD1F: fld dword ptr [edi + 0x1c] */ 6800 RECOMP_ICALL(0x27026ED2u); /* 0x2701AD22: call 0x27026ed2 */ /* not lifted */ 6801 RECOMP_FLAGS_IN(); 6802 MEM32(ebp + (-0x10)) = eax; /* 0x2701AD27: mov dword ptr [ebp - 0x10], eax */ 6803 eax = ebp + (-0x14); /* 0x2701AD2A: lea eax, [ebp - 0x14] */ 6804 PUSH32(esp, eax); /* 0x2701AD2D: push eax */ 6805 ecx = edi; /* 0x2701AD2E: mov ecx, edi */ 6806 RECOMP_ICALL(MEM32(0x27029214)); /* 0x2701AD30: call dword ptr [0x27029214] */ 6807 RECOMP_FLAGS_IN(); 6808 ecx = ebp + (-0xC); /* 0x2701AD36: lea ecx, [ebp - 0xc] */ 6809 PUSH32(esp, ecx); /* 0x2701AD39: push ecx */ 6810 ecx = esi; /* 0x2701AD3A: mov ecx, esi */ 6811 RECOMP_ICALL(0x27010A90u); /* 0x2701AD3C: call 0x27010a90 */ /* not lifted */ 6812 RECOMP_FLAGS_IN(); 6813 edi = POP32_VAL(esp); /* 0x2701AD41: pop edi */ 6814 ebx = POP32_VAL(esp); /* 0x2701AD42: pop ebx */ 6815 L_2701AD43: 6816 esi = POP32_VAL(esp); /* 0x2701AD43: pop esi */ 6817 esp = ebp; /* 0x2701AD44: mov esp, ebp */ 6818 ebp = POP32_VAL(esp); /* 0x2701AD46: pop ebp */ 6819 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701AD47: ret 4 */ 6820 RECOMP_REGS_OUT(); 6821 } 6822 6823 void sub_2701AD50(void) { 6824 int _fpu_cmp = 0; 6825 uint32_t _cf = 0; 6826 int _df = 1; 6827 uint32_t _flag_k = FK_NONE; 6828 uint32_t _flag_a = 0, _flag_b = 0; 6829 uint32_t _itail_tgt = 0; 6830 RECOMP_REGS_LOCALS 6831 RECOMP_ENTER(0x2701AD50u); 6832 6833 L_2701AD50: 6834 PUSH32(esp, esi); /* 0x2701AD50: push esi */ 6835 esi = ecx; /* 0x2701AD51: mov esi, ecx */ 6836 RECOMP_ICALL(0x270029E0u); /* 0x2701AD53: call 0x270029e0 */ /* not lifted */ 6837 RECOMP_FLAGS_IN(); 6838 ecx = eax; /* 0x2701AD58: mov ecx, eax */ 6839 RECOMP_ICALL(0x270104A0u); /* 0x2701AD5A: call 0x270104a0 */ /* not lifted */ 6840 RECOMP_FLAGS_IN(); 6841 MEM8(esi + 0xB8) = (uint8_t)(1); /* 0x2701AD5F: mov byte ptr [esi + 0xb8], 1 */ 6842 esi = POP32_VAL(esp); /* 0x2701AD66: pop esi */ 6843 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701AD67: ret */ 6844 RECOMP_REGS_OUT(); 6845 } 6846 6847 void sub_2701AD70(void) { 6848 int _fpu_cmp = 0; 6849 uint32_t _cf = 0; 6850 int _df = 1; 6851 uint32_t _flag_k = FK_NONE; 6852 uint32_t _flag_a = 0, _flag_b = 0; 6853 uint32_t _itail_tgt = 0; 6854 RECOMP_REGS_LOCALS 6855 RECOMP_ENTER(0x2701AD70u); 6856 6857 L_2701AD70: 6858 PUSH32(esp, ebp); /* 0x2701AD70: push ebp */ 6859 ebp = esp; /* 0x2701AD71: mov ebp, esp */ 6860 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6862 esp = esp - 0x10u; /* 0x2701AD73: sub esp, 0x10 */ 6863 _flag_k = FK_CMP; 6864 PUSH32(esp, esi); /* 0x2701AD76: push esi */ 6865 esi = ecx; /* 0x2701AD77: mov esi, ecx */ 6866 eax = MEM32(esi + 0x3C); /* 0x2701AD79: mov eax, dword ptr [esi + 0x3c] */ 6867 ecx = MEM32(esi + 0x40); /* 0x2701AD7C: mov ecx, dword ptr [esi + 0x40] */ 6868 edx = ebp + (-0x10); /* 0x2701AD7F: lea edx, [ebp - 0x10] */ 6869 PUSH32(esp, edx); /* 0x2701AD82: push edx */ 6870 MEM32(ebp + (-0x8)) = eax; /* 0x2701AD83: mov dword ptr [ebp - 8], eax */ 6871 MEM32(ebp + (-0x4)) = ecx; /* 0x2701AD86: mov dword ptr [ebp - 4], ecx */ 6872 RECOMP_ICALL(0x27002480u); /* 0x2701AD89: call 0x27002480 */ /* not lifted */ 6873 RECOMP_FLAGS_IN(); 6874 ecx = eax; /* 0x2701AD8E: mov ecx, eax */ 6875 RECOMP_ICALL(0x2700BF70u); /* 0x2701AD90: call 0x2700bf70 */ /* not lifted */ 6876 RECOMP_FLAGS_IN(); 6877 eax = MEM32(esi + 0x40); /* 0x2701AD95: mov eax, dword ptr [esi + 0x40] */ 6878 edx = MEM32(ebp + (-0xC)); /* 0x2701AD98: mov edx, dword ptr [ebp - 0xc] */ 6879 ecx = MEM32(ebp + 0xC); /* 0x2701AD9B: mov ecx, dword ptr [ebp + 0xc] */ 6880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6882 eax = eax - edx; /* 0x2701AD9E: sub eax, edx */ 6883 _flag_k = FK_CMP; 6884 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6885 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6886 eax = eax + ecx; /* 0x2701ADA0: add eax, ecx */ 6887 _flag_k = FK_ADD; 6888 ecx = MEM32(esi + 0xA4); /* 0x2701ADA2: mov ecx, dword ptr [esi + 0xa4] */ 6889 /* cmp eax, ecx */ /* 0x2701ADA8: cmp eax, ecx */ 6890 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6892 _flag_k = FK_CMP; 6893 MEM32(ebp + (-0x4)) = eax; /* 0x2701ADAA: mov dword ptr [ebp - 4], eax */ 6894 if (CMP_L(_flag_a, _flag_b)) goto L_2701ADC0; /* 0x2701ADAD: jl 0x2701adc0 */ 6895 L_2701ADAF: 6896 edx = MEM32(esi + 0x48); /* 0x2701ADAF: mov edx, dword ptr [esi + 0x48] */ 6897 ecx = MEM32(esi + 0xA8); /* 0x2701ADB2: mov ecx, dword ptr [esi + 0xa8] */ 6898 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6899 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6900 eax = eax + edx; /* 0x2701ADB8: add eax, edx */ 6901 _flag_k = FK_ADD; 6902 /* cmp eax, ecx */ /* 0x2701ADBA: cmp eax, ecx */ 6903 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6905 _flag_k = FK_CMP; 6906 if (CMP_LE(_flag_a, _flag_b)) goto L_2701ADC3; /* 0x2701ADBC: jle 0x2701adc3 */ 6907 L_2701ADBE: 6908 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6910 ecx = ecx - edx; /* 0x2701ADBE: sub ecx, edx */ 6911 _flag_k = FK_CMP; 6912 L_2701ADC0: 6913 MEM32(ebp + (-0x4)) = ecx; /* 0x2701ADC0: mov dword ptr [ebp - 4], ecx */ 6914 L_2701ADC3: 6915 ecx = ebp + (-0x8); /* 0x2701ADC3: lea ecx, [ebp - 8] */ 6916 PUSH32(esp, ecx); /* 0x2701ADC6: push ecx */ 6917 ecx = MEM32(esi + 0x54); /* 0x2701ADC7: mov ecx, dword ptr [esi + 0x54] */ 6918 RECOMP_ICALL(MEM32(0x27029214)); /* 0x2701ADCA: call dword ptr [0x27029214] */ 6919 RECOMP_FLAGS_IN(); 6920 ecx = esi; /* 0x2701ADD0: mov ecx, esi */ 6921 RECOMP_ICALL(0x2701AE60u); /* 0x2701ADD2: call 0x2701ae60 */ /* not lifted */ 6922 RECOMP_FLAGS_IN(); 6923 ecx = esi; /* 0x2701ADD7: mov ecx, esi */ 6924 RECOMP_ICALL(0x2701AB70u); /* 0x2701ADD9: call 0x2701ab70 */ /* not lifted */ 6925 RECOMP_FLAGS_IN(); 6926 ecx = esi; /* 0x2701ADDE: mov ecx, esi */ 6927 RECOMP_ICALL(0x2701ABC0u); /* 0x2701ADE0: call 0x2701abc0 */ /* not lifted */ 6928 RECOMP_FLAGS_IN(); 6929 SET_LO8(eax, 1); /* 0x2701ADE5: mov al, 1 */ 6930 esi = POP32_VAL(esp); /* 0x2701ADE7: pop esi */ 6931 esp = ebp; /* 0x2701ADE8: mov esp, ebp */ 6932 ebp = POP32_VAL(esp); /* 0x2701ADEA: pop ebp */ 6933 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2701ADEB: ret 8 */ 6934 RECOMP_REGS_OUT(); 6935 } 6936 6937 void sub_2701ADF0(void) { 6938 int _fpu_cmp = 0; 6939 uint32_t _cf = 0; 6940 int _df = 1; 6941 uint32_t _flag_k = FK_NONE; 6942 uint32_t _flag_a = 0, _flag_b = 0; 6943 uint32_t _itail_tgt = 0; 6944 RECOMP_REGS_LOCALS 6945 RECOMP_ENTER(0x2701ADF0u); 6946 6947 L_2701ADF0: 6948 PUSH32(esp, ebp); /* 0x2701ADF0: push ebp */ 6949 ebp = esp; /* 0x2701ADF1: mov ebp, esp */ 6950 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6952 esp = esp - 0xCu; /* 0x2701ADF3: sub esp, 0xc */ 6953 _flag_k = FK_CMP; 6954 PUSH32(esp, esi); /* 0x2701ADF6: push esi */ 6955 esi = ecx; /* 0x2701ADF7: mov esi, ecx */ 6956 PUSH32(esp, edi); /* 0x2701ADF9: push edi */ 6957 edi = MEM32(esi + 0x54); /* 0x2701ADFA: mov edi, dword ptr [esi + 0x54] */ 6958 MEM8(esi + 0xB8) = (uint8_t)(0); /* 0x2701ADFD: mov byte ptr [esi + 0xb8], 0 */ 6959 fp_push(*(float*)&MEM32(edi + 0x18)); /* 0x2701AE04: fld dword ptr [edi + 0x18] */ 6960 RECOMP_ICALL(0x27026ED2u); /* 0x2701AE07: call 0x27026ed2 */ /* not lifted */ 6961 RECOMP_FLAGS_IN(); 6962 MEM32(ebp + (-0xC)) = eax; /* 0x2701AE0C: mov dword ptr [ebp - 0xc], eax */ 6963 fp_push(*(float*)&MEM32(edi + 0x1C)); /* 0x2701AE0F: fld dword ptr [edi + 0x1c] */ 6964 RECOMP_ICALL(0x27026ED2u); /* 0x2701AE12: call 0x27026ed2 */ /* not lifted */ 6965 RECOMP_FLAGS_IN(); 6966 edx = MEM32(esi + 0xA4); /* 0x2701AE17: mov edx, dword ptr [esi + 0xa4] */ 6967 MEM32(ebp + (-0x8)) = eax; /* 0x2701AE1D: mov dword ptr [ebp - 8], eax */ 6968 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6970 eax = eax - edx; /* 0x2701AE20: sub eax, edx */ 6971 _flag_k = FK_CMP; 6972 MEM32(ebp + (-0x4)) = eax; /* 0x2701AE22: mov dword ptr [ebp - 4], eax */ 6973 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701AE25: fild dword ptr [ebp - 4] */ 6974 eax = ebp + (-0xC); /* 0x2701AE28: lea eax, [ebp - 0xc] */ 6975 PUSH32(esp, eax); /* 0x2701AE2B: push eax */ 6976 ecx = esi; /* 0x2701AE2C: mov ecx, esi */ 6977 _st[0] = _st[0] / (double)(int32_t)MEM32(esi + 0x8C); /* 0x2701AE2E: fidiv dword ptr [esi + 0x8c] */ 6978 { double _v = fp_pop(); *(double*)ADDR(esi + 0xB0) = _v; } /* 0x2701AE34: fstp qword ptr [esi + 0xb0] */ 6979 RECOMP_ICALL(0x270109B0u); /* 0x2701AE3A: call 0x270109b0 */ /* not lifted */ 6980 RECOMP_FLAGS_IN(); 6981 RECOMP_ICALL(0x270029E0u); /* 0x2701AE3F: call 0x270029e0 */ /* not lifted */ 6982 RECOMP_FLAGS_IN(); 6983 ecx = eax; /* 0x2701AE44: mov ecx, eax */ 6984 RECOMP_ICALL(0x27010490u); /* 0x2701AE46: call 0x27010490 */ /* not lifted */ 6985 RECOMP_FLAGS_IN(); 6986 PUSH32(esp, 0); /* 0x2701AE4B: push 0 */ 6987 ecx = esi; /* 0x2701AE4D: mov ecx, esi */ 6988 RECOMP_ICALL(0x2701AA60u); /* 0x2701AE4F: call 0x2701aa60 */ /* not lifted */ 6989 RECOMP_FLAGS_IN(); 6990 edi = POP32_VAL(esp); /* 0x2701AE54: pop edi */ 6991 esi = POP32_VAL(esp); /* 0x2701AE55: pop esi */ 6992 esp = ebp; /* 0x2701AE56: mov esp, ebp */ 6993 ebp = POP32_VAL(esp); /* 0x2701AE58: pop ebp */ 6994 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2701AE59: ret 8 */ 6995 RECOMP_REGS_OUT(); 6996 } 6997 6998 void sub_2701AE60(void) { 6999 int _fpu_cmp = 0; 7000 uint32_t _cf = 0; 7001 int _df = 1; 7002 uint32_t _flag_k = FK_NONE; 7003 uint32_t _flag_a = 0, _flag_b = 0; 7004 uint32_t _itail_tgt = 0; 7005 RECOMP_REGS_LOCALS 7006 RECOMP_ENTER(0x2701AE60u); 7007 7008 L_2701AE60: 7009 PUSH32(esp, ebp); /* 0x2701AE60: push ebp */ 7010 ebp = esp; /* 0x2701AE61: mov ebp, esp */ 7011 PUSH32(esp, ecx); /* 0x2701AE63: push ecx */ 7012 PUSH32(esp, esi); /* 0x2701AE64: push esi */ 7013 esi = ecx; /* 0x2701AE65: mov esi, ecx */ 7014 eax = MEM32(esi + 0x54); /* 0x2701AE67: mov eax, dword ptr [esi + 0x54] */ 7015 fp_push(*(float*)&MEM32(eax + 0x1C)); /* 0x2701AE6A: fld dword ptr [eax + 0x1c] */ 7016 RECOMP_ICALL(0x27026ED2u); /* 0x2701AE6D: call 0x27026ed2 */ /* not lifted */ 7017 RECOMP_FLAGS_IN(); 7018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xA4)); 7019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7020 eax = eax - MEM32(esi + 0xA4); /* 0x2701AE72: sub eax, dword ptr [esi + 0xa4] */ 7021 _flag_k = FK_CMP; 7022 MEM32(ebp + (-0x4)) = eax; /* 0x2701AE78: mov dword ptr [ebp - 4], eax */ 7023 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701AE7B: fild dword ptr [ebp - 4] */ 7024 ecx = esi; /* 0x2701AE7E: mov ecx, esi */ 7025 _st[0] = _st[0] / (double)(int32_t)MEM32(esi + 0x8C); /* 0x2701AE80: fidiv dword ptr [esi + 0x8c] */ 7026 { double _v = fp_pop(); *(double*)ADDR(esi + 0xB0) = _v; } /* 0x2701AE86: fstp qword ptr [esi + 0xb0] */ 7027 RECOMP_ICALL(0x2701AEA0u); /* 0x2701AE8C: call 0x2701aea0 */ /* not lifted */ 7028 RECOMP_FLAGS_IN(); 7029 esi = POP32_VAL(esp); /* 0x2701AE91: pop esi */ 7030 esp = ebp; /* 0x2701AE92: mov esp, ebp */ 7031 ebp = POP32_VAL(esp); /* 0x2701AE94: pop ebp */ 7032 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701AE95: ret */ 7033 RECOMP_REGS_OUT(); 7034 } 7035 7036 void sub_2701AEA0(void) { 7037 int _fpu_cmp = 0; 7038 uint32_t _cf = 0; 7039 int _df = 1; 7040 uint32_t _flag_k = FK_NONE; 7041 uint32_t _flag_a = 0, _flag_b = 0; 7042 uint32_t _itail_tgt = 0; 7043 RECOMP_REGS_LOCALS 7044 RECOMP_ENTER(0x2701AEA0u); 7045 7046 L_2701AEA0: 7047 PUSH32(esp, ebp); /* 0x2701AEA0: push ebp */ 7048 ebp = esp; /* 0x2701AEA1: mov ebp, esp */ 7049 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7051 esp = esp - 0xCu; /* 0x2701AEA3: sub esp, 0xc */ 7052 _flag_k = FK_CMP; 7053 PUSH32(esp, esi); /* 0x2701AEA6: push esi */ 7054 esi = ecx; /* 0x2701AEA7: mov esi, ecx */ 7055 fp_push(*(double*)ADDR(esi + 0xB0)); /* 0x2701AEA9: fld qword ptr [esi + 0xb0] */ 7056 eax = MEM32(esi + 0xB0); /* 0x2701AEAF: mov eax, dword ptr [esi + 0xb0] */ 7057 _st[0] /= *(double*)ADDR(esi + 0x80); /* 0x2701AEB5: fdiv qword ptr [esi + 0x80] */ 7058 ecx = MEM32(esi + 0xB4); /* 0x2701AEBB: mov ecx, dword ptr [esi + 0xb4] */ 7059 MEM32(ebp + (-0xC)) = eax; /* 0x2701AEC1: mov dword ptr [ebp - 0xc], eax */ 7060 MEM32(ebp + (-0x8)) = ecx; /* 0x2701AEC4: mov dword ptr [ebp - 8], ecx */ 7061 RECOMP_ICALL(0x27026ED2u); /* 0x2701AEC7: call 0x27026ed2 */ /* not lifted */ 7062 RECOMP_FLAGS_IN(); 7063 MEM32(ebp + (-0x4)) = eax; /* 0x2701AECC: mov dword ptr [ebp - 4], eax */ 7064 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701AECF: fild dword ptr [ebp - 4] */ 7065 _st[0] *= *(double*)ADDR(esi + 0x80); /* 0x2701AED2: fmul qword ptr [esi + 0x80] */ 7066 *(double*)ADDR(esi + 0xB0) = _st[0]; /* 0x2701AED8: fst qword ptr [esi + 0xb0] */ 7067 fp_push(*(double*)ADDR(ebp + (-0xC))); /* 0x2701AEDE: fld qword ptr [ebp - 0xc] */ 7068 _st[0] -= _st[1]; /* 0x2701AEE1: fsub st(1) */ 7069 fp_push(*(double*)ADDR(esi + 0x80)); /* 0x2701AEE3: fld qword ptr [esi + 0x80] */ 7070 _st[0] *= *(double*)ADDR(0x27034518); /* 0x2701AEE9: fmul qword ptr [0x27034518] */ 7071 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x2701AEEF: fcompp */ 7072 fp_pop(); fp_pop(); 7073 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2701AEF1: fnstsw ax */ 7074 /* test HI8(eax), 1 */ /* 0x2701AEF3: test ah, 1 */ 7075 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7076 _cf = 0; 7077 _flag_k = FK_NARROW(FK_TEST, 24); 7078 if (TEST_Z(_flag_a, _flag_b)) goto L_2701AF06; /* 0x2701AEF6: je 0x2701af06 */ 7079 L_2701AEF8: 7080 _st[0] += *(double*)ADDR(esi + 0x80); /* 0x2701AEF8: fadd qword ptr [esi + 0x80] */ 7081 { double _v = fp_pop(); *(double*)ADDR(esi + 0xB0) = _v; } /* 0x2701AEFE: fstp qword ptr [esi + 0xb0] */ 7082 goto L_2701AF08; /* 0x2701AF04: jmp 0x2701af08 */ 7083 L_2701AF06: 7084 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2701AF06: fstp st(0) */ 7085 L_2701AF08: 7086 fp_push(*(double*)ADDR(esi + 0xB0)); /* 0x2701AF08: fld qword ptr [esi + 0xb0] */ 7087 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x270344A0)); /* 0x2701AF0E: fcomp qword ptr [0x270344a0] */ 7088 fp_pop(); 7089 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2701AF14: fnstsw ax */ 7090 /* test HI8(eax), 1 */ /* 0x2701AF16: test ah, 1 */ 7091 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7092 _cf = 0; 7093 _flag_k = FK_NARROW(FK_TEST, 24); 7094 if (TEST_Z(_flag_a, _flag_b)) goto L_2701AF2E; /* 0x2701AF19: je 0x2701af2e */ 7095 L_2701AF1B: 7096 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7097 eax = 0; /* 0x2701AF1B: xor eax, eax */ 7098 _cf = 0; 7099 _flag_k = FK_TEST; 7100 MEM32(esi + 0xB0) = eax; /* 0x2701AF1D: mov dword ptr [esi + 0xb0], eax */ 7101 MEM32(esi + 0xB4) = eax; /* 0x2701AF23: mov dword ptr [esi + 0xb4], eax */ 7102 esi = POP32_VAL(esp); /* 0x2701AF29: pop esi */ 7103 esp = ebp; /* 0x2701AF2A: mov esp, ebp */ 7104 ebp = POP32_VAL(esp); /* 0x2701AF2C: pop ebp */ 7105 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701AF2D: ret */ 7106 L_2701AF2E: 7107 fp_push(*(double*)ADDR(esi + 0xB0)); /* 0x2701AF2E: fld qword ptr [esi + 0xb0] */ 7108 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x27034398)); /* 0x2701AF34: fcomp qword ptr [0x27034398] */ 7109 fp_pop(); 7110 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2701AF3A: fnstsw ax */ 7111 /* test HI8(eax), 0x41u */ /* 0x2701AF3C: test ah, 0x41 */ 7112 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 7113 _cf = 0; 7114 _flag_k = FK_NARROW(FK_TEST, 24); 7115 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701AF55; /* 0x2701AF3F: jne 0x2701af55 */ 7116 L_2701AF41: 7117 MEM32(esi + 0xB0) = 0; /* 0x2701AF41: mov dword ptr [esi + 0xb0], 0 */ 7118 MEM32(esi + 0xB4) = 0x3FF00000u; /* 0x2701AF4B: mov dword ptr [esi + 0xb4], 0x3ff00000 */ 7119 L_2701AF55: 7120 esi = POP32_VAL(esp); /* 0x2701AF55: pop esi */ 7121 esp = ebp; /* 0x2701AF56: mov esp, ebp */ 7122 ebp = POP32_VAL(esp); /* 0x2701AF58: pop ebp */ 7123 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701AF59: ret */ 7124 RECOMP_REGS_OUT(); 7125 } 7126 7127 void sub_2701AF60(void) { 7128 int _fpu_cmp = 0; 7129 uint32_t _cf = 0; 7130 int _df = 1; 7131 uint32_t _flag_k = FK_NONE; 7132 uint32_t _flag_a = 0, _flag_b = 0; 7133 uint32_t _itail_tgt = 0; 7134 RECOMP_REGS_LOCALS 7135 RECOMP_ENTER(0x2701AF60u); 7136 7137 L_2701AF60: 7138 PUSH32(esp, ebp); /* 0x2701AF60: push ebp */ 7139 ebp = esp; /* 0x2701AF61: mov ebp, esp */ 7140 PUSH32(esp, esi); /* 0x2701AF63: push esi */ 7141 PUSH32(esp, edi); /* 0x2701AF64: push edi */ 7142 edi = MEM32(ebp + 0x8); /* 0x2701AF65: mov edi, dword ptr [ebp + 8] */ 7143 esi = ecx; /* 0x2701AF68: mov esi, ecx */ 7144 ecx = MEM32(esi + 0x64); /* 0x2701AF6A: mov ecx, dword ptr [esi + 0x64] */ 7145 PUSH32(esp, edi); /* 0x2701AF6D: push edi */ 7146 RECOMP_ICALL(0x2700B390u); /* 0x2701AF6E: call 0x2700b390 */ /* not lifted */ 7147 RECOMP_FLAGS_IN(); 7148 ecx = MEM32(esi + 0x5C); /* 0x2701AF73: mov ecx, dword ptr [esi + 0x5c] */ 7149 PUSH32(esp, edi); /* 0x2701AF76: push edi */ 7150 RECOMP_ICALL(0x2700B390u); /* 0x2701AF77: call 0x2700b390 */ /* not lifted */ 7151 RECOMP_FLAGS_IN(); 7152 ecx = MEM32(esi + 0x6C); /* 0x2701AF7C: mov ecx, dword ptr [esi + 0x6c] */ 7153 PUSH32(esp, edi); /* 0x2701AF7F: push edi */ 7154 RECOMP_ICALL(0x27015E90u); /* 0x2701AF80: call 0x27015e90 */ /* not lifted */ 7155 RECOMP_FLAGS_IN(); 7156 ecx = MEM32(esi + 0x70); /* 0x2701AF85: mov ecx, dword ptr [esi + 0x70] */ 7157 PUSH32(esp, edi); /* 0x2701AF88: push edi */ 7158 RECOMP_ICALL(0x27015E90u); /* 0x2701AF89: call 0x27015e90 */ /* not lifted */ 7159 RECOMP_FLAGS_IN(); 7160 edi = POP32_VAL(esp); /* 0x2701AF8E: pop edi */ 7161 esi = POP32_VAL(esp); /* 0x2701AF8F: pop esi */ 7162 ebp = POP32_VAL(esp); /* 0x2701AF90: pop ebp */ 7163 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701AF91: ret 4 */ 7164 RECOMP_REGS_OUT(); 7165 } 7166 7167 void sub_2701AFA0(void) { 7168 int _fpu_cmp = 0; 7169 uint32_t _cf = 0; 7170 int _df = 1; 7171 uint32_t _flag_k = FK_NONE; 7172 uint32_t _flag_a = 0, _flag_b = 0; 7173 uint32_t _itail_tgt = 0; 7174 RECOMP_REGS_LOCALS 7175 RECOMP_ENTER(0x2701AFA0u); 7176 7177 L_2701AFA0: 7178 PUSH32(esp, esi); /* 0x2701AFA0: push esi */ 7179 esi = ecx; /* 0x2701AFA1: mov esi, ecx */ 7180 ecx = MEM32(esi + 0x60); /* 0x2701AFA3: mov ecx, dword ptr [esi + 0x60] */ 7181 RECOMP_ICALL(0x27018860u); /* 0x2701AFA6: call 0x27018860 */ /* not lifted */ 7182 RECOMP_FLAGS_IN(); 7183 ecx = MEM32(esi + 0x68); /* 0x2701AFAB: mov ecx, dword ptr [esi + 0x68] */ 7184 RECOMP_ICALL(0x27018860u); /* 0x2701AFAE: call 0x27018860 */ /* not lifted */ 7185 RECOMP_FLAGS_IN(); 7186 ecx = MEM32(esi + 0x5C); /* 0x2701AFB3: mov ecx, dword ptr [esi + 0x5c] */ 7187 RECOMP_ICALL(0x2700B3C0u); /* 0x2701AFB6: call 0x2700b3c0 */ /* not lifted */ 7188 RECOMP_FLAGS_IN(); 7189 ecx = MEM32(esi + 0x64); /* 0x2701AFBB: mov ecx, dword ptr [esi + 0x64] */ 7190 RECOMP_ICALL(0x2700B3C0u); /* 0x2701AFBE: call 0x2700b3c0 */ /* not lifted */ 7191 RECOMP_FLAGS_IN(); 7192 ecx = MEM32(esi + 0x6C); /* 0x2701AFC3: mov ecx, dword ptr [esi + 0x6c] */ 7193 SET_LO8(eax, 1); /* 0x2701AFC6: mov al, 1 */ 7194 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701AFC8: mov byte ptr [ecx + 8], al */ 7195 edx = MEM32(esi + 0x70); /* 0x2701AFCB: mov edx, dword ptr [esi + 0x70] */ 7196 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701AFCE: mov byte ptr [edx + 8], al */ 7197 ecx = MEM32(esi + 0x54); /* 0x2701AFD1: mov ecx, dword ptr [esi + 0x54] */ 7198 MEM8(esi + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701AFD4: mov byte ptr [esi + 8], al */ 7199 eax = MEM32(ecx); /* 0x2701AFD7: mov eax, dword ptr [ecx] */ 7200 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x2701AFD9: call dword ptr [eax + 8] */ 7201 RECOMP_FLAGS_IN(); 7202 ecx = MEM32(esi + 0x58); /* 0x2701AFDC: mov ecx, dword ptr [esi + 0x58] */ 7203 edx = MEM32(ecx); /* 0x2701AFDF: mov edx, dword ptr [ecx] */ 7204 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2701AFE1: call dword ptr [edx + 8] */ 7205 RECOMP_FLAGS_IN(); 7206 esi = POP32_VAL(esp); /* 0x2701AFE4: pop esi */ 7207 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701AFE5: ret */ 7208 RECOMP_REGS_OUT(); 7209 } 7210 7211 void sub_2701AFF0(void) { 7212 int _fpu_cmp = 0; 7213 uint32_t _cf = 0; 7214 int _df = 1; 7215 uint32_t _flag_k = FK_NONE; 7216 uint32_t _flag_a = 0, _flag_b = 0; 7217 uint32_t _itail_tgt = 0; 7218 RECOMP_REGS_LOCALS 7219 RECOMP_ENTER(0x2701AFF0u); 7220 7221 L_2701AFF0: 7222 PUSH32(esp, esi); /* 0x2701AFF0: push esi */ 7223 esi = ecx; /* 0x2701AFF1: mov esi, ecx */ 7224 ecx = MEM32(esi + 0x60); /* 0x2701AFF3: mov ecx, dword ptr [esi + 0x60] */ 7225 RECOMP_ICALL(0x27018890u); /* 0x2701AFF6: call 0x27018890 */ /* not lifted */ 7226 RECOMP_FLAGS_IN(); 7227 ecx = MEM32(esi + 0x68); /* 0x2701AFFB: mov ecx, dword ptr [esi + 0x68] */ 7228 RECOMP_ICALL(0x27018890u); /* 0x2701AFFE: call 0x27018890 */ /* not lifted */ 7229 RECOMP_FLAGS_IN(); 7230 ecx = MEM32(esi + 0x5C); /* 0x2701B003: mov ecx, dword ptr [esi + 0x5c] */ 7231 RECOMP_ICALL(0x2700B3E0u); /* 0x2701B006: call 0x2700b3e0 */ /* not lifted */ 7232 RECOMP_FLAGS_IN(); 7233 ecx = MEM32(esi + 0x64); /* 0x2701B00B: mov ecx, dword ptr [esi + 0x64] */ 7234 RECOMP_ICALL(0x2700B3E0u); /* 0x2701B00E: call 0x2700b3e0 */ /* not lifted */ 7235 RECOMP_FLAGS_IN(); 7236 ecx = MEM32(esi + 0x6C); /* 0x2701B013: mov ecx, dword ptr [esi + 0x6c] */ 7237 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 7238 SET_LO8(eax, 0); /* 0x2701B016: xor al, al */ 7239 _cf = 0; 7240 _flag_k = FK_NARROW(FK_TEST, 24); 7241 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701B018: mov byte ptr [ecx + 8], al */ 7242 edx = MEM32(esi + 0x70); /* 0x2701B01B: mov edx, dword ptr [esi + 0x70] */ 7243 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701B01E: mov byte ptr [edx + 8], al */ 7244 ecx = MEM32(esi + 0x54); /* 0x2701B021: mov ecx, dword ptr [esi + 0x54] */ 7245 MEM8(esi + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701B024: mov byte ptr [esi + 8], al */ 7246 eax = MEM32(ecx); /* 0x2701B027: mov eax, dword ptr [ecx] */ 7247 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2701B029: call dword ptr [eax + 0xc] */ 7248 RECOMP_FLAGS_IN(); 7249 ecx = MEM32(esi + 0x58); /* 0x2701B02C: mov ecx, dword ptr [esi + 0x58] */ 7250 edx = MEM32(ecx); /* 0x2701B02F: mov edx, dword ptr [ecx] */ 7251 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x2701B031: call dword ptr [edx + 0xc] */ 7252 RECOMP_FLAGS_IN(); 7253 esi = POP32_VAL(esp); /* 0x2701B034: pop esi */ 7254 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701B035: ret */ 7255 RECOMP_REGS_OUT(); 7256 } 7257 7258 void sub_2701B040(void) { 7259 int _fpu_cmp = 0; 7260 uint32_t _cf = 0; 7261 int _df = 1; 7262 uint32_t _flag_k = FK_NONE; 7263 uint32_t _flag_a = 0, _flag_b = 0; 7264 uint32_t _itail_tgt = 0; 7265 RECOMP_REGS_LOCALS 7266 RECOMP_ENTER(0x2701B040u); 7267 7268 L_2701B040: 7269 PUSH32(esp, ebp); /* 0x2701B040: push ebp */ 7270 ebp = esp; /* 0x2701B041: mov ebp, esp */ 7271 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7273 esp = esp - 8; /* 0x2701B043: sub esp, 8 */ 7274 _flag_k = FK_CMP; 7275 PUSH32(esp, esi); /* 0x2701B046: push esi */ 7276 esi = ecx; /* 0x2701B047: mov esi, ecx */ 7277 SET_LO8(eax, MEM8(esi + 0xB8)); /* 0x2701B049: mov al, byte ptr [esi + 0xb8] */ 7278 /* test LO8(eax), LO8(eax) */ /* 0x2701B04F: test al, al */ 7279 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7280 _cf = 0; 7281 _flag_k = FK_NARROW(FK_TEST, 24); 7282 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701B0E3; /* 0x2701B051: jne 0x2701b0e3 */ 7283 L_2701B057: 7284 ecx = MEM32(esi + 0x60); /* 0x2701B057: mov ecx, dword ptr [esi + 0x60] */ 7285 PUSH32(esp, edi); /* 0x2701B05A: push edi */ 7286 edi = MEM32(ebp + 0x8); /* 0x2701B05B: mov edi, dword ptr [ebp + 8] */ 7287 PUSH32(esp, edi); /* 0x2701B05E: push edi */ 7288 RECOMP_ICALL(0x27018620u); /* 0x2701B05F: call 0x27018620 */ /* not lifted */ 7289 RECOMP_FLAGS_IN(); 7290 eax = MEM32(edi); /* 0x2701B064: mov eax, dword ptr [edi] */ 7291 edi = MEM32(edi + 0x4); /* 0x2701B066: mov edi, dword ptr [edi + 4] */ 7292 ecx = ebp + (-0x8); /* 0x2701B069: lea ecx, [ebp - 8] */ 7293 PUSH32(esp, ecx); /* 0x2701B06C: push ecx */ 7294 ecx = MEM32(esi + 0x58); /* 0x2701B06D: mov ecx, dword ptr [esi + 0x58] */ 7295 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xBu); 7296 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7297 edi = edi + 0xBu; /* 0x2701B070: add edi, 0xb */ 7298 _flag_k = FK_ADD; 7299 MEM32(ebp + (-0x8)) = eax; /* 0x2701B073: mov dword ptr [ebp - 8], eax */ 7300 MEM32(ebp + (-0x4)) = edi; /* 0x2701B076: mov dword ptr [ebp - 4], edi */ 7301 RECOMP_ICALL(MEM32(0x27029214)); /* 0x2701B079: call dword ptr [0x27029214] */ 7302 RECOMP_FLAGS_IN(); 7303 eax = MEM32(ebp + (-0x4)); /* 0x2701B07F: mov eax, dword ptr [ebp - 4] */ 7304 ecx = MEM32(esi + 0xA4); /* 0x2701B082: mov ecx, dword ptr [esi + 0xa4] */ 7305 edi = MEM32(esi + 0xA8); /* 0x2701B088: mov edi, dword ptr [esi + 0xa8] */ 7306 edx = eax; /* 0x2701B08E: mov edx, eax */ 7307 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7309 edx = edx - ecx; /* 0x2701B090: sub edx, ecx */ 7310 _flag_k = FK_CMP; 7311 MEM32(esi + 0xA4) = eax; /* 0x2701B092: mov dword ptr [esi + 0xa4], eax */ 7312 eax = ebp + (-0x8); /* 0x2701B098: lea eax, [ebp - 8] */ 7313 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 7314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7315 edi = edi + edx; /* 0x2701B09B: add edi, edx */ 7316 _flag_k = FK_ADD; 7317 PUSH32(esp, eax); /* 0x2701B09D: push eax */ 7318 ecx = esi; /* 0x2701B09E: mov ecx, esi */ 7319 MEM32(esi + 0xA8) = edi; /* 0x2701B0A0: mov dword ptr [esi + 0xa8], edi */ 7320 RECOMP_ICALL(0x270109B0u); /* 0x2701B0A6: call 0x270109b0 */ /* not lifted */ 7321 RECOMP_FLAGS_IN(); 7322 ecx = MEM32(esi + 0x6C); /* 0x2701B0AB: mov ecx, dword ptr [esi + 0x6c] */ 7323 edx = MEM32(ecx); /* 0x2701B0AE: mov edx, dword ptr [ecx] */ 7324 eax = ebp + (-0x8); /* 0x2701B0B0: lea eax, [ebp - 8] */ 7325 PUSH32(esp, eax); /* 0x2701B0B3: push eax */ 7326 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2701B0B4: call dword ptr [edx + 0x14] */ 7327 RECOMP_FLAGS_IN(); 7328 ecx = MEM32(esi + 0xA8); /* 0x2701B0B7: mov ecx, dword ptr [esi + 0xa8] */ 7329 edi = MEM32(esi + 0xA4); /* 0x2701B0BD: mov edi, dword ptr [esi + 0xa4] */ 7330 edx = MEM32(ebp + (-0x4)); /* 0x2701B0C3: mov edx, dword ptr [ebp - 4] */ 7331 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 7332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7333 ecx = ecx - edi; /* 0x2701B0C6: sub ecx, edi */ 7334 _flag_k = FK_CMP; 7335 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7336 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7337 edx = edx + ecx; /* 0x2701B0C8: add edx, ecx */ 7338 _flag_k = FK_ADD; 7339 ecx = MEM32(esi + 0x68); /* 0x2701B0CA: mov ecx, dword ptr [esi + 0x68] */ 7340 MEM32(ebp + (-0x4)) = edx; /* 0x2701B0CD: mov dword ptr [ebp - 4], edx */ 7341 edx = ebp + (-0x8); /* 0x2701B0D0: lea edx, [ebp - 8] */ 7342 PUSH32(esp, edx); /* 0x2701B0D3: push edx */ 7343 RECOMP_ICALL(0x27018620u); /* 0x2701B0D4: call 0x27018620 */ /* not lifted */ 7344 RECOMP_FLAGS_IN(); 7345 PUSH32(esp, 1); /* 0x2701B0D9: push 1 */ 7346 ecx = esi; /* 0x2701B0DB: mov ecx, esi */ 7347 RECOMP_ICALL(0x2701AA60u); /* 0x2701B0DD: call 0x2701aa60 */ /* not lifted */ 7348 RECOMP_FLAGS_IN(); 7349 edi = POP32_VAL(esp); /* 0x2701B0E2: pop edi */ 7350 L_2701B0E3: 7351 esi = POP32_VAL(esp); /* 0x2701B0E3: pop esi */ 7352 esp = ebp; /* 0x2701B0E4: mov esp, ebp */ 7353 ebp = POP32_VAL(esp); /* 0x2701B0E6: pop ebp */ 7354 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701B0E7: ret 4 */ 7355 RECOMP_REGS_OUT(); 7356 } 7357 7358 void sub_2701B0F0(void) { 7359 int _fpu_cmp = 0; 7360 uint32_t _cf = 0; 7361 int _df = 1; 7362 uint32_t _flag_k = FK_NONE; 7363 uint32_t _flag_a = 0, _flag_b = 0; 7364 uint32_t _itail_tgt = 0; 7365 RECOMP_REGS_LOCALS 7366 RECOMP_ENTER(0x2701B0F0u); 7367 7368 L_2701B0F0: 7369 PUSH32(esp, ebp); /* 0x2701B0F0: push ebp */ 7370 ebp = esp; /* 0x2701B0F1: mov ebp, esp */ 7371 eax = MEM32(ebp + 0x8); /* 0x2701B0F3: mov eax, dword ptr [ebp + 8] */ 7372 edx = MEM32(ebp + 0xC); /* 0x2701B0F6: mov edx, dword ptr [ebp + 0xc] */ 7373 MEM32(ecx + 0xBC) = eax; /* 0x2701B0F9: mov dword ptr [ecx + 0xbc], eax */ 7374 MEM32(ecx + 0xC0) = edx; /* 0x2701B0FF: mov dword ptr [ecx + 0xc0], edx */ 7375 ebp = POP32_VAL(esp); /* 0x2701B105: pop ebp */ 7376 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2701B106: ret 8 */ 7377 RECOMP_REGS_OUT(); 7378 } 7379 7380 void sub_2701B110(void) { 7381 int _fpu_cmp = 0; 7382 uint32_t _cf = 0; 7383 int _df = 1; 7384 uint32_t _flag_k = FK_NONE; 7385 uint32_t _flag_a = 0, _flag_b = 0; 7386 uint32_t _itail_tgt = 0; 7387 RECOMP_REGS_LOCALS 7388 RECOMP_ENTER(0x2701B110u); 7389 7390 L_2701B110: 7391 PUSH32(esp, ebp); /* 0x2701B110: push ebp */ 7392 ebp = esp; /* 0x2701B111: mov ebp, esp */ 7393 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7395 esp = esp - 8; /* 0x2701B113: sub esp, 8 */ 7396 _flag_k = FK_CMP; 7397 eax = MEM32(ecx + 0x7C); /* 0x2701B116: mov eax, dword ptr [ecx + 0x7c] */ 7398 edx = MEM32(ecx + 0x88); /* 0x2701B119: mov edx, dword ptr [ecx + 0x88] */ 7399 /* cmp eax, edx */ /* 0x2701B11F: cmp eax, edx */ 7400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7402 _flag_k = FK_CMP; 7403 MEM32(ebp + (-0x4)) = eax; /* 0x2701B121: mov dword ptr [ebp - 4], eax */ 7404 MEM32(ebp + (-0x8)) = edx; /* 0x2701B124: mov dword ptr [ebp - 8], edx */ 7405 if (CMP_LE(_flag_a, _flag_b)) goto L_2701B140; /* 0x2701B127: jle 0x2701b140 */ 7406 L_2701B129: 7407 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701B129: fild dword ptr [ebp - 4] */ 7408 fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x2701B12C: fild dword ptr [ebp - 8] */ 7409 { double _v = fp_pop(); _st[0] -= _v; } /* 0x2701B12F: fsubp st(1) */ 7410 _st[0] *= *(double*)ADDR(ecx + 0xB0); /* 0x2701B131: fmul qword ptr [ecx + 0xb0] */ 7411 RECOMP_ICALL(0x27026ED2u); /* 0x2701B137: call 0x27026ed2 */ /* not lifted */ 7412 RECOMP_FLAGS_IN(); 7413 esp = ebp; /* 0x2701B13C: mov esp, ebp */ 7414 ebp = POP32_VAL(esp); /* 0x2701B13E: pop ebp */ 7415 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701B13F: ret */ 7416 L_2701B140: 7417 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7418 eax = 0; /* 0x2701B140: xor eax, eax */ 7419 _cf = 0; 7420 _flag_k = FK_TEST; 7421 esp = ebp; /* 0x2701B142: mov esp, ebp */ 7422 ebp = POP32_VAL(esp); /* 0x2701B144: pop ebp */ 7423 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701B145: ret */ 7424 RECOMP_REGS_OUT(); 7425 } 7426 7427 void sub_2701B150(void) { 7428 int _fpu_cmp = 0; 7429 uint32_t _cf = 0; 7430 int _df = 1; 7431 uint32_t _flag_k = FK_NONE; 7432 uint32_t _flag_a = 0, _flag_b = 0; 7433 uint32_t _itail_tgt = 0; 7434 RECOMP_REGS_LOCALS 7435 RECOMP_ENTER(0x2701B150u); 7436 7437 L_2701B150: 7438 PUSH32(esp, ebp); /* 0x2701B150: push ebp */ 7439 ebp = esp; /* 0x2701B151: mov ebp, esp */ 7440 PUSH32(esp, ebx); /* 0x2701B153: push ebx */ 7441 PUSH32(esp, esi); /* 0x2701B154: push esi */ 7442 PUSH32(esp, edi); /* 0x2701B155: push edi */ 7443 edi = MEM32(ebp + 0x8); /* 0x2701B156: mov edi, dword ptr [ebp + 8] */ 7444 esi = ecx; /* 0x2701B159: mov esi, ecx */ 7445 ecx = MEM32(esi + 0x60); /* 0x2701B15B: mov ecx, dword ptr [esi + 0x60] */ 7446 PUSH32(esp, edi); /* 0x2701B15E: push edi */ 7447 RECOMP_ICALL(0x270188C0u); /* 0x2701B15F: call 0x270188c0 */ /* not lifted */ 7448 RECOMP_FLAGS_IN(); 7449 ecx = MEM32(esi + 0x68); /* 0x2701B164: mov ecx, dword ptr [esi + 0x68] */ 7450 PUSH32(esp, edi); /* 0x2701B167: push edi */ 7451 RECOMP_ICALL(0x270188C0u); /* 0x2701B168: call 0x270188c0 */ /* not lifted */ 7452 RECOMP_FLAGS_IN(); 7453 ecx = MEM32(esi + 0x54); /* 0x2701B16D: mov ecx, dword ptr [esi + 0x54] */ 7454 ebx = MEM32(0x27029224); /* 0x2701B170: mov ebx, dword ptr [0x27029224] */ 7455 PUSH32(esp, edi); /* 0x2701B176: push edi */ 7456 RECOMP_ICALL(ebx); /* 0x2701B177: call ebx */ 7457 RECOMP_FLAGS_IN(); 7458 ecx = MEM32(esi + 0x58); /* 0x2701B179: mov ecx, dword ptr [esi + 0x58] */ 7459 PUSH32(esp, edi); /* 0x2701B17C: push edi */ 7460 RECOMP_ICALL(ebx); /* 0x2701B17D: call ebx */ 7461 RECOMP_FLAGS_IN(); 7462 edi = POP32_VAL(esp); /* 0x2701B17F: pop edi */ 7463 esi = POP32_VAL(esp); /* 0x2701B180: pop esi */ 7464 ebx = POP32_VAL(esp); /* 0x2701B181: pop ebx */ 7465 ebp = POP32_VAL(esp); /* 0x2701B182: pop ebp */ 7466 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701B183: ret 4 */ 7467 RECOMP_REGS_OUT(); 7468 } 7469 7470 void sub_2701B190(void) { 7471 int _fpu_cmp = 0; 7472 uint32_t _cf = 0; 7473 int _df = 1; 7474 uint32_t _flag_k = FK_NONE; 7475 uint32_t _flag_a = 0, _flag_b = 0; 7476 uint32_t _itail_tgt = 0; 7477 RECOMP_REGS_LOCALS 7478 RECOMP_ENTER(0x2701B190u); 7479 7480 L_2701B190: 7481 PUSH32(esp, ebp); /* 0x2701B190: push ebp */ 7482 ebp = esp; /* 0x2701B191: mov ebp, esp */ 7483 PUSH32(esp, ebx); /* 0x2701B193: push ebx */ 7484 PUSH32(esp, esi); /* 0x2701B194: push esi */ 7485 PUSH32(esp, edi); /* 0x2701B195: push edi */ 7486 edi = MEM32(ebp + 0x8); /* 0x2701B196: mov edi, dword ptr [ebp + 8] */ 7487 esi = ecx; /* 0x2701B199: mov esi, ecx */ 7488 ecx = MEM32(esi + 0x60); /* 0x2701B19B: mov ecx, dword ptr [esi + 0x60] */ 7489 PUSH32(esp, edi); /* 0x2701B19E: push edi */ 7490 RECOMP_ICALL(0x270188F0u); /* 0x2701B19F: call 0x270188f0 */ /* not lifted */ 7491 RECOMP_FLAGS_IN(); 7492 ecx = MEM32(esi + 0x68); /* 0x2701B1A4: mov ecx, dword ptr [esi + 0x68] */ 7493 PUSH32(esp, edi); /* 0x2701B1A7: push edi */ 7494 RECOMP_ICALL(0x270188F0u); /* 0x2701B1A8: call 0x270188f0 */ /* not lifted */ 7495 RECOMP_FLAGS_IN(); 7496 ecx = MEM32(esi + 0x54); /* 0x2701B1AD: mov ecx, dword ptr [esi + 0x54] */ 7497 ebx = MEM32(0x27029220); /* 0x2701B1B0: mov ebx, dword ptr [0x27029220] */ 7498 PUSH32(esp, edi); /* 0x2701B1B6: push edi */ 7499 RECOMP_ICALL(ebx); /* 0x2701B1B7: call ebx */ 7500 RECOMP_FLAGS_IN(); 7501 ecx = MEM32(esi + 0x58); /* 0x2701B1B9: mov ecx, dword ptr [esi + 0x58] */ 7502 PUSH32(esp, edi); /* 0x2701B1BC: push edi */ 7503 RECOMP_ICALL(ebx); /* 0x2701B1BD: call ebx */ 7504 RECOMP_FLAGS_IN(); 7505 edi = POP32_VAL(esp); /* 0x2701B1BF: pop edi */ 7506 esi = POP32_VAL(esp); /* 0x2701B1C0: pop esi */ 7507 ebx = POP32_VAL(esp); /* 0x2701B1C1: pop ebx */ 7508 ebp = POP32_VAL(esp); /* 0x2701B1C2: pop ebp */ 7509 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701B1C3: ret 4 */ 7510 RECOMP_REGS_OUT(); 7511 } 7512 7513 void sub_2701B1D0(void) { 7514 int _fpu_cmp = 0; 7515 uint32_t _cf = 0; 7516 int _df = 1; 7517 uint32_t _flag_k = FK_NONE; 7518 uint32_t _flag_a = 0, _flag_b = 0; 7519 uint32_t _itail_tgt = 0; 7520 RECOMP_REGS_LOCALS 7521 RECOMP_ENTER(0x2701B1D0u); 7522 7523 L_2701B1D0: 7524 PUSH32(esp, ebp); /* 0x2701B1D0: push ebp */ 7525 ebp = esp; /* 0x2701B1D1: mov ebp, esp */ 7526 PUSH32(esp, 0xFFFFFFFFu); /* 0x2701B1D3: push -1 */ 7527 PUSH32(esp, 0x27027EAFu); /* 0x2701B1D5: push 0x27027eaf */ 7528 eax = MEM32(FS_BASE + (0)); /* 0x2701B1DA: mov eax, dword ptr fs:[0] */ 7529 PUSH32(esp, eax); /* 0x2701B1E0: push eax */ 7530 MEM32(FS_BASE + (0)) = esp; /* 0x2701B1E1: mov dword ptr fs:[0], esp */ 7531 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 7532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7533 esp = esp - 0x34u; /* 0x2701B1E8: sub esp, 0x34 */ 7534 _flag_k = FK_CMP; 7535 eax = MEM32(ebp + 0xC); /* 0x2701B1EB: mov eax, dword ptr [ebp + 0xc] */ 7536 PUSH32(esp, ebx); /* 0x2701B1EE: push ebx */ 7537 PUSH32(esp, esi); /* 0x2701B1EF: push esi */ 7538 PUSH32(esp, edi); /* 0x2701B1F0: push edi */ 7539 esi = ecx; /* 0x2701B1F1: mov esi, ecx */ 7540 PUSH32(esp, eax); /* 0x2701B1F3: push eax */ 7541 MEM32(ebp + (-0x10)) = esi; /* 0x2701B1F4: mov dword ptr [ebp - 0x10], esi */ 7542 RECOMP_ICALL(0x270104B0u); /* 0x2701B1F7: call 0x270104b0 */ /* not lifted */ 7543 RECOMP_FLAGS_IN(); 7544 edi = MEM32(ebp + 0x8); /* 0x2701B1FC: mov edi, dword ptr [ebp + 8] */ 7545 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7546 ebx = 0; /* 0x2701B1FF: xor ebx, ebx */ 7547 _cf = 0; 7548 _flag_k = FK_TEST; 7549 MEM32(esi + 0xA0) = ebx; /* 0x2701B201: mov dword ptr [esi + 0xa0], ebx */ 7550 MEM8(esi + 0xB0) = (uint8_t)(LO8(ebx)); /* 0x2701B207: mov byte ptr [esi + 0xb0], bl */ 7551 MEM32(esi) = 0x27034524u; /* 0x2701B20D: mov dword ptr [esi], 0x27034524 */ 7552 ecx = MEM32(edi + 0xC); /* 0x2701B213: mov ecx, dword ptr [edi + 0xc] */ 7553 PUSH32(esp, ecx); /* 0x2701B216: push ecx */ 7554 ecx = esi; /* 0x2701B217: mov ecx, esi */ 7555 MEM32(ebp + (-0x4)) = ebx; /* 0x2701B219: mov dword ptr [ebp - 4], ebx */ 7556 RECOMP_ICALL(0x270105B0u); /* 0x2701B21C: call 0x270105b0 */ /* not lifted */ 7557 RECOMP_FLAGS_IN(); 7558 edx = MEM32(edi + 0x4); /* 0x2701B221: mov edx, dword ptr [edi + 4] */ 7559 eax = MEM32(edi + 0x8); /* 0x2701B224: mov eax, dword ptr [edi + 8] */ 7560 ecx = ebp + (-0x18); /* 0x2701B227: lea ecx, [ebp - 0x18] */ 7561 PUSH32(esp, ecx); /* 0x2701B22A: push ecx */ 7562 ecx = esi; /* 0x2701B22B: mov ecx, esi */ 7563 MEM32(ebp + (-0x18)) = edx; /* 0x2701B22D: mov dword ptr [ebp - 0x18], edx */ 7564 MEM32(ebp + (-0x14)) = eax; /* 0x2701B230: mov dword ptr [ebp - 0x14], eax */ 7565 RECOMP_ICALL(0x270109B0u); /* 0x2701B233: call 0x270109b0 */ /* not lifted */ 7566 RECOMP_FLAGS_IN(); 7567 MEM32(esi + 0x68) = ebx; /* 0x2701B238: mov dword ptr [esi + 0x68], ebx */ 7568 MEM32(esi + 0x6C) = ebx; /* 0x2701B23B: mov dword ptr [esi + 0x6c], ebx */ 7569 edx = MEM32(edi + 0x1C); /* 0x2701B23E: mov edx, dword ptr [edi + 0x1c] */ 7570 MEM32(esi + 0x98) = edx; /* 0x2701B241: mov dword ptr [esi + 0x98], edx */ 7571 eax = MEM32(edi + 0x20); /* 0x2701B247: mov eax, dword ptr [edi + 0x20] */ 7572 MEM32(esi + 0x9C) = eax; /* 0x2701B24A: mov dword ptr [esi + 0x9c], eax */ 7573 ecx = MEM32(edi + 0x24); /* 0x2701B250: mov ecx, dword ptr [edi + 0x24] */ 7574 MEM32(esi + 0x64) = ecx; /* 0x2701B253: mov dword ptr [esi + 0x64], ecx */ 7575 edx = MEM32(edi + 0x28); /* 0x2701B256: mov edx, dword ptr [edi + 0x28] */ 7576 MEM32(esi + 0x90) = edx; /* 0x2701B259: mov dword ptr [esi + 0x90], edx */ 7577 eax = MEM32(edi + 0x2C); /* 0x2701B25F: mov eax, dword ptr [edi + 0x2c] */ 7578 MEM32(esi + 0x94) = eax; /* 0x2701B262: mov dword ptr [esi + 0x94], eax */ 7579 /* test MEM8(esi + 0x64), 0x10u */ /* 0x2701B268: test byte ptr [esi + 0x64], 0x10 */ 7580 _flag_a = (uint32_t)(MEM8(esi + 0x64)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 7581 _cf = 0; 7582 _flag_k = FK_NARROW(FK_TEST, 24); 7583 ecx = MEM32(edi + 0x34); /* 0x2701B26C: mov ecx, dword ptr [edi + 0x34] */ 7584 MEM32(esi + 0x80) = ecx; /* 0x2701B26F: mov dword ptr [esi + 0x80], ecx */ 7585 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701B289; /* 0x2701B275: jne 0x2701b289 */ 7586 L_2701B277: 7587 edx = MEM32(esi + 0x9C); /* 0x2701B277: mov edx, dword ptr [esi + 0x9c] */ 7588 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x98)); 7589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7590 edx = edx - MEM32(esi + 0x98); /* 0x2701B27D: sub edx, dword ptr [esi + 0x98] */ 7591 _flag_k = FK_CMP; 7592 MEM32(esi + 0x80) = edx; /* 0x2701B283: mov dword ptr [esi + 0x80], edx */ 7593 L_2701B289: 7594 MEM32(esi + 0x54) = ebx; /* 0x2701B289: mov dword ptr [esi + 0x54], ebx */ 7595 MEM32(esi + 0x60) = ebx; /* 0x2701B28C: mov dword ptr [esi + 0x60], ebx */ 7596 MEM32(esi + 0x5C) = ebx; /* 0x2701B28F: mov dword ptr [esi + 0x5c], ebx */ 7597 /* cmp MEM32(edi + 0x10), ebx */ /* 0x2701B292: cmp dword ptr [edi + 0x10], ebx */ 7598 _flag_a = (uint32_t)(MEM32(edi + 0x10)); _flag_b = (uint32_t)(ebx); 7599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7600 _flag_k = FK_CMP; 7601 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701B343; /* 0x2701B295: je 0x2701b343 */ 7602 L_2701B29B: 7603 eax = MEM32(edi + 0x14); /* 0x2701B29B: mov eax, dword ptr [edi + 0x14] */ 7604 ebx = esi + 0x88; /* 0x2701B29E: lea ebx, [esi + 0x88] */ 7605 MEM32(ebx) = eax; /* 0x2701B2A4: mov dword ptr [ebx], eax */ 7606 ecx = MEM32(edi + 0x18); /* 0x2701B2A6: mov ecx, dword ptr [edi + 0x18] */ 7607 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7608 eax = 0; /* 0x2701B2A9: xor eax, eax */ 7609 _cf = 0; 7610 _flag_k = FK_TEST; 7611 PUSH32(esp, 0x38u); /* 0x2701B2AB: push 0x38 */ 7612 MEM32(esi + 0x8C) = ecx; /* 0x2701B2AD: mov dword ptr [esi + 0x8c], ecx */ 7613 MEM32(ebp + (-0x28)) = eax; /* 0x2701B2B3: mov dword ptr [ebp - 0x28], eax */ 7614 MEM32(ebp + (-0x24)) = eax; /* 0x2701B2B6: mov dword ptr [ebp - 0x24], eax */ 7615 RECOMP_ICALL(0x27026EA4u); /* 0x2701B2B9: call 0x27026ea4 */ /* not lifted */ 7616 RECOMP_FLAGS_IN(); 7617 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7619 esp = esp + 4; /* 0x2701B2BE: add esp, 4 */ 7620 _flag_k = FK_ADD; 7621 MEM32(ebp + 0x8) = eax; /* 0x2701B2C1: mov dword ptr [ebp + 8], eax */ 7622 /* test eax, eax */ /* 0x2701B2C4: test eax, eax */ 7623 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7624 _cf = 0; 7625 _flag_k = FK_TEST; 7626 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2701B2C6: mov byte ptr [ebp - 4], 1 */ 7627 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B2E3; /* 0x2701B2CA: je 0x2701b2e3 */ 7628 L_2701B2CC: 7629 edx = MEM32(ebp + 0xC); /* 0x2701B2CC: mov edx, dword ptr [ebp + 0xc] */ 7630 ecx = MEM32(edi + 0xC); /* 0x2701B2CF: mov ecx, dword ptr [edi + 0xc] */ 7631 PUSH32(esp, edx); /* 0x2701B2D2: push edx */ 7632 edx = MEM32(edi + 0x10); /* 0x2701B2D3: mov edx, dword ptr [edi + 0x10] */ 7633 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7634 ecx = ecx - 1; /* 0x2701B2D6: dec ecx */ 7635 _flag_k = FK_DEC; 7636 PUSH32(esp, ecx); /* 0x2701B2D7: push ecx */ 7637 PUSH32(esp, edx); /* 0x2701B2D8: push edx */ 7638 PUSH32(esp, ebx); /* 0x2701B2D9: push ebx */ 7639 ecx = eax; /* 0x2701B2DA: mov ecx, eax */ 7640 RECOMP_ICALL(0x2701C720u); /* 0x2701B2DC: call 0x2701c720 */ /* not lifted */ 7641 RECOMP_FLAGS_IN(); 7642 goto L_2701B2E5; /* 0x2701B2E1: jmp 0x2701b2e5 */ 7643 L_2701B2E3: 7644 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7645 eax = 0; /* 0x2701B2E3: xor eax, eax */ 7646 _cf = 0; 7647 _flag_k = FK_TEST; 7648 L_2701B2E5: 7649 ecx = ebp + (-0x28); /* 0x2701B2E5: lea ecx, [ebp - 0x28] */ 7650 PUSH32(esp, ecx); /* 0x2701B2E8: push ecx */ 7651 ecx = eax; /* 0x2701B2E9: mov ecx, eax */ 7652 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701B2EB: mov byte ptr [ebp - 4], 0 */ 7653 MEM32(esi + 0x58) = eax; /* 0x2701B2EF: mov dword ptr [esi + 0x58], eax */ 7654 RECOMP_ICALL(0x2701CB60u); /* 0x2701B2F2: call 0x2701cb60 */ /* not lifted */ 7655 RECOMP_FLAGS_IN(); 7656 eax = MEM32(esi + 0x64); /* 0x2701B2F7: mov eax, dword ptr [esi + 0x64] */ 7657 /* test LO8(eax), 1 */ /* 0x2701B2FA: test al, 1 */ 7658 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7659 _cf = 0; 7660 _flag_k = FK_NARROW(FK_TEST, 24); 7661 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B30F; /* 0x2701B2FC: je 0x2701b30f */ 7662 L_2701B2FE: 7663 edx = MEM32(esi + 0x9C); /* 0x2701B2FE: mov edx, dword ptr [esi + 0x9c] */ 7664 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x98)); 7665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7666 edx = edx - MEM32(esi + 0x98); /* 0x2701B304: sub edx, dword ptr [esi + 0x98] */ 7667 _flag_k = FK_CMP; 7668 MEM32(ebp + (-0x28)) = edx; /* 0x2701B30A: mov dword ptr [ebp - 0x28], edx */ 7669 goto L_2701B31E; /* 0x2701B30D: jmp 0x2701b31e */ 7670 L_2701B30F: 7671 ecx = MEM32(esi + 0x9C); /* 0x2701B30F: mov ecx, dword ptr [esi + 0x9c] */ 7672 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x98)); 7673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7674 ecx = ecx - MEM32(esi + 0x98); /* 0x2701B315: sub ecx, dword ptr [esi + 0x98] */ 7675 _flag_k = FK_CMP; 7676 MEM32(ebp + (-0x24)) = ecx; /* 0x2701B31B: mov dword ptr [ebp - 0x24], ecx */ 7677 L_2701B31E: 7678 /* test LO8(eax), 0x10u */ /* 0x2701B31E: test al, 0x10 */ 7679 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 7680 _cf = 0; 7681 _flag_k = FK_NARROW(FK_TEST, 24); 7682 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B32E; /* 0x2701B320: je 0x2701b32e */ 7683 L_2701B322: 7684 ecx = MEM32(esi + 0x58); /* 0x2701B322: mov ecx, dword ptr [esi + 0x58] */ 7685 edx = ebp + (-0x28); /* 0x2701B325: lea edx, [ebp - 0x28] */ 7686 PUSH32(esp, edx); /* 0x2701B328: push edx */ 7687 RECOMP_ICALL(0x2701CB00u); /* 0x2701B329: call 0x2701cb00 */ /* not lifted */ 7688 RECOMP_FLAGS_IN(); 7689 L_2701B32E: 7690 PUSH32(esp, 0x38u); /* 0x2701B32E: push 0x38 */ 7691 RECOMP_ICALL(0x27026EA4u); /* 0x2701B330: call 0x27026ea4 */ /* not lifted */ 7692 RECOMP_FLAGS_IN(); 7693 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7694 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7695 esp = esp + 4; /* 0x2701B335: add esp, 4 */ 7696 _flag_k = FK_ADD; 7697 MEM32(ebp + 0x8) = eax; /* 0x2701B338: mov dword ptr [ebp + 8], eax */ 7698 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2701B33B: mov byte ptr [ebp - 4], 2 */ 7699 /* test eax, eax */ /* 0x2701B33F: test eax, eax */ 7700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7701 _cf = 0; 7702 _flag_k = FK_TEST; 7703 goto L_2701B359; /* 0x2701B341: jmp 0x2701b359 */ 7704 L_2701B343: 7705 PUSH32(esp, 0x38u); /* 0x2701B343: push 0x38 */ 7706 MEM32(esi + 0x58) = ebx; /* 0x2701B345: mov dword ptr [esi + 0x58], ebx */ 7707 RECOMP_ICALL(0x27026EA4u); /* 0x2701B348: call 0x27026ea4 */ /* not lifted */ 7708 RECOMP_FLAGS_IN(); 7709 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7710 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7711 esp = esp + 4; /* 0x2701B34D: add esp, 4 */ 7712 _flag_k = FK_ADD; 7713 MEM32(ebp + 0x8) = eax; /* 0x2701B350: mov dword ptr [ebp + 8], eax */ 7714 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2701B353: mov byte ptr [ebp - 4], 3 */ 7715 /* cmp eax, ebx */ /* 0x2701B357: cmp eax, ebx */ 7716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7718 _flag_k = FK_CMP; 7719 L_2701B359: 7720 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2701B373; /* 0x2701B359: je 0x2701b373 */ 7721 L_2701B35B: 7722 ecx = MEM32(ebp + 0xC); /* 0x2701B35B: mov ecx, dword ptr [ebp + 0xc] */ 7723 edx = MEM32(edi + 0xC); /* 0x2701B35E: mov edx, dword ptr [edi + 0xc] */ 7724 PUSH32(esp, ecx); /* 0x2701B361: push ecx */ 7725 ecx = MEM32(edi); /* 0x2701B362: mov ecx, dword ptr [edi] */ 7726 PUSH32(esp, edx); /* 0x2701B364: push edx */ 7727 PUSH32(esp, ecx); /* 0x2701B365: push ecx */ 7728 edx = ebp + (-0x18); /* 0x2701B366: lea edx, [ebp - 0x18] */ 7729 PUSH32(esp, edx); /* 0x2701B369: push edx */ 7730 ecx = eax; /* 0x2701B36A: mov ecx, eax */ 7731 RECOMP_ICALL(0x2701C720u); /* 0x2701B36C: call 0x2701c720 */ /* not lifted */ 7732 RECOMP_FLAGS_IN(); 7733 goto L_2701B375; /* 0x2701B371: jmp 0x2701b375 */ 7734 L_2701B373: 7735 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7736 eax = 0; /* 0x2701B373: xor eax, eax */ 7737 _cf = 0; 7738 _flag_k = FK_TEST; 7739 L_2701B375: 7740 ebx = esi + 0x44; /* 0x2701B375: lea ebx, [esi + 0x44] */ 7741 PUSH32(esp, ebx); /* 0x2701B378: push ebx */ 7742 ecx = eax; /* 0x2701B379: mov ecx, eax */ 7743 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701B37B: mov byte ptr [ebp - 4], 0 */ 7744 MEM32(esi + 0x54) = eax; /* 0x2701B37F: mov dword ptr [esi + 0x54], eax */ 7745 RECOMP_ICALL(0x2701CB60u); /* 0x2701B382: call 0x2701cb60 */ /* not lifted */ 7746 RECOMP_FLAGS_IN(); 7747 eax = MEM32(edi + 0x30); /* 0x2701B387: mov eax, dword ptr [edi + 0x30] */ 7748 PUSH32(esp, eax); /* 0x2701B38A: push eax */ 7749 ecx = esi; /* 0x2701B38B: mov ecx, esi */ 7750 RECOMP_ICALL(0x2701B8C0u); /* 0x2701B38D: call 0x2701b8c0 */ /* not lifted */ 7751 RECOMP_FLAGS_IN(); 7752 edx = MEM32(esi + 0x64); /* 0x2701B392: mov edx, dword ptr [esi + 0x64] */ 7753 /* test LO8(edx), 1 */ /* 0x2701B395: test dl, 1 */ 7754 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 7755 _cf = 0; 7756 _flag_k = FK_NARROW(FK_TEST, 24); 7757 eax = MEM32(ebx); /* 0x2701B398: mov eax, dword ptr [ebx] */ 7758 ecx = MEM32(ebx + 0x4); /* 0x2701B39A: mov ecx, dword ptr [ebx + 4] */ 7759 MEM32(ebp + (-0x30)) = eax; /* 0x2701B39D: mov dword ptr [ebp - 0x30], eax */ 7760 MEM32(ebp + (-0x2C)) = ecx; /* 0x2701B3A0: mov dword ptr [ebp - 0x2c], ecx */ 7761 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B404; /* 0x2701B3A3: je 0x2701b404 */ 7762 L_2701B3A5: 7763 /* test LO8(edx), 0x10u */ /* 0x2701B3A5: test dl, 0x10 */ 7764 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 7765 _cf = 0; 7766 _flag_k = FK_NARROW(FK_TEST, 24); 7767 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B3C2; /* 0x2701B3A8: je 0x2701b3c2 */ 7768 L_2701B3AA: 7769 ecx = MEM32(esi + 0x98); /* 0x2701B3AA: mov ecx, dword ptr [esi + 0x98] */ 7770 ebx = MEM32(esi + 0x9C); /* 0x2701B3B0: mov ebx, dword ptr [esi + 0x9c] */ 7771 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701B3B6: cdq */ 7772 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7774 eax = eax - edx; /* 0x2701B3B7: sub eax, edx */ 7775 _flag_k = FK_CMP; 7776 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701B3B9: sar eax, 1 */ 7777 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7778 eax = (uint32_t)((int32_t)eax >> 1u); 7779 MEM32(ebp + (-0x20)) = ecx; /* 0x2701B3BB: mov dword ptr [ebp - 0x20], ecx */ 7780 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7782 ebx = ebx - eax; /* 0x2701B3BE: sub ebx, eax */ 7783 _flag_k = FK_CMP; 7784 goto L_2701B3DA; /* 0x2701B3C0: jmp 0x2701b3da */ 7785 L_2701B3C2: 7786 ecx = MEM32(esi + 0x98); /* 0x2701B3C2: mov ecx, dword ptr [esi + 0x98] */ 7787 ebx = MEM32(esi + 0x9C); /* 0x2701B3C8: mov ebx, dword ptr [esi + 0x9c] */ 7788 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701B3CE: cdq */ 7789 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7791 eax = eax - edx; /* 0x2701B3CF: sub eax, edx */ 7792 _flag_k = FK_CMP; 7793 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701B3D1: sar eax, 1 */ 7794 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7795 eax = (uint32_t)((int32_t)eax >> 1u); 7796 edx = ecx; /* 0x2701B3D3: mov edx, ecx */ 7797 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7799 edx = edx - eax; /* 0x2701B3D5: sub edx, eax */ 7800 _flag_k = FK_CMP; 7801 MEM32(ebp + (-0x20)) = edx; /* 0x2701B3D7: mov dword ptr [ebp - 0x20], edx */ 7802 L_2701B3DA: 7803 edx = MEM32(ebp + (-0x18)); /* 0x2701B3DA: mov edx, dword ptr [ebp - 0x18] */ 7804 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 7805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7806 ebx = ebx - edx; /* 0x2701B3DD: sub ebx, edx */ 7807 _flag_k = FK_CMP; 7808 MEM32(ebp + (-0x28)) = ebx; /* 0x2701B3DF: mov dword ptr [ebp - 0x28], ebx */ 7809 ebx = MEM32(ebp + (-0x14)); /* 0x2701B3E2: mov ebx, dword ptr [ebp - 0x14] */ 7810 MEM32(ebp + (-0x1C)) = ebx; /* 0x2701B3E5: mov dword ptr [ebp - 0x1c], ebx */ 7811 ebx = eax; /* 0x2701B3E8: mov ebx, eax */ 7812 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 7813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7814 ebx = ebx - ecx; /* 0x2701B3EA: sub ebx, ecx */ 7815 _flag_k = FK_CMP; 7816 ecx = MEM32(ebp + (-0x2C)); /* 0x2701B3EC: mov ecx, dword ptr [ebp - 0x2c] */ 7817 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 7818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7819 ebx = ebx + edx; /* 0x2701B3EF: add ebx, edx */ 7820 _flag_k = FK_ADD; 7821 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7823 eax = eax + edx; /* 0x2701B3F1: add eax, edx */ 7824 _flag_k = FK_ADD; 7825 edx = MEM32(ebp + (-0x14)); /* 0x2701B3F3: mov edx, dword ptr [ebp - 0x14] */ 7826 MEM32(ebp + (-0x3C)) = ecx; /* 0x2701B3F6: mov dword ptr [ebp - 0x3c], ecx */ 7827 MEM32(ebp + (-0x38)) = eax; /* 0x2701B3F9: mov dword ptr [ebp - 0x38], eax */ 7828 MEM32(ebp + (-0x34)) = edx; /* 0x2701B3FC: mov dword ptr [ebp - 0x34], edx */ 7829 MEM32(ebp + (-0x24)) = ecx; /* 0x2701B3FF: mov dword ptr [ebp - 0x24], ecx */ 7830 goto L_2701B45B; /* 0x2701B402: jmp 0x2701b45b */ 7831 L_2701B404: 7832 /* test LO8(edx), 0x10u */ /* 0x2701B404: test dl, 0x10 */ 7833 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 7834 _cf = 0; 7835 _flag_k = FK_NARROW(FK_TEST, 24); 7836 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B423; /* 0x2701B407: je 0x2701b423 */ 7837 L_2701B409: 7838 ebx = MEM32(esi + 0x98); /* 0x2701B409: mov ebx, dword ptr [esi + 0x98] */ 7839 eax = ecx; /* 0x2701B40F: mov eax, ecx */ 7840 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701B411: cdq */ 7841 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7843 eax = eax - edx; /* 0x2701B412: sub eax, edx */ 7844 _flag_k = FK_CMP; 7845 edx = MEM32(esi + 0x9C); /* 0x2701B414: mov edx, dword ptr [esi + 0x9c] */ 7846 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701B41A: sar eax, 1 */ 7847 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7848 eax = (uint32_t)((int32_t)eax >> 1u); 7849 MEM32(ebp + (-0x1C)) = ebx; /* 0x2701B41C: mov dword ptr [ebp - 0x1c], ebx */ 7850 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7852 edx = edx - eax; /* 0x2701B41F: sub edx, eax */ 7853 _flag_k = FK_CMP; 7854 goto L_2701B43D; /* 0x2701B421: jmp 0x2701b43d */ 7855 L_2701B423: 7856 ebx = MEM32(esi + 0x98); /* 0x2701B423: mov ebx, dword ptr [esi + 0x98] */ 7857 eax = ecx; /* 0x2701B429: mov eax, ecx */ 7858 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701B42B: cdq */ 7859 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7861 eax = eax - edx; /* 0x2701B42C: sub eax, edx */ 7862 _flag_k = FK_CMP; 7863 edx = MEM32(esi + 0x9C); /* 0x2701B42E: mov edx, dword ptr [esi + 0x9c] */ 7864 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701B434: sar eax, 1 */ 7865 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7866 eax = (uint32_t)((int32_t)eax >> 1u); 7867 ecx = ebx; /* 0x2701B436: mov ecx, ebx */ 7868 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7870 ecx = ecx - eax; /* 0x2701B438: sub ecx, eax */ 7871 _flag_k = FK_CMP; 7872 MEM32(ebp + (-0x1C)) = ecx; /* 0x2701B43A: mov dword ptr [ebp - 0x1c], ecx */ 7873 L_2701B43D: 7874 ecx = MEM32(ebp + (-0x14)); /* 0x2701B43D: mov ecx, dword ptr [ebp - 0x14] */ 7875 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7877 edx = edx - ecx; /* 0x2701B440: sub edx, ecx */ 7878 _flag_k = FK_CMP; 7879 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7881 eax = eax - ebx; /* 0x2701B442: sub eax, ebx */ 7882 _flag_k = FK_CMP; 7883 ebx = MEM32(ebp + (-0x30)); /* 0x2701B444: mov ebx, dword ptr [ebp - 0x30] */ 7884 MEM32(ebp + (-0x24)) = edx; /* 0x2701B447: mov dword ptr [ebp - 0x24], edx */ 7885 edx = MEM32(ebp + (-0x18)); /* 0x2701B44A: mov edx, dword ptr [ebp - 0x18] */ 7886 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7888 eax = eax + ecx; /* 0x2701B44D: add eax, ecx */ 7889 _flag_k = FK_ADD; 7890 MEM32(ebp + (-0x20)) = edx; /* 0x2701B44F: mov dword ptr [ebp - 0x20], edx */ 7891 MEM32(ebp + (-0x3C)) = eax; /* 0x2701B452: mov dword ptr [ebp - 0x3c], eax */ 7892 MEM32(ebp + (-0x38)) = edx; /* 0x2701B455: mov dword ptr [ebp - 0x38], edx */ 7893 MEM32(ebp + (-0x28)) = ebx; /* 0x2701B458: mov dword ptr [ebp - 0x28], ebx */ 7894 L_2701B45B: 7895 eax = ebp + (-0x30); /* 0x2701B45B: lea eax, [ebp - 0x30] */ 7896 PUSH32(esp, eax); /* 0x2701B45E: push eax */ 7897 ecx = esi; /* 0x2701B45F: mov ecx, esi */ 7898 RECOMP_ICALL(0x27010A90u); /* 0x2701B461: call 0x27010a90 */ /* not lifted */ 7899 RECOMP_FLAGS_IN(); 7900 PUSH32(esp, 0x9Cu); /* 0x2701B466: push 0x9c */ 7901 RECOMP_ICALL(0x27026EA4u); /* 0x2701B46B: call 0x27026ea4 */ /* not lifted */ 7902 RECOMP_FLAGS_IN(); 7903 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7905 esp = esp + 4; /* 0x2701B470: add esp, 4 */ 7906 _flag_k = FK_ADD; 7907 MEM32(ebp + 0x8) = eax; /* 0x2701B473: mov dword ptr [ebp + 8], eax */ 7908 /* test eax, eax */ /* 0x2701B476: test eax, eax */ 7909 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7910 _cf = 0; 7911 _flag_k = FK_TEST; 7912 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x2701B478: mov byte ptr [ebp - 4], 4 */ 7913 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B4A7; /* 0x2701B47C: je 0x2701b4a7 */ 7914 L_2701B47E: 7915 ecx = MEM32(ebp + 0xC); /* 0x2701B47E: mov ecx, dword ptr [ebp + 0xc] */ 7916 edx = MEM32(edi + 0xC); /* 0x2701B481: mov edx, dword ptr [edi + 0xc] */ 7917 PUSH32(esp, ecx); /* 0x2701B484: push ecx */ 7918 ecx = MEM32(ebp + (-0x3C)); /* 0x2701B485: mov ecx, dword ptr [ebp - 0x3c] */ 7919 PUSH32(esp, 0); /* 0x2701B488: push 0 */ 7920 PUSH32(esp, 0); /* 0x2701B48A: push 0 */ 7921 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 7922 edx = edx - 1; /* 0x2701B48C: dec edx */ 7923 _flag_k = FK_DEC; 7924 PUSH32(esp, edx); /* 0x2701B48D: push edx */ 7925 edx = MEM32(ebp + (-0x1C)); /* 0x2701B48E: mov edx, dword ptr [ebp - 0x1c] */ 7926 PUSH32(esp, 0); /* 0x2701B491: push 0 */ 7927 PUSH32(esp, 0); /* 0x2701B493: push 0 */ 7928 PUSH32(esp, 0); /* 0x2701B495: push 0 */ 7929 PUSH32(esp, ecx); /* 0x2701B497: push ecx */ 7930 ecx = MEM32(ebp + (-0x20)); /* 0x2701B498: mov ecx, dword ptr [ebp - 0x20] */ 7931 PUSH32(esp, ebx); /* 0x2701B49B: push ebx */ 7932 PUSH32(esp, edx); /* 0x2701B49C: push edx */ 7933 PUSH32(esp, ecx); /* 0x2701B49D: push ecx */ 7934 ecx = eax; /* 0x2701B49E: mov ecx, eax */ 7935 RECOMP_ICALL(0x27015990u); /* 0x2701B4A0: call 0x27015990 */ /* not lifted */ 7936 RECOMP_FLAGS_IN(); 7937 goto L_2701B4A9; /* 0x2701B4A5: jmp 0x2701b4a9 */ 7938 L_2701B4A7: 7939 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7940 eax = 0; /* 0x2701B4A7: xor eax, eax */ 7941 _cf = 0; 7942 _flag_k = FK_TEST; 7943 L_2701B4A9: 7944 PUSH32(esp, esi); /* 0x2701B4A9: push esi */ 7945 PUSH32(esp, 0x27019F10u); /* 0x2701B4AA: push 0x27019f10 */ 7946 ecx = eax; /* 0x2701B4AF: mov ecx, eax */ 7947 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701B4B1: mov byte ptr [ebp - 4], 0 */ 7948 MEM32(esi + 0x5C) = eax; /* 0x2701B4B5: mov dword ptr [esi + 0x5c], eax */ 7949 RECOMP_ICALL(0x27015E40u); /* 0x2701B4B8: call 0x27015e40 */ /* not lifted */ 7950 RECOMP_FLAGS_IN(); 7951 PUSH32(esp, 0x9Cu); /* 0x2701B4BD: push 0x9c */ 7952 RECOMP_ICALL(0x27026EA4u); /* 0x2701B4C2: call 0x27026ea4 */ /* not lifted */ 7953 RECOMP_FLAGS_IN(); 7954 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7955 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7956 esp = esp + 4; /* 0x2701B4C7: add esp, 4 */ 7957 _flag_k = FK_ADD; 7958 MEM32(ebp + 0x8) = eax; /* 0x2701B4CA: mov dword ptr [ebp + 8], eax */ 7959 /* test eax, eax */ /* 0x2701B4CD: test eax, eax */ 7960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7961 _cf = 0; 7962 _flag_k = FK_TEST; 7963 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2701B4CF: mov byte ptr [ebp - 4], 5 */ 7964 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B501; /* 0x2701B4D3: je 0x2701b501 */ 7965 L_2701B4D5: 7966 edx = MEM32(ebp + 0xC); /* 0x2701B4D5: mov edx, dword ptr [ebp + 0xc] */ 7967 ecx = MEM32(edi + 0xC); /* 0x2701B4D8: mov ecx, dword ptr [edi + 0xc] */ 7968 PUSH32(esp, edx); /* 0x2701B4DB: push edx */ 7969 edx = MEM32(ebp + (-0x24)); /* 0x2701B4DC: mov edx, dword ptr [ebp - 0x24] */ 7970 PUSH32(esp, 0); /* 0x2701B4DF: push 0 */ 7971 PUSH32(esp, 0); /* 0x2701B4E1: push 0 */ 7972 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7973 ecx = ecx - 1; /* 0x2701B4E3: dec ecx */ 7974 _flag_k = FK_DEC; 7975 PUSH32(esp, ecx); /* 0x2701B4E4: push ecx */ 7976 ecx = MEM32(ebp + (-0x28)); /* 0x2701B4E5: mov ecx, dword ptr [ebp - 0x28] */ 7977 PUSH32(esp, 0); /* 0x2701B4E8: push 0 */ 7978 PUSH32(esp, 0); /* 0x2701B4EA: push 0 */ 7979 PUSH32(esp, 0); /* 0x2701B4EC: push 0 */ 7980 PUSH32(esp, edx); /* 0x2701B4EE: push edx */ 7981 edx = MEM32(ebp + (-0x34)); /* 0x2701B4EF: mov edx, dword ptr [ebp - 0x34] */ 7982 PUSH32(esp, ecx); /* 0x2701B4F2: push ecx */ 7983 ecx = MEM32(ebp + (-0x38)); /* 0x2701B4F3: mov ecx, dword ptr [ebp - 0x38] */ 7984 PUSH32(esp, edx); /* 0x2701B4F6: push edx */ 7985 PUSH32(esp, ecx); /* 0x2701B4F7: push ecx */ 7986 ecx = eax; /* 0x2701B4F8: mov ecx, eax */ 7987 RECOMP_ICALL(0x27015990u); /* 0x2701B4FA: call 0x27015990 */ /* not lifted */ 7988 RECOMP_FLAGS_IN(); 7989 goto L_2701B503; /* 0x2701B4FF: jmp 0x2701b503 */ 7990 L_2701B501: 7991 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7992 eax = 0; /* 0x2701B501: xor eax, eax */ 7993 _cf = 0; 7994 _flag_k = FK_TEST; 7995 L_2701B503: 7996 PUSH32(esp, esi); /* 0x2701B503: push esi */ 7997 PUSH32(esp, 0x27010E90u); /* 0x2701B504: push 0x27010e90 */ 7998 ecx = eax; /* 0x2701B509: mov ecx, eax */ 7999 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x2701B50B: mov byte ptr [ebp - 4], 0 */ 8000 MEM32(esi + 0x60) = eax; /* 0x2701B50F: mov dword ptr [esi + 0x60], eax */ 8001 RECOMP_ICALL(0x27015E40u); /* 0x2701B512: call 0x27015e40 */ /* not lifted */ 8002 RECOMP_FLAGS_IN(); 8003 PUSH32(esp, 0); /* 0x2701B517: push 0 */ 8004 edx = ebp + (-0x40); /* 0x2701B519: lea edx, [ebp - 0x40] */ 8005 PUSH32(esp, edx); /* 0x2701B51C: push edx */ 8006 ecx = esi; /* 0x2701B51D: mov ecx, esi */ 8007 MEM32(ebp + (-0x40)) = 0; /* 0x2701B51F: mov dword ptr [ebp - 0x40], 0 */ 8008 MEM32(ebp + (-0x3C)) = 0; /* 0x2701B526: mov dword ptr [ebp - 0x3c], 0 */ 8009 RECOMP_ICALL(0x2701B5D0u); /* 0x2701B52D: call 0x2701b5d0 */ /* not lifted */ 8010 RECOMP_FLAGS_IN(); 8011 ecx = MEM32(ebp + (-0xC)); /* 0x2701B532: mov ecx, dword ptr [ebp - 0xc] */ 8012 edi = POP32_VAL(esp); /* 0x2701B535: pop edi */ 8013 MEM8(esi + 0x24) = (uint8_t)(1); /* 0x2701B536: mov byte ptr [esi + 0x24], 1 */ 8014 MEM8(esi + 0x25) = (uint8_t)(1); /* 0x2701B53A: mov byte ptr [esi + 0x25], 1 */ 8015 eax = esi; /* 0x2701B53E: mov eax, esi */ 8016 esi = POP32_VAL(esp); /* 0x2701B540: pop esi */ 8017 ebx = POP32_VAL(esp); /* 0x2701B541: pop ebx */ 8018 MEM32(FS_BASE + (0)) = ecx; /* 0x2701B542: mov dword ptr fs:[0], ecx */ 8019 esp = ebp; /* 0x2701B549: mov esp, ebp */ 8020 ebp = POP32_VAL(esp); /* 0x2701B54B: pop ebp */ 8021 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2701B54C: ret 8 */ 8022 RECOMP_REGS_OUT(); 8023 } 8024 8025 void sub_2701B550(void) { 8026 int _fpu_cmp = 0; 8027 uint32_t _cf = 0; 8028 int _df = 1; 8029 uint32_t _flag_k = FK_NONE; 8030 uint32_t _flag_a = 0, _flag_b = 0; 8031 uint32_t _itail_tgt = 0; 8032 RECOMP_REGS_LOCALS 8033 RECOMP_ENTER(0x2701B550u); 8034 8035 L_2701B550: 8036 PUSH32(esp, ebp); /* 0x2701B550: push ebp */ 8037 ebp = esp; /* 0x2701B551: mov ebp, esp */ 8038 PUSH32(esp, 0xFFFFFFFFu); /* 0x2701B553: push -1 */ 8039 PUSH32(esp, 0x27027EC8u); /* 0x2701B555: push 0x27027ec8 */ 8040 eax = MEM32(FS_BASE + (0)); /* 0x2701B55A: mov eax, dword ptr fs:[0] */ 8041 PUSH32(esp, eax); /* 0x2701B560: push eax */ 8042 MEM32(FS_BASE + (0)) = esp; /* 0x2701B561: mov dword ptr fs:[0], esp */ 8043 PUSH32(esp, ecx); /* 0x2701B568: push ecx */ 8044 PUSH32(esp, esi); /* 0x2701B569: push esi */ 8045 esi = ecx; /* 0x2701B56A: mov esi, ecx */ 8046 MEM32(ebp + (-0x10)) = esi; /* 0x2701B56C: mov dword ptr [ebp - 0x10], esi */ 8047 MEM32(esi) = 0x27034524u; /* 0x2701B56F: mov dword ptr [esi], 0x27034524 */ 8048 ecx = MEM32(esi + 0x5C); /* 0x2701B575: mov ecx, dword ptr [esi + 0x5c] */ 8049 /* test ecx, ecx */ /* 0x2701B578: test ecx, ecx */ 8050 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8051 _cf = 0; 8052 _flag_k = FK_TEST; 8053 MEM32(ebp + (-0x4)) = 0; /* 0x2701B57A: mov dword ptr [ebp - 4], 0 */ 8054 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B589; /* 0x2701B581: je 0x2701b589 */ 8055 L_2701B583: 8056 eax = MEM32(ecx); /* 0x2701B583: mov eax, dword ptr [ecx] */ 8057 PUSH32(esp, 1); /* 0x2701B585: push 1 */ 8058 RECOMP_ICALL(MEM32(eax)); /* 0x2701B587: call dword ptr [eax] */ 8059 RECOMP_FLAGS_IN(); 8060 L_2701B589: 8061 ecx = MEM32(esi + 0x60); /* 0x2701B589: mov ecx, dword ptr [esi + 0x60] */ 8062 /* test ecx, ecx */ /* 0x2701B58C: test ecx, ecx */ 8063 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8064 _cf = 0; 8065 _flag_k = FK_TEST; 8066 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B596; /* 0x2701B58E: je 0x2701b596 */ 8067 L_2701B590: 8068 edx = MEM32(ecx); /* 0x2701B590: mov edx, dword ptr [ecx] */ 8069 PUSH32(esp, 1); /* 0x2701B592: push 1 */ 8070 RECOMP_ICALL(MEM32(edx)); /* 0x2701B594: call dword ptr [edx] */ 8071 RECOMP_FLAGS_IN(); 8072 L_2701B596: 8073 ecx = MEM32(esi + 0x54); /* 0x2701B596: mov ecx, dword ptr [esi + 0x54] */ 8074 /* test ecx, ecx */ /* 0x2701B599: test ecx, ecx */ 8075 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8076 _cf = 0; 8077 _flag_k = FK_TEST; 8078 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B5A3; /* 0x2701B59B: je 0x2701b5a3 */ 8079 L_2701B59D: 8080 eax = MEM32(ecx); /* 0x2701B59D: mov eax, dword ptr [ecx] */ 8081 PUSH32(esp, 1); /* 0x2701B59F: push 1 */ 8082 RECOMP_ICALL(MEM32(eax)); /* 0x2701B5A1: call dword ptr [eax] */ 8083 RECOMP_FLAGS_IN(); 8084 L_2701B5A3: 8085 ecx = MEM32(esi + 0x58); /* 0x2701B5A3: mov ecx, dword ptr [esi + 0x58] */ 8086 /* test ecx, ecx */ /* 0x2701B5A6: test ecx, ecx */ 8087 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8088 _cf = 0; 8089 _flag_k = FK_TEST; 8090 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B5B0; /* 0x2701B5A8: je 0x2701b5b0 */ 8091 L_2701B5AA: 8092 edx = MEM32(ecx); /* 0x2701B5AA: mov edx, dword ptr [ecx] */ 8093 PUSH32(esp, 1); /* 0x2701B5AC: push 1 */ 8094 RECOMP_ICALL(MEM32(edx)); /* 0x2701B5AE: call dword ptr [edx] */ 8095 RECOMP_FLAGS_IN(); 8096 L_2701B5B0: 8097 ecx = esi; /* 0x2701B5B0: mov ecx, esi */ 8098 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2701B5B2: mov dword ptr [ebp - 4], 0xffffffff */ 8099 RECOMP_ICALL(0x27010510u); /* 0x2701B5B9: call 0x27010510 */ /* not lifted */ 8100 RECOMP_FLAGS_IN(); 8101 ecx = MEM32(ebp + (-0xC)); /* 0x2701B5BE: mov ecx, dword ptr [ebp - 0xc] */ 8102 esi = POP32_VAL(esp); /* 0x2701B5C1: pop esi */ 8103 MEM32(FS_BASE + (0)) = ecx; /* 0x2701B5C2: mov dword ptr fs:[0], ecx */ 8104 esp = ebp; /* 0x2701B5C9: mov esp, ebp */ 8105 ebp = POP32_VAL(esp); /* 0x2701B5CB: pop ebp */ 8106 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701B5CC: ret */ 8107 RECOMP_REGS_OUT(); 8108 } 8109 8110 void sub_2701B5D0(void) { 8111 int _fpu_cmp = 0; 8112 uint32_t _cf = 0; 8113 int _df = 1; 8114 uint32_t _flag_k = FK_NONE; 8115 uint32_t _flag_a = 0, _flag_b = 0; 8116 uint32_t _itail_tgt = 0; 8117 RECOMP_REGS_LOCALS 8118 RECOMP_ENTER(0x2701B5D0u); 8119 8120 L_2701B5D0: 8121 PUSH32(esp, ebp); /* 0x2701B5D0: push ebp */ 8122 ebp = esp; /* 0x2701B5D1: mov ebp, esp */ 8123 eax = MEM32(ebp + 0x8); /* 0x2701B5D3: mov eax, dword ptr [ebp + 8] */ 8124 PUSH32(esp, esi); /* 0x2701B5D6: push esi */ 8125 esi = ecx; /* 0x2701B5D7: mov esi, ecx */ 8126 fp_push(*(double*)ADDR(esi + 0x78)); /* 0x2701B5D9: fld qword ptr [esi + 0x78] */ 8127 _st[0] *= *(double*)ADDR(eax); /* 0x2701B5DC: fmul qword ptr [eax] */ 8128 RECOMP_ICALL(0x27026ED2u); /* 0x2701B5DE: call 0x27026ed2 */ /* not lifted */ 8129 RECOMP_FLAGS_IN(); 8130 ecx = MEM32(ebp + 0xC); /* 0x2701B5E3: mov ecx, dword ptr [ebp + 0xc] */ 8131 PUSH32(esp, ecx); /* 0x2701B5E6: push ecx */ 8132 ecx = esi; /* 0x2701B5E7: mov ecx, esi */ 8133 MEM32(esi + 0xA0) = eax; /* 0x2701B5E9: mov dword ptr [esi + 0xa0], eax */ 8134 RECOMP_ICALL(0x2701B600u); /* 0x2701B5EF: call 0x2701b600 */ /* not lifted */ 8135 RECOMP_FLAGS_IN(); 8136 esi = POP32_VAL(esp); /* 0x2701B5F4: pop esi */ 8137 ebp = POP32_VAL(esp); /* 0x2701B5F5: pop ebp */ 8138 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2701B5F6: ret 8 */ 8139 RECOMP_REGS_OUT(); 8140 } 8141 8142 void sub_2701B600(void) { 8143 int _fpu_cmp = 0; 8144 uint32_t _cf = 0; 8145 int _df = 1; 8146 uint32_t _flag_k = FK_NONE; 8147 uint32_t _flag_a = 0, _flag_b = 0; 8148 uint32_t _itail_tgt = 0; 8149 RECOMP_REGS_LOCALS 8150 RECOMP_ENTER(0x2701B600u); 8151 8152 L_2701B600: 8153 PUSH32(esp, ebp); /* 0x2701B600: push ebp */ 8154 ebp = esp; /* 0x2701B601: mov ebp, esp */ 8155 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 8156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8157 esp = esp - 0x1Cu; /* 0x2701B603: sub esp, 0x1c */ 8158 _flag_k = FK_CMP; 8159 PUSH32(esp, esi); /* 0x2701B606: push esi */ 8160 esi = ecx; /* 0x2701B607: mov esi, ecx */ 8161 SET_LO8(eax, MEM8(esi + 0xB0)); /* 0x2701B609: mov al, byte ptr [esi + 0xb0] */ 8162 /* test LO8(eax), LO8(eax) */ /* 0x2701B60F: test al, al */ 8163 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8164 _cf = 0; 8165 _flag_k = FK_NARROW(FK_TEST, 24); 8166 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701B7EE; /* 0x2701B611: jne 0x2701b7ee */ 8167 L_2701B617: 8168 PUSH32(esp, edi); /* 0x2701B617: push edi */ 8169 RECOMP_ICALL(0x2701BC00u); /* 0x2701B618: call 0x2701bc00 */ /* not lifted */ 8170 RECOMP_FLAGS_IN(); 8171 eax = MEM32(esi + 0x3C); /* 0x2701B61D: mov eax, dword ptr [esi + 0x3c] */ 8172 ecx = MEM32(esi + 0x40); /* 0x2701B620: mov ecx, dword ptr [esi + 0x40] */ 8173 MEM32(ebp + (-0x14)) = eax; /* 0x2701B623: mov dword ptr [ebp - 0x14], eax */ 8174 eax = MEM32(esi + 0x64); /* 0x2701B626: mov eax, dword ptr [esi + 0x64] */ 8175 /* test LO8(eax), 1 */ /* 0x2701B629: test al, 1 */ 8176 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8177 _cf = 0; 8178 _flag_k = FK_NARROW(FK_TEST, 24); 8179 MEM32(ebp + (-0x10)) = ecx; /* 0x2701B62B: mov dword ptr [ebp - 0x10], ecx */ 8180 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B6EB; /* 0x2701B62E: je 0x2701b6eb */ 8181 L_2701B634: 8182 /* test LO8(eax), 0x10u */ /* 0x2701B634: test al, 0x10 */ 8183 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 8184 _cf = 0; 8185 _flag_k = FK_NARROW(FK_TEST, 24); 8186 edi = MEM32(esi + 0x98); /* 0x2701B636: mov edi, dword ptr [esi + 0x98] */ 8187 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B655; /* 0x2701B63C: je 0x2701b655 */ 8188 L_2701B63E: 8189 fp_push((double)(int32_t)MEM32(esi + 0x84)); /* 0x2701B63E: fild dword ptr [esi + 0x84] */ 8190 _st[0] *= *(double*)ADDR(esi + 0xA8); /* 0x2701B644: fmul qword ptr [esi + 0xa8] */ 8191 RECOMP_ICALL(0x27026ED2u); /* 0x2701B64A: call 0x27026ed2 */ /* not lifted */ 8192 RECOMP_FLAGS_IN(); 8193 ecx = eax; /* 0x2701B64F: mov ecx, eax */ 8194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 8195 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8196 ecx = ecx + edi; /* 0x2701B651: add ecx, edi */ 8197 _flag_k = FK_ADD; 8198 goto L_2701B67C; /* 0x2701B653: jmp 0x2701b67c */ 8199 L_2701B655: 8200 eax = MEM32(esi + 0x44); /* 0x2701B655: mov eax, dword ptr [esi + 0x44] */ 8201 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701B658: cdq */ 8202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8204 eax = eax - edx; /* 0x2701B659: sub eax, edx */ 8205 _flag_k = FK_CMP; 8206 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701B65B: sar eax, 1 */ 8207 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8208 eax = (uint32_t)((int32_t)eax >> 1u); 8209 edx = edi; /* 0x2701B65D: mov edx, edi */ 8210 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8212 edx = edx - eax; /* 0x2701B65F: sub edx, eax */ 8213 _flag_k = FK_CMP; 8214 MEM32(ebp + (-0x4)) = edx; /* 0x2701B661: mov dword ptr [ebp - 4], edx */ 8215 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701B664: fild dword ptr [ebp - 4] */ 8216 fp_push((double)(int32_t)MEM32(esi + 0x84)); /* 0x2701B667: fild dword ptr [esi + 0x84] */ 8217 _st[0] *= *(double*)ADDR(esi + 0xA8); /* 0x2701B66D: fmul qword ptr [esi + 0xa8] */ 8218 { double _v = fp_pop(); _st[0] += _v; } /* 0x2701B673: faddp st(1) */ 8219 RECOMP_ICALL(0x27026ED2u); /* 0x2701B675: call 0x27026ed2 */ /* not lifted */ 8220 RECOMP_FLAGS_IN(); 8221 ecx = eax; /* 0x2701B67A: mov ecx, eax */ 8222 L_2701B67C: 8223 eax = MEM32(esi + 0x44); /* 0x2701B67C: mov eax, dword ptr [esi + 0x44] */ 8224 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701B67F: cdq */ 8225 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8227 eax = eax - edx; /* 0x2701B680: sub eax, edx */ 8228 _flag_k = FK_CMP; 8229 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701B682: sar eax, 1 */ 8230 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8231 eax = (uint32_t)((int32_t)eax >> 1u); 8232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8234 eax = eax - edi; /* 0x2701B684: sub eax, edi */ 8235 _flag_k = FK_CMP; 8236 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8238 eax = eax + ecx; /* 0x2701B686: add eax, ecx */ 8239 _flag_k = FK_ADD; 8240 MEM32(ebp + (-0xC)) = eax; /* 0x2701B688: mov dword ptr [ebp - 0xc], eax */ 8241 eax = MEM32(esi + 0x48); /* 0x2701B68B: mov eax, dword ptr [esi + 0x48] */ 8242 MEM32(ebp + (-0x14)) = ecx; /* 0x2701B68E: mov dword ptr [ebp - 0x14], ecx */ 8243 ecx = MEM32(esi + 0x5C); /* 0x2701B691: mov ecx, dword ptr [esi + 0x5c] */ 8244 MEM32(ebp + (-0x8)) = eax; /* 0x2701B694: mov dword ptr [ebp - 8], eax */ 8245 edx = MEM32(ecx); /* 0x2701B697: mov edx, dword ptr [ecx] */ 8246 eax = ebp + (-0xC); /* 0x2701B699: lea eax, [ebp - 0xc] */ 8247 PUSH32(esp, eax); /* 0x2701B69C: push eax */ 8248 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2701B69D: call dword ptr [edx + 0x18] */ 8249 RECOMP_FLAGS_IN(); 8250 eax = MEM32(esi + 0x44); /* 0x2701B6A0: mov eax, dword ptr [esi + 0x44] */ 8251 ecx = MEM32(ebp + (-0x14)); /* 0x2701B6A3: mov ecx, dword ptr [ebp - 0x14] */ 8252 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701B6A6: cdq */ 8253 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8255 eax = eax - edx; /* 0x2701B6A7: sub eax, edx */ 8256 _flag_k = FK_CMP; 8257 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701B6A9: sar eax, 1 */ 8258 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8259 eax = (uint32_t)((int32_t)eax >> 1u); 8260 edx = eax + ecx; /* 0x2701B6AB: lea edx, [eax + ecx] */ 8261 MEM32(ebp + (-0x1C)) = edx; /* 0x2701B6AE: mov dword ptr [ebp - 0x1c], edx */ 8262 edx = MEM32(ebp + (-0x10)); /* 0x2701B6B1: mov edx, dword ptr [ebp - 0x10] */ 8263 MEM32(ebp + (-0x18)) = edx; /* 0x2701B6B4: mov dword ptr [ebp - 0x18], edx */ 8264 /* test MEM8(esi + 0x64), 0x10u */ /* 0x2701B6B7: test byte ptr [esi + 0x64], 0x10 */ 8265 _flag_a = (uint32_t)(MEM8(esi + 0x64)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 8266 _cf = 0; 8267 _flag_k = FK_NARROW(FK_TEST, 24); 8268 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B6D5; /* 0x2701B6BB: je 0x2701b6d5 */ 8269 L_2701B6BD: 8270 edx = MEM32(esi + 0x9C); /* 0x2701B6BD: mov edx, dword ptr [esi + 0x9c] */ 8271 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8273 edx = edx - eax; /* 0x2701B6C3: sub edx, eax */ 8274 _flag_k = FK_CMP; 8275 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8277 edx = edx - ecx; /* 0x2701B6C5: sub edx, ecx */ 8278 _flag_k = FK_CMP; 8279 ecx = MEM32(esi + 0x48); /* 0x2701B6C7: mov ecx, dword ptr [esi + 0x48] */ 8280 MEM32(ebp + (-0xC)) = edx; /* 0x2701B6CA: mov dword ptr [ebp - 0xc], edx */ 8281 MEM32(ebp + (-0x8)) = ecx; /* 0x2701B6CD: mov dword ptr [ebp - 8], ecx */ 8282 goto L_2701B791; /* 0x2701B6D0: jmp 0x2701b791 */ 8283 L_2701B6D5: 8284 eax = MEM32(esi + 0x9C); /* 0x2701B6D5: mov eax, dword ptr [esi + 0x9c] */ 8285 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8287 eax = eax - ecx; /* 0x2701B6DB: sub eax, ecx */ 8288 _flag_k = FK_CMP; 8289 ecx = MEM32(esi + 0x48); /* 0x2701B6DD: mov ecx, dword ptr [esi + 0x48] */ 8290 MEM32(ebp + (-0xC)) = eax; /* 0x2701B6E0: mov dword ptr [ebp - 0xc], eax */ 8291 MEM32(ebp + (-0x8)) = ecx; /* 0x2701B6E3: mov dword ptr [ebp - 8], ecx */ 8292 goto L_2701B791; /* 0x2701B6E6: jmp 0x2701b791 */ 8293 L_2701B6EB: 8294 /* test LO8(eax), 0x10u */ /* 0x2701B6EB: test al, 0x10 */ 8295 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 8296 _cf = 0; 8297 _flag_k = FK_NARROW(FK_TEST, 24); 8298 edi = MEM32(esi + 0x98); /* 0x2701B6ED: mov edi, dword ptr [esi + 0x98] */ 8299 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B709; /* 0x2701B6F3: je 0x2701b709 */ 8300 L_2701B6F5: 8301 fp_push((double)(int32_t)MEM32(esi + 0x84)); /* 0x2701B6F5: fild dword ptr [esi + 0x84] */ 8302 MEM32(ebp + (-0x4)) = edi; /* 0x2701B6FB: mov dword ptr [ebp - 4], edi */ 8303 _st[0] *= *(double*)ADDR(esi + 0xA8); /* 0x2701B6FE: fmul qword ptr [esi + 0xa8] */ 8304 _st[0] = _st[0] + (double)(int32_t)MEM32(ebp + (-0x4)); /* 0x2701B704: fiadd dword ptr [ebp - 4] */ 8305 goto L_2701B729; /* 0x2701B707: jmp 0x2701b729 */ 8306 L_2701B709: 8307 eax = MEM32(esi + 0x48); /* 0x2701B709: mov eax, dword ptr [esi + 0x48] */ 8308 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701B70C: cdq */ 8309 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8311 eax = eax - edx; /* 0x2701B70D: sub eax, edx */ 8312 _flag_k = FK_CMP; 8313 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701B70F: sar eax, 1 */ 8314 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8315 eax = (uint32_t)((int32_t)eax >> 1u); 8316 ecx = edi; /* 0x2701B711: mov ecx, edi */ 8317 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8319 ecx = ecx - eax; /* 0x2701B713: sub ecx, eax */ 8320 _flag_k = FK_CMP; 8321 MEM32(ebp + (-0x4)) = ecx; /* 0x2701B715: mov dword ptr [ebp - 4], ecx */ 8322 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701B718: fild dword ptr [ebp - 4] */ 8323 fp_push((double)(int32_t)MEM32(esi + 0x84)); /* 0x2701B71B: fild dword ptr [esi + 0x84] */ 8324 _st[0] *= *(double*)ADDR(esi + 0xA8); /* 0x2701B721: fmul qword ptr [esi + 0xa8] */ 8325 { double _v = fp_pop(); _st[0] += _v; } /* 0x2701B727: faddp st(1) */ 8326 L_2701B729: 8327 RECOMP_ICALL(0x27026ED2u); /* 0x2701B729: call 0x27026ed2 */ /* not lifted */ 8328 RECOMP_FLAGS_IN(); 8329 ecx = eax; /* 0x2701B72E: mov ecx, eax */ 8330 eax = MEM32(esi + 0x48); /* 0x2701B730: mov eax, dword ptr [esi + 0x48] */ 8331 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701B733: cdq */ 8332 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8334 eax = eax - edx; /* 0x2701B734: sub eax, edx */ 8335 _flag_k = FK_CMP; 8336 edx = MEM32(esi + 0x44); /* 0x2701B736: mov edx, dword ptr [esi + 0x44] */ 8337 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701B739: sar eax, 1 */ 8338 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8339 eax = (uint32_t)((int32_t)eax >> 1u); 8340 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8342 eax = eax - edi; /* 0x2701B73B: sub eax, edi */ 8343 _flag_k = FK_CMP; 8344 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8345 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8346 eax = eax + ecx; /* 0x2701B73D: add eax, ecx */ 8347 _flag_k = FK_ADD; 8348 MEM32(ebp + (-0x10)) = ecx; /* 0x2701B73F: mov dword ptr [ebp - 0x10], ecx */ 8349 ecx = MEM32(esi + 0x5C); /* 0x2701B742: mov ecx, dword ptr [esi + 0x5c] */ 8350 MEM32(ebp + (-0xC)) = edx; /* 0x2701B745: mov dword ptr [ebp - 0xc], edx */ 8351 edx = ebp + (-0xC); /* 0x2701B748: lea edx, [ebp - 0xc] */ 8352 MEM32(ebp + (-0x8)) = eax; /* 0x2701B74B: mov dword ptr [ebp - 8], eax */ 8353 eax = MEM32(ecx); /* 0x2701B74E: mov eax, dword ptr [ecx] */ 8354 PUSH32(esp, edx); /* 0x2701B750: push edx */ 8355 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x2701B751: call dword ptr [eax + 0x18] */ 8356 RECOMP_FLAGS_IN(); 8357 eax = MEM32(esi + 0x48); /* 0x2701B754: mov eax, dword ptr [esi + 0x48] */ 8358 ecx = MEM32(ebp + (-0x10)); /* 0x2701B757: mov ecx, dword ptr [ebp - 0x10] */ 8359 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701B75A: cdq */ 8360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8362 eax = eax - edx; /* 0x2701B75B: sub eax, edx */ 8363 _flag_k = FK_CMP; 8364 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701B75D: sar eax, 1 */ 8365 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8366 eax = (uint32_t)((int32_t)eax >> 1u); 8367 edx = eax + ecx; /* 0x2701B75F: lea edx, [eax + ecx] */ 8368 MEM32(ebp + (-0x18)) = edx; /* 0x2701B762: mov dword ptr [ebp - 0x18], edx */ 8369 edx = MEM32(ebp + (-0x14)); /* 0x2701B765: mov edx, dword ptr [ebp - 0x14] */ 8370 MEM32(ebp + (-0x1C)) = edx; /* 0x2701B768: mov dword ptr [ebp - 0x1c], edx */ 8371 /* test MEM8(esi + 0x64), 0x10u */ /* 0x2701B76B: test byte ptr [esi + 0x64], 0x10 */ 8372 _flag_a = (uint32_t)(MEM8(esi + 0x64)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 8373 _cf = 0; 8374 _flag_k = FK_NARROW(FK_TEST, 24); 8375 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B780; /* 0x2701B76F: je 0x2701b780 */ 8376 L_2701B771: 8377 edx = MEM32(esi + 0x9C); /* 0x2701B771: mov edx, dword ptr [esi + 0x9c] */ 8378 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8380 edx = edx - eax; /* 0x2701B777: sub edx, eax */ 8381 _flag_k = FK_CMP; 8382 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8384 edx = edx - ecx; /* 0x2701B779: sub edx, ecx */ 8385 _flag_k = FK_CMP; 8386 MEM32(ebp + (-0x8)) = edx; /* 0x2701B77B: mov dword ptr [ebp - 8], edx */ 8387 goto L_2701B78B; /* 0x2701B77E: jmp 0x2701b78b */ 8388 L_2701B780: 8389 eax = MEM32(esi + 0x9C); /* 0x2701B780: mov eax, dword ptr [esi + 0x9c] */ 8390 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8392 eax = eax - ecx; /* 0x2701B786: sub eax, ecx */ 8393 _flag_k = FK_CMP; 8394 MEM32(ebp + (-0x8)) = eax; /* 0x2701B788: mov dword ptr [ebp - 8], eax */ 8395 L_2701B78B: 8396 ecx = MEM32(esi + 0x44); /* 0x2701B78B: mov ecx, dword ptr [esi + 0x44] */ 8397 MEM32(ebp + (-0xC)) = ecx; /* 0x2701B78E: mov dword ptr [ebp - 0xc], ecx */ 8398 L_2701B791: 8399 ecx = MEM32(esi + 0x60); /* 0x2701B791: mov ecx, dword ptr [esi + 0x60] */ 8400 edx = MEM32(ecx); /* 0x2701B794: mov edx, dword ptr [ecx] */ 8401 eax = ebp + (-0x1C); /* 0x2701B796: lea eax, [ebp - 0x1c] */ 8402 PUSH32(esp, eax); /* 0x2701B799: push eax */ 8403 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2701B79A: call dword ptr [edx + 0x14] */ 8404 RECOMP_FLAGS_IN(); 8405 ecx = MEM32(esi + 0x60); /* 0x2701B79D: mov ecx, dword ptr [esi + 0x60] */ 8406 edx = MEM32(ecx); /* 0x2701B7A0: mov edx, dword ptr [ecx] */ 8407 eax = ebp + (-0xC); /* 0x2701B7A2: lea eax, [ebp - 0xc] */ 8408 PUSH32(esp, eax); /* 0x2701B7A5: push eax */ 8409 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2701B7A6: call dword ptr [edx + 0x18] */ 8410 RECOMP_FLAGS_IN(); 8411 ecx = ebp + (-0x14); /* 0x2701B7A9: lea ecx, [ebp - 0x14] */ 8412 PUSH32(esp, ecx); /* 0x2701B7AC: push ecx */ 8413 ecx = MEM32(esi + 0x54); /* 0x2701B7AD: mov ecx, dword ptr [esi + 0x54] */ 8414 RECOMP_ICALL(0x2701CAB0u); /* 0x2701B7B0: call 0x2701cab0 */ /* not lifted */ 8415 RECOMP_FLAGS_IN(); 8416 edx = ebp + (-0x14); /* 0x2701B7B5: lea edx, [ebp - 0x14] */ 8417 PUSH32(esp, edx); /* 0x2701B7B8: push edx */ 8418 ecx = esi; /* 0x2701B7B9: mov ecx, esi */ 8419 RECOMP_ICALL(0x270109B0u); /* 0x2701B7BB: call 0x270109b0 */ /* not lifted */ 8420 RECOMP_FLAGS_IN(); 8421 ecx = esi; /* 0x2701B7C0: mov ecx, esi */ 8422 RECOMP_ICALL(0x2701B860u); /* 0x2701B7C2: call 0x2701b860 */ /* not lifted */ 8423 RECOMP_FLAGS_IN(); 8424 ecx = MEM32(esi + 0x68); /* 0x2701B7C7: mov ecx, dword ptr [esi + 0x68] */ 8425 eax = MEM32(ebp + (-0x14)); /* 0x2701B7CA: mov eax, dword ptr [ebp - 0x14] */ 8426 /* cmp ecx, eax */ /* 0x2701B7CD: cmp ecx, eax */ 8427 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8429 _flag_k = FK_CMP; 8430 ecx = MEM32(ebp + (-0x10)); /* 0x2701B7CF: mov ecx, dword ptr [ebp - 0x10] */ 8431 edi = POP32_VAL(esp); /* 0x2701B7D2: pop edi */ 8432 if (CMP_NE(_flag_a, _flag_b)) goto L_2701B7DA; /* 0x2701B7D3: jne 0x2701b7da */ 8433 L_2701B7D5: 8434 /* cmp MEM32(esi + 0x6C), ecx */ /* 0x2701B7D5: cmp dword ptr [esi + 0x6c], ecx */ 8435 _flag_a = (uint32_t)(MEM32(esi + 0x6C)); _flag_b = (uint32_t)(ecx); 8436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8437 _flag_k = FK_CMP; 8438 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701B7EE; /* 0x2701B7D8: je 0x2701b7ee */ 8439 L_2701B7DA: 8440 MEM32(esi + 0x68) = eax; /* 0x2701B7DA: mov dword ptr [esi + 0x68], eax */ 8441 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x2701B7DD: mov al, byte ptr [ebp + 8] */ 8442 /* test LO8(eax), LO8(eax) */ /* 0x2701B7E0: test al, al */ 8443 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8444 _cf = 0; 8445 _flag_k = FK_NARROW(FK_TEST, 24); 8446 MEM32(esi + 0x6C) = ecx; /* 0x2701B7E2: mov dword ptr [esi + 0x6c], ecx */ 8447 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701B7EE; /* 0x2701B7E5: jne 0x2701b7ee */ 8448 L_2701B7E7: 8449 ecx = esi; /* 0x2701B7E7: mov ecx, esi */ 8450 RECOMP_ICALL(0x2701B800u); /* 0x2701B7E9: call 0x2701b800 */ /* not lifted */ 8451 RECOMP_FLAGS_IN(); 8452 L_2701B7EE: 8453 esi = POP32_VAL(esp); /* 0x2701B7EE: pop esi */ 8454 esp = ebp; /* 0x2701B7EF: mov esp, ebp */ 8455 ebp = POP32_VAL(esp); /* 0x2701B7F1: pop ebp */ 8456 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701B7F2: ret 4 */ 8457 RECOMP_REGS_OUT(); 8458 } 8459 8460 void sub_2701B791(void) { 8461 int _fpu_cmp = 0; 8462 uint32_t _cf = 0; 8463 int _df = 1; 8464 uint32_t _flag_k = FK_NONE; 8465 uint32_t _flag_a = 0, _flag_b = 0; 8466 uint32_t _itail_tgt = 0; 8467 RECOMP_REGS_LOCALS 8468 RECOMP_ENTER(0x2701B791u); 8469 8470 L_2701B791: 8471 ecx = MEM32(esi + 0x60); /* 0x2701B791: mov ecx, dword ptr [esi + 0x60] */ 8472 edx = MEM32(ecx); /* 0x2701B794: mov edx, dword ptr [ecx] */ 8473 eax = ebp + (-0x1C); /* 0x2701B796: lea eax, [ebp - 0x1c] */ 8474 PUSH32(esp, eax); /* 0x2701B799: push eax */ 8475 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2701B79A: call dword ptr [edx + 0x14] */ 8476 RECOMP_FLAGS_IN(); 8477 ecx = MEM32(esi + 0x60); /* 0x2701B79D: mov ecx, dword ptr [esi + 0x60] */ 8478 edx = MEM32(ecx); /* 0x2701B7A0: mov edx, dword ptr [ecx] */ 8479 eax = ebp + (-0xC); /* 0x2701B7A2: lea eax, [ebp - 0xc] */ 8480 PUSH32(esp, eax); /* 0x2701B7A5: push eax */ 8481 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x2701B7A6: call dword ptr [edx + 0x18] */ 8482 RECOMP_FLAGS_IN(); 8483 ecx = ebp + (-0x14); /* 0x2701B7A9: lea ecx, [ebp - 0x14] */ 8484 PUSH32(esp, ecx); /* 0x2701B7AC: push ecx */ 8485 ecx = MEM32(esi + 0x54); /* 0x2701B7AD: mov ecx, dword ptr [esi + 0x54] */ 8486 RECOMP_ICALL(0x2701CAB0u); /* 0x2701B7B0: call 0x2701cab0 */ /* not lifted */ 8487 RECOMP_FLAGS_IN(); 8488 edx = ebp + (-0x14); /* 0x2701B7B5: lea edx, [ebp - 0x14] */ 8489 PUSH32(esp, edx); /* 0x2701B7B8: push edx */ 8490 ecx = esi; /* 0x2701B7B9: mov ecx, esi */ 8491 RECOMP_ICALL(0x270109B0u); /* 0x2701B7BB: call 0x270109b0 */ /* not lifted */ 8492 RECOMP_FLAGS_IN(); 8493 ecx = esi; /* 0x2701B7C0: mov ecx, esi */ 8494 RECOMP_ICALL(0x2701B860u); /* 0x2701B7C2: call 0x2701b860 */ /* not lifted */ 8495 RECOMP_FLAGS_IN(); 8496 ecx = MEM32(esi + 0x68); /* 0x2701B7C7: mov ecx, dword ptr [esi + 0x68] */ 8497 eax = MEM32(ebp + (-0x14)); /* 0x2701B7CA: mov eax, dword ptr [ebp - 0x14] */ 8498 /* cmp ecx, eax */ /* 0x2701B7CD: cmp ecx, eax */ 8499 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8501 _flag_k = FK_CMP; 8502 ecx = MEM32(ebp + (-0x10)); /* 0x2701B7CF: mov ecx, dword ptr [ebp - 0x10] */ 8503 edi = POP32_VAL(esp); /* 0x2701B7D2: pop edi */ 8504 if (CMP_NE(_flag_a, _flag_b)) goto L_2701B7DA; /* 0x2701B7D3: jne 0x2701b7da */ 8505 L_2701B7D5: 8506 /* cmp MEM32(esi + 0x6C), ecx */ /* 0x2701B7D5: cmp dword ptr [esi + 0x6c], ecx */ 8507 _flag_a = (uint32_t)(MEM32(esi + 0x6C)); _flag_b = (uint32_t)(ecx); 8508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8509 _flag_k = FK_CMP; 8510 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701B7EE; /* 0x2701B7D8: je 0x2701b7ee */ 8511 L_2701B7DA: 8512 MEM32(esi + 0x68) = eax; /* 0x2701B7DA: mov dword ptr [esi + 0x68], eax */ 8513 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x2701B7DD: mov al, byte ptr [ebp + 8] */ 8514 /* test LO8(eax), LO8(eax) */ /* 0x2701B7E0: test al, al */ 8515 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8516 _cf = 0; 8517 _flag_k = FK_NARROW(FK_TEST, 24); 8518 MEM32(esi + 0x6C) = ecx; /* 0x2701B7E2: mov dword ptr [esi + 0x6c], ecx */ 8519 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701B7EE; /* 0x2701B7E5: jne 0x2701b7ee */ 8520 L_2701B7E7: 8521 ecx = esi; /* 0x2701B7E7: mov ecx, esi */ 8522 RECOMP_ICALL(0x2701B800u); /* 0x2701B7E9: call 0x2701b800 */ /* not lifted */ 8523 RECOMP_FLAGS_IN(); 8524 L_2701B7EE: 8525 esi = POP32_VAL(esp); /* 0x2701B7EE: pop esi */ 8526 esp = ebp; /* 0x2701B7EF: mov esp, ebp */ 8527 ebp = POP32_VAL(esp); /* 0x2701B7F1: pop ebp */ 8528 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701B7F2: ret 4 */ 8529 RECOMP_REGS_OUT(); 8530 } 8531 8532 void sub_2701B800(void) { 8533 int _fpu_cmp = 0; 8534 uint32_t _cf = 0; 8535 int _df = 1; 8536 uint32_t _flag_k = FK_NONE; 8537 uint32_t _flag_a = 0, _flag_b = 0; 8538 uint32_t _itail_tgt = 0; 8539 RECOMP_REGS_LOCALS 8540 RECOMP_ENTER(0x2701B800u); 8541 8542 L_2701B800: 8543 /* test MEM32(ecx + 0x64), 0x00010000u */ /* 0x2701B800: test dword ptr [ecx + 0x64], 0x10000 */ 8544 _flag_a = (uint32_t)(MEM32(ecx + 0x64)); _flag_b = (uint32_t)(0x00010000u); 8545 _cf = 0; 8546 _flag_k = FK_TEST; 8547 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B82A; /* 0x2701B807: je 0x2701b82a */ 8548 L_2701B809: 8549 edx = MEM32(ecx + 0xB8); /* 0x2701B809: mov edx, dword ptr [ecx + 0xb8] */ 8550 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8551 eax = 0; /* 0x2701B80F: xor eax, eax */ 8552 _cf = 0; 8553 _flag_k = FK_TEST; 8554 SET_LO8(eax, MEM8(ecx + 0xB0)); /* 0x2701B811: mov al, byte ptr [ecx + 0xb0] */ 8555 PUSH32(esp, eax); /* 0x2701B817: push eax */ 8556 PUSH32(esp, edx); /* 0x2701B818: push edx */ 8557 eax = ecx + 0xA8; /* 0x2701B819: lea eax, [ecx + 0xa8] */ 8558 PUSH32(esp, eax); /* 0x2701B81F: push eax */ 8559 RECOMP_ICALL(MEM32(ecx + 0xB4)); /* 0x2701B820: call dword ptr [ecx + 0xb4] */ 8560 RECOMP_FLAGS_IN(); 8561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8563 esp = esp + 0xCu; /* 0x2701B826: add esp, 0xc */ 8564 _flag_k = FK_ADD; 8565 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701B829: ret */ 8566 L_2701B82A: 8567 eax = MEM32(ecx + 0x90); /* 0x2701B82A: mov eax, dword ptr [ecx + 0x90] */ 8568 /* test eax, eax */ /* 0x2701B830: test eax, eax */ 8569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8570 _cf = 0; 8571 _flag_k = FK_TEST; 8572 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B854; /* 0x2701B832: je 0x2701b854 */ 8573 L_2701B834: 8574 fp_push(*(double*)ADDR(ecx + 0xA8)); /* 0x2701B834: fld qword ptr [ecx + 0xa8] */ 8575 PUSH32(esp, ecx); /* 0x2701B83A: push ecx */ 8576 ecx = MEM32(ecx + 0x94); /* 0x2701B83B: mov ecx, dword ptr [ecx + 0x94] */ 8577 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x2701B841: fstp dword ptr [esp] */ 8578 PUSH32(esp, ecx); /* 0x2701B844: push ecx */ 8579 PUSH32(esp, eax); /* 0x2701B845: push eax */ 8580 RECOMP_ICALL(MEM32(0x270291D0)); /* 0x2701B846: call dword ptr [0x270291d0] */ 8581 RECOMP_FLAGS_IN(); 8582 ecx = eax; /* 0x2701B84C: mov ecx, eax */ 8583 RECOMP_ICALL(MEM32(0x270291E8)); /* 0x2701B84E: call dword ptr [0x270291e8] */ 8584 RECOMP_FLAGS_IN(); 8585 L_2701B854: 8586 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701B854: ret */ 8587 RECOMP_REGS_OUT(); 8588 } 8589 8590 void sub_2701B860(void) { 8591 int _fpu_cmp = 0; 8592 uint32_t _cf = 0; 8593 int _df = 1; 8594 uint32_t _flag_k = FK_NONE; 8595 uint32_t _flag_a = 0, _flag_b = 0; 8596 uint32_t _itail_tgt = 0; 8597 RECOMP_REGS_LOCALS 8598 RECOMP_ENTER(0x2701B860u); 8599 8600 L_2701B860: 8601 edx = MEM32(ecx + 0x54); /* 0x2701B860: mov edx, dword ptr [ecx + 0x54] */ 8602 SET_LO8(eax, 1); /* 0x2701B863: mov al, 1 */ 8603 MEM8(edx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2701B865: mov byte ptr [edx + 9], al */ 8604 ecx = MEM32(ecx + 0x58); /* 0x2701B868: mov ecx, dword ptr [ecx + 0x58] */ 8605 /* test ecx, ecx */ /* 0x2701B86B: test ecx, ecx */ 8606 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8607 _cf = 0; 8608 _flag_k = FK_TEST; 8609 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B872; /* 0x2701B86D: je 0x2701b872 */ 8610 L_2701B86F: 8611 MEM8(ecx + 0x9) = (uint8_t)(LO8(eax)); /* 0x2701B86F: mov byte ptr [ecx + 9], al */ 8612 L_2701B872: 8613 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701B872: ret */ 8614 RECOMP_REGS_OUT(); 8615 } 8616 8617 void sub_2701B880(void) { 8618 int _fpu_cmp = 0; 8619 uint32_t _cf = 0; 8620 int _df = 1; 8621 uint32_t _flag_k = FK_NONE; 8622 uint32_t _flag_a = 0, _flag_b = 0; 8623 uint32_t _itail_tgt = 0; 8624 RECOMP_REGS_LOCALS 8625 RECOMP_ENTER(0x2701B880u); 8626 8627 L_2701B880: 8628 edx = MEM32(ecx + 0xA0); /* 0x2701B880: mov edx, dword ptr [ecx + 0xa0] */ 8629 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8630 edx = edx + 1; /* 0x2701B886: inc edx */ 8631 _flag_k = FK_INC; 8632 PUSH32(esp, 0); /* 0x2701B887: push 0 */ 8633 MEM32(ecx + 0xA0) = edx; /* 0x2701B889: mov dword ptr [ecx + 0xa0], edx */ 8634 RECOMP_ICALL(0x2701B600u); /* 0x2701B88F: call 0x2701b600 */ /* not lifted */ 8635 RECOMP_FLAGS_IN(); 8636 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701B894: ret */ 8637 RECOMP_REGS_OUT(); 8638 } 8639 8640 void sub_2701B8A0(void) { 8641 int _fpu_cmp = 0; 8642 uint32_t _cf = 0; 8643 int _df = 1; 8644 uint32_t _flag_k = FK_NONE; 8645 uint32_t _flag_a = 0, _flag_b = 0; 8646 uint32_t _itail_tgt = 0; 8647 RECOMP_REGS_LOCALS 8648 RECOMP_ENTER(0x2701B8A0u); 8649 8650 L_2701B8A0: 8651 edx = MEM32(ecx + 0xA0); /* 0x2701B8A0: mov edx, dword ptr [ecx + 0xa0] */ 8652 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8653 edx = edx - 1; /* 0x2701B8A6: dec edx */ 8654 _flag_k = FK_DEC; 8655 PUSH32(esp, 0); /* 0x2701B8A7: push 0 */ 8656 MEM32(ecx + 0xA0) = edx; /* 0x2701B8A9: mov dword ptr [ecx + 0xa0], edx */ 8657 RECOMP_ICALL(0x2701B600u); /* 0x2701B8AF: call 0x2701b600 */ /* not lifted */ 8658 RECOMP_FLAGS_IN(); 8659 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701B8B4: ret */ 8660 RECOMP_REGS_OUT(); 8661 } 8662 8663 void sub_2701B8C0(void) { 8664 int _fpu_cmp = 0; 8665 uint32_t _cf = 0; 8666 int _df = 1; 8667 uint32_t _flag_k = FK_NONE; 8668 uint32_t _flag_a = 0, _flag_b = 0; 8669 uint32_t _itail_tgt = 0; 8670 RECOMP_REGS_LOCALS 8671 RECOMP_ENTER(0x2701B8C0u); 8672 8673 L_2701B8C0: 8674 PUSH32(esp, ebp); /* 0x2701B8C0: push ebp */ 8675 ebp = esp; /* 0x2701B8C1: mov ebp, esp */ 8676 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8678 esp = esp - 8; /* 0x2701B8C3: sub esp, 8 */ 8679 _flag_k = FK_CMP; 8680 PUSH32(esp, esi); /* 0x2701B8C6: push esi */ 8681 esi = ecx; /* 0x2701B8C7: mov esi, ecx */ 8682 ecx = MEM32(ebp + 0x8); /* 0x2701B8C9: mov ecx, dword ptr [ebp + 8] */ 8683 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8684 edx = 0; /* 0x2701B8CC: xor edx, edx */ 8685 _cf = 0; 8686 _flag_k = FK_TEST; 8687 /* cmp ecx, edx */ /* 0x2701B8CE: cmp ecx, edx */ 8688 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8690 _flag_k = FK_CMP; 8691 PUSH32(esp, edi); /* 0x2701B8D0: push edi */ 8692 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701B997; /* 0x2701B8D1: je 0x2701b997 */ 8693 L_2701B8D7: 8694 eax = MEM32(esi + 0x64); /* 0x2701B8D7: mov eax, dword ptr [esi + 0x64] */ 8695 /* test LO8(eax), 8 */ /* 0x2701B8DA: test al, 8 */ 8696 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 8697 _cf = 0; 8698 _flag_k = FK_NARROW(FK_TEST, 24); 8699 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701B8EA; /* 0x2701B8DC: jne 0x2701b8ea */ 8700 L_2701B8DE: 8701 ecx = MEM32(esi + 0x9C); /* 0x2701B8DE: mov ecx, dword ptr [esi + 0x9c] */ 8702 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x98)); 8703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8704 ecx = ecx - MEM32(esi + 0x98); /* 0x2701B8E4: sub ecx, dword ptr [esi + 0x98] */ 8705 _flag_k = FK_CMP; 8706 L_2701B8EA: 8707 MEM32(esi + 0x70) = ecx; /* 0x2701B8EA: mov dword ptr [esi + 0x70], ecx */ 8708 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8709 ecx = ecx - 1; /* 0x2701B8ED: dec ecx */ 8710 _flag_k = FK_DEC; 8711 /* test LO8(eax), 0x10u */ /* 0x2701B8EE: test al, 0x10 */ 8712 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 8713 _cf = 0; 8714 _flag_k = FK_NARROW(FK_TEST, 24); 8715 MEM32(ebp + 0x8) = ecx; /* 0x2701B8F0: mov dword ptr [ebp + 8], ecx */ 8716 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2701B8F3: fild dword ptr [ebp + 8] */ 8717 { double _v = fp_pop(); *(double*)ADDR(esi + 0x78) = _v; } /* 0x2701B8F6: fstp qword ptr [esi + 0x78] */ 8718 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B985; /* 0x2701B8F9: je 0x2701b985 */ 8719 L_2701B8FF: 8720 ecx = MEM32(esi + 0x54); /* 0x2701B8FF: mov ecx, dword ptr [esi + 0x54] */ 8721 MEM32(ebp + (-0x8)) = edx; /* 0x2701B902: mov dword ptr [ebp - 8], edx */ 8722 MEM32(ebp + (-0x4)) = edx; /* 0x2701B905: mov dword ptr [ebp - 4], edx */ 8723 PUSH32(esp, ebx); /* 0x2701B908: push ebx */ 8724 edx = ebp + (-0x8); /* 0x2701B909: lea edx, [ebp - 8] */ 8725 PUSH32(esp, edx); /* 0x2701B90C: push edx */ 8726 RECOMP_ICALL(0x2701CB60u); /* 0x2701B90D: call 0x2701cb60 */ /* not lifted */ 8727 RECOMP_FLAGS_IN(); 8728 ecx = MEM32(esi + 0x98); /* 0x2701B912: mov ecx, dword ptr [esi + 0x98] */ 8729 edi = MEM32(esi + 0x9C); /* 0x2701B918: mov edi, dword ptr [esi + 0x9c] */ 8730 ebx = MEM32(esi + 0x80); /* 0x2701B91E: mov ebx, dword ptr [esi + 0x80] */ 8731 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 8732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8733 edi = edi - ecx; /* 0x2701B924: sub edi, ecx */ 8734 _flag_k = FK_CMP; 8735 ecx = MEM32(esi + 0x70); /* 0x2701B926: mov ecx, dword ptr [esi + 0x70] */ 8736 /* cmp ecx, ebx */ /* 0x2701B929: cmp ecx, ebx */ 8737 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 8738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8739 _flag_k = FK_CMP; 8740 edx = edi; /* 0x2701B92B: mov edx, edi */ 8741 if (CMP_LE(_flag_a, _flag_b)) goto L_2701B94E; /* 0x2701B92D: jle 0x2701b94e */ 8742 L_2701B92F: 8743 eax = ebx; /* 0x2701B92F: mov eax, ebx */ 8744 eax = (uint32_t)((int32_t)eax * (int32_t)edx); /* 0x2701B931: imul eax, edx */ 8745 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701B934: cdq */ 8746 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x2701B935: idiv ecx */ 8747 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 8748 else { eax = 0; edx = 0; } } 8749 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 8750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8751 ecx = ecx - ebx; /* 0x2701B937: sub ecx, ebx */ 8752 _flag_k = FK_CMP; 8753 MEM32(ebp + 0x8) = ecx; /* 0x2701B939: mov dword ptr [ebp + 8], ecx */ 8754 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x2701B93C: fild dword ptr [ebp + 8] */ 8755 { double _v = fp_pop(); *(double*)ADDR(esi + 0x78) = _v; } /* 0x2701B93F: fstp qword ptr [esi + 0x78] */ 8756 edx = eax; /* 0x2701B942: mov edx, eax */ 8757 /* cmp edx, 8 */ /* 0x2701B944: cmp edx, 8 */ 8758 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 8759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8760 _flag_k = FK_CMP; 8761 if (CMP_GE(_flag_a, _flag_b)) goto L_2701B94E; /* 0x2701B947: jge 0x2701b94e */ 8762 L_2701B949: 8763 edx = 8; /* 0x2701B949: mov edx, 8 */ 8764 L_2701B94E: 8765 SET_LO8(eax, MEM8(esi + 0x64)); /* 0x2701B94E: mov al, byte ptr [esi + 0x64] */ 8766 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 8767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8768 edi = edi - edx; /* 0x2701B951: sub edi, edx */ 8769 _flag_k = FK_CMP; 8770 /* test LO8(eax), 1 */ /* 0x2701B953: test al, 1 */ 8771 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8772 _cf = 0; 8773 _flag_k = FK_NARROW(FK_TEST, 24); 8774 MEM32(esi + 0x84) = edi; /* 0x2701B955: mov dword ptr [esi + 0x84], edi */ 8775 ebx = POP32_VAL(esp); /* 0x2701B95B: pop ebx */ 8776 if (TEST_Z(_flag_a, _flag_b)) goto L_2701B963; /* 0x2701B95C: je 0x2701b963 */ 8777 L_2701B95E: 8778 MEM32(ebp + (-0x8)) = edx; /* 0x2701B95E: mov dword ptr [ebp - 8], edx */ 8779 goto L_2701B966; /* 0x2701B961: jmp 0x2701b966 */ 8780 L_2701B963: 8781 MEM32(ebp + (-0x4)) = edx; /* 0x2701B963: mov dword ptr [ebp - 4], edx */ 8782 L_2701B966: 8783 ecx = MEM32(esi + 0x54); /* 0x2701B966: mov ecx, dword ptr [esi + 0x54] */ 8784 eax = ebp + (-0x8); /* 0x2701B969: lea eax, [ebp - 8] */ 8785 PUSH32(esp, eax); /* 0x2701B96C: push eax */ 8786 RECOMP_ICALL(0x2701CB00u); /* 0x2701B96D: call 0x2701cb00 */ /* not lifted */ 8787 RECOMP_FLAGS_IN(); 8788 ecx = ebp + (-0x8); /* 0x2701B972: lea ecx, [ebp - 8] */ 8789 PUSH32(esp, ecx); /* 0x2701B975: push ecx */ 8790 ecx = esi; /* 0x2701B976: mov ecx, esi */ 8791 RECOMP_ICALL(0x27010A90u); /* 0x2701B978: call 0x27010a90 */ /* not lifted */ 8792 RECOMP_FLAGS_IN(); 8793 edi = POP32_VAL(esp); /* 0x2701B97D: pop edi */ 8794 esi = POP32_VAL(esp); /* 0x2701B97E: pop esi */ 8795 esp = ebp; /* 0x2701B97F: mov esp, ebp */ 8796 ebp = POP32_VAL(esp); /* 0x2701B981: pop ebp */ 8797 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701B982: ret 4 */ 8798 L_2701B985: 8799 edx = MEM32(esi + 0x9C); /* 0x2701B985: mov edx, dword ptr [esi + 0x9c] */ 8800 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x98)); 8801 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8802 edx = edx - MEM32(esi + 0x98); /* 0x2701B98B: sub edx, dword ptr [esi + 0x98] */ 8803 _flag_k = FK_CMP; 8804 MEM32(esi + 0x84) = edx; /* 0x2701B991: mov dword ptr [esi + 0x84], edx */ 8805 L_2701B997: 8806 edi = POP32_VAL(esp); /* 0x2701B997: pop edi */ 8807 esi = POP32_VAL(esp); /* 0x2701B998: pop esi */ 8808 esp = ebp; /* 0x2701B999: mov esp, ebp */ 8809 ebp = POP32_VAL(esp); /* 0x2701B99B: pop ebp */ 8810 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701B99C: ret 4 */ 8811 RECOMP_REGS_OUT(); 8812 } 8813 8814 void sub_2701B9A0(void) { 8815 int _fpu_cmp = 0; 8816 uint32_t _cf = 0; 8817 int _df = 1; 8818 uint32_t _flag_k = FK_NONE; 8819 uint32_t _flag_a = 0, _flag_b = 0; 8820 uint32_t _itail_tgt = 0; 8821 RECOMP_REGS_LOCALS 8822 RECOMP_ENTER(0x2701B9A0u); 8823 8824 L_2701B9A0: 8825 PUSH32(esp, esi); /* 0x2701B9A0: push esi */ 8826 esi = ecx; /* 0x2701B9A1: mov esi, ecx */ 8827 RECOMP_ICALL(0x270029E0u); /* 0x2701B9A3: call 0x270029e0 */ /* not lifted */ 8828 RECOMP_FLAGS_IN(); 8829 ecx = eax; /* 0x2701B9A8: mov ecx, eax */ 8830 RECOMP_ICALL(0x270104A0u); /* 0x2701B9AA: call 0x270104a0 */ /* not lifted */ 8831 RECOMP_FLAGS_IN(); 8832 MEM8(esi + 0xB0) = (uint8_t)(1); /* 0x2701B9AF: mov byte ptr [esi + 0xb0], 1 */ 8833 esi = POP32_VAL(esp); /* 0x2701B9B6: pop esi */ 8834 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701B9B7: ret */ 8835 RECOMP_REGS_OUT(); 8836 } 8837 8838 void sub_2701B9C0(void) { 8839 int _fpu_cmp = 0; 8840 uint32_t _cf = 0; 8841 int _df = 1; 8842 uint32_t _flag_k = FK_NONE; 8843 uint32_t _flag_a = 0, _flag_b = 0; 8844 uint32_t _itail_tgt = 0; 8845 RECOMP_REGS_LOCALS 8846 RECOMP_ENTER(0x2701B9C0u); 8847 8848 L_2701B9C0: 8849 PUSH32(esp, ebp); /* 0x2701B9C0: push ebp */ 8850 ebp = esp; /* 0x2701B9C1: mov ebp, esp */ 8851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8853 esp = esp - 0x10u; /* 0x2701B9C3: sub esp, 0x10 */ 8854 _flag_k = FK_CMP; 8855 PUSH32(esp, esi); /* 0x2701B9C6: push esi */ 8856 esi = ecx; /* 0x2701B9C7: mov esi, ecx */ 8857 eax = MEM32(esi + 0x3C); /* 0x2701B9C9: mov eax, dword ptr [esi + 0x3c] */ 8858 ecx = MEM32(esi + 0x40); /* 0x2701B9CC: mov ecx, dword ptr [esi + 0x40] */ 8859 edx = ebp + (-0x10); /* 0x2701B9CF: lea edx, [ebp - 0x10] */ 8860 PUSH32(esp, edx); /* 0x2701B9D2: push edx */ 8861 MEM32(ebp + (-0x8)) = eax; /* 0x2701B9D3: mov dword ptr [ebp - 8], eax */ 8862 MEM32(ebp + (-0x4)) = ecx; /* 0x2701B9D6: mov dword ptr [ebp - 4], ecx */ 8863 RECOMP_ICALL(0x27002480u); /* 0x2701B9D9: call 0x27002480 */ /* not lifted */ 8864 RECOMP_FLAGS_IN(); 8865 ecx = eax; /* 0x2701B9DE: mov ecx, eax */ 8866 RECOMP_ICALL(0x2700BF70u); /* 0x2701B9E0: call 0x2700bf70 */ /* not lifted */ 8867 RECOMP_FLAGS_IN(); 8868 eax = MEM32(esi + 0x64); /* 0x2701B9E5: mov eax, dword ptr [esi + 0x64] */ 8869 /* test LO8(eax), 0x10u */ /* 0x2701B9E8: test al, 0x10 */ 8870 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 8871 _cf = 0; 8872 _flag_k = FK_NARROW(FK_TEST, 24); 8873 if (TEST_Z(_flag_a, _flag_b)) goto L_2701BA67; /* 0x2701B9EA: je 0x2701ba67 */ 8874 L_2701B9EC: 8875 /* test LO8(eax), 1 */ /* 0x2701B9EC: test al, 1 */ 8876 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8877 _cf = 0; 8878 _flag_k = FK_NARROW(FK_TEST, 24); 8879 if (TEST_Z(_flag_a, _flag_b)) goto L_2701BA2F; /* 0x2701B9EE: je 0x2701ba2f */ 8880 L_2701B9F0: 8881 eax = MEM32(ebp + 0x8); /* 0x2701B9F0: mov eax, dword ptr [ebp + 8] */ 8882 edx = MEM32(ebp + (-0x10)); /* 0x2701B9F3: mov edx, dword ptr [ebp - 0x10] */ 8883 ecx = MEM32(esi + 0x3C); /* 0x2701B9F6: mov ecx, dword ptr [esi + 0x3c] */ 8884 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8886 eax = eax - edx; /* 0x2701B9F9: sub eax, edx */ 8887 _flag_k = FK_CMP; 8888 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8889 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8890 eax = eax + ecx; /* 0x2701B9FB: add eax, ecx */ 8891 _flag_k = FK_ADD; 8892 ecx = MEM32(esi + 0x98); /* 0x2701B9FD: mov ecx, dword ptr [esi + 0x98] */ 8893 /* cmp eax, ecx */ /* 0x2701BA03: cmp eax, ecx */ 8894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8896 _flag_k = FK_CMP; 8897 MEM32(ebp + (-0x8)) = eax; /* 0x2701BA05: mov dword ptr [ebp - 8], eax */ 8898 if (CMP_GE(_flag_a, _flag_b)) goto L_2701BA12; /* 0x2701BA08: jge 0x2701ba12 */ 8899 L_2701BA0A: 8900 MEM32(ebp + (-0x8)) = ecx; /* 0x2701BA0A: mov dword ptr [ebp - 8], ecx */ 8901 goto L_2701BAD8; /* 0x2701BA0D: jmp 0x2701bad8 */ 8902 L_2701BA12: 8903 edx = MEM32(esi + 0x44); /* 0x2701BA12: mov edx, dword ptr [esi + 0x44] */ 8904 ecx = MEM32(esi + 0x9C); /* 0x2701BA15: mov ecx, dword ptr [esi + 0x9c] */ 8905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8906 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8907 eax = eax + edx; /* 0x2701BA1B: add eax, edx */ 8908 _flag_k = FK_ADD; 8909 /* cmp eax, ecx */ /* 0x2701BA1D: cmp eax, ecx */ 8910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8912 _flag_k = FK_CMP; 8913 if (CMP_LE(_flag_a, _flag_b)) goto L_2701BAD8; /* 0x2701BA1F: jle 0x2701bad8 */ 8914 L_2701BA25: 8915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8917 ecx = ecx - edx; /* 0x2701BA25: sub ecx, edx */ 8918 _flag_k = FK_CMP; 8919 MEM32(ebp + (-0x8)) = ecx; /* 0x2701BA27: mov dword ptr [ebp - 8], ecx */ 8920 goto L_2701BAD8; /* 0x2701BA2A: jmp 0x2701bad8 */ 8921 L_2701BA2F: 8922 eax = MEM32(esi + 0x40); /* 0x2701BA2F: mov eax, dword ptr [esi + 0x40] */ 8923 edx = MEM32(ebp + (-0xC)); /* 0x2701BA32: mov edx, dword ptr [ebp - 0xc] */ 8924 ecx = MEM32(ebp + 0xC); /* 0x2701BA35: mov ecx, dword ptr [ebp + 0xc] */ 8925 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8927 eax = eax - edx; /* 0x2701BA38: sub eax, edx */ 8928 _flag_k = FK_CMP; 8929 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8930 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8931 eax = eax + ecx; /* 0x2701BA3A: add eax, ecx */ 8932 _flag_k = FK_ADD; 8933 ecx = MEM32(esi + 0x98); /* 0x2701BA3C: mov ecx, dword ptr [esi + 0x98] */ 8934 /* cmp eax, ecx */ /* 0x2701BA42: cmp eax, ecx */ 8935 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8937 _flag_k = FK_CMP; 8938 MEM32(ebp + (-0x4)) = eax; /* 0x2701BA44: mov dword ptr [ebp - 4], eax */ 8939 if (CMP_GE(_flag_a, _flag_b)) goto L_2701BA51; /* 0x2701BA47: jge 0x2701ba51 */ 8940 L_2701BA49: 8941 MEM32(ebp + (-0x4)) = ecx; /* 0x2701BA49: mov dword ptr [ebp - 4], ecx */ 8942 goto L_2701BAD8; /* 0x2701BA4C: jmp 0x2701bad8 */ 8943 L_2701BA51: 8944 edx = MEM32(esi + 0x48); /* 0x2701BA51: mov edx, dword ptr [esi + 0x48] */ 8945 ecx = MEM32(esi + 0x9C); /* 0x2701BA54: mov ecx, dword ptr [esi + 0x9c] */ 8946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8947 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8948 eax = eax + edx; /* 0x2701BA5A: add eax, edx */ 8949 _flag_k = FK_ADD; 8950 /* cmp eax, ecx */ /* 0x2701BA5C: cmp eax, ecx */ 8951 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8953 _flag_k = FK_CMP; 8954 if (CMP_LE(_flag_a, _flag_b)) goto L_2701BAD8; /* 0x2701BA5E: jle 0x2701bad8 */ 8955 L_2701BA60: 8956 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8958 ecx = ecx - edx; /* 0x2701BA60: sub ecx, edx */ 8959 _flag_k = FK_CMP; 8960 MEM32(ebp + (-0x4)) = ecx; /* 0x2701BA62: mov dword ptr [ebp - 4], ecx */ 8961 goto L_2701BAD8; /* 0x2701BA65: jmp 0x2701bad8 */ 8962 L_2701BA67: 8963 /* test LO8(eax), 1 */ /* 0x2701BA67: test al, 1 */ 8964 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8965 _cf = 0; 8966 _flag_k = FK_NARROW(FK_TEST, 24); 8967 if (TEST_Z(_flag_a, _flag_b)) goto L_2701BAA5; /* 0x2701BA69: je 0x2701baa5 */ 8968 L_2701BA6B: 8969 edx = MEM32(ebp + (-0x10)); /* 0x2701BA6B: mov edx, dword ptr [ebp - 0x10] */ 8970 ecx = MEM32(ebp + 0x8); /* 0x2701BA6E: mov ecx, dword ptr [ebp + 8] */ 8971 eax = MEM32(esi + 0x3C); /* 0x2701BA71: mov eax, dword ptr [esi + 0x3c] */ 8972 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8974 ecx = ecx - edx; /* 0x2701BA74: sub ecx, edx */ 8975 _flag_k = FK_CMP; 8976 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8978 ecx = ecx + eax; /* 0x2701BA76: add ecx, eax */ 8979 _flag_k = FK_ADD; 8980 eax = MEM32(esi + 0x44); /* 0x2701BA78: mov eax, dword ptr [esi + 0x44] */ 8981 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701BA7B: cdq */ 8982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8984 eax = eax - edx; /* 0x2701BA7C: sub eax, edx */ 8985 _flag_k = FK_CMP; 8986 edx = MEM32(esi + 0x98); /* 0x2701BA7E: mov edx, dword ptr [esi + 0x98] */ 8987 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701BA84: sar eax, 1 */ 8988 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8989 eax = (uint32_t)((int32_t)eax >> 1u); 8990 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8992 edx = edx - eax; /* 0x2701BA86: sub edx, eax */ 8993 _flag_k = FK_CMP; 8994 /* cmp ecx, edx */ /* 0x2701BA88: cmp ecx, edx */ 8995 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8996 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8997 _flag_k = FK_CMP; 8998 MEM32(ebp + (-0x8)) = ecx; /* 0x2701BA8A: mov dword ptr [ebp - 8], ecx */ 8999 if (CMP_GE(_flag_a, _flag_b)) goto L_2701BA94; /* 0x2701BA8D: jge 0x2701ba94 */ 9000 L_2701BA8F: 9001 MEM32(ebp + (-0x8)) = edx; /* 0x2701BA8F: mov dword ptr [ebp - 8], edx */ 9002 goto L_2701BAD8; /* 0x2701BA92: jmp 0x2701bad8 */ 9003 L_2701BA94: 9004 edx = MEM32(esi + 0x9C); /* 0x2701BA94: mov edx, dword ptr [esi + 0x9c] */ 9005 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9007 edx = edx - eax; /* 0x2701BA9A: sub edx, eax */ 9008 _flag_k = FK_CMP; 9009 /* cmp ecx, edx */ /* 0x2701BA9C: cmp ecx, edx */ 9010 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9012 _flag_k = FK_CMP; 9013 if (CMP_LE(_flag_a, _flag_b)) goto L_2701BAD8; /* 0x2701BA9E: jle 0x2701bad8 */ 9014 L_2701BAA0: 9015 MEM32(ebp + (-0x8)) = edx; /* 0x2701BAA0: mov dword ptr [ebp - 8], edx */ 9016 goto L_2701BAD8; /* 0x2701BAA3: jmp 0x2701bad8 */ 9017 L_2701BAA5: 9018 edx = MEM32(ebp + (-0xC)); /* 0x2701BAA5: mov edx, dword ptr [ebp - 0xc] */ 9019 ecx = MEM32(esi + 0x40); /* 0x2701BAA8: mov ecx, dword ptr [esi + 0x40] */ 9020 eax = MEM32(ebp + 0xC); /* 0x2701BAAB: mov eax, dword ptr [ebp + 0xc] */ 9021 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9023 ecx = ecx - edx; /* 0x2701BAAE: sub ecx, edx */ 9024 _flag_k = FK_CMP; 9025 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9026 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9027 ecx = ecx + eax; /* 0x2701BAB0: add ecx, eax */ 9028 _flag_k = FK_ADD; 9029 eax = MEM32(esi + 0x48); /* 0x2701BAB2: mov eax, dword ptr [esi + 0x48] */ 9030 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701BAB5: cdq */ 9031 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9033 eax = eax - edx; /* 0x2701BAB6: sub eax, edx */ 9034 _flag_k = FK_CMP; 9035 edx = MEM32(esi + 0x98); /* 0x2701BAB8: mov edx, dword ptr [esi + 0x98] */ 9036 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701BABE: sar eax, 1 */ 9037 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9038 eax = (uint32_t)((int32_t)eax >> 1u); 9039 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9041 edx = edx - eax; /* 0x2701BAC0: sub edx, eax */ 9042 _flag_k = FK_CMP; 9043 /* cmp ecx, edx */ /* 0x2701BAC2: cmp ecx, edx */ 9044 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9046 _flag_k = FK_CMP; 9047 MEM32(ebp + (-0x4)) = ecx; /* 0x2701BAC4: mov dword ptr [ebp - 4], ecx */ 9048 if (CMP_L(_flag_a, _flag_b)) goto L_2701BAD5; /* 0x2701BAC7: jl 0x2701bad5 */ 9049 L_2701BAC9: 9050 edx = MEM32(esi + 0x9C); /* 0x2701BAC9: mov edx, dword ptr [esi + 0x9c] */ 9051 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9053 edx = edx - eax; /* 0x2701BACF: sub edx, eax */ 9054 _flag_k = FK_CMP; 9055 /* cmp ecx, edx */ /* 0x2701BAD1: cmp ecx, edx */ 9056 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9058 _flag_k = FK_CMP; 9059 if (CMP_LE(_flag_a, _flag_b)) goto L_2701BAD8; /* 0x2701BAD3: jle 0x2701bad8 */ 9060 L_2701BAD5: 9061 MEM32(ebp + (-0x4)) = edx; /* 0x2701BAD5: mov dword ptr [ebp - 4], edx */ 9062 L_2701BAD8: 9063 ecx = ebp + (-0x8); /* 0x2701BAD8: lea ecx, [ebp - 8] */ 9064 PUSH32(esp, ecx); /* 0x2701BADB: push ecx */ 9065 ecx = MEM32(esi + 0x54); /* 0x2701BADC: mov ecx, dword ptr [esi + 0x54] */ 9066 RECOMP_ICALL(0x2701CAB0u); /* 0x2701BADF: call 0x2701cab0 */ /* not lifted */ 9067 RECOMP_FLAGS_IN(); 9068 /* test MEM8(esi + 0x64), 4 */ /* 0x2701BAE4: test byte ptr [esi + 0x64], 4 */ 9069 _flag_a = (uint32_t)(MEM8(esi + 0x64)) << 24; _flag_b = (uint32_t)(4) << 24; 9070 _cf = 0; 9071 _flag_k = FK_NARROW(FK_TEST, 24); 9072 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701BAF8; /* 0x2701BAE8: jne 0x2701baf8 */ 9073 L_2701BAEA: 9074 ecx = esi; /* 0x2701BAEA: mov ecx, esi */ 9075 RECOMP_ICALL(0x2701BB40u); /* 0x2701BAEC: call 0x2701bb40 */ /* not lifted */ 9076 RECOMP_FLAGS_IN(); 9077 ecx = esi; /* 0x2701BAF1: mov ecx, esi */ 9078 RECOMP_ICALL(0x2701B800u); /* 0x2701BAF3: call 0x2701b800 */ /* not lifted */ 9079 RECOMP_FLAGS_IN(); 9080 L_2701BAF8: 9081 ecx = esi; /* 0x2701BAF8: mov ecx, esi */ 9082 RECOMP_ICALL(0x2701B860u); /* 0x2701BAFA: call 0x2701b860 */ /* not lifted */ 9083 RECOMP_FLAGS_IN(); 9084 SET_LO8(eax, 1); /* 0x2701BAFF: mov al, 1 */ 9085 esi = POP32_VAL(esp); /* 0x2701BB01: pop esi */ 9086 esp = ebp; /* 0x2701BB02: mov esp, ebp */ 9087 ebp = POP32_VAL(esp); /* 0x2701BB04: pop ebp */ 9088 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2701BB05: ret 8 */ 9089 RECOMP_REGS_OUT(); 9090 } 9091 9092 void sub_2701BAD8(void) { 9093 int _fpu_cmp = 0; 9094 uint32_t _cf = 0; 9095 int _df = 1; 9096 uint32_t _flag_k = FK_NONE; 9097 uint32_t _flag_a = 0, _flag_b = 0; 9098 uint32_t _itail_tgt = 0; 9099 RECOMP_REGS_LOCALS 9100 RECOMP_ENTER(0x2701BAD8u); 9101 9102 L_2701BAD8: 9103 ecx = ebp + (-0x8); /* 0x2701BAD8: lea ecx, [ebp - 8] */ 9104 PUSH32(esp, ecx); /* 0x2701BADB: push ecx */ 9105 ecx = MEM32(esi + 0x54); /* 0x2701BADC: mov ecx, dword ptr [esi + 0x54] */ 9106 RECOMP_ICALL(0x2701CAB0u); /* 0x2701BADF: call 0x2701cab0 */ /* not lifted */ 9107 RECOMP_FLAGS_IN(); 9108 /* test MEM8(esi + 0x64), 4 */ /* 0x2701BAE4: test byte ptr [esi + 0x64], 4 */ 9109 _flag_a = (uint32_t)(MEM8(esi + 0x64)) << 24; _flag_b = (uint32_t)(4) << 24; 9110 _cf = 0; 9111 _flag_k = FK_NARROW(FK_TEST, 24); 9112 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701BAF8; /* 0x2701BAE8: jne 0x2701baf8 */ 9113 L_2701BAEA: 9114 ecx = esi; /* 0x2701BAEA: mov ecx, esi */ 9115 RECOMP_ICALL(0x2701BB40u); /* 0x2701BAEC: call 0x2701bb40 */ /* not lifted */ 9116 RECOMP_FLAGS_IN(); 9117 ecx = esi; /* 0x2701BAF1: mov ecx, esi */ 9118 RECOMP_ICALL(0x2701B800u); /* 0x2701BAF3: call 0x2701b800 */ /* not lifted */ 9119 RECOMP_FLAGS_IN(); 9120 L_2701BAF8: 9121 ecx = esi; /* 0x2701BAF8: mov ecx, esi */ 9122 RECOMP_ICALL(0x2701B860u); /* 0x2701BAFA: call 0x2701b860 */ /* not lifted */ 9123 RECOMP_FLAGS_IN(); 9124 SET_LO8(eax, 1); /* 0x2701BAFF: mov al, 1 */ 9125 esi = POP32_VAL(esp); /* 0x2701BB01: pop esi */ 9126 esp = ebp; /* 0x2701BB02: mov esp, ebp */ 9127 ebp = POP32_VAL(esp); /* 0x2701BB04: pop ebp */ 9128 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2701BB05: ret 8 */ 9129 RECOMP_REGS_OUT(); 9130 } 9131 9132 void sub_2701BB10(void) { 9133 int _fpu_cmp = 0; 9134 uint32_t _cf = 0; 9135 int _df = 1; 9136 uint32_t _flag_k = FK_NONE; 9137 uint32_t _flag_a = 0, _flag_b = 0; 9138 uint32_t _itail_tgt = 0; 9139 RECOMP_REGS_LOCALS 9140 RECOMP_ENTER(0x2701BB10u); 9141 9142 L_2701BB10: 9143 PUSH32(esp, esi); /* 0x2701BB10: push esi */ 9144 esi = ecx; /* 0x2701BB11: mov esi, ecx */ 9145 MEM8(esi + 0xB0) = (uint8_t)(0); /* 0x2701BB13: mov byte ptr [esi + 0xb0], 0 */ 9146 RECOMP_ICALL(0x270029E0u); /* 0x2701BB1A: call 0x270029e0 */ /* not lifted */ 9147 RECOMP_FLAGS_IN(); 9148 ecx = eax; /* 0x2701BB1F: mov ecx, eax */ 9149 RECOMP_ICALL(0x27010490u); /* 0x2701BB21: call 0x27010490 */ /* not lifted */ 9150 RECOMP_FLAGS_IN(); 9151 ecx = esi; /* 0x2701BB26: mov ecx, esi */ 9152 RECOMP_ICALL(0x2701BB40u); /* 0x2701BB28: call 0x2701bb40 */ /* not lifted */ 9153 RECOMP_FLAGS_IN(); 9154 PUSH32(esp, 0); /* 0x2701BB2D: push 0 */ 9155 ecx = esi; /* 0x2701BB2F: mov ecx, esi */ 9156 RECOMP_ICALL(0x2701B600u); /* 0x2701BB31: call 0x2701b600 */ /* not lifted */ 9157 RECOMP_FLAGS_IN(); 9158 esi = POP32_VAL(esp); /* 0x2701BB36: pop esi */ 9159 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2701BB37: ret 8 */ 9160 RECOMP_REGS_OUT(); 9161 } 9162 9163 void sub_2701BB40(void) { 9164 int _fpu_cmp = 0; 9165 uint32_t _cf = 0; 9166 int _df = 1; 9167 uint32_t _flag_k = FK_NONE; 9168 uint32_t _flag_a = 0, _flag_b = 0; 9169 uint32_t _itail_tgt = 0; 9170 RECOMP_REGS_LOCALS 9171 RECOMP_ENTER(0x2701BB40u); 9172 9173 L_2701BB40: 9174 PUSH32(esp, ebp); /* 0x2701BB40: push ebp */ 9175 ebp = esp; /* 0x2701BB41: mov ebp, esp */ 9176 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9178 esp = esp - 0xCu; /* 0x2701BB43: sub esp, 0xc */ 9179 _flag_k = FK_CMP; 9180 PUSH32(esp, esi); /* 0x2701BB46: push esi */ 9181 esi = ecx; /* 0x2701BB47: mov esi, ecx */ 9182 ecx = MEM32(esi + 0x54); /* 0x2701BB49: mov ecx, dword ptr [esi + 0x54] */ 9183 eax = ebp + (-0xC); /* 0x2701BB4C: lea eax, [ebp - 0xc] */ 9184 PUSH32(esp, eax); /* 0x2701BB4F: push eax */ 9185 RECOMP_ICALL(0x2701CBA0u); /* 0x2701BB50: call 0x2701cba0 */ /* not lifted */ 9186 RECOMP_FLAGS_IN(); 9187 eax = MEM32(esi + 0x64); /* 0x2701BB55: mov eax, dword ptr [esi + 0x64] */ 9188 /* test LO8(eax), 0x10u */ /* 0x2701BB58: test al, 0x10 */ 9189 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 9190 _cf = 0; 9191 _flag_k = FK_NARROW(FK_TEST, 24); 9192 if (TEST_Z(_flag_a, _flag_b)) goto L_2701BB82; /* 0x2701BB5A: je 0x2701bb82 */ 9193 L_2701BB5C: 9194 /* test LO8(eax), 1 */ /* 0x2701BB5C: test al, 1 */ 9195 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9196 _cf = 0; 9197 _flag_k = FK_NARROW(FK_TEST, 24); 9198 if (TEST_Z(_flag_a, _flag_b)) goto L_2701BB71; /* 0x2701BB5E: je 0x2701bb71 */ 9199 L_2701BB60: 9200 ecx = MEM32(ebp + (-0xC)); /* 0x2701BB60: mov ecx, dword ptr [ebp - 0xc] */ 9201 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x98)); 9202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9203 ecx = ecx - MEM32(esi + 0x98); /* 0x2701BB63: sub ecx, dword ptr [esi + 0x98] */ 9204 _flag_k = FK_CMP; 9205 MEM32(ebp + (-0x4)) = ecx; /* 0x2701BB69: mov dword ptr [ebp - 4], ecx */ 9206 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701BB6C: fild dword ptr [ebp - 4] */ 9207 goto L_2701BBBE; /* 0x2701BB6F: jmp 0x2701bbbe */ 9208 L_2701BB71: 9209 edx = MEM32(ebp + (-0x8)); /* 0x2701BB71: mov edx, dword ptr [ebp - 8] */ 9210 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x98)); 9211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9212 edx = edx - MEM32(esi + 0x98); /* 0x2701BB74: sub edx, dword ptr [esi + 0x98] */ 9213 _flag_k = FK_CMP; 9214 MEM32(ebp + (-0x4)) = edx; /* 0x2701BB7A: mov dword ptr [ebp - 4], edx */ 9215 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701BB7D: fild dword ptr [ebp - 4] */ 9216 goto L_2701BBBE; /* 0x2701BB80: jmp 0x2701bbbe */ 9217 L_2701BB82: 9218 /* test LO8(eax), 1 */ /* 0x2701BB82: test al, 1 */ 9219 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9220 _cf = 0; 9221 _flag_k = FK_NARROW(FK_TEST, 24); 9222 if (TEST_Z(_flag_a, _flag_b)) goto L_2701BBA3; /* 0x2701BB84: je 0x2701bba3 */ 9223 L_2701BB86: 9224 eax = MEM32(esi + 0x44); /* 0x2701BB86: mov eax, dword ptr [esi + 0x44] */ 9225 ecx = MEM32(ebp + (-0xC)); /* 0x2701BB89: mov ecx, dword ptr [ebp - 0xc] */ 9226 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701BB8C: cdq */ 9227 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9229 eax = eax - edx; /* 0x2701BB8D: sub eax, edx */ 9230 _flag_k = FK_CMP; 9231 edx = MEM32(esi + 0x98); /* 0x2701BB8F: mov edx, dword ptr [esi + 0x98] */ 9232 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701BB95: sar eax, 1 */ 9233 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9234 eax = (uint32_t)((int32_t)eax >> 1u); 9235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9237 eax = eax - edx; /* 0x2701BB97: sub eax, edx */ 9238 _flag_k = FK_CMP; 9239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9241 eax = eax + ecx; /* 0x2701BB99: add eax, ecx */ 9242 _flag_k = FK_ADD; 9243 MEM32(ebp + (-0x4)) = eax; /* 0x2701BB9B: mov dword ptr [ebp - 4], eax */ 9244 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701BB9E: fild dword ptr [ebp - 4] */ 9245 goto L_2701BBBE; /* 0x2701BBA1: jmp 0x2701bbbe */ 9246 L_2701BBA3: 9247 eax = MEM32(esi + 0x48); /* 0x2701BBA3: mov eax, dword ptr [esi + 0x48] */ 9248 ecx = MEM32(ebp + (-0x8)); /* 0x2701BBA6: mov ecx, dword ptr [ebp - 8] */ 9249 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x2701BBA9: cdq */ 9250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9252 eax = eax - edx; /* 0x2701BBAA: sub eax, edx */ 9253 _flag_k = FK_CMP; 9254 edx = MEM32(esi + 0x98); /* 0x2701BBAC: mov edx, dword ptr [esi + 0x98] */ 9255 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x2701BBB2: sar eax, 1 */ 9256 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9257 eax = (uint32_t)((int32_t)eax >> 1u); 9258 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9260 eax = eax - edx; /* 0x2701BBB4: sub eax, edx */ 9261 _flag_k = FK_CMP; 9262 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9263 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9264 eax = eax + ecx; /* 0x2701BBB6: add eax, ecx */ 9265 _flag_k = FK_ADD; 9266 MEM32(ebp + (-0x4)) = eax; /* 0x2701BBB8: mov dword ptr [ebp - 4], eax */ 9267 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701BBBB: fild dword ptr [ebp - 4] */ 9268 L_2701BBBE: 9269 _st[0] *= *(double*)ADDR(esi + 0x78); /* 0x2701BBBE: fmul qword ptr [esi + 0x78] */ 9270 _st[0] = _st[0] / (double)(int32_t)MEM32(esi + 0x84); /* 0x2701BBC1: fidiv dword ptr [esi + 0x84] */ 9271 fp_push(_st[0]); /* 0x2701BBC7: fld st(0) */ 9272 RECOMP_ICALL(0x27026ED2u); /* 0x2701BBC9: call 0x27026ed2 */ /* not lifted */ 9273 RECOMP_FLAGS_IN(); 9274 ecx = eax; /* 0x2701BBCE: mov ecx, eax */ 9275 MEM32(ebp + (-0x4)) = ecx; /* 0x2701BBD0: mov dword ptr [ebp - 4], ecx */ 9276 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2701BBD3: fild dword ptr [ebp - 4] */ 9277 MEM32(esi + 0xA0) = ecx; /* 0x2701BBD6: mov dword ptr [esi + 0xa0], ecx */ 9278 _st[0] -= _st[1]; /* 0x2701BBDC: fsub st(1) */ 9279 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x27034544)); /* 0x2701BBDE: fcomp dword ptr [0x27034544] */ 9280 fp_pop(); 9281 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2701BBE4: fnstsw ax */ 9282 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2701BBE6: fstp st(0) */ 9283 /* test HI8(eax), 1 */ /* 0x2701BBE8: test ah, 1 */ 9284 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9285 _cf = 0; 9286 _flag_k = FK_NARROW(FK_TEST, 24); 9287 if (TEST_Z(_flag_a, _flag_b)) goto L_2701BBF4; /* 0x2701BBEB: je 0x2701bbf4 */ 9288 L_2701BBED: 9289 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9290 ecx = ecx + 1; /* 0x2701BBED: inc ecx */ 9291 _flag_k = FK_INC; 9292 MEM32(esi + 0xA0) = ecx; /* 0x2701BBEE: mov dword ptr [esi + 0xa0], ecx */ 9293 L_2701BBF4: 9294 ecx = esi; /* 0x2701BBF4: mov ecx, esi */ 9295 RECOMP_ICALL(0x2701BC00u); /* 0x2701BBF6: call 0x2701bc00 */ /* not lifted */ 9296 RECOMP_FLAGS_IN(); 9297 esi = POP32_VAL(esp); /* 0x2701BBFB: pop esi */ 9298 esp = ebp; /* 0x2701BBFC: mov esp, ebp */ 9299 ebp = POP32_VAL(esp); /* 0x2701BBFE: pop ebp */ 9300 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701BBFF: ret */ 9301 RECOMP_REGS_OUT(); 9302 } 9303 9304 void sub_2701BC00(void) { 9305 int _fpu_cmp = 0; 9306 uint32_t _cf = 0; 9307 int _df = 1; 9308 uint32_t _flag_k = FK_NONE; 9309 uint32_t _flag_a = 0, _flag_b = 0; 9310 uint32_t _itail_tgt = 0; 9311 RECOMP_REGS_LOCALS 9312 RECOMP_ENTER(0x2701BC00u); 9313 9314 L_2701BC00: 9315 eax = MEM32(ecx + 0xA0); /* 0x2701BC00: mov eax, dword ptr [ecx + 0xa0] */ 9316 /* test eax, eax */ /* 0x2701BC06: test eax, eax */ 9317 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9318 _cf = 0; 9319 _flag_k = FK_TEST; 9320 if (TEST_NS(_flag_a, _flag_b)) goto L_2701BC14; /* 0x2701BC08: jge 0x2701bc14 */ 9321 L_2701BC0A: 9322 MEM32(ecx + 0xA0) = 0; /* 0x2701BC0A: mov dword ptr [ecx + 0xa0], 0 */ 9323 L_2701BC14: 9324 /* test MEM8(ecx + 0x64), 0x10u */ /* 0x2701BC14: test byte ptr [ecx + 0x64], 0x10 */ 9325 _flag_a = (uint32_t)(MEM8(ecx + 0x64)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 9326 _cf = 0; 9327 _flag_k = FK_NARROW(FK_TEST, 24); 9328 eax = MEM32(ecx + 0x70); /* 0x2701BC18: mov eax, dword ptr [ecx + 0x70] */ 9329 if (TEST_Z(_flag_a, _flag_b)) goto L_2701BC4D; /* 0x2701BC1B: je 0x2701bc4d */ 9330 L_2701BC1D: 9331 edx = MEM32(ecx + 0x80); /* 0x2701BC1D: mov edx, dword ptr [ecx + 0x80] */ 9332 /* cmp eax, edx */ /* 0x2701BC23: cmp eax, edx */ 9333 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9335 _flag_k = FK_CMP; 9336 if (CMP_LE(_flag_a, _flag_b)) goto L_2701BC33; /* 0x2701BC25: jle 0x2701bc33 */ 9337 L_2701BC27: 9338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9340 eax = eax - edx; /* 0x2701BC27: sub eax, edx */ 9341 _flag_k = FK_CMP; 9342 /* cmp MEM32(ecx + 0xA0), eax */ /* 0x2701BC29: cmp dword ptr [ecx + 0xa0], eax */ 9343 _flag_a = (uint32_t)(MEM32(ecx + 0xA0)); _flag_b = (uint32_t)(eax); 9344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9345 _flag_k = FK_CMP; 9346 if (CMP_LE(_flag_a, _flag_b)) goto L_2701BC5B; /* 0x2701BC2F: jle 0x2701bc5b */ 9347 L_2701BC31: 9348 goto L_2701BC55; /* 0x2701BC31: jmp 0x2701bc55 */ 9349 L_2701BC33: 9350 MEM32(ecx + 0xA0) = 0; /* 0x2701BC33: mov dword ptr [ecx + 0xa0], 0 */ 9351 fp_push((double)(int32_t)MEM32(ecx + 0xA0)); /* 0x2701BC3D: fild dword ptr [ecx + 0xa0] */ 9352 _st[0] /= *(double*)ADDR(ecx + 0x78); /* 0x2701BC43: fdiv qword ptr [ecx + 0x78] */ 9353 { double _v = fp_pop(); *(double*)ADDR(ecx + 0xA8) = _v; } /* 0x2701BC46: fstp qword ptr [ecx + 0xa8] */ 9354 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701BC4C: ret */ 9355 L_2701BC4D: 9356 /* cmp MEM32(ecx + 0xA0), eax */ /* 0x2701BC4D: cmp dword ptr [ecx + 0xa0], eax */ 9357 _flag_a = (uint32_t)(MEM32(ecx + 0xA0)); _flag_b = (uint32_t)(eax); 9358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9359 _flag_k = FK_CMP; 9360 if (CMP_LE(_flag_a, _flag_b)) goto L_2701BC5B; /* 0x2701BC53: jle 0x2701bc5b */ 9361 L_2701BC55: 9362 MEM32(ecx + 0xA0) = eax; /* 0x2701BC55: mov dword ptr [ecx + 0xa0], eax */ 9363 L_2701BC5B: 9364 fp_push((double)(int32_t)MEM32(ecx + 0xA0)); /* 0x2701BC5B: fild dword ptr [ecx + 0xa0] */ 9365 _st[0] /= *(double*)ADDR(ecx + 0x78); /* 0x2701BC61: fdiv qword ptr [ecx + 0x78] */ 9366 { double _v = fp_pop(); *(double*)ADDR(ecx + 0xA8) = _v; } /* 0x2701BC64: fstp qword ptr [ecx + 0xa8] */ 9367 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701BC6A: ret */ 9368 RECOMP_REGS_OUT(); 9369 } 9370 9371 void sub_2701BC70(void) { 9372 int _fpu_cmp = 0; 9373 uint32_t _cf = 0; 9374 int _df = 1; 9375 uint32_t _flag_k = FK_NONE; 9376 uint32_t _flag_a = 0, _flag_b = 0; 9377 uint32_t _itail_tgt = 0; 9378 RECOMP_REGS_LOCALS 9379 RECOMP_ENTER(0x2701BC70u); 9380 9381 L_2701BC70: 9382 PUSH32(esp, ebp); /* 0x2701BC70: push ebp */ 9383 ebp = esp; /* 0x2701BC71: mov ebp, esp */ 9384 PUSH32(esp, esi); /* 0x2701BC73: push esi */ 9385 PUSH32(esp, edi); /* 0x2701BC74: push edi */ 9386 edi = MEM32(ebp + 0x8); /* 0x2701BC75: mov edi, dword ptr [ebp + 8] */ 9387 esi = ecx; /* 0x2701BC78: mov esi, ecx */ 9388 ecx = MEM32(esi + 0x5C); /* 0x2701BC7A: mov ecx, dword ptr [esi + 0x5c] */ 9389 PUSH32(esp, edi); /* 0x2701BC7D: push edi */ 9390 RECOMP_ICALL(0x27015E90u); /* 0x2701BC7E: call 0x27015e90 */ /* not lifted */ 9391 RECOMP_FLAGS_IN(); 9392 ecx = MEM32(esi + 0x60); /* 0x2701BC83: mov ecx, dword ptr [esi + 0x60] */ 9393 PUSH32(esp, edi); /* 0x2701BC86: push edi */ 9394 RECOMP_ICALL(0x27015E90u); /* 0x2701BC87: call 0x27015e90 */ /* not lifted */ 9395 RECOMP_FLAGS_IN(); 9396 edi = POP32_VAL(esp); /* 0x2701BC8C: pop edi */ 9397 esi = POP32_VAL(esp); /* 0x2701BC8D: pop esi */ 9398 ebp = POP32_VAL(esp); /* 0x2701BC8E: pop ebp */ 9399 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701BC8F: ret 4 */ 9400 RECOMP_REGS_OUT(); 9401 } 9402 9403 void sub_2701BCA0(void) { 9404 int _fpu_cmp = 0; 9405 uint32_t _cf = 0; 9406 int _df = 1; 9407 uint32_t _flag_k = FK_NONE; 9408 uint32_t _flag_a = 0, _flag_b = 0; 9409 uint32_t _itail_tgt = 0; 9410 RECOMP_REGS_LOCALS 9411 RECOMP_ENTER(0x2701BCA0u); 9412 9413 L_2701BCA0: 9414 edx = MEM32(ecx + 0x5C); /* 0x2701BCA0: mov edx, dword ptr [ecx + 0x5c] */ 9415 SET_LO8(eax, 1); /* 0x2701BCA3: mov al, 1 */ 9416 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701BCA5: mov byte ptr [edx + 8], al */ 9417 edx = MEM32(ecx + 0x60); /* 0x2701BCA8: mov edx, dword ptr [ecx + 0x60] */ 9418 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701BCAB: mov byte ptr [edx + 8], al */ 9419 edx = MEM32(ecx + 0x54); /* 0x2701BCAE: mov edx, dword ptr [ecx + 0x54] */ 9420 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701BCB1: mov byte ptr [ecx + 8], al */ 9421 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701BCB4: mov byte ptr [edx + 8], al */ 9422 ecx = MEM32(ecx + 0x58); /* 0x2701BCB7: mov ecx, dword ptr [ecx + 0x58] */ 9423 /* test ecx, ecx */ /* 0x2701BCBA: test ecx, ecx */ 9424 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9425 _cf = 0; 9426 _flag_k = FK_TEST; 9427 if (TEST_Z(_flag_a, _flag_b)) goto L_2701BCC1; /* 0x2701BCBC: je 0x2701bcc1 */ 9428 L_2701BCBE: 9429 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701BCBE: mov byte ptr [ecx + 8], al */ 9430 L_2701BCC1: 9431 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701BCC1: ret */ 9432 RECOMP_REGS_OUT(); 9433 } 9434 9435 void sub_2701BCD0(void) { 9436 int _fpu_cmp = 0; 9437 uint32_t _cf = 0; 9438 int _df = 1; 9439 uint32_t _flag_k = FK_NONE; 9440 uint32_t _flag_a = 0, _flag_b = 0; 9441 uint32_t _itail_tgt = 0; 9442 RECOMP_REGS_LOCALS 9443 RECOMP_ENTER(0x2701BCD0u); 9444 9445 L_2701BCD0: 9446 edx = MEM32(ecx + 0x5C); /* 0x2701BCD0: mov edx, dword ptr [ecx + 0x5c] */ 9447 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9448 eax = 0; /* 0x2701BCD3: xor eax, eax */ 9449 _cf = 0; 9450 _flag_k = FK_TEST; 9451 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701BCD5: mov byte ptr [edx + 8], al */ 9452 edx = MEM32(ecx + 0x60); /* 0x2701BCD8: mov edx, dword ptr [ecx + 0x60] */ 9453 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701BCDB: mov byte ptr [edx + 8], al */ 9454 edx = MEM32(ecx + 0x54); /* 0x2701BCDE: mov edx, dword ptr [ecx + 0x54] */ 9455 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701BCE1: mov byte ptr [ecx + 8], al */ 9456 MEM8(edx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701BCE4: mov byte ptr [edx + 8], al */ 9457 ecx = MEM32(ecx + 0x58); /* 0x2701BCE7: mov ecx, dword ptr [ecx + 0x58] */ 9458 /* cmp ecx, eax */ /* 0x2701BCEA: cmp ecx, eax */ 9459 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9461 _flag_k = FK_CMP; 9462 if (CMP_EQ(_flag_a, _flag_b)) goto L_2701BCF1; /* 0x2701BCEC: je 0x2701bcf1 */ 9463 L_2701BCEE: 9464 MEM8(ecx + 0x8) = (uint8_t)(LO8(eax)); /* 0x2701BCEE: mov byte ptr [ecx + 8], al */ 9465 L_2701BCF1: 9466 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701BCF1: ret */ 9467 RECOMP_REGS_OUT(); 9468 } 9469 9470 void sub_2701BD00(void) { 9471 int _fpu_cmp = 0; 9472 uint32_t _cf = 0; 9473 int _df = 1; 9474 uint32_t _flag_k = FK_NONE; 9475 uint32_t _flag_a = 0, _flag_b = 0; 9476 uint32_t _itail_tgt = 0; 9477 RECOMP_REGS_LOCALS 9478 RECOMP_ENTER(0x2701BD00u); 9479 9480 L_2701BD00: 9481 PUSH32(esp, ebp); /* 0x2701BD00: push ebp */ 9482 ebp = esp; /* 0x2701BD01: mov ebp, esp */ 9483 PUSH32(esp, esi); /* 0x2701BD03: push esi */ 9484 esi = ecx; /* 0x2701BD04: mov esi, ecx */ 9485 SET_LO8(eax, MEM8(esi + 0xB0)); /* 0x2701BD06: mov al, byte ptr [esi + 0xb0] */ 9486 /* test LO8(eax), LO8(eax) */ /* 0x2701BD0C: test al, al */ 9487 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9488 _cf = 0; 9489 _flag_k = FK_NARROW(FK_TEST, 24); 9490 if (TEST_NZ(_flag_a, _flag_b)) goto L_2701BDBD; /* 0x2701BD0E: jne 0x2701bdbd */ 9491 L_2701BD14: 9492 ecx = MEM32(esi + 0x58); /* 0x2701BD14: mov ecx, dword ptr [esi + 0x58] */ 9493 /* test ecx, ecx */ /* 0x2701BD17: test ecx, ecx */ 9494 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9495 _cf = 0; 9496 _flag_k = FK_TEST; 9497 PUSH32(esp, edi); /* 0x2701BD19: push edi */ 9498 edi = MEM32(ebp + 0x8); /* 0x2701BD1A: mov edi, dword ptr [ebp + 8] */ 9499 if (TEST_Z(_flag_a, _flag_b)) goto L_2701BD58; /* 0x2701BD1D: je 0x2701bd58 */ 9500 L_2701BD1F: 9501 SET_LO8(eax, MEM8(esi + 0x64)); /* 0x2701BD1F: mov al, byte ptr [esi + 0x64] */ 9502 edx = MEM32(edi); /* 0x2701BD22: mov edx, dword ptr [edi] */ 9503 /* test LO8(eax), 1 */ /* 0x2701BD24: test al, 1 */ 9504 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9505 _cf = 0; 9506 _flag_k = FK_NARROW(FK_TEST, 24); 9507 eax = esi + 0x88; /* 0x2701BD26: lea eax, [esi + 0x88] */ 9508 if (TEST_Z(_flag_a, _flag_b)) goto L_2701BD3E; /* 0x2701BD2C: je 0x2701bd3e */ 9509 L_2701BD2E: 9510 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x98)); 9511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9512 edx = edx - MEM32(esi + 0x98); /* 0x2701BD2E: sub edx, dword ptr [esi + 0x98] */ 9513 _flag_k = FK_CMP; 9514 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edx); 9515 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9516 MEM32(eax) = MEM32(eax) + edx; /* 0x2701BD34: add dword ptr [eax], edx */ 9517 _flag_k = FK_ADD; 9518 edx = MEM32(edi + 0x4); /* 0x2701BD36: mov edx, dword ptr [edi + 4] */ 9519 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x40)); 9520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9521 edx = edx - MEM32(esi + 0x40); /* 0x2701BD39: sub edx, dword ptr [esi + 0x40] */ 9522 _flag_k = FK_CMP; 9523 goto L_2701BD4C; /* 0x2701BD3C: jmp 0x2701bd4c */ 9524 L_2701BD3E: 9525 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x3C)); 9526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9527 edx = edx - MEM32(esi + 0x3C); /* 0x2701BD3E: sub edx, dword ptr [esi + 0x3c] */ 9528 _flag_k = FK_CMP; 9529 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edx); 9530 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9531 MEM32(eax) = MEM32(eax) + edx; /* 0x2701BD41: add dword ptr [eax], edx */ 9532 _flag_k = FK_ADD; 9533 edx = MEM32(edi + 0x4); /* 0x2701BD43: mov edx, dword ptr [edi + 4] */ 9534 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x98)); 9535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9536 edx = edx - MEM32(esi + 0x98); /* 0x2701BD46: sub edx, dword ptr [esi + 0x98] */ 9537 _flag_k = FK_CMP; 9538 L_2701BD4C: 9539 _flag_a = (uint32_t)(MEM32(esi + 0x8C)); _flag_b = (uint32_t)(edx); 9540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9541 MEM32(esi + 0x8C) = MEM32(esi + 0x8C) + edx; /* 0x2701BD4C: add dword ptr [esi + 0x8c], edx */ 9542 _flag_k = FK_ADD; 9543 PUSH32(esp, eax); /* 0x2701BD52: push eax */ 9544 RECOMP_ICALL(0x2701CAB0u); /* 0x2701BD53: call 0x2701cab0 */ /* not lifted */ 9545 RECOMP_FLAGS_IN(); 9546 L_2701BD58: 9547 /* test MEM8(esi + 0x64), 1 */ /* 0x2701BD58: test byte ptr [esi + 0x64], 1 */ 9548 _flag_a = (uint32_t)(MEM8(esi + 0x64)) << 24; _flag_b = (uint32_t)(1) << 24; 9549 _cf = 0; 9550 _flag_k = FK_NARROW(FK_TEST, 24); 9551 if (TEST_Z(_flag_a, _flag_b)) goto L_2701BD80; /* 0x2701BD5C: je 0x2701bd80 */ 9552 L_2701BD5E: 9553 eax = MEM32(edi); /* 0x2701BD5E: mov eax, dword ptr [edi] */ 9554 edx = MEM32(esi + 0x98); /* 0x2701BD60: mov edx, dword ptr [esi + 0x98] */ 9555 ecx = MEM32(esi + 0x9C); /* 0x2701BD66: mov ecx, dword ptr [esi + 0x9c] */ 9556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9558 eax = eax - edx; /* 0x2701BD6C: sub eax, edx */ 9559 _flag_k = FK_CMP; 9560 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9561 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9562 ecx = ecx + eax; /* 0x2701BD6E: add ecx, eax */ 9563 _flag_k = FK_ADD; 9564 MEM32(esi + 0x9C) = ecx; /* 0x2701BD70: mov dword ptr [esi + 0x9c], ecx */ 9565 ecx = MEM32(edi); /* 0x2701BD76: mov ecx, dword ptr [edi] */ 9566 MEM32(esi + 0x98) = ecx; /* 0x2701BD78: mov dword ptr [esi + 0x98], ecx */ 9567 goto L_2701BDA2; /* 0x2701BD7E: jmp 0x2701bda2 */ 9568 L_2701BD80: 9569 edx = MEM32(edi + 0x4); /* 0x2701BD80: mov edx, dword ptr [edi + 4] */ 9570 ecx = MEM32(esi + 0x98); /* 0x2701BD83: mov ecx, dword ptr [esi + 0x98] */ 9571 eax = MEM32(esi + 0x9C); /* 0x2701BD89: mov eax, dword ptr [esi + 0x9c] */ 9572 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9574 edx = edx - ecx; /* 0x2701BD8F: sub edx, ecx */ 9575 _flag_k = FK_CMP; 9576 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9577 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9578 eax = eax + edx; /* 0x2701BD91: add eax, edx */ 9579 _flag_k = FK_ADD; 9580 MEM32(esi + 0x9C) = eax; /* 0x2701BD93: mov dword ptr [esi + 0x9c], eax */ 9581 eax = MEM32(edi + 0x4); /* 0x2701BD99: mov eax, dword ptr [edi + 4] */ 9582 MEM32(esi + 0x98) = eax; /* 0x2701BD9C: mov dword ptr [esi + 0x98], eax */ 9583 L_2701BDA2: 9584 PUSH32(esp, edi); /* 0x2701BDA2: push edi */ 9585 ecx = esi; /* 0x2701BDA3: mov ecx, esi */ 9586 RECOMP_ICALL(0x270109B0u); /* 0x2701BDA5: call 0x270109b0 */ /* not lifted */ 9587 RECOMP_FLAGS_IN(); 9588 ecx = MEM32(esi + 0x5C); /* 0x2701BDAA: mov ecx, dword ptr [esi + 0x5c] */ 9589 edx = MEM32(ecx); /* 0x2701BDAD: mov edx, dword ptr [ecx] */ 9590 PUSH32(esp, edi); /* 0x2701BDAF: push edi */ 9591 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x2701BDB0: call dword ptr [edx + 0x14] */ 9592 RECOMP_FLAGS_IN(); 9593 PUSH32(esp, 1); /* 0x2701BDB3: push 1 */ 9594 ecx = esi; /* 0x2701BDB5: mov ecx, esi */ 9595 RECOMP_ICALL(0x2701B600u); /* 0x2701BDB7: call 0x2701b600 */ /* not lifted */ 9596 RECOMP_FLAGS_IN(); 9597 edi = POP32_VAL(esp); /* 0x2701BDBC: pop edi */ 9598 L_2701BDBD: 9599 esi = POP32_VAL(esp); /* 0x2701BDBD: pop esi */ 9600 ebp = POP32_VAL(esp); /* 0x2701BDBE: pop ebp */ 9601 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2701BDBF: ret 4 */ 9602 RECOMP_REGS_OUT(); 9603 } 9604 9605 void sub_2701BDD0(void) { 9606 int _fpu_cmp = 0; 9607 uint32_t _cf = 0; 9608 int _df = 1; 9609 uint32_t _flag_k = FK_NONE; 9610 uint32_t _flag_a = 0, _flag_b = 0; 9611 uint32_t _itail_tgt = 0; 9612 RECOMP_REGS_LOCALS 9613 RECOMP_ENTER(0x2701BDD0u); 9614 9615 L_2701BDD0: 9616 PUSH32(esp, ebp); /* 0x2701BDD0: push ebp */ 9617 ebp = esp; /* 0x2701BDD1: mov ebp, esp */ 9618 eax = MEM32(ebp + 0x8); /* 0x2701BDD3: mov eax, dword ptr [ebp + 8] */ 9619 edx = MEM32(ebp + 0xC); /* 0x2701BDD6: mov edx, dword ptr [ebp + 0xc] */ 9620 MEM32(ecx + 0xB4) = eax; /* 0x2701BDD9: mov dword ptr [ecx + 0xb4], eax */ 9621 eax = MEM32(ecx + 0x64); /* 0x2701BDDF: mov eax, dword ptr [ecx + 0x64] */ 9622 _flag_a = (uint32_t)((eax | 0x00010000u)); _flag_b = (uint32_t)((eax | 0x00010000u)); 9623 eax = eax | 0x00010000u; /* 0x2701BDE2: or eax, 0x10000 */ 9624 _cf = 0; 9625 _flag_k = FK_TEST; 9626 MEM32(ecx + 0xB8) = edx; /* 0x2701BDE7: mov dword ptr [ecx + 0xb8], edx */ 9627 MEM32(ecx + 0x64) = eax; /* 0x2701BDED: mov dword ptr [ecx + 0x64], eax */ 9628 ebp = POP32_VAL(esp); /* 0x2701BDF0: pop ebp */ 9629 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2701BDF1: ret 8 */ 9630 RECOMP_REGS_OUT(); 9631 } 9632 9633 void sub_2701BE00(void) { 9634 int _fpu_cmp = 0; 9635 uint32_t _cf = 0; 9636 int _df = 1; 9637 uint32_t _flag_k = FK_NONE; 9638 uint32_t _flag_a = 0, _flag_b = 0; 9639 uint32_t _itail_tgt = 0; 9640 RECOMP_REGS_LOCALS 9641 RECOMP_ENTER(0x2701BE00u); 9642 9643 L_2701BE00: 9644 /* test MEM8(ecx + 0x64), 0x10u */ /* 0x2701BE00: test byte ptr [ecx + 0x64], 0x10 */ 9645 _flag_a = (uint32_t)(MEM8(ecx + 0x64)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 9646 _cf = 0; 9647 _flag_k = FK_NARROW(FK_TEST, 24); 9648 L_2701BE04: 9649 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2701BE1B; /* 0x2701BE04: je 0x2701be1b */ 9650 L_2701BE06: 9651 eax = MEM32(ecx + 0x70); /* 0x2701BE06: mov eax, dword ptr [ecx + 0x70] */ 9652 L_2701BE09: 9653 /* cmp eax, MEM32(ecx + 0x80) */ /* 0x2701BE09: cmp eax, dword ptr [ecx + 0x80] */ 9654 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x80)); 9655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9656 _flag_k = FK_CMP; 9657 L_2701BE0F: 9658 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_LE, _cf)) goto L_2701BE18; /* 0x2701BE0F: jle 0x2701be18 */ 9659 L_2701BE11: 9660 eax = MEM32(ecx + 0xA0); /* 0x2701BE11: mov eax, dword ptr [ecx + 0xa0] */ 9661 L_2701BE17: 9662 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701BE17: ret */ 9663 L_2701BE18: 9664 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9665 eax = 0; /* 0x2701BE18: xor eax, eax */ 9666 _cf = 0; 9667 _flag_k = FK_TEST; 9668 L_2701BE1A: 9669 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701BE1A: ret */ 9670 L_2701BE1B: 9671 fp_push(*(double*)ADDR(ecx + 0xA8)); /* 0x2701BE1B: fld qword ptr [ecx + 0xa8] */ 9672 L_2701BE21: 9673 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9675 esp = esp - 8; /* 0x2701BE21: sub esp, 8 */ 9676 _flag_k = FK_CMP; 9677 L_2701BE24: 9678 _st[0] *= *(double*)ADDR(ecx + 0x78); /* 0x2701BE24: fmul qword ptr [ecx + 0x78] */ 9679 L_2701BE27: 9680 _st[0] += *(double*)ADDR(0x27034518); /* 0x2701BE27: fadd qword ptr [0x27034518] */ 9681 L_2701BE2D: 9682 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x2701BE2D: fstp qword ptr [esp] */ 9683 L_2701BE30: 9684 RECOMP_ICALL(MEM32(0x27029130)); /* 0x2701BE30: call dword ptr [0x27029130] */ 9685 RECOMP_FLAGS_IN(); 9686 L_2701BE36: 9687 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9689 esp = esp + 8; /* 0x2701BE36: add esp, 8 */ 9690 _flag_k = FK_ADD; 9691 L_2701BE39: 9692 goto L_27026ED2; /* 0x2701BE39: jmp 0x27026ed2 */ 9693 L_27026ED2: 9694 { _itail_tgt = (uint32_t)(MEM32(0x2702912C)); goto _ljump; } 9695 { RECOMP_REGS_OUT(); return; } /* end of function */ 9696 _ljump: 9697 switch (_itail_tgt) { 9698 case 0x2701BE00u: goto L_2701BE00; 9699 case 0x2701BE04u: goto L_2701BE04; 9700 case 0x2701BE06u: goto L_2701BE06; 9701 case 0x2701BE09u: goto L_2701BE09; 9702 case 0x2701BE0Fu: goto L_2701BE0F; 9703 case 0x2701BE11u: goto L_2701BE11; 9704 case 0x2701BE17u: goto L_2701BE17; 9705 case 0x2701BE18u: goto L_2701BE18; 9706 case 0x2701BE1Au: goto L_2701BE1A; 9707 case 0x2701BE1Bu: goto L_2701BE1B; 9708 case 0x2701BE21u: goto L_2701BE21; 9709 case 0x2701BE24u: goto L_2701BE24; 9710 case 0x2701BE27u: goto L_2701BE27; 9711 case 0x2701BE2Du: goto L_2701BE2D; 9712 case 0x2701BE30u: goto L_2701BE30; 9713 case 0x2701BE36u: goto L_2701BE36; 9714 case 0x2701BE39u: goto L_2701BE39; 9715 case 0x27026ED2u: goto L_27026ED2; 9716 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 9717 } 9718 RECOMP_REGS_OUT(); 9719 } 9720 9721 void sub_2701BE40(void) { 9722 int _fpu_cmp = 0; 9723 uint32_t _cf = 0; 9724 int _df = 1; 9725 uint32_t _flag_k = FK_NONE; 9726 uint32_t _flag_a = 0, _flag_b = 0; 9727 uint32_t _itail_tgt = 0; 9728 RECOMP_REGS_LOCALS 9729 RECOMP_ENTER(0x2701BE40u); 9730 9731 L_2701BE40: 9732 eax = 0x27034548u; /* 0x2701BE40: mov eax, 0x27034548 */ 9733 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2701BE45: ret */ 9734 RECOMP_REGS_OUT(); 9735 }