client/game/aar.dll/lifted-0002.c (442919B)
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_20004E20(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(0x20004E20u); 17 18 L_20004E20: 19 PUSH32(esp, ebp); /* 0x20004E20: push ebp */ 20 ebp = esp; /* 0x20004E21: mov ebp, esp */ 21 eax = MEM32(FS_BASE + (0)); /* 0x20004E23: mov eax, dword ptr fs:[0] */ 22 PUSH32(esp, 0xFFFFFFFFu); /* 0x20004E29: push -1 */ 23 PUSH32(esp, 0x200075ABu); /* 0x20004E2B: push 0x200075ab */ 24 PUSH32(esp, eax); /* 0x20004E30: push eax */ 25 eax = MEM32(ebp + 0x8); /* 0x20004E31: mov eax, dword ptr [ebp + 8] */ 26 MEM32(FS_BASE + (0)) = esp; /* 0x20004E34: mov dword ptr fs:[0], esp */ 27 ecx = MEM32(ecx + 0x724); /* 0x20004E3B: mov ecx, dword ptr [ecx + 0x724] */ 28 PUSH32(esp, esi); /* 0x20004E41: push esi */ 29 PUSH32(esp, eax); /* 0x20004E42: push eax */ 30 RECOMP_ICALL(0x20004CB0u); /* 0x20004E43: call 0x20004cb0 */ /* not lifted */ 31 RECOMP_FLAGS_IN(); 32 ecx = MEM32(ebp + 0xC); /* 0x20004E48: mov ecx, dword ptr [ebp + 0xc] */ 33 PUSH32(esp, ecx); /* 0x20004E4B: push ecx */ 34 ecx = eax; /* 0x20004E4C: mov ecx, eax */ 35 RECOMP_ICALL(0x20005F20u); /* 0x20004E4E: call 0x20005f20 */ /* not lifted */ 36 RECOMP_FLAGS_IN(); 37 PUSH32(esp, 8); /* 0x20004E53: push 8 */ 38 esi = eax; /* 0x20004E55: mov esi, eax */ 39 RECOMP_ICALL(0x2000727Cu); /* 0x20004E57: call 0x2000727c */ /* not lifted */ 40 RECOMP_FLAGS_IN(); 41 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 42 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 43 esp = esp + 4; /* 0x20004E5C: add esp, 4 */ 44 _flag_k = FK_ADD; 45 MEM32(ebp + 0x8) = eax; /* 0x20004E5F: mov dword ptr [ebp + 8], eax */ 46 /* test eax, eax */ /* 0x20004E62: test eax, eax */ 47 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 48 _cf = 0; 49 _flag_k = FK_TEST; 50 MEM32(ebp + (-0x4)) = 0; /* 0x20004E64: mov dword ptr [ebp - 4], 0 */ 51 if (TEST_Z(_flag_a, _flag_b)) goto L_20004E7E; /* 0x20004E6B: je 0x20004e7e */ 52 L_20004E6D: 53 edx = MEM32(ebp + 0x14); /* 0x20004E6D: mov edx, dword ptr [ebp + 0x14] */ 54 ecx = MEM32(ebp + 0x10); /* 0x20004E70: mov ecx, dword ptr [ebp + 0x10] */ 55 PUSH32(esp, edx); /* 0x20004E73: push edx */ 56 PUSH32(esp, ecx); /* 0x20004E74: push ecx */ 57 ecx = eax; /* 0x20004E75: mov ecx, eax */ 58 RECOMP_ICALL(0x20005B60u); /* 0x20004E77: call 0x20005b60 */ /* not lifted */ 59 RECOMP_FLAGS_IN(); 60 goto L_20004E80; /* 0x20004E7C: jmp 0x20004e80 */ 61 L_20004E7E: 62 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 63 eax = 0; /* 0x20004E7E: xor eax, eax */ 64 _cf = 0; 65 _flag_k = FK_TEST; 66 L_20004E80: 67 PUSH32(esp, eax); /* 0x20004E80: push eax */ 68 ecx = esi; /* 0x20004E81: mov ecx, esi */ 69 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x20004E83: mov dword ptr [ebp - 4], 0xffffffff */ 70 RECOMP_ICALL(0x20005740u); /* 0x20004E8A: call 0x20005740 */ /* not lifted */ 71 RECOMP_FLAGS_IN(); 72 ecx = MEM32(ebp + (-0xC)); /* 0x20004E8F: mov ecx, dword ptr [ebp - 0xc] */ 73 MEM32(FS_BASE + (0)) = ecx; /* 0x20004E92: mov dword ptr fs:[0], ecx */ 74 esi = POP32_VAL(esp); /* 0x20004E99: pop esi */ 75 esp = ebp; /* 0x20004E9A: mov esp, ebp */ 76 ebp = POP32_VAL(esp); /* 0x20004E9C: pop ebp */ 77 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20004E9D: ret 0x10 */ 78 RECOMP_REGS_OUT(); 79 } 80 81 void sub_20004EA0(void) { 82 int _fpu_cmp = 0; 83 uint32_t _cf = 0; 84 int _df = 1; 85 uint32_t _flag_k = FK_NONE; 86 uint32_t _flag_a = 0, _flag_b = 0; 87 uint32_t _itail_tgt = 0; 88 RECOMP_REGS_LOCALS 89 RECOMP_ENTER(0x20004EA0u); 90 91 L_20004EA0: 92 PUSH32(esp, ebp); /* 0x20004EA0: push ebp */ 93 ebp = esp; /* 0x20004EA1: mov ebp, esp */ 94 PUSH32(esp, esi); /* 0x20004EA3: push esi */ 95 esi = ecx; /* 0x20004EA4: mov esi, ecx */ 96 eax = MEM32(esi + 0xA60); /* 0x20004EA6: mov eax, dword ptr [esi + 0xa60] */ 97 PUSH32(esp, edi); /* 0x20004EAC: push edi */ 98 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 99 edi = 0; /* 0x20004EAD: xor edi, edi */ 100 _cf = 0; 101 _flag_k = FK_TEST; 102 /* test eax, eax */ /* 0x20004EAF: test eax, eax */ 103 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 104 _cf = 0; 105 _flag_k = FK_TEST; 106 if (TEST_LE(_flag_a, _flag_b)) goto L_20004EE2; /* 0x20004EB1: jle 0x20004ee2 */ 107 L_20004EB3: 108 PUSH32(esp, ebx); /* 0x20004EB3: push ebx */ 109 ebx = esi + 0x740; /* 0x20004EB4: lea ebx, [esi + 0x740] */ 110 L_20004EBA: 111 eax = MEM32(ebp + 0xC); /* 0x20004EBA: mov eax, dword ptr [ebp + 0xc] */ 112 ecx = MEM32(ebp + 0x8); /* 0x20004EBD: mov ecx, dword ptr [ebp + 8] */ 113 edx = MEM32(esi + 0xA64); /* 0x20004EC0: mov edx, dword ptr [esi + 0xa64] */ 114 PUSH32(esp, eax); /* 0x20004EC6: push eax */ 115 eax = MEM32(ebx); /* 0x20004EC7: mov eax, dword ptr [ebx] */ 116 PUSH32(esp, ecx); /* 0x20004EC9: push ecx */ 117 PUSH32(esp, edx); /* 0x20004ECA: push edx */ 118 PUSH32(esp, eax); /* 0x20004ECB: push eax */ 119 ecx = esi; /* 0x20004ECC: mov ecx, esi */ 120 RECOMP_ICALL(0x20004E20u); /* 0x20004ECE: call 0x20004e20 */ /* not lifted */ 121 RECOMP_FLAGS_IN(); 122 eax = MEM32(esi + 0xA60); /* 0x20004ED3: mov eax, dword ptr [esi + 0xa60] */ 123 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 124 edi = edi + 1; /* 0x20004ED9: inc edi */ 125 _flag_k = FK_INC; 126 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 127 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 128 ebx = ebx + 4; /* 0x20004EDA: add ebx, 4 */ 129 _flag_k = FK_ADD; 130 /* cmp edi, eax */ /* 0x20004EDD: cmp edi, eax */ 131 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 133 _flag_k = FK_CMP; 134 RECOMP_BACKEDGE(); 135 if (CMP_L(_flag_a, _flag_b)) goto L_20004EBA; /* 0x20004EDF: jl 0x20004eba */ 136 L_20004EE1: 137 ebx = POP32_VAL(esp); /* 0x20004EE1: pop ebx */ 138 L_20004EE2: 139 edi = POP32_VAL(esp); /* 0x20004EE2: pop edi */ 140 esi = POP32_VAL(esp); /* 0x20004EE3: pop esi */ 141 ebp = POP32_VAL(esp); /* 0x20004EE4: pop ebp */ 142 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x20004EE5: ret 8 */ 143 RECOMP_REGS_OUT(); 144 } 145 146 void sub_20004EF0(void) { 147 int _fpu_cmp = 0; 148 uint32_t _cf = 0; 149 int _df = 1; 150 uint32_t _flag_k = FK_NONE; 151 uint32_t _flag_a = 0, _flag_b = 0; 152 uint32_t _itail_tgt = 0; 153 RECOMP_REGS_LOCALS 154 RECOMP_ENTER(0x20004EF0u); 155 156 L_20004EF0: 157 PUSH32(esp, ebp); /* 0x20004EF0: push ebp */ 158 ebp = esp; /* 0x20004EF1: mov ebp, esp */ 159 eax = MEM32(ebp + 0x8); /* 0x20004EF3: mov eax, dword ptr [ebp + 8] */ 160 ecx = MEM32(ecx + 0x724); /* 0x20004EF6: mov ecx, dword ptr [ecx + 0x724] */ 161 PUSH32(esp, eax); /* 0x20004EFC: push eax */ 162 RECOMP_ICALL(0x20004CB0u); /* 0x20004EFD: call 0x20004cb0 */ /* not lifted */ 163 RECOMP_FLAGS_IN(); 164 ecx = MEM32(ebp + 0xC); /* 0x20004F02: mov ecx, dword ptr [ebp + 0xc] */ 165 PUSH32(esp, ecx); /* 0x20004F05: push ecx */ 166 ecx = eax; /* 0x20004F06: mov ecx, eax */ 167 RECOMP_ICALL(0x20005F20u); /* 0x20004F08: call 0x20005f20 */ /* not lifted */ 168 RECOMP_FLAGS_IN(); 169 edx = MEM32(ebp + 0x10); /* 0x20004F0D: mov edx, dword ptr [ebp + 0x10] */ 170 PUSH32(esp, edx); /* 0x20004F10: push edx */ 171 ecx = eax; /* 0x20004F11: mov ecx, eax */ 172 RECOMP_ICALL(0x20005660u); /* 0x20004F13: call 0x20005660 */ /* not lifted */ 173 RECOMP_FLAGS_IN(); 174 ebp = POP32_VAL(esp); /* 0x20004F18: pop ebp */ 175 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20004F19: ret 0xc */ 176 RECOMP_REGS_OUT(); 177 } 178 179 void sub_20004F20(void) { 180 int _fpu_cmp = 0; 181 uint32_t _cf = 0; 182 int _df = 1; 183 uint32_t _flag_k = FK_NONE; 184 uint32_t _flag_a = 0, _flag_b = 0; 185 uint32_t _itail_tgt = 0; 186 RECOMP_REGS_LOCALS 187 RECOMP_ENTER(0x20004F20u); 188 189 L_20004F20: 190 PUSH32(esp, ebp); /* 0x20004F20: push ebp */ 191 ebp = esp; /* 0x20004F21: mov ebp, esp */ 192 PUSH32(esp, esi); /* 0x20004F23: push esi */ 193 esi = ecx; /* 0x20004F24: mov esi, ecx */ 194 eax = MEM32(esi + 0xA60); /* 0x20004F26: mov eax, dword ptr [esi + 0xa60] */ 195 PUSH32(esp, edi); /* 0x20004F2C: push edi */ 196 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 197 edi = 0; /* 0x20004F2D: xor edi, edi */ 198 _cf = 0; 199 _flag_k = FK_TEST; 200 /* test eax, eax */ /* 0x20004F2F: test eax, eax */ 201 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 202 _cf = 0; 203 _flag_k = FK_TEST; 204 if (TEST_LE(_flag_a, _flag_b)) goto L_20004F5E; /* 0x20004F31: jle 0x20004f5e */ 205 L_20004F33: 206 PUSH32(esp, ebx); /* 0x20004F33: push ebx */ 207 ebx = esi + 0x740; /* 0x20004F34: lea ebx, [esi + 0x740] */ 208 L_20004F3A: 209 eax = MEM32(ebp + 0x8); /* 0x20004F3A: mov eax, dword ptr [ebp + 8] */ 210 ecx = MEM32(esi + 0xA64); /* 0x20004F3D: mov ecx, dword ptr [esi + 0xa64] */ 211 edx = MEM32(ebx); /* 0x20004F43: mov edx, dword ptr [ebx] */ 212 PUSH32(esp, eax); /* 0x20004F45: push eax */ 213 PUSH32(esp, ecx); /* 0x20004F46: push ecx */ 214 PUSH32(esp, edx); /* 0x20004F47: push edx */ 215 ecx = esi; /* 0x20004F48: mov ecx, esi */ 216 RECOMP_ICALL(0x20004EF0u); /* 0x20004F4A: call 0x20004ef0 */ /* not lifted */ 217 RECOMP_FLAGS_IN(); 218 eax = MEM32(esi + 0xA60); /* 0x20004F4F: mov eax, dword ptr [esi + 0xa60] */ 219 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 220 edi = edi + 1; /* 0x20004F55: inc edi */ 221 _flag_k = FK_INC; 222 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 223 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 224 ebx = ebx + 4; /* 0x20004F56: add ebx, 4 */ 225 _flag_k = FK_ADD; 226 /* cmp edi, eax */ /* 0x20004F59: cmp edi, eax */ 227 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 229 _flag_k = FK_CMP; 230 RECOMP_BACKEDGE(); 231 if (CMP_L(_flag_a, _flag_b)) goto L_20004F3A; /* 0x20004F5B: jl 0x20004f3a */ 232 L_20004F5D: 233 ebx = POP32_VAL(esp); /* 0x20004F5D: pop ebx */ 234 L_20004F5E: 235 edi = POP32_VAL(esp); /* 0x20004F5E: pop edi */ 236 esi = POP32_VAL(esp); /* 0x20004F5F: pop esi */ 237 ebp = POP32_VAL(esp); /* 0x20004F60: pop ebp */ 238 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20004F61: ret 4 */ 239 RECOMP_REGS_OUT(); 240 } 241 242 void sub_20004F70(void) { 243 int _fpu_cmp = 0; 244 uint32_t _cf = 0; 245 int _df = 1; 246 uint32_t _flag_k = FK_NONE; 247 uint32_t _flag_a = 0, _flag_b = 0; 248 uint32_t _itail_tgt = 0; 249 RECOMP_REGS_LOCALS 250 RECOMP_ENTER(0x20004F70u); 251 252 L_20004F70: 253 PUSH32(esp, ebp); /* 0x20004F70: push ebp */ 254 ebp = esp; /* 0x20004F71: mov ebp, esp */ 255 eax = MEM32(ebp + 0x8); /* 0x20004F73: mov eax, dword ptr [ebp + 8] */ 256 ecx = MEM32(ecx + 0x724); /* 0x20004F76: mov ecx, dword ptr [ecx + 0x724] */ 257 PUSH32(esp, eax); /* 0x20004F7C: push eax */ 258 RECOMP_ICALL(0x20004CB0u); /* 0x20004F7D: call 0x20004cb0 */ /* not lifted */ 259 RECOMP_FLAGS_IN(); 260 ecx = MEM32(ebp + 0xC); /* 0x20004F82: mov ecx, dword ptr [ebp + 0xc] */ 261 PUSH32(esp, ecx); /* 0x20004F85: push ecx */ 262 ecx = eax; /* 0x20004F86: mov ecx, eax */ 263 RECOMP_ICALL(0x20005F20u); /* 0x20004F88: call 0x20005f20 */ /* not lifted */ 264 RECOMP_FLAGS_IN(); 265 edx = MEM32(ebp + 0x10); /* 0x20004F8D: mov edx, dword ptr [ebp + 0x10] */ 266 PUSH32(esp, edx); /* 0x20004F90: push edx */ 267 ecx = eax; /* 0x20004F91: mov ecx, eax */ 268 RECOMP_ICALL(0x200056D0u); /* 0x20004F93: call 0x200056d0 */ /* not lifted */ 269 RECOMP_FLAGS_IN(); 270 ebp = POP32_VAL(esp); /* 0x20004F98: pop ebp */ 271 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20004F99: ret 0xc */ 272 RECOMP_REGS_OUT(); 273 } 274 275 void sub_20004FA0(void) { 276 int _fpu_cmp = 0; 277 uint32_t _cf = 0; 278 int _df = 1; 279 uint32_t _flag_k = FK_NONE; 280 uint32_t _flag_a = 0, _flag_b = 0; 281 uint32_t _itail_tgt = 0; 282 RECOMP_REGS_LOCALS 283 RECOMP_ENTER(0x20004FA0u); 284 285 L_20004FA0: 286 PUSH32(esp, ebp); /* 0x20004FA0: push ebp */ 287 ebp = esp; /* 0x20004FA1: mov ebp, esp */ 288 PUSH32(esp, esi); /* 0x20004FA3: push esi */ 289 esi = ecx; /* 0x20004FA4: mov esi, ecx */ 290 eax = MEM32(esi + 0xA60); /* 0x20004FA6: mov eax, dword ptr [esi + 0xa60] */ 291 PUSH32(esp, edi); /* 0x20004FAC: push edi */ 292 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 293 edi = 0; /* 0x20004FAD: xor edi, edi */ 294 _cf = 0; 295 _flag_k = FK_TEST; 296 /* test eax, eax */ /* 0x20004FAF: test eax, eax */ 297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 298 _cf = 0; 299 _flag_k = FK_TEST; 300 if (TEST_LE(_flag_a, _flag_b)) goto L_20004FDE; /* 0x20004FB1: jle 0x20004fde */ 301 L_20004FB3: 302 PUSH32(esp, ebx); /* 0x20004FB3: push ebx */ 303 ebx = esi + 0x740; /* 0x20004FB4: lea ebx, [esi + 0x740] */ 304 L_20004FBA: 305 eax = MEM32(ebp + 0x8); /* 0x20004FBA: mov eax, dword ptr [ebp + 8] */ 306 ecx = MEM32(esi + 0xA64); /* 0x20004FBD: mov ecx, dword ptr [esi + 0xa64] */ 307 edx = MEM32(ebx); /* 0x20004FC3: mov edx, dword ptr [ebx] */ 308 PUSH32(esp, eax); /* 0x20004FC5: push eax */ 309 PUSH32(esp, ecx); /* 0x20004FC6: push ecx */ 310 PUSH32(esp, edx); /* 0x20004FC7: push edx */ 311 ecx = esi; /* 0x20004FC8: mov ecx, esi */ 312 RECOMP_ICALL(0x20004F70u); /* 0x20004FCA: call 0x20004f70 */ /* not lifted */ 313 RECOMP_FLAGS_IN(); 314 eax = MEM32(esi + 0xA60); /* 0x20004FCF: mov eax, dword ptr [esi + 0xa60] */ 315 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 316 edi = edi + 1; /* 0x20004FD5: inc edi */ 317 _flag_k = FK_INC; 318 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 320 ebx = ebx + 4; /* 0x20004FD6: add ebx, 4 */ 321 _flag_k = FK_ADD; 322 /* cmp edi, eax */ /* 0x20004FD9: cmp edi, eax */ 323 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 325 _flag_k = FK_CMP; 326 RECOMP_BACKEDGE(); 327 if (CMP_L(_flag_a, _flag_b)) goto L_20004FBA; /* 0x20004FDB: jl 0x20004fba */ 328 L_20004FDD: 329 ebx = POP32_VAL(esp); /* 0x20004FDD: pop ebx */ 330 L_20004FDE: 331 edi = POP32_VAL(esp); /* 0x20004FDE: pop edi */ 332 esi = POP32_VAL(esp); /* 0x20004FDF: pop esi */ 333 ebp = POP32_VAL(esp); /* 0x20004FE0: pop ebp */ 334 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20004FE1: ret 4 */ 335 RECOMP_REGS_OUT(); 336 } 337 338 void sub_20004FF0(void) { 339 int _fpu_cmp = 0; 340 uint32_t _cf = 0; 341 int _df = 1; 342 uint32_t _flag_k = FK_NONE; 343 uint32_t _flag_a = 0, _flag_b = 0; 344 uint32_t _itail_tgt = 0; 345 RECOMP_REGS_LOCALS 346 RECOMP_ENTER(0x20004FF0u); 347 348 L_20004FF0: 349 PUSH32(esp, ebp); /* 0x20004FF0: push ebp */ 350 ebp = esp; /* 0x20004FF1: mov ebp, esp */ 351 eax = MEM32(FS_BASE + (0)); /* 0x20004FF3: mov eax, dword ptr fs:[0] */ 352 PUSH32(esp, 0xFFFFFFFFu); /* 0x20004FF9: push -1 */ 353 PUSH32(esp, 0x200075CBu); /* 0x20004FFB: push 0x200075cb */ 354 PUSH32(esp, eax); /* 0x20005000: push eax */ 355 MEM32(FS_BASE + (0)) = esp; /* 0x20005001: mov dword ptr fs:[0], esp */ 356 PUSH32(esp, ebx); /* 0x20005008: push ebx */ 357 ebx = MEM32(ebp + 0x10); /* 0x20005009: mov ebx, dword ptr [ebp + 0x10] */ 358 /* test ebx, ebx */ /* 0x2000500C: test ebx, ebx */ 359 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 360 _cf = 0; 361 _flag_k = FK_TEST; 362 PUSH32(esp, esi); /* 0x2000500E: push esi */ 363 PUSH32(esp, edi); /* 0x2000500F: push edi */ 364 esi = ecx; /* 0x20005010: mov esi, ecx */ 365 if (TEST_Z(_flag_a, _flag_b)) goto L_20005019; /* 0x20005012: je 0x20005019 */ 366 L_20005014: 367 RECOMP_ICALL(0x20005140u); /* 0x20005014: call 0x20005140 */ /* not lifted */ 368 RECOMP_FLAGS_IN(); 369 L_20005019: 370 edi = MEM32(ebp + 0xC); /* 0x20005019: mov edi, dword ptr [ebp + 0xc] */ 371 /* cmp MEM32(esi + 0x730), edi */ /* 0x2000501C: cmp dword ptr [esi + 0x730], edi */ 372 _flag_a = (uint32_t)(MEM32(esi + 0x730)); _flag_b = (uint32_t)(edi); 373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 374 _flag_k = FK_CMP; 375 if (CMP_GE(_flag_a, _flag_b)) goto L_2000502A; /* 0x20005022: jge 0x2000502a */ 376 L_20005024: 377 MEM32(esi + 0x730) = edi; /* 0x20005024: mov dword ptr [esi + 0x730], edi */ 378 L_2000502A: 379 PUSH32(esp, 0x18u); /* 0x2000502A: push 0x18 */ 380 RECOMP_ICALL(0x2000727Cu); /* 0x2000502C: call 0x2000727c */ /* not lifted */ 381 RECOMP_FLAGS_IN(); 382 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 384 esp = esp + 4; /* 0x20005031: add esp, 4 */ 385 _flag_k = FK_ADD; 386 MEM32(ebp + 0x10) = eax; /* 0x20005034: mov dword ptr [ebp + 0x10], eax */ 387 /* test eax, eax */ /* 0x20005037: test eax, eax */ 388 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 389 _cf = 0; 390 _flag_k = FK_TEST; 391 MEM32(ebp + (-0x4)) = 0; /* 0x20005039: mov dword ptr [ebp - 4], 0 */ 392 if (TEST_Z(_flag_a, _flag_b)) goto L_20005053; /* 0x20005040: je 0x20005053 */ 393 L_20005042: 394 ecx = MEM32(ebp + 0x14); /* 0x20005042: mov ecx, dword ptr [ebp + 0x14] */ 395 PUSH32(esp, ecx); /* 0x20005045: push ecx */ 396 PUSH32(esp, ebx); /* 0x20005046: push ebx */ 397 PUSH32(esp, edi); /* 0x20005047: push edi */ 398 ecx = eax; /* 0x20005048: mov ecx, eax */ 399 RECOMP_ICALL(0x20005830u); /* 0x2000504A: call 0x20005830 */ /* not lifted */ 400 RECOMP_FLAGS_IN(); 401 ebx = eax; /* 0x2000504F: mov ebx, eax */ 402 goto L_20005055; /* 0x20005051: jmp 0x20005055 */ 403 L_20005053: 404 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 405 ebx = 0; /* 0x20005053: xor ebx, ebx */ 406 _cf = 0; 407 _flag_k = FK_TEST; 408 L_20005055: 409 edx = MEM32(ebp + 0x8); /* 0x20005055: mov edx, dword ptr [ebp + 8] */ 410 ecx = MEM32(esi + 0x724); /* 0x20005058: mov ecx, dword ptr [esi + 0x724] */ 411 PUSH32(esp, ebx); /* 0x2000505E: push ebx */ 412 PUSH32(esp, edx); /* 0x2000505F: push edx */ 413 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x20005060: mov dword ptr [ebp - 4], 0xffffffff */ 414 RECOMP_ICALL(0x20004A10u); /* 0x20005067: call 0x20004a10 */ /* not lifted */ 415 RECOMP_FLAGS_IN(); 416 eax = MEM32(ebp + 0x8); /* 0x2000506C: mov eax, dword ptr [ebp + 8] */ 417 ecx = MEM32(esi + 0x728); /* 0x2000506F: mov ecx, dword ptr [esi + 0x728] */ 418 PUSH32(esp, eax); /* 0x20005075: push eax */ 419 RECOMP_ICALL(0x20004CB0u); /* 0x20005076: call 0x20004cb0 */ /* not lifted */ 420 RECOMP_FLAGS_IN(); 421 /* test eax, eax */ /* 0x2000507B: test eax, eax */ 422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 423 _cf = 0; 424 _flag_k = FK_TEST; 425 if (TEST_NZ(_flag_a, _flag_b)) goto L_20005092; /* 0x2000507D: jne 0x20005092 */ 426 L_2000507F: 427 ecx = MEM32(ebp + 0x8); /* 0x2000507F: mov ecx, dword ptr [ebp + 8] */ 428 PUSH32(esp, ecx); /* 0x20005082: push ecx */ 429 ecx = MEM32(esi + 0x72C); /* 0x20005083: mov ecx, dword ptr [esi + 0x72c] */ 430 RECOMP_ICALL(0x20004CB0u); /* 0x20005089: call 0x20004cb0 */ /* not lifted */ 431 RECOMP_FLAGS_IN(); 432 /* test eax, eax */ /* 0x2000508E: test eax, eax */ 433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 434 _cf = 0; 435 _flag_k = FK_TEST; 436 if (TEST_Z(_flag_a, _flag_b)) goto L_200050AF; /* 0x20005090: je 0x200050af */ 437 L_20005092: 438 PUSH32(esp, 1); /* 0x20005092: push 1 */ 439 PUSH32(esp, edi); /* 0x20005094: push edi */ 440 ecx = esi; /* 0x20005095: mov ecx, esi */ 441 RECOMP_ICALL(0x200011D0u); /* 0x20005097: call 0x200011d0 */ /* not lifted */ 442 RECOMP_FLAGS_IN(); 443 PUSH32(esp, 5); /* 0x2000509C: push 5 */ 444 PUSH32(esp, edi); /* 0x2000509E: push edi */ 445 ecx = esi; /* 0x2000509F: mov ecx, esi */ 446 RECOMP_ICALL(0x20003630u); /* 0x200050A1: call 0x20003630 */ /* not lifted */ 447 RECOMP_FLAGS_IN(); 448 PUSH32(esp, 1); /* 0x200050A6: push 1 */ 449 ecx = ebx; /* 0x200050A8: mov ecx, ebx */ 450 RECOMP_ICALL(0x20005A50u); /* 0x200050AA: call 0x20005a50 */ /* not lifted */ 451 RECOMP_FLAGS_IN(); 452 L_200050AF: 453 /* cmp MEM32(esi + 0xA64), edi */ /* 0x200050AF: cmp dword ptr [esi + 0xa64], edi */ 454 _flag_a = (uint32_t)(MEM32(esi + 0xA64)); _flag_b = (uint32_t)(edi); 455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 456 _flag_k = FK_CMP; 457 if (CMP_EQ(_flag_a, _flag_b)) goto L_200050C1; /* 0x200050B5: je 0x200050c1 */ 458 L_200050B7: 459 MEM32(esi + 0xA60) = 0; /* 0x200050B7: mov dword ptr [esi + 0xa60], 0 */ 460 L_200050C1: 461 edx = MEM32(esi + 0xA60); /* 0x200050C1: mov edx, dword ptr [esi + 0xa60] */ 462 eax = MEM32(ebp + 0x8); /* 0x200050C7: mov eax, dword ptr [ebp + 8] */ 463 ecx = MEM32(ebp + (-0xC)); /* 0x200050CA: mov ecx, dword ptr [ebp - 0xc] */ 464 MEM32(esi + edx * 4 + 0x740) = eax; /* 0x200050CD: mov dword ptr [esi + edx*4 + 0x740], eax */ 465 eax = MEM32(esi + 0xA60); /* 0x200050D4: mov eax, dword ptr [esi + 0xa60] */ 466 MEM32(esi + 0xA64) = edi; /* 0x200050DA: mov dword ptr [esi + 0xa64], edi */ 467 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 468 eax = eax + 1; /* 0x200050E0: inc eax */ 469 _flag_k = FK_INC; 470 edi = POP32_VAL(esp); /* 0x200050E1: pop edi */ 471 MEM32(esi + 0xA60) = eax; /* 0x200050E2: mov dword ptr [esi + 0xa60], eax */ 472 esi = POP32_VAL(esp); /* 0x200050E8: pop esi */ 473 MEM32(FS_BASE + (0)) = ecx; /* 0x200050E9: mov dword ptr fs:[0], ecx */ 474 ebx = POP32_VAL(esp); /* 0x200050F0: pop ebx */ 475 esp = ebp; /* 0x200050F1: mov esp, ebp */ 476 ebp = POP32_VAL(esp); /* 0x200050F3: pop ebp */ 477 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x200050F4: ret 0x10 */ 478 RECOMP_REGS_OUT(); 479 } 480 481 void sub_20005100(void) { 482 int _fpu_cmp = 0; 483 uint32_t _cf = 0; 484 int _df = 1; 485 uint32_t _flag_k = FK_NONE; 486 uint32_t _flag_a = 0, _flag_b = 0; 487 uint32_t _itail_tgt = 0; 488 RECOMP_REGS_LOCALS 489 RECOMP_ENTER(0x20005100u); 490 491 L_20005100: 492 PUSH32(esp, ebp); /* 0x20005100: push ebp */ 493 ebp = esp; /* 0x20005101: mov ebp, esp */ 494 eax = MEM32(ebp + 0x10); /* 0x20005103: mov eax, dword ptr [ebp + 0x10] */ 495 edx = MEM32(ebp + 0xC); /* 0x20005106: mov edx, dword ptr [ebp + 0xc] */ 496 PUSH32(esp, eax); /* 0x20005109: push eax */ 497 eax = MEM32(ebp + 0x8); /* 0x2000510A: mov eax, dword ptr [ebp + 8] */ 498 PUSH32(esp, 0); /* 0x2000510D: push 0 */ 499 PUSH32(esp, edx); /* 0x2000510F: push edx */ 500 PUSH32(esp, eax); /* 0x20005110: push eax */ 501 RECOMP_ICALL(0x20004FF0u); /* 0x20005111: call 0x20004ff0 */ /* not lifted */ 502 RECOMP_FLAGS_IN(); 503 ebp = POP32_VAL(esp); /* 0x20005116: pop ebp */ 504 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20005117: ret 0xc */ 505 RECOMP_REGS_OUT(); 506 } 507 508 void sub_20005120(void) { 509 int _fpu_cmp = 0; 510 uint32_t _cf = 0; 511 int _df = 1; 512 uint32_t _flag_k = FK_NONE; 513 uint32_t _flag_a = 0, _flag_b = 0; 514 uint32_t _itail_tgt = 0; 515 RECOMP_REGS_LOCALS 516 RECOMP_ENTER(0x20005120u); 517 518 L_20005120: 519 PUSH32(esp, ebp); /* 0x20005120: push ebp */ 520 ebp = esp; /* 0x20005121: mov ebp, esp */ 521 eax = MEM32(ebp + 0xC); /* 0x20005123: mov eax, dword ptr [ebp + 0xc] */ 522 edx = MEM32(ecx + 0xA64); /* 0x20005126: mov edx, dword ptr [ecx + 0xa64] */ 523 PUSH32(esp, eax); /* 0x2000512C: push eax */ 524 eax = MEM32(ebp + 0x8); /* 0x2000512D: mov eax, dword ptr [ebp + 8] */ 525 PUSH32(esp, 0); /* 0x20005130: push 0 */ 526 PUSH32(esp, edx); /* 0x20005132: push edx */ 527 PUSH32(esp, eax); /* 0x20005133: push eax */ 528 RECOMP_ICALL(0x20004FF0u); /* 0x20005134: call 0x20004ff0 */ /* not lifted */ 529 RECOMP_FLAGS_IN(); 530 ebp = POP32_VAL(esp); /* 0x20005139: pop ebp */ 531 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2000513A: ret 8 */ 532 RECOMP_REGS_OUT(); 533 } 534 535 void sub_20005140(void) { 536 int _fpu_cmp = 0; 537 uint32_t _cf = 0; 538 int _df = 1; 539 uint32_t _flag_k = FK_NONE; 540 uint32_t _flag_a = 0, _flag_b = 0; 541 uint32_t _itail_tgt = 0; 542 RECOMP_REGS_LOCALS 543 RECOMP_ENTER(0x20005140u); 544 545 L_20005140: 546 MEM32(ecx + 0xA60) = 0; /* 0x20005140: mov dword ptr [ecx + 0xa60], 0 */ 547 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000514A: ret */ 548 RECOMP_REGS_OUT(); 549 } 550 551 void sub_20005150(void) { 552 int _fpu_cmp = 0; 553 uint32_t _cf = 0; 554 int _df = 1; 555 uint32_t _flag_k = FK_NONE; 556 uint32_t _flag_a = 0, _flag_b = 0; 557 uint32_t _itail_tgt = 0; 558 RECOMP_REGS_LOCALS 559 RECOMP_ENTER(0x20005150u); 560 561 L_20005150: 562 PUSH32(esp, ebp); /* 0x20005150: push ebp */ 563 ebp = esp; /* 0x20005151: mov ebp, esp */ 564 PUSH32(esp, 0xFFFFFFFFu); /* 0x20005153: push -1 */ 565 PUSH32(esp, 0x20007601u); /* 0x20005155: push 0x20007601 */ 566 eax = MEM32(FS_BASE + (0)); /* 0x2000515A: mov eax, dword ptr fs:[0] */ 567 PUSH32(esp, eax); /* 0x20005160: push eax */ 568 MEM32(FS_BASE + (0)) = esp; /* 0x20005161: mov dword ptr fs:[0], esp */ 569 PUSH32(esp, ecx); /* 0x20005168: push ecx */ 570 PUSH32(esp, esi); /* 0x20005169: push esi */ 571 PUSH32(esp, 0x68u); /* 0x2000516A: push 0x68 */ 572 esi = ecx; /* 0x2000516C: mov esi, ecx */ 573 RECOMP_ICALL(0x2000727Cu); /* 0x2000516E: call 0x2000727c */ /* not lifted */ 574 RECOMP_FLAGS_IN(); 575 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 576 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 577 esp = esp + 4; /* 0x20005173: add esp, 4 */ 578 _flag_k = FK_ADD; 579 MEM32(ebp + (-0x10)) = eax; /* 0x20005176: mov dword ptr [ebp - 0x10], eax */ 580 /* test eax, eax */ /* 0x20005179: test eax, eax */ 581 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 582 _cf = 0; 583 _flag_k = FK_TEST; 584 MEM32(ebp + (-0x4)) = 0; /* 0x2000517B: mov dword ptr [ebp - 4], 0 */ 585 if (TEST_Z(_flag_a, _flag_b)) goto L_20005192; /* 0x20005182: je 0x20005192 */ 586 L_20005184: 587 PUSH32(esp, 0x2000B080u); /* 0x20005184: push 0x2000b080 */ 588 ecx = eax; /* 0x20005189: mov ecx, eax */ 589 RECOMP_ICALL(0x20004920u); /* 0x2000518B: call 0x20004920 */ /* not lifted */ 590 RECOMP_FLAGS_IN(); 591 goto L_20005194; /* 0x20005190: jmp 0x20005194 */ 592 L_20005192: 593 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 594 eax = 0; /* 0x20005192: xor eax, eax */ 595 _cf = 0; 596 _flag_k = FK_TEST; 597 L_20005194: 598 PUSH32(esp, 0x68u); /* 0x20005194: push 0x68 */ 599 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x20005196: mov dword ptr [ebp - 4], 0xffffffff */ 600 MEM32(esi + 0x724) = eax; /* 0x2000519D: mov dword ptr [esi + 0x724], eax */ 601 RECOMP_ICALL(0x2000727Cu); /* 0x200051A3: call 0x2000727c */ /* not lifted */ 602 RECOMP_FLAGS_IN(); 603 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 604 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 605 esp = esp + 4; /* 0x200051A8: add esp, 4 */ 606 _flag_k = FK_ADD; 607 MEM32(ebp + (-0x10)) = eax; /* 0x200051AB: mov dword ptr [ebp - 0x10], eax */ 608 /* test eax, eax */ /* 0x200051AE: test eax, eax */ 609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 610 _cf = 0; 611 _flag_k = FK_TEST; 612 MEM32(ebp + (-0x4)) = 1; /* 0x200051B0: mov dword ptr [ebp - 4], 1 */ 613 if (TEST_Z(_flag_a, _flag_b)) goto L_200051C7; /* 0x200051B7: je 0x200051c7 */ 614 L_200051B9: 615 PUSH32(esp, 0x2000B068u); /* 0x200051B9: push 0x2000b068 */ 616 ecx = eax; /* 0x200051BE: mov ecx, eax */ 617 RECOMP_ICALL(0x20004920u); /* 0x200051C0: call 0x20004920 */ /* not lifted */ 618 RECOMP_FLAGS_IN(); 619 goto L_200051C9; /* 0x200051C5: jmp 0x200051c9 */ 620 L_200051C7: 621 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 622 eax = 0; /* 0x200051C7: xor eax, eax */ 623 _cf = 0; 624 _flag_k = FK_TEST; 625 L_200051C9: 626 PUSH32(esp, 0x68u); /* 0x200051C9: push 0x68 */ 627 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x200051CB: mov dword ptr [ebp - 4], 0xffffffff */ 628 MEM32(esi + 0x728) = eax; /* 0x200051D2: mov dword ptr [esi + 0x728], eax */ 629 RECOMP_ICALL(0x2000727Cu); /* 0x200051D8: call 0x2000727c */ /* not lifted */ 630 RECOMP_FLAGS_IN(); 631 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 632 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 633 esp = esp + 4; /* 0x200051DD: add esp, 4 */ 634 _flag_k = FK_ADD; 635 MEM32(ebp + (-0x10)) = eax; /* 0x200051E0: mov dword ptr [ebp - 0x10], eax */ 636 /* test eax, eax */ /* 0x200051E3: test eax, eax */ 637 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 638 _cf = 0; 639 _flag_k = FK_TEST; 640 MEM32(ebp + (-0x4)) = 2; /* 0x200051E5: mov dword ptr [ebp - 4], 2 */ 641 if (TEST_Z(_flag_a, _flag_b)) goto L_200051FC; /* 0x200051EC: je 0x200051fc */ 642 L_200051EE: 643 PUSH32(esp, 0x2000B050u); /* 0x200051EE: push 0x2000b050 */ 644 ecx = eax; /* 0x200051F3: mov ecx, eax */ 645 RECOMP_ICALL(0x20004920u); /* 0x200051F5: call 0x20004920 */ /* not lifted */ 646 RECOMP_FLAGS_IN(); 647 goto L_200051FE; /* 0x200051FA: jmp 0x200051fe */ 648 L_200051FC: 649 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 650 eax = 0; /* 0x200051FC: xor eax, eax */ 651 _cf = 0; 652 _flag_k = FK_TEST; 653 L_200051FE: 654 ecx = MEM32(ebp + (-0xC)); /* 0x200051FE: mov ecx, dword ptr [ebp - 0xc] */ 655 MEM32(esi + 0x72C) = eax; /* 0x20005201: mov dword ptr [esi + 0x72c], eax */ 656 esi = POP32_VAL(esp); /* 0x20005207: pop esi */ 657 MEM32(FS_BASE + (0)) = ecx; /* 0x20005208: mov dword ptr fs:[0], ecx */ 658 esp = ebp; /* 0x2000520F: mov esp, ebp */ 659 ebp = POP32_VAL(esp); /* 0x20005211: pop ebp */ 660 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005212: ret */ 661 RECOMP_REGS_OUT(); 662 } 663 664 void sub_20005220(void) { 665 int _fpu_cmp = 0; 666 uint32_t _cf = 0; 667 int _df = 1; 668 uint32_t _flag_k = FK_NONE; 669 uint32_t _flag_a = 0, _flag_b = 0; 670 uint32_t _itail_tgt = 0; 671 RECOMP_REGS_LOCALS 672 RECOMP_ENTER(0x20005220u); 673 674 L_20005220: 675 PUSH32(esp, esi); /* 0x20005220: push esi */ 676 esi = ecx; /* 0x20005221: mov esi, ecx */ 677 PUSH32(esp, 0); /* 0x20005223: push 0 */ 678 RECOMP_ICALL(0x20001B10u); /* 0x20005225: call 0x20001b10 */ /* not lifted */ 679 RECOMP_FLAGS_IN(); 680 PUSH32(esp, 3); /* 0x2000522A: push 3 */ 681 ecx = esi; /* 0x2000522C: mov ecx, esi */ 682 RECOMP_ICALL(0x20001BD0u); /* 0x2000522E: call 0x20001bd0 */ /* not lifted */ 683 RECOMP_FLAGS_IN(); 684 ecx = esi; /* 0x20005233: mov ecx, esi */ 685 RECOMP_ICALL(0x20005290u); /* 0x20005235: call 0x20005290 */ /* not lifted */ 686 RECOMP_FLAGS_IN(); 687 ecx = esi; /* 0x2000523A: mov ecx, esi */ 688 RECOMP_ICALL(0x200053B0u); /* 0x2000523C: call 0x200053b0 */ /* not lifted */ 689 RECOMP_FLAGS_IN(); 690 esi = POP32_VAL(esp); /* 0x20005241: pop esi */ 691 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005242: ret */ 692 RECOMP_REGS_OUT(); 693 } 694 695 void sub_20005250(void) { 696 int _fpu_cmp = 0; 697 uint32_t _cf = 0; 698 int _df = 1; 699 uint32_t _flag_k = FK_NONE; 700 uint32_t _flag_a = 0, _flag_b = 0; 701 uint32_t _itail_tgt = 0; 702 RECOMP_REGS_LOCALS 703 RECOMP_ENTER(0x20005250u); 704 705 L_20005250: 706 PUSH32(esp, ebp); /* 0x20005250: push ebp */ 707 ebp = esp; /* 0x20005251: mov ebp, esp */ 708 PUSH32(esp, esi); /* 0x20005253: push esi */ 709 PUSH32(esp, edi); /* 0x20005254: push edi */ 710 edi = MEM32(ebp + 0x8); /* 0x20005255: mov edi, dword ptr [ebp + 8] */ 711 esi = ecx; /* 0x20005258: mov esi, ecx */ 712 ecx = MEM32(esi + 0x728); /* 0x2000525A: mov ecx, dword ptr [esi + 0x728] */ 713 PUSH32(esp, edi); /* 0x20005260: push edi */ 714 RECOMP_ICALL(0x20004CB0u); /* 0x20005261: call 0x20004cb0 */ /* not lifted */ 715 RECOMP_FLAGS_IN(); 716 /* test eax, eax */ /* 0x20005266: test eax, eax */ 717 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 718 _cf = 0; 719 _flag_k = FK_TEST; 720 if (TEST_NZ(_flag_a, _flag_b)) goto L_20005282; /* 0x20005268: jne 0x20005282 */ 721 L_2000526A: 722 ecx = MEM32(esi + 0x72C); /* 0x2000526A: mov ecx, dword ptr [esi + 0x72c] */ 723 PUSH32(esp, edi); /* 0x20005270: push edi */ 724 RECOMP_ICALL(0x20004CB0u); /* 0x20005271: call 0x20004cb0 */ /* not lifted */ 725 RECOMP_FLAGS_IN(); 726 /* test eax, eax */ /* 0x20005276: test eax, eax */ 727 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 728 _cf = 0; 729 _flag_k = FK_TEST; 730 if (TEST_NZ(_flag_a, _flag_b)) goto L_20005282; /* 0x20005278: jne 0x20005282 */ 731 L_2000527A: 732 edi = POP32_VAL(esp); /* 0x2000527A: pop edi */ 733 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 734 SET_LO8(eax, 0); /* 0x2000527B: xor al, al */ 735 _cf = 0; 736 _flag_k = FK_NARROW(FK_TEST, 24); 737 esi = POP32_VAL(esp); /* 0x2000527D: pop esi */ 738 ebp = POP32_VAL(esp); /* 0x2000527E: pop ebp */ 739 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2000527F: ret 4 */ 740 L_20005282: 741 edi = POP32_VAL(esp); /* 0x20005282: pop edi */ 742 SET_LO8(eax, 1); /* 0x20005283: mov al, 1 */ 743 esi = POP32_VAL(esp); /* 0x20005285: pop esi */ 744 ebp = POP32_VAL(esp); /* 0x20005286: pop ebp */ 745 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20005287: ret 4 */ 746 RECOMP_REGS_OUT(); 747 } 748 749 void sub_20005290(void) { 750 int _fpu_cmp = 0; 751 uint32_t _cf = 0; 752 int _df = 1; 753 uint32_t _flag_k = FK_NONE; 754 uint32_t _flag_a = 0, _flag_b = 0; 755 uint32_t _itail_tgt = 0; 756 RECOMP_REGS_LOCALS 757 RECOMP_ENTER(0x20005290u); 758 759 L_20005290: 760 PUSH32(esp, esi); /* 0x20005290: push esi */ 761 esi = ecx; /* 0x20005291: mov esi, ecx */ 762 /* cmp MEM32(esi + 0x70C), 1 */ /* 0x20005293: cmp dword ptr [esi + 0x70c], 1 */ 763 _flag_a = (uint32_t)(MEM32(esi + 0x70C)); _flag_b = (uint32_t)(1); 764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 765 _flag_k = FK_CMP; 766 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005308; /* 0x2000529A: je 0x20005308 */ 767 L_2000529C: 768 eax = MEM32(esi + 0x714); /* 0x2000529C: mov eax, dword ptr [esi + 0x714] */ 769 ecx = MEM32(eax + 0x8); /* 0x200052A2: mov ecx, dword ptr [eax + 8] */ 770 /* test ecx, ecx */ /* 0x200052A5: test ecx, ecx */ 771 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 772 _cf = 0; 773 _flag_k = FK_TEST; 774 if (TEST_Z(_flag_a, _flag_b)) goto L_20005308; /* 0x200052A7: je 0x20005308 */ 775 L_200052A9: 776 PUSH32(esp, edi); /* 0x200052A9: push edi */ 777 L_200052AA: 778 eax = MEM32(eax + 0x4); /* 0x200052AA: mov eax, dword ptr [eax + 4] */ 779 eax = MEM32(eax); /* 0x200052AD: mov eax, dword ptr [eax] */ 780 eax = MEM32(eax + 0x8); /* 0x200052AF: mov eax, dword ptr [eax + 8] */ 781 ecx = MEM32(esi + 0x724); /* 0x200052B2: mov ecx, dword ptr [esi + 0x724] */ 782 PUSH32(esp, eax); /* 0x200052B8: push eax */ 783 RECOMP_ICALL(0x20004CB0u); /* 0x200052B9: call 0x20004cb0 */ /* not lifted */ 784 RECOMP_FLAGS_IN(); 785 /* test eax, eax */ /* 0x200052BE: test eax, eax */ 786 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 787 _cf = 0; 788 _flag_k = FK_TEST; 789 if (TEST_Z(_flag_a, _flag_b)) goto L_200052D0; /* 0x200052C0: je 0x200052d0 */ 790 L_200052C2: 791 ecx = MEM32(esi + 0x728); /* 0x200052C2: mov ecx, dword ptr [esi + 0x728] */ 792 PUSH32(esp, 1); /* 0x200052C8: push 1 */ 793 PUSH32(esp, eax); /* 0x200052CA: push eax */ 794 RECOMP_ICALL(0x20004B60u); /* 0x200052CB: call 0x20004b60 */ /* not lifted */ 795 RECOMP_FLAGS_IN(); 796 L_200052D0: 797 edi = MEM32(esi + 0x714); /* 0x200052D0: mov edi, dword ptr [esi + 0x714] */ 798 ecx = MEM32(edi + 0x4); /* 0x200052D6: mov ecx, dword ptr [edi + 4] */ 799 eax = MEM32(ecx); /* 0x200052D9: mov eax, dword ptr [ecx] */ 800 edx = MEM32(eax + 0x4); /* 0x200052DB: mov edx, dword ptr [eax + 4] */ 801 ecx = MEM32(eax); /* 0x200052DE: mov ecx, dword ptr [eax] */ 802 MEM32(edx) = ecx; /* 0x200052E0: mov dword ptr [edx], ecx */ 803 edx = MEM32(eax); /* 0x200052E2: mov edx, dword ptr [eax] */ 804 ecx = MEM32(eax + 0x4); /* 0x200052E4: mov ecx, dword ptr [eax + 4] */ 805 PUSH32(esp, eax); /* 0x200052E7: push eax */ 806 MEM32(edx + 0x4) = ecx; /* 0x200052E8: mov dword ptr [edx + 4], ecx */ 807 RECOMP_ICALL(0x20007270u); /* 0x200052EB: call 0x20007270 */ /* not lifted */ 808 RECOMP_FLAGS_IN(); 809 edx = MEM32(edi + 0x8); /* 0x200052F0: mov edx, dword ptr [edi + 8] */ 810 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 811 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 812 esp = esp + 4; /* 0x200052F3: add esp, 4 */ 813 _flag_k = FK_ADD; 814 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 815 edx = edx - 1; /* 0x200052F6: dec edx */ 816 _flag_k = FK_DEC; 817 MEM32(edi + 0x8) = edx; /* 0x200052F7: mov dword ptr [edi + 8], edx */ 818 eax = MEM32(esi + 0x714); /* 0x200052FA: mov eax, dword ptr [esi + 0x714] */ 819 ecx = MEM32(eax + 0x8); /* 0x20005300: mov ecx, dword ptr [eax + 8] */ 820 /* test ecx, ecx */ /* 0x20005303: test ecx, ecx */ 821 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 822 _cf = 0; 823 _flag_k = FK_TEST; 824 RECOMP_BACKEDGE(); 825 if (TEST_NZ(_flag_a, _flag_b)) goto L_200052AA; /* 0x20005305: jne 0x200052aa */ 826 L_20005307: 827 edi = POP32_VAL(esp); /* 0x20005307: pop edi */ 828 L_20005308: 829 esi = POP32_VAL(esp); /* 0x20005308: pop esi */ 830 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005309: ret */ 831 RECOMP_REGS_OUT(); 832 } 833 834 void sub_20005310(void) { 835 int _fpu_cmp = 0; 836 uint32_t _cf = 0; 837 int _df = 1; 838 uint32_t _flag_k = FK_NONE; 839 uint32_t _flag_a = 0, _flag_b = 0; 840 uint32_t _itail_tgt = 0; 841 RECOMP_REGS_LOCALS 842 RECOMP_ENTER(0x20005310u); 843 844 L_20005310: 845 PUSH32(esp, esi); /* 0x20005310: push esi */ 846 esi = ecx; /* 0x20005311: mov esi, ecx */ 847 /* cmp MEM32(esi + 0x70C), 1 */ /* 0x20005313: cmp dword ptr [esi + 0x70c], 1 */ 848 _flag_a = (uint32_t)(MEM32(esi + 0x70C)); _flag_b = (uint32_t)(1); 849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 850 _flag_k = FK_CMP; 851 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005382; /* 0x2000531A: je 0x20005382 */ 852 L_2000531C: 853 eax = MEM32(esi + 0x718); /* 0x2000531C: mov eax, dword ptr [esi + 0x718] */ 854 ecx = MEM32(eax + 0x8); /* 0x20005322: mov ecx, dword ptr [eax + 8] */ 855 /* test ecx, ecx */ /* 0x20005325: test ecx, ecx */ 856 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 857 _cf = 0; 858 _flag_k = FK_TEST; 859 if (TEST_Z(_flag_a, _flag_b)) goto L_20005382; /* 0x20005327: je 0x20005382 */ 860 L_20005329: 861 PUSH32(esp, edi); /* 0x20005329: push edi */ 862 L_2000532A: 863 eax = MEM32(eax + 0x4); /* 0x2000532A: mov eax, dword ptr [eax + 4] */ 864 eax = MEM32(eax); /* 0x2000532D: mov eax, dword ptr [eax] */ 865 eax = MEM32(eax + 0x8); /* 0x2000532F: mov eax, dword ptr [eax + 8] */ 866 ecx = MEM32(esi + 0x724); /* 0x20005332: mov ecx, dword ptr [esi + 0x724] */ 867 PUSH32(esp, eax); /* 0x20005338: push eax */ 868 RECOMP_ICALL(0x20004CB0u); /* 0x20005339: call 0x20004cb0 */ /* not lifted */ 869 RECOMP_FLAGS_IN(); 870 ecx = MEM32(esi + 0x728); /* 0x2000533E: mov ecx, dword ptr [esi + 0x728] */ 871 PUSH32(esp, eax); /* 0x20005344: push eax */ 872 RECOMP_ICALL(0x20004BC0u); /* 0x20005345: call 0x20004bc0 */ /* not lifted */ 873 RECOMP_FLAGS_IN(); 874 edi = MEM32(esi + 0x718); /* 0x2000534A: mov edi, dword ptr [esi + 0x718] */ 875 ecx = MEM32(edi + 0x4); /* 0x20005350: mov ecx, dword ptr [edi + 4] */ 876 eax = MEM32(ecx); /* 0x20005353: mov eax, dword ptr [ecx] */ 877 edx = MEM32(eax + 0x4); /* 0x20005355: mov edx, dword ptr [eax + 4] */ 878 ecx = MEM32(eax); /* 0x20005358: mov ecx, dword ptr [eax] */ 879 MEM32(edx) = ecx; /* 0x2000535A: mov dword ptr [edx], ecx */ 880 edx = MEM32(eax); /* 0x2000535C: mov edx, dword ptr [eax] */ 881 ecx = MEM32(eax + 0x4); /* 0x2000535E: mov ecx, dword ptr [eax + 4] */ 882 PUSH32(esp, eax); /* 0x20005361: push eax */ 883 MEM32(edx + 0x4) = ecx; /* 0x20005362: mov dword ptr [edx + 4], ecx */ 884 RECOMP_ICALL(0x20007270u); /* 0x20005365: call 0x20007270 */ /* not lifted */ 885 RECOMP_FLAGS_IN(); 886 edx = MEM32(edi + 0x8); /* 0x2000536A: mov edx, dword ptr [edi + 8] */ 887 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 888 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 889 esp = esp + 4; /* 0x2000536D: add esp, 4 */ 890 _flag_k = FK_ADD; 891 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 892 edx = edx - 1; /* 0x20005370: dec edx */ 893 _flag_k = FK_DEC; 894 MEM32(edi + 0x8) = edx; /* 0x20005371: mov dword ptr [edi + 8], edx */ 895 eax = MEM32(esi + 0x718); /* 0x20005374: mov eax, dword ptr [esi + 0x718] */ 896 ecx = MEM32(eax + 0x8); /* 0x2000537A: mov ecx, dword ptr [eax + 8] */ 897 /* test ecx, ecx */ /* 0x2000537D: test ecx, ecx */ 898 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 899 _cf = 0; 900 _flag_k = FK_TEST; 901 RECOMP_BACKEDGE(); 902 if (TEST_NZ(_flag_a, _flag_b)) goto L_2000532A; /* 0x2000537F: jne 0x2000532a */ 903 L_20005381: 904 edi = POP32_VAL(esp); /* 0x20005381: pop edi */ 905 L_20005382: 906 esi = POP32_VAL(esp); /* 0x20005382: pop esi */ 907 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005383: ret */ 908 RECOMP_REGS_OUT(); 909 } 910 911 void sub_20005390(void) { 912 int _fpu_cmp = 0; 913 uint32_t _cf = 0; 914 int _df = 1; 915 uint32_t _flag_k = FK_NONE; 916 uint32_t _flag_a = 0, _flag_b = 0; 917 uint32_t _itail_tgt = 0; 918 RECOMP_REGS_LOCALS 919 RECOMP_ENTER(0x20005390u); 920 921 goto L_20005390; 922 L_20004D80: 923 PUSH32(esp, edi); /* 0x20004D80: push edi */ 924 edi = ecx; /* 0x20004D81: mov edi, ecx */ 925 eax = MEM32(edi); /* 0x20004D83: mov eax, dword ptr [edi] */ 926 ecx = MEM32(eax + 0x8); /* 0x20004D85: mov ecx, dword ptr [eax + 8] */ 927 /* test ecx, ecx */ /* 0x20004D88: test ecx, ecx */ 928 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 929 _cf = 0; 930 _flag_k = FK_TEST; 931 if (TEST_Z(_flag_a, _flag_b)) goto L_20004DD9; /* 0x20004D8A: je 0x20004dd9 */ 932 L_20004D8C: 933 PUSH32(esp, esi); /* 0x20004D8C: push esi */ 934 L_20004D8D: 935 eax = MEM32(eax + 0x4); /* 0x20004D8D: mov eax, dword ptr [eax + 4] */ 936 eax = MEM32(eax); /* 0x20004D90: mov eax, dword ptr [eax] */ 937 esi = MEM32(eax + 0x8); /* 0x20004D92: mov esi, dword ptr [eax + 8] */ 938 /* test esi, esi */ /* 0x20004D95: test esi, esi */ 939 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 940 _cf = 0; 941 _flag_k = FK_TEST; 942 if (TEST_Z(_flag_a, _flag_b)) goto L_20004DA9; /* 0x20004D97: je 0x20004da9 */ 943 L_20004D99: 944 ecx = esi; /* 0x20004D99: mov ecx, esi */ 945 RECOMP_ICALL(0x20005C50u); /* 0x20004D9B: call 0x20005c50 */ /* not lifted */ 946 RECOMP_FLAGS_IN(); 947 PUSH32(esp, esi); /* 0x20004DA0: push esi */ 948 RECOMP_ICALL(0x20007270u); /* 0x20004DA1: call 0x20007270 */ /* not lifted */ 949 RECOMP_FLAGS_IN(); 950 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 951 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 952 esp = esp + 4; /* 0x20004DA6: add esp, 4 */ 953 _flag_k = FK_ADD; 954 L_20004DA9: 955 esi = MEM32(edi); /* 0x20004DA9: mov esi, dword ptr [edi] */ 956 ecx = MEM32(esi + 0x4); /* 0x20004DAB: mov ecx, dword ptr [esi + 4] */ 957 eax = MEM32(ecx); /* 0x20004DAE: mov eax, dword ptr [ecx] */ 958 edx = MEM32(eax + 0x4); /* 0x20004DB0: mov edx, dword ptr [eax + 4] */ 959 ecx = MEM32(eax); /* 0x20004DB3: mov ecx, dword ptr [eax] */ 960 MEM32(edx) = ecx; /* 0x20004DB5: mov dword ptr [edx], ecx */ 961 edx = MEM32(eax); /* 0x20004DB7: mov edx, dword ptr [eax] */ 962 ecx = MEM32(eax + 0x4); /* 0x20004DB9: mov ecx, dword ptr [eax + 4] */ 963 PUSH32(esp, eax); /* 0x20004DBC: push eax */ 964 MEM32(edx + 0x4) = ecx; /* 0x20004DBD: mov dword ptr [edx + 4], ecx */ 965 RECOMP_ICALL(0x20007270u); /* 0x20004DC0: call 0x20007270 */ /* not lifted */ 966 RECOMP_FLAGS_IN(); 967 edx = MEM32(esi + 0x8); /* 0x20004DC5: mov edx, dword ptr [esi + 8] */ 968 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 970 esp = esp + 4; /* 0x20004DC8: add esp, 4 */ 971 _flag_k = FK_ADD; 972 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 973 edx = edx - 1; /* 0x20004DCB: dec edx */ 974 _flag_k = FK_DEC; 975 MEM32(esi + 0x8) = edx; /* 0x20004DCC: mov dword ptr [esi + 8], edx */ 976 eax = MEM32(edi); /* 0x20004DCF: mov eax, dword ptr [edi] */ 977 ecx = MEM32(eax + 0x8); /* 0x20004DD1: mov ecx, dword ptr [eax + 8] */ 978 /* test ecx, ecx */ /* 0x20004DD4: test ecx, ecx */ 979 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 980 _cf = 0; 981 _flag_k = FK_TEST; 982 RECOMP_BACKEDGE(); 983 if (TEST_NZ(_flag_a, _flag_b)) goto L_20004D8D; /* 0x20004DD6: jne 0x20004d8d */ 984 L_20004DD8: 985 esi = POP32_VAL(esp); /* 0x20004DD8: pop esi */ 986 L_20004DD9: 987 edi = POP32_VAL(esp); /* 0x20004DD9: pop edi */ 988 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20004DDA: ret */ 989 L_20005390: 990 /* cmp MEM32(ecx + 0x70C), 1 */ /* 0x20005390: cmp dword ptr [ecx + 0x70c], 1 */ 991 _flag_a = (uint32_t)(MEM32(ecx + 0x70C)); _flag_b = (uint32_t)(1); 992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 993 _flag_k = FK_CMP; 994 if (CMP_EQ(_flag_a, _flag_b)) goto L_200053A4; /* 0x20005397: je 0x200053a4 */ 995 L_20005399: 996 ecx = MEM32(ecx + 0x728); /* 0x20005399: mov ecx, dword ptr [ecx + 0x728] */ 997 RECOMP_BACKEDGE(); 998 goto L_20004D80; /* 0x2000539F: jmp 0x20004d80 */ 999 L_200053A4: 1000 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x200053A4: ret */ 1001 RECOMP_REGS_OUT(); 1002 } 1003 1004 void sub_200053B0(void) { 1005 int _fpu_cmp = 0; 1006 uint32_t _cf = 0; 1007 int _df = 1; 1008 uint32_t _flag_k = FK_NONE; 1009 uint32_t _flag_a = 0, _flag_b = 0; 1010 uint32_t _itail_tgt = 0; 1011 RECOMP_REGS_LOCALS 1012 RECOMP_ENTER(0x200053B0u); 1013 1014 L_200053B0: 1015 PUSH32(esp, esi); /* 0x200053B0: push esi */ 1016 esi = ecx; /* 0x200053B1: mov esi, ecx */ 1017 /* cmp MEM32(esi + 0x70C), 1 */ /* 0x200053B3: cmp dword ptr [esi + 0x70c], 1 */ 1018 _flag_a = (uint32_t)(MEM32(esi + 0x70C)); _flag_b = (uint32_t)(1); 1019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1020 _flag_k = FK_CMP; 1021 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005428; /* 0x200053BA: je 0x20005428 */ 1022 L_200053BC: 1023 eax = MEM32(esi + 0x71C); /* 0x200053BC: mov eax, dword ptr [esi + 0x71c] */ 1024 ecx = MEM32(eax + 0x8); /* 0x200053C2: mov ecx, dword ptr [eax + 8] */ 1025 /* test ecx, ecx */ /* 0x200053C5: test ecx, ecx */ 1026 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1027 _cf = 0; 1028 _flag_k = FK_TEST; 1029 if (TEST_Z(_flag_a, _flag_b)) goto L_20005428; /* 0x200053C7: je 0x20005428 */ 1030 L_200053C9: 1031 PUSH32(esp, edi); /* 0x200053C9: push edi */ 1032 L_200053CA: 1033 eax = MEM32(eax + 0x4); /* 0x200053CA: mov eax, dword ptr [eax + 4] */ 1034 eax = MEM32(eax); /* 0x200053CD: mov eax, dword ptr [eax] */ 1035 eax = MEM32(eax + 0x8); /* 0x200053CF: mov eax, dword ptr [eax + 8] */ 1036 ecx = MEM32(esi + 0x724); /* 0x200053D2: mov ecx, dword ptr [esi + 0x724] */ 1037 PUSH32(esp, eax); /* 0x200053D8: push eax */ 1038 RECOMP_ICALL(0x20004CB0u); /* 0x200053D9: call 0x20004cb0 */ /* not lifted */ 1039 RECOMP_FLAGS_IN(); 1040 /* test eax, eax */ /* 0x200053DE: test eax, eax */ 1041 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1042 _cf = 0; 1043 _flag_k = FK_TEST; 1044 if (TEST_Z(_flag_a, _flag_b)) goto L_200053F0; /* 0x200053E0: je 0x200053f0 */ 1045 L_200053E2: 1046 ecx = MEM32(esi + 0x72C); /* 0x200053E2: mov ecx, dword ptr [esi + 0x72c] */ 1047 PUSH32(esp, 1); /* 0x200053E8: push 1 */ 1048 PUSH32(esp, eax); /* 0x200053EA: push eax */ 1049 RECOMP_ICALL(0x20004B60u); /* 0x200053EB: call 0x20004b60 */ /* not lifted */ 1050 RECOMP_FLAGS_IN(); 1051 L_200053F0: 1052 edi = MEM32(esi + 0x71C); /* 0x200053F0: mov edi, dword ptr [esi + 0x71c] */ 1053 ecx = MEM32(edi + 0x4); /* 0x200053F6: mov ecx, dword ptr [edi + 4] */ 1054 eax = MEM32(ecx); /* 0x200053F9: mov eax, dword ptr [ecx] */ 1055 edx = MEM32(eax + 0x4); /* 0x200053FB: mov edx, dword ptr [eax + 4] */ 1056 ecx = MEM32(eax); /* 0x200053FE: mov ecx, dword ptr [eax] */ 1057 MEM32(edx) = ecx; /* 0x20005400: mov dword ptr [edx], ecx */ 1058 edx = MEM32(eax); /* 0x20005402: mov edx, dword ptr [eax] */ 1059 ecx = MEM32(eax + 0x4); /* 0x20005404: mov ecx, dword ptr [eax + 4] */ 1060 PUSH32(esp, eax); /* 0x20005407: push eax */ 1061 MEM32(edx + 0x4) = ecx; /* 0x20005408: mov dword ptr [edx + 4], ecx */ 1062 RECOMP_ICALL(0x20007270u); /* 0x2000540B: call 0x20007270 */ /* not lifted */ 1063 RECOMP_FLAGS_IN(); 1064 edx = MEM32(edi + 0x8); /* 0x20005410: mov edx, dword ptr [edi + 8] */ 1065 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1066 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1067 esp = esp + 4; /* 0x20005413: add esp, 4 */ 1068 _flag_k = FK_ADD; 1069 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1070 edx = edx - 1; /* 0x20005416: dec edx */ 1071 _flag_k = FK_DEC; 1072 MEM32(edi + 0x8) = edx; /* 0x20005417: mov dword ptr [edi + 8], edx */ 1073 eax = MEM32(esi + 0x71C); /* 0x2000541A: mov eax, dword ptr [esi + 0x71c] */ 1074 ecx = MEM32(eax + 0x8); /* 0x20005420: mov ecx, dword ptr [eax + 8] */ 1075 /* test ecx, ecx */ /* 0x20005423: test ecx, ecx */ 1076 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1077 _cf = 0; 1078 _flag_k = FK_TEST; 1079 RECOMP_BACKEDGE(); 1080 if (TEST_NZ(_flag_a, _flag_b)) goto L_200053CA; /* 0x20005425: jne 0x200053ca */ 1081 L_20005427: 1082 edi = POP32_VAL(esp); /* 0x20005427: pop edi */ 1083 L_20005428: 1084 esi = POP32_VAL(esp); /* 0x20005428: pop esi */ 1085 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005429: ret */ 1086 RECOMP_REGS_OUT(); 1087 } 1088 1089 void sub_20005430(void) { 1090 int _fpu_cmp = 0; 1091 uint32_t _cf = 0; 1092 int _df = 1; 1093 uint32_t _flag_k = FK_NONE; 1094 uint32_t _flag_a = 0, _flag_b = 0; 1095 uint32_t _itail_tgt = 0; 1096 RECOMP_REGS_LOCALS 1097 RECOMP_ENTER(0x20005430u); 1098 1099 L_20005430: 1100 PUSH32(esp, esi); /* 0x20005430: push esi */ 1101 esi = ecx; /* 0x20005431: mov esi, ecx */ 1102 /* cmp MEM32(esi + 0x70C), 1 */ /* 0x20005433: cmp dword ptr [esi + 0x70c], 1 */ 1103 _flag_a = (uint32_t)(MEM32(esi + 0x70C)); _flag_b = (uint32_t)(1); 1104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1105 _flag_k = FK_CMP; 1106 if (CMP_EQ(_flag_a, _flag_b)) goto L_200054A2; /* 0x2000543A: je 0x200054a2 */ 1107 L_2000543C: 1108 eax = MEM32(esi + 0x720); /* 0x2000543C: mov eax, dword ptr [esi + 0x720] */ 1109 ecx = MEM32(eax + 0x8); /* 0x20005442: mov ecx, dword ptr [eax + 8] */ 1110 /* test ecx, ecx */ /* 0x20005445: test ecx, ecx */ 1111 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1112 _cf = 0; 1113 _flag_k = FK_TEST; 1114 if (TEST_Z(_flag_a, _flag_b)) goto L_200054A2; /* 0x20005447: je 0x200054a2 */ 1115 L_20005449: 1116 PUSH32(esp, edi); /* 0x20005449: push edi */ 1117 L_2000544A: 1118 eax = MEM32(eax + 0x4); /* 0x2000544A: mov eax, dword ptr [eax + 4] */ 1119 eax = MEM32(eax); /* 0x2000544D: mov eax, dword ptr [eax] */ 1120 eax = MEM32(eax + 0x8); /* 0x2000544F: mov eax, dword ptr [eax + 8] */ 1121 ecx = MEM32(esi + 0x724); /* 0x20005452: mov ecx, dword ptr [esi + 0x724] */ 1122 PUSH32(esp, eax); /* 0x20005458: push eax */ 1123 RECOMP_ICALL(0x20004CB0u); /* 0x20005459: call 0x20004cb0 */ /* not lifted */ 1124 RECOMP_FLAGS_IN(); 1125 ecx = MEM32(esi + 0x72C); /* 0x2000545E: mov ecx, dword ptr [esi + 0x72c] */ 1126 PUSH32(esp, eax); /* 0x20005464: push eax */ 1127 RECOMP_ICALL(0x20004BC0u); /* 0x20005465: call 0x20004bc0 */ /* not lifted */ 1128 RECOMP_FLAGS_IN(); 1129 edi = MEM32(esi + 0x720); /* 0x2000546A: mov edi, dword ptr [esi + 0x720] */ 1130 ecx = MEM32(edi + 0x4); /* 0x20005470: mov ecx, dword ptr [edi + 4] */ 1131 eax = MEM32(ecx); /* 0x20005473: mov eax, dword ptr [ecx] */ 1132 edx = MEM32(eax + 0x4); /* 0x20005475: mov edx, dword ptr [eax + 4] */ 1133 ecx = MEM32(eax); /* 0x20005478: mov ecx, dword ptr [eax] */ 1134 MEM32(edx) = ecx; /* 0x2000547A: mov dword ptr [edx], ecx */ 1135 edx = MEM32(eax); /* 0x2000547C: mov edx, dword ptr [eax] */ 1136 ecx = MEM32(eax + 0x4); /* 0x2000547E: mov ecx, dword ptr [eax + 4] */ 1137 PUSH32(esp, eax); /* 0x20005481: push eax */ 1138 MEM32(edx + 0x4) = ecx; /* 0x20005482: mov dword ptr [edx + 4], ecx */ 1139 RECOMP_ICALL(0x20007270u); /* 0x20005485: call 0x20007270 */ /* not lifted */ 1140 RECOMP_FLAGS_IN(); 1141 edx = MEM32(edi + 0x8); /* 0x2000548A: mov edx, dword ptr [edi + 8] */ 1142 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1144 esp = esp + 4; /* 0x2000548D: add esp, 4 */ 1145 _flag_k = FK_ADD; 1146 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1147 edx = edx - 1; /* 0x20005490: dec edx */ 1148 _flag_k = FK_DEC; 1149 MEM32(edi + 0x8) = edx; /* 0x20005491: mov dword ptr [edi + 8], edx */ 1150 eax = MEM32(esi + 0x720); /* 0x20005494: mov eax, dword ptr [esi + 0x720] */ 1151 ecx = MEM32(eax + 0x8); /* 0x2000549A: mov ecx, dword ptr [eax + 8] */ 1152 /* test ecx, ecx */ /* 0x2000549D: test ecx, ecx */ 1153 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1154 _cf = 0; 1155 _flag_k = FK_TEST; 1156 RECOMP_BACKEDGE(); 1157 if (TEST_NZ(_flag_a, _flag_b)) goto L_2000544A; /* 0x2000549F: jne 0x2000544a */ 1158 L_200054A1: 1159 edi = POP32_VAL(esp); /* 0x200054A1: pop edi */ 1160 L_200054A2: 1161 esi = POP32_VAL(esp); /* 0x200054A2: pop esi */ 1162 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x200054A3: ret */ 1163 RECOMP_REGS_OUT(); 1164 } 1165 1166 void sub_200054B0(void) { 1167 int _fpu_cmp = 0; 1168 uint32_t _cf = 0; 1169 int _df = 1; 1170 uint32_t _flag_k = FK_NONE; 1171 uint32_t _flag_a = 0, _flag_b = 0; 1172 uint32_t _itail_tgt = 0; 1173 RECOMP_REGS_LOCALS 1174 RECOMP_ENTER(0x200054B0u); 1175 1176 L_200054B0: 1177 PUSH32(esp, esi); /* 0x200054B0: push esi */ 1178 esi = ecx; /* 0x200054B1: mov esi, ecx */ 1179 /* cmp MEM32(esi + 0x70C), 1 */ /* 0x200054B3: cmp dword ptr [esi + 0x70c], 1 */ 1180 _flag_a = (uint32_t)(MEM32(esi + 0x70C)); _flag_b = (uint32_t)(1); 1181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1182 _flag_k = FK_CMP; 1183 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005511; /* 0x200054BA: je 0x20005511 */ 1184 L_200054BC: 1185 RECOMP_ICALL(0x20005520u); /* 0x200054BC: call 0x20005520 */ /* not lifted */ 1186 RECOMP_FLAGS_IN(); 1187 eax = MEM32(esi + 0x718); /* 0x200054C1: mov eax, dword ptr [esi + 0x718] */ 1188 ecx = MEM32(eax + 0x8); /* 0x200054C7: mov ecx, dword ptr [eax + 8] */ 1189 /* test ecx, ecx */ /* 0x200054CA: test ecx, ecx */ 1190 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1191 _cf = 0; 1192 _flag_k = FK_TEST; 1193 if (TEST_Z(_flag_a, _flag_b)) goto L_200054D5; /* 0x200054CC: je 0x200054d5 */ 1194 L_200054CE: 1195 ecx = esi; /* 0x200054CE: mov ecx, esi */ 1196 RECOMP_ICALL(0x20005310u); /* 0x200054D0: call 0x20005310 */ /* not lifted */ 1197 RECOMP_FLAGS_IN(); 1198 L_200054D5: 1199 ecx = MEM32(esi + 0x714); /* 0x200054D5: mov ecx, dword ptr [esi + 0x714] */ 1200 eax = MEM32(ecx + 0x8); /* 0x200054DB: mov eax, dword ptr [ecx + 8] */ 1201 /* test eax, eax */ /* 0x200054DE: test eax, eax */ 1202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1203 _cf = 0; 1204 _flag_k = FK_TEST; 1205 if (TEST_Z(_flag_a, _flag_b)) goto L_200054E9; /* 0x200054E0: je 0x200054e9 */ 1206 L_200054E2: 1207 ecx = esi; /* 0x200054E2: mov ecx, esi */ 1208 RECOMP_ICALL(0x20005290u); /* 0x200054E4: call 0x20005290 */ /* not lifted */ 1209 RECOMP_FLAGS_IN(); 1210 L_200054E9: 1211 edx = MEM32(esi + 0x720); /* 0x200054E9: mov edx, dword ptr [esi + 0x720] */ 1212 eax = MEM32(edx + 0x8); /* 0x200054EF: mov eax, dword ptr [edx + 8] */ 1213 /* test eax, eax */ /* 0x200054F2: test eax, eax */ 1214 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1215 _cf = 0; 1216 _flag_k = FK_TEST; 1217 if (TEST_Z(_flag_a, _flag_b)) goto L_200054FD; /* 0x200054F4: je 0x200054fd */ 1218 L_200054F6: 1219 ecx = esi; /* 0x200054F6: mov ecx, esi */ 1220 RECOMP_ICALL(0x20005430u); /* 0x200054F8: call 0x20005430 */ /* not lifted */ 1221 RECOMP_FLAGS_IN(); 1222 L_200054FD: 1223 eax = MEM32(esi + 0x71C); /* 0x200054FD: mov eax, dword ptr [esi + 0x71c] */ 1224 ecx = MEM32(eax + 0x8); /* 0x20005503: mov ecx, dword ptr [eax + 8] */ 1225 /* test ecx, ecx */ /* 0x20005506: test ecx, ecx */ 1226 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1227 _cf = 0; 1228 _flag_k = FK_TEST; 1229 if (TEST_Z(_flag_a, _flag_b)) goto L_20005511; /* 0x20005508: je 0x20005511 */ 1230 L_2000550A: 1231 ecx = esi; /* 0x2000550A: mov ecx, esi */ 1232 RECOMP_ICALL(0x200053B0u); /* 0x2000550C: call 0x200053b0 */ /* not lifted */ 1233 RECOMP_FLAGS_IN(); 1234 L_20005511: 1235 esi = POP32_VAL(esp); /* 0x20005511: pop esi */ 1236 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005512: ret */ 1237 RECOMP_REGS_OUT(); 1238 } 1239 1240 void sub_20005520(void) { 1241 int _fpu_cmp = 0; 1242 uint32_t _cf = 0; 1243 int _df = 1; 1244 uint32_t _flag_k = FK_NONE; 1245 uint32_t _flag_a = 0, _flag_b = 0; 1246 uint32_t _itail_tgt = 0; 1247 RECOMP_REGS_LOCALS 1248 RECOMP_ENTER(0x20005520u); 1249 1250 L_20005520: 1251 PUSH32(esp, esi); /* 0x20005520: push esi */ 1252 esi = ecx; /* 0x20005521: mov esi, ecx */ 1253 /* cmp MEM32(esi + 0x70C), 1 */ /* 0x20005523: cmp dword ptr [esi + 0x70c], 1 */ 1254 _flag_a = (uint32_t)(MEM32(esi + 0x70C)); _flag_b = (uint32_t)(1); 1255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1256 _flag_k = FK_CMP; 1257 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005542; /* 0x2000552A: je 0x20005542 */ 1258 L_2000552C: 1259 ecx = MEM32(esi + 0x728); /* 0x2000552C: mov ecx, dword ptr [esi + 0x728] */ 1260 RECOMP_ICALL(0x20004C60u); /* 0x20005532: call 0x20004c60 */ /* not lifted */ 1261 RECOMP_FLAGS_IN(); 1262 ecx = MEM32(esi + 0x72C); /* 0x20005537: mov ecx, dword ptr [esi + 0x72c] */ 1263 RECOMP_ICALL(0x20004C60u); /* 0x2000553D: call 0x20004c60 */ /* not lifted */ 1264 RECOMP_FLAGS_IN(); 1265 L_20005542: 1266 esi = POP32_VAL(esp); /* 0x20005542: pop esi */ 1267 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005543: ret */ 1268 RECOMP_REGS_OUT(); 1269 } 1270 1271 void sub_20005550(void) { 1272 int _fpu_cmp = 0; 1273 uint32_t _cf = 0; 1274 int _df = 1; 1275 uint32_t _flag_k = FK_NONE; 1276 uint32_t _flag_a = 0, _flag_b = 0; 1277 uint32_t _itail_tgt = 0; 1278 RECOMP_REGS_LOCALS 1279 RECOMP_ENTER(0x20005550u); 1280 1281 L_20005550: 1282 PUSH32(esp, esi); /* 0x20005550: push esi */ 1283 esi = ecx; /* 0x20005551: mov esi, ecx */ 1284 RECOMP_ICALL(0x20005580u); /* 0x20005553: call 0x20005580 */ /* not lifted */ 1285 RECOMP_FLAGS_IN(); 1286 /* test eax, eax */ /* 0x20005558: test eax, eax */ 1287 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1288 _cf = 0; 1289 _flag_k = FK_TEST; 1290 if (TEST_Z(_flag_a, _flag_b)) goto L_20005569; /* 0x2000555A: je 0x20005569 */ 1291 L_2000555C: 1292 eax = MEM32(eax + 0x4); /* 0x2000555C: mov eax, dword ptr [eax + 4] */ 1293 PUSH32(esp, eax); /* 0x2000555F: push eax */ 1294 ecx = esi; /* 0x20005560: mov ecx, esi */ 1295 RECOMP_ICALL(0x20001D30u); /* 0x20005562: call 0x20001d30 */ /* not lifted */ 1296 RECOMP_FLAGS_IN(); 1297 esi = POP32_VAL(esp); /* 0x20005567: pop esi */ 1298 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005568: ret */ 1299 L_20005569: 1300 PUSH32(esp, 0); /* 0x20005569: push 0 */ 1301 ecx = esi; /* 0x2000556B: mov ecx, esi */ 1302 RECOMP_ICALL(0x20001D30u); /* 0x2000556D: call 0x20001d30 */ /* not lifted */ 1303 RECOMP_FLAGS_IN(); 1304 esi = POP32_VAL(esp); /* 0x20005572: pop esi */ 1305 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005573: ret */ 1306 RECOMP_REGS_OUT(); 1307 } 1308 1309 void sub_20005580(void) { 1310 int _fpu_cmp = 0; 1311 uint32_t _cf = 0; 1312 int _df = 1; 1313 uint32_t _flag_k = FK_NONE; 1314 uint32_t _flag_a = 0, _flag_b = 0; 1315 uint32_t _itail_tgt = 0; 1316 RECOMP_REGS_LOCALS 1317 RECOMP_ENTER(0x20005580u); 1318 1319 L_20005580: 1320 eax = MEM32(ecx + 0x738); /* 0x20005580: mov eax, dword ptr [ecx + 0x738] */ 1321 ecx = MEM32(eax + 0x8); /* 0x20005586: mov ecx, dword ptr [eax + 8] */ 1322 /* test ecx, ecx */ /* 0x20005589: test ecx, ecx */ 1323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1324 _cf = 0; 1325 _flag_k = FK_TEST; 1326 if (TEST_NZ(_flag_a, _flag_b)) goto L_20005590; /* 0x2000558B: jne 0x20005590 */ 1327 L_2000558D: 1328 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1329 eax = 0; /* 0x2000558D: xor eax, eax */ 1330 _cf = 0; 1331 _flag_k = FK_TEST; 1332 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000558F: ret */ 1333 L_20005590: 1334 eax = MEM32(eax + 0x4); /* 0x20005590: mov eax, dword ptr [eax + 4] */ 1335 eax = MEM32(eax); /* 0x20005593: mov eax, dword ptr [eax] */ 1336 eax = MEM32(eax + 0x8); /* 0x20005595: mov eax, dword ptr [eax + 8] */ 1337 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005598: ret */ 1338 RECOMP_REGS_OUT(); 1339 } 1340 1341 void sub_200055A0(void) { 1342 int _fpu_cmp = 0; 1343 uint32_t _cf = 0; 1344 int _df = 1; 1345 uint32_t _flag_k = FK_NONE; 1346 uint32_t _flag_a = 0, _flag_b = 0; 1347 uint32_t _itail_tgt = 0; 1348 RECOMP_REGS_LOCALS 1349 RECOMP_ENTER(0x200055A0u); 1350 1351 L_200055A0: 1352 RECOMP_ICALL(0x200055B0u); /* 0x200055A0: call 0x200055b0 */ /* not lifted */ 1353 RECOMP_FLAGS_IN(); 1354 goto L_200055C0; /* 0x200055A5: jmp 0x200055c0 */ 1355 L_200055C0: 1356 PUSH32(esp, 0x200055D0u); /* 0x200055C0: push 0x200055d0 */ 1357 RECOMP_ICALL(0x200072C2u); /* 0x200055C5: call 0x200072c2 */ /* not lifted */ 1358 RECOMP_FLAGS_IN(); 1359 ecx = POP32_VAL(esp); /* 0x200055CA: pop ecx */ 1360 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x200055CB: ret */ 1361 RECOMP_REGS_OUT(); 1362 } 1363 1364 void sub_200055B0(void) { 1365 int _fpu_cmp = 0; 1366 uint32_t _cf = 0; 1367 int _df = 1; 1368 uint32_t _flag_k = FK_NONE; 1369 uint32_t _flag_a = 0, _flag_b = 0; 1370 uint32_t _itail_tgt = 0; 1371 RECOMP_REGS_LOCALS 1372 RECOMP_ENTER(0x200055B0u); 1373 1374 L_200055B0: 1375 ecx = 0x20015CE9u; /* 0x200055B0: mov ecx, 0x20015ce9 */ 1376 L_200055B5: 1377 { _itail_tgt = (uint32_t)(MEM32(0x20008020)); goto _ljump; } 1378 { RECOMP_REGS_OUT(); return; } /* end of function */ 1379 _ljump: 1380 switch (_itail_tgt) { 1381 case 0x200055B0u: goto L_200055B0; 1382 case 0x200055B5u: goto L_200055B5; 1383 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1384 } 1385 RECOMP_REGS_OUT(); 1386 } 1387 1388 void sub_200055C0(void) { 1389 int _fpu_cmp = 0; 1390 uint32_t _cf = 0; 1391 int _df = 1; 1392 uint32_t _flag_k = FK_NONE; 1393 uint32_t _flag_a = 0, _flag_b = 0; 1394 uint32_t _itail_tgt = 0; 1395 RECOMP_REGS_LOCALS 1396 RECOMP_ENTER(0x200055C0u); 1397 1398 L_200055C0: 1399 PUSH32(esp, 0x200055D0u); /* 0x200055C0: push 0x200055d0 */ 1400 RECOMP_ICALL(0x200072C2u); /* 0x200055C5: call 0x200072c2 */ /* not lifted */ 1401 RECOMP_FLAGS_IN(); 1402 ecx = POP32_VAL(esp); /* 0x200055CA: pop ecx */ 1403 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x200055CB: ret */ 1404 RECOMP_REGS_OUT(); 1405 } 1406 1407 void sub_200055D0(void) { 1408 int _fpu_cmp = 0; 1409 uint32_t _cf = 0; 1410 int _df = 1; 1411 uint32_t _flag_k = FK_NONE; 1412 uint32_t _flag_a = 0, _flag_b = 0; 1413 uint32_t _itail_tgt = 0; 1414 RECOMP_REGS_LOCALS 1415 RECOMP_ENTER(0x200055D0u); 1416 1417 L_200055D0: 1418 ecx = 0x20015CE9u; /* 0x200055D0: mov ecx, 0x20015ce9 */ 1419 L_200055D5: 1420 { _itail_tgt = (uint32_t)(MEM32(0x20008024)); goto _ljump; } 1421 { RECOMP_REGS_OUT(); return; } /* end of function */ 1422 _ljump: 1423 switch (_itail_tgt) { 1424 case 0x200055D0u: goto L_200055D0; 1425 case 0x200055D5u: goto L_200055D5; 1426 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1427 } 1428 RECOMP_REGS_OUT(); 1429 } 1430 1431 void sub_200055E0(void) { 1432 int _fpu_cmp = 0; 1433 uint32_t _cf = 0; 1434 int _df = 1; 1435 uint32_t _flag_k = FK_NONE; 1436 uint32_t _flag_a = 0, _flag_b = 0; 1437 uint32_t _itail_tgt = 0; 1438 RECOMP_REGS_LOCALS 1439 RECOMP_ENTER(0x200055E0u); 1440 1441 L_200055E0: 1442 RECOMP_ICALL(0x200055F0u); /* 0x200055E0: call 0x200055f0 */ /* not lifted */ 1443 RECOMP_FLAGS_IN(); 1444 goto L_20005600; /* 0x200055E5: jmp 0x20005600 */ 1445 L_20005600: 1446 PUSH32(esp, 0x20005610u); /* 0x20005600: push 0x20005610 */ 1447 RECOMP_ICALL(0x200072C2u); /* 0x20005605: call 0x200072c2 */ /* not lifted */ 1448 RECOMP_FLAGS_IN(); 1449 ecx = POP32_VAL(esp); /* 0x2000560A: pop ecx */ 1450 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000560B: ret */ 1451 RECOMP_REGS_OUT(); 1452 } 1453 1454 void sub_200055F0(void) { 1455 int _fpu_cmp = 0; 1456 uint32_t _cf = 0; 1457 int _df = 1; 1458 uint32_t _flag_k = FK_NONE; 1459 uint32_t _flag_a = 0, _flag_b = 0; 1460 uint32_t _itail_tgt = 0; 1461 RECOMP_REGS_LOCALS 1462 RECOMP_ENTER(0x200055F0u); 1463 1464 L_200055F0: 1465 ecx = 0x20015CE8u; /* 0x200055F0: mov ecx, 0x20015ce8 */ 1466 L_200055F5: 1467 { _itail_tgt = (uint32_t)(MEM32(0x20008028)); goto _ljump; } 1468 { RECOMP_REGS_OUT(); return; } /* end of function */ 1469 _ljump: 1470 switch (_itail_tgt) { 1471 case 0x200055F0u: goto L_200055F0; 1472 case 0x200055F5u: goto L_200055F5; 1473 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1474 } 1475 RECOMP_REGS_OUT(); 1476 } 1477 1478 void sub_20005600(void) { 1479 int _fpu_cmp = 0; 1480 uint32_t _cf = 0; 1481 int _df = 1; 1482 uint32_t _flag_k = FK_NONE; 1483 uint32_t _flag_a = 0, _flag_b = 0; 1484 uint32_t _itail_tgt = 0; 1485 RECOMP_REGS_LOCALS 1486 RECOMP_ENTER(0x20005600u); 1487 1488 L_20005600: 1489 PUSH32(esp, 0x20005610u); /* 0x20005600: push 0x20005610 */ 1490 RECOMP_ICALL(0x200072C2u); /* 0x20005605: call 0x200072c2 */ /* not lifted */ 1491 RECOMP_FLAGS_IN(); 1492 ecx = POP32_VAL(esp); /* 0x2000560A: pop ecx */ 1493 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000560B: ret */ 1494 RECOMP_REGS_OUT(); 1495 } 1496 1497 void sub_20005610(void) { 1498 int _fpu_cmp = 0; 1499 uint32_t _cf = 0; 1500 int _df = 1; 1501 uint32_t _flag_k = FK_NONE; 1502 uint32_t _flag_a = 0, _flag_b = 0; 1503 uint32_t _itail_tgt = 0; 1504 RECOMP_REGS_LOCALS 1505 RECOMP_ENTER(0x20005610u); 1506 1507 L_20005610: 1508 ecx = 0x20015CE8u; /* 0x20005610: mov ecx, 0x20015ce8 */ 1509 L_20005615: 1510 { _itail_tgt = (uint32_t)(MEM32(0x2000802C)); goto _ljump; } 1511 { RECOMP_REGS_OUT(); return; } /* end of function */ 1512 _ljump: 1513 switch (_itail_tgt) { 1514 case 0x20005610u: goto L_20005610; 1515 case 0x20005615u: goto L_20005615; 1516 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1517 } 1518 RECOMP_REGS_OUT(); 1519 } 1520 1521 void sub_20005620(void) { 1522 int _fpu_cmp = 0; 1523 uint32_t _cf = 0; 1524 int _df = 1; 1525 uint32_t _flag_k = FK_NONE; 1526 uint32_t _flag_a = 0, _flag_b = 0; 1527 uint32_t _itail_tgt = 0; 1528 RECOMP_REGS_LOCALS 1529 RECOMP_ENTER(0x20005620u); 1530 1531 L_20005620: 1532 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005620: ret */ 1533 RECOMP_REGS_OUT(); 1534 } 1535 1536 void sub_20005630(void) { 1537 int _fpu_cmp = 0; 1538 uint32_t _cf = 0; 1539 int _df = 1; 1540 uint32_t _flag_k = FK_NONE; 1541 uint32_t _flag_a = 0, _flag_b = 0; 1542 uint32_t _itail_tgt = 0; 1543 RECOMP_REGS_LOCALS 1544 RECOMP_ENTER(0x20005630u); 1545 1546 L_20005630: 1547 eax = MEM32(ecx); /* 0x20005630: mov eax, dword ptr [ecx] */ 1548 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005632: ret */ 1549 RECOMP_REGS_OUT(); 1550 } 1551 1552 void sub_20005640(void) { 1553 int _fpu_cmp = 0; 1554 uint32_t _cf = 0; 1555 int _df = 1; 1556 uint32_t _flag_k = FK_NONE; 1557 uint32_t _flag_a = 0, _flag_b = 0; 1558 uint32_t _itail_tgt = 0; 1559 RECOMP_REGS_LOCALS 1560 RECOMP_ENTER(0x20005640u); 1561 1562 L_20005640: 1563 PUSH32(esp, ebp); /* 0x20005640: push ebp */ 1564 ebp = esp; /* 0x20005641: mov ebp, esp */ 1565 eax = ecx; /* 0x20005643: mov eax, ecx */ 1566 ecx = MEM32(ebp + 0x8); /* 0x20005645: mov ecx, dword ptr [ebp + 8] */ 1567 edx = MEM32(ecx); /* 0x20005648: mov edx, dword ptr [ecx] */ 1568 MEM32(eax) = edx; /* 0x2000564A: mov dword ptr [eax], edx */ 1569 ecx = MEM32(ecx + 0x4); /* 0x2000564C: mov ecx, dword ptr [ecx + 4] */ 1570 MEM32(eax + 0x4) = ecx; /* 0x2000564F: mov dword ptr [eax + 4], ecx */ 1571 ebp = POP32_VAL(esp); /* 0x20005652: pop ebp */ 1572 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20005653: ret 4 */ 1573 RECOMP_REGS_OUT(); 1574 } 1575 1576 void sub_20005660(void) { 1577 int _fpu_cmp = 0; 1578 uint32_t _cf = 0; 1579 int _df = 1; 1580 uint32_t _flag_k = FK_NONE; 1581 uint32_t _flag_a = 0, _flag_b = 0; 1582 uint32_t _itail_tgt = 0; 1583 RECOMP_REGS_LOCALS 1584 RECOMP_ENTER(0x20005660u); 1585 1586 L_20005660: 1587 PUSH32(esp, ebp); /* 0x20005660: push ebp */ 1588 ebp = esp; /* 0x20005661: mov ebp, esp */ 1589 PUSH32(esp, 0xFFFFFFFFu); /* 0x20005663: push -1 */ 1590 PUSH32(esp, 0x2000761Bu); /* 0x20005665: push 0x2000761b */ 1591 eax = MEM32(FS_BASE + (0)); /* 0x2000566A: mov eax, dword ptr fs:[0] */ 1592 PUSH32(esp, eax); /* 0x20005670: push eax */ 1593 MEM32(FS_BASE + (0)) = esp; /* 0x20005671: mov dword ptr fs:[0], esp */ 1594 PUSH32(esp, ecx); /* 0x20005678: push ecx */ 1595 PUSH32(esp, esi); /* 0x20005679: push esi */ 1596 PUSH32(esp, 8); /* 0x2000567A: push 8 */ 1597 esi = ecx; /* 0x2000567C: mov esi, ecx */ 1598 RECOMP_ICALL(0x2000727Cu); /* 0x2000567E: call 0x2000727c */ /* not lifted */ 1599 RECOMP_FLAGS_IN(); 1600 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1601 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1602 esp = esp + 4; /* 0x20005683: add esp, 4 */ 1603 _flag_k = FK_ADD; 1604 MEM32(ebp + (-0x10)) = eax; /* 0x20005686: mov dword ptr [ebp - 0x10], eax */ 1605 /* test eax, eax */ /* 0x20005689: test eax, eax */ 1606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1607 _cf = 0; 1608 _flag_k = FK_TEST; 1609 MEM32(ebp + (-0x4)) = 0; /* 0x2000568B: mov dword ptr [ebp - 4], 0 */ 1610 if (TEST_Z(_flag_a, _flag_b)) goto L_200056B5; /* 0x20005692: je 0x200056b5 */ 1611 L_20005694: 1612 ecx = MEM32(ebp + 0x8); /* 0x20005694: mov ecx, dword ptr [ebp + 8] */ 1613 PUSH32(esp, ecx); /* 0x20005697: push ecx */ 1614 PUSH32(esp, 0xFFFFFFFFu); /* 0x20005698: push -1 */ 1615 ecx = eax; /* 0x2000569A: mov ecx, eax */ 1616 RECOMP_ICALL(0x20005B60u); /* 0x2000569C: call 0x20005b60 */ /* not lifted */ 1617 RECOMP_FLAGS_IN(); 1618 MEM32(esi + 0x10) = eax; /* 0x200056A1: mov dword ptr [esi + 0x10], eax */ 1619 esi = POP32_VAL(esp); /* 0x200056A4: pop esi */ 1620 ecx = MEM32(ebp + (-0xC)); /* 0x200056A5: mov ecx, dword ptr [ebp - 0xc] */ 1621 MEM32(FS_BASE + (0)) = ecx; /* 0x200056A8: mov dword ptr fs:[0], ecx */ 1622 esp = ebp; /* 0x200056AF: mov esp, ebp */ 1623 ebp = POP32_VAL(esp); /* 0x200056B1: pop ebp */ 1624 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200056B2: ret 4 */ 1625 L_200056B5: 1626 ecx = MEM32(ebp + (-0xC)); /* 0x200056B5: mov ecx, dword ptr [ebp - 0xc] */ 1627 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1628 eax = 0; /* 0x200056B8: xor eax, eax */ 1629 _cf = 0; 1630 _flag_k = FK_TEST; 1631 MEM32(esi + 0x10) = eax; /* 0x200056BA: mov dword ptr [esi + 0x10], eax */ 1632 esi = POP32_VAL(esp); /* 0x200056BD: pop esi */ 1633 MEM32(FS_BASE + (0)) = ecx; /* 0x200056BE: mov dword ptr fs:[0], ecx */ 1634 esp = ebp; /* 0x200056C5: mov esp, ebp */ 1635 ebp = POP32_VAL(esp); /* 0x200056C7: pop ebp */ 1636 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200056C8: ret 4 */ 1637 RECOMP_REGS_OUT(); 1638 } 1639 1640 void sub_200056D0(void) { 1641 int _fpu_cmp = 0; 1642 uint32_t _cf = 0; 1643 int _df = 1; 1644 uint32_t _flag_k = FK_NONE; 1645 uint32_t _flag_a = 0, _flag_b = 0; 1646 uint32_t _itail_tgt = 0; 1647 RECOMP_REGS_LOCALS 1648 RECOMP_ENTER(0x200056D0u); 1649 1650 L_200056D0: 1651 PUSH32(esp, ebp); /* 0x200056D0: push ebp */ 1652 ebp = esp; /* 0x200056D1: mov ebp, esp */ 1653 PUSH32(esp, 0xFFFFFFFFu); /* 0x200056D3: push -1 */ 1654 PUSH32(esp, 0x2000763Bu); /* 0x200056D5: push 0x2000763b */ 1655 eax = MEM32(FS_BASE + (0)); /* 0x200056DA: mov eax, dword ptr fs:[0] */ 1656 PUSH32(esp, eax); /* 0x200056E0: push eax */ 1657 MEM32(FS_BASE + (0)) = esp; /* 0x200056E1: mov dword ptr fs:[0], esp */ 1658 PUSH32(esp, ecx); /* 0x200056E8: push ecx */ 1659 PUSH32(esp, esi); /* 0x200056E9: push esi */ 1660 PUSH32(esp, 8); /* 0x200056EA: push 8 */ 1661 esi = ecx; /* 0x200056EC: mov esi, ecx */ 1662 RECOMP_ICALL(0x2000727Cu); /* 0x200056EE: call 0x2000727c */ /* not lifted */ 1663 RECOMP_FLAGS_IN(); 1664 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1665 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1666 esp = esp + 4; /* 0x200056F3: add esp, 4 */ 1667 _flag_k = FK_ADD; 1668 MEM32(ebp + (-0x10)) = eax; /* 0x200056F6: mov dword ptr [ebp - 0x10], eax */ 1669 /* test eax, eax */ /* 0x200056F9: test eax, eax */ 1670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1671 _cf = 0; 1672 _flag_k = FK_TEST; 1673 MEM32(ebp + (-0x4)) = 0; /* 0x200056FB: mov dword ptr [ebp - 4], 0 */ 1674 if (TEST_Z(_flag_a, _flag_b)) goto L_20005725; /* 0x20005702: je 0x20005725 */ 1675 L_20005704: 1676 ecx = MEM32(ebp + 0x8); /* 0x20005704: mov ecx, dword ptr [ebp + 8] */ 1677 PUSH32(esp, ecx); /* 0x20005707: push ecx */ 1678 PUSH32(esp, 0xFFFFFFFFu); /* 0x20005708: push -1 */ 1679 ecx = eax; /* 0x2000570A: mov ecx, eax */ 1680 RECOMP_ICALL(0x20005B60u); /* 0x2000570C: call 0x20005b60 */ /* not lifted */ 1681 RECOMP_FLAGS_IN(); 1682 MEM32(esi + 0x14) = eax; /* 0x20005711: mov dword ptr [esi + 0x14], eax */ 1683 esi = POP32_VAL(esp); /* 0x20005714: pop esi */ 1684 ecx = MEM32(ebp + (-0xC)); /* 0x20005715: mov ecx, dword ptr [ebp - 0xc] */ 1685 MEM32(FS_BASE + (0)) = ecx; /* 0x20005718: mov dword ptr fs:[0], ecx */ 1686 esp = ebp; /* 0x2000571F: mov esp, ebp */ 1687 ebp = POP32_VAL(esp); /* 0x20005721: pop ebp */ 1688 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20005722: ret 4 */ 1689 L_20005725: 1690 ecx = MEM32(ebp + (-0xC)); /* 0x20005725: mov ecx, dword ptr [ebp - 0xc] */ 1691 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1692 eax = 0; /* 0x20005728: xor eax, eax */ 1693 _cf = 0; 1694 _flag_k = FK_TEST; 1695 MEM32(esi + 0x14) = eax; /* 0x2000572A: mov dword ptr [esi + 0x14], eax */ 1696 esi = POP32_VAL(esp); /* 0x2000572D: pop esi */ 1697 MEM32(FS_BASE + (0)) = ecx; /* 0x2000572E: mov dword ptr fs:[0], ecx */ 1698 esp = ebp; /* 0x20005735: mov esp, ebp */ 1699 ebp = POP32_VAL(esp); /* 0x20005737: pop ebp */ 1700 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20005738: ret 4 */ 1701 RECOMP_REGS_OUT(); 1702 } 1703 1704 void sub_20005740(void) { 1705 int _fpu_cmp = 0; 1706 uint32_t _cf = 0; 1707 int _df = 1; 1708 uint32_t _flag_k = FK_NONE; 1709 uint32_t _flag_a = 0, _flag_b = 0; 1710 uint32_t _itail_tgt = 0; 1711 RECOMP_REGS_LOCALS 1712 RECOMP_ENTER(0x20005740u); 1713 1714 L_20005740: 1715 PUSH32(esp, ebp); /* 0x20005740: push ebp */ 1716 ebp = esp; /* 0x20005741: mov ebp, esp */ 1717 PUSH32(esp, ebx); /* 0x20005743: push ebx */ 1718 ebx = MEM32(ecx + 0xC); /* 0x20005744: mov ebx, dword ptr [ecx + 0xc] */ 1719 eax = MEM32(ebx + 0x4); /* 0x20005747: mov eax, dword ptr [ebx + 4] */ 1720 PUSH32(esp, esi); /* 0x2000574A: push esi */ 1721 esi = MEM32(eax); /* 0x2000574B: mov esi, dword ptr [eax] */ 1722 PUSH32(esp, edi); /* 0x2000574D: push edi */ 1723 edi = MEM32(esi + 0x4); /* 0x2000574E: mov edi, dword ptr [esi + 4] */ 1724 PUSH32(esp, 0xCu); /* 0x20005751: push 0xc */ 1725 RECOMP_ICALL(0x2000727Cu); /* 0x20005753: call 0x2000727c */ /* not lifted */ 1726 RECOMP_FLAGS_IN(); 1727 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1728 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1729 esp = esp + 4; /* 0x20005758: add esp, 4 */ 1730 _flag_k = FK_ADD; 1731 /* test esi, esi */ /* 0x2000575B: test esi, esi */ 1732 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1733 _cf = 0; 1734 _flag_k = FK_TEST; 1735 ecx = esi; /* 0x2000575D: mov ecx, esi */ 1736 if (TEST_NZ(_flag_a, _flag_b)) goto L_20005763; /* 0x2000575F: jne 0x20005763 */ 1737 L_20005761: 1738 ecx = eax; /* 0x20005761: mov ecx, eax */ 1739 L_20005763: 1740 /* test edi, edi */ /* 0x20005763: test edi, edi */ 1741 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1742 _cf = 0; 1743 _flag_k = FK_TEST; 1744 MEM32(eax) = ecx; /* 0x20005765: mov dword ptr [eax], ecx */ 1745 if (TEST_NZ(_flag_a, _flag_b)) goto L_2000576B; /* 0x20005767: jne 0x2000576b */ 1746 L_20005769: 1747 edi = eax; /* 0x20005769: mov edi, eax */ 1748 L_2000576B: 1749 MEM32(eax + 0x4) = edi; /* 0x2000576B: mov dword ptr [eax + 4], edi */ 1750 MEM32(esi + 0x4) = eax; /* 0x2000576E: mov dword ptr [esi + 4], eax */ 1751 ecx = MEM32(eax + 0x4); /* 0x20005771: mov ecx, dword ptr [eax + 4] */ 1752 MEM32(ecx) = eax; /* 0x20005774: mov dword ptr [ecx], eax */ 1753 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 1754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1755 eax = eax + 8; /* 0x20005776: add eax, 8 */ 1756 _flag_k = FK_ADD; 1757 /* test eax, eax */ /* 0x20005779: test eax, eax */ 1758 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1759 _cf = 0; 1760 _flag_k = FK_TEST; 1761 if (TEST_Z(_flag_a, _flag_b)) goto L_20005782; /* 0x2000577B: je 0x20005782 */ 1762 L_2000577D: 1763 edx = MEM32(ebp + 0x8); /* 0x2000577D: mov edx, dword ptr [ebp + 8] */ 1764 MEM32(eax) = edx; /* 0x20005780: mov dword ptr [eax], edx */ 1765 L_20005782: 1766 eax = MEM32(ebx + 0x8); /* 0x20005782: mov eax, dword ptr [ebx + 8] */ 1767 edi = POP32_VAL(esp); /* 0x20005785: pop edi */ 1768 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1769 eax = eax + 1; /* 0x20005786: inc eax */ 1770 _flag_k = FK_INC; 1771 esi = POP32_VAL(esp); /* 0x20005787: pop esi */ 1772 MEM32(ebx + 0x8) = eax; /* 0x20005788: mov dword ptr [ebx + 8], eax */ 1773 ebx = POP32_VAL(esp); /* 0x2000578B: pop ebx */ 1774 ebp = POP32_VAL(esp); /* 0x2000578C: pop ebp */ 1775 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2000578D: ret 4 */ 1776 RECOMP_REGS_OUT(); 1777 } 1778 1779 void sub_20005790(void) { 1780 int _fpu_cmp = 0; 1781 uint32_t _cf = 0; 1782 int _df = 1; 1783 uint32_t _flag_k = FK_NONE; 1784 uint32_t _flag_a = 0, _flag_b = 0; 1785 uint32_t _itail_tgt = 0; 1786 RECOMP_REGS_LOCALS 1787 RECOMP_ENTER(0x20005790u); 1788 1789 L_20005790: 1790 PUSH32(esp, ebx); /* 0x20005790: push ebx */ 1791 PUSH32(esp, esi); /* 0x20005791: push esi */ 1792 esi = ecx; /* 0x20005792: mov esi, ecx */ 1793 PUSH32(esp, edi); /* 0x20005794: push edi */ 1794 edi = MEM32(esi + 0x4); /* 0x20005795: mov edi, dword ptr [esi + 4] */ 1795 RECOMP_ICALL(0x20001A90u); /* 0x20005798: call 0x20001a90 */ /* not lifted */ 1796 RECOMP_FLAGS_IN(); 1797 /* cmp MEM32(eax + edi * 4 + 0x320), 1 */ /* 0x2000579D: cmp dword ptr [eax + edi*4 + 0x320], 1 */ 1798 _flag_a = (uint32_t)(MEM32(eax + edi * 4 + 0x320)); _flag_b = (uint32_t)(1); 1799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1800 _flag_k = FK_CMP; 1801 ecx = MEM32(esi + 0x14); /* 0x200057A5: mov ecx, dword ptr [esi + 0x14] */ 1802 SET_LO8(ebx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x200057A8: sete bl */ 1803 /* test ecx, ecx */ /* 0x200057AB: test ecx, ecx */ 1804 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1805 _cf = 0; 1806 _flag_k = FK_TEST; 1807 if (TEST_Z(_flag_a, _flag_b)) goto L_200057B8; /* 0x200057AD: je 0x200057b8 */ 1808 L_200057AF: 1809 /* test LO8(ebx), LO8(ebx) */ /* 0x200057AF: test bl, bl */ 1810 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1811 _cf = 0; 1812 _flag_k = FK_NARROW(FK_TEST, 24); 1813 if (TEST_Z(_flag_a, _flag_b)) goto L_200057B8; /* 0x200057B1: je 0x200057b8 */ 1814 L_200057B3: 1815 RECOMP_ICALL(0x20005BB0u); /* 0x200057B3: call 0x20005bb0 */ /* not lifted */ 1816 RECOMP_FLAGS_IN(); 1817 L_200057B8: 1818 RECOMP_ICALL(0x20001A90u); /* 0x200057B8: call 0x20001a90 */ /* not lifted */ 1819 RECOMP_FLAGS_IN(); 1820 ecx = eax; /* 0x200057BD: mov ecx, eax */ 1821 RECOMP_ICALL(0x20001090u); /* 0x200057BF: call 0x20001090 */ /* not lifted */ 1822 RECOMP_FLAGS_IN(); 1823 /* test eax, eax */ /* 0x200057C4: test eax, eax */ 1824 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1825 _cf = 0; 1826 _flag_k = FK_TEST; 1827 if (TEST_Z(_flag_a, _flag_b)) goto L_20005807; /* 0x200057C6: je 0x20005807 */ 1828 L_200057C8: 1829 ecx = MEM32(esi + 0xC); /* 0x200057C8: mov ecx, dword ptr [esi + 0xc] */ 1830 edx = MEM32(ecx + 0x4); /* 0x200057CB: mov edx, dword ptr [ecx + 4] */ 1831 ecx = MEM32(edx); /* 0x200057CE: mov ecx, dword ptr [edx] */ 1832 /* cmp ecx, edx */ /* 0x200057D0: cmp ecx, edx */ 1833 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1835 _flag_k = FK_CMP; 1836 if (CMP_EQ(_flag_a, _flag_b)) goto L_200057EB; /* 0x200057D2: je 0x200057eb */ 1837 L_200057D4: 1838 edi = MEM32(ecx + 0x8); /* 0x200057D4: mov edi, dword ptr [ecx + 8] */ 1839 /* cmp MEM32(edi), eax */ /* 0x200057D7: cmp dword ptr [edi], eax */ 1840 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(eax); 1841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1842 _flag_k = FK_CMP; 1843 if (CMP_EQ(_flag_a, _flag_b)) goto L_200057E3; /* 0x200057D9: je 0x200057e3 */ 1844 L_200057DB: 1845 ecx = MEM32(ecx); /* 0x200057DB: mov ecx, dword ptr [ecx] */ 1846 /* cmp ecx, edx */ /* 0x200057DD: cmp ecx, edx */ 1847 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1849 _flag_k = FK_CMP; 1850 RECOMP_BACKEDGE(); 1851 if (CMP_NE(_flag_a, _flag_b)) goto L_200057D4; /* 0x200057DF: jne 0x200057d4 */ 1852 L_200057E1: 1853 goto L_200057EB; /* 0x200057E1: jmp 0x200057eb */ 1854 L_200057E3: 1855 ecx = MEM32(ecx + 0x8); /* 0x200057E3: mov ecx, dword ptr [ecx + 8] */ 1856 RECOMP_ICALL(0x20005BB0u); /* 0x200057E6: call 0x20005bb0 */ /* not lifted */ 1857 RECOMP_FLAGS_IN(); 1858 L_200057EB: 1859 RECOMP_ICALL(0x20001A90u); /* 0x200057EB: call 0x20001a90 */ /* not lifted */ 1860 RECOMP_FLAGS_IN(); 1861 ecx = eax; /* 0x200057F0: mov ecx, eax */ 1862 RECOMP_ICALL(0x200010C0u); /* 0x200057F2: call 0x200010c0 */ /* not lifted */ 1863 RECOMP_FLAGS_IN(); 1864 RECOMP_ICALL(0x20001A90u); /* 0x200057F7: call 0x20001a90 */ /* not lifted */ 1865 RECOMP_FLAGS_IN(); 1866 ecx = eax; /* 0x200057FC: mov ecx, eax */ 1867 RECOMP_ICALL(0x20001090u); /* 0x200057FE: call 0x20001090 */ /* not lifted */ 1868 RECOMP_FLAGS_IN(); 1869 /* test eax, eax */ /* 0x20005803: test eax, eax */ 1870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1871 _cf = 0; 1872 _flag_k = FK_TEST; 1873 RECOMP_BACKEDGE(); 1874 if (TEST_NZ(_flag_a, _flag_b)) goto L_200057C8; /* 0x20005805: jne 0x200057c8 */ 1875 L_20005807: 1876 ecx = MEM32(esi + 0x10); /* 0x20005807: mov ecx, dword ptr [esi + 0x10] */ 1877 /* test ecx, ecx */ /* 0x2000580A: test ecx, ecx */ 1878 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1879 _cf = 0; 1880 _flag_k = FK_TEST; 1881 if (TEST_Z(_flag_a, _flag_b)) goto L_20005817; /* 0x2000580C: je 0x20005817 */ 1882 L_2000580E: 1883 /* test LO8(ebx), LO8(ebx) */ /* 0x2000580E: test bl, bl */ 1884 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1885 _cf = 0; 1886 _flag_k = FK_NARROW(FK_TEST, 24); 1887 if (TEST_Z(_flag_a, _flag_b)) goto L_20005817; /* 0x20005810: je 0x20005817 */ 1888 L_20005812: 1889 RECOMP_ICALL(0x20005BB0u); /* 0x20005812: call 0x20005bb0 */ /* not lifted */ 1890 RECOMP_FLAGS_IN(); 1891 L_20005817: 1892 RECOMP_ICALL(0x20001A90u); /* 0x20005817: call 0x20001a90 */ /* not lifted */ 1893 RECOMP_FLAGS_IN(); 1894 ecx = eax; /* 0x2000581C: mov ecx, eax */ 1895 RECOMP_ICALL(0x20005550u); /* 0x2000581E: call 0x20005550 */ /* not lifted */ 1896 RECOMP_FLAGS_IN(); 1897 edi = POP32_VAL(esp); /* 0x20005823: pop edi */ 1898 esi = POP32_VAL(esp); /* 0x20005824: pop esi */ 1899 ebx = POP32_VAL(esp); /* 0x20005825: pop ebx */ 1900 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005826: ret */ 1901 RECOMP_REGS_OUT(); 1902 } 1903 1904 void sub_20005830(void) { 1905 int _fpu_cmp = 0; 1906 uint32_t _cf = 0; 1907 int _df = 1; 1908 uint32_t _flag_k = FK_NONE; 1909 uint32_t _flag_a = 0, _flag_b = 0; 1910 uint32_t _itail_tgt = 0; 1911 RECOMP_REGS_LOCALS 1912 RECOMP_ENTER(0x20005830u); 1913 1914 L_20005830: 1915 PUSH32(esp, ebp); /* 0x20005830: push ebp */ 1916 ebp = esp; /* 0x20005831: mov ebp, esp */ 1917 eax = MEM32(FS_BASE + (0)); /* 0x20005833: mov eax, dword ptr fs:[0] */ 1918 edx = MEM32(ebp + 0x10); /* 0x20005839: mov edx, dword ptr [ebp + 0x10] */ 1919 PUSH32(esp, 0xFFFFFFFFu); /* 0x2000583C: push -1 */ 1920 PUSH32(esp, 0x2000765Bu); /* 0x2000583E: push 0x2000765b */ 1921 PUSH32(esp, eax); /* 0x20005843: push eax */ 1922 eax = MEM32(ebp + 0x8); /* 0x20005844: mov eax, dword ptr [ebp + 8] */ 1923 MEM32(FS_BASE + (0)) = esp; /* 0x20005847: mov dword ptr fs:[0], esp */ 1924 PUSH32(esp, ebx); /* 0x2000584E: push ebx */ 1925 PUSH32(esp, esi); /* 0x2000584F: push esi */ 1926 esi = ecx; /* 0x20005850: mov esi, ecx */ 1927 ecx = MEM32(ebp + 0xC); /* 0x20005852: mov ecx, dword ptr [ebp + 0xc] */ 1928 PUSH32(esp, edi); /* 0x20005855: push edi */ 1929 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1930 ebx = 0; /* 0x20005856: xor ebx, ebx */ 1931 _cf = 0; 1932 _flag_k = FK_TEST; 1933 PUSH32(esp, 0xCu); /* 0x20005858: push 0xc */ 1934 MEM32(esi + 0x4) = eax; /* 0x2000585A: mov dword ptr [esi + 4], eax */ 1935 MEM32(esi + 0x8) = ecx; /* 0x2000585D: mov dword ptr [esi + 8], ecx */ 1936 MEM32(esi) = edx; /* 0x20005860: mov dword ptr [esi], edx */ 1937 MEM32(esi + 0x10) = ebx; /* 0x20005862: mov dword ptr [esi + 0x10], ebx */ 1938 MEM32(esi + 0x14) = ebx; /* 0x20005865: mov dword ptr [esi + 0x14], ebx */ 1939 RECOMP_ICALL(0x2000727Cu); /* 0x20005868: call 0x2000727c */ /* not lifted */ 1940 RECOMP_FLAGS_IN(); 1941 edi = eax; /* 0x2000586D: mov edi, eax */ 1942 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1943 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1944 esp = esp + 4; /* 0x2000586F: add esp, 4 */ 1945 _flag_k = FK_ADD; 1946 MEM32(ebp + 0x8) = edi; /* 0x20005872: mov dword ptr [ebp + 8], edi */ 1947 /* cmp edi, ebx */ /* 0x20005875: cmp edi, ebx */ 1948 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1950 _flag_k = FK_CMP; 1951 MEM32(ebp + (-0x4)) = ebx; /* 0x20005877: mov dword ptr [ebp - 4], ebx */ 1952 if (CMP_EQ(_flag_a, _flag_b)) goto L_2000589B; /* 0x2000587A: je 0x2000589b */ 1953 L_2000587C: 1954 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2000587C: mov al, byte ptr [ebp + 0xb] */ 1955 PUSH32(esp, 0xCu); /* 0x2000587F: push 0xc */ 1956 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x20005881: mov byte ptr [edi], al */ 1957 RECOMP_ICALL(0x2000727Cu); /* 0x20005883: call 0x2000727c */ /* not lifted */ 1958 RECOMP_FLAGS_IN(); 1959 MEM32(eax) = eax; /* 0x20005888: mov dword ptr [eax], eax */ 1960 MEM32(eax + 0x4) = eax; /* 0x2000588A: mov dword ptr [eax + 4], eax */ 1961 MEM32(edi + 0x4) = eax; /* 0x2000588D: mov dword ptr [edi + 4], eax */ 1962 MEM32(edi + 0x8) = ebx; /* 0x20005890: mov dword ptr [edi + 8], ebx */ 1963 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1964 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1965 esp = esp + 4; /* 0x20005893: add esp, 4 */ 1966 _flag_k = FK_ADD; 1967 MEM32(esi + 0xC) = edi; /* 0x20005896: mov dword ptr [esi + 0xc], edi */ 1968 goto L_2000589E; /* 0x20005899: jmp 0x2000589e */ 1969 L_2000589B: 1970 MEM32(esi + 0xC) = ebx; /* 0x2000589B: mov dword ptr [esi + 0xc], ebx */ 1971 L_2000589E: 1972 ecx = MEM32(ebp + (-0xC)); /* 0x2000589E: mov ecx, dword ptr [ebp - 0xc] */ 1973 edi = POP32_VAL(esp); /* 0x200058A1: pop edi */ 1974 eax = esi; /* 0x200058A2: mov eax, esi */ 1975 esi = POP32_VAL(esp); /* 0x200058A4: pop esi */ 1976 MEM32(FS_BASE + (0)) = ecx; /* 0x200058A5: mov dword ptr fs:[0], ecx */ 1977 ebx = POP32_VAL(esp); /* 0x200058AC: pop ebx */ 1978 esp = ebp; /* 0x200058AD: mov esp, ebp */ 1979 ebp = POP32_VAL(esp); /* 0x200058AF: pop ebp */ 1980 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x200058B0: ret 0xc */ 1981 RECOMP_REGS_OUT(); 1982 } 1983 1984 void sub_200058C0(void) { 1985 int _fpu_cmp = 0; 1986 uint32_t _cf = 0; 1987 int _df = 1; 1988 uint32_t _flag_k = FK_NONE; 1989 uint32_t _flag_a = 0, _flag_b = 0; 1990 uint32_t _itail_tgt = 0; 1991 RECOMP_REGS_LOCALS 1992 RECOMP_ENTER(0x200058C0u); 1993 1994 L_200058C0: 1995 PUSH32(esp, ebp); /* 0x200058C0: push ebp */ 1996 ebp = esp; /* 0x200058C1: mov ebp, esp */ 1997 PUSH32(esp, 0xFFFFFFFFu); /* 0x200058C3: push -1 */ 1998 PUSH32(esp, 0x20007686u); /* 0x200058C5: push 0x20007686 */ 1999 eax = MEM32(FS_BASE + (0)); /* 0x200058CA: mov eax, dword ptr fs:[0] */ 2000 PUSH32(esp, eax); /* 0x200058D0: push eax */ 2001 MEM32(FS_BASE + (0)) = esp; /* 0x200058D1: mov dword ptr fs:[0], esp */ 2002 PUSH32(esp, ecx); /* 0x200058D8: push ecx */ 2003 PUSH32(esp, ebx); /* 0x200058D9: push ebx */ 2004 PUSH32(esp, esi); /* 0x200058DA: push esi */ 2005 esi = ecx; /* 0x200058DB: mov esi, ecx */ 2006 ecx = MEM32(0x20015CF4); /* 0x200058DD: mov ecx, dword ptr [0x20015cf4] */ 2007 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2008 ebx = 0; /* 0x200058E3: xor ebx, ebx */ 2009 _cf = 0; 2010 _flag_k = FK_TEST; 2011 /* cmp ecx, ebx */ /* 0x200058E5: cmp ecx, ebx */ 2012 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2014 _flag_k = FK_CMP; 2015 PUSH32(esp, edi); /* 0x200058E7: push edi */ 2016 if (CMP_NE(_flag_a, _flag_b)) goto L_20005918; /* 0x200058E8: jne 0x20005918 */ 2017 L_200058EA: 2018 PUSH32(esp, 0xCu); /* 0x200058EA: push 0xc */ 2019 RECOMP_ICALL(0x2000727Cu); /* 0x200058EC: call 0x2000727c */ /* not lifted */ 2020 RECOMP_FLAGS_IN(); 2021 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2022 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2023 esp = esp + 4; /* 0x200058F1: add esp, 4 */ 2024 _flag_k = FK_ADD; 2025 MEM32(ebp + (-0x10)) = eax; /* 0x200058F4: mov dword ptr [ebp - 0x10], eax */ 2026 /* cmp eax, ebx */ /* 0x200058F7: cmp eax, ebx */ 2027 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2029 _flag_k = FK_CMP; 2030 MEM32(ebp + (-0x4)) = ebx; /* 0x200058F9: mov dword ptr [ebp - 4], ebx */ 2031 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005907; /* 0x200058FC: je 0x20005907 */ 2032 L_200058FE: 2033 ecx = eax; /* 0x200058FE: mov ecx, eax */ 2034 RECOMP_ICALL(0x200063F0u); /* 0x20005900: call 0x200063f0 */ /* not lifted */ 2035 RECOMP_FLAGS_IN(); 2036 goto L_20005909; /* 0x20005905: jmp 0x20005909 */ 2037 L_20005907: 2038 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2039 eax = 0; /* 0x20005907: xor eax, eax */ 2040 _cf = 0; 2041 _flag_k = FK_TEST; 2042 L_20005909: 2043 ecx = eax; /* 0x20005909: mov ecx, eax */ 2044 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2000590B: mov dword ptr [ebp - 4], 0xffffffff */ 2045 MEM32(0x20015CF4) = ecx; /* 0x20005912: mov dword ptr [0x20015cf4], ecx */ 2046 L_20005918: 2047 eax = MEM32(ebp + 0x8); /* 0x20005918: mov eax, dword ptr [ebp + 8] */ 2048 PUSH32(esp, eax); /* 0x2000591B: push eax */ 2049 RECOMP_ICALL(0x200062C0u); /* 0x2000591C: call 0x200062c0 */ /* not lifted */ 2050 RECOMP_FLAGS_IN(); 2051 ecx = MEM32(ebp + 0xC); /* 0x20005921: mov ecx, dword ptr [ebp + 0xc] */ 2052 edx = MEM32(ebp + 0x10); /* 0x20005924: mov edx, dword ptr [ebp + 0x10] */ 2053 PUSH32(esp, 0xCu); /* 0x20005927: push 0xc */ 2054 MEM32(esi + 0x4) = eax; /* 0x20005929: mov dword ptr [esi + 4], eax */ 2055 MEM32(esi + 0x8) = ecx; /* 0x2000592C: mov dword ptr [esi + 8], ecx */ 2056 MEM32(esi) = edx; /* 0x2000592F: mov dword ptr [esi], edx */ 2057 MEM32(esi + 0x10) = ebx; /* 0x20005931: mov dword ptr [esi + 0x10], ebx */ 2058 MEM32(esi + 0x14) = ebx; /* 0x20005934: mov dword ptr [esi + 0x14], ebx */ 2059 RECOMP_ICALL(0x2000727Cu); /* 0x20005937: call 0x2000727c */ /* not lifted */ 2060 RECOMP_FLAGS_IN(); 2061 edi = eax; /* 0x2000593C: mov edi, eax */ 2062 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2063 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2064 esp = esp + 4; /* 0x2000593E: add esp, 4 */ 2065 _flag_k = FK_ADD; 2066 MEM32(ebp + 0x8) = edi; /* 0x20005941: mov dword ptr [ebp + 8], edi */ 2067 /* cmp edi, ebx */ /* 0x20005944: cmp edi, ebx */ 2068 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2070 _flag_k = FK_CMP; 2071 MEM32(ebp + (-0x4)) = 1; /* 0x20005946: mov dword ptr [ebp - 4], 1 */ 2072 if (CMP_EQ(_flag_a, _flag_b)) goto L_2000596E; /* 0x2000594D: je 0x2000596e */ 2073 L_2000594F: 2074 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2000594F: mov al, byte ptr [ebp + 0xb] */ 2075 PUSH32(esp, 0xCu); /* 0x20005952: push 0xc */ 2076 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x20005954: mov byte ptr [edi], al */ 2077 RECOMP_ICALL(0x2000727Cu); /* 0x20005956: call 0x2000727c */ /* not lifted */ 2078 RECOMP_FLAGS_IN(); 2079 MEM32(eax) = eax; /* 0x2000595B: mov dword ptr [eax], eax */ 2080 MEM32(eax + 0x4) = eax; /* 0x2000595D: mov dword ptr [eax + 4], eax */ 2081 MEM32(edi + 0x4) = eax; /* 0x20005960: mov dword ptr [edi + 4], eax */ 2082 MEM32(edi + 0x8) = ebx; /* 0x20005963: mov dword ptr [edi + 8], ebx */ 2083 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2084 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2085 esp = esp + 4; /* 0x20005966: add esp, 4 */ 2086 _flag_k = FK_ADD; 2087 MEM32(esi + 0xC) = edi; /* 0x20005969: mov dword ptr [esi + 0xc], edi */ 2088 goto L_20005971; /* 0x2000596C: jmp 0x20005971 */ 2089 L_2000596E: 2090 MEM32(esi + 0xC) = ebx; /* 0x2000596E: mov dword ptr [esi + 0xc], ebx */ 2091 L_20005971: 2092 ecx = MEM32(ebp + (-0xC)); /* 0x20005971: mov ecx, dword ptr [ebp - 0xc] */ 2093 edi = POP32_VAL(esp); /* 0x20005974: pop edi */ 2094 eax = esi; /* 0x20005975: mov eax, esi */ 2095 esi = POP32_VAL(esp); /* 0x20005977: pop esi */ 2096 ebx = POP32_VAL(esp); /* 0x20005978: pop ebx */ 2097 MEM32(FS_BASE + (0)) = ecx; /* 0x20005979: mov dword ptr fs:[0], ecx */ 2098 esp = ebp; /* 0x20005980: mov esp, ebp */ 2099 ebp = POP32_VAL(esp); /* 0x20005982: pop ebp */ 2100 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20005983: ret 0xc */ 2101 RECOMP_REGS_OUT(); 2102 } 2103 2104 void sub_20005990(void) { 2105 int _fpu_cmp = 0; 2106 uint32_t _cf = 0; 2107 int _df = 1; 2108 uint32_t _flag_k = FK_NONE; 2109 uint32_t _flag_a = 0, _flag_b = 0; 2110 uint32_t _itail_tgt = 0; 2111 RECOMP_REGS_LOCALS 2112 RECOMP_ENTER(0x20005990u); 2113 2114 L_20005990: 2115 PUSH32(esp, ebp); /* 0x20005990: push ebp */ 2116 ebp = esp; /* 0x20005991: mov ebp, esp */ 2117 PUSH32(esp, ecx); /* 0x20005993: push ecx */ 2118 PUSH32(esp, ebx); /* 0x20005994: push ebx */ 2119 ebx = ecx; /* 0x20005995: mov ebx, ecx */ 2120 eax = MEM32(ebx + 0x10); /* 0x20005997: mov eax, dword ptr [ebx + 0x10] */ 2121 /* test eax, eax */ /* 0x2000599A: test eax, eax */ 2122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2123 _cf = 0; 2124 _flag_k = FK_TEST; 2125 PUSH32(esp, esi); /* 0x2000599C: push esi */ 2126 PUSH32(esp, edi); /* 0x2000599D: push edi */ 2127 if (TEST_Z(_flag_a, _flag_b)) goto L_200059A9; /* 0x2000599E: je 0x200059a9 */ 2128 L_200059A0: 2129 PUSH32(esp, eax); /* 0x200059A0: push eax */ 2130 RECOMP_ICALL(0x20007270u); /* 0x200059A1: call 0x20007270 */ /* not lifted */ 2131 RECOMP_FLAGS_IN(); 2132 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2134 esp = esp + 4; /* 0x200059A6: add esp, 4 */ 2135 _flag_k = FK_ADD; 2136 L_200059A9: 2137 eax = MEM32(ebx + 0x14); /* 0x200059A9: mov eax, dword ptr [ebx + 0x14] */ 2138 /* test eax, eax */ /* 0x200059AC: test eax, eax */ 2139 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2140 _cf = 0; 2141 _flag_k = FK_TEST; 2142 if (TEST_Z(_flag_a, _flag_b)) goto L_200059B9; /* 0x200059AE: je 0x200059b9 */ 2143 L_200059B0: 2144 PUSH32(esp, eax); /* 0x200059B0: push eax */ 2145 RECOMP_ICALL(0x20007270u); /* 0x200059B1: call 0x20007270 */ /* not lifted */ 2146 RECOMP_FLAGS_IN(); 2147 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2149 esp = esp + 4; /* 0x200059B6: add esp, 4 */ 2150 _flag_k = FK_ADD; 2151 L_200059B9: 2152 esi = MEM32(ebx + 0xC); /* 0x200059B9: mov esi, dword ptr [ebx + 0xc] */ 2153 eax = MEM32(esi + 0x8); /* 0x200059BC: mov eax, dword ptr [esi + 8] */ 2154 /* test eax, eax */ /* 0x200059BF: test eax, eax */ 2155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2156 _cf = 0; 2157 _flag_k = FK_TEST; 2158 if (TEST_Z(_flag_a, _flag_b)) goto L_20005A06; /* 0x200059C1: je 0x20005a06 */ 2159 L_200059C3: 2160 eax = MEM32(esi + 0x4); /* 0x200059C3: mov eax, dword ptr [esi + 4] */ 2161 eax = MEM32(eax); /* 0x200059C6: mov eax, dword ptr [eax] */ 2162 ecx = MEM32(esi + 0x4); /* 0x200059C8: mov ecx, dword ptr [esi + 4] */ 2163 edi = MEM32(eax + 0x8); /* 0x200059CB: mov edi, dword ptr [eax + 8] */ 2164 eax = MEM32(ecx); /* 0x200059CE: mov eax, dword ptr [ecx] */ 2165 edx = MEM32(eax + 0x4); /* 0x200059D0: mov edx, dword ptr [eax + 4] */ 2166 ecx = MEM32(eax); /* 0x200059D3: mov ecx, dword ptr [eax] */ 2167 MEM32(edx) = ecx; /* 0x200059D5: mov dword ptr [edx], ecx */ 2168 edx = MEM32(eax); /* 0x200059D7: mov edx, dword ptr [eax] */ 2169 ecx = MEM32(eax + 0x4); /* 0x200059D9: mov ecx, dword ptr [eax + 4] */ 2170 PUSH32(esp, eax); /* 0x200059DC: push eax */ 2171 MEM32(edx + 0x4) = ecx; /* 0x200059DD: mov dword ptr [edx + 4], ecx */ 2172 RECOMP_ICALL(0x20007270u); /* 0x200059E0: call 0x20007270 */ /* not lifted */ 2173 RECOMP_FLAGS_IN(); 2174 ecx = MEM32(esi + 0x8); /* 0x200059E5: mov ecx, dword ptr [esi + 8] */ 2175 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2177 esp = esp + 4; /* 0x200059E8: add esp, 4 */ 2178 _flag_k = FK_ADD; 2179 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2180 ecx = ecx - 1; /* 0x200059EB: dec ecx */ 2181 _flag_k = FK_DEC; 2182 /* test edi, edi */ /* 0x200059EC: test edi, edi */ 2183 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2184 _cf = 0; 2185 _flag_k = FK_TEST; 2186 MEM32(esi + 0x8) = ecx; /* 0x200059EE: mov dword ptr [esi + 8], ecx */ 2187 if (TEST_Z(_flag_a, _flag_b)) goto L_200059FC; /* 0x200059F1: je 0x200059fc */ 2188 L_200059F3: 2189 PUSH32(esp, edi); /* 0x200059F3: push edi */ 2190 RECOMP_ICALL(0x20007270u); /* 0x200059F4: call 0x20007270 */ /* not lifted */ 2191 RECOMP_FLAGS_IN(); 2192 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2194 esp = esp + 4; /* 0x200059F9: add esp, 4 */ 2195 _flag_k = FK_ADD; 2196 L_200059FC: 2197 esi = MEM32(ebx + 0xC); /* 0x200059FC: mov esi, dword ptr [ebx + 0xc] */ 2198 eax = MEM32(esi + 0x8); /* 0x200059FF: mov eax, dword ptr [esi + 8] */ 2199 /* test eax, eax */ /* 0x20005A02: test eax, eax */ 2200 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2201 _cf = 0; 2202 _flag_k = FK_TEST; 2203 RECOMP_BACKEDGE(); 2204 if (TEST_NZ(_flag_a, _flag_b)) goto L_200059C3; /* 0x20005A04: jne 0x200059c3 */ 2205 L_20005A06: 2206 edi = MEM32(ebx + 0xC); /* 0x20005A06: mov edi, dword ptr [ebx + 0xc] */ 2207 /* test edi, edi */ /* 0x20005A09: test edi, edi */ 2208 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2209 _cf = 0; 2210 _flag_k = FK_TEST; 2211 if (TEST_Z(_flag_a, _flag_b)) goto L_20005A44; /* 0x20005A0B: je 0x20005a44 */ 2212 L_20005A0D: 2213 ebx = MEM32(edi + 0x4); /* 0x20005A0D: mov ebx, dword ptr [edi + 4] */ 2214 esi = MEM32(ebx); /* 0x20005A10: mov esi, dword ptr [ebx] */ 2215 /* cmp esi, ebx */ /* 0x20005A12: cmp esi, ebx */ 2216 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2217 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2218 _flag_k = FK_CMP; 2219 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005A2A; /* 0x20005A14: je 0x20005a2a */ 2220 L_20005A16: 2221 eax = esi; /* 0x20005A16: mov eax, esi */ 2222 esi = MEM32(esi); /* 0x20005A18: mov esi, dword ptr [esi] */ 2223 PUSH32(esp, eax); /* 0x20005A1A: push eax */ 2224 edx = ebp + (-0x4); /* 0x20005A1B: lea edx, [ebp - 4] */ 2225 PUSH32(esp, edx); /* 0x20005A1E: push edx */ 2226 ecx = edi; /* 0x20005A1F: mov ecx, edi */ 2227 RECOMP_ICALL(0x20005B20u); /* 0x20005A21: call 0x20005b20 */ /* not lifted */ 2228 RECOMP_FLAGS_IN(); 2229 /* cmp esi, ebx */ /* 0x20005A26: cmp esi, ebx */ 2230 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2232 _flag_k = FK_CMP; 2233 RECOMP_BACKEDGE(); 2234 if (CMP_NE(_flag_a, _flag_b)) goto L_20005A16; /* 0x20005A28: jne 0x20005a16 */ 2235 L_20005A2A: 2236 eax = MEM32(edi + 0x4); /* 0x20005A2A: mov eax, dword ptr [edi + 4] */ 2237 PUSH32(esp, eax); /* 0x20005A2D: push eax */ 2238 RECOMP_ICALL(0x20007270u); /* 0x20005A2E: call 0x20007270 */ /* not lifted */ 2239 RECOMP_FLAGS_IN(); 2240 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2241 eax = 0; /* 0x20005A33: xor eax, eax */ 2242 _cf = 0; 2243 _flag_k = FK_TEST; 2244 PUSH32(esp, edi); /* 0x20005A35: push edi */ 2245 MEM32(edi + 0x4) = eax; /* 0x20005A36: mov dword ptr [edi + 4], eax */ 2246 MEM32(edi + 0x8) = eax; /* 0x20005A39: mov dword ptr [edi + 8], eax */ 2247 RECOMP_ICALL(0x20007270u); /* 0x20005A3C: call 0x20007270 */ /* not lifted */ 2248 RECOMP_FLAGS_IN(); 2249 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2250 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2251 esp = esp + 8; /* 0x20005A41: add esp, 8 */ 2252 _flag_k = FK_ADD; 2253 L_20005A44: 2254 edi = POP32_VAL(esp); /* 0x20005A44: pop edi */ 2255 esi = POP32_VAL(esp); /* 0x20005A45: pop esi */ 2256 ebx = POP32_VAL(esp); /* 0x20005A46: pop ebx */ 2257 esp = ebp; /* 0x20005A47: mov esp, ebp */ 2258 ebp = POP32_VAL(esp); /* 0x20005A49: pop ebp */ 2259 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005A4A: ret */ 2260 RECOMP_REGS_OUT(); 2261 } 2262 2263 void sub_20005A50(void) { 2264 int _fpu_cmp = 0; 2265 uint32_t _cf = 0; 2266 int _df = 1; 2267 uint32_t _flag_k = FK_NONE; 2268 uint32_t _flag_a = 0, _flag_b = 0; 2269 uint32_t _itail_tgt = 0; 2270 RECOMP_REGS_LOCALS 2271 RECOMP_ENTER(0x20005A50u); 2272 2273 L_20005A50: 2274 PUSH32(esp, ebp); /* 0x20005A50: push ebp */ 2275 ebp = esp; /* 0x20005A51: mov ebp, esp */ 2276 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x20005A53: mov al, byte ptr [ebp + 8] */ 2277 /* test LO8(eax), LO8(eax) */ /* 0x20005A56: test al, al */ 2278 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2279 _cf = 0; 2280 _flag_k = FK_NARROW(FK_TEST, 24); 2281 PUSH32(esp, esi); /* 0x20005A58: push esi */ 2282 esi = ecx; /* 0x20005A59: mov esi, ecx */ 2283 if (TEST_Z(_flag_a, _flag_b)) goto L_20005A6D; /* 0x20005A5B: je 0x20005a6d */ 2284 L_20005A5D: 2285 eax = MEM32(esi + 0x4); /* 0x20005A5D: mov eax, dword ptr [esi + 4] */ 2286 PUSH32(esp, eax); /* 0x20005A60: push eax */ 2287 RECOMP_ICALL(0x20001A90u); /* 0x20005A61: call 0x20001a90 */ /* not lifted */ 2288 RECOMP_FLAGS_IN(); 2289 ecx = eax; /* 0x20005A66: mov ecx, eax */ 2290 RECOMP_ICALL(0x20001D30u); /* 0x20005A68: call 0x20001d30 */ /* not lifted */ 2291 RECOMP_FLAGS_IN(); 2292 L_20005A6D: 2293 eax = MEM32(esi + 0x8); /* 0x20005A6D: mov eax, dword ptr [esi + 8] */ 2294 /* test eax, eax */ /* 0x20005A70: test eax, eax */ 2295 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2296 _cf = 0; 2297 _flag_k = FK_TEST; 2298 if (TEST_Z(_flag_a, _flag_b)) goto L_20005A7B; /* 0x20005A72: je 0x20005a7b */ 2299 L_20005A74: 2300 RECOMP_ICALL(eax); /* 0x20005A74: call eax */ 2301 RECOMP_FLAGS_IN(); 2302 esi = POP32_VAL(esp); /* 0x20005A76: pop esi */ 2303 ebp = POP32_VAL(esp); /* 0x20005A77: pop ebp */ 2304 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20005A78: ret 4 */ 2305 L_20005A7B: 2306 ecx = esi; /* 0x20005A7B: mov ecx, esi */ 2307 RECOMP_ICALL(0x20005790u); /* 0x20005A7D: call 0x20005790 */ /* not lifted */ 2308 RECOMP_FLAGS_IN(); 2309 esi = POP32_VAL(esp); /* 0x20005A82: pop esi */ 2310 ebp = POP32_VAL(esp); /* 0x20005A83: pop ebp */ 2311 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20005A84: ret 4 */ 2312 RECOMP_REGS_OUT(); 2313 } 2314 2315 void sub_20005A90(void) { 2316 int _fpu_cmp = 0; 2317 uint32_t _cf = 0; 2318 int _df = 1; 2319 uint32_t _flag_k = FK_NONE; 2320 uint32_t _flag_a = 0, _flag_b = 0; 2321 uint32_t _itail_tgt = 0; 2322 RECOMP_REGS_LOCALS 2323 RECOMP_ENTER(0x20005A90u); 2324 2325 L_20005A90: 2326 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005A90: ret */ 2327 RECOMP_REGS_OUT(); 2328 } 2329 2330 void sub_20005AA0(void) { 2331 int _fpu_cmp = 0; 2332 uint32_t _cf = 0; 2333 int _df = 1; 2334 uint32_t _flag_k = FK_NONE; 2335 uint32_t _flag_a = 0, _flag_b = 0; 2336 uint32_t _itail_tgt = 0; 2337 RECOMP_REGS_LOCALS 2338 RECOMP_ENTER(0x20005AA0u); 2339 2340 L_20005AA0: 2341 RECOMP_ICALL(0x20005AB0u); /* 0x20005AA0: call 0x20005ab0 */ /* not lifted */ 2342 RECOMP_FLAGS_IN(); 2343 goto L_20005AC0; /* 0x20005AA5: jmp 0x20005ac0 */ 2344 L_20005AC0: 2345 PUSH32(esp, 0x20005AD0u); /* 0x20005AC0: push 0x20005ad0 */ 2346 RECOMP_ICALL(0x200072C2u); /* 0x20005AC5: call 0x200072c2 */ /* not lifted */ 2347 RECOMP_FLAGS_IN(); 2348 ecx = POP32_VAL(esp); /* 0x20005ACA: pop ecx */ 2349 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005ACB: ret */ 2350 RECOMP_REGS_OUT(); 2351 } 2352 2353 void sub_20005AB0(void) { 2354 int _fpu_cmp = 0; 2355 uint32_t _cf = 0; 2356 int _df = 1; 2357 uint32_t _flag_k = FK_NONE; 2358 uint32_t _flag_a = 0, _flag_b = 0; 2359 uint32_t _itail_tgt = 0; 2360 RECOMP_REGS_LOCALS 2361 RECOMP_ENTER(0x20005AB0u); 2362 2363 L_20005AB0: 2364 ecx = 0x20015CEDu; /* 0x20005AB0: mov ecx, 0x20015ced */ 2365 L_20005AB5: 2366 { _itail_tgt = (uint32_t)(MEM32(0x20008020)); goto _ljump; } 2367 { RECOMP_REGS_OUT(); return; } /* end of function */ 2368 _ljump: 2369 switch (_itail_tgt) { 2370 case 0x20005AB0u: goto L_20005AB0; 2371 case 0x20005AB5u: goto L_20005AB5; 2372 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2373 } 2374 RECOMP_REGS_OUT(); 2375 } 2376 2377 void sub_20005AC0(void) { 2378 int _fpu_cmp = 0; 2379 uint32_t _cf = 0; 2380 int _df = 1; 2381 uint32_t _flag_k = FK_NONE; 2382 uint32_t _flag_a = 0, _flag_b = 0; 2383 uint32_t _itail_tgt = 0; 2384 RECOMP_REGS_LOCALS 2385 RECOMP_ENTER(0x20005AC0u); 2386 2387 L_20005AC0: 2388 PUSH32(esp, 0x20005AD0u); /* 0x20005AC0: push 0x20005ad0 */ 2389 RECOMP_ICALL(0x200072C2u); /* 0x20005AC5: call 0x200072c2 */ /* not lifted */ 2390 RECOMP_FLAGS_IN(); 2391 ecx = POP32_VAL(esp); /* 0x20005ACA: pop ecx */ 2392 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005ACB: ret */ 2393 RECOMP_REGS_OUT(); 2394 } 2395 2396 void sub_20005AD0(void) { 2397 int _fpu_cmp = 0; 2398 uint32_t _cf = 0; 2399 int _df = 1; 2400 uint32_t _flag_k = FK_NONE; 2401 uint32_t _flag_a = 0, _flag_b = 0; 2402 uint32_t _itail_tgt = 0; 2403 RECOMP_REGS_LOCALS 2404 RECOMP_ENTER(0x20005AD0u); 2405 2406 L_20005AD0: 2407 ecx = 0x20015CEDu; /* 0x20005AD0: mov ecx, 0x20015ced */ 2408 L_20005AD5: 2409 { _itail_tgt = (uint32_t)(MEM32(0x20008024)); goto _ljump; } 2410 { RECOMP_REGS_OUT(); return; } /* end of function */ 2411 _ljump: 2412 switch (_itail_tgt) { 2413 case 0x20005AD0u: goto L_20005AD0; 2414 case 0x20005AD5u: goto L_20005AD5; 2415 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2416 } 2417 RECOMP_REGS_OUT(); 2418 } 2419 2420 void sub_20005AE0(void) { 2421 int _fpu_cmp = 0; 2422 uint32_t _cf = 0; 2423 int _df = 1; 2424 uint32_t _flag_k = FK_NONE; 2425 uint32_t _flag_a = 0, _flag_b = 0; 2426 uint32_t _itail_tgt = 0; 2427 RECOMP_REGS_LOCALS 2428 RECOMP_ENTER(0x20005AE0u); 2429 2430 L_20005AE0: 2431 RECOMP_ICALL(0x20005AF0u); /* 0x20005AE0: call 0x20005af0 */ /* not lifted */ 2432 RECOMP_FLAGS_IN(); 2433 goto L_20005B00; /* 0x20005AE5: jmp 0x20005b00 */ 2434 L_20005B00: 2435 PUSH32(esp, 0x20005B10u); /* 0x20005B00: push 0x20005b10 */ 2436 RECOMP_ICALL(0x200072C2u); /* 0x20005B05: call 0x200072c2 */ /* not lifted */ 2437 RECOMP_FLAGS_IN(); 2438 ecx = POP32_VAL(esp); /* 0x20005B0A: pop ecx */ 2439 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005B0B: ret */ 2440 RECOMP_REGS_OUT(); 2441 } 2442 2443 void sub_20005AF0(void) { 2444 int _fpu_cmp = 0; 2445 uint32_t _cf = 0; 2446 int _df = 1; 2447 uint32_t _flag_k = FK_NONE; 2448 uint32_t _flag_a = 0, _flag_b = 0; 2449 uint32_t _itail_tgt = 0; 2450 RECOMP_REGS_LOCALS 2451 RECOMP_ENTER(0x20005AF0u); 2452 2453 L_20005AF0: 2454 ecx = 0x20015CECu; /* 0x20005AF0: mov ecx, 0x20015cec */ 2455 L_20005AF5: 2456 { _itail_tgt = (uint32_t)(MEM32(0x20008028)); goto _ljump; } 2457 { RECOMP_REGS_OUT(); return; } /* end of function */ 2458 _ljump: 2459 switch (_itail_tgt) { 2460 case 0x20005AF0u: goto L_20005AF0; 2461 case 0x20005AF5u: goto L_20005AF5; 2462 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2463 } 2464 RECOMP_REGS_OUT(); 2465 } 2466 2467 void sub_20005B00(void) { 2468 int _fpu_cmp = 0; 2469 uint32_t _cf = 0; 2470 int _df = 1; 2471 uint32_t _flag_k = FK_NONE; 2472 uint32_t _flag_a = 0, _flag_b = 0; 2473 uint32_t _itail_tgt = 0; 2474 RECOMP_REGS_LOCALS 2475 RECOMP_ENTER(0x20005B00u); 2476 2477 L_20005B00: 2478 PUSH32(esp, 0x20005B10u); /* 0x20005B00: push 0x20005b10 */ 2479 RECOMP_ICALL(0x200072C2u); /* 0x20005B05: call 0x200072c2 */ /* not lifted */ 2480 RECOMP_FLAGS_IN(); 2481 ecx = POP32_VAL(esp); /* 0x20005B0A: pop ecx */ 2482 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005B0B: ret */ 2483 RECOMP_REGS_OUT(); 2484 } 2485 2486 void sub_20005B10(void) { 2487 int _fpu_cmp = 0; 2488 uint32_t _cf = 0; 2489 int _df = 1; 2490 uint32_t _flag_k = FK_NONE; 2491 uint32_t _flag_a = 0, _flag_b = 0; 2492 uint32_t _itail_tgt = 0; 2493 RECOMP_REGS_LOCALS 2494 RECOMP_ENTER(0x20005B10u); 2495 2496 L_20005B10: 2497 ecx = 0x20015CECu; /* 0x20005B10: mov ecx, 0x20015cec */ 2498 L_20005B15: 2499 { _itail_tgt = (uint32_t)(MEM32(0x2000802C)); goto _ljump; } 2500 { RECOMP_REGS_OUT(); return; } /* end of function */ 2501 _ljump: 2502 switch (_itail_tgt) { 2503 case 0x20005B10u: goto L_20005B10; 2504 case 0x20005B15u: goto L_20005B15; 2505 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2506 } 2507 RECOMP_REGS_OUT(); 2508 } 2509 2510 void sub_20005B20(void) { 2511 int _fpu_cmp = 0; 2512 uint32_t _cf = 0; 2513 int _df = 1; 2514 uint32_t _flag_k = FK_NONE; 2515 uint32_t _flag_a = 0, _flag_b = 0; 2516 uint32_t _itail_tgt = 0; 2517 RECOMP_REGS_LOCALS 2518 RECOMP_ENTER(0x20005B20u); 2519 2520 L_20005B20: 2521 PUSH32(esp, ebp); /* 0x20005B20: push ebp */ 2522 ebp = esp; /* 0x20005B21: mov ebp, esp */ 2523 eax = MEM32(ebp + 0xC); /* 0x20005B23: mov eax, dword ptr [ebp + 0xc] */ 2524 edx = MEM32(eax); /* 0x20005B26: mov edx, dword ptr [eax] */ 2525 PUSH32(esp, esi); /* 0x20005B28: push esi */ 2526 esi = ecx; /* 0x20005B29: mov esi, ecx */ 2527 ecx = MEM32(eax + 0x4); /* 0x20005B2B: mov ecx, dword ptr [eax + 4] */ 2528 PUSH32(esp, edi); /* 0x20005B2E: push edi */ 2529 edi = MEM32(eax); /* 0x20005B2F: mov edi, dword ptr [eax] */ 2530 MEM32(ecx) = edx; /* 0x20005B31: mov dword ptr [ecx], edx */ 2531 ecx = MEM32(eax); /* 0x20005B33: mov ecx, dword ptr [eax] */ 2532 edx = MEM32(eax + 0x4); /* 0x20005B35: mov edx, dword ptr [eax + 4] */ 2533 PUSH32(esp, eax); /* 0x20005B38: push eax */ 2534 MEM32(ecx + 0x4) = edx; /* 0x20005B39: mov dword ptr [ecx + 4], edx */ 2535 RECOMP_ICALL(0x20007270u); /* 0x20005B3C: call 0x20007270 */ /* not lifted */ 2536 RECOMP_FLAGS_IN(); 2537 eax = MEM32(esi + 0x8); /* 0x20005B41: mov eax, dword ptr [esi + 8] */ 2538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2540 esp = esp + 4; /* 0x20005B44: add esp, 4 */ 2541 _flag_k = FK_ADD; 2542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2543 eax = eax - 1; /* 0x20005B47: dec eax */ 2544 _flag_k = FK_DEC; 2545 MEM32(esi + 0x8) = eax; /* 0x20005B48: mov dword ptr [esi + 8], eax */ 2546 eax = MEM32(ebp + 0x8); /* 0x20005B4B: mov eax, dword ptr [ebp + 8] */ 2547 MEM32(eax) = edi; /* 0x20005B4E: mov dword ptr [eax], edi */ 2548 edi = POP32_VAL(esp); /* 0x20005B50: pop edi */ 2549 esi = POP32_VAL(esp); /* 0x20005B51: pop esi */ 2550 ebp = POP32_VAL(esp); /* 0x20005B52: pop ebp */ 2551 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x20005B53: ret 8 */ 2552 RECOMP_REGS_OUT(); 2553 } 2554 2555 void sub_20005B60(void) { 2556 int _fpu_cmp = 0; 2557 uint32_t _cf = 0; 2558 int _df = 1; 2559 uint32_t _flag_k = FK_NONE; 2560 uint32_t _flag_a = 0, _flag_b = 0; 2561 uint32_t _itail_tgt = 0; 2562 RECOMP_REGS_LOCALS 2563 RECOMP_ENTER(0x20005B60u); 2564 2565 L_20005B60: 2566 PUSH32(esp, ebp); /* 0x20005B60: push ebp */ 2567 ebp = esp; /* 0x20005B61: mov ebp, esp */ 2568 edx = MEM32(ebp + 0xC); /* 0x20005B63: mov edx, dword ptr [ebp + 0xc] */ 2569 eax = ecx; /* 0x20005B66: mov eax, ecx */ 2570 ecx = MEM32(ebp + 0x8); /* 0x20005B68: mov ecx, dword ptr [ebp + 8] */ 2571 MEM32(eax) = ecx; /* 0x20005B6B: mov dword ptr [eax], ecx */ 2572 MEM32(eax + 0x4) = edx; /* 0x20005B6D: mov dword ptr [eax + 4], edx */ 2573 ebp = POP32_VAL(esp); /* 0x20005B70: pop ebp */ 2574 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x20005B71: ret 8 */ 2575 RECOMP_REGS_OUT(); 2576 } 2577 2578 void sub_20005B80(void) { 2579 int _fpu_cmp = 0; 2580 uint32_t _cf = 0; 2581 int _df = 1; 2582 uint32_t _flag_k = FK_NONE; 2583 uint32_t _flag_a = 0, _flag_b = 0; 2584 uint32_t _itail_tgt = 0; 2585 RECOMP_REGS_LOCALS 2586 RECOMP_ENTER(0x20005B80u); 2587 2588 L_20005B80: 2589 PUSH32(esp, ebp); /* 0x20005B80: push ebp */ 2590 ebp = esp; /* 0x20005B81: mov ebp, esp */ 2591 eax = MEM32(ebp + 0x8); /* 0x20005B83: mov eax, dword ptr [ebp + 8] */ 2592 PUSH32(esp, esi); /* 0x20005B86: push esi */ 2593 PUSH32(esp, eax); /* 0x20005B87: push eax */ 2594 esi = ecx; /* 0x20005B88: mov esi, ecx */ 2595 RECOMP_ICALL(0x20002310u); /* 0x20005B8A: call 0x20002310 */ /* not lifted */ 2596 RECOMP_FLAGS_IN(); 2597 ecx = eax; /* 0x20005B8F: mov ecx, eax */ 2598 RECOMP_ICALL(0x200062C0u); /* 0x20005B91: call 0x200062c0 */ /* not lifted */ 2599 RECOMP_FLAGS_IN(); 2600 ecx = MEM32(ebp + 0xC); /* 0x20005B96: mov ecx, dword ptr [ebp + 0xc] */ 2601 MEM32(esi) = eax; /* 0x20005B99: mov dword ptr [esi], eax */ 2602 MEM32(esi + 0x4) = ecx; /* 0x20005B9B: mov dword ptr [esi + 4], ecx */ 2603 eax = esi; /* 0x20005B9E: mov eax, esi */ 2604 esi = POP32_VAL(esp); /* 0x20005BA0: pop esi */ 2605 ebp = POP32_VAL(esp); /* 0x20005BA1: pop ebp */ 2606 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x20005BA2: ret 8 */ 2607 RECOMP_REGS_OUT(); 2608 } 2609 2610 void sub_20005BB0(void) { 2611 int _fpu_cmp = 0; 2612 uint32_t _cf = 0; 2613 int _df = 1; 2614 uint32_t _flag_k = FK_NONE; 2615 uint32_t _flag_a = 0, _flag_b = 0; 2616 uint32_t _itail_tgt = 0; 2617 RECOMP_REGS_LOCALS 2618 RECOMP_ENTER(0x20005BB0u); 2619 2620 L_20005BB0: 2621 { _itail_tgt = (uint32_t)(MEM32(ecx + 0x4)); goto _ljump; } 2622 { RECOMP_REGS_OUT(); return; } /* end of function */ 2623 _ljump: 2624 switch (_itail_tgt) { 2625 case 0x20005BB0u: goto L_20005BB0; 2626 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2627 } 2628 RECOMP_REGS_OUT(); 2629 } 2630 2631 void sub_20005BC0(void) { 2632 int _fpu_cmp = 0; 2633 uint32_t _cf = 0; 2634 int _df = 1; 2635 uint32_t _flag_k = FK_NONE; 2636 uint32_t _flag_a = 0, _flag_b = 0; 2637 uint32_t _itail_tgt = 0; 2638 RECOMP_REGS_LOCALS 2639 RECOMP_ENTER(0x20005BC0u); 2640 2641 L_20005BC0: 2642 PUSH32(esp, ebp); /* 0x20005BC0: push ebp */ 2643 ebp = esp; /* 0x20005BC1: mov ebp, esp */ 2644 eax = MEM32(FS_BASE + (0)); /* 0x20005BC3: mov eax, dword ptr fs:[0] */ 2645 PUSH32(esp, 0xFFFFFFFFu); /* 0x20005BC9: push -1 */ 2646 PUSH32(esp, 0x2000769Bu); /* 0x20005BCB: push 0x2000769b */ 2647 PUSH32(esp, eax); /* 0x20005BD0: push eax */ 2648 eax = MEM32(ebp + 0x8); /* 0x20005BD1: mov eax, dword ptr [ebp + 8] */ 2649 MEM32(FS_BASE + (0)) = esp; /* 0x20005BD4: mov dword ptr fs:[0], esp */ 2650 PUSH32(esp, esi); /* 0x20005BDB: push esi */ 2651 PUSH32(esp, edi); /* 0x20005BDC: push edi */ 2652 edi = ecx; /* 0x20005BDD: mov edi, ecx */ 2653 PUSH32(esp, 0xCu); /* 0x20005BDF: push 0xc */ 2654 MEM32(edi) = eax; /* 0x20005BE1: mov dword ptr [edi], eax */ 2655 RECOMP_ICALL(0x2000727Cu); /* 0x20005BE3: call 0x2000727c */ /* not lifted */ 2656 RECOMP_FLAGS_IN(); 2657 esi = eax; /* 0x20005BE8: mov esi, eax */ 2658 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2659 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2660 esp = esp + 4; /* 0x20005BEA: add esp, 4 */ 2661 _flag_k = FK_ADD; 2662 MEM32(ebp + 0x8) = esi; /* 0x20005BED: mov dword ptr [ebp + 8], esi */ 2663 /* test esi, esi */ /* 0x20005BF0: test esi, esi */ 2664 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2665 _cf = 0; 2666 _flag_k = FK_TEST; 2667 MEM32(ebp + (-0x4)) = 0; /* 0x20005BF2: mov dword ptr [ebp - 4], 0 */ 2668 if (TEST_Z(_flag_a, _flag_b)) goto L_20005C30; /* 0x20005BF9: je 0x20005c30 */ 2669 L_20005BFB: 2670 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x20005BFB: mov cl, byte ptr [ebp + 0xb] */ 2671 PUSH32(esp, 0xCu); /* 0x20005BFE: push 0xc */ 2672 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x20005C00: mov byte ptr [esi], cl */ 2673 RECOMP_ICALL(0x2000727Cu); /* 0x20005C02: call 0x2000727c */ /* not lifted */ 2674 RECOMP_FLAGS_IN(); 2675 MEM32(eax) = eax; /* 0x20005C07: mov dword ptr [eax], eax */ 2676 MEM32(eax + 0x4) = eax; /* 0x20005C09: mov dword ptr [eax + 4], eax */ 2677 MEM32(esi + 0x4) = eax; /* 0x20005C0C: mov dword ptr [esi + 4], eax */ 2678 MEM32(esi + 0x8) = 0; /* 0x20005C0F: mov dword ptr [esi + 8], 0 */ 2679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2680 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2681 esp = esp + 4; /* 0x20005C16: add esp, 4 */ 2682 _flag_k = FK_ADD; 2683 MEM32(edi + 0x4) = esi; /* 0x20005C19: mov dword ptr [edi + 4], esi */ 2684 eax = edi; /* 0x20005C1C: mov eax, edi */ 2685 ecx = MEM32(ebp + (-0xC)); /* 0x20005C1E: mov ecx, dword ptr [ebp - 0xc] */ 2686 MEM32(FS_BASE + (0)) = ecx; /* 0x20005C21: mov dword ptr fs:[0], ecx */ 2687 edi = POP32_VAL(esp); /* 0x20005C28: pop edi */ 2688 esi = POP32_VAL(esp); /* 0x20005C29: pop esi */ 2689 esp = ebp; /* 0x20005C2A: mov esp, ebp */ 2690 ebp = POP32_VAL(esp); /* 0x20005C2C: pop ebp */ 2691 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20005C2D: ret 4 */ 2692 L_20005C30: 2693 ecx = MEM32(ebp + (-0xC)); /* 0x20005C30: mov ecx, dword ptr [ebp - 0xc] */ 2694 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2695 eax = 0; /* 0x20005C33: xor eax, eax */ 2696 _cf = 0; 2697 _flag_k = FK_TEST; 2698 MEM32(edi + 0x4) = eax; /* 0x20005C35: mov dword ptr [edi + 4], eax */ 2699 eax = edi; /* 0x20005C38: mov eax, edi */ 2700 edi = POP32_VAL(esp); /* 0x20005C3A: pop edi */ 2701 MEM32(FS_BASE + (0)) = ecx; /* 0x20005C3B: mov dword ptr fs:[0], ecx */ 2702 esi = POP32_VAL(esp); /* 0x20005C42: pop esi */ 2703 esp = ebp; /* 0x20005C43: mov esp, ebp */ 2704 ebp = POP32_VAL(esp); /* 0x20005C45: pop ebp */ 2705 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20005C46: ret 4 */ 2706 RECOMP_REGS_OUT(); 2707 } 2708 2709 void sub_20005C50(void) { 2710 int _fpu_cmp = 0; 2711 uint32_t _cf = 0; 2712 int _df = 1; 2713 uint32_t _flag_k = FK_NONE; 2714 uint32_t _flag_a = 0, _flag_b = 0; 2715 uint32_t _itail_tgt = 0; 2716 RECOMP_REGS_LOCALS 2717 RECOMP_ENTER(0x20005C50u); 2718 2719 L_20005C50: 2720 PUSH32(esp, ebp); /* 0x20005C50: push ebp */ 2721 ebp = esp; /* 0x20005C51: mov ebp, esp */ 2722 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2724 esp = esp - 8; /* 0x20005C53: sub esp, 8 */ 2725 _flag_k = FK_CMP; 2726 PUSH32(esp, ebx); /* 0x20005C56: push ebx */ 2727 ebx = ecx; /* 0x20005C57: mov ebx, ecx */ 2728 PUSH32(esp, esi); /* 0x20005C59: push esi */ 2729 esi = MEM32(ebx + 0x4); /* 0x20005C5A: mov esi, dword ptr [ebx + 4] */ 2730 MEM32(ebx) = 0xFFFFFFFFu; /* 0x20005C5D: mov dword ptr [ebx], 0xffffffff */ 2731 eax = MEM32(esi + 0x8); /* 0x20005C63: mov eax, dword ptr [esi + 8] */ 2732 /* test eax, eax */ /* 0x20005C66: test eax, eax */ 2733 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2734 _cf = 0; 2735 _flag_k = FK_TEST; 2736 PUSH32(esp, edi); /* 0x20005C68: push edi */ 2737 if (TEST_Z(_flag_a, _flag_b)) goto L_20005CB5; /* 0x20005C69: je 0x20005cb5 */ 2738 L_20005C6B: 2739 eax = MEM32(esi + 0x4); /* 0x20005C6B: mov eax, dword ptr [esi + 4] */ 2740 eax = MEM32(eax); /* 0x20005C6E: mov eax, dword ptr [eax] */ 2741 ecx = MEM32(esi + 0x4); /* 0x20005C70: mov ecx, dword ptr [esi + 4] */ 2742 edi = MEM32(eax + 0x8); /* 0x20005C73: mov edi, dword ptr [eax + 8] */ 2743 eax = MEM32(ecx); /* 0x20005C76: mov eax, dword ptr [ecx] */ 2744 edx = MEM32(eax + 0x4); /* 0x20005C78: mov edx, dword ptr [eax + 4] */ 2745 ecx = MEM32(eax); /* 0x20005C7B: mov ecx, dword ptr [eax] */ 2746 MEM32(edx) = ecx; /* 0x20005C7D: mov dword ptr [edx], ecx */ 2747 edx = MEM32(eax); /* 0x20005C7F: mov edx, dword ptr [eax] */ 2748 ecx = MEM32(eax + 0x4); /* 0x20005C81: mov ecx, dword ptr [eax + 4] */ 2749 PUSH32(esp, eax); /* 0x20005C84: push eax */ 2750 MEM32(edx + 0x4) = ecx; /* 0x20005C85: mov dword ptr [edx + 4], ecx */ 2751 RECOMP_ICALL(0x20007270u); /* 0x20005C88: call 0x20007270 */ /* not lifted */ 2752 RECOMP_FLAGS_IN(); 2753 ecx = MEM32(esi + 0x8); /* 0x20005C8D: mov ecx, dword ptr [esi + 8] */ 2754 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2756 esp = esp + 4; /* 0x20005C90: add esp, 4 */ 2757 _flag_k = FK_ADD; 2758 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2759 ecx = ecx - 1; /* 0x20005C93: dec ecx */ 2760 _flag_k = FK_DEC; 2761 /* test edi, edi */ /* 0x20005C94: test edi, edi */ 2762 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2763 _cf = 0; 2764 _flag_k = FK_TEST; 2765 MEM32(esi + 0x8) = ecx; /* 0x20005C96: mov dword ptr [esi + 8], ecx */ 2766 if (TEST_Z(_flag_a, _flag_b)) goto L_20005CAB; /* 0x20005C99: je 0x20005cab */ 2767 L_20005C9B: 2768 ecx = edi; /* 0x20005C9B: mov ecx, edi */ 2769 RECOMP_ICALL(0x20005990u); /* 0x20005C9D: call 0x20005990 */ /* not lifted */ 2770 RECOMP_FLAGS_IN(); 2771 PUSH32(esp, edi); /* 0x20005CA2: push edi */ 2772 RECOMP_ICALL(0x20007270u); /* 0x20005CA3: call 0x20007270 */ /* not lifted */ 2773 RECOMP_FLAGS_IN(); 2774 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2775 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2776 esp = esp + 4; /* 0x20005CA8: add esp, 4 */ 2777 _flag_k = FK_ADD; 2778 L_20005CAB: 2779 esi = MEM32(ebx + 0x4); /* 0x20005CAB: mov esi, dword ptr [ebx + 4] */ 2780 eax = MEM32(esi + 0x8); /* 0x20005CAE: mov eax, dword ptr [esi + 8] */ 2781 /* test eax, eax */ /* 0x20005CB1: test eax, eax */ 2782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2783 _cf = 0; 2784 _flag_k = FK_TEST; 2785 RECOMP_BACKEDGE(); 2786 if (TEST_NZ(_flag_a, _flag_b)) goto L_20005C6B; /* 0x20005CB3: jne 0x20005c6b */ 2787 L_20005CB5: 2788 edi = MEM32(ebx + 0x4); /* 0x20005CB5: mov edi, dword ptr [ebx + 4] */ 2789 /* test edi, edi */ /* 0x20005CB8: test edi, edi */ 2790 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2791 _cf = 0; 2792 _flag_k = FK_TEST; 2793 if (TEST_Z(_flag_a, _flag_b)) goto L_20005D19; /* 0x20005CBA: je 0x20005d19 */ 2794 L_20005CBC: 2795 ebx = MEM32(edi + 0x4); /* 0x20005CBC: mov ebx, dword ptr [edi + 4] */ 2796 esi = MEM32(ebx); /* 0x20005CBF: mov esi, dword ptr [ebx] */ 2797 /* cmp esi, ebx */ /* 0x20005CC1: cmp esi, ebx */ 2798 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2800 _flag_k = FK_CMP; 2801 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005CFF; /* 0x20005CC3: je 0x20005cff */ 2802 L_20005CC5: 2803 eax = esi; /* 0x20005CC5: mov eax, esi */ 2804 esi = MEM32(esi); /* 0x20005CC7: mov esi, dword ptr [esi] */ 2805 PUSH32(esp, 0); /* 0x20005CC9: push 0 */ 2806 edx = ebp + (-0x8); /* 0x20005CCB: lea edx, [ebp - 8] */ 2807 PUSH32(esp, edx); /* 0x20005CCE: push edx */ 2808 ecx = ebp + (-0x4); /* 0x20005CCF: lea ecx, [ebp - 4] */ 2809 MEM32(ebp + (-0x4)) = eax; /* 0x20005CD2: mov dword ptr [ebp - 4], eax */ 2810 RECOMP_ICALL(0x20006A30u); /* 0x20005CD5: call 0x20006a30 */ /* not lifted */ 2811 RECOMP_FLAGS_IN(); 2812 eax = MEM32(eax); /* 0x20005CDA: mov eax, dword ptr [eax] */ 2813 ecx = MEM32(eax + 0x4); /* 0x20005CDC: mov ecx, dword ptr [eax + 4] */ 2814 edx = MEM32(eax); /* 0x20005CDF: mov edx, dword ptr [eax] */ 2815 MEM32(ecx) = edx; /* 0x20005CE1: mov dword ptr [ecx], edx */ 2816 ecx = MEM32(eax); /* 0x20005CE3: mov ecx, dword ptr [eax] */ 2817 edx = MEM32(eax + 0x4); /* 0x20005CE5: mov edx, dword ptr [eax + 4] */ 2818 PUSH32(esp, eax); /* 0x20005CE8: push eax */ 2819 MEM32(ecx + 0x4) = edx; /* 0x20005CE9: mov dword ptr [ecx + 4], edx */ 2820 RECOMP_ICALL(0x20007270u); /* 0x20005CEC: call 0x20007270 */ /* not lifted */ 2821 RECOMP_FLAGS_IN(); 2822 ecx = MEM32(edi + 0x8); /* 0x20005CF1: mov ecx, dword ptr [edi + 8] */ 2823 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2824 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2825 esp = esp + 4; /* 0x20005CF4: add esp, 4 */ 2826 _flag_k = FK_ADD; 2827 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2828 ecx = ecx - 1; /* 0x20005CF7: dec ecx */ 2829 _flag_k = FK_DEC; 2830 /* cmp esi, ebx */ /* 0x20005CF8: cmp esi, ebx */ 2831 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2833 _flag_k = FK_CMP; 2834 MEM32(edi + 0x8) = ecx; /* 0x20005CFA: mov dword ptr [edi + 8], ecx */ 2835 RECOMP_BACKEDGE(); 2836 if (CMP_NE(_flag_a, _flag_b)) goto L_20005CC5; /* 0x20005CFD: jne 0x20005cc5 */ 2837 L_20005CFF: 2838 eax = MEM32(edi + 0x4); /* 0x20005CFF: mov eax, dword ptr [edi + 4] */ 2839 PUSH32(esp, eax); /* 0x20005D02: push eax */ 2840 RECOMP_ICALL(0x20007270u); /* 0x20005D03: call 0x20007270 */ /* not lifted */ 2841 RECOMP_FLAGS_IN(); 2842 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2843 eax = 0; /* 0x20005D08: xor eax, eax */ 2844 _cf = 0; 2845 _flag_k = FK_TEST; 2846 PUSH32(esp, edi); /* 0x20005D0A: push edi */ 2847 MEM32(edi + 0x4) = eax; /* 0x20005D0B: mov dword ptr [edi + 4], eax */ 2848 MEM32(edi + 0x8) = eax; /* 0x20005D0E: mov dword ptr [edi + 8], eax */ 2849 RECOMP_ICALL(0x20007270u); /* 0x20005D11: call 0x20007270 */ /* not lifted */ 2850 RECOMP_FLAGS_IN(); 2851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2853 esp = esp + 8; /* 0x20005D16: add esp, 8 */ 2854 _flag_k = FK_ADD; 2855 L_20005D19: 2856 edi = POP32_VAL(esp); /* 0x20005D19: pop edi */ 2857 esi = POP32_VAL(esp); /* 0x20005D1A: pop esi */ 2858 ebx = POP32_VAL(esp); /* 0x20005D1B: pop ebx */ 2859 esp = ebp; /* 0x20005D1C: mov esp, ebp */ 2860 ebp = POP32_VAL(esp); /* 0x20005D1E: pop ebp */ 2861 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005D1F: ret */ 2862 RECOMP_REGS_OUT(); 2863 } 2864 2865 void sub_20005D20(void) { 2866 int _fpu_cmp = 0; 2867 uint32_t _cf = 0; 2868 int _df = 1; 2869 uint32_t _flag_k = FK_NONE; 2870 uint32_t _flag_a = 0, _flag_b = 0; 2871 uint32_t _itail_tgt = 0; 2872 RECOMP_REGS_LOCALS 2873 RECOMP_ENTER(0x20005D20u); 2874 2875 L_20005D20: 2876 PUSH32(esp, ebp); /* 0x20005D20: push ebp */ 2877 ebp = esp; /* 0x20005D21: mov ebp, esp */ 2878 PUSH32(esp, ebx); /* 0x20005D23: push ebx */ 2879 ebx = ecx; /* 0x20005D24: mov ebx, ecx */ 2880 PUSH32(esp, esi); /* 0x20005D26: push esi */ 2881 esi = MEM32(ebx + 0x4); /* 0x20005D27: mov esi, dword ptr [ebx + 4] */ 2882 ecx = MEM32(esi + 0x4); /* 0x20005D2A: mov ecx, dword ptr [esi + 4] */ 2883 eax = MEM32(ecx); /* 0x20005D2D: mov eax, dword ptr [ecx] */ 2884 /* cmp eax, ecx */ /* 0x20005D2F: cmp eax, ecx */ 2885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2887 _flag_k = FK_CMP; 2888 PUSH32(esp, edi); /* 0x20005D31: push edi */ 2889 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005D80; /* 0x20005D32: je 0x20005d80 */ 2890 L_20005D34: 2891 edx = MEM32(ebp + 0x8); /* 0x20005D34: mov edx, dword ptr [ebp + 8] */ 2892 edx = MEM32(edx + 0x4); /* 0x20005D37: mov edx, dword ptr [edx + 4] */ 2893 L_20005D3A: 2894 edi = MEM32(eax + 0x8); /* 0x20005D3A: mov edi, dword ptr [eax + 8] */ 2895 /* cmp MEM32(edi + 0x4), edx */ /* 0x20005D3D: cmp dword ptr [edi + 4], edx */ 2896 _flag_a = (uint32_t)(MEM32(edi + 0x4)); _flag_b = (uint32_t)(edx); 2897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2898 _flag_k = FK_CMP; 2899 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005D4A; /* 0x20005D40: je 0x20005d4a */ 2900 L_20005D42: 2901 eax = MEM32(eax); /* 0x20005D42: mov eax, dword ptr [eax] */ 2902 /* cmp eax, ecx */ /* 0x20005D44: cmp eax, ecx */ 2903 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2905 _flag_k = FK_CMP; 2906 RECOMP_BACKEDGE(); 2907 if (CMP_NE(_flag_a, _flag_b)) goto L_20005D3A; /* 0x20005D46: jne 0x20005d3a */ 2908 L_20005D48: 2909 goto L_20005D80; /* 0x20005D48: jmp 0x20005d80 */ 2910 L_20005D4A: 2911 ecx = MEM32(eax + 0x4); /* 0x20005D4A: mov ecx, dword ptr [eax + 4] */ 2912 edx = MEM32(eax); /* 0x20005D4D: mov edx, dword ptr [eax] */ 2913 edi = MEM32(eax + 0x8); /* 0x20005D4F: mov edi, dword ptr [eax + 8] */ 2914 MEM32(ecx) = edx; /* 0x20005D52: mov dword ptr [ecx], edx */ 2915 ecx = MEM32(eax); /* 0x20005D54: mov ecx, dword ptr [eax] */ 2916 edx = MEM32(eax + 0x4); /* 0x20005D56: mov edx, dword ptr [eax + 4] */ 2917 PUSH32(esp, eax); /* 0x20005D59: push eax */ 2918 MEM32(ecx + 0x4) = edx; /* 0x20005D5A: mov dword ptr [ecx + 4], edx */ 2919 RECOMP_ICALL(0x20007270u); /* 0x20005D5D: call 0x20007270 */ /* not lifted */ 2920 RECOMP_FLAGS_IN(); 2921 ecx = MEM32(esi + 0x8); /* 0x20005D62: mov ecx, dword ptr [esi + 8] */ 2922 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2923 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2924 esp = esp + 4; /* 0x20005D65: add esp, 4 */ 2925 _flag_k = FK_ADD; 2926 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2927 ecx = ecx - 1; /* 0x20005D68: dec ecx */ 2928 _flag_k = FK_DEC; 2929 /* test edi, edi */ /* 0x20005D69: test edi, edi */ 2930 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2931 _cf = 0; 2932 _flag_k = FK_TEST; 2933 MEM32(esi + 0x8) = ecx; /* 0x20005D6B: mov dword ptr [esi + 8], ecx */ 2934 if (TEST_Z(_flag_a, _flag_b)) goto L_20005D80; /* 0x20005D6E: je 0x20005d80 */ 2935 L_20005D70: 2936 ecx = edi; /* 0x20005D70: mov ecx, edi */ 2937 RECOMP_ICALL(0x20005990u); /* 0x20005D72: call 0x20005990 */ /* not lifted */ 2938 RECOMP_FLAGS_IN(); 2939 PUSH32(esp, edi); /* 0x20005D77: push edi */ 2940 RECOMP_ICALL(0x20007270u); /* 0x20005D78: call 0x20007270 */ /* not lifted */ 2941 RECOMP_FLAGS_IN(); 2942 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2943 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2944 esp = esp + 4; /* 0x20005D7D: add esp, 4 */ 2945 _flag_k = FK_ADD; 2946 L_20005D80: 2947 edi = MEM32(ebx + 0x4); /* 0x20005D80: mov edi, dword ptr [ebx + 4] */ 2948 eax = MEM32(edi + 0x4); /* 0x20005D83: mov eax, dword ptr [edi + 4] */ 2949 ecx = MEM32(eax); /* 0x20005D86: mov ecx, dword ptr [eax] */ 2950 esi = ecx; /* 0x20005D88: mov esi, ecx */ 2951 /* cmp esi, eax */ /* 0x20005D8A: cmp esi, eax */ 2952 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2954 _flag_k = FK_CMP; 2955 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005DA0; /* 0x20005D8C: je 0x20005da0 */ 2956 L_20005D8E: 2957 edx = MEM32(ebp + 0x8); /* 0x20005D8E: mov edx, dword ptr [ebp + 8] */ 2958 edx = MEM32(edx); /* 0x20005D91: mov edx, dword ptr [edx] */ 2959 L_20005D93: 2960 ebx = MEM32(esi + 0x8); /* 0x20005D93: mov ebx, dword ptr [esi + 8] */ 2961 /* cmp MEM32(ebx), edx */ /* 0x20005D96: cmp dword ptr [ebx], edx */ 2962 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(edx); 2963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2964 _flag_k = FK_CMP; 2965 if (CMP_G(_flag_a, _flag_b)) goto L_20005DD5; /* 0x20005D98: jg 0x20005dd5 */ 2966 L_20005D9A: 2967 esi = MEM32(esi); /* 0x20005D9A: mov esi, dword ptr [esi] */ 2968 /* cmp esi, eax */ /* 0x20005D9C: cmp esi, eax */ 2969 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2971 _flag_k = FK_CMP; 2972 RECOMP_BACKEDGE(); 2973 if (CMP_NE(_flag_a, _flag_b)) goto L_20005D93; /* 0x20005D9E: jne 0x20005d93 */ 2974 L_20005DA0: 2975 esi = MEM32(edi + 0x4); /* 0x20005DA0: mov esi, dword ptr [edi + 4] */ 2976 edx = MEM32(esi + 0x4); /* 0x20005DA3: mov edx, dword ptr [esi + 4] */ 2977 PUSH32(esp, edx); /* 0x20005DA6: push edx */ 2978 PUSH32(esp, esi); /* 0x20005DA7: push esi */ 2979 ecx = edi; /* 0x20005DA8: mov ecx, edi */ 2980 RECOMP_ICALL(0x20002590u); /* 0x20005DAA: call 0x20002590 */ /* not lifted */ 2981 RECOMP_FLAGS_IN(); 2982 MEM32(esi + 0x4) = eax; /* 0x20005DAF: mov dword ptr [esi + 4], eax */ 2983 ecx = MEM32(eax + 0x4); /* 0x20005DB2: mov ecx, dword ptr [eax + 4] */ 2984 edx = ebp + 0x8; /* 0x20005DB5: lea edx, [ebp + 8] */ 2985 MEM32(ecx) = eax; /* 0x20005DB8: mov dword ptr [ecx], eax */ 2986 PUSH32(esp, edx); /* 0x20005DBA: push edx */ 2987 L_20005DBB: 2988 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 2989 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2990 eax = eax + 8; /* 0x20005DBB: add eax, 8 */ 2991 _flag_k = FK_ADD; 2992 PUSH32(esp, eax); /* 0x20005DBE: push eax */ 2993 RECOMP_ICALL(0x20002B40u); /* 0x20005DBF: call 0x20002b40 */ /* not lifted */ 2994 RECOMP_FLAGS_IN(); 2995 eax = MEM32(edi + 0x8); /* 0x20005DC4: mov eax, dword ptr [edi + 8] */ 2996 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2997 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2998 esp = esp + 8; /* 0x20005DC7: add esp, 8 */ 2999 _flag_k = FK_ADD; 3000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3001 eax = eax + 1; /* 0x20005DCA: inc eax */ 3002 _flag_k = FK_INC; 3003 MEM32(edi + 0x8) = eax; /* 0x20005DCB: mov dword ptr [edi + 8], eax */ 3004 edi = POP32_VAL(esp); /* 0x20005DCE: pop edi */ 3005 esi = POP32_VAL(esp); /* 0x20005DCF: pop esi */ 3006 ebx = POP32_VAL(esp); /* 0x20005DD0: pop ebx */ 3007 ebp = POP32_VAL(esp); /* 0x20005DD1: pop ebp */ 3008 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20005DD2: ret 4 */ 3009 L_20005DD5: 3010 /* cmp esi, ecx */ /* 0x20005DD5: cmp esi, ecx */ 3011 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 3012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3013 _flag_k = FK_CMP; 3014 if (CMP_NE(_flag_a, _flag_b)) goto L_20005DF8; /* 0x20005DD7: jne 0x20005df8 */ 3015 L_20005DD9: 3016 eax = MEM32(edi + 0x4); /* 0x20005DD9: mov eax, dword ptr [edi + 4] */ 3017 esi = MEM32(eax); /* 0x20005DDC: mov esi, dword ptr [eax] */ 3018 ecx = MEM32(esi + 0x4); /* 0x20005DDE: mov ecx, dword ptr [esi + 4] */ 3019 PUSH32(esp, ecx); /* 0x20005DE1: push ecx */ 3020 PUSH32(esp, esi); /* 0x20005DE2: push esi */ 3021 ecx = edi; /* 0x20005DE3: mov ecx, edi */ 3022 RECOMP_ICALL(0x20002590u); /* 0x20005DE5: call 0x20002590 */ /* not lifted */ 3023 RECOMP_FLAGS_IN(); 3024 MEM32(esi + 0x4) = eax; /* 0x20005DEA: mov dword ptr [esi + 4], eax */ 3025 edx = MEM32(eax + 0x4); /* 0x20005DED: mov edx, dword ptr [eax + 4] */ 3026 ecx = ebp + 0x8; /* 0x20005DF0: lea ecx, [ebp + 8] */ 3027 MEM32(edx) = eax; /* 0x20005DF3: mov dword ptr [edx], eax */ 3028 PUSH32(esp, ecx); /* 0x20005DF5: push ecx */ 3029 RECOMP_BACKEDGE(); 3030 goto L_20005DBB; /* 0x20005DF6: jmp 0x20005dbb */ 3031 L_20005DF8: 3032 ebx = MEM32(esi + 0x4); /* 0x20005DF8: mov ebx, dword ptr [esi + 4] */ 3033 PUSH32(esp, 0xCu); /* 0x20005DFB: push 0xc */ 3034 RECOMP_ICALL(0x2000727Cu); /* 0x20005DFD: call 0x2000727c */ /* not lifted */ 3035 RECOMP_FLAGS_IN(); 3036 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3037 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3038 esp = esp + 4; /* 0x20005E02: add esp, 4 */ 3039 _flag_k = FK_ADD; 3040 /* test esi, esi */ /* 0x20005E05: test esi, esi */ 3041 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3042 _cf = 0; 3043 _flag_k = FK_TEST; 3044 ecx = esi; /* 0x20005E07: mov ecx, esi */ 3045 if (TEST_NZ(_flag_a, _flag_b)) goto L_20005E0D; /* 0x20005E09: jne 0x20005e0d */ 3046 L_20005E0B: 3047 ecx = eax; /* 0x20005E0B: mov ecx, eax */ 3048 L_20005E0D: 3049 /* test ebx, ebx */ /* 0x20005E0D: test ebx, ebx */ 3050 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3051 _cf = 0; 3052 _flag_k = FK_TEST; 3053 MEM32(eax) = ecx; /* 0x20005E0F: mov dword ptr [eax], ecx */ 3054 ecx = ebx; /* 0x20005E11: mov ecx, ebx */ 3055 if (TEST_NZ(_flag_a, _flag_b)) goto L_20005E17; /* 0x20005E13: jne 0x20005e17 */ 3056 L_20005E15: 3057 ecx = eax; /* 0x20005E15: mov ecx, eax */ 3058 L_20005E17: 3059 MEM32(eax + 0x4) = ecx; /* 0x20005E17: mov dword ptr [eax + 4], ecx */ 3060 MEM32(esi + 0x4) = eax; /* 0x20005E1A: mov dword ptr [esi + 4], eax */ 3061 edx = MEM32(eax + 0x4); /* 0x20005E1D: mov edx, dword ptr [eax + 4] */ 3062 ecx = ebp + 0x8; /* 0x20005E20: lea ecx, [ebp + 8] */ 3063 MEM32(edx) = eax; /* 0x20005E23: mov dword ptr [edx], eax */ 3064 PUSH32(esp, ecx); /* 0x20005E25: push ecx */ 3065 RECOMP_BACKEDGE(); 3066 goto L_20005DBB; /* 0x20005E26: jmp 0x20005dbb */ 3067 { RECOMP_REGS_OUT(); return; } /* end of function */ 3068 RECOMP_REGS_OUT(); 3069 } 3070 3071 void sub_20005E30(void) { 3072 int _fpu_cmp = 0; 3073 uint32_t _cf = 0; 3074 int _df = 1; 3075 uint32_t _flag_k = FK_NONE; 3076 uint32_t _flag_a = 0, _flag_b = 0; 3077 uint32_t _itail_tgt = 0; 3078 RECOMP_REGS_LOCALS 3079 RECOMP_ENTER(0x20005E30u); 3080 3081 L_20005E30: 3082 eax = MEM32(ecx + 0x4); /* 0x20005E30: mov eax, dword ptr [ecx + 4] */ 3083 PUSH32(esp, esi); /* 0x20005E33: push esi */ 3084 PUSH32(esp, edi); /* 0x20005E34: push edi */ 3085 edi = MEM32(eax + 0x4); /* 0x20005E35: mov edi, dword ptr [eax + 4] */ 3086 esi = MEM32(edi); /* 0x20005E38: mov esi, dword ptr [edi] */ 3087 /* cmp esi, edi */ /* 0x20005E3A: cmp esi, edi */ 3088 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3090 _flag_k = FK_CMP; 3091 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005E4E; /* 0x20005E3C: je 0x20005e4e */ 3092 L_20005E3E: 3093 ecx = MEM32(esi + 0x8); /* 0x20005E3E: mov ecx, dword ptr [esi + 8] */ 3094 PUSH32(esp, 1); /* 0x20005E41: push 1 */ 3095 RECOMP_ICALL(0x20005A50u); /* 0x20005E43: call 0x20005a50 */ /* not lifted */ 3096 RECOMP_FLAGS_IN(); 3097 esi = MEM32(esi); /* 0x20005E48: mov esi, dword ptr [esi] */ 3098 /* cmp esi, edi */ /* 0x20005E4A: cmp esi, edi */ 3099 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3101 _flag_k = FK_CMP; 3102 RECOMP_BACKEDGE(); 3103 if (CMP_NE(_flag_a, _flag_b)) goto L_20005E3E; /* 0x20005E4C: jne 0x20005e3e */ 3104 L_20005E4E: 3105 edi = POP32_VAL(esp); /* 0x20005E4E: pop edi */ 3106 esi = POP32_VAL(esp); /* 0x20005E4F: pop esi */ 3107 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005E50: ret */ 3108 RECOMP_REGS_OUT(); 3109 } 3110 3111 void sub_20005E60(void) { 3112 int _fpu_cmp = 0; 3113 uint32_t _cf = 0; 3114 int _df = 1; 3115 uint32_t _flag_k = FK_NONE; 3116 uint32_t _flag_a = 0, _flag_b = 0; 3117 uint32_t _itail_tgt = 0; 3118 RECOMP_REGS_LOCALS 3119 RECOMP_ENTER(0x20005E60u); 3120 3121 L_20005E60: 3122 eax = MEM32(ecx + 0x4); /* 0x20005E60: mov eax, dword ptr [ecx + 4] */ 3123 PUSH32(esp, esi); /* 0x20005E63: push esi */ 3124 PUSH32(esp, edi); /* 0x20005E64: push edi */ 3125 edi = MEM32(eax + 0x4); /* 0x20005E65: mov edi, dword ptr [eax + 4] */ 3126 esi = MEM32(edi); /* 0x20005E68: mov esi, dword ptr [edi] */ 3127 /* cmp esi, edi */ /* 0x20005E6A: cmp esi, edi */ 3128 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3130 _flag_k = FK_CMP; 3131 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005E7C; /* 0x20005E6C: je 0x20005e7c */ 3132 L_20005E6E: 3133 ecx = MEM32(esi + 0x8); /* 0x20005E6E: mov ecx, dword ptr [esi + 8] */ 3134 RECOMP_ICALL(0x20005A90u); /* 0x20005E71: call 0x20005a90 */ /* not lifted */ 3135 RECOMP_FLAGS_IN(); 3136 esi = MEM32(esi); /* 0x20005E76: mov esi, dword ptr [esi] */ 3137 /* cmp esi, edi */ /* 0x20005E78: cmp esi, edi */ 3138 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3140 _flag_k = FK_CMP; 3141 RECOMP_BACKEDGE(); 3142 if (CMP_NE(_flag_a, _flag_b)) goto L_20005E6E; /* 0x20005E7A: jne 0x20005e6e */ 3143 L_20005E7C: 3144 edi = POP32_VAL(esp); /* 0x20005E7C: pop edi */ 3145 esi = POP32_VAL(esp); /* 0x20005E7D: pop esi */ 3146 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005E7E: ret */ 3147 RECOMP_REGS_OUT(); 3148 } 3149 3150 void sub_20005E80(void) { 3151 int _fpu_cmp = 0; 3152 uint32_t _cf = 0; 3153 int _df = 1; 3154 uint32_t _flag_k = FK_NONE; 3155 uint32_t _flag_a = 0, _flag_b = 0; 3156 uint32_t _itail_tgt = 0; 3157 RECOMP_REGS_LOCALS 3158 RECOMP_ENTER(0x20005E80u); 3159 3160 L_20005E80: 3161 eax = MEM32(ecx + 0x4); /* 0x20005E80: mov eax, dword ptr [ecx + 4] */ 3162 PUSH32(esp, esi); /* 0x20005E83: push esi */ 3163 PUSH32(esp, edi); /* 0x20005E84: push edi */ 3164 edi = MEM32(eax + 0x4); /* 0x20005E85: mov edi, dword ptr [eax + 4] */ 3165 esi = MEM32(edi); /* 0x20005E88: mov esi, dword ptr [edi] */ 3166 /* cmp esi, edi */ /* 0x20005E8A: cmp esi, edi */ 3167 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 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_20005EC8; /* 0x20005E8C: je 0x20005ec8 */ 3171 L_20005E8E: 3172 ecx = MEM32(esi + 0x8); /* 0x20005E8E: mov ecx, dword ptr [esi + 8] */ 3173 eax = MEM32(ecx + 0x4); /* 0x20005E91: mov eax, dword ptr [ecx + 4] */ 3174 PUSH32(esp, 1); /* 0x20005E94: push 1 */ 3175 PUSH32(esp, eax); /* 0x20005E96: push eax */ 3176 RECOMP_ICALL(0x20001A90u); /* 0x20005E97: call 0x20001a90 */ /* not lifted */ 3177 RECOMP_FLAGS_IN(); 3178 ecx = eax; /* 0x20005E9C: mov ecx, eax */ 3179 RECOMP_ICALL(0x200011D0u); /* 0x20005E9E: call 0x200011d0 */ /* not lifted */ 3180 RECOMP_FLAGS_IN(); 3181 edx = MEM32(esi + 0x8); /* 0x20005EA3: mov edx, dword ptr [esi + 8] */ 3182 eax = MEM32(edx + 0x4); /* 0x20005EA6: mov eax, dword ptr [edx + 4] */ 3183 PUSH32(esp, 5); /* 0x20005EA9: push 5 */ 3184 PUSH32(esp, eax); /* 0x20005EAB: push eax */ 3185 RECOMP_ICALL(0x20001A90u); /* 0x20005EAC: call 0x20001a90 */ /* not lifted */ 3186 RECOMP_FLAGS_IN(); 3187 ecx = eax; /* 0x20005EB1: mov ecx, eax */ 3188 RECOMP_ICALL(0x20003630u); /* 0x20005EB3: call 0x20003630 */ /* not lifted */ 3189 RECOMP_FLAGS_IN(); 3190 ecx = MEM32(esi + 0x8); /* 0x20005EB8: mov ecx, dword ptr [esi + 8] */ 3191 PUSH32(esp, 1); /* 0x20005EBB: push 1 */ 3192 RECOMP_ICALL(0x20005A50u); /* 0x20005EBD: call 0x20005a50 */ /* not lifted */ 3193 RECOMP_FLAGS_IN(); 3194 esi = MEM32(esi); /* 0x20005EC2: mov esi, dword ptr [esi] */ 3195 /* cmp esi, edi */ /* 0x20005EC4: cmp esi, edi */ 3196 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3198 _flag_k = FK_CMP; 3199 RECOMP_BACKEDGE(); 3200 if (CMP_NE(_flag_a, _flag_b)) goto L_20005E8E; /* 0x20005EC6: jne 0x20005e8e */ 3201 L_20005EC8: 3202 edi = POP32_VAL(esp); /* 0x20005EC8: pop edi */ 3203 esi = POP32_VAL(esp); /* 0x20005EC9: pop esi */ 3204 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005ECA: ret */ 3205 RECOMP_REGS_OUT(); 3206 } 3207 3208 void sub_20005ED0(void) { 3209 int _fpu_cmp = 0; 3210 uint32_t _cf = 0; 3211 int _df = 1; 3212 uint32_t _flag_k = FK_NONE; 3213 uint32_t _flag_a = 0, _flag_b = 0; 3214 uint32_t _itail_tgt = 0; 3215 RECOMP_REGS_LOCALS 3216 RECOMP_ENTER(0x20005ED0u); 3217 3218 L_20005ED0: 3219 eax = MEM32(ecx + 0x4); /* 0x20005ED0: mov eax, dword ptr [ecx + 4] */ 3220 PUSH32(esp, esi); /* 0x20005ED3: push esi */ 3221 PUSH32(esp, edi); /* 0x20005ED4: push edi */ 3222 edi = MEM32(eax + 0x4); /* 0x20005ED5: mov edi, dword ptr [eax + 4] */ 3223 esi = MEM32(edi); /* 0x20005ED8: mov esi, dword ptr [edi] */ 3224 /* cmp esi, edi */ /* 0x20005EDA: cmp esi, edi */ 3225 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3227 _flag_k = FK_CMP; 3228 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005F18; /* 0x20005EDC: je 0x20005f18 */ 3229 L_20005EDE: 3230 ecx = MEM32(esi + 0x8); /* 0x20005EDE: mov ecx, dword ptr [esi + 8] */ 3231 eax = MEM32(ecx + 0x4); /* 0x20005EE1: mov eax, dword ptr [ecx + 4] */ 3232 PUSH32(esp, 6); /* 0x20005EE4: push 6 */ 3233 PUSH32(esp, eax); /* 0x20005EE6: push eax */ 3234 RECOMP_ICALL(0x20001A90u); /* 0x20005EE7: call 0x20001a90 */ /* not lifted */ 3235 RECOMP_FLAGS_IN(); 3236 ecx = eax; /* 0x20005EEC: mov ecx, eax */ 3237 RECOMP_ICALL(0x20003630u); /* 0x20005EEE: call 0x20003630 */ /* not lifted */ 3238 RECOMP_FLAGS_IN(); 3239 edx = MEM32(esi + 0x8); /* 0x20005EF3: mov edx, dword ptr [esi + 8] */ 3240 eax = MEM32(edx + 0x4); /* 0x20005EF6: mov eax, dword ptr [edx + 4] */ 3241 PUSH32(esp, 0); /* 0x20005EF9: push 0 */ 3242 PUSH32(esp, eax); /* 0x20005EFB: push eax */ 3243 RECOMP_ICALL(0x20001A90u); /* 0x20005EFC: call 0x20001a90 */ /* not lifted */ 3244 RECOMP_FLAGS_IN(); 3245 ecx = eax; /* 0x20005F01: mov ecx, eax */ 3246 RECOMP_ICALL(0x200011D0u); /* 0x20005F03: call 0x200011d0 */ /* not lifted */ 3247 RECOMP_FLAGS_IN(); 3248 ecx = MEM32(esi + 0x8); /* 0x20005F08: mov ecx, dword ptr [esi + 8] */ 3249 PUSH32(esp, 1); /* 0x20005F0B: push 1 */ 3250 RECOMP_ICALL(0x20005A50u); /* 0x20005F0D: call 0x20005a50 */ /* not lifted */ 3251 RECOMP_FLAGS_IN(); 3252 esi = MEM32(esi); /* 0x20005F12: mov esi, dword ptr [esi] */ 3253 /* cmp esi, edi */ /* 0x20005F14: cmp esi, edi */ 3254 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3256 _flag_k = FK_CMP; 3257 RECOMP_BACKEDGE(); 3258 if (CMP_NE(_flag_a, _flag_b)) goto L_20005EDE; /* 0x20005F16: jne 0x20005ede */ 3259 L_20005F18: 3260 edi = POP32_VAL(esp); /* 0x20005F18: pop edi */ 3261 esi = POP32_VAL(esp); /* 0x20005F19: pop esi */ 3262 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005F1A: ret */ 3263 RECOMP_REGS_OUT(); 3264 } 3265 3266 void sub_20005F20(void) { 3267 int _fpu_cmp = 0; 3268 uint32_t _cf = 0; 3269 int _df = 1; 3270 uint32_t _flag_k = FK_NONE; 3271 uint32_t _flag_a = 0, _flag_b = 0; 3272 uint32_t _itail_tgt = 0; 3273 RECOMP_REGS_LOCALS 3274 RECOMP_ENTER(0x20005F20u); 3275 3276 L_20005F20: 3277 PUSH32(esp, ebp); /* 0x20005F20: push ebp */ 3278 ebp = esp; /* 0x20005F21: mov ebp, esp */ 3279 eax = MEM32(ecx + 0x4); /* 0x20005F23: mov eax, dword ptr [ecx + 4] */ 3280 ecx = MEM32(eax + 0x4); /* 0x20005F26: mov ecx, dword ptr [eax + 4] */ 3281 eax = MEM32(ecx); /* 0x20005F29: mov eax, dword ptr [ecx] */ 3282 /* cmp eax, ecx */ /* 0x20005F2B: cmp eax, ecx */ 3283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3285 _flag_k = FK_CMP; 3286 PUSH32(esp, esi); /* 0x20005F2D: push esi */ 3287 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005F41; /* 0x20005F2E: je 0x20005f41 */ 3288 L_20005F30: 3289 edx = MEM32(ebp + 0x8); /* 0x20005F30: mov edx, dword ptr [ebp + 8] */ 3290 L_20005F33: 3291 esi = MEM32(eax + 0x8); /* 0x20005F33: mov esi, dword ptr [eax + 8] */ 3292 /* cmp MEM32(esi + 0x4), edx */ /* 0x20005F36: cmp dword ptr [esi + 4], edx */ 3293 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(edx); 3294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3295 _flag_k = FK_CMP; 3296 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005F48; /* 0x20005F39: je 0x20005f48 */ 3297 L_20005F3B: 3298 eax = MEM32(eax); /* 0x20005F3B: mov eax, dword ptr [eax] */ 3299 /* cmp eax, ecx */ /* 0x20005F3D: cmp eax, ecx */ 3300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3302 _flag_k = FK_CMP; 3303 RECOMP_BACKEDGE(); 3304 if (CMP_NE(_flag_a, _flag_b)) goto L_20005F33; /* 0x20005F3F: jne 0x20005f33 */ 3305 L_20005F41: 3306 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3307 eax = 0; /* 0x20005F41: xor eax, eax */ 3308 _cf = 0; 3309 _flag_k = FK_TEST; 3310 esi = POP32_VAL(esp); /* 0x20005F43: pop esi */ 3311 ebp = POP32_VAL(esp); /* 0x20005F44: pop ebp */ 3312 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20005F45: ret 4 */ 3313 L_20005F48: 3314 eax = MEM32(eax + 0x8); /* 0x20005F48: mov eax, dword ptr [eax + 8] */ 3315 esi = POP32_VAL(esp); /* 0x20005F4B: pop esi */ 3316 ebp = POP32_VAL(esp); /* 0x20005F4C: pop ebp */ 3317 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20005F4D: ret 4 */ 3318 RECOMP_REGS_OUT(); 3319 } 3320 3321 void sub_20005F50(void) { 3322 int _fpu_cmp = 0; 3323 uint32_t _cf = 0; 3324 int _df = 1; 3325 uint32_t _flag_k = FK_NONE; 3326 uint32_t _flag_a = 0, _flag_b = 0; 3327 uint32_t _itail_tgt = 0; 3328 RECOMP_REGS_LOCALS 3329 RECOMP_ENTER(0x20005F50u); 3330 3331 L_20005F50: 3332 PUSH32(esp, ebp); /* 0x20005F50: push ebp */ 3333 ebp = esp; /* 0x20005F51: mov ebp, esp */ 3334 PUSH32(esp, ecx); /* 0x20005F53: push ecx */ 3335 PUSH32(esp, esi); /* 0x20005F54: push esi */ 3336 PUSH32(esp, edi); /* 0x20005F55: push edi */ 3337 edi = MEM32(ecx + 0x4); /* 0x20005F56: mov edi, dword ptr [ecx + 4] */ 3338 /* cmp MEM32(edi + 0x8), 2 */ /* 0x20005F59: cmp dword ptr [edi + 8], 2 */ 3339 _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(2); 3340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3341 _flag_k = FK_CMP; 3342 if (CMP_B(_flag_a, _flag_b)) goto L_20005FA6; /* 0x20005F5D: jb 0x20005fa6 */ 3343 L_20005F5F: 3344 esi = MEM32(edi + 0x4); /* 0x20005F5F: mov esi, dword ptr [edi + 4] */ 3345 eax = MEM32(esi); /* 0x20005F62: mov eax, dword ptr [esi] */ 3346 eax = MEM32(eax); /* 0x20005F64: mov eax, dword ptr [eax] */ 3347 /* cmp eax, esi */ /* 0x20005F66: cmp eax, esi */ 3348 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3350 _flag_k = FK_CMP; 3351 if (CMP_EQ(_flag_a, _flag_b)) goto L_20005FA6; /* 0x20005F68: je 0x20005fa6 */ 3352 L_20005F6A: 3353 PUSH32(esp, ebx); /* 0x20005F6A: push ebx */ 3354 L_20005F6B: 3355 ecx = MEM32(edi + 0x4); /* 0x20005F6B: mov ecx, dword ptr [edi + 4] */ 3356 ecx = MEM32(ecx); /* 0x20005F6E: mov ecx, dword ptr [ecx] */ 3357 edx = eax; /* 0x20005F70: mov edx, eax */ 3358 eax = MEM32(eax); /* 0x20005F72: mov eax, dword ptr [eax] */ 3359 /* cmp eax, esi */ /* 0x20005F74: cmp eax, esi */ 3360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3362 _flag_k = FK_CMP; 3363 MEM32(ebp + (-0x4)) = edx; /* 0x20005F76: mov dword ptr [ebp - 4], edx */ 3364 edx = MEM32(eax + 0x4); /* 0x20005F79: mov edx, dword ptr [eax + 4] */ 3365 MEM32(edx) = ecx; /* 0x20005F7C: mov dword ptr [edx], ecx */ 3366 edx = MEM32(ebp + (-0x4)); /* 0x20005F7E: mov edx, dword ptr [ebp - 4] */ 3367 edx = MEM32(edx + 0x4); /* 0x20005F81: mov edx, dword ptr [edx + 4] */ 3368 MEM32(edx) = eax; /* 0x20005F84: mov dword ptr [edx], eax */ 3369 edx = MEM32(ecx + 0x4); /* 0x20005F86: mov edx, dword ptr [ecx + 4] */ 3370 ebx = MEM32(ebp + (-0x4)); /* 0x20005F89: mov ebx, dword ptr [ebp - 4] */ 3371 MEM32(edx) = ebx; /* 0x20005F8C: mov dword ptr [edx], ebx */ 3372 ebx = MEM32(eax + 0x4); /* 0x20005F8E: mov ebx, dword ptr [eax + 4] */ 3373 edx = MEM32(ecx + 0x4); /* 0x20005F91: mov edx, dword ptr [ecx + 4] */ 3374 MEM32(ecx + 0x4) = ebx; /* 0x20005F94: mov dword ptr [ecx + 4], ebx */ 3375 ecx = MEM32(ebp + (-0x4)); /* 0x20005F97: mov ecx, dword ptr [ebp - 4] */ 3376 ebx = MEM32(ecx + 0x4); /* 0x20005F9A: mov ebx, dword ptr [ecx + 4] */ 3377 MEM32(eax + 0x4) = ebx; /* 0x20005F9D: mov dword ptr [eax + 4], ebx */ 3378 MEM32(ecx + 0x4) = edx; /* 0x20005FA0: mov dword ptr [ecx + 4], edx */ 3379 RECOMP_BACKEDGE(); 3380 if (CMP_NE(_flag_a, _flag_b)) goto L_20005F6B; /* 0x20005FA3: jne 0x20005f6b */ 3381 L_20005FA5: 3382 ebx = POP32_VAL(esp); /* 0x20005FA5: pop ebx */ 3383 L_20005FA6: 3384 edi = POP32_VAL(esp); /* 0x20005FA6: pop edi */ 3385 esi = POP32_VAL(esp); /* 0x20005FA7: pop esi */ 3386 esp = ebp; /* 0x20005FA8: mov esp, ebp */ 3387 ebp = POP32_VAL(esp); /* 0x20005FAA: pop ebp */ 3388 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005FAB: ret */ 3389 RECOMP_REGS_OUT(); 3390 } 3391 3392 void sub_20005FB0(void) { 3393 int _fpu_cmp = 0; 3394 uint32_t _cf = 0; 3395 int _df = 1; 3396 uint32_t _flag_k = FK_NONE; 3397 uint32_t _flag_a = 0, _flag_b = 0; 3398 uint32_t _itail_tgt = 0; 3399 RECOMP_REGS_LOCALS 3400 RECOMP_ENTER(0x20005FB0u); 3401 3402 L_20005FB0: 3403 RECOMP_ICALL(0x20005FC0u); /* 0x20005FB0: call 0x20005fc0 */ /* not lifted */ 3404 RECOMP_FLAGS_IN(); 3405 goto L_20005FD0; /* 0x20005FB5: jmp 0x20005fd0 */ 3406 L_20005FD0: 3407 PUSH32(esp, 0x20005FE0u); /* 0x20005FD0: push 0x20005fe0 */ 3408 RECOMP_ICALL(0x200072C2u); /* 0x20005FD5: call 0x200072c2 */ /* not lifted */ 3409 RECOMP_FLAGS_IN(); 3410 ecx = POP32_VAL(esp); /* 0x20005FDA: pop ecx */ 3411 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005FDB: ret */ 3412 RECOMP_REGS_OUT(); 3413 } 3414 3415 void sub_20005FC0(void) { 3416 int _fpu_cmp = 0; 3417 uint32_t _cf = 0; 3418 int _df = 1; 3419 uint32_t _flag_k = FK_NONE; 3420 uint32_t _flag_a = 0, _flag_b = 0; 3421 uint32_t _itail_tgt = 0; 3422 RECOMP_REGS_LOCALS 3423 RECOMP_ENTER(0x20005FC0u); 3424 3425 L_20005FC0: 3426 ecx = 0x20015CF1u; /* 0x20005FC0: mov ecx, 0x20015cf1 */ 3427 L_20005FC5: 3428 { _itail_tgt = (uint32_t)(MEM32(0x20008020)); goto _ljump; } 3429 { RECOMP_REGS_OUT(); return; } /* end of function */ 3430 _ljump: 3431 switch (_itail_tgt) { 3432 case 0x20005FC0u: goto L_20005FC0; 3433 case 0x20005FC5u: goto L_20005FC5; 3434 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3435 } 3436 RECOMP_REGS_OUT(); 3437 } 3438 3439 void sub_20005FD0(void) { 3440 int _fpu_cmp = 0; 3441 uint32_t _cf = 0; 3442 int _df = 1; 3443 uint32_t _flag_k = FK_NONE; 3444 uint32_t _flag_a = 0, _flag_b = 0; 3445 uint32_t _itail_tgt = 0; 3446 RECOMP_REGS_LOCALS 3447 RECOMP_ENTER(0x20005FD0u); 3448 3449 L_20005FD0: 3450 PUSH32(esp, 0x20005FE0u); /* 0x20005FD0: push 0x20005fe0 */ 3451 RECOMP_ICALL(0x200072C2u); /* 0x20005FD5: call 0x200072c2 */ /* not lifted */ 3452 RECOMP_FLAGS_IN(); 3453 ecx = POP32_VAL(esp); /* 0x20005FDA: pop ecx */ 3454 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005FDB: ret */ 3455 RECOMP_REGS_OUT(); 3456 } 3457 3458 void sub_20005FE0(void) { 3459 int _fpu_cmp = 0; 3460 uint32_t _cf = 0; 3461 int _df = 1; 3462 uint32_t _flag_k = FK_NONE; 3463 uint32_t _flag_a = 0, _flag_b = 0; 3464 uint32_t _itail_tgt = 0; 3465 RECOMP_REGS_LOCALS 3466 RECOMP_ENTER(0x20005FE0u); 3467 3468 L_20005FE0: 3469 ecx = 0x20015CF1u; /* 0x20005FE0: mov ecx, 0x20015cf1 */ 3470 L_20005FE5: 3471 { _itail_tgt = (uint32_t)(MEM32(0x20008024)); goto _ljump; } 3472 { RECOMP_REGS_OUT(); return; } /* end of function */ 3473 _ljump: 3474 switch (_itail_tgt) { 3475 case 0x20005FE0u: goto L_20005FE0; 3476 case 0x20005FE5u: goto L_20005FE5; 3477 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3478 } 3479 RECOMP_REGS_OUT(); 3480 } 3481 3482 void sub_20005FF0(void) { 3483 int _fpu_cmp = 0; 3484 uint32_t _cf = 0; 3485 int _df = 1; 3486 uint32_t _flag_k = FK_NONE; 3487 uint32_t _flag_a = 0, _flag_b = 0; 3488 uint32_t _itail_tgt = 0; 3489 RECOMP_REGS_LOCALS 3490 RECOMP_ENTER(0x20005FF0u); 3491 3492 L_20005FF0: 3493 RECOMP_ICALL(0x20006000u); /* 0x20005FF0: call 0x20006000 */ /* not lifted */ 3494 RECOMP_FLAGS_IN(); 3495 goto L_20006010; /* 0x20005FF5: jmp 0x20006010 */ 3496 L_20006010: 3497 PUSH32(esp, 0x20006020u); /* 0x20006010: push 0x20006020 */ 3498 RECOMP_ICALL(0x200072C2u); /* 0x20006015: call 0x200072c2 */ /* not lifted */ 3499 RECOMP_FLAGS_IN(); 3500 ecx = POP32_VAL(esp); /* 0x2000601A: pop ecx */ 3501 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000601B: ret */ 3502 RECOMP_REGS_OUT(); 3503 } 3504 3505 void sub_20006000(void) { 3506 int _fpu_cmp = 0; 3507 uint32_t _cf = 0; 3508 int _df = 1; 3509 uint32_t _flag_k = FK_NONE; 3510 uint32_t _flag_a = 0, _flag_b = 0; 3511 uint32_t _itail_tgt = 0; 3512 RECOMP_REGS_LOCALS 3513 RECOMP_ENTER(0x20006000u); 3514 3515 L_20006000: 3516 ecx = 0x20015CF0u; /* 0x20006000: mov ecx, 0x20015cf0 */ 3517 L_20006005: 3518 { _itail_tgt = (uint32_t)(MEM32(0x20008028)); goto _ljump; } 3519 { RECOMP_REGS_OUT(); return; } /* end of function */ 3520 _ljump: 3521 switch (_itail_tgt) { 3522 case 0x20006000u: goto L_20006000; 3523 case 0x20006005u: goto L_20006005; 3524 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3525 } 3526 RECOMP_REGS_OUT(); 3527 } 3528 3529 void sub_20006010(void) { 3530 int _fpu_cmp = 0; 3531 uint32_t _cf = 0; 3532 int _df = 1; 3533 uint32_t _flag_k = FK_NONE; 3534 uint32_t _flag_a = 0, _flag_b = 0; 3535 uint32_t _itail_tgt = 0; 3536 RECOMP_REGS_LOCALS 3537 RECOMP_ENTER(0x20006010u); 3538 3539 L_20006010: 3540 PUSH32(esp, 0x20006020u); /* 0x20006010: push 0x20006020 */ 3541 RECOMP_ICALL(0x200072C2u); /* 0x20006015: call 0x200072c2 */ /* not lifted */ 3542 RECOMP_FLAGS_IN(); 3543 ecx = POP32_VAL(esp); /* 0x2000601A: pop ecx */ 3544 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000601B: ret */ 3545 RECOMP_REGS_OUT(); 3546 } 3547 3548 void sub_20006020(void) { 3549 int _fpu_cmp = 0; 3550 uint32_t _cf = 0; 3551 int _df = 1; 3552 uint32_t _flag_k = FK_NONE; 3553 uint32_t _flag_a = 0, _flag_b = 0; 3554 uint32_t _itail_tgt = 0; 3555 RECOMP_REGS_LOCALS 3556 RECOMP_ENTER(0x20006020u); 3557 3558 L_20006020: 3559 ecx = 0x20015CF0u; /* 0x20006020: mov ecx, 0x20015cf0 */ 3560 L_20006025: 3561 { _itail_tgt = (uint32_t)(MEM32(0x2000802C)); goto _ljump; } 3562 { RECOMP_REGS_OUT(); return; } /* end of function */ 3563 _ljump: 3564 switch (_itail_tgt) { 3565 case 0x20006020u: goto L_20006020; 3566 case 0x20006025u: goto L_20006025; 3567 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3568 } 3569 RECOMP_REGS_OUT(); 3570 } 3571 3572 void sub_20006030(void) { 3573 int _fpu_cmp = 0; 3574 uint32_t _cf = 0; 3575 int _df = 1; 3576 uint32_t _flag_k = FK_NONE; 3577 uint32_t _flag_a = 0, _flag_b = 0; 3578 uint32_t _itail_tgt = 0; 3579 RECOMP_REGS_LOCALS 3580 RECOMP_ENTER(0x20006030u); 3581 3582 L_20006030: 3583 PUSH32(esp, ebp); /* 0x20006030: push ebp */ 3584 ebp = esp; /* 0x20006031: mov ebp, esp */ 3585 PUSH32(esp, 0xFFFFFFFFu); /* 0x20006033: push -1 */ 3586 PUSH32(esp, 0x200076C4u); /* 0x20006035: push 0x200076c4 */ 3587 eax = MEM32(FS_BASE + (0)); /* 0x2000603A: mov eax, dword ptr fs:[0] */ 3588 PUSH32(esp, eax); /* 0x20006040: push eax */ 3589 MEM32(FS_BASE + (0)) = esp; /* 0x20006041: mov dword ptr fs:[0], esp */ 3590 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3592 esp = esp - 0x1Cu; /* 0x20006048: sub esp, 0x1c */ 3593 _flag_k = FK_CMP; 3594 PUSH32(esp, ebx); /* 0x2000604B: push ebx */ 3595 PUSH32(esp, esi); /* 0x2000604C: push esi */ 3596 esi = MEM32(ebp + 0x8); /* 0x2000604D: mov esi, dword ptr [ebp + 8] */ 3597 PUSH32(esp, edi); /* 0x20006050: push edi */ 3598 edi = ecx; /* 0x20006051: mov edi, ecx */ 3599 eax = MEM32(edi + 0x4); /* 0x20006053: mov eax, dword ptr [edi + 4] */ 3600 eax = MEM32(eax); /* 0x20006056: mov eax, dword ptr [eax] */ 3601 MEM32(ebp + (-0x10)) = eax; /* 0x20006058: mov dword ptr [ebp - 0x10], eax */ 3602 SET_LO8(eax, MEM8(esi)); /* 0x2000605B: mov al, byte ptr [esi] */ 3603 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3604 ebx = 0; /* 0x2000605D: xor ebx, ebx */ 3605 _cf = 0; 3606 _flag_k = FK_TEST; 3607 /* cmp LO8(eax), 0x5Fu */ /* 0x2000605F: cmp al, 0x5f */ 3608 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x5Fu) << 24; 3609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3610 _flag_k = FK_NARROW(FK_CMP, 24); 3611 MEM32(ebp + (-0x18)) = edi; /* 0x20006061: mov dword ptr [ebp - 0x18], edi */ 3612 MEM32(ebp + (-0x14)) = ebx; /* 0x20006064: mov dword ptr [ebp - 0x14], ebx */ 3613 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006079; /* 0x20006067: je 0x20006079 */ 3614 L_20006069: 3615 /* test LO8(eax), LO8(eax) */ /* 0x20006069: test al, al */ 3616 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3617 _cf = 0; 3618 _flag_k = FK_NARROW(FK_TEST, 24); 3619 if (TEST_Z(_flag_a, _flag_b)) goto L_20006076; /* 0x2000606B: je 0x20006076 */ 3620 L_2000606D: 3621 SET_LO8(eax, MEM8(ebx + esi + 0x1)); /* 0x2000606D: mov al, byte ptr [ebx + esi + 1] */ 3622 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3623 ebx = ebx + 1; /* 0x20006071: inc ebx */ 3624 _flag_k = FK_INC; 3625 /* cmp LO8(eax), 0x5Fu */ /* 0x20006072: cmp al, 0x5f */ 3626 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x5Fu) << 24; 3627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3628 _flag_k = FK_NARROW(FK_CMP, 24); 3629 RECOMP_BACKEDGE(); 3630 if (CMP_NE(_flag_a, _flag_b)) goto L_20006069; /* 0x20006074: jne 0x20006069 */ 3631 L_20006076: 3632 MEM32(ebp + (-0x14)) = ebx; /* 0x20006076: mov dword ptr [ebp - 0x14], ebx */ 3633 L_20006079: 3634 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x20006079: mov cl, byte ptr [ebp + 0xb] */ 3635 MEM8(ebp + (-0x28)) = (uint8_t)(LO8(ecx)); /* 0x2000607C: mov byte ptr [ebp - 0x28], cl */ 3636 PUSH32(esp, 0); /* 0x2000607F: push 0 */ 3637 ecx = ebp + (-0x28); /* 0x20006081: lea ecx, [ebp - 0x28] */ 3638 RECOMP_ICALL(MEM32(0x2000801C)); /* 0x20006084: call dword ptr [0x2000801c] */ 3639 RECOMP_FLAGS_IN(); 3640 PUSH32(esp, 1); /* 0x2000608A: push 1 */ 3641 PUSH32(esp, ebx); /* 0x2000608C: push ebx */ 3642 ecx = ebp + (-0x28); /* 0x2000608D: lea ecx, [ebp - 0x28] */ 3643 RECOMP_ICALL(MEM32(0x2000803C)); /* 0x20006090: call dword ptr [0x2000803c] */ 3644 RECOMP_FLAGS_IN(); 3645 /* test LO8(eax), LO8(eax) */ /* 0x20006096: test al, al */ 3646 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3647 _cf = 0; 3648 _flag_k = FK_NARROW(FK_TEST, 24); 3649 if (TEST_Z(_flag_a, _flag_b)) goto L_200060BA; /* 0x20006098: je 0x200060ba */ 3650 L_2000609A: 3651 edi = MEM32(ebp + (-0x24)); /* 0x2000609A: mov edi, dword ptr [ebp - 0x24] */ 3652 ecx = ebx; /* 0x2000609D: mov ecx, ebx */ 3653 edx = ecx; /* 0x2000609F: mov edx, ecx */ 3654 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x200060A1: shr ecx, 2 */ 3655 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3656 ecx = ecx >> 2u; /* 0x200060A1: shr ecx, 2 */ 3657 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x200060A4: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3658 ecx = edx; /* 0x200060A6: mov ecx, edx */ 3659 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3660 ecx = ecx & 3; /* 0x200060A8: and ecx, 3 */ 3661 _cf = 0; 3662 _flag_k = FK_TEST; 3663 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x200060AB: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3664 PUSH32(esp, ebx); /* 0x200060AD: push ebx */ 3665 ecx = ebp + (-0x28); /* 0x200060AE: lea ecx, [ebp - 0x28] */ 3666 RECOMP_ICALL(MEM32(0x20008038)); /* 0x200060B1: call dword ptr [0x20008038] */ 3667 RECOMP_FLAGS_IN(); 3668 edi = MEM32(ebp + (-0x18)); /* 0x200060B7: mov edi, dword ptr [ebp - 0x18] */ 3669 L_200060BA: 3670 edx = MEM32(edi + 0x4); /* 0x200060BA: mov edx, dword ptr [edi + 4] */ 3671 edi = MEM32(ebp + (-0x10)); /* 0x200060BD: mov edi, dword ptr [ebp - 0x10] */ 3672 /* cmp edi, edx */ /* 0x200060C0: cmp edi, edx */ 3673 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 3674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3675 _flag_k = FK_CMP; 3676 MEM32(ebp + (-0x4)) = 0; /* 0x200060C2: mov dword ptr [ebp - 4], 0 */ 3677 MEM32(ebp + 0x8) = 0; /* 0x200060C9: mov dword ptr [ebp + 8], 0 */ 3678 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006126; /* 0x200060D0: je 0x20006126 */ 3679 L_200060D2: 3680 goto L_200060D7; /* 0x200060D2: jmp 0x200060d7 */ 3681 L_200060D4: 3682 edi = MEM32(ebp + (-0x10)); /* 0x200060D4: mov edi, dword ptr [ebp - 0x10] */ 3683 L_200060D7: 3684 esi = MEM32(ebp + (-0x24)); /* 0x200060D7: mov esi, dword ptr [ebp - 0x24] */ 3685 /* test esi, esi */ /* 0x200060DA: test esi, esi */ 3686 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3687 _cf = 0; 3688 _flag_k = FK_TEST; 3689 if (TEST_NZ(_flag_a, _flag_b)) goto L_200060E4; /* 0x200060DC: jne 0x200060e4 */ 3690 L_200060DE: 3691 esi = MEM32(0x20008034); /* 0x200060DE: mov esi, dword ptr [0x20008034] */ 3692 L_200060E4: 3693 eax = MEM32(edi + 0x8); /* 0x200060E4: mov eax, dword ptr [edi + 8] */ 3694 eax = MEM32(eax); /* 0x200060E7: mov eax, dword ptr [eax] */ 3695 L_200060E9: 3696 SET_LO8(ebx, MEM8(eax)); /* 0x200060E9: mov bl, byte ptr [eax] */ 3697 SET_LO8(ecx, LO8(ebx)); /* 0x200060EB: mov cl, bl */ 3698 /* cmp LO8(ebx), MEM8(esi) */ /* 0x200060ED: cmp bl, byte ptr [esi] */ 3699 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24; 3700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3701 _flag_k = FK_NARROW(FK_CMP, 24); 3702 if (CMP_NE(_flag_a, _flag_b)) goto L_2000610D; /* 0x200060EF: jne 0x2000610d */ 3703 L_200060F1: 3704 /* test LO8(ecx), LO8(ecx) */ /* 0x200060F1: test cl, cl */ 3705 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3706 _cf = 0; 3707 _flag_k = FK_NARROW(FK_TEST, 24); 3708 if (TEST_Z(_flag_a, _flag_b)) goto L_20006109; /* 0x200060F3: je 0x20006109 */ 3709 L_200060F5: 3710 SET_LO8(ebx, MEM8(eax + 0x1)); /* 0x200060F5: mov bl, byte ptr [eax + 1] */ 3711 SET_LO8(ecx, LO8(ebx)); /* 0x200060F8: mov cl, bl */ 3712 /* cmp LO8(ebx), MEM8(esi + 0x1) */ /* 0x200060FA: cmp bl, byte ptr [esi + 1] */ 3713 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24; 3714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3715 _flag_k = FK_NARROW(FK_CMP, 24); 3716 if (CMP_NE(_flag_a, _flag_b)) goto L_2000610D; /* 0x200060FD: jne 0x2000610d */ 3717 L_200060FF: 3718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 3719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3720 eax = eax + 2; /* 0x200060FF: add eax, 2 */ 3721 _flag_k = FK_ADD; 3722 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 3723 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3724 esi = esi + 2; /* 0x20006102: add esi, 2 */ 3725 _flag_k = FK_ADD; 3726 /* test LO8(ecx), LO8(ecx) */ /* 0x20006105: test cl, cl */ 3727 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3728 _cf = 0; 3729 _flag_k = FK_NARROW(FK_TEST, 24); 3730 RECOMP_BACKEDGE(); 3731 if (TEST_NZ(_flag_a, _flag_b)) goto L_200060E9; /* 0x20006107: jne 0x200060e9 */ 3732 L_20006109: 3733 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3734 eax = 0; /* 0x20006109: xor eax, eax */ 3735 _cf = 0; 3736 _flag_k = FK_TEST; 3737 goto L_20006112; /* 0x2000610B: jmp 0x20006112 */ 3738 L_2000610D: 3739 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x2000610D: sbb eax, eax */ 3740 eax = _sc ? 0xFFFFFFFFu : 0; 3741 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3742 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3743 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x2000610F: sbb eax, -1 */ 3744 eax = _sa - _sb - _sc; 3745 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3746 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3747 L_20006112: 3748 /* test eax, eax */ /* 0x20006112: test eax, eax */ 3749 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3750 _cf = 0; 3751 _flag_k = FK_TEST; 3752 if (TEST_Z(_flag_a, _flag_b)) goto L_20006158; /* 0x20006114: je 0x20006158 */ 3753 L_20006116: 3754 esi = MEM32(ebp + 0x8); /* 0x20006116: mov esi, dword ptr [ebp + 8] */ 3755 eax = MEM32(edi); /* 0x20006119: mov eax, dword ptr [edi] */ 3756 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3757 esi = esi + 1; /* 0x2000611B: inc esi */ 3758 _flag_k = FK_INC; 3759 /* cmp eax, edx */ /* 0x2000611C: cmp eax, edx */ 3760 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3762 _flag_k = FK_CMP; 3763 MEM32(ebp + (-0x10)) = eax; /* 0x2000611E: mov dword ptr [ebp - 0x10], eax */ 3764 MEM32(ebp + 0x8) = esi; /* 0x20006121: mov dword ptr [ebp + 8], esi */ 3765 RECOMP_BACKEDGE(); 3766 if (CMP_NE(_flag_a, _flag_b)) goto L_200060D4; /* 0x20006124: jne 0x200060d4 */ 3767 L_20006126: 3768 PUSH32(esp, 0x18u); /* 0x20006126: push 0x18 */ 3769 RECOMP_ICALL(0x2000727Cu); /* 0x20006128: call 0x2000727c */ /* not lifted */ 3770 RECOMP_FLAGS_IN(); 3771 esi = eax; /* 0x2000612D: mov esi, eax */ 3772 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3773 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3774 esp = esp + 4; /* 0x2000612F: add esp, 4 */ 3775 _flag_k = FK_ADD; 3776 MEM32(ebp + (-0x10)) = esi; /* 0x20006132: mov dword ptr [ebp - 0x10], esi */ 3777 /* test esi, esi */ /* 0x20006135: test esi, esi */ 3778 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3779 _cf = 0; 3780 _flag_k = FK_TEST; 3781 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x20006137: mov byte ptr [ebp - 4], 1 */ 3782 if (TEST_Z(_flag_a, _flag_b)) goto L_2000616F; /* 0x2000613B: je 0x2000616f */ 3783 L_2000613D: 3784 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x2000613D: mov dl, byte ptr [ebp + 0xb] */ 3785 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x20006140: mov al, byte ptr [ebp + 0xb] */ 3786 ecx = esi + 0x4; /* 0x20006143: lea ecx, [esi + 4] */ 3787 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x20006146: mov byte ptr [ecx], dl */ 3788 MEM8(ecx + 0x1) = (uint8_t)(LO8(eax)); /* 0x20006148: mov byte ptr [ecx + 1], al */ 3789 MEM8(ecx + 0xC) = (uint8_t)(0); /* 0x2000614B: mov byte ptr [ecx + 0xc], 0 */ 3790 RECOMP_ICALL(0x20006720u); /* 0x2000614F: call 0x20006720 */ /* not lifted */ 3791 RECOMP_FLAGS_IN(); 3792 ebx = esi; /* 0x20006154: mov ebx, esi */ 3793 goto L_20006171; /* 0x20006156: jmp 0x20006171 */ 3794 L_20006158: 3795 PUSH32(esp, 1); /* 0x20006158: push 1 */ 3796 ecx = ebp + (-0x28); /* 0x2000615A: lea ecx, [ebp - 0x28] */ 3797 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2000615D: mov dword ptr [ebp - 4], 0xffffffff */ 3798 RECOMP_ICALL(MEM32(0x2000801C)); /* 0x20006164: call dword ptr [0x2000801c] */ 3799 RECOMP_FLAGS_IN(); 3800 goto L_20006210; /* 0x2000616A: jmp 0x20006210 */ 3801 L_2000616F: 3802 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3803 ebx = 0; /* 0x2000616F: xor ebx, ebx */ 3804 _cf = 0; 3805 _flag_k = FK_TEST; 3806 L_20006171: 3807 ecx = MEM32(ebp + (-0x14)); /* 0x20006171: mov ecx, dword ptr [ebp - 0x14] */ 3808 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3809 ecx = ecx + 1; /* 0x20006174: inc ecx */ 3810 _flag_k = FK_INC; 3811 PUSH32(esp, ecx); /* 0x20006175: push ecx */ 3812 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x20006176: mov byte ptr [ebp - 4], 0 */ 3813 RECOMP_ICALL(0x2000727Cu); /* 0x2000617A: call 0x2000727c */ /* not lifted */ 3814 RECOMP_FLAGS_IN(); 3815 edi = MEM32(ebp + (-0x24)); /* 0x2000617F: mov edi, dword ptr [ebp - 0x24] */ 3816 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3817 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3818 esp = esp + 4; /* 0x20006182: add esp, 4 */ 3819 _flag_k = FK_ADD; 3820 /* test edi, edi */ /* 0x20006185: test edi, edi */ 3821 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3822 _cf = 0; 3823 _flag_k = FK_TEST; 3824 edx = eax; /* 0x20006187: mov edx, eax */ 3825 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006191; /* 0x20006189: jne 0x20006191 */ 3826 L_2000618B: 3827 edi = MEM32(0x20008034); /* 0x2000618B: mov edi, dword ptr [0x20008034] */ 3828 L_20006191: 3829 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3830 ecx = ecx | 0xFFFFFFFFu; /* 0x20006191: or ecx, 0xffffffff */ 3831 _cf = 0; 3832 _flag_k = FK_TEST; 3833 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3834 eax = 0; /* 0x20006194: xor eax, eax */ 3835 _cf = 0; 3836 _flag_k = FK_TEST; 3837 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x20006196: repne scasb al, byte ptr es:[edi] */ 3838 ecx = ~ecx; /* 0x20006198: not ecx */ 3839 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3841 edi = edi - ecx; /* 0x2000619A: sub edi, ecx */ 3842 _flag_k = FK_CMP; 3843 eax = ecx; /* 0x2000619C: mov eax, ecx */ 3844 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2000619E: shr ecx, 2 */ 3845 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3846 ecx = ecx >> 2u; /* 0x2000619E: shr ecx, 2 */ 3847 esi = edi; /* 0x200061A1: mov esi, edi */ 3848 edi = edx; /* 0x200061A3: mov edi, edx */ 3849 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x200061A5: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3850 ecx = eax; /* 0x200061A7: mov ecx, eax */ 3851 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3852 ecx = ecx & 3; /* 0x200061A9: and ecx, 3 */ 3853 _cf = 0; 3854 _flag_k = FK_TEST; 3855 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x200061AC: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3856 ecx = MEM32(ebp + (-0x18)); /* 0x200061AE: mov ecx, dword ptr [ebp - 0x18] */ 3857 MEM32(ebx) = edx; /* 0x200061B1: mov dword ptr [ebx], edx */ 3858 esi = MEM32(ecx + 0x4); /* 0x200061B3: mov esi, dword ptr [ecx + 4] */ 3859 edi = MEM32(esi + 0x4); /* 0x200061B6: mov edi, dword ptr [esi + 4] */ 3860 PUSH32(esp, 0xCu); /* 0x200061B9: push 0xc */ 3861 RECOMP_ICALL(0x2000727Cu); /* 0x200061BB: call 0x2000727c */ /* not lifted */ 3862 RECOMP_FLAGS_IN(); 3863 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3865 esp = esp + 4; /* 0x200061C0: add esp, 4 */ 3866 _flag_k = FK_ADD; 3867 /* test esi, esi */ /* 0x200061C3: test esi, esi */ 3868 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3869 _cf = 0; 3870 _flag_k = FK_TEST; 3871 ecx = esi; /* 0x200061C5: mov ecx, esi */ 3872 if (TEST_NZ(_flag_a, _flag_b)) goto L_200061CB; /* 0x200061C7: jne 0x200061cb */ 3873 L_200061C9: 3874 ecx = eax; /* 0x200061C9: mov ecx, eax */ 3875 L_200061CB: 3876 /* test edi, edi */ /* 0x200061CB: test edi, edi */ 3877 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3878 _cf = 0; 3879 _flag_k = FK_TEST; 3880 MEM32(eax) = ecx; /* 0x200061CD: mov dword ptr [eax], ecx */ 3881 if (TEST_NZ(_flag_a, _flag_b)) goto L_200061D3; /* 0x200061CF: jne 0x200061d3 */ 3882 L_200061D1: 3883 edi = eax; /* 0x200061D1: mov edi, eax */ 3884 L_200061D3: 3885 MEM32(eax + 0x4) = edi; /* 0x200061D3: mov dword ptr [eax + 4], edi */ 3886 MEM32(esi + 0x4) = eax; /* 0x200061D6: mov dword ptr [esi + 4], eax */ 3887 edx = MEM32(eax + 0x4); /* 0x200061D9: mov edx, dword ptr [eax + 4] */ 3888 MEM32(edx) = eax; /* 0x200061DC: mov dword ptr [edx], eax */ 3889 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 3890 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3891 eax = eax + 8; /* 0x200061DE: add eax, 8 */ 3892 _flag_k = FK_ADD; 3893 /* test eax, eax */ /* 0x200061E1: test eax, eax */ 3894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3895 _cf = 0; 3896 _flag_k = FK_TEST; 3897 if (TEST_Z(_flag_a, _flag_b)) goto L_200061E7; /* 0x200061E3: je 0x200061e7 */ 3898 L_200061E5: 3899 MEM32(eax) = ebx; /* 0x200061E5: mov dword ptr [eax], ebx */ 3900 L_200061E7: 3901 eax = MEM32(ebp + (-0x18)); /* 0x200061E7: mov eax, dword ptr [ebp - 0x18] */ 3902 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(1); 3903 MEM32(eax + 0x8) = MEM32(eax + 0x8) + 1; /* 0x200061EA: inc dword ptr [eax + 8] */ 3904 _flag_k = FK_INC; 3905 ecx = MEM32(ebp + (-0x24)); /* 0x200061ED: mov ecx, dword ptr [ebp - 0x24] */ 3906 /* test ecx, ecx */ /* 0x200061F0: test ecx, ecx */ 3907 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3908 _cf = 0; 3909 _flag_k = FK_TEST; 3910 if (TEST_Z(_flag_a, _flag_b)) goto L_20006210; /* 0x200061F2: je 0x20006210 */ 3911 L_200061F4: 3912 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x200061F4: mov al, byte ptr [ecx - 1] */ 3913 /* test LO8(eax), LO8(eax) */ /* 0x200061F7: test al, al */ 3914 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3915 _cf = 0; 3916 _flag_k = FK_NARROW(FK_TEST, 24); 3917 if (TEST_Z(_flag_a, _flag_b)) goto L_20006206; /* 0x200061F9: je 0x20006206 */ 3918 L_200061FB: 3919 /* cmp LO8(eax), 0xFFu */ /* 0x200061FB: cmp al, 0xff */ 3920 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3922 _flag_k = FK_NARROW(FK_CMP, 24); 3923 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006206; /* 0x200061FD: je 0x20006206 */ 3924 L_200061FF: 3925 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3926 SET_LO8(eax, LO8(eax) - 1); /* 0x200061FF: dec al */ 3927 _flag_k = FK_NARROW(FK_DEC, 24); 3928 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x20006201: mov byte ptr [ecx - 1], al */ 3929 goto L_20006210; /* 0x20006204: jmp 0x20006210 */ 3930 L_20006206: 3931 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3932 ecx = ecx - 1; /* 0x20006206: dec ecx */ 3933 _flag_k = FK_DEC; 3934 PUSH32(esp, ecx); /* 0x20006207: push ecx */ 3935 RECOMP_ICALL(0x20007270u); /* 0x20006208: call 0x20007270 */ /* not lifted */ 3936 RECOMP_FLAGS_IN(); 3937 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3939 esp = esp + 4; /* 0x2000620D: add esp, 4 */ 3940 _flag_k = FK_ADD; 3941 L_20006210: 3942 ecx = MEM32(ebp + (-0xC)); /* 0x20006210: mov ecx, dword ptr [ebp - 0xc] */ 3943 eax = MEM32(ebp + 0x8); /* 0x20006213: mov eax, dword ptr [ebp + 8] */ 3944 edi = POP32_VAL(esp); /* 0x20006216: pop edi */ 3945 esi = POP32_VAL(esp); /* 0x20006217: pop esi */ 3946 ebx = POP32_VAL(esp); /* 0x20006218: pop ebx */ 3947 MEM32(FS_BASE + (0)) = ecx; /* 0x20006219: mov dword ptr fs:[0], ecx */ 3948 esp = ebp; /* 0x20006220: mov esp, ebp */ 3949 ebp = POP32_VAL(esp); /* 0x20006222: pop ebp */ 3950 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20006223: ret 4 */ 3951 RECOMP_REGS_OUT(); 3952 } 3953 3954 void sub_20006210(void) { 3955 int _fpu_cmp = 0; 3956 uint32_t _cf = 0; 3957 int _df = 1; 3958 uint32_t _flag_k = FK_NONE; 3959 uint32_t _flag_a = 0, _flag_b = 0; 3960 uint32_t _itail_tgt = 0; 3961 RECOMP_REGS_LOCALS 3962 RECOMP_ENTER(0x20006210u); 3963 3964 L_20006210: 3965 ecx = MEM32(ebp + (-0xC)); /* 0x20006210: mov ecx, dword ptr [ebp - 0xc] */ 3966 eax = MEM32(ebp + 0x8); /* 0x20006213: mov eax, dword ptr [ebp + 8] */ 3967 edi = POP32_VAL(esp); /* 0x20006216: pop edi */ 3968 esi = POP32_VAL(esp); /* 0x20006217: pop esi */ 3969 ebx = POP32_VAL(esp); /* 0x20006218: pop ebx */ 3970 MEM32(FS_BASE + (0)) = ecx; /* 0x20006219: mov dword ptr fs:[0], ecx */ 3971 esp = ebp; /* 0x20006220: mov esp, ebp */ 3972 ebp = POP32_VAL(esp); /* 0x20006222: pop ebp */ 3973 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20006223: ret 4 */ 3974 RECOMP_REGS_OUT(); 3975 } 3976 3977 void sub_20006230(void) { 3978 int _fpu_cmp = 0; 3979 uint32_t _cf = 0; 3980 int _df = 1; 3981 uint32_t _flag_k = FK_NONE; 3982 uint32_t _flag_a = 0, _flag_b = 0; 3983 uint32_t _itail_tgt = 0; 3984 RECOMP_REGS_LOCALS 3985 RECOMP_ENTER(0x20006230u); 3986 3987 L_20006230: 3988 PUSH32(esp, ebp); /* 0x20006230: push ebp */ 3989 ebp = esp; /* 0x20006231: mov ebp, esp */ 3990 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3992 esp = esp - 8; /* 0x20006233: sub esp, 8 */ 3993 _flag_k = FK_CMP; 3994 eax = MEM32(ebp + 0x8); /* 0x20006236: mov eax, dword ptr [ebp + 8] */ 3995 PUSH32(esp, esi); /* 0x20006239: push esi */ 3996 PUSH32(esp, edi); /* 0x2000623A: push edi */ 3997 esi = ecx; /* 0x2000623B: mov esi, ecx */ 3998 PUSH32(esp, eax); /* 0x2000623D: push eax */ 3999 RECOMP_ICALL(0x20006030u); /* 0x2000623E: call 0x20006030 */ /* not lifted */ 4000 RECOMP_FLAGS_IN(); 4001 /* test eax, eax */ /* 0x20006243: test eax, eax */ 4002 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4003 _cf = 0; 4004 _flag_k = FK_TEST; 4005 ecx = MEM32(esi + 0x4); /* 0x20006245: mov ecx, dword ptr [esi + 4] */ 4006 esi = MEM32(ecx); /* 0x20006248: mov esi, dword ptr [ecx] */ 4007 ecx = eax; /* 0x2000624A: mov ecx, eax */ 4008 if (TEST_LE(_flag_a, _flag_b)) goto L_20006255; /* 0x2000624C: jle 0x20006255 */ 4009 L_2000624E: 4010 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4011 ecx = 0; /* 0x2000624E: xor ecx, ecx */ 4012 _cf = 0; 4013 _flag_k = FK_TEST; 4014 L_20006250: 4015 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4016 eax = eax - 1; /* 0x20006250: dec eax */ 4017 _flag_k = FK_DEC; 4018 esi = MEM32(esi); /* 0x20006251: mov esi, dword ptr [esi] */ 4019 RECOMP_BACKEDGE(); 4020 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_20006250; /* 0x20006253: jne 0x20006250 */ 4021 L_20006255: 4022 /* test ecx, ecx */ /* 0x20006255: test ecx, ecx */ 4023 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4024 _cf = 0; 4025 _flag_k = FK_TEST; 4026 if (TEST_NS(_flag_a, _flag_b)) goto L_20006261; /* 0x20006257: jge 0x20006261 */ 4027 L_20006259: 4028 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 4029 _cf = (ecx) != 0; 4030 ecx = (uint32_t)(-(int32_t)ecx); /* 0x20006259: neg ecx */ 4031 _flag_k = FK_CMP; 4032 L_2000625B: 4033 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4034 ecx = ecx - 1; /* 0x2000625B: dec ecx */ 4035 _flag_k = FK_DEC; 4036 esi = MEM32(esi + 0x4); /* 0x2000625C: mov esi, dword ptr [esi + 4] */ 4037 RECOMP_BACKEDGE(); 4038 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2000625B; /* 0x2000625F: jne 0x2000625b */ 4039 L_20006261: 4040 edi = MEM32(esi + 0x8); /* 0x20006261: mov edi, dword ptr [esi + 8] */ 4041 edx = ebp + 0xC; /* 0x20006264: lea edx, [ebp + 0xc] */ 4042 PUSH32(esp, edx); /* 0x20006267: push edx */ 4043 eax = ebp + (-0x8); /* 0x20006268: lea eax, [ebp - 8] */ 4044 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 4045 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4046 edi = edi + 4; /* 0x2000626B: add edi, 4 */ 4047 _flag_k = FK_ADD; 4048 PUSH32(esp, eax); /* 0x2000626E: push eax */ 4049 ecx = edi; /* 0x2000626F: mov ecx, edi */ 4050 RECOMP_ICALL(0x200069D0u); /* 0x20006271: call 0x200069d0 */ /* not lifted */ 4051 RECOMP_FLAGS_IN(); 4052 eax = MEM32(eax); /* 0x20006276: mov eax, dword ptr [eax] */ 4053 edi = MEM32(edi + 0x4); /* 0x20006278: mov edi, dword ptr [edi + 4] */ 4054 /* cmp eax, edi */ /* 0x2000627B: cmp eax, edi */ 4055 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4057 _flag_k = FK_CMP; 4058 MEM32(ebp + 0x8) = eax; /* 0x2000627D: mov dword ptr [ebp + 8], eax */ 4059 if (CMP_EQ(_flag_a, _flag_b)) goto L_2000628F; /* 0x20006280: je 0x2000628f */ 4060 L_20006282: 4061 ecx = MEM32(ebp + 0xC); /* 0x20006282: mov ecx, dword ptr [ebp + 0xc] */ 4062 /* cmp ecx, MEM32(eax + 0xC) */ /* 0x20006285: cmp ecx, dword ptr [eax + 0xc] */ 4063 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 4064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4065 _flag_k = FK_CMP; 4066 if (CMP_L(_flag_a, _flag_b)) goto L_2000628F; /* 0x20006288: jl 0x2000628f */ 4067 L_2000628A: 4068 eax = ebp + 0x8; /* 0x2000628A: lea eax, [ebp + 8] */ 4069 goto L_20006295; /* 0x2000628D: jmp 0x20006295 */ 4070 L_2000628F: 4071 MEM32(ebp + (-0x4)) = edi; /* 0x2000628F: mov dword ptr [ebp - 4], edi */ 4072 eax = ebp + (-0x4); /* 0x20006292: lea eax, [ebp - 4] */ 4073 L_20006295: 4074 edx = MEM32(esi + 0x8); /* 0x20006295: mov edx, dword ptr [esi + 8] */ 4075 eax = MEM32(eax); /* 0x20006298: mov eax, dword ptr [eax] */ 4076 /* cmp eax, MEM32(edx + 0x8) */ /* 0x2000629A: cmp eax, dword ptr [edx + 8] */ 4077 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 4078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4079 _flag_k = FK_CMP; 4080 edi = POP32_VAL(esp); /* 0x2000629D: pop edi */ 4081 esi = POP32_VAL(esp); /* 0x2000629E: pop esi */ 4082 if (CMP_NE(_flag_a, _flag_b)) goto L_200062AC; /* 0x2000629F: jne 0x200062ac */ 4083 L_200062A1: 4084 eax = 0x20008088u; /* 0x200062A1: mov eax, 0x20008088 */ 4085 esp = ebp; /* 0x200062A6: mov esp, ebp */ 4086 ebp = POP32_VAL(esp); /* 0x200062A8: pop ebp */ 4087 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x200062A9: ret 8 */ 4088 L_200062AC: 4089 eax = MEM32(eax + 0x10); /* 0x200062AC: mov eax, dword ptr [eax + 0x10] */ 4090 esp = ebp; /* 0x200062AF: mov esp, ebp */ 4091 ebp = POP32_VAL(esp); /* 0x200062B1: pop ebp */ 4092 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x200062B2: ret 8 */ 4093 RECOMP_REGS_OUT(); 4094 } 4095 4096 void sub_200062C0(void) { 4097 int _fpu_cmp = 0; 4098 uint32_t _cf = 0; 4099 int _df = 1; 4100 uint32_t _flag_k = FK_NONE; 4101 uint32_t _flag_a = 0, _flag_b = 0; 4102 uint32_t _itail_tgt = 0; 4103 RECOMP_REGS_LOCALS 4104 RECOMP_ENTER(0x200062C0u); 4105 4106 L_200062C0: 4107 PUSH32(esp, ebp); /* 0x200062C0: push ebp */ 4108 ebp = esp; /* 0x200062C1: mov ebp, esp */ 4109 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4111 esp = esp - 0x18u; /* 0x200062C3: sub esp, 0x18 */ 4112 _flag_k = FK_CMP; 4113 eax = MEM32(ebp + 0x8); /* 0x200062C6: mov eax, dword ptr [ebp + 8] */ 4114 PUSH32(esp, ebx); /* 0x200062C9: push ebx */ 4115 PUSH32(esp, esi); /* 0x200062CA: push esi */ 4116 PUSH32(esp, edi); /* 0x200062CB: push edi */ 4117 esi = ecx; /* 0x200062CC: mov esi, ecx */ 4118 PUSH32(esp, eax); /* 0x200062CE: push eax */ 4119 RECOMP_ICALL(0x20006030u); /* 0x200062CF: call 0x20006030 */ /* not lifted */ 4120 RECOMP_FLAGS_IN(); 4121 /* test eax, eax */ /* 0x200062D4: test eax, eax */ 4122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4123 _cf = 0; 4124 _flag_k = FK_TEST; 4125 ecx = MEM32(esi + 0x4); /* 0x200062D6: mov ecx, dword ptr [esi + 4] */ 4126 ecx = MEM32(ecx); /* 0x200062D9: mov ecx, dword ptr [ecx] */ 4127 edx = eax; /* 0x200062DB: mov edx, eax */ 4128 if (TEST_LE(_flag_a, _flag_b)) goto L_200062E6; /* 0x200062DD: jle 0x200062e6 */ 4129 L_200062DF: 4130 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4131 edx = 0; /* 0x200062DF: xor edx, edx */ 4132 _cf = 0; 4133 _flag_k = FK_TEST; 4134 L_200062E1: 4135 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4136 eax = eax - 1; /* 0x200062E1: dec eax */ 4137 _flag_k = FK_DEC; 4138 ecx = MEM32(ecx); /* 0x200062E2: mov ecx, dword ptr [ecx] */ 4139 RECOMP_BACKEDGE(); 4140 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_200062E1; /* 0x200062E4: jne 0x200062e1 */ 4141 L_200062E6: 4142 /* test edx, edx */ /* 0x200062E6: test edx, edx */ 4143 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4144 _cf = 0; 4145 _flag_k = FK_TEST; 4146 if (TEST_NS(_flag_a, _flag_b)) goto L_200062F2; /* 0x200062E8: jge 0x200062f2 */ 4147 L_200062EA: 4148 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(edx); 4149 _cf = (edx) != 0; 4150 edx = (uint32_t)(-(int32_t)edx); /* 0x200062EA: neg edx */ 4151 _flag_k = FK_CMP; 4152 L_200062EC: 4153 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4154 edx = edx - 1; /* 0x200062EC: dec edx */ 4155 _flag_k = FK_DEC; 4156 ecx = MEM32(ecx + 0x4); /* 0x200062ED: mov ecx, dword ptr [ecx + 4] */ 4157 RECOMP_BACKEDGE(); 4158 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_200062EC; /* 0x200062F0: jne 0x200062ec */ 4159 L_200062F2: 4160 ebx = MEM32(ecx + 0x8); /* 0x200062F2: mov ebx, dword ptr [ecx + 8] */ 4161 edx = MEM32(ebx + 0x8); /* 0x200062F5: mov edx, dword ptr [ebx + 8] */ 4162 edi = MEM32(edx); /* 0x200062F8: mov edi, dword ptr [edx] */ 4163 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 4164 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4165 ebx = ebx + 4; /* 0x200062FA: add ebx, 4 */ 4166 _flag_k = FK_ADD; 4167 MEM32(ebp + (-0x4)) = 0; /* 0x200062FD: mov dword ptr [ebp - 4], 0 */ 4168 MEM32(ebp + (-0xC)) = ebx; /* 0x20006304: mov dword ptr [ebp - 0xc], ebx */ 4169 L_20006307: 4170 /* cmp edi, MEM32(ebx + 0x4) */ /* 0x20006307: cmp edi, dword ptr [ebx + 4] */ 4171 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 4172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4173 _flag_k = FK_CMP; 4174 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006387; /* 0x2000630A: je 0x20006387 */ 4175 L_2000630C: 4176 esi = MEM32(ebp + 0x8); /* 0x2000630C: mov esi, dword ptr [ebp + 8] */ 4177 ecx = MEM32(edi + 0x10); /* 0x2000630F: mov ecx, dword ptr [edi + 0x10] */ 4178 L_20006312: 4179 SET_LO8(edx, MEM8(ecx)); /* 0x20006312: mov dl, byte ptr [ecx] */ 4180 SET_LO8(eax, LO8(edx)); /* 0x20006314: mov al, dl */ 4181 /* cmp LO8(edx), MEM8(esi) */ /* 0x20006316: cmp dl, byte ptr [esi] */ 4182 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24; 4183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4184 _flag_k = FK_NARROW(FK_CMP, 24); 4185 if (CMP_NE(_flag_a, _flag_b)) goto L_20006336; /* 0x20006318: jne 0x20006336 */ 4186 L_2000631A: 4187 /* test LO8(eax), LO8(eax) */ /* 0x2000631A: test al, al */ 4188 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4189 _cf = 0; 4190 _flag_k = FK_NARROW(FK_TEST, 24); 4191 if (TEST_Z(_flag_a, _flag_b)) goto L_20006332; /* 0x2000631C: je 0x20006332 */ 4192 L_2000631E: 4193 SET_LO8(eax, MEM8(ecx + 0x1)); /* 0x2000631E: mov al, byte ptr [ecx + 1] */ 4194 SET_LO8(edx, LO8(eax)); /* 0x20006321: mov dl, al */ 4195 /* cmp LO8(eax), MEM8(esi + 0x1) */ /* 0x20006323: cmp al, byte ptr [esi + 1] */ 4196 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24; 4197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4198 _flag_k = FK_NARROW(FK_CMP, 24); 4199 if (CMP_NE(_flag_a, _flag_b)) goto L_20006336; /* 0x20006326: jne 0x20006336 */ 4200 L_20006328: 4201 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 4202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4203 ecx = ecx + 2; /* 0x20006328: add ecx, 2 */ 4204 _flag_k = FK_ADD; 4205 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 4206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4207 esi = esi + 2; /* 0x2000632B: add esi, 2 */ 4208 _flag_k = FK_ADD; 4209 /* test LO8(edx), LO8(edx) */ /* 0x2000632E: test dl, dl */ 4210 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4211 _cf = 0; 4212 _flag_k = FK_NARROW(FK_TEST, 24); 4213 RECOMP_BACKEDGE(); 4214 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006312; /* 0x20006330: jne 0x20006312 */ 4215 L_20006332: 4216 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4217 eax = 0; /* 0x20006332: xor eax, eax */ 4218 _cf = 0; 4219 _flag_k = FK_TEST; 4220 goto L_2000633B; /* 0x20006334: jmp 0x2000633b */ 4221 L_20006336: 4222 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x20006336: sbb eax, eax */ 4223 eax = _sc ? 0xFFFFFFFFu : 0; 4224 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4225 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4226 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x20006338: sbb eax, -1 */ 4227 eax = _sa - _sb - _sc; 4228 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4229 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4230 L_2000633B: 4231 /* test eax, eax */ /* 0x2000633B: test eax, eax */ 4232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4233 _cf = 0; 4234 _flag_k = FK_TEST; 4235 if (TEST_Z(_flag_a, _flag_b)) goto L_2000637B; /* 0x2000633D: je 0x2000637b */ 4236 L_2000633F: 4237 eax = MEM32(edi + 0x8); /* 0x2000633F: mov eax, dword ptr [edi + 8] */ 4238 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x20006342: mov cl, byte ptr [eax + 0x15] */ 4239 /* test LO8(ecx), LO8(ecx) */ /* 0x20006345: test cl, cl */ 4240 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4241 _cf = 0; 4242 _flag_k = FK_NARROW(FK_TEST, 24); 4243 if (TEST_NZ(_flag_a, _flag_b)) goto L_2000635D; /* 0x20006347: jne 0x2000635d */ 4244 L_20006349: 4245 PUSH32(esp, eax); /* 0x20006349: push eax */ 4246 RECOMP_ICALL(0x20006A10u); /* 0x2000634A: call 0x20006a10 */ /* not lifted */ 4247 RECOMP_FLAGS_IN(); 4248 edi = eax; /* 0x2000634F: mov edi, eax */ 4249 eax = MEM32(ebp + (-0x4)); /* 0x20006351: mov eax, dword ptr [ebp - 4] */ 4250 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4252 esp = esp + 4; /* 0x20006354: add esp, 4 */ 4253 _flag_k = FK_ADD; 4254 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4255 eax = eax + 1; /* 0x20006357: inc eax */ 4256 _flag_k = FK_INC; 4257 MEM32(ebp + (-0x4)) = eax; /* 0x20006358: mov dword ptr [ebp - 4], eax */ 4258 RECOMP_BACKEDGE(); 4259 goto L_20006307; /* 0x2000635B: jmp 0x20006307 */ 4260 L_2000635D: 4261 ecx = MEM32(edi + 0x4); /* 0x2000635D: mov ecx, dword ptr [edi + 4] */ 4262 /* cmp edi, MEM32(ecx + 0x8) */ /* 0x20006360: cmp edi, dword ptr [ecx + 8] */ 4263 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 4264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4265 _flag_k = FK_CMP; 4266 if (CMP_NE(_flag_a, _flag_b)) goto L_2000636F; /* 0x20006363: jne 0x2000636f */ 4267 L_20006365: 4268 edi = ecx; /* 0x20006365: mov edi, ecx */ 4269 ecx = MEM32(ecx + 0x4); /* 0x20006367: mov ecx, dword ptr [ecx + 4] */ 4270 /* cmp edi, MEM32(ecx + 0x8) */ /* 0x2000636A: cmp edi, dword ptr [ecx + 8] */ 4271 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 4272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4273 _flag_k = FK_CMP; 4274 RECOMP_BACKEDGE(); 4275 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006365; /* 0x2000636D: je 0x20006365 */ 4276 L_2000636F: 4277 /* cmp MEM32(edi + 0x8), ecx */ /* 0x2000636F: cmp dword ptr [edi + 8], ecx */ 4278 _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(ecx); 4279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4280 _flag_k = FK_CMP; 4281 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006376; /* 0x20006372: je 0x20006376 */ 4282 L_20006374: 4283 edi = ecx; /* 0x20006374: mov edi, ecx */ 4284 L_20006376: 4285 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(1); 4286 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 1; /* 0x20006376: inc dword ptr [ebp - 4] */ 4287 _flag_k = FK_INC; 4288 RECOMP_BACKEDGE(); 4289 goto L_20006307; /* 0x20006379: jmp 0x20006307 */ 4290 L_2000637B: 4291 eax = MEM32(ebp + (-0x4)); /* 0x2000637B: mov eax, dword ptr [ebp - 4] */ 4292 edi = POP32_VAL(esp); /* 0x2000637E: pop edi */ 4293 esi = POP32_VAL(esp); /* 0x2000637F: pop esi */ 4294 ebx = POP32_VAL(esp); /* 0x20006380: pop ebx */ 4295 esp = ebp; /* 0x20006381: mov esp, ebp */ 4296 ebp = POP32_VAL(esp); /* 0x20006383: pop ebp */ 4297 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20006384: ret 4 */ 4298 L_20006387: 4299 edi = MEM32(ebp + 0x8); /* 0x20006387: mov edi, dword ptr [ebp + 8] */ 4300 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4301 ecx = ecx | 0xFFFFFFFFu; /* 0x2000638A: or ecx, 0xffffffff */ 4302 _cf = 0; 4303 _flag_k = FK_TEST; 4304 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4305 eax = 0; /* 0x2000638D: xor eax, eax */ 4306 _cf = 0; 4307 _flag_k = FK_TEST; 4308 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2000638F: repne scasb al, byte ptr es:[edi] */ 4309 ecx = ~ecx; /* 0x20006391: not ecx */ 4310 PUSH32(esp, ecx); /* 0x20006393: push ecx */ 4311 RECOMP_ICALL(0x2000727Cu); /* 0x20006394: call 0x2000727c */ /* not lifted */ 4312 RECOMP_FLAGS_IN(); 4313 edi = MEM32(ebp + 0x8); /* 0x20006399: mov edi, dword ptr [ebp + 8] */ 4314 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4315 ecx = ecx | 0xFFFFFFFFu; /* 0x2000639C: or ecx, 0xffffffff */ 4316 _cf = 0; 4317 _flag_k = FK_TEST; 4318 ebx = eax; /* 0x2000639F: mov ebx, eax */ 4319 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4320 eax = 0; /* 0x200063A1: xor eax, eax */ 4321 _cf = 0; 4322 _flag_k = FK_TEST; 4323 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4324 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4325 esp = esp + 4; /* 0x200063A3: add esp, 4 */ 4326 _flag_k = FK_ADD; 4327 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x200063A6: repne scasb al, byte ptr es:[edi] */ 4328 ecx = ~ecx; /* 0x200063A8: not ecx */ 4329 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4331 edi = edi - ecx; /* 0x200063AA: sub edi, ecx */ 4332 _flag_k = FK_CMP; 4333 edx = ecx; /* 0x200063AC: mov edx, ecx */ 4334 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x200063AE: shr ecx, 2 */ 4335 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4336 ecx = ecx >> 2u; /* 0x200063AE: shr ecx, 2 */ 4337 esi = edi; /* 0x200063B1: mov esi, edi */ 4338 edi = ebx; /* 0x200063B3: mov edi, ebx */ 4339 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x200063B5: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4340 ecx = edx; /* 0x200063B7: mov ecx, edx */ 4341 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4342 ecx = ecx & 3; /* 0x200063B9: and ecx, 3 */ 4343 _cf = 0; 4344 _flag_k = FK_TEST; 4345 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x200063BC: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4346 esi = MEM32(ebp + (-0x4)); /* 0x200063BE: mov esi, dword ptr [ebp - 4] */ 4347 MEM32(ebp + (-0x4)) = eax; /* 0x200063C1: mov dword ptr [ebp - 4], eax */ 4348 eax = ebp + (-0x8); /* 0x200063C4: lea eax, [ebp - 8] */ 4349 PUSH32(esp, eax); /* 0x200063C7: push eax */ 4350 ecx = ebp + (-0x10); /* 0x200063C8: lea ecx, [ebp - 0x10] */ 4351 PUSH32(esp, ecx); /* 0x200063CB: push ecx */ 4352 ecx = MEM32(ebp + (-0xC)); /* 0x200063CC: mov ecx, dword ptr [ebp - 0xc] */ 4353 MEM32(ebp + (-0x8)) = esi; /* 0x200063CF: mov dword ptr [ebp - 8], esi */ 4354 RECOMP_ICALL(0x20006780u); /* 0x200063D2: call 0x20006780 */ /* not lifted */ 4355 RECOMP_FLAGS_IN(); 4356 edx = eax; /* 0x200063D7: mov edx, eax */ 4357 eax = MEM32(edx); /* 0x200063D9: mov eax, dword ptr [edx] */ 4358 ecx = MEM32(edx + 0x4); /* 0x200063DB: mov ecx, dword ptr [edx + 4] */ 4359 MEM32(eax + 0x10) = ebx; /* 0x200063DE: mov dword ptr [eax + 0x10], ebx */ 4360 edi = POP32_VAL(esp); /* 0x200063E1: pop edi */ 4361 eax = esi; /* 0x200063E2: mov eax, esi */ 4362 esi = POP32_VAL(esp); /* 0x200063E4: pop esi */ 4363 MEM32(ebp + (-0x14)) = ecx; /* 0x200063E5: mov dword ptr [ebp - 0x14], ecx */ 4364 ebx = POP32_VAL(esp); /* 0x200063E8: pop ebx */ 4365 esp = ebp; /* 0x200063E9: mov esp, ebp */ 4366 ebp = POP32_VAL(esp); /* 0x200063EB: pop ebp */ 4367 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200063EC: ret 4 */ 4368 RECOMP_REGS_OUT(); 4369 } 4370 4371 void sub_200063F0(void) { 4372 int _fpu_cmp = 0; 4373 uint32_t _cf = 0; 4374 int _df = 1; 4375 uint32_t _flag_k = FK_NONE; 4376 uint32_t _flag_a = 0, _flag_b = 0; 4377 uint32_t _itail_tgt = 0; 4378 RECOMP_REGS_LOCALS 4379 RECOMP_ENTER(0x200063F0u); 4380 4381 L_200063F0: 4382 PUSH32(esp, ebp); /* 0x200063F0: push ebp */ 4383 ebp = esp; /* 0x200063F1: mov ebp, esp */ 4384 PUSH32(esp, 0xFFFFFFFFu); /* 0x200063F3: push -1 */ 4385 PUSH32(esp, 0x200076D8u); /* 0x200063F5: push 0x200076d8 */ 4386 eax = MEM32(FS_BASE + (0)); /* 0x200063FA: mov eax, dword ptr fs:[0] */ 4387 PUSH32(esp, eax); /* 0x20006400: push eax */ 4388 MEM32(FS_BASE + (0)) = esp; /* 0x20006401: mov dword ptr fs:[0], esp */ 4389 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 4390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4391 esp = esp - 0x28u; /* 0x20006408: sub esp, 0x28 */ 4392 _flag_k = FK_CMP; 4393 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2000640B: mov al, byte ptr [ebp - 0xd] */ 4394 PUSH32(esp, edi); /* 0x2000640E: push edi */ 4395 edi = ecx; /* 0x2000640F: mov edi, ecx */ 4396 PUSH32(esp, 0xCu); /* 0x20006411: push 0xc */ 4397 MEM32(ebp + (-0x18)) = edi; /* 0x20006413: mov dword ptr [ebp - 0x18], edi */ 4398 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x20006416: mov byte ptr [edi], al */ 4399 RECOMP_ICALL(0x2000727Cu); /* 0x20006418: call 0x2000727c */ /* not lifted */ 4400 RECOMP_FLAGS_IN(); 4401 MEM32(eax) = eax; /* 0x2000641D: mov dword ptr [eax], eax */ 4402 MEM32(eax + 0x4) = eax; /* 0x2000641F: mov dword ptr [eax + 4], eax */ 4403 MEM32(edi + 0x4) = eax; /* 0x20006422: mov dword ptr [edi + 4], eax */ 4404 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4405 eax = 0; /* 0x20006425: xor eax, eax */ 4406 _cf = 0; 4407 _flag_k = FK_TEST; 4408 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4409 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4410 esp = esp + 4; /* 0x20006427: add esp, 4 */ 4411 _flag_k = FK_ADD; 4412 MEM32(edi + 0x8) = eax; /* 0x2000642A: mov dword ptr [edi + 8], eax */ 4413 /* cmp MEM32(0x2000B094), eax */ /* 0x2000642D: cmp dword ptr [0x2000b094], eax */ 4414 _flag_a = (uint32_t)(MEM32(0x2000B094)); _flag_b = (uint32_t)(eax); 4415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4416 _flag_k = FK_CMP; 4417 MEM32(ebp + (-0x4)) = eax; /* 0x20006433: mov dword ptr [ebp - 4], eax */ 4418 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006509; /* 0x20006436: je 0x20006509 */ 4419 L_2000643C: 4420 PUSH32(esp, ebx); /* 0x2000643C: push ebx */ 4421 PUSH32(esp, esi); /* 0x2000643D: push esi */ 4422 esi = 0x2000B094u; /* 0x2000643E: mov esi, 0x2000b094 */ 4423 MEM32(ebp + (-0x14)) = esi; /* 0x20006443: mov dword ptr [ebp - 0x14], esi */ 4424 goto L_2000644B; /* 0x20006446: jmp 0x2000644b */ 4425 L_20006448: 4426 edi = MEM32(ebp + (-0x18)); /* 0x20006448: mov edi, dword ptr [ebp - 0x18] */ 4427 L_2000644B: 4428 ecx = MEM32(esi); /* 0x2000644B: mov ecx, dword ptr [esi] */ 4429 PUSH32(esp, ecx); /* 0x2000644D: push ecx */ 4430 ecx = edi; /* 0x2000644E: mov ecx, edi */ 4431 RECOMP_ICALL(0x20006030u); /* 0x20006450: call 0x20006030 */ /* not lifted */ 4432 RECOMP_FLAGS_IN(); 4433 /* test eax, eax */ /* 0x20006455: test eax, eax */ 4434 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4435 _cf = 0; 4436 _flag_k = FK_TEST; 4437 edx = MEM32(edi + 0x4); /* 0x20006457: mov edx, dword ptr [edi + 4] */ 4438 ecx = MEM32(edx); /* 0x2000645A: mov ecx, dword ptr [edx] */ 4439 edx = eax; /* 0x2000645C: mov edx, eax */ 4440 if (TEST_LE(_flag_a, _flag_b)) goto L_20006467; /* 0x2000645E: jle 0x20006467 */ 4441 L_20006460: 4442 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4443 edx = 0; /* 0x20006460: xor edx, edx */ 4444 _cf = 0; 4445 _flag_k = FK_TEST; 4446 L_20006462: 4447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4448 eax = eax - 1; /* 0x20006462: dec eax */ 4449 _flag_k = FK_DEC; 4450 ecx = MEM32(ecx); /* 0x20006463: mov ecx, dword ptr [ecx] */ 4451 RECOMP_BACKEDGE(); 4452 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_20006462; /* 0x20006465: jne 0x20006462 */ 4453 L_20006467: 4454 /* test edx, edx */ /* 0x20006467: test edx, edx */ 4455 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4456 _cf = 0; 4457 _flag_k = FK_TEST; 4458 if (TEST_NS(_flag_a, _flag_b)) goto L_20006473; /* 0x20006469: jge 0x20006473 */ 4459 L_2000646B: 4460 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(edx); 4461 _cf = (edx) != 0; 4462 edx = (uint32_t)(-(int32_t)edx); /* 0x2000646B: neg edx */ 4463 _flag_k = FK_CMP; 4464 L_2000646D: 4465 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4466 edx = edx - 1; /* 0x2000646D: dec edx */ 4467 _flag_k = FK_DEC; 4468 ecx = MEM32(ecx + 0x4); /* 0x2000646E: mov ecx, dword ptr [ecx + 4] */ 4469 RECOMP_BACKEDGE(); 4470 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2000646D; /* 0x20006471: jne 0x2000646d */ 4471 L_20006473: 4472 ebx = MEM32(ecx + 0x8); /* 0x20006473: mov ebx, dword ptr [ecx + 8] */ 4473 eax = MEM32(ebx + 0x14); /* 0x20006476: mov eax, dword ptr [ebx + 0x14] */ 4474 edi = MEM32(esi); /* 0x20006479: mov edi, dword ptr [esi] */ 4475 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 4476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4477 ebx = ebx + 4; /* 0x2000647B: add ebx, 4 */ 4478 _flag_k = FK_ADD; 4479 MEM32(ebp + (-0x1C)) = eax; /* 0x2000647E: mov dword ptr [ebp - 0x1c], eax */ 4480 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4481 ecx = ecx | 0xFFFFFFFFu; /* 0x20006481: or ecx, 0xffffffff */ 4482 _cf = 0; 4483 _flag_k = FK_TEST; 4484 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4485 eax = 0; /* 0x20006484: xor eax, eax */ 4486 _cf = 0; 4487 _flag_k = FK_TEST; 4488 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x20006486: repne scasb al, byte ptr es:[edi] */ 4489 ecx = ~ecx; /* 0x20006488: not ecx */ 4490 PUSH32(esp, ecx); /* 0x2000648A: push ecx */ 4491 RECOMP_ICALL(0x2000727Cu); /* 0x2000648B: call 0x2000727c */ /* not lifted */ 4492 RECOMP_FLAGS_IN(); 4493 edi = MEM32(esi); /* 0x20006490: mov edi, dword ptr [esi] */ 4494 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4495 ecx = ecx | 0xFFFFFFFFu; /* 0x20006492: or ecx, 0xffffffff */ 4496 _cf = 0; 4497 _flag_k = FK_TEST; 4498 edx = eax; /* 0x20006495: mov edx, eax */ 4499 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4500 eax = 0; /* 0x20006497: xor eax, eax */ 4501 _cf = 0; 4502 _flag_k = FK_TEST; 4503 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4505 esp = esp + 4; /* 0x20006499: add esp, 4 */ 4506 _flag_k = FK_ADD; 4507 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2000649C: repne scasb al, byte ptr es:[edi] */ 4508 ecx = ~ecx; /* 0x2000649E: not ecx */ 4509 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4511 edi = edi - ecx; /* 0x200064A0: sub edi, ecx */ 4512 _flag_k = FK_CMP; 4513 eax = ecx; /* 0x200064A2: mov eax, ecx */ 4514 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x200064A4: shr ecx, 2 */ 4515 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4516 ecx = ecx >> 2u; /* 0x200064A4: shr ecx, 2 */ 4517 esi = edi; /* 0x200064A7: mov esi, edi */ 4518 edi = edx; /* 0x200064A9: mov edi, edx */ 4519 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x200064AB: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4520 ecx = eax; /* 0x200064AD: mov ecx, eax */ 4521 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4522 ecx = ecx & 3; /* 0x200064AF: and ecx, 3 */ 4523 _cf = 0; 4524 _flag_k = FK_TEST; 4525 MEM32(ebp + (-0x24)) = edx; /* 0x200064B2: mov dword ptr [ebp - 0x24], edx */ 4526 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x200064B5: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4527 ecx = MEM32(ebp + (-0x1C)); /* 0x200064B7: mov ecx, dword ptr [ebp - 0x1c] */ 4528 edx = ebp + (-0x2C); /* 0x200064BA: lea edx, [ebp - 0x2c] */ 4529 PUSH32(esp, edx); /* 0x200064BD: push edx */ 4530 eax = ebp + (-0x34); /* 0x200064BE: lea eax, [ebp - 0x34] */ 4531 MEM32(ebp + (-0x2C)) = ecx; /* 0x200064C1: mov dword ptr [ebp - 0x2c], ecx */ 4532 PUSH32(esp, eax); /* 0x200064C4: push eax */ 4533 ecx = ebx; /* 0x200064C5: mov ecx, ebx */ 4534 MEM32(ebp + (-0x28)) = 0; /* 0x200064C7: mov dword ptr [ebp - 0x28], 0 */ 4535 RECOMP_ICALL(0x20006780u); /* 0x200064CE: call 0x20006780 */ /* not lifted */ 4536 RECOMP_FLAGS_IN(); 4537 esi = MEM32(ebp + (-0x14)); /* 0x200064D3: mov esi, dword ptr [ebp - 0x14] */ 4538 ecx = eax; /* 0x200064D6: mov ecx, eax */ 4539 eax = MEM32(ecx); /* 0x200064D8: mov eax, dword ptr [ecx] */ 4540 edx = MEM32(ecx + 0x4); /* 0x200064DA: mov edx, dword ptr [ecx + 4] */ 4541 ecx = MEM32(ebp + (-0x24)); /* 0x200064DD: mov ecx, dword ptr [ebp - 0x24] */ 4542 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 4543 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4544 esi = esi + 4; /* 0x200064E0: add esi, 4 */ 4545 _flag_k = FK_ADD; 4546 MEM32(eax + 0x10) = ecx; /* 0x200064E3: mov dword ptr [eax + 0x10], ecx */ 4547 /* cmp MEM32(esi), 0 */ /* 0x200064E6: cmp dword ptr [esi], 0 */ 4548 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0); 4549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4550 _flag_k = FK_CMP; 4551 MEM32(ebp + (-0x1C)) = edx; /* 0x200064E9: mov dword ptr [ebp - 0x1c], edx */ 4552 MEM32(ebp + (-0x14)) = esi; /* 0x200064EC: mov dword ptr [ebp - 0x14], esi */ 4553 RECOMP_BACKEDGE(); 4554 if (CMP_NE(_flag_a, _flag_b)) goto L_20006448; /* 0x200064EF: jne 0x20006448 */ 4555 L_200064F5: 4556 eax = MEM32(ebp + (-0x18)); /* 0x200064F5: mov eax, dword ptr [ebp - 0x18] */ 4557 esi = POP32_VAL(esp); /* 0x200064F8: pop esi */ 4558 ebx = POP32_VAL(esp); /* 0x200064F9: pop ebx */ 4559 edi = POP32_VAL(esp); /* 0x200064FA: pop edi */ 4560 ecx = MEM32(ebp + (-0xC)); /* 0x200064FB: mov ecx, dword ptr [ebp - 0xc] */ 4561 MEM32(FS_BASE + (0)) = ecx; /* 0x200064FE: mov dword ptr fs:[0], ecx */ 4562 esp = ebp; /* 0x20006505: mov esp, ebp */ 4563 ebp = POP32_VAL(esp); /* 0x20006507: pop ebp */ 4564 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20006508: ret */ 4565 L_20006509: 4566 ecx = MEM32(ebp + (-0xC)); /* 0x20006509: mov ecx, dword ptr [ebp - 0xc] */ 4567 eax = edi; /* 0x2000650C: mov eax, edi */ 4568 edi = POP32_VAL(esp); /* 0x2000650E: pop edi */ 4569 MEM32(FS_BASE + (0)) = ecx; /* 0x2000650F: mov dword ptr fs:[0], ecx */ 4570 esp = ebp; /* 0x20006516: mov esp, ebp */ 4571 ebp = POP32_VAL(esp); /* 0x20006518: pop ebp */ 4572 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20006519: ret */ 4573 RECOMP_REGS_OUT(); 4574 } 4575 4576 void sub_20006520(void) { 4577 int _fpu_cmp = 0; 4578 uint32_t _cf = 0; 4579 int _df = 1; 4580 uint32_t _flag_k = FK_NONE; 4581 uint32_t _flag_a = 0, _flag_b = 0; 4582 uint32_t _itail_tgt = 0; 4583 RECOMP_REGS_LOCALS 4584 RECOMP_ENTER(0x20006520u); 4585 4586 L_20006520: 4587 PUSH32(esp, ebp); /* 0x20006520: push ebp */ 4588 ebp = esp; /* 0x20006521: mov ebp, esp */ 4589 PUSH32(esp, 0xFFFFFFFFu); /* 0x20006523: push -1 */ 4590 PUSH32(esp, 0x200076F8u); /* 0x20006525: push 0x200076f8 */ 4591 eax = MEM32(FS_BASE + (0)); /* 0x2000652A: mov eax, dword ptr fs:[0] */ 4592 PUSH32(esp, eax); /* 0x20006530: push eax */ 4593 MEM32(FS_BASE + (0)) = esp; /* 0x20006531: mov dword ptr fs:[0], esp */ 4594 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4596 esp = esp - 0x10u; /* 0x20006538: sub esp, 0x10 */ 4597 _flag_k = FK_CMP; 4598 PUSH32(esp, ebx); /* 0x2000653B: push ebx */ 4599 PUSH32(esp, esi); /* 0x2000653C: push esi */ 4600 ebx = ecx; /* 0x2000653D: mov ebx, ecx */ 4601 PUSH32(esp, edi); /* 0x2000653F: push edi */ 4602 MEM32(ebp + (-0x14)) = ebx; /* 0x20006540: mov dword ptr [ebp - 0x14], ebx */ 4603 eax = MEM32(ebx + 0x4); /* 0x20006543: mov eax, dword ptr [ebx + 4] */ 4604 ecx = MEM32(eax); /* 0x20006546: mov ecx, dword ptr [eax] */ 4605 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4606 edi = 0; /* 0x20006548: xor edi, edi */ 4607 _cf = 0; 4608 _flag_k = FK_TEST; 4609 /* cmp ecx, eax */ /* 0x2000654A: cmp ecx, eax */ 4610 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4612 _flag_k = FK_CMP; 4613 MEM32(ebp + (-0x4)) = edi; /* 0x2000654C: mov dword ptr [ebp - 4], edi */ 4614 if (CMP_EQ(_flag_a, _flag_b)) goto L_2000660F; /* 0x2000654F: je 0x2000660f */ 4615 L_20006555: 4616 eax = MEM32(eax); /* 0x20006555: mov eax, dword ptr [eax] */ 4617 edi = MEM32(eax + 0x8); /* 0x20006557: mov edi, dword ptr [eax + 8] */ 4618 eax = MEM32(edi + 0x8); /* 0x2000655A: mov eax, dword ptr [edi + 8] */ 4619 eax = MEM32(eax); /* 0x2000655D: mov eax, dword ptr [eax] */ 4620 MEM32(ebp + (-0x10)) = eax; /* 0x2000655F: mov dword ptr [ebp - 0x10], eax */ 4621 /* cmp eax, MEM32(edi + 0x8) */ /* 0x20006562: cmp eax, dword ptr [edi + 8] */ 4622 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4624 _flag_k = FK_CMP; 4625 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006585; /* 0x20006565: je 0x20006585 */ 4626 L_20006567: 4627 eax = MEM32(eax + 0x10); /* 0x20006567: mov eax, dword ptr [eax + 0x10] */ 4628 PUSH32(esp, eax); /* 0x2000656A: push eax */ 4629 RECOMP_ICALL(0x20007270u); /* 0x2000656B: call 0x20007270 */ /* not lifted */ 4630 RECOMP_FLAGS_IN(); 4631 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4632 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4633 esp = esp + 4; /* 0x20006570: add esp, 4 */ 4634 _flag_k = FK_ADD; 4635 ecx = ebp + (-0x10); /* 0x20006573: lea ecx, [ebp - 0x10] */ 4636 RECOMP_ICALL(0x20002AF0u); /* 0x20006576: call 0x20002af0 */ /* not lifted */ 4637 RECOMP_FLAGS_IN(); 4638 ecx = MEM32(edi + 0x8); /* 0x2000657B: mov ecx, dword ptr [edi + 8] */ 4639 eax = MEM32(ebp + (-0x10)); /* 0x2000657E: mov eax, dword ptr [ebp - 0x10] */ 4640 /* cmp eax, ecx */ /* 0x20006581: cmp eax, ecx */ 4641 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4643 _flag_k = FK_CMP; 4644 RECOMP_BACKEDGE(); 4645 if (CMP_NE(_flag_a, _flag_b)) goto L_20006567; /* 0x20006583: jne 0x20006567 */ 4646 L_20006585: 4647 eax = MEM32(edi + 0x8); /* 0x20006585: mov eax, dword ptr [edi + 8] */ 4648 ecx = MEM32(eax); /* 0x20006588: mov ecx, dword ptr [eax] */ 4649 esi = edi + 0x4; /* 0x2000658A: lea esi, [edi + 4] */ 4650 PUSH32(esp, eax); /* 0x2000658D: push eax */ 4651 PUSH32(esp, ecx); /* 0x2000658E: push ecx */ 4652 eax = ebp + (-0x18); /* 0x2000658F: lea eax, [ebp - 0x18] */ 4653 PUSH32(esp, eax); /* 0x20006592: push eax */ 4654 ecx = esi; /* 0x20006593: mov ecx, esi */ 4655 RECOMP_ICALL(0x20006670u); /* 0x20006595: call 0x20006670 */ /* not lifted */ 4656 RECOMP_FLAGS_IN(); 4657 eax = MEM32(ebx + 0x4); /* 0x2000659A: mov eax, dword ptr [ebx + 4] */ 4658 eax = MEM32(eax); /* 0x2000659D: mov eax, dword ptr [eax] */ 4659 ecx = MEM32(eax + 0x4); /* 0x2000659F: mov ecx, dword ptr [eax + 4] */ 4660 edx = MEM32(eax); /* 0x200065A2: mov edx, dword ptr [eax] */ 4661 MEM32(ecx) = edx; /* 0x200065A4: mov dword ptr [ecx], edx */ 4662 ecx = MEM32(eax); /* 0x200065A6: mov ecx, dword ptr [eax] */ 4663 edx = MEM32(eax + 0x4); /* 0x200065A8: mov edx, dword ptr [eax + 4] */ 4664 PUSH32(esp, eax); /* 0x200065AB: push eax */ 4665 MEM32(ecx + 0x4) = edx; /* 0x200065AC: mov dword ptr [ecx + 4], edx */ 4666 RECOMP_ICALL(0x20007270u); /* 0x200065AF: call 0x20007270 */ /* not lifted */ 4667 RECOMP_FLAGS_IN(); 4668 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(1); 4669 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) - 1; /* 0x200065B4: dec dword ptr [ebx + 8] */ 4670 _flag_k = FK_DEC; 4671 eax = MEM32(edi); /* 0x200065B7: mov eax, dword ptr [edi] */ 4672 PUSH32(esp, eax); /* 0x200065B9: push eax */ 4673 RECOMP_ICALL(0x20007270u); /* 0x200065BA: call 0x20007270 */ /* not lifted */ 4674 RECOMP_FLAGS_IN(); 4675 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4676 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4677 esp = esp + 8; /* 0x200065BF: add esp, 8 */ 4678 _flag_k = FK_ADD; 4679 /* test edi, edi */ /* 0x200065C2: test edi, edi */ 4680 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4681 _cf = 0; 4682 _flag_k = FK_TEST; 4683 if (TEST_Z(_flag_a, _flag_b)) goto L_20006602; /* 0x200065C4: je 0x20006602 */ 4684 L_200065C6: 4685 eax = MEM32(esi + 0x4); /* 0x200065C6: mov eax, dword ptr [esi + 4] */ 4686 ecx = MEM32(eax); /* 0x200065C9: mov ecx, dword ptr [eax] */ 4687 PUSH32(esp, eax); /* 0x200065CB: push eax */ 4688 PUSH32(esp, ecx); /* 0x200065CC: push ecx */ 4689 eax = ebp + (-0x1C); /* 0x200065CD: lea eax, [ebp - 0x1c] */ 4690 PUSH32(esp, eax); /* 0x200065D0: push eax */ 4691 ecx = esi; /* 0x200065D1: mov ecx, esi */ 4692 RECOMP_ICALL(0x20006670u); /* 0x200065D3: call 0x20006670 */ /* not lifted */ 4693 RECOMP_FLAGS_IN(); 4694 eax = MEM32(esi + 0x4); /* 0x200065D8: mov eax, dword ptr [esi + 4] */ 4695 PUSH32(esp, eax); /* 0x200065DB: push eax */ 4696 RECOMP_ICALL(0x20007270u); /* 0x200065DC: call 0x20007270 */ /* not lifted */ 4697 RECOMP_FLAGS_IN(); 4698 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4699 eax = 0; /* 0x200065E1: xor eax, eax */ 4700 _cf = 0; 4701 _flag_k = FK_TEST; 4702 MEM32(esi + 0x4) = eax; /* 0x200065E3: mov dword ptr [esi + 4], eax */ 4703 MEM32(esi + 0x10) = eax; /* 0x200065E6: mov dword ptr [esi + 0x10], eax */ 4704 eax = MEM32(esi + 0x8); /* 0x200065E9: mov eax, dword ptr [esi + 8] */ 4705 PUSH32(esp, eax); /* 0x200065EC: push eax */ 4706 RECOMP_ICALL(0x20007270u); /* 0x200065ED: call 0x20007270 */ /* not lifted */ 4707 RECOMP_FLAGS_IN(); 4708 PUSH32(esp, edi); /* 0x200065F2: push edi */ 4709 MEM32(esi + 0x8) = 0; /* 0x200065F3: mov dword ptr [esi + 8], 0 */ 4710 RECOMP_ICALL(0x20007270u); /* 0x200065FA: call 0x20007270 */ /* not lifted */ 4711 RECOMP_FLAGS_IN(); 4712 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4713 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4714 esp = esp + 0xCu; /* 0x200065FF: add esp, 0xc */ 4715 _flag_k = FK_ADD; 4716 L_20006602: 4717 eax = MEM32(ebx + 0x4); /* 0x20006602: mov eax, dword ptr [ebx + 4] */ 4718 /* cmp MEM32(eax), eax */ /* 0x20006605: cmp dword ptr [eax], eax */ 4719 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(eax); 4720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4721 _flag_k = FK_CMP; 4722 RECOMP_BACKEDGE(); 4723 if (CMP_NE(_flag_a, _flag_b)) goto L_20006555; /* 0x20006607: jne 0x20006555 */ 4724 L_2000660D: 4725 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4726 edi = 0; /* 0x2000660D: xor edi, edi */ 4727 _cf = 0; 4728 _flag_k = FK_TEST; 4729 L_2000660F: 4730 MEM32(0x20015CF4) = edi; /* 0x2000660F: mov dword ptr [0x20015cf4], edi */ 4731 esi = MEM32(ebx + 0x4); /* 0x20006615: mov esi, dword ptr [ebx + 4] */ 4732 eax = MEM32(esi); /* 0x20006618: mov eax, dword ptr [esi] */ 4733 /* cmp eax, esi */ /* 0x2000661A: cmp eax, esi */ 4734 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4736 _flag_k = FK_CMP; 4737 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2000661C: mov dword ptr [ebp - 4], 0xffffffff */ 4738 MEM32(ebp + (-0x10)) = eax; /* 0x20006623: mov dword ptr [ebp - 0x10], eax */ 4739 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006648; /* 0x20006626: je 0x20006648 */ 4740 L_20006628: 4741 PUSH32(esp, edi); /* 0x20006628: push edi */ 4742 ecx = ebp + (-0x1C); /* 0x20006629: lea ecx, [ebp - 0x1c] */ 4743 PUSH32(esp, ecx); /* 0x2000662C: push ecx */ 4744 ecx = ebp + (-0x10); /* 0x2000662D: lea ecx, [ebp - 0x10] */ 4745 RECOMP_ICALL(0x20006A30u); /* 0x20006630: call 0x20006a30 */ /* not lifted */ 4746 RECOMP_FLAGS_IN(); 4747 edx = MEM32(eax); /* 0x20006635: mov edx, dword ptr [eax] */ 4748 PUSH32(esp, edx); /* 0x20006637: push edx */ 4749 eax = ebp + (-0x18); /* 0x20006638: lea eax, [ebp - 0x18] */ 4750 PUSH32(esp, eax); /* 0x2000663B: push eax */ 4751 ecx = ebx; /* 0x2000663C: mov ecx, ebx */ 4752 RECOMP_ICALL(0x20005B20u); /* 0x2000663E: call 0x20005b20 */ /* not lifted */ 4753 RECOMP_FLAGS_IN(); 4754 /* cmp MEM32(ebp + (-0x10)), esi */ /* 0x20006643: cmp dword ptr [ebp - 0x10], esi */ 4755 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(esi); 4756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4757 _flag_k = FK_CMP; 4758 RECOMP_BACKEDGE(); 4759 if (CMP_NE(_flag_a, _flag_b)) goto L_20006628; /* 0x20006646: jne 0x20006628 */ 4760 L_20006648: 4761 ecx = MEM32(ebx + 0x4); /* 0x20006648: mov ecx, dword ptr [ebx + 4] */ 4762 PUSH32(esp, ecx); /* 0x2000664B: push ecx */ 4763 RECOMP_ICALL(0x20007270u); /* 0x2000664C: call 0x20007270 */ /* not lifted */ 4764 RECOMP_FLAGS_IN(); 4765 ecx = MEM32(ebp + (-0xC)); /* 0x20006651: mov ecx, dword ptr [ebp - 0xc] */ 4766 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4768 esp = esp + 4; /* 0x20006654: add esp, 4 */ 4769 _flag_k = FK_ADD; 4770 MEM32(ebx + 0x4) = edi; /* 0x20006657: mov dword ptr [ebx + 4], edi */ 4771 MEM32(ebx + 0x8) = edi; /* 0x2000665A: mov dword ptr [ebx + 8], edi */ 4772 edi = POP32_VAL(esp); /* 0x2000665D: pop edi */ 4773 esi = POP32_VAL(esp); /* 0x2000665E: pop esi */ 4774 ebx = POP32_VAL(esp); /* 0x2000665F: pop ebx */ 4775 MEM32(FS_BASE + (0)) = ecx; /* 0x20006660: mov dword ptr fs:[0], ecx */ 4776 esp = ebp; /* 0x20006667: mov esp, ebp */ 4777 ebp = POP32_VAL(esp); /* 0x20006669: pop ebp */ 4778 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000666A: ret */ 4779 RECOMP_REGS_OUT(); 4780 } 4781 4782 void sub_20006670(void) { 4783 int _fpu_cmp = 0; 4784 uint32_t _cf = 0; 4785 int _df = 1; 4786 uint32_t _flag_k = FK_NONE; 4787 uint32_t _flag_a = 0, _flag_b = 0; 4788 uint32_t _itail_tgt = 0; 4789 RECOMP_REGS_LOCALS 4790 RECOMP_ENTER(0x20006670u); 4791 4792 L_20006670: 4793 PUSH32(esp, ebp); /* 0x20006670: push ebp */ 4794 ebp = esp; /* 0x20006671: mov ebp, esp */ 4795 PUSH32(esp, ebx); /* 0x20006673: push ebx */ 4796 ebx = MEM32(ebp + 0x10); /* 0x20006674: mov ebx, dword ptr [ebp + 0x10] */ 4797 PUSH32(esp, esi); /* 0x20006677: push esi */ 4798 esi = ecx; /* 0x20006678: mov esi, ecx */ 4799 eax = MEM32(esi + 0x10); /* 0x2000667A: mov eax, dword ptr [esi + 0x10] */ 4800 /* test eax, eax */ /* 0x2000667D: test eax, eax */ 4801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4802 _cf = 0; 4803 _flag_k = FK_TEST; 4804 ecx = MEM32(ebp + 0xC); /* 0x2000667F: mov ecx, dword ptr [ebp + 0xc] */ 4805 PUSH32(esp, edi); /* 0x20006682: push edi */ 4806 if (TEST_Z(_flag_a, _flag_b)) goto L_200066E5; /* 0x20006683: je 0x200066e5 */ 4807 L_20006685: 4808 eax = MEM32(esi + 0x4); /* 0x20006685: mov eax, dword ptr [esi + 4] */ 4809 /* cmp ecx, MEM32(eax) */ /* 0x20006688: cmp ecx, dword ptr [eax] */ 4810 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 4811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4812 _flag_k = FK_CMP; 4813 if (CMP_NE(_flag_a, _flag_b)) goto L_200066E5; /* 0x2000668A: jne 0x200066e5 */ 4814 L_2000668C: 4815 /* cmp ebx, eax */ /* 0x2000668C: cmp ebx, eax */ 4816 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4818 _flag_k = FK_CMP; 4819 if (CMP_NE(_flag_a, _flag_b)) goto L_200066E5; /* 0x2000668E: jne 0x200066e5 */ 4820 L_20006690: 4821 ebx = MEM32(eax + 0x4); /* 0x20006690: mov ebx, dword ptr [eax + 4] */ 4822 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x20006693: cmp ebx, dword ptr [esi + 8] */ 4823 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4825 _flag_k = FK_CMP; 4826 edi = ebx; /* 0x20006696: mov edi, ebx */ 4827 if (CMP_EQ(_flag_a, _flag_b)) goto L_200066B9; /* 0x20006698: je 0x200066b9 */ 4828 L_2000669A: 4829 eax = MEM32(edi + 0x8); /* 0x2000669A: mov eax, dword ptr [edi + 8] */ 4830 PUSH32(esp, eax); /* 0x2000669D: push eax */ 4831 ecx = esi; /* 0x2000669E: mov ecx, esi */ 4832 RECOMP_ICALL(0x20002A60u); /* 0x200066A0: call 0x20002a60 */ /* not lifted */ 4833 RECOMP_FLAGS_IN(); 4834 edi = MEM32(edi); /* 0x200066A5: mov edi, dword ptr [edi] */ 4835 PUSH32(esp, ebx); /* 0x200066A7: push ebx */ 4836 RECOMP_ICALL(0x20007270u); /* 0x200066A8: call 0x20007270 */ /* not lifted */ 4837 RECOMP_FLAGS_IN(); 4838 eax = MEM32(esi + 0x8); /* 0x200066AD: mov eax, dword ptr [esi + 8] */ 4839 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4840 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4841 esp = esp + 4; /* 0x200066B0: add esp, 4 */ 4842 _flag_k = FK_ADD; 4843 /* cmp edi, eax */ /* 0x200066B3: cmp edi, eax */ 4844 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4846 _flag_k = FK_CMP; 4847 ebx = edi; /* 0x200066B5: mov ebx, edi */ 4848 RECOMP_BACKEDGE(); 4849 if (CMP_NE(_flag_a, _flag_b)) goto L_2000669A; /* 0x200066B7: jne 0x2000669a */ 4850 L_200066B9: 4851 ecx = MEM32(esi + 0x4); /* 0x200066B9: mov ecx, dword ptr [esi + 4] */ 4852 edx = MEM32(esi + 0x8); /* 0x200066BC: mov edx, dword ptr [esi + 8] */ 4853 MEM32(ecx + 0x4) = edx; /* 0x200066BF: mov dword ptr [ecx + 4], edx */ 4854 eax = MEM32(esi + 0x4); /* 0x200066C2: mov eax, dword ptr [esi + 4] */ 4855 MEM32(esi + 0x10) = 0; /* 0x200066C5: mov dword ptr [esi + 0x10], 0 */ 4856 MEM32(eax) = eax; /* 0x200066CC: mov dword ptr [eax], eax */ 4857 eax = MEM32(esi + 0x4); /* 0x200066CE: mov eax, dword ptr [esi + 4] */ 4858 MEM32(eax + 0x8) = eax; /* 0x200066D1: mov dword ptr [eax + 8], eax */ 4859 eax = MEM32(esi + 0x4); /* 0x200066D4: mov eax, dword ptr [esi + 4] */ 4860 ecx = MEM32(eax); /* 0x200066D7: mov ecx, dword ptr [eax] */ 4861 eax = MEM32(ebp + 0x8); /* 0x200066D9: mov eax, dword ptr [ebp + 8] */ 4862 edi = POP32_VAL(esp); /* 0x200066DC: pop edi */ 4863 esi = POP32_VAL(esp); /* 0x200066DD: pop esi */ 4864 MEM32(eax) = ecx; /* 0x200066DE: mov dword ptr [eax], ecx */ 4865 ebx = POP32_VAL(esp); /* 0x200066E0: pop ebx */ 4866 ebp = POP32_VAL(esp); /* 0x200066E1: pop ebp */ 4867 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x200066E2: ret 0xc */ 4868 L_200066E5: 4869 /* cmp ecx, ebx */ /* 0x200066E5: cmp ecx, ebx */ 4870 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4872 _flag_k = FK_CMP; 4873 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006706; /* 0x200066E7: je 0x20006706 */ 4874 L_200066E9: 4875 edi = ecx; /* 0x200066E9: mov edi, ecx */ 4876 ecx = ebp + 0xC; /* 0x200066EB: lea ecx, [ebp + 0xc] */ 4877 RECOMP_ICALL(0x20002AF0u); /* 0x200066EE: call 0x20002af0 */ /* not lifted */ 4878 RECOMP_FLAGS_IN(); 4879 PUSH32(esp, edi); /* 0x200066F3: push edi */ 4880 ecx = ebp + 0x10; /* 0x200066F4: lea ecx, [ebp + 0x10] */ 4881 PUSH32(esp, ecx); /* 0x200066F7: push ecx */ 4882 ecx = esi; /* 0x200066F8: mov ecx, esi */ 4883 RECOMP_ICALL(0x20002610u); /* 0x200066FA: call 0x20002610 */ /* not lifted */ 4884 RECOMP_FLAGS_IN(); 4885 ecx = MEM32(ebp + 0xC); /* 0x200066FF: mov ecx, dword ptr [ebp + 0xc] */ 4886 /* cmp ecx, ebx */ /* 0x20006702: cmp ecx, ebx */ 4887 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4889 _flag_k = FK_CMP; 4890 RECOMP_BACKEDGE(); 4891 if (CMP_NE(_flag_a, _flag_b)) goto L_200066E9; /* 0x20006704: jne 0x200066e9 */ 4892 L_20006706: 4893 eax = MEM32(ebp + 0x8); /* 0x20006706: mov eax, dword ptr [ebp + 8] */ 4894 edi = POP32_VAL(esp); /* 0x20006709: pop edi */ 4895 esi = POP32_VAL(esp); /* 0x2000670A: pop esi */ 4896 MEM32(eax) = ecx; /* 0x2000670B: mov dword ptr [eax], ecx */ 4897 ebx = POP32_VAL(esp); /* 0x2000670D: pop ebx */ 4898 ebp = POP32_VAL(esp); /* 0x2000670E: pop ebp */ 4899 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2000670F: ret 0xc */ 4900 RECOMP_REGS_OUT(); 4901 } 4902 4903 void sub_20006720(void) { 4904 int _fpu_cmp = 0; 4905 uint32_t _cf = 0; 4906 int _df = 1; 4907 uint32_t _flag_k = FK_NONE; 4908 uint32_t _flag_a = 0, _flag_b = 0; 4909 uint32_t _itail_tgt = 0; 4910 RECOMP_REGS_LOCALS 4911 RECOMP_ENTER(0x20006720u); 4912 4913 L_20006720: 4914 PUSH32(esp, ebx); /* 0x20006720: push ebx */ 4915 PUSH32(esp, esi); /* 0x20006721: push esi */ 4916 PUSH32(esp, edi); /* 0x20006722: push edi */ 4917 PUSH32(esp, 0x18u); /* 0x20006723: push 0x18 */ 4918 esi = ecx; /* 0x20006725: mov esi, ecx */ 4919 RECOMP_ICALL(0x2000727Cu); /* 0x20006727: call 0x2000727c */ /* not lifted */ 4920 RECOMP_FLAGS_IN(); 4921 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4922 ebx = 0; /* 0x2000672C: xor ebx, ebx */ 4923 _cf = 0; 4924 _flag_k = FK_TEST; 4925 MEM32(eax + 0x4) = ebx; /* 0x2000672E: mov dword ptr [eax + 4], ebx */ 4926 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x20006731: mov byte ptr [eax + 0x15], bl */ 4927 SET_LO8(ecx, 1); /* 0x20006734: mov cl, 1 */ 4928 MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x20006736: mov byte ptr [eax + 0x14], cl */ 4929 MEM32(esi + 0x8) = eax; /* 0x20006739: mov dword ptr [esi + 8], eax */ 4930 MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x2000673C: mov byte ptr [eax + 0x15], cl */ 4931 eax = MEM32(esi + 0x8); /* 0x2000673F: mov eax, dword ptr [esi + 8] */ 4932 MEM32(eax) = ebx; /* 0x20006742: mov dword ptr [eax], ebx */ 4933 ecx = MEM32(esi + 0x8); /* 0x20006744: mov ecx, dword ptr [esi + 8] */ 4934 MEM32(ecx + 0x8) = ebx; /* 0x20006747: mov dword ptr [ecx + 8], ebx */ 4935 edi = MEM32(esi + 0x8); /* 0x2000674A: mov edi, dword ptr [esi + 8] */ 4936 PUSH32(esp, 0x18u); /* 0x2000674D: push 0x18 */ 4937 RECOMP_ICALL(0x2000727Cu); /* 0x2000674F: call 0x2000727c */ /* not lifted */ 4938 RECOMP_FLAGS_IN(); 4939 MEM32(eax + 0x4) = edi; /* 0x20006754: mov dword ptr [eax + 4], edi */ 4940 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006757: mov byte ptr [eax + 0x14], bl */ 4941 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x2000675A: mov byte ptr [eax + 0x15], bl */ 4942 MEM32(esi + 0x4) = eax; /* 0x2000675D: mov dword ptr [esi + 4], eax */ 4943 MEM32(eax) = eax; /* 0x20006760: mov dword ptr [eax], eax */ 4944 eax = MEM32(esi + 0x4); /* 0x20006762: mov eax, dword ptr [esi + 4] */ 4945 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4946 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4947 esp = esp + 8; /* 0x20006765: add esp, 8 */ 4948 _flag_k = FK_ADD; 4949 edi = POP32_VAL(esp); /* 0x20006768: pop edi */ 4950 MEM32(eax + 0x8) = eax; /* 0x20006769: mov dword ptr [eax + 8], eax */ 4951 MEM32(esi + 0x10) = ebx; /* 0x2000676C: mov dword ptr [esi + 0x10], ebx */ 4952 esi = POP32_VAL(esp); /* 0x2000676F: pop esi */ 4953 ebx = POP32_VAL(esp); /* 0x20006770: pop ebx */ 4954 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20006771: ret */ 4955 RECOMP_REGS_OUT(); 4956 } 4957 4958 void sub_20006780(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(0x20006780u); 4967 4968 L_20006780: 4969 PUSH32(esp, ebp); /* 0x20006780: push ebp */ 4970 ebp = esp; /* 0x20006781: mov ebp, esp */ 4971 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4973 esp = esp - 0xCu; /* 0x20006783: sub esp, 0xc */ 4974 _flag_k = FK_CMP; 4975 PUSH32(esp, ebx); /* 0x20006786: push ebx */ 4976 PUSH32(esp, esi); /* 0x20006787: push esi */ 4977 PUSH32(esp, edi); /* 0x20006788: push edi */ 4978 edi = ecx; /* 0x20006789: mov edi, ecx */ 4979 ecx = MEM32(edi + 0x4); /* 0x2000678B: mov ecx, dword ptr [edi + 4] */ 4980 ebx = MEM32(ecx + 0x4); /* 0x2000678E: mov ebx, dword ptr [ecx + 4] */ 4981 edx = MEM32(edi + 0x8); /* 0x20006791: mov edx, dword ptr [edi + 8] */ 4982 /* cmp ebx, edx */ /* 0x20006794: cmp ebx, edx */ 4983 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 4984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4985 _flag_k = FK_CMP; 4986 esi = ecx; /* 0x20006796: mov esi, ecx */ 4987 SET_LO8(eax, 1); /* 0x20006798: mov al, 1 */ 4988 if (CMP_EQ(_flag_a, _flag_b)) goto L_200067BE; /* 0x2000679A: je 0x200067be */ 4989 L_2000679C: 4990 eax = MEM32(ebp + 0xC); /* 0x2000679C: mov eax, dword ptr [ebp + 0xc] */ 4991 eax = MEM32(eax); /* 0x2000679F: mov eax, dword ptr [eax] */ 4992 MEM32(ebp + (-0x8)) = eax; /* 0x200067A1: mov dword ptr [ebp - 8], eax */ 4993 L_200067A4: 4994 eax = MEM32(ebp + (-0x8)); /* 0x200067A4: mov eax, dword ptr [ebp - 8] */ 4995 /* cmp eax, MEM32(ebx + 0xC) */ /* 0x200067A7: cmp eax, dword ptr [ebx + 0xc] */ 4996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 4997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4998 _flag_k = FK_CMP; 4999 esi = ebx; /* 0x200067AA: mov esi, ebx */ 5000 SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x200067AC: setl al */ 5001 /* test LO8(eax), LO8(eax) */ /* 0x200067AF: test al, al */ 5002 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5003 _cf = 0; 5004 _flag_k = FK_NARROW(FK_TEST, 24); 5005 if (TEST_Z(_flag_a, _flag_b)) goto L_200067B7; /* 0x200067B1: je 0x200067b7 */ 5006 L_200067B3: 5007 ebx = MEM32(ebx); /* 0x200067B3: mov ebx, dword ptr [ebx] */ 5008 goto L_200067BA; /* 0x200067B5: jmp 0x200067ba */ 5009 L_200067B7: 5010 ebx = MEM32(ebx + 0x8); /* 0x200067B7: mov ebx, dword ptr [ebx + 8] */ 5011 L_200067BA: 5012 /* cmp ebx, edx */ /* 0x200067BA: cmp ebx, edx */ 5013 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 5014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5015 _flag_k = FK_CMP; 5016 RECOMP_BACKEDGE(); 5017 if (CMP_NE(_flag_a, _flag_b)) goto L_200067A4; /* 0x200067BC: jne 0x200067a4 */ 5018 L_200067BE: 5019 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x200067BE: mov dl, byte ptr [edi + 0xc] */ 5020 /* test LO8(edx), LO8(edx) */ /* 0x200067C1: test dl, dl */ 5021 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5022 _cf = 0; 5023 _flag_k = FK_NARROW(FK_TEST, 24); 5024 if (TEST_Z(_flag_a, _flag_b)) goto L_20006939; /* 0x200067C3: je 0x20006939 */ 5025 L_200067C9: 5026 PUSH32(esp, 0); /* 0x200067C9: push 0 */ 5027 PUSH32(esp, esi); /* 0x200067CB: push esi */ 5028 ecx = edi; /* 0x200067CC: mov ecx, edi */ 5029 RECOMP_ICALL(0x20002AC0u); /* 0x200067CE: call 0x20002ac0 */ /* not lifted */ 5030 RECOMP_FLAGS_IN(); 5031 ecx = MEM32(edi + 0x8); /* 0x200067D3: mov ecx, dword ptr [edi + 8] */ 5032 MEM32(eax) = ecx; /* 0x200067D6: mov dword ptr [eax], ecx */ 5033 edx = MEM32(edi + 0x8); /* 0x200067D8: mov edx, dword ptr [edi + 8] */ 5034 ecx = MEM32(ebp + 0xC); /* 0x200067DB: mov ecx, dword ptr [ebp + 0xc] */ 5035 MEM32(ebp + (-0x4)) = eax; /* 0x200067DE: mov dword ptr [ebp - 4], eax */ 5036 MEM32(eax + 0x8) = edx; /* 0x200067E1: mov dword ptr [eax + 8], edx */ 5037 PUSH32(esp, ecx); /* 0x200067E4: push ecx */ 5038 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 5039 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5040 eax = eax + 0xCu; /* 0x200067E5: add eax, 0xc */ 5041 _flag_k = FK_ADD; 5042 PUSH32(esp, eax); /* 0x200067E8: push eax */ 5043 RECOMP_ICALL(0x20002B60u); /* 0x200067E9: call 0x20002b60 */ /* not lifted */ 5044 RECOMP_FLAGS_IN(); 5045 ecx = MEM32(edi + 0x10); /* 0x200067EE: mov ecx, dword ptr [edi + 0x10] */ 5046 eax = MEM32(edi + 0x4); /* 0x200067F1: mov eax, dword ptr [edi + 4] */ 5047 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5048 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5049 esp = esp + 8; /* 0x200067F4: add esp, 8 */ 5050 _flag_k = FK_ADD; 5051 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5052 ecx = ecx + 1; /* 0x200067F7: inc ecx */ 5053 _flag_k = FK_INC; 5054 /* cmp esi, eax */ /* 0x200067F8: cmp esi, eax */ 5055 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5057 _flag_k = FK_CMP; 5058 MEM32(edi + 0x10) = ecx; /* 0x200067FA: mov dword ptr [edi + 0x10], ecx */ 5059 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006821; /* 0x200067FD: je 0x20006821 */ 5060 L_200067FF: 5061 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x200067FF: cmp ebx, dword ptr [edi + 8] */ 5062 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5064 _flag_k = FK_CMP; 5065 if (CMP_NE(_flag_a, _flag_b)) goto L_20006821; /* 0x20006802: jne 0x20006821 */ 5066 L_20006804: 5067 edx = MEM32(ebp + 0xC); /* 0x20006804: mov edx, dword ptr [ebp + 0xc] */ 5068 eax = MEM32(edx); /* 0x20006807: mov eax, dword ptr [edx] */ 5069 /* cmp eax, MEM32(esi + 0xC) */ /* 0x20006809: cmp eax, dword ptr [esi + 0xc] */ 5070 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 5071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5072 _flag_k = FK_CMP; 5073 if (CMP_L(_flag_a, _flag_b)) goto L_20006821; /* 0x2000680C: jl 0x20006821 */ 5074 L_2000680E: 5075 ebx = MEM32(ebp + (-0x4)); /* 0x2000680E: mov ebx, dword ptr [ebp - 4] */ 5076 MEM32(esi + 0x8) = ebx; /* 0x20006811: mov dword ptr [esi + 8], ebx */ 5077 eax = MEM32(edi + 0x4); /* 0x20006814: mov eax, dword ptr [edi + 4] */ 5078 /* cmp esi, MEM32(eax + 0x8) */ /* 0x20006817: cmp esi, dword ptr [eax + 8] */ 5079 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 5080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5081 _flag_k = FK_CMP; 5082 if (CMP_NE(_flag_a, _flag_b)) goto L_20006844; /* 0x2000681A: jne 0x20006844 */ 5083 L_2000681C: 5084 MEM32(eax + 0x8) = ebx; /* 0x2000681C: mov dword ptr [eax + 8], ebx */ 5085 goto L_20006844; /* 0x2000681F: jmp 0x20006844 */ 5086 L_20006821: 5087 ecx = MEM32(ebp + (-0x4)); /* 0x20006821: mov ecx, dword ptr [ebp - 4] */ 5088 MEM32(esi) = ecx; /* 0x20006824: mov dword ptr [esi], ecx */ 5089 eax = MEM32(edi + 0x4); /* 0x20006826: mov eax, dword ptr [edi + 4] */ 5090 /* cmp esi, eax */ /* 0x20006829: cmp esi, eax */ 5091 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5093 _flag_k = FK_CMP; 5094 if (CMP_NE(_flag_a, _flag_b)) goto L_20006838; /* 0x2000682B: jne 0x20006838 */ 5095 L_2000682D: 5096 MEM32(eax + 0x4) = ecx; /* 0x2000682D: mov dword ptr [eax + 4], ecx */ 5097 edx = MEM32(edi + 0x4); /* 0x20006830: mov edx, dword ptr [edi + 4] */ 5098 MEM32(edx + 0x8) = ecx; /* 0x20006833: mov dword ptr [edx + 8], ecx */ 5099 goto L_20006841; /* 0x20006836: jmp 0x20006841 */ 5100 L_20006838: 5101 /* cmp esi, MEM32(eax) */ /* 0x20006838: cmp esi, dword ptr [eax] */ 5102 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 5103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5104 _flag_k = FK_CMP; 5105 if (CMP_NE(_flag_a, _flag_b)) goto L_20006841; /* 0x2000683A: jne 0x20006841 */ 5106 L_2000683C: 5107 ecx = MEM32(ebp + (-0x4)); /* 0x2000683C: mov ecx, dword ptr [ebp - 4] */ 5108 MEM32(eax) = ecx; /* 0x2000683F: mov dword ptr [eax], ecx */ 5109 L_20006841: 5110 ebx = MEM32(ebp + (-0x4)); /* 0x20006841: mov ebx, dword ptr [ebp - 4] */ 5111 L_20006844: 5112 edx = MEM32(edi + 0x4); /* 0x20006844: mov edx, dword ptr [edi + 4] */ 5113 /* cmp ebx, MEM32(edx + 0x4) */ /* 0x20006847: cmp ebx, dword ptr [edx + 4] */ 5114 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5116 _flag_k = FK_CMP; 5117 esi = ebx; /* 0x2000684A: mov esi, ebx */ 5118 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006917; /* 0x2000684C: je 0x20006917 */ 5119 L_20006852: 5120 eax = MEM32(esi + 0x4); /* 0x20006852: mov eax, dword ptr [esi + 4] */ 5121 SET_LO8(ecx, MEM8(eax + 0x14)); /* 0x20006855: mov cl, byte ptr [eax + 0x14] */ 5122 /* test LO8(ecx), LO8(ecx) */ /* 0x20006858: test cl, cl */ 5123 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 5124 _cf = 0; 5125 _flag_k = FK_NARROW(FK_TEST, 24); 5126 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006917; /* 0x2000685A: jne 0x20006917 */ 5127 L_20006860: 5128 edx = MEM32(eax + 0x4); /* 0x20006860: mov edx, dword ptr [eax + 4] */ 5129 ecx = MEM32(edx); /* 0x20006863: mov ecx, dword ptr [edx] */ 5130 /* cmp eax, ecx */ /* 0x20006865: cmp eax, ecx */ 5131 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5133 _flag_k = FK_CMP; 5134 if (CMP_NE(_flag_a, _flag_b)) goto L_200068BD; /* 0x20006867: jne 0x200068bd */ 5135 L_20006869: 5136 ecx = MEM32(edx + 0x8); /* 0x20006869: mov ecx, dword ptr [edx + 8] */ 5137 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x2000686C: mov dl, byte ptr [ecx + 0x14] */ 5138 /* test LO8(edx), LO8(edx) */ /* 0x2000686F: test dl, dl */ 5139 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5140 _cf = 0; 5141 _flag_k = FK_NARROW(FK_TEST, 24); 5142 if (TEST_NZ(_flag_a, _flag_b)) goto L_2000688D; /* 0x20006871: jne 0x2000688d */ 5143 L_20006873: 5144 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x20006873: mov byte ptr [eax + 0x14], 1 */ 5145 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x20006877: mov byte ptr [ecx + 0x14], 1 */ 5146 eax = MEM32(esi + 0x4); /* 0x2000687B: mov eax, dword ptr [esi + 4] */ 5147 ecx = MEM32(eax + 0x4); /* 0x2000687E: mov ecx, dword ptr [eax + 4] */ 5148 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006881: mov byte ptr [ecx + 0x14], 0 */ 5149 edx = MEM32(esi + 0x4); /* 0x20006885: mov edx, dword ptr [esi + 4] */ 5150 esi = MEM32(edx + 0x4); /* 0x20006888: mov esi, dword ptr [edx + 4] */ 5151 goto L_2000690B; /* 0x2000688B: jmp 0x2000690b */ 5152 L_2000688D: 5153 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2000688D: cmp esi, dword ptr [eax + 8] */ 5154 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 5155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5156 _flag_k = FK_CMP; 5157 if (CMP_NE(_flag_a, _flag_b)) goto L_2000689C; /* 0x20006890: jne 0x2000689c */ 5158 L_20006892: 5159 esi = eax; /* 0x20006892: mov esi, eax */ 5160 PUSH32(esp, esi); /* 0x20006894: push esi */ 5161 ecx = edi; /* 0x20006895: mov ecx, edi */ 5162 RECOMP_ICALL(0x20006C90u); /* 0x20006897: call 0x20006c90 */ /* not lifted */ 5163 RECOMP_FLAGS_IN(); 5164 L_2000689C: 5165 eax = MEM32(esi + 0x4); /* 0x2000689C: mov eax, dword ptr [esi + 4] */ 5166 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x2000689F: mov byte ptr [eax + 0x14], 1 */ 5167 ecx = MEM32(esi + 0x4); /* 0x200068A3: mov ecx, dword ptr [esi + 4] */ 5168 edx = MEM32(ecx + 0x4); /* 0x200068A6: mov edx, dword ptr [ecx + 4] */ 5169 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x200068A9: mov byte ptr [edx + 0x14], 0 */ 5170 eax = MEM32(esi + 0x4); /* 0x200068AD: mov eax, dword ptr [esi + 4] */ 5171 ecx = MEM32(eax + 0x4); /* 0x200068B0: mov ecx, dword ptr [eax + 4] */ 5172 PUSH32(esp, ecx); /* 0x200068B3: push ecx */ 5173 ecx = edi; /* 0x200068B4: mov ecx, edi */ 5174 RECOMP_ICALL(0x20006CF0u); /* 0x200068B6: call 0x20006cf0 */ /* not lifted */ 5175 RECOMP_FLAGS_IN(); 5176 goto L_2000690B; /* 0x200068BB: jmp 0x2000690b */ 5177 L_200068BD: 5178 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x200068BD: mov dl, byte ptr [ecx + 0x14] */ 5179 /* test LO8(edx), LO8(edx) */ /* 0x200068C0: test dl, dl */ 5180 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5181 _cf = 0; 5182 _flag_k = FK_NARROW(FK_TEST, 24); 5183 if (TEST_NZ(_flag_a, _flag_b)) goto L_200068DE; /* 0x200068C2: jne 0x200068de */ 5184 L_200068C4: 5185 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x200068C4: mov byte ptr [eax + 0x14], 1 */ 5186 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x200068C8: mov byte ptr [ecx + 0x14], 1 */ 5187 edx = MEM32(esi + 0x4); /* 0x200068CC: mov edx, dword ptr [esi + 4] */ 5188 eax = MEM32(edx + 0x4); /* 0x200068CF: mov eax, dword ptr [edx + 4] */ 5189 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x200068D2: mov byte ptr [eax + 0x14], 0 */ 5190 ecx = MEM32(esi + 0x4); /* 0x200068D6: mov ecx, dword ptr [esi + 4] */ 5191 esi = MEM32(ecx + 0x4); /* 0x200068D9: mov esi, dword ptr [ecx + 4] */ 5192 goto L_2000690B; /* 0x200068DC: jmp 0x2000690b */ 5193 L_200068DE: 5194 /* cmp esi, MEM32(eax) */ /* 0x200068DE: cmp esi, dword ptr [eax] */ 5195 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 5196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5197 _flag_k = FK_CMP; 5198 if (CMP_NE(_flag_a, _flag_b)) goto L_200068EC; /* 0x200068E0: jne 0x200068ec */ 5199 L_200068E2: 5200 esi = eax; /* 0x200068E2: mov esi, eax */ 5201 PUSH32(esp, esi); /* 0x200068E4: push esi */ 5202 ecx = edi; /* 0x200068E5: mov ecx, edi */ 5203 RECOMP_ICALL(0x20006CF0u); /* 0x200068E7: call 0x20006cf0 */ /* not lifted */ 5204 RECOMP_FLAGS_IN(); 5205 L_200068EC: 5206 edx = MEM32(esi + 0x4); /* 0x200068EC: mov edx, dword ptr [esi + 4] */ 5207 MEM8(edx + 0x14) = (uint8_t)(1); /* 0x200068EF: mov byte ptr [edx + 0x14], 1 */ 5208 eax = MEM32(esi + 0x4); /* 0x200068F3: mov eax, dword ptr [esi + 4] */ 5209 ecx = MEM32(eax + 0x4); /* 0x200068F6: mov ecx, dword ptr [eax + 4] */ 5210 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x200068F9: mov byte ptr [ecx + 0x14], 0 */ 5211 edx = MEM32(esi + 0x4); /* 0x200068FD: mov edx, dword ptr [esi + 4] */ 5212 eax = MEM32(edx + 0x4); /* 0x20006900: mov eax, dword ptr [edx + 4] */ 5213 PUSH32(esp, eax); /* 0x20006903: push eax */ 5214 ecx = edi; /* 0x20006904: mov ecx, edi */ 5215 RECOMP_ICALL(0x20006C90u); /* 0x20006906: call 0x20006c90 */ /* not lifted */ 5216 RECOMP_FLAGS_IN(); 5217 L_2000690B: 5218 ecx = MEM32(edi + 0x4); /* 0x2000690B: mov ecx, dword ptr [edi + 4] */ 5219 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x2000690E: cmp esi, dword ptr [ecx + 4] */ 5220 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5222 _flag_k = FK_CMP; 5223 RECOMP_BACKEDGE(); 5224 if (CMP_NE(_flag_a, _flag_b)) goto L_20006852; /* 0x20006911: jne 0x20006852 */ 5225 L_20006917: 5226 edx = MEM32(edi + 0x4); /* 0x20006917: mov edx, dword ptr [edi + 4] */ 5227 eax = MEM32(edx + 0x4); /* 0x2000691A: mov eax, dword ptr [edx + 4] */ 5228 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x2000691D: mov byte ptr [eax + 0x14], 1 */ 5229 eax = MEM32(ebp + 0x8); /* 0x20006921: mov eax, dword ptr [ebp + 8] */ 5230 edi = POP32_VAL(esp); /* 0x20006924: pop edi */ 5231 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x20006925: mov byte ptr [ebp - 8], 1 */ 5232 ecx = MEM32(ebp + (-0x8)); /* 0x20006929: mov ecx, dword ptr [ebp - 8] */ 5233 MEM32(eax) = ebx; /* 0x2000692C: mov dword ptr [eax], ebx */ 5234 esi = POP32_VAL(esp); /* 0x2000692E: pop esi */ 5235 MEM32(eax + 0x4) = ecx; /* 0x2000692F: mov dword ptr [eax + 4], ecx */ 5236 ebx = POP32_VAL(esp); /* 0x20006932: pop ebx */ 5237 esp = ebp; /* 0x20006933: mov esp, ebp */ 5238 ebp = POP32_VAL(esp); /* 0x20006935: pop ebp */ 5239 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x20006936: ret 8 */ 5240 L_20006939: 5241 /* test LO8(eax), LO8(eax) */ /* 0x20006939: test al, al */ 5242 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5243 _cf = 0; 5244 _flag_k = FK_NARROW(FK_TEST, 24); 5245 edx = esi; /* 0x2000693B: mov edx, esi */ 5246 MEM32(ebp + (-0x8)) = edx; /* 0x2000693D: mov dword ptr [ebp - 8], edx */ 5247 if (TEST_Z(_flag_a, _flag_b)) goto L_2000697C; /* 0x20006940: je 0x2000697c */ 5248 L_20006942: 5249 /* cmp esi, MEM32(ecx) */ /* 0x20006942: cmp esi, dword ptr [ecx] */ 5250 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 5251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5252 _flag_k = FK_CMP; 5253 if (CMP_NE(_flag_a, _flag_b)) goto L_20006971; /* 0x20006944: jne 0x20006971 */ 5254 L_20006946: 5255 edx = MEM32(ebp + 0xC); /* 0x20006946: mov edx, dword ptr [ebp + 0xc] */ 5256 PUSH32(esp, edx); /* 0x20006949: push edx */ 5257 PUSH32(esp, esi); /* 0x2000694A: push esi */ 5258 PUSH32(esp, ebx); /* 0x2000694B: push ebx */ 5259 eax = ebp + 0xC; /* 0x2000694C: lea eax, [ebp + 0xc] */ 5260 PUSH32(esp, eax); /* 0x2000694F: push eax */ 5261 ecx = edi; /* 0x20006950: mov ecx, edi */ 5262 RECOMP_ICALL(0x20006A50u); /* 0x20006952: call 0x20006a50 */ /* not lifted */ 5263 RECOMP_FLAGS_IN(); 5264 ecx = MEM32(eax); /* 0x20006957: mov ecx, dword ptr [eax] */ 5265 eax = MEM32(ebp + 0x8); /* 0x20006959: mov eax, dword ptr [ebp + 8] */ 5266 edi = POP32_VAL(esp); /* 0x2000695C: pop edi */ 5267 MEM32(eax) = ecx; /* 0x2000695D: mov dword ptr [eax], ecx */ 5268 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x2000695F: mov byte ptr [ebp - 8], 1 */ 5269 ecx = MEM32(ebp + (-0x8)); /* 0x20006963: mov ecx, dword ptr [ebp - 8] */ 5270 esi = POP32_VAL(esp); /* 0x20006966: pop esi */ 5271 MEM32(eax + 0x4) = ecx; /* 0x20006967: mov dword ptr [eax + 4], ecx */ 5272 ebx = POP32_VAL(esp); /* 0x2000696A: pop ebx */ 5273 esp = ebp; /* 0x2000696B: mov esp, ebp */ 5274 ebp = POP32_VAL(esp); /* 0x2000696D: pop ebp */ 5275 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2000696E: ret 8 */ 5276 L_20006971: 5277 ecx = ebp + (-0x8); /* 0x20006971: lea ecx, [ebp - 8] */ 5278 RECOMP_ICALL(0x20006D50u); /* 0x20006974: call 0x20006d50 */ /* not lifted */ 5279 RECOMP_FLAGS_IN(); 5280 edx = MEM32(ebp + (-0x8)); /* 0x20006979: mov edx, dword ptr [ebp - 8] */ 5281 L_2000697C: 5282 ecx = MEM32(edx + 0xC); /* 0x2000697C: mov ecx, dword ptr [edx + 0xc] */ 5283 eax = MEM32(ebp + 0xC); /* 0x2000697F: mov eax, dword ptr [ebp + 0xc] */ 5284 /* cmp ecx, MEM32(eax) */ /* 0x20006982: cmp ecx, dword ptr [eax] */ 5285 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 5286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5287 _flag_k = FK_CMP; 5288 if (CMP_GE(_flag_a, _flag_b)) goto L_200069AE; /* 0x20006984: jge 0x200069ae */ 5289 L_20006986: 5290 PUSH32(esp, eax); /* 0x20006986: push eax */ 5291 PUSH32(esp, esi); /* 0x20006987: push esi */ 5292 PUSH32(esp, ebx); /* 0x20006988: push ebx */ 5293 edx = ebp + 0xC; /* 0x20006989: lea edx, [ebp + 0xc] */ 5294 PUSH32(esp, edx); /* 0x2000698C: push edx */ 5295 ecx = edi; /* 0x2000698D: mov ecx, edi */ 5296 RECOMP_ICALL(0x20006A50u); /* 0x2000698F: call 0x20006a50 */ /* not lifted */ 5297 RECOMP_FLAGS_IN(); 5298 ecx = MEM32(eax); /* 0x20006994: mov ecx, dword ptr [eax] */ 5299 eax = MEM32(ebp + 0x8); /* 0x20006996: mov eax, dword ptr [ebp + 8] */ 5300 edi = POP32_VAL(esp); /* 0x20006999: pop edi */ 5301 MEM32(eax) = ecx; /* 0x2000699A: mov dword ptr [eax], ecx */ 5302 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x2000699C: mov byte ptr [ebp - 8], 1 */ 5303 ecx = MEM32(ebp + (-0x8)); /* 0x200069A0: mov ecx, dword ptr [ebp - 8] */ 5304 esi = POP32_VAL(esp); /* 0x200069A3: pop esi */ 5305 MEM32(eax + 0x4) = ecx; /* 0x200069A4: mov dword ptr [eax + 4], ecx */ 5306 ebx = POP32_VAL(esp); /* 0x200069A7: pop ebx */ 5307 esp = ebp; /* 0x200069A8: mov esp, ebp */ 5308 ebp = POP32_VAL(esp); /* 0x200069AA: pop ebp */ 5309 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x200069AB: ret 8 */ 5310 L_200069AE: 5311 eax = MEM32(ebp + 0x8); /* 0x200069AE: mov eax, dword ptr [ebp + 8] */ 5312 edi = POP32_VAL(esp); /* 0x200069B1: pop edi */ 5313 MEM32(eax) = edx; /* 0x200069B2: mov dword ptr [eax], edx */ 5314 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x200069B4: mov byte ptr [ebp - 8], 0 */ 5315 edx = MEM32(ebp + (-0x8)); /* 0x200069B8: mov edx, dword ptr [ebp - 8] */ 5316 esi = POP32_VAL(esp); /* 0x200069BB: pop esi */ 5317 MEM32(eax + 0x4) = edx; /* 0x200069BC: mov dword ptr [eax + 4], edx */ 5318 ebx = POP32_VAL(esp); /* 0x200069BF: pop ebx */ 5319 esp = ebp; /* 0x200069C0: mov esp, ebp */ 5320 ebp = POP32_VAL(esp); /* 0x200069C2: pop ebp */ 5321 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x200069C3: ret 8 */ 5322 RECOMP_REGS_OUT(); 5323 } 5324 5325 void sub_200069D0(void) { 5326 int _fpu_cmp = 0; 5327 uint32_t _cf = 0; 5328 int _df = 1; 5329 uint32_t _flag_k = FK_NONE; 5330 uint32_t _flag_a = 0, _flag_b = 0; 5331 uint32_t _itail_tgt = 0; 5332 RECOMP_REGS_LOCALS 5333 RECOMP_ENTER(0x200069D0u); 5334 5335 L_200069D0: 5336 PUSH32(esp, ebp); /* 0x200069D0: push ebp */ 5337 ebp = esp; /* 0x200069D1: mov ebp, esp */ 5338 edx = MEM32(ecx + 0x4); /* 0x200069D3: mov edx, dword ptr [ecx + 4] */ 5339 eax = MEM32(edx + 0x4); /* 0x200069D6: mov eax, dword ptr [edx + 4] */ 5340 ecx = MEM32(ecx + 0x8); /* 0x200069D9: mov ecx, dword ptr [ecx + 8] */ 5341 /* cmp eax, ecx */ /* 0x200069DC: cmp eax, ecx */ 5342 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5344 _flag_k = FK_CMP; 5345 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006A02; /* 0x200069DE: je 0x20006a02 */ 5346 L_200069E0: 5347 PUSH32(esp, esi); /* 0x200069E0: push esi */ 5348 esi = MEM32(ebp + 0xC); /* 0x200069E1: mov esi, dword ptr [ebp + 0xc] */ 5349 esi = MEM32(esi); /* 0x200069E4: mov esi, dword ptr [esi] */ 5350 L_200069E6: 5351 /* cmp MEM32(eax + 0xC), esi */ /* 0x200069E6: cmp dword ptr [eax + 0xc], esi */ 5352 _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(esi); 5353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5354 _flag_k = FK_CMP; 5355 if (CMP_GE(_flag_a, _flag_b)) goto L_200069F0; /* 0x200069E9: jge 0x200069f0 */ 5356 L_200069EB: 5357 eax = MEM32(eax + 0x8); /* 0x200069EB: mov eax, dword ptr [eax + 8] */ 5358 goto L_200069F4; /* 0x200069EE: jmp 0x200069f4 */ 5359 L_200069F0: 5360 edx = eax; /* 0x200069F0: mov edx, eax */ 5361 eax = MEM32(eax); /* 0x200069F2: mov eax, dword ptr [eax] */ 5362 L_200069F4: 5363 /* cmp eax, ecx */ /* 0x200069F4: cmp eax, ecx */ 5364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5366 _flag_k = FK_CMP; 5367 RECOMP_BACKEDGE(); 5368 if (CMP_NE(_flag_a, _flag_b)) goto L_200069E6; /* 0x200069F6: jne 0x200069e6 */ 5369 L_200069F8: 5370 eax = MEM32(ebp + 0x8); /* 0x200069F8: mov eax, dword ptr [ebp + 8] */ 5371 MEM32(eax) = edx; /* 0x200069FB: mov dword ptr [eax], edx */ 5372 esi = POP32_VAL(esp); /* 0x200069FD: pop esi */ 5373 ebp = POP32_VAL(esp); /* 0x200069FE: pop ebp */ 5374 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x200069FF: ret 8 */ 5375 L_20006A02: 5376 eax = MEM32(ebp + 0x8); /* 0x20006A02: mov eax, dword ptr [ebp + 8] */ 5377 MEM32(eax) = edx; /* 0x20006A05: mov dword ptr [eax], edx */ 5378 ebp = POP32_VAL(esp); /* 0x20006A07: pop ebp */ 5379 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x20006A08: ret 8 */ 5380 RECOMP_REGS_OUT(); 5381 } 5382 5383 void sub_20006A10(void) { 5384 int _fpu_cmp = 0; 5385 uint32_t _cf = 0; 5386 int _df = 1; 5387 uint32_t _flag_k = FK_NONE; 5388 uint32_t _flag_a = 0, _flag_b = 0; 5389 uint32_t _itail_tgt = 0; 5390 RECOMP_REGS_LOCALS 5391 RECOMP_ENTER(0x20006A10u); 5392 5393 L_20006A10: 5394 PUSH32(esp, ebp); /* 0x20006A10: push ebp */ 5395 ebp = esp; /* 0x20006A11: mov ebp, esp */ 5396 eax = MEM32(ebp + 0x8); /* 0x20006A13: mov eax, dword ptr [ebp + 8] */ 5397 ecx = MEM32(eax); /* 0x20006A16: mov ecx, dword ptr [eax] */ 5398 SET_LO8(edx, MEM8(ecx + 0x15)); /* 0x20006A18: mov dl, byte ptr [ecx + 0x15] */ 5399 /* test LO8(edx), LO8(edx) */ /* 0x20006A1B: test dl, dl */ 5400 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5401 _cf = 0; 5402 _flag_k = FK_NARROW(FK_TEST, 24); 5403 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006A2A; /* 0x20006A1D: jne 0x20006a2a */ 5404 L_20006A1F: 5405 eax = ecx; /* 0x20006A1F: mov eax, ecx */ 5406 ecx = MEM32(eax); /* 0x20006A21: mov ecx, dword ptr [eax] */ 5407 SET_LO8(edx, MEM8(ecx + 0x15)); /* 0x20006A23: mov dl, byte ptr [ecx + 0x15] */ 5408 /* test LO8(edx), LO8(edx) */ /* 0x20006A26: test dl, dl */ 5409 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5410 _cf = 0; 5411 _flag_k = FK_NARROW(FK_TEST, 24); 5412 RECOMP_BACKEDGE(); 5413 if (TEST_Z(_flag_a, _flag_b)) goto L_20006A1F; /* 0x20006A28: je 0x20006a1f */ 5414 L_20006A2A: 5415 ebp = POP32_VAL(esp); /* 0x20006A2A: pop ebp */ 5416 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20006A2B: ret */ 5417 RECOMP_REGS_OUT(); 5418 } 5419 5420 void sub_20006A30(void) { 5421 int _fpu_cmp = 0; 5422 uint32_t _cf = 0; 5423 int _df = 1; 5424 uint32_t _flag_k = FK_NONE; 5425 uint32_t _flag_a = 0, _flag_b = 0; 5426 uint32_t _itail_tgt = 0; 5427 RECOMP_REGS_LOCALS 5428 RECOMP_ENTER(0x20006A30u); 5429 5430 L_20006A30: 5431 PUSH32(esp, ebp); /* 0x20006A30: push ebp */ 5432 ebp = esp; /* 0x20006A31: mov ebp, esp */ 5433 edx = MEM32(ecx); /* 0x20006A33: mov edx, dword ptr [ecx] */ 5434 eax = MEM32(edx); /* 0x20006A35: mov eax, dword ptr [edx] */ 5435 MEM32(ecx) = eax; /* 0x20006A37: mov dword ptr [ecx], eax */ 5436 eax = MEM32(ebp + 0x8); /* 0x20006A39: mov eax, dword ptr [ebp + 8] */ 5437 MEM32(eax) = edx; /* 0x20006A3C: mov dword ptr [eax], edx */ 5438 ebp = POP32_VAL(esp); /* 0x20006A3E: pop ebp */ 5439 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x20006A3F: ret 8 */ 5440 RECOMP_REGS_OUT(); 5441 } 5442 5443 void sub_20006A50(void) { 5444 int _fpu_cmp = 0; 5445 uint32_t _cf = 0; 5446 int _df = 1; 5447 uint32_t _flag_k = FK_NONE; 5448 uint32_t _flag_a = 0, _flag_b = 0; 5449 uint32_t _itail_tgt = 0; 5450 RECOMP_REGS_LOCALS 5451 RECOMP_ENTER(0x20006A50u); 5452 5453 L_20006A50: 5454 PUSH32(esp, ebp); /* 0x20006A50: push ebp */ 5455 ebp = esp; /* 0x20006A51: mov ebp, esp */ 5456 PUSH32(esp, ecx); /* 0x20006A53: push ecx */ 5457 PUSH32(esp, ebx); /* 0x20006A54: push ebx */ 5458 PUSH32(esp, esi); /* 0x20006A55: push esi */ 5459 PUSH32(esp, edi); /* 0x20006A56: push edi */ 5460 PUSH32(esp, 0x18u); /* 0x20006A57: push 0x18 */ 5461 esi = ecx; /* 0x20006A59: mov esi, ecx */ 5462 RECOMP_ICALL(0x2000727Cu); /* 0x20006A5B: call 0x2000727c */ /* not lifted */ 5463 RECOMP_FLAGS_IN(); 5464 edi = MEM32(ebp + 0x10); /* 0x20006A60: mov edi, dword ptr [ebp + 0x10] */ 5465 ebx = MEM32(ebp + 0x14); /* 0x20006A63: mov ebx, dword ptr [ebp + 0x14] */ 5466 MEM32(eax + 0x4) = edi; /* 0x20006A66: mov dword ptr [eax + 4], edi */ 5467 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x20006A69: mov byte ptr [eax + 0x14], 0 */ 5468 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x20006A6D: mov byte ptr [eax + 0x15], 0 */ 5469 ecx = MEM32(esi + 0x8); /* 0x20006A71: mov ecx, dword ptr [esi + 8] */ 5470 MEM32(eax) = ecx; /* 0x20006A74: mov dword ptr [eax], ecx */ 5471 edx = MEM32(esi + 0x8); /* 0x20006A76: mov edx, dword ptr [esi + 8] */ 5472 MEM32(ebp + (-0x4)) = eax; /* 0x20006A79: mov dword ptr [ebp - 4], eax */ 5473 MEM32(eax + 0x8) = edx; /* 0x20006A7C: mov dword ptr [eax + 8], edx */ 5474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 5475 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5476 eax = eax + 0xCu; /* 0x20006A7F: add eax, 0xc */ 5477 _flag_k = FK_ADD; 5478 PUSH32(esp, ebx); /* 0x20006A82: push ebx */ 5479 PUSH32(esp, eax); /* 0x20006A83: push eax */ 5480 RECOMP_ICALL(0x20002B60u); /* 0x20006A84: call 0x20002b60 */ /* not lifted */ 5481 RECOMP_FLAGS_IN(); 5482 ecx = MEM32(esi + 0x10); /* 0x20006A89: mov ecx, dword ptr [esi + 0x10] */ 5483 eax = MEM32(esi + 0x4); /* 0x20006A8C: mov eax, dword ptr [esi + 4] */ 5484 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5485 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5486 esp = esp + 0xCu; /* 0x20006A8F: add esp, 0xc */ 5487 _flag_k = FK_ADD; 5488 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5489 ecx = ecx + 1; /* 0x20006A92: inc ecx */ 5490 _flag_k = FK_INC; 5491 /* cmp edi, eax */ /* 0x20006A93: cmp edi, eax */ 5492 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5494 _flag_k = FK_CMP; 5495 MEM32(esi + 0x10) = ecx; /* 0x20006A95: mov dword ptr [esi + 0x10], ecx */ 5496 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006ABC; /* 0x20006A98: je 0x20006abc */ 5497 L_20006A9A: 5498 eax = MEM32(ebp + 0xC); /* 0x20006A9A: mov eax, dword ptr [ebp + 0xc] */ 5499 /* cmp eax, MEM32(esi + 0x8) */ /* 0x20006A9D: cmp eax, dword ptr [esi + 8] */ 5500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5502 _flag_k = FK_CMP; 5503 if (CMP_NE(_flag_a, _flag_b)) goto L_20006ABC; /* 0x20006AA0: jne 0x20006abc */ 5504 L_20006AA2: 5505 ecx = MEM32(ebx); /* 0x20006AA2: mov ecx, dword ptr [ebx] */ 5506 /* cmp ecx, MEM32(edi + 0xC) */ /* 0x20006AA4: cmp ecx, dword ptr [edi + 0xc] */ 5507 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 5508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5509 _flag_k = FK_CMP; 5510 if (CMP_L(_flag_a, _flag_b)) goto L_20006ABC; /* 0x20006AA7: jl 0x20006abc */ 5511 L_20006AA9: 5512 ecx = MEM32(ebp + (-0x4)); /* 0x20006AA9: mov ecx, dword ptr [ebp - 4] */ 5513 MEM32(edi + 0x8) = ecx; /* 0x20006AAC: mov dword ptr [edi + 8], ecx */ 5514 eax = MEM32(esi + 0x4); /* 0x20006AAF: mov eax, dword ptr [esi + 4] */ 5515 /* cmp edi, MEM32(eax + 0x8) */ /* 0x20006AB2: cmp edi, dword ptr [eax + 8] */ 5516 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 5517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5518 _flag_k = FK_CMP; 5519 if (CMP_NE(_flag_a, _flag_b)) goto L_20006ADC; /* 0x20006AB5: jne 0x20006adc */ 5520 L_20006AB7: 5521 MEM32(eax + 0x8) = ecx; /* 0x20006AB7: mov dword ptr [eax + 8], ecx */ 5522 goto L_20006ADC; /* 0x20006ABA: jmp 0x20006adc */ 5523 L_20006ABC: 5524 ecx = MEM32(ebp + (-0x4)); /* 0x20006ABC: mov ecx, dword ptr [ebp - 4] */ 5525 MEM32(edi) = ecx; /* 0x20006ABF: mov dword ptr [edi], ecx */ 5526 eax = MEM32(esi + 0x4); /* 0x20006AC1: mov eax, dword ptr [esi + 4] */ 5527 /* cmp edi, eax */ /* 0x20006AC4: cmp edi, eax */ 5528 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5530 _flag_k = FK_CMP; 5531 if (CMP_NE(_flag_a, _flag_b)) goto L_20006AD3; /* 0x20006AC6: jne 0x20006ad3 */ 5532 L_20006AC8: 5533 MEM32(eax + 0x4) = ecx; /* 0x20006AC8: mov dword ptr [eax + 4], ecx */ 5534 edx = MEM32(esi + 0x4); /* 0x20006ACB: mov edx, dword ptr [esi + 4] */ 5535 MEM32(edx + 0x8) = ecx; /* 0x20006ACE: mov dword ptr [edx + 8], ecx */ 5536 goto L_20006ADC; /* 0x20006AD1: jmp 0x20006adc */ 5537 L_20006AD3: 5538 /* cmp edi, MEM32(eax) */ /* 0x20006AD3: cmp edi, dword ptr [eax] */ 5539 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 5540 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5541 _flag_k = FK_CMP; 5542 if (CMP_NE(_flag_a, _flag_b)) goto L_20006ADC; /* 0x20006AD5: jne 0x20006adc */ 5543 L_20006AD7: 5544 ecx = MEM32(ebp + (-0x4)); /* 0x20006AD7: mov ecx, dword ptr [ebp - 4] */ 5545 MEM32(eax) = ecx; /* 0x20006ADA: mov dword ptr [eax], ecx */ 5546 L_20006ADC: 5547 edx = MEM32(esi + 0x4); /* 0x20006ADC: mov edx, dword ptr [esi + 4] */ 5548 eax = MEM32(ebp + (-0x4)); /* 0x20006ADF: mov eax, dword ptr [ebp - 4] */ 5549 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006AE2: cmp eax, dword ptr [edx + 4] */ 5550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5552 _flag_k = FK_CMP; 5553 SET_LO8(ebx, 1); /* 0x20006AE5: mov bl, 1 */ 5554 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006C6D; /* 0x20006AE7: je 0x20006c6d */ 5555 L_20006AED: 5556 ecx = MEM32(eax + 0x4); /* 0x20006AED: mov ecx, dword ptr [eax + 4] */ 5557 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x20006AF0: mov dl, byte ptr [ecx + 0x14] */ 5558 /* test LO8(edx), LO8(edx) */ /* 0x20006AF3: test dl, dl */ 5559 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5560 _cf = 0; 5561 _flag_k = FK_NARROW(FK_TEST, 24); 5562 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006C6D; /* 0x20006AF5: jne 0x20006c6d */ 5563 L_20006AFB: 5564 edi = MEM32(ecx + 0x4); /* 0x20006AFB: mov edi, dword ptr [ecx + 4] */ 5565 edx = MEM32(edi); /* 0x20006AFE: mov edx, dword ptr [edi] */ 5566 /* cmp ecx, edx */ /* 0x20006B00: cmp ecx, edx */ 5567 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5569 _flag_k = FK_CMP; 5570 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BC9; /* 0x20006B02: jne 0x20006bc9 */ 5571 L_20006B08: 5572 edx = MEM32(edi + 0x8); /* 0x20006B08: mov edx, dword ptr [edi + 8] */ 5573 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006B0B: cmp byte ptr [edx + 0x14], 0 */ 5574 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 5575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5576 _flag_k = FK_NARROW(FK_CMP, 24); 5577 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B2C; /* 0x20006B0F: jne 0x20006b2c */ 5578 L_20006B11: 5579 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B11: mov byte ptr [ecx + 0x14], bl */ 5580 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B14: mov byte ptr [edx + 0x14], bl */ 5581 ecx = MEM32(eax + 0x4); /* 0x20006B17: mov ecx, dword ptr [eax + 4] */ 5582 edx = MEM32(ecx + 0x4); /* 0x20006B1A: mov edx, dword ptr [ecx + 4] */ 5583 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x20006B1D: mov byte ptr [edx + 0x14], 0 */ 5584 eax = MEM32(eax + 0x4); /* 0x20006B21: mov eax, dword ptr [eax + 4] */ 5585 eax = MEM32(eax + 0x4); /* 0x20006B24: mov eax, dword ptr [eax + 4] */ 5586 goto L_20006C61; /* 0x20006B27: jmp 0x20006c61 */ 5587 L_20006B2C: 5588 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x20006B2C: cmp eax, dword ptr [ecx + 8] */ 5589 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 5590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5591 _flag_k = FK_CMP; 5592 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B6B; /* 0x20006B2F: jne 0x20006b6b */ 5593 L_20006B31: 5594 eax = ecx; /* 0x20006B31: mov eax, ecx */ 5595 ecx = MEM32(eax + 0x8); /* 0x20006B33: mov ecx, dword ptr [eax + 8] */ 5596 edx = MEM32(ecx); /* 0x20006B36: mov edx, dword ptr [ecx] */ 5597 MEM32(eax + 0x8) = edx; /* 0x20006B38: mov dword ptr [eax + 8], edx */ 5598 edx = MEM32(ecx); /* 0x20006B3B: mov edx, dword ptr [ecx] */ 5599 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006B3D: cmp edx, dword ptr [esi + 8] */ 5600 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5602 _flag_k = FK_CMP; 5603 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B45; /* 0x20006B40: je 0x20006b45 */ 5604 L_20006B42: 5605 MEM32(edx + 0x4) = eax; /* 0x20006B42: mov dword ptr [edx + 4], eax */ 5606 L_20006B45: 5607 edx = MEM32(eax + 0x4); /* 0x20006B45: mov edx, dword ptr [eax + 4] */ 5608 MEM32(ecx + 0x4) = edx; /* 0x20006B48: mov dword ptr [ecx + 4], edx */ 5609 edx = MEM32(esi + 0x4); /* 0x20006B4B: mov edx, dword ptr [esi + 4] */ 5610 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006B4E: cmp eax, dword ptr [edx + 4] */ 5611 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5613 _flag_k = FK_CMP; 5614 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B58; /* 0x20006B51: jne 0x20006b58 */ 5615 L_20006B53: 5616 MEM32(edx + 0x4) = ecx; /* 0x20006B53: mov dword ptr [edx + 4], ecx */ 5617 goto L_20006B66; /* 0x20006B56: jmp 0x20006b66 */ 5618 L_20006B58: 5619 edx = MEM32(eax + 0x4); /* 0x20006B58: mov edx, dword ptr [eax + 4] */ 5620 /* cmp eax, MEM32(edx) */ /* 0x20006B5B: cmp eax, dword ptr [edx] */ 5621 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 5622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5623 _flag_k = FK_CMP; 5624 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B63; /* 0x20006B5D: jne 0x20006b63 */ 5625 L_20006B5F: 5626 MEM32(edx) = ecx; /* 0x20006B5F: mov dword ptr [edx], ecx */ 5627 goto L_20006B66; /* 0x20006B61: jmp 0x20006b66 */ 5628 L_20006B63: 5629 MEM32(edx + 0x8) = ecx; /* 0x20006B63: mov dword ptr [edx + 8], ecx */ 5630 L_20006B66: 5631 MEM32(ecx) = eax; /* 0x20006B66: mov dword ptr [ecx], eax */ 5632 MEM32(eax + 0x4) = ecx; /* 0x20006B68: mov dword ptr [eax + 4], ecx */ 5633 L_20006B6B: 5634 ecx = MEM32(eax + 0x4); /* 0x20006B6B: mov ecx, dword ptr [eax + 4] */ 5635 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B6E: mov byte ptr [ecx + 0x14], bl */ 5636 edx = MEM32(eax + 0x4); /* 0x20006B71: mov edx, dword ptr [eax + 4] */ 5637 ecx = MEM32(edx + 0x4); /* 0x20006B74: mov ecx, dword ptr [edx + 4] */ 5638 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006B77: mov byte ptr [ecx + 0x14], 0 */ 5639 edx = MEM32(eax + 0x4); /* 0x20006B7B: mov edx, dword ptr [eax + 4] */ 5640 ecx = MEM32(edx + 0x4); /* 0x20006B7E: mov ecx, dword ptr [edx + 4] */ 5641 edx = MEM32(ecx); /* 0x20006B81: mov edx, dword ptr [ecx] */ 5642 edi = MEM32(edx + 0x8); /* 0x20006B83: mov edi, dword ptr [edx + 8] */ 5643 MEM32(ecx) = edi; /* 0x20006B86: mov dword ptr [ecx], edi */ 5644 edi = MEM32(edx + 0x8); /* 0x20006B88: mov edi, dword ptr [edx + 8] */ 5645 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006B8B: cmp edi, dword ptr [esi + 8] */ 5646 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5648 _flag_k = FK_CMP; 5649 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B93; /* 0x20006B8E: je 0x20006b93 */ 5650 L_20006B90: 5651 MEM32(edi + 0x4) = ecx; /* 0x20006B90: mov dword ptr [edi + 4], ecx */ 5652 L_20006B93: 5653 edi = MEM32(ecx + 0x4); /* 0x20006B93: mov edi, dword ptr [ecx + 4] */ 5654 MEM32(edx + 0x4) = edi; /* 0x20006B96: mov dword ptr [edx + 4], edi */ 5655 edi = MEM32(esi + 0x4); /* 0x20006B99: mov edi, dword ptr [esi + 4] */ 5656 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006B9C: cmp ecx, dword ptr [edi + 4] */ 5657 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 5658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5659 _flag_k = FK_CMP; 5660 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BAC; /* 0x20006B9F: jne 0x20006bac */ 5661 L_20006BA1: 5662 MEM32(edi + 0x4) = edx; /* 0x20006BA1: mov dword ptr [edi + 4], edx */ 5663 MEM32(edx + 0x8) = ecx; /* 0x20006BA4: mov dword ptr [edx + 8], ecx */ 5664 goto L_20006C5E; /* 0x20006BA7: jmp 0x20006c5e */ 5665 L_20006BAC: 5666 edi = MEM32(ecx + 0x4); /* 0x20006BAC: mov edi, dword ptr [ecx + 4] */ 5667 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x20006BAF: cmp ecx, dword ptr [edi + 8] */ 5668 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5670 _flag_k = FK_CMP; 5671 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BBF; /* 0x20006BB2: jne 0x20006bbf */ 5672 L_20006BB4: 5673 MEM32(edi + 0x8) = edx; /* 0x20006BB4: mov dword ptr [edi + 8], edx */ 5674 MEM32(edx + 0x8) = ecx; /* 0x20006BB7: mov dword ptr [edx + 8], ecx */ 5675 goto L_20006C5E; /* 0x20006BBA: jmp 0x20006c5e */ 5676 L_20006BBF: 5677 MEM32(edi) = edx; /* 0x20006BBF: mov dword ptr [edi], edx */ 5678 MEM32(edx + 0x8) = ecx; /* 0x20006BC1: mov dword ptr [edx + 8], ecx */ 5679 goto L_20006C5E; /* 0x20006BC4: jmp 0x20006c5e */ 5680 L_20006BC9: 5681 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006BC9: cmp byte ptr [edx + 0x14], 0 */ 5682 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 5683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5684 _flag_k = FK_NARROW(FK_CMP, 24); 5685 RECOMP_BACKEDGE(); 5686 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B11; /* 0x20006BCD: je 0x20006b11 */ 5687 L_20006BD3: 5688 /* cmp eax, MEM32(ecx) */ /* 0x20006BD3: cmp eax, dword ptr [ecx] */ 5689 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 5690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5691 _flag_k = FK_CMP; 5692 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C13; /* 0x20006BD5: jne 0x20006c13 */ 5693 L_20006BD7: 5694 eax = ecx; /* 0x20006BD7: mov eax, ecx */ 5695 ecx = MEM32(eax); /* 0x20006BD9: mov ecx, dword ptr [eax] */ 5696 edx = MEM32(ecx + 0x8); /* 0x20006BDB: mov edx, dword ptr [ecx + 8] */ 5697 MEM32(eax) = edx; /* 0x20006BDE: mov dword ptr [eax], edx */ 5698 edx = MEM32(ecx + 0x8); /* 0x20006BE0: mov edx, dword ptr [ecx + 8] */ 5699 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006BE3: cmp edx, dword ptr [esi + 8] */ 5700 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5702 _flag_k = FK_CMP; 5703 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006BEB; /* 0x20006BE6: je 0x20006beb */ 5704 L_20006BE8: 5705 MEM32(edx + 0x4) = eax; /* 0x20006BE8: mov dword ptr [edx + 4], eax */ 5706 L_20006BEB: 5707 edx = MEM32(eax + 0x4); /* 0x20006BEB: mov edx, dword ptr [eax + 4] */ 5708 MEM32(ecx + 0x4) = edx; /* 0x20006BEE: mov dword ptr [ecx + 4], edx */ 5709 edx = MEM32(esi + 0x4); /* 0x20006BF1: mov edx, dword ptr [esi + 4] */ 5710 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006BF4: cmp eax, dword ptr [edx + 4] */ 5711 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5713 _flag_k = FK_CMP; 5714 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BFE; /* 0x20006BF7: jne 0x20006bfe */ 5715 L_20006BF9: 5716 MEM32(edx + 0x4) = ecx; /* 0x20006BF9: mov dword ptr [edx + 4], ecx */ 5717 goto L_20006C0D; /* 0x20006BFC: jmp 0x20006c0d */ 5718 L_20006BFE: 5719 edx = MEM32(eax + 0x4); /* 0x20006BFE: mov edx, dword ptr [eax + 4] */ 5720 /* cmp eax, MEM32(edx + 0x8) */ /* 0x20006C01: cmp eax, dword ptr [edx + 8] */ 5721 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 5722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5723 _flag_k = FK_CMP; 5724 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C0B; /* 0x20006C04: jne 0x20006c0b */ 5725 L_20006C06: 5726 MEM32(edx + 0x8) = ecx; /* 0x20006C06: mov dword ptr [edx + 8], ecx */ 5727 goto L_20006C0D; /* 0x20006C09: jmp 0x20006c0d */ 5728 L_20006C0B: 5729 MEM32(edx) = ecx; /* 0x20006C0B: mov dword ptr [edx], ecx */ 5730 L_20006C0D: 5731 MEM32(ecx + 0x8) = eax; /* 0x20006C0D: mov dword ptr [ecx + 8], eax */ 5732 MEM32(eax + 0x4) = ecx; /* 0x20006C10: mov dword ptr [eax + 4], ecx */ 5733 L_20006C13: 5734 ecx = MEM32(eax + 0x4); /* 0x20006C13: mov ecx, dword ptr [eax + 4] */ 5735 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C16: mov byte ptr [ecx + 0x14], bl */ 5736 edx = MEM32(eax + 0x4); /* 0x20006C19: mov edx, dword ptr [eax + 4] */ 5737 ecx = MEM32(edx + 0x4); /* 0x20006C1C: mov ecx, dword ptr [edx + 4] */ 5738 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006C1F: mov byte ptr [ecx + 0x14], 0 */ 5739 edx = MEM32(eax + 0x4); /* 0x20006C23: mov edx, dword ptr [eax + 4] */ 5740 ecx = MEM32(edx + 0x4); /* 0x20006C26: mov ecx, dword ptr [edx + 4] */ 5741 edx = MEM32(ecx + 0x8); /* 0x20006C29: mov edx, dword ptr [ecx + 8] */ 5742 edi = MEM32(edx); /* 0x20006C2C: mov edi, dword ptr [edx] */ 5743 MEM32(ecx + 0x8) = edi; /* 0x20006C2E: mov dword ptr [ecx + 8], edi */ 5744 edi = MEM32(edx); /* 0x20006C31: mov edi, dword ptr [edx] */ 5745 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006C33: cmp edi, dword ptr [esi + 8] */ 5746 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5748 _flag_k = FK_CMP; 5749 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006C3B; /* 0x20006C36: je 0x20006c3b */ 5750 L_20006C38: 5751 MEM32(edi + 0x4) = ecx; /* 0x20006C38: mov dword ptr [edi + 4], ecx */ 5752 L_20006C3B: 5753 edi = MEM32(ecx + 0x4); /* 0x20006C3B: mov edi, dword ptr [ecx + 4] */ 5754 MEM32(edx + 0x4) = edi; /* 0x20006C3E: mov dword ptr [edx + 4], edi */ 5755 edi = MEM32(esi + 0x4); /* 0x20006C41: mov edi, dword ptr [esi + 4] */ 5756 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006C44: cmp ecx, dword ptr [edi + 4] */ 5757 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 5758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5759 _flag_k = FK_CMP; 5760 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C4E; /* 0x20006C47: jne 0x20006c4e */ 5761 L_20006C49: 5762 MEM32(edi + 0x4) = edx; /* 0x20006C49: mov dword ptr [edi + 4], edx */ 5763 goto L_20006C5C; /* 0x20006C4C: jmp 0x20006c5c */ 5764 L_20006C4E: 5765 edi = MEM32(ecx + 0x4); /* 0x20006C4E: mov edi, dword ptr [ecx + 4] */ 5766 /* cmp ecx, MEM32(edi) */ /* 0x20006C51: cmp ecx, dword ptr [edi] */ 5767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 5768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5769 _flag_k = FK_CMP; 5770 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C59; /* 0x20006C53: jne 0x20006c59 */ 5771 L_20006C55: 5772 MEM32(edi) = edx; /* 0x20006C55: mov dword ptr [edi], edx */ 5773 goto L_20006C5C; /* 0x20006C57: jmp 0x20006c5c */ 5774 L_20006C59: 5775 MEM32(edi + 0x8) = edx; /* 0x20006C59: mov dword ptr [edi + 8], edx */ 5776 L_20006C5C: 5777 MEM32(edx) = ecx; /* 0x20006C5C: mov dword ptr [edx], ecx */ 5778 L_20006C5E: 5779 MEM32(ecx + 0x4) = edx; /* 0x20006C5E: mov dword ptr [ecx + 4], edx */ 5780 L_20006C61: 5781 ecx = MEM32(esi + 0x4); /* 0x20006C61: mov ecx, dword ptr [esi + 4] */ 5782 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x20006C64: cmp eax, dword ptr [ecx + 4] */ 5783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5785 _flag_k = FK_CMP; 5786 RECOMP_BACKEDGE(); 5787 if (CMP_NE(_flag_a, _flag_b)) goto L_20006AED; /* 0x20006C67: jne 0x20006aed */ 5788 L_20006C6D: 5789 edx = MEM32(esi + 0x4); /* 0x20006C6D: mov edx, dword ptr [esi + 4] */ 5790 eax = MEM32(edx + 0x4); /* 0x20006C70: mov eax, dword ptr [edx + 4] */ 5791 ecx = MEM32(ebp + (-0x4)); /* 0x20006C73: mov ecx, dword ptr [ebp - 4] */ 5792 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C76: mov byte ptr [eax + 0x14], bl */ 5793 eax = MEM32(ebp + 0x8); /* 0x20006C79: mov eax, dword ptr [ebp + 8] */ 5794 edi = POP32_VAL(esp); /* 0x20006C7C: pop edi */ 5795 esi = POP32_VAL(esp); /* 0x20006C7D: pop esi */ 5796 MEM32(eax) = ecx; /* 0x20006C7E: mov dword ptr [eax], ecx */ 5797 ebx = POP32_VAL(esp); /* 0x20006C80: pop ebx */ 5798 esp = ebp; /* 0x20006C81: mov esp, ebp */ 5799 ebp = POP32_VAL(esp); /* 0x20006C83: pop ebp */ 5800 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20006C84: ret 0x10 */ 5801 RECOMP_REGS_OUT(); 5802 } 5803 5804 void sub_20006AED(void) { 5805 int _fpu_cmp = 0; 5806 uint32_t _cf = 0; 5807 int _df = 1; 5808 uint32_t _flag_k = FK_NONE; 5809 uint32_t _flag_a = 0, _flag_b = 0; 5810 uint32_t _itail_tgt = 0; 5811 RECOMP_REGS_LOCALS 5812 RECOMP_ENTER(0x20006AEDu); 5813 5814 L_20006AED: 5815 ecx = MEM32(eax + 0x4); /* 0x20006AED: mov ecx, dword ptr [eax + 4] */ 5816 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x20006AF0: mov dl, byte ptr [ecx + 0x14] */ 5817 /* test LO8(edx), LO8(edx) */ /* 0x20006AF3: test dl, dl */ 5818 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5819 _cf = 0; 5820 _flag_k = FK_NARROW(FK_TEST, 24); 5821 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006C6D; /* 0x20006AF5: jne 0x20006c6d */ 5822 L_20006AFB: 5823 edi = MEM32(ecx + 0x4); /* 0x20006AFB: mov edi, dword ptr [ecx + 4] */ 5824 edx = MEM32(edi); /* 0x20006AFE: mov edx, dword ptr [edi] */ 5825 /* cmp ecx, edx */ /* 0x20006B00: cmp ecx, edx */ 5826 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5828 _flag_k = FK_CMP; 5829 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BC9; /* 0x20006B02: jne 0x20006bc9 */ 5830 L_20006B08: 5831 edx = MEM32(edi + 0x8); /* 0x20006B08: mov edx, dword ptr [edi + 8] */ 5832 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006B0B: cmp byte ptr [edx + 0x14], 0 */ 5833 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 5834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5835 _flag_k = FK_NARROW(FK_CMP, 24); 5836 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B2C; /* 0x20006B0F: jne 0x20006b2c */ 5837 L_20006B11: 5838 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B11: mov byte ptr [ecx + 0x14], bl */ 5839 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B14: mov byte ptr [edx + 0x14], bl */ 5840 ecx = MEM32(eax + 0x4); /* 0x20006B17: mov ecx, dword ptr [eax + 4] */ 5841 edx = MEM32(ecx + 0x4); /* 0x20006B1A: mov edx, dword ptr [ecx + 4] */ 5842 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x20006B1D: mov byte ptr [edx + 0x14], 0 */ 5843 eax = MEM32(eax + 0x4); /* 0x20006B21: mov eax, dword ptr [eax + 4] */ 5844 eax = MEM32(eax + 0x4); /* 0x20006B24: mov eax, dword ptr [eax + 4] */ 5845 goto L_20006C61; /* 0x20006B27: jmp 0x20006c61 */ 5846 L_20006B2C: 5847 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x20006B2C: cmp eax, dword ptr [ecx + 8] */ 5848 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 5849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5850 _flag_k = FK_CMP; 5851 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B6B; /* 0x20006B2F: jne 0x20006b6b */ 5852 L_20006B31: 5853 eax = ecx; /* 0x20006B31: mov eax, ecx */ 5854 ecx = MEM32(eax + 0x8); /* 0x20006B33: mov ecx, dword ptr [eax + 8] */ 5855 edx = MEM32(ecx); /* 0x20006B36: mov edx, dword ptr [ecx] */ 5856 MEM32(eax + 0x8) = edx; /* 0x20006B38: mov dword ptr [eax + 8], edx */ 5857 edx = MEM32(ecx); /* 0x20006B3B: mov edx, dword ptr [ecx] */ 5858 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006B3D: cmp edx, dword ptr [esi + 8] */ 5859 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5861 _flag_k = FK_CMP; 5862 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B45; /* 0x20006B40: je 0x20006b45 */ 5863 L_20006B42: 5864 MEM32(edx + 0x4) = eax; /* 0x20006B42: mov dword ptr [edx + 4], eax */ 5865 L_20006B45: 5866 edx = MEM32(eax + 0x4); /* 0x20006B45: mov edx, dword ptr [eax + 4] */ 5867 MEM32(ecx + 0x4) = edx; /* 0x20006B48: mov dword ptr [ecx + 4], edx */ 5868 edx = MEM32(esi + 0x4); /* 0x20006B4B: mov edx, dword ptr [esi + 4] */ 5869 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006B4E: cmp eax, dword ptr [edx + 4] */ 5870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5872 _flag_k = FK_CMP; 5873 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B58; /* 0x20006B51: jne 0x20006b58 */ 5874 L_20006B53: 5875 MEM32(edx + 0x4) = ecx; /* 0x20006B53: mov dword ptr [edx + 4], ecx */ 5876 goto L_20006B66; /* 0x20006B56: jmp 0x20006b66 */ 5877 L_20006B58: 5878 edx = MEM32(eax + 0x4); /* 0x20006B58: mov edx, dword ptr [eax + 4] */ 5879 /* cmp eax, MEM32(edx) */ /* 0x20006B5B: cmp eax, dword ptr [edx] */ 5880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 5881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5882 _flag_k = FK_CMP; 5883 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B63; /* 0x20006B5D: jne 0x20006b63 */ 5884 L_20006B5F: 5885 MEM32(edx) = ecx; /* 0x20006B5F: mov dword ptr [edx], ecx */ 5886 goto L_20006B66; /* 0x20006B61: jmp 0x20006b66 */ 5887 L_20006B63: 5888 MEM32(edx + 0x8) = ecx; /* 0x20006B63: mov dword ptr [edx + 8], ecx */ 5889 L_20006B66: 5890 MEM32(ecx) = eax; /* 0x20006B66: mov dword ptr [ecx], eax */ 5891 MEM32(eax + 0x4) = ecx; /* 0x20006B68: mov dword ptr [eax + 4], ecx */ 5892 L_20006B6B: 5893 ecx = MEM32(eax + 0x4); /* 0x20006B6B: mov ecx, dword ptr [eax + 4] */ 5894 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B6E: mov byte ptr [ecx + 0x14], bl */ 5895 edx = MEM32(eax + 0x4); /* 0x20006B71: mov edx, dword ptr [eax + 4] */ 5896 ecx = MEM32(edx + 0x4); /* 0x20006B74: mov ecx, dword ptr [edx + 4] */ 5897 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006B77: mov byte ptr [ecx + 0x14], 0 */ 5898 edx = MEM32(eax + 0x4); /* 0x20006B7B: mov edx, dword ptr [eax + 4] */ 5899 ecx = MEM32(edx + 0x4); /* 0x20006B7E: mov ecx, dword ptr [edx + 4] */ 5900 edx = MEM32(ecx); /* 0x20006B81: mov edx, dword ptr [ecx] */ 5901 edi = MEM32(edx + 0x8); /* 0x20006B83: mov edi, dword ptr [edx + 8] */ 5902 MEM32(ecx) = edi; /* 0x20006B86: mov dword ptr [ecx], edi */ 5903 edi = MEM32(edx + 0x8); /* 0x20006B88: mov edi, dword ptr [edx + 8] */ 5904 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006B8B: cmp edi, dword ptr [esi + 8] */ 5905 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5907 _flag_k = FK_CMP; 5908 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B93; /* 0x20006B8E: je 0x20006b93 */ 5909 L_20006B90: 5910 MEM32(edi + 0x4) = ecx; /* 0x20006B90: mov dword ptr [edi + 4], ecx */ 5911 L_20006B93: 5912 edi = MEM32(ecx + 0x4); /* 0x20006B93: mov edi, dword ptr [ecx + 4] */ 5913 MEM32(edx + 0x4) = edi; /* 0x20006B96: mov dword ptr [edx + 4], edi */ 5914 edi = MEM32(esi + 0x4); /* 0x20006B99: mov edi, dword ptr [esi + 4] */ 5915 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006B9C: cmp ecx, dword ptr [edi + 4] */ 5916 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 5917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5918 _flag_k = FK_CMP; 5919 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BAC; /* 0x20006B9F: jne 0x20006bac */ 5920 L_20006BA1: 5921 MEM32(edi + 0x4) = edx; /* 0x20006BA1: mov dword ptr [edi + 4], edx */ 5922 MEM32(edx + 0x8) = ecx; /* 0x20006BA4: mov dword ptr [edx + 8], ecx */ 5923 goto L_20006C5E; /* 0x20006BA7: jmp 0x20006c5e */ 5924 L_20006BAC: 5925 edi = MEM32(ecx + 0x4); /* 0x20006BAC: mov edi, dword ptr [ecx + 4] */ 5926 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x20006BAF: cmp ecx, dword ptr [edi + 8] */ 5927 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5929 _flag_k = FK_CMP; 5930 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BBF; /* 0x20006BB2: jne 0x20006bbf */ 5931 L_20006BB4: 5932 MEM32(edi + 0x8) = edx; /* 0x20006BB4: mov dword ptr [edi + 8], edx */ 5933 MEM32(edx + 0x8) = ecx; /* 0x20006BB7: mov dword ptr [edx + 8], ecx */ 5934 goto L_20006C5E; /* 0x20006BBA: jmp 0x20006c5e */ 5935 L_20006BBF: 5936 MEM32(edi) = edx; /* 0x20006BBF: mov dword ptr [edi], edx */ 5937 MEM32(edx + 0x8) = ecx; /* 0x20006BC1: mov dword ptr [edx + 8], ecx */ 5938 goto L_20006C5E; /* 0x20006BC4: jmp 0x20006c5e */ 5939 L_20006BC9: 5940 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006BC9: cmp byte ptr [edx + 0x14], 0 */ 5941 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 5942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5943 _flag_k = FK_NARROW(FK_CMP, 24); 5944 RECOMP_BACKEDGE(); 5945 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B11; /* 0x20006BCD: je 0x20006b11 */ 5946 L_20006BD3: 5947 /* cmp eax, MEM32(ecx) */ /* 0x20006BD3: cmp eax, dword ptr [ecx] */ 5948 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 5949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5950 _flag_k = FK_CMP; 5951 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C13; /* 0x20006BD5: jne 0x20006c13 */ 5952 L_20006BD7: 5953 eax = ecx; /* 0x20006BD7: mov eax, ecx */ 5954 ecx = MEM32(eax); /* 0x20006BD9: mov ecx, dword ptr [eax] */ 5955 edx = MEM32(ecx + 0x8); /* 0x20006BDB: mov edx, dword ptr [ecx + 8] */ 5956 MEM32(eax) = edx; /* 0x20006BDE: mov dword ptr [eax], edx */ 5957 edx = MEM32(ecx + 0x8); /* 0x20006BE0: mov edx, dword ptr [ecx + 8] */ 5958 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006BE3: cmp edx, dword ptr [esi + 8] */ 5959 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5961 _flag_k = FK_CMP; 5962 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006BEB; /* 0x20006BE6: je 0x20006beb */ 5963 L_20006BE8: 5964 MEM32(edx + 0x4) = eax; /* 0x20006BE8: mov dword ptr [edx + 4], eax */ 5965 L_20006BEB: 5966 edx = MEM32(eax + 0x4); /* 0x20006BEB: mov edx, dword ptr [eax + 4] */ 5967 MEM32(ecx + 0x4) = edx; /* 0x20006BEE: mov dword ptr [ecx + 4], edx */ 5968 edx = MEM32(esi + 0x4); /* 0x20006BF1: mov edx, dword ptr [esi + 4] */ 5969 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006BF4: cmp eax, dword ptr [edx + 4] */ 5970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5972 _flag_k = FK_CMP; 5973 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BFE; /* 0x20006BF7: jne 0x20006bfe */ 5974 L_20006BF9: 5975 MEM32(edx + 0x4) = ecx; /* 0x20006BF9: mov dword ptr [edx + 4], ecx */ 5976 goto L_20006C0D; /* 0x20006BFC: jmp 0x20006c0d */ 5977 L_20006BFE: 5978 edx = MEM32(eax + 0x4); /* 0x20006BFE: mov edx, dword ptr [eax + 4] */ 5979 /* cmp eax, MEM32(edx + 0x8) */ /* 0x20006C01: cmp eax, dword ptr [edx + 8] */ 5980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 5981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5982 _flag_k = FK_CMP; 5983 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C0B; /* 0x20006C04: jne 0x20006c0b */ 5984 L_20006C06: 5985 MEM32(edx + 0x8) = ecx; /* 0x20006C06: mov dword ptr [edx + 8], ecx */ 5986 goto L_20006C0D; /* 0x20006C09: jmp 0x20006c0d */ 5987 L_20006C0B: 5988 MEM32(edx) = ecx; /* 0x20006C0B: mov dword ptr [edx], ecx */ 5989 L_20006C0D: 5990 MEM32(ecx + 0x8) = eax; /* 0x20006C0D: mov dword ptr [ecx + 8], eax */ 5991 MEM32(eax + 0x4) = ecx; /* 0x20006C10: mov dword ptr [eax + 4], ecx */ 5992 L_20006C13: 5993 ecx = MEM32(eax + 0x4); /* 0x20006C13: mov ecx, dword ptr [eax + 4] */ 5994 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C16: mov byte ptr [ecx + 0x14], bl */ 5995 edx = MEM32(eax + 0x4); /* 0x20006C19: mov edx, dword ptr [eax + 4] */ 5996 ecx = MEM32(edx + 0x4); /* 0x20006C1C: mov ecx, dword ptr [edx + 4] */ 5997 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006C1F: mov byte ptr [ecx + 0x14], 0 */ 5998 edx = MEM32(eax + 0x4); /* 0x20006C23: mov edx, dword ptr [eax + 4] */ 5999 ecx = MEM32(edx + 0x4); /* 0x20006C26: mov ecx, dword ptr [edx + 4] */ 6000 edx = MEM32(ecx + 0x8); /* 0x20006C29: mov edx, dword ptr [ecx + 8] */ 6001 edi = MEM32(edx); /* 0x20006C2C: mov edi, dword ptr [edx] */ 6002 MEM32(ecx + 0x8) = edi; /* 0x20006C2E: mov dword ptr [ecx + 8], edi */ 6003 edi = MEM32(edx); /* 0x20006C31: mov edi, dword ptr [edx] */ 6004 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006C33: cmp edi, dword ptr [esi + 8] */ 6005 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6007 _flag_k = FK_CMP; 6008 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006C3B; /* 0x20006C36: je 0x20006c3b */ 6009 L_20006C38: 6010 MEM32(edi + 0x4) = ecx; /* 0x20006C38: mov dword ptr [edi + 4], ecx */ 6011 L_20006C3B: 6012 edi = MEM32(ecx + 0x4); /* 0x20006C3B: mov edi, dword ptr [ecx + 4] */ 6013 MEM32(edx + 0x4) = edi; /* 0x20006C3E: mov dword ptr [edx + 4], edi */ 6014 edi = MEM32(esi + 0x4); /* 0x20006C41: mov edi, dword ptr [esi + 4] */ 6015 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006C44: cmp ecx, dword ptr [edi + 4] */ 6016 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6018 _flag_k = FK_CMP; 6019 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C4E; /* 0x20006C47: jne 0x20006c4e */ 6020 L_20006C49: 6021 MEM32(edi + 0x4) = edx; /* 0x20006C49: mov dword ptr [edi + 4], edx */ 6022 goto L_20006C5C; /* 0x20006C4C: jmp 0x20006c5c */ 6023 L_20006C4E: 6024 edi = MEM32(ecx + 0x4); /* 0x20006C4E: mov edi, dword ptr [ecx + 4] */ 6025 /* cmp ecx, MEM32(edi) */ /* 0x20006C51: cmp ecx, dword ptr [edi] */ 6026 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 6027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6028 _flag_k = FK_CMP; 6029 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C59; /* 0x20006C53: jne 0x20006c59 */ 6030 L_20006C55: 6031 MEM32(edi) = edx; /* 0x20006C55: mov dword ptr [edi], edx */ 6032 goto L_20006C5C; /* 0x20006C57: jmp 0x20006c5c */ 6033 L_20006C59: 6034 MEM32(edi + 0x8) = edx; /* 0x20006C59: mov dword ptr [edi + 8], edx */ 6035 L_20006C5C: 6036 MEM32(edx) = ecx; /* 0x20006C5C: mov dword ptr [edx], ecx */ 6037 L_20006C5E: 6038 MEM32(ecx + 0x4) = edx; /* 0x20006C5E: mov dword ptr [ecx + 4], edx */ 6039 L_20006C61: 6040 ecx = MEM32(esi + 0x4); /* 0x20006C61: mov ecx, dword ptr [esi + 4] */ 6041 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x20006C64: cmp eax, dword ptr [ecx + 4] */ 6042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6044 _flag_k = FK_CMP; 6045 RECOMP_BACKEDGE(); 6046 if (CMP_NE(_flag_a, _flag_b)) goto L_20006AED; /* 0x20006C67: jne 0x20006aed */ 6047 L_20006C6D: 6048 edx = MEM32(esi + 0x4); /* 0x20006C6D: mov edx, dword ptr [esi + 4] */ 6049 eax = MEM32(edx + 0x4); /* 0x20006C70: mov eax, dword ptr [edx + 4] */ 6050 ecx = MEM32(ebp + (-0x4)); /* 0x20006C73: mov ecx, dword ptr [ebp - 4] */ 6051 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C76: mov byte ptr [eax + 0x14], bl */ 6052 eax = MEM32(ebp + 0x8); /* 0x20006C79: mov eax, dword ptr [ebp + 8] */ 6053 edi = POP32_VAL(esp); /* 0x20006C7C: pop edi */ 6054 esi = POP32_VAL(esp); /* 0x20006C7D: pop esi */ 6055 MEM32(eax) = ecx; /* 0x20006C7E: mov dword ptr [eax], ecx */ 6056 ebx = POP32_VAL(esp); /* 0x20006C80: pop ebx */ 6057 esp = ebp; /* 0x20006C81: mov esp, ebp */ 6058 ebp = POP32_VAL(esp); /* 0x20006C83: pop ebp */ 6059 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20006C84: ret 0x10 */ 6060 RECOMP_REGS_OUT(); 6061 } 6062 6063 void sub_20006B11(void) { 6064 int _fpu_cmp = 0; 6065 uint32_t _cf = 0; 6066 int _df = 1; 6067 uint32_t _flag_k = FK_NONE; 6068 uint32_t _flag_a = 0, _flag_b = 0; 6069 uint32_t _itail_tgt = 0; 6070 RECOMP_REGS_LOCALS 6071 RECOMP_ENTER(0x20006B11u); 6072 6073 goto L_20006B11; 6074 L_20006AED: 6075 ecx = MEM32(eax + 0x4); /* 0x20006AED: mov ecx, dword ptr [eax + 4] */ 6076 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x20006AF0: mov dl, byte ptr [ecx + 0x14] */ 6077 /* test LO8(edx), LO8(edx) */ /* 0x20006AF3: test dl, dl */ 6078 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6079 _cf = 0; 6080 _flag_k = FK_NARROW(FK_TEST, 24); 6081 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006C6D; /* 0x20006AF5: jne 0x20006c6d */ 6082 L_20006AFB: 6083 edi = MEM32(ecx + 0x4); /* 0x20006AFB: mov edi, dword ptr [ecx + 4] */ 6084 edx = MEM32(edi); /* 0x20006AFE: mov edx, dword ptr [edi] */ 6085 /* cmp ecx, edx */ /* 0x20006B00: cmp ecx, edx */ 6086 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6088 _flag_k = FK_CMP; 6089 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BC9; /* 0x20006B02: jne 0x20006bc9 */ 6090 L_20006B08: 6091 edx = MEM32(edi + 0x8); /* 0x20006B08: mov edx, dword ptr [edi + 8] */ 6092 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006B0B: cmp byte ptr [edx + 0x14], 0 */ 6093 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6095 _flag_k = FK_NARROW(FK_CMP, 24); 6096 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B2C; /* 0x20006B0F: jne 0x20006b2c */ 6097 L_20006B11: 6098 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B11: mov byte ptr [ecx + 0x14], bl */ 6099 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B14: mov byte ptr [edx + 0x14], bl */ 6100 ecx = MEM32(eax + 0x4); /* 0x20006B17: mov ecx, dword ptr [eax + 4] */ 6101 edx = MEM32(ecx + 0x4); /* 0x20006B1A: mov edx, dword ptr [ecx + 4] */ 6102 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x20006B1D: mov byte ptr [edx + 0x14], 0 */ 6103 eax = MEM32(eax + 0x4); /* 0x20006B21: mov eax, dword ptr [eax + 4] */ 6104 eax = MEM32(eax + 0x4); /* 0x20006B24: mov eax, dword ptr [eax + 4] */ 6105 goto L_20006C61; /* 0x20006B27: jmp 0x20006c61 */ 6106 L_20006B2C: 6107 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x20006B2C: cmp eax, dword ptr [ecx + 8] */ 6108 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 6109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6110 _flag_k = FK_CMP; 6111 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B6B; /* 0x20006B2F: jne 0x20006b6b */ 6112 L_20006B31: 6113 eax = ecx; /* 0x20006B31: mov eax, ecx */ 6114 ecx = MEM32(eax + 0x8); /* 0x20006B33: mov ecx, dword ptr [eax + 8] */ 6115 edx = MEM32(ecx); /* 0x20006B36: mov edx, dword ptr [ecx] */ 6116 MEM32(eax + 0x8) = edx; /* 0x20006B38: mov dword ptr [eax + 8], edx */ 6117 edx = MEM32(ecx); /* 0x20006B3B: mov edx, dword ptr [ecx] */ 6118 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006B3D: cmp edx, dword ptr [esi + 8] */ 6119 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6121 _flag_k = FK_CMP; 6122 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B45; /* 0x20006B40: je 0x20006b45 */ 6123 L_20006B42: 6124 MEM32(edx + 0x4) = eax; /* 0x20006B42: mov dword ptr [edx + 4], eax */ 6125 L_20006B45: 6126 edx = MEM32(eax + 0x4); /* 0x20006B45: mov edx, dword ptr [eax + 4] */ 6127 MEM32(ecx + 0x4) = edx; /* 0x20006B48: mov dword ptr [ecx + 4], edx */ 6128 edx = MEM32(esi + 0x4); /* 0x20006B4B: mov edx, dword ptr [esi + 4] */ 6129 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006B4E: cmp eax, dword ptr [edx + 4] */ 6130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6132 _flag_k = FK_CMP; 6133 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B58; /* 0x20006B51: jne 0x20006b58 */ 6134 L_20006B53: 6135 MEM32(edx + 0x4) = ecx; /* 0x20006B53: mov dword ptr [edx + 4], ecx */ 6136 goto L_20006B66; /* 0x20006B56: jmp 0x20006b66 */ 6137 L_20006B58: 6138 edx = MEM32(eax + 0x4); /* 0x20006B58: mov edx, dword ptr [eax + 4] */ 6139 /* cmp eax, MEM32(edx) */ /* 0x20006B5B: cmp eax, dword ptr [edx] */ 6140 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 6141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6142 _flag_k = FK_CMP; 6143 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B63; /* 0x20006B5D: jne 0x20006b63 */ 6144 L_20006B5F: 6145 MEM32(edx) = ecx; /* 0x20006B5F: mov dword ptr [edx], ecx */ 6146 goto L_20006B66; /* 0x20006B61: jmp 0x20006b66 */ 6147 L_20006B63: 6148 MEM32(edx + 0x8) = ecx; /* 0x20006B63: mov dword ptr [edx + 8], ecx */ 6149 L_20006B66: 6150 MEM32(ecx) = eax; /* 0x20006B66: mov dword ptr [ecx], eax */ 6151 MEM32(eax + 0x4) = ecx; /* 0x20006B68: mov dword ptr [eax + 4], ecx */ 6152 L_20006B6B: 6153 ecx = MEM32(eax + 0x4); /* 0x20006B6B: mov ecx, dword ptr [eax + 4] */ 6154 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B6E: mov byte ptr [ecx + 0x14], bl */ 6155 edx = MEM32(eax + 0x4); /* 0x20006B71: mov edx, dword ptr [eax + 4] */ 6156 ecx = MEM32(edx + 0x4); /* 0x20006B74: mov ecx, dword ptr [edx + 4] */ 6157 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006B77: mov byte ptr [ecx + 0x14], 0 */ 6158 edx = MEM32(eax + 0x4); /* 0x20006B7B: mov edx, dword ptr [eax + 4] */ 6159 ecx = MEM32(edx + 0x4); /* 0x20006B7E: mov ecx, dword ptr [edx + 4] */ 6160 edx = MEM32(ecx); /* 0x20006B81: mov edx, dword ptr [ecx] */ 6161 edi = MEM32(edx + 0x8); /* 0x20006B83: mov edi, dword ptr [edx + 8] */ 6162 MEM32(ecx) = edi; /* 0x20006B86: mov dword ptr [ecx], edi */ 6163 edi = MEM32(edx + 0x8); /* 0x20006B88: mov edi, dword ptr [edx + 8] */ 6164 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006B8B: cmp edi, dword ptr [esi + 8] */ 6165 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6167 _flag_k = FK_CMP; 6168 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B93; /* 0x20006B8E: je 0x20006b93 */ 6169 L_20006B90: 6170 MEM32(edi + 0x4) = ecx; /* 0x20006B90: mov dword ptr [edi + 4], ecx */ 6171 L_20006B93: 6172 edi = MEM32(ecx + 0x4); /* 0x20006B93: mov edi, dword ptr [ecx + 4] */ 6173 MEM32(edx + 0x4) = edi; /* 0x20006B96: mov dword ptr [edx + 4], edi */ 6174 edi = MEM32(esi + 0x4); /* 0x20006B99: mov edi, dword ptr [esi + 4] */ 6175 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006B9C: cmp ecx, dword ptr [edi + 4] */ 6176 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6178 _flag_k = FK_CMP; 6179 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BAC; /* 0x20006B9F: jne 0x20006bac */ 6180 L_20006BA1: 6181 MEM32(edi + 0x4) = edx; /* 0x20006BA1: mov dword ptr [edi + 4], edx */ 6182 MEM32(edx + 0x8) = ecx; /* 0x20006BA4: mov dword ptr [edx + 8], ecx */ 6183 goto L_20006C5E; /* 0x20006BA7: jmp 0x20006c5e */ 6184 L_20006BAC: 6185 edi = MEM32(ecx + 0x4); /* 0x20006BAC: mov edi, dword ptr [ecx + 4] */ 6186 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x20006BAF: cmp ecx, dword ptr [edi + 8] */ 6187 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6189 _flag_k = FK_CMP; 6190 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BBF; /* 0x20006BB2: jne 0x20006bbf */ 6191 L_20006BB4: 6192 MEM32(edi + 0x8) = edx; /* 0x20006BB4: mov dword ptr [edi + 8], edx */ 6193 MEM32(edx + 0x8) = ecx; /* 0x20006BB7: mov dword ptr [edx + 8], ecx */ 6194 goto L_20006C5E; /* 0x20006BBA: jmp 0x20006c5e */ 6195 L_20006BBF: 6196 MEM32(edi) = edx; /* 0x20006BBF: mov dword ptr [edi], edx */ 6197 MEM32(edx + 0x8) = ecx; /* 0x20006BC1: mov dword ptr [edx + 8], ecx */ 6198 goto L_20006C5E; /* 0x20006BC4: jmp 0x20006c5e */ 6199 L_20006BC9: 6200 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006BC9: cmp byte ptr [edx + 0x14], 0 */ 6201 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6203 _flag_k = FK_NARROW(FK_CMP, 24); 6204 RECOMP_BACKEDGE(); 6205 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B11; /* 0x20006BCD: je 0x20006b11 */ 6206 L_20006BD3: 6207 /* cmp eax, MEM32(ecx) */ /* 0x20006BD3: cmp eax, dword ptr [ecx] */ 6208 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 6209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6210 _flag_k = FK_CMP; 6211 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C13; /* 0x20006BD5: jne 0x20006c13 */ 6212 L_20006BD7: 6213 eax = ecx; /* 0x20006BD7: mov eax, ecx */ 6214 ecx = MEM32(eax); /* 0x20006BD9: mov ecx, dword ptr [eax] */ 6215 edx = MEM32(ecx + 0x8); /* 0x20006BDB: mov edx, dword ptr [ecx + 8] */ 6216 MEM32(eax) = edx; /* 0x20006BDE: mov dword ptr [eax], edx */ 6217 edx = MEM32(ecx + 0x8); /* 0x20006BE0: mov edx, dword ptr [ecx + 8] */ 6218 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006BE3: cmp edx, dword ptr [esi + 8] */ 6219 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6221 _flag_k = FK_CMP; 6222 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006BEB; /* 0x20006BE6: je 0x20006beb */ 6223 L_20006BE8: 6224 MEM32(edx + 0x4) = eax; /* 0x20006BE8: mov dword ptr [edx + 4], eax */ 6225 L_20006BEB: 6226 edx = MEM32(eax + 0x4); /* 0x20006BEB: mov edx, dword ptr [eax + 4] */ 6227 MEM32(ecx + 0x4) = edx; /* 0x20006BEE: mov dword ptr [ecx + 4], edx */ 6228 edx = MEM32(esi + 0x4); /* 0x20006BF1: mov edx, dword ptr [esi + 4] */ 6229 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006BF4: cmp eax, dword ptr [edx + 4] */ 6230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6232 _flag_k = FK_CMP; 6233 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BFE; /* 0x20006BF7: jne 0x20006bfe */ 6234 L_20006BF9: 6235 MEM32(edx + 0x4) = ecx; /* 0x20006BF9: mov dword ptr [edx + 4], ecx */ 6236 goto L_20006C0D; /* 0x20006BFC: jmp 0x20006c0d */ 6237 L_20006BFE: 6238 edx = MEM32(eax + 0x4); /* 0x20006BFE: mov edx, dword ptr [eax + 4] */ 6239 /* cmp eax, MEM32(edx + 0x8) */ /* 0x20006C01: cmp eax, dword ptr [edx + 8] */ 6240 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 6241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6242 _flag_k = FK_CMP; 6243 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C0B; /* 0x20006C04: jne 0x20006c0b */ 6244 L_20006C06: 6245 MEM32(edx + 0x8) = ecx; /* 0x20006C06: mov dword ptr [edx + 8], ecx */ 6246 goto L_20006C0D; /* 0x20006C09: jmp 0x20006c0d */ 6247 L_20006C0B: 6248 MEM32(edx) = ecx; /* 0x20006C0B: mov dword ptr [edx], ecx */ 6249 L_20006C0D: 6250 MEM32(ecx + 0x8) = eax; /* 0x20006C0D: mov dword ptr [ecx + 8], eax */ 6251 MEM32(eax + 0x4) = ecx; /* 0x20006C10: mov dword ptr [eax + 4], ecx */ 6252 L_20006C13: 6253 ecx = MEM32(eax + 0x4); /* 0x20006C13: mov ecx, dword ptr [eax + 4] */ 6254 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C16: mov byte ptr [ecx + 0x14], bl */ 6255 edx = MEM32(eax + 0x4); /* 0x20006C19: mov edx, dword ptr [eax + 4] */ 6256 ecx = MEM32(edx + 0x4); /* 0x20006C1C: mov ecx, dword ptr [edx + 4] */ 6257 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006C1F: mov byte ptr [ecx + 0x14], 0 */ 6258 edx = MEM32(eax + 0x4); /* 0x20006C23: mov edx, dword ptr [eax + 4] */ 6259 ecx = MEM32(edx + 0x4); /* 0x20006C26: mov ecx, dword ptr [edx + 4] */ 6260 edx = MEM32(ecx + 0x8); /* 0x20006C29: mov edx, dword ptr [ecx + 8] */ 6261 edi = MEM32(edx); /* 0x20006C2C: mov edi, dword ptr [edx] */ 6262 MEM32(ecx + 0x8) = edi; /* 0x20006C2E: mov dword ptr [ecx + 8], edi */ 6263 edi = MEM32(edx); /* 0x20006C31: mov edi, dword ptr [edx] */ 6264 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006C33: cmp edi, dword ptr [esi + 8] */ 6265 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6267 _flag_k = FK_CMP; 6268 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006C3B; /* 0x20006C36: je 0x20006c3b */ 6269 L_20006C38: 6270 MEM32(edi + 0x4) = ecx; /* 0x20006C38: mov dword ptr [edi + 4], ecx */ 6271 L_20006C3B: 6272 edi = MEM32(ecx + 0x4); /* 0x20006C3B: mov edi, dword ptr [ecx + 4] */ 6273 MEM32(edx + 0x4) = edi; /* 0x20006C3E: mov dword ptr [edx + 4], edi */ 6274 edi = MEM32(esi + 0x4); /* 0x20006C41: mov edi, dword ptr [esi + 4] */ 6275 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006C44: cmp ecx, dword ptr [edi + 4] */ 6276 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6278 _flag_k = FK_CMP; 6279 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C4E; /* 0x20006C47: jne 0x20006c4e */ 6280 L_20006C49: 6281 MEM32(edi + 0x4) = edx; /* 0x20006C49: mov dword ptr [edi + 4], edx */ 6282 goto L_20006C5C; /* 0x20006C4C: jmp 0x20006c5c */ 6283 L_20006C4E: 6284 edi = MEM32(ecx + 0x4); /* 0x20006C4E: mov edi, dword ptr [ecx + 4] */ 6285 /* cmp ecx, MEM32(edi) */ /* 0x20006C51: cmp ecx, dword ptr [edi] */ 6286 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 6287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6288 _flag_k = FK_CMP; 6289 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C59; /* 0x20006C53: jne 0x20006c59 */ 6290 L_20006C55: 6291 MEM32(edi) = edx; /* 0x20006C55: mov dword ptr [edi], edx */ 6292 goto L_20006C5C; /* 0x20006C57: jmp 0x20006c5c */ 6293 L_20006C59: 6294 MEM32(edi + 0x8) = edx; /* 0x20006C59: mov dword ptr [edi + 8], edx */ 6295 L_20006C5C: 6296 MEM32(edx) = ecx; /* 0x20006C5C: mov dword ptr [edx], ecx */ 6297 L_20006C5E: 6298 MEM32(ecx + 0x4) = edx; /* 0x20006C5E: mov dword ptr [ecx + 4], edx */ 6299 L_20006C61: 6300 ecx = MEM32(esi + 0x4); /* 0x20006C61: mov ecx, dword ptr [esi + 4] */ 6301 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x20006C64: cmp eax, dword ptr [ecx + 4] */ 6302 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6304 _flag_k = FK_CMP; 6305 RECOMP_BACKEDGE(); 6306 if (CMP_NE(_flag_a, _flag_b)) goto L_20006AED; /* 0x20006C67: jne 0x20006aed */ 6307 L_20006C6D: 6308 edx = MEM32(esi + 0x4); /* 0x20006C6D: mov edx, dword ptr [esi + 4] */ 6309 eax = MEM32(edx + 0x4); /* 0x20006C70: mov eax, dword ptr [edx + 4] */ 6310 ecx = MEM32(ebp + (-0x4)); /* 0x20006C73: mov ecx, dword ptr [ebp - 4] */ 6311 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C76: mov byte ptr [eax + 0x14], bl */ 6312 eax = MEM32(ebp + 0x8); /* 0x20006C79: mov eax, dword ptr [ebp + 8] */ 6313 edi = POP32_VAL(esp); /* 0x20006C7C: pop edi */ 6314 esi = POP32_VAL(esp); /* 0x20006C7D: pop esi */ 6315 MEM32(eax) = ecx; /* 0x20006C7E: mov dword ptr [eax], ecx */ 6316 ebx = POP32_VAL(esp); /* 0x20006C80: pop ebx */ 6317 esp = ebp; /* 0x20006C81: mov esp, ebp */ 6318 ebp = POP32_VAL(esp); /* 0x20006C83: pop ebp */ 6319 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20006C84: ret 0x10 */ 6320 RECOMP_REGS_OUT(); 6321 } 6322 6323 void sub_20006B66(void) { 6324 int _fpu_cmp = 0; 6325 uint32_t _cf = 0; 6326 int _df = 1; 6327 uint32_t _flag_k = FK_NONE; 6328 uint32_t _flag_a = 0, _flag_b = 0; 6329 uint32_t _itail_tgt = 0; 6330 RECOMP_REGS_LOCALS 6331 RECOMP_ENTER(0x20006B66u); 6332 6333 goto L_20006B66; 6334 L_20006AED: 6335 ecx = MEM32(eax + 0x4); /* 0x20006AED: mov ecx, dword ptr [eax + 4] */ 6336 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x20006AF0: mov dl, byte ptr [ecx + 0x14] */ 6337 /* test LO8(edx), LO8(edx) */ /* 0x20006AF3: test dl, dl */ 6338 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6339 _cf = 0; 6340 _flag_k = FK_NARROW(FK_TEST, 24); 6341 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006C6D; /* 0x20006AF5: jne 0x20006c6d */ 6342 L_20006AFB: 6343 edi = MEM32(ecx + 0x4); /* 0x20006AFB: mov edi, dword ptr [ecx + 4] */ 6344 edx = MEM32(edi); /* 0x20006AFE: mov edx, dword ptr [edi] */ 6345 /* cmp ecx, edx */ /* 0x20006B00: cmp ecx, edx */ 6346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6348 _flag_k = FK_CMP; 6349 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BC9; /* 0x20006B02: jne 0x20006bc9 */ 6350 L_20006B08: 6351 edx = MEM32(edi + 0x8); /* 0x20006B08: mov edx, dword ptr [edi + 8] */ 6352 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006B0B: cmp byte ptr [edx + 0x14], 0 */ 6353 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6355 _flag_k = FK_NARROW(FK_CMP, 24); 6356 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B2C; /* 0x20006B0F: jne 0x20006b2c */ 6357 L_20006B11: 6358 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B11: mov byte ptr [ecx + 0x14], bl */ 6359 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B14: mov byte ptr [edx + 0x14], bl */ 6360 ecx = MEM32(eax + 0x4); /* 0x20006B17: mov ecx, dword ptr [eax + 4] */ 6361 edx = MEM32(ecx + 0x4); /* 0x20006B1A: mov edx, dword ptr [ecx + 4] */ 6362 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x20006B1D: mov byte ptr [edx + 0x14], 0 */ 6363 eax = MEM32(eax + 0x4); /* 0x20006B21: mov eax, dword ptr [eax + 4] */ 6364 eax = MEM32(eax + 0x4); /* 0x20006B24: mov eax, dword ptr [eax + 4] */ 6365 goto L_20006C61; /* 0x20006B27: jmp 0x20006c61 */ 6366 L_20006B2C: 6367 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x20006B2C: cmp eax, dword ptr [ecx + 8] */ 6368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 6369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6370 _flag_k = FK_CMP; 6371 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B6B; /* 0x20006B2F: jne 0x20006b6b */ 6372 L_20006B31: 6373 eax = ecx; /* 0x20006B31: mov eax, ecx */ 6374 ecx = MEM32(eax + 0x8); /* 0x20006B33: mov ecx, dword ptr [eax + 8] */ 6375 edx = MEM32(ecx); /* 0x20006B36: mov edx, dword ptr [ecx] */ 6376 MEM32(eax + 0x8) = edx; /* 0x20006B38: mov dword ptr [eax + 8], edx */ 6377 edx = MEM32(ecx); /* 0x20006B3B: mov edx, dword ptr [ecx] */ 6378 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006B3D: cmp edx, dword ptr [esi + 8] */ 6379 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6381 _flag_k = FK_CMP; 6382 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B45; /* 0x20006B40: je 0x20006b45 */ 6383 L_20006B42: 6384 MEM32(edx + 0x4) = eax; /* 0x20006B42: mov dword ptr [edx + 4], eax */ 6385 L_20006B45: 6386 edx = MEM32(eax + 0x4); /* 0x20006B45: mov edx, dword ptr [eax + 4] */ 6387 MEM32(ecx + 0x4) = edx; /* 0x20006B48: mov dword ptr [ecx + 4], edx */ 6388 edx = MEM32(esi + 0x4); /* 0x20006B4B: mov edx, dword ptr [esi + 4] */ 6389 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006B4E: cmp eax, dword ptr [edx + 4] */ 6390 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6392 _flag_k = FK_CMP; 6393 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B58; /* 0x20006B51: jne 0x20006b58 */ 6394 L_20006B53: 6395 MEM32(edx + 0x4) = ecx; /* 0x20006B53: mov dword ptr [edx + 4], ecx */ 6396 goto L_20006B66; /* 0x20006B56: jmp 0x20006b66 */ 6397 L_20006B58: 6398 edx = MEM32(eax + 0x4); /* 0x20006B58: mov edx, dword ptr [eax + 4] */ 6399 /* cmp eax, MEM32(edx) */ /* 0x20006B5B: cmp eax, dword ptr [edx] */ 6400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 6401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6402 _flag_k = FK_CMP; 6403 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B63; /* 0x20006B5D: jne 0x20006b63 */ 6404 L_20006B5F: 6405 MEM32(edx) = ecx; /* 0x20006B5F: mov dword ptr [edx], ecx */ 6406 goto L_20006B66; /* 0x20006B61: jmp 0x20006b66 */ 6407 L_20006B63: 6408 MEM32(edx + 0x8) = ecx; /* 0x20006B63: mov dword ptr [edx + 8], ecx */ 6409 L_20006B66: 6410 MEM32(ecx) = eax; /* 0x20006B66: mov dword ptr [ecx], eax */ 6411 MEM32(eax + 0x4) = ecx; /* 0x20006B68: mov dword ptr [eax + 4], ecx */ 6412 L_20006B6B: 6413 ecx = MEM32(eax + 0x4); /* 0x20006B6B: mov ecx, dword ptr [eax + 4] */ 6414 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B6E: mov byte ptr [ecx + 0x14], bl */ 6415 edx = MEM32(eax + 0x4); /* 0x20006B71: mov edx, dword ptr [eax + 4] */ 6416 ecx = MEM32(edx + 0x4); /* 0x20006B74: mov ecx, dword ptr [edx + 4] */ 6417 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006B77: mov byte ptr [ecx + 0x14], 0 */ 6418 edx = MEM32(eax + 0x4); /* 0x20006B7B: mov edx, dword ptr [eax + 4] */ 6419 ecx = MEM32(edx + 0x4); /* 0x20006B7E: mov ecx, dword ptr [edx + 4] */ 6420 edx = MEM32(ecx); /* 0x20006B81: mov edx, dword ptr [ecx] */ 6421 edi = MEM32(edx + 0x8); /* 0x20006B83: mov edi, dword ptr [edx + 8] */ 6422 MEM32(ecx) = edi; /* 0x20006B86: mov dword ptr [ecx], edi */ 6423 edi = MEM32(edx + 0x8); /* 0x20006B88: mov edi, dword ptr [edx + 8] */ 6424 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006B8B: cmp edi, dword ptr [esi + 8] */ 6425 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6427 _flag_k = FK_CMP; 6428 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B93; /* 0x20006B8E: je 0x20006b93 */ 6429 L_20006B90: 6430 MEM32(edi + 0x4) = ecx; /* 0x20006B90: mov dword ptr [edi + 4], ecx */ 6431 L_20006B93: 6432 edi = MEM32(ecx + 0x4); /* 0x20006B93: mov edi, dword ptr [ecx + 4] */ 6433 MEM32(edx + 0x4) = edi; /* 0x20006B96: mov dword ptr [edx + 4], edi */ 6434 edi = MEM32(esi + 0x4); /* 0x20006B99: mov edi, dword ptr [esi + 4] */ 6435 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006B9C: cmp ecx, dword ptr [edi + 4] */ 6436 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6438 _flag_k = FK_CMP; 6439 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BAC; /* 0x20006B9F: jne 0x20006bac */ 6440 L_20006BA1: 6441 MEM32(edi + 0x4) = edx; /* 0x20006BA1: mov dword ptr [edi + 4], edx */ 6442 MEM32(edx + 0x8) = ecx; /* 0x20006BA4: mov dword ptr [edx + 8], ecx */ 6443 goto L_20006C5E; /* 0x20006BA7: jmp 0x20006c5e */ 6444 L_20006BAC: 6445 edi = MEM32(ecx + 0x4); /* 0x20006BAC: mov edi, dword ptr [ecx + 4] */ 6446 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x20006BAF: cmp ecx, dword ptr [edi + 8] */ 6447 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6449 _flag_k = FK_CMP; 6450 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BBF; /* 0x20006BB2: jne 0x20006bbf */ 6451 L_20006BB4: 6452 MEM32(edi + 0x8) = edx; /* 0x20006BB4: mov dword ptr [edi + 8], edx */ 6453 MEM32(edx + 0x8) = ecx; /* 0x20006BB7: mov dword ptr [edx + 8], ecx */ 6454 goto L_20006C5E; /* 0x20006BBA: jmp 0x20006c5e */ 6455 L_20006BBF: 6456 MEM32(edi) = edx; /* 0x20006BBF: mov dword ptr [edi], edx */ 6457 MEM32(edx + 0x8) = ecx; /* 0x20006BC1: mov dword ptr [edx + 8], ecx */ 6458 goto L_20006C5E; /* 0x20006BC4: jmp 0x20006c5e */ 6459 L_20006BC9: 6460 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006BC9: cmp byte ptr [edx + 0x14], 0 */ 6461 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6463 _flag_k = FK_NARROW(FK_CMP, 24); 6464 RECOMP_BACKEDGE(); 6465 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B11; /* 0x20006BCD: je 0x20006b11 */ 6466 L_20006BD3: 6467 /* cmp eax, MEM32(ecx) */ /* 0x20006BD3: cmp eax, dword ptr [ecx] */ 6468 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 6469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6470 _flag_k = FK_CMP; 6471 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C13; /* 0x20006BD5: jne 0x20006c13 */ 6472 L_20006BD7: 6473 eax = ecx; /* 0x20006BD7: mov eax, ecx */ 6474 ecx = MEM32(eax); /* 0x20006BD9: mov ecx, dword ptr [eax] */ 6475 edx = MEM32(ecx + 0x8); /* 0x20006BDB: mov edx, dword ptr [ecx + 8] */ 6476 MEM32(eax) = edx; /* 0x20006BDE: mov dword ptr [eax], edx */ 6477 edx = MEM32(ecx + 0x8); /* 0x20006BE0: mov edx, dword ptr [ecx + 8] */ 6478 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006BE3: cmp edx, dword ptr [esi + 8] */ 6479 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6481 _flag_k = FK_CMP; 6482 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006BEB; /* 0x20006BE6: je 0x20006beb */ 6483 L_20006BE8: 6484 MEM32(edx + 0x4) = eax; /* 0x20006BE8: mov dword ptr [edx + 4], eax */ 6485 L_20006BEB: 6486 edx = MEM32(eax + 0x4); /* 0x20006BEB: mov edx, dword ptr [eax + 4] */ 6487 MEM32(ecx + 0x4) = edx; /* 0x20006BEE: mov dword ptr [ecx + 4], edx */ 6488 edx = MEM32(esi + 0x4); /* 0x20006BF1: mov edx, dword ptr [esi + 4] */ 6489 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006BF4: cmp eax, dword ptr [edx + 4] */ 6490 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6492 _flag_k = FK_CMP; 6493 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BFE; /* 0x20006BF7: jne 0x20006bfe */ 6494 L_20006BF9: 6495 MEM32(edx + 0x4) = ecx; /* 0x20006BF9: mov dword ptr [edx + 4], ecx */ 6496 goto L_20006C0D; /* 0x20006BFC: jmp 0x20006c0d */ 6497 L_20006BFE: 6498 edx = MEM32(eax + 0x4); /* 0x20006BFE: mov edx, dword ptr [eax + 4] */ 6499 /* cmp eax, MEM32(edx + 0x8) */ /* 0x20006C01: cmp eax, dword ptr [edx + 8] */ 6500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 6501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6502 _flag_k = FK_CMP; 6503 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C0B; /* 0x20006C04: jne 0x20006c0b */ 6504 L_20006C06: 6505 MEM32(edx + 0x8) = ecx; /* 0x20006C06: mov dword ptr [edx + 8], ecx */ 6506 goto L_20006C0D; /* 0x20006C09: jmp 0x20006c0d */ 6507 L_20006C0B: 6508 MEM32(edx) = ecx; /* 0x20006C0B: mov dword ptr [edx], ecx */ 6509 L_20006C0D: 6510 MEM32(ecx + 0x8) = eax; /* 0x20006C0D: mov dword ptr [ecx + 8], eax */ 6511 MEM32(eax + 0x4) = ecx; /* 0x20006C10: mov dword ptr [eax + 4], ecx */ 6512 L_20006C13: 6513 ecx = MEM32(eax + 0x4); /* 0x20006C13: mov ecx, dword ptr [eax + 4] */ 6514 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C16: mov byte ptr [ecx + 0x14], bl */ 6515 edx = MEM32(eax + 0x4); /* 0x20006C19: mov edx, dword ptr [eax + 4] */ 6516 ecx = MEM32(edx + 0x4); /* 0x20006C1C: mov ecx, dword ptr [edx + 4] */ 6517 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006C1F: mov byte ptr [ecx + 0x14], 0 */ 6518 edx = MEM32(eax + 0x4); /* 0x20006C23: mov edx, dword ptr [eax + 4] */ 6519 ecx = MEM32(edx + 0x4); /* 0x20006C26: mov ecx, dword ptr [edx + 4] */ 6520 edx = MEM32(ecx + 0x8); /* 0x20006C29: mov edx, dword ptr [ecx + 8] */ 6521 edi = MEM32(edx); /* 0x20006C2C: mov edi, dword ptr [edx] */ 6522 MEM32(ecx + 0x8) = edi; /* 0x20006C2E: mov dword ptr [ecx + 8], edi */ 6523 edi = MEM32(edx); /* 0x20006C31: mov edi, dword ptr [edx] */ 6524 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006C33: cmp edi, dword ptr [esi + 8] */ 6525 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6527 _flag_k = FK_CMP; 6528 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006C3B; /* 0x20006C36: je 0x20006c3b */ 6529 L_20006C38: 6530 MEM32(edi + 0x4) = ecx; /* 0x20006C38: mov dword ptr [edi + 4], ecx */ 6531 L_20006C3B: 6532 edi = MEM32(ecx + 0x4); /* 0x20006C3B: mov edi, dword ptr [ecx + 4] */ 6533 MEM32(edx + 0x4) = edi; /* 0x20006C3E: mov dword ptr [edx + 4], edi */ 6534 edi = MEM32(esi + 0x4); /* 0x20006C41: mov edi, dword ptr [esi + 4] */ 6535 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006C44: cmp ecx, dword ptr [edi + 4] */ 6536 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6538 _flag_k = FK_CMP; 6539 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C4E; /* 0x20006C47: jne 0x20006c4e */ 6540 L_20006C49: 6541 MEM32(edi + 0x4) = edx; /* 0x20006C49: mov dword ptr [edi + 4], edx */ 6542 goto L_20006C5C; /* 0x20006C4C: jmp 0x20006c5c */ 6543 L_20006C4E: 6544 edi = MEM32(ecx + 0x4); /* 0x20006C4E: mov edi, dword ptr [ecx + 4] */ 6545 /* cmp ecx, MEM32(edi) */ /* 0x20006C51: cmp ecx, dword ptr [edi] */ 6546 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 6547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6548 _flag_k = FK_CMP; 6549 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C59; /* 0x20006C53: jne 0x20006c59 */ 6550 L_20006C55: 6551 MEM32(edi) = edx; /* 0x20006C55: mov dword ptr [edi], edx */ 6552 goto L_20006C5C; /* 0x20006C57: jmp 0x20006c5c */ 6553 L_20006C59: 6554 MEM32(edi + 0x8) = edx; /* 0x20006C59: mov dword ptr [edi + 8], edx */ 6555 L_20006C5C: 6556 MEM32(edx) = ecx; /* 0x20006C5C: mov dword ptr [edx], ecx */ 6557 L_20006C5E: 6558 MEM32(ecx + 0x4) = edx; /* 0x20006C5E: mov dword ptr [ecx + 4], edx */ 6559 L_20006C61: 6560 ecx = MEM32(esi + 0x4); /* 0x20006C61: mov ecx, dword ptr [esi + 4] */ 6561 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x20006C64: cmp eax, dword ptr [ecx + 4] */ 6562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6564 _flag_k = FK_CMP; 6565 RECOMP_BACKEDGE(); 6566 if (CMP_NE(_flag_a, _flag_b)) goto L_20006AED; /* 0x20006C67: jne 0x20006aed */ 6567 L_20006C6D: 6568 edx = MEM32(esi + 0x4); /* 0x20006C6D: mov edx, dword ptr [esi + 4] */ 6569 eax = MEM32(edx + 0x4); /* 0x20006C70: mov eax, dword ptr [edx + 4] */ 6570 ecx = MEM32(ebp + (-0x4)); /* 0x20006C73: mov ecx, dword ptr [ebp - 4] */ 6571 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C76: mov byte ptr [eax + 0x14], bl */ 6572 eax = MEM32(ebp + 0x8); /* 0x20006C79: mov eax, dword ptr [ebp + 8] */ 6573 edi = POP32_VAL(esp); /* 0x20006C7C: pop edi */ 6574 esi = POP32_VAL(esp); /* 0x20006C7D: pop esi */ 6575 MEM32(eax) = ecx; /* 0x20006C7E: mov dword ptr [eax], ecx */ 6576 ebx = POP32_VAL(esp); /* 0x20006C80: pop ebx */ 6577 esp = ebp; /* 0x20006C81: mov esp, ebp */ 6578 ebp = POP32_VAL(esp); /* 0x20006C83: pop ebp */ 6579 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20006C84: ret 0x10 */ 6580 RECOMP_REGS_OUT(); 6581 } 6582 6583 void sub_20006B6B(void) { 6584 int _fpu_cmp = 0; 6585 uint32_t _cf = 0; 6586 int _df = 1; 6587 uint32_t _flag_k = FK_NONE; 6588 uint32_t _flag_a = 0, _flag_b = 0; 6589 uint32_t _itail_tgt = 0; 6590 RECOMP_REGS_LOCALS 6591 RECOMP_ENTER(0x20006B6Bu); 6592 6593 goto L_20006B6B; 6594 L_20006AED: 6595 ecx = MEM32(eax + 0x4); /* 0x20006AED: mov ecx, dword ptr [eax + 4] */ 6596 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x20006AF0: mov dl, byte ptr [ecx + 0x14] */ 6597 /* test LO8(edx), LO8(edx) */ /* 0x20006AF3: test dl, dl */ 6598 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6599 _cf = 0; 6600 _flag_k = FK_NARROW(FK_TEST, 24); 6601 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006C6D; /* 0x20006AF5: jne 0x20006c6d */ 6602 L_20006AFB: 6603 edi = MEM32(ecx + 0x4); /* 0x20006AFB: mov edi, dword ptr [ecx + 4] */ 6604 edx = MEM32(edi); /* 0x20006AFE: mov edx, dword ptr [edi] */ 6605 /* cmp ecx, edx */ /* 0x20006B00: cmp ecx, edx */ 6606 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6608 _flag_k = FK_CMP; 6609 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BC9; /* 0x20006B02: jne 0x20006bc9 */ 6610 L_20006B08: 6611 edx = MEM32(edi + 0x8); /* 0x20006B08: mov edx, dword ptr [edi + 8] */ 6612 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006B0B: cmp byte ptr [edx + 0x14], 0 */ 6613 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6615 _flag_k = FK_NARROW(FK_CMP, 24); 6616 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B2C; /* 0x20006B0F: jne 0x20006b2c */ 6617 L_20006B11: 6618 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B11: mov byte ptr [ecx + 0x14], bl */ 6619 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B14: mov byte ptr [edx + 0x14], bl */ 6620 ecx = MEM32(eax + 0x4); /* 0x20006B17: mov ecx, dword ptr [eax + 4] */ 6621 edx = MEM32(ecx + 0x4); /* 0x20006B1A: mov edx, dword ptr [ecx + 4] */ 6622 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x20006B1D: mov byte ptr [edx + 0x14], 0 */ 6623 eax = MEM32(eax + 0x4); /* 0x20006B21: mov eax, dword ptr [eax + 4] */ 6624 eax = MEM32(eax + 0x4); /* 0x20006B24: mov eax, dword ptr [eax + 4] */ 6625 goto L_20006C61; /* 0x20006B27: jmp 0x20006c61 */ 6626 L_20006B2C: 6627 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x20006B2C: cmp eax, dword ptr [ecx + 8] */ 6628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 6629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6630 _flag_k = FK_CMP; 6631 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B6B; /* 0x20006B2F: jne 0x20006b6b */ 6632 L_20006B31: 6633 eax = ecx; /* 0x20006B31: mov eax, ecx */ 6634 ecx = MEM32(eax + 0x8); /* 0x20006B33: mov ecx, dword ptr [eax + 8] */ 6635 edx = MEM32(ecx); /* 0x20006B36: mov edx, dword ptr [ecx] */ 6636 MEM32(eax + 0x8) = edx; /* 0x20006B38: mov dword ptr [eax + 8], edx */ 6637 edx = MEM32(ecx); /* 0x20006B3B: mov edx, dword ptr [ecx] */ 6638 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006B3D: cmp edx, dword ptr [esi + 8] */ 6639 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6641 _flag_k = FK_CMP; 6642 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B45; /* 0x20006B40: je 0x20006b45 */ 6643 L_20006B42: 6644 MEM32(edx + 0x4) = eax; /* 0x20006B42: mov dword ptr [edx + 4], eax */ 6645 L_20006B45: 6646 edx = MEM32(eax + 0x4); /* 0x20006B45: mov edx, dword ptr [eax + 4] */ 6647 MEM32(ecx + 0x4) = edx; /* 0x20006B48: mov dword ptr [ecx + 4], edx */ 6648 edx = MEM32(esi + 0x4); /* 0x20006B4B: mov edx, dword ptr [esi + 4] */ 6649 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006B4E: cmp eax, dword ptr [edx + 4] */ 6650 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6652 _flag_k = FK_CMP; 6653 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B58; /* 0x20006B51: jne 0x20006b58 */ 6654 L_20006B53: 6655 MEM32(edx + 0x4) = ecx; /* 0x20006B53: mov dword ptr [edx + 4], ecx */ 6656 goto L_20006B66; /* 0x20006B56: jmp 0x20006b66 */ 6657 L_20006B58: 6658 edx = MEM32(eax + 0x4); /* 0x20006B58: mov edx, dword ptr [eax + 4] */ 6659 /* cmp eax, MEM32(edx) */ /* 0x20006B5B: cmp eax, dword ptr [edx] */ 6660 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 6661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6662 _flag_k = FK_CMP; 6663 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B63; /* 0x20006B5D: jne 0x20006b63 */ 6664 L_20006B5F: 6665 MEM32(edx) = ecx; /* 0x20006B5F: mov dword ptr [edx], ecx */ 6666 goto L_20006B66; /* 0x20006B61: jmp 0x20006b66 */ 6667 L_20006B63: 6668 MEM32(edx + 0x8) = ecx; /* 0x20006B63: mov dword ptr [edx + 8], ecx */ 6669 L_20006B66: 6670 MEM32(ecx) = eax; /* 0x20006B66: mov dword ptr [ecx], eax */ 6671 MEM32(eax + 0x4) = ecx; /* 0x20006B68: mov dword ptr [eax + 4], ecx */ 6672 L_20006B6B: 6673 ecx = MEM32(eax + 0x4); /* 0x20006B6B: mov ecx, dword ptr [eax + 4] */ 6674 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B6E: mov byte ptr [ecx + 0x14], bl */ 6675 edx = MEM32(eax + 0x4); /* 0x20006B71: mov edx, dword ptr [eax + 4] */ 6676 ecx = MEM32(edx + 0x4); /* 0x20006B74: mov ecx, dword ptr [edx + 4] */ 6677 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006B77: mov byte ptr [ecx + 0x14], 0 */ 6678 edx = MEM32(eax + 0x4); /* 0x20006B7B: mov edx, dword ptr [eax + 4] */ 6679 ecx = MEM32(edx + 0x4); /* 0x20006B7E: mov ecx, dword ptr [edx + 4] */ 6680 edx = MEM32(ecx); /* 0x20006B81: mov edx, dword ptr [ecx] */ 6681 edi = MEM32(edx + 0x8); /* 0x20006B83: mov edi, dword ptr [edx + 8] */ 6682 MEM32(ecx) = edi; /* 0x20006B86: mov dword ptr [ecx], edi */ 6683 edi = MEM32(edx + 0x8); /* 0x20006B88: mov edi, dword ptr [edx + 8] */ 6684 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006B8B: cmp edi, dword ptr [esi + 8] */ 6685 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6687 _flag_k = FK_CMP; 6688 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B93; /* 0x20006B8E: je 0x20006b93 */ 6689 L_20006B90: 6690 MEM32(edi + 0x4) = ecx; /* 0x20006B90: mov dword ptr [edi + 4], ecx */ 6691 L_20006B93: 6692 edi = MEM32(ecx + 0x4); /* 0x20006B93: mov edi, dword ptr [ecx + 4] */ 6693 MEM32(edx + 0x4) = edi; /* 0x20006B96: mov dword ptr [edx + 4], edi */ 6694 edi = MEM32(esi + 0x4); /* 0x20006B99: mov edi, dword ptr [esi + 4] */ 6695 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006B9C: cmp ecx, dword ptr [edi + 4] */ 6696 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6698 _flag_k = FK_CMP; 6699 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BAC; /* 0x20006B9F: jne 0x20006bac */ 6700 L_20006BA1: 6701 MEM32(edi + 0x4) = edx; /* 0x20006BA1: mov dword ptr [edi + 4], edx */ 6702 MEM32(edx + 0x8) = ecx; /* 0x20006BA4: mov dword ptr [edx + 8], ecx */ 6703 goto L_20006C5E; /* 0x20006BA7: jmp 0x20006c5e */ 6704 L_20006BAC: 6705 edi = MEM32(ecx + 0x4); /* 0x20006BAC: mov edi, dword ptr [ecx + 4] */ 6706 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x20006BAF: cmp ecx, dword ptr [edi + 8] */ 6707 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6708 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6709 _flag_k = FK_CMP; 6710 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BBF; /* 0x20006BB2: jne 0x20006bbf */ 6711 L_20006BB4: 6712 MEM32(edi + 0x8) = edx; /* 0x20006BB4: mov dword ptr [edi + 8], edx */ 6713 MEM32(edx + 0x8) = ecx; /* 0x20006BB7: mov dword ptr [edx + 8], ecx */ 6714 goto L_20006C5E; /* 0x20006BBA: jmp 0x20006c5e */ 6715 L_20006BBF: 6716 MEM32(edi) = edx; /* 0x20006BBF: mov dword ptr [edi], edx */ 6717 MEM32(edx + 0x8) = ecx; /* 0x20006BC1: mov dword ptr [edx + 8], ecx */ 6718 goto L_20006C5E; /* 0x20006BC4: jmp 0x20006c5e */ 6719 L_20006BC9: 6720 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006BC9: cmp byte ptr [edx + 0x14], 0 */ 6721 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6723 _flag_k = FK_NARROW(FK_CMP, 24); 6724 RECOMP_BACKEDGE(); 6725 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B11; /* 0x20006BCD: je 0x20006b11 */ 6726 L_20006BD3: 6727 /* cmp eax, MEM32(ecx) */ /* 0x20006BD3: cmp eax, dword ptr [ecx] */ 6728 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 6729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6730 _flag_k = FK_CMP; 6731 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C13; /* 0x20006BD5: jne 0x20006c13 */ 6732 L_20006BD7: 6733 eax = ecx; /* 0x20006BD7: mov eax, ecx */ 6734 ecx = MEM32(eax); /* 0x20006BD9: mov ecx, dword ptr [eax] */ 6735 edx = MEM32(ecx + 0x8); /* 0x20006BDB: mov edx, dword ptr [ecx + 8] */ 6736 MEM32(eax) = edx; /* 0x20006BDE: mov dword ptr [eax], edx */ 6737 edx = MEM32(ecx + 0x8); /* 0x20006BE0: mov edx, dword ptr [ecx + 8] */ 6738 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006BE3: cmp edx, dword ptr [esi + 8] */ 6739 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6741 _flag_k = FK_CMP; 6742 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006BEB; /* 0x20006BE6: je 0x20006beb */ 6743 L_20006BE8: 6744 MEM32(edx + 0x4) = eax; /* 0x20006BE8: mov dword ptr [edx + 4], eax */ 6745 L_20006BEB: 6746 edx = MEM32(eax + 0x4); /* 0x20006BEB: mov edx, dword ptr [eax + 4] */ 6747 MEM32(ecx + 0x4) = edx; /* 0x20006BEE: mov dword ptr [ecx + 4], edx */ 6748 edx = MEM32(esi + 0x4); /* 0x20006BF1: mov edx, dword ptr [esi + 4] */ 6749 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006BF4: cmp eax, dword ptr [edx + 4] */ 6750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6752 _flag_k = FK_CMP; 6753 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BFE; /* 0x20006BF7: jne 0x20006bfe */ 6754 L_20006BF9: 6755 MEM32(edx + 0x4) = ecx; /* 0x20006BF9: mov dword ptr [edx + 4], ecx */ 6756 goto L_20006C0D; /* 0x20006BFC: jmp 0x20006c0d */ 6757 L_20006BFE: 6758 edx = MEM32(eax + 0x4); /* 0x20006BFE: mov edx, dword ptr [eax + 4] */ 6759 /* cmp eax, MEM32(edx + 0x8) */ /* 0x20006C01: cmp eax, dword ptr [edx + 8] */ 6760 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 6761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6762 _flag_k = FK_CMP; 6763 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C0B; /* 0x20006C04: jne 0x20006c0b */ 6764 L_20006C06: 6765 MEM32(edx + 0x8) = ecx; /* 0x20006C06: mov dword ptr [edx + 8], ecx */ 6766 goto L_20006C0D; /* 0x20006C09: jmp 0x20006c0d */ 6767 L_20006C0B: 6768 MEM32(edx) = ecx; /* 0x20006C0B: mov dword ptr [edx], ecx */ 6769 L_20006C0D: 6770 MEM32(ecx + 0x8) = eax; /* 0x20006C0D: mov dword ptr [ecx + 8], eax */ 6771 MEM32(eax + 0x4) = ecx; /* 0x20006C10: mov dword ptr [eax + 4], ecx */ 6772 L_20006C13: 6773 ecx = MEM32(eax + 0x4); /* 0x20006C13: mov ecx, dword ptr [eax + 4] */ 6774 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C16: mov byte ptr [ecx + 0x14], bl */ 6775 edx = MEM32(eax + 0x4); /* 0x20006C19: mov edx, dword ptr [eax + 4] */ 6776 ecx = MEM32(edx + 0x4); /* 0x20006C1C: mov ecx, dword ptr [edx + 4] */ 6777 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006C1F: mov byte ptr [ecx + 0x14], 0 */ 6778 edx = MEM32(eax + 0x4); /* 0x20006C23: mov edx, dword ptr [eax + 4] */ 6779 ecx = MEM32(edx + 0x4); /* 0x20006C26: mov ecx, dword ptr [edx + 4] */ 6780 edx = MEM32(ecx + 0x8); /* 0x20006C29: mov edx, dword ptr [ecx + 8] */ 6781 edi = MEM32(edx); /* 0x20006C2C: mov edi, dword ptr [edx] */ 6782 MEM32(ecx + 0x8) = edi; /* 0x20006C2E: mov dword ptr [ecx + 8], edi */ 6783 edi = MEM32(edx); /* 0x20006C31: mov edi, dword ptr [edx] */ 6784 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006C33: cmp edi, dword ptr [esi + 8] */ 6785 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6787 _flag_k = FK_CMP; 6788 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006C3B; /* 0x20006C36: je 0x20006c3b */ 6789 L_20006C38: 6790 MEM32(edi + 0x4) = ecx; /* 0x20006C38: mov dword ptr [edi + 4], ecx */ 6791 L_20006C3B: 6792 edi = MEM32(ecx + 0x4); /* 0x20006C3B: mov edi, dword ptr [ecx + 4] */ 6793 MEM32(edx + 0x4) = edi; /* 0x20006C3E: mov dword ptr [edx + 4], edi */ 6794 edi = MEM32(esi + 0x4); /* 0x20006C41: mov edi, dword ptr [esi + 4] */ 6795 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006C44: cmp ecx, dword ptr [edi + 4] */ 6796 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6798 _flag_k = FK_CMP; 6799 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C4E; /* 0x20006C47: jne 0x20006c4e */ 6800 L_20006C49: 6801 MEM32(edi + 0x4) = edx; /* 0x20006C49: mov dword ptr [edi + 4], edx */ 6802 goto L_20006C5C; /* 0x20006C4C: jmp 0x20006c5c */ 6803 L_20006C4E: 6804 edi = MEM32(ecx + 0x4); /* 0x20006C4E: mov edi, dword ptr [ecx + 4] */ 6805 /* cmp ecx, MEM32(edi) */ /* 0x20006C51: cmp ecx, dword ptr [edi] */ 6806 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 6807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6808 _flag_k = FK_CMP; 6809 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C59; /* 0x20006C53: jne 0x20006c59 */ 6810 L_20006C55: 6811 MEM32(edi) = edx; /* 0x20006C55: mov dword ptr [edi], edx */ 6812 goto L_20006C5C; /* 0x20006C57: jmp 0x20006c5c */ 6813 L_20006C59: 6814 MEM32(edi + 0x8) = edx; /* 0x20006C59: mov dword ptr [edi + 8], edx */ 6815 L_20006C5C: 6816 MEM32(edx) = ecx; /* 0x20006C5C: mov dword ptr [edx], ecx */ 6817 L_20006C5E: 6818 MEM32(ecx + 0x4) = edx; /* 0x20006C5E: mov dword ptr [ecx + 4], edx */ 6819 L_20006C61: 6820 ecx = MEM32(esi + 0x4); /* 0x20006C61: mov ecx, dword ptr [esi + 4] */ 6821 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x20006C64: cmp eax, dword ptr [ecx + 4] */ 6822 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6824 _flag_k = FK_CMP; 6825 RECOMP_BACKEDGE(); 6826 if (CMP_NE(_flag_a, _flag_b)) goto L_20006AED; /* 0x20006C67: jne 0x20006aed */ 6827 L_20006C6D: 6828 edx = MEM32(esi + 0x4); /* 0x20006C6D: mov edx, dword ptr [esi + 4] */ 6829 eax = MEM32(edx + 0x4); /* 0x20006C70: mov eax, dword ptr [edx + 4] */ 6830 ecx = MEM32(ebp + (-0x4)); /* 0x20006C73: mov ecx, dword ptr [ebp - 4] */ 6831 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C76: mov byte ptr [eax + 0x14], bl */ 6832 eax = MEM32(ebp + 0x8); /* 0x20006C79: mov eax, dword ptr [ebp + 8] */ 6833 edi = POP32_VAL(esp); /* 0x20006C7C: pop edi */ 6834 esi = POP32_VAL(esp); /* 0x20006C7D: pop esi */ 6835 MEM32(eax) = ecx; /* 0x20006C7E: mov dword ptr [eax], ecx */ 6836 ebx = POP32_VAL(esp); /* 0x20006C80: pop ebx */ 6837 esp = ebp; /* 0x20006C81: mov esp, ebp */ 6838 ebp = POP32_VAL(esp); /* 0x20006C83: pop ebp */ 6839 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20006C84: ret 0x10 */ 6840 RECOMP_REGS_OUT(); 6841 } 6842 6843 void sub_20006BC9(void) { 6844 int _fpu_cmp = 0; 6845 uint32_t _cf = 0; 6846 int _df = 1; 6847 uint32_t _flag_k = FK_NONE; 6848 uint32_t _flag_a = 0, _flag_b = 0; 6849 uint32_t _itail_tgt = 0; 6850 RECOMP_REGS_LOCALS 6851 RECOMP_ENTER(0x20006BC9u); 6852 6853 goto L_20006BC9; 6854 L_20006AED: 6855 ecx = MEM32(eax + 0x4); /* 0x20006AED: mov ecx, dword ptr [eax + 4] */ 6856 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x20006AF0: mov dl, byte ptr [ecx + 0x14] */ 6857 /* test LO8(edx), LO8(edx) */ /* 0x20006AF3: test dl, dl */ 6858 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6859 _cf = 0; 6860 _flag_k = FK_NARROW(FK_TEST, 24); 6861 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006C6D; /* 0x20006AF5: jne 0x20006c6d */ 6862 L_20006AFB: 6863 edi = MEM32(ecx + 0x4); /* 0x20006AFB: mov edi, dword ptr [ecx + 4] */ 6864 edx = MEM32(edi); /* 0x20006AFE: mov edx, dword ptr [edi] */ 6865 /* cmp ecx, edx */ /* 0x20006B00: cmp ecx, edx */ 6866 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6868 _flag_k = FK_CMP; 6869 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BC9; /* 0x20006B02: jne 0x20006bc9 */ 6870 L_20006B08: 6871 edx = MEM32(edi + 0x8); /* 0x20006B08: mov edx, dword ptr [edi + 8] */ 6872 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006B0B: cmp byte ptr [edx + 0x14], 0 */ 6873 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6875 _flag_k = FK_NARROW(FK_CMP, 24); 6876 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B2C; /* 0x20006B0F: jne 0x20006b2c */ 6877 L_20006B11: 6878 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B11: mov byte ptr [ecx + 0x14], bl */ 6879 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B14: mov byte ptr [edx + 0x14], bl */ 6880 ecx = MEM32(eax + 0x4); /* 0x20006B17: mov ecx, dword ptr [eax + 4] */ 6881 edx = MEM32(ecx + 0x4); /* 0x20006B1A: mov edx, dword ptr [ecx + 4] */ 6882 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x20006B1D: mov byte ptr [edx + 0x14], 0 */ 6883 eax = MEM32(eax + 0x4); /* 0x20006B21: mov eax, dword ptr [eax + 4] */ 6884 eax = MEM32(eax + 0x4); /* 0x20006B24: mov eax, dword ptr [eax + 4] */ 6885 goto L_20006C61; /* 0x20006B27: jmp 0x20006c61 */ 6886 L_20006B2C: 6887 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x20006B2C: cmp eax, dword ptr [ecx + 8] */ 6888 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 6889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6890 _flag_k = FK_CMP; 6891 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B6B; /* 0x20006B2F: jne 0x20006b6b */ 6892 L_20006B31: 6893 eax = ecx; /* 0x20006B31: mov eax, ecx */ 6894 ecx = MEM32(eax + 0x8); /* 0x20006B33: mov ecx, dword ptr [eax + 8] */ 6895 edx = MEM32(ecx); /* 0x20006B36: mov edx, dword ptr [ecx] */ 6896 MEM32(eax + 0x8) = edx; /* 0x20006B38: mov dword ptr [eax + 8], edx */ 6897 edx = MEM32(ecx); /* 0x20006B3B: mov edx, dword ptr [ecx] */ 6898 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006B3D: cmp edx, dword ptr [esi + 8] */ 6899 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6901 _flag_k = FK_CMP; 6902 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B45; /* 0x20006B40: je 0x20006b45 */ 6903 L_20006B42: 6904 MEM32(edx + 0x4) = eax; /* 0x20006B42: mov dword ptr [edx + 4], eax */ 6905 L_20006B45: 6906 edx = MEM32(eax + 0x4); /* 0x20006B45: mov edx, dword ptr [eax + 4] */ 6907 MEM32(ecx + 0x4) = edx; /* 0x20006B48: mov dword ptr [ecx + 4], edx */ 6908 edx = MEM32(esi + 0x4); /* 0x20006B4B: mov edx, dword ptr [esi + 4] */ 6909 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006B4E: cmp eax, dword ptr [edx + 4] */ 6910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6912 _flag_k = FK_CMP; 6913 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B58; /* 0x20006B51: jne 0x20006b58 */ 6914 L_20006B53: 6915 MEM32(edx + 0x4) = ecx; /* 0x20006B53: mov dword ptr [edx + 4], ecx */ 6916 goto L_20006B66; /* 0x20006B56: jmp 0x20006b66 */ 6917 L_20006B58: 6918 edx = MEM32(eax + 0x4); /* 0x20006B58: mov edx, dword ptr [eax + 4] */ 6919 /* cmp eax, MEM32(edx) */ /* 0x20006B5B: cmp eax, dword ptr [edx] */ 6920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 6921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6922 _flag_k = FK_CMP; 6923 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B63; /* 0x20006B5D: jne 0x20006b63 */ 6924 L_20006B5F: 6925 MEM32(edx) = ecx; /* 0x20006B5F: mov dword ptr [edx], ecx */ 6926 goto L_20006B66; /* 0x20006B61: jmp 0x20006b66 */ 6927 L_20006B63: 6928 MEM32(edx + 0x8) = ecx; /* 0x20006B63: mov dword ptr [edx + 8], ecx */ 6929 L_20006B66: 6930 MEM32(ecx) = eax; /* 0x20006B66: mov dword ptr [ecx], eax */ 6931 MEM32(eax + 0x4) = ecx; /* 0x20006B68: mov dword ptr [eax + 4], ecx */ 6932 L_20006B6B: 6933 ecx = MEM32(eax + 0x4); /* 0x20006B6B: mov ecx, dword ptr [eax + 4] */ 6934 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B6E: mov byte ptr [ecx + 0x14], bl */ 6935 edx = MEM32(eax + 0x4); /* 0x20006B71: mov edx, dword ptr [eax + 4] */ 6936 ecx = MEM32(edx + 0x4); /* 0x20006B74: mov ecx, dword ptr [edx + 4] */ 6937 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006B77: mov byte ptr [ecx + 0x14], 0 */ 6938 edx = MEM32(eax + 0x4); /* 0x20006B7B: mov edx, dword ptr [eax + 4] */ 6939 ecx = MEM32(edx + 0x4); /* 0x20006B7E: mov ecx, dword ptr [edx + 4] */ 6940 edx = MEM32(ecx); /* 0x20006B81: mov edx, dword ptr [ecx] */ 6941 edi = MEM32(edx + 0x8); /* 0x20006B83: mov edi, dword ptr [edx + 8] */ 6942 MEM32(ecx) = edi; /* 0x20006B86: mov dword ptr [ecx], edi */ 6943 edi = MEM32(edx + 0x8); /* 0x20006B88: mov edi, dword ptr [edx + 8] */ 6944 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006B8B: cmp edi, dword ptr [esi + 8] */ 6945 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6947 _flag_k = FK_CMP; 6948 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B93; /* 0x20006B8E: je 0x20006b93 */ 6949 L_20006B90: 6950 MEM32(edi + 0x4) = ecx; /* 0x20006B90: mov dword ptr [edi + 4], ecx */ 6951 L_20006B93: 6952 edi = MEM32(ecx + 0x4); /* 0x20006B93: mov edi, dword ptr [ecx + 4] */ 6953 MEM32(edx + 0x4) = edi; /* 0x20006B96: mov dword ptr [edx + 4], edi */ 6954 edi = MEM32(esi + 0x4); /* 0x20006B99: mov edi, dword ptr [esi + 4] */ 6955 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006B9C: cmp ecx, dword ptr [edi + 4] */ 6956 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6958 _flag_k = FK_CMP; 6959 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BAC; /* 0x20006B9F: jne 0x20006bac */ 6960 L_20006BA1: 6961 MEM32(edi + 0x4) = edx; /* 0x20006BA1: mov dword ptr [edi + 4], edx */ 6962 MEM32(edx + 0x8) = ecx; /* 0x20006BA4: mov dword ptr [edx + 8], ecx */ 6963 goto L_20006C5E; /* 0x20006BA7: jmp 0x20006c5e */ 6964 L_20006BAC: 6965 edi = MEM32(ecx + 0x4); /* 0x20006BAC: mov edi, dword ptr [ecx + 4] */ 6966 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x20006BAF: cmp ecx, dword ptr [edi + 8] */ 6967 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6969 _flag_k = FK_CMP; 6970 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BBF; /* 0x20006BB2: jne 0x20006bbf */ 6971 L_20006BB4: 6972 MEM32(edi + 0x8) = edx; /* 0x20006BB4: mov dword ptr [edi + 8], edx */ 6973 MEM32(edx + 0x8) = ecx; /* 0x20006BB7: mov dword ptr [edx + 8], ecx */ 6974 goto L_20006C5E; /* 0x20006BBA: jmp 0x20006c5e */ 6975 L_20006BBF: 6976 MEM32(edi) = edx; /* 0x20006BBF: mov dword ptr [edi], edx */ 6977 MEM32(edx + 0x8) = ecx; /* 0x20006BC1: mov dword ptr [edx + 8], ecx */ 6978 goto L_20006C5E; /* 0x20006BC4: jmp 0x20006c5e */ 6979 L_20006BC9: 6980 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006BC9: cmp byte ptr [edx + 0x14], 0 */ 6981 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6983 _flag_k = FK_NARROW(FK_CMP, 24); 6984 RECOMP_BACKEDGE(); 6985 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B11; /* 0x20006BCD: je 0x20006b11 */ 6986 L_20006BD3: 6987 /* cmp eax, MEM32(ecx) */ /* 0x20006BD3: cmp eax, dword ptr [ecx] */ 6988 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 6989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6990 _flag_k = FK_CMP; 6991 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C13; /* 0x20006BD5: jne 0x20006c13 */ 6992 L_20006BD7: 6993 eax = ecx; /* 0x20006BD7: mov eax, ecx */ 6994 ecx = MEM32(eax); /* 0x20006BD9: mov ecx, dword ptr [eax] */ 6995 edx = MEM32(ecx + 0x8); /* 0x20006BDB: mov edx, dword ptr [ecx + 8] */ 6996 MEM32(eax) = edx; /* 0x20006BDE: mov dword ptr [eax], edx */ 6997 edx = MEM32(ecx + 0x8); /* 0x20006BE0: mov edx, dword ptr [ecx + 8] */ 6998 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006BE3: cmp edx, dword ptr [esi + 8] */ 6999 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7001 _flag_k = FK_CMP; 7002 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006BEB; /* 0x20006BE6: je 0x20006beb */ 7003 L_20006BE8: 7004 MEM32(edx + 0x4) = eax; /* 0x20006BE8: mov dword ptr [edx + 4], eax */ 7005 L_20006BEB: 7006 edx = MEM32(eax + 0x4); /* 0x20006BEB: mov edx, dword ptr [eax + 4] */ 7007 MEM32(ecx + 0x4) = edx; /* 0x20006BEE: mov dword ptr [ecx + 4], edx */ 7008 edx = MEM32(esi + 0x4); /* 0x20006BF1: mov edx, dword ptr [esi + 4] */ 7009 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006BF4: cmp eax, dword ptr [edx + 4] */ 7010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7012 _flag_k = FK_CMP; 7013 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BFE; /* 0x20006BF7: jne 0x20006bfe */ 7014 L_20006BF9: 7015 MEM32(edx + 0x4) = ecx; /* 0x20006BF9: mov dword ptr [edx + 4], ecx */ 7016 goto L_20006C0D; /* 0x20006BFC: jmp 0x20006c0d */ 7017 L_20006BFE: 7018 edx = MEM32(eax + 0x4); /* 0x20006BFE: mov edx, dword ptr [eax + 4] */ 7019 /* cmp eax, MEM32(edx + 0x8) */ /* 0x20006C01: cmp eax, dword ptr [edx + 8] */ 7020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 7021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7022 _flag_k = FK_CMP; 7023 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C0B; /* 0x20006C04: jne 0x20006c0b */ 7024 L_20006C06: 7025 MEM32(edx + 0x8) = ecx; /* 0x20006C06: mov dword ptr [edx + 8], ecx */ 7026 goto L_20006C0D; /* 0x20006C09: jmp 0x20006c0d */ 7027 L_20006C0B: 7028 MEM32(edx) = ecx; /* 0x20006C0B: mov dword ptr [edx], ecx */ 7029 L_20006C0D: 7030 MEM32(ecx + 0x8) = eax; /* 0x20006C0D: mov dword ptr [ecx + 8], eax */ 7031 MEM32(eax + 0x4) = ecx; /* 0x20006C10: mov dword ptr [eax + 4], ecx */ 7032 L_20006C13: 7033 ecx = MEM32(eax + 0x4); /* 0x20006C13: mov ecx, dword ptr [eax + 4] */ 7034 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C16: mov byte ptr [ecx + 0x14], bl */ 7035 edx = MEM32(eax + 0x4); /* 0x20006C19: mov edx, dword ptr [eax + 4] */ 7036 ecx = MEM32(edx + 0x4); /* 0x20006C1C: mov ecx, dword ptr [edx + 4] */ 7037 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006C1F: mov byte ptr [ecx + 0x14], 0 */ 7038 edx = MEM32(eax + 0x4); /* 0x20006C23: mov edx, dword ptr [eax + 4] */ 7039 ecx = MEM32(edx + 0x4); /* 0x20006C26: mov ecx, dword ptr [edx + 4] */ 7040 edx = MEM32(ecx + 0x8); /* 0x20006C29: mov edx, dword ptr [ecx + 8] */ 7041 edi = MEM32(edx); /* 0x20006C2C: mov edi, dword ptr [edx] */ 7042 MEM32(ecx + 0x8) = edi; /* 0x20006C2E: mov dword ptr [ecx + 8], edi */ 7043 edi = MEM32(edx); /* 0x20006C31: mov edi, dword ptr [edx] */ 7044 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006C33: cmp edi, dword ptr [esi + 8] */ 7045 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7047 _flag_k = FK_CMP; 7048 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006C3B; /* 0x20006C36: je 0x20006c3b */ 7049 L_20006C38: 7050 MEM32(edi + 0x4) = ecx; /* 0x20006C38: mov dword ptr [edi + 4], ecx */ 7051 L_20006C3B: 7052 edi = MEM32(ecx + 0x4); /* 0x20006C3B: mov edi, dword ptr [ecx + 4] */ 7053 MEM32(edx + 0x4) = edi; /* 0x20006C3E: mov dword ptr [edx + 4], edi */ 7054 edi = MEM32(esi + 0x4); /* 0x20006C41: mov edi, dword ptr [esi + 4] */ 7055 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006C44: cmp ecx, dword ptr [edi + 4] */ 7056 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7058 _flag_k = FK_CMP; 7059 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C4E; /* 0x20006C47: jne 0x20006c4e */ 7060 L_20006C49: 7061 MEM32(edi + 0x4) = edx; /* 0x20006C49: mov dword ptr [edi + 4], edx */ 7062 goto L_20006C5C; /* 0x20006C4C: jmp 0x20006c5c */ 7063 L_20006C4E: 7064 edi = MEM32(ecx + 0x4); /* 0x20006C4E: mov edi, dword ptr [ecx + 4] */ 7065 /* cmp ecx, MEM32(edi) */ /* 0x20006C51: cmp ecx, dword ptr [edi] */ 7066 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 7067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7068 _flag_k = FK_CMP; 7069 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C59; /* 0x20006C53: jne 0x20006c59 */ 7070 L_20006C55: 7071 MEM32(edi) = edx; /* 0x20006C55: mov dword ptr [edi], edx */ 7072 goto L_20006C5C; /* 0x20006C57: jmp 0x20006c5c */ 7073 L_20006C59: 7074 MEM32(edi + 0x8) = edx; /* 0x20006C59: mov dword ptr [edi + 8], edx */ 7075 L_20006C5C: 7076 MEM32(edx) = ecx; /* 0x20006C5C: mov dword ptr [edx], ecx */ 7077 L_20006C5E: 7078 MEM32(ecx + 0x4) = edx; /* 0x20006C5E: mov dword ptr [ecx + 4], edx */ 7079 L_20006C61: 7080 ecx = MEM32(esi + 0x4); /* 0x20006C61: mov ecx, dword ptr [esi + 4] */ 7081 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x20006C64: cmp eax, dword ptr [ecx + 4] */ 7082 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7084 _flag_k = FK_CMP; 7085 RECOMP_BACKEDGE(); 7086 if (CMP_NE(_flag_a, _flag_b)) goto L_20006AED; /* 0x20006C67: jne 0x20006aed */ 7087 L_20006C6D: 7088 edx = MEM32(esi + 0x4); /* 0x20006C6D: mov edx, dword ptr [esi + 4] */ 7089 eax = MEM32(edx + 0x4); /* 0x20006C70: mov eax, dword ptr [edx + 4] */ 7090 ecx = MEM32(ebp + (-0x4)); /* 0x20006C73: mov ecx, dword ptr [ebp - 4] */ 7091 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C76: mov byte ptr [eax + 0x14], bl */ 7092 eax = MEM32(ebp + 0x8); /* 0x20006C79: mov eax, dword ptr [ebp + 8] */ 7093 edi = POP32_VAL(esp); /* 0x20006C7C: pop edi */ 7094 esi = POP32_VAL(esp); /* 0x20006C7D: pop esi */ 7095 MEM32(eax) = ecx; /* 0x20006C7E: mov dword ptr [eax], ecx */ 7096 ebx = POP32_VAL(esp); /* 0x20006C80: pop ebx */ 7097 esp = ebp; /* 0x20006C81: mov esp, ebp */ 7098 ebp = POP32_VAL(esp); /* 0x20006C83: pop ebp */ 7099 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20006C84: ret 0x10 */ 7100 RECOMP_REGS_OUT(); 7101 } 7102 7103 void sub_20006C0D(void) { 7104 int _fpu_cmp = 0; 7105 uint32_t _cf = 0; 7106 int _df = 1; 7107 uint32_t _flag_k = FK_NONE; 7108 uint32_t _flag_a = 0, _flag_b = 0; 7109 uint32_t _itail_tgt = 0; 7110 RECOMP_REGS_LOCALS 7111 RECOMP_ENTER(0x20006C0Du); 7112 7113 goto L_20006C0D; 7114 L_20006AED: 7115 ecx = MEM32(eax + 0x4); /* 0x20006AED: mov ecx, dword ptr [eax + 4] */ 7116 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x20006AF0: mov dl, byte ptr [ecx + 0x14] */ 7117 /* test LO8(edx), LO8(edx) */ /* 0x20006AF3: test dl, dl */ 7118 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7119 _cf = 0; 7120 _flag_k = FK_NARROW(FK_TEST, 24); 7121 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006C6D; /* 0x20006AF5: jne 0x20006c6d */ 7122 L_20006AFB: 7123 edi = MEM32(ecx + 0x4); /* 0x20006AFB: mov edi, dword ptr [ecx + 4] */ 7124 edx = MEM32(edi); /* 0x20006AFE: mov edx, dword ptr [edi] */ 7125 /* cmp ecx, edx */ /* 0x20006B00: cmp ecx, edx */ 7126 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7128 _flag_k = FK_CMP; 7129 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BC9; /* 0x20006B02: jne 0x20006bc9 */ 7130 L_20006B08: 7131 edx = MEM32(edi + 0x8); /* 0x20006B08: mov edx, dword ptr [edi + 8] */ 7132 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006B0B: cmp byte ptr [edx + 0x14], 0 */ 7133 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7135 _flag_k = FK_NARROW(FK_CMP, 24); 7136 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B2C; /* 0x20006B0F: jne 0x20006b2c */ 7137 L_20006B11: 7138 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B11: mov byte ptr [ecx + 0x14], bl */ 7139 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B14: mov byte ptr [edx + 0x14], bl */ 7140 ecx = MEM32(eax + 0x4); /* 0x20006B17: mov ecx, dword ptr [eax + 4] */ 7141 edx = MEM32(ecx + 0x4); /* 0x20006B1A: mov edx, dword ptr [ecx + 4] */ 7142 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x20006B1D: mov byte ptr [edx + 0x14], 0 */ 7143 eax = MEM32(eax + 0x4); /* 0x20006B21: mov eax, dword ptr [eax + 4] */ 7144 eax = MEM32(eax + 0x4); /* 0x20006B24: mov eax, dword ptr [eax + 4] */ 7145 goto L_20006C61; /* 0x20006B27: jmp 0x20006c61 */ 7146 L_20006B2C: 7147 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x20006B2C: cmp eax, dword ptr [ecx + 8] */ 7148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 7149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7150 _flag_k = FK_CMP; 7151 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B6B; /* 0x20006B2F: jne 0x20006b6b */ 7152 L_20006B31: 7153 eax = ecx; /* 0x20006B31: mov eax, ecx */ 7154 ecx = MEM32(eax + 0x8); /* 0x20006B33: mov ecx, dword ptr [eax + 8] */ 7155 edx = MEM32(ecx); /* 0x20006B36: mov edx, dword ptr [ecx] */ 7156 MEM32(eax + 0x8) = edx; /* 0x20006B38: mov dword ptr [eax + 8], edx */ 7157 edx = MEM32(ecx); /* 0x20006B3B: mov edx, dword ptr [ecx] */ 7158 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006B3D: cmp edx, dword ptr [esi + 8] */ 7159 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7160 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7161 _flag_k = FK_CMP; 7162 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B45; /* 0x20006B40: je 0x20006b45 */ 7163 L_20006B42: 7164 MEM32(edx + 0x4) = eax; /* 0x20006B42: mov dword ptr [edx + 4], eax */ 7165 L_20006B45: 7166 edx = MEM32(eax + 0x4); /* 0x20006B45: mov edx, dword ptr [eax + 4] */ 7167 MEM32(ecx + 0x4) = edx; /* 0x20006B48: mov dword ptr [ecx + 4], edx */ 7168 edx = MEM32(esi + 0x4); /* 0x20006B4B: mov edx, dword ptr [esi + 4] */ 7169 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006B4E: cmp eax, dword ptr [edx + 4] */ 7170 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7172 _flag_k = FK_CMP; 7173 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B58; /* 0x20006B51: jne 0x20006b58 */ 7174 L_20006B53: 7175 MEM32(edx + 0x4) = ecx; /* 0x20006B53: mov dword ptr [edx + 4], ecx */ 7176 goto L_20006B66; /* 0x20006B56: jmp 0x20006b66 */ 7177 L_20006B58: 7178 edx = MEM32(eax + 0x4); /* 0x20006B58: mov edx, dword ptr [eax + 4] */ 7179 /* cmp eax, MEM32(edx) */ /* 0x20006B5B: cmp eax, dword ptr [edx] */ 7180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 7181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7182 _flag_k = FK_CMP; 7183 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B63; /* 0x20006B5D: jne 0x20006b63 */ 7184 L_20006B5F: 7185 MEM32(edx) = ecx; /* 0x20006B5F: mov dword ptr [edx], ecx */ 7186 goto L_20006B66; /* 0x20006B61: jmp 0x20006b66 */ 7187 L_20006B63: 7188 MEM32(edx + 0x8) = ecx; /* 0x20006B63: mov dword ptr [edx + 8], ecx */ 7189 L_20006B66: 7190 MEM32(ecx) = eax; /* 0x20006B66: mov dword ptr [ecx], eax */ 7191 MEM32(eax + 0x4) = ecx; /* 0x20006B68: mov dword ptr [eax + 4], ecx */ 7192 L_20006B6B: 7193 ecx = MEM32(eax + 0x4); /* 0x20006B6B: mov ecx, dword ptr [eax + 4] */ 7194 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B6E: mov byte ptr [ecx + 0x14], bl */ 7195 edx = MEM32(eax + 0x4); /* 0x20006B71: mov edx, dword ptr [eax + 4] */ 7196 ecx = MEM32(edx + 0x4); /* 0x20006B74: mov ecx, dword ptr [edx + 4] */ 7197 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006B77: mov byte ptr [ecx + 0x14], 0 */ 7198 edx = MEM32(eax + 0x4); /* 0x20006B7B: mov edx, dword ptr [eax + 4] */ 7199 ecx = MEM32(edx + 0x4); /* 0x20006B7E: mov ecx, dword ptr [edx + 4] */ 7200 edx = MEM32(ecx); /* 0x20006B81: mov edx, dword ptr [ecx] */ 7201 edi = MEM32(edx + 0x8); /* 0x20006B83: mov edi, dword ptr [edx + 8] */ 7202 MEM32(ecx) = edi; /* 0x20006B86: mov dword ptr [ecx], edi */ 7203 edi = MEM32(edx + 0x8); /* 0x20006B88: mov edi, dword ptr [edx + 8] */ 7204 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006B8B: cmp edi, dword ptr [esi + 8] */ 7205 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7207 _flag_k = FK_CMP; 7208 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B93; /* 0x20006B8E: je 0x20006b93 */ 7209 L_20006B90: 7210 MEM32(edi + 0x4) = ecx; /* 0x20006B90: mov dword ptr [edi + 4], ecx */ 7211 L_20006B93: 7212 edi = MEM32(ecx + 0x4); /* 0x20006B93: mov edi, dword ptr [ecx + 4] */ 7213 MEM32(edx + 0x4) = edi; /* 0x20006B96: mov dword ptr [edx + 4], edi */ 7214 edi = MEM32(esi + 0x4); /* 0x20006B99: mov edi, dword ptr [esi + 4] */ 7215 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006B9C: cmp ecx, dword ptr [edi + 4] */ 7216 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7217 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7218 _flag_k = FK_CMP; 7219 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BAC; /* 0x20006B9F: jne 0x20006bac */ 7220 L_20006BA1: 7221 MEM32(edi + 0x4) = edx; /* 0x20006BA1: mov dword ptr [edi + 4], edx */ 7222 MEM32(edx + 0x8) = ecx; /* 0x20006BA4: mov dword ptr [edx + 8], ecx */ 7223 goto L_20006C5E; /* 0x20006BA7: jmp 0x20006c5e */ 7224 L_20006BAC: 7225 edi = MEM32(ecx + 0x4); /* 0x20006BAC: mov edi, dword ptr [ecx + 4] */ 7226 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x20006BAF: cmp ecx, dword ptr [edi + 8] */ 7227 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7229 _flag_k = FK_CMP; 7230 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BBF; /* 0x20006BB2: jne 0x20006bbf */ 7231 L_20006BB4: 7232 MEM32(edi + 0x8) = edx; /* 0x20006BB4: mov dword ptr [edi + 8], edx */ 7233 MEM32(edx + 0x8) = ecx; /* 0x20006BB7: mov dword ptr [edx + 8], ecx */ 7234 goto L_20006C5E; /* 0x20006BBA: jmp 0x20006c5e */ 7235 L_20006BBF: 7236 MEM32(edi) = edx; /* 0x20006BBF: mov dword ptr [edi], edx */ 7237 MEM32(edx + 0x8) = ecx; /* 0x20006BC1: mov dword ptr [edx + 8], ecx */ 7238 goto L_20006C5E; /* 0x20006BC4: jmp 0x20006c5e */ 7239 L_20006BC9: 7240 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006BC9: cmp byte ptr [edx + 0x14], 0 */ 7241 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7243 _flag_k = FK_NARROW(FK_CMP, 24); 7244 RECOMP_BACKEDGE(); 7245 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B11; /* 0x20006BCD: je 0x20006b11 */ 7246 L_20006BD3: 7247 /* cmp eax, MEM32(ecx) */ /* 0x20006BD3: cmp eax, dword ptr [ecx] */ 7248 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 7249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7250 _flag_k = FK_CMP; 7251 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C13; /* 0x20006BD5: jne 0x20006c13 */ 7252 L_20006BD7: 7253 eax = ecx; /* 0x20006BD7: mov eax, ecx */ 7254 ecx = MEM32(eax); /* 0x20006BD9: mov ecx, dword ptr [eax] */ 7255 edx = MEM32(ecx + 0x8); /* 0x20006BDB: mov edx, dword ptr [ecx + 8] */ 7256 MEM32(eax) = edx; /* 0x20006BDE: mov dword ptr [eax], edx */ 7257 edx = MEM32(ecx + 0x8); /* 0x20006BE0: mov edx, dword ptr [ecx + 8] */ 7258 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006BE3: cmp edx, dword ptr [esi + 8] */ 7259 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7261 _flag_k = FK_CMP; 7262 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006BEB; /* 0x20006BE6: je 0x20006beb */ 7263 L_20006BE8: 7264 MEM32(edx + 0x4) = eax; /* 0x20006BE8: mov dword ptr [edx + 4], eax */ 7265 L_20006BEB: 7266 edx = MEM32(eax + 0x4); /* 0x20006BEB: mov edx, dword ptr [eax + 4] */ 7267 MEM32(ecx + 0x4) = edx; /* 0x20006BEE: mov dword ptr [ecx + 4], edx */ 7268 edx = MEM32(esi + 0x4); /* 0x20006BF1: mov edx, dword ptr [esi + 4] */ 7269 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006BF4: cmp eax, dword ptr [edx + 4] */ 7270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7272 _flag_k = FK_CMP; 7273 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BFE; /* 0x20006BF7: jne 0x20006bfe */ 7274 L_20006BF9: 7275 MEM32(edx + 0x4) = ecx; /* 0x20006BF9: mov dword ptr [edx + 4], ecx */ 7276 goto L_20006C0D; /* 0x20006BFC: jmp 0x20006c0d */ 7277 L_20006BFE: 7278 edx = MEM32(eax + 0x4); /* 0x20006BFE: mov edx, dword ptr [eax + 4] */ 7279 /* cmp eax, MEM32(edx + 0x8) */ /* 0x20006C01: cmp eax, dword ptr [edx + 8] */ 7280 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 7281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7282 _flag_k = FK_CMP; 7283 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C0B; /* 0x20006C04: jne 0x20006c0b */ 7284 L_20006C06: 7285 MEM32(edx + 0x8) = ecx; /* 0x20006C06: mov dword ptr [edx + 8], ecx */ 7286 goto L_20006C0D; /* 0x20006C09: jmp 0x20006c0d */ 7287 L_20006C0B: 7288 MEM32(edx) = ecx; /* 0x20006C0B: mov dword ptr [edx], ecx */ 7289 L_20006C0D: 7290 MEM32(ecx + 0x8) = eax; /* 0x20006C0D: mov dword ptr [ecx + 8], eax */ 7291 MEM32(eax + 0x4) = ecx; /* 0x20006C10: mov dword ptr [eax + 4], ecx */ 7292 L_20006C13: 7293 ecx = MEM32(eax + 0x4); /* 0x20006C13: mov ecx, dword ptr [eax + 4] */ 7294 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C16: mov byte ptr [ecx + 0x14], bl */ 7295 edx = MEM32(eax + 0x4); /* 0x20006C19: mov edx, dword ptr [eax + 4] */ 7296 ecx = MEM32(edx + 0x4); /* 0x20006C1C: mov ecx, dword ptr [edx + 4] */ 7297 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006C1F: mov byte ptr [ecx + 0x14], 0 */ 7298 edx = MEM32(eax + 0x4); /* 0x20006C23: mov edx, dword ptr [eax + 4] */ 7299 ecx = MEM32(edx + 0x4); /* 0x20006C26: mov ecx, dword ptr [edx + 4] */ 7300 edx = MEM32(ecx + 0x8); /* 0x20006C29: mov edx, dword ptr [ecx + 8] */ 7301 edi = MEM32(edx); /* 0x20006C2C: mov edi, dword ptr [edx] */ 7302 MEM32(ecx + 0x8) = edi; /* 0x20006C2E: mov dword ptr [ecx + 8], edi */ 7303 edi = MEM32(edx); /* 0x20006C31: mov edi, dword ptr [edx] */ 7304 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006C33: cmp edi, dword ptr [esi + 8] */ 7305 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7307 _flag_k = FK_CMP; 7308 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006C3B; /* 0x20006C36: je 0x20006c3b */ 7309 L_20006C38: 7310 MEM32(edi + 0x4) = ecx; /* 0x20006C38: mov dword ptr [edi + 4], ecx */ 7311 L_20006C3B: 7312 edi = MEM32(ecx + 0x4); /* 0x20006C3B: mov edi, dword ptr [ecx + 4] */ 7313 MEM32(edx + 0x4) = edi; /* 0x20006C3E: mov dword ptr [edx + 4], edi */ 7314 edi = MEM32(esi + 0x4); /* 0x20006C41: mov edi, dword ptr [esi + 4] */ 7315 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006C44: cmp ecx, dword ptr [edi + 4] */ 7316 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7318 _flag_k = FK_CMP; 7319 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C4E; /* 0x20006C47: jne 0x20006c4e */ 7320 L_20006C49: 7321 MEM32(edi + 0x4) = edx; /* 0x20006C49: mov dword ptr [edi + 4], edx */ 7322 goto L_20006C5C; /* 0x20006C4C: jmp 0x20006c5c */ 7323 L_20006C4E: 7324 edi = MEM32(ecx + 0x4); /* 0x20006C4E: mov edi, dword ptr [ecx + 4] */ 7325 /* cmp ecx, MEM32(edi) */ /* 0x20006C51: cmp ecx, dword ptr [edi] */ 7326 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 7327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7328 _flag_k = FK_CMP; 7329 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C59; /* 0x20006C53: jne 0x20006c59 */ 7330 L_20006C55: 7331 MEM32(edi) = edx; /* 0x20006C55: mov dword ptr [edi], edx */ 7332 goto L_20006C5C; /* 0x20006C57: jmp 0x20006c5c */ 7333 L_20006C59: 7334 MEM32(edi + 0x8) = edx; /* 0x20006C59: mov dword ptr [edi + 8], edx */ 7335 L_20006C5C: 7336 MEM32(edx) = ecx; /* 0x20006C5C: mov dword ptr [edx], ecx */ 7337 L_20006C5E: 7338 MEM32(ecx + 0x4) = edx; /* 0x20006C5E: mov dword ptr [ecx + 4], edx */ 7339 L_20006C61: 7340 ecx = MEM32(esi + 0x4); /* 0x20006C61: mov ecx, dword ptr [esi + 4] */ 7341 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x20006C64: cmp eax, dword ptr [ecx + 4] */ 7342 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7344 _flag_k = FK_CMP; 7345 RECOMP_BACKEDGE(); 7346 if (CMP_NE(_flag_a, _flag_b)) goto L_20006AED; /* 0x20006C67: jne 0x20006aed */ 7347 L_20006C6D: 7348 edx = MEM32(esi + 0x4); /* 0x20006C6D: mov edx, dword ptr [esi + 4] */ 7349 eax = MEM32(edx + 0x4); /* 0x20006C70: mov eax, dword ptr [edx + 4] */ 7350 ecx = MEM32(ebp + (-0x4)); /* 0x20006C73: mov ecx, dword ptr [ebp - 4] */ 7351 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C76: mov byte ptr [eax + 0x14], bl */ 7352 eax = MEM32(ebp + 0x8); /* 0x20006C79: mov eax, dword ptr [ebp + 8] */ 7353 edi = POP32_VAL(esp); /* 0x20006C7C: pop edi */ 7354 esi = POP32_VAL(esp); /* 0x20006C7D: pop esi */ 7355 MEM32(eax) = ecx; /* 0x20006C7E: mov dword ptr [eax], ecx */ 7356 ebx = POP32_VAL(esp); /* 0x20006C80: pop ebx */ 7357 esp = ebp; /* 0x20006C81: mov esp, ebp */ 7358 ebp = POP32_VAL(esp); /* 0x20006C83: pop ebp */ 7359 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20006C84: ret 0x10 */ 7360 RECOMP_REGS_OUT(); 7361 } 7362 7363 void sub_20006C13(void) { 7364 int _fpu_cmp = 0; 7365 uint32_t _cf = 0; 7366 int _df = 1; 7367 uint32_t _flag_k = FK_NONE; 7368 uint32_t _flag_a = 0, _flag_b = 0; 7369 uint32_t _itail_tgt = 0; 7370 RECOMP_REGS_LOCALS 7371 RECOMP_ENTER(0x20006C13u); 7372 7373 goto L_20006C13; 7374 L_20006AED: 7375 ecx = MEM32(eax + 0x4); /* 0x20006AED: mov ecx, dword ptr [eax + 4] */ 7376 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x20006AF0: mov dl, byte ptr [ecx + 0x14] */ 7377 /* test LO8(edx), LO8(edx) */ /* 0x20006AF3: test dl, dl */ 7378 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7379 _cf = 0; 7380 _flag_k = FK_NARROW(FK_TEST, 24); 7381 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006C6D; /* 0x20006AF5: jne 0x20006c6d */ 7382 L_20006AFB: 7383 edi = MEM32(ecx + 0x4); /* 0x20006AFB: mov edi, dword ptr [ecx + 4] */ 7384 edx = MEM32(edi); /* 0x20006AFE: mov edx, dword ptr [edi] */ 7385 /* cmp ecx, edx */ /* 0x20006B00: cmp ecx, edx */ 7386 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7388 _flag_k = FK_CMP; 7389 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BC9; /* 0x20006B02: jne 0x20006bc9 */ 7390 L_20006B08: 7391 edx = MEM32(edi + 0x8); /* 0x20006B08: mov edx, dword ptr [edi + 8] */ 7392 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006B0B: cmp byte ptr [edx + 0x14], 0 */ 7393 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7395 _flag_k = FK_NARROW(FK_CMP, 24); 7396 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B2C; /* 0x20006B0F: jne 0x20006b2c */ 7397 L_20006B11: 7398 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B11: mov byte ptr [ecx + 0x14], bl */ 7399 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B14: mov byte ptr [edx + 0x14], bl */ 7400 ecx = MEM32(eax + 0x4); /* 0x20006B17: mov ecx, dword ptr [eax + 4] */ 7401 edx = MEM32(ecx + 0x4); /* 0x20006B1A: mov edx, dword ptr [ecx + 4] */ 7402 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x20006B1D: mov byte ptr [edx + 0x14], 0 */ 7403 eax = MEM32(eax + 0x4); /* 0x20006B21: mov eax, dword ptr [eax + 4] */ 7404 eax = MEM32(eax + 0x4); /* 0x20006B24: mov eax, dword ptr [eax + 4] */ 7405 goto L_20006C61; /* 0x20006B27: jmp 0x20006c61 */ 7406 L_20006B2C: 7407 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x20006B2C: cmp eax, dword ptr [ecx + 8] */ 7408 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 7409 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7410 _flag_k = FK_CMP; 7411 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B6B; /* 0x20006B2F: jne 0x20006b6b */ 7412 L_20006B31: 7413 eax = ecx; /* 0x20006B31: mov eax, ecx */ 7414 ecx = MEM32(eax + 0x8); /* 0x20006B33: mov ecx, dword ptr [eax + 8] */ 7415 edx = MEM32(ecx); /* 0x20006B36: mov edx, dword ptr [ecx] */ 7416 MEM32(eax + 0x8) = edx; /* 0x20006B38: mov dword ptr [eax + 8], edx */ 7417 edx = MEM32(ecx); /* 0x20006B3B: mov edx, dword ptr [ecx] */ 7418 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006B3D: cmp edx, dword ptr [esi + 8] */ 7419 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7421 _flag_k = FK_CMP; 7422 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B45; /* 0x20006B40: je 0x20006b45 */ 7423 L_20006B42: 7424 MEM32(edx + 0x4) = eax; /* 0x20006B42: mov dword ptr [edx + 4], eax */ 7425 L_20006B45: 7426 edx = MEM32(eax + 0x4); /* 0x20006B45: mov edx, dword ptr [eax + 4] */ 7427 MEM32(ecx + 0x4) = edx; /* 0x20006B48: mov dword ptr [ecx + 4], edx */ 7428 edx = MEM32(esi + 0x4); /* 0x20006B4B: mov edx, dword ptr [esi + 4] */ 7429 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006B4E: cmp eax, dword ptr [edx + 4] */ 7430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7432 _flag_k = FK_CMP; 7433 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B58; /* 0x20006B51: jne 0x20006b58 */ 7434 L_20006B53: 7435 MEM32(edx + 0x4) = ecx; /* 0x20006B53: mov dword ptr [edx + 4], ecx */ 7436 goto L_20006B66; /* 0x20006B56: jmp 0x20006b66 */ 7437 L_20006B58: 7438 edx = MEM32(eax + 0x4); /* 0x20006B58: mov edx, dword ptr [eax + 4] */ 7439 /* cmp eax, MEM32(edx) */ /* 0x20006B5B: cmp eax, dword ptr [edx] */ 7440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 7441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7442 _flag_k = FK_CMP; 7443 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B63; /* 0x20006B5D: jne 0x20006b63 */ 7444 L_20006B5F: 7445 MEM32(edx) = ecx; /* 0x20006B5F: mov dword ptr [edx], ecx */ 7446 goto L_20006B66; /* 0x20006B61: jmp 0x20006b66 */ 7447 L_20006B63: 7448 MEM32(edx + 0x8) = ecx; /* 0x20006B63: mov dword ptr [edx + 8], ecx */ 7449 L_20006B66: 7450 MEM32(ecx) = eax; /* 0x20006B66: mov dword ptr [ecx], eax */ 7451 MEM32(eax + 0x4) = ecx; /* 0x20006B68: mov dword ptr [eax + 4], ecx */ 7452 L_20006B6B: 7453 ecx = MEM32(eax + 0x4); /* 0x20006B6B: mov ecx, dword ptr [eax + 4] */ 7454 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B6E: mov byte ptr [ecx + 0x14], bl */ 7455 edx = MEM32(eax + 0x4); /* 0x20006B71: mov edx, dword ptr [eax + 4] */ 7456 ecx = MEM32(edx + 0x4); /* 0x20006B74: mov ecx, dword ptr [edx + 4] */ 7457 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006B77: mov byte ptr [ecx + 0x14], 0 */ 7458 edx = MEM32(eax + 0x4); /* 0x20006B7B: mov edx, dword ptr [eax + 4] */ 7459 ecx = MEM32(edx + 0x4); /* 0x20006B7E: mov ecx, dword ptr [edx + 4] */ 7460 edx = MEM32(ecx); /* 0x20006B81: mov edx, dword ptr [ecx] */ 7461 edi = MEM32(edx + 0x8); /* 0x20006B83: mov edi, dword ptr [edx + 8] */ 7462 MEM32(ecx) = edi; /* 0x20006B86: mov dword ptr [ecx], edi */ 7463 edi = MEM32(edx + 0x8); /* 0x20006B88: mov edi, dword ptr [edx + 8] */ 7464 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006B8B: cmp edi, dword ptr [esi + 8] */ 7465 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7467 _flag_k = FK_CMP; 7468 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B93; /* 0x20006B8E: je 0x20006b93 */ 7469 L_20006B90: 7470 MEM32(edi + 0x4) = ecx; /* 0x20006B90: mov dword ptr [edi + 4], ecx */ 7471 L_20006B93: 7472 edi = MEM32(ecx + 0x4); /* 0x20006B93: mov edi, dword ptr [ecx + 4] */ 7473 MEM32(edx + 0x4) = edi; /* 0x20006B96: mov dword ptr [edx + 4], edi */ 7474 edi = MEM32(esi + 0x4); /* 0x20006B99: mov edi, dword ptr [esi + 4] */ 7475 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006B9C: cmp ecx, dword ptr [edi + 4] */ 7476 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7478 _flag_k = FK_CMP; 7479 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BAC; /* 0x20006B9F: jne 0x20006bac */ 7480 L_20006BA1: 7481 MEM32(edi + 0x4) = edx; /* 0x20006BA1: mov dword ptr [edi + 4], edx */ 7482 MEM32(edx + 0x8) = ecx; /* 0x20006BA4: mov dword ptr [edx + 8], ecx */ 7483 goto L_20006C5E; /* 0x20006BA7: jmp 0x20006c5e */ 7484 L_20006BAC: 7485 edi = MEM32(ecx + 0x4); /* 0x20006BAC: mov edi, dword ptr [ecx + 4] */ 7486 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x20006BAF: cmp ecx, dword ptr [edi + 8] */ 7487 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7489 _flag_k = FK_CMP; 7490 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BBF; /* 0x20006BB2: jne 0x20006bbf */ 7491 L_20006BB4: 7492 MEM32(edi + 0x8) = edx; /* 0x20006BB4: mov dword ptr [edi + 8], edx */ 7493 MEM32(edx + 0x8) = ecx; /* 0x20006BB7: mov dword ptr [edx + 8], ecx */ 7494 goto L_20006C5E; /* 0x20006BBA: jmp 0x20006c5e */ 7495 L_20006BBF: 7496 MEM32(edi) = edx; /* 0x20006BBF: mov dword ptr [edi], edx */ 7497 MEM32(edx + 0x8) = ecx; /* 0x20006BC1: mov dword ptr [edx + 8], ecx */ 7498 goto L_20006C5E; /* 0x20006BC4: jmp 0x20006c5e */ 7499 L_20006BC9: 7500 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006BC9: cmp byte ptr [edx + 0x14], 0 */ 7501 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7503 _flag_k = FK_NARROW(FK_CMP, 24); 7504 RECOMP_BACKEDGE(); 7505 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B11; /* 0x20006BCD: je 0x20006b11 */ 7506 L_20006BD3: 7507 /* cmp eax, MEM32(ecx) */ /* 0x20006BD3: cmp eax, dword ptr [ecx] */ 7508 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 7509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7510 _flag_k = FK_CMP; 7511 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C13; /* 0x20006BD5: jne 0x20006c13 */ 7512 L_20006BD7: 7513 eax = ecx; /* 0x20006BD7: mov eax, ecx */ 7514 ecx = MEM32(eax); /* 0x20006BD9: mov ecx, dword ptr [eax] */ 7515 edx = MEM32(ecx + 0x8); /* 0x20006BDB: mov edx, dword ptr [ecx + 8] */ 7516 MEM32(eax) = edx; /* 0x20006BDE: mov dword ptr [eax], edx */ 7517 edx = MEM32(ecx + 0x8); /* 0x20006BE0: mov edx, dword ptr [ecx + 8] */ 7518 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006BE3: cmp edx, dword ptr [esi + 8] */ 7519 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7521 _flag_k = FK_CMP; 7522 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006BEB; /* 0x20006BE6: je 0x20006beb */ 7523 L_20006BE8: 7524 MEM32(edx + 0x4) = eax; /* 0x20006BE8: mov dword ptr [edx + 4], eax */ 7525 L_20006BEB: 7526 edx = MEM32(eax + 0x4); /* 0x20006BEB: mov edx, dword ptr [eax + 4] */ 7527 MEM32(ecx + 0x4) = edx; /* 0x20006BEE: mov dword ptr [ecx + 4], edx */ 7528 edx = MEM32(esi + 0x4); /* 0x20006BF1: mov edx, dword ptr [esi + 4] */ 7529 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006BF4: cmp eax, dword ptr [edx + 4] */ 7530 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7532 _flag_k = FK_CMP; 7533 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BFE; /* 0x20006BF7: jne 0x20006bfe */ 7534 L_20006BF9: 7535 MEM32(edx + 0x4) = ecx; /* 0x20006BF9: mov dword ptr [edx + 4], ecx */ 7536 goto L_20006C0D; /* 0x20006BFC: jmp 0x20006c0d */ 7537 L_20006BFE: 7538 edx = MEM32(eax + 0x4); /* 0x20006BFE: mov edx, dword ptr [eax + 4] */ 7539 /* cmp eax, MEM32(edx + 0x8) */ /* 0x20006C01: cmp eax, dword ptr [edx + 8] */ 7540 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 7541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7542 _flag_k = FK_CMP; 7543 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C0B; /* 0x20006C04: jne 0x20006c0b */ 7544 L_20006C06: 7545 MEM32(edx + 0x8) = ecx; /* 0x20006C06: mov dword ptr [edx + 8], ecx */ 7546 goto L_20006C0D; /* 0x20006C09: jmp 0x20006c0d */ 7547 L_20006C0B: 7548 MEM32(edx) = ecx; /* 0x20006C0B: mov dword ptr [edx], ecx */ 7549 L_20006C0D: 7550 MEM32(ecx + 0x8) = eax; /* 0x20006C0D: mov dword ptr [ecx + 8], eax */ 7551 MEM32(eax + 0x4) = ecx; /* 0x20006C10: mov dword ptr [eax + 4], ecx */ 7552 L_20006C13: 7553 ecx = MEM32(eax + 0x4); /* 0x20006C13: mov ecx, dword ptr [eax + 4] */ 7554 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C16: mov byte ptr [ecx + 0x14], bl */ 7555 edx = MEM32(eax + 0x4); /* 0x20006C19: mov edx, dword ptr [eax + 4] */ 7556 ecx = MEM32(edx + 0x4); /* 0x20006C1C: mov ecx, dword ptr [edx + 4] */ 7557 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006C1F: mov byte ptr [ecx + 0x14], 0 */ 7558 edx = MEM32(eax + 0x4); /* 0x20006C23: mov edx, dword ptr [eax + 4] */ 7559 ecx = MEM32(edx + 0x4); /* 0x20006C26: mov ecx, dword ptr [edx + 4] */ 7560 edx = MEM32(ecx + 0x8); /* 0x20006C29: mov edx, dword ptr [ecx + 8] */ 7561 edi = MEM32(edx); /* 0x20006C2C: mov edi, dword ptr [edx] */ 7562 MEM32(ecx + 0x8) = edi; /* 0x20006C2E: mov dword ptr [ecx + 8], edi */ 7563 edi = MEM32(edx); /* 0x20006C31: mov edi, dword ptr [edx] */ 7564 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006C33: cmp edi, dword ptr [esi + 8] */ 7565 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7567 _flag_k = FK_CMP; 7568 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006C3B; /* 0x20006C36: je 0x20006c3b */ 7569 L_20006C38: 7570 MEM32(edi + 0x4) = ecx; /* 0x20006C38: mov dword ptr [edi + 4], ecx */ 7571 L_20006C3B: 7572 edi = MEM32(ecx + 0x4); /* 0x20006C3B: mov edi, dword ptr [ecx + 4] */ 7573 MEM32(edx + 0x4) = edi; /* 0x20006C3E: mov dword ptr [edx + 4], edi */ 7574 edi = MEM32(esi + 0x4); /* 0x20006C41: mov edi, dword ptr [esi + 4] */ 7575 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006C44: cmp ecx, dword ptr [edi + 4] */ 7576 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7578 _flag_k = FK_CMP; 7579 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C4E; /* 0x20006C47: jne 0x20006c4e */ 7580 L_20006C49: 7581 MEM32(edi + 0x4) = edx; /* 0x20006C49: mov dword ptr [edi + 4], edx */ 7582 goto L_20006C5C; /* 0x20006C4C: jmp 0x20006c5c */ 7583 L_20006C4E: 7584 edi = MEM32(ecx + 0x4); /* 0x20006C4E: mov edi, dword ptr [ecx + 4] */ 7585 /* cmp ecx, MEM32(edi) */ /* 0x20006C51: cmp ecx, dword ptr [edi] */ 7586 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 7587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7588 _flag_k = FK_CMP; 7589 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C59; /* 0x20006C53: jne 0x20006c59 */ 7590 L_20006C55: 7591 MEM32(edi) = edx; /* 0x20006C55: mov dword ptr [edi], edx */ 7592 goto L_20006C5C; /* 0x20006C57: jmp 0x20006c5c */ 7593 L_20006C59: 7594 MEM32(edi + 0x8) = edx; /* 0x20006C59: mov dword ptr [edi + 8], edx */ 7595 L_20006C5C: 7596 MEM32(edx) = ecx; /* 0x20006C5C: mov dword ptr [edx], ecx */ 7597 L_20006C5E: 7598 MEM32(ecx + 0x4) = edx; /* 0x20006C5E: mov dword ptr [ecx + 4], edx */ 7599 L_20006C61: 7600 ecx = MEM32(esi + 0x4); /* 0x20006C61: mov ecx, dword ptr [esi + 4] */ 7601 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x20006C64: cmp eax, dword ptr [ecx + 4] */ 7602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7604 _flag_k = FK_CMP; 7605 RECOMP_BACKEDGE(); 7606 if (CMP_NE(_flag_a, _flag_b)) goto L_20006AED; /* 0x20006C67: jne 0x20006aed */ 7607 L_20006C6D: 7608 edx = MEM32(esi + 0x4); /* 0x20006C6D: mov edx, dword ptr [esi + 4] */ 7609 eax = MEM32(edx + 0x4); /* 0x20006C70: mov eax, dword ptr [edx + 4] */ 7610 ecx = MEM32(ebp + (-0x4)); /* 0x20006C73: mov ecx, dword ptr [ebp - 4] */ 7611 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C76: mov byte ptr [eax + 0x14], bl */ 7612 eax = MEM32(ebp + 0x8); /* 0x20006C79: mov eax, dword ptr [ebp + 8] */ 7613 edi = POP32_VAL(esp); /* 0x20006C7C: pop edi */ 7614 esi = POP32_VAL(esp); /* 0x20006C7D: pop esi */ 7615 MEM32(eax) = ecx; /* 0x20006C7E: mov dword ptr [eax], ecx */ 7616 ebx = POP32_VAL(esp); /* 0x20006C80: pop ebx */ 7617 esp = ebp; /* 0x20006C81: mov esp, ebp */ 7618 ebp = POP32_VAL(esp); /* 0x20006C83: pop ebp */ 7619 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20006C84: ret 0x10 */ 7620 RECOMP_REGS_OUT(); 7621 } 7622 7623 void sub_20006C5C(void) { 7624 int _fpu_cmp = 0; 7625 uint32_t _cf = 0; 7626 int _df = 1; 7627 uint32_t _flag_k = FK_NONE; 7628 uint32_t _flag_a = 0, _flag_b = 0; 7629 uint32_t _itail_tgt = 0; 7630 RECOMP_REGS_LOCALS 7631 RECOMP_ENTER(0x20006C5Cu); 7632 7633 goto L_20006C5C; 7634 L_20006AED: 7635 ecx = MEM32(eax + 0x4); /* 0x20006AED: mov ecx, dword ptr [eax + 4] */ 7636 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x20006AF0: mov dl, byte ptr [ecx + 0x14] */ 7637 /* test LO8(edx), LO8(edx) */ /* 0x20006AF3: test dl, dl */ 7638 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7639 _cf = 0; 7640 _flag_k = FK_NARROW(FK_TEST, 24); 7641 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006C6D; /* 0x20006AF5: jne 0x20006c6d */ 7642 L_20006AFB: 7643 edi = MEM32(ecx + 0x4); /* 0x20006AFB: mov edi, dword ptr [ecx + 4] */ 7644 edx = MEM32(edi); /* 0x20006AFE: mov edx, dword ptr [edi] */ 7645 /* cmp ecx, edx */ /* 0x20006B00: cmp ecx, edx */ 7646 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7648 _flag_k = FK_CMP; 7649 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BC9; /* 0x20006B02: jne 0x20006bc9 */ 7650 L_20006B08: 7651 edx = MEM32(edi + 0x8); /* 0x20006B08: mov edx, dword ptr [edi + 8] */ 7652 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006B0B: cmp byte ptr [edx + 0x14], 0 */ 7653 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7655 _flag_k = FK_NARROW(FK_CMP, 24); 7656 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B2C; /* 0x20006B0F: jne 0x20006b2c */ 7657 L_20006B11: 7658 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B11: mov byte ptr [ecx + 0x14], bl */ 7659 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B14: mov byte ptr [edx + 0x14], bl */ 7660 ecx = MEM32(eax + 0x4); /* 0x20006B17: mov ecx, dword ptr [eax + 4] */ 7661 edx = MEM32(ecx + 0x4); /* 0x20006B1A: mov edx, dword ptr [ecx + 4] */ 7662 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x20006B1D: mov byte ptr [edx + 0x14], 0 */ 7663 eax = MEM32(eax + 0x4); /* 0x20006B21: mov eax, dword ptr [eax + 4] */ 7664 eax = MEM32(eax + 0x4); /* 0x20006B24: mov eax, dword ptr [eax + 4] */ 7665 goto L_20006C61; /* 0x20006B27: jmp 0x20006c61 */ 7666 L_20006B2C: 7667 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x20006B2C: cmp eax, dword ptr [ecx + 8] */ 7668 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 7669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7670 _flag_k = FK_CMP; 7671 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B6B; /* 0x20006B2F: jne 0x20006b6b */ 7672 L_20006B31: 7673 eax = ecx; /* 0x20006B31: mov eax, ecx */ 7674 ecx = MEM32(eax + 0x8); /* 0x20006B33: mov ecx, dword ptr [eax + 8] */ 7675 edx = MEM32(ecx); /* 0x20006B36: mov edx, dword ptr [ecx] */ 7676 MEM32(eax + 0x8) = edx; /* 0x20006B38: mov dword ptr [eax + 8], edx */ 7677 edx = MEM32(ecx); /* 0x20006B3B: mov edx, dword ptr [ecx] */ 7678 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006B3D: cmp edx, dword ptr [esi + 8] */ 7679 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7681 _flag_k = FK_CMP; 7682 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B45; /* 0x20006B40: je 0x20006b45 */ 7683 L_20006B42: 7684 MEM32(edx + 0x4) = eax; /* 0x20006B42: mov dword ptr [edx + 4], eax */ 7685 L_20006B45: 7686 edx = MEM32(eax + 0x4); /* 0x20006B45: mov edx, dword ptr [eax + 4] */ 7687 MEM32(ecx + 0x4) = edx; /* 0x20006B48: mov dword ptr [ecx + 4], edx */ 7688 edx = MEM32(esi + 0x4); /* 0x20006B4B: mov edx, dword ptr [esi + 4] */ 7689 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006B4E: cmp eax, dword ptr [edx + 4] */ 7690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7692 _flag_k = FK_CMP; 7693 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B58; /* 0x20006B51: jne 0x20006b58 */ 7694 L_20006B53: 7695 MEM32(edx + 0x4) = ecx; /* 0x20006B53: mov dword ptr [edx + 4], ecx */ 7696 goto L_20006B66; /* 0x20006B56: jmp 0x20006b66 */ 7697 L_20006B58: 7698 edx = MEM32(eax + 0x4); /* 0x20006B58: mov edx, dword ptr [eax + 4] */ 7699 /* cmp eax, MEM32(edx) */ /* 0x20006B5B: cmp eax, dword ptr [edx] */ 7700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 7701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7702 _flag_k = FK_CMP; 7703 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B63; /* 0x20006B5D: jne 0x20006b63 */ 7704 L_20006B5F: 7705 MEM32(edx) = ecx; /* 0x20006B5F: mov dword ptr [edx], ecx */ 7706 goto L_20006B66; /* 0x20006B61: jmp 0x20006b66 */ 7707 L_20006B63: 7708 MEM32(edx + 0x8) = ecx; /* 0x20006B63: mov dword ptr [edx + 8], ecx */ 7709 L_20006B66: 7710 MEM32(ecx) = eax; /* 0x20006B66: mov dword ptr [ecx], eax */ 7711 MEM32(eax + 0x4) = ecx; /* 0x20006B68: mov dword ptr [eax + 4], ecx */ 7712 L_20006B6B: 7713 ecx = MEM32(eax + 0x4); /* 0x20006B6B: mov ecx, dword ptr [eax + 4] */ 7714 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B6E: mov byte ptr [ecx + 0x14], bl */ 7715 edx = MEM32(eax + 0x4); /* 0x20006B71: mov edx, dword ptr [eax + 4] */ 7716 ecx = MEM32(edx + 0x4); /* 0x20006B74: mov ecx, dword ptr [edx + 4] */ 7717 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006B77: mov byte ptr [ecx + 0x14], 0 */ 7718 edx = MEM32(eax + 0x4); /* 0x20006B7B: mov edx, dword ptr [eax + 4] */ 7719 ecx = MEM32(edx + 0x4); /* 0x20006B7E: mov ecx, dword ptr [edx + 4] */ 7720 edx = MEM32(ecx); /* 0x20006B81: mov edx, dword ptr [ecx] */ 7721 edi = MEM32(edx + 0x8); /* 0x20006B83: mov edi, dword ptr [edx + 8] */ 7722 MEM32(ecx) = edi; /* 0x20006B86: mov dword ptr [ecx], edi */ 7723 edi = MEM32(edx + 0x8); /* 0x20006B88: mov edi, dword ptr [edx + 8] */ 7724 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006B8B: cmp edi, dword ptr [esi + 8] */ 7725 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7727 _flag_k = FK_CMP; 7728 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B93; /* 0x20006B8E: je 0x20006b93 */ 7729 L_20006B90: 7730 MEM32(edi + 0x4) = ecx; /* 0x20006B90: mov dword ptr [edi + 4], ecx */ 7731 L_20006B93: 7732 edi = MEM32(ecx + 0x4); /* 0x20006B93: mov edi, dword ptr [ecx + 4] */ 7733 MEM32(edx + 0x4) = edi; /* 0x20006B96: mov dword ptr [edx + 4], edi */ 7734 edi = MEM32(esi + 0x4); /* 0x20006B99: mov edi, dword ptr [esi + 4] */ 7735 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006B9C: cmp ecx, dword ptr [edi + 4] */ 7736 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7738 _flag_k = FK_CMP; 7739 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BAC; /* 0x20006B9F: jne 0x20006bac */ 7740 L_20006BA1: 7741 MEM32(edi + 0x4) = edx; /* 0x20006BA1: mov dword ptr [edi + 4], edx */ 7742 MEM32(edx + 0x8) = ecx; /* 0x20006BA4: mov dword ptr [edx + 8], ecx */ 7743 goto L_20006C5E; /* 0x20006BA7: jmp 0x20006c5e */ 7744 L_20006BAC: 7745 edi = MEM32(ecx + 0x4); /* 0x20006BAC: mov edi, dword ptr [ecx + 4] */ 7746 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x20006BAF: cmp ecx, dword ptr [edi + 8] */ 7747 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7749 _flag_k = FK_CMP; 7750 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BBF; /* 0x20006BB2: jne 0x20006bbf */ 7751 L_20006BB4: 7752 MEM32(edi + 0x8) = edx; /* 0x20006BB4: mov dword ptr [edi + 8], edx */ 7753 MEM32(edx + 0x8) = ecx; /* 0x20006BB7: mov dword ptr [edx + 8], ecx */ 7754 goto L_20006C5E; /* 0x20006BBA: jmp 0x20006c5e */ 7755 L_20006BBF: 7756 MEM32(edi) = edx; /* 0x20006BBF: mov dword ptr [edi], edx */ 7757 MEM32(edx + 0x8) = ecx; /* 0x20006BC1: mov dword ptr [edx + 8], ecx */ 7758 goto L_20006C5E; /* 0x20006BC4: jmp 0x20006c5e */ 7759 L_20006BC9: 7760 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006BC9: cmp byte ptr [edx + 0x14], 0 */ 7761 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7763 _flag_k = FK_NARROW(FK_CMP, 24); 7764 RECOMP_BACKEDGE(); 7765 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B11; /* 0x20006BCD: je 0x20006b11 */ 7766 L_20006BD3: 7767 /* cmp eax, MEM32(ecx) */ /* 0x20006BD3: cmp eax, dword ptr [ecx] */ 7768 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 7769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7770 _flag_k = FK_CMP; 7771 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C13; /* 0x20006BD5: jne 0x20006c13 */ 7772 L_20006BD7: 7773 eax = ecx; /* 0x20006BD7: mov eax, ecx */ 7774 ecx = MEM32(eax); /* 0x20006BD9: mov ecx, dword ptr [eax] */ 7775 edx = MEM32(ecx + 0x8); /* 0x20006BDB: mov edx, dword ptr [ecx + 8] */ 7776 MEM32(eax) = edx; /* 0x20006BDE: mov dword ptr [eax], edx */ 7777 edx = MEM32(ecx + 0x8); /* 0x20006BE0: mov edx, dword ptr [ecx + 8] */ 7778 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006BE3: cmp edx, dword ptr [esi + 8] */ 7779 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7781 _flag_k = FK_CMP; 7782 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006BEB; /* 0x20006BE6: je 0x20006beb */ 7783 L_20006BE8: 7784 MEM32(edx + 0x4) = eax; /* 0x20006BE8: mov dword ptr [edx + 4], eax */ 7785 L_20006BEB: 7786 edx = MEM32(eax + 0x4); /* 0x20006BEB: mov edx, dword ptr [eax + 4] */ 7787 MEM32(ecx + 0x4) = edx; /* 0x20006BEE: mov dword ptr [ecx + 4], edx */ 7788 edx = MEM32(esi + 0x4); /* 0x20006BF1: mov edx, dword ptr [esi + 4] */ 7789 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006BF4: cmp eax, dword ptr [edx + 4] */ 7790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7792 _flag_k = FK_CMP; 7793 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BFE; /* 0x20006BF7: jne 0x20006bfe */ 7794 L_20006BF9: 7795 MEM32(edx + 0x4) = ecx; /* 0x20006BF9: mov dword ptr [edx + 4], ecx */ 7796 goto L_20006C0D; /* 0x20006BFC: jmp 0x20006c0d */ 7797 L_20006BFE: 7798 edx = MEM32(eax + 0x4); /* 0x20006BFE: mov edx, dword ptr [eax + 4] */ 7799 /* cmp eax, MEM32(edx + 0x8) */ /* 0x20006C01: cmp eax, dword ptr [edx + 8] */ 7800 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 7801 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7802 _flag_k = FK_CMP; 7803 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C0B; /* 0x20006C04: jne 0x20006c0b */ 7804 L_20006C06: 7805 MEM32(edx + 0x8) = ecx; /* 0x20006C06: mov dword ptr [edx + 8], ecx */ 7806 goto L_20006C0D; /* 0x20006C09: jmp 0x20006c0d */ 7807 L_20006C0B: 7808 MEM32(edx) = ecx; /* 0x20006C0B: mov dword ptr [edx], ecx */ 7809 L_20006C0D: 7810 MEM32(ecx + 0x8) = eax; /* 0x20006C0D: mov dword ptr [ecx + 8], eax */ 7811 MEM32(eax + 0x4) = ecx; /* 0x20006C10: mov dword ptr [eax + 4], ecx */ 7812 L_20006C13: 7813 ecx = MEM32(eax + 0x4); /* 0x20006C13: mov ecx, dword ptr [eax + 4] */ 7814 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C16: mov byte ptr [ecx + 0x14], bl */ 7815 edx = MEM32(eax + 0x4); /* 0x20006C19: mov edx, dword ptr [eax + 4] */ 7816 ecx = MEM32(edx + 0x4); /* 0x20006C1C: mov ecx, dword ptr [edx + 4] */ 7817 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006C1F: mov byte ptr [ecx + 0x14], 0 */ 7818 edx = MEM32(eax + 0x4); /* 0x20006C23: mov edx, dword ptr [eax + 4] */ 7819 ecx = MEM32(edx + 0x4); /* 0x20006C26: mov ecx, dword ptr [edx + 4] */ 7820 edx = MEM32(ecx + 0x8); /* 0x20006C29: mov edx, dword ptr [ecx + 8] */ 7821 edi = MEM32(edx); /* 0x20006C2C: mov edi, dword ptr [edx] */ 7822 MEM32(ecx + 0x8) = edi; /* 0x20006C2E: mov dword ptr [ecx + 8], edi */ 7823 edi = MEM32(edx); /* 0x20006C31: mov edi, dword ptr [edx] */ 7824 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006C33: cmp edi, dword ptr [esi + 8] */ 7825 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7827 _flag_k = FK_CMP; 7828 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006C3B; /* 0x20006C36: je 0x20006c3b */ 7829 L_20006C38: 7830 MEM32(edi + 0x4) = ecx; /* 0x20006C38: mov dword ptr [edi + 4], ecx */ 7831 L_20006C3B: 7832 edi = MEM32(ecx + 0x4); /* 0x20006C3B: mov edi, dword ptr [ecx + 4] */ 7833 MEM32(edx + 0x4) = edi; /* 0x20006C3E: mov dword ptr [edx + 4], edi */ 7834 edi = MEM32(esi + 0x4); /* 0x20006C41: mov edi, dword ptr [esi + 4] */ 7835 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006C44: cmp ecx, dword ptr [edi + 4] */ 7836 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7838 _flag_k = FK_CMP; 7839 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C4E; /* 0x20006C47: jne 0x20006c4e */ 7840 L_20006C49: 7841 MEM32(edi + 0x4) = edx; /* 0x20006C49: mov dword ptr [edi + 4], edx */ 7842 goto L_20006C5C; /* 0x20006C4C: jmp 0x20006c5c */ 7843 L_20006C4E: 7844 edi = MEM32(ecx + 0x4); /* 0x20006C4E: mov edi, dword ptr [ecx + 4] */ 7845 /* cmp ecx, MEM32(edi) */ /* 0x20006C51: cmp ecx, dword ptr [edi] */ 7846 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 7847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7848 _flag_k = FK_CMP; 7849 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C59; /* 0x20006C53: jne 0x20006c59 */ 7850 L_20006C55: 7851 MEM32(edi) = edx; /* 0x20006C55: mov dword ptr [edi], edx */ 7852 goto L_20006C5C; /* 0x20006C57: jmp 0x20006c5c */ 7853 L_20006C59: 7854 MEM32(edi + 0x8) = edx; /* 0x20006C59: mov dword ptr [edi + 8], edx */ 7855 L_20006C5C: 7856 MEM32(edx) = ecx; /* 0x20006C5C: mov dword ptr [edx], ecx */ 7857 L_20006C5E: 7858 MEM32(ecx + 0x4) = edx; /* 0x20006C5E: mov dword ptr [ecx + 4], edx */ 7859 L_20006C61: 7860 ecx = MEM32(esi + 0x4); /* 0x20006C61: mov ecx, dword ptr [esi + 4] */ 7861 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x20006C64: cmp eax, dword ptr [ecx + 4] */ 7862 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7864 _flag_k = FK_CMP; 7865 RECOMP_BACKEDGE(); 7866 if (CMP_NE(_flag_a, _flag_b)) goto L_20006AED; /* 0x20006C67: jne 0x20006aed */ 7867 L_20006C6D: 7868 edx = MEM32(esi + 0x4); /* 0x20006C6D: mov edx, dword ptr [esi + 4] */ 7869 eax = MEM32(edx + 0x4); /* 0x20006C70: mov eax, dword ptr [edx + 4] */ 7870 ecx = MEM32(ebp + (-0x4)); /* 0x20006C73: mov ecx, dword ptr [ebp - 4] */ 7871 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C76: mov byte ptr [eax + 0x14], bl */ 7872 eax = MEM32(ebp + 0x8); /* 0x20006C79: mov eax, dword ptr [ebp + 8] */ 7873 edi = POP32_VAL(esp); /* 0x20006C7C: pop edi */ 7874 esi = POP32_VAL(esp); /* 0x20006C7D: pop esi */ 7875 MEM32(eax) = ecx; /* 0x20006C7E: mov dword ptr [eax], ecx */ 7876 ebx = POP32_VAL(esp); /* 0x20006C80: pop ebx */ 7877 esp = ebp; /* 0x20006C81: mov esp, ebp */ 7878 ebp = POP32_VAL(esp); /* 0x20006C83: pop ebp */ 7879 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20006C84: ret 0x10 */ 7880 RECOMP_REGS_OUT(); 7881 } 7882 7883 void sub_20006C5E(void) { 7884 int _fpu_cmp = 0; 7885 uint32_t _cf = 0; 7886 int _df = 1; 7887 uint32_t _flag_k = FK_NONE; 7888 uint32_t _flag_a = 0, _flag_b = 0; 7889 uint32_t _itail_tgt = 0; 7890 RECOMP_REGS_LOCALS 7891 RECOMP_ENTER(0x20006C5Eu); 7892 7893 goto L_20006C5E; 7894 L_20006AED: 7895 ecx = MEM32(eax + 0x4); /* 0x20006AED: mov ecx, dword ptr [eax + 4] */ 7896 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x20006AF0: mov dl, byte ptr [ecx + 0x14] */ 7897 /* test LO8(edx), LO8(edx) */ /* 0x20006AF3: test dl, dl */ 7898 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7899 _cf = 0; 7900 _flag_k = FK_NARROW(FK_TEST, 24); 7901 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006C6D; /* 0x20006AF5: jne 0x20006c6d */ 7902 L_20006AFB: 7903 edi = MEM32(ecx + 0x4); /* 0x20006AFB: mov edi, dword ptr [ecx + 4] */ 7904 edx = MEM32(edi); /* 0x20006AFE: mov edx, dword ptr [edi] */ 7905 /* cmp ecx, edx */ /* 0x20006B00: cmp ecx, edx */ 7906 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7908 _flag_k = FK_CMP; 7909 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BC9; /* 0x20006B02: jne 0x20006bc9 */ 7910 L_20006B08: 7911 edx = MEM32(edi + 0x8); /* 0x20006B08: mov edx, dword ptr [edi + 8] */ 7912 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006B0B: cmp byte ptr [edx + 0x14], 0 */ 7913 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7915 _flag_k = FK_NARROW(FK_CMP, 24); 7916 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B2C; /* 0x20006B0F: jne 0x20006b2c */ 7917 L_20006B11: 7918 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B11: mov byte ptr [ecx + 0x14], bl */ 7919 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B14: mov byte ptr [edx + 0x14], bl */ 7920 ecx = MEM32(eax + 0x4); /* 0x20006B17: mov ecx, dword ptr [eax + 4] */ 7921 edx = MEM32(ecx + 0x4); /* 0x20006B1A: mov edx, dword ptr [ecx + 4] */ 7922 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x20006B1D: mov byte ptr [edx + 0x14], 0 */ 7923 eax = MEM32(eax + 0x4); /* 0x20006B21: mov eax, dword ptr [eax + 4] */ 7924 eax = MEM32(eax + 0x4); /* 0x20006B24: mov eax, dword ptr [eax + 4] */ 7925 goto L_20006C61; /* 0x20006B27: jmp 0x20006c61 */ 7926 L_20006B2C: 7927 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x20006B2C: cmp eax, dword ptr [ecx + 8] */ 7928 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 7929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7930 _flag_k = FK_CMP; 7931 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B6B; /* 0x20006B2F: jne 0x20006b6b */ 7932 L_20006B31: 7933 eax = ecx; /* 0x20006B31: mov eax, ecx */ 7934 ecx = MEM32(eax + 0x8); /* 0x20006B33: mov ecx, dword ptr [eax + 8] */ 7935 edx = MEM32(ecx); /* 0x20006B36: mov edx, dword ptr [ecx] */ 7936 MEM32(eax + 0x8) = edx; /* 0x20006B38: mov dword ptr [eax + 8], edx */ 7937 edx = MEM32(ecx); /* 0x20006B3B: mov edx, dword ptr [ecx] */ 7938 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006B3D: cmp edx, dword ptr [esi + 8] */ 7939 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7941 _flag_k = FK_CMP; 7942 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B45; /* 0x20006B40: je 0x20006b45 */ 7943 L_20006B42: 7944 MEM32(edx + 0x4) = eax; /* 0x20006B42: mov dword ptr [edx + 4], eax */ 7945 L_20006B45: 7946 edx = MEM32(eax + 0x4); /* 0x20006B45: mov edx, dword ptr [eax + 4] */ 7947 MEM32(ecx + 0x4) = edx; /* 0x20006B48: mov dword ptr [ecx + 4], edx */ 7948 edx = MEM32(esi + 0x4); /* 0x20006B4B: mov edx, dword ptr [esi + 4] */ 7949 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006B4E: cmp eax, dword ptr [edx + 4] */ 7950 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7952 _flag_k = FK_CMP; 7953 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B58; /* 0x20006B51: jne 0x20006b58 */ 7954 L_20006B53: 7955 MEM32(edx + 0x4) = ecx; /* 0x20006B53: mov dword ptr [edx + 4], ecx */ 7956 goto L_20006B66; /* 0x20006B56: jmp 0x20006b66 */ 7957 L_20006B58: 7958 edx = MEM32(eax + 0x4); /* 0x20006B58: mov edx, dword ptr [eax + 4] */ 7959 /* cmp eax, MEM32(edx) */ /* 0x20006B5B: cmp eax, dword ptr [edx] */ 7960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 7961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7962 _flag_k = FK_CMP; 7963 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B63; /* 0x20006B5D: jne 0x20006b63 */ 7964 L_20006B5F: 7965 MEM32(edx) = ecx; /* 0x20006B5F: mov dword ptr [edx], ecx */ 7966 goto L_20006B66; /* 0x20006B61: jmp 0x20006b66 */ 7967 L_20006B63: 7968 MEM32(edx + 0x8) = ecx; /* 0x20006B63: mov dword ptr [edx + 8], ecx */ 7969 L_20006B66: 7970 MEM32(ecx) = eax; /* 0x20006B66: mov dword ptr [ecx], eax */ 7971 MEM32(eax + 0x4) = ecx; /* 0x20006B68: mov dword ptr [eax + 4], ecx */ 7972 L_20006B6B: 7973 ecx = MEM32(eax + 0x4); /* 0x20006B6B: mov ecx, dword ptr [eax + 4] */ 7974 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B6E: mov byte ptr [ecx + 0x14], bl */ 7975 edx = MEM32(eax + 0x4); /* 0x20006B71: mov edx, dword ptr [eax + 4] */ 7976 ecx = MEM32(edx + 0x4); /* 0x20006B74: mov ecx, dword ptr [edx + 4] */ 7977 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006B77: mov byte ptr [ecx + 0x14], 0 */ 7978 edx = MEM32(eax + 0x4); /* 0x20006B7B: mov edx, dword ptr [eax + 4] */ 7979 ecx = MEM32(edx + 0x4); /* 0x20006B7E: mov ecx, dword ptr [edx + 4] */ 7980 edx = MEM32(ecx); /* 0x20006B81: mov edx, dword ptr [ecx] */ 7981 edi = MEM32(edx + 0x8); /* 0x20006B83: mov edi, dword ptr [edx + 8] */ 7982 MEM32(ecx) = edi; /* 0x20006B86: mov dword ptr [ecx], edi */ 7983 edi = MEM32(edx + 0x8); /* 0x20006B88: mov edi, dword ptr [edx + 8] */ 7984 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006B8B: cmp edi, dword ptr [esi + 8] */ 7985 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7987 _flag_k = FK_CMP; 7988 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B93; /* 0x20006B8E: je 0x20006b93 */ 7989 L_20006B90: 7990 MEM32(edi + 0x4) = ecx; /* 0x20006B90: mov dword ptr [edi + 4], ecx */ 7991 L_20006B93: 7992 edi = MEM32(ecx + 0x4); /* 0x20006B93: mov edi, dword ptr [ecx + 4] */ 7993 MEM32(edx + 0x4) = edi; /* 0x20006B96: mov dword ptr [edx + 4], edi */ 7994 edi = MEM32(esi + 0x4); /* 0x20006B99: mov edi, dword ptr [esi + 4] */ 7995 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006B9C: cmp ecx, dword ptr [edi + 4] */ 7996 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7998 _flag_k = FK_CMP; 7999 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BAC; /* 0x20006B9F: jne 0x20006bac */ 8000 L_20006BA1: 8001 MEM32(edi + 0x4) = edx; /* 0x20006BA1: mov dword ptr [edi + 4], edx */ 8002 MEM32(edx + 0x8) = ecx; /* 0x20006BA4: mov dword ptr [edx + 8], ecx */ 8003 goto L_20006C5E; /* 0x20006BA7: jmp 0x20006c5e */ 8004 L_20006BAC: 8005 edi = MEM32(ecx + 0x4); /* 0x20006BAC: mov edi, dword ptr [ecx + 4] */ 8006 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x20006BAF: cmp ecx, dword ptr [edi + 8] */ 8007 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8009 _flag_k = FK_CMP; 8010 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BBF; /* 0x20006BB2: jne 0x20006bbf */ 8011 L_20006BB4: 8012 MEM32(edi + 0x8) = edx; /* 0x20006BB4: mov dword ptr [edi + 8], edx */ 8013 MEM32(edx + 0x8) = ecx; /* 0x20006BB7: mov dword ptr [edx + 8], ecx */ 8014 goto L_20006C5E; /* 0x20006BBA: jmp 0x20006c5e */ 8015 L_20006BBF: 8016 MEM32(edi) = edx; /* 0x20006BBF: mov dword ptr [edi], edx */ 8017 MEM32(edx + 0x8) = ecx; /* 0x20006BC1: mov dword ptr [edx + 8], ecx */ 8018 goto L_20006C5E; /* 0x20006BC4: jmp 0x20006c5e */ 8019 L_20006BC9: 8020 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006BC9: cmp byte ptr [edx + 0x14], 0 */ 8021 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 8022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8023 _flag_k = FK_NARROW(FK_CMP, 24); 8024 RECOMP_BACKEDGE(); 8025 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B11; /* 0x20006BCD: je 0x20006b11 */ 8026 L_20006BD3: 8027 /* cmp eax, MEM32(ecx) */ /* 0x20006BD3: cmp eax, dword ptr [ecx] */ 8028 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 8029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8030 _flag_k = FK_CMP; 8031 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C13; /* 0x20006BD5: jne 0x20006c13 */ 8032 L_20006BD7: 8033 eax = ecx; /* 0x20006BD7: mov eax, ecx */ 8034 ecx = MEM32(eax); /* 0x20006BD9: mov ecx, dword ptr [eax] */ 8035 edx = MEM32(ecx + 0x8); /* 0x20006BDB: mov edx, dword ptr [ecx + 8] */ 8036 MEM32(eax) = edx; /* 0x20006BDE: mov dword ptr [eax], edx */ 8037 edx = MEM32(ecx + 0x8); /* 0x20006BE0: mov edx, dword ptr [ecx + 8] */ 8038 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006BE3: cmp edx, dword ptr [esi + 8] */ 8039 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8041 _flag_k = FK_CMP; 8042 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006BEB; /* 0x20006BE6: je 0x20006beb */ 8043 L_20006BE8: 8044 MEM32(edx + 0x4) = eax; /* 0x20006BE8: mov dword ptr [edx + 4], eax */ 8045 L_20006BEB: 8046 edx = MEM32(eax + 0x4); /* 0x20006BEB: mov edx, dword ptr [eax + 4] */ 8047 MEM32(ecx + 0x4) = edx; /* 0x20006BEE: mov dword ptr [ecx + 4], edx */ 8048 edx = MEM32(esi + 0x4); /* 0x20006BF1: mov edx, dword ptr [esi + 4] */ 8049 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006BF4: cmp eax, dword ptr [edx + 4] */ 8050 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8052 _flag_k = FK_CMP; 8053 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BFE; /* 0x20006BF7: jne 0x20006bfe */ 8054 L_20006BF9: 8055 MEM32(edx + 0x4) = ecx; /* 0x20006BF9: mov dword ptr [edx + 4], ecx */ 8056 goto L_20006C0D; /* 0x20006BFC: jmp 0x20006c0d */ 8057 L_20006BFE: 8058 edx = MEM32(eax + 0x4); /* 0x20006BFE: mov edx, dword ptr [eax + 4] */ 8059 /* cmp eax, MEM32(edx + 0x8) */ /* 0x20006C01: cmp eax, dword ptr [edx + 8] */ 8060 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8062 _flag_k = FK_CMP; 8063 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C0B; /* 0x20006C04: jne 0x20006c0b */ 8064 L_20006C06: 8065 MEM32(edx + 0x8) = ecx; /* 0x20006C06: mov dword ptr [edx + 8], ecx */ 8066 goto L_20006C0D; /* 0x20006C09: jmp 0x20006c0d */ 8067 L_20006C0B: 8068 MEM32(edx) = ecx; /* 0x20006C0B: mov dword ptr [edx], ecx */ 8069 L_20006C0D: 8070 MEM32(ecx + 0x8) = eax; /* 0x20006C0D: mov dword ptr [ecx + 8], eax */ 8071 MEM32(eax + 0x4) = ecx; /* 0x20006C10: mov dword ptr [eax + 4], ecx */ 8072 L_20006C13: 8073 ecx = MEM32(eax + 0x4); /* 0x20006C13: mov ecx, dword ptr [eax + 4] */ 8074 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C16: mov byte ptr [ecx + 0x14], bl */ 8075 edx = MEM32(eax + 0x4); /* 0x20006C19: mov edx, dword ptr [eax + 4] */ 8076 ecx = MEM32(edx + 0x4); /* 0x20006C1C: mov ecx, dword ptr [edx + 4] */ 8077 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006C1F: mov byte ptr [ecx + 0x14], 0 */ 8078 edx = MEM32(eax + 0x4); /* 0x20006C23: mov edx, dword ptr [eax + 4] */ 8079 ecx = MEM32(edx + 0x4); /* 0x20006C26: mov ecx, dword ptr [edx + 4] */ 8080 edx = MEM32(ecx + 0x8); /* 0x20006C29: mov edx, dword ptr [ecx + 8] */ 8081 edi = MEM32(edx); /* 0x20006C2C: mov edi, dword ptr [edx] */ 8082 MEM32(ecx + 0x8) = edi; /* 0x20006C2E: mov dword ptr [ecx + 8], edi */ 8083 edi = MEM32(edx); /* 0x20006C31: mov edi, dword ptr [edx] */ 8084 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006C33: cmp edi, dword ptr [esi + 8] */ 8085 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8087 _flag_k = FK_CMP; 8088 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006C3B; /* 0x20006C36: je 0x20006c3b */ 8089 L_20006C38: 8090 MEM32(edi + 0x4) = ecx; /* 0x20006C38: mov dword ptr [edi + 4], ecx */ 8091 L_20006C3B: 8092 edi = MEM32(ecx + 0x4); /* 0x20006C3B: mov edi, dword ptr [ecx + 4] */ 8093 MEM32(edx + 0x4) = edi; /* 0x20006C3E: mov dword ptr [edx + 4], edi */ 8094 edi = MEM32(esi + 0x4); /* 0x20006C41: mov edi, dword ptr [esi + 4] */ 8095 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006C44: cmp ecx, dword ptr [edi + 4] */ 8096 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8097 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8098 _flag_k = FK_CMP; 8099 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C4E; /* 0x20006C47: jne 0x20006c4e */ 8100 L_20006C49: 8101 MEM32(edi + 0x4) = edx; /* 0x20006C49: mov dword ptr [edi + 4], edx */ 8102 goto L_20006C5C; /* 0x20006C4C: jmp 0x20006c5c */ 8103 L_20006C4E: 8104 edi = MEM32(ecx + 0x4); /* 0x20006C4E: mov edi, dword ptr [ecx + 4] */ 8105 /* cmp ecx, MEM32(edi) */ /* 0x20006C51: cmp ecx, dword ptr [edi] */ 8106 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 8107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8108 _flag_k = FK_CMP; 8109 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C59; /* 0x20006C53: jne 0x20006c59 */ 8110 L_20006C55: 8111 MEM32(edi) = edx; /* 0x20006C55: mov dword ptr [edi], edx */ 8112 goto L_20006C5C; /* 0x20006C57: jmp 0x20006c5c */ 8113 L_20006C59: 8114 MEM32(edi + 0x8) = edx; /* 0x20006C59: mov dword ptr [edi + 8], edx */ 8115 L_20006C5C: 8116 MEM32(edx) = ecx; /* 0x20006C5C: mov dword ptr [edx], ecx */ 8117 L_20006C5E: 8118 MEM32(ecx + 0x4) = edx; /* 0x20006C5E: mov dword ptr [ecx + 4], edx */ 8119 L_20006C61: 8120 ecx = MEM32(esi + 0x4); /* 0x20006C61: mov ecx, dword ptr [esi + 4] */ 8121 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x20006C64: cmp eax, dword ptr [ecx + 4] */ 8122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8124 _flag_k = FK_CMP; 8125 RECOMP_BACKEDGE(); 8126 if (CMP_NE(_flag_a, _flag_b)) goto L_20006AED; /* 0x20006C67: jne 0x20006aed */ 8127 L_20006C6D: 8128 edx = MEM32(esi + 0x4); /* 0x20006C6D: mov edx, dword ptr [esi + 4] */ 8129 eax = MEM32(edx + 0x4); /* 0x20006C70: mov eax, dword ptr [edx + 4] */ 8130 ecx = MEM32(ebp + (-0x4)); /* 0x20006C73: mov ecx, dword ptr [ebp - 4] */ 8131 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C76: mov byte ptr [eax + 0x14], bl */ 8132 eax = MEM32(ebp + 0x8); /* 0x20006C79: mov eax, dword ptr [ebp + 8] */ 8133 edi = POP32_VAL(esp); /* 0x20006C7C: pop edi */ 8134 esi = POP32_VAL(esp); /* 0x20006C7D: pop esi */ 8135 MEM32(eax) = ecx; /* 0x20006C7E: mov dword ptr [eax], ecx */ 8136 ebx = POP32_VAL(esp); /* 0x20006C80: pop ebx */ 8137 esp = ebp; /* 0x20006C81: mov esp, ebp */ 8138 ebp = POP32_VAL(esp); /* 0x20006C83: pop ebp */ 8139 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20006C84: ret 0x10 */ 8140 RECOMP_REGS_OUT(); 8141 } 8142 8143 void sub_20006C61(void) { 8144 int _fpu_cmp = 0; 8145 uint32_t _cf = 0; 8146 int _df = 1; 8147 uint32_t _flag_k = FK_NONE; 8148 uint32_t _flag_a = 0, _flag_b = 0; 8149 uint32_t _itail_tgt = 0; 8150 RECOMP_REGS_LOCALS 8151 RECOMP_ENTER(0x20006C61u); 8152 8153 goto L_20006C61; 8154 L_20006AED: 8155 ecx = MEM32(eax + 0x4); /* 0x20006AED: mov ecx, dword ptr [eax + 4] */ 8156 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x20006AF0: mov dl, byte ptr [ecx + 0x14] */ 8157 /* test LO8(edx), LO8(edx) */ /* 0x20006AF3: test dl, dl */ 8158 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8159 _cf = 0; 8160 _flag_k = FK_NARROW(FK_TEST, 24); 8161 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006C6D; /* 0x20006AF5: jne 0x20006c6d */ 8162 L_20006AFB: 8163 edi = MEM32(ecx + 0x4); /* 0x20006AFB: mov edi, dword ptr [ecx + 4] */ 8164 edx = MEM32(edi); /* 0x20006AFE: mov edx, dword ptr [edi] */ 8165 /* cmp ecx, edx */ /* 0x20006B00: cmp ecx, edx */ 8166 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8168 _flag_k = FK_CMP; 8169 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BC9; /* 0x20006B02: jne 0x20006bc9 */ 8170 L_20006B08: 8171 edx = MEM32(edi + 0x8); /* 0x20006B08: mov edx, dword ptr [edi + 8] */ 8172 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006B0B: cmp byte ptr [edx + 0x14], 0 */ 8173 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 8174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8175 _flag_k = FK_NARROW(FK_CMP, 24); 8176 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B2C; /* 0x20006B0F: jne 0x20006b2c */ 8177 L_20006B11: 8178 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B11: mov byte ptr [ecx + 0x14], bl */ 8179 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B14: mov byte ptr [edx + 0x14], bl */ 8180 ecx = MEM32(eax + 0x4); /* 0x20006B17: mov ecx, dword ptr [eax + 4] */ 8181 edx = MEM32(ecx + 0x4); /* 0x20006B1A: mov edx, dword ptr [ecx + 4] */ 8182 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x20006B1D: mov byte ptr [edx + 0x14], 0 */ 8183 eax = MEM32(eax + 0x4); /* 0x20006B21: mov eax, dword ptr [eax + 4] */ 8184 eax = MEM32(eax + 0x4); /* 0x20006B24: mov eax, dword ptr [eax + 4] */ 8185 goto L_20006C61; /* 0x20006B27: jmp 0x20006c61 */ 8186 L_20006B2C: 8187 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x20006B2C: cmp eax, dword ptr [ecx + 8] */ 8188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8190 _flag_k = FK_CMP; 8191 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B6B; /* 0x20006B2F: jne 0x20006b6b */ 8192 L_20006B31: 8193 eax = ecx; /* 0x20006B31: mov eax, ecx */ 8194 ecx = MEM32(eax + 0x8); /* 0x20006B33: mov ecx, dword ptr [eax + 8] */ 8195 edx = MEM32(ecx); /* 0x20006B36: mov edx, dword ptr [ecx] */ 8196 MEM32(eax + 0x8) = edx; /* 0x20006B38: mov dword ptr [eax + 8], edx */ 8197 edx = MEM32(ecx); /* 0x20006B3B: mov edx, dword ptr [ecx] */ 8198 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006B3D: cmp edx, dword ptr [esi + 8] */ 8199 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8201 _flag_k = FK_CMP; 8202 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B45; /* 0x20006B40: je 0x20006b45 */ 8203 L_20006B42: 8204 MEM32(edx + 0x4) = eax; /* 0x20006B42: mov dword ptr [edx + 4], eax */ 8205 L_20006B45: 8206 edx = MEM32(eax + 0x4); /* 0x20006B45: mov edx, dword ptr [eax + 4] */ 8207 MEM32(ecx + 0x4) = edx; /* 0x20006B48: mov dword ptr [ecx + 4], edx */ 8208 edx = MEM32(esi + 0x4); /* 0x20006B4B: mov edx, dword ptr [esi + 4] */ 8209 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006B4E: cmp eax, dword ptr [edx + 4] */ 8210 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8212 _flag_k = FK_CMP; 8213 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B58; /* 0x20006B51: jne 0x20006b58 */ 8214 L_20006B53: 8215 MEM32(edx + 0x4) = ecx; /* 0x20006B53: mov dword ptr [edx + 4], ecx */ 8216 goto L_20006B66; /* 0x20006B56: jmp 0x20006b66 */ 8217 L_20006B58: 8218 edx = MEM32(eax + 0x4); /* 0x20006B58: mov edx, dword ptr [eax + 4] */ 8219 /* cmp eax, MEM32(edx) */ /* 0x20006B5B: cmp eax, dword ptr [edx] */ 8220 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 8221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8222 _flag_k = FK_CMP; 8223 if (CMP_NE(_flag_a, _flag_b)) goto L_20006B63; /* 0x20006B5D: jne 0x20006b63 */ 8224 L_20006B5F: 8225 MEM32(edx) = ecx; /* 0x20006B5F: mov dword ptr [edx], ecx */ 8226 goto L_20006B66; /* 0x20006B61: jmp 0x20006b66 */ 8227 L_20006B63: 8228 MEM32(edx + 0x8) = ecx; /* 0x20006B63: mov dword ptr [edx + 8], ecx */ 8229 L_20006B66: 8230 MEM32(ecx) = eax; /* 0x20006B66: mov dword ptr [ecx], eax */ 8231 MEM32(eax + 0x4) = ecx; /* 0x20006B68: mov dword ptr [eax + 4], ecx */ 8232 L_20006B6B: 8233 ecx = MEM32(eax + 0x4); /* 0x20006B6B: mov ecx, dword ptr [eax + 4] */ 8234 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006B6E: mov byte ptr [ecx + 0x14], bl */ 8235 edx = MEM32(eax + 0x4); /* 0x20006B71: mov edx, dword ptr [eax + 4] */ 8236 ecx = MEM32(edx + 0x4); /* 0x20006B74: mov ecx, dword ptr [edx + 4] */ 8237 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006B77: mov byte ptr [ecx + 0x14], 0 */ 8238 edx = MEM32(eax + 0x4); /* 0x20006B7B: mov edx, dword ptr [eax + 4] */ 8239 ecx = MEM32(edx + 0x4); /* 0x20006B7E: mov ecx, dword ptr [edx + 4] */ 8240 edx = MEM32(ecx); /* 0x20006B81: mov edx, dword ptr [ecx] */ 8241 edi = MEM32(edx + 0x8); /* 0x20006B83: mov edi, dword ptr [edx + 8] */ 8242 MEM32(ecx) = edi; /* 0x20006B86: mov dword ptr [ecx], edi */ 8243 edi = MEM32(edx + 0x8); /* 0x20006B88: mov edi, dword ptr [edx + 8] */ 8244 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006B8B: cmp edi, dword ptr [esi + 8] */ 8245 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8247 _flag_k = FK_CMP; 8248 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B93; /* 0x20006B8E: je 0x20006b93 */ 8249 L_20006B90: 8250 MEM32(edi + 0x4) = ecx; /* 0x20006B90: mov dword ptr [edi + 4], ecx */ 8251 L_20006B93: 8252 edi = MEM32(ecx + 0x4); /* 0x20006B93: mov edi, dword ptr [ecx + 4] */ 8253 MEM32(edx + 0x4) = edi; /* 0x20006B96: mov dword ptr [edx + 4], edi */ 8254 edi = MEM32(esi + 0x4); /* 0x20006B99: mov edi, dword ptr [esi + 4] */ 8255 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006B9C: cmp ecx, dword ptr [edi + 4] */ 8256 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8258 _flag_k = FK_CMP; 8259 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BAC; /* 0x20006B9F: jne 0x20006bac */ 8260 L_20006BA1: 8261 MEM32(edi + 0x4) = edx; /* 0x20006BA1: mov dword ptr [edi + 4], edx */ 8262 MEM32(edx + 0x8) = ecx; /* 0x20006BA4: mov dword ptr [edx + 8], ecx */ 8263 goto L_20006C5E; /* 0x20006BA7: jmp 0x20006c5e */ 8264 L_20006BAC: 8265 edi = MEM32(ecx + 0x4); /* 0x20006BAC: mov edi, dword ptr [ecx + 4] */ 8266 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x20006BAF: cmp ecx, dword ptr [edi + 8] */ 8267 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8269 _flag_k = FK_CMP; 8270 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BBF; /* 0x20006BB2: jne 0x20006bbf */ 8271 L_20006BB4: 8272 MEM32(edi + 0x8) = edx; /* 0x20006BB4: mov dword ptr [edi + 8], edx */ 8273 MEM32(edx + 0x8) = ecx; /* 0x20006BB7: mov dword ptr [edx + 8], ecx */ 8274 goto L_20006C5E; /* 0x20006BBA: jmp 0x20006c5e */ 8275 L_20006BBF: 8276 MEM32(edi) = edx; /* 0x20006BBF: mov dword ptr [edi], edx */ 8277 MEM32(edx + 0x8) = ecx; /* 0x20006BC1: mov dword ptr [edx + 8], ecx */ 8278 goto L_20006C5E; /* 0x20006BC4: jmp 0x20006c5e */ 8279 L_20006BC9: 8280 /* cmp MEM8(edx + 0x14), 0 */ /* 0x20006BC9: cmp byte ptr [edx + 0x14], 0 */ 8281 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 8282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8283 _flag_k = FK_NARROW(FK_CMP, 24); 8284 RECOMP_BACKEDGE(); 8285 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006B11; /* 0x20006BCD: je 0x20006b11 */ 8286 L_20006BD3: 8287 /* cmp eax, MEM32(ecx) */ /* 0x20006BD3: cmp eax, dword ptr [ecx] */ 8288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 8289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8290 _flag_k = FK_CMP; 8291 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C13; /* 0x20006BD5: jne 0x20006c13 */ 8292 L_20006BD7: 8293 eax = ecx; /* 0x20006BD7: mov eax, ecx */ 8294 ecx = MEM32(eax); /* 0x20006BD9: mov ecx, dword ptr [eax] */ 8295 edx = MEM32(ecx + 0x8); /* 0x20006BDB: mov edx, dword ptr [ecx + 8] */ 8296 MEM32(eax) = edx; /* 0x20006BDE: mov dword ptr [eax], edx */ 8297 edx = MEM32(ecx + 0x8); /* 0x20006BE0: mov edx, dword ptr [ecx + 8] */ 8298 /* cmp edx, MEM32(esi + 0x8) */ /* 0x20006BE3: cmp edx, dword ptr [esi + 8] */ 8299 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8301 _flag_k = FK_CMP; 8302 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006BEB; /* 0x20006BE6: je 0x20006beb */ 8303 L_20006BE8: 8304 MEM32(edx + 0x4) = eax; /* 0x20006BE8: mov dword ptr [edx + 4], eax */ 8305 L_20006BEB: 8306 edx = MEM32(eax + 0x4); /* 0x20006BEB: mov edx, dword ptr [eax + 4] */ 8307 MEM32(ecx + 0x4) = edx; /* 0x20006BEE: mov dword ptr [ecx + 4], edx */ 8308 edx = MEM32(esi + 0x4); /* 0x20006BF1: mov edx, dword ptr [esi + 4] */ 8309 /* cmp eax, MEM32(edx + 0x4) */ /* 0x20006BF4: cmp eax, dword ptr [edx + 4] */ 8310 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8312 _flag_k = FK_CMP; 8313 if (CMP_NE(_flag_a, _flag_b)) goto L_20006BFE; /* 0x20006BF7: jne 0x20006bfe */ 8314 L_20006BF9: 8315 MEM32(edx + 0x4) = ecx; /* 0x20006BF9: mov dword ptr [edx + 4], ecx */ 8316 goto L_20006C0D; /* 0x20006BFC: jmp 0x20006c0d */ 8317 L_20006BFE: 8318 edx = MEM32(eax + 0x4); /* 0x20006BFE: mov edx, dword ptr [eax + 4] */ 8319 /* cmp eax, MEM32(edx + 0x8) */ /* 0x20006C01: cmp eax, dword ptr [edx + 8] */ 8320 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8322 _flag_k = FK_CMP; 8323 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C0B; /* 0x20006C04: jne 0x20006c0b */ 8324 L_20006C06: 8325 MEM32(edx + 0x8) = ecx; /* 0x20006C06: mov dword ptr [edx + 8], ecx */ 8326 goto L_20006C0D; /* 0x20006C09: jmp 0x20006c0d */ 8327 L_20006C0B: 8328 MEM32(edx) = ecx; /* 0x20006C0B: mov dword ptr [edx], ecx */ 8329 L_20006C0D: 8330 MEM32(ecx + 0x8) = eax; /* 0x20006C0D: mov dword ptr [ecx + 8], eax */ 8331 MEM32(eax + 0x4) = ecx; /* 0x20006C10: mov dword ptr [eax + 4], ecx */ 8332 L_20006C13: 8333 ecx = MEM32(eax + 0x4); /* 0x20006C13: mov ecx, dword ptr [eax + 4] */ 8334 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C16: mov byte ptr [ecx + 0x14], bl */ 8335 edx = MEM32(eax + 0x4); /* 0x20006C19: mov edx, dword ptr [eax + 4] */ 8336 ecx = MEM32(edx + 0x4); /* 0x20006C1C: mov ecx, dword ptr [edx + 4] */ 8337 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x20006C1F: mov byte ptr [ecx + 0x14], 0 */ 8338 edx = MEM32(eax + 0x4); /* 0x20006C23: mov edx, dword ptr [eax + 4] */ 8339 ecx = MEM32(edx + 0x4); /* 0x20006C26: mov ecx, dword ptr [edx + 4] */ 8340 edx = MEM32(ecx + 0x8); /* 0x20006C29: mov edx, dword ptr [ecx + 8] */ 8341 edi = MEM32(edx); /* 0x20006C2C: mov edi, dword ptr [edx] */ 8342 MEM32(ecx + 0x8) = edi; /* 0x20006C2E: mov dword ptr [ecx + 8], edi */ 8343 edi = MEM32(edx); /* 0x20006C31: mov edi, dword ptr [edx] */ 8344 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20006C33: cmp edi, dword ptr [esi + 8] */ 8345 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8347 _flag_k = FK_CMP; 8348 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006C3B; /* 0x20006C36: je 0x20006c3b */ 8349 L_20006C38: 8350 MEM32(edi + 0x4) = ecx; /* 0x20006C38: mov dword ptr [edi + 4], ecx */ 8351 L_20006C3B: 8352 edi = MEM32(ecx + 0x4); /* 0x20006C3B: mov edi, dword ptr [ecx + 4] */ 8353 MEM32(edx + 0x4) = edi; /* 0x20006C3E: mov dword ptr [edx + 4], edi */ 8354 edi = MEM32(esi + 0x4); /* 0x20006C41: mov edi, dword ptr [esi + 4] */ 8355 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x20006C44: cmp ecx, dword ptr [edi + 4] */ 8356 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8358 _flag_k = FK_CMP; 8359 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C4E; /* 0x20006C47: jne 0x20006c4e */ 8360 L_20006C49: 8361 MEM32(edi + 0x4) = edx; /* 0x20006C49: mov dword ptr [edi + 4], edx */ 8362 goto L_20006C5C; /* 0x20006C4C: jmp 0x20006c5c */ 8363 L_20006C4E: 8364 edi = MEM32(ecx + 0x4); /* 0x20006C4E: mov edi, dword ptr [ecx + 4] */ 8365 /* cmp ecx, MEM32(edi) */ /* 0x20006C51: cmp ecx, dword ptr [edi] */ 8366 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 8367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8368 _flag_k = FK_CMP; 8369 if (CMP_NE(_flag_a, _flag_b)) goto L_20006C59; /* 0x20006C53: jne 0x20006c59 */ 8370 L_20006C55: 8371 MEM32(edi) = edx; /* 0x20006C55: mov dword ptr [edi], edx */ 8372 goto L_20006C5C; /* 0x20006C57: jmp 0x20006c5c */ 8373 L_20006C59: 8374 MEM32(edi + 0x8) = edx; /* 0x20006C59: mov dword ptr [edi + 8], edx */ 8375 L_20006C5C: 8376 MEM32(edx) = ecx; /* 0x20006C5C: mov dword ptr [edx], ecx */ 8377 L_20006C5E: 8378 MEM32(ecx + 0x4) = edx; /* 0x20006C5E: mov dword ptr [ecx + 4], edx */ 8379 L_20006C61: 8380 ecx = MEM32(esi + 0x4); /* 0x20006C61: mov ecx, dword ptr [esi + 4] */ 8381 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x20006C64: cmp eax, dword ptr [ecx + 4] */ 8382 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8384 _flag_k = FK_CMP; 8385 RECOMP_BACKEDGE(); 8386 if (CMP_NE(_flag_a, _flag_b)) goto L_20006AED; /* 0x20006C67: jne 0x20006aed */ 8387 L_20006C6D: 8388 edx = MEM32(esi + 0x4); /* 0x20006C6D: mov edx, dword ptr [esi + 4] */ 8389 eax = MEM32(edx + 0x4); /* 0x20006C70: mov eax, dword ptr [edx + 4] */ 8390 ecx = MEM32(ebp + (-0x4)); /* 0x20006C73: mov ecx, dword ptr [ebp - 4] */ 8391 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C76: mov byte ptr [eax + 0x14], bl */ 8392 eax = MEM32(ebp + 0x8); /* 0x20006C79: mov eax, dword ptr [ebp + 8] */ 8393 edi = POP32_VAL(esp); /* 0x20006C7C: pop edi */ 8394 esi = POP32_VAL(esp); /* 0x20006C7D: pop esi */ 8395 MEM32(eax) = ecx; /* 0x20006C7E: mov dword ptr [eax], ecx */ 8396 ebx = POP32_VAL(esp); /* 0x20006C80: pop ebx */ 8397 esp = ebp; /* 0x20006C81: mov esp, ebp */ 8398 ebp = POP32_VAL(esp); /* 0x20006C83: pop ebp */ 8399 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20006C84: ret 0x10 */ 8400 RECOMP_REGS_OUT(); 8401 } 8402 8403 void sub_20006C6D(void) { 8404 int _fpu_cmp = 0; 8405 uint32_t _cf = 0; 8406 int _df = 1; 8407 uint32_t _flag_k = FK_NONE; 8408 uint32_t _flag_a = 0, _flag_b = 0; 8409 uint32_t _itail_tgt = 0; 8410 RECOMP_REGS_LOCALS 8411 RECOMP_ENTER(0x20006C6Du); 8412 8413 L_20006C6D: 8414 edx = MEM32(esi + 0x4); /* 0x20006C6D: mov edx, dword ptr [esi + 4] */ 8415 eax = MEM32(edx + 0x4); /* 0x20006C70: mov eax, dword ptr [edx + 4] */ 8416 ecx = MEM32(ebp + (-0x4)); /* 0x20006C73: mov ecx, dword ptr [ebp - 4] */ 8417 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x20006C76: mov byte ptr [eax + 0x14], bl */ 8418 eax = MEM32(ebp + 0x8); /* 0x20006C79: mov eax, dword ptr [ebp + 8] */ 8419 edi = POP32_VAL(esp); /* 0x20006C7C: pop edi */ 8420 esi = POP32_VAL(esp); /* 0x20006C7D: pop esi */ 8421 MEM32(eax) = ecx; /* 0x20006C7E: mov dword ptr [eax], ecx */ 8422 ebx = POP32_VAL(esp); /* 0x20006C80: pop ebx */ 8423 esp = ebp; /* 0x20006C81: mov esp, ebp */ 8424 ebp = POP32_VAL(esp); /* 0x20006C83: pop ebp */ 8425 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20006C84: ret 0x10 */ 8426 RECOMP_REGS_OUT(); 8427 } 8428 8429 void sub_20006C90(void) { 8430 int _fpu_cmp = 0; 8431 uint32_t _cf = 0; 8432 int _df = 1; 8433 uint32_t _flag_k = FK_NONE; 8434 uint32_t _flag_a = 0, _flag_b = 0; 8435 uint32_t _itail_tgt = 0; 8436 RECOMP_REGS_LOCALS 8437 RECOMP_ENTER(0x20006C90u); 8438 8439 L_20006C90: 8440 PUSH32(esp, ebp); /* 0x20006C90: push ebp */ 8441 ebp = esp; /* 0x20006C91: mov ebp, esp */ 8442 edx = MEM32(ebp + 0x8); /* 0x20006C93: mov edx, dword ptr [ebp + 8] */ 8443 eax = MEM32(edx + 0x8); /* 0x20006C96: mov eax, dword ptr [edx + 8] */ 8444 PUSH32(esp, esi); /* 0x20006C99: push esi */ 8445 esi = MEM32(eax); /* 0x20006C9A: mov esi, dword ptr [eax] */ 8446 MEM32(edx + 0x8) = esi; /* 0x20006C9C: mov dword ptr [edx + 8], esi */ 8447 esi = MEM32(eax); /* 0x20006C9F: mov esi, dword ptr [eax] */ 8448 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x20006CA1: cmp esi, dword ptr [ecx + 8] */ 8449 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8451 _flag_k = FK_CMP; 8452 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006CA9; /* 0x20006CA4: je 0x20006ca9 */ 8453 L_20006CA6: 8454 MEM32(esi + 0x4) = edx; /* 0x20006CA6: mov dword ptr [esi + 4], edx */ 8455 L_20006CA9: 8456 esi = MEM32(edx + 0x4); /* 0x20006CA9: mov esi, dword ptr [edx + 4] */ 8457 MEM32(eax + 0x4) = esi; /* 0x20006CAC: mov dword ptr [eax + 4], esi */ 8458 ecx = MEM32(ecx + 0x4); /* 0x20006CAF: mov ecx, dword ptr [ecx + 4] */ 8459 /* cmp edx, MEM32(ecx + 0x4) */ /* 0x20006CB2: cmp edx, dword ptr [ecx + 4] */ 8460 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8462 _flag_k = FK_CMP; 8463 if (CMP_NE(_flag_a, _flag_b)) goto L_20006CC4; /* 0x20006CB5: jne 0x20006cc4 */ 8464 L_20006CB7: 8465 MEM32(ecx + 0x4) = eax; /* 0x20006CB7: mov dword ptr [ecx + 4], eax */ 8466 MEM32(eax) = edx; /* 0x20006CBA: mov dword ptr [eax], edx */ 8467 MEM32(edx + 0x4) = eax; /* 0x20006CBC: mov dword ptr [edx + 4], eax */ 8468 esi = POP32_VAL(esp); /* 0x20006CBF: pop esi */ 8469 ebp = POP32_VAL(esp); /* 0x20006CC0: pop ebp */ 8470 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20006CC1: ret 4 */ 8471 L_20006CC4: 8472 ecx = MEM32(edx + 0x4); /* 0x20006CC4: mov ecx, dword ptr [edx + 4] */ 8473 /* cmp edx, MEM32(ecx) */ /* 0x20006CC7: cmp edx, dword ptr [ecx] */ 8474 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx)); 8475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8476 _flag_k = FK_CMP; 8477 if (CMP_NE(_flag_a, _flag_b)) goto L_20006CD7; /* 0x20006CC9: jne 0x20006cd7 */ 8478 L_20006CCB: 8479 MEM32(ecx) = eax; /* 0x20006CCB: mov dword ptr [ecx], eax */ 8480 MEM32(eax) = edx; /* 0x20006CCD: mov dword ptr [eax], edx */ 8481 MEM32(edx + 0x4) = eax; /* 0x20006CCF: mov dword ptr [edx + 4], eax */ 8482 esi = POP32_VAL(esp); /* 0x20006CD2: pop esi */ 8483 ebp = POP32_VAL(esp); /* 0x20006CD3: pop ebp */ 8484 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20006CD4: ret 4 */ 8485 L_20006CD7: 8486 MEM32(ecx + 0x8) = eax; /* 0x20006CD7: mov dword ptr [ecx + 8], eax */ 8487 MEM32(eax) = edx; /* 0x20006CDA: mov dword ptr [eax], edx */ 8488 MEM32(edx + 0x4) = eax; /* 0x20006CDC: mov dword ptr [edx + 4], eax */ 8489 esi = POP32_VAL(esp); /* 0x20006CDF: pop esi */ 8490 ebp = POP32_VAL(esp); /* 0x20006CE0: pop ebp */ 8491 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20006CE1: ret 4 */ 8492 RECOMP_REGS_OUT(); 8493 } 8494 8495 void sub_20006CF0(void) { 8496 int _fpu_cmp = 0; 8497 uint32_t _cf = 0; 8498 int _df = 1; 8499 uint32_t _flag_k = FK_NONE; 8500 uint32_t _flag_a = 0, _flag_b = 0; 8501 uint32_t _itail_tgt = 0; 8502 RECOMP_REGS_LOCALS 8503 RECOMP_ENTER(0x20006CF0u); 8504 8505 L_20006CF0: 8506 PUSH32(esp, ebp); /* 0x20006CF0: push ebp */ 8507 ebp = esp; /* 0x20006CF1: mov ebp, esp */ 8508 edx = MEM32(ebp + 0x8); /* 0x20006CF3: mov edx, dword ptr [ebp + 8] */ 8509 eax = MEM32(edx); /* 0x20006CF6: mov eax, dword ptr [edx] */ 8510 PUSH32(esp, esi); /* 0x20006CF8: push esi */ 8511 esi = MEM32(eax + 0x8); /* 0x20006CF9: mov esi, dword ptr [eax + 8] */ 8512 MEM32(edx) = esi; /* 0x20006CFC: mov dword ptr [edx], esi */ 8513 esi = MEM32(eax + 0x8); /* 0x20006CFE: mov esi, dword ptr [eax + 8] */ 8514 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x20006D01: cmp esi, dword ptr [ecx + 8] */ 8515 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8517 _flag_k = FK_CMP; 8518 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006D09; /* 0x20006D04: je 0x20006d09 */ 8519 L_20006D06: 8520 MEM32(esi + 0x4) = edx; /* 0x20006D06: mov dword ptr [esi + 4], edx */ 8521 L_20006D09: 8522 esi = MEM32(edx + 0x4); /* 0x20006D09: mov esi, dword ptr [edx + 4] */ 8523 MEM32(eax + 0x4) = esi; /* 0x20006D0C: mov dword ptr [eax + 4], esi */ 8524 ecx = MEM32(ecx + 0x4); /* 0x20006D0F: mov ecx, dword ptr [ecx + 4] */ 8525 /* cmp edx, MEM32(ecx + 0x4) */ /* 0x20006D12: cmp edx, dword ptr [ecx + 4] */ 8526 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8528 _flag_k = FK_CMP; 8529 if (CMP_NE(_flag_a, _flag_b)) goto L_20006D25; /* 0x20006D15: jne 0x20006d25 */ 8530 L_20006D17: 8531 MEM32(ecx + 0x4) = eax; /* 0x20006D17: mov dword ptr [ecx + 4], eax */ 8532 MEM32(eax + 0x8) = edx; /* 0x20006D1A: mov dword ptr [eax + 8], edx */ 8533 MEM32(edx + 0x4) = eax; /* 0x20006D1D: mov dword ptr [edx + 4], eax */ 8534 esi = POP32_VAL(esp); /* 0x20006D20: pop esi */ 8535 ebp = POP32_VAL(esp); /* 0x20006D21: pop ebp */ 8536 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20006D22: ret 4 */ 8537 L_20006D25: 8538 ecx = MEM32(edx + 0x4); /* 0x20006D25: mov ecx, dword ptr [edx + 4] */ 8539 /* cmp edx, MEM32(ecx + 0x8) */ /* 0x20006D28: cmp edx, dword ptr [ecx + 8] */ 8540 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8542 _flag_k = FK_CMP; 8543 if (CMP_NE(_flag_a, _flag_b)) goto L_20006D3B; /* 0x20006D2B: jne 0x20006d3b */ 8544 L_20006D2D: 8545 MEM32(ecx + 0x8) = eax; /* 0x20006D2D: mov dword ptr [ecx + 8], eax */ 8546 MEM32(eax + 0x8) = edx; /* 0x20006D30: mov dword ptr [eax + 8], edx */ 8547 MEM32(edx + 0x4) = eax; /* 0x20006D33: mov dword ptr [edx + 4], eax */ 8548 esi = POP32_VAL(esp); /* 0x20006D36: pop esi */ 8549 ebp = POP32_VAL(esp); /* 0x20006D37: pop ebp */ 8550 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20006D38: ret 4 */ 8551 L_20006D3B: 8552 MEM32(ecx) = eax; /* 0x20006D3B: mov dword ptr [ecx], eax */ 8553 MEM32(eax + 0x8) = edx; /* 0x20006D3D: mov dword ptr [eax + 8], edx */ 8554 MEM32(edx + 0x4) = eax; /* 0x20006D40: mov dword ptr [edx + 4], eax */ 8555 esi = POP32_VAL(esp); /* 0x20006D43: pop esi */ 8556 ebp = POP32_VAL(esp); /* 0x20006D44: pop ebp */ 8557 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20006D45: ret 4 */ 8558 RECOMP_REGS_OUT(); 8559 } 8560 8561 void sub_20006D50(void) { 8562 int _fpu_cmp = 0; 8563 uint32_t _cf = 0; 8564 int _df = 1; 8565 uint32_t _flag_k = FK_NONE; 8566 uint32_t _flag_a = 0, _flag_b = 0; 8567 uint32_t _itail_tgt = 0; 8568 RECOMP_REGS_LOCALS 8569 RECOMP_ENTER(0x20006D50u); 8570 8571 L_20006D50: 8572 eax = MEM32(ecx); /* 0x20006D50: mov eax, dword ptr [ecx] */ 8573 SET_LO8(edx, MEM8(eax + 0x14)); /* 0x20006D52: mov dl, byte ptr [eax + 0x14] */ 8574 /* test LO8(edx), LO8(edx) */ /* 0x20006D55: test dl, dl */ 8575 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8576 _cf = 0; 8577 _flag_k = FK_NARROW(FK_TEST, 24); 8578 PUSH32(esp, ebx); /* 0x20006D57: push ebx */ 8579 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006D69; /* 0x20006D58: jne 0x20006d69 */ 8580 L_20006D5A: 8581 edx = MEM32(eax + 0x4); /* 0x20006D5A: mov edx, dword ptr [eax + 4] */ 8582 /* cmp MEM32(edx + 0x4), eax */ /* 0x20006D5D: cmp dword ptr [edx + 4], eax */ 8583 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(eax); 8584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8585 _flag_k = FK_CMP; 8586 if (CMP_NE(_flag_a, _flag_b)) goto L_20006D69; /* 0x20006D60: jne 0x20006d69 */ 8587 L_20006D62: 8588 eax = MEM32(eax + 0x8); /* 0x20006D62: mov eax, dword ptr [eax + 8] */ 8589 MEM32(ecx) = eax; /* 0x20006D65: mov dword ptr [ecx], eax */ 8590 ebx = POP32_VAL(esp); /* 0x20006D67: pop ebx */ 8591 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20006D68: ret */ 8592 L_20006D69: 8593 edx = MEM32(eax); /* 0x20006D69: mov edx, dword ptr [eax] */ 8594 SET_LO8(ebx, MEM8(edx + 0x15)); /* 0x20006D6B: mov bl, byte ptr [edx + 0x15] */ 8595 /* test LO8(ebx), LO8(ebx) */ /* 0x20006D6E: test bl, bl */ 8596 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8597 _cf = 0; 8598 _flag_k = FK_NARROW(FK_TEST, 24); 8599 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006D8C; /* 0x20006D70: jne 0x20006d8c */ 8600 L_20006D72: 8601 eax = MEM32(edx + 0x8); /* 0x20006D72: mov eax, dword ptr [edx + 8] */ 8602 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x20006D75: mov bl, byte ptr [eax + 0x15] */ 8603 /* test LO8(ebx), LO8(ebx) */ /* 0x20006D78: test bl, bl */ 8604 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8605 _cf = 0; 8606 _flag_k = FK_NARROW(FK_TEST, 24); 8607 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006D88; /* 0x20006D7A: jne 0x20006d88 */ 8608 L_20006D7C: 8609 edx = eax; /* 0x20006D7C: mov edx, eax */ 8610 eax = MEM32(edx + 0x8); /* 0x20006D7E: mov eax, dword ptr [edx + 8] */ 8611 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x20006D81: mov bl, byte ptr [eax + 0x15] */ 8612 /* test LO8(ebx), LO8(ebx) */ /* 0x20006D84: test bl, bl */ 8613 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8614 _cf = 0; 8615 _flag_k = FK_NARROW(FK_TEST, 24); 8616 RECOMP_BACKEDGE(); 8617 if (TEST_Z(_flag_a, _flag_b)) goto L_20006D7C; /* 0x20006D86: je 0x20006d7c */ 8618 L_20006D88: 8619 MEM32(ecx) = edx; /* 0x20006D88: mov dword ptr [ecx], edx */ 8620 ebx = POP32_VAL(esp); /* 0x20006D8A: pop ebx */ 8621 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20006D8B: ret */ 8622 L_20006D8C: 8623 eax = MEM32(eax + 0x4); /* 0x20006D8C: mov eax, dword ptr [eax + 4] */ 8624 edx = MEM32(ecx); /* 0x20006D8F: mov edx, dword ptr [ecx] */ 8625 /* cmp edx, MEM32(eax) */ /* 0x20006D91: cmp edx, dword ptr [eax] */ 8626 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 8627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8628 _flag_k = FK_CMP; 8629 if (CMP_NE(_flag_a, _flag_b)) goto L_20006DA0; /* 0x20006D93: jne 0x20006da0 */ 8630 L_20006D95: 8631 MEM32(ecx) = eax; /* 0x20006D95: mov dword ptr [ecx], eax */ 8632 eax = MEM32(eax + 0x4); /* 0x20006D97: mov eax, dword ptr [eax + 4] */ 8633 edx = MEM32(ecx); /* 0x20006D9A: mov edx, dword ptr [ecx] */ 8634 /* cmp edx, MEM32(eax) */ /* 0x20006D9C: cmp edx, dword ptr [eax] */ 8635 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 8636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8637 _flag_k = FK_CMP; 8638 RECOMP_BACKEDGE(); 8639 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006D95; /* 0x20006D9E: je 0x20006d95 */ 8640 L_20006DA0: 8641 MEM32(ecx) = eax; /* 0x20006DA0: mov dword ptr [ecx], eax */ 8642 ebx = POP32_VAL(esp); /* 0x20006DA2: pop ebx */ 8643 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20006DA3: ret */ 8644 RECOMP_REGS_OUT(); 8645 } 8646 8647 void sub_20006DB0(void) { 8648 int _fpu_cmp = 0; 8649 uint32_t _cf = 0; 8650 int _df = 1; 8651 uint32_t _flag_k = FK_NONE; 8652 uint32_t _flag_a = 0, _flag_b = 0; 8653 uint32_t _itail_tgt = 0; 8654 RECOMP_REGS_LOCALS 8655 RECOMP_ENTER(0x20006DB0u); 8656 8657 goto L_20006DB0; 8658 L_200010C0: 8659 PUSH32(esp, ebp); /* 0x200010C0: push ebp */ 8660 ebp = esp; /* 0x200010C1: mov ebp, esp */ 8661 PUSH32(esp, ecx); /* 0x200010C3: push ecx */ 8662 PUSH32(esp, edi); /* 0x200010C4: push edi */ 8663 edi = ecx; /* 0x200010C5: mov edi, ecx */ 8664 /* cmp MEM32(edi + 0x70C), 1 */ /* 0x200010C7: cmp dword ptr [edi + 0x70c], 1 */ 8665 _flag_a = (uint32_t)(MEM32(edi + 0x70C)); _flag_b = (uint32_t)(1); 8666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8667 _flag_k = FK_CMP; 8668 if (CMP_EQ(_flag_a, _flag_b)) goto L_200011AA; /* 0x200010CE: je 0x200011aa */ 8669 L_200010D4: 8670 eax = MEM32(edi + 0x710); /* 0x200010D4: mov eax, dword ptr [edi + 0x710] */ 8671 ecx = MEM32(edi + eax * 4); /* 0x200010DA: mov ecx, dword ptr [edi + eax*4] */ 8672 edx = MEM32(ecx + 0x4); /* 0x200010DD: mov edx, dword ptr [ecx + 4] */ 8673 eax = MEM32(edx); /* 0x200010E0: mov eax, dword ptr [edx] */ 8674 PUSH32(esp, ebx); /* 0x200010E2: push ebx */ 8675 ebx = MEM32(eax + 0x8); /* 0x200010E3: mov ebx, dword ptr [eax + 8] */ 8676 SET_LO8(eax, MEM8(ebx + 0x4)); /* 0x200010E6: mov al, byte ptr [ebx + 4] */ 8677 /* test LO8(eax), LO8(eax) */ /* 0x200010E9: test al, al */ 8678 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8679 _cf = 0; 8680 _flag_k = FK_NARROW(FK_TEST, 24); 8681 MEM32(ebp + (-0x4)) = ebx; /* 0x200010EB: mov dword ptr [ebp - 4], ebx */ 8682 if (TEST_Z(_flag_a, _flag_b)) goto L_200010FC; /* 0x200010EE: je 0x200010fc */ 8683 L_200010F0: 8684 eax = MEM32(ebx + 0x10); /* 0x200010F0: mov eax, dword ptr [ebx + 0x10] */ 8685 PUSH32(esp, eax); /* 0x200010F3: push eax */ 8686 RECOMP_ICALL(0x20007270u); /* 0x200010F4: call 0x20007270 */ /* not lifted */ 8687 RECOMP_FLAGS_IN(); 8688 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8690 esp = esp + 4; /* 0x200010F9: add esp, 4 */ 8691 _flag_k = FK_ADD; 8692 L_200010FC: 8693 PUSH32(esp, esi); /* 0x200010FC: push esi */ 8694 esi = MEM32(ebx + 0x14); /* 0x200010FD: mov esi, dword ptr [ebx + 0x14] */ 8695 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8696 edx = 0; /* 0x20001100: xor edx, edx */ 8697 _cf = 0; 8698 _flag_k = FK_TEST; 8699 /* cmp esi, edx */ /* 0x20001102: cmp esi, edx */ 8700 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 8701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8702 _flag_k = FK_CMP; 8703 if (CMP_EQ(_flag_a, _flag_b)) goto L_20001142; /* 0x20001104: je 0x20001142 */ 8704 L_20001106: 8705 eax = MEM32(esi + 0x4); /* 0x20001106: mov eax, dword ptr [esi + 4] */ 8706 /* cmp eax, edx */ /* 0x20001109: cmp eax, edx */ 8707 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8708 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8709 _flag_k = FK_CMP; 8710 if (CMP_EQ(_flag_a, _flag_b)) goto L_2000112B; /* 0x2000110B: je 0x2000112b */ 8711 L_2000110D: 8712 ecx = eax + (-0x1); /* 0x2000110D: lea ecx, [eax - 1] */ 8713 SET_LO8(eax, MEM8(ecx)); /* 0x20001110: mov al, byte ptr [ecx] */ 8714 /* test LO8(eax), LO8(eax) */ /* 0x20001112: test al, al */ 8715 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8716 _cf = 0; 8717 _flag_k = FK_NARROW(FK_TEST, 24); 8718 if (TEST_Z(_flag_a, _flag_b)) goto L_20001120; /* 0x20001114: je 0x20001120 */ 8719 L_20001116: 8720 /* cmp LO8(eax), 0xFFu */ /* 0x20001116: cmp al, 0xff */ 8721 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 8722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8723 _flag_k = FK_NARROW(FK_CMP, 24); 8724 if (CMP_EQ(_flag_a, _flag_b)) goto L_20001120; /* 0x20001118: je 0x20001120 */ 8725 L_2000111A: 8726 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8727 SET_LO8(eax, LO8(eax) - 1); /* 0x2000111A: dec al */ 8728 _flag_k = FK_NARROW(FK_DEC, 24); 8729 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2000111C: mov byte ptr [ecx], al */ 8730 goto L_2000112B; /* 0x2000111E: jmp 0x2000112b */ 8731 L_20001120: 8732 PUSH32(esp, ecx); /* 0x20001120: push ecx */ 8733 RECOMP_ICALL(0x20007270u); /* 0x20001121: call 0x20007270 */ /* not lifted */ 8734 RECOMP_FLAGS_IN(); 8735 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8736 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8737 esp = esp + 4; /* 0x20001126: add esp, 4 */ 8738 _flag_k = FK_ADD; 8739 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8740 edx = 0; /* 0x20001129: xor edx, edx */ 8741 _cf = 0; 8742 _flag_k = FK_TEST; 8743 L_2000112B: 8744 PUSH32(esp, esi); /* 0x2000112B: push esi */ 8745 MEM32(esi + 0x4) = edx; /* 0x2000112C: mov dword ptr [esi + 4], edx */ 8746 MEM32(esi + 0x8) = edx; /* 0x2000112F: mov dword ptr [esi + 8], edx */ 8747 MEM32(esi + 0xC) = edx; /* 0x20001132: mov dword ptr [esi + 0xc], edx */ 8748 RECOMP_ICALL(0x20007270u); /* 0x20001135: call 0x20007270 */ /* not lifted */ 8749 RECOMP_FLAGS_IN(); 8750 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8751 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8752 esp = esp + 4; /* 0x2000113A: add esp, 4 */ 8753 _flag_k = FK_ADD; 8754 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8755 edx = 0; /* 0x2000113D: xor edx, edx */ 8756 _cf = 0; 8757 _flag_k = FK_TEST; 8758 MEM32(ebx + 0x14) = edx; /* 0x2000113F: mov dword ptr [ebx + 0x14], edx */ 8759 L_20001142: 8760 ecx = MEM32(edi + 0x710); /* 0x20001142: mov ecx, dword ptr [edi + 0x710] */ 8761 esi = MEM32(edi + ecx * 4); /* 0x20001148: mov esi, dword ptr [edi + ecx*4] */ 8762 edx = MEM32(esi + 0x4); /* 0x2000114B: mov edx, dword ptr [esi + 4] */ 8763 eax = MEM32(edx); /* 0x2000114E: mov eax, dword ptr [edx] */ 8764 ecx = MEM32(eax + 0x4); /* 0x20001150: mov ecx, dword ptr [eax + 4] */ 8765 edx = MEM32(eax); /* 0x20001153: mov edx, dword ptr [eax] */ 8766 MEM32(ecx) = edx; /* 0x20001155: mov dword ptr [ecx], edx */ 8767 ecx = MEM32(eax); /* 0x20001157: mov ecx, dword ptr [eax] */ 8768 edx = MEM32(eax + 0x4); /* 0x20001159: mov edx, dword ptr [eax + 4] */ 8769 PUSH32(esp, eax); /* 0x2000115C: push eax */ 8770 MEM32(ecx + 0x4) = edx; /* 0x2000115D: mov dword ptr [ecx + 4], edx */ 8771 RECOMP_ICALL(0x20007270u); /* 0x20001160: call 0x20007270 */ /* not lifted */ 8772 RECOMP_FLAGS_IN(); 8773 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1); 8774 MEM32(esi + 0x8) = MEM32(esi + 0x8) - 1; /* 0x20001165: dec dword ptr [esi + 8] */ 8775 _flag_k = FK_DEC; 8776 ebx = MEM32(edi + 0x708); /* 0x20001168: mov ebx, dword ptr [edi + 0x708] */ 8777 esi = MEM32(ebx + 0x4); /* 0x2000116E: mov esi, dword ptr [ebx + 4] */ 8778 edi = MEM32(esi + 0x4); /* 0x20001171: mov edi, dword ptr [esi + 4] */ 8779 PUSH32(esp, 0xCu); /* 0x20001174: push 0xc */ 8780 RECOMP_ICALL(0x2000727Cu); /* 0x20001176: call 0x2000727c */ /* not lifted */ 8781 RECOMP_FLAGS_IN(); 8782 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8784 esp = esp + 8; /* 0x2000117B: add esp, 8 */ 8785 _flag_k = FK_ADD; 8786 /* test esi, esi */ /* 0x2000117E: test esi, esi */ 8787 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8788 _cf = 0; 8789 _flag_k = FK_TEST; 8790 ecx = esi; /* 0x20001180: mov ecx, esi */ 8791 if (TEST_NZ(_flag_a, _flag_b)) goto L_20001186; /* 0x20001182: jne 0x20001186 */ 8792 L_20001184: 8793 ecx = eax; /* 0x20001184: mov ecx, eax */ 8794 L_20001186: 8795 /* test edi, edi */ /* 0x20001186: test edi, edi */ 8796 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8797 _cf = 0; 8798 _flag_k = FK_TEST; 8799 MEM32(eax) = ecx; /* 0x20001188: mov dword ptr [eax], ecx */ 8800 if (TEST_NZ(_flag_a, _flag_b)) goto L_2000118E; /* 0x2000118A: jne 0x2000118e */ 8801 L_2000118C: 8802 edi = eax; /* 0x2000118C: mov edi, eax */ 8803 L_2000118E: 8804 MEM32(eax + 0x4) = edi; /* 0x2000118E: mov dword ptr [eax + 4], edi */ 8805 MEM32(esi + 0x4) = eax; /* 0x20001191: mov dword ptr [esi + 4], eax */ 8806 ecx = MEM32(eax + 0x4); /* 0x20001194: mov ecx, dword ptr [eax + 4] */ 8807 MEM32(ecx) = eax; /* 0x20001197: mov dword ptr [ecx], eax */ 8808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 8809 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8810 eax = eax + 8; /* 0x20001199: add eax, 8 */ 8811 _flag_k = FK_ADD; 8812 /* test eax, eax */ /* 0x2000119C: test eax, eax */ 8813 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8814 _cf = 0; 8815 _flag_k = FK_TEST; 8816 esi = POP32_VAL(esp); /* 0x2000119E: pop esi */ 8817 if (TEST_Z(_flag_a, _flag_b)) goto L_200011A6; /* 0x2000119F: je 0x200011a6 */ 8818 L_200011A1: 8819 edx = MEM32(ebp + (-0x4)); /* 0x200011A1: mov edx, dword ptr [ebp - 4] */ 8820 MEM32(eax) = edx; /* 0x200011A4: mov dword ptr [eax], edx */ 8821 L_200011A6: 8822 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(1); 8823 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 1; /* 0x200011A6: inc dword ptr [ebx + 8] */ 8824 _flag_k = FK_INC; 8825 ebx = POP32_VAL(esp); /* 0x200011A9: pop ebx */ 8826 L_200011AA: 8827 edi = POP32_VAL(esp); /* 0x200011AA: pop edi */ 8828 esp = ebp; /* 0x200011AB: mov esp, ebp */ 8829 ebp = POP32_VAL(esp); /* 0x200011AD: pop ebp */ 8830 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x200011AE: ret */ 8831 L_20005550: 8832 PUSH32(esp, esi); /* 0x20005550: push esi */ 8833 esi = ecx; /* 0x20005551: mov esi, ecx */ 8834 RECOMP_ICALL(0x20005580u); /* 0x20005553: call 0x20005580 */ /* not lifted */ 8835 RECOMP_FLAGS_IN(); 8836 /* test eax, eax */ /* 0x20005558: test eax, eax */ 8837 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8838 _cf = 0; 8839 _flag_k = FK_TEST; 8840 if (TEST_Z(_flag_a, _flag_b)) goto L_20005569; /* 0x2000555A: je 0x20005569 */ 8841 L_2000555C: 8842 eax = MEM32(eax + 0x4); /* 0x2000555C: mov eax, dword ptr [eax + 4] */ 8843 PUSH32(esp, eax); /* 0x2000555F: push eax */ 8844 ecx = esi; /* 0x20005560: mov ecx, esi */ 8845 RECOMP_ICALL(0x20001D30u); /* 0x20005562: call 0x20001d30 */ /* not lifted */ 8846 RECOMP_FLAGS_IN(); 8847 esi = POP32_VAL(esp); /* 0x20005567: pop esi */ 8848 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005568: ret */ 8849 L_20005569: 8850 PUSH32(esp, 0); /* 0x20005569: push 0 */ 8851 ecx = esi; /* 0x2000556B: mov ecx, esi */ 8852 RECOMP_ICALL(0x20001D30u); /* 0x2000556D: call 0x20001d30 */ /* not lifted */ 8853 RECOMP_FLAGS_IN(); 8854 esi = POP32_VAL(esp); /* 0x20005572: pop esi */ 8855 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20005573: ret */ 8856 L_20006DB0: 8857 RECOMP_ICALL(0x20001A90u); /* 0x20006DB0: call 0x20001a90 */ /* not lifted */ 8858 RECOMP_FLAGS_IN(); 8859 ecx = eax; /* 0x20006DB5: mov ecx, eax */ 8860 RECOMP_ICALL(0x20001090u); /* 0x20006DB7: call 0x20001090 */ /* not lifted */ 8861 RECOMP_FLAGS_IN(); 8862 /* test eax, eax */ /* 0x20006DBC: test eax, eax */ 8863 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8864 _cf = 0; 8865 _flag_k = FK_TEST; 8866 if (TEST_Z(_flag_a, _flag_b)) goto L_20006DED; /* 0x20006DBE: je 0x20006ded */ 8867 L_20006DC0: 8868 /* cmp eax, 5 */ /* 0x20006DC0: cmp eax, 5 */ 8869 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5); 8870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8871 _flag_k = FK_CMP; 8872 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006E0E; /* 0x20006DC3: je 0x20006e0e */ 8873 L_20006DC5: 8874 /* cmp eax, 6 */ /* 0x20006DC5: cmp eax, 6 */ 8875 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 8876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8877 _flag_k = FK_CMP; 8878 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006E1F; /* 0x20006DC8: je 0x20006e1f */ 8879 L_20006DCA: 8880 /* cmp eax, 0x258u */ /* 0x20006DCA: cmp eax, 0x258 */ 8881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x258u); 8882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8883 _flag_k = FK_CMP; 8884 if (CMP_EQ(_flag_a, _flag_b)) goto L_20006E49; /* 0x20006DCF: je 0x20006e49 */ 8885 L_20006DD1: 8886 RECOMP_ICALL(0x20001A90u); /* 0x20006DD1: call 0x20001a90 */ /* not lifted */ 8887 RECOMP_FLAGS_IN(); 8888 ecx = eax; /* 0x20006DD6: mov ecx, eax */ 8889 RECOMP_ICALL(0x200010C0u); /* 0x20006DD8: call 0x200010c0 */ /* not lifted */ 8890 RECOMP_FLAGS_IN(); 8891 RECOMP_ICALL(0x20001A90u); /* 0x20006DDD: call 0x20001a90 */ /* not lifted */ 8892 RECOMP_FLAGS_IN(); 8893 ecx = eax; /* 0x20006DE2: mov ecx, eax */ 8894 RECOMP_ICALL(0x20001090u); /* 0x20006DE4: call 0x20001090 */ /* not lifted */ 8895 RECOMP_FLAGS_IN(); 8896 /* test eax, eax */ /* 0x20006DE9: test eax, eax */ 8897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8898 _cf = 0; 8899 _flag_k = FK_TEST; 8900 RECOMP_BACKEDGE(); 8901 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006DC0; /* 0x20006DEB: jne 0x20006dc0 */ 8902 L_20006DED: 8903 RECOMP_ICALL(0x20006EE0u); /* 0x20006DED: call 0x20006ee0 */ /* not lifted */ 8904 RECOMP_FLAGS_IN(); 8905 /* test eax, eax */ /* 0x20006DF2: test eax, eax */ 8906 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8907 _cf = 0; 8908 _flag_k = FK_TEST; 8909 if (TEST_Z(_flag_a, _flag_b)) goto L_20006E02; /* 0x20006DF4: je 0x20006e02 */ 8910 L_20006DF6: 8911 RECOMP_ICALL(0x20006E70u); /* 0x20006DF6: call 0x20006e70 */ /* not lifted */ 8912 RECOMP_FLAGS_IN(); 8913 ecx = eax; /* 0x20006DFB: mov ecx, eax */ 8914 RECOMP_ICALL(0x20006EF0u); /* 0x20006DFD: call 0x20006ef0 */ /* not lifted */ 8915 RECOMP_FLAGS_IN(); 8916 L_20006E02: 8917 RECOMP_ICALL(0x20001A90u); /* 0x20006E02: call 0x20001a90 */ /* not lifted */ 8918 RECOMP_FLAGS_IN(); 8919 ecx = eax; /* 0x20006E07: mov ecx, eax */ 8920 RECOMP_BACKEDGE(); 8921 goto L_20005550; /* 0x20006E09: jmp 0x20005550 */ 8922 L_20006E0E: 8923 RECOMP_ICALL(0x20006E70u); /* 0x20006E0E: call 0x20006e70 */ /* not lifted */ 8924 RECOMP_FLAGS_IN(); 8925 RECOMP_ICALL(0x20001A90u); /* 0x20006E13: call 0x20001a90 */ /* not lifted */ 8926 RECOMP_FLAGS_IN(); 8927 ecx = eax; /* 0x20006E18: mov ecx, eax */ 8928 RECOMP_BACKEDGE(); 8929 goto L_200010C0; /* 0x20006E1A: jmp 0x200010c0 */ 8930 L_20006E1F: 8931 PUSH32(esp, esi); /* 0x20006E1F: push esi */ 8932 RECOMP_ICALL(0x20006E70u); /* 0x20006E20: call 0x20006e70 */ /* not lifted */ 8933 RECOMP_FLAGS_IN(); 8934 esi = eax; /* 0x20006E25: mov esi, eax */ 8935 /* test esi, esi */ /* 0x20006E27: test esi, esi */ 8936 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8937 _cf = 0; 8938 _flag_k = FK_TEST; 8939 if (TEST_Z(_flag_a, _flag_b)) goto L_20006E3B; /* 0x20006E29: je 0x20006e3b */ 8940 L_20006E2B: 8941 ecx = esi; /* 0x20006E2B: mov ecx, esi */ 8942 RECOMP_ICALL(0x200070C0u); /* 0x20006E2D: call 0x200070c0 */ /* not lifted */ 8943 RECOMP_FLAGS_IN(); 8944 PUSH32(esp, esi); /* 0x20006E32: push esi */ 8945 RECOMP_ICALL(0x20007270u); /* 0x20006E33: call 0x20007270 */ /* not lifted */ 8946 RECOMP_FLAGS_IN(); 8947 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8948 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8949 esp = esp + 4; /* 0x20006E38: add esp, 4 */ 8950 _flag_k = FK_ADD; 8951 L_20006E3B: 8952 RECOMP_ICALL(0x20001A90u); /* 0x20006E3B: call 0x20001a90 */ /* not lifted */ 8953 RECOMP_FLAGS_IN(); 8954 ecx = eax; /* 0x20006E40: mov ecx, eax */ 8955 RECOMP_ICALL(0x200010C0u); /* 0x20006E42: call 0x200010c0 */ /* not lifted */ 8956 RECOMP_FLAGS_IN(); 8957 esi = POP32_VAL(esp); /* 0x20006E47: pop esi */ 8958 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20006E48: ret */ 8959 L_20006E49: 8960 PUSH32(esp, 0x20015CCCu); /* 0x20006E49: push 0x20015ccc */ 8961 RECOMP_ICALL(0x20001A90u); /* 0x20006E4E: call 0x20001a90 */ /* not lifted */ 8962 RECOMP_FLAGS_IN(); 8963 ecx = eax; /* 0x20006E53: mov ecx, eax */ 8964 RECOMP_ICALL(0x20002E20u); /* 0x20006E55: call 0x20002e20 */ /* not lifted */ 8965 RECOMP_FLAGS_IN(); 8966 RECOMP_ICALL(0x20001A90u); /* 0x20006E5A: call 0x20001a90 */ /* not lifted */ 8967 RECOMP_FLAGS_IN(); 8968 ecx = eax; /* 0x20006E5F: mov ecx, eax */ 8969 RECOMP_BACKEDGE(); 8970 goto L_200010C0; /* 0x20006E61: jmp 0x200010c0 */ 8971 { RECOMP_REGS_OUT(); return; } /* end of function */ 8972 RECOMP_REGS_OUT(); 8973 } 8974 8975 void sub_20006E70(void) { 8976 int _fpu_cmp = 0; 8977 uint32_t _cf = 0; 8978 int _df = 1; 8979 uint32_t _flag_k = FK_NONE; 8980 uint32_t _flag_a = 0, _flag_b = 0; 8981 uint32_t _itail_tgt = 0; 8982 RECOMP_REGS_LOCALS 8983 RECOMP_ENTER(0x20006E70u); 8984 8985 L_20006E70: 8986 PUSH32(esp, ebp); /* 0x20006E70: push ebp */ 8987 ebp = esp; /* 0x20006E71: mov ebp, esp */ 8988 PUSH32(esp, 0xFFFFFFFFu); /* 0x20006E73: push -1 */ 8989 PUSH32(esp, 0x2000771Bu); /* 0x20006E75: push 0x2000771b */ 8990 eax = MEM32(FS_BASE + (0)); /* 0x20006E7A: mov eax, dword ptr fs:[0] */ 8991 PUSH32(esp, eax); /* 0x20006E80: push eax */ 8992 MEM32(FS_BASE + (0)) = esp; /* 0x20006E81: mov dword ptr fs:[0], esp */ 8993 PUSH32(esp, ecx); /* 0x20006E88: push ecx */ 8994 eax = MEM32(0x20015CFC); /* 0x20006E89: mov eax, dword ptr [0x20015cfc] */ 8995 /* test eax, eax */ /* 0x20006E8E: test eax, eax */ 8996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8997 _cf = 0; 8998 _flag_k = FK_TEST; 8999 if (TEST_NZ(_flag_a, _flag_b)) goto L_20006ECB; /* 0x20006E90: jne 0x20006ecb */ 9000 L_20006E92: 9001 PUSH32(esp, 0x2Cu); /* 0x20006E92: push 0x2c */ 9002 RECOMP_ICALL(0x2000727Cu); /* 0x20006E94: call 0x2000727c */ /* not lifted */ 9003 RECOMP_FLAGS_IN(); 9004 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9006 esp = esp + 4; /* 0x20006E99: add esp, 4 */ 9007 _flag_k = FK_ADD; 9008 MEM32(ebp + (-0x10)) = eax; /* 0x20006E9C: mov dword ptr [ebp - 0x10], eax */ 9009 /* test eax, eax */ /* 0x20006E9F: test eax, eax */ 9010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9011 _cf = 0; 9012 _flag_k = FK_TEST; 9013 MEM32(ebp + (-0x4)) = 0; /* 0x20006EA1: mov dword ptr [ebp - 4], 0 */ 9014 if (TEST_Z(_flag_a, _flag_b)) goto L_20006EC4; /* 0x20006EA8: je 0x20006ec4 */ 9015 L_20006EAA: 9016 ecx = eax; /* 0x20006EAA: mov ecx, eax */ 9017 RECOMP_ICALL(0x200070E0u); /* 0x20006EAC: call 0x200070e0 */ /* not lifted */ 9018 RECOMP_FLAGS_IN(); 9019 MEM32(0x20015CFC) = eax; /* 0x20006EB1: mov dword ptr [0x20015cfc], eax */ 9020 ecx = MEM32(ebp + (-0xC)); /* 0x20006EB6: mov ecx, dword ptr [ebp - 0xc] */ 9021 MEM32(FS_BASE + (0)) = ecx; /* 0x20006EB9: mov dword ptr fs:[0], ecx */ 9022 esp = ebp; /* 0x20006EC0: mov esp, ebp */ 9023 ebp = POP32_VAL(esp); /* 0x20006EC2: pop ebp */ 9024 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20006EC3: ret */ 9025 L_20006EC4: 9026 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9027 eax = 0; /* 0x20006EC4: xor eax, eax */ 9028 _cf = 0; 9029 _flag_k = FK_TEST; 9030 MEM32(0x20015CFC) = eax; /* 0x20006EC6: mov dword ptr [0x20015cfc], eax */ 9031 L_20006ECB: 9032 ecx = MEM32(ebp + (-0xC)); /* 0x20006ECB: mov ecx, dword ptr [ebp - 0xc] */ 9033 MEM32(FS_BASE + (0)) = ecx; /* 0x20006ECE: mov dword ptr fs:[0], ecx */ 9034 esp = ebp; /* 0x20006ED5: mov esp, ebp */ 9035 ebp = POP32_VAL(esp); /* 0x20006ED7: pop ebp */ 9036 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20006ED8: ret */ 9037 RECOMP_REGS_OUT(); 9038 }