client/game/ggr.dll/lifted-0005.c (1286463B)
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_3000F6B0(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(0x3000F6B0u); 17 18 L_3000F6B0: 19 PUSH32(esp, ebp); /* 0x3000F6B0: push ebp */ 20 ebp = esp; /* 0x3000F6B1: mov ebp, esp */ 21 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 22 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23 esp = esp - 0x20u; /* 0x3000F6B3: sub esp, 0x20 */ 24 _flag_k = FK_CMP; 25 PUSH32(esp, esi); /* 0x3000F6B6: push esi */ 26 esi = ecx; /* 0x3000F6B7: mov esi, ecx */ 27 ecx = MEM32(esi + 0x10); /* 0x3000F6B9: mov ecx, dword ptr [esi + 0x10] */ 28 /* test ecx, ecx */ /* 0x3000F6BC: test ecx, ecx */ 29 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 30 _cf = 0; 31 _flag_k = FK_TEST; 32 if (TEST_NZ(_flag_a, _flag_b)) goto L_3000F709; /* 0x3000F6BE: jne 0x3000f709 */ 33 L_3000F6C0: 34 eax = MEM32(ebp + 0x8); /* 0x3000F6C0: mov eax, dword ptr [ebp + 8] */ 35 MEM32(eax) = ecx; /* 0x3000F6C3: mov dword ptr [eax], ecx */ 36 ecx = MEM32(ebp + 0xC); /* 0x3000F6C5: mov ecx, dword ptr [ebp + 0xc] */ 37 MEM32(ecx) = 1; /* 0x3000F6C8: mov dword ptr [ecx], 1 */ 38 eax = MEM32(esi + 0x4); /* 0x3000F6CE: mov eax, dword ptr [esi + 4] */ 39 /* test eax, eax */ /* 0x3000F6D1: test eax, eax */ 40 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 41 _cf = 0; 42 _flag_k = FK_TEST; 43 if (TEST_NZ(_flag_a, _flag_b)) goto L_3000F6EC; /* 0x3000F6D3: jne 0x3000f6ec */ 44 L_3000F6D5: 45 edx = MEM32(ebp + 0x14); /* 0x3000F6D5: mov edx, dword ptr [ebp + 0x14] */ 46 eax = MEM32(ebp + 0x10); /* 0x3000F6D8: mov eax, dword ptr [ebp + 0x10] */ 47 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 48 esi = 0; /* 0x3000F6DB: xor esi, esi */ 49 _cf = 0; 50 _flag_k = FK_TEST; 51 MEM32(edx) = esi; /* 0x3000F6DD: mov dword ptr [edx], esi */ 52 MEM32(eax) = 1; /* 0x3000F6DF: mov dword ptr [eax], 1 */ 53 esi = POP32_VAL(esp); /* 0x3000F6E5: pop esi */ 54 esp = ebp; /* 0x3000F6E6: mov esp, ebp */ 55 ebp = POP32_VAL(esp); /* 0x3000F6E8: pop ebp */ 56 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3000F6E9: ret 0x10 */ 57 L_3000F6EC: 58 esi = MEM32(esi + 0x8); /* 0x3000F6EC: mov esi, dword ptr [esi + 8] */ 59 edx = MEM32(ebp + 0x14); /* 0x3000F6EF: mov edx, dword ptr [ebp + 0x14] */ 60 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 61 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 62 esi = esi - eax; /* 0x3000F6F2: sub esi, eax */ 63 _flag_k = FK_CMP; 64 eax = MEM32(ebp + 0x10); /* 0x3000F6F4: mov eax, dword ptr [ebp + 0x10] */ 65 if (2u) _cf = (((esi) >> 1) & 1u); /* 0x3000F6F7: sar esi, 2 */ 66 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 67 esi = (uint32_t)((int32_t)esi >> 2u); 68 MEM32(edx) = esi; /* 0x3000F6FA: mov dword ptr [edx], esi */ 69 MEM32(eax) = 1; /* 0x3000F6FC: mov dword ptr [eax], 1 */ 70 esi = POP32_VAL(esp); /* 0x3000F702: pop esi */ 71 esp = ebp; /* 0x3000F703: mov esp, ebp */ 72 ebp = POP32_VAL(esp); /* 0x3000F705: pop ebp */ 73 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3000F706: ret 0x10 */ 74 L_3000F709: 75 edx = ebp + (-0x1C); /* 0x3000F709: lea edx, [ebp - 0x1c] */ 76 eax = ebp + (-0x14); /* 0x3000F70C: lea eax, [ebp - 0x14] */ 77 PUSH32(esp, edx); /* 0x3000F70F: push edx */ 78 PUSH32(esp, eax); /* 0x3000F710: push eax */ 79 edx = ebp + (-0xC); /* 0x3000F711: lea edx, [ebp - 0xc] */ 80 eax = ebp + (-0x8); /* 0x3000F714: lea eax, [ebp - 8] */ 81 PUSH32(esp, edx); /* 0x3000F717: push edx */ 82 PUSH32(esp, eax); /* 0x3000F718: push eax */ 83 RECOMP_ICALL(0x3000F6B0u); /* 0x3000F719: call 0x3000f6b0 */ /* not lifted */ 84 RECOMP_FLAGS_IN(); 85 ecx = ebp + (-0x20); /* 0x3000F71E: lea ecx, [ebp - 0x20] */ 86 edx = ebp + (-0x18); /* 0x3000F721: lea edx, [ebp - 0x18] */ 87 PUSH32(esp, ecx); /* 0x3000F724: push ecx */ 88 eax = ebp + (-0x10); /* 0x3000F725: lea eax, [ebp - 0x10] */ 89 PUSH32(esp, edx); /* 0x3000F728: push edx */ 90 ecx = ebp + (-0x4); /* 0x3000F729: lea ecx, [ebp - 4] */ 91 PUSH32(esp, eax); /* 0x3000F72C: push eax */ 92 PUSH32(esp, ecx); /* 0x3000F72D: push ecx */ 93 ecx = MEM32(esi + 0x14); /* 0x3000F72E: mov ecx, dword ptr [esi + 0x14] */ 94 RECOMP_ICALL(0x3000F6B0u); /* 0x3000F731: call 0x3000f6b0 */ /* not lifted */ 95 RECOMP_FLAGS_IN(); 96 eax = MEM32(ebp + (-0x4)); /* 0x3000F736: mov eax, dword ptr [ebp - 4] */ 97 ecx = MEM32(ebp + (-0x8)); /* 0x3000F739: mov ecx, dword ptr [ebp - 8] */ 98 /* cmp eax, ecx */ /* 0x3000F73C: cmp eax, ecx */ 99 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 101 _flag_k = FK_CMP; 102 if (CMP_LE(_flag_a, _flag_b)) goto L_3000F743; /* 0x3000F73E: jle 0x3000f743 */ 103 L_3000F740: 104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 105 eax = eax + 1; /* 0x3000F740: inc eax */ 106 _flag_k = FK_INC; 107 goto L_3000F746; /* 0x3000F741: jmp 0x3000f746 */ 108 L_3000F743: 109 eax = ecx + 0x1; /* 0x3000F743: lea eax, [ecx + 1] */ 110 L_3000F746: 111 edx = MEM32(ebp + 0x8); /* 0x3000F746: mov edx, dword ptr [ebp + 8] */ 112 ecx = MEM32(ebp + (-0x10)); /* 0x3000F749: mov ecx, dword ptr [ebp - 0x10] */ 113 esi = POP32_VAL(esp); /* 0x3000F74C: pop esi */ 114 MEM32(edx) = eax; /* 0x3000F74D: mov dword ptr [edx], eax */ 115 eax = MEM32(ebp + (-0xC)); /* 0x3000F74F: mov eax, dword ptr [ebp - 0xc] */ 116 edx = MEM32(ebp + 0xC); /* 0x3000F752: mov edx, dword ptr [ebp + 0xc] */ 117 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 119 ecx = ecx + eax; /* 0x3000F755: add ecx, eax */ 120 _flag_k = FK_ADD; 121 eax = MEM32(ebp + (-0x14)); /* 0x3000F757: mov eax, dword ptr [ebp - 0x14] */ 122 MEM32(edx) = ecx; /* 0x3000F75A: mov dword ptr [edx], ecx */ 123 ecx = MEM32(ebp + (-0x18)); /* 0x3000F75C: mov ecx, dword ptr [ebp - 0x18] */ 124 edx = ecx + eax + 0x1; /* 0x3000F75F: lea edx, [ecx + eax + 1] */ 125 eax = MEM32(ebp + 0x10); /* 0x3000F763: mov eax, dword ptr [ebp + 0x10] */ 126 ecx = MEM32(ebp + (-0x1C)); /* 0x3000F766: mov ecx, dword ptr [ebp - 0x1c] */ 127 MEM32(eax) = edx; /* 0x3000F769: mov dword ptr [eax], edx */ 128 edx = MEM32(ebp + (-0x20)); /* 0x3000F76B: mov edx, dword ptr [ebp - 0x20] */ 129 eax = MEM32(ebp + 0x14); /* 0x3000F76E: mov eax, dword ptr [ebp + 0x14] */ 130 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 131 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 132 edx = edx + ecx; /* 0x3000F771: add edx, ecx */ 133 _flag_k = FK_ADD; 134 MEM32(eax) = edx; /* 0x3000F773: mov dword ptr [eax], edx */ 135 esp = ebp; /* 0x3000F775: mov esp, ebp */ 136 ebp = POP32_VAL(esp); /* 0x3000F777: pop ebp */ 137 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3000F778: ret 0x10 */ 138 RECOMP_REGS_OUT(); 139 } 140 141 void sub_3000F780(void) { 142 int _fpu_cmp = 0; 143 uint32_t _cf = 0; 144 int _df = 1; 145 uint32_t _flag_k = FK_NONE; 146 uint32_t _flag_a = 0, _flag_b = 0; 147 uint32_t _itail_tgt = 0; 148 RECOMP_REGS_LOCALS 149 RECOMP_ENTER(0x3000F780u); 150 151 L_3000F780: 152 PUSH32(esp, ebp); /* 0x3000F780: push ebp */ 153 ebp = esp; /* 0x3000F781: mov ebp, esp */ 154 PUSH32(esp, 0xFFFFFFFFu); /* 0x3000F783: push -1 */ 155 PUSH32(esp, 0x30018A2Bu); /* 0x3000F785: push 0x30018a2b */ 156 eax = MEM32(FS_BASE + (0)); /* 0x3000F78A: mov eax, dword ptr fs:[0] */ 157 PUSH32(esp, eax); /* 0x3000F790: push eax */ 158 MEM32(FS_BASE + (0)) = esp; /* 0x3000F791: mov dword ptr fs:[0], esp */ 159 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 160 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 161 esp = esp - 8; /* 0x3000F798: sub esp, 8 */ 162 _flag_k = FK_CMP; 163 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3000F79B: mov al, byte ptr [ebp - 0xd] */ 164 PUSH32(esp, ebx); /* 0x3000F79E: push ebx */ 165 PUSH32(esp, esi); /* 0x3000F79F: push esi */ 166 esi = ecx; /* 0x3000F7A0: mov esi, ecx */ 167 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3000F7A2: mov cl, byte ptr [ebp - 0xd] */ 168 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 169 ebx = 0; /* 0x3000F7A5: xor ebx, ebx */ 170 _cf = 0; 171 _flag_k = FK_TEST; 172 PUSH32(esp, edi); /* 0x3000F7A7: push edi */ 173 MEM8(esi) = (uint8_t)(LO8(ebx)); /* 0x3000F7A8: mov byte ptr [esi], bl */ 174 MEM32(esi + 0x4) = ebx; /* 0x3000F7AA: mov dword ptr [esi + 4], ebx */ 175 MEM32(esi + 0x8) = ebx; /* 0x3000F7AD: mov dword ptr [esi + 8], ebx */ 176 PUSH32(esp, 0x20u); /* 0x3000F7B0: push 0x20 */ 177 MEM32(ebp + (-0x14)) = esi; /* 0x3000F7B2: mov dword ptr [ebp - 0x14], esi */ 178 MEM8(esi + 0xC) = (uint8_t)(LO8(eax)); /* 0x3000F7B5: mov byte ptr [esi + 0xc], al */ 179 MEM8(esi + 0xD) = (uint8_t)(LO8(ecx)); /* 0x3000F7B8: mov byte ptr [esi + 0xd], cl */ 180 MEM8(esi + 0x18) = (uint8_t)(LO8(ebx)); /* 0x3000F7BB: mov byte ptr [esi + 0x18], bl */ 181 RECOMP_ICALL(0x300180A8u); /* 0x3000F7BE: call 0x300180a8 */ /* not lifted */ 182 RECOMP_FLAGS_IN(); 183 SET_LO8(ecx, 1); /* 0x3000F7C3: mov cl, 1 */ 184 MEM32(eax + 0x4) = ebx; /* 0x3000F7C5: mov dword ptr [eax + 4], ebx */ 185 MEM8(eax + 0x1C) = (uint8_t)(LO8(ecx)); /* 0x3000F7C8: mov byte ptr [eax + 0x1c], cl */ 186 MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x3000F7CB: mov byte ptr [eax + 0x1d], bl */ 187 MEM32(esi + 0x14) = eax; /* 0x3000F7CE: mov dword ptr [esi + 0x14], eax */ 188 MEM8(eax + 0x1D) = (uint8_t)(LO8(ecx)); /* 0x3000F7D1: mov byte ptr [eax + 0x1d], cl */ 189 eax = MEM32(esi + 0x14); /* 0x3000F7D4: mov eax, dword ptr [esi + 0x14] */ 190 PUSH32(esp, 0x20u); /* 0x3000F7D7: push 0x20 */ 191 MEM32(eax) = ebx; /* 0x3000F7D9: mov dword ptr [eax], ebx */ 192 edx = MEM32(esi + 0x14); /* 0x3000F7DB: mov edx, dword ptr [esi + 0x14] */ 193 MEM32(edx + 0x8) = ebx; /* 0x3000F7DE: mov dword ptr [edx + 8], ebx */ 194 edi = MEM32(esi + 0x14); /* 0x3000F7E1: mov edi, dword ptr [esi + 0x14] */ 195 RECOMP_ICALL(0x300180A8u); /* 0x3000F7E4: call 0x300180a8 */ /* not lifted */ 196 RECOMP_FLAGS_IN(); 197 MEM32(eax + 0x4) = edi; /* 0x3000F7E9: mov dword ptr [eax + 4], edi */ 198 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3000F7EC: mov byte ptr [eax + 0x1c], bl */ 199 MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x3000F7EF: mov byte ptr [eax + 0x1d], bl */ 200 MEM32(esi + 0x10) = eax; /* 0x3000F7F2: mov dword ptr [esi + 0x10], eax */ 201 MEM32(eax) = eax; /* 0x3000F7F5: mov dword ptr [eax], eax */ 202 eax = MEM32(esi + 0x10); /* 0x3000F7F7: mov eax, dword ptr [esi + 0x10] */ 203 MEM32(eax + 0x8) = eax; /* 0x3000F7FA: mov dword ptr [eax + 8], eax */ 204 MEM32(esi + 0x1C) = ebx; /* 0x3000F7FD: mov dword ptr [esi + 0x1c], ebx */ 205 PUSH32(esp, 0x38u); /* 0x3000F800: push 0x38 */ 206 MEM32(ebp + (-0x4)) = ebx; /* 0x3000F802: mov dword ptr [ebp - 4], ebx */ 207 RECOMP_ICALL(0x300180A8u); /* 0x3000F805: call 0x300180a8 */ /* not lifted */ 208 RECOMP_FLAGS_IN(); 209 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 210 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 211 esp = esp + 0xCu; /* 0x3000F80A: add esp, 0xc */ 212 _flag_k = FK_ADD; 213 /* cmp eax, ebx */ /* 0x3000F80D: cmp eax, ebx */ 214 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 216 _flag_k = FK_CMP; 217 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F82E; /* 0x3000F80F: je 0x3000f82e */ 218 L_3000F811: 219 ecx = eax; /* 0x3000F811: mov ecx, eax */ 220 RECOMP_ICALL(0x3000F3A0u); /* 0x3000F813: call 0x3000f3a0 */ /* not lifted */ 221 RECOMP_FLAGS_IN(); 222 MEM32(esi + 0x8) = eax; /* 0x3000F818: mov dword ptr [esi + 8], eax */ 223 eax = esi; /* 0x3000F81B: mov eax, esi */ 224 edi = POP32_VAL(esp); /* 0x3000F81D: pop edi */ 225 esi = POP32_VAL(esp); /* 0x3000F81E: pop esi */ 226 ebx = POP32_VAL(esp); /* 0x3000F81F: pop ebx */ 227 ecx = MEM32(ebp + (-0xC)); /* 0x3000F820: mov ecx, dword ptr [ebp - 0xc] */ 228 MEM32(FS_BASE + (0)) = ecx; /* 0x3000F823: mov dword ptr fs:[0], ecx */ 229 esp = ebp; /* 0x3000F82A: mov esp, ebp */ 230 ebp = POP32_VAL(esp); /* 0x3000F82C: pop ebp */ 231 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000F82D: ret */ 232 L_3000F82E: 233 ecx = MEM32(ebp + (-0xC)); /* 0x3000F82E: mov ecx, dword ptr [ebp - 0xc] */ 234 MEM32(esi + 0x8) = ebx; /* 0x3000F831: mov dword ptr [esi + 8], ebx */ 235 eax = esi; /* 0x3000F834: mov eax, esi */ 236 edi = POP32_VAL(esp); /* 0x3000F836: pop edi */ 237 esi = POP32_VAL(esp); /* 0x3000F837: pop esi */ 238 ebx = POP32_VAL(esp); /* 0x3000F838: pop ebx */ 239 MEM32(FS_BASE + (0)) = ecx; /* 0x3000F839: mov dword ptr fs:[0], ecx */ 240 esp = ebp; /* 0x3000F840: mov esp, ebp */ 241 ebp = POP32_VAL(esp); /* 0x3000F842: pop ebp */ 242 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000F843: ret */ 243 RECOMP_REGS_OUT(); 244 } 245 246 void sub_3000F850(void) { 247 int _fpu_cmp = 0; 248 uint32_t _cf = 0; 249 int _df = 1; 250 uint32_t _flag_k = FK_NONE; 251 uint32_t _flag_a = 0, _flag_b = 0; 252 uint32_t _itail_tgt = 0; 253 RECOMP_REGS_LOCALS 254 RECOMP_ENTER(0x3000F850u); 255 256 L_3000F850: 257 PUSH32(esp, ebp); /* 0x3000F850: push ebp */ 258 ebp = esp; /* 0x3000F851: mov ebp, esp */ 259 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 261 esp = esp - 8; /* 0x3000F853: sub esp, 8 */ 262 _flag_k = FK_CMP; 263 PUSH32(esp, ebx); /* 0x3000F856: push ebx */ 264 PUSH32(esp, esi); /* 0x3000F857: push esi */ 265 esi = ecx; /* 0x3000F858: mov esi, ecx */ 266 PUSH32(esp, edi); /* 0x3000F85A: push edi */ 267 edi = MEM32(esi + 0x4); /* 0x3000F85B: mov edi, dword ptr [esi + 4] */ 268 ecx = MEM32(esi + 0x10); /* 0x3000F85E: mov ecx, dword ptr [esi + 0x10] */ 269 /* test ecx, ecx */ /* 0x3000F861: test ecx, ecx */ 270 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 271 _cf = 0; 272 _flag_k = FK_TEST; 273 eax = MEM32(edi); /* 0x3000F863: mov eax, dword ptr [edi] */ 274 MEM32(ebp + (-0x4)) = eax; /* 0x3000F865: mov dword ptr [ebp - 4], eax */ 275 if (TEST_Z(_flag_a, _flag_b)) goto L_3000F8C7; /* 0x3000F868: je 0x3000f8c7 */ 276 L_3000F86A: 277 ecx = eax; /* 0x3000F86A: mov ecx, eax */ 278 /* cmp eax, ecx */ /* 0x3000F86C: cmp eax, ecx */ 279 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 281 _flag_k = FK_CMP; 282 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F8C7; /* 0x3000F86E: jne 0x3000f8c7 */ 283 L_3000F870: 284 /* cmp edi, edi */ /* 0x3000F870: cmp edi, edi */ 285 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 287 _flag_k = FK_CMP; 288 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F8C7; /* 0x3000F872: jne 0x3000f8c7 */ 289 L_3000F874: 290 ebx = MEM32(edi + 0x4); /* 0x3000F874: mov ebx, dword ptr [edi + 4] */ 291 eax = MEM32(esi + 0x8); /* 0x3000F877: mov eax, dword ptr [esi + 8] */ 292 /* cmp ebx, eax */ /* 0x3000F87A: cmp ebx, eax */ 293 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 295 _flag_k = FK_CMP; 296 edi = ebx; /* 0x3000F87C: mov edi, ebx */ 297 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F89F; /* 0x3000F87E: je 0x3000f89f */ 298 L_3000F880: 299 eax = MEM32(edi + 0x8); /* 0x3000F880: mov eax, dword ptr [edi + 8] */ 300 ecx = esi; /* 0x3000F883: mov ecx, esi */ 301 PUSH32(esp, eax); /* 0x3000F885: push eax */ 302 RECOMP_ICALL(0x30012380u); /* 0x3000F886: call 0x30012380 */ /* not lifted */ 303 RECOMP_FLAGS_IN(); 304 edi = MEM32(edi); /* 0x3000F88B: mov edi, dword ptr [edi] */ 305 PUSH32(esp, ebx); /* 0x3000F88D: push ebx */ 306 RECOMP_ICALL(0x30018080u); /* 0x3000F88E: call 0x30018080 */ /* not lifted */ 307 RECOMP_FLAGS_IN(); 308 eax = MEM32(esi + 0x8); /* 0x3000F893: mov eax, dword ptr [esi + 8] */ 309 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 311 esp = esp + 4; /* 0x3000F896: add esp, 4 */ 312 _flag_k = FK_ADD; 313 /* cmp edi, eax */ /* 0x3000F899: cmp edi, eax */ 314 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 316 _flag_k = FK_CMP; 317 ebx = edi; /* 0x3000F89B: mov ebx, edi */ 318 RECOMP_BACKEDGE(); 319 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F880; /* 0x3000F89D: jne 0x3000f880 */ 320 L_3000F89F: 321 ecx = MEM32(esi + 0x4); /* 0x3000F89F: mov ecx, dword ptr [esi + 4] */ 322 edx = MEM32(esi + 0x8); /* 0x3000F8A2: mov edx, dword ptr [esi + 8] */ 323 MEM32(ecx + 0x4) = edx; /* 0x3000F8A5: mov dword ptr [ecx + 4], edx */ 324 eax = MEM32(esi + 0x4); /* 0x3000F8A8: mov eax, dword ptr [esi + 4] */ 325 MEM32(esi + 0x10) = 0; /* 0x3000F8AB: mov dword ptr [esi + 0x10], 0 */ 326 ecx = esi; /* 0x3000F8B2: mov ecx, esi */ 327 MEM32(eax) = eax; /* 0x3000F8B4: mov dword ptr [eax], eax */ 328 eax = MEM32(esi + 0x4); /* 0x3000F8B6: mov eax, dword ptr [esi + 4] */ 329 MEM32(eax + 0x8) = eax; /* 0x3000F8B9: mov dword ptr [eax + 8], eax */ 330 eax = ebp + (-0x8); /* 0x3000F8BC: lea eax, [ebp - 8] */ 331 PUSH32(esp, eax); /* 0x3000F8BF: push eax */ 332 RECOMP_ICALL(0x30011670u); /* 0x3000F8C0: call 0x30011670 */ /* not lifted */ 333 RECOMP_FLAGS_IN(); 334 goto L_3000F8E8; /* 0x3000F8C5: jmp 0x3000f8e8 */ 335 L_3000F8C7: 336 /* cmp eax, edi */ /* 0x3000F8C7: cmp eax, edi */ 337 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 339 _flag_k = FK_CMP; 340 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F8E8; /* 0x3000F8C9: je 0x3000f8e8 */ 341 L_3000F8CB: 342 ecx = ebp + (-0x4); /* 0x3000F8CB: lea ecx, [ebp - 4] */ 343 ebx = eax; /* 0x3000F8CE: mov ebx, eax */ 344 RECOMP_ICALL(0x30011CD0u); /* 0x3000F8D0: call 0x30011cd0 */ /* not lifted */ 345 RECOMP_FLAGS_IN(); 346 ecx = ebp + (-0x8); /* 0x3000F8D5: lea ecx, [ebp - 8] */ 347 PUSH32(esp, ebx); /* 0x3000F8D8: push ebx */ 348 PUSH32(esp, ecx); /* 0x3000F8D9: push ecx */ 349 ecx = esi; /* 0x3000F8DA: mov ecx, esi */ 350 RECOMP_ICALL(0x30011FC0u); /* 0x3000F8DC: call 0x30011fc0 */ /* not lifted */ 351 RECOMP_FLAGS_IN(); 352 eax = MEM32(ebp + (-0x4)); /* 0x3000F8E1: mov eax, dword ptr [ebp - 4] */ 353 /* cmp eax, edi */ /* 0x3000F8E4: cmp eax, edi */ 354 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 356 _flag_k = FK_CMP; 357 RECOMP_BACKEDGE(); 358 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F8CB; /* 0x3000F8E6: jne 0x3000f8cb */ 359 L_3000F8E8: 360 edx = MEM32(esi + 0x4); /* 0x3000F8E8: mov edx, dword ptr [esi + 4] */ 361 PUSH32(esp, edx); /* 0x3000F8EB: push edx */ 362 RECOMP_ICALL(0x30018080u); /* 0x3000F8EC: call 0x30018080 */ /* not lifted */ 363 RECOMP_FLAGS_IN(); 364 eax = MEM32(esi + 0x8); /* 0x3000F8F1: mov eax, dword ptr [esi + 8] */ 365 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 366 edi = 0; /* 0x3000F8F4: xor edi, edi */ 367 _cf = 0; 368 _flag_k = FK_TEST; 369 PUSH32(esp, eax); /* 0x3000F8F6: push eax */ 370 MEM32(esi + 0x4) = edi; /* 0x3000F8F7: mov dword ptr [esi + 4], edi */ 371 MEM32(esi + 0x10) = edi; /* 0x3000F8FA: mov dword ptr [esi + 0x10], edi */ 372 RECOMP_ICALL(0x30018080u); /* 0x3000F8FD: call 0x30018080 */ /* not lifted */ 373 RECOMP_FLAGS_IN(); 374 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 376 esp = esp + 8; /* 0x3000F902: add esp, 8 */ 377 _flag_k = FK_ADD; 378 MEM32(esi + 0x8) = edi; /* 0x3000F905: mov dword ptr [esi + 8], edi */ 379 edi = POP32_VAL(esp); /* 0x3000F908: pop edi */ 380 esi = POP32_VAL(esp); /* 0x3000F909: pop esi */ 381 ebx = POP32_VAL(esp); /* 0x3000F90A: pop ebx */ 382 esp = ebp; /* 0x3000F90B: mov esp, ebp */ 383 ebp = POP32_VAL(esp); /* 0x3000F90D: pop ebp */ 384 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000F90E: ret */ 385 RECOMP_REGS_OUT(); 386 } 387 388 void sub_3000F8E8(void) { 389 int _fpu_cmp = 0; 390 uint32_t _cf = 0; 391 int _df = 1; 392 uint32_t _flag_k = FK_NONE; 393 uint32_t _flag_a = 0, _flag_b = 0; 394 uint32_t _itail_tgt = 0; 395 RECOMP_REGS_LOCALS 396 RECOMP_ENTER(0x3000F8E8u); 397 398 L_3000F8E8: 399 edx = MEM32(esi + 0x4); /* 0x3000F8E8: mov edx, dword ptr [esi + 4] */ 400 PUSH32(esp, edx); /* 0x3000F8EB: push edx */ 401 RECOMP_ICALL(0x30018080u); /* 0x3000F8EC: call 0x30018080 */ /* not lifted */ 402 RECOMP_FLAGS_IN(); 403 eax = MEM32(esi + 0x8); /* 0x3000F8F1: mov eax, dword ptr [esi + 8] */ 404 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 405 edi = 0; /* 0x3000F8F4: xor edi, edi */ 406 _cf = 0; 407 _flag_k = FK_TEST; 408 PUSH32(esp, eax); /* 0x3000F8F6: push eax */ 409 MEM32(esi + 0x4) = edi; /* 0x3000F8F7: mov dword ptr [esi + 4], edi */ 410 MEM32(esi + 0x10) = edi; /* 0x3000F8FA: mov dword ptr [esi + 0x10], edi */ 411 RECOMP_ICALL(0x30018080u); /* 0x3000F8FD: call 0x30018080 */ /* not lifted */ 412 RECOMP_FLAGS_IN(); 413 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 414 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 415 esp = esp + 8; /* 0x3000F902: add esp, 8 */ 416 _flag_k = FK_ADD; 417 MEM32(esi + 0x8) = edi; /* 0x3000F905: mov dword ptr [esi + 8], edi */ 418 edi = POP32_VAL(esp); /* 0x3000F908: pop edi */ 419 esi = POP32_VAL(esp); /* 0x3000F909: pop esi */ 420 ebx = POP32_VAL(esp); /* 0x3000F90A: pop ebx */ 421 esp = ebp; /* 0x3000F90B: mov esp, ebp */ 422 ebp = POP32_VAL(esp); /* 0x3000F90D: pop ebp */ 423 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000F90E: ret */ 424 RECOMP_REGS_OUT(); 425 } 426 427 void sub_3000F910(void) { 428 int _fpu_cmp = 0; 429 uint32_t _cf = 0; 430 int _df = 1; 431 uint32_t _flag_k = FK_NONE; 432 uint32_t _flag_a = 0, _flag_b = 0; 433 uint32_t _itail_tgt = 0; 434 RECOMP_REGS_LOCALS 435 RECOMP_ENTER(0x3000F910u); 436 437 L_3000F910: 438 PUSH32(esp, ebp); /* 0x3000F910: push ebp */ 439 ebp = esp; /* 0x3000F911: mov ebp, esp */ 440 PUSH32(esp, 0xFFFFFFFFu); /* 0x3000F913: push -1 */ 441 PUSH32(esp, 0x30018A53u); /* 0x3000F915: push 0x30018a53 */ 442 eax = MEM32(FS_BASE + (0)); /* 0x3000F91A: mov eax, dword ptr fs:[0] */ 443 PUSH32(esp, eax); /* 0x3000F920: push eax */ 444 MEM32(FS_BASE + (0)) = esp; /* 0x3000F921: mov dword ptr fs:[0], esp */ 445 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 447 esp = esp - 0x28u; /* 0x3000F928: sub esp, 0x28 */ 448 _flag_k = FK_CMP; 449 PUSH32(esp, ebx); /* 0x3000F92B: push ebx */ 450 PUSH32(esp, esi); /* 0x3000F92C: push esi */ 451 PUSH32(esp, edi); /* 0x3000F92D: push edi */ 452 edi = ecx; /* 0x3000F92E: mov edi, ecx */ 453 MEM32(ebp + (-0x18)) = edi; /* 0x3000F930: mov dword ptr [ebp - 0x18], edi */ 454 eax = MEM32(edi + 0x8); /* 0x3000F933: mov eax, dword ptr [edi + 8] */ 455 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 456 ebx = 0; /* 0x3000F936: xor ebx, ebx */ 457 _cf = 0; 458 _flag_k = FK_TEST; 459 /* cmp eax, ebx */ /* 0x3000F938: cmp eax, ebx */ 460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 462 _flag_k = FK_CMP; 463 MEM32(ebp + (-0x4)) = ebx; /* 0x3000F93A: mov dword ptr [ebp - 4], ebx */ 464 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F9F5; /* 0x3000F93D: je 0x3000f9f5 */ 465 L_3000F943: 466 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3000F943: mov cl, byte ptr [ebp - 0xd] */ 467 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3000F946: mov al, byte ptr [ebp - 0xd] */ 468 MEM8(ebp + (-0x33)) = (uint8_t)(LO8(ecx)); /* 0x3000F949: mov byte ptr [ebp - 0x33], cl */ 469 ecx = ebp + (-0x34); /* 0x3000F94C: lea ecx, [ebp - 0x34] */ 470 MEM8(ebp + (-0x34)) = (uint8_t)(LO8(eax)); /* 0x3000F94F: mov byte ptr [ebp - 0x34], al */ 471 MEM8(ebp + (-0x28)) = (uint8_t)(LO8(ebx)); /* 0x3000F952: mov byte ptr [ebp - 0x28], bl */ 472 RECOMP_ICALL(0x30012A70u); /* 0x3000F955: call 0x30012a70 */ /* not lifted */ 473 RECOMP_FLAGS_IN(); 474 eax = MEM32(edi + 0x8); /* 0x3000F95A: mov eax, dword ptr [edi + 8] */ 475 edx = ebp + (-0x34); /* 0x3000F95D: lea edx, [ebp - 0x34] */ 476 PUSH32(esp, edx); /* 0x3000F960: push edx */ 477 PUSH32(esp, eax); /* 0x3000F961: push eax */ 478 ecx = edi; /* 0x3000F962: mov ecx, edi */ 479 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3000F964: mov byte ptr [ebp - 4], 1 */ 480 RECOMP_ICALL(0x30011090u); /* 0x3000F968: call 0x30011090 */ /* not lifted */ 481 RECOMP_FLAGS_IN(); 482 esi = MEM32(edi + 0x8); /* 0x3000F96D: mov esi, dword ptr [edi + 8] */ 483 /* cmp esi, ebx */ /* 0x3000F970: cmp esi, ebx */ 484 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 486 _flag_k = FK_CMP; 487 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F984; /* 0x3000F972: je 0x3000f984 */ 488 L_3000F974: 489 ecx = esi; /* 0x3000F974: mov ecx, esi */ 490 RECOMP_ICALL(0x3000F3E0u); /* 0x3000F976: call 0x3000f3e0 */ /* not lifted */ 491 RECOMP_FLAGS_IN(); 492 PUSH32(esp, esi); /* 0x3000F97B: push esi */ 493 RECOMP_ICALL(0x30018080u); /* 0x3000F97C: call 0x30018080 */ /* not lifted */ 494 RECOMP_FLAGS_IN(); 495 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 497 esp = esp + 4; /* 0x3000F981: add esp, 4 */ 498 _flag_k = FK_ADD; 499 L_3000F984: 500 eax = MEM32(ebp + (-0x30)); /* 0x3000F984: mov eax, dword ptr [ebp - 0x30] */ 501 ecx = MEM32(eax); /* 0x3000F987: mov ecx, dword ptr [eax] */ 502 /* cmp ecx, eax */ /* 0x3000F989: cmp ecx, eax */ 503 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 505 _flag_k = FK_CMP; 506 MEM32(ebp + (-0x14)) = ecx; /* 0x3000F98B: mov dword ptr [ebp - 0x14], ecx */ 507 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F9C7; /* 0x3000F98E: je 0x3000f9c7 */ 508 L_3000F990: 509 esi = MEM32(ecx + 0xC); /* 0x3000F990: mov esi, dword ptr [ecx + 0xc] */ 510 /* cmp esi, ebx */ /* 0x3000F993: cmp esi, ebx */ 511 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 513 _flag_k = FK_CMP; 514 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000F9B5; /* 0x3000F995: je 0x3000f9b5 */ 515 L_3000F997: 516 eax = MEM32(esi + 0x1C); /* 0x3000F997: mov eax, dword ptr [esi + 0x1c] */ 517 PUSH32(esp, eax); /* 0x3000F99A: push eax */ 518 MEM32(ebp + (-0x1C)) = eax; /* 0x3000F99B: mov dword ptr [ebp - 0x1c], eax */ 519 RECOMP_ICALL(0x30018080u); /* 0x3000F99E: call 0x30018080 */ /* not lifted */ 520 RECOMP_FLAGS_IN(); 521 PUSH32(esp, esi); /* 0x3000F9A3: push esi */ 522 MEM32(esi + 0x1C) = ebx; /* 0x3000F9A4: mov dword ptr [esi + 0x1c], ebx */ 523 MEM32(esi + 0x20) = ebx; /* 0x3000F9A7: mov dword ptr [esi + 0x20], ebx */ 524 MEM32(esi + 0x24) = ebx; /* 0x3000F9AA: mov dword ptr [esi + 0x24], ebx */ 525 RECOMP_ICALL(0x30018080u); /* 0x3000F9AD: call 0x30018080 */ /* not lifted */ 526 RECOMP_FLAGS_IN(); 527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 529 esp = esp + 8; /* 0x3000F9B2: add esp, 8 */ 530 _flag_k = FK_ADD; 531 L_3000F9B5: 532 ecx = ebp + (-0x14); /* 0x3000F9B5: lea ecx, [ebp - 0x14] */ 533 RECOMP_ICALL(0x300117B0u); /* 0x3000F9B8: call 0x300117b0 */ /* not lifted */ 534 RECOMP_FLAGS_IN(); 535 ecx = MEM32(ebp + (-0x14)); /* 0x3000F9BD: mov ecx, dword ptr [ebp - 0x14] */ 536 eax = MEM32(ebp + (-0x30)); /* 0x3000F9C0: mov eax, dword ptr [ebp - 0x30] */ 537 /* cmp ecx, eax */ /* 0x3000F9C3: cmp ecx, eax */ 538 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 540 _flag_k = FK_CMP; 541 RECOMP_BACKEDGE(); 542 if (CMP_NE(_flag_a, _flag_b)) goto L_3000F990; /* 0x3000F9C5: jne 0x3000f990 */ 543 L_3000F9C7: 544 ecx = MEM32(eax); /* 0x3000F9C7: mov ecx, dword ptr [eax] */ 545 PUSH32(esp, eax); /* 0x3000F9C9: push eax */ 546 PUSH32(esp, ecx); /* 0x3000F9CA: push ecx */ 547 ecx = ebp + (-0x1C); /* 0x3000F9CB: lea ecx, [ebp - 0x1c] */ 548 PUSH32(esp, ecx); /* 0x3000F9CE: push ecx */ 549 ecx = ebp + (-0x34); /* 0x3000F9CF: lea ecx, [ebp - 0x34] */ 550 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3000F9D2: mov byte ptr [ebp - 4], bl */ 551 RECOMP_ICALL(0x30011690u); /* 0x3000F9D5: call 0x30011690 */ /* not lifted */ 552 RECOMP_FLAGS_IN(); 553 edx = MEM32(ebp + (-0x30)); /* 0x3000F9DA: mov edx, dword ptr [ebp - 0x30] */ 554 PUSH32(esp, edx); /* 0x3000F9DD: push edx */ 555 RECOMP_ICALL(0x30018080u); /* 0x3000F9DE: call 0x30018080 */ /* not lifted */ 556 RECOMP_FLAGS_IN(); 557 eax = MEM32(ebp + (-0x2C)); /* 0x3000F9E3: mov eax, dword ptr [ebp - 0x2c] */ 558 MEM32(ebp + (-0x30)) = ebx; /* 0x3000F9E6: mov dword ptr [ebp - 0x30], ebx */ 559 PUSH32(esp, eax); /* 0x3000F9E9: push eax */ 560 MEM32(ebp + (-0x24)) = ebx; /* 0x3000F9EA: mov dword ptr [ebp - 0x24], ebx */ 561 RECOMP_ICALL(0x30018080u); /* 0x3000F9ED: call 0x30018080 */ /* not lifted */ 562 RECOMP_FLAGS_IN(); 563 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 565 esp = esp + 8; /* 0x3000F9F2: add esp, 8 */ 566 _flag_k = FK_ADD; 567 L_3000F9F5: 568 eax = MEM32(edi + 0x10); /* 0x3000F9F5: mov eax, dword ptr [edi + 0x10] */ 569 ecx = MEM32(edi + 0x1C); /* 0x3000F9F8: mov ecx, dword ptr [edi + 0x1c] */ 570 esi = edi + 0xC; /* 0x3000F9FB: lea esi, [edi + 0xc] */ 571 edi = eax; /* 0x3000F9FE: mov edi, eax */ 572 eax = MEM32(eax); /* 0x3000FA00: mov eax, dword ptr [eax] */ 573 /* cmp ecx, ebx */ /* 0x3000FA02: cmp ecx, ebx */ 574 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 576 _flag_k = FK_CMP; 577 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000FA04: mov dword ptr [ebp - 4], 0xffffffff */ 578 MEM32(ebp + (-0x14)) = eax; /* 0x3000FA0B: mov dword ptr [ebp - 0x14], eax */ 579 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FA5A; /* 0x3000FA0E: je 0x3000fa5a */ 580 L_3000FA10: 581 ecx = ebp + (-0x1C); /* 0x3000FA10: lea ecx, [ebp - 0x1c] */ 582 PUSH32(esp, ecx); /* 0x3000FA13: push ecx */ 583 ecx = esi; /* 0x3000FA14: mov ecx, esi */ 584 RECOMP_ICALL(0x30011670u); /* 0x3000FA16: call 0x30011670 */ /* not lifted */ 585 RECOMP_FLAGS_IN(); 586 edx = eax; /* 0x3000FA1B: mov edx, eax */ 587 eax = MEM32(ebp + (-0x14)); /* 0x3000FA1D: mov eax, dword ptr [ebp - 0x14] */ 588 /* cmp eax, MEM32(edx) */ /* 0x3000FA20: cmp eax, dword ptr [edx] */ 589 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 591 _flag_k = FK_CMP; 592 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FA5A; /* 0x3000FA22: jne 0x3000fa5a */ 593 L_3000FA24: 594 ecx = MEM32(esi + 0x4); /* 0x3000FA24: mov ecx, dword ptr [esi + 4] */ 595 /* cmp edi, ecx */ /* 0x3000FA27: cmp edi, ecx */ 596 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 598 _flag_k = FK_CMP; 599 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FA5A; /* 0x3000FA29: jne 0x3000fa5a */ 600 L_3000FA2B: 601 eax = MEM32(ecx + 0x4); /* 0x3000FA2B: mov eax, dword ptr [ecx + 4] */ 602 ecx = esi; /* 0x3000FA2E: mov ecx, esi */ 603 PUSH32(esp, eax); /* 0x3000FA30: push eax */ 604 RECOMP_ICALL(0x30012380u); /* 0x3000FA31: call 0x30012380 */ /* not lifted */ 605 RECOMP_FLAGS_IN(); 606 ecx = MEM32(esi + 0x4); /* 0x3000FA36: mov ecx, dword ptr [esi + 4] */ 607 edx = MEM32(esi + 0x8); /* 0x3000FA39: mov edx, dword ptr [esi + 8] */ 608 MEM32(ecx + 0x4) = edx; /* 0x3000FA3C: mov dword ptr [ecx + 4], edx */ 609 eax = MEM32(esi + 0x4); /* 0x3000FA3F: mov eax, dword ptr [esi + 4] */ 610 MEM32(esi + 0x10) = ebx; /* 0x3000FA42: mov dword ptr [esi + 0x10], ebx */ 611 ecx = esi; /* 0x3000FA45: mov ecx, esi */ 612 MEM32(eax) = eax; /* 0x3000FA47: mov dword ptr [eax], eax */ 613 eax = MEM32(esi + 0x4); /* 0x3000FA49: mov eax, dword ptr [esi + 4] */ 614 MEM32(eax + 0x8) = eax; /* 0x3000FA4C: mov dword ptr [eax + 8], eax */ 615 eax = ebp + (-0x18); /* 0x3000FA4F: lea eax, [ebp - 0x18] */ 616 PUSH32(esp, eax); /* 0x3000FA52: push eax */ 617 RECOMP_ICALL(0x30011670u); /* 0x3000FA53: call 0x30011670 */ /* not lifted */ 618 RECOMP_FLAGS_IN(); 619 goto L_3000FA7E; /* 0x3000FA58: jmp 0x3000fa7e */ 620 L_3000FA5A: 621 /* cmp eax, edi */ /* 0x3000FA5A: cmp eax, edi */ 622 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 624 _flag_k = FK_CMP; 625 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FA7E; /* 0x3000FA5C: je 0x3000fa7e */ 626 L_3000FA5E: 627 ecx = ebp + (-0x1C); /* 0x3000FA5E: lea ecx, [ebp - 0x1c] */ 628 PUSH32(esp, ebx); /* 0x3000FA61: push ebx */ 629 PUSH32(esp, ecx); /* 0x3000FA62: push ecx */ 630 ecx = ebp + (-0x14); /* 0x3000FA63: lea ecx, [ebp - 0x14] */ 631 RECOMP_ICALL(0x300123C0u); /* 0x3000FA66: call 0x300123c0 */ /* not lifted */ 632 RECOMP_FLAGS_IN(); 633 edx = MEM32(eax); /* 0x3000FA6B: mov edx, dword ptr [eax] */ 634 eax = ebp + (-0x20); /* 0x3000FA6D: lea eax, [ebp - 0x20] */ 635 PUSH32(esp, edx); /* 0x3000FA70: push edx */ 636 PUSH32(esp, eax); /* 0x3000FA71: push eax */ 637 ecx = esi; /* 0x3000FA72: mov ecx, esi */ 638 RECOMP_ICALL(0x30011FC0u); /* 0x3000FA74: call 0x30011fc0 */ /* not lifted */ 639 RECOMP_FLAGS_IN(); 640 /* cmp MEM32(ebp + (-0x14)), edi */ /* 0x3000FA79: cmp dword ptr [ebp - 0x14], edi */ 641 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edi); 642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 643 _flag_k = FK_CMP; 644 RECOMP_BACKEDGE(); 645 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FA5E; /* 0x3000FA7C: jne 0x3000fa5e */ 646 L_3000FA7E: 647 ecx = MEM32(esi + 0x4); /* 0x3000FA7E: mov ecx, dword ptr [esi + 4] */ 648 PUSH32(esp, ecx); /* 0x3000FA81: push ecx */ 649 RECOMP_ICALL(0x30018080u); /* 0x3000FA82: call 0x30018080 */ /* not lifted */ 650 RECOMP_FLAGS_IN(); 651 edx = MEM32(esi + 0x8); /* 0x3000FA87: mov edx, dword ptr [esi + 8] */ 652 MEM32(esi + 0x4) = ebx; /* 0x3000FA8A: mov dword ptr [esi + 4], ebx */ 653 PUSH32(esp, edx); /* 0x3000FA8D: push edx */ 654 MEM32(esi + 0x10) = ebx; /* 0x3000FA8E: mov dword ptr [esi + 0x10], ebx */ 655 RECOMP_ICALL(0x30018080u); /* 0x3000FA91: call 0x30018080 */ /* not lifted */ 656 RECOMP_FLAGS_IN(); 657 ecx = MEM32(ebp + (-0xC)); /* 0x3000FA96: mov ecx, dword ptr [ebp - 0xc] */ 658 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 659 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 660 esp = esp + 8; /* 0x3000FA99: add esp, 8 */ 661 _flag_k = FK_ADD; 662 MEM32(esi + 0x8) = ebx; /* 0x3000FA9C: mov dword ptr [esi + 8], ebx */ 663 MEM32(FS_BASE + (0)) = ecx; /* 0x3000FA9F: mov dword ptr fs:[0], ecx */ 664 edi = POP32_VAL(esp); /* 0x3000FAA6: pop edi */ 665 esi = POP32_VAL(esp); /* 0x3000FAA7: pop esi */ 666 ebx = POP32_VAL(esp); /* 0x3000FAA8: pop ebx */ 667 esp = ebp; /* 0x3000FAA9: mov esp, ebp */ 668 ebp = POP32_VAL(esp); /* 0x3000FAAB: pop ebp */ 669 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000FAAC: ret */ 670 RECOMP_REGS_OUT(); 671 } 672 673 void sub_3000FAB0(void) { 674 int _fpu_cmp = 0; 675 uint32_t _cf = 0; 676 int _df = 1; 677 uint32_t _flag_k = FK_NONE; 678 uint32_t _flag_a = 0, _flag_b = 0; 679 uint32_t _itail_tgt = 0; 680 RECOMP_REGS_LOCALS 681 RECOMP_ENTER(0x3000FAB0u); 682 683 L_3000FAB0: 684 PUSH32(esp, ebp); /* 0x3000FAB0: push ebp */ 685 ebp = esp; /* 0x3000FAB1: mov ebp, esp */ 686 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 688 esp = esp - 8; /* 0x3000FAB3: sub esp, 8 */ 689 _flag_k = FK_CMP; 690 PUSH32(esp, ebx); /* 0x3000FAB6: push ebx */ 691 PUSH32(esp, esi); /* 0x3000FAB7: push esi */ 692 esi = ecx; /* 0x3000FAB8: mov esi, ecx */ 693 PUSH32(esp, edi); /* 0x3000FABA: push edi */ 694 edi = MEM32(esi + 0x4); /* 0x3000FABB: mov edi, dword ptr [esi + 4] */ 695 ecx = MEM32(esi + 0x10); /* 0x3000FABE: mov ecx, dword ptr [esi + 0x10] */ 696 /* test ecx, ecx */ /* 0x3000FAC1: test ecx, ecx */ 697 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 698 _cf = 0; 699 _flag_k = FK_TEST; 700 eax = MEM32(edi); /* 0x3000FAC3: mov eax, dword ptr [edi] */ 701 MEM32(ebp + (-0x4)) = eax; /* 0x3000FAC5: mov dword ptr [ebp - 4], eax */ 702 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FB27; /* 0x3000FAC8: je 0x3000fb27 */ 703 L_3000FACA: 704 ecx = eax; /* 0x3000FACA: mov ecx, eax */ 705 /* cmp eax, ecx */ /* 0x3000FACC: cmp eax, ecx */ 706 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 708 _flag_k = FK_CMP; 709 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FB27; /* 0x3000FACE: jne 0x3000fb27 */ 710 L_3000FAD0: 711 /* cmp edi, edi */ /* 0x3000FAD0: cmp edi, edi */ 712 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 714 _flag_k = FK_CMP; 715 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FB27; /* 0x3000FAD2: jne 0x3000fb27 */ 716 L_3000FAD4: 717 ebx = MEM32(edi + 0x4); /* 0x3000FAD4: mov ebx, dword ptr [edi + 4] */ 718 eax = MEM32(esi + 0x8); /* 0x3000FAD7: mov eax, dword ptr [esi + 8] */ 719 /* cmp ebx, eax */ /* 0x3000FADA: cmp ebx, eax */ 720 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 722 _flag_k = FK_CMP; 723 edi = ebx; /* 0x3000FADC: mov edi, ebx */ 724 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FAFF; /* 0x3000FADE: je 0x3000faff */ 725 L_3000FAE0: 726 eax = MEM32(edi + 0x8); /* 0x3000FAE0: mov eax, dword ptr [edi + 8] */ 727 ecx = esi; /* 0x3000FAE3: mov ecx, esi */ 728 PUSH32(esp, eax); /* 0x3000FAE5: push eax */ 729 RECOMP_ICALL(0x30012A30u); /* 0x3000FAE6: call 0x30012a30 */ /* not lifted */ 730 RECOMP_FLAGS_IN(); 731 edi = MEM32(edi); /* 0x3000FAEB: mov edi, dword ptr [edi] */ 732 PUSH32(esp, ebx); /* 0x3000FAED: push ebx */ 733 RECOMP_ICALL(0x30018080u); /* 0x3000FAEE: call 0x30018080 */ /* not lifted */ 734 RECOMP_FLAGS_IN(); 735 eax = MEM32(esi + 0x8); /* 0x3000FAF3: mov eax, dword ptr [esi + 8] */ 736 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 738 esp = esp + 4; /* 0x3000FAF6: add esp, 4 */ 739 _flag_k = FK_ADD; 740 /* cmp edi, eax */ /* 0x3000FAF9: cmp edi, eax */ 741 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 743 _flag_k = FK_CMP; 744 ebx = edi; /* 0x3000FAFB: mov ebx, edi */ 745 RECOMP_BACKEDGE(); 746 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FAE0; /* 0x3000FAFD: jne 0x3000fae0 */ 747 L_3000FAFF: 748 ecx = MEM32(esi + 0x4); /* 0x3000FAFF: mov ecx, dword ptr [esi + 4] */ 749 edx = MEM32(esi + 0x8); /* 0x3000FB02: mov edx, dword ptr [esi + 8] */ 750 MEM32(ecx + 0x4) = edx; /* 0x3000FB05: mov dword ptr [ecx + 4], edx */ 751 eax = MEM32(esi + 0x4); /* 0x3000FB08: mov eax, dword ptr [esi + 4] */ 752 MEM32(esi + 0x10) = 0; /* 0x3000FB0B: mov dword ptr [esi + 0x10], 0 */ 753 ecx = esi; /* 0x3000FB12: mov ecx, esi */ 754 MEM32(eax) = eax; /* 0x3000FB14: mov dword ptr [eax], eax */ 755 eax = MEM32(esi + 0x4); /* 0x3000FB16: mov eax, dword ptr [esi + 4] */ 756 MEM32(eax + 0x8) = eax; /* 0x3000FB19: mov dword ptr [eax + 8], eax */ 757 eax = ebp + (-0x8); /* 0x3000FB1C: lea eax, [ebp - 8] */ 758 PUSH32(esp, eax); /* 0x3000FB1F: push eax */ 759 RECOMP_ICALL(0x30011670u); /* 0x3000FB20: call 0x30011670 */ /* not lifted */ 760 RECOMP_FLAGS_IN(); 761 goto L_3000FB48; /* 0x3000FB25: jmp 0x3000fb48 */ 762 L_3000FB27: 763 /* cmp eax, edi */ /* 0x3000FB27: cmp eax, edi */ 764 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 766 _flag_k = FK_CMP; 767 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FB48; /* 0x3000FB29: je 0x3000fb48 */ 768 L_3000FB2B: 769 ecx = ebp + (-0x4); /* 0x3000FB2B: lea ecx, [ebp - 4] */ 770 ebx = eax; /* 0x3000FB2E: mov ebx, eax */ 771 RECOMP_ICALL(0x300117B0u); /* 0x3000FB30: call 0x300117b0 */ /* not lifted */ 772 RECOMP_FLAGS_IN(); 773 ecx = ebp + (-0x8); /* 0x3000FB35: lea ecx, [ebp - 8] */ 774 PUSH32(esp, ebx); /* 0x3000FB38: push ebx */ 775 PUSH32(esp, ecx); /* 0x3000FB39: push ecx */ 776 ecx = esi; /* 0x3000FB3A: mov ecx, esi */ 777 RECOMP_ICALL(0x30012670u); /* 0x3000FB3C: call 0x30012670 */ /* not lifted */ 778 RECOMP_FLAGS_IN(); 779 eax = MEM32(ebp + (-0x4)); /* 0x3000FB41: mov eax, dword ptr [ebp - 4] */ 780 /* cmp eax, edi */ /* 0x3000FB44: cmp eax, edi */ 781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 783 _flag_k = FK_CMP; 784 RECOMP_BACKEDGE(); 785 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FB2B; /* 0x3000FB46: jne 0x3000fb2b */ 786 L_3000FB48: 787 edx = MEM32(esi + 0x4); /* 0x3000FB48: mov edx, dword ptr [esi + 4] */ 788 PUSH32(esp, edx); /* 0x3000FB4B: push edx */ 789 RECOMP_ICALL(0x30018080u); /* 0x3000FB4C: call 0x30018080 */ /* not lifted */ 790 RECOMP_FLAGS_IN(); 791 eax = MEM32(esi + 0x8); /* 0x3000FB51: mov eax, dword ptr [esi + 8] */ 792 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 793 edi = 0; /* 0x3000FB54: xor edi, edi */ 794 _cf = 0; 795 _flag_k = FK_TEST; 796 PUSH32(esp, eax); /* 0x3000FB56: push eax */ 797 MEM32(esi + 0x4) = edi; /* 0x3000FB57: mov dword ptr [esi + 4], edi */ 798 MEM32(esi + 0x10) = edi; /* 0x3000FB5A: mov dword ptr [esi + 0x10], edi */ 799 RECOMP_ICALL(0x30018080u); /* 0x3000FB5D: call 0x30018080 */ /* not lifted */ 800 RECOMP_FLAGS_IN(); 801 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 802 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 803 esp = esp + 8; /* 0x3000FB62: add esp, 8 */ 804 _flag_k = FK_ADD; 805 MEM32(esi + 0x8) = edi; /* 0x3000FB65: mov dword ptr [esi + 8], edi */ 806 edi = POP32_VAL(esp); /* 0x3000FB68: pop edi */ 807 esi = POP32_VAL(esp); /* 0x3000FB69: pop esi */ 808 ebx = POP32_VAL(esp); /* 0x3000FB6A: pop ebx */ 809 esp = ebp; /* 0x3000FB6B: mov esp, ebp */ 810 ebp = POP32_VAL(esp); /* 0x3000FB6D: pop ebp */ 811 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000FB6E: ret */ 812 RECOMP_REGS_OUT(); 813 } 814 815 void sub_3000FB48(void) { 816 int _fpu_cmp = 0; 817 uint32_t _cf = 0; 818 int _df = 1; 819 uint32_t _flag_k = FK_NONE; 820 uint32_t _flag_a = 0, _flag_b = 0; 821 uint32_t _itail_tgt = 0; 822 RECOMP_REGS_LOCALS 823 RECOMP_ENTER(0x3000FB48u); 824 825 L_3000FB48: 826 edx = MEM32(esi + 0x4); /* 0x3000FB48: mov edx, dword ptr [esi + 4] */ 827 PUSH32(esp, edx); /* 0x3000FB4B: push edx */ 828 RECOMP_ICALL(0x30018080u); /* 0x3000FB4C: call 0x30018080 */ /* not lifted */ 829 RECOMP_FLAGS_IN(); 830 eax = MEM32(esi + 0x8); /* 0x3000FB51: mov eax, dword ptr [esi + 8] */ 831 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 832 edi = 0; /* 0x3000FB54: xor edi, edi */ 833 _cf = 0; 834 _flag_k = FK_TEST; 835 PUSH32(esp, eax); /* 0x3000FB56: push eax */ 836 MEM32(esi + 0x4) = edi; /* 0x3000FB57: mov dword ptr [esi + 4], edi */ 837 MEM32(esi + 0x10) = edi; /* 0x3000FB5A: mov dword ptr [esi + 0x10], edi */ 838 RECOMP_ICALL(0x30018080u); /* 0x3000FB5D: call 0x30018080 */ /* not lifted */ 839 RECOMP_FLAGS_IN(); 840 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 841 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 842 esp = esp + 8; /* 0x3000FB62: add esp, 8 */ 843 _flag_k = FK_ADD; 844 MEM32(esi + 0x8) = edi; /* 0x3000FB65: mov dword ptr [esi + 8], edi */ 845 edi = POP32_VAL(esp); /* 0x3000FB68: pop edi */ 846 esi = POP32_VAL(esp); /* 0x3000FB69: pop esi */ 847 ebx = POP32_VAL(esp); /* 0x3000FB6A: pop ebx */ 848 esp = ebp; /* 0x3000FB6B: mov esp, ebp */ 849 ebp = POP32_VAL(esp); /* 0x3000FB6D: pop ebp */ 850 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000FB6E: ret */ 851 RECOMP_REGS_OUT(); 852 } 853 854 void sub_3000FB70(void) { 855 int _fpu_cmp = 0; 856 uint32_t _cf = 0; 857 int _df = 1; 858 uint32_t _flag_k = FK_NONE; 859 uint32_t _flag_a = 0, _flag_b = 0; 860 uint32_t _itail_tgt = 0; 861 RECOMP_REGS_LOCALS 862 RECOMP_ENTER(0x3000FB70u); 863 864 L_3000FB70: 865 PUSH32(esp, ebp); /* 0x3000FB70: push ebp */ 866 ebp = esp; /* 0x3000FB71: mov ebp, esp */ 867 PUSH32(esp, 0xFFFFFFFFu); /* 0x3000FB73: push -1 */ 868 PUSH32(esp, 0x30018A6Bu); /* 0x3000FB75: push 0x30018a6b */ 869 eax = MEM32(FS_BASE + (0)); /* 0x3000FB7A: mov eax, dword ptr fs:[0] */ 870 PUSH32(esp, eax); /* 0x3000FB80: push eax */ 871 MEM32(FS_BASE + (0)) = esp; /* 0x3000FB81: mov dword ptr fs:[0], esp */ 872 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 874 esp = esp - 0x18u; /* 0x3000FB88: sub esp, 0x18 */ 875 _flag_k = FK_CMP; 876 PUSH32(esp, ebx); /* 0x3000FB8B: push ebx */ 877 PUSH32(esp, esi); /* 0x3000FB8C: push esi */ 878 PUSH32(esp, edi); /* 0x3000FB8D: push edi */ 879 ebx = ecx; /* 0x3000FB8E: mov ebx, ecx */ 880 PUSH32(esp, 0x28u); /* 0x3000FB90: push 0x28 */ 881 MEM32(ebp + (-0x24)) = ebx; /* 0x3000FB92: mov dword ptr [ebp - 0x24], ebx */ 882 RECOMP_ICALL(0x300180A8u); /* 0x3000FB95: call 0x300180a8 */ /* not lifted */ 883 RECOMP_FLAGS_IN(); 884 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 885 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 886 esp = esp + 4; /* 0x3000FB9A: add esp, 4 */ 887 _flag_k = FK_ADD; 888 MEM32(ebp + (-0x20)) = eax; /* 0x3000FB9D: mov dword ptr [ebp - 0x20], eax */ 889 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 890 ecx = 0; /* 0x3000FBA0: xor ecx, ecx */ 891 _cf = 0; 892 _flag_k = FK_TEST; 893 /* cmp eax, ecx */ /* 0x3000FBA2: cmp eax, ecx */ 894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 896 _flag_k = FK_CMP; 897 MEM32(ebp + (-0x4)) = ecx; /* 0x3000FBA4: mov dword ptr [ebp - 4], ecx */ 898 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FBB5; /* 0x3000FBA7: je 0x3000fbb5 */ 899 L_3000FBA9: 900 ecx = eax; /* 0x3000FBA9: mov ecx, eax */ 901 RECOMP_ICALL(0x30016120u); /* 0x3000FBAB: call 0x30016120 */ /* not lifted */ 902 RECOMP_FLAGS_IN(); 903 MEM32(ebp + (-0x18)) = eax; /* 0x3000FBB0: mov dword ptr [ebp - 0x18], eax */ 904 goto L_3000FBB8; /* 0x3000FBB3: jmp 0x3000fbb8 */ 905 L_3000FBB5: 906 MEM32(ebp + (-0x18)) = ecx; /* 0x3000FBB5: mov dword ptr [ebp - 0x18], ecx */ 907 L_3000FBB8: 908 eax = MEM32(ebp + (-0x18)); /* 0x3000FBB8: mov eax, dword ptr [ebp - 0x18] */ 909 esi = MEM32(ebx + 0x8); /* 0x3000FBBB: mov esi, dword ptr [ebx + 8] */ 910 MEM32(ebp + (-0x10)) = eax; /* 0x3000FBBE: mov dword ptr [ebp - 0x10], eax */ 911 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3000FBC1: mov dword ptr [ebp - 4], 0xffffffff */ 912 eax = MEM32(esi + 0x8); /* 0x3000FBC8: mov eax, dword ptr [esi + 8] */ 913 ecx = MEM32(esi + 0xC); /* 0x3000FBCB: mov ecx, dword ptr [esi + 0xc] */ 914 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 916 ecx = ecx - eax; /* 0x3000FBCE: sub ecx, eax */ 917 _flag_k = FK_CMP; 918 edi = eax; /* 0x3000FBD0: mov edi, eax */ 919 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3000FBD2: sar ecx, 2 */ 920 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 921 ecx = (uint32_t)((int32_t)ecx >> 2u); 922 /* cmp ecx, 1 */ /* 0x3000FBD5: cmp ecx, 1 */ 923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 925 _flag_k = FK_CMP; 926 if (CMP_AE(_flag_a, _flag_b)) goto L_3000FCC6; /* 0x3000FBD8: jae 0x3000fcc6 */ 927 L_3000FBDE: 928 edx = MEM32(esi + 0x4); /* 0x3000FBDE: mov edx, dword ptr [esi + 4] */ 929 /* test edx, edx */ /* 0x3000FBE1: test edx, edx */ 930 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 931 _cf = 0; 932 _flag_k = FK_TEST; 933 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FBF1; /* 0x3000FBE3: je 0x3000fbf1 */ 934 L_3000FBE5: 935 ecx = eax; /* 0x3000FBE5: mov ecx, eax */ 936 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 938 ecx = ecx - edx; /* 0x3000FBE7: sub ecx, edx */ 939 _flag_k = FK_CMP; 940 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3000FBE9: sar ecx, 2 */ 941 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 942 ecx = (uint32_t)((int32_t)ecx >> 2u); 943 /* cmp ecx, 1 */ /* 0x3000FBEC: cmp ecx, 1 */ 944 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 946 _flag_k = FK_CMP; 947 if (CMP_A(_flag_a, _flag_b)) goto L_3000FBF6; /* 0x3000FBEF: ja 0x3000fbf6 */ 948 L_3000FBF1: 949 ecx = 1; /* 0x3000FBF1: mov ecx, 1 */ 950 L_3000FBF6: 951 /* test edx, edx */ /* 0x3000FBF6: test edx, edx */ 952 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 953 _cf = 0; 954 _flag_k = FK_TEST; 955 if (TEST_NZ(_flag_a, _flag_b)) goto L_3000FBFE; /* 0x3000FBF8: jne 0x3000fbfe */ 956 L_3000FBFA: 957 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 958 eax = 0; /* 0x3000FBFA: xor eax, eax */ 959 _cf = 0; 960 _flag_k = FK_TEST; 961 goto L_3000FC03; /* 0x3000FBFC: jmp 0x3000fc03 */ 962 L_3000FBFE: 963 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 965 eax = eax - edx; /* 0x3000FBFE: sub eax, edx */ 966 _flag_k = FK_CMP; 967 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3000FC00: sar eax, 2 */ 968 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 969 eax = (uint32_t)((int32_t)eax >> 2u); 970 L_3000FC03: 971 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 973 eax = eax + ecx; /* 0x3000FC03: add eax, ecx */ 974 _flag_k = FK_ADD; 975 /* test eax, eax */ /* 0x3000FC05: test eax, eax */ 976 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 977 _cf = 0; 978 _flag_k = FK_TEST; 979 MEM32(ebp + (-0x20)) = eax; /* 0x3000FC07: mov dword ptr [ebp - 0x20], eax */ 980 if (TEST_NS(_flag_a, _flag_b)) goto L_3000FC0E; /* 0x3000FC0A: jge 0x3000fc0e */ 981 L_3000FC0C: 982 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 983 eax = 0; /* 0x3000FC0C: xor eax, eax */ 984 _cf = 0; 985 _flag_k = FK_TEST; 986 L_3000FC0E: 987 edx = eax * 4; /* 0x3000FC0E: lea edx, [eax*4] */ 988 PUSH32(esp, edx); /* 0x3000FC15: push edx */ 989 RECOMP_ICALL(0x300180A8u); /* 0x3000FC16: call 0x300180a8 */ /* not lifted */ 990 RECOMP_FLAGS_IN(); 991 MEM32(ebp + (-0x1C)) = eax; /* 0x3000FC1B: mov dword ptr [ebp - 0x1c], eax */ 992 ebx = eax; /* 0x3000FC1E: mov ebx, eax */ 993 eax = MEM32(esi + 0x4); /* 0x3000FC20: mov eax, dword ptr [esi + 4] */ 994 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 995 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 996 esp = esp + 4; /* 0x3000FC23: add esp, 4 */ 997 _flag_k = FK_ADD; 998 /* cmp eax, edi */ /* 0x3000FC26: cmp eax, edi */ 999 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1001 _flag_k = FK_CMP; 1002 MEM32(ebp + (-0x14)) = eax; /* 0x3000FC28: mov dword ptr [ebp - 0x14], eax */ 1003 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FC4C; /* 0x3000FC2B: je 0x3000fc4c */ 1004 L_3000FC2D: 1005 goto L_3000FC32; /* 0x3000FC2D: jmp 0x3000fc32 */ 1006 L_3000FC2F: 1007 eax = MEM32(ebp + (-0x14)); /* 0x3000FC2F: mov eax, dword ptr [ebp - 0x14] */ 1008 L_3000FC32: 1009 PUSH32(esp, eax); /* 0x3000FC32: push eax */ 1010 PUSH32(esp, ebx); /* 0x3000FC33: push ebx */ 1011 RECOMP_ICALL(0x300053D0u); /* 0x3000FC34: call 0x300053d0 */ /* not lifted */ 1012 RECOMP_FLAGS_IN(); 1013 eax = MEM32(ebp + (-0x14)); /* 0x3000FC39: mov eax, dword ptr [ebp - 0x14] */ 1014 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1015 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1016 esp = esp + 8; /* 0x3000FC3C: add esp, 8 */ 1017 _flag_k = FK_ADD; 1018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1019 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1020 eax = eax + 4; /* 0x3000FC3F: add eax, 4 */ 1021 _flag_k = FK_ADD; 1022 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 1023 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1024 ebx = ebx + 4; /* 0x3000FC42: add ebx, 4 */ 1025 _flag_k = FK_ADD; 1026 /* cmp eax, edi */ /* 0x3000FC45: cmp eax, edi */ 1027 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1029 _flag_k = FK_CMP; 1030 MEM32(ebp + (-0x14)) = eax; /* 0x3000FC47: mov dword ptr [ebp - 0x14], eax */ 1031 RECOMP_BACKEDGE(); 1032 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FC2F; /* 0x3000FC4A: jne 0x3000fc2f */ 1033 L_3000FC4C: 1034 eax = ebp + (-0x10); /* 0x3000FC4C: lea eax, [ebp - 0x10] */ 1035 ecx = esi; /* 0x3000FC4F: mov ecx, esi */ 1036 PUSH32(esp, eax); /* 0x3000FC51: push eax */ 1037 PUSH32(esp, 1); /* 0x3000FC52: push 1 */ 1038 PUSH32(esp, ebx); /* 0x3000FC54: push ebx */ 1039 RECOMP_ICALL(0x30005340u); /* 0x3000FC55: call 0x30005340 */ /* not lifted */ 1040 RECOMP_FLAGS_IN(); 1041 ecx = MEM32(esi + 0x8); /* 0x3000FC5A: mov ecx, dword ptr [esi + 8] */ 1042 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 1043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1044 ebx = ebx + 4; /* 0x3000FC5D: add ebx, 4 */ 1045 _flag_k = FK_ADD; 1046 PUSH32(esp, ebx); /* 0x3000FC60: push ebx */ 1047 PUSH32(esp, ecx); /* 0x3000FC61: push ecx */ 1048 PUSH32(esp, edi); /* 0x3000FC62: push edi */ 1049 ecx = esi; /* 0x3000FC63: mov ecx, esi */ 1050 RECOMP_ICALL(0x30012BB0u); /* 0x3000FC65: call 0x30012bb0 */ /* not lifted */ 1051 RECOMP_FLAGS_IN(); 1052 edx = MEM32(esi + 0x8); /* 0x3000FC6A: mov edx, dword ptr [esi + 8] */ 1053 eax = MEM32(esi + 0x4); /* 0x3000FC6D: mov eax, dword ptr [esi + 4] */ 1054 PUSH32(esp, edx); /* 0x3000FC70: push edx */ 1055 PUSH32(esp, eax); /* 0x3000FC71: push eax */ 1056 ecx = esi; /* 0x3000FC72: mov ecx, esi */ 1057 RECOMP_ICALL(0x3000EC10u); /* 0x3000FC74: call 0x3000ec10 */ /* not lifted */ 1058 RECOMP_FLAGS_IN(); 1059 ecx = MEM32(esi + 0x4); /* 0x3000FC79: mov ecx, dword ptr [esi + 4] */ 1060 PUSH32(esp, ecx); /* 0x3000FC7C: push ecx */ 1061 RECOMP_ICALL(0x30018080u); /* 0x3000FC7D: call 0x30018080 */ /* not lifted */ 1062 RECOMP_FLAGS_IN(); 1063 edx = MEM32(ebp + (-0x1C)); /* 0x3000FC82: mov edx, dword ptr [ebp - 0x1c] */ 1064 eax = MEM32(ebp + (-0x20)); /* 0x3000FC85: mov eax, dword ptr [ebp - 0x20] */ 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; /* 0x3000FC88: add esp, 4 */ 1068 _flag_k = FK_ADD; 1069 ecx = edx + eax * 4; /* 0x3000FC8B: lea ecx, [edx + eax*4] */ 1070 eax = MEM32(esi + 0x4); /* 0x3000FC8E: mov eax, dword ptr [esi + 4] */ 1071 /* test eax, eax */ /* 0x3000FC91: test eax, eax */ 1072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1073 _cf = 0; 1074 _flag_k = FK_TEST; 1075 MEM32(esi + 0xC) = ecx; /* 0x3000FC93: mov dword ptr [esi + 0xc], ecx */ 1076 if (TEST_NZ(_flag_a, _flag_b)) goto L_3000FCAC; /* 0x3000FC96: jne 0x3000fcac */ 1077 L_3000FC98: 1078 ebx = MEM32(ebp + (-0x24)); /* 0x3000FC98: mov ebx, dword ptr [ebp - 0x24] */ 1079 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1080 ecx = 0; /* 0x3000FC9B: xor ecx, ecx */ 1081 _cf = 0; 1082 _flag_k = FK_TEST; 1083 MEM32(esi + 0x4) = edx; /* 0x3000FC9D: mov dword ptr [esi + 4], edx */ 1084 eax = edx + ecx * 4 + 0x4; /* 0x3000FCA0: lea eax, [edx + ecx*4 + 4] */ 1085 MEM32(esi + 0x8) = eax; /* 0x3000FCA4: mov dword ptr [esi + 8], eax */ 1086 goto L_3000FD4F; /* 0x3000FCA7: jmp 0x3000fd4f */ 1087 L_3000FCAC: 1088 ecx = MEM32(esi + 0x8); /* 0x3000FCAC: mov ecx, dword ptr [esi + 8] */ 1089 ebx = MEM32(ebp + (-0x24)); /* 0x3000FCAF: mov ebx, dword ptr [ebp - 0x24] */ 1090 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1092 ecx = ecx - eax; /* 0x3000FCB2: sub ecx, eax */ 1093 _flag_k = FK_CMP; 1094 MEM32(esi + 0x4) = edx; /* 0x3000FCB4: mov dword ptr [esi + 4], edx */ 1095 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3000FCB7: sar ecx, 2 */ 1096 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1097 ecx = (uint32_t)((int32_t)ecx >> 2u); 1098 eax = edx + ecx * 4 + 0x4; /* 0x3000FCBA: lea eax, [edx + ecx*4 + 4] */ 1099 MEM32(esi + 0x8) = eax; /* 0x3000FCBE: mov dword ptr [esi + 8], eax */ 1100 goto L_3000FD4F; /* 0x3000FCC1: jmp 0x3000fd4f */ 1101 L_3000FCC6: 1102 ecx = eax; /* 0x3000FCC6: mov ecx, eax */ 1103 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1105 ecx = ecx - edi; /* 0x3000FCC8: sub ecx, edi */ 1106 _flag_k = FK_CMP; 1107 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3000FCCA: sar ecx, 2 */ 1108 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1109 ecx = (uint32_t)((int32_t)ecx >> 2u); 1110 /* cmp ecx, 1 */ /* 0x3000FCCD: cmp ecx, 1 */ 1111 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1113 _flag_k = FK_CMP; 1114 if (CMP_AE(_flag_a, _flag_b)) goto L_3000FD12; /* 0x3000FCD0: jae 0x3000fd12 */ 1115 L_3000FCD2: 1116 edx = edi + 0x4; /* 0x3000FCD2: lea edx, [edi + 4] */ 1117 ecx = esi; /* 0x3000FCD5: mov ecx, esi */ 1118 PUSH32(esp, edx); /* 0x3000FCD7: push edx */ 1119 PUSH32(esp, eax); /* 0x3000FCD8: push eax */ 1120 PUSH32(esp, edi); /* 0x3000FCD9: push edi */ 1121 RECOMP_ICALL(0x30012BB0u); /* 0x3000FCDA: call 0x30012bb0 */ /* not lifted */ 1122 RECOMP_FLAGS_IN(); 1123 eax = MEM32(esi + 0x8); /* 0x3000FCDF: mov eax, dword ptr [esi + 8] */ 1124 ecx = ebp + (-0x10); /* 0x3000FCE2: lea ecx, [ebp - 0x10] */ 1125 edx = eax; /* 0x3000FCE5: mov edx, eax */ 1126 PUSH32(esp, ecx); /* 0x3000FCE7: push ecx */ 1127 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 1128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1129 edx = edx - edi; /* 0x3000FCE8: sub edx, edi */ 1130 _flag_k = FK_CMP; 1131 ecx = 1; /* 0x3000FCEA: mov ecx, 1 */ 1132 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3000FCEF: sar edx, 2 */ 1133 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1134 edx = (uint32_t)((int32_t)edx >> 2u); 1135 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1136 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1137 ecx = ecx - edx; /* 0x3000FCF2: sub ecx, edx */ 1138 _flag_k = FK_CMP; 1139 PUSH32(esp, ecx); /* 0x3000FCF4: push ecx */ 1140 PUSH32(esp, eax); /* 0x3000FCF5: push eax */ 1141 ecx = esi; /* 0x3000FCF6: mov ecx, esi */ 1142 RECOMP_ICALL(0x30005340u); /* 0x3000FCF8: call 0x30005340 */ /* not lifted */ 1143 RECOMP_FLAGS_IN(); 1144 eax = MEM32(esi + 0x8); /* 0x3000FCFD: mov eax, dword ptr [esi + 8] */ 1145 /* cmp edi, eax */ /* 0x3000FD00: cmp edi, eax */ 1146 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1148 _flag_k = FK_CMP; 1149 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FD4B; /* 0x3000FD02: je 0x3000fd4b */ 1150 L_3000FD04: 1151 edx = MEM32(ebp + (-0x10)); /* 0x3000FD04: mov edx, dword ptr [ebp - 0x10] */ 1152 MEM32(edi) = edx; /* 0x3000FD07: mov dword ptr [edi], edx */ 1153 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 1154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1155 edi = edi + 4; /* 0x3000FD09: add edi, 4 */ 1156 _flag_k = FK_ADD; 1157 /* cmp edi, eax */ /* 0x3000FD0C: cmp edi, eax */ 1158 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1160 _flag_k = FK_CMP; 1161 RECOMP_BACKEDGE(); 1162 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FD04; /* 0x3000FD0E: jne 0x3000fd04 */ 1163 L_3000FD10: 1164 goto L_3000FD4B; /* 0x3000FD10: jmp 0x3000fd4b */ 1165 L_3000FD12: 1166 PUSH32(esp, eax); /* 0x3000FD12: push eax */ 1167 PUSH32(esp, eax); /* 0x3000FD13: push eax */ 1168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 1169 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1170 eax = eax + 0xFFFFFFFCu; /* 0x3000FD14: add eax, -4 */ 1171 _flag_k = FK_ADD; 1172 ecx = esi; /* 0x3000FD17: mov ecx, esi */ 1173 PUSH32(esp, eax); /* 0x3000FD19: push eax */ 1174 RECOMP_ICALL(0x30012BB0u); /* 0x3000FD1A: call 0x30012bb0 */ /* not lifted */ 1175 RECOMP_FLAGS_IN(); 1176 ecx = MEM32(esi + 0x8); /* 0x3000FD1F: mov ecx, dword ptr [esi + 8] */ 1177 eax = ecx + (-0x4); /* 0x3000FD22: lea eax, [ecx - 4] */ 1178 /* cmp edi, eax */ /* 0x3000FD25: cmp edi, eax */ 1179 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1181 _flag_k = FK_CMP; 1182 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FD38; /* 0x3000FD27: je 0x3000fd38 */ 1183 L_3000FD29: 1184 edx = MEM32(eax + (-0x4)); /* 0x3000FD29: mov edx, dword ptr [eax - 4] */ 1185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1187 eax = eax - 4; /* 0x3000FD2C: sub eax, 4 */ 1188 _flag_k = FK_CMP; 1189 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1191 ecx = ecx - 4; /* 0x3000FD2F: sub ecx, 4 */ 1192 _flag_k = FK_CMP; 1193 /* cmp eax, edi */ /* 0x3000FD32: cmp eax, edi */ 1194 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1196 _flag_k = FK_CMP; 1197 MEM32(ecx) = edx; /* 0x3000FD34: mov dword ptr [ecx], edx */ 1198 RECOMP_BACKEDGE(); 1199 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FD29; /* 0x3000FD36: jne 0x3000fd29 */ 1200 L_3000FD38: 1201 eax = edi + 0x4; /* 0x3000FD38: lea eax, [edi + 4] */ 1202 /* cmp edi, eax */ /* 0x3000FD3B: cmp edi, eax */ 1203 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1205 _flag_k = FK_CMP; 1206 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FD4B; /* 0x3000FD3D: je 0x3000fd4b */ 1207 L_3000FD3F: 1208 ecx = MEM32(ebp + (-0x10)); /* 0x3000FD3F: mov ecx, dword ptr [ebp - 0x10] */ 1209 MEM32(edi) = ecx; /* 0x3000FD42: mov dword ptr [edi], ecx */ 1210 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 1211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1212 edi = edi + 4; /* 0x3000FD44: add edi, 4 */ 1213 _flag_k = FK_ADD; 1214 /* cmp edi, eax */ /* 0x3000FD47: cmp edi, eax */ 1215 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1217 _flag_k = FK_CMP; 1218 RECOMP_BACKEDGE(); 1219 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FD3F; /* 0x3000FD49: jne 0x3000fd3f */ 1220 L_3000FD4B: 1221 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 1222 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1223 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x3000FD4B: add dword ptr [esi + 8], 4 */ 1224 _flag_k = FK_ADD; 1225 L_3000FD4F: 1226 eax = MEM32(ebx + 0x4); /* 0x3000FD4F: mov eax, dword ptr [ebx + 4] */ 1227 ecx = MEM32(ebp + (-0xC)); /* 0x3000FD52: mov ecx, dword ptr [ebp - 0xc] */ 1228 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1229 eax = eax + 1; /* 0x3000FD55: inc eax */ 1230 _flag_k = FK_INC; 1231 edi = POP32_VAL(esp); /* 0x3000FD56: pop edi */ 1232 MEM32(ebx + 0x4) = eax; /* 0x3000FD57: mov dword ptr [ebx + 4], eax */ 1233 eax = MEM32(ebp + (-0x18)); /* 0x3000FD5A: mov eax, dword ptr [ebp - 0x18] */ 1234 esi = POP32_VAL(esp); /* 0x3000FD5D: pop esi */ 1235 ebx = POP32_VAL(esp); /* 0x3000FD5E: pop ebx */ 1236 MEM32(FS_BASE + (0)) = ecx; /* 0x3000FD5F: mov dword ptr fs:[0], ecx */ 1237 esp = ebp; /* 0x3000FD66: mov esp, ebp */ 1238 ebp = POP32_VAL(esp); /* 0x3000FD68: pop ebp */ 1239 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000FD69: ret */ 1240 RECOMP_REGS_OUT(); 1241 } 1242 1243 void sub_3000FD4F(void) { 1244 int _fpu_cmp = 0; 1245 uint32_t _cf = 0; 1246 int _df = 1; 1247 uint32_t _flag_k = FK_NONE; 1248 uint32_t _flag_a = 0, _flag_b = 0; 1249 uint32_t _itail_tgt = 0; 1250 RECOMP_REGS_LOCALS 1251 RECOMP_ENTER(0x3000FD4Fu); 1252 1253 L_3000FD4F: 1254 eax = MEM32(ebx + 0x4); /* 0x3000FD4F: mov eax, dword ptr [ebx + 4] */ 1255 ecx = MEM32(ebp + (-0xC)); /* 0x3000FD52: mov ecx, dword ptr [ebp - 0xc] */ 1256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1257 eax = eax + 1; /* 0x3000FD55: inc eax */ 1258 _flag_k = FK_INC; 1259 edi = POP32_VAL(esp); /* 0x3000FD56: pop edi */ 1260 MEM32(ebx + 0x4) = eax; /* 0x3000FD57: mov dword ptr [ebx + 4], eax */ 1261 eax = MEM32(ebp + (-0x18)); /* 0x3000FD5A: mov eax, dword ptr [ebp - 0x18] */ 1262 esi = POP32_VAL(esp); /* 0x3000FD5D: pop esi */ 1263 ebx = POP32_VAL(esp); /* 0x3000FD5E: pop ebx */ 1264 MEM32(FS_BASE + (0)) = ecx; /* 0x3000FD5F: mov dword ptr fs:[0], ecx */ 1265 esp = ebp; /* 0x3000FD66: mov esp, ebp */ 1266 ebp = POP32_VAL(esp); /* 0x3000FD68: pop ebp */ 1267 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3000FD69: ret */ 1268 RECOMP_REGS_OUT(); 1269 } 1270 1271 void sub_3000FD70(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(0x3000FD70u); 1280 1281 L_3000FD70: 1282 PUSH32(esp, ebp); /* 0x3000FD70: push ebp */ 1283 ebp = esp; /* 0x3000FD71: mov ebp, esp */ 1284 PUSH32(esp, 0xFFFFFFFFu); /* 0x3000FD73: push -1 */ 1285 PUSH32(esp, 0x30018A88u); /* 0x3000FD75: push 0x30018a88 */ 1286 eax = MEM32(FS_BASE + (0)); /* 0x3000FD7A: mov eax, dword ptr fs:[0] */ 1287 PUSH32(esp, eax); /* 0x3000FD80: push eax */ 1288 MEM32(FS_BASE + (0)) = esp; /* 0x3000FD81: mov dword ptr fs:[0], esp */ 1289 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xA4u); 1290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1291 esp = esp - 0xA4u; /* 0x3000FD88: sub esp, 0xa4 */ 1292 _flag_k = FK_CMP; 1293 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x3000FD8E: mov al, byte ptr [ebp + 0xf] */ 1294 PUSH32(esp, ebx); /* 0x3000FD91: push ebx */ 1295 PUSH32(esp, esi); /* 0x3000FD92: push esi */ 1296 PUSH32(esp, edi); /* 0x3000FD93: push edi */ 1297 edi = ecx; /* 0x3000FD94: mov edi, ecx */ 1298 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1299 ebx = 0; /* 0x3000FD96: xor ebx, ebx */ 1300 _cf = 0; 1301 _flag_k = FK_TEST; 1302 ecx = ebp + (-0x40); /* 0x3000FD98: lea ecx, [ebp - 0x40] */ 1303 MEM32(ebp + (-0x70)) = edi; /* 0x3000FD9B: mov dword ptr [ebp - 0x70], edi */ 1304 MEM32(ebp + (-0x60)) = ebx; /* 0x3000FD9E: mov dword ptr [ebp - 0x60], ebx */ 1305 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(eax)); /* 0x3000FDA1: mov byte ptr [ebp - 0x44], al */ 1306 RECOMP_ICALL(0x30011AC0u); /* 0x3000FDA4: call 0x30011ac0 */ /* not lifted */ 1307 RECOMP_FLAGS_IN(); 1308 ecx = ebp + (-0x30); /* 0x3000FDA9: lea ecx, [ebp - 0x30] */ 1309 RECOMP_ICALL(0x30011AC0u); /* 0x3000FDAC: call 0x30011ac0 */ /* not lifted */ 1310 RECOMP_FLAGS_IN(); 1311 MEM32(ebp + (-0x20)) = ebx; /* 0x3000FDB1: mov dword ptr [ebp - 0x20], ebx */ 1312 MEM32(ebp + (-0x1C)) = ebx; /* 0x3000FDB4: mov dword ptr [ebp - 0x1c], ebx */ 1313 MEM32(ebp + (-0x18)) = ebx; /* 0x3000FDB7: mov dword ptr [ebp - 0x18], ebx */ 1314 ecx = ebp + (-0x44); /* 0x3000FDBA: lea ecx, [ebp - 0x44] */ 1315 MEM32(ebp + (-0x4)) = ebx; /* 0x3000FDBD: mov dword ptr [ebp - 4], ebx */ 1316 RECOMP_ICALL(0x30011800u); /* 0x3000FDC0: call 0x30011800 */ /* not lifted */ 1317 RECOMP_FLAGS_IN(); 1318 ecx = ebp + (-0x30); /* 0x3000FDC5: lea ecx, [ebp - 0x30] */ 1319 RECOMP_ICALL(0x30011AD0u); /* 0x3000FDC8: call 0x30011ad0 */ /* not lifted */ 1320 RECOMP_FLAGS_IN(); 1321 ecx = ebp + (-0x80); /* 0x3000FDCD: lea ecx, [ebp - 0x80] */ 1322 PUSH32(esp, 1); /* 0x3000FDD0: push 1 */ 1323 PUSH32(esp, ecx); /* 0x3000FDD2: push ecx */ 1324 ecx = ebp + (-0x30); /* 0x3000FDD3: lea ecx, [ebp - 0x30] */ 1325 RECOMP_ICALL(0x30011B10u); /* 0x3000FDD6: call 0x30011b10 */ /* not lifted */ 1326 RECOMP_FLAGS_IN(); 1327 edx = eax; /* 0x3000FDDB: mov edx, eax */ 1328 esi = edi + 0x8; /* 0x3000FDDD: lea esi, [edi + 8] */ 1329 PUSH32(esp, esi); /* 0x3000FDE0: push esi */ 1330 eax = MEM32(edx); /* 0x3000FDE1: mov eax, dword ptr [edx] */ 1331 MEM32(ebp + (-0x90)) = eax; /* 0x3000FDE3: mov dword ptr [ebp - 0x90], eax */ 1332 ecx = MEM32(edx + 0x4); /* 0x3000FDE9: mov ecx, dword ptr [edx + 4] */ 1333 MEM32(ebp + (-0x8C)) = ecx; /* 0x3000FDEC: mov dword ptr [ebp - 0x8c], ecx */ 1334 eax = MEM32(edx + 0x8); /* 0x3000FDF2: mov eax, dword ptr [edx + 8] */ 1335 PUSH32(esp, eax); /* 0x3000FDF5: push eax */ 1336 edx = MEM32(edx + 0xC); /* 0x3000FDF6: mov edx, dword ptr [edx + 0xc] */ 1337 MEM32(ebp + (-0x84)) = edx; /* 0x3000FDF9: mov dword ptr [ebp - 0x84], edx */ 1338 RECOMP_ICALL(0x300053D0u); /* 0x3000FDFF: call 0x300053d0 */ /* not lifted */ 1339 RECOMP_FLAGS_IN(); 1340 edx = MEM32(ebp + (-0x18)); /* 0x3000FE04: mov edx, dword ptr [ebp - 0x18] */ 1341 ecx = MEM32(esi); /* 0x3000FE07: mov ecx, dword ptr [esi] */ 1342 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1343 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1344 esp = esp + 8; /* 0x3000FE09: add esp, 8 */ 1345 _flag_k = FK_ADD; 1346 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1347 edx = edx + 1; /* 0x3000FE0C: inc edx */ 1348 _flag_k = FK_INC; 1349 MEM32(ebp + (-0x18)) = edx; /* 0x3000FE0D: mov dword ptr [ebp - 0x18], edx */ 1350 RECOMP_ICALL(0x3000F4E0u); /* 0x3000FE10: call 0x3000f4e0 */ /* not lifted */ 1351 RECOMP_FLAGS_IN(); 1352 eax = MEM32(ebp + (-0x18)); /* 0x3000FE15: mov eax, dword ptr [ebp - 0x18] */ 1353 /* cmp eax, ebx */ /* 0x3000FE18: cmp eax, ebx */ 1354 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1356 _flag_k = FK_CMP; 1357 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001014B; /* 0x3000FE1A: je 0x3001014b */ 1358 L_3000FE20: 1359 ecx = MEM32(ebp + (-0x38)); /* 0x3000FE20: mov ecx, dword ptr [ebp - 0x38] */ 1360 /* test eax, eax */ /* 0x3000FE23: test eax, eax */ 1361 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1362 _cf = 0; 1363 _flag_k = FK_TEST; 1364 ebx = MEM32(ecx); /* 0x3000FE25: mov ebx, dword ptr [ecx] */ 1365 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FE31; /* 0x3000FE27: je 0x3000fe31 */ 1366 L_3000FE29: 1367 ecx = ebp + (-0x44); /* 0x3000FE29: lea ecx, [ebp - 0x44] */ 1368 RECOMP_ICALL(0x30011A00u); /* 0x3000FE2C: call 0x30011a00 */ /* not lifted */ 1369 RECOMP_FLAGS_IN(); 1370 L_3000FE31: 1371 eax = MEM32(ebx + 0x4); /* 0x3000FE31: mov eax, dword ptr [ebx + 4] */ 1372 /* test eax, eax */ /* 0x3000FE34: test eax, eax */ 1373 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1374 _cf = 0; 1375 _flag_k = FK_TEST; 1376 if (TEST_Z(_flag_a, _flag_b)) goto L_3001013B; /* 0x3000FE36: je 0x3001013b */ 1377 L_3000FE3C: 1378 edx = MEM32(ebx + 0x8); /* 0x3000FE3C: mov edx, dword ptr [ebx + 8] */ 1379 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1381 edx = edx - eax; /* 0x3000FE3F: sub edx, eax */ 1382 _flag_k = FK_CMP; 1383 eax = MEM32(ebp + 0xC); /* 0x3000FE41: mov eax, dword ptr [ebp + 0xc] */ 1384 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3000FE44: sar edx, 2 */ 1385 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1386 edx = (uint32_t)((int32_t)edx >> 2u); 1387 /* cmp edx, eax */ /* 0x3000FE47: cmp edx, eax */ 1388 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1390 _flag_k = FK_CMP; 1391 if (CMP_BE(_flag_a, _flag_b)) goto L_3001013B; /* 0x3000FE49: jbe 0x3001013b */ 1392 L_3000FE4F: 1393 eax = ebx + 0x2C; /* 0x3000FE4F: lea eax, [ebx + 0x2c] */ 1394 ecx = MEM32(ebx + 0x2C); /* 0x3000FE52: mov ecx, dword ptr [ebx + 0x2c] */ 1395 MEM32(ebp + (-0x8C)) = ecx; /* 0x3000FE55: mov dword ptr [ebp - 0x8c], ecx */ 1396 ecx = ebx + 0x20; /* 0x3000FE5B: lea ecx, [ebx + 0x20] */ 1397 edx = MEM32(eax + 0x4); /* 0x3000FE5E: mov edx, dword ptr [eax + 4] */ 1398 PUSH32(esp, ecx); /* 0x3000FE61: push ecx */ 1399 ecx = ebp + (-0x8C); /* 0x3000FE62: lea ecx, [ebp - 0x8c] */ 1400 MEM32(ebp + (-0x88)) = edx; /* 0x3000FE68: mov dword ptr [ebp - 0x88], edx */ 1401 eax = MEM32(eax + 0x8); /* 0x3000FE6E: mov eax, dword ptr [eax + 8] */ 1402 MEM32(ebp + (-0x84)) = eax; /* 0x3000FE71: mov dword ptr [ebp - 0x84], eax */ 1403 RECOMP_ICALL(MEM32(0x300190BC)); /* 0x3000FE77: call dword ptr [0x300190bc] */ 1404 RECOMP_FLAGS_IN(); 1405 edx = MEM32(eax); /* 0x3000FE7D: mov edx, dword ptr [eax] */ 1406 MEM32(ebp + (-0x6C)) = edx; /* 0x3000FE7F: mov dword ptr [ebp - 0x6c], edx */ 1407 ecx = MEM32(eax + 0x4); /* 0x3000FE82: mov ecx, dword ptr [eax + 4] */ 1408 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x3000FE85: fld dword ptr [ebp - 0x6c] */ 1409 edx = MEM32(eax + 0x8); /* 0x3000FE88: mov edx, dword ptr [eax + 8] */ 1410 MEM32(ebp + (-0x68)) = ecx; /* 0x3000FE8B: mov dword ptr [ebp - 0x68], ecx */ 1411 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x68))); /* 0x3000FE8E: fcomp dword ptr [ebp - 0x68] */ 1412 fp_pop(); 1413 MEM32(ebp + (-0x64)) = edx; /* 0x3000FE91: mov dword ptr [ebp - 0x64], edx */ 1414 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000FE94: fnstsw ax */ 1415 /* test HI8(eax), 0x41u */ /* 0x3000FE96: test ah, 0x41 */ 1416 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1417 _cf = 0; 1418 _flag_k = FK_NARROW(FK_TEST, 24); 1419 if (TEST_NZ(_flag_a, _flag_b)) goto L_3000FEA0; /* 0x3000FE99: jne 0x3000fea0 */ 1420 L_3000FE9B: 1421 fp_push(*(float*)&MEM32(ebp + (-0x6C))); /* 0x3000FE9B: fld dword ptr [ebp - 0x6c] */ 1422 goto L_3000FEA3; /* 0x3000FE9E: jmp 0x3000fea3 */ 1423 L_3000FEA0: 1424 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x3000FEA0: fld dword ptr [ebp - 0x68] */ 1425 L_3000FEA3: 1426 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x64))); /* 0x3000FEA3: fcom dword ptr [ebp - 0x64] */ 1427 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000FEA6: fnstsw ax */ 1428 /* test HI8(eax), 0x41u */ /* 0x3000FEA8: test ah, 0x41 */ 1429 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1430 _cf = 0; 1431 _flag_k = FK_NARROW(FK_TEST, 24); 1432 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FEB2; /* 0x3000FEAB: je 0x3000feb2 */ 1433 L_3000FEAD: 1434 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000FEAD: fstp st(0) */ 1435 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x3000FEAF: fld dword ptr [ebp - 0x64] */ 1436 L_3000FEB2: 1437 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x8)); /* 0x3000FEB2: fcomp dword ptr [ebp + 8] */ 1438 fp_pop(); 1439 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000FEB5: fnstsw ax */ 1440 /* test HI8(eax), 0x41u */ /* 0x3000FEB7: test ah, 0x41 */ 1441 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1442 _cf = 0; 1443 _flag_k = FK_NARROW(FK_TEST, 24); 1444 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001013B; /* 0x3000FEBA: jne 0x3001013b */ 1445 L_3000FEC0: 1446 MEM32(ebp + (-0x58)) = 0xFFFFFFFFu; /* 0x3000FEC0: mov dword ptr [ebp - 0x58], 0xffffffff */ 1447 MEM32(ebp + (-0x50)) = 0; /* 0x3000FEC7: mov dword ptr [ebp - 0x50], 0 */ 1448 MEM32(ebp + (-0x48)) = 0x5368D4A5u; /* 0x3000FECE: mov dword ptr [ebp - 0x48], 0x5368d4a5 */ 1449 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1450 esi = 0; /* 0x3000FED5: xor esi, esi */ 1451 _cf = 0; 1452 _flag_k = FK_TEST; 1453 L_3000FED7: 1454 edi = MEM32(ebx + 0x4); /* 0x3000FED7: mov edi, dword ptr [ebx + 4] */ 1455 eax = MEM32(ebx + 0x8); /* 0x3000FEDA: mov eax, dword ptr [ebx + 8] */ 1456 /* cmp edi, eax */ /* 0x3000FEDD: cmp edi, eax */ 1457 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1459 _flag_k = FK_CMP; 1460 if (CMP_EQ(_flag_a, _flag_b)) goto L_3000FFC2; /* 0x3000FEDF: je 0x3000ffc2 */ 1461 L_3000FEE5: 1462 eax = MEM32(edi); /* 0x3000FEE5: mov eax, dword ptr [edi] */ 1463 ecx = ebp + (-0x4C); /* 0x3000FEE7: lea ecx, [ebp - 0x4c] */ 1464 edx = ebp + (-0x54); /* 0x3000FEEA: lea edx, [ebp - 0x54] */ 1465 PUSH32(esp, ecx); /* 0x3000FEED: push ecx */ 1466 fp_push(*(float*)&MEM32(eax + esi * 4)); /* 0x3000FEEE: fld dword ptr [eax + esi*4] */ 1467 eax = ebp + (-0x5C); /* 0x3000FEF1: lea eax, [ebp - 0x5c] */ 1468 PUSH32(esp, edx); /* 0x3000FEF4: push edx */ 1469 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000FEF5: fstp dword ptr [ebp - 0x14] */ 1470 ecx = MEM32(ebp + (-0x14)); /* 0x3000FEF8: mov ecx, dword ptr [ebp - 0x14] */ 1471 PUSH32(esp, eax); /* 0x3000FEFB: push eax */ 1472 PUSH32(esp, esi); /* 0x3000FEFC: push esi */ 1473 PUSH32(esp, ecx); /* 0x3000FEFD: push ecx */ 1474 ecx = ebx; /* 0x3000FEFE: mov ecx, ebx */ 1475 RECOMP_ICALL(0x3000F460u); /* 0x3000FF00: call 0x3000f460 */ /* not lifted */ 1476 RECOMP_FLAGS_IN(); 1477 eax = MEM32(ebp + (-0x5C)); /* 0x3000FF05: mov eax, dword ptr [ebp - 0x5c] */ 1478 /* test eax, eax */ /* 0x3000FF08: test eax, eax */ 1479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1480 _cf = 0; 1481 _flag_k = FK_TEST; 1482 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FF2C; /* 0x3000FF0A: je 0x3000ff2c */ 1483 L_3000FF0C: 1484 ecx = MEM32(ebp + (-0x54)); /* 0x3000FF0C: mov ecx, dword ptr [ebp - 0x54] */ 1485 /* test ecx, ecx */ /* 0x3000FF0F: test ecx, ecx */ 1486 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1487 _cf = 0; 1488 _flag_k = FK_TEST; 1489 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FF2C; /* 0x3000FF11: je 0x3000ff2c */ 1490 L_3000FF13: 1491 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1493 eax = eax - ecx; /* 0x3000FF13: sub eax, ecx */ 1494 _flag_k = FK_CMP; 1495 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3000FF15: cdq */ 1496 ecx = eax; /* 0x3000FF16: mov ecx, eax */ 1497 eax = MEM32(ebp + (-0x4C)); /* 0x3000FF18: mov eax, dword ptr [ebp - 0x4c] */ 1498 _flag_a = (uint32_t)((ecx ^ edx)); _flag_b = (uint32_t)((ecx ^ edx)); 1499 ecx = ecx ^ edx; /* 0x3000FF1B: xor ecx, edx */ 1500 _cf = 0; 1501 _flag_k = FK_TEST; 1502 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1504 ecx = ecx - edx; /* 0x3000FF1D: sub ecx, edx */ 1505 _flag_k = FK_CMP; 1506 edx = eax + eax * 4; /* 0x3000FF1F: lea edx, [eax + eax*4] */ 1507 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1508 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1509 ecx = ecx + edx; /* 0x3000FF22: add ecx, edx */ 1510 _flag_k = FK_ADD; 1511 MEM32(ebp + (-0x10)) = ecx; /* 0x3000FF24: mov dword ptr [ebp - 0x10], ecx */ 1512 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3000FF27: fild dword ptr [ebp - 0x10] */ 1513 goto L_3000FF32; /* 0x3000FF2A: jmp 0x3000ff32 */ 1514 L_3000FF2C: 1515 fp_push(*(float*)&MEM32(0x300192A0)); /* 0x3000FF2C: fld dword ptr [0x300192a0] */ 1516 L_3000FF32: 1517 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x48))); /* 0x3000FF32: fcom dword ptr [ebp - 0x48] */ 1518 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000FF35: fnstsw ax */ 1519 /* test HI8(eax), 1 */ /* 0x3000FF37: test ah, 1 */ 1520 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1521 _cf = 0; 1522 _flag_k = FK_NARROW(FK_TEST, 24); 1523 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FF4A; /* 0x3000FF3A: je 0x3000ff4a */ 1524 L_3000FF3C: 1525 eax = MEM32(ebp + (-0x14)); /* 0x3000FF3C: mov eax, dword ptr [ebp - 0x14] */ 1526 MEM32(ebp + (-0x58)) = esi; /* 0x3000FF3F: mov dword ptr [ebp - 0x58], esi */ 1527 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x3000FF42: fstp dword ptr [ebp - 0x48] */ 1528 MEM32(ebp + (-0x50)) = eax; /* 0x3000FF45: mov dword ptr [ebp - 0x50], eax */ 1529 goto L_3000FF4C; /* 0x3000FF48: jmp 0x3000ff4c */ 1530 L_3000FF4A: 1531 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000FF4A: fstp st(0) */ 1532 L_3000FF4C: 1533 ecx = MEM32(edi); /* 0x3000FF4C: mov ecx, dword ptr [edi] */ 1534 edx = ebp + (-0x4C); /* 0x3000FF4E: lea edx, [ebp - 0x4c] */ 1535 eax = ebp + (-0x54); /* 0x3000FF51: lea eax, [ebp - 0x54] */ 1536 PUSH32(esp, edx); /* 0x3000FF54: push edx */ 1537 fp_push(*(float*)&MEM32(ecx + esi * 4 + 0xC)); /* 0x3000FF55: fld dword ptr [ecx + esi*4 + 0xc] */ 1538 ecx = ebp + (-0x5C); /* 0x3000FF59: lea ecx, [ebp - 0x5c] */ 1539 PUSH32(esp, eax); /* 0x3000FF5C: push eax */ 1540 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3000FF5D: fstp dword ptr [ebp - 0x14] */ 1541 edx = MEM32(ebp + (-0x14)); /* 0x3000FF60: mov edx, dword ptr [ebp - 0x14] */ 1542 PUSH32(esp, ecx); /* 0x3000FF63: push ecx */ 1543 PUSH32(esp, esi); /* 0x3000FF64: push esi */ 1544 PUSH32(esp, edx); /* 0x3000FF65: push edx */ 1545 ecx = ebx; /* 0x3000FF66: mov ecx, ebx */ 1546 RECOMP_ICALL(0x3000F460u); /* 0x3000FF68: call 0x3000f460 */ /* not lifted */ 1547 RECOMP_FLAGS_IN(); 1548 eax = MEM32(ebp + (-0x5C)); /* 0x3000FF6D: mov eax, dword ptr [ebp - 0x5c] */ 1549 /* test eax, eax */ /* 0x3000FF70: test eax, eax */ 1550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1551 _cf = 0; 1552 _flag_k = FK_TEST; 1553 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FF94; /* 0x3000FF72: je 0x3000ff94 */ 1554 L_3000FF74: 1555 ecx = MEM32(ebp + (-0x54)); /* 0x3000FF74: mov ecx, dword ptr [ebp - 0x54] */ 1556 /* test ecx, ecx */ /* 0x3000FF77: test ecx, ecx */ 1557 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1558 _cf = 0; 1559 _flag_k = FK_TEST; 1560 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FF94; /* 0x3000FF79: je 0x3000ff94 */ 1561 L_3000FF7B: 1562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1564 eax = eax - ecx; /* 0x3000FF7B: sub eax, ecx */ 1565 _flag_k = FK_CMP; 1566 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3000FF7D: cdq */ 1567 ecx = eax; /* 0x3000FF7E: mov ecx, eax */ 1568 eax = MEM32(ebp + (-0x4C)); /* 0x3000FF80: mov eax, dword ptr [ebp - 0x4c] */ 1569 _flag_a = (uint32_t)((ecx ^ edx)); _flag_b = (uint32_t)((ecx ^ edx)); 1570 ecx = ecx ^ edx; /* 0x3000FF83: xor ecx, edx */ 1571 _cf = 0; 1572 _flag_k = FK_TEST; 1573 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1575 ecx = ecx - edx; /* 0x3000FF85: sub ecx, edx */ 1576 _flag_k = FK_CMP; 1577 edx = eax + eax * 4; /* 0x3000FF87: lea edx, [eax + eax*4] */ 1578 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1579 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1580 ecx = ecx + edx; /* 0x3000FF8A: add ecx, edx */ 1581 _flag_k = FK_ADD; 1582 MEM32(ebp + (-0x10)) = ecx; /* 0x3000FF8C: mov dword ptr [ebp - 0x10], ecx */ 1583 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3000FF8F: fild dword ptr [ebp - 0x10] */ 1584 goto L_3000FF9A; /* 0x3000FF92: jmp 0x3000ff9a */ 1585 L_3000FF94: 1586 fp_push(*(float*)&MEM32(0x300192A0)); /* 0x3000FF94: fld dword ptr [0x300192a0] */ 1587 L_3000FF9A: 1588 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x48))); /* 0x3000FF9A: fcom dword ptr [ebp - 0x48] */ 1589 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3000FF9D: fnstsw ax */ 1590 /* test HI8(eax), 1 */ /* 0x3000FF9F: test ah, 1 */ 1591 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1592 _cf = 0; 1593 _flag_k = FK_NARROW(FK_TEST, 24); 1594 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FFB2; /* 0x3000FFA2: je 0x3000ffb2 */ 1595 L_3000FFA4: 1596 eax = MEM32(ebp + (-0x14)); /* 0x3000FFA4: mov eax, dword ptr [ebp - 0x14] */ 1597 MEM32(ebp + (-0x58)) = esi; /* 0x3000FFA7: mov dword ptr [ebp - 0x58], esi */ 1598 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x3000FFAA: fstp dword ptr [ebp - 0x48] */ 1599 MEM32(ebp + (-0x50)) = eax; /* 0x3000FFAD: mov dword ptr [ebp - 0x50], eax */ 1600 goto L_3000FFB4; /* 0x3000FFB0: jmp 0x3000ffb4 */ 1601 L_3000FFB2: 1602 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3000FFB2: fstp st(0) */ 1603 L_3000FFB4: 1604 eax = MEM32(ebx + 0x8); /* 0x3000FFB4: mov eax, dword ptr [ebx + 8] */ 1605 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 1606 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1607 edi = edi + 4; /* 0x3000FFB7: add edi, 4 */ 1608 _flag_k = FK_ADD; 1609 /* cmp edi, eax */ /* 0x3000FFBA: cmp edi, eax */ 1610 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1612 _flag_k = FK_CMP; 1613 RECOMP_BACKEDGE(); 1614 if (CMP_NE(_flag_a, _flag_b)) goto L_3000FEE5; /* 0x3000FFBC: jne 0x3000fee5 */ 1615 L_3000FFC2: 1616 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1617 esi = esi + 1; /* 0x3000FFC2: inc esi */ 1618 _flag_k = FK_INC; 1619 /* cmp esi, 3 */ /* 0x3000FFC3: cmp esi, 3 */ 1620 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3); 1621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1622 _flag_k = FK_CMP; 1623 RECOMP_BACKEDGE(); 1624 if (CMP_L(_flag_a, _flag_b)) goto L_3000FED7; /* 0x3000FFC6: jl 0x3000fed7 */ 1625 L_3000FFCC: 1626 eax = MEM32(ebp + (-0x58)); /* 0x3000FFCC: mov eax, dword ptr [ebp - 0x58] */ 1627 /* cmp eax, 0xFFFFFFFFu */ /* 0x3000FFCF: cmp eax, -1 */ 1628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1630 _flag_k = FK_CMP; 1631 if (CMP_EQ(_flag_a, _flag_b)) goto L_300100FB; /* 0x3000FFD2: je 0x300100fb */ 1632 L_3000FFD8: 1633 ecx = MEM32(ebp + (-0x50)); /* 0x3000FFD8: mov ecx, dword ptr [ebp - 0x50] */ 1634 PUSH32(esp, eax); /* 0x3000FFDB: push eax */ 1635 PUSH32(esp, ecx); /* 0x3000FFDC: push ecx */ 1636 ecx = ebx; /* 0x3000FFDD: mov ecx, ebx */ 1637 RECOMP_ICALL(0x3000F5A0u); /* 0x3000FFDF: call 0x3000f5a0 */ /* not lifted */ 1638 RECOMP_FLAGS_IN(); 1639 eax = MEM32(ebx + 0x14); /* 0x3000FFE4: mov eax, dword ptr [ebx + 0x14] */ 1640 MEM32(ebp + (-0x10)) = eax; /* 0x3000FFE7: mov dword ptr [ebp - 0x10], eax */ 1641 eax = MEM32(ebp + (-0x18)); /* 0x3000FFEA: mov eax, dword ptr [ebp - 0x18] */ 1642 /* test eax, eax */ /* 0x3000FFED: test eax, eax */ 1643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1644 _cf = 0; 1645 _flag_k = FK_TEST; 1646 if (TEST_Z(_flag_a, _flag_b)) goto L_3000FFFB; /* 0x3000FFEF: je 0x3000fffb */ 1647 L_3000FFF1: 1648 eax = MEM32(ebp + (-0x28)); /* 0x3000FFF1: mov eax, dword ptr [ebp - 0x28] */ 1649 ecx = MEM32(ebp + (-0x2C)); /* 0x3000FFF4: mov ecx, dword ptr [ebp - 0x2c] */ 1650 /* cmp eax, ecx */ /* 0x3000FFF7: cmp eax, ecx */ 1651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1653 _flag_k = FK_CMP; 1654 if (CMP_NE(_flag_a, _flag_b)) goto L_3001000D; /* 0x3000FFF9: jne 0x3001000d */ 1655 L_3000FFFB: 1656 ecx = ebp + (-0x44); /* 0x3000FFFB: lea ecx, [ebp - 0x44] */ 1657 RECOMP_ICALL(0x30011800u); /* 0x3000FFFE: call 0x30011800 */ /* not lifted */ 1658 RECOMP_FLAGS_IN(); 1659 eax = MEM32(ebp + (-0x28)); /* 0x30010003: mov eax, dword ptr [ebp - 0x28] */ 1660 ecx = MEM32(ebp + (-0x2C)); /* 0x30010006: mov ecx, dword ptr [ebp - 0x2c] */ 1661 /* cmp eax, ecx */ /* 0x30010009: cmp eax, ecx */ 1662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1664 _flag_k = FK_CMP; 1665 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010038; /* 0x3001000B: je 0x30010038 */ 1666 L_3001000D: 1667 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1669 eax = eax + 4; /* 0x3001000D: add eax, 4 */ 1670 _flag_k = FK_ADD; 1671 /* cmp eax, ecx */ /* 0x30010010: cmp eax, ecx */ 1672 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1674 _flag_k = FK_CMP; 1675 MEM32(ebp + (-0x28)) = eax; /* 0x30010012: mov dword ptr [ebp - 0x28], eax */ 1676 if (CMP_NE(_flag_a, _flag_b)) goto L_30010038; /* 0x30010015: jne 0x30010038 */ 1677 L_30010017: 1678 edx = MEM32(ebp + (-0x24)); /* 0x30010017: mov edx, dword ptr [ebp - 0x24] */ 1679 ecx = MEM32(edx + 0x4); /* 0x3001001A: mov ecx, dword ptr [edx + 4] */ 1680 eax = edx + 0x4; /* 0x3001001D: lea eax, [edx + 4] */ 1681 /* test ecx, ecx */ /* 0x30010020: test ecx, ecx */ 1682 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1683 _cf = 0; 1684 _flag_k = FK_TEST; 1685 if (TEST_Z(_flag_a, _flag_b)) goto L_30010038; /* 0x30010022: je 0x30010038 */ 1686 L_30010024: 1687 MEM32(ebp + (-0x24)) = eax; /* 0x30010024: mov dword ptr [ebp - 0x24], eax */ 1688 eax = MEM32(eax); /* 0x30010027: mov eax, dword ptr [eax] */ 1689 MEM32(ebp + (-0x30)) = eax; /* 0x30010029: mov dword ptr [ebp - 0x30], eax */ 1690 MEM32(ebp + (-0x28)) = eax; /* 0x3001002C: mov dword ptr [ebp - 0x28], eax */ 1691 ecx = eax + 0x1000; /* 0x3001002F: lea ecx, [eax + 0x1000] */ 1692 MEM32(ebp + (-0x2C)) = ecx; /* 0x30010035: mov dword ptr [ebp - 0x2c], ecx */ 1693 L_30010038: 1694 edx = ebp + (-0xB0); /* 0x30010038: lea edx, [ebp - 0xb0] */ 1695 PUSH32(esp, 1); /* 0x3001003E: push 1 */ 1696 PUSH32(esp, edx); /* 0x30010040: push edx */ 1697 ecx = ebp + (-0x30); /* 0x30010041: lea ecx, [ebp - 0x30] */ 1698 RECOMP_ICALL(0x30011B10u); /* 0x30010044: call 0x30011b10 */ /* not lifted */ 1699 RECOMP_FLAGS_IN(); 1700 ecx = eax; /* 0x30010049: mov ecx, eax */ 1701 edx = MEM32(ecx); /* 0x3001004B: mov edx, dword ptr [ecx] */ 1702 MEM32(ebp + (-0x80)) = edx; /* 0x3001004D: mov dword ptr [ebp - 0x80], edx */ 1703 edx = ebp + (-0x10); /* 0x30010050: lea edx, [ebp - 0x10] */ 1704 eax = MEM32(ecx + 0x4); /* 0x30010053: mov eax, dword ptr [ecx + 4] */ 1705 PUSH32(esp, edx); /* 0x30010056: push edx */ 1706 MEM32(ebp + (-0x7C)) = eax; /* 0x30010057: mov dword ptr [ebp - 0x7c], eax */ 1707 eax = MEM32(ecx + 0x8); /* 0x3001005A: mov eax, dword ptr [ecx + 8] */ 1708 PUSH32(esp, eax); /* 0x3001005D: push eax */ 1709 ecx = MEM32(ecx + 0xC); /* 0x3001005E: mov ecx, dword ptr [ecx + 0xc] */ 1710 MEM32(ebp + (-0x74)) = ecx; /* 0x30010061: mov dword ptr [ebp - 0x74], ecx */ 1711 RECOMP_ICALL(0x300053D0u); /* 0x30010064: call 0x300053d0 */ /* not lifted */ 1712 RECOMP_FLAGS_IN(); 1713 eax = MEM32(ebp + (-0x18)); /* 0x30010069: mov eax, dword ptr [ebp - 0x18] */ 1714 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1715 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1716 esp = esp + 8; /* 0x3001006C: add esp, 8 */ 1717 _flag_k = FK_ADD; 1718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1719 eax = eax + 1; /* 0x3001006F: inc eax */ 1720 _flag_k = FK_INC; 1721 MEM32(ebp + (-0x18)) = eax; /* 0x30010070: mov dword ptr [ebp - 0x18], eax */ 1722 ebx = MEM32(ebx + 0x10); /* 0x30010073: mov ebx, dword ptr [ebx + 0x10] */ 1723 MEM32(ebp + (-0x10)) = ebx; /* 0x30010076: mov dword ptr [ebp - 0x10], ebx */ 1724 if (/* inc result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_30010085; /* 0x30010079: je 0x30010085 */ 1725 L_3001007B: 1726 eax = MEM32(ebp + (-0x28)); /* 0x3001007B: mov eax, dword ptr [ebp - 0x28] */ 1727 ecx = MEM32(ebp + (-0x2C)); /* 0x3001007E: mov ecx, dword ptr [ebp - 0x2c] */ 1728 /* cmp eax, ecx */ /* 0x30010081: cmp eax, ecx */ 1729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1731 _flag_k = FK_CMP; 1732 if (CMP_NE(_flag_a, _flag_b)) goto L_30010097; /* 0x30010083: jne 0x30010097 */ 1733 L_30010085: 1734 ecx = ebp + (-0x44); /* 0x30010085: lea ecx, [ebp - 0x44] */ 1735 RECOMP_ICALL(0x30011800u); /* 0x30010088: call 0x30011800 */ /* not lifted */ 1736 RECOMP_FLAGS_IN(); 1737 eax = MEM32(ebp + (-0x28)); /* 0x3001008D: mov eax, dword ptr [ebp - 0x28] */ 1738 ecx = MEM32(ebp + (-0x2C)); /* 0x30010090: mov ecx, dword ptr [ebp - 0x2c] */ 1739 /* cmp eax, ecx */ /* 0x30010093: cmp eax, ecx */ 1740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1742 _flag_k = FK_CMP; 1743 if (CMP_EQ(_flag_a, _flag_b)) goto L_300100C0; /* 0x30010095: je 0x300100c0 */ 1744 L_30010097: 1745 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1746 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1747 eax = eax + 4; /* 0x30010097: add eax, 4 */ 1748 _flag_k = FK_ADD; 1749 /* cmp eax, ecx */ /* 0x3001009A: cmp eax, ecx */ 1750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1752 _flag_k = FK_CMP; 1753 MEM32(ebp + (-0x28)) = eax; /* 0x3001009C: mov dword ptr [ebp - 0x28], eax */ 1754 if (CMP_NE(_flag_a, _flag_b)) goto L_300100C0; /* 0x3001009F: jne 0x300100c0 */ 1755 L_300100A1: 1756 eax = MEM32(ebp + (-0x24)); /* 0x300100A1: mov eax, dword ptr [ebp - 0x24] */ 1757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1759 eax = eax + 4; /* 0x300100A4: add eax, 4 */ 1760 _flag_k = FK_ADD; 1761 /* cmp MEM32(eax), 0 */ /* 0x300100A7: cmp dword ptr [eax], 0 */ 1762 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 1763 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1764 _flag_k = FK_CMP; 1765 if (CMP_EQ(_flag_a, _flag_b)) goto L_300100C0; /* 0x300100AA: je 0x300100c0 */ 1766 L_300100AC: 1767 MEM32(ebp + (-0x24)) = eax; /* 0x300100AC: mov dword ptr [ebp - 0x24], eax */ 1768 eax = MEM32(eax); /* 0x300100AF: mov eax, dword ptr [eax] */ 1769 MEM32(ebp + (-0x30)) = eax; /* 0x300100B1: mov dword ptr [ebp - 0x30], eax */ 1770 MEM32(ebp + (-0x28)) = eax; /* 0x300100B4: mov dword ptr [ebp - 0x28], eax */ 1771 ecx = eax + 0x1000; /* 0x300100B7: lea ecx, [eax + 0x1000] */ 1772 MEM32(ebp + (-0x2C)) = ecx; /* 0x300100BD: mov dword ptr [ebp - 0x2c], ecx */ 1773 L_300100C0: 1774 edx = ebp + (-0xA0); /* 0x300100C0: lea edx, [ebp - 0xa0] */ 1775 PUSH32(esp, 1); /* 0x300100C6: push 1 */ 1776 PUSH32(esp, edx); /* 0x300100C8: push edx */ 1777 ecx = ebp + (-0x30); /* 0x300100C9: lea ecx, [ebp - 0x30] */ 1778 RECOMP_ICALL(0x30011B10u); /* 0x300100CC: call 0x30011b10 */ /* not lifted */ 1779 RECOMP_FLAGS_IN(); 1780 ecx = eax; /* 0x300100D1: mov ecx, eax */ 1781 edx = MEM32(ecx); /* 0x300100D3: mov edx, dword ptr [ecx] */ 1782 MEM32(ebp + (-0x80)) = edx; /* 0x300100D5: mov dword ptr [ebp - 0x80], edx */ 1783 edx = ebp + (-0x10); /* 0x300100D8: lea edx, [ebp - 0x10] */ 1784 eax = MEM32(ecx + 0x4); /* 0x300100DB: mov eax, dword ptr [ecx + 4] */ 1785 PUSH32(esp, edx); /* 0x300100DE: push edx */ 1786 MEM32(ebp + (-0x7C)) = eax; /* 0x300100DF: mov dword ptr [ebp - 0x7c], eax */ 1787 eax = MEM32(ecx + 0x8); /* 0x300100E2: mov eax, dword ptr [ecx + 8] */ 1788 PUSH32(esp, eax); /* 0x300100E5: push eax */ 1789 ecx = MEM32(ecx + 0xC); /* 0x300100E6: mov ecx, dword ptr [ecx + 0xc] */ 1790 MEM32(ebp + (-0x74)) = ecx; /* 0x300100E9: mov dword ptr [ebp - 0x74], ecx */ 1791 RECOMP_ICALL(0x300053D0u); /* 0x300100EC: call 0x300053d0 */ /* not lifted */ 1792 RECOMP_FLAGS_IN(); 1793 eax = MEM32(ebp + (-0x18)); /* 0x300100F1: mov eax, dword ptr [ebp - 0x18] */ 1794 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1795 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1796 esp = esp + 8; /* 0x300100F4: add esp, 8 */ 1797 _flag_k = FK_ADD; 1798 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1799 eax = eax + 1; /* 0x300100F7: inc eax */ 1800 _flag_k = FK_INC; 1801 MEM32(ebp + (-0x18)) = eax; /* 0x300100F8: mov dword ptr [ebp - 0x18], eax */ 1802 L_300100FB: 1803 eax = MEM32(ebp + (-0x60)); /* 0x300100FB: mov eax, dword ptr [ebp - 0x60] */ 1804 ecx = 0x64u; /* 0x300100FE: mov ecx, 0x64 */ 1805 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1806 eax = eax + 1; /* 0x30010103: inc eax */ 1807 _flag_k = FK_INC; 1808 MEM32(ebp + (-0x60)) = eax; /* 0x30010104: mov dword ptr [ebp - 0x60], eax */ 1809 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x30010107: cdq */ 1810 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x30010108: idiv ecx */ 1811 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 1812 else { eax = 0; edx = 0; } } 1813 /* test edx, edx */ /* 0x3001010A: test edx, edx */ 1814 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1815 _cf = 0; 1816 _flag_k = FK_TEST; 1817 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001013B; /* 0x3001010C: jne 0x3001013b */ 1818 L_3001010E: 1819 edx = MEM32(ebp + (-0x18)); /* 0x3001010E: mov edx, dword ptr [ebp - 0x18] */ 1820 eax = MEM32(0x30019010); /* 0x30010111: mov eax, dword ptr [0x30019010] */ 1821 esi = MEM32(0x3001900C); /* 0x30010116: mov esi, dword ptr [0x3001900c] */ 1822 PUSH32(esp, 0x3001E31Cu); /* 0x3001011C: push 0x3001e31c */ 1823 PUSH32(esp, edx); /* 0x30010121: push edx */ 1824 PUSH32(esp, 0x3001E318u); /* 0x30010122: push 0x3001e318 */ 1825 PUSH32(esp, eax); /* 0x30010127: push eax */ 1826 RECOMP_ICALL(esi); /* 0x30010128: call esi */ 1827 RECOMP_FLAGS_IN(); 1828 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1830 esp = esp + 8; /* 0x3001012A: add esp, 8 */ 1831 _flag_k = FK_ADD; 1832 ecx = eax; /* 0x3001012D: mov ecx, eax */ 1833 RECOMP_ICALL(MEM32(0x30019008)); /* 0x3001012F: call dword ptr [0x30019008] */ 1834 RECOMP_FLAGS_IN(); 1835 PUSH32(esp, eax); /* 0x30010135: push eax */ 1836 RECOMP_ICALL(esi); /* 0x30010136: call esi */ 1837 RECOMP_FLAGS_IN(); 1838 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1839 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1840 esp = esp + 8; /* 0x30010138: add esp, 8 */ 1841 _flag_k = FK_ADD; 1842 L_3001013B: 1843 eax = MEM32(ebp + (-0x18)); /* 0x3001013B: mov eax, dword ptr [ebp - 0x18] */ 1844 /* test eax, eax */ /* 0x3001013E: test eax, eax */ 1845 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1846 _cf = 0; 1847 _flag_k = FK_TEST; 1848 RECOMP_BACKEDGE(); 1849 if (TEST_NZ(_flag_a, _flag_b)) goto L_3000FE20; /* 0x30010140: jne 0x3000fe20 */ 1850 L_30010146: 1851 edi = MEM32(ebp + (-0x70)); /* 0x30010146: mov edi, dword ptr [ebp - 0x70] */ 1852 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1853 ebx = 0; /* 0x30010149: xor ebx, ebx */ 1854 _cf = 0; 1855 _flag_k = FK_TEST; 1856 L_3001014B: 1857 ecx = MEM32(0x30019010); /* 0x3001014B: mov ecx, dword ptr [0x30019010] */ 1858 PUSH32(esp, ecx); /* 0x30010151: push ecx */ 1859 RECOMP_ICALL(MEM32(0x30019014)); /* 0x30010152: call dword ptr [0x30019014] */ 1860 RECOMP_FLAGS_IN(); 1861 ecx = MEM32(ebp + (-0x18)); /* 0x30010158: mov ecx, dword ptr [ebp - 0x18] */ 1862 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1864 esp = esp + 4; /* 0x3001015B: add esp, 4 */ 1865 _flag_k = FK_ADD; 1866 /* cmp ecx, ebx */ /* 0x3001015E: cmp ecx, ebx */ 1867 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1869 _flag_k = FK_CMP; 1870 MEM8(edi) = (uint8_t)(1); /* 0x30010160: mov byte ptr [edi], 1 */ 1871 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x30010163: mov dword ptr [ebp - 4], 0xffffffff */ 1872 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001023F; /* 0x3001016A: je 0x3001023f */ 1873 L_30010170: 1874 eax = MEM32(ebp + (-0x34)); /* 0x30010170: mov eax, dword ptr [ebp - 0x34] */ 1875 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010234; /* 0x30010173: je 0x30010234 */ 1876 L_30010179: 1877 ecx = MEM32(ebp + (-0x38)); /* 0x30010179: mov ecx, dword ptr [ebp - 0x38] */ 1878 edx = MEM32(ebp + (-0x3C)); /* 0x3001017C: mov edx, dword ptr [ebp - 0x3c] */ 1879 /* cmp ecx, edx */ /* 0x3001017F: cmp ecx, edx */ 1880 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1882 _flag_k = FK_CMP; 1883 esi = eax; /* 0x30010181: mov esi, eax */ 1884 if (CMP_EQ(_flag_a, _flag_b)) goto L_300101AB; /* 0x30010183: je 0x300101ab */ 1885 L_30010185: 1886 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1888 ecx = ecx + 4; /* 0x30010185: add ecx, 4 */ 1889 _flag_k = FK_ADD; 1890 /* cmp ecx, edx */ /* 0x30010188: cmp ecx, edx */ 1891 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1893 _flag_k = FK_CMP; 1894 MEM32(ebp + (-0x38)) = ecx; /* 0x3001018A: mov dword ptr [ebp - 0x38], ecx */ 1895 if (CMP_NE(_flag_a, _flag_b)) goto L_300101AB; /* 0x3001018D: jne 0x300101ab */ 1896 L_3001018F: 1897 /* cmp MEM32(eax + 0x4), ebx */ /* 0x3001018F: cmp dword ptr [eax + 4], ebx */ 1898 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(ebx); 1899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1900 _flag_k = FK_CMP; 1901 if (CMP_EQ(_flag_a, _flag_b)) goto L_300101AB; /* 0x30010192: je 0x300101ab */ 1902 L_30010194: 1903 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1905 eax = eax + 4; /* 0x30010194: add eax, 4 */ 1906 _flag_k = FK_ADD; 1907 MEM32(ebp + (-0x34)) = eax; /* 0x30010197: mov dword ptr [ebp - 0x34], eax */ 1908 ecx = MEM32(eax); /* 0x3001019A: mov ecx, dword ptr [eax] */ 1909 MEM32(ebp + (-0x40)) = ecx; /* 0x3001019C: mov dword ptr [ebp - 0x40], ecx */ 1910 MEM32(ebp + (-0x38)) = ecx; /* 0x3001019F: mov dword ptr [ebp - 0x38], ecx */ 1911 edx = ecx + 0x1000; /* 0x300101A2: lea edx, [ecx + 0x1000] */ 1912 MEM32(ebp + (-0x3C)) = edx; /* 0x300101A8: mov dword ptr [ebp - 0x3c], edx */ 1913 L_300101AB: 1914 ecx = MEM32(ebp + (-0x18)); /* 0x300101AB: mov ecx, dword ptr [ebp - 0x18] */ 1915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1916 ecx = ecx - 1; /* 0x300101AE: dec ecx */ 1917 _flag_k = FK_DEC; 1918 MEM32(ebp + (-0x18)) = ecx; /* 0x300101AF: mov dword ptr [ebp - 0x18], ecx */ 1919 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30010220; /* 0x300101B2: jne 0x30010220 */ 1920 L_300101B4: 1921 eax = MEM32(eax + (-0x4)); /* 0x300101B4: mov eax, dword ptr [eax - 4] */ 1922 PUSH32(esp, eax); /* 0x300101B7: push eax */ 1923 RECOMP_ICALL(0x30018080u); /* 0x300101B8: call 0x30018080 */ /* not lifted */ 1924 RECOMP_FLAGS_IN(); 1925 ecx = MEM32(ebp + (-0x34)); /* 0x300101BD: mov ecx, dword ptr [ebp - 0x34] */ 1926 edx = MEM32(ecx); /* 0x300101C0: mov edx, dword ptr [ecx] */ 1927 PUSH32(esp, edx); /* 0x300101C2: push edx */ 1928 RECOMP_ICALL(0x30018080u); /* 0x300101C3: call 0x30018080 */ /* not lifted */ 1929 RECOMP_FLAGS_IN(); 1930 eax = MEM32(ebp + (-0x34)); /* 0x300101C8: mov eax, dword ptr [ebp - 0x34] */ 1931 ecx = MEM32(eax + 0x4); /* 0x300101CB: mov ecx, dword ptr [eax + 4] */ 1932 PUSH32(esp, ecx); /* 0x300101CE: push ecx */ 1933 RECOMP_ICALL(0x30018080u); /* 0x300101CF: call 0x30018080 */ /* not lifted */ 1934 RECOMP_FLAGS_IN(); 1935 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1936 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1937 esp = esp + 0xCu; /* 0x300101D4: add esp, 0xc */ 1938 _flag_k = FK_ADD; 1939 ecx = ebp + (-0xA0); /* 0x300101D7: lea ecx, [ebp - 0xa0] */ 1940 RECOMP_ICALL(0x30011AC0u); /* 0x300101DD: call 0x30011ac0 */ /* not lifted */ 1941 RECOMP_FLAGS_IN(); 1942 edx = eax; /* 0x300101E2: mov edx, eax */ 1943 ecx = MEM32(edx); /* 0x300101E4: mov ecx, dword ptr [edx] */ 1944 MEM32(ebp + (-0x40)) = ecx; /* 0x300101E6: mov dword ptr [ebp - 0x40], ecx */ 1945 ecx = MEM32(edx + 0x4); /* 0x300101E9: mov ecx, dword ptr [edx + 4] */ 1946 MEM32(ebp + (-0x3C)) = ecx; /* 0x300101EC: mov dword ptr [ebp - 0x3c], ecx */ 1947 ecx = MEM32(edx + 0x8); /* 0x300101EF: mov ecx, dword ptr [edx + 8] */ 1948 MEM32(ebp + (-0x38)) = ecx; /* 0x300101F2: mov dword ptr [ebp - 0x38], ecx */ 1949 edx = MEM32(edx + 0xC); /* 0x300101F5: mov edx, dword ptr [edx + 0xc] */ 1950 MEM32(ebp + (-0x34)) = edx; /* 0x300101F8: mov dword ptr [ebp - 0x34], edx */ 1951 ecx = MEM32(eax); /* 0x300101FB: mov ecx, dword ptr [eax] */ 1952 MEM32(ebp + (-0x30)) = ecx; /* 0x300101FD: mov dword ptr [ebp - 0x30], ecx */ 1953 edx = MEM32(eax + 0x4); /* 0x30010200: mov edx, dword ptr [eax + 4] */ 1954 MEM32(ebp + (-0x2C)) = edx; /* 0x30010203: mov dword ptr [ebp - 0x2c], edx */ 1955 ecx = MEM32(eax + 0x8); /* 0x30010206: mov ecx, dword ptr [eax + 8] */ 1956 MEM32(ebp + (-0x28)) = ecx; /* 0x30010209: mov dword ptr [ebp - 0x28], ecx */ 1957 edx = MEM32(eax + 0xC); /* 0x3001020C: mov edx, dword ptr [eax + 0xc] */ 1958 eax = MEM32(ebp + (-0x20)); /* 0x3001020F: mov eax, dword ptr [ebp - 0x20] */ 1959 MEM32(ebp + (-0x24)) = edx; /* 0x30010212: mov dword ptr [ebp - 0x24], edx */ 1960 PUSH32(esp, eax); /* 0x30010215: push eax */ 1961 RECOMP_ICALL(0x30018080u); /* 0x30010216: call 0x30018080 */ /* not lifted */ 1962 RECOMP_FLAGS_IN(); 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; /* 0x3001021B: add esp, 4 */ 1966 _flag_k = FK_ADD; 1967 goto L_30010231; /* 0x3001021E: jmp 0x30010231 */ 1968 L_30010220: 1969 /* cmp esi, eax */ /* 0x30010220: cmp esi, eax */ 1970 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1972 _flag_k = FK_CMP; 1973 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010234; /* 0x30010222: je 0x30010234 */ 1974 L_30010224: 1975 ecx = MEM32(esi); /* 0x30010224: mov ecx, dword ptr [esi] */ 1976 PUSH32(esp, ecx); /* 0x30010226: push ecx */ 1977 RECOMP_ICALL(0x30018080u); /* 0x30010227: call 0x30018080 */ /* not lifted */ 1978 RECOMP_FLAGS_IN(); 1979 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1981 esp = esp + 4; /* 0x3001022C: add esp, 4 */ 1982 _flag_k = FK_ADD; 1983 MEM32(esi) = ebx; /* 0x3001022F: mov dword ptr [esi], ebx */ 1984 L_30010231: 1985 eax = MEM32(ebp + (-0x34)); /* 0x30010231: mov eax, dword ptr [ebp - 0x34] */ 1986 L_30010234: 1987 ecx = MEM32(ebp + (-0x18)); /* 0x30010234: mov ecx, dword ptr [ebp - 0x18] */ 1988 /* cmp ecx, ebx */ /* 0x30010237: cmp ecx, ebx */ 1989 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1991 _flag_k = FK_CMP; 1992 RECOMP_BACKEDGE(); 1993 if (CMP_NE(_flag_a, _flag_b)) goto L_30010179; /* 0x30010239: jne 0x30010179 */ 1994 L_3001023F: 1995 ecx = MEM32(ebp + (-0xC)); /* 0x3001023F: mov ecx, dword ptr [ebp - 0xc] */ 1996 edi = POP32_VAL(esp); /* 0x30010242: pop edi */ 1997 esi = POP32_VAL(esp); /* 0x30010243: pop esi */ 1998 ebx = POP32_VAL(esp); /* 0x30010244: pop ebx */ 1999 MEM32(FS_BASE + (0)) = ecx; /* 0x30010245: mov dword ptr fs:[0], ecx */ 2000 esp = ebp; /* 0x3001024C: mov esp, ebp */ 2001 ebp = POP32_VAL(esp); /* 0x3001024E: pop ebp */ 2002 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001024F: ret 8 */ 2003 RECOMP_REGS_OUT(); 2004 } 2005 2006 void sub_30010260(void) { 2007 int _fpu_cmp = 0; 2008 uint32_t _cf = 0; 2009 int _df = 1; 2010 uint32_t _flag_k = FK_NONE; 2011 uint32_t _flag_a = 0, _flag_b = 0; 2012 uint32_t _itail_tgt = 0; 2013 RECOMP_REGS_LOCALS 2014 RECOMP_ENTER(0x30010260u); 2015 2016 L_30010260: 2017 PUSH32(esp, ebp); /* 0x30010260: push ebp */ 2018 ebp = esp; /* 0x30010261: mov ebp, esp */ 2019 eax = MEM32(ebp + 0x14); /* 0x30010263: mov eax, dword ptr [ebp + 0x14] */ 2020 edx = MEM32(ebp + 0x10); /* 0x30010266: mov edx, dword ptr [ebp + 0x10] */ 2021 ecx = MEM32(ecx + 0x8); /* 0x30010269: mov ecx, dword ptr [ecx + 8] */ 2022 PUSH32(esp, eax); /* 0x3001026C: push eax */ 2023 eax = MEM32(ebp + 0xC); /* 0x3001026D: mov eax, dword ptr [ebp + 0xc] */ 2024 PUSH32(esp, edx); /* 0x30010270: push edx */ 2025 edx = MEM32(ebp + 0x8); /* 0x30010271: mov edx, dword ptr [ebp + 8] */ 2026 PUSH32(esp, eax); /* 0x30010274: push eax */ 2027 PUSH32(esp, edx); /* 0x30010275: push edx */ 2028 RECOMP_ICALL(0x3000F6B0u); /* 0x30010276: call 0x3000f6b0 */ /* not lifted */ 2029 RECOMP_FLAGS_IN(); 2030 ebp = POP32_VAL(esp); /* 0x3001027B: pop ebp */ 2031 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3001027C: ret 0x10 */ 2032 RECOMP_REGS_OUT(); 2033 } 2034 2035 void sub_30010280(void) { 2036 int _fpu_cmp = 0; 2037 uint32_t _cf = 0; 2038 int _df = 1; 2039 uint32_t _flag_k = FK_NONE; 2040 uint32_t _flag_a = 0, _flag_b = 0; 2041 uint32_t _itail_tgt = 0; 2042 RECOMP_REGS_LOCALS 2043 RECOMP_ENTER(0x30010280u); 2044 2045 L_30010280: 2046 PUSH32(esp, ebp); /* 0x30010280: push ebp */ 2047 ebp = esp; /* 0x30010281: mov ebp, esp */ 2048 PUSH32(esp, 0xFFFFFFFFu); /* 0x30010283: push -1 */ 2049 PUSH32(esp, 0x30018AB0u); /* 0x30010285: push 0x30018ab0 */ 2050 eax = MEM32(FS_BASE + (0)); /* 0x3001028A: mov eax, dword ptr fs:[0] */ 2051 PUSH32(esp, eax); /* 0x30010290: push eax */ 2052 MEM32(FS_BASE + (0)) = esp; /* 0x30010291: mov dword ptr fs:[0], esp */ 2053 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xA0u); 2054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2055 esp = esp - 0xA0u; /* 0x30010298: sub esp, 0xa0 */ 2056 _flag_k = FK_CMP; 2057 PUSH32(esp, ebx); /* 0x3001029E: push ebx */ 2058 ebx = ecx; /* 0x3001029F: mov ebx, ecx */ 2059 PUSH32(esp, esi); /* 0x300102A1: push esi */ 2060 PUSH32(esp, edi); /* 0x300102A2: push edi */ 2061 ecx = ebx + 0xC; /* 0x300102A3: lea ecx, [ebx + 0xc] */ 2062 MEM32(ebp + (-0x18)) = ecx; /* 0x300102A6: mov dword ptr [ebp - 0x18], ecx */ 2063 RECOMP_ICALL(0x300114C0u); /* 0x300102A9: call 0x300114c0 */ /* not lifted */ 2064 RECOMP_FLAGS_IN(); 2065 eax = MEM32(ebx + 0x8); /* 0x300102AE: mov eax, dword ptr [ebx + 8] */ 2066 ecx = ebx; /* 0x300102B1: mov ecx, ebx */ 2067 PUSH32(esp, eax); /* 0x300102B3: push eax */ 2068 RECOMP_ICALL(0x30010F80u); /* 0x300102B4: call 0x30010f80 */ /* not lifted */ 2069 RECOMP_FLAGS_IN(); 2070 eax = MEM32(ebx + 0x1C); /* 0x300102B9: mov eax, dword ptr [ebx + 0x1c] */ 2071 ecx = ebp + (-0x7C); /* 0x300102BC: lea ecx, [ebp - 0x7c] */ 2072 MEM32(ebx + 0x24) = eax; /* 0x300102BF: mov dword ptr [ebx + 0x24], eax */ 2073 edx = ebp + (-0x68); /* 0x300102C2: lea edx, [ebp - 0x68] */ 2074 PUSH32(esp, ecx); /* 0x300102C5: push ecx */ 2075 eax = ebp + (-0x80); /* 0x300102C6: lea eax, [ebp - 0x80] */ 2076 PUSH32(esp, edx); /* 0x300102C9: push edx */ 2077 ecx = ebp + (-0xA0); /* 0x300102CA: lea ecx, [ebp - 0xa0] */ 2078 PUSH32(esp, eax); /* 0x300102D0: push eax */ 2079 PUSH32(esp, ecx); /* 0x300102D1: push ecx */ 2080 ecx = ebx; /* 0x300102D2: mov ecx, ebx */ 2081 RECOMP_ICALL(0x30010260u); /* 0x300102D4: call 0x30010260 */ /* not lifted */ 2082 RECOMP_FLAGS_IN(); 2083 ecx = 7; /* 0x300102D9: mov ecx, 7 */ 2084 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2085 eax = 0; /* 0x300102DE: xor eax, eax */ 2086 _cf = 0; 2087 _flag_k = FK_TEST; 2088 edi = ebp + (-0x9C); /* 0x300102E0: lea edi, [ebp - 0x9c] */ 2089 edx = ebp + (-0x9C); /* 0x300102E6: lea edx, [ebp - 0x9c] */ 2090 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x300102EC: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 2091 edi = MEM32(0x3001E308); /* 0x300102EE: mov edi, dword ptr [0x3001e308] */ 2092 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2093 ecx = ecx | 0xFFFFFFFFu; /* 0x300102F4: or ecx, 0xffffffff */ 2094 _cf = 0; 2095 _flag_k = FK_TEST; 2096 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; } /* 0x300102F7: repne scasb al, byte ptr es:[edi] */ 2097 ecx = ~ecx; /* 0x300102F9: not ecx */ 2098 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2100 edi = edi - ecx; /* 0x300102FB: sub edi, ecx */ 2101 _flag_k = FK_CMP; 2102 eax = ecx; /* 0x300102FD: mov eax, ecx */ 2103 esi = edi; /* 0x300102FF: mov esi, edi */ 2104 edi = edx; /* 0x30010301: mov edi, edx */ 2105 edx = MEM32(ebx + 0x4); /* 0x30010303: mov edx, dword ptr [ebx + 4] */ 2106 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x30010306: shr ecx, 2 */ 2107 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2108 ecx = ecx >> 2u; /* 0x30010306: shr ecx, 2 */ 2109 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x30010309: 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; } 2110 ecx = eax; /* 0x3001030B: mov ecx, eax */ 2111 eax = MEM32(ebx + 0x1C); /* 0x3001030D: mov eax, dword ptr [ebx + 0x1c] */ 2112 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2113 ecx = ecx & 3; /* 0x30010310: and ecx, 3 */ 2114 _cf = 0; 2115 _flag_k = FK_TEST; 2116 PUSH32(esp, eax); /* 0x30010313: push eax */ 2117 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x30010314: 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; } 2118 ecx = MEM32(ebp + (-0x68)); /* 0x30010316: mov ecx, dword ptr [ebp - 0x68] */ 2119 edi = MEM32(ebp + 0x8); /* 0x30010319: mov edi, dword ptr [ebp + 8] */ 2120 PUSH32(esp, 3); /* 0x3001031C: push 3 */ 2121 MEM32(ebp + (-0x8C)) = ecx; /* 0x3001031E: mov dword ptr [ebp - 0x8c], ecx */ 2122 PUSH32(esp, ecx); /* 0x30010324: push ecx */ 2123 ecx = ebp + (-0x9C); /* 0x30010325: lea ecx, [ebp - 0x9c] */ 2124 PUSH32(esp, edx); /* 0x3001032B: push edx */ 2125 PUSH32(esp, ecx); /* 0x3001032C: push ecx */ 2126 ecx = edi; /* 0x3001032D: mov ecx, edi */ 2127 MEM32(ebp + (-0x90)) = edx; /* 0x3001032F: mov dword ptr [ebp - 0x90], edx */ 2128 MEM32(ebp + (-0x88)) = 3; /* 0x30010335: mov dword ptr [ebp - 0x88], 3 */ 2129 MEM32(ebp + (-0x84)) = eax; /* 0x3001033F: mov dword ptr [ebp - 0x84], eax */ 2130 RECOMP_ICALL(MEM32(0x3001907C)); /* 0x30010345: call dword ptr [0x3001907c] */ 2131 RECOMP_FLAGS_IN(); 2132 esi = MEM32(0x30019078); /* 0x3001034B: mov esi, dword ptr [0x30019078] */ 2133 ecx = eax; /* 0x30010351: mov ecx, eax */ 2134 RECOMP_ICALL(esi); /* 0x30010353: call esi */ 2135 RECOMP_FLAGS_IN(); 2136 ecx = eax; /* 0x30010355: mov ecx, eax */ 2137 RECOMP_ICALL(esi); /* 0x30010357: call esi */ 2138 RECOMP_FLAGS_IN(); 2139 ecx = eax; /* 0x30010359: mov ecx, eax */ 2140 RECOMP_ICALL(esi); /* 0x3001035B: call esi */ 2141 RECOMP_FLAGS_IN(); 2142 ecx = eax; /* 0x3001035D: mov ecx, eax */ 2143 RECOMP_ICALL(esi); /* 0x3001035F: call esi */ 2144 RECOMP_FLAGS_IN(); 2145 edx = ebp + 0xB; /* 0x30010361: lea edx, [ebp + 0xb] */ 2146 eax = ebp + (-0x51); /* 0x30010364: lea eax, [ebp - 0x51] */ 2147 PUSH32(esp, edx); /* 0x30010367: push edx */ 2148 PUSH32(esp, 0); /* 0x30010368: push 0 */ 2149 PUSH32(esp, eax); /* 0x3001036A: push eax */ 2150 ecx = ebp + (-0x50); /* 0x3001036B: lea ecx, [ebp - 0x50] */ 2151 RECOMP_ICALL(0x30011C60u); /* 0x3001036E: call 0x30011c60 */ /* not lifted */ 2152 RECOMP_FLAGS_IN(); 2153 ecx = ebp + (-0x14); /* 0x30010373: lea ecx, [ebp - 0x14] */ 2154 MEM32(ebp + (-0x4)) = 0; /* 0x30010376: mov dword ptr [ebp - 4], 0 */ 2155 PUSH32(esp, ecx); /* 0x3001037D: push ecx */ 2156 ecx = MEM32(ebp + (-0x18)); /* 0x3001037E: mov ecx, dword ptr [ebp - 0x18] */ 2157 RECOMP_ICALL(0x30011670u); /* 0x30010381: call 0x30011670 */ /* not lifted */ 2158 RECOMP_FLAGS_IN(); 2159 eax = MEM32(eax); /* 0x30010386: mov eax, dword ptr [eax] */ 2160 MEM32(ebp + (-0x58)) = eax; /* 0x30010388: mov dword ptr [ebp - 0x58], eax */ 2161 L_3001038B: 2162 /* cmp eax, MEM32(ebx + 0x10) */ /* 0x3001038B: cmp eax, dword ptr [ebx + 0x10] */ 2163 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x10)); 2164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2165 _flag_k = FK_CMP; 2166 if (CMP_EQ(_flag_a, _flag_b)) goto L_300103ED; /* 0x3001038E: je 0x300103ed */ 2167 L_30010390: 2168 ecx = ebp + (-0xAC); /* 0x30010390: lea ecx, [ebp - 0xac] */ 2169 esi = eax + 0x18; /* 0x30010396: lea esi, [eax + 0x18] */ 2170 RECOMP_ICALL(MEM32(0x300190E4)); /* 0x30010399: call dword ptr [0x300190e4] */ 2171 RECOMP_FLAGS_IN(); 2172 edx = MEM32(esi); /* 0x3001039F: mov edx, dword ptr [esi] */ 2173 MEM32(ebp + (-0x78)) = edx; /* 0x300103A1: mov dword ptr [ebp - 0x78], edx */ 2174 ecx = MEM32(eax); /* 0x300103A4: mov ecx, dword ptr [eax] */ 2175 MEM32(ebp + (-0x74)) = ecx; /* 0x300103A6: mov dword ptr [ebp - 0x74], ecx */ 2176 edx = MEM32(eax + 0x4); /* 0x300103A9: mov edx, dword ptr [eax + 4] */ 2177 MEM32(ebp + (-0x70)) = edx; /* 0x300103AC: mov dword ptr [ebp - 0x70], edx */ 2178 eax = MEM32(eax + 0x8); /* 0x300103AF: mov eax, dword ptr [eax + 8] */ 2179 ecx = ebp + (-0x78); /* 0x300103B2: lea ecx, [ebp - 0x78] */ 2180 edx = ebp + (-0x64); /* 0x300103B5: lea edx, [ebp - 0x64] */ 2181 PUSH32(esp, ecx); /* 0x300103B8: push ecx */ 2182 PUSH32(esp, edx); /* 0x300103B9: push edx */ 2183 ecx = ebp + (-0x50); /* 0x300103BA: lea ecx, [ebp - 0x50] */ 2184 MEM32(ebp + (-0x6C)) = eax; /* 0x300103BD: mov dword ptr [ebp - 0x6c], eax */ 2185 RECOMP_ICALL(0x30011B80u); /* 0x300103C0: call 0x30011b80 */ /* not lifted */ 2186 RECOMP_FLAGS_IN(); 2187 ecx = MEM32(ebp + (-0x58)); /* 0x300103C5: mov ecx, dword ptr [ebp - 0x58] */ 2188 eax = MEM32(eax); /* 0x300103C8: mov eax, dword ptr [eax] */ 2189 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 2190 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2191 ecx = ecx + 0xCu; /* 0x300103CA: add ecx, 0xc */ 2192 _flag_k = FK_ADD; 2193 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 2194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2195 eax = eax + 0x10u; /* 0x300103CD: add eax, 0x10 */ 2196 _flag_k = FK_ADD; 2197 edx = MEM32(ecx); /* 0x300103D0: mov edx, dword ptr [ecx] */ 2198 MEM32(eax) = edx; /* 0x300103D2: mov dword ptr [eax], edx */ 2199 edx = MEM32(ecx + 0x4); /* 0x300103D4: mov edx, dword ptr [ecx + 4] */ 2200 MEM32(eax + 0x4) = edx; /* 0x300103D7: mov dword ptr [eax + 4], edx */ 2201 ecx = MEM32(ecx + 0x8); /* 0x300103DA: mov ecx, dword ptr [ecx + 8] */ 2202 MEM32(eax + 0x8) = ecx; /* 0x300103DD: mov dword ptr [eax + 8], ecx */ 2203 ecx = ebp + (-0x58); /* 0x300103E0: lea ecx, [ebp - 0x58] */ 2204 RECOMP_ICALL(0x30011CD0u); /* 0x300103E3: call 0x30011cd0 */ /* not lifted */ 2205 RECOMP_FLAGS_IN(); 2206 eax = MEM32(ebp + (-0x58)); /* 0x300103E8: mov eax, dword ptr [ebp - 0x58] */ 2207 RECOMP_BACKEDGE(); 2208 goto L_3001038B; /* 0x300103EB: jmp 0x3001038b */ 2209 L_300103ED: 2210 edx = ebp + (-0x60); /* 0x300103ED: lea edx, [ebp - 0x60] */ 2211 ecx = ebp + (-0x50); /* 0x300103F0: lea ecx, [ebp - 0x50] */ 2212 PUSH32(esp, edx); /* 0x300103F3: push edx */ 2213 MEM32(ebp + (-0x24)) = 0x47C35000u; /* 0x300103F4: mov dword ptr [ebp - 0x24], 0x47c35000 */ 2214 MEM32(ebp + (-0x28)) = 0x47C35000u; /* 0x300103FB: mov dword ptr [ebp - 0x28], 0x47c35000 */ 2215 MEM32(ebp + (-0x1C)) = 0x47C35000u; /* 0x30010402: mov dword ptr [ebp - 0x1c], 0x47c35000 */ 2216 MEM32(ebp + (-0x5C)) = 0xC7C35000u; /* 0x30010409: mov dword ptr [ebp - 0x5c], 0xc7c35000 */ 2217 MEM32(ebp + (-0x20)) = 0xC7C35000u; /* 0x30010410: mov dword ptr [ebp - 0x20], 0xc7c35000 */ 2218 MEM32(ebp + (-0x14)) = 0xC7C35000u; /* 0x30010417: mov dword ptr [ebp - 0x14], 0xc7c35000 */ 2219 RECOMP_ICALL(0x30011670u); /* 0x3001041E: call 0x30011670 */ /* not lifted */ 2220 RECOMP_FLAGS_IN(); 2221 ecx = MEM32(eax); /* 0x30010423: mov ecx, dword ptr [eax] */ 2222 MEM32(ebp + (-0x10)) = ecx; /* 0x30010425: mov dword ptr [ebp - 0x10], ecx */ 2223 L_30010428: 2224 /* cmp ecx, MEM32(ebp + (-0x4C)) */ /* 0x30010428: cmp ecx, dword ptr [ebp - 0x4c] */ 2225 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4C))); 2226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2227 _flag_k = FK_CMP; 2228 if (CMP_EQ(_flag_a, _flag_b)) goto L_300104B3; /* 0x3001042B: je 0x300104b3 */ 2229 L_30010431: 2230 fp_push(*(float*)&MEM32(ecx + 0x10)); /* 0x30010431: fld dword ptr [ecx + 0x10] */ 2231 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x1C))); /* 0x30010434: fcomp dword ptr [ebp - 0x1c] */ 2232 fp_pop(); 2233 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30010437: fnstsw ax */ 2234 /* test HI8(eax), 1 */ /* 0x30010439: test ah, 1 */ 2235 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2236 _cf = 0; 2237 _flag_k = FK_NARROW(FK_TEST, 24); 2238 if (TEST_Z(_flag_a, _flag_b)) goto L_30010444; /* 0x3001043C: je 0x30010444 */ 2239 L_3001043E: 2240 eax = MEM32(ecx + 0x10); /* 0x3001043E: mov eax, dword ptr [ecx + 0x10] */ 2241 MEM32(ebp + (-0x1C)) = eax; /* 0x30010441: mov dword ptr [ebp - 0x1c], eax */ 2242 L_30010444: 2243 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x30010444: fld dword ptr [ecx + 0x14] */ 2244 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x28))); /* 0x30010447: fcomp dword ptr [ebp - 0x28] */ 2245 fp_pop(); 2246 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3001044A: fnstsw ax */ 2247 /* test HI8(eax), 1 */ /* 0x3001044C: test ah, 1 */ 2248 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2249 _cf = 0; 2250 _flag_k = FK_NARROW(FK_TEST, 24); 2251 if (TEST_Z(_flag_a, _flag_b)) goto L_30010457; /* 0x3001044F: je 0x30010457 */ 2252 L_30010451: 2253 edx = MEM32(ecx + 0x14); /* 0x30010451: mov edx, dword ptr [ecx + 0x14] */ 2254 MEM32(ebp + (-0x28)) = edx; /* 0x30010454: mov dword ptr [ebp - 0x28], edx */ 2255 L_30010457: 2256 fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x30010457: fld dword ptr [ecx + 0x18] */ 2257 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x24))); /* 0x3001045A: fcomp dword ptr [ebp - 0x24] */ 2258 fp_pop(); 2259 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3001045D: fnstsw ax */ 2260 /* test HI8(eax), 1 */ /* 0x3001045F: test ah, 1 */ 2261 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2262 _cf = 0; 2263 _flag_k = FK_NARROW(FK_TEST, 24); 2264 if (TEST_Z(_flag_a, _flag_b)) goto L_3001046A; /* 0x30010462: je 0x3001046a */ 2265 L_30010464: 2266 eax = MEM32(ecx + 0x18); /* 0x30010464: mov eax, dword ptr [ecx + 0x18] */ 2267 MEM32(ebp + (-0x24)) = eax; /* 0x30010467: mov dword ptr [ebp - 0x24], eax */ 2268 L_3001046A: 2269 fp_push(*(float*)&MEM32(ecx + 0x10)); /* 0x3001046A: fld dword ptr [ecx + 0x10] */ 2270 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x14))); /* 0x3001046D: fcomp dword ptr [ebp - 0x14] */ 2271 fp_pop(); 2272 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30010470: fnstsw ax */ 2273 /* test HI8(eax), 0x41u */ /* 0x30010472: test ah, 0x41 */ 2274 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2275 _cf = 0; 2276 _flag_k = FK_NARROW(FK_TEST, 24); 2277 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001047D; /* 0x30010475: jne 0x3001047d */ 2278 L_30010477: 2279 edx = MEM32(ecx + 0x10); /* 0x30010477: mov edx, dword ptr [ecx + 0x10] */ 2280 MEM32(ebp + (-0x14)) = edx; /* 0x3001047A: mov dword ptr [ebp - 0x14], edx */ 2281 L_3001047D: 2282 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x3001047D: fld dword ptr [ecx + 0x14] */ 2283 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x20))); /* 0x30010480: fcomp dword ptr [ebp - 0x20] */ 2284 fp_pop(); 2285 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30010483: fnstsw ax */ 2286 /* test HI8(eax), 0x41u */ /* 0x30010485: test ah, 0x41 */ 2287 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2288 _cf = 0; 2289 _flag_k = FK_NARROW(FK_TEST, 24); 2290 if (TEST_NZ(_flag_a, _flag_b)) goto L_30010490; /* 0x30010488: jne 0x30010490 */ 2291 L_3001048A: 2292 eax = MEM32(ecx + 0x14); /* 0x3001048A: mov eax, dword ptr [ecx + 0x14] */ 2293 MEM32(ebp + (-0x20)) = eax; /* 0x3001048D: mov dword ptr [ebp - 0x20], eax */ 2294 L_30010490: 2295 fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x30010490: fld dword ptr [ecx + 0x18] */ 2296 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x5C))); /* 0x30010493: fcomp dword ptr [ebp - 0x5c] */ 2297 fp_pop(); 2298 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30010496: fnstsw ax */ 2299 /* test HI8(eax), 0x41u */ /* 0x30010498: test ah, 0x41 */ 2300 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2301 _cf = 0; 2302 _flag_k = FK_NARROW(FK_TEST, 24); 2303 if (TEST_NZ(_flag_a, _flag_b)) goto L_300104A3; /* 0x3001049B: jne 0x300104a3 */ 2304 L_3001049D: 2305 ecx = MEM32(ecx + 0x18); /* 0x3001049D: mov ecx, dword ptr [ecx + 0x18] */ 2306 MEM32(ebp + (-0x5C)) = ecx; /* 0x300104A0: mov dword ptr [ebp - 0x5c], ecx */ 2307 L_300104A3: 2308 ecx = ebp + (-0x10); /* 0x300104A3: lea ecx, [ebp - 0x10] */ 2309 RECOMP_ICALL(0x30011CD0u); /* 0x300104A6: call 0x30011cd0 */ /* not lifted */ 2310 RECOMP_FLAGS_IN(); 2311 ecx = MEM32(ebp + (-0x10)); /* 0x300104AB: mov ecx, dword ptr [ebp - 0x10] */ 2312 RECOMP_BACKEDGE(); 2313 goto L_30010428; /* 0x300104AE: jmp 0x30010428 */ 2314 L_300104B3: 2315 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x300104B3: fld dword ptr [ebp - 0x5c] */ 2316 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x300104B6: fsub dword ptr [ebp - 0x24] */ 2317 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300104B9: fld dword ptr [ebp - 0x20] */ 2318 _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x300104BC: fsub dword ptr [ebp - 0x28] */ 2319 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x300104BF: fst dword ptr [ebp - 0x20] */ 2320 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300104C2: fcomp st(1) */ 2321 fp_pop(); 2322 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300104C4: fnstsw ax */ 2323 /* test HI8(eax), 0x41u */ /* 0x300104C6: test ah, 0x41 */ 2324 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2325 _cf = 0; 2326 _flag_k = FK_NARROW(FK_TEST, 24); 2327 if (TEST_NZ(_flag_a, _flag_b)) goto L_300104D0; /* 0x300104C9: jne 0x300104d0 */ 2328 L_300104CB: 2329 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300104CB: fstp st(0) */ 2330 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300104CD: fld dword ptr [ebp - 0x20] */ 2331 L_300104D0: 2332 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x300104D0: fld dword ptr [ebp - 0x14] */ 2333 _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x300104D3: fsub dword ptr [ebp - 0x1c] */ 2334 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x300104D6: fst dword ptr [ebp - 0x14] */ 2335 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300104D9: fcomp st(1) */ 2336 fp_pop(); 2337 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300104DB: fnstsw ax */ 2338 /* test HI8(eax), 0x41u */ /* 0x300104DD: test ah, 0x41 */ 2339 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2340 _cf = 0; 2341 _flag_k = FK_NARROW(FK_TEST, 24); 2342 if (TEST_NZ(_flag_a, _flag_b)) goto L_300104E7; /* 0x300104E0: jne 0x300104e7 */ 2343 L_300104E2: 2344 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300104E2: fstp st(0) */ 2345 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x300104E4: fld dword ptr [ebp - 0x14] */ 2346 L_300104E7: 2347 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x300192A8)); /* 0x300104E7: fcomp dword ptr [0x300192a8] */ 2348 fp_pop(); 2349 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300104ED: fnstsw ax */ 2350 /* test HI8(eax), 1 */ /* 0x300104EF: test ah, 1 */ 2351 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2352 _cf = 0; 2353 _flag_k = FK_NARROW(FK_TEST, 24); 2354 if (TEST_Z(_flag_a, _flag_b)) goto L_300105B0; /* 0x300104F2: je 0x300105b0 */ 2355 L_300104F8: 2356 edx = MEM32(ebp + (-0x24)); /* 0x300104F8: mov edx, dword ptr [ebp - 0x24] */ 2357 eax = MEM32(ebp + (-0x28)); /* 0x300104FB: mov eax, dword ptr [ebp - 0x28] */ 2358 ecx = MEM32(ebp + (-0x1C)); /* 0x300104FE: mov ecx, dword ptr [ebp - 0x1c] */ 2359 esi = MEM32(0x30019090); /* 0x30010501: mov esi, dword ptr [0x30019090] */ 2360 PUSH32(esp, edx); /* 0x30010507: push edx */ 2361 PUSH32(esp, eax); /* 0x30010508: push eax */ 2362 PUSH32(esp, ecx); /* 0x30010509: push ecx */ 2363 ecx = edi; /* 0x3001050A: mov ecx, edi */ 2364 RECOMP_ICALL(esi); /* 0x3001050C: call esi */ 2365 RECOMP_FLAGS_IN(); 2366 ecx = eax; /* 0x3001050E: mov ecx, eax */ 2367 RECOMP_ICALL(esi); /* 0x30010510: call esi */ 2368 RECOMP_FLAGS_IN(); 2369 ecx = eax; /* 0x30010512: mov ecx, eax */ 2370 RECOMP_ICALL(esi); /* 0x30010514: call esi */ 2371 RECOMP_FLAGS_IN(); 2372 eax = MEM32(ebp + (-0x4C)); /* 0x30010516: mov eax, dword ptr [ebp - 0x4c] */ 2373 esi = MEM32(0x300190A8); /* 0x30010519: mov esi, dword ptr [0x300190a8] */ 2374 ecx = MEM32(eax); /* 0x3001051F: mov ecx, dword ptr [eax] */ 2375 MEM32(ebp + (-0x10)) = ecx; /* 0x30010521: mov dword ptr [ebp - 0x10], ecx */ 2376 L_30010524: 2377 /* cmp ecx, eax */ /* 0x30010524: cmp ecx, eax */ 2378 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2380 _flag_k = FK_CMP; 2381 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001054E; /* 0x30010526: je 0x3001054e */ 2382 L_30010528: 2383 fp_push(*(float*)&MEM32(ecx + 0x10)); /* 0x30010528: fld dword ptr [ecx + 0x10] */ 2384 _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3001052B: fsub dword ptr [ebp - 0x1c] */ 2385 _st[0] *= (double)*(float*)ADDR(0x300192A4); /* 0x3001052E: fmul dword ptr [0x300192a4] */ 2386 RECOMP_ICALL(0x300181F8u); /* 0x30010534: call 0x300181f8 */ /* not lifted */ 2387 RECOMP_FLAGS_IN(); 2388 PUSH32(esp, eax); /* 0x30010539: push eax */ 2389 ecx = edi; /* 0x3001053A: mov ecx, edi */ 2390 RECOMP_ICALL(esi); /* 0x3001053C: call esi */ 2391 RECOMP_FLAGS_IN(); 2392 ecx = ebp + (-0x10); /* 0x3001053E: lea ecx, [ebp - 0x10] */ 2393 RECOMP_ICALL(0x30011CD0u); /* 0x30010541: call 0x30011cd0 */ /* not lifted */ 2394 RECOMP_FLAGS_IN(); 2395 eax = MEM32(ebp + (-0x4C)); /* 0x30010546: mov eax, dword ptr [ebp - 0x4c] */ 2396 ecx = MEM32(ebp + (-0x10)); /* 0x30010549: mov ecx, dword ptr [ebp - 0x10] */ 2397 RECOMP_BACKEDGE(); 2398 goto L_30010524; /* 0x3001054C: jmp 0x30010524 */ 2399 L_3001054E: 2400 ecx = MEM32(eax); /* 0x3001054E: mov ecx, dword ptr [eax] */ 2401 MEM32(ebp + (-0x10)) = ecx; /* 0x30010550: mov dword ptr [ebp - 0x10], ecx */ 2402 L_30010553: 2403 /* cmp ecx, eax */ /* 0x30010553: cmp ecx, eax */ 2404 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2406 _flag_k = FK_CMP; 2407 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001057D; /* 0x30010555: je 0x3001057d */ 2408 L_30010557: 2409 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x30010557: fld dword ptr [ecx + 0x14] */ 2410 _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3001055A: fsub dword ptr [ebp - 0x28] */ 2411 _st[0] *= (double)*(float*)ADDR(0x300192A4); /* 0x3001055D: fmul dword ptr [0x300192a4] */ 2412 RECOMP_ICALL(0x300181F8u); /* 0x30010563: call 0x300181f8 */ /* not lifted */ 2413 RECOMP_FLAGS_IN(); 2414 PUSH32(esp, eax); /* 0x30010568: push eax */ 2415 ecx = edi; /* 0x30010569: mov ecx, edi */ 2416 RECOMP_ICALL(esi); /* 0x3001056B: call esi */ 2417 RECOMP_FLAGS_IN(); 2418 ecx = ebp + (-0x10); /* 0x3001056D: lea ecx, [ebp - 0x10] */ 2419 RECOMP_ICALL(0x30011CD0u); /* 0x30010570: call 0x30011cd0 */ /* not lifted */ 2420 RECOMP_FLAGS_IN(); 2421 eax = MEM32(ebp + (-0x4C)); /* 0x30010575: mov eax, dword ptr [ebp - 0x4c] */ 2422 ecx = MEM32(ebp + (-0x10)); /* 0x30010578: mov ecx, dword ptr [ebp - 0x10] */ 2423 RECOMP_BACKEDGE(); 2424 goto L_30010553; /* 0x3001057B: jmp 0x30010553 */ 2425 L_3001057D: 2426 ecx = MEM32(eax); /* 0x3001057D: mov ecx, dword ptr [eax] */ 2427 MEM32(ebp + (-0x10)) = ecx; /* 0x3001057F: mov dword ptr [ebp - 0x10], ecx */ 2428 L_30010582: 2429 /* cmp ecx, eax */ /* 0x30010582: cmp ecx, eax */ 2430 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2432 _flag_k = FK_CMP; 2433 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010682; /* 0x30010584: je 0x30010682 */ 2434 L_3001058A: 2435 fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x3001058A: fld dword ptr [ecx + 0x18] */ 2436 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3001058D: fsub dword ptr [ebp - 0x24] */ 2437 _st[0] *= (double)*(float*)ADDR(0x300192A4); /* 0x30010590: fmul dword ptr [0x300192a4] */ 2438 RECOMP_ICALL(0x300181F8u); /* 0x30010596: call 0x300181f8 */ /* not lifted */ 2439 RECOMP_FLAGS_IN(); 2440 PUSH32(esp, eax); /* 0x3001059B: push eax */ 2441 ecx = edi; /* 0x3001059C: mov ecx, edi */ 2442 RECOMP_ICALL(esi); /* 0x3001059E: call esi */ 2443 RECOMP_FLAGS_IN(); 2444 ecx = ebp + (-0x10); /* 0x300105A0: lea ecx, [ebp - 0x10] */ 2445 RECOMP_ICALL(0x30011CD0u); /* 0x300105A3: call 0x30011cd0 */ /* not lifted */ 2446 RECOMP_FLAGS_IN(); 2447 eax = MEM32(ebp + (-0x4C)); /* 0x300105A8: mov eax, dword ptr [ebp - 0x4c] */ 2448 ecx = MEM32(ebp + (-0x10)); /* 0x300105AB: mov ecx, dword ptr [ebp - 0x10] */ 2449 RECOMP_BACKEDGE(); 2450 goto L_30010582; /* 0x300105AE: jmp 0x30010582 */ 2451 L_300105B0: 2452 esi = MEM32(0x30019090); /* 0x300105B0: mov esi, dword ptr [0x30019090] */ 2453 PUSH32(esp, 0xC7C34F80u); /* 0x300105B6: push 0xc7c34f80 */ 2454 ecx = edi; /* 0x300105BB: mov ecx, edi */ 2455 RECOMP_ICALL(esi); /* 0x300105BD: call esi */ 2456 RECOMP_FLAGS_IN(); 2457 edx = MEM32(ebp + (-0x4C)); /* 0x300105BF: mov edx, dword ptr [ebp - 0x4c] */ 2458 eax = MEM32(edx); /* 0x300105C2: mov eax, dword ptr [edx] */ 2459 MEM32(ebp + (-0x10)) = eax; /* 0x300105C4: mov dword ptr [ebp - 0x10], eax */ 2460 L_300105C7: 2461 ecx = MEM32(ebp + (-0x4C)); /* 0x300105C7: mov ecx, dword ptr [ebp - 0x4c] */ 2462 /* cmp eax, ecx */ /* 0x300105CA: cmp eax, ecx */ 2463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2465 _flag_k = FK_CMP; 2466 if (CMP_EQ(_flag_a, _flag_b)) goto L_300105E3; /* 0x300105CC: je 0x300105e3 */ 2467 L_300105CE: 2468 eax = MEM32(eax + 0x10); /* 0x300105CE: mov eax, dword ptr [eax + 0x10] */ 2469 ecx = edi; /* 0x300105D1: mov ecx, edi */ 2470 PUSH32(esp, eax); /* 0x300105D3: push eax */ 2471 RECOMP_ICALL(esi); /* 0x300105D4: call esi */ 2472 RECOMP_FLAGS_IN(); 2473 ecx = ebp + (-0x10); /* 0x300105D6: lea ecx, [ebp - 0x10] */ 2474 RECOMP_ICALL(0x30011CD0u); /* 0x300105D9: call 0x30011cd0 */ /* not lifted */ 2475 RECOMP_FLAGS_IN(); 2476 eax = MEM32(ebp + (-0x10)); /* 0x300105DE: mov eax, dword ptr [ebp - 0x10] */ 2477 RECOMP_BACKEDGE(); 2478 goto L_300105C7; /* 0x300105E1: jmp 0x300105c7 */ 2479 L_300105E3: 2480 eax = MEM32(ecx); /* 0x300105E3: mov eax, dword ptr [ecx] */ 2481 L_300105E5: 2482 MEM32(ebp + (-0x10)) = eax; /* 0x300105E5: mov dword ptr [ebp - 0x10], eax */ 2483 L_300105E8: 2484 ecx = MEM32(ebp + (-0x4C)); /* 0x300105E8: mov ecx, dword ptr [ebp - 0x4c] */ 2485 /* cmp eax, ecx */ /* 0x300105EB: cmp eax, ecx */ 2486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2488 _flag_k = FK_CMP; 2489 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001062D; /* 0x300105ED: je 0x3001062d */ 2490 L_300105EF: 2491 ecx = MEM32(eax + 0x14); /* 0x300105EF: mov ecx, dword ptr [eax + 0x14] */ 2492 PUSH32(esp, ecx); /* 0x300105F2: push ecx */ 2493 ecx = edi; /* 0x300105F3: mov ecx, edi */ 2494 RECOMP_ICALL(esi); /* 0x300105F5: call esi */ 2495 RECOMP_FLAGS_IN(); 2496 eax = MEM32(ebp + (-0x10)); /* 0x300105F7: mov eax, dword ptr [ebp - 0x10] */ 2497 ecx = MEM32(eax + 0x8); /* 0x300105FA: mov ecx, dword ptr [eax + 8] */ 2498 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x300105FD: mov dl, byte ptr [ecx + 0x1d] */ 2499 /* test LO8(edx), LO8(edx) */ /* 0x30010600: test dl, dl */ 2500 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2501 _cf = 0; 2502 _flag_k = FK_NARROW(FK_TEST, 24); 2503 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001060F; /* 0x30010602: jne 0x3001060f */ 2504 L_30010604: 2505 PUSH32(esp, ecx); /* 0x30010604: push ecx */ 2506 RECOMP_ICALL(0x30012B70u); /* 0x30010605: call 0x30012b70 */ /* not lifted */ 2507 RECOMP_FLAGS_IN(); 2508 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2509 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2510 esp = esp + 4; /* 0x3001060A: add esp, 4 */ 2511 _flag_k = FK_ADD; 2512 RECOMP_BACKEDGE(); 2513 goto L_300105E5; /* 0x3001060D: jmp 0x300105e5 */ 2514 L_3001060F: 2515 ecx = MEM32(eax + 0x4); /* 0x3001060F: mov ecx, dword ptr [eax + 4] */ 2516 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010612: cmp eax, dword ptr [ecx + 8] */ 2517 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2519 _flag_k = FK_CMP; 2520 if (CMP_NE(_flag_a, _flag_b)) goto L_30010624; /* 0x30010615: jne 0x30010624 */ 2521 L_30010617: 2522 eax = ecx; /* 0x30010617: mov eax, ecx */ 2523 MEM32(ebp + (-0x10)) = eax; /* 0x30010619: mov dword ptr [ebp - 0x10], eax */ 2524 ecx = MEM32(ecx + 0x4); /* 0x3001061C: mov ecx, dword ptr [ecx + 4] */ 2525 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3001061F: cmp eax, dword ptr [ecx + 8] */ 2526 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2528 _flag_k = FK_CMP; 2529 RECOMP_BACKEDGE(); 2530 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010617; /* 0x30010622: je 0x30010617 */ 2531 L_30010624: 2532 /* cmp MEM32(eax + 0x8), ecx */ /* 0x30010624: cmp dword ptr [eax + 8], ecx */ 2533 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 2534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2535 _flag_k = FK_CMP; 2536 RECOMP_BACKEDGE(); 2537 if (CMP_EQ(_flag_a, _flag_b)) goto L_300105E8; /* 0x30010627: je 0x300105e8 */ 2538 L_30010629: 2539 eax = ecx; /* 0x30010629: mov eax, ecx */ 2540 RECOMP_BACKEDGE(); 2541 goto L_300105E5; /* 0x3001062B: jmp 0x300105e5 */ 2542 L_3001062D: 2543 eax = MEM32(ecx); /* 0x3001062D: mov eax, dword ptr [ecx] */ 2544 L_3001062F: 2545 MEM32(ebp + (-0x10)) = eax; /* 0x3001062F: mov dword ptr [ebp - 0x10], eax */ 2546 L_30010632: 2547 /* cmp eax, MEM32(ebp + (-0x4C)) */ /* 0x30010632: cmp eax, dword ptr [ebp - 0x4c] */ 2548 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x4C))); 2549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2550 _flag_k = FK_CMP; 2551 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010682; /* 0x30010635: je 0x30010682 */ 2552 L_30010637: 2553 edx = MEM32(eax + 0x18); /* 0x30010637: mov edx, dword ptr [eax + 0x18] */ 2554 ecx = edi; /* 0x3001063A: mov ecx, edi */ 2555 PUSH32(esp, edx); /* 0x3001063C: push edx */ 2556 RECOMP_ICALL(esi); /* 0x3001063D: call esi */ 2557 RECOMP_FLAGS_IN(); 2558 eax = MEM32(ebp + (-0x10)); /* 0x3001063F: mov eax, dword ptr [ebp - 0x10] */ 2559 ecx = MEM32(eax + 0x8); /* 0x30010642: mov ecx, dword ptr [eax + 8] */ 2560 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x30010645: mov dl, byte ptr [ecx + 0x1d] */ 2561 /* test LO8(edx), LO8(edx) */ /* 0x30010648: test dl, dl */ 2562 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2563 _cf = 0; 2564 _flag_k = FK_NARROW(FK_TEST, 24); 2565 if (TEST_NZ(_flag_a, _flag_b)) goto L_30010664; /* 0x3001064A: jne 0x30010664 */ 2566 L_3001064C: 2567 eax = ecx; /* 0x3001064C: mov eax, ecx */ 2568 ecx = MEM32(eax); /* 0x3001064E: mov ecx, dword ptr [eax] */ 2569 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x30010650: mov dl, byte ptr [ecx + 0x1d] */ 2570 /* test LO8(edx), LO8(edx) */ /* 0x30010653: test dl, dl */ 2571 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2572 _cf = 0; 2573 _flag_k = FK_NARROW(FK_TEST, 24); 2574 RECOMP_BACKEDGE(); 2575 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001062F; /* 0x30010655: jne 0x3001062f */ 2576 L_30010657: 2577 eax = ecx; /* 0x30010657: mov eax, ecx */ 2578 ecx = MEM32(eax); /* 0x30010659: mov ecx, dword ptr [eax] */ 2579 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x3001065B: mov dl, byte ptr [ecx + 0x1d] */ 2580 /* test LO8(edx), LO8(edx) */ /* 0x3001065E: test dl, dl */ 2581 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2582 _cf = 0; 2583 _flag_k = FK_NARROW(FK_TEST, 24); 2584 RECOMP_BACKEDGE(); 2585 if (TEST_Z(_flag_a, _flag_b)) goto L_30010657; /* 0x30010660: je 0x30010657 */ 2586 L_30010662: 2587 RECOMP_BACKEDGE(); 2588 goto L_3001062F; /* 0x30010662: jmp 0x3001062f */ 2589 L_30010664: 2590 ecx = MEM32(eax + 0x4); /* 0x30010664: mov ecx, dword ptr [eax + 4] */ 2591 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010667: cmp eax, dword ptr [ecx + 8] */ 2592 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2594 _flag_k = FK_CMP; 2595 if (CMP_NE(_flag_a, _flag_b)) goto L_30010679; /* 0x3001066A: jne 0x30010679 */ 2596 L_3001066C: 2597 eax = ecx; /* 0x3001066C: mov eax, ecx */ 2598 MEM32(ebp + (-0x10)) = eax; /* 0x3001066E: mov dword ptr [ebp - 0x10], eax */ 2599 ecx = MEM32(ecx + 0x4); /* 0x30010671: mov ecx, dword ptr [ecx + 4] */ 2600 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010674: cmp eax, dword ptr [ecx + 8] */ 2601 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2603 _flag_k = FK_CMP; 2604 RECOMP_BACKEDGE(); 2605 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001066C; /* 0x30010677: je 0x3001066c */ 2606 L_30010679: 2607 /* cmp MEM32(eax + 0x8), ecx */ /* 0x30010679: cmp dword ptr [eax + 8], ecx */ 2608 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 2609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2610 _flag_k = FK_CMP; 2611 RECOMP_BACKEDGE(); 2612 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010632; /* 0x3001067C: je 0x30010632 */ 2613 L_3001067E: 2614 eax = ecx; /* 0x3001067E: mov eax, ecx */ 2615 RECOMP_BACKEDGE(); 2616 goto L_3001062F; /* 0x30010680: jmp 0x3001062f */ 2617 L_30010682: 2618 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x30010682: mov al, byte ptr [ebp + 0xb] */ 2619 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x30010685: mov cl, byte ptr [ebp + 0xb] */ 2620 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2621 esi = 0; /* 0x30010688: xor esi, esi */ 2622 _cf = 0; 2623 _flag_k = FK_TEST; 2624 PUSH32(esp, 0x18u); /* 0x3001068A: push 0x18 */ 2625 MEM32(ebx + 0x20) = esi; /* 0x3001068C: mov dword ptr [ebx + 0x20], esi */ 2626 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x3001068F: mov byte ptr [ebp - 0x3c], al */ 2627 MEM8(ebp + (-0x3B)) = (uint8_t)(LO8(ecx)); /* 0x30010692: mov byte ptr [ebp - 0x3b], cl */ 2628 MEM8(ebp + (-0x30)) = (uint8_t)(0); /* 0x30010695: mov byte ptr [ebp - 0x30], 0 */ 2629 RECOMP_ICALL(0x300180A8u); /* 0x30010699: call 0x300180a8 */ /* not lifted */ 2630 RECOMP_FLAGS_IN(); 2631 MEM32(eax + 0x4) = esi; /* 0x3001069E: mov dword ptr [eax + 4], esi */ 2632 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x300106A1: mov byte ptr [eax + 0x14], 1 */ 2633 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106A5: mov byte ptr [eax + 0x15], 0 */ 2634 MEM32(ebp + (-0x34)) = eax; /* 0x300106A9: mov dword ptr [ebp - 0x34], eax */ 2635 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x300106AC: mov byte ptr [eax + 0x15], 1 */ 2636 edx = MEM32(ebp + (-0x34)); /* 0x300106B0: mov edx, dword ptr [ebp - 0x34] */ 2637 PUSH32(esp, 0x18u); /* 0x300106B3: push 0x18 */ 2638 MEM32(edx) = esi; /* 0x300106B5: mov dword ptr [edx], esi */ 2639 eax = MEM32(ebp + (-0x34)); /* 0x300106B7: mov eax, dword ptr [ebp - 0x34] */ 2640 MEM32(eax + 0x8) = esi; /* 0x300106BA: mov dword ptr [eax + 8], esi */ 2641 esi = MEM32(ebp + (-0x34)); /* 0x300106BD: mov esi, dword ptr [ebp - 0x34] */ 2642 RECOMP_ICALL(0x300180A8u); /* 0x300106C0: call 0x300180a8 */ /* not lifted */ 2643 RECOMP_FLAGS_IN(); 2644 MEM32(eax + 0x4) = esi; /* 0x300106C5: mov dword ptr [eax + 4], esi */ 2645 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x300106C8: mov byte ptr [eax + 0x14], 0 */ 2646 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106CC: mov byte ptr [eax + 0x15], 0 */ 2647 MEM32(ebp + (-0x38)) = eax; /* 0x300106D0: mov dword ptr [ebp - 0x38], eax */ 2648 MEM32(eax) = eax; /* 0x300106D3: mov dword ptr [eax], eax */ 2649 eax = MEM32(ebp + (-0x38)); /* 0x300106D5: mov eax, dword ptr [ebp - 0x38] */ 2650 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2651 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2652 esp = esp + 8; /* 0x300106D8: add esp, 8 */ 2653 _flag_k = FK_ADD; 2654 MEM32(eax + 0x8) = eax; /* 0x300106DB: mov dword ptr [eax + 8], eax */ 2655 MEM32(ebp + (-0x2C)) = 0; /* 0x300106DE: mov dword ptr [ebp - 0x2c], 0 */ 2656 edx = MEM32(ebx + 0x8); /* 0x300106E5: mov edx, dword ptr [ebx + 8] */ 2657 ecx = ebp + (-0x3C); /* 0x300106E8: lea ecx, [ebp - 0x3c] */ 2658 PUSH32(esp, ecx); /* 0x300106EB: push ecx */ 2659 PUSH32(esp, edx); /* 0x300106EC: push edx */ 2660 PUSH32(esp, edi); /* 0x300106ED: push edi */ 2661 ecx = ebx; /* 0x300106EE: mov ecx, ebx */ 2662 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x300106F0: mov byte ptr [ebp - 4], 1 */ 2663 RECOMP_ICALL(0x300109A0u); /* 0x300106F4: call 0x300109a0 */ /* not lifted */ 2664 RECOMP_FLAGS_IN(); 2665 ecx = MEM32(ebx + 0x8); /* 0x300106F9: mov ecx, dword ptr [ebx + 8] */ 2666 eax = ebp + (-0x3C); /* 0x300106FC: lea eax, [ebp - 0x3c] */ 2667 PUSH32(esp, 0); /* 0x300106FF: push 0 */ 2668 PUSH32(esp, eax); /* 0x30010701: push eax */ 2669 PUSH32(esp, ecx); /* 0x30010702: push ecx */ 2670 PUSH32(esp, edi); /* 0x30010703: push edi */ 2671 ecx = ebx; /* 0x30010704: mov ecx, ebx */ 2672 RECOMP_ICALL(0x30010E20u); /* 0x30010706: call 0x30010e20 */ /* not lifted */ 2673 RECOMP_FLAGS_IN(); 2674 edi = MEM32(ebp + (-0x18)); /* 0x3001070B: mov edi, dword ptr [ebp - 0x18] */ 2675 esi = MEM32(edi + 0x4); /* 0x3001070E: mov esi, dword ptr [edi + 4] */ 2676 ecx = MEM32(edi + 0x10); /* 0x30010711: mov ecx, dword ptr [edi + 0x10] */ 2677 /* test ecx, ecx */ /* 0x30010714: test ecx, ecx */ 2678 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2679 _cf = 0; 2680 _flag_k = FK_TEST; 2681 eax = MEM32(esi); /* 0x30010716: mov eax, dword ptr [esi] */ 2682 MEM32(ebp + (-0x18)) = eax; /* 0x30010718: mov dword ptr [ebp - 0x18], eax */ 2683 if (TEST_Z(_flag_a, _flag_b)) goto L_3001077A; /* 0x3001071B: je 0x3001077a */ 2684 L_3001071D: 2685 ecx = eax; /* 0x3001071D: mov ecx, eax */ 2686 /* cmp eax, ecx */ /* 0x3001071F: cmp eax, ecx */ 2687 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2689 _flag_k = FK_CMP; 2690 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010721: jne 0x3001077a */ 2691 L_30010723: 2692 /* cmp esi, esi */ /* 0x30010723: cmp esi, esi */ 2693 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2695 _flag_k = FK_CMP; 2696 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010725: jne 0x3001077a */ 2697 L_30010727: 2698 esi = MEM32(esi + 0x4); /* 0x30010727: mov esi, dword ptr [esi + 4] */ 2699 eax = MEM32(edi + 0x8); /* 0x3001072A: mov eax, dword ptr [edi + 8] */ 2700 /* cmp esi, eax */ /* 0x3001072D: cmp esi, eax */ 2701 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2703 _flag_k = FK_CMP; 2704 ebx = esi; /* 0x3001072F: mov ebx, esi */ 2705 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010752; /* 0x30010731: je 0x30010752 */ 2706 L_30010733: 2707 edx = MEM32(ebx + 0x8); /* 0x30010733: mov edx, dword ptr [ebx + 8] */ 2708 ecx = edi; /* 0x30010736: mov ecx, edi */ 2709 PUSH32(esp, edx); /* 0x30010738: push edx */ 2710 RECOMP_ICALL(0x30012380u); /* 0x30010739: call 0x30012380 */ /* not lifted */ 2711 RECOMP_FLAGS_IN(); 2712 ebx = MEM32(ebx); /* 0x3001073E: mov ebx, dword ptr [ebx] */ 2713 PUSH32(esp, esi); /* 0x30010740: push esi */ 2714 RECOMP_ICALL(0x30018080u); /* 0x30010741: call 0x30018080 */ /* not lifted */ 2715 RECOMP_FLAGS_IN(); 2716 eax = MEM32(edi + 0x8); /* 0x30010746: mov eax, dword ptr [edi + 8] */ 2717 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2719 esp = esp + 4; /* 0x30010749: add esp, 4 */ 2720 _flag_k = FK_ADD; 2721 /* cmp ebx, eax */ /* 0x3001074C: cmp ebx, eax */ 2722 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2724 _flag_k = FK_CMP; 2725 esi = ebx; /* 0x3001074E: mov esi, ebx */ 2726 RECOMP_BACKEDGE(); 2727 if (CMP_NE(_flag_a, _flag_b)) goto L_30010733; /* 0x30010750: jne 0x30010733 */ 2728 L_30010752: 2729 eax = MEM32(edi + 0x4); /* 0x30010752: mov eax, dword ptr [edi + 4] */ 2730 ecx = MEM32(edi + 0x8); /* 0x30010755: mov ecx, dword ptr [edi + 8] */ 2731 edx = ebp + (-0x60); /* 0x30010758: lea edx, [ebp - 0x60] */ 2732 MEM32(eax + 0x4) = ecx; /* 0x3001075B: mov dword ptr [eax + 4], ecx */ 2733 eax = MEM32(edi + 0x4); /* 0x3001075E: mov eax, dword ptr [edi + 4] */ 2734 MEM32(edi + 0x10) = 0; /* 0x30010761: mov dword ptr [edi + 0x10], 0 */ 2735 PUSH32(esp, edx); /* 0x30010768: push edx */ 2736 MEM32(eax) = eax; /* 0x30010769: mov dword ptr [eax], eax */ 2737 eax = MEM32(edi + 0x4); /* 0x3001076B: mov eax, dword ptr [edi + 4] */ 2738 ecx = edi; /* 0x3001076E: mov ecx, edi */ 2739 MEM32(eax + 0x8) = eax; /* 0x30010770: mov dword ptr [eax + 8], eax */ 2740 RECOMP_ICALL(0x30011670u); /* 0x30010773: call 0x30011670 */ /* not lifted */ 2741 RECOMP_FLAGS_IN(); 2742 goto L_3001079B; /* 0x30010778: jmp 0x3001079b */ 2743 L_3001077A: 2744 /* cmp eax, esi */ /* 0x3001077A: cmp eax, esi */ 2745 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2747 _flag_k = FK_CMP; 2748 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001079B; /* 0x3001077C: je 0x3001079b */ 2749 L_3001077E: 2750 ecx = ebp + (-0x18); /* 0x3001077E: lea ecx, [ebp - 0x18] */ 2751 ebx = eax; /* 0x30010781: mov ebx, eax */ 2752 RECOMP_ICALL(0x30011CD0u); /* 0x30010783: call 0x30011cd0 */ /* not lifted */ 2753 RECOMP_FLAGS_IN(); 2754 eax = ebp + (-0x60); /* 0x30010788: lea eax, [ebp - 0x60] */ 2755 PUSH32(esp, ebx); /* 0x3001078B: push ebx */ 2756 PUSH32(esp, eax); /* 0x3001078C: push eax */ 2757 ecx = edi; /* 0x3001078D: mov ecx, edi */ 2758 RECOMP_ICALL(0x30011FC0u); /* 0x3001078F: call 0x30011fc0 */ /* not lifted */ 2759 RECOMP_FLAGS_IN(); 2760 eax = MEM32(ebp + (-0x18)); /* 0x30010794: mov eax, dword ptr [ebp - 0x18] */ 2761 /* cmp eax, esi */ /* 0x30010797: cmp eax, esi */ 2762 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2763 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2764 _flag_k = FK_CMP; 2765 RECOMP_BACKEDGE(); 2766 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077E; /* 0x30010799: jne 0x3001077e */ 2767 L_3001079B: 2768 eax = MEM32(ebp + (-0x38)); /* 0x3001079B: mov eax, dword ptr [ebp - 0x38] */ 2769 edx = MEM32(ebp + (-0x2C)); /* 0x3001079E: mov edx, dword ptr [ebp - 0x2c] */ 2770 /* test edx, edx */ /* 0x300107A1: test edx, edx */ 2771 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2772 _cf = 0; 2773 _flag_k = FK_TEST; 2774 ecx = MEM32(eax); /* 0x300107A3: mov ecx, dword ptr [eax] */ 2775 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x300107A5: mov byte ptr [ebp - 4], 0 */ 2776 esi = eax; /* 0x300107A9: mov esi, eax */ 2777 MEM32(ebp + (-0x18)) = ecx; /* 0x300107AB: mov dword ptr [ebp - 0x18], ecx */ 2778 if (TEST_Z(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107AE: je 0x300107eb */ 2779 L_300107B0: 2780 edx = ecx; /* 0x300107B0: mov edx, ecx */ 2781 /* cmp ecx, edx */ /* 0x300107B2: cmp ecx, edx */ 2782 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2784 _flag_k = FK_CMP; 2785 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107B4: jne 0x300107eb */ 2786 L_300107B6: 2787 ecx = MEM32(eax + 0x4); /* 0x300107B6: mov ecx, dword ptr [eax + 4] */ 2788 PUSH32(esp, ecx); /* 0x300107B9: push ecx */ 2789 ecx = ebp + (-0x3C); /* 0x300107BA: lea ecx, [ebp - 0x3c] */ 2790 RECOMP_ICALL(0x30012A30u); /* 0x300107BD: call 0x30012a30 */ /* not lifted */ 2791 RECOMP_FLAGS_IN(); 2792 edx = MEM32(ebp + (-0x38)); /* 0x300107C2: mov edx, dword ptr [ebp - 0x38] */ 2793 eax = MEM32(ebp + (-0x34)); /* 0x300107C5: mov eax, dword ptr [ebp - 0x34] */ 2794 ecx = ebp + (-0x60); /* 0x300107C8: lea ecx, [ebp - 0x60] */ 2795 MEM32(edx + 0x4) = eax; /* 0x300107CB: mov dword ptr [edx + 4], eax */ 2796 eax = MEM32(ebp + (-0x38)); /* 0x300107CE: mov eax, dword ptr [ebp - 0x38] */ 2797 MEM32(ebp + (-0x2C)) = 0; /* 0x300107D1: mov dword ptr [ebp - 0x2c], 0 */ 2798 PUSH32(esp, ecx); /* 0x300107D8: push ecx */ 2799 MEM32(eax) = eax; /* 0x300107D9: mov dword ptr [eax], eax */ 2800 eax = MEM32(ebp + (-0x38)); /* 0x300107DB: mov eax, dword ptr [ebp - 0x38] */ 2801 ecx = ebp + (-0x3C); /* 0x300107DE: lea ecx, [ebp - 0x3c] */ 2802 MEM32(eax + 0x8) = eax; /* 0x300107E1: mov dword ptr [eax + 8], eax */ 2803 RECOMP_ICALL(0x30011670u); /* 0x300107E4: call 0x30011670 */ /* not lifted */ 2804 RECOMP_FLAGS_IN(); 2805 goto L_30010811; /* 0x300107E9: jmp 0x30010811 */ 2806 L_300107EB: 2807 /* cmp ecx, eax */ /* 0x300107EB: cmp ecx, eax */ 2808 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2810 _flag_k = FK_CMP; 2811 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010814; /* 0x300107ED: je 0x30010814 */ 2812 L_300107EF: 2813 edx = ebp + (-0x60); /* 0x300107EF: lea edx, [ebp - 0x60] */ 2814 PUSH32(esp, 0); /* 0x300107F2: push 0 */ 2815 PUSH32(esp, edx); /* 0x300107F4: push edx */ 2816 ecx = ebp + (-0x18); /* 0x300107F5: lea ecx, [ebp - 0x18] */ 2817 RECOMP_ICALL(0x30012AD0u); /* 0x300107F8: call 0x30012ad0 */ /* not lifted */ 2818 RECOMP_FLAGS_IN(); 2819 eax = MEM32(eax); /* 0x300107FD: mov eax, dword ptr [eax] */ 2820 ecx = ebp + (-0x14); /* 0x300107FF: lea ecx, [ebp - 0x14] */ 2821 PUSH32(esp, eax); /* 0x30010802: push eax */ 2822 PUSH32(esp, ecx); /* 0x30010803: push ecx */ 2823 ecx = ebp + (-0x3C); /* 0x30010804: lea ecx, [ebp - 0x3c] */ 2824 RECOMP_ICALL(0x30012670u); /* 0x30010807: call 0x30012670 */ /* not lifted */ 2825 RECOMP_FLAGS_IN(); 2826 /* cmp MEM32(ebp + (-0x18)), esi */ /* 0x3001080C: cmp dword ptr [ebp - 0x18], esi */ 2827 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(esi); 2828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2829 _flag_k = FK_CMP; 2830 RECOMP_BACKEDGE(); 2831 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EF; /* 0x3001080F: jne 0x300107ef */ 2832 L_30010811: 2833 eax = MEM32(ebp + (-0x38)); /* 0x30010811: mov eax, dword ptr [ebp - 0x38] */ 2834 L_30010814: 2835 PUSH32(esp, eax); /* 0x30010814: push eax */ 2836 RECOMP_ICALL(0x30018080u); /* 0x30010815: call 0x30018080 */ /* not lifted */ 2837 RECOMP_FLAGS_IN(); 2838 edx = MEM32(ebp + (-0x34)); /* 0x3001081A: mov edx, dword ptr [ebp - 0x34] */ 2839 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2840 ebx = 0; /* 0x3001081D: xor ebx, ebx */ 2841 _cf = 0; 2842 _flag_k = FK_TEST; 2843 PUSH32(esp, edx); /* 0x3001081F: push edx */ 2844 MEM32(ebp + (-0x38)) = ebx; /* 0x30010820: mov dword ptr [ebp - 0x38], ebx */ 2845 MEM32(ebp + (-0x2C)) = ebx; /* 0x30010823: mov dword ptr [ebp - 0x2c], ebx */ 2846 RECOMP_ICALL(0x30018080u); /* 0x30010826: call 0x30018080 */ /* not lifted */ 2847 RECOMP_FLAGS_IN(); 2848 esi = MEM32(ebp + (-0x4C)); /* 0x3001082B: mov esi, dword ptr [ebp - 0x4c] */ 2849 ecx = MEM32(ebp + (-0x40)); /* 0x3001082E: mov ecx, dword ptr [ebp - 0x40] */ 2850 MEM32(ebp + (-0x34)) = ebx; /* 0x30010831: mov dword ptr [ebp - 0x34], ebx */ 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; /* 0x30010834: add esp, 8 */ 2854 _flag_k = FK_ADD; 2855 eax = MEM32(esi); /* 0x30010837: mov eax, dword ptr [esi] */ 2856 /* cmp ecx, ebx */ /* 0x30010839: cmp ecx, ebx */ 2857 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2859 _flag_k = FK_CMP; 2860 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3001083B: mov dword ptr [ebp - 4], 0xffffffff */ 2861 MEM32(ebp + (-0x14)) = eax; /* 0x30010842: mov dword ptr [ebp - 0x14], eax */ 2862 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010882; /* 0x30010845: je 0x30010882 */ 2863 L_30010847: 2864 ecx = eax; /* 0x30010847: mov ecx, eax */ 2865 /* cmp eax, ecx */ /* 0x30010849: cmp eax, ecx */ 2866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2868 _flag_k = FK_CMP; 2869 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084B: jne 0x30010882 */ 2870 L_3001084D: 2871 /* cmp esi, esi */ /* 0x3001084D: cmp esi, esi */ 2872 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2874 _flag_k = FK_CMP; 2875 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084F: jne 0x30010882 */ 2876 L_30010851: 2877 eax = MEM32(esi + 0x4); /* 0x30010851: mov eax, dword ptr [esi + 4] */ 2878 ecx = ebp + (-0x50); /* 0x30010854: lea ecx, [ebp - 0x50] */ 2879 PUSH32(esp, eax); /* 0x30010857: push eax */ 2880 RECOMP_ICALL(0x30012B30u); /* 0x30010858: call 0x30012b30 */ /* not lifted */ 2881 RECOMP_FLAGS_IN(); 2882 ecx = MEM32(ebp + (-0x4C)); /* 0x3001085D: mov ecx, dword ptr [ebp - 0x4c] */ 2883 edx = MEM32(ebp + (-0x48)); /* 0x30010860: mov edx, dword ptr [ebp - 0x48] */ 2884 MEM32(ecx + 0x4) = edx; /* 0x30010863: mov dword ptr [ecx + 4], edx */ 2885 eax = MEM32(ebp + (-0x4C)); /* 0x30010866: mov eax, dword ptr [ebp - 0x4c] */ 2886 MEM32(ebp + (-0x40)) = ebx; /* 0x30010869: mov dword ptr [ebp - 0x40], ebx */ 2887 ecx = ebp + (-0x50); /* 0x3001086C: lea ecx, [ebp - 0x50] */ 2888 MEM32(eax) = eax; /* 0x3001086F: mov dword ptr [eax], eax */ 2889 eax = MEM32(ebp + (-0x4C)); /* 0x30010871: mov eax, dword ptr [ebp - 0x4c] */ 2890 MEM32(eax + 0x8) = eax; /* 0x30010874: mov dword ptr [eax + 8], eax */ 2891 eax = ebp + (-0x60); /* 0x30010877: lea eax, [ebp - 0x60] */ 2892 PUSH32(esp, eax); /* 0x3001087A: push eax */ 2893 RECOMP_ICALL(0x30011670u); /* 0x3001087B: call 0x30011670 */ /* not lifted */ 2894 RECOMP_FLAGS_IN(); 2895 goto L_300108A4; /* 0x30010880: jmp 0x300108a4 */ 2896 L_30010882: 2897 /* cmp eax, esi */ /* 0x30010882: cmp eax, esi */ 2898 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2900 _flag_k = FK_CMP; 2901 if (CMP_EQ(_flag_a, _flag_b)) goto L_300108A4; /* 0x30010884: je 0x300108a4 */ 2902 L_30010886: 2903 ecx = ebp + (-0x14); /* 0x30010886: lea ecx, [ebp - 0x14] */ 2904 edi = eax; /* 0x30010889: mov edi, eax */ 2905 RECOMP_ICALL(0x30011CD0u); /* 0x3001088B: call 0x30011cd0 */ /* not lifted */ 2906 RECOMP_FLAGS_IN(); 2907 ecx = ebp + 0x8; /* 0x30010890: lea ecx, [ebp + 8] */ 2908 PUSH32(esp, edi); /* 0x30010893: push edi */ 2909 PUSH32(esp, ecx); /* 0x30010894: push ecx */ 2910 ecx = ebp + (-0x50); /* 0x30010895: lea ecx, [ebp - 0x50] */ 2911 RECOMP_ICALL(0x30011FC0u); /* 0x30010898: call 0x30011fc0 */ /* not lifted */ 2912 RECOMP_FLAGS_IN(); 2913 eax = MEM32(ebp + (-0x14)); /* 0x3001089D: mov eax, dword ptr [ebp - 0x14] */ 2914 /* cmp eax, esi */ /* 0x300108A0: cmp eax, esi */ 2915 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2917 _flag_k = FK_CMP; 2918 RECOMP_BACKEDGE(); 2919 if (CMP_NE(_flag_a, _flag_b)) goto L_30010886; /* 0x300108A2: jne 0x30010886 */ 2920 L_300108A4: 2921 edx = MEM32(ebp + (-0x4C)); /* 0x300108A4: mov edx, dword ptr [ebp - 0x4c] */ 2922 PUSH32(esp, edx); /* 0x300108A7: push edx */ 2923 RECOMP_ICALL(0x30018080u); /* 0x300108A8: call 0x30018080 */ /* not lifted */ 2924 RECOMP_FLAGS_IN(); 2925 eax = MEM32(ebp + (-0x48)); /* 0x300108AD: mov eax, dword ptr [ebp - 0x48] */ 2926 MEM32(ebp + (-0x4C)) = ebx; /* 0x300108B0: mov dword ptr [ebp - 0x4c], ebx */ 2927 PUSH32(esp, eax); /* 0x300108B3: push eax */ 2928 MEM32(ebp + (-0x40)) = ebx; /* 0x300108B4: mov dword ptr [ebp - 0x40], ebx */ 2929 RECOMP_ICALL(0x30018080u); /* 0x300108B7: call 0x30018080 */ /* not lifted */ 2930 RECOMP_FLAGS_IN(); 2931 ecx = MEM32(ebp + (-0xC)); /* 0x300108BC: mov ecx, dword ptr [ebp - 0xc] */ 2932 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2933 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2934 esp = esp + 8; /* 0x300108BF: add esp, 8 */ 2935 _flag_k = FK_ADD; 2936 MEM32(FS_BASE + (0)) = ecx; /* 0x300108C2: mov dword ptr fs:[0], ecx */ 2937 edi = POP32_VAL(esp); /* 0x300108C9: pop edi */ 2938 esi = POP32_VAL(esp); /* 0x300108CA: pop esi */ 2939 ebx = POP32_VAL(esp); /* 0x300108CB: pop ebx */ 2940 esp = ebp; /* 0x300108CC: mov esp, ebp */ 2941 ebp = POP32_VAL(esp); /* 0x300108CE: pop ebp */ 2942 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300108CF: ret 4 */ 2943 RECOMP_REGS_OUT(); 2944 } 2945 2946 void sub_30010428(void) { 2947 int _fpu_cmp = 0; 2948 uint32_t _cf = 0; 2949 int _df = 1; 2950 uint32_t _flag_k = FK_NONE; 2951 uint32_t _flag_a = 0, _flag_b = 0; 2952 uint32_t _itail_tgt = 0; 2953 RECOMP_REGS_LOCALS 2954 RECOMP_ENTER(0x30010428u); 2955 2956 L_30010428: 2957 /* cmp ecx, MEM32(ebp + (-0x4C)) */ /* 0x30010428: cmp ecx, dword ptr [ebp - 0x4c] */ 2958 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4C))); 2959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2960 _flag_k = FK_CMP; 2961 if (CMP_EQ(_flag_a, _flag_b)) goto L_300104B3; /* 0x3001042B: je 0x300104b3 */ 2962 L_30010431: 2963 fp_push(*(float*)&MEM32(ecx + 0x10)); /* 0x30010431: fld dword ptr [ecx + 0x10] */ 2964 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x1C))); /* 0x30010434: fcomp dword ptr [ebp - 0x1c] */ 2965 fp_pop(); 2966 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30010437: fnstsw ax */ 2967 /* test HI8(eax), 1 */ /* 0x30010439: test ah, 1 */ 2968 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2969 _cf = 0; 2970 _flag_k = FK_NARROW(FK_TEST, 24); 2971 if (TEST_Z(_flag_a, _flag_b)) goto L_30010444; /* 0x3001043C: je 0x30010444 */ 2972 L_3001043E: 2973 eax = MEM32(ecx + 0x10); /* 0x3001043E: mov eax, dword ptr [ecx + 0x10] */ 2974 MEM32(ebp + (-0x1C)) = eax; /* 0x30010441: mov dword ptr [ebp - 0x1c], eax */ 2975 L_30010444: 2976 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x30010444: fld dword ptr [ecx + 0x14] */ 2977 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x28))); /* 0x30010447: fcomp dword ptr [ebp - 0x28] */ 2978 fp_pop(); 2979 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3001044A: fnstsw ax */ 2980 /* test HI8(eax), 1 */ /* 0x3001044C: test ah, 1 */ 2981 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2982 _cf = 0; 2983 _flag_k = FK_NARROW(FK_TEST, 24); 2984 if (TEST_Z(_flag_a, _flag_b)) goto L_30010457; /* 0x3001044F: je 0x30010457 */ 2985 L_30010451: 2986 edx = MEM32(ecx + 0x14); /* 0x30010451: mov edx, dword ptr [ecx + 0x14] */ 2987 MEM32(ebp + (-0x28)) = edx; /* 0x30010454: mov dword ptr [ebp - 0x28], edx */ 2988 L_30010457: 2989 fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x30010457: fld dword ptr [ecx + 0x18] */ 2990 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x24))); /* 0x3001045A: fcomp dword ptr [ebp - 0x24] */ 2991 fp_pop(); 2992 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3001045D: fnstsw ax */ 2993 /* test HI8(eax), 1 */ /* 0x3001045F: test ah, 1 */ 2994 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2995 _cf = 0; 2996 _flag_k = FK_NARROW(FK_TEST, 24); 2997 if (TEST_Z(_flag_a, _flag_b)) goto L_3001046A; /* 0x30010462: je 0x3001046a */ 2998 L_30010464: 2999 eax = MEM32(ecx + 0x18); /* 0x30010464: mov eax, dword ptr [ecx + 0x18] */ 3000 MEM32(ebp + (-0x24)) = eax; /* 0x30010467: mov dword ptr [ebp - 0x24], eax */ 3001 L_3001046A: 3002 fp_push(*(float*)&MEM32(ecx + 0x10)); /* 0x3001046A: fld dword ptr [ecx + 0x10] */ 3003 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x14))); /* 0x3001046D: fcomp dword ptr [ebp - 0x14] */ 3004 fp_pop(); 3005 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30010470: fnstsw ax */ 3006 /* test HI8(eax), 0x41u */ /* 0x30010472: test ah, 0x41 */ 3007 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3008 _cf = 0; 3009 _flag_k = FK_NARROW(FK_TEST, 24); 3010 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001047D; /* 0x30010475: jne 0x3001047d */ 3011 L_30010477: 3012 edx = MEM32(ecx + 0x10); /* 0x30010477: mov edx, dword ptr [ecx + 0x10] */ 3013 MEM32(ebp + (-0x14)) = edx; /* 0x3001047A: mov dword ptr [ebp - 0x14], edx */ 3014 L_3001047D: 3015 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x3001047D: fld dword ptr [ecx + 0x14] */ 3016 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x20))); /* 0x30010480: fcomp dword ptr [ebp - 0x20] */ 3017 fp_pop(); 3018 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30010483: fnstsw ax */ 3019 /* test HI8(eax), 0x41u */ /* 0x30010485: test ah, 0x41 */ 3020 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3021 _cf = 0; 3022 _flag_k = FK_NARROW(FK_TEST, 24); 3023 if (TEST_NZ(_flag_a, _flag_b)) goto L_30010490; /* 0x30010488: jne 0x30010490 */ 3024 L_3001048A: 3025 eax = MEM32(ecx + 0x14); /* 0x3001048A: mov eax, dword ptr [ecx + 0x14] */ 3026 MEM32(ebp + (-0x20)) = eax; /* 0x3001048D: mov dword ptr [ebp - 0x20], eax */ 3027 L_30010490: 3028 fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x30010490: fld dword ptr [ecx + 0x18] */ 3029 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x5C))); /* 0x30010493: fcomp dword ptr [ebp - 0x5c] */ 3030 fp_pop(); 3031 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30010496: fnstsw ax */ 3032 /* test HI8(eax), 0x41u */ /* 0x30010498: test ah, 0x41 */ 3033 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3034 _cf = 0; 3035 _flag_k = FK_NARROW(FK_TEST, 24); 3036 if (TEST_NZ(_flag_a, _flag_b)) goto L_300104A3; /* 0x3001049B: jne 0x300104a3 */ 3037 L_3001049D: 3038 ecx = MEM32(ecx + 0x18); /* 0x3001049D: mov ecx, dword ptr [ecx + 0x18] */ 3039 MEM32(ebp + (-0x5C)) = ecx; /* 0x300104A0: mov dword ptr [ebp - 0x5c], ecx */ 3040 L_300104A3: 3041 ecx = ebp + (-0x10); /* 0x300104A3: lea ecx, [ebp - 0x10] */ 3042 RECOMP_ICALL(0x30011CD0u); /* 0x300104A6: call 0x30011cd0 */ /* not lifted */ 3043 RECOMP_FLAGS_IN(); 3044 ecx = MEM32(ebp + (-0x10)); /* 0x300104AB: mov ecx, dword ptr [ebp - 0x10] */ 3045 RECOMP_BACKEDGE(); 3046 goto L_30010428; /* 0x300104AE: jmp 0x30010428 */ 3047 L_300104B3: 3048 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x300104B3: fld dword ptr [ebp - 0x5c] */ 3049 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x300104B6: fsub dword ptr [ebp - 0x24] */ 3050 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300104B9: fld dword ptr [ebp - 0x20] */ 3051 _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x300104BC: fsub dword ptr [ebp - 0x28] */ 3052 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x300104BF: fst dword ptr [ebp - 0x20] */ 3053 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300104C2: fcomp st(1) */ 3054 fp_pop(); 3055 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300104C4: fnstsw ax */ 3056 /* test HI8(eax), 0x41u */ /* 0x300104C6: test ah, 0x41 */ 3057 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3058 _cf = 0; 3059 _flag_k = FK_NARROW(FK_TEST, 24); 3060 if (TEST_NZ(_flag_a, _flag_b)) goto L_300104D0; /* 0x300104C9: jne 0x300104d0 */ 3061 L_300104CB: 3062 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300104CB: fstp st(0) */ 3063 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x300104CD: fld dword ptr [ebp - 0x20] */ 3064 L_300104D0: 3065 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x300104D0: fld dword ptr [ebp - 0x14] */ 3066 _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x300104D3: fsub dword ptr [ebp - 0x1c] */ 3067 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x300104D6: fst dword ptr [ebp - 0x14] */ 3068 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x300104D9: fcomp st(1) */ 3069 fp_pop(); 3070 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300104DB: fnstsw ax */ 3071 /* test HI8(eax), 0x41u */ /* 0x300104DD: test ah, 0x41 */ 3072 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3073 _cf = 0; 3074 _flag_k = FK_NARROW(FK_TEST, 24); 3075 if (TEST_NZ(_flag_a, _flag_b)) goto L_300104E7; /* 0x300104E0: jne 0x300104e7 */ 3076 L_300104E2: 3077 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x300104E2: fstp st(0) */ 3078 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x300104E4: fld dword ptr [ebp - 0x14] */ 3079 L_300104E7: 3080 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x300192A8)); /* 0x300104E7: fcomp dword ptr [0x300192a8] */ 3081 fp_pop(); 3082 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300104ED: fnstsw ax */ 3083 /* test HI8(eax), 1 */ /* 0x300104EF: test ah, 1 */ 3084 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3085 _cf = 0; 3086 _flag_k = FK_NARROW(FK_TEST, 24); 3087 if (TEST_Z(_flag_a, _flag_b)) goto L_300105B0; /* 0x300104F2: je 0x300105b0 */ 3088 L_300104F8: 3089 edx = MEM32(ebp + (-0x24)); /* 0x300104F8: mov edx, dword ptr [ebp - 0x24] */ 3090 eax = MEM32(ebp + (-0x28)); /* 0x300104FB: mov eax, dword ptr [ebp - 0x28] */ 3091 ecx = MEM32(ebp + (-0x1C)); /* 0x300104FE: mov ecx, dword ptr [ebp - 0x1c] */ 3092 esi = MEM32(0x30019090); /* 0x30010501: mov esi, dword ptr [0x30019090] */ 3093 PUSH32(esp, edx); /* 0x30010507: push edx */ 3094 PUSH32(esp, eax); /* 0x30010508: push eax */ 3095 PUSH32(esp, ecx); /* 0x30010509: push ecx */ 3096 ecx = edi; /* 0x3001050A: mov ecx, edi */ 3097 RECOMP_ICALL(esi); /* 0x3001050C: call esi */ 3098 RECOMP_FLAGS_IN(); 3099 ecx = eax; /* 0x3001050E: mov ecx, eax */ 3100 RECOMP_ICALL(esi); /* 0x30010510: call esi */ 3101 RECOMP_FLAGS_IN(); 3102 ecx = eax; /* 0x30010512: mov ecx, eax */ 3103 RECOMP_ICALL(esi); /* 0x30010514: call esi */ 3104 RECOMP_FLAGS_IN(); 3105 eax = MEM32(ebp + (-0x4C)); /* 0x30010516: mov eax, dword ptr [ebp - 0x4c] */ 3106 esi = MEM32(0x300190A8); /* 0x30010519: mov esi, dword ptr [0x300190a8] */ 3107 ecx = MEM32(eax); /* 0x3001051F: mov ecx, dword ptr [eax] */ 3108 MEM32(ebp + (-0x10)) = ecx; /* 0x30010521: mov dword ptr [ebp - 0x10], ecx */ 3109 L_30010524: 3110 /* cmp ecx, eax */ /* 0x30010524: cmp ecx, eax */ 3111 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3113 _flag_k = FK_CMP; 3114 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001054E; /* 0x30010526: je 0x3001054e */ 3115 L_30010528: 3116 fp_push(*(float*)&MEM32(ecx + 0x10)); /* 0x30010528: fld dword ptr [ecx + 0x10] */ 3117 _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3001052B: fsub dword ptr [ebp - 0x1c] */ 3118 _st[0] *= (double)*(float*)ADDR(0x300192A4); /* 0x3001052E: fmul dword ptr [0x300192a4] */ 3119 RECOMP_ICALL(0x300181F8u); /* 0x30010534: call 0x300181f8 */ /* not lifted */ 3120 RECOMP_FLAGS_IN(); 3121 PUSH32(esp, eax); /* 0x30010539: push eax */ 3122 ecx = edi; /* 0x3001053A: mov ecx, edi */ 3123 RECOMP_ICALL(esi); /* 0x3001053C: call esi */ 3124 RECOMP_FLAGS_IN(); 3125 ecx = ebp + (-0x10); /* 0x3001053E: lea ecx, [ebp - 0x10] */ 3126 RECOMP_ICALL(0x30011CD0u); /* 0x30010541: call 0x30011cd0 */ /* not lifted */ 3127 RECOMP_FLAGS_IN(); 3128 eax = MEM32(ebp + (-0x4C)); /* 0x30010546: mov eax, dword ptr [ebp - 0x4c] */ 3129 ecx = MEM32(ebp + (-0x10)); /* 0x30010549: mov ecx, dword ptr [ebp - 0x10] */ 3130 RECOMP_BACKEDGE(); 3131 goto L_30010524; /* 0x3001054C: jmp 0x30010524 */ 3132 L_3001054E: 3133 ecx = MEM32(eax); /* 0x3001054E: mov ecx, dword ptr [eax] */ 3134 MEM32(ebp + (-0x10)) = ecx; /* 0x30010550: mov dword ptr [ebp - 0x10], ecx */ 3135 L_30010553: 3136 /* cmp ecx, eax */ /* 0x30010553: cmp ecx, eax */ 3137 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3139 _flag_k = FK_CMP; 3140 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001057D; /* 0x30010555: je 0x3001057d */ 3141 L_30010557: 3142 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x30010557: fld dword ptr [ecx + 0x14] */ 3143 _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3001055A: fsub dword ptr [ebp - 0x28] */ 3144 _st[0] *= (double)*(float*)ADDR(0x300192A4); /* 0x3001055D: fmul dword ptr [0x300192a4] */ 3145 RECOMP_ICALL(0x300181F8u); /* 0x30010563: call 0x300181f8 */ /* not lifted */ 3146 RECOMP_FLAGS_IN(); 3147 PUSH32(esp, eax); /* 0x30010568: push eax */ 3148 ecx = edi; /* 0x30010569: mov ecx, edi */ 3149 RECOMP_ICALL(esi); /* 0x3001056B: call esi */ 3150 RECOMP_FLAGS_IN(); 3151 ecx = ebp + (-0x10); /* 0x3001056D: lea ecx, [ebp - 0x10] */ 3152 RECOMP_ICALL(0x30011CD0u); /* 0x30010570: call 0x30011cd0 */ /* not lifted */ 3153 RECOMP_FLAGS_IN(); 3154 eax = MEM32(ebp + (-0x4C)); /* 0x30010575: mov eax, dword ptr [ebp - 0x4c] */ 3155 ecx = MEM32(ebp + (-0x10)); /* 0x30010578: mov ecx, dword ptr [ebp - 0x10] */ 3156 RECOMP_BACKEDGE(); 3157 goto L_30010553; /* 0x3001057B: jmp 0x30010553 */ 3158 L_3001057D: 3159 ecx = MEM32(eax); /* 0x3001057D: mov ecx, dword ptr [eax] */ 3160 MEM32(ebp + (-0x10)) = ecx; /* 0x3001057F: mov dword ptr [ebp - 0x10], ecx */ 3161 L_30010582: 3162 /* cmp ecx, eax */ /* 0x30010582: cmp ecx, eax */ 3163 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3165 _flag_k = FK_CMP; 3166 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010682; /* 0x30010584: je 0x30010682 */ 3167 L_3001058A: 3168 fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x3001058A: fld dword ptr [ecx + 0x18] */ 3169 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3001058D: fsub dword ptr [ebp - 0x24] */ 3170 _st[0] *= (double)*(float*)ADDR(0x300192A4); /* 0x30010590: fmul dword ptr [0x300192a4] */ 3171 RECOMP_ICALL(0x300181F8u); /* 0x30010596: call 0x300181f8 */ /* not lifted */ 3172 RECOMP_FLAGS_IN(); 3173 PUSH32(esp, eax); /* 0x3001059B: push eax */ 3174 ecx = edi; /* 0x3001059C: mov ecx, edi */ 3175 RECOMP_ICALL(esi); /* 0x3001059E: call esi */ 3176 RECOMP_FLAGS_IN(); 3177 ecx = ebp + (-0x10); /* 0x300105A0: lea ecx, [ebp - 0x10] */ 3178 RECOMP_ICALL(0x30011CD0u); /* 0x300105A3: call 0x30011cd0 */ /* not lifted */ 3179 RECOMP_FLAGS_IN(); 3180 eax = MEM32(ebp + (-0x4C)); /* 0x300105A8: mov eax, dword ptr [ebp - 0x4c] */ 3181 ecx = MEM32(ebp + (-0x10)); /* 0x300105AB: mov ecx, dword ptr [ebp - 0x10] */ 3182 RECOMP_BACKEDGE(); 3183 goto L_30010582; /* 0x300105AE: jmp 0x30010582 */ 3184 L_300105B0: 3185 esi = MEM32(0x30019090); /* 0x300105B0: mov esi, dword ptr [0x30019090] */ 3186 PUSH32(esp, 0xC7C34F80u); /* 0x300105B6: push 0xc7c34f80 */ 3187 ecx = edi; /* 0x300105BB: mov ecx, edi */ 3188 RECOMP_ICALL(esi); /* 0x300105BD: call esi */ 3189 RECOMP_FLAGS_IN(); 3190 edx = MEM32(ebp + (-0x4C)); /* 0x300105BF: mov edx, dword ptr [ebp - 0x4c] */ 3191 eax = MEM32(edx); /* 0x300105C2: mov eax, dword ptr [edx] */ 3192 MEM32(ebp + (-0x10)) = eax; /* 0x300105C4: mov dword ptr [ebp - 0x10], eax */ 3193 L_300105C7: 3194 ecx = MEM32(ebp + (-0x4C)); /* 0x300105C7: mov ecx, dword ptr [ebp - 0x4c] */ 3195 /* cmp eax, ecx */ /* 0x300105CA: cmp eax, ecx */ 3196 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3198 _flag_k = FK_CMP; 3199 if (CMP_EQ(_flag_a, _flag_b)) goto L_300105E3; /* 0x300105CC: je 0x300105e3 */ 3200 L_300105CE: 3201 eax = MEM32(eax + 0x10); /* 0x300105CE: mov eax, dword ptr [eax + 0x10] */ 3202 ecx = edi; /* 0x300105D1: mov ecx, edi */ 3203 PUSH32(esp, eax); /* 0x300105D3: push eax */ 3204 RECOMP_ICALL(esi); /* 0x300105D4: call esi */ 3205 RECOMP_FLAGS_IN(); 3206 ecx = ebp + (-0x10); /* 0x300105D6: lea ecx, [ebp - 0x10] */ 3207 RECOMP_ICALL(0x30011CD0u); /* 0x300105D9: call 0x30011cd0 */ /* not lifted */ 3208 RECOMP_FLAGS_IN(); 3209 eax = MEM32(ebp + (-0x10)); /* 0x300105DE: mov eax, dword ptr [ebp - 0x10] */ 3210 RECOMP_BACKEDGE(); 3211 goto L_300105C7; /* 0x300105E1: jmp 0x300105c7 */ 3212 L_300105E3: 3213 eax = MEM32(ecx); /* 0x300105E3: mov eax, dword ptr [ecx] */ 3214 L_300105E5: 3215 MEM32(ebp + (-0x10)) = eax; /* 0x300105E5: mov dword ptr [ebp - 0x10], eax */ 3216 L_300105E8: 3217 ecx = MEM32(ebp + (-0x4C)); /* 0x300105E8: mov ecx, dword ptr [ebp - 0x4c] */ 3218 /* cmp eax, ecx */ /* 0x300105EB: cmp eax, ecx */ 3219 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3221 _flag_k = FK_CMP; 3222 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001062D; /* 0x300105ED: je 0x3001062d */ 3223 L_300105EF: 3224 ecx = MEM32(eax + 0x14); /* 0x300105EF: mov ecx, dword ptr [eax + 0x14] */ 3225 PUSH32(esp, ecx); /* 0x300105F2: push ecx */ 3226 ecx = edi; /* 0x300105F3: mov ecx, edi */ 3227 RECOMP_ICALL(esi); /* 0x300105F5: call esi */ 3228 RECOMP_FLAGS_IN(); 3229 eax = MEM32(ebp + (-0x10)); /* 0x300105F7: mov eax, dword ptr [ebp - 0x10] */ 3230 ecx = MEM32(eax + 0x8); /* 0x300105FA: mov ecx, dword ptr [eax + 8] */ 3231 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x300105FD: mov dl, byte ptr [ecx + 0x1d] */ 3232 /* test LO8(edx), LO8(edx) */ /* 0x30010600: test dl, dl */ 3233 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3234 _cf = 0; 3235 _flag_k = FK_NARROW(FK_TEST, 24); 3236 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001060F; /* 0x30010602: jne 0x3001060f */ 3237 L_30010604: 3238 PUSH32(esp, ecx); /* 0x30010604: push ecx */ 3239 RECOMP_ICALL(0x30012B70u); /* 0x30010605: call 0x30012b70 */ /* not lifted */ 3240 RECOMP_FLAGS_IN(); 3241 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3243 esp = esp + 4; /* 0x3001060A: add esp, 4 */ 3244 _flag_k = FK_ADD; 3245 RECOMP_BACKEDGE(); 3246 goto L_300105E5; /* 0x3001060D: jmp 0x300105e5 */ 3247 L_3001060F: 3248 ecx = MEM32(eax + 0x4); /* 0x3001060F: mov ecx, dword ptr [eax + 4] */ 3249 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010612: cmp eax, dword ptr [ecx + 8] */ 3250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3252 _flag_k = FK_CMP; 3253 if (CMP_NE(_flag_a, _flag_b)) goto L_30010624; /* 0x30010615: jne 0x30010624 */ 3254 L_30010617: 3255 eax = ecx; /* 0x30010617: mov eax, ecx */ 3256 MEM32(ebp + (-0x10)) = eax; /* 0x30010619: mov dword ptr [ebp - 0x10], eax */ 3257 ecx = MEM32(ecx + 0x4); /* 0x3001061C: mov ecx, dword ptr [ecx + 4] */ 3258 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3001061F: cmp eax, dword ptr [ecx + 8] */ 3259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3261 _flag_k = FK_CMP; 3262 RECOMP_BACKEDGE(); 3263 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010617; /* 0x30010622: je 0x30010617 */ 3264 L_30010624: 3265 /* cmp MEM32(eax + 0x8), ecx */ /* 0x30010624: cmp dword ptr [eax + 8], ecx */ 3266 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 3267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3268 _flag_k = FK_CMP; 3269 RECOMP_BACKEDGE(); 3270 if (CMP_EQ(_flag_a, _flag_b)) goto L_300105E8; /* 0x30010627: je 0x300105e8 */ 3271 L_30010629: 3272 eax = ecx; /* 0x30010629: mov eax, ecx */ 3273 RECOMP_BACKEDGE(); 3274 goto L_300105E5; /* 0x3001062B: jmp 0x300105e5 */ 3275 L_3001062D: 3276 eax = MEM32(ecx); /* 0x3001062D: mov eax, dword ptr [ecx] */ 3277 L_3001062F: 3278 MEM32(ebp + (-0x10)) = eax; /* 0x3001062F: mov dword ptr [ebp - 0x10], eax */ 3279 L_30010632: 3280 /* cmp eax, MEM32(ebp + (-0x4C)) */ /* 0x30010632: cmp eax, dword ptr [ebp - 0x4c] */ 3281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x4C))); 3282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3283 _flag_k = FK_CMP; 3284 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010682; /* 0x30010635: je 0x30010682 */ 3285 L_30010637: 3286 edx = MEM32(eax + 0x18); /* 0x30010637: mov edx, dword ptr [eax + 0x18] */ 3287 ecx = edi; /* 0x3001063A: mov ecx, edi */ 3288 PUSH32(esp, edx); /* 0x3001063C: push edx */ 3289 RECOMP_ICALL(esi); /* 0x3001063D: call esi */ 3290 RECOMP_FLAGS_IN(); 3291 eax = MEM32(ebp + (-0x10)); /* 0x3001063F: mov eax, dword ptr [ebp - 0x10] */ 3292 ecx = MEM32(eax + 0x8); /* 0x30010642: mov ecx, dword ptr [eax + 8] */ 3293 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x30010645: mov dl, byte ptr [ecx + 0x1d] */ 3294 /* test LO8(edx), LO8(edx) */ /* 0x30010648: test dl, dl */ 3295 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3296 _cf = 0; 3297 _flag_k = FK_NARROW(FK_TEST, 24); 3298 if (TEST_NZ(_flag_a, _flag_b)) goto L_30010664; /* 0x3001064A: jne 0x30010664 */ 3299 L_3001064C: 3300 eax = ecx; /* 0x3001064C: mov eax, ecx */ 3301 ecx = MEM32(eax); /* 0x3001064E: mov ecx, dword ptr [eax] */ 3302 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x30010650: mov dl, byte ptr [ecx + 0x1d] */ 3303 /* test LO8(edx), LO8(edx) */ /* 0x30010653: test dl, dl */ 3304 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3305 _cf = 0; 3306 _flag_k = FK_NARROW(FK_TEST, 24); 3307 RECOMP_BACKEDGE(); 3308 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001062F; /* 0x30010655: jne 0x3001062f */ 3309 L_30010657: 3310 eax = ecx; /* 0x30010657: mov eax, ecx */ 3311 ecx = MEM32(eax); /* 0x30010659: mov ecx, dword ptr [eax] */ 3312 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x3001065B: mov dl, byte ptr [ecx + 0x1d] */ 3313 /* test LO8(edx), LO8(edx) */ /* 0x3001065E: test dl, dl */ 3314 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3315 _cf = 0; 3316 _flag_k = FK_NARROW(FK_TEST, 24); 3317 RECOMP_BACKEDGE(); 3318 if (TEST_Z(_flag_a, _flag_b)) goto L_30010657; /* 0x30010660: je 0x30010657 */ 3319 L_30010662: 3320 RECOMP_BACKEDGE(); 3321 goto L_3001062F; /* 0x30010662: jmp 0x3001062f */ 3322 L_30010664: 3323 ecx = MEM32(eax + 0x4); /* 0x30010664: mov ecx, dword ptr [eax + 4] */ 3324 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010667: cmp eax, dword ptr [ecx + 8] */ 3325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3327 _flag_k = FK_CMP; 3328 if (CMP_NE(_flag_a, _flag_b)) goto L_30010679; /* 0x3001066A: jne 0x30010679 */ 3329 L_3001066C: 3330 eax = ecx; /* 0x3001066C: mov eax, ecx */ 3331 MEM32(ebp + (-0x10)) = eax; /* 0x3001066E: mov dword ptr [ebp - 0x10], eax */ 3332 ecx = MEM32(ecx + 0x4); /* 0x30010671: mov ecx, dword ptr [ecx + 4] */ 3333 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010674: cmp eax, dword ptr [ecx + 8] */ 3334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3336 _flag_k = FK_CMP; 3337 RECOMP_BACKEDGE(); 3338 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001066C; /* 0x30010677: je 0x3001066c */ 3339 L_30010679: 3340 /* cmp MEM32(eax + 0x8), ecx */ /* 0x30010679: cmp dword ptr [eax + 8], ecx */ 3341 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 3342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3343 _flag_k = FK_CMP; 3344 RECOMP_BACKEDGE(); 3345 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010632; /* 0x3001067C: je 0x30010632 */ 3346 L_3001067E: 3347 eax = ecx; /* 0x3001067E: mov eax, ecx */ 3348 RECOMP_BACKEDGE(); 3349 goto L_3001062F; /* 0x30010680: jmp 0x3001062f */ 3350 L_30010682: 3351 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x30010682: mov al, byte ptr [ebp + 0xb] */ 3352 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x30010685: mov cl, byte ptr [ebp + 0xb] */ 3353 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3354 esi = 0; /* 0x30010688: xor esi, esi */ 3355 _cf = 0; 3356 _flag_k = FK_TEST; 3357 PUSH32(esp, 0x18u); /* 0x3001068A: push 0x18 */ 3358 MEM32(ebx + 0x20) = esi; /* 0x3001068C: mov dword ptr [ebx + 0x20], esi */ 3359 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x3001068F: mov byte ptr [ebp - 0x3c], al */ 3360 MEM8(ebp + (-0x3B)) = (uint8_t)(LO8(ecx)); /* 0x30010692: mov byte ptr [ebp - 0x3b], cl */ 3361 MEM8(ebp + (-0x30)) = (uint8_t)(0); /* 0x30010695: mov byte ptr [ebp - 0x30], 0 */ 3362 RECOMP_ICALL(0x300180A8u); /* 0x30010699: call 0x300180a8 */ /* not lifted */ 3363 RECOMP_FLAGS_IN(); 3364 MEM32(eax + 0x4) = esi; /* 0x3001069E: mov dword ptr [eax + 4], esi */ 3365 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x300106A1: mov byte ptr [eax + 0x14], 1 */ 3366 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106A5: mov byte ptr [eax + 0x15], 0 */ 3367 MEM32(ebp + (-0x34)) = eax; /* 0x300106A9: mov dword ptr [ebp - 0x34], eax */ 3368 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x300106AC: mov byte ptr [eax + 0x15], 1 */ 3369 edx = MEM32(ebp + (-0x34)); /* 0x300106B0: mov edx, dword ptr [ebp - 0x34] */ 3370 PUSH32(esp, 0x18u); /* 0x300106B3: push 0x18 */ 3371 MEM32(edx) = esi; /* 0x300106B5: mov dword ptr [edx], esi */ 3372 eax = MEM32(ebp + (-0x34)); /* 0x300106B7: mov eax, dword ptr [ebp - 0x34] */ 3373 MEM32(eax + 0x8) = esi; /* 0x300106BA: mov dword ptr [eax + 8], esi */ 3374 esi = MEM32(ebp + (-0x34)); /* 0x300106BD: mov esi, dword ptr [ebp - 0x34] */ 3375 RECOMP_ICALL(0x300180A8u); /* 0x300106C0: call 0x300180a8 */ /* not lifted */ 3376 RECOMP_FLAGS_IN(); 3377 MEM32(eax + 0x4) = esi; /* 0x300106C5: mov dword ptr [eax + 4], esi */ 3378 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x300106C8: mov byte ptr [eax + 0x14], 0 */ 3379 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106CC: mov byte ptr [eax + 0x15], 0 */ 3380 MEM32(ebp + (-0x38)) = eax; /* 0x300106D0: mov dword ptr [ebp - 0x38], eax */ 3381 MEM32(eax) = eax; /* 0x300106D3: mov dword ptr [eax], eax */ 3382 eax = MEM32(ebp + (-0x38)); /* 0x300106D5: mov eax, dword ptr [ebp - 0x38] */ 3383 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3384 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3385 esp = esp + 8; /* 0x300106D8: add esp, 8 */ 3386 _flag_k = FK_ADD; 3387 MEM32(eax + 0x8) = eax; /* 0x300106DB: mov dword ptr [eax + 8], eax */ 3388 MEM32(ebp + (-0x2C)) = 0; /* 0x300106DE: mov dword ptr [ebp - 0x2c], 0 */ 3389 edx = MEM32(ebx + 0x8); /* 0x300106E5: mov edx, dword ptr [ebx + 8] */ 3390 ecx = ebp + (-0x3C); /* 0x300106E8: lea ecx, [ebp - 0x3c] */ 3391 PUSH32(esp, ecx); /* 0x300106EB: push ecx */ 3392 PUSH32(esp, edx); /* 0x300106EC: push edx */ 3393 PUSH32(esp, edi); /* 0x300106ED: push edi */ 3394 ecx = ebx; /* 0x300106EE: mov ecx, ebx */ 3395 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x300106F0: mov byte ptr [ebp - 4], 1 */ 3396 RECOMP_ICALL(0x300109A0u); /* 0x300106F4: call 0x300109a0 */ /* not lifted */ 3397 RECOMP_FLAGS_IN(); 3398 ecx = MEM32(ebx + 0x8); /* 0x300106F9: mov ecx, dword ptr [ebx + 8] */ 3399 eax = ebp + (-0x3C); /* 0x300106FC: lea eax, [ebp - 0x3c] */ 3400 PUSH32(esp, 0); /* 0x300106FF: push 0 */ 3401 PUSH32(esp, eax); /* 0x30010701: push eax */ 3402 PUSH32(esp, ecx); /* 0x30010702: push ecx */ 3403 PUSH32(esp, edi); /* 0x30010703: push edi */ 3404 ecx = ebx; /* 0x30010704: mov ecx, ebx */ 3405 RECOMP_ICALL(0x30010E20u); /* 0x30010706: call 0x30010e20 */ /* not lifted */ 3406 RECOMP_FLAGS_IN(); 3407 edi = MEM32(ebp + (-0x18)); /* 0x3001070B: mov edi, dword ptr [ebp - 0x18] */ 3408 esi = MEM32(edi + 0x4); /* 0x3001070E: mov esi, dword ptr [edi + 4] */ 3409 ecx = MEM32(edi + 0x10); /* 0x30010711: mov ecx, dword ptr [edi + 0x10] */ 3410 /* test ecx, ecx */ /* 0x30010714: test ecx, ecx */ 3411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3412 _cf = 0; 3413 _flag_k = FK_TEST; 3414 eax = MEM32(esi); /* 0x30010716: mov eax, dword ptr [esi] */ 3415 MEM32(ebp + (-0x18)) = eax; /* 0x30010718: mov dword ptr [ebp - 0x18], eax */ 3416 if (TEST_Z(_flag_a, _flag_b)) goto L_3001077A; /* 0x3001071B: je 0x3001077a */ 3417 L_3001071D: 3418 ecx = eax; /* 0x3001071D: mov ecx, eax */ 3419 /* cmp eax, ecx */ /* 0x3001071F: cmp eax, ecx */ 3420 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3422 _flag_k = FK_CMP; 3423 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010721: jne 0x3001077a */ 3424 L_30010723: 3425 /* cmp esi, esi */ /* 0x30010723: cmp esi, esi */ 3426 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3428 _flag_k = FK_CMP; 3429 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010725: jne 0x3001077a */ 3430 L_30010727: 3431 esi = MEM32(esi + 0x4); /* 0x30010727: mov esi, dword ptr [esi + 4] */ 3432 eax = MEM32(edi + 0x8); /* 0x3001072A: mov eax, dword ptr [edi + 8] */ 3433 /* cmp esi, eax */ /* 0x3001072D: cmp esi, eax */ 3434 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3436 _flag_k = FK_CMP; 3437 ebx = esi; /* 0x3001072F: mov ebx, esi */ 3438 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010752; /* 0x30010731: je 0x30010752 */ 3439 L_30010733: 3440 edx = MEM32(ebx + 0x8); /* 0x30010733: mov edx, dword ptr [ebx + 8] */ 3441 ecx = edi; /* 0x30010736: mov ecx, edi */ 3442 PUSH32(esp, edx); /* 0x30010738: push edx */ 3443 RECOMP_ICALL(0x30012380u); /* 0x30010739: call 0x30012380 */ /* not lifted */ 3444 RECOMP_FLAGS_IN(); 3445 ebx = MEM32(ebx); /* 0x3001073E: mov ebx, dword ptr [ebx] */ 3446 PUSH32(esp, esi); /* 0x30010740: push esi */ 3447 RECOMP_ICALL(0x30018080u); /* 0x30010741: call 0x30018080 */ /* not lifted */ 3448 RECOMP_FLAGS_IN(); 3449 eax = MEM32(edi + 0x8); /* 0x30010746: mov eax, dword ptr [edi + 8] */ 3450 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3451 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3452 esp = esp + 4; /* 0x30010749: add esp, 4 */ 3453 _flag_k = FK_ADD; 3454 /* cmp ebx, eax */ /* 0x3001074C: cmp ebx, eax */ 3455 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3457 _flag_k = FK_CMP; 3458 esi = ebx; /* 0x3001074E: mov esi, ebx */ 3459 RECOMP_BACKEDGE(); 3460 if (CMP_NE(_flag_a, _flag_b)) goto L_30010733; /* 0x30010750: jne 0x30010733 */ 3461 L_30010752: 3462 eax = MEM32(edi + 0x4); /* 0x30010752: mov eax, dword ptr [edi + 4] */ 3463 ecx = MEM32(edi + 0x8); /* 0x30010755: mov ecx, dword ptr [edi + 8] */ 3464 edx = ebp + (-0x60); /* 0x30010758: lea edx, [ebp - 0x60] */ 3465 MEM32(eax + 0x4) = ecx; /* 0x3001075B: mov dword ptr [eax + 4], ecx */ 3466 eax = MEM32(edi + 0x4); /* 0x3001075E: mov eax, dword ptr [edi + 4] */ 3467 MEM32(edi + 0x10) = 0; /* 0x30010761: mov dword ptr [edi + 0x10], 0 */ 3468 PUSH32(esp, edx); /* 0x30010768: push edx */ 3469 MEM32(eax) = eax; /* 0x30010769: mov dword ptr [eax], eax */ 3470 eax = MEM32(edi + 0x4); /* 0x3001076B: mov eax, dword ptr [edi + 4] */ 3471 ecx = edi; /* 0x3001076E: mov ecx, edi */ 3472 MEM32(eax + 0x8) = eax; /* 0x30010770: mov dword ptr [eax + 8], eax */ 3473 RECOMP_ICALL(0x30011670u); /* 0x30010773: call 0x30011670 */ /* not lifted */ 3474 RECOMP_FLAGS_IN(); 3475 goto L_3001079B; /* 0x30010778: jmp 0x3001079b */ 3476 L_3001077A: 3477 /* cmp eax, esi */ /* 0x3001077A: cmp eax, esi */ 3478 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3480 _flag_k = FK_CMP; 3481 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001079B; /* 0x3001077C: je 0x3001079b */ 3482 L_3001077E: 3483 ecx = ebp + (-0x18); /* 0x3001077E: lea ecx, [ebp - 0x18] */ 3484 ebx = eax; /* 0x30010781: mov ebx, eax */ 3485 RECOMP_ICALL(0x30011CD0u); /* 0x30010783: call 0x30011cd0 */ /* not lifted */ 3486 RECOMP_FLAGS_IN(); 3487 eax = ebp + (-0x60); /* 0x30010788: lea eax, [ebp - 0x60] */ 3488 PUSH32(esp, ebx); /* 0x3001078B: push ebx */ 3489 PUSH32(esp, eax); /* 0x3001078C: push eax */ 3490 ecx = edi; /* 0x3001078D: mov ecx, edi */ 3491 RECOMP_ICALL(0x30011FC0u); /* 0x3001078F: call 0x30011fc0 */ /* not lifted */ 3492 RECOMP_FLAGS_IN(); 3493 eax = MEM32(ebp + (-0x18)); /* 0x30010794: mov eax, dword ptr [ebp - 0x18] */ 3494 /* cmp eax, esi */ /* 0x30010797: cmp eax, esi */ 3495 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3497 _flag_k = FK_CMP; 3498 RECOMP_BACKEDGE(); 3499 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077E; /* 0x30010799: jne 0x3001077e */ 3500 L_3001079B: 3501 eax = MEM32(ebp + (-0x38)); /* 0x3001079B: mov eax, dword ptr [ebp - 0x38] */ 3502 edx = MEM32(ebp + (-0x2C)); /* 0x3001079E: mov edx, dword ptr [ebp - 0x2c] */ 3503 /* test edx, edx */ /* 0x300107A1: test edx, edx */ 3504 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3505 _cf = 0; 3506 _flag_k = FK_TEST; 3507 ecx = MEM32(eax); /* 0x300107A3: mov ecx, dword ptr [eax] */ 3508 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x300107A5: mov byte ptr [ebp - 4], 0 */ 3509 esi = eax; /* 0x300107A9: mov esi, eax */ 3510 MEM32(ebp + (-0x18)) = ecx; /* 0x300107AB: mov dword ptr [ebp - 0x18], ecx */ 3511 if (TEST_Z(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107AE: je 0x300107eb */ 3512 L_300107B0: 3513 edx = ecx; /* 0x300107B0: mov edx, ecx */ 3514 /* cmp ecx, edx */ /* 0x300107B2: cmp ecx, edx */ 3515 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3517 _flag_k = FK_CMP; 3518 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107B4: jne 0x300107eb */ 3519 L_300107B6: 3520 ecx = MEM32(eax + 0x4); /* 0x300107B6: mov ecx, dword ptr [eax + 4] */ 3521 PUSH32(esp, ecx); /* 0x300107B9: push ecx */ 3522 ecx = ebp + (-0x3C); /* 0x300107BA: lea ecx, [ebp - 0x3c] */ 3523 RECOMP_ICALL(0x30012A30u); /* 0x300107BD: call 0x30012a30 */ /* not lifted */ 3524 RECOMP_FLAGS_IN(); 3525 edx = MEM32(ebp + (-0x38)); /* 0x300107C2: mov edx, dword ptr [ebp - 0x38] */ 3526 eax = MEM32(ebp + (-0x34)); /* 0x300107C5: mov eax, dword ptr [ebp - 0x34] */ 3527 ecx = ebp + (-0x60); /* 0x300107C8: lea ecx, [ebp - 0x60] */ 3528 MEM32(edx + 0x4) = eax; /* 0x300107CB: mov dword ptr [edx + 4], eax */ 3529 eax = MEM32(ebp + (-0x38)); /* 0x300107CE: mov eax, dword ptr [ebp - 0x38] */ 3530 MEM32(ebp + (-0x2C)) = 0; /* 0x300107D1: mov dword ptr [ebp - 0x2c], 0 */ 3531 PUSH32(esp, ecx); /* 0x300107D8: push ecx */ 3532 MEM32(eax) = eax; /* 0x300107D9: mov dword ptr [eax], eax */ 3533 eax = MEM32(ebp + (-0x38)); /* 0x300107DB: mov eax, dword ptr [ebp - 0x38] */ 3534 ecx = ebp + (-0x3C); /* 0x300107DE: lea ecx, [ebp - 0x3c] */ 3535 MEM32(eax + 0x8) = eax; /* 0x300107E1: mov dword ptr [eax + 8], eax */ 3536 RECOMP_ICALL(0x30011670u); /* 0x300107E4: call 0x30011670 */ /* not lifted */ 3537 RECOMP_FLAGS_IN(); 3538 goto L_30010811; /* 0x300107E9: jmp 0x30010811 */ 3539 L_300107EB: 3540 /* cmp ecx, eax */ /* 0x300107EB: cmp ecx, eax */ 3541 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3543 _flag_k = FK_CMP; 3544 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010814; /* 0x300107ED: je 0x30010814 */ 3545 L_300107EF: 3546 edx = ebp + (-0x60); /* 0x300107EF: lea edx, [ebp - 0x60] */ 3547 PUSH32(esp, 0); /* 0x300107F2: push 0 */ 3548 PUSH32(esp, edx); /* 0x300107F4: push edx */ 3549 ecx = ebp + (-0x18); /* 0x300107F5: lea ecx, [ebp - 0x18] */ 3550 RECOMP_ICALL(0x30012AD0u); /* 0x300107F8: call 0x30012ad0 */ /* not lifted */ 3551 RECOMP_FLAGS_IN(); 3552 eax = MEM32(eax); /* 0x300107FD: mov eax, dword ptr [eax] */ 3553 ecx = ebp + (-0x14); /* 0x300107FF: lea ecx, [ebp - 0x14] */ 3554 PUSH32(esp, eax); /* 0x30010802: push eax */ 3555 PUSH32(esp, ecx); /* 0x30010803: push ecx */ 3556 ecx = ebp + (-0x3C); /* 0x30010804: lea ecx, [ebp - 0x3c] */ 3557 RECOMP_ICALL(0x30012670u); /* 0x30010807: call 0x30012670 */ /* not lifted */ 3558 RECOMP_FLAGS_IN(); 3559 /* cmp MEM32(ebp + (-0x18)), esi */ /* 0x3001080C: cmp dword ptr [ebp - 0x18], esi */ 3560 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(esi); 3561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3562 _flag_k = FK_CMP; 3563 RECOMP_BACKEDGE(); 3564 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EF; /* 0x3001080F: jne 0x300107ef */ 3565 L_30010811: 3566 eax = MEM32(ebp + (-0x38)); /* 0x30010811: mov eax, dword ptr [ebp - 0x38] */ 3567 L_30010814: 3568 PUSH32(esp, eax); /* 0x30010814: push eax */ 3569 RECOMP_ICALL(0x30018080u); /* 0x30010815: call 0x30018080 */ /* not lifted */ 3570 RECOMP_FLAGS_IN(); 3571 edx = MEM32(ebp + (-0x34)); /* 0x3001081A: mov edx, dword ptr [ebp - 0x34] */ 3572 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3573 ebx = 0; /* 0x3001081D: xor ebx, ebx */ 3574 _cf = 0; 3575 _flag_k = FK_TEST; 3576 PUSH32(esp, edx); /* 0x3001081F: push edx */ 3577 MEM32(ebp + (-0x38)) = ebx; /* 0x30010820: mov dword ptr [ebp - 0x38], ebx */ 3578 MEM32(ebp + (-0x2C)) = ebx; /* 0x30010823: mov dword ptr [ebp - 0x2c], ebx */ 3579 RECOMP_ICALL(0x30018080u); /* 0x30010826: call 0x30018080 */ /* not lifted */ 3580 RECOMP_FLAGS_IN(); 3581 esi = MEM32(ebp + (-0x4C)); /* 0x3001082B: mov esi, dword ptr [ebp - 0x4c] */ 3582 ecx = MEM32(ebp + (-0x40)); /* 0x3001082E: mov ecx, dword ptr [ebp - 0x40] */ 3583 MEM32(ebp + (-0x34)) = ebx; /* 0x30010831: mov dword ptr [ebp - 0x34], ebx */ 3584 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3585 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3586 esp = esp + 8; /* 0x30010834: add esp, 8 */ 3587 _flag_k = FK_ADD; 3588 eax = MEM32(esi); /* 0x30010837: mov eax, dword ptr [esi] */ 3589 /* cmp ecx, ebx */ /* 0x30010839: cmp ecx, ebx */ 3590 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3592 _flag_k = FK_CMP; 3593 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3001083B: mov dword ptr [ebp - 4], 0xffffffff */ 3594 MEM32(ebp + (-0x14)) = eax; /* 0x30010842: mov dword ptr [ebp - 0x14], eax */ 3595 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010882; /* 0x30010845: je 0x30010882 */ 3596 L_30010847: 3597 ecx = eax; /* 0x30010847: mov ecx, eax */ 3598 /* cmp eax, ecx */ /* 0x30010849: cmp eax, ecx */ 3599 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3600 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3601 _flag_k = FK_CMP; 3602 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084B: jne 0x30010882 */ 3603 L_3001084D: 3604 /* cmp esi, esi */ /* 0x3001084D: cmp esi, esi */ 3605 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3607 _flag_k = FK_CMP; 3608 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084F: jne 0x30010882 */ 3609 L_30010851: 3610 eax = MEM32(esi + 0x4); /* 0x30010851: mov eax, dword ptr [esi + 4] */ 3611 ecx = ebp + (-0x50); /* 0x30010854: lea ecx, [ebp - 0x50] */ 3612 PUSH32(esp, eax); /* 0x30010857: push eax */ 3613 RECOMP_ICALL(0x30012B30u); /* 0x30010858: call 0x30012b30 */ /* not lifted */ 3614 RECOMP_FLAGS_IN(); 3615 ecx = MEM32(ebp + (-0x4C)); /* 0x3001085D: mov ecx, dword ptr [ebp - 0x4c] */ 3616 edx = MEM32(ebp + (-0x48)); /* 0x30010860: mov edx, dword ptr [ebp - 0x48] */ 3617 MEM32(ecx + 0x4) = edx; /* 0x30010863: mov dword ptr [ecx + 4], edx */ 3618 eax = MEM32(ebp + (-0x4C)); /* 0x30010866: mov eax, dword ptr [ebp - 0x4c] */ 3619 MEM32(ebp + (-0x40)) = ebx; /* 0x30010869: mov dword ptr [ebp - 0x40], ebx */ 3620 ecx = ebp + (-0x50); /* 0x3001086C: lea ecx, [ebp - 0x50] */ 3621 MEM32(eax) = eax; /* 0x3001086F: mov dword ptr [eax], eax */ 3622 eax = MEM32(ebp + (-0x4C)); /* 0x30010871: mov eax, dword ptr [ebp - 0x4c] */ 3623 MEM32(eax + 0x8) = eax; /* 0x30010874: mov dword ptr [eax + 8], eax */ 3624 eax = ebp + (-0x60); /* 0x30010877: lea eax, [ebp - 0x60] */ 3625 PUSH32(esp, eax); /* 0x3001087A: push eax */ 3626 RECOMP_ICALL(0x30011670u); /* 0x3001087B: call 0x30011670 */ /* not lifted */ 3627 RECOMP_FLAGS_IN(); 3628 goto L_300108A4; /* 0x30010880: jmp 0x300108a4 */ 3629 L_30010882: 3630 /* cmp eax, esi */ /* 0x30010882: cmp eax, esi */ 3631 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3633 _flag_k = FK_CMP; 3634 if (CMP_EQ(_flag_a, _flag_b)) goto L_300108A4; /* 0x30010884: je 0x300108a4 */ 3635 L_30010886: 3636 ecx = ebp + (-0x14); /* 0x30010886: lea ecx, [ebp - 0x14] */ 3637 edi = eax; /* 0x30010889: mov edi, eax */ 3638 RECOMP_ICALL(0x30011CD0u); /* 0x3001088B: call 0x30011cd0 */ /* not lifted */ 3639 RECOMP_FLAGS_IN(); 3640 ecx = ebp + 0x8; /* 0x30010890: lea ecx, [ebp + 8] */ 3641 PUSH32(esp, edi); /* 0x30010893: push edi */ 3642 PUSH32(esp, ecx); /* 0x30010894: push ecx */ 3643 ecx = ebp + (-0x50); /* 0x30010895: lea ecx, [ebp - 0x50] */ 3644 RECOMP_ICALL(0x30011FC0u); /* 0x30010898: call 0x30011fc0 */ /* not lifted */ 3645 RECOMP_FLAGS_IN(); 3646 eax = MEM32(ebp + (-0x14)); /* 0x3001089D: mov eax, dword ptr [ebp - 0x14] */ 3647 /* cmp eax, esi */ /* 0x300108A0: cmp eax, esi */ 3648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3650 _flag_k = FK_CMP; 3651 RECOMP_BACKEDGE(); 3652 if (CMP_NE(_flag_a, _flag_b)) goto L_30010886; /* 0x300108A2: jne 0x30010886 */ 3653 L_300108A4: 3654 edx = MEM32(ebp + (-0x4C)); /* 0x300108A4: mov edx, dword ptr [ebp - 0x4c] */ 3655 PUSH32(esp, edx); /* 0x300108A7: push edx */ 3656 RECOMP_ICALL(0x30018080u); /* 0x300108A8: call 0x30018080 */ /* not lifted */ 3657 RECOMP_FLAGS_IN(); 3658 eax = MEM32(ebp + (-0x48)); /* 0x300108AD: mov eax, dword ptr [ebp - 0x48] */ 3659 MEM32(ebp + (-0x4C)) = ebx; /* 0x300108B0: mov dword ptr [ebp - 0x4c], ebx */ 3660 PUSH32(esp, eax); /* 0x300108B3: push eax */ 3661 MEM32(ebp + (-0x40)) = ebx; /* 0x300108B4: mov dword ptr [ebp - 0x40], ebx */ 3662 RECOMP_ICALL(0x30018080u); /* 0x300108B7: call 0x30018080 */ /* not lifted */ 3663 RECOMP_FLAGS_IN(); 3664 ecx = MEM32(ebp + (-0xC)); /* 0x300108BC: mov ecx, dword ptr [ebp - 0xc] */ 3665 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3666 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3667 esp = esp + 8; /* 0x300108BF: add esp, 8 */ 3668 _flag_k = FK_ADD; 3669 MEM32(FS_BASE + (0)) = ecx; /* 0x300108C2: mov dword ptr fs:[0], ecx */ 3670 edi = POP32_VAL(esp); /* 0x300108C9: pop edi */ 3671 esi = POP32_VAL(esp); /* 0x300108CA: pop esi */ 3672 ebx = POP32_VAL(esp); /* 0x300108CB: pop ebx */ 3673 esp = ebp; /* 0x300108CC: mov esp, ebp */ 3674 ebp = POP32_VAL(esp); /* 0x300108CE: pop ebp */ 3675 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300108CF: ret 4 */ 3676 RECOMP_REGS_OUT(); 3677 } 3678 3679 void sub_30010524(void) { 3680 int _fpu_cmp = 0; 3681 uint32_t _cf = 0; 3682 int _df = 1; 3683 uint32_t _flag_k = FK_NONE; 3684 uint32_t _flag_a = 0, _flag_b = 0; 3685 uint32_t _itail_tgt = 0; 3686 RECOMP_REGS_LOCALS 3687 RECOMP_ENTER(0x30010524u); 3688 3689 L_30010524: 3690 /* cmp ecx, eax */ /* 0x30010524: cmp ecx, eax */ 3691 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3693 _flag_k = FK_CMP; 3694 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001054E; /* 0x30010526: je 0x3001054e */ 3695 L_30010528: 3696 fp_push(*(float*)&MEM32(ecx + 0x10)); /* 0x30010528: fld dword ptr [ecx + 0x10] */ 3697 _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3001052B: fsub dword ptr [ebp - 0x1c] */ 3698 _st[0] *= (double)*(float*)ADDR(0x300192A4); /* 0x3001052E: fmul dword ptr [0x300192a4] */ 3699 RECOMP_ICALL(0x300181F8u); /* 0x30010534: call 0x300181f8 */ /* not lifted */ 3700 RECOMP_FLAGS_IN(); 3701 PUSH32(esp, eax); /* 0x30010539: push eax */ 3702 ecx = edi; /* 0x3001053A: mov ecx, edi */ 3703 RECOMP_ICALL(esi); /* 0x3001053C: call esi */ 3704 RECOMP_FLAGS_IN(); 3705 ecx = ebp + (-0x10); /* 0x3001053E: lea ecx, [ebp - 0x10] */ 3706 RECOMP_ICALL(0x30011CD0u); /* 0x30010541: call 0x30011cd0 */ /* not lifted */ 3707 RECOMP_FLAGS_IN(); 3708 eax = MEM32(ebp + (-0x4C)); /* 0x30010546: mov eax, dword ptr [ebp - 0x4c] */ 3709 ecx = MEM32(ebp + (-0x10)); /* 0x30010549: mov ecx, dword ptr [ebp - 0x10] */ 3710 RECOMP_BACKEDGE(); 3711 goto L_30010524; /* 0x3001054C: jmp 0x30010524 */ 3712 L_3001054E: 3713 ecx = MEM32(eax); /* 0x3001054E: mov ecx, dword ptr [eax] */ 3714 MEM32(ebp + (-0x10)) = ecx; /* 0x30010550: mov dword ptr [ebp - 0x10], ecx */ 3715 L_30010553: 3716 /* cmp ecx, eax */ /* 0x30010553: cmp ecx, eax */ 3717 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3719 _flag_k = FK_CMP; 3720 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001057D; /* 0x30010555: je 0x3001057d */ 3721 L_30010557: 3722 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x30010557: fld dword ptr [ecx + 0x14] */ 3723 _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3001055A: fsub dword ptr [ebp - 0x28] */ 3724 _st[0] *= (double)*(float*)ADDR(0x300192A4); /* 0x3001055D: fmul dword ptr [0x300192a4] */ 3725 RECOMP_ICALL(0x300181F8u); /* 0x30010563: call 0x300181f8 */ /* not lifted */ 3726 RECOMP_FLAGS_IN(); 3727 PUSH32(esp, eax); /* 0x30010568: push eax */ 3728 ecx = edi; /* 0x30010569: mov ecx, edi */ 3729 RECOMP_ICALL(esi); /* 0x3001056B: call esi */ 3730 RECOMP_FLAGS_IN(); 3731 ecx = ebp + (-0x10); /* 0x3001056D: lea ecx, [ebp - 0x10] */ 3732 RECOMP_ICALL(0x30011CD0u); /* 0x30010570: call 0x30011cd0 */ /* not lifted */ 3733 RECOMP_FLAGS_IN(); 3734 eax = MEM32(ebp + (-0x4C)); /* 0x30010575: mov eax, dword ptr [ebp - 0x4c] */ 3735 ecx = MEM32(ebp + (-0x10)); /* 0x30010578: mov ecx, dword ptr [ebp - 0x10] */ 3736 RECOMP_BACKEDGE(); 3737 goto L_30010553; /* 0x3001057B: jmp 0x30010553 */ 3738 L_3001057D: 3739 ecx = MEM32(eax); /* 0x3001057D: mov ecx, dword ptr [eax] */ 3740 MEM32(ebp + (-0x10)) = ecx; /* 0x3001057F: mov dword ptr [ebp - 0x10], ecx */ 3741 L_30010582: 3742 /* cmp ecx, eax */ /* 0x30010582: cmp ecx, eax */ 3743 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3745 _flag_k = FK_CMP; 3746 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010682; /* 0x30010584: je 0x30010682 */ 3747 L_3001058A: 3748 fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x3001058A: fld dword ptr [ecx + 0x18] */ 3749 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3001058D: fsub dword ptr [ebp - 0x24] */ 3750 _st[0] *= (double)*(float*)ADDR(0x300192A4); /* 0x30010590: fmul dword ptr [0x300192a4] */ 3751 RECOMP_ICALL(0x300181F8u); /* 0x30010596: call 0x300181f8 */ /* not lifted */ 3752 RECOMP_FLAGS_IN(); 3753 PUSH32(esp, eax); /* 0x3001059B: push eax */ 3754 ecx = edi; /* 0x3001059C: mov ecx, edi */ 3755 RECOMP_ICALL(esi); /* 0x3001059E: call esi */ 3756 RECOMP_FLAGS_IN(); 3757 ecx = ebp + (-0x10); /* 0x300105A0: lea ecx, [ebp - 0x10] */ 3758 RECOMP_ICALL(0x30011CD0u); /* 0x300105A3: call 0x30011cd0 */ /* not lifted */ 3759 RECOMP_FLAGS_IN(); 3760 eax = MEM32(ebp + (-0x4C)); /* 0x300105A8: mov eax, dword ptr [ebp - 0x4c] */ 3761 ecx = MEM32(ebp + (-0x10)); /* 0x300105AB: mov ecx, dword ptr [ebp - 0x10] */ 3762 RECOMP_BACKEDGE(); 3763 goto L_30010582; /* 0x300105AE: jmp 0x30010582 */ 3764 L_30010682: 3765 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x30010682: mov al, byte ptr [ebp + 0xb] */ 3766 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x30010685: mov cl, byte ptr [ebp + 0xb] */ 3767 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3768 esi = 0; /* 0x30010688: xor esi, esi */ 3769 _cf = 0; 3770 _flag_k = FK_TEST; 3771 PUSH32(esp, 0x18u); /* 0x3001068A: push 0x18 */ 3772 MEM32(ebx + 0x20) = esi; /* 0x3001068C: mov dword ptr [ebx + 0x20], esi */ 3773 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x3001068F: mov byte ptr [ebp - 0x3c], al */ 3774 MEM8(ebp + (-0x3B)) = (uint8_t)(LO8(ecx)); /* 0x30010692: mov byte ptr [ebp - 0x3b], cl */ 3775 MEM8(ebp + (-0x30)) = (uint8_t)(0); /* 0x30010695: mov byte ptr [ebp - 0x30], 0 */ 3776 RECOMP_ICALL(0x300180A8u); /* 0x30010699: call 0x300180a8 */ /* not lifted */ 3777 RECOMP_FLAGS_IN(); 3778 MEM32(eax + 0x4) = esi; /* 0x3001069E: mov dword ptr [eax + 4], esi */ 3779 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x300106A1: mov byte ptr [eax + 0x14], 1 */ 3780 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106A5: mov byte ptr [eax + 0x15], 0 */ 3781 MEM32(ebp + (-0x34)) = eax; /* 0x300106A9: mov dword ptr [ebp - 0x34], eax */ 3782 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x300106AC: mov byte ptr [eax + 0x15], 1 */ 3783 edx = MEM32(ebp + (-0x34)); /* 0x300106B0: mov edx, dword ptr [ebp - 0x34] */ 3784 PUSH32(esp, 0x18u); /* 0x300106B3: push 0x18 */ 3785 MEM32(edx) = esi; /* 0x300106B5: mov dword ptr [edx], esi */ 3786 eax = MEM32(ebp + (-0x34)); /* 0x300106B7: mov eax, dword ptr [ebp - 0x34] */ 3787 MEM32(eax + 0x8) = esi; /* 0x300106BA: mov dword ptr [eax + 8], esi */ 3788 esi = MEM32(ebp + (-0x34)); /* 0x300106BD: mov esi, dword ptr [ebp - 0x34] */ 3789 RECOMP_ICALL(0x300180A8u); /* 0x300106C0: call 0x300180a8 */ /* not lifted */ 3790 RECOMP_FLAGS_IN(); 3791 MEM32(eax + 0x4) = esi; /* 0x300106C5: mov dword ptr [eax + 4], esi */ 3792 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x300106C8: mov byte ptr [eax + 0x14], 0 */ 3793 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106CC: mov byte ptr [eax + 0x15], 0 */ 3794 MEM32(ebp + (-0x38)) = eax; /* 0x300106D0: mov dword ptr [ebp - 0x38], eax */ 3795 MEM32(eax) = eax; /* 0x300106D3: mov dword ptr [eax], eax */ 3796 eax = MEM32(ebp + (-0x38)); /* 0x300106D5: mov eax, dword ptr [ebp - 0x38] */ 3797 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3799 esp = esp + 8; /* 0x300106D8: add esp, 8 */ 3800 _flag_k = FK_ADD; 3801 MEM32(eax + 0x8) = eax; /* 0x300106DB: mov dword ptr [eax + 8], eax */ 3802 MEM32(ebp + (-0x2C)) = 0; /* 0x300106DE: mov dword ptr [ebp - 0x2c], 0 */ 3803 edx = MEM32(ebx + 0x8); /* 0x300106E5: mov edx, dword ptr [ebx + 8] */ 3804 ecx = ebp + (-0x3C); /* 0x300106E8: lea ecx, [ebp - 0x3c] */ 3805 PUSH32(esp, ecx); /* 0x300106EB: push ecx */ 3806 PUSH32(esp, edx); /* 0x300106EC: push edx */ 3807 PUSH32(esp, edi); /* 0x300106ED: push edi */ 3808 ecx = ebx; /* 0x300106EE: mov ecx, ebx */ 3809 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x300106F0: mov byte ptr [ebp - 4], 1 */ 3810 RECOMP_ICALL(0x300109A0u); /* 0x300106F4: call 0x300109a0 */ /* not lifted */ 3811 RECOMP_FLAGS_IN(); 3812 ecx = MEM32(ebx + 0x8); /* 0x300106F9: mov ecx, dword ptr [ebx + 8] */ 3813 eax = ebp + (-0x3C); /* 0x300106FC: lea eax, [ebp - 0x3c] */ 3814 PUSH32(esp, 0); /* 0x300106FF: push 0 */ 3815 PUSH32(esp, eax); /* 0x30010701: push eax */ 3816 PUSH32(esp, ecx); /* 0x30010702: push ecx */ 3817 PUSH32(esp, edi); /* 0x30010703: push edi */ 3818 ecx = ebx; /* 0x30010704: mov ecx, ebx */ 3819 RECOMP_ICALL(0x30010E20u); /* 0x30010706: call 0x30010e20 */ /* not lifted */ 3820 RECOMP_FLAGS_IN(); 3821 edi = MEM32(ebp + (-0x18)); /* 0x3001070B: mov edi, dword ptr [ebp - 0x18] */ 3822 esi = MEM32(edi + 0x4); /* 0x3001070E: mov esi, dword ptr [edi + 4] */ 3823 ecx = MEM32(edi + 0x10); /* 0x30010711: mov ecx, dword ptr [edi + 0x10] */ 3824 /* test ecx, ecx */ /* 0x30010714: test ecx, ecx */ 3825 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3826 _cf = 0; 3827 _flag_k = FK_TEST; 3828 eax = MEM32(esi); /* 0x30010716: mov eax, dword ptr [esi] */ 3829 MEM32(ebp + (-0x18)) = eax; /* 0x30010718: mov dword ptr [ebp - 0x18], eax */ 3830 if (TEST_Z(_flag_a, _flag_b)) goto L_3001077A; /* 0x3001071B: je 0x3001077a */ 3831 L_3001071D: 3832 ecx = eax; /* 0x3001071D: mov ecx, eax */ 3833 /* cmp eax, ecx */ /* 0x3001071F: cmp eax, ecx */ 3834 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3836 _flag_k = FK_CMP; 3837 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010721: jne 0x3001077a */ 3838 L_30010723: 3839 /* cmp esi, esi */ /* 0x30010723: cmp esi, esi */ 3840 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3842 _flag_k = FK_CMP; 3843 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010725: jne 0x3001077a */ 3844 L_30010727: 3845 esi = MEM32(esi + 0x4); /* 0x30010727: mov esi, dword ptr [esi + 4] */ 3846 eax = MEM32(edi + 0x8); /* 0x3001072A: mov eax, dword ptr [edi + 8] */ 3847 /* cmp esi, eax */ /* 0x3001072D: cmp esi, eax */ 3848 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3850 _flag_k = FK_CMP; 3851 ebx = esi; /* 0x3001072F: mov ebx, esi */ 3852 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010752; /* 0x30010731: je 0x30010752 */ 3853 L_30010733: 3854 edx = MEM32(ebx + 0x8); /* 0x30010733: mov edx, dword ptr [ebx + 8] */ 3855 ecx = edi; /* 0x30010736: mov ecx, edi */ 3856 PUSH32(esp, edx); /* 0x30010738: push edx */ 3857 RECOMP_ICALL(0x30012380u); /* 0x30010739: call 0x30012380 */ /* not lifted */ 3858 RECOMP_FLAGS_IN(); 3859 ebx = MEM32(ebx); /* 0x3001073E: mov ebx, dword ptr [ebx] */ 3860 PUSH32(esp, esi); /* 0x30010740: push esi */ 3861 RECOMP_ICALL(0x30018080u); /* 0x30010741: call 0x30018080 */ /* not lifted */ 3862 RECOMP_FLAGS_IN(); 3863 eax = MEM32(edi + 0x8); /* 0x30010746: mov eax, dword ptr [edi + 8] */ 3864 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3865 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3866 esp = esp + 4; /* 0x30010749: add esp, 4 */ 3867 _flag_k = FK_ADD; 3868 /* cmp ebx, eax */ /* 0x3001074C: cmp ebx, eax */ 3869 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3871 _flag_k = FK_CMP; 3872 esi = ebx; /* 0x3001074E: mov esi, ebx */ 3873 RECOMP_BACKEDGE(); 3874 if (CMP_NE(_flag_a, _flag_b)) goto L_30010733; /* 0x30010750: jne 0x30010733 */ 3875 L_30010752: 3876 eax = MEM32(edi + 0x4); /* 0x30010752: mov eax, dword ptr [edi + 4] */ 3877 ecx = MEM32(edi + 0x8); /* 0x30010755: mov ecx, dword ptr [edi + 8] */ 3878 edx = ebp + (-0x60); /* 0x30010758: lea edx, [ebp - 0x60] */ 3879 MEM32(eax + 0x4) = ecx; /* 0x3001075B: mov dword ptr [eax + 4], ecx */ 3880 eax = MEM32(edi + 0x4); /* 0x3001075E: mov eax, dword ptr [edi + 4] */ 3881 MEM32(edi + 0x10) = 0; /* 0x30010761: mov dword ptr [edi + 0x10], 0 */ 3882 PUSH32(esp, edx); /* 0x30010768: push edx */ 3883 MEM32(eax) = eax; /* 0x30010769: mov dword ptr [eax], eax */ 3884 eax = MEM32(edi + 0x4); /* 0x3001076B: mov eax, dword ptr [edi + 4] */ 3885 ecx = edi; /* 0x3001076E: mov ecx, edi */ 3886 MEM32(eax + 0x8) = eax; /* 0x30010770: mov dword ptr [eax + 8], eax */ 3887 RECOMP_ICALL(0x30011670u); /* 0x30010773: call 0x30011670 */ /* not lifted */ 3888 RECOMP_FLAGS_IN(); 3889 goto L_3001079B; /* 0x30010778: jmp 0x3001079b */ 3890 L_3001077A: 3891 /* cmp eax, esi */ /* 0x3001077A: cmp eax, esi */ 3892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3894 _flag_k = FK_CMP; 3895 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001079B; /* 0x3001077C: je 0x3001079b */ 3896 L_3001077E: 3897 ecx = ebp + (-0x18); /* 0x3001077E: lea ecx, [ebp - 0x18] */ 3898 ebx = eax; /* 0x30010781: mov ebx, eax */ 3899 RECOMP_ICALL(0x30011CD0u); /* 0x30010783: call 0x30011cd0 */ /* not lifted */ 3900 RECOMP_FLAGS_IN(); 3901 eax = ebp + (-0x60); /* 0x30010788: lea eax, [ebp - 0x60] */ 3902 PUSH32(esp, ebx); /* 0x3001078B: push ebx */ 3903 PUSH32(esp, eax); /* 0x3001078C: push eax */ 3904 ecx = edi; /* 0x3001078D: mov ecx, edi */ 3905 RECOMP_ICALL(0x30011FC0u); /* 0x3001078F: call 0x30011fc0 */ /* not lifted */ 3906 RECOMP_FLAGS_IN(); 3907 eax = MEM32(ebp + (-0x18)); /* 0x30010794: mov eax, dword ptr [ebp - 0x18] */ 3908 /* cmp eax, esi */ /* 0x30010797: cmp eax, esi */ 3909 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3911 _flag_k = FK_CMP; 3912 RECOMP_BACKEDGE(); 3913 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077E; /* 0x30010799: jne 0x3001077e */ 3914 L_3001079B: 3915 eax = MEM32(ebp + (-0x38)); /* 0x3001079B: mov eax, dword ptr [ebp - 0x38] */ 3916 edx = MEM32(ebp + (-0x2C)); /* 0x3001079E: mov edx, dword ptr [ebp - 0x2c] */ 3917 /* test edx, edx */ /* 0x300107A1: test edx, edx */ 3918 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3919 _cf = 0; 3920 _flag_k = FK_TEST; 3921 ecx = MEM32(eax); /* 0x300107A3: mov ecx, dword ptr [eax] */ 3922 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x300107A5: mov byte ptr [ebp - 4], 0 */ 3923 esi = eax; /* 0x300107A9: mov esi, eax */ 3924 MEM32(ebp + (-0x18)) = ecx; /* 0x300107AB: mov dword ptr [ebp - 0x18], ecx */ 3925 if (TEST_Z(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107AE: je 0x300107eb */ 3926 L_300107B0: 3927 edx = ecx; /* 0x300107B0: mov edx, ecx */ 3928 /* cmp ecx, edx */ /* 0x300107B2: cmp ecx, edx */ 3929 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3931 _flag_k = FK_CMP; 3932 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107B4: jne 0x300107eb */ 3933 L_300107B6: 3934 ecx = MEM32(eax + 0x4); /* 0x300107B6: mov ecx, dword ptr [eax + 4] */ 3935 PUSH32(esp, ecx); /* 0x300107B9: push ecx */ 3936 ecx = ebp + (-0x3C); /* 0x300107BA: lea ecx, [ebp - 0x3c] */ 3937 RECOMP_ICALL(0x30012A30u); /* 0x300107BD: call 0x30012a30 */ /* not lifted */ 3938 RECOMP_FLAGS_IN(); 3939 edx = MEM32(ebp + (-0x38)); /* 0x300107C2: mov edx, dword ptr [ebp - 0x38] */ 3940 eax = MEM32(ebp + (-0x34)); /* 0x300107C5: mov eax, dword ptr [ebp - 0x34] */ 3941 ecx = ebp + (-0x60); /* 0x300107C8: lea ecx, [ebp - 0x60] */ 3942 MEM32(edx + 0x4) = eax; /* 0x300107CB: mov dword ptr [edx + 4], eax */ 3943 eax = MEM32(ebp + (-0x38)); /* 0x300107CE: mov eax, dword ptr [ebp - 0x38] */ 3944 MEM32(ebp + (-0x2C)) = 0; /* 0x300107D1: mov dword ptr [ebp - 0x2c], 0 */ 3945 PUSH32(esp, ecx); /* 0x300107D8: push ecx */ 3946 MEM32(eax) = eax; /* 0x300107D9: mov dword ptr [eax], eax */ 3947 eax = MEM32(ebp + (-0x38)); /* 0x300107DB: mov eax, dword ptr [ebp - 0x38] */ 3948 ecx = ebp + (-0x3C); /* 0x300107DE: lea ecx, [ebp - 0x3c] */ 3949 MEM32(eax + 0x8) = eax; /* 0x300107E1: mov dword ptr [eax + 8], eax */ 3950 RECOMP_ICALL(0x30011670u); /* 0x300107E4: call 0x30011670 */ /* not lifted */ 3951 RECOMP_FLAGS_IN(); 3952 goto L_30010811; /* 0x300107E9: jmp 0x30010811 */ 3953 L_300107EB: 3954 /* cmp ecx, eax */ /* 0x300107EB: cmp ecx, eax */ 3955 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3957 _flag_k = FK_CMP; 3958 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010814; /* 0x300107ED: je 0x30010814 */ 3959 L_300107EF: 3960 edx = ebp + (-0x60); /* 0x300107EF: lea edx, [ebp - 0x60] */ 3961 PUSH32(esp, 0); /* 0x300107F2: push 0 */ 3962 PUSH32(esp, edx); /* 0x300107F4: push edx */ 3963 ecx = ebp + (-0x18); /* 0x300107F5: lea ecx, [ebp - 0x18] */ 3964 RECOMP_ICALL(0x30012AD0u); /* 0x300107F8: call 0x30012ad0 */ /* not lifted */ 3965 RECOMP_FLAGS_IN(); 3966 eax = MEM32(eax); /* 0x300107FD: mov eax, dword ptr [eax] */ 3967 ecx = ebp + (-0x14); /* 0x300107FF: lea ecx, [ebp - 0x14] */ 3968 PUSH32(esp, eax); /* 0x30010802: push eax */ 3969 PUSH32(esp, ecx); /* 0x30010803: push ecx */ 3970 ecx = ebp + (-0x3C); /* 0x30010804: lea ecx, [ebp - 0x3c] */ 3971 RECOMP_ICALL(0x30012670u); /* 0x30010807: call 0x30012670 */ /* not lifted */ 3972 RECOMP_FLAGS_IN(); 3973 /* cmp MEM32(ebp + (-0x18)), esi */ /* 0x3001080C: cmp dword ptr [ebp - 0x18], esi */ 3974 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(esi); 3975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3976 _flag_k = FK_CMP; 3977 RECOMP_BACKEDGE(); 3978 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EF; /* 0x3001080F: jne 0x300107ef */ 3979 L_30010811: 3980 eax = MEM32(ebp + (-0x38)); /* 0x30010811: mov eax, dword ptr [ebp - 0x38] */ 3981 L_30010814: 3982 PUSH32(esp, eax); /* 0x30010814: push eax */ 3983 RECOMP_ICALL(0x30018080u); /* 0x30010815: call 0x30018080 */ /* not lifted */ 3984 RECOMP_FLAGS_IN(); 3985 edx = MEM32(ebp + (-0x34)); /* 0x3001081A: mov edx, dword ptr [ebp - 0x34] */ 3986 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3987 ebx = 0; /* 0x3001081D: xor ebx, ebx */ 3988 _cf = 0; 3989 _flag_k = FK_TEST; 3990 PUSH32(esp, edx); /* 0x3001081F: push edx */ 3991 MEM32(ebp + (-0x38)) = ebx; /* 0x30010820: mov dword ptr [ebp - 0x38], ebx */ 3992 MEM32(ebp + (-0x2C)) = ebx; /* 0x30010823: mov dword ptr [ebp - 0x2c], ebx */ 3993 RECOMP_ICALL(0x30018080u); /* 0x30010826: call 0x30018080 */ /* not lifted */ 3994 RECOMP_FLAGS_IN(); 3995 esi = MEM32(ebp + (-0x4C)); /* 0x3001082B: mov esi, dword ptr [ebp - 0x4c] */ 3996 ecx = MEM32(ebp + (-0x40)); /* 0x3001082E: mov ecx, dword ptr [ebp - 0x40] */ 3997 MEM32(ebp + (-0x34)) = ebx; /* 0x30010831: mov dword ptr [ebp - 0x34], ebx */ 3998 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3999 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4000 esp = esp + 8; /* 0x30010834: add esp, 8 */ 4001 _flag_k = FK_ADD; 4002 eax = MEM32(esi); /* 0x30010837: mov eax, dword ptr [esi] */ 4003 /* cmp ecx, ebx */ /* 0x30010839: cmp ecx, ebx */ 4004 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4006 _flag_k = FK_CMP; 4007 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3001083B: mov dword ptr [ebp - 4], 0xffffffff */ 4008 MEM32(ebp + (-0x14)) = eax; /* 0x30010842: mov dword ptr [ebp - 0x14], eax */ 4009 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010882; /* 0x30010845: je 0x30010882 */ 4010 L_30010847: 4011 ecx = eax; /* 0x30010847: mov ecx, eax */ 4012 /* cmp eax, ecx */ /* 0x30010849: cmp eax, ecx */ 4013 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4015 _flag_k = FK_CMP; 4016 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084B: jne 0x30010882 */ 4017 L_3001084D: 4018 /* cmp esi, esi */ /* 0x3001084D: cmp esi, esi */ 4019 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4021 _flag_k = FK_CMP; 4022 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084F: jne 0x30010882 */ 4023 L_30010851: 4024 eax = MEM32(esi + 0x4); /* 0x30010851: mov eax, dword ptr [esi + 4] */ 4025 ecx = ebp + (-0x50); /* 0x30010854: lea ecx, [ebp - 0x50] */ 4026 PUSH32(esp, eax); /* 0x30010857: push eax */ 4027 RECOMP_ICALL(0x30012B30u); /* 0x30010858: call 0x30012b30 */ /* not lifted */ 4028 RECOMP_FLAGS_IN(); 4029 ecx = MEM32(ebp + (-0x4C)); /* 0x3001085D: mov ecx, dword ptr [ebp - 0x4c] */ 4030 edx = MEM32(ebp + (-0x48)); /* 0x30010860: mov edx, dword ptr [ebp - 0x48] */ 4031 MEM32(ecx + 0x4) = edx; /* 0x30010863: mov dword ptr [ecx + 4], edx */ 4032 eax = MEM32(ebp + (-0x4C)); /* 0x30010866: mov eax, dword ptr [ebp - 0x4c] */ 4033 MEM32(ebp + (-0x40)) = ebx; /* 0x30010869: mov dword ptr [ebp - 0x40], ebx */ 4034 ecx = ebp + (-0x50); /* 0x3001086C: lea ecx, [ebp - 0x50] */ 4035 MEM32(eax) = eax; /* 0x3001086F: mov dword ptr [eax], eax */ 4036 eax = MEM32(ebp + (-0x4C)); /* 0x30010871: mov eax, dword ptr [ebp - 0x4c] */ 4037 MEM32(eax + 0x8) = eax; /* 0x30010874: mov dword ptr [eax + 8], eax */ 4038 eax = ebp + (-0x60); /* 0x30010877: lea eax, [ebp - 0x60] */ 4039 PUSH32(esp, eax); /* 0x3001087A: push eax */ 4040 RECOMP_ICALL(0x30011670u); /* 0x3001087B: call 0x30011670 */ /* not lifted */ 4041 RECOMP_FLAGS_IN(); 4042 goto L_300108A4; /* 0x30010880: jmp 0x300108a4 */ 4043 L_30010882: 4044 /* cmp eax, esi */ /* 0x30010882: cmp eax, esi */ 4045 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4047 _flag_k = FK_CMP; 4048 if (CMP_EQ(_flag_a, _flag_b)) goto L_300108A4; /* 0x30010884: je 0x300108a4 */ 4049 L_30010886: 4050 ecx = ebp + (-0x14); /* 0x30010886: lea ecx, [ebp - 0x14] */ 4051 edi = eax; /* 0x30010889: mov edi, eax */ 4052 RECOMP_ICALL(0x30011CD0u); /* 0x3001088B: call 0x30011cd0 */ /* not lifted */ 4053 RECOMP_FLAGS_IN(); 4054 ecx = ebp + 0x8; /* 0x30010890: lea ecx, [ebp + 8] */ 4055 PUSH32(esp, edi); /* 0x30010893: push edi */ 4056 PUSH32(esp, ecx); /* 0x30010894: push ecx */ 4057 ecx = ebp + (-0x50); /* 0x30010895: lea ecx, [ebp - 0x50] */ 4058 RECOMP_ICALL(0x30011FC0u); /* 0x30010898: call 0x30011fc0 */ /* not lifted */ 4059 RECOMP_FLAGS_IN(); 4060 eax = MEM32(ebp + (-0x14)); /* 0x3001089D: mov eax, dword ptr [ebp - 0x14] */ 4061 /* cmp eax, esi */ /* 0x300108A0: cmp eax, esi */ 4062 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4064 _flag_k = FK_CMP; 4065 RECOMP_BACKEDGE(); 4066 if (CMP_NE(_flag_a, _flag_b)) goto L_30010886; /* 0x300108A2: jne 0x30010886 */ 4067 L_300108A4: 4068 edx = MEM32(ebp + (-0x4C)); /* 0x300108A4: mov edx, dword ptr [ebp - 0x4c] */ 4069 PUSH32(esp, edx); /* 0x300108A7: push edx */ 4070 RECOMP_ICALL(0x30018080u); /* 0x300108A8: call 0x30018080 */ /* not lifted */ 4071 RECOMP_FLAGS_IN(); 4072 eax = MEM32(ebp + (-0x48)); /* 0x300108AD: mov eax, dword ptr [ebp - 0x48] */ 4073 MEM32(ebp + (-0x4C)) = ebx; /* 0x300108B0: mov dword ptr [ebp - 0x4c], ebx */ 4074 PUSH32(esp, eax); /* 0x300108B3: push eax */ 4075 MEM32(ebp + (-0x40)) = ebx; /* 0x300108B4: mov dword ptr [ebp - 0x40], ebx */ 4076 RECOMP_ICALL(0x30018080u); /* 0x300108B7: call 0x30018080 */ /* not lifted */ 4077 RECOMP_FLAGS_IN(); 4078 ecx = MEM32(ebp + (-0xC)); /* 0x300108BC: mov ecx, dword ptr [ebp - 0xc] */ 4079 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4080 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4081 esp = esp + 8; /* 0x300108BF: add esp, 8 */ 4082 _flag_k = FK_ADD; 4083 MEM32(FS_BASE + (0)) = ecx; /* 0x300108C2: mov dword ptr fs:[0], ecx */ 4084 edi = POP32_VAL(esp); /* 0x300108C9: pop edi */ 4085 esi = POP32_VAL(esp); /* 0x300108CA: pop esi */ 4086 ebx = POP32_VAL(esp); /* 0x300108CB: pop ebx */ 4087 esp = ebp; /* 0x300108CC: mov esp, ebp */ 4088 ebp = POP32_VAL(esp); /* 0x300108CE: pop ebp */ 4089 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300108CF: ret 4 */ 4090 RECOMP_REGS_OUT(); 4091 } 4092 4093 void sub_30010553(void) { 4094 int _fpu_cmp = 0; 4095 uint32_t _cf = 0; 4096 int _df = 1; 4097 uint32_t _flag_k = FK_NONE; 4098 uint32_t _flag_a = 0, _flag_b = 0; 4099 uint32_t _itail_tgt = 0; 4100 RECOMP_REGS_LOCALS 4101 RECOMP_ENTER(0x30010553u); 4102 4103 L_30010553: 4104 /* cmp ecx, eax */ /* 0x30010553: cmp ecx, eax */ 4105 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4107 _flag_k = FK_CMP; 4108 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001057D; /* 0x30010555: je 0x3001057d */ 4109 L_30010557: 4110 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x30010557: fld dword ptr [ecx + 0x14] */ 4111 _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3001055A: fsub dword ptr [ebp - 0x28] */ 4112 _st[0] *= (double)*(float*)ADDR(0x300192A4); /* 0x3001055D: fmul dword ptr [0x300192a4] */ 4113 RECOMP_ICALL(0x300181F8u); /* 0x30010563: call 0x300181f8 */ /* not lifted */ 4114 RECOMP_FLAGS_IN(); 4115 PUSH32(esp, eax); /* 0x30010568: push eax */ 4116 ecx = edi; /* 0x30010569: mov ecx, edi */ 4117 RECOMP_ICALL(esi); /* 0x3001056B: call esi */ 4118 RECOMP_FLAGS_IN(); 4119 ecx = ebp + (-0x10); /* 0x3001056D: lea ecx, [ebp - 0x10] */ 4120 RECOMP_ICALL(0x30011CD0u); /* 0x30010570: call 0x30011cd0 */ /* not lifted */ 4121 RECOMP_FLAGS_IN(); 4122 eax = MEM32(ebp + (-0x4C)); /* 0x30010575: mov eax, dword ptr [ebp - 0x4c] */ 4123 ecx = MEM32(ebp + (-0x10)); /* 0x30010578: mov ecx, dword ptr [ebp - 0x10] */ 4124 RECOMP_BACKEDGE(); 4125 goto L_30010553; /* 0x3001057B: jmp 0x30010553 */ 4126 L_3001057D: 4127 ecx = MEM32(eax); /* 0x3001057D: mov ecx, dword ptr [eax] */ 4128 MEM32(ebp + (-0x10)) = ecx; /* 0x3001057F: mov dword ptr [ebp - 0x10], ecx */ 4129 L_30010582: 4130 /* cmp ecx, eax */ /* 0x30010582: cmp ecx, eax */ 4131 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4133 _flag_k = FK_CMP; 4134 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010682; /* 0x30010584: je 0x30010682 */ 4135 L_3001058A: 4136 fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x3001058A: fld dword ptr [ecx + 0x18] */ 4137 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3001058D: fsub dword ptr [ebp - 0x24] */ 4138 _st[0] *= (double)*(float*)ADDR(0x300192A4); /* 0x30010590: fmul dword ptr [0x300192a4] */ 4139 RECOMP_ICALL(0x300181F8u); /* 0x30010596: call 0x300181f8 */ /* not lifted */ 4140 RECOMP_FLAGS_IN(); 4141 PUSH32(esp, eax); /* 0x3001059B: push eax */ 4142 ecx = edi; /* 0x3001059C: mov ecx, edi */ 4143 RECOMP_ICALL(esi); /* 0x3001059E: call esi */ 4144 RECOMP_FLAGS_IN(); 4145 ecx = ebp + (-0x10); /* 0x300105A0: lea ecx, [ebp - 0x10] */ 4146 RECOMP_ICALL(0x30011CD0u); /* 0x300105A3: call 0x30011cd0 */ /* not lifted */ 4147 RECOMP_FLAGS_IN(); 4148 eax = MEM32(ebp + (-0x4C)); /* 0x300105A8: mov eax, dword ptr [ebp - 0x4c] */ 4149 ecx = MEM32(ebp + (-0x10)); /* 0x300105AB: mov ecx, dword ptr [ebp - 0x10] */ 4150 RECOMP_BACKEDGE(); 4151 goto L_30010582; /* 0x300105AE: jmp 0x30010582 */ 4152 L_30010682: 4153 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x30010682: mov al, byte ptr [ebp + 0xb] */ 4154 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x30010685: mov cl, byte ptr [ebp + 0xb] */ 4155 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4156 esi = 0; /* 0x30010688: xor esi, esi */ 4157 _cf = 0; 4158 _flag_k = FK_TEST; 4159 PUSH32(esp, 0x18u); /* 0x3001068A: push 0x18 */ 4160 MEM32(ebx + 0x20) = esi; /* 0x3001068C: mov dword ptr [ebx + 0x20], esi */ 4161 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x3001068F: mov byte ptr [ebp - 0x3c], al */ 4162 MEM8(ebp + (-0x3B)) = (uint8_t)(LO8(ecx)); /* 0x30010692: mov byte ptr [ebp - 0x3b], cl */ 4163 MEM8(ebp + (-0x30)) = (uint8_t)(0); /* 0x30010695: mov byte ptr [ebp - 0x30], 0 */ 4164 RECOMP_ICALL(0x300180A8u); /* 0x30010699: call 0x300180a8 */ /* not lifted */ 4165 RECOMP_FLAGS_IN(); 4166 MEM32(eax + 0x4) = esi; /* 0x3001069E: mov dword ptr [eax + 4], esi */ 4167 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x300106A1: mov byte ptr [eax + 0x14], 1 */ 4168 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106A5: mov byte ptr [eax + 0x15], 0 */ 4169 MEM32(ebp + (-0x34)) = eax; /* 0x300106A9: mov dword ptr [ebp - 0x34], eax */ 4170 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x300106AC: mov byte ptr [eax + 0x15], 1 */ 4171 edx = MEM32(ebp + (-0x34)); /* 0x300106B0: mov edx, dword ptr [ebp - 0x34] */ 4172 PUSH32(esp, 0x18u); /* 0x300106B3: push 0x18 */ 4173 MEM32(edx) = esi; /* 0x300106B5: mov dword ptr [edx], esi */ 4174 eax = MEM32(ebp + (-0x34)); /* 0x300106B7: mov eax, dword ptr [ebp - 0x34] */ 4175 MEM32(eax + 0x8) = esi; /* 0x300106BA: mov dword ptr [eax + 8], esi */ 4176 esi = MEM32(ebp + (-0x34)); /* 0x300106BD: mov esi, dword ptr [ebp - 0x34] */ 4177 RECOMP_ICALL(0x300180A8u); /* 0x300106C0: call 0x300180a8 */ /* not lifted */ 4178 RECOMP_FLAGS_IN(); 4179 MEM32(eax + 0x4) = esi; /* 0x300106C5: mov dword ptr [eax + 4], esi */ 4180 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x300106C8: mov byte ptr [eax + 0x14], 0 */ 4181 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106CC: mov byte ptr [eax + 0x15], 0 */ 4182 MEM32(ebp + (-0x38)) = eax; /* 0x300106D0: mov dword ptr [ebp - 0x38], eax */ 4183 MEM32(eax) = eax; /* 0x300106D3: mov dword ptr [eax], eax */ 4184 eax = MEM32(ebp + (-0x38)); /* 0x300106D5: mov eax, dword ptr [ebp - 0x38] */ 4185 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4187 esp = esp + 8; /* 0x300106D8: add esp, 8 */ 4188 _flag_k = FK_ADD; 4189 MEM32(eax + 0x8) = eax; /* 0x300106DB: mov dword ptr [eax + 8], eax */ 4190 MEM32(ebp + (-0x2C)) = 0; /* 0x300106DE: mov dword ptr [ebp - 0x2c], 0 */ 4191 edx = MEM32(ebx + 0x8); /* 0x300106E5: mov edx, dword ptr [ebx + 8] */ 4192 ecx = ebp + (-0x3C); /* 0x300106E8: lea ecx, [ebp - 0x3c] */ 4193 PUSH32(esp, ecx); /* 0x300106EB: push ecx */ 4194 PUSH32(esp, edx); /* 0x300106EC: push edx */ 4195 PUSH32(esp, edi); /* 0x300106ED: push edi */ 4196 ecx = ebx; /* 0x300106EE: mov ecx, ebx */ 4197 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x300106F0: mov byte ptr [ebp - 4], 1 */ 4198 RECOMP_ICALL(0x300109A0u); /* 0x300106F4: call 0x300109a0 */ /* not lifted */ 4199 RECOMP_FLAGS_IN(); 4200 ecx = MEM32(ebx + 0x8); /* 0x300106F9: mov ecx, dword ptr [ebx + 8] */ 4201 eax = ebp + (-0x3C); /* 0x300106FC: lea eax, [ebp - 0x3c] */ 4202 PUSH32(esp, 0); /* 0x300106FF: push 0 */ 4203 PUSH32(esp, eax); /* 0x30010701: push eax */ 4204 PUSH32(esp, ecx); /* 0x30010702: push ecx */ 4205 PUSH32(esp, edi); /* 0x30010703: push edi */ 4206 ecx = ebx; /* 0x30010704: mov ecx, ebx */ 4207 RECOMP_ICALL(0x30010E20u); /* 0x30010706: call 0x30010e20 */ /* not lifted */ 4208 RECOMP_FLAGS_IN(); 4209 edi = MEM32(ebp + (-0x18)); /* 0x3001070B: mov edi, dword ptr [ebp - 0x18] */ 4210 esi = MEM32(edi + 0x4); /* 0x3001070E: mov esi, dword ptr [edi + 4] */ 4211 ecx = MEM32(edi + 0x10); /* 0x30010711: mov ecx, dword ptr [edi + 0x10] */ 4212 /* test ecx, ecx */ /* 0x30010714: test ecx, ecx */ 4213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4214 _cf = 0; 4215 _flag_k = FK_TEST; 4216 eax = MEM32(esi); /* 0x30010716: mov eax, dword ptr [esi] */ 4217 MEM32(ebp + (-0x18)) = eax; /* 0x30010718: mov dword ptr [ebp - 0x18], eax */ 4218 if (TEST_Z(_flag_a, _flag_b)) goto L_3001077A; /* 0x3001071B: je 0x3001077a */ 4219 L_3001071D: 4220 ecx = eax; /* 0x3001071D: mov ecx, eax */ 4221 /* cmp eax, ecx */ /* 0x3001071F: cmp eax, ecx */ 4222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4224 _flag_k = FK_CMP; 4225 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010721: jne 0x3001077a */ 4226 L_30010723: 4227 /* cmp esi, esi */ /* 0x30010723: cmp esi, esi */ 4228 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4230 _flag_k = FK_CMP; 4231 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010725: jne 0x3001077a */ 4232 L_30010727: 4233 esi = MEM32(esi + 0x4); /* 0x30010727: mov esi, dword ptr [esi + 4] */ 4234 eax = MEM32(edi + 0x8); /* 0x3001072A: mov eax, dword ptr [edi + 8] */ 4235 /* cmp esi, eax */ /* 0x3001072D: cmp esi, eax */ 4236 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4238 _flag_k = FK_CMP; 4239 ebx = esi; /* 0x3001072F: mov ebx, esi */ 4240 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010752; /* 0x30010731: je 0x30010752 */ 4241 L_30010733: 4242 edx = MEM32(ebx + 0x8); /* 0x30010733: mov edx, dword ptr [ebx + 8] */ 4243 ecx = edi; /* 0x30010736: mov ecx, edi */ 4244 PUSH32(esp, edx); /* 0x30010738: push edx */ 4245 RECOMP_ICALL(0x30012380u); /* 0x30010739: call 0x30012380 */ /* not lifted */ 4246 RECOMP_FLAGS_IN(); 4247 ebx = MEM32(ebx); /* 0x3001073E: mov ebx, dword ptr [ebx] */ 4248 PUSH32(esp, esi); /* 0x30010740: push esi */ 4249 RECOMP_ICALL(0x30018080u); /* 0x30010741: call 0x30018080 */ /* not lifted */ 4250 RECOMP_FLAGS_IN(); 4251 eax = MEM32(edi + 0x8); /* 0x30010746: mov eax, dword ptr [edi + 8] */ 4252 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4253 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4254 esp = esp + 4; /* 0x30010749: add esp, 4 */ 4255 _flag_k = FK_ADD; 4256 /* cmp ebx, eax */ /* 0x3001074C: cmp ebx, eax */ 4257 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4259 _flag_k = FK_CMP; 4260 esi = ebx; /* 0x3001074E: mov esi, ebx */ 4261 RECOMP_BACKEDGE(); 4262 if (CMP_NE(_flag_a, _flag_b)) goto L_30010733; /* 0x30010750: jne 0x30010733 */ 4263 L_30010752: 4264 eax = MEM32(edi + 0x4); /* 0x30010752: mov eax, dword ptr [edi + 4] */ 4265 ecx = MEM32(edi + 0x8); /* 0x30010755: mov ecx, dword ptr [edi + 8] */ 4266 edx = ebp + (-0x60); /* 0x30010758: lea edx, [ebp - 0x60] */ 4267 MEM32(eax + 0x4) = ecx; /* 0x3001075B: mov dword ptr [eax + 4], ecx */ 4268 eax = MEM32(edi + 0x4); /* 0x3001075E: mov eax, dword ptr [edi + 4] */ 4269 MEM32(edi + 0x10) = 0; /* 0x30010761: mov dword ptr [edi + 0x10], 0 */ 4270 PUSH32(esp, edx); /* 0x30010768: push edx */ 4271 MEM32(eax) = eax; /* 0x30010769: mov dword ptr [eax], eax */ 4272 eax = MEM32(edi + 0x4); /* 0x3001076B: mov eax, dword ptr [edi + 4] */ 4273 ecx = edi; /* 0x3001076E: mov ecx, edi */ 4274 MEM32(eax + 0x8) = eax; /* 0x30010770: mov dword ptr [eax + 8], eax */ 4275 RECOMP_ICALL(0x30011670u); /* 0x30010773: call 0x30011670 */ /* not lifted */ 4276 RECOMP_FLAGS_IN(); 4277 goto L_3001079B; /* 0x30010778: jmp 0x3001079b */ 4278 L_3001077A: 4279 /* cmp eax, esi */ /* 0x3001077A: cmp eax, esi */ 4280 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4282 _flag_k = FK_CMP; 4283 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001079B; /* 0x3001077C: je 0x3001079b */ 4284 L_3001077E: 4285 ecx = ebp + (-0x18); /* 0x3001077E: lea ecx, [ebp - 0x18] */ 4286 ebx = eax; /* 0x30010781: mov ebx, eax */ 4287 RECOMP_ICALL(0x30011CD0u); /* 0x30010783: call 0x30011cd0 */ /* not lifted */ 4288 RECOMP_FLAGS_IN(); 4289 eax = ebp + (-0x60); /* 0x30010788: lea eax, [ebp - 0x60] */ 4290 PUSH32(esp, ebx); /* 0x3001078B: push ebx */ 4291 PUSH32(esp, eax); /* 0x3001078C: push eax */ 4292 ecx = edi; /* 0x3001078D: mov ecx, edi */ 4293 RECOMP_ICALL(0x30011FC0u); /* 0x3001078F: call 0x30011fc0 */ /* not lifted */ 4294 RECOMP_FLAGS_IN(); 4295 eax = MEM32(ebp + (-0x18)); /* 0x30010794: mov eax, dword ptr [ebp - 0x18] */ 4296 /* cmp eax, esi */ /* 0x30010797: cmp eax, esi */ 4297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4299 _flag_k = FK_CMP; 4300 RECOMP_BACKEDGE(); 4301 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077E; /* 0x30010799: jne 0x3001077e */ 4302 L_3001079B: 4303 eax = MEM32(ebp + (-0x38)); /* 0x3001079B: mov eax, dword ptr [ebp - 0x38] */ 4304 edx = MEM32(ebp + (-0x2C)); /* 0x3001079E: mov edx, dword ptr [ebp - 0x2c] */ 4305 /* test edx, edx */ /* 0x300107A1: test edx, edx */ 4306 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4307 _cf = 0; 4308 _flag_k = FK_TEST; 4309 ecx = MEM32(eax); /* 0x300107A3: mov ecx, dword ptr [eax] */ 4310 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x300107A5: mov byte ptr [ebp - 4], 0 */ 4311 esi = eax; /* 0x300107A9: mov esi, eax */ 4312 MEM32(ebp + (-0x18)) = ecx; /* 0x300107AB: mov dword ptr [ebp - 0x18], ecx */ 4313 if (TEST_Z(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107AE: je 0x300107eb */ 4314 L_300107B0: 4315 edx = ecx; /* 0x300107B0: mov edx, ecx */ 4316 /* cmp ecx, edx */ /* 0x300107B2: cmp ecx, edx */ 4317 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4319 _flag_k = FK_CMP; 4320 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107B4: jne 0x300107eb */ 4321 L_300107B6: 4322 ecx = MEM32(eax + 0x4); /* 0x300107B6: mov ecx, dword ptr [eax + 4] */ 4323 PUSH32(esp, ecx); /* 0x300107B9: push ecx */ 4324 ecx = ebp + (-0x3C); /* 0x300107BA: lea ecx, [ebp - 0x3c] */ 4325 RECOMP_ICALL(0x30012A30u); /* 0x300107BD: call 0x30012a30 */ /* not lifted */ 4326 RECOMP_FLAGS_IN(); 4327 edx = MEM32(ebp + (-0x38)); /* 0x300107C2: mov edx, dword ptr [ebp - 0x38] */ 4328 eax = MEM32(ebp + (-0x34)); /* 0x300107C5: mov eax, dword ptr [ebp - 0x34] */ 4329 ecx = ebp + (-0x60); /* 0x300107C8: lea ecx, [ebp - 0x60] */ 4330 MEM32(edx + 0x4) = eax; /* 0x300107CB: mov dword ptr [edx + 4], eax */ 4331 eax = MEM32(ebp + (-0x38)); /* 0x300107CE: mov eax, dword ptr [ebp - 0x38] */ 4332 MEM32(ebp + (-0x2C)) = 0; /* 0x300107D1: mov dword ptr [ebp - 0x2c], 0 */ 4333 PUSH32(esp, ecx); /* 0x300107D8: push ecx */ 4334 MEM32(eax) = eax; /* 0x300107D9: mov dword ptr [eax], eax */ 4335 eax = MEM32(ebp + (-0x38)); /* 0x300107DB: mov eax, dword ptr [ebp - 0x38] */ 4336 ecx = ebp + (-0x3C); /* 0x300107DE: lea ecx, [ebp - 0x3c] */ 4337 MEM32(eax + 0x8) = eax; /* 0x300107E1: mov dword ptr [eax + 8], eax */ 4338 RECOMP_ICALL(0x30011670u); /* 0x300107E4: call 0x30011670 */ /* not lifted */ 4339 RECOMP_FLAGS_IN(); 4340 goto L_30010811; /* 0x300107E9: jmp 0x30010811 */ 4341 L_300107EB: 4342 /* cmp ecx, eax */ /* 0x300107EB: cmp ecx, eax */ 4343 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4345 _flag_k = FK_CMP; 4346 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010814; /* 0x300107ED: je 0x30010814 */ 4347 L_300107EF: 4348 edx = ebp + (-0x60); /* 0x300107EF: lea edx, [ebp - 0x60] */ 4349 PUSH32(esp, 0); /* 0x300107F2: push 0 */ 4350 PUSH32(esp, edx); /* 0x300107F4: push edx */ 4351 ecx = ebp + (-0x18); /* 0x300107F5: lea ecx, [ebp - 0x18] */ 4352 RECOMP_ICALL(0x30012AD0u); /* 0x300107F8: call 0x30012ad0 */ /* not lifted */ 4353 RECOMP_FLAGS_IN(); 4354 eax = MEM32(eax); /* 0x300107FD: mov eax, dword ptr [eax] */ 4355 ecx = ebp + (-0x14); /* 0x300107FF: lea ecx, [ebp - 0x14] */ 4356 PUSH32(esp, eax); /* 0x30010802: push eax */ 4357 PUSH32(esp, ecx); /* 0x30010803: push ecx */ 4358 ecx = ebp + (-0x3C); /* 0x30010804: lea ecx, [ebp - 0x3c] */ 4359 RECOMP_ICALL(0x30012670u); /* 0x30010807: call 0x30012670 */ /* not lifted */ 4360 RECOMP_FLAGS_IN(); 4361 /* cmp MEM32(ebp + (-0x18)), esi */ /* 0x3001080C: cmp dword ptr [ebp - 0x18], esi */ 4362 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(esi); 4363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4364 _flag_k = FK_CMP; 4365 RECOMP_BACKEDGE(); 4366 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EF; /* 0x3001080F: jne 0x300107ef */ 4367 L_30010811: 4368 eax = MEM32(ebp + (-0x38)); /* 0x30010811: mov eax, dword ptr [ebp - 0x38] */ 4369 L_30010814: 4370 PUSH32(esp, eax); /* 0x30010814: push eax */ 4371 RECOMP_ICALL(0x30018080u); /* 0x30010815: call 0x30018080 */ /* not lifted */ 4372 RECOMP_FLAGS_IN(); 4373 edx = MEM32(ebp + (-0x34)); /* 0x3001081A: mov edx, dword ptr [ebp - 0x34] */ 4374 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4375 ebx = 0; /* 0x3001081D: xor ebx, ebx */ 4376 _cf = 0; 4377 _flag_k = FK_TEST; 4378 PUSH32(esp, edx); /* 0x3001081F: push edx */ 4379 MEM32(ebp + (-0x38)) = ebx; /* 0x30010820: mov dword ptr [ebp - 0x38], ebx */ 4380 MEM32(ebp + (-0x2C)) = ebx; /* 0x30010823: mov dword ptr [ebp - 0x2c], ebx */ 4381 RECOMP_ICALL(0x30018080u); /* 0x30010826: call 0x30018080 */ /* not lifted */ 4382 RECOMP_FLAGS_IN(); 4383 esi = MEM32(ebp + (-0x4C)); /* 0x3001082B: mov esi, dword ptr [ebp - 0x4c] */ 4384 ecx = MEM32(ebp + (-0x40)); /* 0x3001082E: mov ecx, dword ptr [ebp - 0x40] */ 4385 MEM32(ebp + (-0x34)) = ebx; /* 0x30010831: mov dword ptr [ebp - 0x34], ebx */ 4386 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4388 esp = esp + 8; /* 0x30010834: add esp, 8 */ 4389 _flag_k = FK_ADD; 4390 eax = MEM32(esi); /* 0x30010837: mov eax, dword ptr [esi] */ 4391 /* cmp ecx, ebx */ /* 0x30010839: cmp ecx, ebx */ 4392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4394 _flag_k = FK_CMP; 4395 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3001083B: mov dword ptr [ebp - 4], 0xffffffff */ 4396 MEM32(ebp + (-0x14)) = eax; /* 0x30010842: mov dword ptr [ebp - 0x14], eax */ 4397 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010882; /* 0x30010845: je 0x30010882 */ 4398 L_30010847: 4399 ecx = eax; /* 0x30010847: mov ecx, eax */ 4400 /* cmp eax, ecx */ /* 0x30010849: cmp eax, ecx */ 4401 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4403 _flag_k = FK_CMP; 4404 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084B: jne 0x30010882 */ 4405 L_3001084D: 4406 /* cmp esi, esi */ /* 0x3001084D: cmp esi, esi */ 4407 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4409 _flag_k = FK_CMP; 4410 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084F: jne 0x30010882 */ 4411 L_30010851: 4412 eax = MEM32(esi + 0x4); /* 0x30010851: mov eax, dword ptr [esi + 4] */ 4413 ecx = ebp + (-0x50); /* 0x30010854: lea ecx, [ebp - 0x50] */ 4414 PUSH32(esp, eax); /* 0x30010857: push eax */ 4415 RECOMP_ICALL(0x30012B30u); /* 0x30010858: call 0x30012b30 */ /* not lifted */ 4416 RECOMP_FLAGS_IN(); 4417 ecx = MEM32(ebp + (-0x4C)); /* 0x3001085D: mov ecx, dword ptr [ebp - 0x4c] */ 4418 edx = MEM32(ebp + (-0x48)); /* 0x30010860: mov edx, dword ptr [ebp - 0x48] */ 4419 MEM32(ecx + 0x4) = edx; /* 0x30010863: mov dword ptr [ecx + 4], edx */ 4420 eax = MEM32(ebp + (-0x4C)); /* 0x30010866: mov eax, dword ptr [ebp - 0x4c] */ 4421 MEM32(ebp + (-0x40)) = ebx; /* 0x30010869: mov dword ptr [ebp - 0x40], ebx */ 4422 ecx = ebp + (-0x50); /* 0x3001086C: lea ecx, [ebp - 0x50] */ 4423 MEM32(eax) = eax; /* 0x3001086F: mov dword ptr [eax], eax */ 4424 eax = MEM32(ebp + (-0x4C)); /* 0x30010871: mov eax, dword ptr [ebp - 0x4c] */ 4425 MEM32(eax + 0x8) = eax; /* 0x30010874: mov dword ptr [eax + 8], eax */ 4426 eax = ebp + (-0x60); /* 0x30010877: lea eax, [ebp - 0x60] */ 4427 PUSH32(esp, eax); /* 0x3001087A: push eax */ 4428 RECOMP_ICALL(0x30011670u); /* 0x3001087B: call 0x30011670 */ /* not lifted */ 4429 RECOMP_FLAGS_IN(); 4430 goto L_300108A4; /* 0x30010880: jmp 0x300108a4 */ 4431 L_30010882: 4432 /* cmp eax, esi */ /* 0x30010882: cmp eax, esi */ 4433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4435 _flag_k = FK_CMP; 4436 if (CMP_EQ(_flag_a, _flag_b)) goto L_300108A4; /* 0x30010884: je 0x300108a4 */ 4437 L_30010886: 4438 ecx = ebp + (-0x14); /* 0x30010886: lea ecx, [ebp - 0x14] */ 4439 edi = eax; /* 0x30010889: mov edi, eax */ 4440 RECOMP_ICALL(0x30011CD0u); /* 0x3001088B: call 0x30011cd0 */ /* not lifted */ 4441 RECOMP_FLAGS_IN(); 4442 ecx = ebp + 0x8; /* 0x30010890: lea ecx, [ebp + 8] */ 4443 PUSH32(esp, edi); /* 0x30010893: push edi */ 4444 PUSH32(esp, ecx); /* 0x30010894: push ecx */ 4445 ecx = ebp + (-0x50); /* 0x30010895: lea ecx, [ebp - 0x50] */ 4446 RECOMP_ICALL(0x30011FC0u); /* 0x30010898: call 0x30011fc0 */ /* not lifted */ 4447 RECOMP_FLAGS_IN(); 4448 eax = MEM32(ebp + (-0x14)); /* 0x3001089D: mov eax, dword ptr [ebp - 0x14] */ 4449 /* cmp eax, esi */ /* 0x300108A0: cmp eax, esi */ 4450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4452 _flag_k = FK_CMP; 4453 RECOMP_BACKEDGE(); 4454 if (CMP_NE(_flag_a, _flag_b)) goto L_30010886; /* 0x300108A2: jne 0x30010886 */ 4455 L_300108A4: 4456 edx = MEM32(ebp + (-0x4C)); /* 0x300108A4: mov edx, dword ptr [ebp - 0x4c] */ 4457 PUSH32(esp, edx); /* 0x300108A7: push edx */ 4458 RECOMP_ICALL(0x30018080u); /* 0x300108A8: call 0x30018080 */ /* not lifted */ 4459 RECOMP_FLAGS_IN(); 4460 eax = MEM32(ebp + (-0x48)); /* 0x300108AD: mov eax, dword ptr [ebp - 0x48] */ 4461 MEM32(ebp + (-0x4C)) = ebx; /* 0x300108B0: mov dword ptr [ebp - 0x4c], ebx */ 4462 PUSH32(esp, eax); /* 0x300108B3: push eax */ 4463 MEM32(ebp + (-0x40)) = ebx; /* 0x300108B4: mov dword ptr [ebp - 0x40], ebx */ 4464 RECOMP_ICALL(0x30018080u); /* 0x300108B7: call 0x30018080 */ /* not lifted */ 4465 RECOMP_FLAGS_IN(); 4466 ecx = MEM32(ebp + (-0xC)); /* 0x300108BC: mov ecx, dword ptr [ebp - 0xc] */ 4467 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4468 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4469 esp = esp + 8; /* 0x300108BF: add esp, 8 */ 4470 _flag_k = FK_ADD; 4471 MEM32(FS_BASE + (0)) = ecx; /* 0x300108C2: mov dword ptr fs:[0], ecx */ 4472 edi = POP32_VAL(esp); /* 0x300108C9: pop edi */ 4473 esi = POP32_VAL(esp); /* 0x300108CA: pop esi */ 4474 ebx = POP32_VAL(esp); /* 0x300108CB: pop ebx */ 4475 esp = ebp; /* 0x300108CC: mov esp, ebp */ 4476 ebp = POP32_VAL(esp); /* 0x300108CE: pop ebp */ 4477 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300108CF: ret 4 */ 4478 RECOMP_REGS_OUT(); 4479 } 4480 4481 void sub_30010582(void) { 4482 int _fpu_cmp = 0; 4483 uint32_t _cf = 0; 4484 int _df = 1; 4485 uint32_t _flag_k = FK_NONE; 4486 uint32_t _flag_a = 0, _flag_b = 0; 4487 uint32_t _itail_tgt = 0; 4488 RECOMP_REGS_LOCALS 4489 RECOMP_ENTER(0x30010582u); 4490 4491 L_30010582: 4492 /* cmp ecx, eax */ /* 0x30010582: cmp ecx, eax */ 4493 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4495 _flag_k = FK_CMP; 4496 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010682; /* 0x30010584: je 0x30010682 */ 4497 L_3001058A: 4498 fp_push(*(float*)&MEM32(ecx + 0x18)); /* 0x3001058A: fld dword ptr [ecx + 0x18] */ 4499 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3001058D: fsub dword ptr [ebp - 0x24] */ 4500 _st[0] *= (double)*(float*)ADDR(0x300192A4); /* 0x30010590: fmul dword ptr [0x300192a4] */ 4501 RECOMP_ICALL(0x300181F8u); /* 0x30010596: call 0x300181f8 */ /* not lifted */ 4502 RECOMP_FLAGS_IN(); 4503 PUSH32(esp, eax); /* 0x3001059B: push eax */ 4504 ecx = edi; /* 0x3001059C: mov ecx, edi */ 4505 RECOMP_ICALL(esi); /* 0x3001059E: call esi */ 4506 RECOMP_FLAGS_IN(); 4507 ecx = ebp + (-0x10); /* 0x300105A0: lea ecx, [ebp - 0x10] */ 4508 RECOMP_ICALL(0x30011CD0u); /* 0x300105A3: call 0x30011cd0 */ /* not lifted */ 4509 RECOMP_FLAGS_IN(); 4510 eax = MEM32(ebp + (-0x4C)); /* 0x300105A8: mov eax, dword ptr [ebp - 0x4c] */ 4511 ecx = MEM32(ebp + (-0x10)); /* 0x300105AB: mov ecx, dword ptr [ebp - 0x10] */ 4512 RECOMP_BACKEDGE(); 4513 goto L_30010582; /* 0x300105AE: jmp 0x30010582 */ 4514 L_30010682: 4515 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x30010682: mov al, byte ptr [ebp + 0xb] */ 4516 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x30010685: mov cl, byte ptr [ebp + 0xb] */ 4517 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4518 esi = 0; /* 0x30010688: xor esi, esi */ 4519 _cf = 0; 4520 _flag_k = FK_TEST; 4521 PUSH32(esp, 0x18u); /* 0x3001068A: push 0x18 */ 4522 MEM32(ebx + 0x20) = esi; /* 0x3001068C: mov dword ptr [ebx + 0x20], esi */ 4523 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x3001068F: mov byte ptr [ebp - 0x3c], al */ 4524 MEM8(ebp + (-0x3B)) = (uint8_t)(LO8(ecx)); /* 0x30010692: mov byte ptr [ebp - 0x3b], cl */ 4525 MEM8(ebp + (-0x30)) = (uint8_t)(0); /* 0x30010695: mov byte ptr [ebp - 0x30], 0 */ 4526 RECOMP_ICALL(0x300180A8u); /* 0x30010699: call 0x300180a8 */ /* not lifted */ 4527 RECOMP_FLAGS_IN(); 4528 MEM32(eax + 0x4) = esi; /* 0x3001069E: mov dword ptr [eax + 4], esi */ 4529 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x300106A1: mov byte ptr [eax + 0x14], 1 */ 4530 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106A5: mov byte ptr [eax + 0x15], 0 */ 4531 MEM32(ebp + (-0x34)) = eax; /* 0x300106A9: mov dword ptr [ebp - 0x34], eax */ 4532 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x300106AC: mov byte ptr [eax + 0x15], 1 */ 4533 edx = MEM32(ebp + (-0x34)); /* 0x300106B0: mov edx, dword ptr [ebp - 0x34] */ 4534 PUSH32(esp, 0x18u); /* 0x300106B3: push 0x18 */ 4535 MEM32(edx) = esi; /* 0x300106B5: mov dword ptr [edx], esi */ 4536 eax = MEM32(ebp + (-0x34)); /* 0x300106B7: mov eax, dword ptr [ebp - 0x34] */ 4537 MEM32(eax + 0x8) = esi; /* 0x300106BA: mov dword ptr [eax + 8], esi */ 4538 esi = MEM32(ebp + (-0x34)); /* 0x300106BD: mov esi, dword ptr [ebp - 0x34] */ 4539 RECOMP_ICALL(0x300180A8u); /* 0x300106C0: call 0x300180a8 */ /* not lifted */ 4540 RECOMP_FLAGS_IN(); 4541 MEM32(eax + 0x4) = esi; /* 0x300106C5: mov dword ptr [eax + 4], esi */ 4542 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x300106C8: mov byte ptr [eax + 0x14], 0 */ 4543 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106CC: mov byte ptr [eax + 0x15], 0 */ 4544 MEM32(ebp + (-0x38)) = eax; /* 0x300106D0: mov dword ptr [ebp - 0x38], eax */ 4545 MEM32(eax) = eax; /* 0x300106D3: mov dword ptr [eax], eax */ 4546 eax = MEM32(ebp + (-0x38)); /* 0x300106D5: mov eax, dword ptr [ebp - 0x38] */ 4547 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4548 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4549 esp = esp + 8; /* 0x300106D8: add esp, 8 */ 4550 _flag_k = FK_ADD; 4551 MEM32(eax + 0x8) = eax; /* 0x300106DB: mov dword ptr [eax + 8], eax */ 4552 MEM32(ebp + (-0x2C)) = 0; /* 0x300106DE: mov dword ptr [ebp - 0x2c], 0 */ 4553 edx = MEM32(ebx + 0x8); /* 0x300106E5: mov edx, dword ptr [ebx + 8] */ 4554 ecx = ebp + (-0x3C); /* 0x300106E8: lea ecx, [ebp - 0x3c] */ 4555 PUSH32(esp, ecx); /* 0x300106EB: push ecx */ 4556 PUSH32(esp, edx); /* 0x300106EC: push edx */ 4557 PUSH32(esp, edi); /* 0x300106ED: push edi */ 4558 ecx = ebx; /* 0x300106EE: mov ecx, ebx */ 4559 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x300106F0: mov byte ptr [ebp - 4], 1 */ 4560 RECOMP_ICALL(0x300109A0u); /* 0x300106F4: call 0x300109a0 */ /* not lifted */ 4561 RECOMP_FLAGS_IN(); 4562 ecx = MEM32(ebx + 0x8); /* 0x300106F9: mov ecx, dword ptr [ebx + 8] */ 4563 eax = ebp + (-0x3C); /* 0x300106FC: lea eax, [ebp - 0x3c] */ 4564 PUSH32(esp, 0); /* 0x300106FF: push 0 */ 4565 PUSH32(esp, eax); /* 0x30010701: push eax */ 4566 PUSH32(esp, ecx); /* 0x30010702: push ecx */ 4567 PUSH32(esp, edi); /* 0x30010703: push edi */ 4568 ecx = ebx; /* 0x30010704: mov ecx, ebx */ 4569 RECOMP_ICALL(0x30010E20u); /* 0x30010706: call 0x30010e20 */ /* not lifted */ 4570 RECOMP_FLAGS_IN(); 4571 edi = MEM32(ebp + (-0x18)); /* 0x3001070B: mov edi, dword ptr [ebp - 0x18] */ 4572 esi = MEM32(edi + 0x4); /* 0x3001070E: mov esi, dword ptr [edi + 4] */ 4573 ecx = MEM32(edi + 0x10); /* 0x30010711: mov ecx, dword ptr [edi + 0x10] */ 4574 /* test ecx, ecx */ /* 0x30010714: test ecx, ecx */ 4575 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4576 _cf = 0; 4577 _flag_k = FK_TEST; 4578 eax = MEM32(esi); /* 0x30010716: mov eax, dword ptr [esi] */ 4579 MEM32(ebp + (-0x18)) = eax; /* 0x30010718: mov dword ptr [ebp - 0x18], eax */ 4580 if (TEST_Z(_flag_a, _flag_b)) goto L_3001077A; /* 0x3001071B: je 0x3001077a */ 4581 L_3001071D: 4582 ecx = eax; /* 0x3001071D: mov ecx, eax */ 4583 /* cmp eax, ecx */ /* 0x3001071F: cmp eax, ecx */ 4584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4586 _flag_k = FK_CMP; 4587 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010721: jne 0x3001077a */ 4588 L_30010723: 4589 /* cmp esi, esi */ /* 0x30010723: cmp esi, esi */ 4590 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4592 _flag_k = FK_CMP; 4593 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010725: jne 0x3001077a */ 4594 L_30010727: 4595 esi = MEM32(esi + 0x4); /* 0x30010727: mov esi, dword ptr [esi + 4] */ 4596 eax = MEM32(edi + 0x8); /* 0x3001072A: mov eax, dword ptr [edi + 8] */ 4597 /* cmp esi, eax */ /* 0x3001072D: cmp esi, eax */ 4598 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4600 _flag_k = FK_CMP; 4601 ebx = esi; /* 0x3001072F: mov ebx, esi */ 4602 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010752; /* 0x30010731: je 0x30010752 */ 4603 L_30010733: 4604 edx = MEM32(ebx + 0x8); /* 0x30010733: mov edx, dword ptr [ebx + 8] */ 4605 ecx = edi; /* 0x30010736: mov ecx, edi */ 4606 PUSH32(esp, edx); /* 0x30010738: push edx */ 4607 RECOMP_ICALL(0x30012380u); /* 0x30010739: call 0x30012380 */ /* not lifted */ 4608 RECOMP_FLAGS_IN(); 4609 ebx = MEM32(ebx); /* 0x3001073E: mov ebx, dword ptr [ebx] */ 4610 PUSH32(esp, esi); /* 0x30010740: push esi */ 4611 RECOMP_ICALL(0x30018080u); /* 0x30010741: call 0x30018080 */ /* not lifted */ 4612 RECOMP_FLAGS_IN(); 4613 eax = MEM32(edi + 0x8); /* 0x30010746: mov eax, dword ptr [edi + 8] */ 4614 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4615 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4616 esp = esp + 4; /* 0x30010749: add esp, 4 */ 4617 _flag_k = FK_ADD; 4618 /* cmp ebx, eax */ /* 0x3001074C: cmp ebx, eax */ 4619 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4620 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4621 _flag_k = FK_CMP; 4622 esi = ebx; /* 0x3001074E: mov esi, ebx */ 4623 RECOMP_BACKEDGE(); 4624 if (CMP_NE(_flag_a, _flag_b)) goto L_30010733; /* 0x30010750: jne 0x30010733 */ 4625 L_30010752: 4626 eax = MEM32(edi + 0x4); /* 0x30010752: mov eax, dword ptr [edi + 4] */ 4627 ecx = MEM32(edi + 0x8); /* 0x30010755: mov ecx, dword ptr [edi + 8] */ 4628 edx = ebp + (-0x60); /* 0x30010758: lea edx, [ebp - 0x60] */ 4629 MEM32(eax + 0x4) = ecx; /* 0x3001075B: mov dword ptr [eax + 4], ecx */ 4630 eax = MEM32(edi + 0x4); /* 0x3001075E: mov eax, dword ptr [edi + 4] */ 4631 MEM32(edi + 0x10) = 0; /* 0x30010761: mov dword ptr [edi + 0x10], 0 */ 4632 PUSH32(esp, edx); /* 0x30010768: push edx */ 4633 MEM32(eax) = eax; /* 0x30010769: mov dword ptr [eax], eax */ 4634 eax = MEM32(edi + 0x4); /* 0x3001076B: mov eax, dword ptr [edi + 4] */ 4635 ecx = edi; /* 0x3001076E: mov ecx, edi */ 4636 MEM32(eax + 0x8) = eax; /* 0x30010770: mov dword ptr [eax + 8], eax */ 4637 RECOMP_ICALL(0x30011670u); /* 0x30010773: call 0x30011670 */ /* not lifted */ 4638 RECOMP_FLAGS_IN(); 4639 goto L_3001079B; /* 0x30010778: jmp 0x3001079b */ 4640 L_3001077A: 4641 /* cmp eax, esi */ /* 0x3001077A: cmp eax, esi */ 4642 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4644 _flag_k = FK_CMP; 4645 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001079B; /* 0x3001077C: je 0x3001079b */ 4646 L_3001077E: 4647 ecx = ebp + (-0x18); /* 0x3001077E: lea ecx, [ebp - 0x18] */ 4648 ebx = eax; /* 0x30010781: mov ebx, eax */ 4649 RECOMP_ICALL(0x30011CD0u); /* 0x30010783: call 0x30011cd0 */ /* not lifted */ 4650 RECOMP_FLAGS_IN(); 4651 eax = ebp + (-0x60); /* 0x30010788: lea eax, [ebp - 0x60] */ 4652 PUSH32(esp, ebx); /* 0x3001078B: push ebx */ 4653 PUSH32(esp, eax); /* 0x3001078C: push eax */ 4654 ecx = edi; /* 0x3001078D: mov ecx, edi */ 4655 RECOMP_ICALL(0x30011FC0u); /* 0x3001078F: call 0x30011fc0 */ /* not lifted */ 4656 RECOMP_FLAGS_IN(); 4657 eax = MEM32(ebp + (-0x18)); /* 0x30010794: mov eax, dword ptr [ebp - 0x18] */ 4658 /* cmp eax, esi */ /* 0x30010797: cmp eax, esi */ 4659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4661 _flag_k = FK_CMP; 4662 RECOMP_BACKEDGE(); 4663 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077E; /* 0x30010799: jne 0x3001077e */ 4664 L_3001079B: 4665 eax = MEM32(ebp + (-0x38)); /* 0x3001079B: mov eax, dword ptr [ebp - 0x38] */ 4666 edx = MEM32(ebp + (-0x2C)); /* 0x3001079E: mov edx, dword ptr [ebp - 0x2c] */ 4667 /* test edx, edx */ /* 0x300107A1: test edx, edx */ 4668 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4669 _cf = 0; 4670 _flag_k = FK_TEST; 4671 ecx = MEM32(eax); /* 0x300107A3: mov ecx, dword ptr [eax] */ 4672 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x300107A5: mov byte ptr [ebp - 4], 0 */ 4673 esi = eax; /* 0x300107A9: mov esi, eax */ 4674 MEM32(ebp + (-0x18)) = ecx; /* 0x300107AB: mov dword ptr [ebp - 0x18], ecx */ 4675 if (TEST_Z(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107AE: je 0x300107eb */ 4676 L_300107B0: 4677 edx = ecx; /* 0x300107B0: mov edx, ecx */ 4678 /* cmp ecx, edx */ /* 0x300107B2: cmp ecx, edx */ 4679 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4681 _flag_k = FK_CMP; 4682 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107B4: jne 0x300107eb */ 4683 L_300107B6: 4684 ecx = MEM32(eax + 0x4); /* 0x300107B6: mov ecx, dword ptr [eax + 4] */ 4685 PUSH32(esp, ecx); /* 0x300107B9: push ecx */ 4686 ecx = ebp + (-0x3C); /* 0x300107BA: lea ecx, [ebp - 0x3c] */ 4687 RECOMP_ICALL(0x30012A30u); /* 0x300107BD: call 0x30012a30 */ /* not lifted */ 4688 RECOMP_FLAGS_IN(); 4689 edx = MEM32(ebp + (-0x38)); /* 0x300107C2: mov edx, dword ptr [ebp - 0x38] */ 4690 eax = MEM32(ebp + (-0x34)); /* 0x300107C5: mov eax, dword ptr [ebp - 0x34] */ 4691 ecx = ebp + (-0x60); /* 0x300107C8: lea ecx, [ebp - 0x60] */ 4692 MEM32(edx + 0x4) = eax; /* 0x300107CB: mov dword ptr [edx + 4], eax */ 4693 eax = MEM32(ebp + (-0x38)); /* 0x300107CE: mov eax, dword ptr [ebp - 0x38] */ 4694 MEM32(ebp + (-0x2C)) = 0; /* 0x300107D1: mov dword ptr [ebp - 0x2c], 0 */ 4695 PUSH32(esp, ecx); /* 0x300107D8: push ecx */ 4696 MEM32(eax) = eax; /* 0x300107D9: mov dword ptr [eax], eax */ 4697 eax = MEM32(ebp + (-0x38)); /* 0x300107DB: mov eax, dword ptr [ebp - 0x38] */ 4698 ecx = ebp + (-0x3C); /* 0x300107DE: lea ecx, [ebp - 0x3c] */ 4699 MEM32(eax + 0x8) = eax; /* 0x300107E1: mov dword ptr [eax + 8], eax */ 4700 RECOMP_ICALL(0x30011670u); /* 0x300107E4: call 0x30011670 */ /* not lifted */ 4701 RECOMP_FLAGS_IN(); 4702 goto L_30010811; /* 0x300107E9: jmp 0x30010811 */ 4703 L_300107EB: 4704 /* cmp ecx, eax */ /* 0x300107EB: cmp ecx, eax */ 4705 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4707 _flag_k = FK_CMP; 4708 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010814; /* 0x300107ED: je 0x30010814 */ 4709 L_300107EF: 4710 edx = ebp + (-0x60); /* 0x300107EF: lea edx, [ebp - 0x60] */ 4711 PUSH32(esp, 0); /* 0x300107F2: push 0 */ 4712 PUSH32(esp, edx); /* 0x300107F4: push edx */ 4713 ecx = ebp + (-0x18); /* 0x300107F5: lea ecx, [ebp - 0x18] */ 4714 RECOMP_ICALL(0x30012AD0u); /* 0x300107F8: call 0x30012ad0 */ /* not lifted */ 4715 RECOMP_FLAGS_IN(); 4716 eax = MEM32(eax); /* 0x300107FD: mov eax, dword ptr [eax] */ 4717 ecx = ebp + (-0x14); /* 0x300107FF: lea ecx, [ebp - 0x14] */ 4718 PUSH32(esp, eax); /* 0x30010802: push eax */ 4719 PUSH32(esp, ecx); /* 0x30010803: push ecx */ 4720 ecx = ebp + (-0x3C); /* 0x30010804: lea ecx, [ebp - 0x3c] */ 4721 RECOMP_ICALL(0x30012670u); /* 0x30010807: call 0x30012670 */ /* not lifted */ 4722 RECOMP_FLAGS_IN(); 4723 /* cmp MEM32(ebp + (-0x18)), esi */ /* 0x3001080C: cmp dword ptr [ebp - 0x18], esi */ 4724 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(esi); 4725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4726 _flag_k = FK_CMP; 4727 RECOMP_BACKEDGE(); 4728 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EF; /* 0x3001080F: jne 0x300107ef */ 4729 L_30010811: 4730 eax = MEM32(ebp + (-0x38)); /* 0x30010811: mov eax, dword ptr [ebp - 0x38] */ 4731 L_30010814: 4732 PUSH32(esp, eax); /* 0x30010814: push eax */ 4733 RECOMP_ICALL(0x30018080u); /* 0x30010815: call 0x30018080 */ /* not lifted */ 4734 RECOMP_FLAGS_IN(); 4735 edx = MEM32(ebp + (-0x34)); /* 0x3001081A: mov edx, dword ptr [ebp - 0x34] */ 4736 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4737 ebx = 0; /* 0x3001081D: xor ebx, ebx */ 4738 _cf = 0; 4739 _flag_k = FK_TEST; 4740 PUSH32(esp, edx); /* 0x3001081F: push edx */ 4741 MEM32(ebp + (-0x38)) = ebx; /* 0x30010820: mov dword ptr [ebp - 0x38], ebx */ 4742 MEM32(ebp + (-0x2C)) = ebx; /* 0x30010823: mov dword ptr [ebp - 0x2c], ebx */ 4743 RECOMP_ICALL(0x30018080u); /* 0x30010826: call 0x30018080 */ /* not lifted */ 4744 RECOMP_FLAGS_IN(); 4745 esi = MEM32(ebp + (-0x4C)); /* 0x3001082B: mov esi, dword ptr [ebp - 0x4c] */ 4746 ecx = MEM32(ebp + (-0x40)); /* 0x3001082E: mov ecx, dword ptr [ebp - 0x40] */ 4747 MEM32(ebp + (-0x34)) = ebx; /* 0x30010831: mov dword ptr [ebp - 0x34], ebx */ 4748 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4749 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4750 esp = esp + 8; /* 0x30010834: add esp, 8 */ 4751 _flag_k = FK_ADD; 4752 eax = MEM32(esi); /* 0x30010837: mov eax, dword ptr [esi] */ 4753 /* cmp ecx, ebx */ /* 0x30010839: cmp ecx, ebx */ 4754 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4756 _flag_k = FK_CMP; 4757 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3001083B: mov dword ptr [ebp - 4], 0xffffffff */ 4758 MEM32(ebp + (-0x14)) = eax; /* 0x30010842: mov dword ptr [ebp - 0x14], eax */ 4759 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010882; /* 0x30010845: je 0x30010882 */ 4760 L_30010847: 4761 ecx = eax; /* 0x30010847: mov ecx, eax */ 4762 /* cmp eax, ecx */ /* 0x30010849: cmp eax, ecx */ 4763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4765 _flag_k = FK_CMP; 4766 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084B: jne 0x30010882 */ 4767 L_3001084D: 4768 /* cmp esi, esi */ /* 0x3001084D: cmp esi, esi */ 4769 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4771 _flag_k = FK_CMP; 4772 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084F: jne 0x30010882 */ 4773 L_30010851: 4774 eax = MEM32(esi + 0x4); /* 0x30010851: mov eax, dword ptr [esi + 4] */ 4775 ecx = ebp + (-0x50); /* 0x30010854: lea ecx, [ebp - 0x50] */ 4776 PUSH32(esp, eax); /* 0x30010857: push eax */ 4777 RECOMP_ICALL(0x30012B30u); /* 0x30010858: call 0x30012b30 */ /* not lifted */ 4778 RECOMP_FLAGS_IN(); 4779 ecx = MEM32(ebp + (-0x4C)); /* 0x3001085D: mov ecx, dword ptr [ebp - 0x4c] */ 4780 edx = MEM32(ebp + (-0x48)); /* 0x30010860: mov edx, dword ptr [ebp - 0x48] */ 4781 MEM32(ecx + 0x4) = edx; /* 0x30010863: mov dword ptr [ecx + 4], edx */ 4782 eax = MEM32(ebp + (-0x4C)); /* 0x30010866: mov eax, dword ptr [ebp - 0x4c] */ 4783 MEM32(ebp + (-0x40)) = ebx; /* 0x30010869: mov dword ptr [ebp - 0x40], ebx */ 4784 ecx = ebp + (-0x50); /* 0x3001086C: lea ecx, [ebp - 0x50] */ 4785 MEM32(eax) = eax; /* 0x3001086F: mov dword ptr [eax], eax */ 4786 eax = MEM32(ebp + (-0x4C)); /* 0x30010871: mov eax, dword ptr [ebp - 0x4c] */ 4787 MEM32(eax + 0x8) = eax; /* 0x30010874: mov dword ptr [eax + 8], eax */ 4788 eax = ebp + (-0x60); /* 0x30010877: lea eax, [ebp - 0x60] */ 4789 PUSH32(esp, eax); /* 0x3001087A: push eax */ 4790 RECOMP_ICALL(0x30011670u); /* 0x3001087B: call 0x30011670 */ /* not lifted */ 4791 RECOMP_FLAGS_IN(); 4792 goto L_300108A4; /* 0x30010880: jmp 0x300108a4 */ 4793 L_30010882: 4794 /* cmp eax, esi */ /* 0x30010882: cmp eax, esi */ 4795 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4797 _flag_k = FK_CMP; 4798 if (CMP_EQ(_flag_a, _flag_b)) goto L_300108A4; /* 0x30010884: je 0x300108a4 */ 4799 L_30010886: 4800 ecx = ebp + (-0x14); /* 0x30010886: lea ecx, [ebp - 0x14] */ 4801 edi = eax; /* 0x30010889: mov edi, eax */ 4802 RECOMP_ICALL(0x30011CD0u); /* 0x3001088B: call 0x30011cd0 */ /* not lifted */ 4803 RECOMP_FLAGS_IN(); 4804 ecx = ebp + 0x8; /* 0x30010890: lea ecx, [ebp + 8] */ 4805 PUSH32(esp, edi); /* 0x30010893: push edi */ 4806 PUSH32(esp, ecx); /* 0x30010894: push ecx */ 4807 ecx = ebp + (-0x50); /* 0x30010895: lea ecx, [ebp - 0x50] */ 4808 RECOMP_ICALL(0x30011FC0u); /* 0x30010898: call 0x30011fc0 */ /* not lifted */ 4809 RECOMP_FLAGS_IN(); 4810 eax = MEM32(ebp + (-0x14)); /* 0x3001089D: mov eax, dword ptr [ebp - 0x14] */ 4811 /* cmp eax, esi */ /* 0x300108A0: cmp eax, esi */ 4812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4814 _flag_k = FK_CMP; 4815 RECOMP_BACKEDGE(); 4816 if (CMP_NE(_flag_a, _flag_b)) goto L_30010886; /* 0x300108A2: jne 0x30010886 */ 4817 L_300108A4: 4818 edx = MEM32(ebp + (-0x4C)); /* 0x300108A4: mov edx, dword ptr [ebp - 0x4c] */ 4819 PUSH32(esp, edx); /* 0x300108A7: push edx */ 4820 RECOMP_ICALL(0x30018080u); /* 0x300108A8: call 0x30018080 */ /* not lifted */ 4821 RECOMP_FLAGS_IN(); 4822 eax = MEM32(ebp + (-0x48)); /* 0x300108AD: mov eax, dword ptr [ebp - 0x48] */ 4823 MEM32(ebp + (-0x4C)) = ebx; /* 0x300108B0: mov dword ptr [ebp - 0x4c], ebx */ 4824 PUSH32(esp, eax); /* 0x300108B3: push eax */ 4825 MEM32(ebp + (-0x40)) = ebx; /* 0x300108B4: mov dword ptr [ebp - 0x40], ebx */ 4826 RECOMP_ICALL(0x30018080u); /* 0x300108B7: call 0x30018080 */ /* not lifted */ 4827 RECOMP_FLAGS_IN(); 4828 ecx = MEM32(ebp + (-0xC)); /* 0x300108BC: mov ecx, dword ptr [ebp - 0xc] */ 4829 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4830 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4831 esp = esp + 8; /* 0x300108BF: add esp, 8 */ 4832 _flag_k = FK_ADD; 4833 MEM32(FS_BASE + (0)) = ecx; /* 0x300108C2: mov dword ptr fs:[0], ecx */ 4834 edi = POP32_VAL(esp); /* 0x300108C9: pop edi */ 4835 esi = POP32_VAL(esp); /* 0x300108CA: pop esi */ 4836 ebx = POP32_VAL(esp); /* 0x300108CB: pop ebx */ 4837 esp = ebp; /* 0x300108CC: mov esp, ebp */ 4838 ebp = POP32_VAL(esp); /* 0x300108CE: pop ebp */ 4839 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300108CF: ret 4 */ 4840 RECOMP_REGS_OUT(); 4841 } 4842 4843 void sub_300105C7(void) { 4844 int _fpu_cmp = 0; 4845 uint32_t _cf = 0; 4846 int _df = 1; 4847 uint32_t _flag_k = FK_NONE; 4848 uint32_t _flag_a = 0, _flag_b = 0; 4849 uint32_t _itail_tgt = 0; 4850 RECOMP_REGS_LOCALS 4851 RECOMP_ENTER(0x300105C7u); 4852 4853 L_300105C7: 4854 ecx = MEM32(ebp + (-0x4C)); /* 0x300105C7: mov ecx, dword ptr [ebp - 0x4c] */ 4855 /* cmp eax, ecx */ /* 0x300105CA: cmp eax, ecx */ 4856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4858 _flag_k = FK_CMP; 4859 if (CMP_EQ(_flag_a, _flag_b)) goto L_300105E3; /* 0x300105CC: je 0x300105e3 */ 4860 L_300105CE: 4861 eax = MEM32(eax + 0x10); /* 0x300105CE: mov eax, dword ptr [eax + 0x10] */ 4862 ecx = edi; /* 0x300105D1: mov ecx, edi */ 4863 PUSH32(esp, eax); /* 0x300105D3: push eax */ 4864 RECOMP_ICALL(esi); /* 0x300105D4: call esi */ 4865 RECOMP_FLAGS_IN(); 4866 ecx = ebp + (-0x10); /* 0x300105D6: lea ecx, [ebp - 0x10] */ 4867 RECOMP_ICALL(0x30011CD0u); /* 0x300105D9: call 0x30011cd0 */ /* not lifted */ 4868 RECOMP_FLAGS_IN(); 4869 eax = MEM32(ebp + (-0x10)); /* 0x300105DE: mov eax, dword ptr [ebp - 0x10] */ 4870 RECOMP_BACKEDGE(); 4871 goto L_300105C7; /* 0x300105E1: jmp 0x300105c7 */ 4872 L_300105E3: 4873 eax = MEM32(ecx); /* 0x300105E3: mov eax, dword ptr [ecx] */ 4874 L_300105E5: 4875 MEM32(ebp + (-0x10)) = eax; /* 0x300105E5: mov dword ptr [ebp - 0x10], eax */ 4876 L_300105E8: 4877 ecx = MEM32(ebp + (-0x4C)); /* 0x300105E8: mov ecx, dword ptr [ebp - 0x4c] */ 4878 /* cmp eax, ecx */ /* 0x300105EB: cmp eax, ecx */ 4879 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4881 _flag_k = FK_CMP; 4882 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001062D; /* 0x300105ED: je 0x3001062d */ 4883 L_300105EF: 4884 ecx = MEM32(eax + 0x14); /* 0x300105EF: mov ecx, dword ptr [eax + 0x14] */ 4885 PUSH32(esp, ecx); /* 0x300105F2: push ecx */ 4886 ecx = edi; /* 0x300105F3: mov ecx, edi */ 4887 RECOMP_ICALL(esi); /* 0x300105F5: call esi */ 4888 RECOMP_FLAGS_IN(); 4889 eax = MEM32(ebp + (-0x10)); /* 0x300105F7: mov eax, dword ptr [ebp - 0x10] */ 4890 ecx = MEM32(eax + 0x8); /* 0x300105FA: mov ecx, dword ptr [eax + 8] */ 4891 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x300105FD: mov dl, byte ptr [ecx + 0x1d] */ 4892 /* test LO8(edx), LO8(edx) */ /* 0x30010600: test dl, dl */ 4893 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4894 _cf = 0; 4895 _flag_k = FK_NARROW(FK_TEST, 24); 4896 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001060F; /* 0x30010602: jne 0x3001060f */ 4897 L_30010604: 4898 PUSH32(esp, ecx); /* 0x30010604: push ecx */ 4899 RECOMP_ICALL(0x30012B70u); /* 0x30010605: call 0x30012b70 */ /* not lifted */ 4900 RECOMP_FLAGS_IN(); 4901 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4903 esp = esp + 4; /* 0x3001060A: add esp, 4 */ 4904 _flag_k = FK_ADD; 4905 RECOMP_BACKEDGE(); 4906 goto L_300105E5; /* 0x3001060D: jmp 0x300105e5 */ 4907 L_3001060F: 4908 ecx = MEM32(eax + 0x4); /* 0x3001060F: mov ecx, dword ptr [eax + 4] */ 4909 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010612: cmp eax, dword ptr [ecx + 8] */ 4910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 4911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4912 _flag_k = FK_CMP; 4913 if (CMP_NE(_flag_a, _flag_b)) goto L_30010624; /* 0x30010615: jne 0x30010624 */ 4914 L_30010617: 4915 eax = ecx; /* 0x30010617: mov eax, ecx */ 4916 MEM32(ebp + (-0x10)) = eax; /* 0x30010619: mov dword ptr [ebp - 0x10], eax */ 4917 ecx = MEM32(ecx + 0x4); /* 0x3001061C: mov ecx, dword ptr [ecx + 4] */ 4918 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3001061F: cmp eax, dword ptr [ecx + 8] */ 4919 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 4920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4921 _flag_k = FK_CMP; 4922 RECOMP_BACKEDGE(); 4923 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010617; /* 0x30010622: je 0x30010617 */ 4924 L_30010624: 4925 /* cmp MEM32(eax + 0x8), ecx */ /* 0x30010624: cmp dword ptr [eax + 8], ecx */ 4926 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 4927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4928 _flag_k = FK_CMP; 4929 RECOMP_BACKEDGE(); 4930 if (CMP_EQ(_flag_a, _flag_b)) goto L_300105E8; /* 0x30010627: je 0x300105e8 */ 4931 L_30010629: 4932 eax = ecx; /* 0x30010629: mov eax, ecx */ 4933 RECOMP_BACKEDGE(); 4934 goto L_300105E5; /* 0x3001062B: jmp 0x300105e5 */ 4935 L_3001062D: 4936 eax = MEM32(ecx); /* 0x3001062D: mov eax, dword ptr [ecx] */ 4937 L_3001062F: 4938 MEM32(ebp + (-0x10)) = eax; /* 0x3001062F: mov dword ptr [ebp - 0x10], eax */ 4939 L_30010632: 4940 /* cmp eax, MEM32(ebp + (-0x4C)) */ /* 0x30010632: cmp eax, dword ptr [ebp - 0x4c] */ 4941 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x4C))); 4942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4943 _flag_k = FK_CMP; 4944 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010682; /* 0x30010635: je 0x30010682 */ 4945 L_30010637: 4946 edx = MEM32(eax + 0x18); /* 0x30010637: mov edx, dword ptr [eax + 0x18] */ 4947 ecx = edi; /* 0x3001063A: mov ecx, edi */ 4948 PUSH32(esp, edx); /* 0x3001063C: push edx */ 4949 RECOMP_ICALL(esi); /* 0x3001063D: call esi */ 4950 RECOMP_FLAGS_IN(); 4951 eax = MEM32(ebp + (-0x10)); /* 0x3001063F: mov eax, dword ptr [ebp - 0x10] */ 4952 ecx = MEM32(eax + 0x8); /* 0x30010642: mov ecx, dword ptr [eax + 8] */ 4953 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x30010645: mov dl, byte ptr [ecx + 0x1d] */ 4954 /* test LO8(edx), LO8(edx) */ /* 0x30010648: test dl, dl */ 4955 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4956 _cf = 0; 4957 _flag_k = FK_NARROW(FK_TEST, 24); 4958 if (TEST_NZ(_flag_a, _flag_b)) goto L_30010664; /* 0x3001064A: jne 0x30010664 */ 4959 L_3001064C: 4960 eax = ecx; /* 0x3001064C: mov eax, ecx */ 4961 ecx = MEM32(eax); /* 0x3001064E: mov ecx, dword ptr [eax] */ 4962 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x30010650: mov dl, byte ptr [ecx + 0x1d] */ 4963 /* test LO8(edx), LO8(edx) */ /* 0x30010653: test dl, dl */ 4964 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4965 _cf = 0; 4966 _flag_k = FK_NARROW(FK_TEST, 24); 4967 RECOMP_BACKEDGE(); 4968 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001062F; /* 0x30010655: jne 0x3001062f */ 4969 L_30010657: 4970 eax = ecx; /* 0x30010657: mov eax, ecx */ 4971 ecx = MEM32(eax); /* 0x30010659: mov ecx, dword ptr [eax] */ 4972 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x3001065B: mov dl, byte ptr [ecx + 0x1d] */ 4973 /* test LO8(edx), LO8(edx) */ /* 0x3001065E: test dl, dl */ 4974 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4975 _cf = 0; 4976 _flag_k = FK_NARROW(FK_TEST, 24); 4977 RECOMP_BACKEDGE(); 4978 if (TEST_Z(_flag_a, _flag_b)) goto L_30010657; /* 0x30010660: je 0x30010657 */ 4979 L_30010662: 4980 RECOMP_BACKEDGE(); 4981 goto L_3001062F; /* 0x30010662: jmp 0x3001062f */ 4982 L_30010664: 4983 ecx = MEM32(eax + 0x4); /* 0x30010664: mov ecx, dword ptr [eax + 4] */ 4984 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010667: cmp eax, dword ptr [ecx + 8] */ 4985 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 4986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4987 _flag_k = FK_CMP; 4988 if (CMP_NE(_flag_a, _flag_b)) goto L_30010679; /* 0x3001066A: jne 0x30010679 */ 4989 L_3001066C: 4990 eax = ecx; /* 0x3001066C: mov eax, ecx */ 4991 MEM32(ebp + (-0x10)) = eax; /* 0x3001066E: mov dword ptr [ebp - 0x10], eax */ 4992 ecx = MEM32(ecx + 0x4); /* 0x30010671: mov ecx, dword ptr [ecx + 4] */ 4993 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010674: cmp eax, dword ptr [ecx + 8] */ 4994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 4995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4996 _flag_k = FK_CMP; 4997 RECOMP_BACKEDGE(); 4998 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001066C; /* 0x30010677: je 0x3001066c */ 4999 L_30010679: 5000 /* cmp MEM32(eax + 0x8), ecx */ /* 0x30010679: cmp dword ptr [eax + 8], ecx */ 5001 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 5002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5003 _flag_k = FK_CMP; 5004 RECOMP_BACKEDGE(); 5005 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010632; /* 0x3001067C: je 0x30010632 */ 5006 L_3001067E: 5007 eax = ecx; /* 0x3001067E: mov eax, ecx */ 5008 RECOMP_BACKEDGE(); 5009 goto L_3001062F; /* 0x30010680: jmp 0x3001062f */ 5010 L_30010682: 5011 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x30010682: mov al, byte ptr [ebp + 0xb] */ 5012 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x30010685: mov cl, byte ptr [ebp + 0xb] */ 5013 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5014 esi = 0; /* 0x30010688: xor esi, esi */ 5015 _cf = 0; 5016 _flag_k = FK_TEST; 5017 PUSH32(esp, 0x18u); /* 0x3001068A: push 0x18 */ 5018 MEM32(ebx + 0x20) = esi; /* 0x3001068C: mov dword ptr [ebx + 0x20], esi */ 5019 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x3001068F: mov byte ptr [ebp - 0x3c], al */ 5020 MEM8(ebp + (-0x3B)) = (uint8_t)(LO8(ecx)); /* 0x30010692: mov byte ptr [ebp - 0x3b], cl */ 5021 MEM8(ebp + (-0x30)) = (uint8_t)(0); /* 0x30010695: mov byte ptr [ebp - 0x30], 0 */ 5022 RECOMP_ICALL(0x300180A8u); /* 0x30010699: call 0x300180a8 */ /* not lifted */ 5023 RECOMP_FLAGS_IN(); 5024 MEM32(eax + 0x4) = esi; /* 0x3001069E: mov dword ptr [eax + 4], esi */ 5025 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x300106A1: mov byte ptr [eax + 0x14], 1 */ 5026 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106A5: mov byte ptr [eax + 0x15], 0 */ 5027 MEM32(ebp + (-0x34)) = eax; /* 0x300106A9: mov dword ptr [ebp - 0x34], eax */ 5028 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x300106AC: mov byte ptr [eax + 0x15], 1 */ 5029 edx = MEM32(ebp + (-0x34)); /* 0x300106B0: mov edx, dword ptr [ebp - 0x34] */ 5030 PUSH32(esp, 0x18u); /* 0x300106B3: push 0x18 */ 5031 MEM32(edx) = esi; /* 0x300106B5: mov dword ptr [edx], esi */ 5032 eax = MEM32(ebp + (-0x34)); /* 0x300106B7: mov eax, dword ptr [ebp - 0x34] */ 5033 MEM32(eax + 0x8) = esi; /* 0x300106BA: mov dword ptr [eax + 8], esi */ 5034 esi = MEM32(ebp + (-0x34)); /* 0x300106BD: mov esi, dword ptr [ebp - 0x34] */ 5035 RECOMP_ICALL(0x300180A8u); /* 0x300106C0: call 0x300180a8 */ /* not lifted */ 5036 RECOMP_FLAGS_IN(); 5037 MEM32(eax + 0x4) = esi; /* 0x300106C5: mov dword ptr [eax + 4], esi */ 5038 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x300106C8: mov byte ptr [eax + 0x14], 0 */ 5039 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106CC: mov byte ptr [eax + 0x15], 0 */ 5040 MEM32(ebp + (-0x38)) = eax; /* 0x300106D0: mov dword ptr [ebp - 0x38], eax */ 5041 MEM32(eax) = eax; /* 0x300106D3: mov dword ptr [eax], eax */ 5042 eax = MEM32(ebp + (-0x38)); /* 0x300106D5: mov eax, dword ptr [ebp - 0x38] */ 5043 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5044 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5045 esp = esp + 8; /* 0x300106D8: add esp, 8 */ 5046 _flag_k = FK_ADD; 5047 MEM32(eax + 0x8) = eax; /* 0x300106DB: mov dword ptr [eax + 8], eax */ 5048 MEM32(ebp + (-0x2C)) = 0; /* 0x300106DE: mov dword ptr [ebp - 0x2c], 0 */ 5049 edx = MEM32(ebx + 0x8); /* 0x300106E5: mov edx, dword ptr [ebx + 8] */ 5050 ecx = ebp + (-0x3C); /* 0x300106E8: lea ecx, [ebp - 0x3c] */ 5051 PUSH32(esp, ecx); /* 0x300106EB: push ecx */ 5052 PUSH32(esp, edx); /* 0x300106EC: push edx */ 5053 PUSH32(esp, edi); /* 0x300106ED: push edi */ 5054 ecx = ebx; /* 0x300106EE: mov ecx, ebx */ 5055 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x300106F0: mov byte ptr [ebp - 4], 1 */ 5056 RECOMP_ICALL(0x300109A0u); /* 0x300106F4: call 0x300109a0 */ /* not lifted */ 5057 RECOMP_FLAGS_IN(); 5058 ecx = MEM32(ebx + 0x8); /* 0x300106F9: mov ecx, dword ptr [ebx + 8] */ 5059 eax = ebp + (-0x3C); /* 0x300106FC: lea eax, [ebp - 0x3c] */ 5060 PUSH32(esp, 0); /* 0x300106FF: push 0 */ 5061 PUSH32(esp, eax); /* 0x30010701: push eax */ 5062 PUSH32(esp, ecx); /* 0x30010702: push ecx */ 5063 PUSH32(esp, edi); /* 0x30010703: push edi */ 5064 ecx = ebx; /* 0x30010704: mov ecx, ebx */ 5065 RECOMP_ICALL(0x30010E20u); /* 0x30010706: call 0x30010e20 */ /* not lifted */ 5066 RECOMP_FLAGS_IN(); 5067 edi = MEM32(ebp + (-0x18)); /* 0x3001070B: mov edi, dword ptr [ebp - 0x18] */ 5068 esi = MEM32(edi + 0x4); /* 0x3001070E: mov esi, dword ptr [edi + 4] */ 5069 ecx = MEM32(edi + 0x10); /* 0x30010711: mov ecx, dword ptr [edi + 0x10] */ 5070 /* test ecx, ecx */ /* 0x30010714: test ecx, ecx */ 5071 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5072 _cf = 0; 5073 _flag_k = FK_TEST; 5074 eax = MEM32(esi); /* 0x30010716: mov eax, dword ptr [esi] */ 5075 MEM32(ebp + (-0x18)) = eax; /* 0x30010718: mov dword ptr [ebp - 0x18], eax */ 5076 if (TEST_Z(_flag_a, _flag_b)) goto L_3001077A; /* 0x3001071B: je 0x3001077a */ 5077 L_3001071D: 5078 ecx = eax; /* 0x3001071D: mov ecx, eax */ 5079 /* cmp eax, ecx */ /* 0x3001071F: cmp eax, ecx */ 5080 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5081 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5082 _flag_k = FK_CMP; 5083 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010721: jne 0x3001077a */ 5084 L_30010723: 5085 /* cmp esi, esi */ /* 0x30010723: cmp esi, esi */ 5086 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5088 _flag_k = FK_CMP; 5089 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010725: jne 0x3001077a */ 5090 L_30010727: 5091 esi = MEM32(esi + 0x4); /* 0x30010727: mov esi, dword ptr [esi + 4] */ 5092 eax = MEM32(edi + 0x8); /* 0x3001072A: mov eax, dword ptr [edi + 8] */ 5093 /* cmp esi, eax */ /* 0x3001072D: cmp esi, eax */ 5094 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5096 _flag_k = FK_CMP; 5097 ebx = esi; /* 0x3001072F: mov ebx, esi */ 5098 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010752; /* 0x30010731: je 0x30010752 */ 5099 L_30010733: 5100 edx = MEM32(ebx + 0x8); /* 0x30010733: mov edx, dword ptr [ebx + 8] */ 5101 ecx = edi; /* 0x30010736: mov ecx, edi */ 5102 PUSH32(esp, edx); /* 0x30010738: push edx */ 5103 RECOMP_ICALL(0x30012380u); /* 0x30010739: call 0x30012380 */ /* not lifted */ 5104 RECOMP_FLAGS_IN(); 5105 ebx = MEM32(ebx); /* 0x3001073E: mov ebx, dword ptr [ebx] */ 5106 PUSH32(esp, esi); /* 0x30010740: push esi */ 5107 RECOMP_ICALL(0x30018080u); /* 0x30010741: call 0x30018080 */ /* not lifted */ 5108 RECOMP_FLAGS_IN(); 5109 eax = MEM32(edi + 0x8); /* 0x30010746: mov eax, dword ptr [edi + 8] */ 5110 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5111 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5112 esp = esp + 4; /* 0x30010749: add esp, 4 */ 5113 _flag_k = FK_ADD; 5114 /* cmp ebx, eax */ /* 0x3001074C: cmp ebx, eax */ 5115 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 5116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5117 _flag_k = FK_CMP; 5118 esi = ebx; /* 0x3001074E: mov esi, ebx */ 5119 RECOMP_BACKEDGE(); 5120 if (CMP_NE(_flag_a, _flag_b)) goto L_30010733; /* 0x30010750: jne 0x30010733 */ 5121 L_30010752: 5122 eax = MEM32(edi + 0x4); /* 0x30010752: mov eax, dword ptr [edi + 4] */ 5123 ecx = MEM32(edi + 0x8); /* 0x30010755: mov ecx, dword ptr [edi + 8] */ 5124 edx = ebp + (-0x60); /* 0x30010758: lea edx, [ebp - 0x60] */ 5125 MEM32(eax + 0x4) = ecx; /* 0x3001075B: mov dword ptr [eax + 4], ecx */ 5126 eax = MEM32(edi + 0x4); /* 0x3001075E: mov eax, dword ptr [edi + 4] */ 5127 MEM32(edi + 0x10) = 0; /* 0x30010761: mov dword ptr [edi + 0x10], 0 */ 5128 PUSH32(esp, edx); /* 0x30010768: push edx */ 5129 MEM32(eax) = eax; /* 0x30010769: mov dword ptr [eax], eax */ 5130 eax = MEM32(edi + 0x4); /* 0x3001076B: mov eax, dword ptr [edi + 4] */ 5131 ecx = edi; /* 0x3001076E: mov ecx, edi */ 5132 MEM32(eax + 0x8) = eax; /* 0x30010770: mov dword ptr [eax + 8], eax */ 5133 RECOMP_ICALL(0x30011670u); /* 0x30010773: call 0x30011670 */ /* not lifted */ 5134 RECOMP_FLAGS_IN(); 5135 goto L_3001079B; /* 0x30010778: jmp 0x3001079b */ 5136 L_3001077A: 5137 /* cmp eax, esi */ /* 0x3001077A: cmp eax, esi */ 5138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5140 _flag_k = FK_CMP; 5141 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001079B; /* 0x3001077C: je 0x3001079b */ 5142 L_3001077E: 5143 ecx = ebp + (-0x18); /* 0x3001077E: lea ecx, [ebp - 0x18] */ 5144 ebx = eax; /* 0x30010781: mov ebx, eax */ 5145 RECOMP_ICALL(0x30011CD0u); /* 0x30010783: call 0x30011cd0 */ /* not lifted */ 5146 RECOMP_FLAGS_IN(); 5147 eax = ebp + (-0x60); /* 0x30010788: lea eax, [ebp - 0x60] */ 5148 PUSH32(esp, ebx); /* 0x3001078B: push ebx */ 5149 PUSH32(esp, eax); /* 0x3001078C: push eax */ 5150 ecx = edi; /* 0x3001078D: mov ecx, edi */ 5151 RECOMP_ICALL(0x30011FC0u); /* 0x3001078F: call 0x30011fc0 */ /* not lifted */ 5152 RECOMP_FLAGS_IN(); 5153 eax = MEM32(ebp + (-0x18)); /* 0x30010794: mov eax, dword ptr [ebp - 0x18] */ 5154 /* cmp eax, esi */ /* 0x30010797: cmp eax, esi */ 5155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5157 _flag_k = FK_CMP; 5158 RECOMP_BACKEDGE(); 5159 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077E; /* 0x30010799: jne 0x3001077e */ 5160 L_3001079B: 5161 eax = MEM32(ebp + (-0x38)); /* 0x3001079B: mov eax, dword ptr [ebp - 0x38] */ 5162 edx = MEM32(ebp + (-0x2C)); /* 0x3001079E: mov edx, dword ptr [ebp - 0x2c] */ 5163 /* test edx, edx */ /* 0x300107A1: test edx, edx */ 5164 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 5165 _cf = 0; 5166 _flag_k = FK_TEST; 5167 ecx = MEM32(eax); /* 0x300107A3: mov ecx, dword ptr [eax] */ 5168 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x300107A5: mov byte ptr [ebp - 4], 0 */ 5169 esi = eax; /* 0x300107A9: mov esi, eax */ 5170 MEM32(ebp + (-0x18)) = ecx; /* 0x300107AB: mov dword ptr [ebp - 0x18], ecx */ 5171 if (TEST_Z(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107AE: je 0x300107eb */ 5172 L_300107B0: 5173 edx = ecx; /* 0x300107B0: mov edx, ecx */ 5174 /* cmp ecx, edx */ /* 0x300107B2: cmp ecx, edx */ 5175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5177 _flag_k = FK_CMP; 5178 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107B4: jne 0x300107eb */ 5179 L_300107B6: 5180 ecx = MEM32(eax + 0x4); /* 0x300107B6: mov ecx, dword ptr [eax + 4] */ 5181 PUSH32(esp, ecx); /* 0x300107B9: push ecx */ 5182 ecx = ebp + (-0x3C); /* 0x300107BA: lea ecx, [ebp - 0x3c] */ 5183 RECOMP_ICALL(0x30012A30u); /* 0x300107BD: call 0x30012a30 */ /* not lifted */ 5184 RECOMP_FLAGS_IN(); 5185 edx = MEM32(ebp + (-0x38)); /* 0x300107C2: mov edx, dword ptr [ebp - 0x38] */ 5186 eax = MEM32(ebp + (-0x34)); /* 0x300107C5: mov eax, dword ptr [ebp - 0x34] */ 5187 ecx = ebp + (-0x60); /* 0x300107C8: lea ecx, [ebp - 0x60] */ 5188 MEM32(edx + 0x4) = eax; /* 0x300107CB: mov dword ptr [edx + 4], eax */ 5189 eax = MEM32(ebp + (-0x38)); /* 0x300107CE: mov eax, dword ptr [ebp - 0x38] */ 5190 MEM32(ebp + (-0x2C)) = 0; /* 0x300107D1: mov dword ptr [ebp - 0x2c], 0 */ 5191 PUSH32(esp, ecx); /* 0x300107D8: push ecx */ 5192 MEM32(eax) = eax; /* 0x300107D9: mov dword ptr [eax], eax */ 5193 eax = MEM32(ebp + (-0x38)); /* 0x300107DB: mov eax, dword ptr [ebp - 0x38] */ 5194 ecx = ebp + (-0x3C); /* 0x300107DE: lea ecx, [ebp - 0x3c] */ 5195 MEM32(eax + 0x8) = eax; /* 0x300107E1: mov dword ptr [eax + 8], eax */ 5196 RECOMP_ICALL(0x30011670u); /* 0x300107E4: call 0x30011670 */ /* not lifted */ 5197 RECOMP_FLAGS_IN(); 5198 goto L_30010811; /* 0x300107E9: jmp 0x30010811 */ 5199 L_300107EB: 5200 /* cmp ecx, eax */ /* 0x300107EB: cmp ecx, eax */ 5201 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5203 _flag_k = FK_CMP; 5204 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010814; /* 0x300107ED: je 0x30010814 */ 5205 L_300107EF: 5206 edx = ebp + (-0x60); /* 0x300107EF: lea edx, [ebp - 0x60] */ 5207 PUSH32(esp, 0); /* 0x300107F2: push 0 */ 5208 PUSH32(esp, edx); /* 0x300107F4: push edx */ 5209 ecx = ebp + (-0x18); /* 0x300107F5: lea ecx, [ebp - 0x18] */ 5210 RECOMP_ICALL(0x30012AD0u); /* 0x300107F8: call 0x30012ad0 */ /* not lifted */ 5211 RECOMP_FLAGS_IN(); 5212 eax = MEM32(eax); /* 0x300107FD: mov eax, dword ptr [eax] */ 5213 ecx = ebp + (-0x14); /* 0x300107FF: lea ecx, [ebp - 0x14] */ 5214 PUSH32(esp, eax); /* 0x30010802: push eax */ 5215 PUSH32(esp, ecx); /* 0x30010803: push ecx */ 5216 ecx = ebp + (-0x3C); /* 0x30010804: lea ecx, [ebp - 0x3c] */ 5217 RECOMP_ICALL(0x30012670u); /* 0x30010807: call 0x30012670 */ /* not lifted */ 5218 RECOMP_FLAGS_IN(); 5219 /* cmp MEM32(ebp + (-0x18)), esi */ /* 0x3001080C: cmp dword ptr [ebp - 0x18], esi */ 5220 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(esi); 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_300107EF; /* 0x3001080F: jne 0x300107ef */ 5225 L_30010811: 5226 eax = MEM32(ebp + (-0x38)); /* 0x30010811: mov eax, dword ptr [ebp - 0x38] */ 5227 L_30010814: 5228 PUSH32(esp, eax); /* 0x30010814: push eax */ 5229 RECOMP_ICALL(0x30018080u); /* 0x30010815: call 0x30018080 */ /* not lifted */ 5230 RECOMP_FLAGS_IN(); 5231 edx = MEM32(ebp + (-0x34)); /* 0x3001081A: mov edx, dword ptr [ebp - 0x34] */ 5232 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5233 ebx = 0; /* 0x3001081D: xor ebx, ebx */ 5234 _cf = 0; 5235 _flag_k = FK_TEST; 5236 PUSH32(esp, edx); /* 0x3001081F: push edx */ 5237 MEM32(ebp + (-0x38)) = ebx; /* 0x30010820: mov dword ptr [ebp - 0x38], ebx */ 5238 MEM32(ebp + (-0x2C)) = ebx; /* 0x30010823: mov dword ptr [ebp - 0x2c], ebx */ 5239 RECOMP_ICALL(0x30018080u); /* 0x30010826: call 0x30018080 */ /* not lifted */ 5240 RECOMP_FLAGS_IN(); 5241 esi = MEM32(ebp + (-0x4C)); /* 0x3001082B: mov esi, dword ptr [ebp - 0x4c] */ 5242 ecx = MEM32(ebp + (-0x40)); /* 0x3001082E: mov ecx, dword ptr [ebp - 0x40] */ 5243 MEM32(ebp + (-0x34)) = ebx; /* 0x30010831: mov dword ptr [ebp - 0x34], ebx */ 5244 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5245 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5246 esp = esp + 8; /* 0x30010834: add esp, 8 */ 5247 _flag_k = FK_ADD; 5248 eax = MEM32(esi); /* 0x30010837: mov eax, dword ptr [esi] */ 5249 /* cmp ecx, ebx */ /* 0x30010839: cmp ecx, ebx */ 5250 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5252 _flag_k = FK_CMP; 5253 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3001083B: mov dword ptr [ebp - 4], 0xffffffff */ 5254 MEM32(ebp + (-0x14)) = eax; /* 0x30010842: mov dword ptr [ebp - 0x14], eax */ 5255 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010882; /* 0x30010845: je 0x30010882 */ 5256 L_30010847: 5257 ecx = eax; /* 0x30010847: mov ecx, eax */ 5258 /* cmp eax, ecx */ /* 0x30010849: cmp eax, ecx */ 5259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5261 _flag_k = FK_CMP; 5262 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084B: jne 0x30010882 */ 5263 L_3001084D: 5264 /* cmp esi, esi */ /* 0x3001084D: cmp esi, esi */ 5265 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5267 _flag_k = FK_CMP; 5268 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084F: jne 0x30010882 */ 5269 L_30010851: 5270 eax = MEM32(esi + 0x4); /* 0x30010851: mov eax, dword ptr [esi + 4] */ 5271 ecx = ebp + (-0x50); /* 0x30010854: lea ecx, [ebp - 0x50] */ 5272 PUSH32(esp, eax); /* 0x30010857: push eax */ 5273 RECOMP_ICALL(0x30012B30u); /* 0x30010858: call 0x30012b30 */ /* not lifted */ 5274 RECOMP_FLAGS_IN(); 5275 ecx = MEM32(ebp + (-0x4C)); /* 0x3001085D: mov ecx, dword ptr [ebp - 0x4c] */ 5276 edx = MEM32(ebp + (-0x48)); /* 0x30010860: mov edx, dword ptr [ebp - 0x48] */ 5277 MEM32(ecx + 0x4) = edx; /* 0x30010863: mov dword ptr [ecx + 4], edx */ 5278 eax = MEM32(ebp + (-0x4C)); /* 0x30010866: mov eax, dword ptr [ebp - 0x4c] */ 5279 MEM32(ebp + (-0x40)) = ebx; /* 0x30010869: mov dword ptr [ebp - 0x40], ebx */ 5280 ecx = ebp + (-0x50); /* 0x3001086C: lea ecx, [ebp - 0x50] */ 5281 MEM32(eax) = eax; /* 0x3001086F: mov dword ptr [eax], eax */ 5282 eax = MEM32(ebp + (-0x4C)); /* 0x30010871: mov eax, dword ptr [ebp - 0x4c] */ 5283 MEM32(eax + 0x8) = eax; /* 0x30010874: mov dword ptr [eax + 8], eax */ 5284 eax = ebp + (-0x60); /* 0x30010877: lea eax, [ebp - 0x60] */ 5285 PUSH32(esp, eax); /* 0x3001087A: push eax */ 5286 RECOMP_ICALL(0x30011670u); /* 0x3001087B: call 0x30011670 */ /* not lifted */ 5287 RECOMP_FLAGS_IN(); 5288 goto L_300108A4; /* 0x30010880: jmp 0x300108a4 */ 5289 L_30010882: 5290 /* cmp eax, esi */ /* 0x30010882: cmp eax, esi */ 5291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5293 _flag_k = FK_CMP; 5294 if (CMP_EQ(_flag_a, _flag_b)) goto L_300108A4; /* 0x30010884: je 0x300108a4 */ 5295 L_30010886: 5296 ecx = ebp + (-0x14); /* 0x30010886: lea ecx, [ebp - 0x14] */ 5297 edi = eax; /* 0x30010889: mov edi, eax */ 5298 RECOMP_ICALL(0x30011CD0u); /* 0x3001088B: call 0x30011cd0 */ /* not lifted */ 5299 RECOMP_FLAGS_IN(); 5300 ecx = ebp + 0x8; /* 0x30010890: lea ecx, [ebp + 8] */ 5301 PUSH32(esp, edi); /* 0x30010893: push edi */ 5302 PUSH32(esp, ecx); /* 0x30010894: push ecx */ 5303 ecx = ebp + (-0x50); /* 0x30010895: lea ecx, [ebp - 0x50] */ 5304 RECOMP_ICALL(0x30011FC0u); /* 0x30010898: call 0x30011fc0 */ /* not lifted */ 5305 RECOMP_FLAGS_IN(); 5306 eax = MEM32(ebp + (-0x14)); /* 0x3001089D: mov eax, dword ptr [ebp - 0x14] */ 5307 /* cmp eax, esi */ /* 0x300108A0: cmp eax, esi */ 5308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5310 _flag_k = FK_CMP; 5311 RECOMP_BACKEDGE(); 5312 if (CMP_NE(_flag_a, _flag_b)) goto L_30010886; /* 0x300108A2: jne 0x30010886 */ 5313 L_300108A4: 5314 edx = MEM32(ebp + (-0x4C)); /* 0x300108A4: mov edx, dword ptr [ebp - 0x4c] */ 5315 PUSH32(esp, edx); /* 0x300108A7: push edx */ 5316 RECOMP_ICALL(0x30018080u); /* 0x300108A8: call 0x30018080 */ /* not lifted */ 5317 RECOMP_FLAGS_IN(); 5318 eax = MEM32(ebp + (-0x48)); /* 0x300108AD: mov eax, dword ptr [ebp - 0x48] */ 5319 MEM32(ebp + (-0x4C)) = ebx; /* 0x300108B0: mov dword ptr [ebp - 0x4c], ebx */ 5320 PUSH32(esp, eax); /* 0x300108B3: push eax */ 5321 MEM32(ebp + (-0x40)) = ebx; /* 0x300108B4: mov dword ptr [ebp - 0x40], ebx */ 5322 RECOMP_ICALL(0x30018080u); /* 0x300108B7: call 0x30018080 */ /* not lifted */ 5323 RECOMP_FLAGS_IN(); 5324 ecx = MEM32(ebp + (-0xC)); /* 0x300108BC: mov ecx, dword ptr [ebp - 0xc] */ 5325 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5326 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5327 esp = esp + 8; /* 0x300108BF: add esp, 8 */ 5328 _flag_k = FK_ADD; 5329 MEM32(FS_BASE + (0)) = ecx; /* 0x300108C2: mov dword ptr fs:[0], ecx */ 5330 edi = POP32_VAL(esp); /* 0x300108C9: pop edi */ 5331 esi = POP32_VAL(esp); /* 0x300108CA: pop esi */ 5332 ebx = POP32_VAL(esp); /* 0x300108CB: pop ebx */ 5333 esp = ebp; /* 0x300108CC: mov esp, ebp */ 5334 ebp = POP32_VAL(esp); /* 0x300108CE: pop ebp */ 5335 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300108CF: ret 4 */ 5336 RECOMP_REGS_OUT(); 5337 } 5338 5339 void sub_300105E5(void) { 5340 int _fpu_cmp = 0; 5341 uint32_t _cf = 0; 5342 int _df = 1; 5343 uint32_t _flag_k = FK_NONE; 5344 uint32_t _flag_a = 0, _flag_b = 0; 5345 uint32_t _itail_tgt = 0; 5346 RECOMP_REGS_LOCALS 5347 RECOMP_ENTER(0x300105E5u); 5348 5349 L_300105E5: 5350 MEM32(ebp + (-0x10)) = eax; /* 0x300105E5: mov dword ptr [ebp - 0x10], eax */ 5351 L_300105E8: 5352 ecx = MEM32(ebp + (-0x4C)); /* 0x300105E8: mov ecx, dword ptr [ebp - 0x4c] */ 5353 /* cmp eax, ecx */ /* 0x300105EB: cmp eax, ecx */ 5354 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5356 _flag_k = FK_CMP; 5357 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001062D; /* 0x300105ED: je 0x3001062d */ 5358 L_300105EF: 5359 ecx = MEM32(eax + 0x14); /* 0x300105EF: mov ecx, dword ptr [eax + 0x14] */ 5360 PUSH32(esp, ecx); /* 0x300105F2: push ecx */ 5361 ecx = edi; /* 0x300105F3: mov ecx, edi */ 5362 RECOMP_ICALL(esi); /* 0x300105F5: call esi */ 5363 RECOMP_FLAGS_IN(); 5364 eax = MEM32(ebp + (-0x10)); /* 0x300105F7: mov eax, dword ptr [ebp - 0x10] */ 5365 ecx = MEM32(eax + 0x8); /* 0x300105FA: mov ecx, dword ptr [eax + 8] */ 5366 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x300105FD: mov dl, byte ptr [ecx + 0x1d] */ 5367 /* test LO8(edx), LO8(edx) */ /* 0x30010600: test dl, dl */ 5368 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5369 _cf = 0; 5370 _flag_k = FK_NARROW(FK_TEST, 24); 5371 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001060F; /* 0x30010602: jne 0x3001060f */ 5372 L_30010604: 5373 PUSH32(esp, ecx); /* 0x30010604: push ecx */ 5374 RECOMP_ICALL(0x30012B70u); /* 0x30010605: call 0x30012b70 */ /* not lifted */ 5375 RECOMP_FLAGS_IN(); 5376 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5377 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5378 esp = esp + 4; /* 0x3001060A: add esp, 4 */ 5379 _flag_k = FK_ADD; 5380 RECOMP_BACKEDGE(); 5381 goto L_300105E5; /* 0x3001060D: jmp 0x300105e5 */ 5382 L_3001060F: 5383 ecx = MEM32(eax + 0x4); /* 0x3001060F: mov ecx, dword ptr [eax + 4] */ 5384 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010612: cmp eax, dword ptr [ecx + 8] */ 5385 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 5386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5387 _flag_k = FK_CMP; 5388 if (CMP_NE(_flag_a, _flag_b)) goto L_30010624; /* 0x30010615: jne 0x30010624 */ 5389 L_30010617: 5390 eax = ecx; /* 0x30010617: mov eax, ecx */ 5391 MEM32(ebp + (-0x10)) = eax; /* 0x30010619: mov dword ptr [ebp - 0x10], eax */ 5392 ecx = MEM32(ecx + 0x4); /* 0x3001061C: mov ecx, dword ptr [ecx + 4] */ 5393 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3001061F: cmp eax, dword ptr [ecx + 8] */ 5394 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 5395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5396 _flag_k = FK_CMP; 5397 RECOMP_BACKEDGE(); 5398 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010617; /* 0x30010622: je 0x30010617 */ 5399 L_30010624: 5400 /* cmp MEM32(eax + 0x8), ecx */ /* 0x30010624: cmp dword ptr [eax + 8], ecx */ 5401 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 5402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5403 _flag_k = FK_CMP; 5404 RECOMP_BACKEDGE(); 5405 if (CMP_EQ(_flag_a, _flag_b)) goto L_300105E8; /* 0x30010627: je 0x300105e8 */ 5406 L_30010629: 5407 eax = ecx; /* 0x30010629: mov eax, ecx */ 5408 RECOMP_BACKEDGE(); 5409 goto L_300105E5; /* 0x3001062B: jmp 0x300105e5 */ 5410 L_3001062D: 5411 eax = MEM32(ecx); /* 0x3001062D: mov eax, dword ptr [ecx] */ 5412 L_3001062F: 5413 MEM32(ebp + (-0x10)) = eax; /* 0x3001062F: mov dword ptr [ebp - 0x10], eax */ 5414 L_30010632: 5415 /* cmp eax, MEM32(ebp + (-0x4C)) */ /* 0x30010632: cmp eax, dword ptr [ebp - 0x4c] */ 5416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x4C))); 5417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5418 _flag_k = FK_CMP; 5419 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010682; /* 0x30010635: je 0x30010682 */ 5420 L_30010637: 5421 edx = MEM32(eax + 0x18); /* 0x30010637: mov edx, dword ptr [eax + 0x18] */ 5422 ecx = edi; /* 0x3001063A: mov ecx, edi */ 5423 PUSH32(esp, edx); /* 0x3001063C: push edx */ 5424 RECOMP_ICALL(esi); /* 0x3001063D: call esi */ 5425 RECOMP_FLAGS_IN(); 5426 eax = MEM32(ebp + (-0x10)); /* 0x3001063F: mov eax, dword ptr [ebp - 0x10] */ 5427 ecx = MEM32(eax + 0x8); /* 0x30010642: mov ecx, dword ptr [eax + 8] */ 5428 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x30010645: mov dl, byte ptr [ecx + 0x1d] */ 5429 /* test LO8(edx), LO8(edx) */ /* 0x30010648: test dl, dl */ 5430 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5431 _cf = 0; 5432 _flag_k = FK_NARROW(FK_TEST, 24); 5433 if (TEST_NZ(_flag_a, _flag_b)) goto L_30010664; /* 0x3001064A: jne 0x30010664 */ 5434 L_3001064C: 5435 eax = ecx; /* 0x3001064C: mov eax, ecx */ 5436 ecx = MEM32(eax); /* 0x3001064E: mov ecx, dword ptr [eax] */ 5437 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x30010650: mov dl, byte ptr [ecx + 0x1d] */ 5438 /* test LO8(edx), LO8(edx) */ /* 0x30010653: test dl, dl */ 5439 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5440 _cf = 0; 5441 _flag_k = FK_NARROW(FK_TEST, 24); 5442 RECOMP_BACKEDGE(); 5443 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001062F; /* 0x30010655: jne 0x3001062f */ 5444 L_30010657: 5445 eax = ecx; /* 0x30010657: mov eax, ecx */ 5446 ecx = MEM32(eax); /* 0x30010659: mov ecx, dword ptr [eax] */ 5447 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x3001065B: mov dl, byte ptr [ecx + 0x1d] */ 5448 /* test LO8(edx), LO8(edx) */ /* 0x3001065E: test dl, dl */ 5449 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5450 _cf = 0; 5451 _flag_k = FK_NARROW(FK_TEST, 24); 5452 RECOMP_BACKEDGE(); 5453 if (TEST_Z(_flag_a, _flag_b)) goto L_30010657; /* 0x30010660: je 0x30010657 */ 5454 L_30010662: 5455 RECOMP_BACKEDGE(); 5456 goto L_3001062F; /* 0x30010662: jmp 0x3001062f */ 5457 L_30010664: 5458 ecx = MEM32(eax + 0x4); /* 0x30010664: mov ecx, dword ptr [eax + 4] */ 5459 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010667: cmp eax, dword ptr [ecx + 8] */ 5460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 5461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5462 _flag_k = FK_CMP; 5463 if (CMP_NE(_flag_a, _flag_b)) goto L_30010679; /* 0x3001066A: jne 0x30010679 */ 5464 L_3001066C: 5465 eax = ecx; /* 0x3001066C: mov eax, ecx */ 5466 MEM32(ebp + (-0x10)) = eax; /* 0x3001066E: mov dword ptr [ebp - 0x10], eax */ 5467 ecx = MEM32(ecx + 0x4); /* 0x30010671: mov ecx, dword ptr [ecx + 4] */ 5468 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010674: cmp eax, dword ptr [ecx + 8] */ 5469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 5470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5471 _flag_k = FK_CMP; 5472 RECOMP_BACKEDGE(); 5473 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001066C; /* 0x30010677: je 0x3001066c */ 5474 L_30010679: 5475 /* cmp MEM32(eax + 0x8), ecx */ /* 0x30010679: cmp dword ptr [eax + 8], ecx */ 5476 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 5477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5478 _flag_k = FK_CMP; 5479 RECOMP_BACKEDGE(); 5480 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010632; /* 0x3001067C: je 0x30010632 */ 5481 L_3001067E: 5482 eax = ecx; /* 0x3001067E: mov eax, ecx */ 5483 RECOMP_BACKEDGE(); 5484 goto L_3001062F; /* 0x30010680: jmp 0x3001062f */ 5485 L_30010682: 5486 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x30010682: mov al, byte ptr [ebp + 0xb] */ 5487 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x30010685: mov cl, byte ptr [ebp + 0xb] */ 5488 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5489 esi = 0; /* 0x30010688: xor esi, esi */ 5490 _cf = 0; 5491 _flag_k = FK_TEST; 5492 PUSH32(esp, 0x18u); /* 0x3001068A: push 0x18 */ 5493 MEM32(ebx + 0x20) = esi; /* 0x3001068C: mov dword ptr [ebx + 0x20], esi */ 5494 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x3001068F: mov byte ptr [ebp - 0x3c], al */ 5495 MEM8(ebp + (-0x3B)) = (uint8_t)(LO8(ecx)); /* 0x30010692: mov byte ptr [ebp - 0x3b], cl */ 5496 MEM8(ebp + (-0x30)) = (uint8_t)(0); /* 0x30010695: mov byte ptr [ebp - 0x30], 0 */ 5497 RECOMP_ICALL(0x300180A8u); /* 0x30010699: call 0x300180a8 */ /* not lifted */ 5498 RECOMP_FLAGS_IN(); 5499 MEM32(eax + 0x4) = esi; /* 0x3001069E: mov dword ptr [eax + 4], esi */ 5500 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x300106A1: mov byte ptr [eax + 0x14], 1 */ 5501 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106A5: mov byte ptr [eax + 0x15], 0 */ 5502 MEM32(ebp + (-0x34)) = eax; /* 0x300106A9: mov dword ptr [ebp - 0x34], eax */ 5503 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x300106AC: mov byte ptr [eax + 0x15], 1 */ 5504 edx = MEM32(ebp + (-0x34)); /* 0x300106B0: mov edx, dword ptr [ebp - 0x34] */ 5505 PUSH32(esp, 0x18u); /* 0x300106B3: push 0x18 */ 5506 MEM32(edx) = esi; /* 0x300106B5: mov dword ptr [edx], esi */ 5507 eax = MEM32(ebp + (-0x34)); /* 0x300106B7: mov eax, dword ptr [ebp - 0x34] */ 5508 MEM32(eax + 0x8) = esi; /* 0x300106BA: mov dword ptr [eax + 8], esi */ 5509 esi = MEM32(ebp + (-0x34)); /* 0x300106BD: mov esi, dword ptr [ebp - 0x34] */ 5510 RECOMP_ICALL(0x300180A8u); /* 0x300106C0: call 0x300180a8 */ /* not lifted */ 5511 RECOMP_FLAGS_IN(); 5512 MEM32(eax + 0x4) = esi; /* 0x300106C5: mov dword ptr [eax + 4], esi */ 5513 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x300106C8: mov byte ptr [eax + 0x14], 0 */ 5514 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106CC: mov byte ptr [eax + 0x15], 0 */ 5515 MEM32(ebp + (-0x38)) = eax; /* 0x300106D0: mov dword ptr [ebp - 0x38], eax */ 5516 MEM32(eax) = eax; /* 0x300106D3: mov dword ptr [eax], eax */ 5517 eax = MEM32(ebp + (-0x38)); /* 0x300106D5: mov eax, dword ptr [ebp - 0x38] */ 5518 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5519 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5520 esp = esp + 8; /* 0x300106D8: add esp, 8 */ 5521 _flag_k = FK_ADD; 5522 MEM32(eax + 0x8) = eax; /* 0x300106DB: mov dword ptr [eax + 8], eax */ 5523 MEM32(ebp + (-0x2C)) = 0; /* 0x300106DE: mov dword ptr [ebp - 0x2c], 0 */ 5524 edx = MEM32(ebx + 0x8); /* 0x300106E5: mov edx, dword ptr [ebx + 8] */ 5525 ecx = ebp + (-0x3C); /* 0x300106E8: lea ecx, [ebp - 0x3c] */ 5526 PUSH32(esp, ecx); /* 0x300106EB: push ecx */ 5527 PUSH32(esp, edx); /* 0x300106EC: push edx */ 5528 PUSH32(esp, edi); /* 0x300106ED: push edi */ 5529 ecx = ebx; /* 0x300106EE: mov ecx, ebx */ 5530 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x300106F0: mov byte ptr [ebp - 4], 1 */ 5531 RECOMP_ICALL(0x300109A0u); /* 0x300106F4: call 0x300109a0 */ /* not lifted */ 5532 RECOMP_FLAGS_IN(); 5533 ecx = MEM32(ebx + 0x8); /* 0x300106F9: mov ecx, dword ptr [ebx + 8] */ 5534 eax = ebp + (-0x3C); /* 0x300106FC: lea eax, [ebp - 0x3c] */ 5535 PUSH32(esp, 0); /* 0x300106FF: push 0 */ 5536 PUSH32(esp, eax); /* 0x30010701: push eax */ 5537 PUSH32(esp, ecx); /* 0x30010702: push ecx */ 5538 PUSH32(esp, edi); /* 0x30010703: push edi */ 5539 ecx = ebx; /* 0x30010704: mov ecx, ebx */ 5540 RECOMP_ICALL(0x30010E20u); /* 0x30010706: call 0x30010e20 */ /* not lifted */ 5541 RECOMP_FLAGS_IN(); 5542 edi = MEM32(ebp + (-0x18)); /* 0x3001070B: mov edi, dword ptr [ebp - 0x18] */ 5543 esi = MEM32(edi + 0x4); /* 0x3001070E: mov esi, dword ptr [edi + 4] */ 5544 ecx = MEM32(edi + 0x10); /* 0x30010711: mov ecx, dword ptr [edi + 0x10] */ 5545 /* test ecx, ecx */ /* 0x30010714: test ecx, ecx */ 5546 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5547 _cf = 0; 5548 _flag_k = FK_TEST; 5549 eax = MEM32(esi); /* 0x30010716: mov eax, dword ptr [esi] */ 5550 MEM32(ebp + (-0x18)) = eax; /* 0x30010718: mov dword ptr [ebp - 0x18], eax */ 5551 if (TEST_Z(_flag_a, _flag_b)) goto L_3001077A; /* 0x3001071B: je 0x3001077a */ 5552 L_3001071D: 5553 ecx = eax; /* 0x3001071D: mov ecx, eax */ 5554 /* cmp eax, ecx */ /* 0x3001071F: cmp eax, ecx */ 5555 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5557 _flag_k = FK_CMP; 5558 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010721: jne 0x3001077a */ 5559 L_30010723: 5560 /* cmp esi, esi */ /* 0x30010723: cmp esi, esi */ 5561 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5563 _flag_k = FK_CMP; 5564 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010725: jne 0x3001077a */ 5565 L_30010727: 5566 esi = MEM32(esi + 0x4); /* 0x30010727: mov esi, dword ptr [esi + 4] */ 5567 eax = MEM32(edi + 0x8); /* 0x3001072A: mov eax, dword ptr [edi + 8] */ 5568 /* cmp esi, eax */ /* 0x3001072D: cmp esi, eax */ 5569 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5571 _flag_k = FK_CMP; 5572 ebx = esi; /* 0x3001072F: mov ebx, esi */ 5573 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010752; /* 0x30010731: je 0x30010752 */ 5574 L_30010733: 5575 edx = MEM32(ebx + 0x8); /* 0x30010733: mov edx, dword ptr [ebx + 8] */ 5576 ecx = edi; /* 0x30010736: mov ecx, edi */ 5577 PUSH32(esp, edx); /* 0x30010738: push edx */ 5578 RECOMP_ICALL(0x30012380u); /* 0x30010739: call 0x30012380 */ /* not lifted */ 5579 RECOMP_FLAGS_IN(); 5580 ebx = MEM32(ebx); /* 0x3001073E: mov ebx, dword ptr [ebx] */ 5581 PUSH32(esp, esi); /* 0x30010740: push esi */ 5582 RECOMP_ICALL(0x30018080u); /* 0x30010741: call 0x30018080 */ /* not lifted */ 5583 RECOMP_FLAGS_IN(); 5584 eax = MEM32(edi + 0x8); /* 0x30010746: mov eax, dword ptr [edi + 8] */ 5585 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5587 esp = esp + 4; /* 0x30010749: add esp, 4 */ 5588 _flag_k = FK_ADD; 5589 /* cmp ebx, eax */ /* 0x3001074C: cmp ebx, eax */ 5590 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 5591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5592 _flag_k = FK_CMP; 5593 esi = ebx; /* 0x3001074E: mov esi, ebx */ 5594 RECOMP_BACKEDGE(); 5595 if (CMP_NE(_flag_a, _flag_b)) goto L_30010733; /* 0x30010750: jne 0x30010733 */ 5596 L_30010752: 5597 eax = MEM32(edi + 0x4); /* 0x30010752: mov eax, dword ptr [edi + 4] */ 5598 ecx = MEM32(edi + 0x8); /* 0x30010755: mov ecx, dword ptr [edi + 8] */ 5599 edx = ebp + (-0x60); /* 0x30010758: lea edx, [ebp - 0x60] */ 5600 MEM32(eax + 0x4) = ecx; /* 0x3001075B: mov dword ptr [eax + 4], ecx */ 5601 eax = MEM32(edi + 0x4); /* 0x3001075E: mov eax, dword ptr [edi + 4] */ 5602 MEM32(edi + 0x10) = 0; /* 0x30010761: mov dword ptr [edi + 0x10], 0 */ 5603 PUSH32(esp, edx); /* 0x30010768: push edx */ 5604 MEM32(eax) = eax; /* 0x30010769: mov dword ptr [eax], eax */ 5605 eax = MEM32(edi + 0x4); /* 0x3001076B: mov eax, dword ptr [edi + 4] */ 5606 ecx = edi; /* 0x3001076E: mov ecx, edi */ 5607 MEM32(eax + 0x8) = eax; /* 0x30010770: mov dword ptr [eax + 8], eax */ 5608 RECOMP_ICALL(0x30011670u); /* 0x30010773: call 0x30011670 */ /* not lifted */ 5609 RECOMP_FLAGS_IN(); 5610 goto L_3001079B; /* 0x30010778: jmp 0x3001079b */ 5611 L_3001077A: 5612 /* cmp eax, esi */ /* 0x3001077A: cmp eax, esi */ 5613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5615 _flag_k = FK_CMP; 5616 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001079B; /* 0x3001077C: je 0x3001079b */ 5617 L_3001077E: 5618 ecx = ebp + (-0x18); /* 0x3001077E: lea ecx, [ebp - 0x18] */ 5619 ebx = eax; /* 0x30010781: mov ebx, eax */ 5620 RECOMP_ICALL(0x30011CD0u); /* 0x30010783: call 0x30011cd0 */ /* not lifted */ 5621 RECOMP_FLAGS_IN(); 5622 eax = ebp + (-0x60); /* 0x30010788: lea eax, [ebp - 0x60] */ 5623 PUSH32(esp, ebx); /* 0x3001078B: push ebx */ 5624 PUSH32(esp, eax); /* 0x3001078C: push eax */ 5625 ecx = edi; /* 0x3001078D: mov ecx, edi */ 5626 RECOMP_ICALL(0x30011FC0u); /* 0x3001078F: call 0x30011fc0 */ /* not lifted */ 5627 RECOMP_FLAGS_IN(); 5628 eax = MEM32(ebp + (-0x18)); /* 0x30010794: mov eax, dword ptr [ebp - 0x18] */ 5629 /* cmp eax, esi */ /* 0x30010797: cmp eax, esi */ 5630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5632 _flag_k = FK_CMP; 5633 RECOMP_BACKEDGE(); 5634 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077E; /* 0x30010799: jne 0x3001077e */ 5635 L_3001079B: 5636 eax = MEM32(ebp + (-0x38)); /* 0x3001079B: mov eax, dword ptr [ebp - 0x38] */ 5637 edx = MEM32(ebp + (-0x2C)); /* 0x3001079E: mov edx, dword ptr [ebp - 0x2c] */ 5638 /* test edx, edx */ /* 0x300107A1: test edx, edx */ 5639 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 5640 _cf = 0; 5641 _flag_k = FK_TEST; 5642 ecx = MEM32(eax); /* 0x300107A3: mov ecx, dword ptr [eax] */ 5643 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x300107A5: mov byte ptr [ebp - 4], 0 */ 5644 esi = eax; /* 0x300107A9: mov esi, eax */ 5645 MEM32(ebp + (-0x18)) = ecx; /* 0x300107AB: mov dword ptr [ebp - 0x18], ecx */ 5646 if (TEST_Z(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107AE: je 0x300107eb */ 5647 L_300107B0: 5648 edx = ecx; /* 0x300107B0: mov edx, ecx */ 5649 /* cmp ecx, edx */ /* 0x300107B2: cmp ecx, edx */ 5650 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5652 _flag_k = FK_CMP; 5653 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107B4: jne 0x300107eb */ 5654 L_300107B6: 5655 ecx = MEM32(eax + 0x4); /* 0x300107B6: mov ecx, dword ptr [eax + 4] */ 5656 PUSH32(esp, ecx); /* 0x300107B9: push ecx */ 5657 ecx = ebp + (-0x3C); /* 0x300107BA: lea ecx, [ebp - 0x3c] */ 5658 RECOMP_ICALL(0x30012A30u); /* 0x300107BD: call 0x30012a30 */ /* not lifted */ 5659 RECOMP_FLAGS_IN(); 5660 edx = MEM32(ebp + (-0x38)); /* 0x300107C2: mov edx, dword ptr [ebp - 0x38] */ 5661 eax = MEM32(ebp + (-0x34)); /* 0x300107C5: mov eax, dword ptr [ebp - 0x34] */ 5662 ecx = ebp + (-0x60); /* 0x300107C8: lea ecx, [ebp - 0x60] */ 5663 MEM32(edx + 0x4) = eax; /* 0x300107CB: mov dword ptr [edx + 4], eax */ 5664 eax = MEM32(ebp + (-0x38)); /* 0x300107CE: mov eax, dword ptr [ebp - 0x38] */ 5665 MEM32(ebp + (-0x2C)) = 0; /* 0x300107D1: mov dword ptr [ebp - 0x2c], 0 */ 5666 PUSH32(esp, ecx); /* 0x300107D8: push ecx */ 5667 MEM32(eax) = eax; /* 0x300107D9: mov dword ptr [eax], eax */ 5668 eax = MEM32(ebp + (-0x38)); /* 0x300107DB: mov eax, dword ptr [ebp - 0x38] */ 5669 ecx = ebp + (-0x3C); /* 0x300107DE: lea ecx, [ebp - 0x3c] */ 5670 MEM32(eax + 0x8) = eax; /* 0x300107E1: mov dword ptr [eax + 8], eax */ 5671 RECOMP_ICALL(0x30011670u); /* 0x300107E4: call 0x30011670 */ /* not lifted */ 5672 RECOMP_FLAGS_IN(); 5673 goto L_30010811; /* 0x300107E9: jmp 0x30010811 */ 5674 L_300107EB: 5675 /* cmp ecx, eax */ /* 0x300107EB: cmp ecx, eax */ 5676 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5678 _flag_k = FK_CMP; 5679 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010814; /* 0x300107ED: je 0x30010814 */ 5680 L_300107EF: 5681 edx = ebp + (-0x60); /* 0x300107EF: lea edx, [ebp - 0x60] */ 5682 PUSH32(esp, 0); /* 0x300107F2: push 0 */ 5683 PUSH32(esp, edx); /* 0x300107F4: push edx */ 5684 ecx = ebp + (-0x18); /* 0x300107F5: lea ecx, [ebp - 0x18] */ 5685 RECOMP_ICALL(0x30012AD0u); /* 0x300107F8: call 0x30012ad0 */ /* not lifted */ 5686 RECOMP_FLAGS_IN(); 5687 eax = MEM32(eax); /* 0x300107FD: mov eax, dword ptr [eax] */ 5688 ecx = ebp + (-0x14); /* 0x300107FF: lea ecx, [ebp - 0x14] */ 5689 PUSH32(esp, eax); /* 0x30010802: push eax */ 5690 PUSH32(esp, ecx); /* 0x30010803: push ecx */ 5691 ecx = ebp + (-0x3C); /* 0x30010804: lea ecx, [ebp - 0x3c] */ 5692 RECOMP_ICALL(0x30012670u); /* 0x30010807: call 0x30012670 */ /* not lifted */ 5693 RECOMP_FLAGS_IN(); 5694 /* cmp MEM32(ebp + (-0x18)), esi */ /* 0x3001080C: cmp dword ptr [ebp - 0x18], esi */ 5695 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(esi); 5696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5697 _flag_k = FK_CMP; 5698 RECOMP_BACKEDGE(); 5699 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EF; /* 0x3001080F: jne 0x300107ef */ 5700 L_30010811: 5701 eax = MEM32(ebp + (-0x38)); /* 0x30010811: mov eax, dword ptr [ebp - 0x38] */ 5702 L_30010814: 5703 PUSH32(esp, eax); /* 0x30010814: push eax */ 5704 RECOMP_ICALL(0x30018080u); /* 0x30010815: call 0x30018080 */ /* not lifted */ 5705 RECOMP_FLAGS_IN(); 5706 edx = MEM32(ebp + (-0x34)); /* 0x3001081A: mov edx, dword ptr [ebp - 0x34] */ 5707 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5708 ebx = 0; /* 0x3001081D: xor ebx, ebx */ 5709 _cf = 0; 5710 _flag_k = FK_TEST; 5711 PUSH32(esp, edx); /* 0x3001081F: push edx */ 5712 MEM32(ebp + (-0x38)) = ebx; /* 0x30010820: mov dword ptr [ebp - 0x38], ebx */ 5713 MEM32(ebp + (-0x2C)) = ebx; /* 0x30010823: mov dword ptr [ebp - 0x2c], ebx */ 5714 RECOMP_ICALL(0x30018080u); /* 0x30010826: call 0x30018080 */ /* not lifted */ 5715 RECOMP_FLAGS_IN(); 5716 esi = MEM32(ebp + (-0x4C)); /* 0x3001082B: mov esi, dword ptr [ebp - 0x4c] */ 5717 ecx = MEM32(ebp + (-0x40)); /* 0x3001082E: mov ecx, dword ptr [ebp - 0x40] */ 5718 MEM32(ebp + (-0x34)) = ebx; /* 0x30010831: mov dword ptr [ebp - 0x34], ebx */ 5719 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5720 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5721 esp = esp + 8; /* 0x30010834: add esp, 8 */ 5722 _flag_k = FK_ADD; 5723 eax = MEM32(esi); /* 0x30010837: mov eax, dword ptr [esi] */ 5724 /* cmp ecx, ebx */ /* 0x30010839: cmp ecx, ebx */ 5725 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5727 _flag_k = FK_CMP; 5728 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3001083B: mov dword ptr [ebp - 4], 0xffffffff */ 5729 MEM32(ebp + (-0x14)) = eax; /* 0x30010842: mov dword ptr [ebp - 0x14], eax */ 5730 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010882; /* 0x30010845: je 0x30010882 */ 5731 L_30010847: 5732 ecx = eax; /* 0x30010847: mov ecx, eax */ 5733 /* cmp eax, ecx */ /* 0x30010849: cmp eax, ecx */ 5734 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5736 _flag_k = FK_CMP; 5737 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084B: jne 0x30010882 */ 5738 L_3001084D: 5739 /* cmp esi, esi */ /* 0x3001084D: cmp esi, esi */ 5740 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5742 _flag_k = FK_CMP; 5743 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084F: jne 0x30010882 */ 5744 L_30010851: 5745 eax = MEM32(esi + 0x4); /* 0x30010851: mov eax, dword ptr [esi + 4] */ 5746 ecx = ebp + (-0x50); /* 0x30010854: lea ecx, [ebp - 0x50] */ 5747 PUSH32(esp, eax); /* 0x30010857: push eax */ 5748 RECOMP_ICALL(0x30012B30u); /* 0x30010858: call 0x30012b30 */ /* not lifted */ 5749 RECOMP_FLAGS_IN(); 5750 ecx = MEM32(ebp + (-0x4C)); /* 0x3001085D: mov ecx, dword ptr [ebp - 0x4c] */ 5751 edx = MEM32(ebp + (-0x48)); /* 0x30010860: mov edx, dword ptr [ebp - 0x48] */ 5752 MEM32(ecx + 0x4) = edx; /* 0x30010863: mov dword ptr [ecx + 4], edx */ 5753 eax = MEM32(ebp + (-0x4C)); /* 0x30010866: mov eax, dword ptr [ebp - 0x4c] */ 5754 MEM32(ebp + (-0x40)) = ebx; /* 0x30010869: mov dword ptr [ebp - 0x40], ebx */ 5755 ecx = ebp + (-0x50); /* 0x3001086C: lea ecx, [ebp - 0x50] */ 5756 MEM32(eax) = eax; /* 0x3001086F: mov dword ptr [eax], eax */ 5757 eax = MEM32(ebp + (-0x4C)); /* 0x30010871: mov eax, dword ptr [ebp - 0x4c] */ 5758 MEM32(eax + 0x8) = eax; /* 0x30010874: mov dword ptr [eax + 8], eax */ 5759 eax = ebp + (-0x60); /* 0x30010877: lea eax, [ebp - 0x60] */ 5760 PUSH32(esp, eax); /* 0x3001087A: push eax */ 5761 RECOMP_ICALL(0x30011670u); /* 0x3001087B: call 0x30011670 */ /* not lifted */ 5762 RECOMP_FLAGS_IN(); 5763 goto L_300108A4; /* 0x30010880: jmp 0x300108a4 */ 5764 L_30010882: 5765 /* cmp eax, esi */ /* 0x30010882: cmp eax, esi */ 5766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5768 _flag_k = FK_CMP; 5769 if (CMP_EQ(_flag_a, _flag_b)) goto L_300108A4; /* 0x30010884: je 0x300108a4 */ 5770 L_30010886: 5771 ecx = ebp + (-0x14); /* 0x30010886: lea ecx, [ebp - 0x14] */ 5772 edi = eax; /* 0x30010889: mov edi, eax */ 5773 RECOMP_ICALL(0x30011CD0u); /* 0x3001088B: call 0x30011cd0 */ /* not lifted */ 5774 RECOMP_FLAGS_IN(); 5775 ecx = ebp + 0x8; /* 0x30010890: lea ecx, [ebp + 8] */ 5776 PUSH32(esp, edi); /* 0x30010893: push edi */ 5777 PUSH32(esp, ecx); /* 0x30010894: push ecx */ 5778 ecx = ebp + (-0x50); /* 0x30010895: lea ecx, [ebp - 0x50] */ 5779 RECOMP_ICALL(0x30011FC0u); /* 0x30010898: call 0x30011fc0 */ /* not lifted */ 5780 RECOMP_FLAGS_IN(); 5781 eax = MEM32(ebp + (-0x14)); /* 0x3001089D: mov eax, dword ptr [ebp - 0x14] */ 5782 /* cmp eax, esi */ /* 0x300108A0: cmp eax, esi */ 5783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 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_30010886; /* 0x300108A2: jne 0x30010886 */ 5788 L_300108A4: 5789 edx = MEM32(ebp + (-0x4C)); /* 0x300108A4: mov edx, dword ptr [ebp - 0x4c] */ 5790 PUSH32(esp, edx); /* 0x300108A7: push edx */ 5791 RECOMP_ICALL(0x30018080u); /* 0x300108A8: call 0x30018080 */ /* not lifted */ 5792 RECOMP_FLAGS_IN(); 5793 eax = MEM32(ebp + (-0x48)); /* 0x300108AD: mov eax, dword ptr [ebp - 0x48] */ 5794 MEM32(ebp + (-0x4C)) = ebx; /* 0x300108B0: mov dword ptr [ebp - 0x4c], ebx */ 5795 PUSH32(esp, eax); /* 0x300108B3: push eax */ 5796 MEM32(ebp + (-0x40)) = ebx; /* 0x300108B4: mov dword ptr [ebp - 0x40], ebx */ 5797 RECOMP_ICALL(0x30018080u); /* 0x300108B7: call 0x30018080 */ /* not lifted */ 5798 RECOMP_FLAGS_IN(); 5799 ecx = MEM32(ebp + (-0xC)); /* 0x300108BC: mov ecx, dword ptr [ebp - 0xc] */ 5800 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5801 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5802 esp = esp + 8; /* 0x300108BF: add esp, 8 */ 5803 _flag_k = FK_ADD; 5804 MEM32(FS_BASE + (0)) = ecx; /* 0x300108C2: mov dword ptr fs:[0], ecx */ 5805 edi = POP32_VAL(esp); /* 0x300108C9: pop edi */ 5806 esi = POP32_VAL(esp); /* 0x300108CA: pop esi */ 5807 ebx = POP32_VAL(esp); /* 0x300108CB: pop ebx */ 5808 esp = ebp; /* 0x300108CC: mov esp, ebp */ 5809 ebp = POP32_VAL(esp); /* 0x300108CE: pop ebp */ 5810 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300108CF: ret 4 */ 5811 RECOMP_REGS_OUT(); 5812 } 5813 5814 void sub_3001062F(void) { 5815 int _fpu_cmp = 0; 5816 uint32_t _cf = 0; 5817 int _df = 1; 5818 uint32_t _flag_k = FK_NONE; 5819 uint32_t _flag_a = 0, _flag_b = 0; 5820 uint32_t _itail_tgt = 0; 5821 RECOMP_REGS_LOCALS 5822 RECOMP_ENTER(0x3001062Fu); 5823 5824 L_3001062F: 5825 MEM32(ebp + (-0x10)) = eax; /* 0x3001062F: mov dword ptr [ebp - 0x10], eax */ 5826 L_30010632: 5827 /* cmp eax, MEM32(ebp + (-0x4C)) */ /* 0x30010632: cmp eax, dword ptr [ebp - 0x4c] */ 5828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x4C))); 5829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5830 _flag_k = FK_CMP; 5831 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010682; /* 0x30010635: je 0x30010682 */ 5832 L_30010637: 5833 edx = MEM32(eax + 0x18); /* 0x30010637: mov edx, dword ptr [eax + 0x18] */ 5834 ecx = edi; /* 0x3001063A: mov ecx, edi */ 5835 PUSH32(esp, edx); /* 0x3001063C: push edx */ 5836 RECOMP_ICALL(esi); /* 0x3001063D: call esi */ 5837 RECOMP_FLAGS_IN(); 5838 eax = MEM32(ebp + (-0x10)); /* 0x3001063F: mov eax, dword ptr [ebp - 0x10] */ 5839 ecx = MEM32(eax + 0x8); /* 0x30010642: mov ecx, dword ptr [eax + 8] */ 5840 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x30010645: mov dl, byte ptr [ecx + 0x1d] */ 5841 /* test LO8(edx), LO8(edx) */ /* 0x30010648: test dl, dl */ 5842 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5843 _cf = 0; 5844 _flag_k = FK_NARROW(FK_TEST, 24); 5845 if (TEST_NZ(_flag_a, _flag_b)) goto L_30010664; /* 0x3001064A: jne 0x30010664 */ 5846 L_3001064C: 5847 eax = ecx; /* 0x3001064C: mov eax, ecx */ 5848 ecx = MEM32(eax); /* 0x3001064E: mov ecx, dword ptr [eax] */ 5849 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x30010650: mov dl, byte ptr [ecx + 0x1d] */ 5850 /* test LO8(edx), LO8(edx) */ /* 0x30010653: test dl, dl */ 5851 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5852 _cf = 0; 5853 _flag_k = FK_NARROW(FK_TEST, 24); 5854 RECOMP_BACKEDGE(); 5855 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001062F; /* 0x30010655: jne 0x3001062f */ 5856 L_30010657: 5857 eax = ecx; /* 0x30010657: mov eax, ecx */ 5858 ecx = MEM32(eax); /* 0x30010659: mov ecx, dword ptr [eax] */ 5859 SET_LO8(edx, MEM8(ecx + 0x1D)); /* 0x3001065B: mov dl, byte ptr [ecx + 0x1d] */ 5860 /* test LO8(edx), LO8(edx) */ /* 0x3001065E: test dl, dl */ 5861 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5862 _cf = 0; 5863 _flag_k = FK_NARROW(FK_TEST, 24); 5864 RECOMP_BACKEDGE(); 5865 if (TEST_Z(_flag_a, _flag_b)) goto L_30010657; /* 0x30010660: je 0x30010657 */ 5866 L_30010662: 5867 RECOMP_BACKEDGE(); 5868 goto L_3001062F; /* 0x30010662: jmp 0x3001062f */ 5869 L_30010664: 5870 ecx = MEM32(eax + 0x4); /* 0x30010664: mov ecx, dword ptr [eax + 4] */ 5871 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010667: cmp eax, dword ptr [ecx + 8] */ 5872 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 5873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5874 _flag_k = FK_CMP; 5875 if (CMP_NE(_flag_a, _flag_b)) goto L_30010679; /* 0x3001066A: jne 0x30010679 */ 5876 L_3001066C: 5877 eax = ecx; /* 0x3001066C: mov eax, ecx */ 5878 MEM32(ebp + (-0x10)) = eax; /* 0x3001066E: mov dword ptr [ebp - 0x10], eax */ 5879 ecx = MEM32(ecx + 0x4); /* 0x30010671: mov ecx, dword ptr [ecx + 4] */ 5880 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x30010674: cmp eax, dword ptr [ecx + 8] */ 5881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 5882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5883 _flag_k = FK_CMP; 5884 RECOMP_BACKEDGE(); 5885 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001066C; /* 0x30010677: je 0x3001066c */ 5886 L_30010679: 5887 /* cmp MEM32(eax + 0x8), ecx */ /* 0x30010679: cmp dword ptr [eax + 8], ecx */ 5888 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 5889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5890 _flag_k = FK_CMP; 5891 RECOMP_BACKEDGE(); 5892 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010632; /* 0x3001067C: je 0x30010632 */ 5893 L_3001067E: 5894 eax = ecx; /* 0x3001067E: mov eax, ecx */ 5895 RECOMP_BACKEDGE(); 5896 goto L_3001062F; /* 0x30010680: jmp 0x3001062f */ 5897 L_30010682: 5898 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x30010682: mov al, byte ptr [ebp + 0xb] */ 5899 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x30010685: mov cl, byte ptr [ebp + 0xb] */ 5900 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5901 esi = 0; /* 0x30010688: xor esi, esi */ 5902 _cf = 0; 5903 _flag_k = FK_TEST; 5904 PUSH32(esp, 0x18u); /* 0x3001068A: push 0x18 */ 5905 MEM32(ebx + 0x20) = esi; /* 0x3001068C: mov dword ptr [ebx + 0x20], esi */ 5906 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x3001068F: mov byte ptr [ebp - 0x3c], al */ 5907 MEM8(ebp + (-0x3B)) = (uint8_t)(LO8(ecx)); /* 0x30010692: mov byte ptr [ebp - 0x3b], cl */ 5908 MEM8(ebp + (-0x30)) = (uint8_t)(0); /* 0x30010695: mov byte ptr [ebp - 0x30], 0 */ 5909 RECOMP_ICALL(0x300180A8u); /* 0x30010699: call 0x300180a8 */ /* not lifted */ 5910 RECOMP_FLAGS_IN(); 5911 MEM32(eax + 0x4) = esi; /* 0x3001069E: mov dword ptr [eax + 4], esi */ 5912 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x300106A1: mov byte ptr [eax + 0x14], 1 */ 5913 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106A5: mov byte ptr [eax + 0x15], 0 */ 5914 MEM32(ebp + (-0x34)) = eax; /* 0x300106A9: mov dword ptr [ebp - 0x34], eax */ 5915 MEM8(eax + 0x15) = (uint8_t)(1); /* 0x300106AC: mov byte ptr [eax + 0x15], 1 */ 5916 edx = MEM32(ebp + (-0x34)); /* 0x300106B0: mov edx, dword ptr [ebp - 0x34] */ 5917 PUSH32(esp, 0x18u); /* 0x300106B3: push 0x18 */ 5918 MEM32(edx) = esi; /* 0x300106B5: mov dword ptr [edx], esi */ 5919 eax = MEM32(ebp + (-0x34)); /* 0x300106B7: mov eax, dword ptr [ebp - 0x34] */ 5920 MEM32(eax + 0x8) = esi; /* 0x300106BA: mov dword ptr [eax + 8], esi */ 5921 esi = MEM32(ebp + (-0x34)); /* 0x300106BD: mov esi, dword ptr [ebp - 0x34] */ 5922 RECOMP_ICALL(0x300180A8u); /* 0x300106C0: call 0x300180a8 */ /* not lifted */ 5923 RECOMP_FLAGS_IN(); 5924 MEM32(eax + 0x4) = esi; /* 0x300106C5: mov dword ptr [eax + 4], esi */ 5925 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x300106C8: mov byte ptr [eax + 0x14], 0 */ 5926 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x300106CC: mov byte ptr [eax + 0x15], 0 */ 5927 MEM32(ebp + (-0x38)) = eax; /* 0x300106D0: mov dword ptr [ebp - 0x38], eax */ 5928 MEM32(eax) = eax; /* 0x300106D3: mov dword ptr [eax], eax */ 5929 eax = MEM32(ebp + (-0x38)); /* 0x300106D5: mov eax, dword ptr [ebp - 0x38] */ 5930 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5932 esp = esp + 8; /* 0x300106D8: add esp, 8 */ 5933 _flag_k = FK_ADD; 5934 MEM32(eax + 0x8) = eax; /* 0x300106DB: mov dword ptr [eax + 8], eax */ 5935 MEM32(ebp + (-0x2C)) = 0; /* 0x300106DE: mov dword ptr [ebp - 0x2c], 0 */ 5936 edx = MEM32(ebx + 0x8); /* 0x300106E5: mov edx, dword ptr [ebx + 8] */ 5937 ecx = ebp + (-0x3C); /* 0x300106E8: lea ecx, [ebp - 0x3c] */ 5938 PUSH32(esp, ecx); /* 0x300106EB: push ecx */ 5939 PUSH32(esp, edx); /* 0x300106EC: push edx */ 5940 PUSH32(esp, edi); /* 0x300106ED: push edi */ 5941 ecx = ebx; /* 0x300106EE: mov ecx, ebx */ 5942 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x300106F0: mov byte ptr [ebp - 4], 1 */ 5943 RECOMP_ICALL(0x300109A0u); /* 0x300106F4: call 0x300109a0 */ /* not lifted */ 5944 RECOMP_FLAGS_IN(); 5945 ecx = MEM32(ebx + 0x8); /* 0x300106F9: mov ecx, dword ptr [ebx + 8] */ 5946 eax = ebp + (-0x3C); /* 0x300106FC: lea eax, [ebp - 0x3c] */ 5947 PUSH32(esp, 0); /* 0x300106FF: push 0 */ 5948 PUSH32(esp, eax); /* 0x30010701: push eax */ 5949 PUSH32(esp, ecx); /* 0x30010702: push ecx */ 5950 PUSH32(esp, edi); /* 0x30010703: push edi */ 5951 ecx = ebx; /* 0x30010704: mov ecx, ebx */ 5952 RECOMP_ICALL(0x30010E20u); /* 0x30010706: call 0x30010e20 */ /* not lifted */ 5953 RECOMP_FLAGS_IN(); 5954 edi = MEM32(ebp + (-0x18)); /* 0x3001070B: mov edi, dword ptr [ebp - 0x18] */ 5955 esi = MEM32(edi + 0x4); /* 0x3001070E: mov esi, dword ptr [edi + 4] */ 5956 ecx = MEM32(edi + 0x10); /* 0x30010711: mov ecx, dword ptr [edi + 0x10] */ 5957 /* test ecx, ecx */ /* 0x30010714: test ecx, ecx */ 5958 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5959 _cf = 0; 5960 _flag_k = FK_TEST; 5961 eax = MEM32(esi); /* 0x30010716: mov eax, dword ptr [esi] */ 5962 MEM32(ebp + (-0x18)) = eax; /* 0x30010718: mov dword ptr [ebp - 0x18], eax */ 5963 if (TEST_Z(_flag_a, _flag_b)) goto L_3001077A; /* 0x3001071B: je 0x3001077a */ 5964 L_3001071D: 5965 ecx = eax; /* 0x3001071D: mov ecx, eax */ 5966 /* cmp eax, ecx */ /* 0x3001071F: cmp eax, ecx */ 5967 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5969 _flag_k = FK_CMP; 5970 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010721: jne 0x3001077a */ 5971 L_30010723: 5972 /* cmp esi, esi */ /* 0x30010723: cmp esi, esi */ 5973 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5975 _flag_k = FK_CMP; 5976 if (CMP_NE(_flag_a, _flag_b)) goto L_3001077A; /* 0x30010725: jne 0x3001077a */ 5977 L_30010727: 5978 esi = MEM32(esi + 0x4); /* 0x30010727: mov esi, dword ptr [esi + 4] */ 5979 eax = MEM32(edi + 0x8); /* 0x3001072A: mov eax, dword ptr [edi + 8] */ 5980 /* cmp esi, eax */ /* 0x3001072D: cmp esi, eax */ 5981 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5983 _flag_k = FK_CMP; 5984 ebx = esi; /* 0x3001072F: mov ebx, esi */ 5985 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010752; /* 0x30010731: je 0x30010752 */ 5986 L_30010733: 5987 edx = MEM32(ebx + 0x8); /* 0x30010733: mov edx, dword ptr [ebx + 8] */ 5988 ecx = edi; /* 0x30010736: mov ecx, edi */ 5989 PUSH32(esp, edx); /* 0x30010738: push edx */ 5990 RECOMP_ICALL(0x30012380u); /* 0x30010739: call 0x30012380 */ /* not lifted */ 5991 RECOMP_FLAGS_IN(); 5992 ebx = MEM32(ebx); /* 0x3001073E: mov ebx, dword ptr [ebx] */ 5993 PUSH32(esp, esi); /* 0x30010740: push esi */ 5994 RECOMP_ICALL(0x30018080u); /* 0x30010741: call 0x30018080 */ /* not lifted */ 5995 RECOMP_FLAGS_IN(); 5996 eax = MEM32(edi + 0x8); /* 0x30010746: mov eax, dword ptr [edi + 8] */ 5997 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5998 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5999 esp = esp + 4; /* 0x30010749: add esp, 4 */ 6000 _flag_k = FK_ADD; 6001 /* cmp ebx, eax */ /* 0x3001074C: cmp ebx, eax */ 6002 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 6003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6004 _flag_k = FK_CMP; 6005 esi = ebx; /* 0x3001074E: mov esi, ebx */ 6006 RECOMP_BACKEDGE(); 6007 if (CMP_NE(_flag_a, _flag_b)) goto L_30010733; /* 0x30010750: jne 0x30010733 */ 6008 L_30010752: 6009 eax = MEM32(edi + 0x4); /* 0x30010752: mov eax, dword ptr [edi + 4] */ 6010 ecx = MEM32(edi + 0x8); /* 0x30010755: mov ecx, dword ptr [edi + 8] */ 6011 edx = ebp + (-0x60); /* 0x30010758: lea edx, [ebp - 0x60] */ 6012 MEM32(eax + 0x4) = ecx; /* 0x3001075B: mov dword ptr [eax + 4], ecx */ 6013 eax = MEM32(edi + 0x4); /* 0x3001075E: mov eax, dword ptr [edi + 4] */ 6014 MEM32(edi + 0x10) = 0; /* 0x30010761: mov dword ptr [edi + 0x10], 0 */ 6015 PUSH32(esp, edx); /* 0x30010768: push edx */ 6016 MEM32(eax) = eax; /* 0x30010769: mov dword ptr [eax], eax */ 6017 eax = MEM32(edi + 0x4); /* 0x3001076B: mov eax, dword ptr [edi + 4] */ 6018 ecx = edi; /* 0x3001076E: mov ecx, edi */ 6019 MEM32(eax + 0x8) = eax; /* 0x30010770: mov dword ptr [eax + 8], eax */ 6020 RECOMP_ICALL(0x30011670u); /* 0x30010773: call 0x30011670 */ /* not lifted */ 6021 RECOMP_FLAGS_IN(); 6022 goto L_3001079B; /* 0x30010778: jmp 0x3001079b */ 6023 L_3001077A: 6024 /* cmp eax, esi */ /* 0x3001077A: cmp eax, esi */ 6025 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6027 _flag_k = FK_CMP; 6028 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001079B; /* 0x3001077C: je 0x3001079b */ 6029 L_3001077E: 6030 ecx = ebp + (-0x18); /* 0x3001077E: lea ecx, [ebp - 0x18] */ 6031 ebx = eax; /* 0x30010781: mov ebx, eax */ 6032 RECOMP_ICALL(0x30011CD0u); /* 0x30010783: call 0x30011cd0 */ /* not lifted */ 6033 RECOMP_FLAGS_IN(); 6034 eax = ebp + (-0x60); /* 0x30010788: lea eax, [ebp - 0x60] */ 6035 PUSH32(esp, ebx); /* 0x3001078B: push ebx */ 6036 PUSH32(esp, eax); /* 0x3001078C: push eax */ 6037 ecx = edi; /* 0x3001078D: mov ecx, edi */ 6038 RECOMP_ICALL(0x30011FC0u); /* 0x3001078F: call 0x30011fc0 */ /* not lifted */ 6039 RECOMP_FLAGS_IN(); 6040 eax = MEM32(ebp + (-0x18)); /* 0x30010794: mov eax, dword ptr [ebp - 0x18] */ 6041 /* cmp eax, esi */ /* 0x30010797: cmp eax, esi */ 6042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 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_3001077E; /* 0x30010799: jne 0x3001077e */ 6047 L_3001079B: 6048 eax = MEM32(ebp + (-0x38)); /* 0x3001079B: mov eax, dword ptr [ebp - 0x38] */ 6049 edx = MEM32(ebp + (-0x2C)); /* 0x3001079E: mov edx, dword ptr [ebp - 0x2c] */ 6050 /* test edx, edx */ /* 0x300107A1: test edx, edx */ 6051 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 6052 _cf = 0; 6053 _flag_k = FK_TEST; 6054 ecx = MEM32(eax); /* 0x300107A3: mov ecx, dword ptr [eax] */ 6055 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x300107A5: mov byte ptr [ebp - 4], 0 */ 6056 esi = eax; /* 0x300107A9: mov esi, eax */ 6057 MEM32(ebp + (-0x18)) = ecx; /* 0x300107AB: mov dword ptr [ebp - 0x18], ecx */ 6058 if (TEST_Z(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107AE: je 0x300107eb */ 6059 L_300107B0: 6060 edx = ecx; /* 0x300107B0: mov edx, ecx */ 6061 /* cmp ecx, edx */ /* 0x300107B2: cmp ecx, edx */ 6062 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6064 _flag_k = FK_CMP; 6065 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107B4: jne 0x300107eb */ 6066 L_300107B6: 6067 ecx = MEM32(eax + 0x4); /* 0x300107B6: mov ecx, dword ptr [eax + 4] */ 6068 PUSH32(esp, ecx); /* 0x300107B9: push ecx */ 6069 ecx = ebp + (-0x3C); /* 0x300107BA: lea ecx, [ebp - 0x3c] */ 6070 RECOMP_ICALL(0x30012A30u); /* 0x300107BD: call 0x30012a30 */ /* not lifted */ 6071 RECOMP_FLAGS_IN(); 6072 edx = MEM32(ebp + (-0x38)); /* 0x300107C2: mov edx, dword ptr [ebp - 0x38] */ 6073 eax = MEM32(ebp + (-0x34)); /* 0x300107C5: mov eax, dword ptr [ebp - 0x34] */ 6074 ecx = ebp + (-0x60); /* 0x300107C8: lea ecx, [ebp - 0x60] */ 6075 MEM32(edx + 0x4) = eax; /* 0x300107CB: mov dword ptr [edx + 4], eax */ 6076 eax = MEM32(ebp + (-0x38)); /* 0x300107CE: mov eax, dword ptr [ebp - 0x38] */ 6077 MEM32(ebp + (-0x2C)) = 0; /* 0x300107D1: mov dword ptr [ebp - 0x2c], 0 */ 6078 PUSH32(esp, ecx); /* 0x300107D8: push ecx */ 6079 MEM32(eax) = eax; /* 0x300107D9: mov dword ptr [eax], eax */ 6080 eax = MEM32(ebp + (-0x38)); /* 0x300107DB: mov eax, dword ptr [ebp - 0x38] */ 6081 ecx = ebp + (-0x3C); /* 0x300107DE: lea ecx, [ebp - 0x3c] */ 6082 MEM32(eax + 0x8) = eax; /* 0x300107E1: mov dword ptr [eax + 8], eax */ 6083 RECOMP_ICALL(0x30011670u); /* 0x300107E4: call 0x30011670 */ /* not lifted */ 6084 RECOMP_FLAGS_IN(); 6085 goto L_30010811; /* 0x300107E9: jmp 0x30010811 */ 6086 L_300107EB: 6087 /* cmp ecx, eax */ /* 0x300107EB: cmp ecx, eax */ 6088 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6090 _flag_k = FK_CMP; 6091 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010814; /* 0x300107ED: je 0x30010814 */ 6092 L_300107EF: 6093 edx = ebp + (-0x60); /* 0x300107EF: lea edx, [ebp - 0x60] */ 6094 PUSH32(esp, 0); /* 0x300107F2: push 0 */ 6095 PUSH32(esp, edx); /* 0x300107F4: push edx */ 6096 ecx = ebp + (-0x18); /* 0x300107F5: lea ecx, [ebp - 0x18] */ 6097 RECOMP_ICALL(0x30012AD0u); /* 0x300107F8: call 0x30012ad0 */ /* not lifted */ 6098 RECOMP_FLAGS_IN(); 6099 eax = MEM32(eax); /* 0x300107FD: mov eax, dword ptr [eax] */ 6100 ecx = ebp + (-0x14); /* 0x300107FF: lea ecx, [ebp - 0x14] */ 6101 PUSH32(esp, eax); /* 0x30010802: push eax */ 6102 PUSH32(esp, ecx); /* 0x30010803: push ecx */ 6103 ecx = ebp + (-0x3C); /* 0x30010804: lea ecx, [ebp - 0x3c] */ 6104 RECOMP_ICALL(0x30012670u); /* 0x30010807: call 0x30012670 */ /* not lifted */ 6105 RECOMP_FLAGS_IN(); 6106 /* cmp MEM32(ebp + (-0x18)), esi */ /* 0x3001080C: cmp dword ptr [ebp - 0x18], esi */ 6107 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(esi); 6108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6109 _flag_k = FK_CMP; 6110 RECOMP_BACKEDGE(); 6111 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EF; /* 0x3001080F: jne 0x300107ef */ 6112 L_30010811: 6113 eax = MEM32(ebp + (-0x38)); /* 0x30010811: mov eax, dword ptr [ebp - 0x38] */ 6114 L_30010814: 6115 PUSH32(esp, eax); /* 0x30010814: push eax */ 6116 RECOMP_ICALL(0x30018080u); /* 0x30010815: call 0x30018080 */ /* not lifted */ 6117 RECOMP_FLAGS_IN(); 6118 edx = MEM32(ebp + (-0x34)); /* 0x3001081A: mov edx, dword ptr [ebp - 0x34] */ 6119 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6120 ebx = 0; /* 0x3001081D: xor ebx, ebx */ 6121 _cf = 0; 6122 _flag_k = FK_TEST; 6123 PUSH32(esp, edx); /* 0x3001081F: push edx */ 6124 MEM32(ebp + (-0x38)) = ebx; /* 0x30010820: mov dword ptr [ebp - 0x38], ebx */ 6125 MEM32(ebp + (-0x2C)) = ebx; /* 0x30010823: mov dword ptr [ebp - 0x2c], ebx */ 6126 RECOMP_ICALL(0x30018080u); /* 0x30010826: call 0x30018080 */ /* not lifted */ 6127 RECOMP_FLAGS_IN(); 6128 esi = MEM32(ebp + (-0x4C)); /* 0x3001082B: mov esi, dword ptr [ebp - 0x4c] */ 6129 ecx = MEM32(ebp + (-0x40)); /* 0x3001082E: mov ecx, dword ptr [ebp - 0x40] */ 6130 MEM32(ebp + (-0x34)) = ebx; /* 0x30010831: mov dword ptr [ebp - 0x34], ebx */ 6131 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6132 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6133 esp = esp + 8; /* 0x30010834: add esp, 8 */ 6134 _flag_k = FK_ADD; 6135 eax = MEM32(esi); /* 0x30010837: mov eax, dword ptr [esi] */ 6136 /* cmp ecx, ebx */ /* 0x30010839: cmp ecx, ebx */ 6137 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6139 _flag_k = FK_CMP; 6140 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3001083B: mov dword ptr [ebp - 4], 0xffffffff */ 6141 MEM32(ebp + (-0x14)) = eax; /* 0x30010842: mov dword ptr [ebp - 0x14], eax */ 6142 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010882; /* 0x30010845: je 0x30010882 */ 6143 L_30010847: 6144 ecx = eax; /* 0x30010847: mov ecx, eax */ 6145 /* cmp eax, ecx */ /* 0x30010849: cmp eax, ecx */ 6146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6148 _flag_k = FK_CMP; 6149 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084B: jne 0x30010882 */ 6150 L_3001084D: 6151 /* cmp esi, esi */ /* 0x3001084D: cmp esi, esi */ 6152 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6154 _flag_k = FK_CMP; 6155 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084F: jne 0x30010882 */ 6156 L_30010851: 6157 eax = MEM32(esi + 0x4); /* 0x30010851: mov eax, dword ptr [esi + 4] */ 6158 ecx = ebp + (-0x50); /* 0x30010854: lea ecx, [ebp - 0x50] */ 6159 PUSH32(esp, eax); /* 0x30010857: push eax */ 6160 RECOMP_ICALL(0x30012B30u); /* 0x30010858: call 0x30012b30 */ /* not lifted */ 6161 RECOMP_FLAGS_IN(); 6162 ecx = MEM32(ebp + (-0x4C)); /* 0x3001085D: mov ecx, dword ptr [ebp - 0x4c] */ 6163 edx = MEM32(ebp + (-0x48)); /* 0x30010860: mov edx, dword ptr [ebp - 0x48] */ 6164 MEM32(ecx + 0x4) = edx; /* 0x30010863: mov dword ptr [ecx + 4], edx */ 6165 eax = MEM32(ebp + (-0x4C)); /* 0x30010866: mov eax, dword ptr [ebp - 0x4c] */ 6166 MEM32(ebp + (-0x40)) = ebx; /* 0x30010869: mov dword ptr [ebp - 0x40], ebx */ 6167 ecx = ebp + (-0x50); /* 0x3001086C: lea ecx, [ebp - 0x50] */ 6168 MEM32(eax) = eax; /* 0x3001086F: mov dword ptr [eax], eax */ 6169 eax = MEM32(ebp + (-0x4C)); /* 0x30010871: mov eax, dword ptr [ebp - 0x4c] */ 6170 MEM32(eax + 0x8) = eax; /* 0x30010874: mov dword ptr [eax + 8], eax */ 6171 eax = ebp + (-0x60); /* 0x30010877: lea eax, [ebp - 0x60] */ 6172 PUSH32(esp, eax); /* 0x3001087A: push eax */ 6173 RECOMP_ICALL(0x30011670u); /* 0x3001087B: call 0x30011670 */ /* not lifted */ 6174 RECOMP_FLAGS_IN(); 6175 goto L_300108A4; /* 0x30010880: jmp 0x300108a4 */ 6176 L_30010882: 6177 /* cmp eax, esi */ /* 0x30010882: cmp eax, esi */ 6178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6180 _flag_k = FK_CMP; 6181 if (CMP_EQ(_flag_a, _flag_b)) goto L_300108A4; /* 0x30010884: je 0x300108a4 */ 6182 L_30010886: 6183 ecx = ebp + (-0x14); /* 0x30010886: lea ecx, [ebp - 0x14] */ 6184 edi = eax; /* 0x30010889: mov edi, eax */ 6185 RECOMP_ICALL(0x30011CD0u); /* 0x3001088B: call 0x30011cd0 */ /* not lifted */ 6186 RECOMP_FLAGS_IN(); 6187 ecx = ebp + 0x8; /* 0x30010890: lea ecx, [ebp + 8] */ 6188 PUSH32(esp, edi); /* 0x30010893: push edi */ 6189 PUSH32(esp, ecx); /* 0x30010894: push ecx */ 6190 ecx = ebp + (-0x50); /* 0x30010895: lea ecx, [ebp - 0x50] */ 6191 RECOMP_ICALL(0x30011FC0u); /* 0x30010898: call 0x30011fc0 */ /* not lifted */ 6192 RECOMP_FLAGS_IN(); 6193 eax = MEM32(ebp + (-0x14)); /* 0x3001089D: mov eax, dword ptr [ebp - 0x14] */ 6194 /* cmp eax, esi */ /* 0x300108A0: cmp eax, esi */ 6195 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6197 _flag_k = FK_CMP; 6198 RECOMP_BACKEDGE(); 6199 if (CMP_NE(_flag_a, _flag_b)) goto L_30010886; /* 0x300108A2: jne 0x30010886 */ 6200 L_300108A4: 6201 edx = MEM32(ebp + (-0x4C)); /* 0x300108A4: mov edx, dword ptr [ebp - 0x4c] */ 6202 PUSH32(esp, edx); /* 0x300108A7: push edx */ 6203 RECOMP_ICALL(0x30018080u); /* 0x300108A8: call 0x30018080 */ /* not lifted */ 6204 RECOMP_FLAGS_IN(); 6205 eax = MEM32(ebp + (-0x48)); /* 0x300108AD: mov eax, dword ptr [ebp - 0x48] */ 6206 MEM32(ebp + (-0x4C)) = ebx; /* 0x300108B0: mov dword ptr [ebp - 0x4c], ebx */ 6207 PUSH32(esp, eax); /* 0x300108B3: push eax */ 6208 MEM32(ebp + (-0x40)) = ebx; /* 0x300108B4: mov dword ptr [ebp - 0x40], ebx */ 6209 RECOMP_ICALL(0x30018080u); /* 0x300108B7: call 0x30018080 */ /* not lifted */ 6210 RECOMP_FLAGS_IN(); 6211 ecx = MEM32(ebp + (-0xC)); /* 0x300108BC: mov ecx, dword ptr [ebp - 0xc] */ 6212 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6214 esp = esp + 8; /* 0x300108BF: add esp, 8 */ 6215 _flag_k = FK_ADD; 6216 MEM32(FS_BASE + (0)) = ecx; /* 0x300108C2: mov dword ptr fs:[0], ecx */ 6217 edi = POP32_VAL(esp); /* 0x300108C9: pop edi */ 6218 esi = POP32_VAL(esp); /* 0x300108CA: pop esi */ 6219 ebx = POP32_VAL(esp); /* 0x300108CB: pop ebx */ 6220 esp = ebp; /* 0x300108CC: mov esp, ebp */ 6221 ebp = POP32_VAL(esp); /* 0x300108CE: pop ebp */ 6222 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300108CF: ret 4 */ 6223 RECOMP_REGS_OUT(); 6224 } 6225 6226 void sub_3001079B(void) { 6227 int _fpu_cmp = 0; 6228 uint32_t _cf = 0; 6229 int _df = 1; 6230 uint32_t _flag_k = FK_NONE; 6231 uint32_t _flag_a = 0, _flag_b = 0; 6232 uint32_t _itail_tgt = 0; 6233 RECOMP_REGS_LOCALS 6234 RECOMP_ENTER(0x3001079Bu); 6235 6236 L_3001079B: 6237 eax = MEM32(ebp + (-0x38)); /* 0x3001079B: mov eax, dword ptr [ebp - 0x38] */ 6238 edx = MEM32(ebp + (-0x2C)); /* 0x3001079E: mov edx, dword ptr [ebp - 0x2c] */ 6239 /* test edx, edx */ /* 0x300107A1: test edx, edx */ 6240 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 6241 _cf = 0; 6242 _flag_k = FK_TEST; 6243 ecx = MEM32(eax); /* 0x300107A3: mov ecx, dword ptr [eax] */ 6244 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x300107A5: mov byte ptr [ebp - 4], 0 */ 6245 esi = eax; /* 0x300107A9: mov esi, eax */ 6246 MEM32(ebp + (-0x18)) = ecx; /* 0x300107AB: mov dword ptr [ebp - 0x18], ecx */ 6247 if (TEST_Z(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107AE: je 0x300107eb */ 6248 L_300107B0: 6249 edx = ecx; /* 0x300107B0: mov edx, ecx */ 6250 /* cmp ecx, edx */ /* 0x300107B2: cmp ecx, edx */ 6251 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6253 _flag_k = FK_CMP; 6254 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EB; /* 0x300107B4: jne 0x300107eb */ 6255 L_300107B6: 6256 ecx = MEM32(eax + 0x4); /* 0x300107B6: mov ecx, dword ptr [eax + 4] */ 6257 PUSH32(esp, ecx); /* 0x300107B9: push ecx */ 6258 ecx = ebp + (-0x3C); /* 0x300107BA: lea ecx, [ebp - 0x3c] */ 6259 RECOMP_ICALL(0x30012A30u); /* 0x300107BD: call 0x30012a30 */ /* not lifted */ 6260 RECOMP_FLAGS_IN(); 6261 edx = MEM32(ebp + (-0x38)); /* 0x300107C2: mov edx, dword ptr [ebp - 0x38] */ 6262 eax = MEM32(ebp + (-0x34)); /* 0x300107C5: mov eax, dword ptr [ebp - 0x34] */ 6263 ecx = ebp + (-0x60); /* 0x300107C8: lea ecx, [ebp - 0x60] */ 6264 MEM32(edx + 0x4) = eax; /* 0x300107CB: mov dword ptr [edx + 4], eax */ 6265 eax = MEM32(ebp + (-0x38)); /* 0x300107CE: mov eax, dword ptr [ebp - 0x38] */ 6266 MEM32(ebp + (-0x2C)) = 0; /* 0x300107D1: mov dword ptr [ebp - 0x2c], 0 */ 6267 PUSH32(esp, ecx); /* 0x300107D8: push ecx */ 6268 MEM32(eax) = eax; /* 0x300107D9: mov dword ptr [eax], eax */ 6269 eax = MEM32(ebp + (-0x38)); /* 0x300107DB: mov eax, dword ptr [ebp - 0x38] */ 6270 ecx = ebp + (-0x3C); /* 0x300107DE: lea ecx, [ebp - 0x3c] */ 6271 MEM32(eax + 0x8) = eax; /* 0x300107E1: mov dword ptr [eax + 8], eax */ 6272 RECOMP_ICALL(0x30011670u); /* 0x300107E4: call 0x30011670 */ /* not lifted */ 6273 RECOMP_FLAGS_IN(); 6274 goto L_30010811; /* 0x300107E9: jmp 0x30010811 */ 6275 L_300107EB: 6276 /* cmp ecx, eax */ /* 0x300107EB: cmp ecx, eax */ 6277 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6279 _flag_k = FK_CMP; 6280 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010814; /* 0x300107ED: je 0x30010814 */ 6281 L_300107EF: 6282 edx = ebp + (-0x60); /* 0x300107EF: lea edx, [ebp - 0x60] */ 6283 PUSH32(esp, 0); /* 0x300107F2: push 0 */ 6284 PUSH32(esp, edx); /* 0x300107F4: push edx */ 6285 ecx = ebp + (-0x18); /* 0x300107F5: lea ecx, [ebp - 0x18] */ 6286 RECOMP_ICALL(0x30012AD0u); /* 0x300107F8: call 0x30012ad0 */ /* not lifted */ 6287 RECOMP_FLAGS_IN(); 6288 eax = MEM32(eax); /* 0x300107FD: mov eax, dword ptr [eax] */ 6289 ecx = ebp + (-0x14); /* 0x300107FF: lea ecx, [ebp - 0x14] */ 6290 PUSH32(esp, eax); /* 0x30010802: push eax */ 6291 PUSH32(esp, ecx); /* 0x30010803: push ecx */ 6292 ecx = ebp + (-0x3C); /* 0x30010804: lea ecx, [ebp - 0x3c] */ 6293 RECOMP_ICALL(0x30012670u); /* 0x30010807: call 0x30012670 */ /* not lifted */ 6294 RECOMP_FLAGS_IN(); 6295 /* cmp MEM32(ebp + (-0x18)), esi */ /* 0x3001080C: cmp dword ptr [ebp - 0x18], esi */ 6296 _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(esi); 6297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6298 _flag_k = FK_CMP; 6299 RECOMP_BACKEDGE(); 6300 if (CMP_NE(_flag_a, _flag_b)) goto L_300107EF; /* 0x3001080F: jne 0x300107ef */ 6301 L_30010811: 6302 eax = MEM32(ebp + (-0x38)); /* 0x30010811: mov eax, dword ptr [ebp - 0x38] */ 6303 L_30010814: 6304 PUSH32(esp, eax); /* 0x30010814: push eax */ 6305 RECOMP_ICALL(0x30018080u); /* 0x30010815: call 0x30018080 */ /* not lifted */ 6306 RECOMP_FLAGS_IN(); 6307 edx = MEM32(ebp + (-0x34)); /* 0x3001081A: mov edx, dword ptr [ebp - 0x34] */ 6308 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6309 ebx = 0; /* 0x3001081D: xor ebx, ebx */ 6310 _cf = 0; 6311 _flag_k = FK_TEST; 6312 PUSH32(esp, edx); /* 0x3001081F: push edx */ 6313 MEM32(ebp + (-0x38)) = ebx; /* 0x30010820: mov dword ptr [ebp - 0x38], ebx */ 6314 MEM32(ebp + (-0x2C)) = ebx; /* 0x30010823: mov dword ptr [ebp - 0x2c], ebx */ 6315 RECOMP_ICALL(0x30018080u); /* 0x30010826: call 0x30018080 */ /* not lifted */ 6316 RECOMP_FLAGS_IN(); 6317 esi = MEM32(ebp + (-0x4C)); /* 0x3001082B: mov esi, dword ptr [ebp - 0x4c] */ 6318 ecx = MEM32(ebp + (-0x40)); /* 0x3001082E: mov ecx, dword ptr [ebp - 0x40] */ 6319 MEM32(ebp + (-0x34)) = ebx; /* 0x30010831: mov dword ptr [ebp - 0x34], ebx */ 6320 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6321 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6322 esp = esp + 8; /* 0x30010834: add esp, 8 */ 6323 _flag_k = FK_ADD; 6324 eax = MEM32(esi); /* 0x30010837: mov eax, dword ptr [esi] */ 6325 /* cmp ecx, ebx */ /* 0x30010839: cmp ecx, ebx */ 6326 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6328 _flag_k = FK_CMP; 6329 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3001083B: mov dword ptr [ebp - 4], 0xffffffff */ 6330 MEM32(ebp + (-0x14)) = eax; /* 0x30010842: mov dword ptr [ebp - 0x14], eax */ 6331 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010882; /* 0x30010845: je 0x30010882 */ 6332 L_30010847: 6333 ecx = eax; /* 0x30010847: mov ecx, eax */ 6334 /* cmp eax, ecx */ /* 0x30010849: cmp eax, ecx */ 6335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6337 _flag_k = FK_CMP; 6338 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084B: jne 0x30010882 */ 6339 L_3001084D: 6340 /* cmp esi, esi */ /* 0x3001084D: cmp esi, esi */ 6341 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6343 _flag_k = FK_CMP; 6344 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084F: jne 0x30010882 */ 6345 L_30010851: 6346 eax = MEM32(esi + 0x4); /* 0x30010851: mov eax, dword ptr [esi + 4] */ 6347 ecx = ebp + (-0x50); /* 0x30010854: lea ecx, [ebp - 0x50] */ 6348 PUSH32(esp, eax); /* 0x30010857: push eax */ 6349 RECOMP_ICALL(0x30012B30u); /* 0x30010858: call 0x30012b30 */ /* not lifted */ 6350 RECOMP_FLAGS_IN(); 6351 ecx = MEM32(ebp + (-0x4C)); /* 0x3001085D: mov ecx, dword ptr [ebp - 0x4c] */ 6352 edx = MEM32(ebp + (-0x48)); /* 0x30010860: mov edx, dword ptr [ebp - 0x48] */ 6353 MEM32(ecx + 0x4) = edx; /* 0x30010863: mov dword ptr [ecx + 4], edx */ 6354 eax = MEM32(ebp + (-0x4C)); /* 0x30010866: mov eax, dword ptr [ebp - 0x4c] */ 6355 MEM32(ebp + (-0x40)) = ebx; /* 0x30010869: mov dword ptr [ebp - 0x40], ebx */ 6356 ecx = ebp + (-0x50); /* 0x3001086C: lea ecx, [ebp - 0x50] */ 6357 MEM32(eax) = eax; /* 0x3001086F: mov dword ptr [eax], eax */ 6358 eax = MEM32(ebp + (-0x4C)); /* 0x30010871: mov eax, dword ptr [ebp - 0x4c] */ 6359 MEM32(eax + 0x8) = eax; /* 0x30010874: mov dword ptr [eax + 8], eax */ 6360 eax = ebp + (-0x60); /* 0x30010877: lea eax, [ebp - 0x60] */ 6361 PUSH32(esp, eax); /* 0x3001087A: push eax */ 6362 RECOMP_ICALL(0x30011670u); /* 0x3001087B: call 0x30011670 */ /* not lifted */ 6363 RECOMP_FLAGS_IN(); 6364 goto L_300108A4; /* 0x30010880: jmp 0x300108a4 */ 6365 L_30010882: 6366 /* cmp eax, esi */ /* 0x30010882: cmp eax, esi */ 6367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6369 _flag_k = FK_CMP; 6370 if (CMP_EQ(_flag_a, _flag_b)) goto L_300108A4; /* 0x30010884: je 0x300108a4 */ 6371 L_30010886: 6372 ecx = ebp + (-0x14); /* 0x30010886: lea ecx, [ebp - 0x14] */ 6373 edi = eax; /* 0x30010889: mov edi, eax */ 6374 RECOMP_ICALL(0x30011CD0u); /* 0x3001088B: call 0x30011cd0 */ /* not lifted */ 6375 RECOMP_FLAGS_IN(); 6376 ecx = ebp + 0x8; /* 0x30010890: lea ecx, [ebp + 8] */ 6377 PUSH32(esp, edi); /* 0x30010893: push edi */ 6378 PUSH32(esp, ecx); /* 0x30010894: push ecx */ 6379 ecx = ebp + (-0x50); /* 0x30010895: lea ecx, [ebp - 0x50] */ 6380 RECOMP_ICALL(0x30011FC0u); /* 0x30010898: call 0x30011fc0 */ /* not lifted */ 6381 RECOMP_FLAGS_IN(); 6382 eax = MEM32(ebp + (-0x14)); /* 0x3001089D: mov eax, dword ptr [ebp - 0x14] */ 6383 /* cmp eax, esi */ /* 0x300108A0: cmp eax, esi */ 6384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6386 _flag_k = FK_CMP; 6387 RECOMP_BACKEDGE(); 6388 if (CMP_NE(_flag_a, _flag_b)) goto L_30010886; /* 0x300108A2: jne 0x30010886 */ 6389 L_300108A4: 6390 edx = MEM32(ebp + (-0x4C)); /* 0x300108A4: mov edx, dword ptr [ebp - 0x4c] */ 6391 PUSH32(esp, edx); /* 0x300108A7: push edx */ 6392 RECOMP_ICALL(0x30018080u); /* 0x300108A8: call 0x30018080 */ /* not lifted */ 6393 RECOMP_FLAGS_IN(); 6394 eax = MEM32(ebp + (-0x48)); /* 0x300108AD: mov eax, dword ptr [ebp - 0x48] */ 6395 MEM32(ebp + (-0x4C)) = ebx; /* 0x300108B0: mov dword ptr [ebp - 0x4c], ebx */ 6396 PUSH32(esp, eax); /* 0x300108B3: push eax */ 6397 MEM32(ebp + (-0x40)) = ebx; /* 0x300108B4: mov dword ptr [ebp - 0x40], ebx */ 6398 RECOMP_ICALL(0x30018080u); /* 0x300108B7: call 0x30018080 */ /* not lifted */ 6399 RECOMP_FLAGS_IN(); 6400 ecx = MEM32(ebp + (-0xC)); /* 0x300108BC: mov ecx, dword ptr [ebp - 0xc] */ 6401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6402 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6403 esp = esp + 8; /* 0x300108BF: add esp, 8 */ 6404 _flag_k = FK_ADD; 6405 MEM32(FS_BASE + (0)) = ecx; /* 0x300108C2: mov dword ptr fs:[0], ecx */ 6406 edi = POP32_VAL(esp); /* 0x300108C9: pop edi */ 6407 esi = POP32_VAL(esp); /* 0x300108CA: pop esi */ 6408 ebx = POP32_VAL(esp); /* 0x300108CB: pop ebx */ 6409 esp = ebp; /* 0x300108CC: mov esp, ebp */ 6410 ebp = POP32_VAL(esp); /* 0x300108CE: pop ebp */ 6411 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300108CF: ret 4 */ 6412 RECOMP_REGS_OUT(); 6413 } 6414 6415 void sub_30010811(void) { 6416 int _fpu_cmp = 0; 6417 uint32_t _cf = 0; 6418 int _df = 1; 6419 uint32_t _flag_k = FK_NONE; 6420 uint32_t _flag_a = 0, _flag_b = 0; 6421 uint32_t _itail_tgt = 0; 6422 RECOMP_REGS_LOCALS 6423 RECOMP_ENTER(0x30010811u); 6424 6425 L_30010811: 6426 eax = MEM32(ebp + (-0x38)); /* 0x30010811: mov eax, dword ptr [ebp - 0x38] */ 6427 PUSH32(esp, eax); /* 0x30010814: push eax */ 6428 RECOMP_ICALL(0x30018080u); /* 0x30010815: call 0x30018080 */ /* not lifted */ 6429 RECOMP_FLAGS_IN(); 6430 edx = MEM32(ebp + (-0x34)); /* 0x3001081A: mov edx, dword ptr [ebp - 0x34] */ 6431 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6432 ebx = 0; /* 0x3001081D: xor ebx, ebx */ 6433 _cf = 0; 6434 _flag_k = FK_TEST; 6435 PUSH32(esp, edx); /* 0x3001081F: push edx */ 6436 MEM32(ebp + (-0x38)) = ebx; /* 0x30010820: mov dword ptr [ebp - 0x38], ebx */ 6437 MEM32(ebp + (-0x2C)) = ebx; /* 0x30010823: mov dword ptr [ebp - 0x2c], ebx */ 6438 RECOMP_ICALL(0x30018080u); /* 0x30010826: call 0x30018080 */ /* not lifted */ 6439 RECOMP_FLAGS_IN(); 6440 esi = MEM32(ebp + (-0x4C)); /* 0x3001082B: mov esi, dword ptr [ebp - 0x4c] */ 6441 ecx = MEM32(ebp + (-0x40)); /* 0x3001082E: mov ecx, dword ptr [ebp - 0x40] */ 6442 MEM32(ebp + (-0x34)) = ebx; /* 0x30010831: mov dword ptr [ebp - 0x34], ebx */ 6443 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6444 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6445 esp = esp + 8; /* 0x30010834: add esp, 8 */ 6446 _flag_k = FK_ADD; 6447 eax = MEM32(esi); /* 0x30010837: mov eax, dword ptr [esi] */ 6448 /* cmp ecx, ebx */ /* 0x30010839: cmp ecx, ebx */ 6449 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6451 _flag_k = FK_CMP; 6452 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3001083B: mov dword ptr [ebp - 4], 0xffffffff */ 6453 MEM32(ebp + (-0x14)) = eax; /* 0x30010842: mov dword ptr [ebp - 0x14], eax */ 6454 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010882; /* 0x30010845: je 0x30010882 */ 6455 L_30010847: 6456 ecx = eax; /* 0x30010847: mov ecx, eax */ 6457 /* cmp eax, ecx */ /* 0x30010849: cmp eax, ecx */ 6458 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6460 _flag_k = FK_CMP; 6461 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084B: jne 0x30010882 */ 6462 L_3001084D: 6463 /* cmp esi, esi */ /* 0x3001084D: cmp esi, esi */ 6464 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6466 _flag_k = FK_CMP; 6467 if (CMP_NE(_flag_a, _flag_b)) goto L_30010882; /* 0x3001084F: jne 0x30010882 */ 6468 L_30010851: 6469 eax = MEM32(esi + 0x4); /* 0x30010851: mov eax, dword ptr [esi + 4] */ 6470 ecx = ebp + (-0x50); /* 0x30010854: lea ecx, [ebp - 0x50] */ 6471 PUSH32(esp, eax); /* 0x30010857: push eax */ 6472 RECOMP_ICALL(0x30012B30u); /* 0x30010858: call 0x30012b30 */ /* not lifted */ 6473 RECOMP_FLAGS_IN(); 6474 ecx = MEM32(ebp + (-0x4C)); /* 0x3001085D: mov ecx, dword ptr [ebp - 0x4c] */ 6475 edx = MEM32(ebp + (-0x48)); /* 0x30010860: mov edx, dword ptr [ebp - 0x48] */ 6476 MEM32(ecx + 0x4) = edx; /* 0x30010863: mov dword ptr [ecx + 4], edx */ 6477 eax = MEM32(ebp + (-0x4C)); /* 0x30010866: mov eax, dword ptr [ebp - 0x4c] */ 6478 MEM32(ebp + (-0x40)) = ebx; /* 0x30010869: mov dword ptr [ebp - 0x40], ebx */ 6479 ecx = ebp + (-0x50); /* 0x3001086C: lea ecx, [ebp - 0x50] */ 6480 MEM32(eax) = eax; /* 0x3001086F: mov dword ptr [eax], eax */ 6481 eax = MEM32(ebp + (-0x4C)); /* 0x30010871: mov eax, dword ptr [ebp - 0x4c] */ 6482 MEM32(eax + 0x8) = eax; /* 0x30010874: mov dword ptr [eax + 8], eax */ 6483 eax = ebp + (-0x60); /* 0x30010877: lea eax, [ebp - 0x60] */ 6484 PUSH32(esp, eax); /* 0x3001087A: push eax */ 6485 RECOMP_ICALL(0x30011670u); /* 0x3001087B: call 0x30011670 */ /* not lifted */ 6486 RECOMP_FLAGS_IN(); 6487 goto L_300108A4; /* 0x30010880: jmp 0x300108a4 */ 6488 L_30010882: 6489 /* cmp eax, esi */ /* 0x30010882: cmp eax, esi */ 6490 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6492 _flag_k = FK_CMP; 6493 if (CMP_EQ(_flag_a, _flag_b)) goto L_300108A4; /* 0x30010884: je 0x300108a4 */ 6494 L_30010886: 6495 ecx = ebp + (-0x14); /* 0x30010886: lea ecx, [ebp - 0x14] */ 6496 edi = eax; /* 0x30010889: mov edi, eax */ 6497 RECOMP_ICALL(0x30011CD0u); /* 0x3001088B: call 0x30011cd0 */ /* not lifted */ 6498 RECOMP_FLAGS_IN(); 6499 ecx = ebp + 0x8; /* 0x30010890: lea ecx, [ebp + 8] */ 6500 PUSH32(esp, edi); /* 0x30010893: push edi */ 6501 PUSH32(esp, ecx); /* 0x30010894: push ecx */ 6502 ecx = ebp + (-0x50); /* 0x30010895: lea ecx, [ebp - 0x50] */ 6503 RECOMP_ICALL(0x30011FC0u); /* 0x30010898: call 0x30011fc0 */ /* not lifted */ 6504 RECOMP_FLAGS_IN(); 6505 eax = MEM32(ebp + (-0x14)); /* 0x3001089D: mov eax, dword ptr [ebp - 0x14] */ 6506 /* cmp eax, esi */ /* 0x300108A0: cmp eax, esi */ 6507 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6509 _flag_k = FK_CMP; 6510 RECOMP_BACKEDGE(); 6511 if (CMP_NE(_flag_a, _flag_b)) goto L_30010886; /* 0x300108A2: jne 0x30010886 */ 6512 L_300108A4: 6513 edx = MEM32(ebp + (-0x4C)); /* 0x300108A4: mov edx, dword ptr [ebp - 0x4c] */ 6514 PUSH32(esp, edx); /* 0x300108A7: push edx */ 6515 RECOMP_ICALL(0x30018080u); /* 0x300108A8: call 0x30018080 */ /* not lifted */ 6516 RECOMP_FLAGS_IN(); 6517 eax = MEM32(ebp + (-0x48)); /* 0x300108AD: mov eax, dword ptr [ebp - 0x48] */ 6518 MEM32(ebp + (-0x4C)) = ebx; /* 0x300108B0: mov dword ptr [ebp - 0x4c], ebx */ 6519 PUSH32(esp, eax); /* 0x300108B3: push eax */ 6520 MEM32(ebp + (-0x40)) = ebx; /* 0x300108B4: mov dword ptr [ebp - 0x40], ebx */ 6521 RECOMP_ICALL(0x30018080u); /* 0x300108B7: call 0x30018080 */ /* not lifted */ 6522 RECOMP_FLAGS_IN(); 6523 ecx = MEM32(ebp + (-0xC)); /* 0x300108BC: mov ecx, dword ptr [ebp - 0xc] */ 6524 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6525 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6526 esp = esp + 8; /* 0x300108BF: add esp, 8 */ 6527 _flag_k = FK_ADD; 6528 MEM32(FS_BASE + (0)) = ecx; /* 0x300108C2: mov dword ptr fs:[0], ecx */ 6529 edi = POP32_VAL(esp); /* 0x300108C9: pop edi */ 6530 esi = POP32_VAL(esp); /* 0x300108CA: pop esi */ 6531 ebx = POP32_VAL(esp); /* 0x300108CB: pop ebx */ 6532 esp = ebp; /* 0x300108CC: mov esp, ebp */ 6533 ebp = POP32_VAL(esp); /* 0x300108CE: pop ebp */ 6534 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300108CF: ret 4 */ 6535 RECOMP_REGS_OUT(); 6536 } 6537 6538 void sub_300108A4(void) { 6539 int _fpu_cmp = 0; 6540 uint32_t _cf = 0; 6541 int _df = 1; 6542 uint32_t _flag_k = FK_NONE; 6543 uint32_t _flag_a = 0, _flag_b = 0; 6544 uint32_t _itail_tgt = 0; 6545 RECOMP_REGS_LOCALS 6546 RECOMP_ENTER(0x300108A4u); 6547 6548 L_300108A4: 6549 edx = MEM32(ebp + (-0x4C)); /* 0x300108A4: mov edx, dword ptr [ebp - 0x4c] */ 6550 PUSH32(esp, edx); /* 0x300108A7: push edx */ 6551 RECOMP_ICALL(0x30018080u); /* 0x300108A8: call 0x30018080 */ /* not lifted */ 6552 RECOMP_FLAGS_IN(); 6553 eax = MEM32(ebp + (-0x48)); /* 0x300108AD: mov eax, dword ptr [ebp - 0x48] */ 6554 MEM32(ebp + (-0x4C)) = ebx; /* 0x300108B0: mov dword ptr [ebp - 0x4c], ebx */ 6555 PUSH32(esp, eax); /* 0x300108B3: push eax */ 6556 MEM32(ebp + (-0x40)) = ebx; /* 0x300108B4: mov dword ptr [ebp - 0x40], ebx */ 6557 RECOMP_ICALL(0x30018080u); /* 0x300108B7: call 0x30018080 */ /* not lifted */ 6558 RECOMP_FLAGS_IN(); 6559 ecx = MEM32(ebp + (-0xC)); /* 0x300108BC: mov ecx, dword ptr [ebp - 0xc] */ 6560 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6561 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6562 esp = esp + 8; /* 0x300108BF: add esp, 8 */ 6563 _flag_k = FK_ADD; 6564 MEM32(FS_BASE + (0)) = ecx; /* 0x300108C2: mov dword ptr fs:[0], ecx */ 6565 edi = POP32_VAL(esp); /* 0x300108C9: pop edi */ 6566 esi = POP32_VAL(esp); /* 0x300108CA: pop esi */ 6567 ebx = POP32_VAL(esp); /* 0x300108CB: pop ebx */ 6568 esp = ebp; /* 0x300108CC: mov esp, ebp */ 6569 ebp = POP32_VAL(esp); /* 0x300108CE: pop ebp */ 6570 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300108CF: ret 4 */ 6571 RECOMP_REGS_OUT(); 6572 } 6573 6574 void sub_300108E0(void) { 6575 int _fpu_cmp = 0; 6576 uint32_t _cf = 0; 6577 int _df = 1; 6578 uint32_t _flag_k = FK_NONE; 6579 uint32_t _flag_a = 0, _flag_b = 0; 6580 uint32_t _itail_tgt = 0; 6581 RECOMP_REGS_LOCALS 6582 RECOMP_ENTER(0x300108E0u); 6583 6584 L_300108E0: 6585 PUSH32(esp, ebp); /* 0x300108E0: push ebp */ 6586 ebp = esp; /* 0x300108E1: mov ebp, esp */ 6587 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6589 esp = esp - 8; /* 0x300108E3: sub esp, 8 */ 6590 _flag_k = FK_CMP; 6591 PUSH32(esp, ebx); /* 0x300108E6: push ebx */ 6592 PUSH32(esp, esi); /* 0x300108E7: push esi */ 6593 esi = ecx; /* 0x300108E8: mov esi, ecx */ 6594 PUSH32(esp, edi); /* 0x300108EA: push edi */ 6595 edi = MEM32(esi + 0x4); /* 0x300108EB: mov edi, dword ptr [esi + 4] */ 6596 ecx = MEM32(esi + 0x10); /* 0x300108EE: mov ecx, dword ptr [esi + 0x10] */ 6597 /* test ecx, ecx */ /* 0x300108F1: test ecx, ecx */ 6598 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6599 _cf = 0; 6600 _flag_k = FK_TEST; 6601 eax = MEM32(edi); /* 0x300108F3: mov eax, dword ptr [edi] */ 6602 MEM32(ebp + (-0x4)) = eax; /* 0x300108F5: mov dword ptr [ebp - 4], eax */ 6603 if (TEST_Z(_flag_a, _flag_b)) goto L_30010957; /* 0x300108F8: je 0x30010957 */ 6604 L_300108FA: 6605 ecx = eax; /* 0x300108FA: mov ecx, eax */ 6606 /* cmp eax, ecx */ /* 0x300108FC: cmp eax, ecx */ 6607 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6609 _flag_k = FK_CMP; 6610 if (CMP_NE(_flag_a, _flag_b)) goto L_30010957; /* 0x300108FE: jne 0x30010957 */ 6611 L_30010900: 6612 /* cmp edi, edi */ /* 0x30010900: cmp edi, edi */ 6613 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6615 _flag_k = FK_CMP; 6616 if (CMP_NE(_flag_a, _flag_b)) goto L_30010957; /* 0x30010902: jne 0x30010957 */ 6617 L_30010904: 6618 ebx = MEM32(edi + 0x4); /* 0x30010904: mov ebx, dword ptr [edi + 4] */ 6619 eax = MEM32(esi + 0x8); /* 0x30010907: mov eax, dword ptr [esi + 8] */ 6620 /* cmp ebx, eax */ /* 0x3001090A: cmp ebx, eax */ 6621 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 6622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6623 _flag_k = FK_CMP; 6624 edi = ebx; /* 0x3001090C: mov edi, ebx */ 6625 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001092F; /* 0x3001090E: je 0x3001092f */ 6626 L_30010910: 6627 eax = MEM32(edi + 0x8); /* 0x30010910: mov eax, dword ptr [edi + 8] */ 6628 ecx = esi; /* 0x30010913: mov ecx, esi */ 6629 PUSH32(esp, eax); /* 0x30010915: push eax */ 6630 RECOMP_ICALL(0x30012B30u); /* 0x30010916: call 0x30012b30 */ /* not lifted */ 6631 RECOMP_FLAGS_IN(); 6632 edi = MEM32(edi); /* 0x3001091B: mov edi, dword ptr [edi] */ 6633 PUSH32(esp, ebx); /* 0x3001091D: push ebx */ 6634 RECOMP_ICALL(0x30018080u); /* 0x3001091E: call 0x30018080 */ /* not lifted */ 6635 RECOMP_FLAGS_IN(); 6636 eax = MEM32(esi + 0x8); /* 0x30010923: mov eax, dword ptr [esi + 8] */ 6637 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6638 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6639 esp = esp + 4; /* 0x30010926: add esp, 4 */ 6640 _flag_k = FK_ADD; 6641 /* cmp edi, eax */ /* 0x30010929: cmp edi, eax */ 6642 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6644 _flag_k = FK_CMP; 6645 ebx = edi; /* 0x3001092B: mov ebx, edi */ 6646 RECOMP_BACKEDGE(); 6647 if (CMP_NE(_flag_a, _flag_b)) goto L_30010910; /* 0x3001092D: jne 0x30010910 */ 6648 L_3001092F: 6649 ecx = MEM32(esi + 0x4); /* 0x3001092F: mov ecx, dword ptr [esi + 4] */ 6650 edx = MEM32(esi + 0x8); /* 0x30010932: mov edx, dword ptr [esi + 8] */ 6651 MEM32(ecx + 0x4) = edx; /* 0x30010935: mov dword ptr [ecx + 4], edx */ 6652 eax = MEM32(esi + 0x4); /* 0x30010938: mov eax, dword ptr [esi + 4] */ 6653 MEM32(esi + 0x10) = 0; /* 0x3001093B: mov dword ptr [esi + 0x10], 0 */ 6654 ecx = esi; /* 0x30010942: mov ecx, esi */ 6655 MEM32(eax) = eax; /* 0x30010944: mov dword ptr [eax], eax */ 6656 eax = MEM32(esi + 0x4); /* 0x30010946: mov eax, dword ptr [esi + 4] */ 6657 MEM32(eax + 0x8) = eax; /* 0x30010949: mov dword ptr [eax + 8], eax */ 6658 eax = ebp + (-0x8); /* 0x3001094C: lea eax, [ebp - 8] */ 6659 PUSH32(esp, eax); /* 0x3001094F: push eax */ 6660 RECOMP_ICALL(0x30011670u); /* 0x30010950: call 0x30011670 */ /* not lifted */ 6661 RECOMP_FLAGS_IN(); 6662 goto L_30010978; /* 0x30010955: jmp 0x30010978 */ 6663 L_30010957: 6664 /* cmp eax, edi */ /* 0x30010957: cmp eax, edi */ 6665 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6667 _flag_k = FK_CMP; 6668 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010978; /* 0x30010959: je 0x30010978 */ 6669 L_3001095B: 6670 ecx = ebp + (-0x4); /* 0x3001095B: lea ecx, [ebp - 4] */ 6671 ebx = eax; /* 0x3001095E: mov ebx, eax */ 6672 RECOMP_ICALL(0x30011CD0u); /* 0x30010960: call 0x30011cd0 */ /* not lifted */ 6673 RECOMP_FLAGS_IN(); 6674 ecx = ebp + (-0x8); /* 0x30010965: lea ecx, [ebp - 8] */ 6675 PUSH32(esp, ebx); /* 0x30010968: push ebx */ 6676 PUSH32(esp, ecx); /* 0x30010969: push ecx */ 6677 ecx = esi; /* 0x3001096A: mov ecx, esi */ 6678 RECOMP_ICALL(0x30011FC0u); /* 0x3001096C: call 0x30011fc0 */ /* not lifted */ 6679 RECOMP_FLAGS_IN(); 6680 eax = MEM32(ebp + (-0x4)); /* 0x30010971: mov eax, dword ptr [ebp - 4] */ 6681 /* cmp eax, edi */ /* 0x30010974: cmp eax, edi */ 6682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6684 _flag_k = FK_CMP; 6685 RECOMP_BACKEDGE(); 6686 if (CMP_NE(_flag_a, _flag_b)) goto L_3001095B; /* 0x30010976: jne 0x3001095b */ 6687 L_30010978: 6688 edx = MEM32(esi + 0x4); /* 0x30010978: mov edx, dword ptr [esi + 4] */ 6689 PUSH32(esp, edx); /* 0x3001097B: push edx */ 6690 RECOMP_ICALL(0x30018080u); /* 0x3001097C: call 0x30018080 */ /* not lifted */ 6691 RECOMP_FLAGS_IN(); 6692 eax = MEM32(esi + 0x8); /* 0x30010981: mov eax, dword ptr [esi + 8] */ 6693 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6694 edi = 0; /* 0x30010984: xor edi, edi */ 6695 _cf = 0; 6696 _flag_k = FK_TEST; 6697 PUSH32(esp, eax); /* 0x30010986: push eax */ 6698 MEM32(esi + 0x4) = edi; /* 0x30010987: mov dword ptr [esi + 4], edi */ 6699 MEM32(esi + 0x10) = edi; /* 0x3001098A: mov dword ptr [esi + 0x10], edi */ 6700 RECOMP_ICALL(0x30018080u); /* 0x3001098D: call 0x30018080 */ /* not lifted */ 6701 RECOMP_FLAGS_IN(); 6702 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6703 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6704 esp = esp + 8; /* 0x30010992: add esp, 8 */ 6705 _flag_k = FK_ADD; 6706 MEM32(esi + 0x8) = edi; /* 0x30010995: mov dword ptr [esi + 8], edi */ 6707 edi = POP32_VAL(esp); /* 0x30010998: pop edi */ 6708 esi = POP32_VAL(esp); /* 0x30010999: pop esi */ 6709 ebx = POP32_VAL(esp); /* 0x3001099A: pop ebx */ 6710 esp = ebp; /* 0x3001099B: mov esp, ebp */ 6711 ebp = POP32_VAL(esp); /* 0x3001099D: pop ebp */ 6712 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3001099E: ret */ 6713 RECOMP_REGS_OUT(); 6714 } 6715 6716 void sub_30010978(void) { 6717 int _fpu_cmp = 0; 6718 uint32_t _cf = 0; 6719 int _df = 1; 6720 uint32_t _flag_k = FK_NONE; 6721 uint32_t _flag_a = 0, _flag_b = 0; 6722 uint32_t _itail_tgt = 0; 6723 RECOMP_REGS_LOCALS 6724 RECOMP_ENTER(0x30010978u); 6725 6726 L_30010978: 6727 edx = MEM32(esi + 0x4); /* 0x30010978: mov edx, dword ptr [esi + 4] */ 6728 PUSH32(esp, edx); /* 0x3001097B: push edx */ 6729 RECOMP_ICALL(0x30018080u); /* 0x3001097C: call 0x30018080 */ /* not lifted */ 6730 RECOMP_FLAGS_IN(); 6731 eax = MEM32(esi + 0x8); /* 0x30010981: mov eax, dword ptr [esi + 8] */ 6732 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6733 edi = 0; /* 0x30010984: xor edi, edi */ 6734 _cf = 0; 6735 _flag_k = FK_TEST; 6736 PUSH32(esp, eax); /* 0x30010986: push eax */ 6737 MEM32(esi + 0x4) = edi; /* 0x30010987: mov dword ptr [esi + 4], edi */ 6738 MEM32(esi + 0x10) = edi; /* 0x3001098A: mov dword ptr [esi + 0x10], edi */ 6739 RECOMP_ICALL(0x30018080u); /* 0x3001098D: call 0x30018080 */ /* not lifted */ 6740 RECOMP_FLAGS_IN(); 6741 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6743 esp = esp + 8; /* 0x30010992: add esp, 8 */ 6744 _flag_k = FK_ADD; 6745 MEM32(esi + 0x8) = edi; /* 0x30010995: mov dword ptr [esi + 8], edi */ 6746 edi = POP32_VAL(esp); /* 0x30010998: pop edi */ 6747 esi = POP32_VAL(esp); /* 0x30010999: pop esi */ 6748 ebx = POP32_VAL(esp); /* 0x3001099A: pop ebx */ 6749 esp = ebp; /* 0x3001099B: mov esp, ebp */ 6750 ebp = POP32_VAL(esp); /* 0x3001099D: pop ebp */ 6751 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3001099E: ret */ 6752 RECOMP_REGS_OUT(); 6753 } 6754 6755 void sub_300109A0(void) { 6756 int _fpu_cmp = 0; 6757 uint32_t _cf = 0; 6758 int _df = 1; 6759 uint32_t _flag_k = FK_NONE; 6760 uint32_t _flag_a = 0, _flag_b = 0; 6761 uint32_t _itail_tgt = 0; 6762 RECOMP_REGS_LOCALS 6763 RECOMP_ENTER(0x300109A0u); 6764 6765 L_300109A0: 6766 PUSH32(esp, ebp); /* 0x300109A0: push ebp */ 6767 ebp = esp; /* 0x300109A1: mov ebp, esp */ 6768 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x114u); 6769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6770 esp = esp - 0x114u; /* 0x300109A3: sub esp, 0x114 */ 6771 _flag_k = FK_CMP; 6772 eax = MEM32(ebp + 0xC); /* 0x300109A9: mov eax, dword ptr [ebp + 0xc] */ 6773 PUSH32(esp, ebx); /* 0x300109AC: push ebx */ 6774 PUSH32(esp, esi); /* 0x300109AD: push esi */ 6775 PUSH32(esp, edi); /* 0x300109AE: push edi */ 6776 esi = MEM32(eax + 0x14); /* 0x300109AF: mov esi, dword ptr [eax + 0x14] */ 6777 ebx = ecx; /* 0x300109B2: mov ebx, ecx */ 6778 /* test esi, esi */ /* 0x300109B4: test esi, esi */ 6779 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6780 _cf = 0; 6781 _flag_k = FK_TEST; 6782 if (TEST_NZ(_flag_a, _flag_b)) goto L_30010DE6; /* 0x300109B6: jne 0x30010de6 */ 6783 L_300109BC: 6784 ecx = MEM32(eax + 0x8); /* 0x300109BC: mov ecx, dword ptr [eax + 8] */ 6785 MEM32(ebp + (-0x4)) = esi; /* 0x300109BF: mov dword ptr [ebp - 4], esi */ 6786 esi = MEM32(eax + 0x4); /* 0x300109C2: mov esi, dword ptr [eax + 4] */ 6787 /* cmp esi, ecx */ /* 0x300109C5: cmp esi, ecx */ 6788 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6790 _flag_k = FK_CMP; 6791 MEM32(ebp + (-0x8)) = esi; /* 0x300109C7: mov dword ptr [ebp - 8], esi */ 6792 if (CMP_EQ(_flag_a, _flag_b)) goto L_30010DDA; /* 0x300109CA: je 0x30010dda */ 6793 L_300109D0: 6794 edi = MEM32(ebp + 0x8); /* 0x300109D0: mov edi, dword ptr [ebp + 8] */ 6795 L_300109D3: 6796 ecx = MEM32(ebp + 0x10); /* 0x300109D3: mov ecx, dword ptr [ebp + 0x10] */ 6797 edx = ebp + (-0xB4); /* 0x300109D6: lea edx, [ebp - 0xb4] */ 6798 PUSH32(esp, esi); /* 0x300109DC: push esi */ 6799 PUSH32(esp, edx); /* 0x300109DD: push edx */ 6800 eax = MEM32(ecx + 0x4); /* 0x300109DE: mov eax, dword ptr [ecx + 4] */ 6801 MEM32(ebp + 0x8) = eax; /* 0x300109E1: mov dword ptr [ebp + 8], eax */ 6802 RECOMP_ICALL(0x30011740u); /* 0x300109E4: call 0x30011740 */ /* not lifted */ 6803 RECOMP_FLAGS_IN(); 6804 ecx = MEM32(ebp + 0x8); /* 0x300109E9: mov ecx, dword ptr [ebp + 8] */ 6805 edx = MEM32(eax); /* 0x300109EC: mov edx, dword ptr [eax] */ 6806 /* cmp edx, ecx */ /* 0x300109EE: cmp edx, ecx */ 6807 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6809 _flag_k = FK_CMP; 6810 if (CMP_NE(_flag_a, _flag_b)) goto L_30010DC8; /* 0x300109F0: jne 0x30010dc8 */ 6811 L_300109F6: 6812 ecx = MEM32(ebp + 0x10); /* 0x300109F6: mov ecx, dword ptr [ebp + 0x10] */ 6813 eax = MEM32(esi); /* 0x300109F9: mov eax, dword ptr [esi] */ 6814 MEM32(ebp + (-0x30)) = eax; /* 0x300109FB: mov dword ptr [ebp - 0x30], eax */ 6815 eax = ebp + (-0xDC); /* 0x300109FE: lea eax, [ebp - 0xdc] */ 6816 edx = MEM32(ecx + 0x10); /* 0x30010A04: mov edx, dword ptr [ecx + 0x10] */ 6817 MEM32(ebp + (-0x2C)) = 0; /* 0x30010A07: mov dword ptr [ebp - 0x2c], 0 */ 6818 MEM32(ebp + 0x8) = edx; /* 0x30010A0E: mov dword ptr [ebp + 8], edx */ 6819 edx = ebp + (-0x30); /* 0x30010A11: lea edx, [ebp - 0x30] */ 6820 PUSH32(esp, edx); /* 0x30010A14: push edx */ 6821 PUSH32(esp, eax); /* 0x30010A15: push eax */ 6822 RECOMP_ICALL(0x30011590u); /* 0x30010A16: call 0x30011590 */ /* not lifted */ 6823 RECOMP_FLAGS_IN(); 6824 eax = MEM32(eax); /* 0x30010A1B: mov eax, dword ptr [eax] */ 6825 ecx = MEM32(ebp + 0x8); /* 0x30010A1D: mov ecx, dword ptr [ebp + 8] */ 6826 MEM32(eax + 0x10) = ecx; /* 0x30010A20: mov dword ptr [eax + 0x10], ecx */ 6827 ecx = ebp + (-0x14); /* 0x30010A23: lea ecx, [ebp - 0x14] */ 6828 MEM32(ebp + (-0x20)) = 0; /* 0x30010A26: mov dword ptr [ebp - 0x20], 0 */ 6829 MEM32(ebp + (-0x1C)) = 0; /* 0x30010A2D: mov dword ptr [ebp - 0x1c], 0 */ 6830 MEM32(ebp + (-0x18)) = 0; /* 0x30010A34: mov dword ptr [ebp - 0x18], 0 */ 6831 RECOMP_ICALL(MEM32(0x300190E4)); /* 0x30010A3B: call dword ptr [0x300190e4] */ 6832 RECOMP_FLAGS_IN(); 6833 eax = MEM32(esi); /* 0x30010A41: mov eax, dword ptr [esi] */ 6834 edx = eax; /* 0x30010A43: mov edx, eax */ 6835 ecx = MEM32(edx); /* 0x30010A45: mov ecx, dword ptr [edx] */ 6836 MEM32(ebp + (-0x20)) = ecx; /* 0x30010A47: mov dword ptr [ebp - 0x20], ecx */ 6837 ecx = MEM32(edx + 0x4); /* 0x30010A4A: mov ecx, dword ptr [edx + 4] */ 6838 MEM32(ebp + (-0x1C)) = ecx; /* 0x30010A4D: mov dword ptr [ebp - 0x1c], ecx */ 6839 ecx = eax + 0xC; /* 0x30010A50: lea ecx, [eax + 0xc] */ 6840 edx = MEM32(edx + 0x8); /* 0x30010A53: mov edx, dword ptr [edx + 8] */ 6841 MEM32(ebp + (-0x18)) = edx; /* 0x30010A56: mov dword ptr [ebp - 0x18], edx */ 6842 edx = MEM32(ecx); /* 0x30010A59: mov edx, dword ptr [ecx] */ 6843 MEM32(ebp + (-0x14)) = edx; /* 0x30010A5B: mov dword ptr [ebp - 0x14], edx */ 6844 edx = MEM32(ecx + 0x4); /* 0x30010A5E: mov edx, dword ptr [ecx + 4] */ 6845 MEM32(ebp + (-0x10)) = edx; /* 0x30010A61: mov dword ptr [ebp - 0x10], edx */ 6846 ecx = MEM32(ecx + 0x8); /* 0x30010A64: mov ecx, dword ptr [ecx + 8] */ 6847 MEM32(ebp + (-0xC)) = ecx; /* 0x30010A67: mov dword ptr [ebp - 0xc], ecx */ 6848 edx = MEM32(eax + 0x1C); /* 0x30010A6A: mov edx, dword ptr [eax + 0x1c] */ 6849 /* test edx, edx */ /* 0x30010A6D: test edx, edx */ 6850 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 6851 _cf = 0; 6852 _flag_k = FK_TEST; 6853 if (TEST_Z(_flag_a, _flag_b)) goto L_30010A86; /* 0x30010A6F: je 0x30010a86 */ 6854 L_30010A71: 6855 ecx = MEM32(eax + 0x20); /* 0x30010A71: mov ecx, dword ptr [eax + 0x20] */ 6856 eax = 0x2AAAAAABu; /* 0x30010A74: mov eax, 0x2aaaaaab */ 6857 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6859 ecx = ecx - edx; /* 0x30010A79: sub ecx, edx */ 6860 _flag_k = FK_CMP; 6861 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x30010A7B: imul ecx */ 6862 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6863 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6864 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x30010A7D: sar edx, 1 */ 6865 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6866 edx = (uint32_t)((int32_t)edx >> 1u); 6867 eax = edx; /* 0x30010A7F: mov eax, edx */ 6868 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x30010A81: shr eax, 0x1f */ 6869 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6870 eax = eax >> 31u; /* 0x30010A81: shr eax, 0x1f */ 6871 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6873 edx = edx + eax; /* 0x30010A84: add edx, eax */ 6874 _flag_k = FK_ADD; 6875 L_30010A86: 6876 eax = 0xAAAAAAABu; /* 0x30010A86: mov eax, 0xaaaaaaab */ 6877 ecx = ebp + (-0x14); /* 0x30010A8B: lea ecx, [ebp - 0x14] */ 6878 { uint64_t _r = (uint64_t)eax * (uint32_t)(edx); /* 0x30010A8E: mul edx */ 6879 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 6880 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6881 eax = ebp + (-0x20); /* 0x30010A90: lea eax, [ebp - 0x20] */ 6882 PUSH32(esp, ecx); /* 0x30010A93: push ecx */ 6883 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x30010A94: shr edx, 1 */ 6884 if (1u) { _flag_a = recomp_flags_pack((edx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6885 edx = edx >> 1u; /* 0x30010A94: shr edx, 1 */ 6886 PUSH32(esp, eax); /* 0x30010A96: push eax */ 6887 PUSH32(esp, edx); /* 0x30010A97: push edx */ 6888 ecx = edi; /* 0x30010A98: mov ecx, edi */ 6889 MEM32(ebp + (-0x24)) = edx; /* 0x30010A9A: mov dword ptr [ebp - 0x24], edx */ 6890 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010A9D: call dword ptr [0x30019078] */ 6891 RECOMP_FLAGS_IN(); 6892 PUSH32(esp, eax); /* 0x30010AA3: push eax */ 6893 RECOMP_ICALL(0x30011490u); /* 0x30010AA4: call 0x30011490 */ /* not lifted */ 6894 RECOMP_FLAGS_IN(); 6895 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6897 esp = esp + 8; /* 0x30010AA9: add esp, 8 */ 6898 _flag_k = FK_ADD; 6899 PUSH32(esp, eax); /* 0x30010AAC: push eax */ 6900 RECOMP_ICALL(0x30011490u); /* 0x30010AAD: call 0x30011490 */ /* not lifted */ 6901 RECOMP_FLAGS_IN(); 6902 ecx = MEM32(esi); /* 0x30010AB2: mov ecx, dword ptr [esi] */ 6903 eax = MEM32(ebx + 0x24); /* 0x30010AB4: mov eax, dword ptr [ebx + 0x24] */ 6904 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6905 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6906 esp = esp + 8; /* 0x30010AB7: add esp, 8 */ 6907 _flag_k = FK_ADD; 6908 /* cmp eax, 0x100u */ /* 0x30010ABA: cmp eax, 0x100 */ 6909 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x100u); 6910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6911 _flag_k = FK_CMP; 6912 esi = MEM32(ecx + 0x1C); /* 0x30010ABF: mov esi, dword ptr [ecx + 0x1c] */ 6913 if (CMP_GE(_flag_a, _flag_b)) goto L_30010BC3; /* 0x30010AC2: jge 0x30010bc3 */ 6914 L_30010AC8: 6915 eax = MEM32(ebp + (-0x24)); /* 0x30010AC8: mov eax, dword ptr [ebp - 0x24] */ 6916 MEM32(ebp + 0x8) = 0; /* 0x30010ACB: mov dword ptr [ebp + 8], 0 */ 6917 /* test eax, eax */ /* 0x30010AD2: test eax, eax */ 6918 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6919 _cf = 0; 6920 _flag_k = FK_TEST; 6921 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010AD4: jle 0x30010dbe */ 6922 L_30010ADA: 6923 eax = esi; /* 0x30010ADA: mov eax, esi */ 6924 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 6925 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6926 esi = esi + 0xCu; /* 0x30010ADC: add esi, 0xc */ 6927 _flag_k = FK_ADD; 6928 MEM32(ebp + (-0x34)) = 0; /* 0x30010ADF: mov dword ptr [ebp - 0x34], 0 */ 6929 edx = MEM32(eax); /* 0x30010AE6: mov edx, dword ptr [eax] */ 6930 ecx = MEM32(eax + 0x4); /* 0x30010AE8: mov ecx, dword ptr [eax + 4] */ 6931 MEM32(ebp + (-0x40)) = edx; /* 0x30010AEB: mov dword ptr [ebp - 0x40], edx */ 6932 edx = MEM32(eax + 0x8); /* 0x30010AEE: mov edx, dword ptr [eax + 8] */ 6933 MEM32(ebp + (-0x3C)) = ecx; /* 0x30010AF1: mov dword ptr [ebp - 0x3c], ecx */ 6934 eax = ebp + (-0x40); /* 0x30010AF4: lea eax, [ebp - 0x40] */ 6935 ecx = ebp + (-0x104); /* 0x30010AF7: lea ecx, [ebp - 0x104] */ 6936 PUSH32(esp, eax); /* 0x30010AFD: push eax */ 6937 PUSH32(esp, ecx); /* 0x30010AFE: push ecx */ 6938 ecx = ebx + 0xC; /* 0x30010AFF: lea ecx, [ebx + 0xc] */ 6939 MEM32(ebp + (-0x38)) = edx; /* 0x30010B02: mov dword ptr [ebp - 0x38], edx */ 6940 RECOMP_ICALL(0x30011330u); /* 0x30010B05: call 0x30011330 */ /* not lifted */ 6941 RECOMP_FLAGS_IN(); 6942 eax = MEM32(eax); /* 0x30010B0A: mov eax, dword ptr [eax] */ 6943 ecx = edi; /* 0x30010B0C: mov ecx, edi */ 6944 SET_LO8(edx, MEM8(eax + 0x18)); /* 0x30010B0E: mov dl, byte ptr [eax + 0x18] */ 6945 PUSH32(esp, edx); /* 0x30010B11: push edx */ 6946 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B12: call dword ptr [0x300190a4] */ 6947 RECOMP_FLAGS_IN(); 6948 eax = esi; /* 0x30010B18: mov eax, esi */ 6949 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 6950 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6951 esi = esi + 0xCu; /* 0x30010B1A: add esi, 0xc */ 6952 _flag_k = FK_ADD; 6953 MEM32(ebp + (-0x64)) = 0; /* 0x30010B1D: mov dword ptr [ebp - 0x64], 0 */ 6954 ecx = MEM32(eax); /* 0x30010B24: mov ecx, dword ptr [eax] */ 6955 edx = MEM32(eax + 0x4); /* 0x30010B26: mov edx, dword ptr [eax + 4] */ 6956 eax = MEM32(eax + 0x8); /* 0x30010B29: mov eax, dword ptr [eax + 8] */ 6957 MEM32(ebp + (-0x70)) = ecx; /* 0x30010B2C: mov dword ptr [ebp - 0x70], ecx */ 6958 MEM32(ebp + (-0x6C)) = edx; /* 0x30010B2F: mov dword ptr [ebp - 0x6c], edx */ 6959 ecx = ebp + (-0x70); /* 0x30010B32: lea ecx, [ebp - 0x70] */ 6960 edx = ebp + (-0xD4); /* 0x30010B35: lea edx, [ebp - 0xd4] */ 6961 PUSH32(esp, ecx); /* 0x30010B3B: push ecx */ 6962 PUSH32(esp, edx); /* 0x30010B3C: push edx */ 6963 ecx = ebx + 0xC; /* 0x30010B3D: lea ecx, [ebx + 0xc] */ 6964 MEM32(ebp + (-0x68)) = eax; /* 0x30010B40: mov dword ptr [ebp - 0x68], eax */ 6965 RECOMP_ICALL(0x30011330u); /* 0x30010B43: call 0x30011330 */ /* not lifted */ 6966 RECOMP_FLAGS_IN(); 6967 eax = MEM32(eax); /* 0x30010B48: mov eax, dword ptr [eax] */ 6968 ecx = edi; /* 0x30010B4A: mov ecx, edi */ 6969 SET_LO8(eax, MEM8(eax + 0x18)); /* 0x30010B4C: mov al, byte ptr [eax + 0x18] */ 6970 PUSH32(esp, eax); /* 0x30010B4F: push eax */ 6971 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B50: call dword ptr [0x300190a4] */ 6972 RECOMP_FLAGS_IN(); 6973 eax = esi; /* 0x30010B56: mov eax, esi */ 6974 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 6975 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6976 esi = esi + 0xCu; /* 0x30010B58: add esi, 0xc */ 6977 _flag_k = FK_ADD; 6978 MEM32(ebp + (-0x84)) = 0; /* 0x30010B5B: mov dword ptr [ebp - 0x84], 0 */ 6979 ecx = MEM32(eax); /* 0x30010B65: mov ecx, dword ptr [eax] */ 6980 edx = MEM32(eax + 0x4); /* 0x30010B67: mov edx, dword ptr [eax + 4] */ 6981 eax = MEM32(eax + 0x8); /* 0x30010B6A: mov eax, dword ptr [eax + 8] */ 6982 MEM32(ebp + (-0x90)) = ecx; /* 0x30010B6D: mov dword ptr [ebp - 0x90], ecx */ 6983 MEM32(ebp + (-0x8C)) = edx; /* 0x30010B73: mov dword ptr [ebp - 0x8c], edx */ 6984 ecx = ebp + (-0x90); /* 0x30010B79: lea ecx, [ebp - 0x90] */ 6985 edx = ebp + (-0xF4); /* 0x30010B7F: lea edx, [ebp - 0xf4] */ 6986 PUSH32(esp, ecx); /* 0x30010B85: push ecx */ 6987 PUSH32(esp, edx); /* 0x30010B86: push edx */ 6988 ecx = ebx + 0xC; /* 0x30010B87: lea ecx, [ebx + 0xc] */ 6989 MEM32(ebp + (-0x88)) = eax; /* 0x30010B8A: mov dword ptr [ebp - 0x88], eax */ 6990 RECOMP_ICALL(0x30011330u); /* 0x30010B90: call 0x30011330 */ /* not lifted */ 6991 RECOMP_FLAGS_IN(); 6992 eax = MEM32(eax); /* 0x30010B95: mov eax, dword ptr [eax] */ 6993 ecx = edi; /* 0x30010B97: mov ecx, edi */ 6994 SET_LO8(eax, MEM8(eax + 0x18)); /* 0x30010B99: mov al, byte ptr [eax + 0x18] */ 6995 PUSH32(esp, eax); /* 0x30010B9C: push eax */ 6996 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B9D: call dword ptr [0x300190a4] */ 6997 RECOMP_FLAGS_IN(); 6998 eax = MEM32(ebx + 0x20); /* 0x30010BA3: mov eax, dword ptr [ebx + 0x20] */ 6999 ecx = MEM32(ebp + (-0x24)); /* 0x30010BA6: mov ecx, dword ptr [ebp - 0x24] */ 7000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 7001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7002 eax = eax + 3; /* 0x30010BA9: add eax, 3 */ 7003 _flag_k = FK_ADD; 7004 MEM32(ebx + 0x20) = eax; /* 0x30010BAC: mov dword ptr [ebx + 0x20], eax */ 7005 eax = MEM32(ebp + 0x8); /* 0x30010BAF: mov eax, dword ptr [ebp + 8] */ 7006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7007 eax = eax + 1; /* 0x30010BB2: inc eax */ 7008 _flag_k = FK_INC; 7009 /* cmp eax, ecx */ /* 0x30010BB3: cmp eax, ecx */ 7010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7012 _flag_k = FK_CMP; 7013 MEM32(ebp + 0x8) = eax; /* 0x30010BB5: mov dword ptr [ebp + 8], eax */ 7014 RECOMP_BACKEDGE(); 7015 if (CMP_L(_flag_a, _flag_b)) goto L_30010ADA; /* 0x30010BB8: jl 0x30010ada */ 7016 L_30010BBE: 7017 goto L_30010DBE; /* 0x30010BBE: jmp 0x30010dbe */ 7018 L_30010BC3: 7019 /* cmp eax, 0x00010000u */ /* 0x30010BC3: cmp eax, 0x10000 */ 7020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00010000u); 7021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7022 _flag_k = FK_CMP; 7023 if (CMP_GE(_flag_a, _flag_b)) goto L_30010CBD; /* 0x30010BC8: jge 0x30010cbd */ 7024 L_30010BCE: 7025 eax = MEM32(ebp + (-0x24)); /* 0x30010BCE: mov eax, dword ptr [ebp - 0x24] */ 7026 MEM32(ebp + 0x8) = 0; /* 0x30010BD1: mov dword ptr [ebp + 8], 0 */ 7027 /* test eax, eax */ /* 0x30010BD8: test eax, eax */ 7028 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7029 _cf = 0; 7030 _flag_k = FK_TEST; 7031 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010BDA: jle 0x30010dbe */ 7032 L_30010BE0: 7033 eax = esi; /* 0x30010BE0: mov eax, esi */ 7034 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7035 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7036 esi = esi + 0xCu; /* 0x30010BE2: add esi, 0xc */ 7037 _flag_k = FK_ADD; 7038 MEM32(ebp + (-0x44)) = 0; /* 0x30010BE5: mov dword ptr [ebp - 0x44], 0 */ 7039 ecx = MEM32(eax); /* 0x30010BEC: mov ecx, dword ptr [eax] */ 7040 edx = MEM32(eax + 0x4); /* 0x30010BEE: mov edx, dword ptr [eax + 4] */ 7041 eax = MEM32(eax + 0x8); /* 0x30010BF1: mov eax, dword ptr [eax + 8] */ 7042 MEM32(ebp + (-0x50)) = ecx; /* 0x30010BF4: mov dword ptr [ebp - 0x50], ecx */ 7043 MEM32(ebp + (-0x4C)) = edx; /* 0x30010BF7: mov dword ptr [ebp - 0x4c], edx */ 7044 ecx = ebp + (-0x50); /* 0x30010BFA: lea ecx, [ebp - 0x50] */ 7045 edx = ebp + (-0xE4); /* 0x30010BFD: lea edx, [ebp - 0xe4] */ 7046 PUSH32(esp, ecx); /* 0x30010C03: push ecx */ 7047 PUSH32(esp, edx); /* 0x30010C04: push edx */ 7048 ecx = ebx + 0xC; /* 0x30010C05: lea ecx, [ebx + 0xc] */ 7049 MEM32(ebp + (-0x48)) = eax; /* 0x30010C08: mov dword ptr [ebp - 0x48], eax */ 7050 RECOMP_ICALL(0x30011330u); /* 0x30010C0B: call 0x30011330 */ /* not lifted */ 7051 RECOMP_FLAGS_IN(); 7052 eax = MEM32(eax); /* 0x30010C10: mov eax, dword ptr [eax] */ 7053 ecx = edi; /* 0x30010C12: mov ecx, edi */ 7054 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C14: mov ax, word ptr [eax + 0x18] */ 7055 PUSH32(esp, eax); /* 0x30010C18: push eax */ 7056 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C19: call dword ptr [0x300190a8] */ 7057 RECOMP_FLAGS_IN(); 7058 eax = esi; /* 0x30010C1F: mov eax, esi */ 7059 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7061 esi = esi + 0xCu; /* 0x30010C21: add esi, 0xc */ 7062 _flag_k = FK_ADD; 7063 MEM32(ebp + (-0x54)) = 0; /* 0x30010C24: mov dword ptr [ebp - 0x54], 0 */ 7064 ecx = MEM32(eax); /* 0x30010C2B: mov ecx, dword ptr [eax] */ 7065 edx = MEM32(eax + 0x4); /* 0x30010C2D: mov edx, dword ptr [eax + 4] */ 7066 eax = MEM32(eax + 0x8); /* 0x30010C30: mov eax, dword ptr [eax + 8] */ 7067 MEM32(ebp + (-0x60)) = ecx; /* 0x30010C33: mov dword ptr [ebp - 0x60], ecx */ 7068 MEM32(ebp + (-0x5C)) = edx; /* 0x30010C36: mov dword ptr [ebp - 0x5c], edx */ 7069 ecx = ebp + (-0x60); /* 0x30010C39: lea ecx, [ebp - 0x60] */ 7070 edx = ebp + (-0xC4); /* 0x30010C3C: lea edx, [ebp - 0xc4] */ 7071 PUSH32(esp, ecx); /* 0x30010C42: push ecx */ 7072 PUSH32(esp, edx); /* 0x30010C43: push edx */ 7073 ecx = ebx + 0xC; /* 0x30010C44: lea ecx, [ebx + 0xc] */ 7074 MEM32(ebp + (-0x58)) = eax; /* 0x30010C47: mov dword ptr [ebp - 0x58], eax */ 7075 RECOMP_ICALL(0x30011330u); /* 0x30010C4A: call 0x30011330 */ /* not lifted */ 7076 RECOMP_FLAGS_IN(); 7077 eax = MEM32(eax); /* 0x30010C4F: mov eax, dword ptr [eax] */ 7078 ecx = edi; /* 0x30010C51: mov ecx, edi */ 7079 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C53: mov ax, word ptr [eax + 0x18] */ 7080 PUSH32(esp, eax); /* 0x30010C57: push eax */ 7081 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C58: call dword ptr [0x300190a8] */ 7082 RECOMP_FLAGS_IN(); 7083 eax = esi; /* 0x30010C5E: mov eax, esi */ 7084 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7085 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7086 esi = esi + 0xCu; /* 0x30010C60: add esi, 0xc */ 7087 _flag_k = FK_ADD; 7088 MEM32(ebp + (-0x74)) = 0; /* 0x30010C63: mov dword ptr [ebp - 0x74], 0 */ 7089 ecx = MEM32(eax); /* 0x30010C6A: mov ecx, dword ptr [eax] */ 7090 edx = MEM32(eax + 0x4); /* 0x30010C6C: mov edx, dword ptr [eax + 4] */ 7091 eax = MEM32(eax + 0x8); /* 0x30010C6F: mov eax, dword ptr [eax + 8] */ 7092 MEM32(ebp + (-0x80)) = ecx; /* 0x30010C72: mov dword ptr [ebp - 0x80], ecx */ 7093 MEM32(ebp + (-0x7C)) = edx; /* 0x30010C75: mov dword ptr [ebp - 0x7c], edx */ 7094 ecx = ebp + (-0x80); /* 0x30010C78: lea ecx, [ebp - 0x80] */ 7095 edx = ebp + (-0xCC); /* 0x30010C7B: lea edx, [ebp - 0xcc] */ 7096 PUSH32(esp, ecx); /* 0x30010C81: push ecx */ 7097 PUSH32(esp, edx); /* 0x30010C82: push edx */ 7098 ecx = ebx + 0xC; /* 0x30010C83: lea ecx, [ebx + 0xc] */ 7099 MEM32(ebp + (-0x78)) = eax; /* 0x30010C86: mov dword ptr [ebp - 0x78], eax */ 7100 RECOMP_ICALL(0x30011330u); /* 0x30010C89: call 0x30011330 */ /* not lifted */ 7101 RECOMP_FLAGS_IN(); 7102 eax = MEM32(eax); /* 0x30010C8E: mov eax, dword ptr [eax] */ 7103 ecx = edi; /* 0x30010C90: mov ecx, edi */ 7104 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C92: mov ax, word ptr [eax + 0x18] */ 7105 PUSH32(esp, eax); /* 0x30010C96: push eax */ 7106 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C97: call dword ptr [0x300190a8] */ 7107 RECOMP_FLAGS_IN(); 7108 eax = MEM32(ebx + 0x20); /* 0x30010C9D: mov eax, dword ptr [ebx + 0x20] */ 7109 ecx = MEM32(ebp + (-0x24)); /* 0x30010CA0: mov ecx, dword ptr [ebp - 0x24] */ 7110 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 7111 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7112 eax = eax + 3; /* 0x30010CA3: add eax, 3 */ 7113 _flag_k = FK_ADD; 7114 MEM32(ebx + 0x20) = eax; /* 0x30010CA6: mov dword ptr [ebx + 0x20], eax */ 7115 eax = MEM32(ebp + 0x8); /* 0x30010CA9: mov eax, dword ptr [ebp + 8] */ 7116 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7117 eax = eax + 1; /* 0x30010CAC: inc eax */ 7118 _flag_k = FK_INC; 7119 /* cmp eax, ecx */ /* 0x30010CAD: cmp eax, ecx */ 7120 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7122 _flag_k = FK_CMP; 7123 MEM32(ebp + 0x8) = eax; /* 0x30010CAF: mov dword ptr [ebp + 8], eax */ 7124 RECOMP_BACKEDGE(); 7125 if (CMP_L(_flag_a, _flag_b)) goto L_30010BE0; /* 0x30010CB2: jl 0x30010be0 */ 7126 L_30010CB8: 7127 goto L_30010DBE; /* 0x30010CB8: jmp 0x30010dbe */ 7128 L_30010CBD: 7129 eax = MEM32(ebp + (-0x24)); /* 0x30010CBD: mov eax, dword ptr [ebp - 0x24] */ 7130 MEM32(ebp + 0x8) = 0; /* 0x30010CC0: mov dword ptr [ebp + 8], 0 */ 7131 /* test eax, eax */ /* 0x30010CC7: test eax, eax */ 7132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7133 _cf = 0; 7134 _flag_k = FK_TEST; 7135 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010CC9: jle 0x30010dbe */ 7136 L_30010CCF: 7137 eax = esi; /* 0x30010CCF: mov eax, esi */ 7138 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7139 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7140 esi = esi + 0xCu; /* 0x30010CD1: add esi, 0xc */ 7141 _flag_k = FK_ADD; 7142 MEM32(ebp + (-0xA4)) = 0; /* 0x30010CD4: mov dword ptr [ebp - 0xa4], 0 */ 7143 ecx = MEM32(eax); /* 0x30010CDE: mov ecx, dword ptr [eax] */ 7144 edx = MEM32(eax + 0x4); /* 0x30010CE0: mov edx, dword ptr [eax + 4] */ 7145 eax = MEM32(eax + 0x8); /* 0x30010CE3: mov eax, dword ptr [eax + 8] */ 7146 MEM32(ebp + (-0xB0)) = ecx; /* 0x30010CE6: mov dword ptr [ebp - 0xb0], ecx */ 7147 MEM32(ebp + (-0xAC)) = edx; /* 0x30010CEC: mov dword ptr [ebp - 0xac], edx */ 7148 ecx = ebp + (-0xB0); /* 0x30010CF2: lea ecx, [ebp - 0xb0] */ 7149 edx = ebp + (-0xBC); /* 0x30010CF8: lea edx, [ebp - 0xbc] */ 7150 PUSH32(esp, ecx); /* 0x30010CFE: push ecx */ 7151 PUSH32(esp, edx); /* 0x30010CFF: push edx */ 7152 ecx = ebx + 0xC; /* 0x30010D00: lea ecx, [ebx + 0xc] */ 7153 MEM32(ebp + (-0xA8)) = eax; /* 0x30010D03: mov dword ptr [ebp - 0xa8], eax */ 7154 RECOMP_ICALL(0x30011330u); /* 0x30010D09: call 0x30011330 */ /* not lifted */ 7155 RECOMP_FLAGS_IN(); 7156 eax = MEM32(eax); /* 0x30010D0E: mov eax, dword ptr [eax] */ 7157 ecx = edi; /* 0x30010D10: mov ecx, edi */ 7158 eax = MEM32(eax + 0x18); /* 0x30010D12: mov eax, dword ptr [eax + 0x18] */ 7159 PUSH32(esp, eax); /* 0x30010D15: push eax */ 7160 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D16: call dword ptr [0x30019078] */ 7161 RECOMP_FLAGS_IN(); 7162 eax = esi; /* 0x30010D1C: mov eax, esi */ 7163 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7164 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7165 esi = esi + 0xCu; /* 0x30010D1E: add esi, 0xc */ 7166 _flag_k = FK_ADD; 7167 MEM32(ebp + (-0x94)) = 0; /* 0x30010D21: mov dword ptr [ebp - 0x94], 0 */ 7168 ecx = MEM32(eax); /* 0x30010D2B: mov ecx, dword ptr [eax] */ 7169 edx = MEM32(eax + 0x4); /* 0x30010D2D: mov edx, dword ptr [eax + 4] */ 7170 eax = MEM32(eax + 0x8); /* 0x30010D30: mov eax, dword ptr [eax + 8] */ 7171 MEM32(ebp + (-0xA0)) = ecx; /* 0x30010D33: mov dword ptr [ebp - 0xa0], ecx */ 7172 MEM32(ebp + (-0x9C)) = edx; /* 0x30010D39: mov dword ptr [ebp - 0x9c], edx */ 7173 ecx = ebp + (-0xA0); /* 0x30010D3F: lea ecx, [ebp - 0xa0] */ 7174 edx = ebp + (-0xEC); /* 0x30010D45: lea edx, [ebp - 0xec] */ 7175 PUSH32(esp, ecx); /* 0x30010D4B: push ecx */ 7176 PUSH32(esp, edx); /* 0x30010D4C: push edx */ 7177 ecx = ebx + 0xC; /* 0x30010D4D: lea ecx, [ebx + 0xc] */ 7178 MEM32(ebp + (-0x98)) = eax; /* 0x30010D50: mov dword ptr [ebp - 0x98], eax */ 7179 RECOMP_ICALL(0x30011330u); /* 0x30010D56: call 0x30011330 */ /* not lifted */ 7180 RECOMP_FLAGS_IN(); 7181 eax = MEM32(eax); /* 0x30010D5B: mov eax, dword ptr [eax] */ 7182 ecx = edi; /* 0x30010D5D: mov ecx, edi */ 7183 eax = MEM32(eax + 0x18); /* 0x30010D5F: mov eax, dword ptr [eax + 0x18] */ 7184 PUSH32(esp, eax); /* 0x30010D62: push eax */ 7185 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D63: call dword ptr [0x30019078] */ 7186 RECOMP_FLAGS_IN(); 7187 ecx = ebp + (-0x28); /* 0x30010D69: lea ecx, [ebp - 0x28] */ 7188 eax = esi; /* 0x30010D6C: mov eax, esi */ 7189 PUSH32(esp, ecx); /* 0x30010D6E: push ecx */ 7190 PUSH32(esp, eax); /* 0x30010D6F: push eax */ 7191 ecx = ebp + (-0x114); /* 0x30010D70: lea ecx, [ebp - 0x114] */ 7192 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7194 esi = esi + 0xCu; /* 0x30010D76: add esi, 0xc */ 7195 _flag_k = FK_ADD; 7196 MEM32(ebp + (-0x28)) = 0; /* 0x30010D79: mov dword ptr [ebp - 0x28], 0 */ 7197 RECOMP_ICALL(0x30011560u); /* 0x30010D80: call 0x30011560 */ /* not lifted */ 7198 RECOMP_FLAGS_IN(); 7199 edx = ebp + (-0xFC); /* 0x30010D85: lea edx, [ebp - 0xfc] */ 7200 PUSH32(esp, eax); /* 0x30010D8B: push eax */ 7201 PUSH32(esp, edx); /* 0x30010D8C: push edx */ 7202 ecx = ebx + 0xC; /* 0x30010D8D: lea ecx, [ebx + 0xc] */ 7203 RECOMP_ICALL(0x30011330u); /* 0x30010D90: call 0x30011330 */ /* not lifted */ 7204 RECOMP_FLAGS_IN(); 7205 eax = MEM32(eax); /* 0x30010D95: mov eax, dword ptr [eax] */ 7206 ecx = edi; /* 0x30010D97: mov ecx, edi */ 7207 eax = MEM32(eax + 0x18); /* 0x30010D99: mov eax, dword ptr [eax + 0x18] */ 7208 PUSH32(esp, eax); /* 0x30010D9C: push eax */ 7209 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D9D: call dword ptr [0x30019078] */ 7210 RECOMP_FLAGS_IN(); 7211 eax = MEM32(ebx + 0x20); /* 0x30010DA3: mov eax, dword ptr [ebx + 0x20] */ 7212 ecx = MEM32(ebp + (-0x24)); /* 0x30010DA6: mov ecx, dword ptr [ebp - 0x24] */ 7213 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 7214 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7215 eax = eax + 3; /* 0x30010DA9: add eax, 3 */ 7216 _flag_k = FK_ADD; 7217 MEM32(ebx + 0x20) = eax; /* 0x30010DAC: mov dword ptr [ebx + 0x20], eax */ 7218 eax = MEM32(ebp + 0x8); /* 0x30010DAF: mov eax, dword ptr [ebp + 8] */ 7219 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7220 eax = eax + 1; /* 0x30010DB2: inc eax */ 7221 _flag_k = FK_INC; 7222 /* cmp eax, ecx */ /* 0x30010DB3: cmp eax, ecx */ 7223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7225 _flag_k = FK_CMP; 7226 MEM32(ebp + 0x8) = eax; /* 0x30010DB5: mov dword ptr [ebp + 8], eax */ 7227 RECOMP_BACKEDGE(); 7228 if (CMP_L(_flag_a, _flag_b)) goto L_30010CCF; /* 0x30010DB8: jl 0x30010ccf */ 7229 L_30010DBE: 7230 eax = MEM32(ebp + (-0x4)); /* 0x30010DBE: mov eax, dword ptr [ebp - 4] */ 7231 esi = MEM32(ebp + (-0x8)); /* 0x30010DC1: mov esi, dword ptr [ebp - 8] */ 7232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7233 eax = eax + 1; /* 0x30010DC4: inc eax */ 7234 _flag_k = FK_INC; 7235 MEM32(ebp + (-0x4)) = eax; /* 0x30010DC5: mov dword ptr [ebp - 4], eax */ 7236 L_30010DC8: 7237 ecx = MEM32(ebp + 0xC); /* 0x30010DC8: mov ecx, dword ptr [ebp + 0xc] */ 7238 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 7239 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7240 esi = esi + 4; /* 0x30010DCB: add esi, 4 */ 7241 _flag_k = FK_ADD; 7242 MEM32(ebp + (-0x8)) = esi; /* 0x30010DCE: mov dword ptr [ebp - 8], esi */ 7243 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x30010DD1: cmp esi, dword ptr [ecx + 8] */ 7244 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 7245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7246 _flag_k = FK_CMP; 7247 RECOMP_BACKEDGE(); 7248 if (CMP_NE(_flag_a, _flag_b)) goto L_300109D3; /* 0x30010DD4: jne 0x300109d3 */ 7249 L_30010DDA: 7250 eax = MEM32(ebp + (-0x4)); /* 0x30010DDA: mov eax, dword ptr [ebp - 4] */ 7251 edi = POP32_VAL(esp); /* 0x30010DDD: pop edi */ 7252 esi = POP32_VAL(esp); /* 0x30010DDE: pop esi */ 7253 ebx = POP32_VAL(esp); /* 0x30010DDF: pop ebx */ 7254 esp = ebp; /* 0x30010DE0: mov esp, ebp */ 7255 ebp = POP32_VAL(esp); /* 0x30010DE2: pop ebp */ 7256 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x30010DE3: ret 0xc */ 7257 L_30010DE6: 7258 edi = MEM32(ebp + 0x10); /* 0x30010DE6: mov edi, dword ptr [ebp + 0x10] */ 7259 eax = MEM32(eax + 0x10); /* 0x30010DE9: mov eax, dword ptr [eax + 0x10] */ 7260 edx = MEM32(ebp + 0x8); /* 0x30010DEC: mov edx, dword ptr [ebp + 8] */ 7261 PUSH32(esp, edi); /* 0x30010DEF: push edi */ 7262 PUSH32(esp, eax); /* 0x30010DF0: push eax */ 7263 PUSH32(esp, edx); /* 0x30010DF1: push edx */ 7264 ecx = ebx; /* 0x30010DF2: mov ecx, ebx */ 7265 RECOMP_ICALL(0x300109A0u); /* 0x30010DF4: call 0x300109a0 */ /* not lifted */ 7266 RECOMP_FLAGS_IN(); 7267 edx = eax; /* 0x30010DF9: mov edx, eax */ 7268 eax = MEM32(ebp + 0x8); /* 0x30010DFB: mov eax, dword ptr [ebp + 8] */ 7269 PUSH32(esp, edi); /* 0x30010DFE: push edi */ 7270 PUSH32(esp, esi); /* 0x30010DFF: push esi */ 7271 PUSH32(esp, eax); /* 0x30010E00: push eax */ 7272 ecx = ebx; /* 0x30010E01: mov ecx, ebx */ 7273 MEM32(ebp + 0x10) = edx; /* 0x30010E03: mov dword ptr [ebp + 0x10], edx */ 7274 RECOMP_ICALL(0x300109A0u); /* 0x30010E06: call 0x300109a0 */ /* not lifted */ 7275 RECOMP_FLAGS_IN(); 7276 ecx = MEM32(ebp + 0x10); /* 0x30010E0B: mov ecx, dword ptr [ebp + 0x10] */ 7277 edi = POP32_VAL(esp); /* 0x30010E0E: pop edi */ 7278 esi = POP32_VAL(esp); /* 0x30010E0F: pop esi */ 7279 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7280 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7281 eax = eax + ecx; /* 0x30010E10: add eax, ecx */ 7282 _flag_k = FK_ADD; 7283 ebx = POP32_VAL(esp); /* 0x30010E12: pop ebx */ 7284 esp = ebp; /* 0x30010E13: mov esp, ebp */ 7285 ebp = POP32_VAL(esp); /* 0x30010E15: pop ebp */ 7286 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x30010E16: ret 0xc */ 7287 RECOMP_REGS_OUT(); 7288 } 7289 7290 void sub_300109D3(void) { 7291 int _fpu_cmp = 0; 7292 uint32_t _cf = 0; 7293 int _df = 1; 7294 uint32_t _flag_k = FK_NONE; 7295 uint32_t _flag_a = 0, _flag_b = 0; 7296 uint32_t _itail_tgt = 0; 7297 RECOMP_REGS_LOCALS 7298 RECOMP_ENTER(0x300109D3u); 7299 7300 L_300109D3: 7301 ecx = MEM32(ebp + 0x10); /* 0x300109D3: mov ecx, dword ptr [ebp + 0x10] */ 7302 edx = ebp + (-0xB4); /* 0x300109D6: lea edx, [ebp - 0xb4] */ 7303 PUSH32(esp, esi); /* 0x300109DC: push esi */ 7304 PUSH32(esp, edx); /* 0x300109DD: push edx */ 7305 eax = MEM32(ecx + 0x4); /* 0x300109DE: mov eax, dword ptr [ecx + 4] */ 7306 MEM32(ebp + 0x8) = eax; /* 0x300109E1: mov dword ptr [ebp + 8], eax */ 7307 RECOMP_ICALL(0x30011740u); /* 0x300109E4: call 0x30011740 */ /* not lifted */ 7308 RECOMP_FLAGS_IN(); 7309 ecx = MEM32(ebp + 0x8); /* 0x300109E9: mov ecx, dword ptr [ebp + 8] */ 7310 edx = MEM32(eax); /* 0x300109EC: mov edx, dword ptr [eax] */ 7311 /* cmp edx, ecx */ /* 0x300109EE: cmp edx, ecx */ 7312 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7314 _flag_k = FK_CMP; 7315 if (CMP_NE(_flag_a, _flag_b)) goto L_30010DC8; /* 0x300109F0: jne 0x30010dc8 */ 7316 L_300109F6: 7317 ecx = MEM32(ebp + 0x10); /* 0x300109F6: mov ecx, dword ptr [ebp + 0x10] */ 7318 eax = MEM32(esi); /* 0x300109F9: mov eax, dword ptr [esi] */ 7319 MEM32(ebp + (-0x30)) = eax; /* 0x300109FB: mov dword ptr [ebp - 0x30], eax */ 7320 eax = ebp + (-0xDC); /* 0x300109FE: lea eax, [ebp - 0xdc] */ 7321 edx = MEM32(ecx + 0x10); /* 0x30010A04: mov edx, dword ptr [ecx + 0x10] */ 7322 MEM32(ebp + (-0x2C)) = 0; /* 0x30010A07: mov dword ptr [ebp - 0x2c], 0 */ 7323 MEM32(ebp + 0x8) = edx; /* 0x30010A0E: mov dword ptr [ebp + 8], edx */ 7324 edx = ebp + (-0x30); /* 0x30010A11: lea edx, [ebp - 0x30] */ 7325 PUSH32(esp, edx); /* 0x30010A14: push edx */ 7326 PUSH32(esp, eax); /* 0x30010A15: push eax */ 7327 RECOMP_ICALL(0x30011590u); /* 0x30010A16: call 0x30011590 */ /* not lifted */ 7328 RECOMP_FLAGS_IN(); 7329 eax = MEM32(eax); /* 0x30010A1B: mov eax, dword ptr [eax] */ 7330 ecx = MEM32(ebp + 0x8); /* 0x30010A1D: mov ecx, dword ptr [ebp + 8] */ 7331 MEM32(eax + 0x10) = ecx; /* 0x30010A20: mov dword ptr [eax + 0x10], ecx */ 7332 ecx = ebp + (-0x14); /* 0x30010A23: lea ecx, [ebp - 0x14] */ 7333 MEM32(ebp + (-0x20)) = 0; /* 0x30010A26: mov dword ptr [ebp - 0x20], 0 */ 7334 MEM32(ebp + (-0x1C)) = 0; /* 0x30010A2D: mov dword ptr [ebp - 0x1c], 0 */ 7335 MEM32(ebp + (-0x18)) = 0; /* 0x30010A34: mov dword ptr [ebp - 0x18], 0 */ 7336 RECOMP_ICALL(MEM32(0x300190E4)); /* 0x30010A3B: call dword ptr [0x300190e4] */ 7337 RECOMP_FLAGS_IN(); 7338 eax = MEM32(esi); /* 0x30010A41: mov eax, dword ptr [esi] */ 7339 edx = eax; /* 0x30010A43: mov edx, eax */ 7340 ecx = MEM32(edx); /* 0x30010A45: mov ecx, dword ptr [edx] */ 7341 MEM32(ebp + (-0x20)) = ecx; /* 0x30010A47: mov dword ptr [ebp - 0x20], ecx */ 7342 ecx = MEM32(edx + 0x4); /* 0x30010A4A: mov ecx, dword ptr [edx + 4] */ 7343 MEM32(ebp + (-0x1C)) = ecx; /* 0x30010A4D: mov dword ptr [ebp - 0x1c], ecx */ 7344 ecx = eax + 0xC; /* 0x30010A50: lea ecx, [eax + 0xc] */ 7345 edx = MEM32(edx + 0x8); /* 0x30010A53: mov edx, dword ptr [edx + 8] */ 7346 MEM32(ebp + (-0x18)) = edx; /* 0x30010A56: mov dword ptr [ebp - 0x18], edx */ 7347 edx = MEM32(ecx); /* 0x30010A59: mov edx, dword ptr [ecx] */ 7348 MEM32(ebp + (-0x14)) = edx; /* 0x30010A5B: mov dword ptr [ebp - 0x14], edx */ 7349 edx = MEM32(ecx + 0x4); /* 0x30010A5E: mov edx, dword ptr [ecx + 4] */ 7350 MEM32(ebp + (-0x10)) = edx; /* 0x30010A61: mov dword ptr [ebp - 0x10], edx */ 7351 ecx = MEM32(ecx + 0x8); /* 0x30010A64: mov ecx, dword ptr [ecx + 8] */ 7352 MEM32(ebp + (-0xC)) = ecx; /* 0x30010A67: mov dword ptr [ebp - 0xc], ecx */ 7353 edx = MEM32(eax + 0x1C); /* 0x30010A6A: mov edx, dword ptr [eax + 0x1c] */ 7354 /* test edx, edx */ /* 0x30010A6D: test edx, edx */ 7355 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 7356 _cf = 0; 7357 _flag_k = FK_TEST; 7358 if (TEST_Z(_flag_a, _flag_b)) goto L_30010A86; /* 0x30010A6F: je 0x30010a86 */ 7359 L_30010A71: 7360 ecx = MEM32(eax + 0x20); /* 0x30010A71: mov ecx, dword ptr [eax + 0x20] */ 7361 eax = 0x2AAAAAABu; /* 0x30010A74: mov eax, 0x2aaaaaab */ 7362 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7364 ecx = ecx - edx; /* 0x30010A79: sub ecx, edx */ 7365 _flag_k = FK_CMP; 7366 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x30010A7B: imul ecx */ 7367 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7368 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7369 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x30010A7D: sar edx, 1 */ 7370 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7371 edx = (uint32_t)((int32_t)edx >> 1u); 7372 eax = edx; /* 0x30010A7F: mov eax, edx */ 7373 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x30010A81: shr eax, 0x1f */ 7374 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7375 eax = eax >> 31u; /* 0x30010A81: shr eax, 0x1f */ 7376 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7377 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7378 edx = edx + eax; /* 0x30010A84: add edx, eax */ 7379 _flag_k = FK_ADD; 7380 L_30010A86: 7381 eax = 0xAAAAAAABu; /* 0x30010A86: mov eax, 0xaaaaaaab */ 7382 ecx = ebp + (-0x14); /* 0x30010A8B: lea ecx, [ebp - 0x14] */ 7383 { uint64_t _r = (uint64_t)eax * (uint32_t)(edx); /* 0x30010A8E: mul edx */ 7384 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 7385 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7386 eax = ebp + (-0x20); /* 0x30010A90: lea eax, [ebp - 0x20] */ 7387 PUSH32(esp, ecx); /* 0x30010A93: push ecx */ 7388 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x30010A94: shr edx, 1 */ 7389 if (1u) { _flag_a = recomp_flags_pack((edx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7390 edx = edx >> 1u; /* 0x30010A94: shr edx, 1 */ 7391 PUSH32(esp, eax); /* 0x30010A96: push eax */ 7392 PUSH32(esp, edx); /* 0x30010A97: push edx */ 7393 ecx = edi; /* 0x30010A98: mov ecx, edi */ 7394 MEM32(ebp + (-0x24)) = edx; /* 0x30010A9A: mov dword ptr [ebp - 0x24], edx */ 7395 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010A9D: call dword ptr [0x30019078] */ 7396 RECOMP_FLAGS_IN(); 7397 PUSH32(esp, eax); /* 0x30010AA3: push eax */ 7398 RECOMP_ICALL(0x30011490u); /* 0x30010AA4: call 0x30011490 */ /* not lifted */ 7399 RECOMP_FLAGS_IN(); 7400 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7402 esp = esp + 8; /* 0x30010AA9: add esp, 8 */ 7403 _flag_k = FK_ADD; 7404 PUSH32(esp, eax); /* 0x30010AAC: push eax */ 7405 RECOMP_ICALL(0x30011490u); /* 0x30010AAD: call 0x30011490 */ /* not lifted */ 7406 RECOMP_FLAGS_IN(); 7407 ecx = MEM32(esi); /* 0x30010AB2: mov ecx, dword ptr [esi] */ 7408 eax = MEM32(ebx + 0x24); /* 0x30010AB4: mov eax, dword ptr [ebx + 0x24] */ 7409 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7410 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7411 esp = esp + 8; /* 0x30010AB7: add esp, 8 */ 7412 _flag_k = FK_ADD; 7413 /* cmp eax, 0x100u */ /* 0x30010ABA: cmp eax, 0x100 */ 7414 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x100u); 7415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7416 _flag_k = FK_CMP; 7417 esi = MEM32(ecx + 0x1C); /* 0x30010ABF: mov esi, dword ptr [ecx + 0x1c] */ 7418 if (CMP_GE(_flag_a, _flag_b)) goto L_30010BC3; /* 0x30010AC2: jge 0x30010bc3 */ 7419 L_30010AC8: 7420 eax = MEM32(ebp + (-0x24)); /* 0x30010AC8: mov eax, dword ptr [ebp - 0x24] */ 7421 MEM32(ebp + 0x8) = 0; /* 0x30010ACB: mov dword ptr [ebp + 8], 0 */ 7422 /* test eax, eax */ /* 0x30010AD2: test eax, eax */ 7423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7424 _cf = 0; 7425 _flag_k = FK_TEST; 7426 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010AD4: jle 0x30010dbe */ 7427 L_30010ADA: 7428 eax = esi; /* 0x30010ADA: mov eax, esi */ 7429 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7430 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7431 esi = esi + 0xCu; /* 0x30010ADC: add esi, 0xc */ 7432 _flag_k = FK_ADD; 7433 MEM32(ebp + (-0x34)) = 0; /* 0x30010ADF: mov dword ptr [ebp - 0x34], 0 */ 7434 edx = MEM32(eax); /* 0x30010AE6: mov edx, dword ptr [eax] */ 7435 ecx = MEM32(eax + 0x4); /* 0x30010AE8: mov ecx, dword ptr [eax + 4] */ 7436 MEM32(ebp + (-0x40)) = edx; /* 0x30010AEB: mov dword ptr [ebp - 0x40], edx */ 7437 edx = MEM32(eax + 0x8); /* 0x30010AEE: mov edx, dword ptr [eax + 8] */ 7438 MEM32(ebp + (-0x3C)) = ecx; /* 0x30010AF1: mov dword ptr [ebp - 0x3c], ecx */ 7439 eax = ebp + (-0x40); /* 0x30010AF4: lea eax, [ebp - 0x40] */ 7440 ecx = ebp + (-0x104); /* 0x30010AF7: lea ecx, [ebp - 0x104] */ 7441 PUSH32(esp, eax); /* 0x30010AFD: push eax */ 7442 PUSH32(esp, ecx); /* 0x30010AFE: push ecx */ 7443 ecx = ebx + 0xC; /* 0x30010AFF: lea ecx, [ebx + 0xc] */ 7444 MEM32(ebp + (-0x38)) = edx; /* 0x30010B02: mov dword ptr [ebp - 0x38], edx */ 7445 RECOMP_ICALL(0x30011330u); /* 0x30010B05: call 0x30011330 */ /* not lifted */ 7446 RECOMP_FLAGS_IN(); 7447 eax = MEM32(eax); /* 0x30010B0A: mov eax, dword ptr [eax] */ 7448 ecx = edi; /* 0x30010B0C: mov ecx, edi */ 7449 SET_LO8(edx, MEM8(eax + 0x18)); /* 0x30010B0E: mov dl, byte ptr [eax + 0x18] */ 7450 PUSH32(esp, edx); /* 0x30010B11: push edx */ 7451 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B12: call dword ptr [0x300190a4] */ 7452 RECOMP_FLAGS_IN(); 7453 eax = esi; /* 0x30010B18: mov eax, esi */ 7454 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7455 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7456 esi = esi + 0xCu; /* 0x30010B1A: add esi, 0xc */ 7457 _flag_k = FK_ADD; 7458 MEM32(ebp + (-0x64)) = 0; /* 0x30010B1D: mov dword ptr [ebp - 0x64], 0 */ 7459 ecx = MEM32(eax); /* 0x30010B24: mov ecx, dword ptr [eax] */ 7460 edx = MEM32(eax + 0x4); /* 0x30010B26: mov edx, dword ptr [eax + 4] */ 7461 eax = MEM32(eax + 0x8); /* 0x30010B29: mov eax, dword ptr [eax + 8] */ 7462 MEM32(ebp + (-0x70)) = ecx; /* 0x30010B2C: mov dword ptr [ebp - 0x70], ecx */ 7463 MEM32(ebp + (-0x6C)) = edx; /* 0x30010B2F: mov dword ptr [ebp - 0x6c], edx */ 7464 ecx = ebp + (-0x70); /* 0x30010B32: lea ecx, [ebp - 0x70] */ 7465 edx = ebp + (-0xD4); /* 0x30010B35: lea edx, [ebp - 0xd4] */ 7466 PUSH32(esp, ecx); /* 0x30010B3B: push ecx */ 7467 PUSH32(esp, edx); /* 0x30010B3C: push edx */ 7468 ecx = ebx + 0xC; /* 0x30010B3D: lea ecx, [ebx + 0xc] */ 7469 MEM32(ebp + (-0x68)) = eax; /* 0x30010B40: mov dword ptr [ebp - 0x68], eax */ 7470 RECOMP_ICALL(0x30011330u); /* 0x30010B43: call 0x30011330 */ /* not lifted */ 7471 RECOMP_FLAGS_IN(); 7472 eax = MEM32(eax); /* 0x30010B48: mov eax, dword ptr [eax] */ 7473 ecx = edi; /* 0x30010B4A: mov ecx, edi */ 7474 SET_LO8(eax, MEM8(eax + 0x18)); /* 0x30010B4C: mov al, byte ptr [eax + 0x18] */ 7475 PUSH32(esp, eax); /* 0x30010B4F: push eax */ 7476 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B50: call dword ptr [0x300190a4] */ 7477 RECOMP_FLAGS_IN(); 7478 eax = esi; /* 0x30010B56: mov eax, esi */ 7479 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7481 esi = esi + 0xCu; /* 0x30010B58: add esi, 0xc */ 7482 _flag_k = FK_ADD; 7483 MEM32(ebp + (-0x84)) = 0; /* 0x30010B5B: mov dword ptr [ebp - 0x84], 0 */ 7484 ecx = MEM32(eax); /* 0x30010B65: mov ecx, dword ptr [eax] */ 7485 edx = MEM32(eax + 0x4); /* 0x30010B67: mov edx, dword ptr [eax + 4] */ 7486 eax = MEM32(eax + 0x8); /* 0x30010B6A: mov eax, dword ptr [eax + 8] */ 7487 MEM32(ebp + (-0x90)) = ecx; /* 0x30010B6D: mov dword ptr [ebp - 0x90], ecx */ 7488 MEM32(ebp + (-0x8C)) = edx; /* 0x30010B73: mov dword ptr [ebp - 0x8c], edx */ 7489 ecx = ebp + (-0x90); /* 0x30010B79: lea ecx, [ebp - 0x90] */ 7490 edx = ebp + (-0xF4); /* 0x30010B7F: lea edx, [ebp - 0xf4] */ 7491 PUSH32(esp, ecx); /* 0x30010B85: push ecx */ 7492 PUSH32(esp, edx); /* 0x30010B86: push edx */ 7493 ecx = ebx + 0xC; /* 0x30010B87: lea ecx, [ebx + 0xc] */ 7494 MEM32(ebp + (-0x88)) = eax; /* 0x30010B8A: mov dword ptr [ebp - 0x88], eax */ 7495 RECOMP_ICALL(0x30011330u); /* 0x30010B90: call 0x30011330 */ /* not lifted */ 7496 RECOMP_FLAGS_IN(); 7497 eax = MEM32(eax); /* 0x30010B95: mov eax, dword ptr [eax] */ 7498 ecx = edi; /* 0x30010B97: mov ecx, edi */ 7499 SET_LO8(eax, MEM8(eax + 0x18)); /* 0x30010B99: mov al, byte ptr [eax + 0x18] */ 7500 PUSH32(esp, eax); /* 0x30010B9C: push eax */ 7501 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B9D: call dword ptr [0x300190a4] */ 7502 RECOMP_FLAGS_IN(); 7503 eax = MEM32(ebx + 0x20); /* 0x30010BA3: mov eax, dword ptr [ebx + 0x20] */ 7504 ecx = MEM32(ebp + (-0x24)); /* 0x30010BA6: mov ecx, dword ptr [ebp - 0x24] */ 7505 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 7506 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7507 eax = eax + 3; /* 0x30010BA9: add eax, 3 */ 7508 _flag_k = FK_ADD; 7509 MEM32(ebx + 0x20) = eax; /* 0x30010BAC: mov dword ptr [ebx + 0x20], eax */ 7510 eax = MEM32(ebp + 0x8); /* 0x30010BAF: mov eax, dword ptr [ebp + 8] */ 7511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7512 eax = eax + 1; /* 0x30010BB2: inc eax */ 7513 _flag_k = FK_INC; 7514 /* cmp eax, ecx */ /* 0x30010BB3: cmp eax, ecx */ 7515 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7517 _flag_k = FK_CMP; 7518 MEM32(ebp + 0x8) = eax; /* 0x30010BB5: mov dword ptr [ebp + 8], eax */ 7519 RECOMP_BACKEDGE(); 7520 if (CMP_L(_flag_a, _flag_b)) goto L_30010ADA; /* 0x30010BB8: jl 0x30010ada */ 7521 L_30010BBE: 7522 goto L_30010DBE; /* 0x30010BBE: jmp 0x30010dbe */ 7523 L_30010BC3: 7524 /* cmp eax, 0x00010000u */ /* 0x30010BC3: cmp eax, 0x10000 */ 7525 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00010000u); 7526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7527 _flag_k = FK_CMP; 7528 if (CMP_GE(_flag_a, _flag_b)) goto L_30010CBD; /* 0x30010BC8: jge 0x30010cbd */ 7529 L_30010BCE: 7530 eax = MEM32(ebp + (-0x24)); /* 0x30010BCE: mov eax, dword ptr [ebp - 0x24] */ 7531 MEM32(ebp + 0x8) = 0; /* 0x30010BD1: mov dword ptr [ebp + 8], 0 */ 7532 /* test eax, eax */ /* 0x30010BD8: test eax, eax */ 7533 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7534 _cf = 0; 7535 _flag_k = FK_TEST; 7536 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010BDA: jle 0x30010dbe */ 7537 L_30010BE0: 7538 eax = esi; /* 0x30010BE0: mov eax, esi */ 7539 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7541 esi = esi + 0xCu; /* 0x30010BE2: add esi, 0xc */ 7542 _flag_k = FK_ADD; 7543 MEM32(ebp + (-0x44)) = 0; /* 0x30010BE5: mov dword ptr [ebp - 0x44], 0 */ 7544 ecx = MEM32(eax); /* 0x30010BEC: mov ecx, dword ptr [eax] */ 7545 edx = MEM32(eax + 0x4); /* 0x30010BEE: mov edx, dword ptr [eax + 4] */ 7546 eax = MEM32(eax + 0x8); /* 0x30010BF1: mov eax, dword ptr [eax + 8] */ 7547 MEM32(ebp + (-0x50)) = ecx; /* 0x30010BF4: mov dword ptr [ebp - 0x50], ecx */ 7548 MEM32(ebp + (-0x4C)) = edx; /* 0x30010BF7: mov dword ptr [ebp - 0x4c], edx */ 7549 ecx = ebp + (-0x50); /* 0x30010BFA: lea ecx, [ebp - 0x50] */ 7550 edx = ebp + (-0xE4); /* 0x30010BFD: lea edx, [ebp - 0xe4] */ 7551 PUSH32(esp, ecx); /* 0x30010C03: push ecx */ 7552 PUSH32(esp, edx); /* 0x30010C04: push edx */ 7553 ecx = ebx + 0xC; /* 0x30010C05: lea ecx, [ebx + 0xc] */ 7554 MEM32(ebp + (-0x48)) = eax; /* 0x30010C08: mov dword ptr [ebp - 0x48], eax */ 7555 RECOMP_ICALL(0x30011330u); /* 0x30010C0B: call 0x30011330 */ /* not lifted */ 7556 RECOMP_FLAGS_IN(); 7557 eax = MEM32(eax); /* 0x30010C10: mov eax, dword ptr [eax] */ 7558 ecx = edi; /* 0x30010C12: mov ecx, edi */ 7559 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C14: mov ax, word ptr [eax + 0x18] */ 7560 PUSH32(esp, eax); /* 0x30010C18: push eax */ 7561 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C19: call dword ptr [0x300190a8] */ 7562 RECOMP_FLAGS_IN(); 7563 eax = esi; /* 0x30010C1F: mov eax, esi */ 7564 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7565 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7566 esi = esi + 0xCu; /* 0x30010C21: add esi, 0xc */ 7567 _flag_k = FK_ADD; 7568 MEM32(ebp + (-0x54)) = 0; /* 0x30010C24: mov dword ptr [ebp - 0x54], 0 */ 7569 ecx = MEM32(eax); /* 0x30010C2B: mov ecx, dword ptr [eax] */ 7570 edx = MEM32(eax + 0x4); /* 0x30010C2D: mov edx, dword ptr [eax + 4] */ 7571 eax = MEM32(eax + 0x8); /* 0x30010C30: mov eax, dword ptr [eax + 8] */ 7572 MEM32(ebp + (-0x60)) = ecx; /* 0x30010C33: mov dword ptr [ebp - 0x60], ecx */ 7573 MEM32(ebp + (-0x5C)) = edx; /* 0x30010C36: mov dword ptr [ebp - 0x5c], edx */ 7574 ecx = ebp + (-0x60); /* 0x30010C39: lea ecx, [ebp - 0x60] */ 7575 edx = ebp + (-0xC4); /* 0x30010C3C: lea edx, [ebp - 0xc4] */ 7576 PUSH32(esp, ecx); /* 0x30010C42: push ecx */ 7577 PUSH32(esp, edx); /* 0x30010C43: push edx */ 7578 ecx = ebx + 0xC; /* 0x30010C44: lea ecx, [ebx + 0xc] */ 7579 MEM32(ebp + (-0x58)) = eax; /* 0x30010C47: mov dword ptr [ebp - 0x58], eax */ 7580 RECOMP_ICALL(0x30011330u); /* 0x30010C4A: call 0x30011330 */ /* not lifted */ 7581 RECOMP_FLAGS_IN(); 7582 eax = MEM32(eax); /* 0x30010C4F: mov eax, dword ptr [eax] */ 7583 ecx = edi; /* 0x30010C51: mov ecx, edi */ 7584 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C53: mov ax, word ptr [eax + 0x18] */ 7585 PUSH32(esp, eax); /* 0x30010C57: push eax */ 7586 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C58: call dword ptr [0x300190a8] */ 7587 RECOMP_FLAGS_IN(); 7588 eax = esi; /* 0x30010C5E: mov eax, esi */ 7589 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7590 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7591 esi = esi + 0xCu; /* 0x30010C60: add esi, 0xc */ 7592 _flag_k = FK_ADD; 7593 MEM32(ebp + (-0x74)) = 0; /* 0x30010C63: mov dword ptr [ebp - 0x74], 0 */ 7594 ecx = MEM32(eax); /* 0x30010C6A: mov ecx, dword ptr [eax] */ 7595 edx = MEM32(eax + 0x4); /* 0x30010C6C: mov edx, dword ptr [eax + 4] */ 7596 eax = MEM32(eax + 0x8); /* 0x30010C6F: mov eax, dword ptr [eax + 8] */ 7597 MEM32(ebp + (-0x80)) = ecx; /* 0x30010C72: mov dword ptr [ebp - 0x80], ecx */ 7598 MEM32(ebp + (-0x7C)) = edx; /* 0x30010C75: mov dword ptr [ebp - 0x7c], edx */ 7599 ecx = ebp + (-0x80); /* 0x30010C78: lea ecx, [ebp - 0x80] */ 7600 edx = ebp + (-0xCC); /* 0x30010C7B: lea edx, [ebp - 0xcc] */ 7601 PUSH32(esp, ecx); /* 0x30010C81: push ecx */ 7602 PUSH32(esp, edx); /* 0x30010C82: push edx */ 7603 ecx = ebx + 0xC; /* 0x30010C83: lea ecx, [ebx + 0xc] */ 7604 MEM32(ebp + (-0x78)) = eax; /* 0x30010C86: mov dword ptr [ebp - 0x78], eax */ 7605 RECOMP_ICALL(0x30011330u); /* 0x30010C89: call 0x30011330 */ /* not lifted */ 7606 RECOMP_FLAGS_IN(); 7607 eax = MEM32(eax); /* 0x30010C8E: mov eax, dword ptr [eax] */ 7608 ecx = edi; /* 0x30010C90: mov ecx, edi */ 7609 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C92: mov ax, word ptr [eax + 0x18] */ 7610 PUSH32(esp, eax); /* 0x30010C96: push eax */ 7611 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C97: call dword ptr [0x300190a8] */ 7612 RECOMP_FLAGS_IN(); 7613 eax = MEM32(ebx + 0x20); /* 0x30010C9D: mov eax, dword ptr [ebx + 0x20] */ 7614 ecx = MEM32(ebp + (-0x24)); /* 0x30010CA0: mov ecx, dword ptr [ebp - 0x24] */ 7615 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 7616 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7617 eax = eax + 3; /* 0x30010CA3: add eax, 3 */ 7618 _flag_k = FK_ADD; 7619 MEM32(ebx + 0x20) = eax; /* 0x30010CA6: mov dword ptr [ebx + 0x20], eax */ 7620 eax = MEM32(ebp + 0x8); /* 0x30010CA9: mov eax, dword ptr [ebp + 8] */ 7621 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7622 eax = eax + 1; /* 0x30010CAC: inc eax */ 7623 _flag_k = FK_INC; 7624 /* cmp eax, ecx */ /* 0x30010CAD: cmp eax, ecx */ 7625 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7627 _flag_k = FK_CMP; 7628 MEM32(ebp + 0x8) = eax; /* 0x30010CAF: mov dword ptr [ebp + 8], eax */ 7629 RECOMP_BACKEDGE(); 7630 if (CMP_L(_flag_a, _flag_b)) goto L_30010BE0; /* 0x30010CB2: jl 0x30010be0 */ 7631 L_30010CB8: 7632 goto L_30010DBE; /* 0x30010CB8: jmp 0x30010dbe */ 7633 L_30010CBD: 7634 eax = MEM32(ebp + (-0x24)); /* 0x30010CBD: mov eax, dword ptr [ebp - 0x24] */ 7635 MEM32(ebp + 0x8) = 0; /* 0x30010CC0: mov dword ptr [ebp + 8], 0 */ 7636 /* test eax, eax */ /* 0x30010CC7: test eax, eax */ 7637 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7638 _cf = 0; 7639 _flag_k = FK_TEST; 7640 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010CC9: jle 0x30010dbe */ 7641 L_30010CCF: 7642 eax = esi; /* 0x30010CCF: mov eax, esi */ 7643 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7645 esi = esi + 0xCu; /* 0x30010CD1: add esi, 0xc */ 7646 _flag_k = FK_ADD; 7647 MEM32(ebp + (-0xA4)) = 0; /* 0x30010CD4: mov dword ptr [ebp - 0xa4], 0 */ 7648 ecx = MEM32(eax); /* 0x30010CDE: mov ecx, dword ptr [eax] */ 7649 edx = MEM32(eax + 0x4); /* 0x30010CE0: mov edx, dword ptr [eax + 4] */ 7650 eax = MEM32(eax + 0x8); /* 0x30010CE3: mov eax, dword ptr [eax + 8] */ 7651 MEM32(ebp + (-0xB0)) = ecx; /* 0x30010CE6: mov dword ptr [ebp - 0xb0], ecx */ 7652 MEM32(ebp + (-0xAC)) = edx; /* 0x30010CEC: mov dword ptr [ebp - 0xac], edx */ 7653 ecx = ebp + (-0xB0); /* 0x30010CF2: lea ecx, [ebp - 0xb0] */ 7654 edx = ebp + (-0xBC); /* 0x30010CF8: lea edx, [ebp - 0xbc] */ 7655 PUSH32(esp, ecx); /* 0x30010CFE: push ecx */ 7656 PUSH32(esp, edx); /* 0x30010CFF: push edx */ 7657 ecx = ebx + 0xC; /* 0x30010D00: lea ecx, [ebx + 0xc] */ 7658 MEM32(ebp + (-0xA8)) = eax; /* 0x30010D03: mov dword ptr [ebp - 0xa8], eax */ 7659 RECOMP_ICALL(0x30011330u); /* 0x30010D09: call 0x30011330 */ /* not lifted */ 7660 RECOMP_FLAGS_IN(); 7661 eax = MEM32(eax); /* 0x30010D0E: mov eax, dword ptr [eax] */ 7662 ecx = edi; /* 0x30010D10: mov ecx, edi */ 7663 eax = MEM32(eax + 0x18); /* 0x30010D12: mov eax, dword ptr [eax + 0x18] */ 7664 PUSH32(esp, eax); /* 0x30010D15: push eax */ 7665 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D16: call dword ptr [0x30019078] */ 7666 RECOMP_FLAGS_IN(); 7667 eax = esi; /* 0x30010D1C: mov eax, esi */ 7668 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7670 esi = esi + 0xCu; /* 0x30010D1E: add esi, 0xc */ 7671 _flag_k = FK_ADD; 7672 MEM32(ebp + (-0x94)) = 0; /* 0x30010D21: mov dword ptr [ebp - 0x94], 0 */ 7673 ecx = MEM32(eax); /* 0x30010D2B: mov ecx, dword ptr [eax] */ 7674 edx = MEM32(eax + 0x4); /* 0x30010D2D: mov edx, dword ptr [eax + 4] */ 7675 eax = MEM32(eax + 0x8); /* 0x30010D30: mov eax, dword ptr [eax + 8] */ 7676 MEM32(ebp + (-0xA0)) = ecx; /* 0x30010D33: mov dword ptr [ebp - 0xa0], ecx */ 7677 MEM32(ebp + (-0x9C)) = edx; /* 0x30010D39: mov dword ptr [ebp - 0x9c], edx */ 7678 ecx = ebp + (-0xA0); /* 0x30010D3F: lea ecx, [ebp - 0xa0] */ 7679 edx = ebp + (-0xEC); /* 0x30010D45: lea edx, [ebp - 0xec] */ 7680 PUSH32(esp, ecx); /* 0x30010D4B: push ecx */ 7681 PUSH32(esp, edx); /* 0x30010D4C: push edx */ 7682 ecx = ebx + 0xC; /* 0x30010D4D: lea ecx, [ebx + 0xc] */ 7683 MEM32(ebp + (-0x98)) = eax; /* 0x30010D50: mov dword ptr [ebp - 0x98], eax */ 7684 RECOMP_ICALL(0x30011330u); /* 0x30010D56: call 0x30011330 */ /* not lifted */ 7685 RECOMP_FLAGS_IN(); 7686 eax = MEM32(eax); /* 0x30010D5B: mov eax, dword ptr [eax] */ 7687 ecx = edi; /* 0x30010D5D: mov ecx, edi */ 7688 eax = MEM32(eax + 0x18); /* 0x30010D5F: mov eax, dword ptr [eax + 0x18] */ 7689 PUSH32(esp, eax); /* 0x30010D62: push eax */ 7690 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D63: call dword ptr [0x30019078] */ 7691 RECOMP_FLAGS_IN(); 7692 ecx = ebp + (-0x28); /* 0x30010D69: lea ecx, [ebp - 0x28] */ 7693 eax = esi; /* 0x30010D6C: mov eax, esi */ 7694 PUSH32(esp, ecx); /* 0x30010D6E: push ecx */ 7695 PUSH32(esp, eax); /* 0x30010D6F: push eax */ 7696 ecx = ebp + (-0x114); /* 0x30010D70: lea ecx, [ebp - 0x114] */ 7697 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7698 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7699 esi = esi + 0xCu; /* 0x30010D76: add esi, 0xc */ 7700 _flag_k = FK_ADD; 7701 MEM32(ebp + (-0x28)) = 0; /* 0x30010D79: mov dword ptr [ebp - 0x28], 0 */ 7702 RECOMP_ICALL(0x30011560u); /* 0x30010D80: call 0x30011560 */ /* not lifted */ 7703 RECOMP_FLAGS_IN(); 7704 edx = ebp + (-0xFC); /* 0x30010D85: lea edx, [ebp - 0xfc] */ 7705 PUSH32(esp, eax); /* 0x30010D8B: push eax */ 7706 PUSH32(esp, edx); /* 0x30010D8C: push edx */ 7707 ecx = ebx + 0xC; /* 0x30010D8D: lea ecx, [ebx + 0xc] */ 7708 RECOMP_ICALL(0x30011330u); /* 0x30010D90: call 0x30011330 */ /* not lifted */ 7709 RECOMP_FLAGS_IN(); 7710 eax = MEM32(eax); /* 0x30010D95: mov eax, dword ptr [eax] */ 7711 ecx = edi; /* 0x30010D97: mov ecx, edi */ 7712 eax = MEM32(eax + 0x18); /* 0x30010D99: mov eax, dword ptr [eax + 0x18] */ 7713 PUSH32(esp, eax); /* 0x30010D9C: push eax */ 7714 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D9D: call dword ptr [0x30019078] */ 7715 RECOMP_FLAGS_IN(); 7716 eax = MEM32(ebx + 0x20); /* 0x30010DA3: mov eax, dword ptr [ebx + 0x20] */ 7717 ecx = MEM32(ebp + (-0x24)); /* 0x30010DA6: mov ecx, dword ptr [ebp - 0x24] */ 7718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 7719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7720 eax = eax + 3; /* 0x30010DA9: add eax, 3 */ 7721 _flag_k = FK_ADD; 7722 MEM32(ebx + 0x20) = eax; /* 0x30010DAC: mov dword ptr [ebx + 0x20], eax */ 7723 eax = MEM32(ebp + 0x8); /* 0x30010DAF: mov eax, dword ptr [ebp + 8] */ 7724 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7725 eax = eax + 1; /* 0x30010DB2: inc eax */ 7726 _flag_k = FK_INC; 7727 /* cmp eax, ecx */ /* 0x30010DB3: cmp eax, ecx */ 7728 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7730 _flag_k = FK_CMP; 7731 MEM32(ebp + 0x8) = eax; /* 0x30010DB5: mov dword ptr [ebp + 8], eax */ 7732 RECOMP_BACKEDGE(); 7733 if (CMP_L(_flag_a, _flag_b)) goto L_30010CCF; /* 0x30010DB8: jl 0x30010ccf */ 7734 L_30010DBE: 7735 eax = MEM32(ebp + (-0x4)); /* 0x30010DBE: mov eax, dword ptr [ebp - 4] */ 7736 esi = MEM32(ebp + (-0x8)); /* 0x30010DC1: mov esi, dword ptr [ebp - 8] */ 7737 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7738 eax = eax + 1; /* 0x30010DC4: inc eax */ 7739 _flag_k = FK_INC; 7740 MEM32(ebp + (-0x4)) = eax; /* 0x30010DC5: mov dword ptr [ebp - 4], eax */ 7741 L_30010DC8: 7742 ecx = MEM32(ebp + 0xC); /* 0x30010DC8: mov ecx, dword ptr [ebp + 0xc] */ 7743 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 7744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7745 esi = esi + 4; /* 0x30010DCB: add esi, 4 */ 7746 _flag_k = FK_ADD; 7747 MEM32(ebp + (-0x8)) = esi; /* 0x30010DCE: mov dword ptr [ebp - 8], esi */ 7748 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x30010DD1: cmp esi, dword ptr [ecx + 8] */ 7749 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 7750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7751 _flag_k = FK_CMP; 7752 RECOMP_BACKEDGE(); 7753 if (CMP_NE(_flag_a, _flag_b)) goto L_300109D3; /* 0x30010DD4: jne 0x300109d3 */ 7754 L_30010DDA: 7755 eax = MEM32(ebp + (-0x4)); /* 0x30010DDA: mov eax, dword ptr [ebp - 4] */ 7756 edi = POP32_VAL(esp); /* 0x30010DDD: pop edi */ 7757 esi = POP32_VAL(esp); /* 0x30010DDE: pop esi */ 7758 ebx = POP32_VAL(esp); /* 0x30010DDF: pop ebx */ 7759 esp = ebp; /* 0x30010DE0: mov esp, ebp */ 7760 ebp = POP32_VAL(esp); /* 0x30010DE2: pop ebp */ 7761 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x30010DE3: ret 0xc */ 7762 RECOMP_REGS_OUT(); 7763 } 7764 7765 void sub_30010A3B(void) { 7766 int _fpu_cmp = 0; 7767 uint32_t _cf = 0; 7768 int _df = 1; 7769 uint32_t _flag_k = FK_NONE; 7770 uint32_t _flag_a = 0, _flag_b = 0; 7771 uint32_t _itail_tgt = 0; 7772 RECOMP_REGS_LOCALS 7773 RECOMP_ENTER(0x30010A3Bu); 7774 7775 goto L_30010A3B; 7776 L_300109D3: 7777 ecx = MEM32(ebp + 0x10); /* 0x300109D3: mov ecx, dword ptr [ebp + 0x10] */ 7778 edx = ebp + (-0xB4); /* 0x300109D6: lea edx, [ebp - 0xb4] */ 7779 PUSH32(esp, esi); /* 0x300109DC: push esi */ 7780 PUSH32(esp, edx); /* 0x300109DD: push edx */ 7781 eax = MEM32(ecx + 0x4); /* 0x300109DE: mov eax, dword ptr [ecx + 4] */ 7782 MEM32(ebp + 0x8) = eax; /* 0x300109E1: mov dword ptr [ebp + 8], eax */ 7783 RECOMP_ICALL(0x30011740u); /* 0x300109E4: call 0x30011740 */ /* not lifted */ 7784 RECOMP_FLAGS_IN(); 7785 ecx = MEM32(ebp + 0x8); /* 0x300109E9: mov ecx, dword ptr [ebp + 8] */ 7786 edx = MEM32(eax); /* 0x300109EC: mov edx, dword ptr [eax] */ 7787 /* cmp edx, ecx */ /* 0x300109EE: cmp edx, ecx */ 7788 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7790 _flag_k = FK_CMP; 7791 if (CMP_NE(_flag_a, _flag_b)) goto L_30010DC8; /* 0x300109F0: jne 0x30010dc8 */ 7792 L_300109F6: 7793 ecx = MEM32(ebp + 0x10); /* 0x300109F6: mov ecx, dword ptr [ebp + 0x10] */ 7794 eax = MEM32(esi); /* 0x300109F9: mov eax, dword ptr [esi] */ 7795 MEM32(ebp + (-0x30)) = eax; /* 0x300109FB: mov dword ptr [ebp - 0x30], eax */ 7796 eax = ebp + (-0xDC); /* 0x300109FE: lea eax, [ebp - 0xdc] */ 7797 edx = MEM32(ecx + 0x10); /* 0x30010A04: mov edx, dword ptr [ecx + 0x10] */ 7798 MEM32(ebp + (-0x2C)) = 0; /* 0x30010A07: mov dword ptr [ebp - 0x2c], 0 */ 7799 MEM32(ebp + 0x8) = edx; /* 0x30010A0E: mov dword ptr [ebp + 8], edx */ 7800 edx = ebp + (-0x30); /* 0x30010A11: lea edx, [ebp - 0x30] */ 7801 PUSH32(esp, edx); /* 0x30010A14: push edx */ 7802 PUSH32(esp, eax); /* 0x30010A15: push eax */ 7803 RECOMP_ICALL(0x30011590u); /* 0x30010A16: call 0x30011590 */ /* not lifted */ 7804 RECOMP_FLAGS_IN(); 7805 eax = MEM32(eax); /* 0x30010A1B: mov eax, dword ptr [eax] */ 7806 ecx = MEM32(ebp + 0x8); /* 0x30010A1D: mov ecx, dword ptr [ebp + 8] */ 7807 MEM32(eax + 0x10) = ecx; /* 0x30010A20: mov dword ptr [eax + 0x10], ecx */ 7808 ecx = ebp + (-0x14); /* 0x30010A23: lea ecx, [ebp - 0x14] */ 7809 MEM32(ebp + (-0x20)) = 0; /* 0x30010A26: mov dword ptr [ebp - 0x20], 0 */ 7810 MEM32(ebp + (-0x1C)) = 0; /* 0x30010A2D: mov dword ptr [ebp - 0x1c], 0 */ 7811 MEM32(ebp + (-0x18)) = 0; /* 0x30010A34: mov dword ptr [ebp - 0x18], 0 */ 7812 L_30010A3B: 7813 RECOMP_ICALL(MEM32(0x300190E4)); /* 0x30010A3B: call dword ptr [0x300190e4] */ 7814 RECOMP_FLAGS_IN(); 7815 eax = MEM32(esi); /* 0x30010A41: mov eax, dword ptr [esi] */ 7816 edx = eax; /* 0x30010A43: mov edx, eax */ 7817 ecx = MEM32(edx); /* 0x30010A45: mov ecx, dword ptr [edx] */ 7818 MEM32(ebp + (-0x20)) = ecx; /* 0x30010A47: mov dword ptr [ebp - 0x20], ecx */ 7819 ecx = MEM32(edx + 0x4); /* 0x30010A4A: mov ecx, dword ptr [edx + 4] */ 7820 MEM32(ebp + (-0x1C)) = ecx; /* 0x30010A4D: mov dword ptr [ebp - 0x1c], ecx */ 7821 ecx = eax + 0xC; /* 0x30010A50: lea ecx, [eax + 0xc] */ 7822 edx = MEM32(edx + 0x8); /* 0x30010A53: mov edx, dword ptr [edx + 8] */ 7823 MEM32(ebp + (-0x18)) = edx; /* 0x30010A56: mov dword ptr [ebp - 0x18], edx */ 7824 edx = MEM32(ecx); /* 0x30010A59: mov edx, dword ptr [ecx] */ 7825 MEM32(ebp + (-0x14)) = edx; /* 0x30010A5B: mov dword ptr [ebp - 0x14], edx */ 7826 edx = MEM32(ecx + 0x4); /* 0x30010A5E: mov edx, dword ptr [ecx + 4] */ 7827 MEM32(ebp + (-0x10)) = edx; /* 0x30010A61: mov dword ptr [ebp - 0x10], edx */ 7828 ecx = MEM32(ecx + 0x8); /* 0x30010A64: mov ecx, dword ptr [ecx + 8] */ 7829 MEM32(ebp + (-0xC)) = ecx; /* 0x30010A67: mov dword ptr [ebp - 0xc], ecx */ 7830 edx = MEM32(eax + 0x1C); /* 0x30010A6A: mov edx, dword ptr [eax + 0x1c] */ 7831 /* test edx, edx */ /* 0x30010A6D: test edx, edx */ 7832 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 7833 _cf = 0; 7834 _flag_k = FK_TEST; 7835 if (TEST_Z(_flag_a, _flag_b)) goto L_30010A86; /* 0x30010A6F: je 0x30010a86 */ 7836 L_30010A71: 7837 ecx = MEM32(eax + 0x20); /* 0x30010A71: mov ecx, dword ptr [eax + 0x20] */ 7838 eax = 0x2AAAAAABu; /* 0x30010A74: mov eax, 0x2aaaaaab */ 7839 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7841 ecx = ecx - edx; /* 0x30010A79: sub ecx, edx */ 7842 _flag_k = FK_CMP; 7843 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x30010A7B: imul ecx */ 7844 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7845 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7846 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x30010A7D: sar edx, 1 */ 7847 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7848 edx = (uint32_t)((int32_t)edx >> 1u); 7849 eax = edx; /* 0x30010A7F: mov eax, edx */ 7850 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x30010A81: shr eax, 0x1f */ 7851 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7852 eax = eax >> 31u; /* 0x30010A81: shr eax, 0x1f */ 7853 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7854 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7855 edx = edx + eax; /* 0x30010A84: add edx, eax */ 7856 _flag_k = FK_ADD; 7857 L_30010A86: 7858 eax = 0xAAAAAAABu; /* 0x30010A86: mov eax, 0xaaaaaaab */ 7859 ecx = ebp + (-0x14); /* 0x30010A8B: lea ecx, [ebp - 0x14] */ 7860 { uint64_t _r = (uint64_t)eax * (uint32_t)(edx); /* 0x30010A8E: mul edx */ 7861 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 7862 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7863 eax = ebp + (-0x20); /* 0x30010A90: lea eax, [ebp - 0x20] */ 7864 PUSH32(esp, ecx); /* 0x30010A93: push ecx */ 7865 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x30010A94: shr edx, 1 */ 7866 if (1u) { _flag_a = recomp_flags_pack((edx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7867 edx = edx >> 1u; /* 0x30010A94: shr edx, 1 */ 7868 PUSH32(esp, eax); /* 0x30010A96: push eax */ 7869 PUSH32(esp, edx); /* 0x30010A97: push edx */ 7870 ecx = edi; /* 0x30010A98: mov ecx, edi */ 7871 MEM32(ebp + (-0x24)) = edx; /* 0x30010A9A: mov dword ptr [ebp - 0x24], edx */ 7872 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010A9D: call dword ptr [0x30019078] */ 7873 RECOMP_FLAGS_IN(); 7874 PUSH32(esp, eax); /* 0x30010AA3: push eax */ 7875 RECOMP_ICALL(0x30011490u); /* 0x30010AA4: call 0x30011490 */ /* not lifted */ 7876 RECOMP_FLAGS_IN(); 7877 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7878 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7879 esp = esp + 8; /* 0x30010AA9: add esp, 8 */ 7880 _flag_k = FK_ADD; 7881 PUSH32(esp, eax); /* 0x30010AAC: push eax */ 7882 RECOMP_ICALL(0x30011490u); /* 0x30010AAD: call 0x30011490 */ /* not lifted */ 7883 RECOMP_FLAGS_IN(); 7884 ecx = MEM32(esi); /* 0x30010AB2: mov ecx, dword ptr [esi] */ 7885 eax = MEM32(ebx + 0x24); /* 0x30010AB4: mov eax, dword ptr [ebx + 0x24] */ 7886 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7888 esp = esp + 8; /* 0x30010AB7: add esp, 8 */ 7889 _flag_k = FK_ADD; 7890 /* cmp eax, 0x100u */ /* 0x30010ABA: cmp eax, 0x100 */ 7891 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x100u); 7892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7893 _flag_k = FK_CMP; 7894 esi = MEM32(ecx + 0x1C); /* 0x30010ABF: mov esi, dword ptr [ecx + 0x1c] */ 7895 if (CMP_GE(_flag_a, _flag_b)) goto L_30010BC3; /* 0x30010AC2: jge 0x30010bc3 */ 7896 L_30010AC8: 7897 eax = MEM32(ebp + (-0x24)); /* 0x30010AC8: mov eax, dword ptr [ebp - 0x24] */ 7898 MEM32(ebp + 0x8) = 0; /* 0x30010ACB: mov dword ptr [ebp + 8], 0 */ 7899 /* test eax, eax */ /* 0x30010AD2: test eax, eax */ 7900 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7901 _cf = 0; 7902 _flag_k = FK_TEST; 7903 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010AD4: jle 0x30010dbe */ 7904 L_30010ADA: 7905 eax = esi; /* 0x30010ADA: mov eax, esi */ 7906 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7908 esi = esi + 0xCu; /* 0x30010ADC: add esi, 0xc */ 7909 _flag_k = FK_ADD; 7910 MEM32(ebp + (-0x34)) = 0; /* 0x30010ADF: mov dword ptr [ebp - 0x34], 0 */ 7911 edx = MEM32(eax); /* 0x30010AE6: mov edx, dword ptr [eax] */ 7912 ecx = MEM32(eax + 0x4); /* 0x30010AE8: mov ecx, dword ptr [eax + 4] */ 7913 MEM32(ebp + (-0x40)) = edx; /* 0x30010AEB: mov dword ptr [ebp - 0x40], edx */ 7914 edx = MEM32(eax + 0x8); /* 0x30010AEE: mov edx, dword ptr [eax + 8] */ 7915 MEM32(ebp + (-0x3C)) = ecx; /* 0x30010AF1: mov dword ptr [ebp - 0x3c], ecx */ 7916 eax = ebp + (-0x40); /* 0x30010AF4: lea eax, [ebp - 0x40] */ 7917 ecx = ebp + (-0x104); /* 0x30010AF7: lea ecx, [ebp - 0x104] */ 7918 PUSH32(esp, eax); /* 0x30010AFD: push eax */ 7919 PUSH32(esp, ecx); /* 0x30010AFE: push ecx */ 7920 ecx = ebx + 0xC; /* 0x30010AFF: lea ecx, [ebx + 0xc] */ 7921 MEM32(ebp + (-0x38)) = edx; /* 0x30010B02: mov dword ptr [ebp - 0x38], edx */ 7922 RECOMP_ICALL(0x30011330u); /* 0x30010B05: call 0x30011330 */ /* not lifted */ 7923 RECOMP_FLAGS_IN(); 7924 eax = MEM32(eax); /* 0x30010B0A: mov eax, dword ptr [eax] */ 7925 ecx = edi; /* 0x30010B0C: mov ecx, edi */ 7926 SET_LO8(edx, MEM8(eax + 0x18)); /* 0x30010B0E: mov dl, byte ptr [eax + 0x18] */ 7927 PUSH32(esp, edx); /* 0x30010B11: push edx */ 7928 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B12: call dword ptr [0x300190a4] */ 7929 RECOMP_FLAGS_IN(); 7930 eax = esi; /* 0x30010B18: mov eax, esi */ 7931 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7932 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7933 esi = esi + 0xCu; /* 0x30010B1A: add esi, 0xc */ 7934 _flag_k = FK_ADD; 7935 MEM32(ebp + (-0x64)) = 0; /* 0x30010B1D: mov dword ptr [ebp - 0x64], 0 */ 7936 ecx = MEM32(eax); /* 0x30010B24: mov ecx, dword ptr [eax] */ 7937 edx = MEM32(eax + 0x4); /* 0x30010B26: mov edx, dword ptr [eax + 4] */ 7938 eax = MEM32(eax + 0x8); /* 0x30010B29: mov eax, dword ptr [eax + 8] */ 7939 MEM32(ebp + (-0x70)) = ecx; /* 0x30010B2C: mov dword ptr [ebp - 0x70], ecx */ 7940 MEM32(ebp + (-0x6C)) = edx; /* 0x30010B2F: mov dword ptr [ebp - 0x6c], edx */ 7941 ecx = ebp + (-0x70); /* 0x30010B32: lea ecx, [ebp - 0x70] */ 7942 edx = ebp + (-0xD4); /* 0x30010B35: lea edx, [ebp - 0xd4] */ 7943 PUSH32(esp, ecx); /* 0x30010B3B: push ecx */ 7944 PUSH32(esp, edx); /* 0x30010B3C: push edx */ 7945 ecx = ebx + 0xC; /* 0x30010B3D: lea ecx, [ebx + 0xc] */ 7946 MEM32(ebp + (-0x68)) = eax; /* 0x30010B40: mov dword ptr [ebp - 0x68], eax */ 7947 RECOMP_ICALL(0x30011330u); /* 0x30010B43: call 0x30011330 */ /* not lifted */ 7948 RECOMP_FLAGS_IN(); 7949 eax = MEM32(eax); /* 0x30010B48: mov eax, dword ptr [eax] */ 7950 ecx = edi; /* 0x30010B4A: mov ecx, edi */ 7951 SET_LO8(eax, MEM8(eax + 0x18)); /* 0x30010B4C: mov al, byte ptr [eax + 0x18] */ 7952 PUSH32(esp, eax); /* 0x30010B4F: push eax */ 7953 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B50: call dword ptr [0x300190a4] */ 7954 RECOMP_FLAGS_IN(); 7955 eax = esi; /* 0x30010B56: mov eax, esi */ 7956 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7957 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7958 esi = esi + 0xCu; /* 0x30010B58: add esi, 0xc */ 7959 _flag_k = FK_ADD; 7960 MEM32(ebp + (-0x84)) = 0; /* 0x30010B5B: mov dword ptr [ebp - 0x84], 0 */ 7961 ecx = MEM32(eax); /* 0x30010B65: mov ecx, dword ptr [eax] */ 7962 edx = MEM32(eax + 0x4); /* 0x30010B67: mov edx, dword ptr [eax + 4] */ 7963 eax = MEM32(eax + 0x8); /* 0x30010B6A: mov eax, dword ptr [eax + 8] */ 7964 MEM32(ebp + (-0x90)) = ecx; /* 0x30010B6D: mov dword ptr [ebp - 0x90], ecx */ 7965 MEM32(ebp + (-0x8C)) = edx; /* 0x30010B73: mov dword ptr [ebp - 0x8c], edx */ 7966 ecx = ebp + (-0x90); /* 0x30010B79: lea ecx, [ebp - 0x90] */ 7967 edx = ebp + (-0xF4); /* 0x30010B7F: lea edx, [ebp - 0xf4] */ 7968 PUSH32(esp, ecx); /* 0x30010B85: push ecx */ 7969 PUSH32(esp, edx); /* 0x30010B86: push edx */ 7970 ecx = ebx + 0xC; /* 0x30010B87: lea ecx, [ebx + 0xc] */ 7971 MEM32(ebp + (-0x88)) = eax; /* 0x30010B8A: mov dword ptr [ebp - 0x88], eax */ 7972 RECOMP_ICALL(0x30011330u); /* 0x30010B90: call 0x30011330 */ /* not lifted */ 7973 RECOMP_FLAGS_IN(); 7974 eax = MEM32(eax); /* 0x30010B95: mov eax, dword ptr [eax] */ 7975 ecx = edi; /* 0x30010B97: mov ecx, edi */ 7976 SET_LO8(eax, MEM8(eax + 0x18)); /* 0x30010B99: mov al, byte ptr [eax + 0x18] */ 7977 PUSH32(esp, eax); /* 0x30010B9C: push eax */ 7978 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B9D: call dword ptr [0x300190a4] */ 7979 RECOMP_FLAGS_IN(); 7980 eax = MEM32(ebx + 0x20); /* 0x30010BA3: mov eax, dword ptr [ebx + 0x20] */ 7981 ecx = MEM32(ebp + (-0x24)); /* 0x30010BA6: mov ecx, dword ptr [ebp - 0x24] */ 7982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 7983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7984 eax = eax + 3; /* 0x30010BA9: add eax, 3 */ 7985 _flag_k = FK_ADD; 7986 MEM32(ebx + 0x20) = eax; /* 0x30010BAC: mov dword ptr [ebx + 0x20], eax */ 7987 eax = MEM32(ebp + 0x8); /* 0x30010BAF: mov eax, dword ptr [ebp + 8] */ 7988 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7989 eax = eax + 1; /* 0x30010BB2: inc eax */ 7990 _flag_k = FK_INC; 7991 /* cmp eax, ecx */ /* 0x30010BB3: cmp eax, ecx */ 7992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7994 _flag_k = FK_CMP; 7995 MEM32(ebp + 0x8) = eax; /* 0x30010BB5: mov dword ptr [ebp + 8], eax */ 7996 RECOMP_BACKEDGE(); 7997 if (CMP_L(_flag_a, _flag_b)) goto L_30010ADA; /* 0x30010BB8: jl 0x30010ada */ 7998 L_30010BBE: 7999 goto L_30010DBE; /* 0x30010BBE: jmp 0x30010dbe */ 8000 L_30010BC3: 8001 /* cmp eax, 0x00010000u */ /* 0x30010BC3: cmp eax, 0x10000 */ 8002 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00010000u); 8003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8004 _flag_k = FK_CMP; 8005 if (CMP_GE(_flag_a, _flag_b)) goto L_30010CBD; /* 0x30010BC8: jge 0x30010cbd */ 8006 L_30010BCE: 8007 eax = MEM32(ebp + (-0x24)); /* 0x30010BCE: mov eax, dword ptr [ebp - 0x24] */ 8008 MEM32(ebp + 0x8) = 0; /* 0x30010BD1: mov dword ptr [ebp + 8], 0 */ 8009 /* test eax, eax */ /* 0x30010BD8: test eax, eax */ 8010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8011 _cf = 0; 8012 _flag_k = FK_TEST; 8013 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010BDA: jle 0x30010dbe */ 8014 L_30010BE0: 8015 eax = esi; /* 0x30010BE0: mov eax, esi */ 8016 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8017 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8018 esi = esi + 0xCu; /* 0x30010BE2: add esi, 0xc */ 8019 _flag_k = FK_ADD; 8020 MEM32(ebp + (-0x44)) = 0; /* 0x30010BE5: mov dword ptr [ebp - 0x44], 0 */ 8021 ecx = MEM32(eax); /* 0x30010BEC: mov ecx, dword ptr [eax] */ 8022 edx = MEM32(eax + 0x4); /* 0x30010BEE: mov edx, dword ptr [eax + 4] */ 8023 eax = MEM32(eax + 0x8); /* 0x30010BF1: mov eax, dword ptr [eax + 8] */ 8024 MEM32(ebp + (-0x50)) = ecx; /* 0x30010BF4: mov dword ptr [ebp - 0x50], ecx */ 8025 MEM32(ebp + (-0x4C)) = edx; /* 0x30010BF7: mov dword ptr [ebp - 0x4c], edx */ 8026 ecx = ebp + (-0x50); /* 0x30010BFA: lea ecx, [ebp - 0x50] */ 8027 edx = ebp + (-0xE4); /* 0x30010BFD: lea edx, [ebp - 0xe4] */ 8028 PUSH32(esp, ecx); /* 0x30010C03: push ecx */ 8029 PUSH32(esp, edx); /* 0x30010C04: push edx */ 8030 ecx = ebx + 0xC; /* 0x30010C05: lea ecx, [ebx + 0xc] */ 8031 MEM32(ebp + (-0x48)) = eax; /* 0x30010C08: mov dword ptr [ebp - 0x48], eax */ 8032 RECOMP_ICALL(0x30011330u); /* 0x30010C0B: call 0x30011330 */ /* not lifted */ 8033 RECOMP_FLAGS_IN(); 8034 eax = MEM32(eax); /* 0x30010C10: mov eax, dword ptr [eax] */ 8035 ecx = edi; /* 0x30010C12: mov ecx, edi */ 8036 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C14: mov ax, word ptr [eax + 0x18] */ 8037 PUSH32(esp, eax); /* 0x30010C18: push eax */ 8038 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C19: call dword ptr [0x300190a8] */ 8039 RECOMP_FLAGS_IN(); 8040 eax = esi; /* 0x30010C1F: mov eax, esi */ 8041 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8042 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8043 esi = esi + 0xCu; /* 0x30010C21: add esi, 0xc */ 8044 _flag_k = FK_ADD; 8045 MEM32(ebp + (-0x54)) = 0; /* 0x30010C24: mov dword ptr [ebp - 0x54], 0 */ 8046 ecx = MEM32(eax); /* 0x30010C2B: mov ecx, dword ptr [eax] */ 8047 edx = MEM32(eax + 0x4); /* 0x30010C2D: mov edx, dword ptr [eax + 4] */ 8048 eax = MEM32(eax + 0x8); /* 0x30010C30: mov eax, dword ptr [eax + 8] */ 8049 MEM32(ebp + (-0x60)) = ecx; /* 0x30010C33: mov dword ptr [ebp - 0x60], ecx */ 8050 MEM32(ebp + (-0x5C)) = edx; /* 0x30010C36: mov dword ptr [ebp - 0x5c], edx */ 8051 ecx = ebp + (-0x60); /* 0x30010C39: lea ecx, [ebp - 0x60] */ 8052 edx = ebp + (-0xC4); /* 0x30010C3C: lea edx, [ebp - 0xc4] */ 8053 PUSH32(esp, ecx); /* 0x30010C42: push ecx */ 8054 PUSH32(esp, edx); /* 0x30010C43: push edx */ 8055 ecx = ebx + 0xC; /* 0x30010C44: lea ecx, [ebx + 0xc] */ 8056 MEM32(ebp + (-0x58)) = eax; /* 0x30010C47: mov dword ptr [ebp - 0x58], eax */ 8057 RECOMP_ICALL(0x30011330u); /* 0x30010C4A: call 0x30011330 */ /* not lifted */ 8058 RECOMP_FLAGS_IN(); 8059 eax = MEM32(eax); /* 0x30010C4F: mov eax, dword ptr [eax] */ 8060 ecx = edi; /* 0x30010C51: mov ecx, edi */ 8061 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C53: mov ax, word ptr [eax + 0x18] */ 8062 PUSH32(esp, eax); /* 0x30010C57: push eax */ 8063 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C58: call dword ptr [0x300190a8] */ 8064 RECOMP_FLAGS_IN(); 8065 eax = esi; /* 0x30010C5E: mov eax, esi */ 8066 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8067 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8068 esi = esi + 0xCu; /* 0x30010C60: add esi, 0xc */ 8069 _flag_k = FK_ADD; 8070 MEM32(ebp + (-0x74)) = 0; /* 0x30010C63: mov dword ptr [ebp - 0x74], 0 */ 8071 ecx = MEM32(eax); /* 0x30010C6A: mov ecx, dword ptr [eax] */ 8072 edx = MEM32(eax + 0x4); /* 0x30010C6C: mov edx, dword ptr [eax + 4] */ 8073 eax = MEM32(eax + 0x8); /* 0x30010C6F: mov eax, dword ptr [eax + 8] */ 8074 MEM32(ebp + (-0x80)) = ecx; /* 0x30010C72: mov dword ptr [ebp - 0x80], ecx */ 8075 MEM32(ebp + (-0x7C)) = edx; /* 0x30010C75: mov dword ptr [ebp - 0x7c], edx */ 8076 ecx = ebp + (-0x80); /* 0x30010C78: lea ecx, [ebp - 0x80] */ 8077 edx = ebp + (-0xCC); /* 0x30010C7B: lea edx, [ebp - 0xcc] */ 8078 PUSH32(esp, ecx); /* 0x30010C81: push ecx */ 8079 PUSH32(esp, edx); /* 0x30010C82: push edx */ 8080 ecx = ebx + 0xC; /* 0x30010C83: lea ecx, [ebx + 0xc] */ 8081 MEM32(ebp + (-0x78)) = eax; /* 0x30010C86: mov dword ptr [ebp - 0x78], eax */ 8082 RECOMP_ICALL(0x30011330u); /* 0x30010C89: call 0x30011330 */ /* not lifted */ 8083 RECOMP_FLAGS_IN(); 8084 eax = MEM32(eax); /* 0x30010C8E: mov eax, dword ptr [eax] */ 8085 ecx = edi; /* 0x30010C90: mov ecx, edi */ 8086 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C92: mov ax, word ptr [eax + 0x18] */ 8087 PUSH32(esp, eax); /* 0x30010C96: push eax */ 8088 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C97: call dword ptr [0x300190a8] */ 8089 RECOMP_FLAGS_IN(); 8090 eax = MEM32(ebx + 0x20); /* 0x30010C9D: mov eax, dword ptr [ebx + 0x20] */ 8091 ecx = MEM32(ebp + (-0x24)); /* 0x30010CA0: mov ecx, dword ptr [ebp - 0x24] */ 8092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 8093 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8094 eax = eax + 3; /* 0x30010CA3: add eax, 3 */ 8095 _flag_k = FK_ADD; 8096 MEM32(ebx + 0x20) = eax; /* 0x30010CA6: mov dword ptr [ebx + 0x20], eax */ 8097 eax = MEM32(ebp + 0x8); /* 0x30010CA9: mov eax, dword ptr [ebp + 8] */ 8098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8099 eax = eax + 1; /* 0x30010CAC: inc eax */ 8100 _flag_k = FK_INC; 8101 /* cmp eax, ecx */ /* 0x30010CAD: cmp eax, ecx */ 8102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8104 _flag_k = FK_CMP; 8105 MEM32(ebp + 0x8) = eax; /* 0x30010CAF: mov dword ptr [ebp + 8], eax */ 8106 RECOMP_BACKEDGE(); 8107 if (CMP_L(_flag_a, _flag_b)) goto L_30010BE0; /* 0x30010CB2: jl 0x30010be0 */ 8108 L_30010CB8: 8109 goto L_30010DBE; /* 0x30010CB8: jmp 0x30010dbe */ 8110 L_30010CBD: 8111 eax = MEM32(ebp + (-0x24)); /* 0x30010CBD: mov eax, dword ptr [ebp - 0x24] */ 8112 MEM32(ebp + 0x8) = 0; /* 0x30010CC0: mov dword ptr [ebp + 8], 0 */ 8113 /* test eax, eax */ /* 0x30010CC7: test eax, eax */ 8114 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8115 _cf = 0; 8116 _flag_k = FK_TEST; 8117 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010CC9: jle 0x30010dbe */ 8118 L_30010CCF: 8119 eax = esi; /* 0x30010CCF: mov eax, esi */ 8120 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8121 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8122 esi = esi + 0xCu; /* 0x30010CD1: add esi, 0xc */ 8123 _flag_k = FK_ADD; 8124 MEM32(ebp + (-0xA4)) = 0; /* 0x30010CD4: mov dword ptr [ebp - 0xa4], 0 */ 8125 ecx = MEM32(eax); /* 0x30010CDE: mov ecx, dword ptr [eax] */ 8126 edx = MEM32(eax + 0x4); /* 0x30010CE0: mov edx, dword ptr [eax + 4] */ 8127 eax = MEM32(eax + 0x8); /* 0x30010CE3: mov eax, dword ptr [eax + 8] */ 8128 MEM32(ebp + (-0xB0)) = ecx; /* 0x30010CE6: mov dword ptr [ebp - 0xb0], ecx */ 8129 MEM32(ebp + (-0xAC)) = edx; /* 0x30010CEC: mov dword ptr [ebp - 0xac], edx */ 8130 ecx = ebp + (-0xB0); /* 0x30010CF2: lea ecx, [ebp - 0xb0] */ 8131 edx = ebp + (-0xBC); /* 0x30010CF8: lea edx, [ebp - 0xbc] */ 8132 PUSH32(esp, ecx); /* 0x30010CFE: push ecx */ 8133 PUSH32(esp, edx); /* 0x30010CFF: push edx */ 8134 ecx = ebx + 0xC; /* 0x30010D00: lea ecx, [ebx + 0xc] */ 8135 MEM32(ebp + (-0xA8)) = eax; /* 0x30010D03: mov dword ptr [ebp - 0xa8], eax */ 8136 RECOMP_ICALL(0x30011330u); /* 0x30010D09: call 0x30011330 */ /* not lifted */ 8137 RECOMP_FLAGS_IN(); 8138 eax = MEM32(eax); /* 0x30010D0E: mov eax, dword ptr [eax] */ 8139 ecx = edi; /* 0x30010D10: mov ecx, edi */ 8140 eax = MEM32(eax + 0x18); /* 0x30010D12: mov eax, dword ptr [eax + 0x18] */ 8141 PUSH32(esp, eax); /* 0x30010D15: push eax */ 8142 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D16: call dword ptr [0x30019078] */ 8143 RECOMP_FLAGS_IN(); 8144 eax = esi; /* 0x30010D1C: mov eax, esi */ 8145 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8146 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8147 esi = esi + 0xCu; /* 0x30010D1E: add esi, 0xc */ 8148 _flag_k = FK_ADD; 8149 MEM32(ebp + (-0x94)) = 0; /* 0x30010D21: mov dword ptr [ebp - 0x94], 0 */ 8150 ecx = MEM32(eax); /* 0x30010D2B: mov ecx, dword ptr [eax] */ 8151 edx = MEM32(eax + 0x4); /* 0x30010D2D: mov edx, dword ptr [eax + 4] */ 8152 eax = MEM32(eax + 0x8); /* 0x30010D30: mov eax, dword ptr [eax + 8] */ 8153 MEM32(ebp + (-0xA0)) = ecx; /* 0x30010D33: mov dword ptr [ebp - 0xa0], ecx */ 8154 MEM32(ebp + (-0x9C)) = edx; /* 0x30010D39: mov dword ptr [ebp - 0x9c], edx */ 8155 ecx = ebp + (-0xA0); /* 0x30010D3F: lea ecx, [ebp - 0xa0] */ 8156 edx = ebp + (-0xEC); /* 0x30010D45: lea edx, [ebp - 0xec] */ 8157 PUSH32(esp, ecx); /* 0x30010D4B: push ecx */ 8158 PUSH32(esp, edx); /* 0x30010D4C: push edx */ 8159 ecx = ebx + 0xC; /* 0x30010D4D: lea ecx, [ebx + 0xc] */ 8160 MEM32(ebp + (-0x98)) = eax; /* 0x30010D50: mov dword ptr [ebp - 0x98], eax */ 8161 RECOMP_ICALL(0x30011330u); /* 0x30010D56: call 0x30011330 */ /* not lifted */ 8162 RECOMP_FLAGS_IN(); 8163 eax = MEM32(eax); /* 0x30010D5B: mov eax, dword ptr [eax] */ 8164 ecx = edi; /* 0x30010D5D: mov ecx, edi */ 8165 eax = MEM32(eax + 0x18); /* 0x30010D5F: mov eax, dword ptr [eax + 0x18] */ 8166 PUSH32(esp, eax); /* 0x30010D62: push eax */ 8167 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D63: call dword ptr [0x30019078] */ 8168 RECOMP_FLAGS_IN(); 8169 ecx = ebp + (-0x28); /* 0x30010D69: lea ecx, [ebp - 0x28] */ 8170 eax = esi; /* 0x30010D6C: mov eax, esi */ 8171 PUSH32(esp, ecx); /* 0x30010D6E: push ecx */ 8172 PUSH32(esp, eax); /* 0x30010D6F: push eax */ 8173 ecx = ebp + (-0x114); /* 0x30010D70: lea ecx, [ebp - 0x114] */ 8174 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8175 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8176 esi = esi + 0xCu; /* 0x30010D76: add esi, 0xc */ 8177 _flag_k = FK_ADD; 8178 MEM32(ebp + (-0x28)) = 0; /* 0x30010D79: mov dword ptr [ebp - 0x28], 0 */ 8179 RECOMP_ICALL(0x30011560u); /* 0x30010D80: call 0x30011560 */ /* not lifted */ 8180 RECOMP_FLAGS_IN(); 8181 edx = ebp + (-0xFC); /* 0x30010D85: lea edx, [ebp - 0xfc] */ 8182 PUSH32(esp, eax); /* 0x30010D8B: push eax */ 8183 PUSH32(esp, edx); /* 0x30010D8C: push edx */ 8184 ecx = ebx + 0xC; /* 0x30010D8D: lea ecx, [ebx + 0xc] */ 8185 RECOMP_ICALL(0x30011330u); /* 0x30010D90: call 0x30011330 */ /* not lifted */ 8186 RECOMP_FLAGS_IN(); 8187 eax = MEM32(eax); /* 0x30010D95: mov eax, dword ptr [eax] */ 8188 ecx = edi; /* 0x30010D97: mov ecx, edi */ 8189 eax = MEM32(eax + 0x18); /* 0x30010D99: mov eax, dword ptr [eax + 0x18] */ 8190 PUSH32(esp, eax); /* 0x30010D9C: push eax */ 8191 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D9D: call dword ptr [0x30019078] */ 8192 RECOMP_FLAGS_IN(); 8193 eax = MEM32(ebx + 0x20); /* 0x30010DA3: mov eax, dword ptr [ebx + 0x20] */ 8194 ecx = MEM32(ebp + (-0x24)); /* 0x30010DA6: mov ecx, dword ptr [ebp - 0x24] */ 8195 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 8196 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8197 eax = eax + 3; /* 0x30010DA9: add eax, 3 */ 8198 _flag_k = FK_ADD; 8199 MEM32(ebx + 0x20) = eax; /* 0x30010DAC: mov dword ptr [ebx + 0x20], eax */ 8200 eax = MEM32(ebp + 0x8); /* 0x30010DAF: mov eax, dword ptr [ebp + 8] */ 8201 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8202 eax = eax + 1; /* 0x30010DB2: inc eax */ 8203 _flag_k = FK_INC; 8204 /* cmp eax, ecx */ /* 0x30010DB3: cmp eax, ecx */ 8205 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8207 _flag_k = FK_CMP; 8208 MEM32(ebp + 0x8) = eax; /* 0x30010DB5: mov dword ptr [ebp + 8], eax */ 8209 RECOMP_BACKEDGE(); 8210 if (CMP_L(_flag_a, _flag_b)) goto L_30010CCF; /* 0x30010DB8: jl 0x30010ccf */ 8211 L_30010DBE: 8212 eax = MEM32(ebp + (-0x4)); /* 0x30010DBE: mov eax, dword ptr [ebp - 4] */ 8213 esi = MEM32(ebp + (-0x8)); /* 0x30010DC1: mov esi, dword ptr [ebp - 8] */ 8214 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8215 eax = eax + 1; /* 0x30010DC4: inc eax */ 8216 _flag_k = FK_INC; 8217 MEM32(ebp + (-0x4)) = eax; /* 0x30010DC5: mov dword ptr [ebp - 4], eax */ 8218 L_30010DC8: 8219 ecx = MEM32(ebp + 0xC); /* 0x30010DC8: mov ecx, dword ptr [ebp + 0xc] */ 8220 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 8221 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8222 esi = esi + 4; /* 0x30010DCB: add esi, 4 */ 8223 _flag_k = FK_ADD; 8224 MEM32(ebp + (-0x8)) = esi; /* 0x30010DCE: mov dword ptr [ebp - 8], esi */ 8225 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x30010DD1: cmp esi, dword ptr [ecx + 8] */ 8226 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8228 _flag_k = FK_CMP; 8229 RECOMP_BACKEDGE(); 8230 if (CMP_NE(_flag_a, _flag_b)) goto L_300109D3; /* 0x30010DD4: jne 0x300109d3 */ 8231 L_30010DDA: 8232 eax = MEM32(ebp + (-0x4)); /* 0x30010DDA: mov eax, dword ptr [ebp - 4] */ 8233 edi = POP32_VAL(esp); /* 0x30010DDD: pop edi */ 8234 esi = POP32_VAL(esp); /* 0x30010DDE: pop esi */ 8235 ebx = POP32_VAL(esp); /* 0x30010DDF: pop ebx */ 8236 esp = ebp; /* 0x30010DE0: mov esp, ebp */ 8237 ebp = POP32_VAL(esp); /* 0x30010DE2: pop ebp */ 8238 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x30010DE3: ret 0xc */ 8239 RECOMP_REGS_OUT(); 8240 } 8241 8242 void sub_30010DBE(void) { 8243 int _fpu_cmp = 0; 8244 uint32_t _cf = 0; 8245 int _df = 1; 8246 uint32_t _flag_k = FK_NONE; 8247 uint32_t _flag_a = 0, _flag_b = 0; 8248 uint32_t _itail_tgt = 0; 8249 RECOMP_REGS_LOCALS 8250 RECOMP_ENTER(0x30010DBEu); 8251 8252 goto L_30010DBE; 8253 L_300109D3: 8254 ecx = MEM32(ebp + 0x10); /* 0x300109D3: mov ecx, dword ptr [ebp + 0x10] */ 8255 edx = ebp + (-0xB4); /* 0x300109D6: lea edx, [ebp - 0xb4] */ 8256 PUSH32(esp, esi); /* 0x300109DC: push esi */ 8257 PUSH32(esp, edx); /* 0x300109DD: push edx */ 8258 eax = MEM32(ecx + 0x4); /* 0x300109DE: mov eax, dword ptr [ecx + 4] */ 8259 MEM32(ebp + 0x8) = eax; /* 0x300109E1: mov dword ptr [ebp + 8], eax */ 8260 RECOMP_ICALL(0x30011740u); /* 0x300109E4: call 0x30011740 */ /* not lifted */ 8261 RECOMP_FLAGS_IN(); 8262 ecx = MEM32(ebp + 0x8); /* 0x300109E9: mov ecx, dword ptr [ebp + 8] */ 8263 edx = MEM32(eax); /* 0x300109EC: mov edx, dword ptr [eax] */ 8264 /* cmp edx, ecx */ /* 0x300109EE: cmp edx, ecx */ 8265 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8267 _flag_k = FK_CMP; 8268 if (CMP_NE(_flag_a, _flag_b)) goto L_30010DC8; /* 0x300109F0: jne 0x30010dc8 */ 8269 L_300109F6: 8270 ecx = MEM32(ebp + 0x10); /* 0x300109F6: mov ecx, dword ptr [ebp + 0x10] */ 8271 eax = MEM32(esi); /* 0x300109F9: mov eax, dword ptr [esi] */ 8272 MEM32(ebp + (-0x30)) = eax; /* 0x300109FB: mov dword ptr [ebp - 0x30], eax */ 8273 eax = ebp + (-0xDC); /* 0x300109FE: lea eax, [ebp - 0xdc] */ 8274 edx = MEM32(ecx + 0x10); /* 0x30010A04: mov edx, dword ptr [ecx + 0x10] */ 8275 MEM32(ebp + (-0x2C)) = 0; /* 0x30010A07: mov dword ptr [ebp - 0x2c], 0 */ 8276 MEM32(ebp + 0x8) = edx; /* 0x30010A0E: mov dword ptr [ebp + 8], edx */ 8277 edx = ebp + (-0x30); /* 0x30010A11: lea edx, [ebp - 0x30] */ 8278 PUSH32(esp, edx); /* 0x30010A14: push edx */ 8279 PUSH32(esp, eax); /* 0x30010A15: push eax */ 8280 RECOMP_ICALL(0x30011590u); /* 0x30010A16: call 0x30011590 */ /* not lifted */ 8281 RECOMP_FLAGS_IN(); 8282 eax = MEM32(eax); /* 0x30010A1B: mov eax, dword ptr [eax] */ 8283 ecx = MEM32(ebp + 0x8); /* 0x30010A1D: mov ecx, dword ptr [ebp + 8] */ 8284 MEM32(eax + 0x10) = ecx; /* 0x30010A20: mov dword ptr [eax + 0x10], ecx */ 8285 ecx = ebp + (-0x14); /* 0x30010A23: lea ecx, [ebp - 0x14] */ 8286 MEM32(ebp + (-0x20)) = 0; /* 0x30010A26: mov dword ptr [ebp - 0x20], 0 */ 8287 MEM32(ebp + (-0x1C)) = 0; /* 0x30010A2D: mov dword ptr [ebp - 0x1c], 0 */ 8288 MEM32(ebp + (-0x18)) = 0; /* 0x30010A34: mov dword ptr [ebp - 0x18], 0 */ 8289 RECOMP_ICALL(MEM32(0x300190E4)); /* 0x30010A3B: call dword ptr [0x300190e4] */ 8290 RECOMP_FLAGS_IN(); 8291 eax = MEM32(esi); /* 0x30010A41: mov eax, dword ptr [esi] */ 8292 edx = eax; /* 0x30010A43: mov edx, eax */ 8293 ecx = MEM32(edx); /* 0x30010A45: mov ecx, dword ptr [edx] */ 8294 MEM32(ebp + (-0x20)) = ecx; /* 0x30010A47: mov dword ptr [ebp - 0x20], ecx */ 8295 ecx = MEM32(edx + 0x4); /* 0x30010A4A: mov ecx, dword ptr [edx + 4] */ 8296 MEM32(ebp + (-0x1C)) = ecx; /* 0x30010A4D: mov dword ptr [ebp - 0x1c], ecx */ 8297 ecx = eax + 0xC; /* 0x30010A50: lea ecx, [eax + 0xc] */ 8298 edx = MEM32(edx + 0x8); /* 0x30010A53: mov edx, dword ptr [edx + 8] */ 8299 MEM32(ebp + (-0x18)) = edx; /* 0x30010A56: mov dword ptr [ebp - 0x18], edx */ 8300 edx = MEM32(ecx); /* 0x30010A59: mov edx, dword ptr [ecx] */ 8301 MEM32(ebp + (-0x14)) = edx; /* 0x30010A5B: mov dword ptr [ebp - 0x14], edx */ 8302 edx = MEM32(ecx + 0x4); /* 0x30010A5E: mov edx, dword ptr [ecx + 4] */ 8303 MEM32(ebp + (-0x10)) = edx; /* 0x30010A61: mov dword ptr [ebp - 0x10], edx */ 8304 ecx = MEM32(ecx + 0x8); /* 0x30010A64: mov ecx, dword ptr [ecx + 8] */ 8305 MEM32(ebp + (-0xC)) = ecx; /* 0x30010A67: mov dword ptr [ebp - 0xc], ecx */ 8306 edx = MEM32(eax + 0x1C); /* 0x30010A6A: mov edx, dword ptr [eax + 0x1c] */ 8307 /* test edx, edx */ /* 0x30010A6D: test edx, edx */ 8308 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 8309 _cf = 0; 8310 _flag_k = FK_TEST; 8311 if (TEST_Z(_flag_a, _flag_b)) goto L_30010A86; /* 0x30010A6F: je 0x30010a86 */ 8312 L_30010A71: 8313 ecx = MEM32(eax + 0x20); /* 0x30010A71: mov ecx, dword ptr [eax + 0x20] */ 8314 eax = 0x2AAAAAABu; /* 0x30010A74: mov eax, 0x2aaaaaab */ 8315 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8317 ecx = ecx - edx; /* 0x30010A79: sub ecx, edx */ 8318 _flag_k = FK_CMP; 8319 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x30010A7B: imul ecx */ 8320 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 8321 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 8322 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x30010A7D: sar edx, 1 */ 8323 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8324 edx = (uint32_t)((int32_t)edx >> 1u); 8325 eax = edx; /* 0x30010A7F: mov eax, edx */ 8326 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x30010A81: shr eax, 0x1f */ 8327 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8328 eax = eax >> 31u; /* 0x30010A81: shr eax, 0x1f */ 8329 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8330 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8331 edx = edx + eax; /* 0x30010A84: add edx, eax */ 8332 _flag_k = FK_ADD; 8333 L_30010A86: 8334 eax = 0xAAAAAAABu; /* 0x30010A86: mov eax, 0xaaaaaaab */ 8335 ecx = ebp + (-0x14); /* 0x30010A8B: lea ecx, [ebp - 0x14] */ 8336 { uint64_t _r = (uint64_t)eax * (uint32_t)(edx); /* 0x30010A8E: mul edx */ 8337 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 8338 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 8339 eax = ebp + (-0x20); /* 0x30010A90: lea eax, [ebp - 0x20] */ 8340 PUSH32(esp, ecx); /* 0x30010A93: push ecx */ 8341 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x30010A94: shr edx, 1 */ 8342 if (1u) { _flag_a = recomp_flags_pack((edx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8343 edx = edx >> 1u; /* 0x30010A94: shr edx, 1 */ 8344 PUSH32(esp, eax); /* 0x30010A96: push eax */ 8345 PUSH32(esp, edx); /* 0x30010A97: push edx */ 8346 ecx = edi; /* 0x30010A98: mov ecx, edi */ 8347 MEM32(ebp + (-0x24)) = edx; /* 0x30010A9A: mov dword ptr [ebp - 0x24], edx */ 8348 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010A9D: call dword ptr [0x30019078] */ 8349 RECOMP_FLAGS_IN(); 8350 PUSH32(esp, eax); /* 0x30010AA3: push eax */ 8351 RECOMP_ICALL(0x30011490u); /* 0x30010AA4: call 0x30011490 */ /* not lifted */ 8352 RECOMP_FLAGS_IN(); 8353 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8354 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8355 esp = esp + 8; /* 0x30010AA9: add esp, 8 */ 8356 _flag_k = FK_ADD; 8357 PUSH32(esp, eax); /* 0x30010AAC: push eax */ 8358 RECOMP_ICALL(0x30011490u); /* 0x30010AAD: call 0x30011490 */ /* not lifted */ 8359 RECOMP_FLAGS_IN(); 8360 ecx = MEM32(esi); /* 0x30010AB2: mov ecx, dword ptr [esi] */ 8361 eax = MEM32(ebx + 0x24); /* 0x30010AB4: mov eax, dword ptr [ebx + 0x24] */ 8362 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8363 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8364 esp = esp + 8; /* 0x30010AB7: add esp, 8 */ 8365 _flag_k = FK_ADD; 8366 /* cmp eax, 0x100u */ /* 0x30010ABA: cmp eax, 0x100 */ 8367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x100u); 8368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8369 _flag_k = FK_CMP; 8370 esi = MEM32(ecx + 0x1C); /* 0x30010ABF: mov esi, dword ptr [ecx + 0x1c] */ 8371 if (CMP_GE(_flag_a, _flag_b)) goto L_30010BC3; /* 0x30010AC2: jge 0x30010bc3 */ 8372 L_30010AC8: 8373 eax = MEM32(ebp + (-0x24)); /* 0x30010AC8: mov eax, dword ptr [ebp - 0x24] */ 8374 MEM32(ebp + 0x8) = 0; /* 0x30010ACB: mov dword ptr [ebp + 8], 0 */ 8375 /* test eax, eax */ /* 0x30010AD2: test eax, eax */ 8376 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8377 _cf = 0; 8378 _flag_k = FK_TEST; 8379 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010AD4: jle 0x30010dbe */ 8380 L_30010ADA: 8381 eax = esi; /* 0x30010ADA: mov eax, esi */ 8382 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8384 esi = esi + 0xCu; /* 0x30010ADC: add esi, 0xc */ 8385 _flag_k = FK_ADD; 8386 MEM32(ebp + (-0x34)) = 0; /* 0x30010ADF: mov dword ptr [ebp - 0x34], 0 */ 8387 edx = MEM32(eax); /* 0x30010AE6: mov edx, dword ptr [eax] */ 8388 ecx = MEM32(eax + 0x4); /* 0x30010AE8: mov ecx, dword ptr [eax + 4] */ 8389 MEM32(ebp + (-0x40)) = edx; /* 0x30010AEB: mov dword ptr [ebp - 0x40], edx */ 8390 edx = MEM32(eax + 0x8); /* 0x30010AEE: mov edx, dword ptr [eax + 8] */ 8391 MEM32(ebp + (-0x3C)) = ecx; /* 0x30010AF1: mov dword ptr [ebp - 0x3c], ecx */ 8392 eax = ebp + (-0x40); /* 0x30010AF4: lea eax, [ebp - 0x40] */ 8393 ecx = ebp + (-0x104); /* 0x30010AF7: lea ecx, [ebp - 0x104] */ 8394 PUSH32(esp, eax); /* 0x30010AFD: push eax */ 8395 PUSH32(esp, ecx); /* 0x30010AFE: push ecx */ 8396 ecx = ebx + 0xC; /* 0x30010AFF: lea ecx, [ebx + 0xc] */ 8397 MEM32(ebp + (-0x38)) = edx; /* 0x30010B02: mov dword ptr [ebp - 0x38], edx */ 8398 RECOMP_ICALL(0x30011330u); /* 0x30010B05: call 0x30011330 */ /* not lifted */ 8399 RECOMP_FLAGS_IN(); 8400 eax = MEM32(eax); /* 0x30010B0A: mov eax, dword ptr [eax] */ 8401 ecx = edi; /* 0x30010B0C: mov ecx, edi */ 8402 SET_LO8(edx, MEM8(eax + 0x18)); /* 0x30010B0E: mov dl, byte ptr [eax + 0x18] */ 8403 PUSH32(esp, edx); /* 0x30010B11: push edx */ 8404 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B12: call dword ptr [0x300190a4] */ 8405 RECOMP_FLAGS_IN(); 8406 eax = esi; /* 0x30010B18: mov eax, esi */ 8407 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8408 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8409 esi = esi + 0xCu; /* 0x30010B1A: add esi, 0xc */ 8410 _flag_k = FK_ADD; 8411 MEM32(ebp + (-0x64)) = 0; /* 0x30010B1D: mov dword ptr [ebp - 0x64], 0 */ 8412 ecx = MEM32(eax); /* 0x30010B24: mov ecx, dword ptr [eax] */ 8413 edx = MEM32(eax + 0x4); /* 0x30010B26: mov edx, dword ptr [eax + 4] */ 8414 eax = MEM32(eax + 0x8); /* 0x30010B29: mov eax, dword ptr [eax + 8] */ 8415 MEM32(ebp + (-0x70)) = ecx; /* 0x30010B2C: mov dword ptr [ebp - 0x70], ecx */ 8416 MEM32(ebp + (-0x6C)) = edx; /* 0x30010B2F: mov dword ptr [ebp - 0x6c], edx */ 8417 ecx = ebp + (-0x70); /* 0x30010B32: lea ecx, [ebp - 0x70] */ 8418 edx = ebp + (-0xD4); /* 0x30010B35: lea edx, [ebp - 0xd4] */ 8419 PUSH32(esp, ecx); /* 0x30010B3B: push ecx */ 8420 PUSH32(esp, edx); /* 0x30010B3C: push edx */ 8421 ecx = ebx + 0xC; /* 0x30010B3D: lea ecx, [ebx + 0xc] */ 8422 MEM32(ebp + (-0x68)) = eax; /* 0x30010B40: mov dword ptr [ebp - 0x68], eax */ 8423 RECOMP_ICALL(0x30011330u); /* 0x30010B43: call 0x30011330 */ /* not lifted */ 8424 RECOMP_FLAGS_IN(); 8425 eax = MEM32(eax); /* 0x30010B48: mov eax, dword ptr [eax] */ 8426 ecx = edi; /* 0x30010B4A: mov ecx, edi */ 8427 SET_LO8(eax, MEM8(eax + 0x18)); /* 0x30010B4C: mov al, byte ptr [eax + 0x18] */ 8428 PUSH32(esp, eax); /* 0x30010B4F: push eax */ 8429 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B50: call dword ptr [0x300190a4] */ 8430 RECOMP_FLAGS_IN(); 8431 eax = esi; /* 0x30010B56: mov eax, esi */ 8432 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8433 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8434 esi = esi + 0xCu; /* 0x30010B58: add esi, 0xc */ 8435 _flag_k = FK_ADD; 8436 MEM32(ebp + (-0x84)) = 0; /* 0x30010B5B: mov dword ptr [ebp - 0x84], 0 */ 8437 ecx = MEM32(eax); /* 0x30010B65: mov ecx, dword ptr [eax] */ 8438 edx = MEM32(eax + 0x4); /* 0x30010B67: mov edx, dword ptr [eax + 4] */ 8439 eax = MEM32(eax + 0x8); /* 0x30010B6A: mov eax, dword ptr [eax + 8] */ 8440 MEM32(ebp + (-0x90)) = ecx; /* 0x30010B6D: mov dword ptr [ebp - 0x90], ecx */ 8441 MEM32(ebp + (-0x8C)) = edx; /* 0x30010B73: mov dword ptr [ebp - 0x8c], edx */ 8442 ecx = ebp + (-0x90); /* 0x30010B79: lea ecx, [ebp - 0x90] */ 8443 edx = ebp + (-0xF4); /* 0x30010B7F: lea edx, [ebp - 0xf4] */ 8444 PUSH32(esp, ecx); /* 0x30010B85: push ecx */ 8445 PUSH32(esp, edx); /* 0x30010B86: push edx */ 8446 ecx = ebx + 0xC; /* 0x30010B87: lea ecx, [ebx + 0xc] */ 8447 MEM32(ebp + (-0x88)) = eax; /* 0x30010B8A: mov dword ptr [ebp - 0x88], eax */ 8448 RECOMP_ICALL(0x30011330u); /* 0x30010B90: call 0x30011330 */ /* not lifted */ 8449 RECOMP_FLAGS_IN(); 8450 eax = MEM32(eax); /* 0x30010B95: mov eax, dword ptr [eax] */ 8451 ecx = edi; /* 0x30010B97: mov ecx, edi */ 8452 SET_LO8(eax, MEM8(eax + 0x18)); /* 0x30010B99: mov al, byte ptr [eax + 0x18] */ 8453 PUSH32(esp, eax); /* 0x30010B9C: push eax */ 8454 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B9D: call dword ptr [0x300190a4] */ 8455 RECOMP_FLAGS_IN(); 8456 eax = MEM32(ebx + 0x20); /* 0x30010BA3: mov eax, dword ptr [ebx + 0x20] */ 8457 ecx = MEM32(ebp + (-0x24)); /* 0x30010BA6: mov ecx, dword ptr [ebp - 0x24] */ 8458 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 8459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8460 eax = eax + 3; /* 0x30010BA9: add eax, 3 */ 8461 _flag_k = FK_ADD; 8462 MEM32(ebx + 0x20) = eax; /* 0x30010BAC: mov dword ptr [ebx + 0x20], eax */ 8463 eax = MEM32(ebp + 0x8); /* 0x30010BAF: mov eax, dword ptr [ebp + 8] */ 8464 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8465 eax = eax + 1; /* 0x30010BB2: inc eax */ 8466 _flag_k = FK_INC; 8467 /* cmp eax, ecx */ /* 0x30010BB3: cmp eax, ecx */ 8468 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8470 _flag_k = FK_CMP; 8471 MEM32(ebp + 0x8) = eax; /* 0x30010BB5: mov dword ptr [ebp + 8], eax */ 8472 RECOMP_BACKEDGE(); 8473 if (CMP_L(_flag_a, _flag_b)) goto L_30010ADA; /* 0x30010BB8: jl 0x30010ada */ 8474 L_30010BBE: 8475 goto L_30010DBE; /* 0x30010BBE: jmp 0x30010dbe */ 8476 L_30010BC3: 8477 /* cmp eax, 0x00010000u */ /* 0x30010BC3: cmp eax, 0x10000 */ 8478 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00010000u); 8479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8480 _flag_k = FK_CMP; 8481 if (CMP_GE(_flag_a, _flag_b)) goto L_30010CBD; /* 0x30010BC8: jge 0x30010cbd */ 8482 L_30010BCE: 8483 eax = MEM32(ebp + (-0x24)); /* 0x30010BCE: mov eax, dword ptr [ebp - 0x24] */ 8484 MEM32(ebp + 0x8) = 0; /* 0x30010BD1: mov dword ptr [ebp + 8], 0 */ 8485 /* test eax, eax */ /* 0x30010BD8: test eax, eax */ 8486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8487 _cf = 0; 8488 _flag_k = FK_TEST; 8489 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010BDA: jle 0x30010dbe */ 8490 L_30010BE0: 8491 eax = esi; /* 0x30010BE0: mov eax, esi */ 8492 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8493 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8494 esi = esi + 0xCu; /* 0x30010BE2: add esi, 0xc */ 8495 _flag_k = FK_ADD; 8496 MEM32(ebp + (-0x44)) = 0; /* 0x30010BE5: mov dword ptr [ebp - 0x44], 0 */ 8497 ecx = MEM32(eax); /* 0x30010BEC: mov ecx, dword ptr [eax] */ 8498 edx = MEM32(eax + 0x4); /* 0x30010BEE: mov edx, dword ptr [eax + 4] */ 8499 eax = MEM32(eax + 0x8); /* 0x30010BF1: mov eax, dword ptr [eax + 8] */ 8500 MEM32(ebp + (-0x50)) = ecx; /* 0x30010BF4: mov dword ptr [ebp - 0x50], ecx */ 8501 MEM32(ebp + (-0x4C)) = edx; /* 0x30010BF7: mov dword ptr [ebp - 0x4c], edx */ 8502 ecx = ebp + (-0x50); /* 0x30010BFA: lea ecx, [ebp - 0x50] */ 8503 edx = ebp + (-0xE4); /* 0x30010BFD: lea edx, [ebp - 0xe4] */ 8504 PUSH32(esp, ecx); /* 0x30010C03: push ecx */ 8505 PUSH32(esp, edx); /* 0x30010C04: push edx */ 8506 ecx = ebx + 0xC; /* 0x30010C05: lea ecx, [ebx + 0xc] */ 8507 MEM32(ebp + (-0x48)) = eax; /* 0x30010C08: mov dword ptr [ebp - 0x48], eax */ 8508 RECOMP_ICALL(0x30011330u); /* 0x30010C0B: call 0x30011330 */ /* not lifted */ 8509 RECOMP_FLAGS_IN(); 8510 eax = MEM32(eax); /* 0x30010C10: mov eax, dword ptr [eax] */ 8511 ecx = edi; /* 0x30010C12: mov ecx, edi */ 8512 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C14: mov ax, word ptr [eax + 0x18] */ 8513 PUSH32(esp, eax); /* 0x30010C18: push eax */ 8514 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C19: call dword ptr [0x300190a8] */ 8515 RECOMP_FLAGS_IN(); 8516 eax = esi; /* 0x30010C1F: mov eax, esi */ 8517 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8518 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8519 esi = esi + 0xCu; /* 0x30010C21: add esi, 0xc */ 8520 _flag_k = FK_ADD; 8521 MEM32(ebp + (-0x54)) = 0; /* 0x30010C24: mov dword ptr [ebp - 0x54], 0 */ 8522 ecx = MEM32(eax); /* 0x30010C2B: mov ecx, dword ptr [eax] */ 8523 edx = MEM32(eax + 0x4); /* 0x30010C2D: mov edx, dword ptr [eax + 4] */ 8524 eax = MEM32(eax + 0x8); /* 0x30010C30: mov eax, dword ptr [eax + 8] */ 8525 MEM32(ebp + (-0x60)) = ecx; /* 0x30010C33: mov dword ptr [ebp - 0x60], ecx */ 8526 MEM32(ebp + (-0x5C)) = edx; /* 0x30010C36: mov dword ptr [ebp - 0x5c], edx */ 8527 ecx = ebp + (-0x60); /* 0x30010C39: lea ecx, [ebp - 0x60] */ 8528 edx = ebp + (-0xC4); /* 0x30010C3C: lea edx, [ebp - 0xc4] */ 8529 PUSH32(esp, ecx); /* 0x30010C42: push ecx */ 8530 PUSH32(esp, edx); /* 0x30010C43: push edx */ 8531 ecx = ebx + 0xC; /* 0x30010C44: lea ecx, [ebx + 0xc] */ 8532 MEM32(ebp + (-0x58)) = eax; /* 0x30010C47: mov dword ptr [ebp - 0x58], eax */ 8533 RECOMP_ICALL(0x30011330u); /* 0x30010C4A: call 0x30011330 */ /* not lifted */ 8534 RECOMP_FLAGS_IN(); 8535 eax = MEM32(eax); /* 0x30010C4F: mov eax, dword ptr [eax] */ 8536 ecx = edi; /* 0x30010C51: mov ecx, edi */ 8537 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C53: mov ax, word ptr [eax + 0x18] */ 8538 PUSH32(esp, eax); /* 0x30010C57: push eax */ 8539 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C58: call dword ptr [0x300190a8] */ 8540 RECOMP_FLAGS_IN(); 8541 eax = esi; /* 0x30010C5E: mov eax, esi */ 8542 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8543 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8544 esi = esi + 0xCu; /* 0x30010C60: add esi, 0xc */ 8545 _flag_k = FK_ADD; 8546 MEM32(ebp + (-0x74)) = 0; /* 0x30010C63: mov dword ptr [ebp - 0x74], 0 */ 8547 ecx = MEM32(eax); /* 0x30010C6A: mov ecx, dword ptr [eax] */ 8548 edx = MEM32(eax + 0x4); /* 0x30010C6C: mov edx, dword ptr [eax + 4] */ 8549 eax = MEM32(eax + 0x8); /* 0x30010C6F: mov eax, dword ptr [eax + 8] */ 8550 MEM32(ebp + (-0x80)) = ecx; /* 0x30010C72: mov dword ptr [ebp - 0x80], ecx */ 8551 MEM32(ebp + (-0x7C)) = edx; /* 0x30010C75: mov dword ptr [ebp - 0x7c], edx */ 8552 ecx = ebp + (-0x80); /* 0x30010C78: lea ecx, [ebp - 0x80] */ 8553 edx = ebp + (-0xCC); /* 0x30010C7B: lea edx, [ebp - 0xcc] */ 8554 PUSH32(esp, ecx); /* 0x30010C81: push ecx */ 8555 PUSH32(esp, edx); /* 0x30010C82: push edx */ 8556 ecx = ebx + 0xC; /* 0x30010C83: lea ecx, [ebx + 0xc] */ 8557 MEM32(ebp + (-0x78)) = eax; /* 0x30010C86: mov dword ptr [ebp - 0x78], eax */ 8558 RECOMP_ICALL(0x30011330u); /* 0x30010C89: call 0x30011330 */ /* not lifted */ 8559 RECOMP_FLAGS_IN(); 8560 eax = MEM32(eax); /* 0x30010C8E: mov eax, dword ptr [eax] */ 8561 ecx = edi; /* 0x30010C90: mov ecx, edi */ 8562 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C92: mov ax, word ptr [eax + 0x18] */ 8563 PUSH32(esp, eax); /* 0x30010C96: push eax */ 8564 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C97: call dword ptr [0x300190a8] */ 8565 RECOMP_FLAGS_IN(); 8566 eax = MEM32(ebx + 0x20); /* 0x30010C9D: mov eax, dword ptr [ebx + 0x20] */ 8567 ecx = MEM32(ebp + (-0x24)); /* 0x30010CA0: mov ecx, dword ptr [ebp - 0x24] */ 8568 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 8569 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8570 eax = eax + 3; /* 0x30010CA3: add eax, 3 */ 8571 _flag_k = FK_ADD; 8572 MEM32(ebx + 0x20) = eax; /* 0x30010CA6: mov dword ptr [ebx + 0x20], eax */ 8573 eax = MEM32(ebp + 0x8); /* 0x30010CA9: mov eax, dword ptr [ebp + 8] */ 8574 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8575 eax = eax + 1; /* 0x30010CAC: inc eax */ 8576 _flag_k = FK_INC; 8577 /* cmp eax, ecx */ /* 0x30010CAD: cmp eax, ecx */ 8578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8580 _flag_k = FK_CMP; 8581 MEM32(ebp + 0x8) = eax; /* 0x30010CAF: mov dword ptr [ebp + 8], eax */ 8582 RECOMP_BACKEDGE(); 8583 if (CMP_L(_flag_a, _flag_b)) goto L_30010BE0; /* 0x30010CB2: jl 0x30010be0 */ 8584 L_30010CB8: 8585 goto L_30010DBE; /* 0x30010CB8: jmp 0x30010dbe */ 8586 L_30010CBD: 8587 eax = MEM32(ebp + (-0x24)); /* 0x30010CBD: mov eax, dword ptr [ebp - 0x24] */ 8588 MEM32(ebp + 0x8) = 0; /* 0x30010CC0: mov dword ptr [ebp + 8], 0 */ 8589 /* test eax, eax */ /* 0x30010CC7: test eax, eax */ 8590 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8591 _cf = 0; 8592 _flag_k = FK_TEST; 8593 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010CC9: jle 0x30010dbe */ 8594 L_30010CCF: 8595 eax = esi; /* 0x30010CCF: mov eax, esi */ 8596 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8597 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8598 esi = esi + 0xCu; /* 0x30010CD1: add esi, 0xc */ 8599 _flag_k = FK_ADD; 8600 MEM32(ebp + (-0xA4)) = 0; /* 0x30010CD4: mov dword ptr [ebp - 0xa4], 0 */ 8601 ecx = MEM32(eax); /* 0x30010CDE: mov ecx, dword ptr [eax] */ 8602 edx = MEM32(eax + 0x4); /* 0x30010CE0: mov edx, dword ptr [eax + 4] */ 8603 eax = MEM32(eax + 0x8); /* 0x30010CE3: mov eax, dword ptr [eax + 8] */ 8604 MEM32(ebp + (-0xB0)) = ecx; /* 0x30010CE6: mov dword ptr [ebp - 0xb0], ecx */ 8605 MEM32(ebp + (-0xAC)) = edx; /* 0x30010CEC: mov dword ptr [ebp - 0xac], edx */ 8606 ecx = ebp + (-0xB0); /* 0x30010CF2: lea ecx, [ebp - 0xb0] */ 8607 edx = ebp + (-0xBC); /* 0x30010CF8: lea edx, [ebp - 0xbc] */ 8608 PUSH32(esp, ecx); /* 0x30010CFE: push ecx */ 8609 PUSH32(esp, edx); /* 0x30010CFF: push edx */ 8610 ecx = ebx + 0xC; /* 0x30010D00: lea ecx, [ebx + 0xc] */ 8611 MEM32(ebp + (-0xA8)) = eax; /* 0x30010D03: mov dword ptr [ebp - 0xa8], eax */ 8612 RECOMP_ICALL(0x30011330u); /* 0x30010D09: call 0x30011330 */ /* not lifted */ 8613 RECOMP_FLAGS_IN(); 8614 eax = MEM32(eax); /* 0x30010D0E: mov eax, dword ptr [eax] */ 8615 ecx = edi; /* 0x30010D10: mov ecx, edi */ 8616 eax = MEM32(eax + 0x18); /* 0x30010D12: mov eax, dword ptr [eax + 0x18] */ 8617 PUSH32(esp, eax); /* 0x30010D15: push eax */ 8618 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D16: call dword ptr [0x30019078] */ 8619 RECOMP_FLAGS_IN(); 8620 eax = esi; /* 0x30010D1C: mov eax, esi */ 8621 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8622 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8623 esi = esi + 0xCu; /* 0x30010D1E: add esi, 0xc */ 8624 _flag_k = FK_ADD; 8625 MEM32(ebp + (-0x94)) = 0; /* 0x30010D21: mov dword ptr [ebp - 0x94], 0 */ 8626 ecx = MEM32(eax); /* 0x30010D2B: mov ecx, dword ptr [eax] */ 8627 edx = MEM32(eax + 0x4); /* 0x30010D2D: mov edx, dword ptr [eax + 4] */ 8628 eax = MEM32(eax + 0x8); /* 0x30010D30: mov eax, dword ptr [eax + 8] */ 8629 MEM32(ebp + (-0xA0)) = ecx; /* 0x30010D33: mov dword ptr [ebp - 0xa0], ecx */ 8630 MEM32(ebp + (-0x9C)) = edx; /* 0x30010D39: mov dword ptr [ebp - 0x9c], edx */ 8631 ecx = ebp + (-0xA0); /* 0x30010D3F: lea ecx, [ebp - 0xa0] */ 8632 edx = ebp + (-0xEC); /* 0x30010D45: lea edx, [ebp - 0xec] */ 8633 PUSH32(esp, ecx); /* 0x30010D4B: push ecx */ 8634 PUSH32(esp, edx); /* 0x30010D4C: push edx */ 8635 ecx = ebx + 0xC; /* 0x30010D4D: lea ecx, [ebx + 0xc] */ 8636 MEM32(ebp + (-0x98)) = eax; /* 0x30010D50: mov dword ptr [ebp - 0x98], eax */ 8637 RECOMP_ICALL(0x30011330u); /* 0x30010D56: call 0x30011330 */ /* not lifted */ 8638 RECOMP_FLAGS_IN(); 8639 eax = MEM32(eax); /* 0x30010D5B: mov eax, dword ptr [eax] */ 8640 ecx = edi; /* 0x30010D5D: mov ecx, edi */ 8641 eax = MEM32(eax + 0x18); /* 0x30010D5F: mov eax, dword ptr [eax + 0x18] */ 8642 PUSH32(esp, eax); /* 0x30010D62: push eax */ 8643 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D63: call dword ptr [0x30019078] */ 8644 RECOMP_FLAGS_IN(); 8645 ecx = ebp + (-0x28); /* 0x30010D69: lea ecx, [ebp - 0x28] */ 8646 eax = esi; /* 0x30010D6C: mov eax, esi */ 8647 PUSH32(esp, ecx); /* 0x30010D6E: push ecx */ 8648 PUSH32(esp, eax); /* 0x30010D6F: push eax */ 8649 ecx = ebp + (-0x114); /* 0x30010D70: lea ecx, [ebp - 0x114] */ 8650 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8651 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8652 esi = esi + 0xCu; /* 0x30010D76: add esi, 0xc */ 8653 _flag_k = FK_ADD; 8654 MEM32(ebp + (-0x28)) = 0; /* 0x30010D79: mov dword ptr [ebp - 0x28], 0 */ 8655 RECOMP_ICALL(0x30011560u); /* 0x30010D80: call 0x30011560 */ /* not lifted */ 8656 RECOMP_FLAGS_IN(); 8657 edx = ebp + (-0xFC); /* 0x30010D85: lea edx, [ebp - 0xfc] */ 8658 PUSH32(esp, eax); /* 0x30010D8B: push eax */ 8659 PUSH32(esp, edx); /* 0x30010D8C: push edx */ 8660 ecx = ebx + 0xC; /* 0x30010D8D: lea ecx, [ebx + 0xc] */ 8661 RECOMP_ICALL(0x30011330u); /* 0x30010D90: call 0x30011330 */ /* not lifted */ 8662 RECOMP_FLAGS_IN(); 8663 eax = MEM32(eax); /* 0x30010D95: mov eax, dword ptr [eax] */ 8664 ecx = edi; /* 0x30010D97: mov ecx, edi */ 8665 eax = MEM32(eax + 0x18); /* 0x30010D99: mov eax, dword ptr [eax + 0x18] */ 8666 PUSH32(esp, eax); /* 0x30010D9C: push eax */ 8667 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D9D: call dword ptr [0x30019078] */ 8668 RECOMP_FLAGS_IN(); 8669 eax = MEM32(ebx + 0x20); /* 0x30010DA3: mov eax, dword ptr [ebx + 0x20] */ 8670 ecx = MEM32(ebp + (-0x24)); /* 0x30010DA6: mov ecx, dword ptr [ebp - 0x24] */ 8671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 8672 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8673 eax = eax + 3; /* 0x30010DA9: add eax, 3 */ 8674 _flag_k = FK_ADD; 8675 MEM32(ebx + 0x20) = eax; /* 0x30010DAC: mov dword ptr [ebx + 0x20], eax */ 8676 eax = MEM32(ebp + 0x8); /* 0x30010DAF: mov eax, dword ptr [ebp + 8] */ 8677 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8678 eax = eax + 1; /* 0x30010DB2: inc eax */ 8679 _flag_k = FK_INC; 8680 /* cmp eax, ecx */ /* 0x30010DB3: cmp eax, ecx */ 8681 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8683 _flag_k = FK_CMP; 8684 MEM32(ebp + 0x8) = eax; /* 0x30010DB5: mov dword ptr [ebp + 8], eax */ 8685 RECOMP_BACKEDGE(); 8686 if (CMP_L(_flag_a, _flag_b)) goto L_30010CCF; /* 0x30010DB8: jl 0x30010ccf */ 8687 L_30010DBE: 8688 eax = MEM32(ebp + (-0x4)); /* 0x30010DBE: mov eax, dword ptr [ebp - 4] */ 8689 esi = MEM32(ebp + (-0x8)); /* 0x30010DC1: mov esi, dword ptr [ebp - 8] */ 8690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8691 eax = eax + 1; /* 0x30010DC4: inc eax */ 8692 _flag_k = FK_INC; 8693 MEM32(ebp + (-0x4)) = eax; /* 0x30010DC5: mov dword ptr [ebp - 4], eax */ 8694 L_30010DC8: 8695 ecx = MEM32(ebp + 0xC); /* 0x30010DC8: mov ecx, dword ptr [ebp + 0xc] */ 8696 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 8697 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8698 esi = esi + 4; /* 0x30010DCB: add esi, 4 */ 8699 _flag_k = FK_ADD; 8700 MEM32(ebp + (-0x8)) = esi; /* 0x30010DCE: mov dword ptr [ebp - 8], esi */ 8701 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x30010DD1: cmp esi, dword ptr [ecx + 8] */ 8702 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8704 _flag_k = FK_CMP; 8705 RECOMP_BACKEDGE(); 8706 if (CMP_NE(_flag_a, _flag_b)) goto L_300109D3; /* 0x30010DD4: jne 0x300109d3 */ 8707 L_30010DDA: 8708 eax = MEM32(ebp + (-0x4)); /* 0x30010DDA: mov eax, dword ptr [ebp - 4] */ 8709 edi = POP32_VAL(esp); /* 0x30010DDD: pop edi */ 8710 esi = POP32_VAL(esp); /* 0x30010DDE: pop esi */ 8711 ebx = POP32_VAL(esp); /* 0x30010DDF: pop ebx */ 8712 esp = ebp; /* 0x30010DE0: mov esp, ebp */ 8713 ebp = POP32_VAL(esp); /* 0x30010DE2: pop ebp */ 8714 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x30010DE3: ret 0xc */ 8715 RECOMP_REGS_OUT(); 8716 } 8717 8718 void sub_30010DC8(void) { 8719 int _fpu_cmp = 0; 8720 uint32_t _cf = 0; 8721 int _df = 1; 8722 uint32_t _flag_k = FK_NONE; 8723 uint32_t _flag_a = 0, _flag_b = 0; 8724 uint32_t _itail_tgt = 0; 8725 RECOMP_REGS_LOCALS 8726 RECOMP_ENTER(0x30010DC8u); 8727 8728 goto L_30010DC8; 8729 L_300109D3: 8730 ecx = MEM32(ebp + 0x10); /* 0x300109D3: mov ecx, dword ptr [ebp + 0x10] */ 8731 edx = ebp + (-0xB4); /* 0x300109D6: lea edx, [ebp - 0xb4] */ 8732 PUSH32(esp, esi); /* 0x300109DC: push esi */ 8733 PUSH32(esp, edx); /* 0x300109DD: push edx */ 8734 eax = MEM32(ecx + 0x4); /* 0x300109DE: mov eax, dword ptr [ecx + 4] */ 8735 MEM32(ebp + 0x8) = eax; /* 0x300109E1: mov dword ptr [ebp + 8], eax */ 8736 RECOMP_ICALL(0x30011740u); /* 0x300109E4: call 0x30011740 */ /* not lifted */ 8737 RECOMP_FLAGS_IN(); 8738 ecx = MEM32(ebp + 0x8); /* 0x300109E9: mov ecx, dword ptr [ebp + 8] */ 8739 edx = MEM32(eax); /* 0x300109EC: mov edx, dword ptr [eax] */ 8740 /* cmp edx, ecx */ /* 0x300109EE: cmp edx, ecx */ 8741 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8743 _flag_k = FK_CMP; 8744 if (CMP_NE(_flag_a, _flag_b)) goto L_30010DC8; /* 0x300109F0: jne 0x30010dc8 */ 8745 L_300109F6: 8746 ecx = MEM32(ebp + 0x10); /* 0x300109F6: mov ecx, dword ptr [ebp + 0x10] */ 8747 eax = MEM32(esi); /* 0x300109F9: mov eax, dword ptr [esi] */ 8748 MEM32(ebp + (-0x30)) = eax; /* 0x300109FB: mov dword ptr [ebp - 0x30], eax */ 8749 eax = ebp + (-0xDC); /* 0x300109FE: lea eax, [ebp - 0xdc] */ 8750 edx = MEM32(ecx + 0x10); /* 0x30010A04: mov edx, dword ptr [ecx + 0x10] */ 8751 MEM32(ebp + (-0x2C)) = 0; /* 0x30010A07: mov dword ptr [ebp - 0x2c], 0 */ 8752 MEM32(ebp + 0x8) = edx; /* 0x30010A0E: mov dword ptr [ebp + 8], edx */ 8753 edx = ebp + (-0x30); /* 0x30010A11: lea edx, [ebp - 0x30] */ 8754 PUSH32(esp, edx); /* 0x30010A14: push edx */ 8755 PUSH32(esp, eax); /* 0x30010A15: push eax */ 8756 RECOMP_ICALL(0x30011590u); /* 0x30010A16: call 0x30011590 */ /* not lifted */ 8757 RECOMP_FLAGS_IN(); 8758 eax = MEM32(eax); /* 0x30010A1B: mov eax, dword ptr [eax] */ 8759 ecx = MEM32(ebp + 0x8); /* 0x30010A1D: mov ecx, dword ptr [ebp + 8] */ 8760 MEM32(eax + 0x10) = ecx; /* 0x30010A20: mov dword ptr [eax + 0x10], ecx */ 8761 ecx = ebp + (-0x14); /* 0x30010A23: lea ecx, [ebp - 0x14] */ 8762 MEM32(ebp + (-0x20)) = 0; /* 0x30010A26: mov dword ptr [ebp - 0x20], 0 */ 8763 MEM32(ebp + (-0x1C)) = 0; /* 0x30010A2D: mov dword ptr [ebp - 0x1c], 0 */ 8764 MEM32(ebp + (-0x18)) = 0; /* 0x30010A34: mov dword ptr [ebp - 0x18], 0 */ 8765 RECOMP_ICALL(MEM32(0x300190E4)); /* 0x30010A3B: call dword ptr [0x300190e4] */ 8766 RECOMP_FLAGS_IN(); 8767 eax = MEM32(esi); /* 0x30010A41: mov eax, dword ptr [esi] */ 8768 edx = eax; /* 0x30010A43: mov edx, eax */ 8769 ecx = MEM32(edx); /* 0x30010A45: mov ecx, dword ptr [edx] */ 8770 MEM32(ebp + (-0x20)) = ecx; /* 0x30010A47: mov dword ptr [ebp - 0x20], ecx */ 8771 ecx = MEM32(edx + 0x4); /* 0x30010A4A: mov ecx, dword ptr [edx + 4] */ 8772 MEM32(ebp + (-0x1C)) = ecx; /* 0x30010A4D: mov dword ptr [ebp - 0x1c], ecx */ 8773 ecx = eax + 0xC; /* 0x30010A50: lea ecx, [eax + 0xc] */ 8774 edx = MEM32(edx + 0x8); /* 0x30010A53: mov edx, dword ptr [edx + 8] */ 8775 MEM32(ebp + (-0x18)) = edx; /* 0x30010A56: mov dword ptr [ebp - 0x18], edx */ 8776 edx = MEM32(ecx); /* 0x30010A59: mov edx, dword ptr [ecx] */ 8777 MEM32(ebp + (-0x14)) = edx; /* 0x30010A5B: mov dword ptr [ebp - 0x14], edx */ 8778 edx = MEM32(ecx + 0x4); /* 0x30010A5E: mov edx, dword ptr [ecx + 4] */ 8779 MEM32(ebp + (-0x10)) = edx; /* 0x30010A61: mov dword ptr [ebp - 0x10], edx */ 8780 ecx = MEM32(ecx + 0x8); /* 0x30010A64: mov ecx, dword ptr [ecx + 8] */ 8781 MEM32(ebp + (-0xC)) = ecx; /* 0x30010A67: mov dword ptr [ebp - 0xc], ecx */ 8782 edx = MEM32(eax + 0x1C); /* 0x30010A6A: mov edx, dword ptr [eax + 0x1c] */ 8783 /* test edx, edx */ /* 0x30010A6D: test edx, edx */ 8784 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 8785 _cf = 0; 8786 _flag_k = FK_TEST; 8787 if (TEST_Z(_flag_a, _flag_b)) goto L_30010A86; /* 0x30010A6F: je 0x30010a86 */ 8788 L_30010A71: 8789 ecx = MEM32(eax + 0x20); /* 0x30010A71: mov ecx, dword ptr [eax + 0x20] */ 8790 eax = 0x2AAAAAABu; /* 0x30010A74: mov eax, 0x2aaaaaab */ 8791 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8793 ecx = ecx - edx; /* 0x30010A79: sub ecx, edx */ 8794 _flag_k = FK_CMP; 8795 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x30010A7B: imul ecx */ 8796 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 8797 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 8798 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x30010A7D: sar edx, 1 */ 8799 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8800 edx = (uint32_t)((int32_t)edx >> 1u); 8801 eax = edx; /* 0x30010A7F: mov eax, edx */ 8802 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x30010A81: shr eax, 0x1f */ 8803 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8804 eax = eax >> 31u; /* 0x30010A81: shr eax, 0x1f */ 8805 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8806 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8807 edx = edx + eax; /* 0x30010A84: add edx, eax */ 8808 _flag_k = FK_ADD; 8809 L_30010A86: 8810 eax = 0xAAAAAAABu; /* 0x30010A86: mov eax, 0xaaaaaaab */ 8811 ecx = ebp + (-0x14); /* 0x30010A8B: lea ecx, [ebp - 0x14] */ 8812 { uint64_t _r = (uint64_t)eax * (uint32_t)(edx); /* 0x30010A8E: mul edx */ 8813 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 8814 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 8815 eax = ebp + (-0x20); /* 0x30010A90: lea eax, [ebp - 0x20] */ 8816 PUSH32(esp, ecx); /* 0x30010A93: push ecx */ 8817 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x30010A94: shr edx, 1 */ 8818 if (1u) { _flag_a = recomp_flags_pack((edx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8819 edx = edx >> 1u; /* 0x30010A94: shr edx, 1 */ 8820 PUSH32(esp, eax); /* 0x30010A96: push eax */ 8821 PUSH32(esp, edx); /* 0x30010A97: push edx */ 8822 ecx = edi; /* 0x30010A98: mov ecx, edi */ 8823 MEM32(ebp + (-0x24)) = edx; /* 0x30010A9A: mov dword ptr [ebp - 0x24], edx */ 8824 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010A9D: call dword ptr [0x30019078] */ 8825 RECOMP_FLAGS_IN(); 8826 PUSH32(esp, eax); /* 0x30010AA3: push eax */ 8827 RECOMP_ICALL(0x30011490u); /* 0x30010AA4: call 0x30011490 */ /* not lifted */ 8828 RECOMP_FLAGS_IN(); 8829 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8830 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8831 esp = esp + 8; /* 0x30010AA9: add esp, 8 */ 8832 _flag_k = FK_ADD; 8833 PUSH32(esp, eax); /* 0x30010AAC: push eax */ 8834 RECOMP_ICALL(0x30011490u); /* 0x30010AAD: call 0x30011490 */ /* not lifted */ 8835 RECOMP_FLAGS_IN(); 8836 ecx = MEM32(esi); /* 0x30010AB2: mov ecx, dword ptr [esi] */ 8837 eax = MEM32(ebx + 0x24); /* 0x30010AB4: mov eax, dword ptr [ebx + 0x24] */ 8838 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8839 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8840 esp = esp + 8; /* 0x30010AB7: add esp, 8 */ 8841 _flag_k = FK_ADD; 8842 /* cmp eax, 0x100u */ /* 0x30010ABA: cmp eax, 0x100 */ 8843 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x100u); 8844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8845 _flag_k = FK_CMP; 8846 esi = MEM32(ecx + 0x1C); /* 0x30010ABF: mov esi, dword ptr [ecx + 0x1c] */ 8847 if (CMP_GE(_flag_a, _flag_b)) goto L_30010BC3; /* 0x30010AC2: jge 0x30010bc3 */ 8848 L_30010AC8: 8849 eax = MEM32(ebp + (-0x24)); /* 0x30010AC8: mov eax, dword ptr [ebp - 0x24] */ 8850 MEM32(ebp + 0x8) = 0; /* 0x30010ACB: mov dword ptr [ebp + 8], 0 */ 8851 /* test eax, eax */ /* 0x30010AD2: test eax, eax */ 8852 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8853 _cf = 0; 8854 _flag_k = FK_TEST; 8855 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010AD4: jle 0x30010dbe */ 8856 L_30010ADA: 8857 eax = esi; /* 0x30010ADA: mov eax, esi */ 8858 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8859 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8860 esi = esi + 0xCu; /* 0x30010ADC: add esi, 0xc */ 8861 _flag_k = FK_ADD; 8862 MEM32(ebp + (-0x34)) = 0; /* 0x30010ADF: mov dword ptr [ebp - 0x34], 0 */ 8863 edx = MEM32(eax); /* 0x30010AE6: mov edx, dword ptr [eax] */ 8864 ecx = MEM32(eax + 0x4); /* 0x30010AE8: mov ecx, dword ptr [eax + 4] */ 8865 MEM32(ebp + (-0x40)) = edx; /* 0x30010AEB: mov dword ptr [ebp - 0x40], edx */ 8866 edx = MEM32(eax + 0x8); /* 0x30010AEE: mov edx, dword ptr [eax + 8] */ 8867 MEM32(ebp + (-0x3C)) = ecx; /* 0x30010AF1: mov dword ptr [ebp - 0x3c], ecx */ 8868 eax = ebp + (-0x40); /* 0x30010AF4: lea eax, [ebp - 0x40] */ 8869 ecx = ebp + (-0x104); /* 0x30010AF7: lea ecx, [ebp - 0x104] */ 8870 PUSH32(esp, eax); /* 0x30010AFD: push eax */ 8871 PUSH32(esp, ecx); /* 0x30010AFE: push ecx */ 8872 ecx = ebx + 0xC; /* 0x30010AFF: lea ecx, [ebx + 0xc] */ 8873 MEM32(ebp + (-0x38)) = edx; /* 0x30010B02: mov dword ptr [ebp - 0x38], edx */ 8874 RECOMP_ICALL(0x30011330u); /* 0x30010B05: call 0x30011330 */ /* not lifted */ 8875 RECOMP_FLAGS_IN(); 8876 eax = MEM32(eax); /* 0x30010B0A: mov eax, dword ptr [eax] */ 8877 ecx = edi; /* 0x30010B0C: mov ecx, edi */ 8878 SET_LO8(edx, MEM8(eax + 0x18)); /* 0x30010B0E: mov dl, byte ptr [eax + 0x18] */ 8879 PUSH32(esp, edx); /* 0x30010B11: push edx */ 8880 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B12: call dword ptr [0x300190a4] */ 8881 RECOMP_FLAGS_IN(); 8882 eax = esi; /* 0x30010B18: mov eax, esi */ 8883 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8884 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8885 esi = esi + 0xCu; /* 0x30010B1A: add esi, 0xc */ 8886 _flag_k = FK_ADD; 8887 MEM32(ebp + (-0x64)) = 0; /* 0x30010B1D: mov dword ptr [ebp - 0x64], 0 */ 8888 ecx = MEM32(eax); /* 0x30010B24: mov ecx, dword ptr [eax] */ 8889 edx = MEM32(eax + 0x4); /* 0x30010B26: mov edx, dword ptr [eax + 4] */ 8890 eax = MEM32(eax + 0x8); /* 0x30010B29: mov eax, dword ptr [eax + 8] */ 8891 MEM32(ebp + (-0x70)) = ecx; /* 0x30010B2C: mov dword ptr [ebp - 0x70], ecx */ 8892 MEM32(ebp + (-0x6C)) = edx; /* 0x30010B2F: mov dword ptr [ebp - 0x6c], edx */ 8893 ecx = ebp + (-0x70); /* 0x30010B32: lea ecx, [ebp - 0x70] */ 8894 edx = ebp + (-0xD4); /* 0x30010B35: lea edx, [ebp - 0xd4] */ 8895 PUSH32(esp, ecx); /* 0x30010B3B: push ecx */ 8896 PUSH32(esp, edx); /* 0x30010B3C: push edx */ 8897 ecx = ebx + 0xC; /* 0x30010B3D: lea ecx, [ebx + 0xc] */ 8898 MEM32(ebp + (-0x68)) = eax; /* 0x30010B40: mov dword ptr [ebp - 0x68], eax */ 8899 RECOMP_ICALL(0x30011330u); /* 0x30010B43: call 0x30011330 */ /* not lifted */ 8900 RECOMP_FLAGS_IN(); 8901 eax = MEM32(eax); /* 0x30010B48: mov eax, dword ptr [eax] */ 8902 ecx = edi; /* 0x30010B4A: mov ecx, edi */ 8903 SET_LO8(eax, MEM8(eax + 0x18)); /* 0x30010B4C: mov al, byte ptr [eax + 0x18] */ 8904 PUSH32(esp, eax); /* 0x30010B4F: push eax */ 8905 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B50: call dword ptr [0x300190a4] */ 8906 RECOMP_FLAGS_IN(); 8907 eax = esi; /* 0x30010B56: mov eax, esi */ 8908 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8910 esi = esi + 0xCu; /* 0x30010B58: add esi, 0xc */ 8911 _flag_k = FK_ADD; 8912 MEM32(ebp + (-0x84)) = 0; /* 0x30010B5B: mov dword ptr [ebp - 0x84], 0 */ 8913 ecx = MEM32(eax); /* 0x30010B65: mov ecx, dword ptr [eax] */ 8914 edx = MEM32(eax + 0x4); /* 0x30010B67: mov edx, dword ptr [eax + 4] */ 8915 eax = MEM32(eax + 0x8); /* 0x30010B6A: mov eax, dword ptr [eax + 8] */ 8916 MEM32(ebp + (-0x90)) = ecx; /* 0x30010B6D: mov dword ptr [ebp - 0x90], ecx */ 8917 MEM32(ebp + (-0x8C)) = edx; /* 0x30010B73: mov dword ptr [ebp - 0x8c], edx */ 8918 ecx = ebp + (-0x90); /* 0x30010B79: lea ecx, [ebp - 0x90] */ 8919 edx = ebp + (-0xF4); /* 0x30010B7F: lea edx, [ebp - 0xf4] */ 8920 PUSH32(esp, ecx); /* 0x30010B85: push ecx */ 8921 PUSH32(esp, edx); /* 0x30010B86: push edx */ 8922 ecx = ebx + 0xC; /* 0x30010B87: lea ecx, [ebx + 0xc] */ 8923 MEM32(ebp + (-0x88)) = eax; /* 0x30010B8A: mov dword ptr [ebp - 0x88], eax */ 8924 RECOMP_ICALL(0x30011330u); /* 0x30010B90: call 0x30011330 */ /* not lifted */ 8925 RECOMP_FLAGS_IN(); 8926 eax = MEM32(eax); /* 0x30010B95: mov eax, dword ptr [eax] */ 8927 ecx = edi; /* 0x30010B97: mov ecx, edi */ 8928 SET_LO8(eax, MEM8(eax + 0x18)); /* 0x30010B99: mov al, byte ptr [eax + 0x18] */ 8929 PUSH32(esp, eax); /* 0x30010B9C: push eax */ 8930 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010B9D: call dword ptr [0x300190a4] */ 8931 RECOMP_FLAGS_IN(); 8932 eax = MEM32(ebx + 0x20); /* 0x30010BA3: mov eax, dword ptr [ebx + 0x20] */ 8933 ecx = MEM32(ebp + (-0x24)); /* 0x30010BA6: mov ecx, dword ptr [ebp - 0x24] */ 8934 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 8935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8936 eax = eax + 3; /* 0x30010BA9: add eax, 3 */ 8937 _flag_k = FK_ADD; 8938 MEM32(ebx + 0x20) = eax; /* 0x30010BAC: mov dword ptr [ebx + 0x20], eax */ 8939 eax = MEM32(ebp + 0x8); /* 0x30010BAF: mov eax, dword ptr [ebp + 8] */ 8940 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8941 eax = eax + 1; /* 0x30010BB2: inc eax */ 8942 _flag_k = FK_INC; 8943 /* cmp eax, ecx */ /* 0x30010BB3: cmp eax, ecx */ 8944 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8946 _flag_k = FK_CMP; 8947 MEM32(ebp + 0x8) = eax; /* 0x30010BB5: mov dword ptr [ebp + 8], eax */ 8948 RECOMP_BACKEDGE(); 8949 if (CMP_L(_flag_a, _flag_b)) goto L_30010ADA; /* 0x30010BB8: jl 0x30010ada */ 8950 L_30010BBE: 8951 goto L_30010DBE; /* 0x30010BBE: jmp 0x30010dbe */ 8952 L_30010BC3: 8953 /* cmp eax, 0x00010000u */ /* 0x30010BC3: cmp eax, 0x10000 */ 8954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00010000u); 8955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8956 _flag_k = FK_CMP; 8957 if (CMP_GE(_flag_a, _flag_b)) goto L_30010CBD; /* 0x30010BC8: jge 0x30010cbd */ 8958 L_30010BCE: 8959 eax = MEM32(ebp + (-0x24)); /* 0x30010BCE: mov eax, dword ptr [ebp - 0x24] */ 8960 MEM32(ebp + 0x8) = 0; /* 0x30010BD1: mov dword ptr [ebp + 8], 0 */ 8961 /* test eax, eax */ /* 0x30010BD8: test eax, eax */ 8962 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8963 _cf = 0; 8964 _flag_k = FK_TEST; 8965 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010BDA: jle 0x30010dbe */ 8966 L_30010BE0: 8967 eax = esi; /* 0x30010BE0: mov eax, esi */ 8968 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8970 esi = esi + 0xCu; /* 0x30010BE2: add esi, 0xc */ 8971 _flag_k = FK_ADD; 8972 MEM32(ebp + (-0x44)) = 0; /* 0x30010BE5: mov dword ptr [ebp - 0x44], 0 */ 8973 ecx = MEM32(eax); /* 0x30010BEC: mov ecx, dword ptr [eax] */ 8974 edx = MEM32(eax + 0x4); /* 0x30010BEE: mov edx, dword ptr [eax + 4] */ 8975 eax = MEM32(eax + 0x8); /* 0x30010BF1: mov eax, dword ptr [eax + 8] */ 8976 MEM32(ebp + (-0x50)) = ecx; /* 0x30010BF4: mov dword ptr [ebp - 0x50], ecx */ 8977 MEM32(ebp + (-0x4C)) = edx; /* 0x30010BF7: mov dword ptr [ebp - 0x4c], edx */ 8978 ecx = ebp + (-0x50); /* 0x30010BFA: lea ecx, [ebp - 0x50] */ 8979 edx = ebp + (-0xE4); /* 0x30010BFD: lea edx, [ebp - 0xe4] */ 8980 PUSH32(esp, ecx); /* 0x30010C03: push ecx */ 8981 PUSH32(esp, edx); /* 0x30010C04: push edx */ 8982 ecx = ebx + 0xC; /* 0x30010C05: lea ecx, [ebx + 0xc] */ 8983 MEM32(ebp + (-0x48)) = eax; /* 0x30010C08: mov dword ptr [ebp - 0x48], eax */ 8984 RECOMP_ICALL(0x30011330u); /* 0x30010C0B: call 0x30011330 */ /* not lifted */ 8985 RECOMP_FLAGS_IN(); 8986 eax = MEM32(eax); /* 0x30010C10: mov eax, dword ptr [eax] */ 8987 ecx = edi; /* 0x30010C12: mov ecx, edi */ 8988 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C14: mov ax, word ptr [eax + 0x18] */ 8989 PUSH32(esp, eax); /* 0x30010C18: push eax */ 8990 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C19: call dword ptr [0x300190a8] */ 8991 RECOMP_FLAGS_IN(); 8992 eax = esi; /* 0x30010C1F: mov eax, esi */ 8993 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 8994 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8995 esi = esi + 0xCu; /* 0x30010C21: add esi, 0xc */ 8996 _flag_k = FK_ADD; 8997 MEM32(ebp + (-0x54)) = 0; /* 0x30010C24: mov dword ptr [ebp - 0x54], 0 */ 8998 ecx = MEM32(eax); /* 0x30010C2B: mov ecx, dword ptr [eax] */ 8999 edx = MEM32(eax + 0x4); /* 0x30010C2D: mov edx, dword ptr [eax + 4] */ 9000 eax = MEM32(eax + 0x8); /* 0x30010C30: mov eax, dword ptr [eax + 8] */ 9001 MEM32(ebp + (-0x60)) = ecx; /* 0x30010C33: mov dword ptr [ebp - 0x60], ecx */ 9002 MEM32(ebp + (-0x5C)) = edx; /* 0x30010C36: mov dword ptr [ebp - 0x5c], edx */ 9003 ecx = ebp + (-0x60); /* 0x30010C39: lea ecx, [ebp - 0x60] */ 9004 edx = ebp + (-0xC4); /* 0x30010C3C: lea edx, [ebp - 0xc4] */ 9005 PUSH32(esp, ecx); /* 0x30010C42: push ecx */ 9006 PUSH32(esp, edx); /* 0x30010C43: push edx */ 9007 ecx = ebx + 0xC; /* 0x30010C44: lea ecx, [ebx + 0xc] */ 9008 MEM32(ebp + (-0x58)) = eax; /* 0x30010C47: mov dword ptr [ebp - 0x58], eax */ 9009 RECOMP_ICALL(0x30011330u); /* 0x30010C4A: call 0x30011330 */ /* not lifted */ 9010 RECOMP_FLAGS_IN(); 9011 eax = MEM32(eax); /* 0x30010C4F: mov eax, dword ptr [eax] */ 9012 ecx = edi; /* 0x30010C51: mov ecx, edi */ 9013 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C53: mov ax, word ptr [eax + 0x18] */ 9014 PUSH32(esp, eax); /* 0x30010C57: push eax */ 9015 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C58: call dword ptr [0x300190a8] */ 9016 RECOMP_FLAGS_IN(); 9017 eax = esi; /* 0x30010C5E: mov eax, esi */ 9018 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 9019 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9020 esi = esi + 0xCu; /* 0x30010C60: add esi, 0xc */ 9021 _flag_k = FK_ADD; 9022 MEM32(ebp + (-0x74)) = 0; /* 0x30010C63: mov dword ptr [ebp - 0x74], 0 */ 9023 ecx = MEM32(eax); /* 0x30010C6A: mov ecx, dword ptr [eax] */ 9024 edx = MEM32(eax + 0x4); /* 0x30010C6C: mov edx, dword ptr [eax + 4] */ 9025 eax = MEM32(eax + 0x8); /* 0x30010C6F: mov eax, dword ptr [eax + 8] */ 9026 MEM32(ebp + (-0x80)) = ecx; /* 0x30010C72: mov dword ptr [ebp - 0x80], ecx */ 9027 MEM32(ebp + (-0x7C)) = edx; /* 0x30010C75: mov dword ptr [ebp - 0x7c], edx */ 9028 ecx = ebp + (-0x80); /* 0x30010C78: lea ecx, [ebp - 0x80] */ 9029 edx = ebp + (-0xCC); /* 0x30010C7B: lea edx, [ebp - 0xcc] */ 9030 PUSH32(esp, ecx); /* 0x30010C81: push ecx */ 9031 PUSH32(esp, edx); /* 0x30010C82: push edx */ 9032 ecx = ebx + 0xC; /* 0x30010C83: lea ecx, [ebx + 0xc] */ 9033 MEM32(ebp + (-0x78)) = eax; /* 0x30010C86: mov dword ptr [ebp - 0x78], eax */ 9034 RECOMP_ICALL(0x30011330u); /* 0x30010C89: call 0x30011330 */ /* not lifted */ 9035 RECOMP_FLAGS_IN(); 9036 eax = MEM32(eax); /* 0x30010C8E: mov eax, dword ptr [eax] */ 9037 ecx = edi; /* 0x30010C90: mov ecx, edi */ 9038 SET_LO16(eax, MEM16(eax + 0x18)); /* 0x30010C92: mov ax, word ptr [eax + 0x18] */ 9039 PUSH32(esp, eax); /* 0x30010C96: push eax */ 9040 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010C97: call dword ptr [0x300190a8] */ 9041 RECOMP_FLAGS_IN(); 9042 eax = MEM32(ebx + 0x20); /* 0x30010C9D: mov eax, dword ptr [ebx + 0x20] */ 9043 ecx = MEM32(ebp + (-0x24)); /* 0x30010CA0: mov ecx, dword ptr [ebp - 0x24] */ 9044 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 9045 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9046 eax = eax + 3; /* 0x30010CA3: add eax, 3 */ 9047 _flag_k = FK_ADD; 9048 MEM32(ebx + 0x20) = eax; /* 0x30010CA6: mov dword ptr [ebx + 0x20], eax */ 9049 eax = MEM32(ebp + 0x8); /* 0x30010CA9: mov eax, dword ptr [ebp + 8] */ 9050 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9051 eax = eax + 1; /* 0x30010CAC: inc eax */ 9052 _flag_k = FK_INC; 9053 /* cmp eax, ecx */ /* 0x30010CAD: cmp eax, ecx */ 9054 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9056 _flag_k = FK_CMP; 9057 MEM32(ebp + 0x8) = eax; /* 0x30010CAF: mov dword ptr [ebp + 8], eax */ 9058 RECOMP_BACKEDGE(); 9059 if (CMP_L(_flag_a, _flag_b)) goto L_30010BE0; /* 0x30010CB2: jl 0x30010be0 */ 9060 L_30010CB8: 9061 goto L_30010DBE; /* 0x30010CB8: jmp 0x30010dbe */ 9062 L_30010CBD: 9063 eax = MEM32(ebp + (-0x24)); /* 0x30010CBD: mov eax, dword ptr [ebp - 0x24] */ 9064 MEM32(ebp + 0x8) = 0; /* 0x30010CC0: mov dword ptr [ebp + 8], 0 */ 9065 /* test eax, eax */ /* 0x30010CC7: test eax, eax */ 9066 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9067 _cf = 0; 9068 _flag_k = FK_TEST; 9069 if (TEST_LE(_flag_a, _flag_b)) goto L_30010DBE; /* 0x30010CC9: jle 0x30010dbe */ 9070 L_30010CCF: 9071 eax = esi; /* 0x30010CCF: mov eax, esi */ 9072 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 9073 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9074 esi = esi + 0xCu; /* 0x30010CD1: add esi, 0xc */ 9075 _flag_k = FK_ADD; 9076 MEM32(ebp + (-0xA4)) = 0; /* 0x30010CD4: mov dword ptr [ebp - 0xa4], 0 */ 9077 ecx = MEM32(eax); /* 0x30010CDE: mov ecx, dword ptr [eax] */ 9078 edx = MEM32(eax + 0x4); /* 0x30010CE0: mov edx, dword ptr [eax + 4] */ 9079 eax = MEM32(eax + 0x8); /* 0x30010CE3: mov eax, dword ptr [eax + 8] */ 9080 MEM32(ebp + (-0xB0)) = ecx; /* 0x30010CE6: mov dword ptr [ebp - 0xb0], ecx */ 9081 MEM32(ebp + (-0xAC)) = edx; /* 0x30010CEC: mov dword ptr [ebp - 0xac], edx */ 9082 ecx = ebp + (-0xB0); /* 0x30010CF2: lea ecx, [ebp - 0xb0] */ 9083 edx = ebp + (-0xBC); /* 0x30010CF8: lea edx, [ebp - 0xbc] */ 9084 PUSH32(esp, ecx); /* 0x30010CFE: push ecx */ 9085 PUSH32(esp, edx); /* 0x30010CFF: push edx */ 9086 ecx = ebx + 0xC; /* 0x30010D00: lea ecx, [ebx + 0xc] */ 9087 MEM32(ebp + (-0xA8)) = eax; /* 0x30010D03: mov dword ptr [ebp - 0xa8], eax */ 9088 RECOMP_ICALL(0x30011330u); /* 0x30010D09: call 0x30011330 */ /* not lifted */ 9089 RECOMP_FLAGS_IN(); 9090 eax = MEM32(eax); /* 0x30010D0E: mov eax, dword ptr [eax] */ 9091 ecx = edi; /* 0x30010D10: mov ecx, edi */ 9092 eax = MEM32(eax + 0x18); /* 0x30010D12: mov eax, dword ptr [eax + 0x18] */ 9093 PUSH32(esp, eax); /* 0x30010D15: push eax */ 9094 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D16: call dword ptr [0x30019078] */ 9095 RECOMP_FLAGS_IN(); 9096 eax = esi; /* 0x30010D1C: mov eax, esi */ 9097 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 9098 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9099 esi = esi + 0xCu; /* 0x30010D1E: add esi, 0xc */ 9100 _flag_k = FK_ADD; 9101 MEM32(ebp + (-0x94)) = 0; /* 0x30010D21: mov dword ptr [ebp - 0x94], 0 */ 9102 ecx = MEM32(eax); /* 0x30010D2B: mov ecx, dword ptr [eax] */ 9103 edx = MEM32(eax + 0x4); /* 0x30010D2D: mov edx, dword ptr [eax + 4] */ 9104 eax = MEM32(eax + 0x8); /* 0x30010D30: mov eax, dword ptr [eax + 8] */ 9105 MEM32(ebp + (-0xA0)) = ecx; /* 0x30010D33: mov dword ptr [ebp - 0xa0], ecx */ 9106 MEM32(ebp + (-0x9C)) = edx; /* 0x30010D39: mov dword ptr [ebp - 0x9c], edx */ 9107 ecx = ebp + (-0xA0); /* 0x30010D3F: lea ecx, [ebp - 0xa0] */ 9108 edx = ebp + (-0xEC); /* 0x30010D45: lea edx, [ebp - 0xec] */ 9109 PUSH32(esp, ecx); /* 0x30010D4B: push ecx */ 9110 PUSH32(esp, edx); /* 0x30010D4C: push edx */ 9111 ecx = ebx + 0xC; /* 0x30010D4D: lea ecx, [ebx + 0xc] */ 9112 MEM32(ebp + (-0x98)) = eax; /* 0x30010D50: mov dword ptr [ebp - 0x98], eax */ 9113 RECOMP_ICALL(0x30011330u); /* 0x30010D56: call 0x30011330 */ /* not lifted */ 9114 RECOMP_FLAGS_IN(); 9115 eax = MEM32(eax); /* 0x30010D5B: mov eax, dword ptr [eax] */ 9116 ecx = edi; /* 0x30010D5D: mov ecx, edi */ 9117 eax = MEM32(eax + 0x18); /* 0x30010D5F: mov eax, dword ptr [eax + 0x18] */ 9118 PUSH32(esp, eax); /* 0x30010D62: push eax */ 9119 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D63: call dword ptr [0x30019078] */ 9120 RECOMP_FLAGS_IN(); 9121 ecx = ebp + (-0x28); /* 0x30010D69: lea ecx, [ebp - 0x28] */ 9122 eax = esi; /* 0x30010D6C: mov eax, esi */ 9123 PUSH32(esp, ecx); /* 0x30010D6E: push ecx */ 9124 PUSH32(esp, eax); /* 0x30010D6F: push eax */ 9125 ecx = ebp + (-0x114); /* 0x30010D70: lea ecx, [ebp - 0x114] */ 9126 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 9127 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9128 esi = esi + 0xCu; /* 0x30010D76: add esi, 0xc */ 9129 _flag_k = FK_ADD; 9130 MEM32(ebp + (-0x28)) = 0; /* 0x30010D79: mov dword ptr [ebp - 0x28], 0 */ 9131 RECOMP_ICALL(0x30011560u); /* 0x30010D80: call 0x30011560 */ /* not lifted */ 9132 RECOMP_FLAGS_IN(); 9133 edx = ebp + (-0xFC); /* 0x30010D85: lea edx, [ebp - 0xfc] */ 9134 PUSH32(esp, eax); /* 0x30010D8B: push eax */ 9135 PUSH32(esp, edx); /* 0x30010D8C: push edx */ 9136 ecx = ebx + 0xC; /* 0x30010D8D: lea ecx, [ebx + 0xc] */ 9137 RECOMP_ICALL(0x30011330u); /* 0x30010D90: call 0x30011330 */ /* not lifted */ 9138 RECOMP_FLAGS_IN(); 9139 eax = MEM32(eax); /* 0x30010D95: mov eax, dword ptr [eax] */ 9140 ecx = edi; /* 0x30010D97: mov ecx, edi */ 9141 eax = MEM32(eax + 0x18); /* 0x30010D99: mov eax, dword ptr [eax + 0x18] */ 9142 PUSH32(esp, eax); /* 0x30010D9C: push eax */ 9143 RECOMP_ICALL(MEM32(0x30019078)); /* 0x30010D9D: call dword ptr [0x30019078] */ 9144 RECOMP_FLAGS_IN(); 9145 eax = MEM32(ebx + 0x20); /* 0x30010DA3: mov eax, dword ptr [ebx + 0x20] */ 9146 ecx = MEM32(ebp + (-0x24)); /* 0x30010DA6: mov ecx, dword ptr [ebp - 0x24] */ 9147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 9148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9149 eax = eax + 3; /* 0x30010DA9: add eax, 3 */ 9150 _flag_k = FK_ADD; 9151 MEM32(ebx + 0x20) = eax; /* 0x30010DAC: mov dword ptr [ebx + 0x20], eax */ 9152 eax = MEM32(ebp + 0x8); /* 0x30010DAF: mov eax, dword ptr [ebp + 8] */ 9153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9154 eax = eax + 1; /* 0x30010DB2: inc eax */ 9155 _flag_k = FK_INC; 9156 /* cmp eax, ecx */ /* 0x30010DB3: cmp eax, ecx */ 9157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9159 _flag_k = FK_CMP; 9160 MEM32(ebp + 0x8) = eax; /* 0x30010DB5: mov dword ptr [ebp + 8], eax */ 9161 RECOMP_BACKEDGE(); 9162 if (CMP_L(_flag_a, _flag_b)) goto L_30010CCF; /* 0x30010DB8: jl 0x30010ccf */ 9163 L_30010DBE: 9164 eax = MEM32(ebp + (-0x4)); /* 0x30010DBE: mov eax, dword ptr [ebp - 4] */ 9165 esi = MEM32(ebp + (-0x8)); /* 0x30010DC1: mov esi, dword ptr [ebp - 8] */ 9166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9167 eax = eax + 1; /* 0x30010DC4: inc eax */ 9168 _flag_k = FK_INC; 9169 MEM32(ebp + (-0x4)) = eax; /* 0x30010DC5: mov dword ptr [ebp - 4], eax */ 9170 L_30010DC8: 9171 ecx = MEM32(ebp + 0xC); /* 0x30010DC8: mov ecx, dword ptr [ebp + 0xc] */ 9172 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 9173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9174 esi = esi + 4; /* 0x30010DCB: add esi, 4 */ 9175 _flag_k = FK_ADD; 9176 MEM32(ebp + (-0x8)) = esi; /* 0x30010DCE: mov dword ptr [ebp - 8], esi */ 9177 /* cmp esi, MEM32(ecx + 0x8) */ /* 0x30010DD1: cmp esi, dword ptr [ecx + 8] */ 9178 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 9179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9180 _flag_k = FK_CMP; 9181 RECOMP_BACKEDGE(); 9182 if (CMP_NE(_flag_a, _flag_b)) goto L_300109D3; /* 0x30010DD4: jne 0x300109d3 */ 9183 L_30010DDA: 9184 eax = MEM32(ebp + (-0x4)); /* 0x30010DDA: mov eax, dword ptr [ebp - 4] */ 9185 edi = POP32_VAL(esp); /* 0x30010DDD: pop edi */ 9186 esi = POP32_VAL(esp); /* 0x30010DDE: pop esi */ 9187 ebx = POP32_VAL(esp); /* 0x30010DDF: pop ebx */ 9188 esp = ebp; /* 0x30010DE0: mov esp, ebp */ 9189 ebp = POP32_VAL(esp); /* 0x30010DE2: pop ebp */ 9190 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x30010DE3: ret 0xc */ 9191 RECOMP_REGS_OUT(); 9192 } 9193 9194 void sub_30010E20(void) { 9195 int _fpu_cmp = 0; 9196 uint32_t _cf = 0; 9197 int _df = 1; 9198 uint32_t _flag_k = FK_NONE; 9199 uint32_t _flag_a = 0, _flag_b = 0; 9200 uint32_t _itail_tgt = 0; 9201 RECOMP_REGS_LOCALS 9202 RECOMP_ENTER(0x30010E20u); 9203 9204 L_30010E20: 9205 PUSH32(esp, ebp); /* 0x30010E20: push ebp */ 9206 ebp = esp; /* 0x30010E21: mov ebp, esp */ 9207 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 9208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9209 esp = esp - 0x38u; /* 0x30010E23: sub esp, 0x38 */ 9210 _flag_k = FK_CMP; 9211 PUSH32(esp, ebx); /* 0x30010E26: push ebx */ 9212 ebx = MEM32(0x30019078); /* 0x30010E27: mov ebx, dword ptr [0x30019078] */ 9213 PUSH32(esp, esi); /* 0x30010E2D: push esi */ 9214 esi = MEM32(ebp + 0xC); /* 0x30010E2E: mov esi, dword ptr [ebp + 0xc] */ 9215 MEM32(ebp + (-0x4)) = ecx; /* 0x30010E31: mov dword ptr [ebp - 4], ecx */ 9216 PUSH32(esp, edi); /* 0x30010E34: push edi */ 9217 eax = MEM32(esi + 0x18); /* 0x30010E35: mov eax, dword ptr [esi + 0x18] */ 9218 ecx = MEM32(esi + 0x14); /* 0x30010E38: mov ecx, dword ptr [esi + 0x14] */ 9219 edi = MEM32(ebp + 0x8); /* 0x30010E3B: mov edi, dword ptr [ebp + 8] */ 9220 MEM32(ebp + (-0x38)) = eax; /* 0x30010E3E: mov dword ptr [ebp - 0x38], eax */ 9221 eax = MEM32(esi + 0x1C); /* 0x30010E41: mov eax, dword ptr [esi + 0x1c] */ 9222 /* test ecx, ecx */ /* 0x30010E44: test ecx, ecx */ 9223 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9224 _cf = 0; 9225 _flag_k = FK_TEST; 9226 if (TEST_Z(_flag_a, _flag_b)) goto L_30010E8B; /* 0x30010E46: je 0x30010e8b */ 9227 L_30010E48: 9228 ecx = MEM32(ebp + (-0x38)); /* 0x30010E48: mov ecx, dword ptr [ebp - 0x38] */ 9229 PUSH32(esp, 0); /* 0x30010E4B: push 0 */ 9230 PUSH32(esp, eax); /* 0x30010E4D: push eax */ 9231 PUSH32(esp, ecx); /* 0x30010E4E: push ecx */ 9232 ecx = edi; /* 0x30010E4F: mov ecx, edi */ 9233 RECOMP_ICALL(MEM32(0x30019090)); /* 0x30010E51: call dword ptr [0x30019090] */ 9234 RECOMP_FLAGS_IN(); 9235 ecx = eax; /* 0x30010E57: mov ecx, eax */ 9236 RECOMP_ICALL(ebx); /* 0x30010E59: call ebx */ 9237 RECOMP_FLAGS_IN(); 9238 ecx = eax; /* 0x30010E5B: mov ecx, eax */ 9239 RECOMP_ICALL(ebx); /* 0x30010E5D: call ebx */ 9240 RECOMP_FLAGS_IN(); 9241 edx = MEM32(ebp + 0x14); /* 0x30010E5F: mov edx, dword ptr [ebp + 0x14] */ 9242 ecx = MEM32(ebp + 0x10); /* 0x30010E62: mov ecx, dword ptr [ebp + 0x10] */ 9243 eax = MEM32(esi + 0x10); /* 0x30010E65: mov eax, dword ptr [esi + 0x10] */ 9244 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9245 edx = edx + 1; /* 0x30010E68: inc edx */ 9246 _flag_k = FK_INC; 9247 PUSH32(esp, edx); /* 0x30010E69: push edx */ 9248 PUSH32(esp, ecx); /* 0x30010E6A: push ecx */ 9249 ecx = MEM32(ebp + (-0x4)); /* 0x30010E6B: mov ecx, dword ptr [ebp - 4] */ 9250 PUSH32(esp, eax); /* 0x30010E6E: push eax */ 9251 PUSH32(esp, edi); /* 0x30010E6F: push edi */ 9252 RECOMP_ICALL(0x30010E20u); /* 0x30010E70: call 0x30010e20 */ /* not lifted */ 9253 RECOMP_FLAGS_IN(); 9254 esi = MEM32(esi + 0x14); /* 0x30010E75: mov esi, dword ptr [esi + 0x14] */ 9255 MEM32(ebp + 0x14) = eax; /* 0x30010E78: mov dword ptr [ebp + 0x14], eax */ 9256 ecx = MEM32(esi + 0x14); /* 0x30010E7B: mov ecx, dword ptr [esi + 0x14] */ 9257 edx = MEM32(esi + 0x18); /* 0x30010E7E: mov edx, dword ptr [esi + 0x18] */ 9258 eax = MEM32(esi + 0x1C); /* 0x30010E81: mov eax, dword ptr [esi + 0x1c] */ 9259 MEM32(ebp + (-0x38)) = edx; /* 0x30010E84: mov dword ptr [ebp - 0x38], edx */ 9260 /* test ecx, ecx */ /* 0x30010E87: test ecx, ecx */ 9261 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9262 _cf = 0; 9263 _flag_k = FK_TEST; 9264 RECOMP_BACKEDGE(); 9265 if (TEST_NZ(_flag_a, _flag_b)) goto L_30010E48; /* 0x30010E89: jne 0x30010e48 */ 9266 L_30010E8B: 9267 edx = MEM32(esi + 0x4); /* 0x30010E8B: mov edx, dword ptr [esi + 4] */ 9268 /* test edx, edx */ /* 0x30010E8E: test edx, edx */ 9269 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9270 _cf = 0; 9271 _flag_k = FK_TEST; 9272 if (TEST_NZ(_flag_a, _flag_b)) goto L_30010E97; /* 0x30010E90: jne 0x30010e97 */ 9273 L_30010E92: 9274 MEM32(ebp + (-0x30)) = edx; /* 0x30010E92: mov dword ptr [ebp - 0x30], edx */ 9275 goto L_30010EA2; /* 0x30010E95: jmp 0x30010ea2 */ 9276 L_30010E97: 9277 ecx = MEM32(esi + 0x8); /* 0x30010E97: mov ecx, dword ptr [esi + 8] */ 9278 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9280 ecx = ecx - edx; /* 0x30010E9A: sub ecx, edx */ 9281 _flag_k = FK_CMP; 9282 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x30010E9C: sar ecx, 2 */ 9283 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9284 ecx = (uint32_t)((int32_t)ecx >> 2u); 9285 MEM32(ebp + (-0x30)) = ecx; /* 0x30010E9F: mov dword ptr [ebp - 0x30], ecx */ 9286 L_30010EA2: 9287 ecx = MEM32(ebp + (-0x30)); /* 0x30010EA2: mov ecx, dword ptr [ebp - 0x30] */ 9288 edx = MEM32(ebp + (-0x38)); /* 0x30010EA5: mov edx, dword ptr [ebp - 0x38] */ 9289 PUSH32(esp, ecx); /* 0x30010EA8: push ecx */ 9290 PUSH32(esp, eax); /* 0x30010EA9: push eax */ 9291 PUSH32(esp, edx); /* 0x30010EAA: push edx */ 9292 ecx = edi; /* 0x30010EAB: mov ecx, edi */ 9293 RECOMP_ICALL(MEM32(0x30019090)); /* 0x30010EAD: call dword ptr [0x30019090] */ 9294 RECOMP_FLAGS_IN(); 9295 ecx = eax; /* 0x30010EB3: mov ecx, eax */ 9296 RECOMP_ICALL(ebx); /* 0x30010EB5: call ebx */ 9297 RECOMP_FLAGS_IN(); 9298 ecx = eax; /* 0x30010EB7: mov ecx, eax */ 9299 RECOMP_ICALL(ebx); /* 0x30010EB9: call ebx */ 9300 RECOMP_FLAGS_IN(); 9301 eax = MEM32(ebp + (-0x30)); /* 0x30010EBB: mov eax, dword ptr [ebp - 0x30] */ 9302 MEM32(ebp + 0xC) = 0; /* 0x30010EBE: mov dword ptr [ebp + 0xc], 0 */ 9303 /* test eax, eax */ /* 0x30010EC5: test eax, eax */ 9304 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9305 _cf = 0; 9306 _flag_k = FK_TEST; 9307 if (TEST_LE(_flag_a, _flag_b)) goto L_30010F65; /* 0x30010EC7: jle 0x30010f65 */ 9308 L_30010ECD: 9309 eax = MEM32(esi + 0x4); /* 0x30010ECD: mov eax, dword ptr [esi + 4] */ 9310 ecx = MEM32(ebp + 0xC); /* 0x30010ED0: mov ecx, dword ptr [ebp + 0xc] */ 9311 MEM32(ebp + (-0x10)) = 0; /* 0x30010ED3: mov dword ptr [ebp - 0x10], 0 */ 9312 edx = MEM32(eax + ecx * 4); /* 0x30010EDA: mov edx, dword ptr [eax + ecx*4] */ 9313 eax = ebp + (-0x14); /* 0x30010EDD: lea eax, [ebp - 0x14] */ 9314 ecx = ebp + (-0x1C); /* 0x30010EE0: lea ecx, [ebp - 0x1c] */ 9315 PUSH32(esp, eax); /* 0x30010EE3: push eax */ 9316 PUSH32(esp, ecx); /* 0x30010EE4: push ecx */ 9317 ecx = MEM32(ebp + 0x10); /* 0x30010EE5: mov ecx, dword ptr [ebp + 0x10] */ 9318 MEM32(ebp + (-0x14)) = edx; /* 0x30010EE8: mov dword ptr [ebp - 0x14], edx */ 9319 RECOMP_ICALL(0x30012420u); /* 0x30010EEB: call 0x30012420 */ /* not lifted */ 9320 RECOMP_FLAGS_IN(); 9321 edx = MEM32(eax); /* 0x30010EF0: mov edx, dword ptr [eax] */ 9322 ecx = ebp + (-0x8); /* 0x30010EF2: lea ecx, [ebp - 8] */ 9323 MEM32(ebp + (-0xC)) = edx; /* 0x30010EF5: mov dword ptr [ebp - 0xc], edx */ 9324 edx = ebp + (-0xC); /* 0x30010EF8: lea edx, [ebp - 0xc] */ 9325 eax = MEM32(eax + 0x4); /* 0x30010EFB: mov eax, dword ptr [eax + 4] */ 9326 PUSH32(esp, ecx); /* 0x30010EFE: push ecx */ 9327 PUSH32(esp, edx); /* 0x30010EFF: push edx */ 9328 ecx = ebp + (-0x24); /* 0x30010F00: lea ecx, [ebp - 0x24] */ 9329 MEM32(ebp + (-0x8)) = eax; /* 0x30010F03: mov dword ptr [ebp - 8], eax */ 9330 RECOMP_ICALL(0x30012B90u); /* 0x30010F06: call 0x30012b90 */ /* not lifted */ 9331 RECOMP_FLAGS_IN(); 9332 ecx = eax; /* 0x30010F0B: mov ecx, eax */ 9333 eax = MEM32(ecx); /* 0x30010F0D: mov eax, dword ptr [ecx] */ 9334 edx = MEM32(ecx + 0x4); /* 0x30010F0F: mov edx, dword ptr [ecx + 4] */ 9335 ecx = MEM32(eax + 0x10); /* 0x30010F12: mov ecx, dword ptr [eax + 0x10] */ 9336 eax = MEM32(ebp + (-0x4)); /* 0x30010F15: mov eax, dword ptr [ebp - 4] */ 9337 MEM32(ebp + (-0x28)) = edx; /* 0x30010F18: mov dword ptr [ebp - 0x28], edx */ 9338 eax = MEM32(eax + 0x4); /* 0x30010F1B: mov eax, dword ptr [eax + 4] */ 9339 /* cmp eax, 0x100u */ /* 0x30010F1E: cmp eax, 0x100 */ 9340 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x100u); 9341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9342 _flag_k = FK_CMP; 9343 if (CMP_GE(_flag_a, _flag_b)) goto L_30010F30; /* 0x30010F23: jge 0x30010f30 */ 9344 L_30010F25: 9345 PUSH32(esp, ecx); /* 0x30010F25: push ecx */ 9346 ecx = edi; /* 0x30010F26: mov ecx, edi */ 9347 RECOMP_ICALL(MEM32(0x300190A4)); /* 0x30010F28: call dword ptr [0x300190a4] */ 9348 RECOMP_FLAGS_IN(); 9349 goto L_30010F44; /* 0x30010F2E: jmp 0x30010f44 */ 9350 L_30010F30: 9351 /* cmp eax, 0x00010000u */ /* 0x30010F30: cmp eax, 0x10000 */ 9352 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00010000u); 9353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9354 _flag_k = FK_CMP; 9355 PUSH32(esp, ecx); /* 0x30010F35: push ecx */ 9356 ecx = edi; /* 0x30010F36: mov ecx, edi */ 9357 if (CMP_GE(_flag_a, _flag_b)) goto L_30010F42; /* 0x30010F38: jge 0x30010f42 */ 9358 L_30010F3A: 9359 RECOMP_ICALL(MEM32(0x300190A8)); /* 0x30010F3A: call dword ptr [0x300190a8] */ 9360 RECOMP_FLAGS_IN(); 9361 goto L_30010F44; /* 0x30010F40: jmp 0x30010f44 */ 9362 L_30010F42: 9363 RECOMP_ICALL(ebx); /* 0x30010F42: call ebx */ 9364 RECOMP_FLAGS_IN(); 9365 L_30010F44: 9366 eax = MEM32(ebp + 0xC); /* 0x30010F44: mov eax, dword ptr [ebp + 0xc] */ 9367 ecx = MEM32(ebp + (-0x30)); /* 0x30010F47: mov ecx, dword ptr [ebp - 0x30] */ 9368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9369 eax = eax + 1; /* 0x30010F4A: inc eax */ 9370 _flag_k = FK_INC; 9371 /* cmp eax, ecx */ /* 0x30010F4B: cmp eax, ecx */ 9372 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9374 _flag_k = FK_CMP; 9375 MEM32(ebp + 0xC) = eax; /* 0x30010F4D: mov dword ptr [ebp + 0xc], eax */ 9376 RECOMP_BACKEDGE(); 9377 if (CMP_L(_flag_a, _flag_b)) goto L_30010ECD; /* 0x30010F50: jl 0x30010ecd */ 9378 L_30010F56: 9379 ecx = MEM32(ebp + 0x14); /* 0x30010F56: mov ecx, dword ptr [ebp + 0x14] */ 9380 edi = POP32_VAL(esp); /* 0x30010F59: pop edi */ 9381 esi = POP32_VAL(esp); /* 0x30010F5A: pop esi */ 9382 ebx = POP32_VAL(esp); /* 0x30010F5B: pop ebx */ 9383 eax = ecx + 0x1; /* 0x30010F5C: lea eax, [ecx + 1] */ 9384 esp = ebp; /* 0x30010F5F: mov esp, ebp */ 9385 ebp = POP32_VAL(esp); /* 0x30010F61: pop ebp */ 9386 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30010F62: ret 0x10 */ 9387 L_30010F65: 9388 edx = MEM32(ebp + 0x14); /* 0x30010F65: mov edx, dword ptr [ebp + 0x14] */ 9389 edi = POP32_VAL(esp); /* 0x30010F68: pop edi */ 9390 esi = POP32_VAL(esp); /* 0x30010F69: pop esi */ 9391 ebx = POP32_VAL(esp); /* 0x30010F6A: pop ebx */ 9392 eax = edx + 0x1; /* 0x30010F6B: lea eax, [edx + 1] */ 9393 esp = ebp; /* 0x30010F6E: mov esp, ebp */ 9394 ebp = POP32_VAL(esp); /* 0x30010F70: pop ebp */ 9395 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x30010F71: ret 0x10 */ 9396 RECOMP_REGS_OUT(); 9397 } 9398 9399 void sub_30010F80(void) { 9400 int _fpu_cmp = 0; 9401 uint32_t _cf = 0; 9402 int _df = 1; 9403 uint32_t _flag_k = FK_NONE; 9404 uint32_t _flag_a = 0, _flag_b = 0; 9405 uint32_t _itail_tgt = 0; 9406 RECOMP_REGS_LOCALS 9407 RECOMP_ENTER(0x30010F80u); 9408 9409 L_30010F80: 9410 PUSH32(esp, ebp); /* 0x30010F80: push ebp */ 9411 ebp = esp; /* 0x30010F81: mov ebp, esp */ 9412 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 9413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9414 esp = esp - 0x30u; /* 0x30010F83: sub esp, 0x30 */ 9415 _flag_k = FK_CMP; 9416 PUSH32(esp, ebx); /* 0x30010F86: push ebx */ 9417 PUSH32(esp, esi); /* 0x30010F87: push esi */ 9418 esi = MEM32(ebp + 0x8); /* 0x30010F88: mov esi, dword ptr [ebp + 8] */ 9419 ebx = ecx; /* 0x30010F8B: mov ebx, ecx */ 9420 MEM32(ebp + (-0x4)) = ebx; /* 0x30010F8D: mov dword ptr [ebp - 4], ebx */ 9421 eax = MEM32(esi + 0x14); /* 0x30010F90: mov eax, dword ptr [esi + 0x14] */ 9422 /* test eax, eax */ /* 0x30010F93: test eax, eax */ 9423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9424 _cf = 0; 9425 _flag_k = FK_TEST; 9426 if (TEST_Z(_flag_a, _flag_b)) goto L_30010FAF; /* 0x30010F95: je 0x30010faf */ 9427 L_30010F97: 9428 PUSH32(esp, eax); /* 0x30010F97: push eax */ 9429 ecx = ebx; /* 0x30010F98: mov ecx, ebx */ 9430 RECOMP_ICALL(0x30010F80u); /* 0x30010F9A: call 0x30010f80 */ /* not lifted */ 9431 RECOMP_FLAGS_IN(); 9432 eax = MEM32(esi + 0x10); /* 0x30010F9F: mov eax, dword ptr [esi + 0x10] */ 9433 MEM32(ebp + 0x8) = eax; /* 0x30010FA2: mov dword ptr [ebp + 8], eax */ 9434 eax = MEM32(eax + 0x14); /* 0x30010FA5: mov eax, dword ptr [eax + 0x14] */ 9435 esi = MEM32(ebp + 0x8); /* 0x30010FA8: mov esi, dword ptr [ebp + 8] */ 9436 /* test eax, eax */ /* 0x30010FAB: test eax, eax */ 9437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9438 _cf = 0; 9439 _flag_k = FK_TEST; 9440 RECOMP_BACKEDGE(); 9441 if (TEST_NZ(_flag_a, _flag_b)) goto L_30010F97; /* 0x30010FAD: jne 0x30010f97 */ 9442 L_30010FAF: 9443 eax = MEM32(esi + 0x4); /* 0x30010FAF: mov eax, dword ptr [esi + 4] */ 9444 ecx = MEM32(esi + 0x8); /* 0x30010FB2: mov ecx, dword ptr [esi + 8] */ 9445 /* cmp eax, ecx */ /* 0x30010FB5: cmp eax, ecx */ 9446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9448 _flag_k = FK_CMP; 9449 MEM32(ebp + (-0x8)) = eax; /* 0x30010FB7: mov dword ptr [ebp - 8], eax */ 9450 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011080; /* 0x30010FBA: je 0x30011080 */ 9451 L_30010FC0: 9452 PUSH32(esp, edi); /* 0x30010FC0: push edi */ 9453 L_30010FC1: 9454 ecx = MEM32(eax); /* 0x30010FC1: mov ecx, dword ptr [eax] */ 9455 edi = MEM32(ecx + 0x1C); /* 0x30010FC3: mov edi, dword ptr [ecx + 0x1c] */ 9456 edx = MEM32(ecx + 0x20); /* 0x30010FC6: mov edx, dword ptr [ecx + 0x20] */ 9457 /* cmp edi, edx */ /* 0x30010FC9: cmp edi, edx */ 9458 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 9459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9460 _flag_k = FK_CMP; 9461 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001106E; /* 0x30010FCB: je 0x3001106e */ 9462 L_30010FD1: 9463 esi = ebx + 0xC; /* 0x30010FD1: lea esi, [ebx + 0xc] */ 9464 goto L_30010FD9; /* 0x30010FD4: jmp 0x30010fd9 */ 9465 L_30010FD6: 9466 ebx = MEM32(ebp + (-0x4)); /* 0x30010FD6: mov ebx, dword ptr [ebp - 4] */ 9467 L_30010FD9: 9468 eax = MEM32(ebp + (-0x4)); /* 0x30010FD9: mov eax, dword ptr [ebp - 4] */ 9469 ebx = MEM32(ebx + 0x1C); /* 0x30010FDC: mov ebx, dword ptr [ebx + 0x1c] */ 9470 PUSH32(esp, edi); /* 0x30010FDF: push edi */ 9471 ecx = MEM32(eax + 0x10); /* 0x30010FE0: mov ecx, dword ptr [eax + 0x10] */ 9472 MEM32(ebp + (-0x14)) = ecx; /* 0x30010FE3: mov dword ptr [ebp - 0x14], ecx */ 9473 ecx = esi; /* 0x30010FE6: mov ecx, esi */ 9474 RECOMP_ICALL(0x30012E60u); /* 0x30010FE8: call 0x30012e60 */ /* not lifted */ 9475 RECOMP_FLAGS_IN(); 9476 ecx = MEM32(esi + 0x4); /* 0x30010FED: mov ecx, dword ptr [esi + 4] */ 9477 MEM32(ebp + (-0xC)) = eax; /* 0x30010FF0: mov dword ptr [ebp - 0xc], eax */ 9478 /* cmp eax, ecx */ /* 0x30010FF3: cmp eax, ecx */ 9479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9481 _flag_k = FK_CMP; 9482 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001100D; /* 0x30010FF5: je 0x3001100d */ 9483 L_30010FF7: 9484 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 9485 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9486 eax = eax + 0xCu; /* 0x30010FF7: add eax, 0xc */ 9487 _flag_k = FK_ADD; 9488 ecx = esi + 0x1; /* 0x30010FFA: lea ecx, [esi + 1] */ 9489 PUSH32(esp, eax); /* 0x30010FFD: push eax */ 9490 PUSH32(esp, edi); /* 0x30010FFE: push edi */ 9491 RECOMP_ICALL(0x300112D0u); /* 0x30010FFF: call 0x300112d0 */ /* not lifted */ 9492 RECOMP_FLAGS_IN(); 9493 /* test LO8(eax), LO8(eax) */ /* 0x30011004: test al, al */ 9494 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9495 _cf = 0; 9496 _flag_k = FK_NARROW(FK_TEST, 24); 9497 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001100D; /* 0x30011006: jne 0x3001100d */ 9498 L_30011008: 9499 eax = ebp + (-0xC); /* 0x30011008: lea eax, [ebp - 0xc] */ 9500 goto L_30011016; /* 0x3001100B: jmp 0x30011016 */ 9501 L_3001100D: 9502 edx = MEM32(esi + 0x4); /* 0x3001100D: mov edx, dword ptr [esi + 4] */ 9503 eax = ebp + (-0x10); /* 0x30011010: lea eax, [ebp - 0x10] */ 9504 MEM32(ebp + (-0x10)) = edx; /* 0x30011013: mov dword ptr [ebp - 0x10], edx */ 9505 L_30011016: 9506 ecx = MEM32(ebp + (-0x14)); /* 0x30011016: mov ecx, dword ptr [ebp - 0x14] */ 9507 edx = MEM32(eax); /* 0x30011019: mov edx, dword ptr [eax] */ 9508 /* cmp edx, ecx */ /* 0x3001101B: cmp edx, ecx */ 9509 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9511 _flag_k = FK_CMP; 9512 if (CMP_NE(_flag_a, _flag_b)) goto L_30011055; /* 0x3001101D: jne 0x30011055 */ 9513 L_3001101F: 9514 edx = edi; /* 0x3001101F: mov edx, edi */ 9515 MEM32(ebp + (-0x24)) = 0; /* 0x30011021: mov dword ptr [ebp - 0x24], 0 */ 9516 eax = MEM32(edx); /* 0x30011028: mov eax, dword ptr [edx] */ 9517 MEM32(ebp + (-0x30)) = eax; /* 0x3001102A: mov dword ptr [ebp - 0x30], eax */ 9518 eax = ebp + (-0x30); /* 0x3001102D: lea eax, [ebp - 0x30] */ 9519 ecx = MEM32(edx + 0x4); /* 0x30011030: mov ecx, dword ptr [edx + 4] */ 9520 PUSH32(esp, eax); /* 0x30011033: push eax */ 9521 MEM32(ebp + (-0x2C)) = ecx; /* 0x30011034: mov dword ptr [ebp - 0x2c], ecx */ 9522 ecx = ebp + (-0x20); /* 0x30011037: lea ecx, [ebp - 0x20] */ 9523 edx = MEM32(edx + 0x8); /* 0x3001103A: mov edx, dword ptr [edx + 8] */ 9524 PUSH32(esp, ecx); /* 0x3001103D: push ecx */ 9525 ecx = esi; /* 0x3001103E: mov ecx, esi */ 9526 MEM32(ebp + (-0x28)) = edx; /* 0x30011040: mov dword ptr [ebp - 0x28], edx */ 9527 RECOMP_ICALL(0x30011D20u); /* 0x30011043: call 0x30011d20 */ /* not lifted */ 9528 RECOMP_FLAGS_IN(); 9529 edx = eax; /* 0x30011048: mov edx, eax */ 9530 eax = MEM32(edx); /* 0x3001104A: mov eax, dword ptr [edx] */ 9531 ecx = MEM32(edx + 0x4); /* 0x3001104C: mov ecx, dword ptr [edx + 4] */ 9532 MEM32(eax + 0x18) = ebx; /* 0x3001104F: mov dword ptr [eax + 0x18], ebx */ 9533 MEM32(ebp + (-0x14)) = ecx; /* 0x30011052: mov dword ptr [ebp - 0x14], ecx */ 9534 L_30011055: 9535 edx = MEM32(ebp + (-0x8)); /* 0x30011055: mov edx, dword ptr [ebp - 8] */ 9536 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 9537 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9538 edi = edi + 0xCu; /* 0x30011058: add edi, 0xc */ 9539 _flag_k = FK_ADD; 9540 eax = MEM32(edx); /* 0x3001105B: mov eax, dword ptr [edx] */ 9541 /* cmp edi, MEM32(eax + 0x20) */ /* 0x3001105D: cmp edi, dword ptr [eax + 0x20] */ 9542 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x20)); 9543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9544 _flag_k = FK_CMP; 9545 RECOMP_BACKEDGE(); 9546 if (CMP_NE(_flag_a, _flag_b)) goto L_30010FD6; /* 0x30011060: jne 0x30010fd6 */ 9547 L_30011066: 9548 esi = MEM32(ebp + 0x8); /* 0x30011066: mov esi, dword ptr [ebp + 8] */ 9549 ebx = MEM32(ebp + (-0x4)); /* 0x30011069: mov ebx, dword ptr [ebp - 4] */ 9550 eax = edx; /* 0x3001106C: mov eax, edx */ 9551 L_3001106E: 9552 ecx = MEM32(esi + 0x8); /* 0x3001106E: mov ecx, dword ptr [esi + 8] */ 9553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 9554 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9555 eax = eax + 4; /* 0x30011071: add eax, 4 */ 9556 _flag_k = FK_ADD; 9557 /* cmp eax, ecx */ /* 0x30011074: cmp eax, ecx */ 9558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9560 _flag_k = FK_CMP; 9561 MEM32(ebp + (-0x8)) = eax; /* 0x30011076: mov dword ptr [ebp - 8], eax */ 9562 RECOMP_BACKEDGE(); 9563 if (CMP_NE(_flag_a, _flag_b)) goto L_30010FC1; /* 0x30011079: jne 0x30010fc1 */ 9564 L_3001107F: 9565 edi = POP32_VAL(esp); /* 0x3001107F: pop edi */ 9566 L_30011080: 9567 esi = POP32_VAL(esp); /* 0x30011080: pop esi */ 9568 ebx = POP32_VAL(esp); /* 0x30011081: pop ebx */ 9569 esp = ebp; /* 0x30011082: mov esp, ebp */ 9570 ebp = POP32_VAL(esp); /* 0x30011084: pop ebp */ 9571 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30011085: ret 4 */ 9572 RECOMP_REGS_OUT(); 9573 } 9574 9575 void sub_30011090(void) { 9576 int _fpu_cmp = 0; 9577 uint32_t _cf = 0; 9578 int _df = 1; 9579 uint32_t _flag_k = FK_NONE; 9580 uint32_t _flag_a = 0, _flag_b = 0; 9581 uint32_t _itail_tgt = 0; 9582 RECOMP_REGS_LOCALS 9583 RECOMP_ENTER(0x30011090u); 9584 9585 L_30011090: 9586 PUSH32(esp, ebp); /* 0x30011090: push ebp */ 9587 ebp = esp; /* 0x30011091: mov ebp, esp */ 9588 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 9589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9590 esp = esp - 0x18u; /* 0x30011093: sub esp, 0x18 */ 9591 _flag_k = FK_CMP; 9592 PUSH32(esp, ebx); /* 0x30011096: push ebx */ 9593 ebx = MEM32(ebp + 0xC); /* 0x30011097: mov ebx, dword ptr [ebp + 0xc] */ 9594 PUSH32(esp, esi); /* 0x3001109A: push esi */ 9595 esi = MEM32(ebp + 0x8); /* 0x3001109B: mov esi, dword ptr [ebp + 8] */ 9596 PUSH32(esp, edi); /* 0x3001109E: push edi */ 9597 edi = ecx; /* 0x3001109F: mov edi, ecx */ 9598 eax = MEM32(esi + 0x14); /* 0x300110A1: mov eax, dword ptr [esi + 0x14] */ 9599 /* test eax, eax */ /* 0x300110A4: test eax, eax */ 9600 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9601 _cf = 0; 9602 _flag_k = FK_TEST; 9603 if (TEST_Z(_flag_a, _flag_b)) goto L_300110BB; /* 0x300110A6: je 0x300110bb */ 9604 L_300110A8: 9605 PUSH32(esp, ebx); /* 0x300110A8: push ebx */ 9606 PUSH32(esp, eax); /* 0x300110A9: push eax */ 9607 ecx = edi; /* 0x300110AA: mov ecx, edi */ 9608 RECOMP_ICALL(0x30011090u); /* 0x300110AC: call 0x30011090 */ /* not lifted */ 9609 RECOMP_FLAGS_IN(); 9610 esi = MEM32(esi + 0x10); /* 0x300110B1: mov esi, dword ptr [esi + 0x10] */ 9611 eax = MEM32(esi + 0x14); /* 0x300110B4: mov eax, dword ptr [esi + 0x14] */ 9612 /* test eax, eax */ /* 0x300110B7: test eax, eax */ 9613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9614 _cf = 0; 9615 _flag_k = FK_TEST; 9616 RECOMP_BACKEDGE(); 9617 if (TEST_NZ(_flag_a, _flag_b)) goto L_300110A8; /* 0x300110B9: jne 0x300110a8 */ 9618 L_300110BB: 9619 edi = MEM32(esi + 0x4); /* 0x300110BB: mov edi, dword ptr [esi + 4] */ 9620 eax = MEM32(esi + 0x8); /* 0x300110BE: mov eax, dword ptr [esi + 8] */ 9621 /* cmp edi, eax */ /* 0x300110C1: cmp edi, eax */ 9622 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9624 _flag_k = FK_CMP; 9625 if (CMP_EQ(_flag_a, _flag_b)) goto L_300110FB; /* 0x300110C3: je 0x300110fb */ 9626 L_300110C5: 9627 eax = MEM32(edi); /* 0x300110C5: mov eax, dword ptr [edi] */ 9628 ecx = ebp + (-0x8); /* 0x300110C7: lea ecx, [ebp - 8] */ 9629 edx = ebp + (-0x10); /* 0x300110CA: lea edx, [ebp - 0x10] */ 9630 PUSH32(esp, ecx); /* 0x300110CD: push ecx */ 9631 PUSH32(esp, edx); /* 0x300110CE: push edx */ 9632 ecx = ebx; /* 0x300110CF: mov ecx, ebx */ 9633 MEM32(ebp + (-0x8)) = eax; /* 0x300110D1: mov dword ptr [ebp - 8], eax */ 9634 MEM32(ebp + (-0x4)) = 0; /* 0x300110D4: mov dword ptr [ebp - 4], 0 */ 9635 RECOMP_ICALL(0x30012420u); /* 0x300110DB: call 0x30012420 */ /* not lifted */ 9636 RECOMP_FLAGS_IN(); 9637 ecx = eax; /* 0x300110E0: mov ecx, eax */ 9638 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 9639 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9640 edi = edi + 4; /* 0x300110E2: add edi, 4 */ 9641 _flag_k = FK_ADD; 9642 eax = MEM32(ecx); /* 0x300110E5: mov eax, dword ptr [ecx] */ 9643 edx = MEM32(ecx + 0x4); /* 0x300110E7: mov edx, dword ptr [ecx + 4] */ 9644 MEM32(eax + 0x10) = 0; /* 0x300110EA: mov dword ptr [eax + 0x10], 0 */ 9645 eax = MEM32(esi + 0x8); /* 0x300110F1: mov eax, dword ptr [esi + 8] */ 9646 MEM32(ebp + (-0x14)) = edx; /* 0x300110F4: mov dword ptr [ebp - 0x14], edx */ 9647 /* cmp edi, eax */ /* 0x300110F7: cmp edi, eax */ 9648 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9650 _flag_k = FK_CMP; 9651 RECOMP_BACKEDGE(); 9652 if (CMP_NE(_flag_a, _flag_b)) goto L_300110C5; /* 0x300110F9: jne 0x300110c5 */ 9653 L_300110FB: 9654 edi = POP32_VAL(esp); /* 0x300110FB: pop edi */ 9655 esi = POP32_VAL(esp); /* 0x300110FC: pop esi */ 9656 ebx = POP32_VAL(esp); /* 0x300110FD: pop ebx */ 9657 esp = ebp; /* 0x300110FE: mov esp, ebp */ 9658 ebp = POP32_VAL(esp); /* 0x30011100: pop ebp */ 9659 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30011101: ret 8 */ 9660 RECOMP_REGS_OUT(); 9661 } 9662 9663 void sub_30011110(void) { 9664 int _fpu_cmp = 0; 9665 uint32_t _cf = 0; 9666 int _df = 1; 9667 uint32_t _flag_k = FK_NONE; 9668 uint32_t _flag_a = 0, _flag_b = 0; 9669 uint32_t _itail_tgt = 0; 9670 RECOMP_REGS_LOCALS 9671 RECOMP_ENTER(0x30011110u); 9672 9673 L_30011110: 9674 PUSH32(esp, ebp); /* 0x30011110: push ebp */ 9675 ebp = esp; /* 0x30011111: mov ebp, esp */ 9676 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9678 esp = esp - 8; /* 0x30011113: sub esp, 8 */ 9679 _flag_k = FK_CMP; 9680 PUSH32(esp, ebx); /* 0x30011116: push ebx */ 9681 ebx = MEM32(ebp + 0x8); /* 0x30011117: mov ebx, dword ptr [ebp + 8] */ 9682 PUSH32(esp, esi); /* 0x3001111A: push esi */ 9683 PUSH32(esp, edi); /* 0x3001111B: push edi */ 9684 esi = MEM32(ebx + 0x4); /* 0x3001111C: mov esi, dword ptr [ebx + 4] */ 9685 eax = MEM32(ebx + 0x8); /* 0x3001111F: mov eax, dword ptr [ebx + 8] */ 9686 /* cmp esi, eax */ /* 0x30011122: cmp esi, eax */ 9687 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9689 _flag_k = FK_CMP; 9690 MEM32(ebp + (-0x4)) = ecx; /* 0x30011124: mov dword ptr [ebp - 4], ecx */ 9691 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011163; /* 0x30011127: je 0x30011163 */ 9692 L_30011129: 9693 ecx = MEM32(ebp + (-0x4)); /* 0x30011129: mov ecx, dword ptr [ebp - 4] */ 9694 RECOMP_ICALL(0x3000FB70u); /* 0x3001112C: call 0x3000fb70 */ /* not lifted */ 9695 RECOMP_FLAGS_IN(); 9696 edi = eax; /* 0x30011131: mov edi, eax */ 9697 /* test edi, edi */ /* 0x30011133: test edi, edi */ 9698 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9699 _cf = 0; 9700 _flag_k = FK_TEST; 9701 if (TEST_Z(_flag_a, _flag_b)) goto L_3001116E; /* 0x30011135: je 0x3001116e */ 9702 L_30011137: 9703 eax = MEM32(esi + 0x8); /* 0x30011137: mov eax, dword ptr [esi + 8] */ 9704 ecx = MEM32(esi + 0x4); /* 0x3001113A: mov ecx, dword ptr [esi + 4] */ 9705 MEM32(ebp + 0x8) = eax; /* 0x3001113D: mov dword ptr [ebp + 8], eax */ 9706 edx = ebp + 0x8; /* 0x30011140: lea edx, [ebp + 8] */ 9707 eax = ebp + (-0x8); /* 0x30011143: lea eax, [ebp - 8] */ 9708 MEM32(ebp + (-0x8)) = ecx; /* 0x30011146: mov dword ptr [ebp - 8], ecx */ 9709 PUSH32(esp, edx); /* 0x30011149: push edx */ 9710 PUSH32(esp, eax); /* 0x3001114A: push eax */ 9711 ecx = edi; /* 0x3001114B: mov ecx, edi */ 9712 RECOMP_ICALL(0x30016150u); /* 0x3001114D: call 0x30016150 */ /* not lifted */ 9713 RECOMP_FLAGS_IN(); 9714 ecx = edi; /* 0x30011152: mov ecx, edi */ 9715 RECOMP_ICALL(0x300163B0u); /* 0x30011154: call 0x300163b0 */ /* not lifted */ 9716 RECOMP_FLAGS_IN(); 9717 eax = MEM32(ebx + 0x8); /* 0x30011159: mov eax, dword ptr [ebx + 8] */ 9718 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u); 9719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9720 esi = esi + 0x28u; /* 0x3001115C: add esi, 0x28 */ 9721 _flag_k = FK_ADD; 9722 /* cmp esi, eax */ /* 0x3001115F: cmp esi, eax */ 9723 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9725 _flag_k = FK_CMP; 9726 RECOMP_BACKEDGE(); 9727 if (CMP_NE(_flag_a, _flag_b)) goto L_30011129; /* 0x30011161: jne 0x30011129 */ 9728 L_30011163: 9729 edi = POP32_VAL(esp); /* 0x30011163: pop edi */ 9730 esi = POP32_VAL(esp); /* 0x30011164: pop esi */ 9731 SET_LO8(eax, 1); /* 0x30011165: mov al, 1 */ 9732 ebx = POP32_VAL(esp); /* 0x30011167: pop ebx */ 9733 esp = ebp; /* 0x30011168: mov esp, ebp */ 9734 ebp = POP32_VAL(esp); /* 0x3001116A: pop ebp */ 9735 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3001116B: ret 4 */ 9736 L_3001116E: 9737 edi = POP32_VAL(esp); /* 0x3001116E: pop edi */ 9738 esi = POP32_VAL(esp); /* 0x3001116F: pop esi */ 9739 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 9740 SET_LO8(eax, 0); /* 0x30011170: xor al, al */ 9741 _cf = 0; 9742 _flag_k = FK_NARROW(FK_TEST, 24); 9743 ebx = POP32_VAL(esp); /* 0x30011172: pop ebx */ 9744 esp = ebp; /* 0x30011173: mov esp, ebp */ 9745 ebp = POP32_VAL(esp); /* 0x30011175: pop ebp */ 9746 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x30011176: ret 4 */ 9747 RECOMP_REGS_OUT(); 9748 } 9749 9750 void sub_30011180(void) { 9751 int _fpu_cmp = 0; 9752 uint32_t _cf = 0; 9753 int _df = 1; 9754 uint32_t _flag_k = FK_NONE; 9755 uint32_t _flag_a = 0, _flag_b = 0; 9756 uint32_t _itail_tgt = 0; 9757 RECOMP_REGS_LOCALS 9758 RECOMP_ENTER(0x30011180u); 9759 9760 L_30011180: 9761 RECOMP_ICALL(0x30011190u); /* 0x30011180: call 0x30011190 */ /* not lifted */ 9762 RECOMP_FLAGS_IN(); 9763 goto L_300111A0; /* 0x30011185: jmp 0x300111a0 */ 9764 L_300111A0: 9765 PUSH32(esp, 0x300111B0u); /* 0x300111A0: push 0x300111b0 */ 9766 RECOMP_ICALL(0x300180ECu); /* 0x300111A5: call 0x300180ec */ /* not lifted */ 9767 RECOMP_FLAGS_IN(); 9768 ecx = POP32_VAL(esp); /* 0x300111AA: pop ecx */ 9769 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300111AB: ret */ 9770 RECOMP_REGS_OUT(); 9771 } 9772 9773 void sub_30011190(void) { 9774 int _fpu_cmp = 0; 9775 uint32_t _cf = 0; 9776 int _df = 1; 9777 uint32_t _flag_k = FK_NONE; 9778 uint32_t _flag_a = 0, _flag_b = 0; 9779 uint32_t _itail_tgt = 0; 9780 RECOMP_REGS_LOCALS 9781 RECOMP_ENTER(0x30011190u); 9782 9783 L_30011190: 9784 ecx = 0x3001FC19u; /* 0x30011190: mov ecx, 0x3001fc19 */ 9785 L_30011195: 9786 { _itail_tgt = (uint32_t)(MEM32(0x30019018)); goto _ljump; } 9787 { RECOMP_REGS_OUT(); return; } /* end of function */ 9788 _ljump: 9789 switch (_itail_tgt) { 9790 case 0x30011190u: goto L_30011190; 9791 case 0x30011195u: goto L_30011195; 9792 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 9793 } 9794 RECOMP_REGS_OUT(); 9795 } 9796 9797 void sub_300111A0(void) { 9798 int _fpu_cmp = 0; 9799 uint32_t _cf = 0; 9800 int _df = 1; 9801 uint32_t _flag_k = FK_NONE; 9802 uint32_t _flag_a = 0, _flag_b = 0; 9803 uint32_t _itail_tgt = 0; 9804 RECOMP_REGS_LOCALS 9805 RECOMP_ENTER(0x300111A0u); 9806 9807 L_300111A0: 9808 PUSH32(esp, 0x300111B0u); /* 0x300111A0: push 0x300111b0 */ 9809 RECOMP_ICALL(0x300180ECu); /* 0x300111A5: call 0x300180ec */ /* not lifted */ 9810 RECOMP_FLAGS_IN(); 9811 ecx = POP32_VAL(esp); /* 0x300111AA: pop ecx */ 9812 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300111AB: ret */ 9813 RECOMP_REGS_OUT(); 9814 } 9815 9816 void sub_300111B0(void) { 9817 int _fpu_cmp = 0; 9818 uint32_t _cf = 0; 9819 int _df = 1; 9820 uint32_t _flag_k = FK_NONE; 9821 uint32_t _flag_a = 0, _flag_b = 0; 9822 uint32_t _itail_tgt = 0; 9823 RECOMP_REGS_LOCALS 9824 RECOMP_ENTER(0x300111B0u); 9825 9826 L_300111B0: 9827 ecx = 0x3001FC19u; /* 0x300111B0: mov ecx, 0x3001fc19 */ 9828 L_300111B5: 9829 { _itail_tgt = (uint32_t)(MEM32(0x3001901C)); goto _ljump; } 9830 { RECOMP_REGS_OUT(); return; } /* end of function */ 9831 _ljump: 9832 switch (_itail_tgt) { 9833 case 0x300111B0u: goto L_300111B0; 9834 case 0x300111B5u: goto L_300111B5; 9835 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 9836 } 9837 RECOMP_REGS_OUT(); 9838 } 9839 9840 void sub_300111C0(void) { 9841 int _fpu_cmp = 0; 9842 uint32_t _cf = 0; 9843 int _df = 1; 9844 uint32_t _flag_k = FK_NONE; 9845 uint32_t _flag_a = 0, _flag_b = 0; 9846 uint32_t _itail_tgt = 0; 9847 RECOMP_REGS_LOCALS 9848 RECOMP_ENTER(0x300111C0u); 9849 9850 L_300111C0: 9851 RECOMP_ICALL(0x300111D0u); /* 0x300111C0: call 0x300111d0 */ /* not lifted */ 9852 RECOMP_FLAGS_IN(); 9853 goto L_300111E0; /* 0x300111C5: jmp 0x300111e0 */ 9854 L_300111E0: 9855 PUSH32(esp, 0x300111F0u); /* 0x300111E0: push 0x300111f0 */ 9856 RECOMP_ICALL(0x300180ECu); /* 0x300111E5: call 0x300180ec */ /* not lifted */ 9857 RECOMP_FLAGS_IN(); 9858 ecx = POP32_VAL(esp); /* 0x300111EA: pop ecx */ 9859 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300111EB: ret */ 9860 RECOMP_REGS_OUT(); 9861 } 9862 9863 void sub_300111D0(void) { 9864 int _fpu_cmp = 0; 9865 uint32_t _cf = 0; 9866 int _df = 1; 9867 uint32_t _flag_k = FK_NONE; 9868 uint32_t _flag_a = 0, _flag_b = 0; 9869 uint32_t _itail_tgt = 0; 9870 RECOMP_REGS_LOCALS 9871 RECOMP_ENTER(0x300111D0u); 9872 9873 L_300111D0: 9874 ecx = 0x3001FC18u; /* 0x300111D0: mov ecx, 0x3001fc18 */ 9875 L_300111D5: 9876 { _itail_tgt = (uint32_t)(MEM32(0x30019020)); goto _ljump; } 9877 { RECOMP_REGS_OUT(); return; } /* end of function */ 9878 _ljump: 9879 switch (_itail_tgt) { 9880 case 0x300111D0u: goto L_300111D0; 9881 case 0x300111D5u: goto L_300111D5; 9882 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 9883 } 9884 RECOMP_REGS_OUT(); 9885 } 9886 9887 void sub_300111E0(void) { 9888 int _fpu_cmp = 0; 9889 uint32_t _cf = 0; 9890 int _df = 1; 9891 uint32_t _flag_k = FK_NONE; 9892 uint32_t _flag_a = 0, _flag_b = 0; 9893 uint32_t _itail_tgt = 0; 9894 RECOMP_REGS_LOCALS 9895 RECOMP_ENTER(0x300111E0u); 9896 9897 L_300111E0: 9898 PUSH32(esp, 0x300111F0u); /* 0x300111E0: push 0x300111f0 */ 9899 RECOMP_ICALL(0x300180ECu); /* 0x300111E5: call 0x300180ec */ /* not lifted */ 9900 RECOMP_FLAGS_IN(); 9901 ecx = POP32_VAL(esp); /* 0x300111EA: pop ecx */ 9902 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300111EB: ret */ 9903 RECOMP_REGS_OUT(); 9904 } 9905 9906 void sub_300111F0(void) { 9907 int _fpu_cmp = 0; 9908 uint32_t _cf = 0; 9909 int _df = 1; 9910 uint32_t _flag_k = FK_NONE; 9911 uint32_t _flag_a = 0, _flag_b = 0; 9912 uint32_t _itail_tgt = 0; 9913 RECOMP_REGS_LOCALS 9914 RECOMP_ENTER(0x300111F0u); 9915 9916 L_300111F0: 9917 ecx = 0x3001FC18u; /* 0x300111F0: mov ecx, 0x3001fc18 */ 9918 L_300111F5: 9919 { _itail_tgt = (uint32_t)(MEM32(0x30019024)); goto _ljump; } 9920 { RECOMP_REGS_OUT(); return; } /* end of function */ 9921 _ljump: 9922 switch (_itail_tgt) { 9923 case 0x300111F0u: goto L_300111F0; 9924 case 0x300111F5u: goto L_300111F5; 9925 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 9926 } 9927 RECOMP_REGS_OUT(); 9928 } 9929 9930 void sub_30011200(void) { 9931 int _fpu_cmp = 0; 9932 uint32_t _cf = 0; 9933 int _df = 1; 9934 uint32_t _flag_k = FK_NONE; 9935 uint32_t _flag_a = 0, _flag_b = 0; 9936 uint32_t _itail_tgt = 0; 9937 RECOMP_REGS_LOCALS 9938 RECOMP_ENTER(0x30011200u); 9939 9940 L_30011200: 9941 PUSH32(esp, esi); /* 0x30011200: push esi */ 9942 esi = ecx; /* 0x30011201: mov esi, ecx */ 9943 eax = MEM32(esi + 0x2C); /* 0x30011203: mov eax, dword ptr [esi + 0x2c] */ 9944 /* test eax, eax */ /* 0x30011206: test eax, eax */ 9945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9946 _cf = 0; 9947 _flag_k = FK_TEST; 9948 if (TEST_Z(_flag_a, _flag_b)) goto L_300112CD; /* 0x30011208: je 0x300112cd */ 9949 L_3001120E: 9950 PUSH32(esp, ebx); /* 0x3001120E: push ebx */ 9951 PUSH32(esp, edi); /* 0x3001120F: push edi */ 9952 if (TEST_Z(_flag_a, _flag_b)) goto L_300112C0; /* 0x30011210: je 0x300112c0 */ 9953 L_30011216: 9954 eax = MEM32(esi + 0xC); /* 0x30011216: mov eax, dword ptr [esi + 0xc] */ 9955 ecx = MEM32(esi + 0x8); /* 0x30011219: mov ecx, dword ptr [esi + 8] */ 9956 edi = MEM32(esi + 0x10); /* 0x3001121C: mov edi, dword ptr [esi + 0x10] */ 9957 /* cmp eax, ecx */ /* 0x3001121F: cmp eax, ecx */ 9958 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9960 _flag_k = FK_CMP; 9961 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001124E; /* 0x30011221: je 0x3001124e */ 9962 L_30011223: 9963 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 9964 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9965 eax = eax + 4; /* 0x30011223: add eax, 4 */ 9966 _flag_k = FK_ADD; 9967 /* cmp eax, ecx */ /* 0x30011226: cmp eax, ecx */ 9968 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9970 _flag_k = FK_CMP; 9971 MEM32(esi + 0xC) = eax; /* 0x30011228: mov dword ptr [esi + 0xc], eax */ 9972 if (CMP_NE(_flag_a, _flag_b)) goto L_3001124E; /* 0x3001122B: jne 0x3001124e */ 9973 L_3001122D: 9974 eax = MEM32(esi + 0x10); /* 0x3001122D: mov eax, dword ptr [esi + 0x10] */ 9975 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 9976 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9977 eax = eax + 4; /* 0x30011230: add eax, 4 */ 9978 _flag_k = FK_ADD; 9979 /* cmp MEM32(eax), 0 */ /* 0x30011233: cmp dword ptr [eax], 0 */ 9980 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 9981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9982 _flag_k = FK_CMP; 9983 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001124E; /* 0x30011236: je 0x3001124e */ 9984 L_30011238: 9985 MEM32(esi + 0x10) = eax; /* 0x30011238: mov dword ptr [esi + 0x10], eax */ 9986 eax = MEM32(eax); /* 0x3001123B: mov eax, dword ptr [eax] */ 9987 MEM32(esi + 0x4) = eax; /* 0x3001123D: mov dword ptr [esi + 4], eax */ 9988 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 9989 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9990 eax = eax + 0x1000u; /* 0x30011240: add eax, 0x1000 */ 9991 _flag_k = FK_ADD; 9992 MEM32(esi + 0x8) = eax; /* 0x30011245: mov dword ptr [esi + 8], eax */ 9993 eax = MEM32(esi + 0x4); /* 0x30011248: mov eax, dword ptr [esi + 4] */ 9994 MEM32(esi + 0xC) = eax; /* 0x3001124B: mov dword ptr [esi + 0xc], eax */ 9995 L_3001124E: 9996 eax = MEM32(esi + 0x2C); /* 0x3001124E: mov eax, dword ptr [esi + 0x2c] */ 9997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9998 eax = eax - 1; /* 0x30011251: dec eax */ 9999 _flag_k = FK_DEC; 10000 MEM32(esi + 0x2C) = eax; /* 0x30011252: mov dword ptr [esi + 0x2c], eax */ 10001 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300112AA; /* 0x30011255: jne 0x300112aa */ 10002 L_30011257: 10003 ecx = MEM32(esi + 0x10); /* 0x30011257: mov ecx, dword ptr [esi + 0x10] */ 10004 edx = MEM32(ecx + (-0x4)); /* 0x3001125A: mov edx, dword ptr [ecx - 4] */ 10005 PUSH32(esp, edx); /* 0x3001125D: push edx */ 10006 RECOMP_ICALL(0x30018080u); /* 0x3001125E: call 0x30018080 */ /* not lifted */ 10007 RECOMP_FLAGS_IN(); 10008 eax = MEM32(esi + 0x10); /* 0x30011263: mov eax, dword ptr [esi + 0x10] */ 10009 ecx = MEM32(eax); /* 0x30011266: mov ecx, dword ptr [eax] */ 10010 PUSH32(esp, ecx); /* 0x30011268: push ecx */ 10011 RECOMP_ICALL(0x30018080u); /* 0x30011269: call 0x30018080 */ /* not lifted */ 10012 RECOMP_FLAGS_IN(); 10013 edx = MEM32(esi + 0x10); /* 0x3001126E: mov edx, dword ptr [esi + 0x10] */ 10014 eax = MEM32(edx + 0x4); /* 0x30011271: mov eax, dword ptr [edx + 4] */ 10015 PUSH32(esp, eax); /* 0x30011274: push eax */ 10016 RECOMP_ICALL(0x30018080u); /* 0x30011275: call 0x30018080 */ /* not lifted */ 10017 RECOMP_FLAGS_IN(); 10018 ebx = esi + 0x14; /* 0x3001127A: lea ebx, [esi + 0x14] */ 10019 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10020 eax = 0; /* 0x3001127D: xor eax, eax */ 10021 _cf = 0; 10022 _flag_k = FK_TEST; 10023 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10024 ecx = 0; /* 0x3001127F: xor ecx, ecx */ 10025 _cf = 0; 10026 _flag_k = FK_TEST; 10027 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10028 edx = 0; /* 0x30011281: xor edx, edx */ 10029 _cf = 0; 10030 _flag_k = FK_TEST; 10031 MEM32(ebx) = eax; /* 0x30011283: mov dword ptr [ebx], eax */ 10032 MEM32(esi + 0x4) = eax; /* 0x30011285: mov dword ptr [esi + 4], eax */ 10033 MEM32(esi + 0x8) = ecx; /* 0x30011288: mov dword ptr [esi + 8], ecx */ 10034 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10035 edi = 0; /* 0x3001128B: xor edi, edi */ 10036 _cf = 0; 10037 _flag_k = FK_TEST; 10038 MEM32(ebx + 0x4) = ecx; /* 0x3001128D: mov dword ptr [ebx + 4], ecx */ 10039 ecx = MEM32(esi + 0x24); /* 0x30011290: mov ecx, dword ptr [esi + 0x24] */ 10040 MEM32(esi + 0xC) = edx; /* 0x30011293: mov dword ptr [esi + 0xc], edx */ 10041 PUSH32(esp, ecx); /* 0x30011296: push ecx */ 10042 MEM32(ebx + 0x8) = edx; /* 0x30011297: mov dword ptr [ebx + 8], edx */ 10043 MEM32(esi + 0x10) = edi; /* 0x3001129A: mov dword ptr [esi + 0x10], edi */ 10044 MEM32(ebx + 0xC) = edi; /* 0x3001129D: mov dword ptr [ebx + 0xc], edi */ 10045 RECOMP_ICALL(0x30018080u); /* 0x300112A0: call 0x30018080 */ /* not lifted */ 10046 RECOMP_FLAGS_IN(); 10047 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10048 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10049 esp = esp + 0x10u; /* 0x300112A5: add esp, 0x10 */ 10050 _flag_k = FK_ADD; 10051 goto L_300112C0; /* 0x300112A8: jmp 0x300112c0 */ 10052 L_300112AA: 10053 /* cmp edi, MEM32(esi + 0x10) */ /* 0x300112AA: cmp edi, dword ptr [esi + 0x10] */ 10054 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x10)); 10055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10056 _flag_k = FK_CMP; 10057 if (CMP_EQ(_flag_a, _flag_b)) goto L_300112C0; /* 0x300112AD: je 0x300112c0 */ 10058 L_300112AF: 10059 edx = MEM32(edi); /* 0x300112AF: mov edx, dword ptr [edi] */ 10060 PUSH32(esp, edx); /* 0x300112B1: push edx */ 10061 RECOMP_ICALL(0x30018080u); /* 0x300112B2: call 0x30018080 */ /* not lifted */ 10062 RECOMP_FLAGS_IN(); 10063 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10064 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10065 esp = esp + 4; /* 0x300112B7: add esp, 4 */ 10066 _flag_k = FK_ADD; 10067 MEM32(edi) = 0; /* 0x300112BA: mov dword ptr [edi], 0 */ 10068 L_300112C0: 10069 eax = MEM32(esi + 0x2C); /* 0x300112C0: mov eax, dword ptr [esi + 0x2c] */ 10070 /* test eax, eax */ /* 0x300112C3: test eax, eax */ 10071 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10072 _cf = 0; 10073 _flag_k = FK_TEST; 10074 RECOMP_BACKEDGE(); 10075 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011216; /* 0x300112C5: jne 0x30011216 */ 10076 L_300112CB: 10077 edi = POP32_VAL(esp); /* 0x300112CB: pop edi */ 10078 ebx = POP32_VAL(esp); /* 0x300112CC: pop ebx */ 10079 L_300112CD: 10080 esi = POP32_VAL(esp); /* 0x300112CD: pop esi */ 10081 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300112CE: ret */ 10082 RECOMP_REGS_OUT(); 10083 } 10084 10085 void sub_30011216(void) { 10086 int _fpu_cmp = 0; 10087 uint32_t _cf = 0; 10088 int _df = 1; 10089 uint32_t _flag_k = FK_NONE; 10090 uint32_t _flag_a = 0, _flag_b = 0; 10091 uint32_t _itail_tgt = 0; 10092 RECOMP_REGS_LOCALS 10093 RECOMP_ENTER(0x30011216u); 10094 10095 L_30011216: 10096 eax = MEM32(esi + 0xC); /* 0x30011216: mov eax, dword ptr [esi + 0xc] */ 10097 ecx = MEM32(esi + 0x8); /* 0x30011219: mov ecx, dword ptr [esi + 8] */ 10098 edi = MEM32(esi + 0x10); /* 0x3001121C: mov edi, dword ptr [esi + 0x10] */ 10099 /* cmp eax, ecx */ /* 0x3001121F: cmp eax, ecx */ 10100 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10102 _flag_k = FK_CMP; 10103 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001124E; /* 0x30011221: je 0x3001124e */ 10104 L_30011223: 10105 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 10106 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10107 eax = eax + 4; /* 0x30011223: add eax, 4 */ 10108 _flag_k = FK_ADD; 10109 /* cmp eax, ecx */ /* 0x30011226: cmp eax, ecx */ 10110 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10112 _flag_k = FK_CMP; 10113 MEM32(esi + 0xC) = eax; /* 0x30011228: mov dword ptr [esi + 0xc], eax */ 10114 if (CMP_NE(_flag_a, _flag_b)) goto L_3001124E; /* 0x3001122B: jne 0x3001124e */ 10115 L_3001122D: 10116 eax = MEM32(esi + 0x10); /* 0x3001122D: mov eax, dword ptr [esi + 0x10] */ 10117 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 10118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10119 eax = eax + 4; /* 0x30011230: add eax, 4 */ 10120 _flag_k = FK_ADD; 10121 /* cmp MEM32(eax), 0 */ /* 0x30011233: cmp dword ptr [eax], 0 */ 10122 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 10123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10124 _flag_k = FK_CMP; 10125 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001124E; /* 0x30011236: je 0x3001124e */ 10126 L_30011238: 10127 MEM32(esi + 0x10) = eax; /* 0x30011238: mov dword ptr [esi + 0x10], eax */ 10128 eax = MEM32(eax); /* 0x3001123B: mov eax, dword ptr [eax] */ 10129 MEM32(esi + 0x4) = eax; /* 0x3001123D: mov dword ptr [esi + 4], eax */ 10130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 10131 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10132 eax = eax + 0x1000u; /* 0x30011240: add eax, 0x1000 */ 10133 _flag_k = FK_ADD; 10134 MEM32(esi + 0x8) = eax; /* 0x30011245: mov dword ptr [esi + 8], eax */ 10135 eax = MEM32(esi + 0x4); /* 0x30011248: mov eax, dword ptr [esi + 4] */ 10136 MEM32(esi + 0xC) = eax; /* 0x3001124B: mov dword ptr [esi + 0xc], eax */ 10137 L_3001124E: 10138 eax = MEM32(esi + 0x2C); /* 0x3001124E: mov eax, dword ptr [esi + 0x2c] */ 10139 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10140 eax = eax - 1; /* 0x30011251: dec eax */ 10141 _flag_k = FK_DEC; 10142 MEM32(esi + 0x2C) = eax; /* 0x30011252: mov dword ptr [esi + 0x2c], eax */ 10143 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300112AA; /* 0x30011255: jne 0x300112aa */ 10144 L_30011257: 10145 ecx = MEM32(esi + 0x10); /* 0x30011257: mov ecx, dword ptr [esi + 0x10] */ 10146 edx = MEM32(ecx + (-0x4)); /* 0x3001125A: mov edx, dword ptr [ecx - 4] */ 10147 PUSH32(esp, edx); /* 0x3001125D: push edx */ 10148 RECOMP_ICALL(0x30018080u); /* 0x3001125E: call 0x30018080 */ /* not lifted */ 10149 RECOMP_FLAGS_IN(); 10150 eax = MEM32(esi + 0x10); /* 0x30011263: mov eax, dword ptr [esi + 0x10] */ 10151 ecx = MEM32(eax); /* 0x30011266: mov ecx, dword ptr [eax] */ 10152 PUSH32(esp, ecx); /* 0x30011268: push ecx */ 10153 RECOMP_ICALL(0x30018080u); /* 0x30011269: call 0x30018080 */ /* not lifted */ 10154 RECOMP_FLAGS_IN(); 10155 edx = MEM32(esi + 0x10); /* 0x3001126E: mov edx, dword ptr [esi + 0x10] */ 10156 eax = MEM32(edx + 0x4); /* 0x30011271: mov eax, dword ptr [edx + 4] */ 10157 PUSH32(esp, eax); /* 0x30011274: push eax */ 10158 RECOMP_ICALL(0x30018080u); /* 0x30011275: call 0x30018080 */ /* not lifted */ 10159 RECOMP_FLAGS_IN(); 10160 ebx = esi + 0x14; /* 0x3001127A: lea ebx, [esi + 0x14] */ 10161 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10162 eax = 0; /* 0x3001127D: xor eax, eax */ 10163 _cf = 0; 10164 _flag_k = FK_TEST; 10165 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10166 ecx = 0; /* 0x3001127F: xor ecx, ecx */ 10167 _cf = 0; 10168 _flag_k = FK_TEST; 10169 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10170 edx = 0; /* 0x30011281: xor edx, edx */ 10171 _cf = 0; 10172 _flag_k = FK_TEST; 10173 MEM32(ebx) = eax; /* 0x30011283: mov dword ptr [ebx], eax */ 10174 MEM32(esi + 0x4) = eax; /* 0x30011285: mov dword ptr [esi + 4], eax */ 10175 MEM32(esi + 0x8) = ecx; /* 0x30011288: mov dword ptr [esi + 8], ecx */ 10176 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10177 edi = 0; /* 0x3001128B: xor edi, edi */ 10178 _cf = 0; 10179 _flag_k = FK_TEST; 10180 MEM32(ebx + 0x4) = ecx; /* 0x3001128D: mov dword ptr [ebx + 4], ecx */ 10181 ecx = MEM32(esi + 0x24); /* 0x30011290: mov ecx, dword ptr [esi + 0x24] */ 10182 MEM32(esi + 0xC) = edx; /* 0x30011293: mov dword ptr [esi + 0xc], edx */ 10183 PUSH32(esp, ecx); /* 0x30011296: push ecx */ 10184 MEM32(ebx + 0x8) = edx; /* 0x30011297: mov dword ptr [ebx + 8], edx */ 10185 MEM32(esi + 0x10) = edi; /* 0x3001129A: mov dword ptr [esi + 0x10], edi */ 10186 MEM32(ebx + 0xC) = edi; /* 0x3001129D: mov dword ptr [ebx + 0xc], edi */ 10187 RECOMP_ICALL(0x30018080u); /* 0x300112A0: call 0x30018080 */ /* not lifted */ 10188 RECOMP_FLAGS_IN(); 10189 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10190 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10191 esp = esp + 0x10u; /* 0x300112A5: add esp, 0x10 */ 10192 _flag_k = FK_ADD; 10193 goto L_300112C0; /* 0x300112A8: jmp 0x300112c0 */ 10194 L_300112AA: 10195 /* cmp edi, MEM32(esi + 0x10) */ /* 0x300112AA: cmp edi, dword ptr [esi + 0x10] */ 10196 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x10)); 10197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10198 _flag_k = FK_CMP; 10199 if (CMP_EQ(_flag_a, _flag_b)) goto L_300112C0; /* 0x300112AD: je 0x300112c0 */ 10200 L_300112AF: 10201 edx = MEM32(edi); /* 0x300112AF: mov edx, dword ptr [edi] */ 10202 PUSH32(esp, edx); /* 0x300112B1: push edx */ 10203 RECOMP_ICALL(0x30018080u); /* 0x300112B2: call 0x30018080 */ /* not lifted */ 10204 RECOMP_FLAGS_IN(); 10205 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10207 esp = esp + 4; /* 0x300112B7: add esp, 4 */ 10208 _flag_k = FK_ADD; 10209 MEM32(edi) = 0; /* 0x300112BA: mov dword ptr [edi], 0 */ 10210 L_300112C0: 10211 eax = MEM32(esi + 0x2C); /* 0x300112C0: mov eax, dword ptr [esi + 0x2c] */ 10212 /* test eax, eax */ /* 0x300112C3: test eax, eax */ 10213 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10214 _cf = 0; 10215 _flag_k = FK_TEST; 10216 RECOMP_BACKEDGE(); 10217 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011216; /* 0x300112C5: jne 0x30011216 */ 10218 L_300112CB: 10219 edi = POP32_VAL(esp); /* 0x300112CB: pop edi */ 10220 ebx = POP32_VAL(esp); /* 0x300112CC: pop ebx */ 10221 esi = POP32_VAL(esp); /* 0x300112CD: pop esi */ 10222 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300112CE: ret */ 10223 RECOMP_REGS_OUT(); 10224 } 10225 10226 void sub_300112C0(void) { 10227 int _fpu_cmp = 0; 10228 uint32_t _cf = 0; 10229 int _df = 1; 10230 uint32_t _flag_k = FK_NONE; 10231 uint32_t _flag_a = 0, _flag_b = 0; 10232 uint32_t _itail_tgt = 0; 10233 RECOMP_REGS_LOCALS 10234 RECOMP_ENTER(0x300112C0u); 10235 10236 goto L_300112C0; 10237 L_30011216: 10238 eax = MEM32(esi + 0xC); /* 0x30011216: mov eax, dword ptr [esi + 0xc] */ 10239 ecx = MEM32(esi + 0x8); /* 0x30011219: mov ecx, dword ptr [esi + 8] */ 10240 edi = MEM32(esi + 0x10); /* 0x3001121C: mov edi, dword ptr [esi + 0x10] */ 10241 /* cmp eax, ecx */ /* 0x3001121F: cmp eax, ecx */ 10242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10244 _flag_k = FK_CMP; 10245 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001124E; /* 0x30011221: je 0x3001124e */ 10246 L_30011223: 10247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 10248 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10249 eax = eax + 4; /* 0x30011223: add eax, 4 */ 10250 _flag_k = FK_ADD; 10251 /* cmp eax, ecx */ /* 0x30011226: cmp eax, ecx */ 10252 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10254 _flag_k = FK_CMP; 10255 MEM32(esi + 0xC) = eax; /* 0x30011228: mov dword ptr [esi + 0xc], eax */ 10256 if (CMP_NE(_flag_a, _flag_b)) goto L_3001124E; /* 0x3001122B: jne 0x3001124e */ 10257 L_3001122D: 10258 eax = MEM32(esi + 0x10); /* 0x3001122D: mov eax, dword ptr [esi + 0x10] */ 10259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 10260 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10261 eax = eax + 4; /* 0x30011230: add eax, 4 */ 10262 _flag_k = FK_ADD; 10263 /* cmp MEM32(eax), 0 */ /* 0x30011233: cmp dword ptr [eax], 0 */ 10264 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 10265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10266 _flag_k = FK_CMP; 10267 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001124E; /* 0x30011236: je 0x3001124e */ 10268 L_30011238: 10269 MEM32(esi + 0x10) = eax; /* 0x30011238: mov dword ptr [esi + 0x10], eax */ 10270 eax = MEM32(eax); /* 0x3001123B: mov eax, dword ptr [eax] */ 10271 MEM32(esi + 0x4) = eax; /* 0x3001123D: mov dword ptr [esi + 4], eax */ 10272 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 10273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10274 eax = eax + 0x1000u; /* 0x30011240: add eax, 0x1000 */ 10275 _flag_k = FK_ADD; 10276 MEM32(esi + 0x8) = eax; /* 0x30011245: mov dword ptr [esi + 8], eax */ 10277 eax = MEM32(esi + 0x4); /* 0x30011248: mov eax, dword ptr [esi + 4] */ 10278 MEM32(esi + 0xC) = eax; /* 0x3001124B: mov dword ptr [esi + 0xc], eax */ 10279 L_3001124E: 10280 eax = MEM32(esi + 0x2C); /* 0x3001124E: mov eax, dword ptr [esi + 0x2c] */ 10281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10282 eax = eax - 1; /* 0x30011251: dec eax */ 10283 _flag_k = FK_DEC; 10284 MEM32(esi + 0x2C) = eax; /* 0x30011252: mov dword ptr [esi + 0x2c], eax */ 10285 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_300112AA; /* 0x30011255: jne 0x300112aa */ 10286 L_30011257: 10287 ecx = MEM32(esi + 0x10); /* 0x30011257: mov ecx, dword ptr [esi + 0x10] */ 10288 edx = MEM32(ecx + (-0x4)); /* 0x3001125A: mov edx, dword ptr [ecx - 4] */ 10289 PUSH32(esp, edx); /* 0x3001125D: push edx */ 10290 RECOMP_ICALL(0x30018080u); /* 0x3001125E: call 0x30018080 */ /* not lifted */ 10291 RECOMP_FLAGS_IN(); 10292 eax = MEM32(esi + 0x10); /* 0x30011263: mov eax, dword ptr [esi + 0x10] */ 10293 ecx = MEM32(eax); /* 0x30011266: mov ecx, dword ptr [eax] */ 10294 PUSH32(esp, ecx); /* 0x30011268: push ecx */ 10295 RECOMP_ICALL(0x30018080u); /* 0x30011269: call 0x30018080 */ /* not lifted */ 10296 RECOMP_FLAGS_IN(); 10297 edx = MEM32(esi + 0x10); /* 0x3001126E: mov edx, dword ptr [esi + 0x10] */ 10298 eax = MEM32(edx + 0x4); /* 0x30011271: mov eax, dword ptr [edx + 4] */ 10299 PUSH32(esp, eax); /* 0x30011274: push eax */ 10300 RECOMP_ICALL(0x30018080u); /* 0x30011275: call 0x30018080 */ /* not lifted */ 10301 RECOMP_FLAGS_IN(); 10302 ebx = esi + 0x14; /* 0x3001127A: lea ebx, [esi + 0x14] */ 10303 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10304 eax = 0; /* 0x3001127D: xor eax, eax */ 10305 _cf = 0; 10306 _flag_k = FK_TEST; 10307 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10308 ecx = 0; /* 0x3001127F: xor ecx, ecx */ 10309 _cf = 0; 10310 _flag_k = FK_TEST; 10311 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10312 edx = 0; /* 0x30011281: xor edx, edx */ 10313 _cf = 0; 10314 _flag_k = FK_TEST; 10315 MEM32(ebx) = eax; /* 0x30011283: mov dword ptr [ebx], eax */ 10316 MEM32(esi + 0x4) = eax; /* 0x30011285: mov dword ptr [esi + 4], eax */ 10317 MEM32(esi + 0x8) = ecx; /* 0x30011288: mov dword ptr [esi + 8], ecx */ 10318 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10319 edi = 0; /* 0x3001128B: xor edi, edi */ 10320 _cf = 0; 10321 _flag_k = FK_TEST; 10322 MEM32(ebx + 0x4) = ecx; /* 0x3001128D: mov dword ptr [ebx + 4], ecx */ 10323 ecx = MEM32(esi + 0x24); /* 0x30011290: mov ecx, dword ptr [esi + 0x24] */ 10324 MEM32(esi + 0xC) = edx; /* 0x30011293: mov dword ptr [esi + 0xc], edx */ 10325 PUSH32(esp, ecx); /* 0x30011296: push ecx */ 10326 MEM32(ebx + 0x8) = edx; /* 0x30011297: mov dword ptr [ebx + 8], edx */ 10327 MEM32(esi + 0x10) = edi; /* 0x3001129A: mov dword ptr [esi + 0x10], edi */ 10328 MEM32(ebx + 0xC) = edi; /* 0x3001129D: mov dword ptr [ebx + 0xc], edi */ 10329 RECOMP_ICALL(0x30018080u); /* 0x300112A0: call 0x30018080 */ /* not lifted */ 10330 RECOMP_FLAGS_IN(); 10331 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10333 esp = esp + 0x10u; /* 0x300112A5: add esp, 0x10 */ 10334 _flag_k = FK_ADD; 10335 goto L_300112C0; /* 0x300112A8: jmp 0x300112c0 */ 10336 L_300112AA: 10337 /* cmp edi, MEM32(esi + 0x10) */ /* 0x300112AA: cmp edi, dword ptr [esi + 0x10] */ 10338 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x10)); 10339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10340 _flag_k = FK_CMP; 10341 if (CMP_EQ(_flag_a, _flag_b)) goto L_300112C0; /* 0x300112AD: je 0x300112c0 */ 10342 L_300112AF: 10343 edx = MEM32(edi); /* 0x300112AF: mov edx, dword ptr [edi] */ 10344 PUSH32(esp, edx); /* 0x300112B1: push edx */ 10345 RECOMP_ICALL(0x30018080u); /* 0x300112B2: call 0x30018080 */ /* not lifted */ 10346 RECOMP_FLAGS_IN(); 10347 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10348 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10349 esp = esp + 4; /* 0x300112B7: add esp, 4 */ 10350 _flag_k = FK_ADD; 10351 MEM32(edi) = 0; /* 0x300112BA: mov dword ptr [edi], 0 */ 10352 L_300112C0: 10353 eax = MEM32(esi + 0x2C); /* 0x300112C0: mov eax, dword ptr [esi + 0x2c] */ 10354 /* test eax, eax */ /* 0x300112C3: test eax, eax */ 10355 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10356 _cf = 0; 10357 _flag_k = FK_TEST; 10358 RECOMP_BACKEDGE(); 10359 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011216; /* 0x300112C5: jne 0x30011216 */ 10360 L_300112CB: 10361 edi = POP32_VAL(esp); /* 0x300112CB: pop edi */ 10362 ebx = POP32_VAL(esp); /* 0x300112CC: pop ebx */ 10363 esi = POP32_VAL(esp); /* 0x300112CD: pop esi */ 10364 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300112CE: ret */ 10365 RECOMP_REGS_OUT(); 10366 } 10367 10368 void sub_300112D0(void) { 10369 int _fpu_cmp = 0; 10370 uint32_t _cf = 0; 10371 int _df = 1; 10372 uint32_t _flag_k = FK_NONE; 10373 uint32_t _flag_a = 0, _flag_b = 0; 10374 uint32_t _itail_tgt = 0; 10375 RECOMP_REGS_LOCALS 10376 RECOMP_ENTER(0x300112D0u); 10377 10378 L_300112D0: 10379 PUSH32(esp, ebp); /* 0x300112D0: push ebp */ 10380 ebp = esp; /* 0x300112D1: mov ebp, esp */ 10381 ecx = MEM32(ebp + 0x8); /* 0x300112D3: mov ecx, dword ptr [ebp + 8] */ 10382 edx = MEM32(ebp + 0xC); /* 0x300112D6: mov edx, dword ptr [ebp + 0xc] */ 10383 fp_push(*(float*)&MEM32(ecx)); /* 0x300112D9: fld dword ptr [ecx] */ 10384 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edx)); /* 0x300112DB: fcomp dword ptr [edx] */ 10385 fp_pop(); 10386 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300112DD: fnstsw ax */ 10387 /* test HI8(eax), 1 */ /* 0x300112DF: test ah, 1 */ 10388 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10389 _cf = 0; 10390 _flag_k = FK_NARROW(FK_TEST, 24); 10391 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001131C; /* 0x300112E2: jne 0x3001131c */ 10392 L_300112E4: 10393 fp_push(*(float*)&MEM32(ecx)); /* 0x300112E4: fld dword ptr [ecx] */ 10394 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edx)); /* 0x300112E6: fcomp dword ptr [edx] */ 10395 fp_pop(); 10396 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300112E8: fnstsw ax */ 10397 /* test HI8(eax), 0x40u */ /* 0x300112EA: test ah, 0x40 */ 10398 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 10399 _cf = 0; 10400 _flag_k = FK_NARROW(FK_TEST, 24); 10401 if (TEST_Z(_flag_a, _flag_b)) goto L_30011316; /* 0x300112ED: je 0x30011316 */ 10402 L_300112EF: 10403 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x300112EF: fld dword ptr [ecx + 4] */ 10404 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edx + 0x4)); /* 0x300112F2: fcomp dword ptr [edx + 4] */ 10405 fp_pop(); 10406 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x300112F5: fnstsw ax */ 10407 /* test HI8(eax), 1 */ /* 0x300112F7: test ah, 1 */ 10408 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10409 _cf = 0; 10410 _flag_k = FK_NARROW(FK_TEST, 24); 10411 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001131C; /* 0x300112FA: jne 0x3001131c */ 10412 L_300112FC: 10413 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x300112FC: fld dword ptr [ecx + 4] */ 10414 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edx + 0x4)); /* 0x300112FF: fcomp dword ptr [edx + 4] */ 10415 fp_pop(); 10416 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30011302: fnstsw ax */ 10417 /* test HI8(eax), 0x40u */ /* 0x30011304: test ah, 0x40 */ 10418 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 10419 _cf = 0; 10420 _flag_k = FK_NARROW(FK_TEST, 24); 10421 if (TEST_Z(_flag_a, _flag_b)) goto L_30011316; /* 0x30011307: je 0x30011316 */ 10422 L_30011309: 10423 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x30011309: fld dword ptr [ecx + 8] */ 10424 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edx + 0x8)); /* 0x3001130C: fcomp dword ptr [edx + 8] */ 10425 fp_pop(); 10426 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3001130F: fnstsw ax */ 10427 /* test HI8(eax), 1 */ /* 0x30011311: test ah, 1 */ 10428 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10429 _cf = 0; 10430 _flag_k = FK_NARROW(FK_TEST, 24); 10431 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001131C; /* 0x30011314: jne 0x3001131c */ 10432 L_30011316: 10433 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10434 eax = 0; /* 0x30011316: xor eax, eax */ 10435 _cf = 0; 10436 _flag_k = FK_TEST; 10437 ebp = POP32_VAL(esp); /* 0x30011318: pop ebp */ 10438 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30011319: ret 8 */ 10439 L_3001131C: 10440 eax = 1; /* 0x3001131C: mov eax, 1 */ 10441 ebp = POP32_VAL(esp); /* 0x30011321: pop ebp */ 10442 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30011322: ret 8 */ 10443 RECOMP_REGS_OUT(); 10444 } 10445 10446 void sub_30011330(void) { 10447 int _fpu_cmp = 0; 10448 uint32_t _cf = 0; 10449 int _df = 1; 10450 uint32_t _flag_k = FK_NONE; 10451 uint32_t _flag_a = 0, _flag_b = 0; 10452 uint32_t _itail_tgt = 0; 10453 RECOMP_REGS_LOCALS 10454 RECOMP_ENTER(0x30011330u); 10455 10456 L_30011330: 10457 PUSH32(esp, ebp); /* 0x30011330: push ebp */ 10458 ebp = esp; /* 0x30011331: mov ebp, esp */ 10459 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 10460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10461 esp = esp - 0x28u; /* 0x30011333: sub esp, 0x28 */ 10462 _flag_k = FK_CMP; 10463 PUSH32(esp, ebx); /* 0x30011336: push ebx */ 10464 ebx = ecx; /* 0x30011337: mov ebx, ecx */ 10465 PUSH32(esp, esi); /* 0x30011339: push esi */ 10466 PUSH32(esp, edi); /* 0x3001133A: push edi */ 10467 ecx = MEM32(ebx + 0x4); /* 0x3001133B: mov ecx, dword ptr [ebx + 4] */ 10468 edx = MEM32(ebx + 0x8); /* 0x3001133E: mov edx, dword ptr [ebx + 8] */ 10469 edi = MEM32(ebp + 0xC); /* 0x30011341: mov edi, dword ptr [ebp + 0xc] */ 10470 MEM32(ebp + (-0x8)) = ecx; /* 0x30011344: mov dword ptr [ebp - 8], ecx */ 10471 esi = MEM32(ecx + 0x4); /* 0x30011347: mov esi, dword ptr [ecx + 4] */ 10472 SET_LO8(eax, 1); /* 0x3001134A: mov al, 1 */ 10473 /* cmp esi, edx */ /* 0x3001134C: cmp esi, edx */ 10474 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 10475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10476 _flag_k = FK_CMP; 10477 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001139E; /* 0x3001134E: je 0x3001139e */ 10478 L_30011350: 10479 fp_push(*(float*)&MEM32(edi)); /* 0x30011350: fld dword ptr [edi] */ 10480 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x30011352: fcomp dword ptr [esi + 0xc] */ 10481 fp_pop(); 10482 MEM32(ebp + (-0x8)) = esi; /* 0x30011355: mov dword ptr [ebp - 8], esi */ 10483 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30011358: fnstsw ax */ 10484 /* test HI8(eax), 1 */ /* 0x3001135A: test ah, 1 */ 10485 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10486 _cf = 0; 10487 _flag_k = FK_NARROW(FK_TEST, 24); 10488 if (TEST_NZ(_flag_a, _flag_b)) goto L_300113C3; /* 0x3001135D: jne 0x300113c3 */ 10489 L_3001135F: 10490 fp_push(*(float*)&MEM32(edi)); /* 0x3001135F: fld dword ptr [edi] */ 10491 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x30011361: fcomp dword ptr [esi + 0xc] */ 10492 fp_pop(); 10493 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30011364: fnstsw ax */ 10494 /* test HI8(eax), 0x40u */ /* 0x30011366: test ah, 0x40 */ 10495 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 10496 _cf = 0; 10497 _flag_k = FK_NARROW(FK_TEST, 24); 10498 if (TEST_Z(_flag_a, _flag_b)) goto L_30011392; /* 0x30011369: je 0x30011392 */ 10499 L_3001136B: 10500 fp_push(*(float*)&MEM32(edi + 0x4)); /* 0x3001136B: fld dword ptr [edi + 4] */ 10501 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x10)); /* 0x3001136E: fcomp dword ptr [esi + 0x10] */ 10502 fp_pop(); 10503 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30011371: fnstsw ax */ 10504 /* test HI8(eax), 1 */ /* 0x30011373: test ah, 1 */ 10505 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10506 _cf = 0; 10507 _flag_k = FK_NARROW(FK_TEST, 24); 10508 if (TEST_NZ(_flag_a, _flag_b)) goto L_300113C3; /* 0x30011376: jne 0x300113c3 */ 10509 L_30011378: 10510 fp_push(*(float*)&MEM32(edi + 0x4)); /* 0x30011378: fld dword ptr [edi + 4] */ 10511 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x10)); /* 0x3001137B: fcomp dword ptr [esi + 0x10] */ 10512 fp_pop(); 10513 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3001137E: fnstsw ax */ 10514 /* test HI8(eax), 0x40u */ /* 0x30011380: test ah, 0x40 */ 10515 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 10516 _cf = 0; 10517 _flag_k = FK_NARROW(FK_TEST, 24); 10518 if (TEST_Z(_flag_a, _flag_b)) goto L_30011392; /* 0x30011383: je 0x30011392 */ 10519 L_30011385: 10520 fp_push(*(float*)&MEM32(edi + 0x8)); /* 0x30011385: fld dword ptr [edi + 8] */ 10521 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x14)); /* 0x30011388: fcomp dword ptr [esi + 0x14] */ 10522 fp_pop(); 10523 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3001138B: fnstsw ax */ 10524 /* test HI8(eax), 1 */ /* 0x3001138D: test ah, 1 */ 10525 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10526 _cf = 0; 10527 _flag_k = FK_NARROW(FK_TEST, 24); 10528 if (TEST_NZ(_flag_a, _flag_b)) goto L_300113C3; /* 0x30011390: jne 0x300113c3 */ 10529 L_30011392: 10530 esi = MEM32(esi + 0x8); /* 0x30011392: mov esi, dword ptr [esi + 8] */ 10531 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 10532 SET_LO8(eax, 0); /* 0x30011395: xor al, al */ 10533 _cf = 0; 10534 _flag_k = FK_NARROW(FK_TEST, 24); 10535 L_30011397: 10536 /* cmp esi, edx */ /* 0x30011397: cmp esi, edx */ 10537 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 10538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10539 _flag_k = FK_CMP; 10540 RECOMP_BACKEDGE(); 10541 if (CMP_NE(_flag_a, _flag_b)) goto L_30011350; /* 0x30011399: jne 0x30011350 */ 10542 L_3001139B: 10543 ecx = MEM32(ebp + (-0x8)); /* 0x3001139B: mov ecx, dword ptr [ebp - 8] */ 10544 L_3001139E: 10545 SET_LO8(edx, MEM8(ebx + 0xC)); /* 0x3001139E: mov dl, byte ptr [ebx + 0xc] */ 10546 /* test LO8(edx), LO8(edx) */ /* 0x300113A1: test dl, dl */ 10547 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10548 _cf = 0; 10549 _flag_k = FK_NARROW(FK_TEST, 24); 10550 if (TEST_Z(_flag_a, _flag_b)) goto L_300113C9; /* 0x300113A3: je 0x300113c9 */ 10551 L_300113A5: 10552 PUSH32(esp, edi); /* 0x300113A5: push edi */ 10553 PUSH32(esp, ecx); /* 0x300113A6: push ecx */ 10554 eax = ebp + (-0x10); /* 0x300113A7: lea eax, [ebp - 0x10] */ 10555 PUSH32(esp, esi); /* 0x300113AA: push esi */ 10556 PUSH32(esp, eax); /* 0x300113AB: push eax */ 10557 ecx = ebx; /* 0x300113AC: mov ecx, ebx */ 10558 RECOMP_ICALL(0x30012BE0u); /* 0x300113AE: call 0x30012be0 */ /* not lifted */ 10559 RECOMP_FLAGS_IN(); 10560 eax = MEM32(eax); /* 0x300113B3: mov eax, dword ptr [eax] */ 10561 MEM8(ebp + (-0x14)) = (uint8_t)(1); /* 0x300113B5: mov byte ptr [ebp - 0x14], 1 */ 10562 ecx = eax; /* 0x300113B9: mov ecx, eax */ 10563 eax = MEM32(ebp + (-0x14)); /* 0x300113BB: mov eax, dword ptr [ebp - 0x14] */ 10564 goto L_30011479; /* 0x300113BE: jmp 0x30011479 */ 10565 L_300113C3: 10566 esi = MEM32(esi); /* 0x300113C3: mov esi, dword ptr [esi] */ 10567 SET_LO8(eax, 1); /* 0x300113C5: mov al, 1 */ 10568 RECOMP_BACKEDGE(); 10569 goto L_30011397; /* 0x300113C7: jmp 0x30011397 */ 10570 L_300113C9: 10571 edx = ecx; /* 0x300113C9: mov edx, ecx */ 10572 /* test LO8(eax), LO8(eax) */ /* 0x300113CB: test al, al */ 10573 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10574 _cf = 0; 10575 _flag_k = FK_NARROW(FK_TEST, 24); 10576 MEM32(ebp + (-0xC)) = edx; /* 0x300113CD: mov dword ptr [ebp - 0xc], edx */ 10577 if (TEST_Z(_flag_a, _flag_b)) goto L_30011405; /* 0x300113D0: je 0x30011405 */ 10578 L_300113D2: 10579 eax = MEM32(ebx + 0x4); /* 0x300113D2: mov eax, dword ptr [ebx + 4] */ 10580 /* cmp ecx, MEM32(eax) */ /* 0x300113D5: cmp ecx, dword ptr [eax] */ 10581 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 10582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10583 _flag_k = FK_CMP; 10584 if (CMP_NE(_flag_a, _flag_b)) goto L_300113F7; /* 0x300113D7: jne 0x300113f7 */ 10585 L_300113D9: 10586 PUSH32(esp, edi); /* 0x300113D9: push edi */ 10587 PUSH32(esp, ecx); /* 0x300113DA: push ecx */ 10588 ecx = ebp + (-0x14); /* 0x300113DB: lea ecx, [ebp - 0x14] */ 10589 PUSH32(esp, esi); /* 0x300113DE: push esi */ 10590 PUSH32(esp, ecx); /* 0x300113DF: push ecx */ 10591 ecx = ebx; /* 0x300113E0: mov ecx, ebx */ 10592 RECOMP_ICALL(0x30012BE0u); /* 0x300113E2: call 0x30012be0 */ /* not lifted */ 10593 RECOMP_FLAGS_IN(); 10594 eax = MEM32(eax); /* 0x300113E7: mov eax, dword ptr [eax] */ 10595 MEM8(ebp + (-0x14)) = (uint8_t)(1); /* 0x300113E9: mov byte ptr [ebp - 0x14], 1 */ 10596 ecx = eax; /* 0x300113ED: mov ecx, eax */ 10597 eax = MEM32(ebp + (-0x14)); /* 0x300113EF: mov eax, dword ptr [ebp - 0x14] */ 10598 goto L_30011479; /* 0x300113F2: jmp 0x30011479 */ 10599 L_300113F7: 10600 ecx = ebp + (-0xC); /* 0x300113F7: lea ecx, [ebp - 0xc] */ 10601 RECOMP_ICALL(0x30013470u); /* 0x300113FA: call 0x30013470 */ /* not lifted */ 10602 RECOMP_FLAGS_IN(); 10603 edx = MEM32(ebp + (-0xC)); /* 0x300113FF: mov edx, dword ptr [ebp - 0xc] */ 10604 ecx = MEM32(ebp + (-0x8)); /* 0x30011402: mov ecx, dword ptr [ebp - 8] */ 10605 L_30011405: 10606 fp_push(*(float*)&MEM32(edx + 0xC)); /* 0x30011405: fld dword ptr [edx + 0xc] */ 10607 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi)); /* 0x30011408: fcomp dword ptr [edi] */ 10608 fp_pop(); 10609 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3001140A: fnstsw ax */ 10610 /* test HI8(eax), 1 */ /* 0x3001140C: test ah, 1 */ 10611 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10612 _cf = 0; 10613 _flag_k = FK_NARROW(FK_TEST, 24); 10614 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011444; /* 0x3001140F: jne 0x30011444 */ 10615 L_30011411: 10616 fp_push(*(float*)&MEM32(edx + 0xC)); /* 0x30011411: fld dword ptr [edx + 0xc] */ 10617 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi)); /* 0x30011414: fcomp dword ptr [edi] */ 10618 fp_pop(); 10619 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30011416: fnstsw ax */ 10620 /* test HI8(eax), 0x40u */ /* 0x30011418: test ah, 0x40 */ 10621 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 10622 _cf = 0; 10623 _flag_k = FK_NARROW(FK_TEST, 24); 10624 if (TEST_Z(_flag_a, _flag_b)) goto L_30011460; /* 0x3001141B: je 0x30011460 */ 10625 L_3001141D: 10626 fp_push(*(float*)&MEM32(edx + 0x10)); /* 0x3001141D: fld dword ptr [edx + 0x10] */ 10627 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x4)); /* 0x30011420: fcomp dword ptr [edi + 4] */ 10628 fp_pop(); 10629 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30011423: fnstsw ax */ 10630 /* test HI8(eax), 1 */ /* 0x30011425: test ah, 1 */ 10631 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10632 _cf = 0; 10633 _flag_k = FK_NARROW(FK_TEST, 24); 10634 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011444; /* 0x30011428: jne 0x30011444 */ 10635 L_3001142A: 10636 fp_push(*(float*)&MEM32(edx + 0x10)); /* 0x3001142A: fld dword ptr [edx + 0x10] */ 10637 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x4)); /* 0x3001142D: fcomp dword ptr [edi + 4] */ 10638 fp_pop(); 10639 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30011430: fnstsw ax */ 10640 /* test HI8(eax), 0x40u */ /* 0x30011432: test ah, 0x40 */ 10641 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 10642 _cf = 0; 10643 _flag_k = FK_NARROW(FK_TEST, 24); 10644 if (TEST_Z(_flag_a, _flag_b)) goto L_30011460; /* 0x30011435: je 0x30011460 */ 10645 L_30011437: 10646 fp_push(*(float*)&MEM32(edx + 0x14)); /* 0x30011437: fld dword ptr [edx + 0x14] */ 10647 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x8)); /* 0x3001143A: fcomp dword ptr [edi + 8] */ 10648 fp_pop(); 10649 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3001143D: fnstsw ax */ 10650 /* test HI8(eax), 1 */ /* 0x3001143F: test ah, 1 */ 10651 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10652 _cf = 0; 10653 _flag_k = FK_NARROW(FK_TEST, 24); 10654 if (TEST_Z(_flag_a, _flag_b)) goto L_30011460; /* 0x30011442: je 0x30011460 */ 10655 L_30011444: 10656 edx = ebp + 0xF; /* 0x30011444: lea edx, [ebp + 0xf] */ 10657 eax = ebp + (-0x8); /* 0x30011447: lea eax, [ebp - 8] */ 10658 PUSH32(esp, edx); /* 0x3001144A: push edx */ 10659 PUSH32(esp, edi); /* 0x3001144B: push edi */ 10660 PUSH32(esp, ecx); /* 0x3001144C: push ecx */ 10661 PUSH32(esp, esi); /* 0x3001144D: push esi */ 10662 PUSH32(esp, eax); /* 0x3001144E: push eax */ 10663 ecx = ebx; /* 0x3001144F: mov ecx, ebx */ 10664 MEM8(ebp + 0xF) = (uint8_t)(1); /* 0x30011451: mov byte ptr [ebp + 0xf], 1 */ 10665 RECOMP_ICALL(0x30012BE0u); /* 0x30011455: call 0x30012be0 */ /* not lifted */ 10666 RECOMP_FLAGS_IN(); 10667 PUSH32(esp, eax); /* 0x3001145A: push eax */ 10668 ecx = ebp + (-0x20); /* 0x3001145B: lea ecx, [ebp - 0x20] */ 10669 goto L_3001146F; /* 0x3001145E: jmp 0x3001146f */ 10670 L_30011460: 10671 ecx = ebp + (-0x1); /* 0x30011460: lea ecx, [ebp - 1] */ 10672 edx = ebp + (-0xC); /* 0x30011463: lea edx, [ebp - 0xc] */ 10673 PUSH32(esp, ecx); /* 0x30011466: push ecx */ 10674 MEM8(ebp + (-0x1)) = (uint8_t)(0); /* 0x30011467: mov byte ptr [ebp - 1], 0 */ 10675 PUSH32(esp, edx); /* 0x3001146B: push edx */ 10676 ecx = ebp + (-0x28); /* 0x3001146C: lea ecx, [ebp - 0x28] */ 10677 L_3001146F: 10678 RECOMP_ICALL(0x30012B90u); /* 0x3001146F: call 0x30012b90 */ /* not lifted */ 10679 RECOMP_FLAGS_IN(); 10680 ecx = MEM32(eax); /* 0x30011474: mov ecx, dword ptr [eax] */ 10681 eax = MEM32(eax + 0x4); /* 0x30011476: mov eax, dword ptr [eax + 4] */ 10682 L_30011479: 10683 MEM8(ebp + (-0x14)) = (uint8_t)(LO8(eax)); /* 0x30011479: mov byte ptr [ebp - 0x14], al */ 10684 eax = MEM32(ebp + 0x8); /* 0x3001147C: mov eax, dword ptr [ebp + 8] */ 10685 edi = POP32_VAL(esp); /* 0x3001147F: pop edi */ 10686 esi = POP32_VAL(esp); /* 0x30011480: pop esi */ 10687 MEM32(eax) = ecx; /* 0x30011481: mov dword ptr [eax], ecx */ 10688 ecx = MEM32(ebp + (-0x14)); /* 0x30011483: mov ecx, dword ptr [ebp - 0x14] */ 10689 MEM32(eax + 0x4) = ecx; /* 0x30011486: mov dword ptr [eax + 4], ecx */ 10690 ebx = POP32_VAL(esp); /* 0x30011489: pop ebx */ 10691 esp = ebp; /* 0x3001148A: mov esp, ebp */ 10692 ebp = POP32_VAL(esp); /* 0x3001148C: pop ebp */ 10693 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001148D: ret 8 */ 10694 RECOMP_REGS_OUT(); 10695 } 10696 10697 void sub_30011479(void) { 10698 int _fpu_cmp = 0; 10699 uint32_t _cf = 0; 10700 int _df = 1; 10701 uint32_t _flag_k = FK_NONE; 10702 uint32_t _flag_a = 0, _flag_b = 0; 10703 uint32_t _itail_tgt = 0; 10704 RECOMP_REGS_LOCALS 10705 RECOMP_ENTER(0x30011479u); 10706 10707 L_30011479: 10708 MEM8(ebp + (-0x14)) = (uint8_t)(LO8(eax)); /* 0x30011479: mov byte ptr [ebp - 0x14], al */ 10709 eax = MEM32(ebp + 0x8); /* 0x3001147C: mov eax, dword ptr [ebp + 8] */ 10710 edi = POP32_VAL(esp); /* 0x3001147F: pop edi */ 10711 esi = POP32_VAL(esp); /* 0x30011480: pop esi */ 10712 MEM32(eax) = ecx; /* 0x30011481: mov dword ptr [eax], ecx */ 10713 ecx = MEM32(ebp + (-0x14)); /* 0x30011483: mov ecx, dword ptr [ebp - 0x14] */ 10714 MEM32(eax + 0x4) = ecx; /* 0x30011486: mov dword ptr [eax + 4], ecx */ 10715 ebx = POP32_VAL(esp); /* 0x30011489: pop ebx */ 10716 esp = ebp; /* 0x3001148A: mov esp, ebp */ 10717 ebp = POP32_VAL(esp); /* 0x3001148C: pop ebp */ 10718 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001148D: ret 8 */ 10719 RECOMP_REGS_OUT(); 10720 } 10721 10722 void sub_30011490(void) { 10723 int _fpu_cmp = 0; 10724 uint32_t _cf = 0; 10725 int _df = 1; 10726 uint32_t _flag_k = FK_NONE; 10727 uint32_t _flag_a = 0, _flag_b = 0; 10728 uint32_t _itail_tgt = 0; 10729 RECOMP_REGS_LOCALS 10730 RECOMP_ENTER(0x30011490u); 10731 10732 L_30011490: 10733 PUSH32(esp, ebp); /* 0x30011490: push ebp */ 10734 ebp = esp; /* 0x30011491: mov ebp, esp */ 10735 eax = MEM32(ebp + 0xC); /* 0x30011493: mov eax, dword ptr [ebp + 0xc] */ 10736 PUSH32(esp, esi); /* 0x30011496: push esi */ 10737 esi = MEM32(0x30019090); /* 0x30011497: mov esi, dword ptr [0x30019090] */ 10738 ecx = MEM32(eax + 0x8); /* 0x3001149D: mov ecx, dword ptr [eax + 8] */ 10739 edx = MEM32(eax + 0x4); /* 0x300114A0: mov edx, dword ptr [eax + 4] */ 10740 eax = MEM32(eax); /* 0x300114A3: mov eax, dword ptr [eax] */ 10741 PUSH32(esp, ecx); /* 0x300114A5: push ecx */ 10742 ecx = MEM32(ebp + 0x8); /* 0x300114A6: mov ecx, dword ptr [ebp + 8] */ 10743 PUSH32(esp, edx); /* 0x300114A9: push edx */ 10744 PUSH32(esp, eax); /* 0x300114AA: push eax */ 10745 RECOMP_ICALL(esi); /* 0x300114AB: call esi */ 10746 RECOMP_FLAGS_IN(); 10747 ecx = eax; /* 0x300114AD: mov ecx, eax */ 10748 RECOMP_ICALL(esi); /* 0x300114AF: call esi */ 10749 RECOMP_FLAGS_IN(); 10750 ecx = eax; /* 0x300114B1: mov ecx, eax */ 10751 RECOMP_ICALL(esi); /* 0x300114B3: call esi */ 10752 RECOMP_FLAGS_IN(); 10753 esi = POP32_VAL(esp); /* 0x300114B5: pop esi */ 10754 ebp = POP32_VAL(esp); /* 0x300114B6: pop ebp */ 10755 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300114B7: ret */ 10756 RECOMP_REGS_OUT(); 10757 } 10758 10759 void sub_300114C0(void) { 10760 int _fpu_cmp = 0; 10761 uint32_t _cf = 0; 10762 int _df = 1; 10763 uint32_t _flag_k = FK_NONE; 10764 uint32_t _flag_a = 0, _flag_b = 0; 10765 uint32_t _itail_tgt = 0; 10766 RECOMP_REGS_LOCALS 10767 RECOMP_ENTER(0x300114C0u); 10768 10769 L_300114C0: 10770 PUSH32(esp, ebp); /* 0x300114C0: push ebp */ 10771 ebp = esp; /* 0x300114C1: mov ebp, esp */ 10772 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10774 esp = esp - 8; /* 0x300114C3: sub esp, 8 */ 10775 _flag_k = FK_CMP; 10776 PUSH32(esp, ebx); /* 0x300114C6: push ebx */ 10777 PUSH32(esp, esi); /* 0x300114C7: push esi */ 10778 esi = ecx; /* 0x300114C8: mov esi, ecx */ 10779 PUSH32(esp, edi); /* 0x300114CA: push edi */ 10780 edi = MEM32(esi + 0x4); /* 0x300114CB: mov edi, dword ptr [esi + 4] */ 10781 ecx = MEM32(esi + 0x10); /* 0x300114CE: mov ecx, dword ptr [esi + 0x10] */ 10782 /* test ecx, ecx */ /* 0x300114D1: test ecx, ecx */ 10783 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10784 _cf = 0; 10785 _flag_k = FK_TEST; 10786 eax = MEM32(edi); /* 0x300114D3: mov eax, dword ptr [edi] */ 10787 MEM32(ebp + (-0x4)) = eax; /* 0x300114D5: mov dword ptr [ebp - 4], eax */ 10788 if (TEST_Z(_flag_a, _flag_b)) goto L_30011531; /* 0x300114D8: je 0x30011531 */ 10789 L_300114DA: 10790 ecx = eax; /* 0x300114DA: mov ecx, eax */ 10791 /* cmp eax, ecx */ /* 0x300114DC: cmp eax, ecx */ 10792 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10794 _flag_k = FK_CMP; 10795 if (CMP_NE(_flag_a, _flag_b)) goto L_30011531; /* 0x300114DE: jne 0x30011531 */ 10796 L_300114E0: 10797 /* cmp edi, edi */ /* 0x300114E0: cmp edi, edi */ 10798 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 10799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10800 _flag_k = FK_CMP; 10801 if (CMP_NE(_flag_a, _flag_b)) goto L_30011531; /* 0x300114E2: jne 0x30011531 */ 10802 L_300114E4: 10803 ebx = MEM32(edi + 0x4); /* 0x300114E4: mov ebx, dword ptr [edi + 4] */ 10804 eax = MEM32(esi + 0x8); /* 0x300114E7: mov eax, dword ptr [esi + 8] */ 10805 /* cmp ebx, eax */ /* 0x300114EA: cmp ebx, eax */ 10806 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 10807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10808 _flag_k = FK_CMP; 10809 edi = ebx; /* 0x300114EC: mov edi, ebx */ 10810 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001150F; /* 0x300114EE: je 0x3001150f */ 10811 L_300114F0: 10812 eax = MEM32(edi + 0x8); /* 0x300114F0: mov eax, dword ptr [edi + 8] */ 10813 ecx = esi; /* 0x300114F3: mov ecx, esi */ 10814 PUSH32(esp, eax); /* 0x300114F5: push eax */ 10815 RECOMP_ICALL(0x30012380u); /* 0x300114F6: call 0x30012380 */ /* not lifted */ 10816 RECOMP_FLAGS_IN(); 10817 edi = MEM32(edi); /* 0x300114FB: mov edi, dword ptr [edi] */ 10818 PUSH32(esp, ebx); /* 0x300114FD: push ebx */ 10819 RECOMP_ICALL(0x30018080u); /* 0x300114FE: call 0x30018080 */ /* not lifted */ 10820 RECOMP_FLAGS_IN(); 10821 eax = MEM32(esi + 0x8); /* 0x30011503: mov eax, dword ptr [esi + 8] */ 10822 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10823 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10824 esp = esp + 4; /* 0x30011506: add esp, 4 */ 10825 _flag_k = FK_ADD; 10826 /* cmp edi, eax */ /* 0x30011509: cmp edi, eax */ 10827 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10829 _flag_k = FK_CMP; 10830 ebx = edi; /* 0x3001150B: mov ebx, edi */ 10831 RECOMP_BACKEDGE(); 10832 if (CMP_NE(_flag_a, _flag_b)) goto L_300114F0; /* 0x3001150D: jne 0x300114f0 */ 10833 L_3001150F: 10834 ecx = MEM32(esi + 0x4); /* 0x3001150F: mov ecx, dword ptr [esi + 4] */ 10835 edx = MEM32(esi + 0x8); /* 0x30011512: mov edx, dword ptr [esi + 8] */ 10836 edi = POP32_VAL(esp); /* 0x30011515: pop edi */ 10837 MEM32(ecx + 0x4) = edx; /* 0x30011516: mov dword ptr [ecx + 4], edx */ 10838 eax = MEM32(esi + 0x4); /* 0x30011519: mov eax, dword ptr [esi + 4] */ 10839 MEM32(esi + 0x10) = 0; /* 0x3001151C: mov dword ptr [esi + 0x10], 0 */ 10840 MEM32(eax) = eax; /* 0x30011523: mov dword ptr [eax], eax */ 10841 esi = MEM32(esi + 0x4); /* 0x30011525: mov esi, dword ptr [esi + 4] */ 10842 MEM32(esi + 0x8) = esi; /* 0x30011528: mov dword ptr [esi + 8], esi */ 10843 esi = POP32_VAL(esp); /* 0x3001152B: pop esi */ 10844 ebx = POP32_VAL(esp); /* 0x3001152C: pop ebx */ 10845 esp = ebp; /* 0x3001152D: mov esp, ebp */ 10846 ebp = POP32_VAL(esp); /* 0x3001152F: pop ebp */ 10847 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30011530: ret */ 10848 L_30011531: 10849 /* cmp eax, edi */ /* 0x30011531: cmp eax, edi */ 10850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10852 _flag_k = FK_CMP; 10853 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011552; /* 0x30011533: je 0x30011552 */ 10854 L_30011535: 10855 ecx = ebp + (-0x4); /* 0x30011535: lea ecx, [ebp - 4] */ 10856 ebx = eax; /* 0x30011538: mov ebx, eax */ 10857 RECOMP_ICALL(0x30011CD0u); /* 0x3001153A: call 0x30011cd0 */ /* not lifted */ 10858 RECOMP_FLAGS_IN(); 10859 eax = ebp + (-0x8); /* 0x3001153F: lea eax, [ebp - 8] */ 10860 PUSH32(esp, ebx); /* 0x30011542: push ebx */ 10861 PUSH32(esp, eax); /* 0x30011543: push eax */ 10862 ecx = esi; /* 0x30011544: mov ecx, esi */ 10863 RECOMP_ICALL(0x30011FC0u); /* 0x30011546: call 0x30011fc0 */ /* not lifted */ 10864 RECOMP_FLAGS_IN(); 10865 eax = MEM32(ebp + (-0x4)); /* 0x3001154B: mov eax, dword ptr [ebp - 4] */ 10866 /* cmp eax, edi */ /* 0x3001154E: cmp eax, edi */ 10867 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10869 _flag_k = FK_CMP; 10870 RECOMP_BACKEDGE(); 10871 if (CMP_NE(_flag_a, _flag_b)) goto L_30011535; /* 0x30011550: jne 0x30011535 */ 10872 L_30011552: 10873 edi = POP32_VAL(esp); /* 0x30011552: pop edi */ 10874 esi = POP32_VAL(esp); /* 0x30011553: pop esi */ 10875 ebx = POP32_VAL(esp); /* 0x30011554: pop ebx */ 10876 esp = ebp; /* 0x30011555: mov esp, ebp */ 10877 ebp = POP32_VAL(esp); /* 0x30011557: pop ebp */ 10878 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30011558: ret */ 10879 RECOMP_REGS_OUT(); 10880 } 10881 10882 void sub_30011560(void) { 10883 int _fpu_cmp = 0; 10884 uint32_t _cf = 0; 10885 int _df = 1; 10886 uint32_t _flag_k = FK_NONE; 10887 uint32_t _flag_a = 0, _flag_b = 0; 10888 uint32_t _itail_tgt = 0; 10889 RECOMP_REGS_LOCALS 10890 RECOMP_ENTER(0x30011560u); 10891 10892 L_30011560: 10893 PUSH32(esp, ebp); /* 0x30011560: push ebp */ 10894 ebp = esp; /* 0x30011561: mov ebp, esp */ 10895 eax = ecx; /* 0x30011563: mov eax, ecx */ 10896 PUSH32(esp, esi); /* 0x30011565: push esi */ 10897 ecx = MEM32(ebp + 0x8); /* 0x30011566: mov ecx, dword ptr [ebp + 8] */ 10898 edx = eax; /* 0x30011569: mov edx, eax */ 10899 esi = MEM32(ecx); /* 0x3001156B: mov esi, dword ptr [ecx] */ 10900 MEM32(edx) = esi; /* 0x3001156D: mov dword ptr [edx], esi */ 10901 esi = MEM32(ecx + 0x4); /* 0x3001156F: mov esi, dword ptr [ecx + 4] */ 10902 MEM32(edx + 0x4) = esi; /* 0x30011572: mov dword ptr [edx + 4], esi */ 10903 esi = POP32_VAL(esp); /* 0x30011575: pop esi */ 10904 ecx = MEM32(ecx + 0x8); /* 0x30011576: mov ecx, dword ptr [ecx + 8] */ 10905 MEM32(edx + 0x8) = ecx; /* 0x30011579: mov dword ptr [edx + 8], ecx */ 10906 edx = MEM32(ebp + 0xC); /* 0x3001157C: mov edx, dword ptr [ebp + 0xc] */ 10907 ecx = MEM32(edx); /* 0x3001157F: mov ecx, dword ptr [edx] */ 10908 MEM32(eax + 0xC) = ecx; /* 0x30011581: mov dword ptr [eax + 0xc], ecx */ 10909 ebp = POP32_VAL(esp); /* 0x30011584: pop ebp */ 10910 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30011585: ret 8 */ 10911 RECOMP_REGS_OUT(); 10912 } 10913 10914 void sub_30011590(void) { 10915 int _fpu_cmp = 0; 10916 uint32_t _cf = 0; 10917 int _df = 1; 10918 uint32_t _flag_k = FK_NONE; 10919 uint32_t _flag_a = 0, _flag_b = 0; 10920 uint32_t _itail_tgt = 0; 10921 RECOMP_REGS_LOCALS 10922 RECOMP_ENTER(0x30011590u); 10923 10924 L_30011590: 10925 PUSH32(esp, ebp); /* 0x30011590: push ebp */ 10926 ebp = esp; /* 0x30011591: mov ebp, esp */ 10927 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10929 esp = esp - 0x10u; /* 0x30011593: sub esp, 0x10 */ 10930 _flag_k = FK_CMP; 10931 PUSH32(esp, ebx); /* 0x30011596: push ebx */ 10932 ebx = ecx; /* 0x30011597: mov ebx, ecx */ 10933 PUSH32(esp, esi); /* 0x30011599: push esi */ 10934 PUSH32(esp, edi); /* 0x3001159A: push edi */ 10935 edx = MEM32(ebx + 0x4); /* 0x3001159B: mov edx, dword ptr [ebx + 4] */ 10936 ecx = MEM32(ebx + 0x8); /* 0x3001159E: mov ecx, dword ptr [ebx + 8] */ 10937 edi = edx; /* 0x300115A1: mov edi, edx */ 10938 SET_LO8(eax, 1); /* 0x300115A3: mov al, 1 */ 10939 esi = MEM32(edx + 0x4); /* 0x300115A5: mov esi, dword ptr [edx + 4] */ 10940 /* cmp esi, ecx */ /* 0x300115A8: cmp esi, ecx */ 10941 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 10942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10943 _flag_k = FK_CMP; 10944 if (CMP_EQ(_flag_a, _flag_b)) goto L_300115CE; /* 0x300115AA: je 0x300115ce */ 10945 L_300115AC: 10946 eax = MEM32(ebp + 0xC); /* 0x300115AC: mov eax, dword ptr [ebp + 0xc] */ 10947 eax = MEM32(eax); /* 0x300115AF: mov eax, dword ptr [eax] */ 10948 MEM32(ebp + (-0x4)) = eax; /* 0x300115B1: mov dword ptr [ebp - 4], eax */ 10949 L_300115B4: 10950 eax = MEM32(ebp + (-0x4)); /* 0x300115B4: mov eax, dword ptr [ebp - 4] */ 10951 edi = esi; /* 0x300115B7: mov edi, esi */ 10952 /* cmp eax, MEM32(esi + 0xC) */ /* 0x300115B9: cmp eax, dword ptr [esi + 0xc] */ 10953 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 10954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10955 _flag_k = FK_CMP; 10956 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x300115BC: setb al */ 10957 /* test LO8(eax), LO8(eax) */ /* 0x300115BF: test al, al */ 10958 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10959 _cf = 0; 10960 _flag_k = FK_NARROW(FK_TEST, 24); 10961 if (TEST_Z(_flag_a, _flag_b)) goto L_300115C7; /* 0x300115C1: je 0x300115c7 */ 10962 L_300115C3: 10963 esi = MEM32(esi); /* 0x300115C3: mov esi, dword ptr [esi] */ 10964 goto L_300115CA; /* 0x300115C5: jmp 0x300115ca */ 10965 L_300115C7: 10966 esi = MEM32(esi + 0x8); /* 0x300115C7: mov esi, dword ptr [esi + 8] */ 10967 L_300115CA: 10968 /* cmp esi, ecx */ /* 0x300115CA: cmp esi, ecx */ 10969 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 10970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10971 _flag_k = FK_CMP; 10972 RECOMP_BACKEDGE(); 10973 if (CMP_NE(_flag_a, _flag_b)) goto L_300115B4; /* 0x300115CC: jne 0x300115b4 */ 10974 L_300115CE: 10975 SET_LO8(ecx, MEM8(ebx + 0xC)); /* 0x300115CE: mov cl, byte ptr [ebx + 0xc] */ 10976 /* test LO8(ecx), LO8(ecx) */ /* 0x300115D1: test cl, cl */ 10977 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 10978 _cf = 0; 10979 _flag_k = FK_NARROW(FK_TEST, 24); 10980 if (TEST_Z(_flag_a, _flag_b)) goto L_300115F3; /* 0x300115D3: je 0x300115f3 */ 10981 L_300115D5: 10982 ecx = MEM32(ebp + 0xC); /* 0x300115D5: mov ecx, dword ptr [ebp + 0xc] */ 10983 edx = ebp + (-0x8); /* 0x300115D8: lea edx, [ebp - 8] */ 10984 PUSH32(esp, ecx); /* 0x300115DB: push ecx */ 10985 PUSH32(esp, edi); /* 0x300115DC: push edi */ 10986 PUSH32(esp, esi); /* 0x300115DD: push esi */ 10987 PUSH32(esp, edx); /* 0x300115DE: push edx */ 10988 ecx = ebx; /* 0x300115DF: mov ecx, ebx */ 10989 RECOMP_ICALL(0x30012F60u); /* 0x300115E1: call 0x30012f60 */ /* not lifted */ 10990 RECOMP_FLAGS_IN(); 10991 eax = MEM32(eax); /* 0x300115E6: mov eax, dword ptr [eax] */ 10992 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x300115E8: mov byte ptr [ebp - 0xc], 1 */ 10993 ecx = eax; /* 0x300115EC: mov ecx, eax */ 10994 eax = MEM32(ebp + (-0xC)); /* 0x300115EE: mov eax, dword ptr [ebp - 0xc] */ 10995 goto L_30011655; /* 0x300115F1: jmp 0x30011655 */ 10996 L_300115F3: 10997 ecx = edi; /* 0x300115F3: mov ecx, edi */ 10998 /* test LO8(eax), LO8(eax) */ /* 0x300115F5: test al, al */ 10999 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11000 _cf = 0; 11001 _flag_k = FK_NARROW(FK_TEST, 24); 11002 MEM32(ebp + (-0x4)) = ecx; /* 0x300115F7: mov dword ptr [ebp - 4], ecx */ 11003 if (TEST_Z(_flag_a, _flag_b)) goto L_30011629; /* 0x300115FA: je 0x30011629 */ 11004 L_300115FC: 11005 /* cmp edi, MEM32(edx) */ /* 0x300115FC: cmp edi, dword ptr [edx] */ 11006 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx)); 11007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11008 _flag_k = FK_CMP; 11009 if (CMP_NE(_flag_a, _flag_b)) goto L_3001161E; /* 0x300115FE: jne 0x3001161e */ 11010 L_30011600: 11011 eax = MEM32(ebp + 0xC); /* 0x30011600: mov eax, dword ptr [ebp + 0xc] */ 11012 ecx = ebp + (-0xC); /* 0x30011603: lea ecx, [ebp - 0xc] */ 11013 PUSH32(esp, eax); /* 0x30011606: push eax */ 11014 PUSH32(esp, edi); /* 0x30011607: push edi */ 11015 PUSH32(esp, esi); /* 0x30011608: push esi */ 11016 PUSH32(esp, ecx); /* 0x30011609: push ecx */ 11017 ecx = ebx; /* 0x3001160A: mov ecx, ebx */ 11018 RECOMP_ICALL(0x30012F60u); /* 0x3001160C: call 0x30012f60 */ /* not lifted */ 11019 RECOMP_FLAGS_IN(); 11020 eax = MEM32(eax); /* 0x30011611: mov eax, dword ptr [eax] */ 11021 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x30011613: mov byte ptr [ebp - 0xc], 1 */ 11022 ecx = eax; /* 0x30011617: mov ecx, eax */ 11023 eax = MEM32(ebp + (-0xC)); /* 0x30011619: mov eax, dword ptr [ebp - 0xc] */ 11024 goto L_30011655; /* 0x3001161C: jmp 0x30011655 */ 11025 L_3001161E: 11026 ecx = ebp + (-0x4); /* 0x3001161E: lea ecx, [ebp - 4] */ 11027 RECOMP_ICALL(0x300134D0u); /* 0x30011621: call 0x300134d0 */ /* not lifted */ 11028 RECOMP_FLAGS_IN(); 11029 ecx = MEM32(ebp + (-0x4)); /* 0x30011626: mov ecx, dword ptr [ebp - 4] */ 11030 L_30011629: 11031 eax = MEM32(ebp + 0xC); /* 0x30011629: mov eax, dword ptr [ebp + 0xc] */ 11032 edx = MEM32(ecx + 0xC); /* 0x3001162C: mov edx, dword ptr [ecx + 0xc] */ 11033 /* cmp edx, MEM32(eax) */ /* 0x3001162F: cmp edx, dword ptr [eax] */ 11034 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 11035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11036 _flag_k = FK_CMP; 11037 if (CMP_AE(_flag_a, _flag_b)) goto L_3001164E; /* 0x30011631: jae 0x3001164e */ 11038 L_30011633: 11039 PUSH32(esp, eax); /* 0x30011633: push eax */ 11040 PUSH32(esp, edi); /* 0x30011634: push edi */ 11041 eax = ebp + 0xC; /* 0x30011635: lea eax, [ebp + 0xc] */ 11042 PUSH32(esp, esi); /* 0x30011638: push esi */ 11043 PUSH32(esp, eax); /* 0x30011639: push eax */ 11044 ecx = ebx; /* 0x3001163A: mov ecx, ebx */ 11045 RECOMP_ICALL(0x30012F60u); /* 0x3001163C: call 0x30012f60 */ /* not lifted */ 11046 RECOMP_FLAGS_IN(); 11047 eax = MEM32(eax); /* 0x30011641: mov eax, dword ptr [eax] */ 11048 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x30011643: mov byte ptr [ebp - 0xc], 1 */ 11049 ecx = eax; /* 0x30011647: mov ecx, eax */ 11050 eax = MEM32(ebp + (-0xC)); /* 0x30011649: mov eax, dword ptr [ebp - 0xc] */ 11051 goto L_30011655; /* 0x3001164C: jmp 0x30011655 */ 11052 L_3001164E: 11053 MEM8(ebp + (-0xC)) = (uint8_t)(0); /* 0x3001164E: mov byte ptr [ebp - 0xc], 0 */ 11054 eax = MEM32(ebp + (-0xC)); /* 0x30011652: mov eax, dword ptr [ebp - 0xc] */ 11055 L_30011655: 11056 MEM8(ebp + (-0xC)) = (uint8_t)(LO8(eax)); /* 0x30011655: mov byte ptr [ebp - 0xc], al */ 11057 eax = MEM32(ebp + 0x8); /* 0x30011658: mov eax, dword ptr [ebp + 8] */ 11058 edi = POP32_VAL(esp); /* 0x3001165B: pop edi */ 11059 esi = POP32_VAL(esp); /* 0x3001165C: pop esi */ 11060 MEM32(eax) = ecx; /* 0x3001165D: mov dword ptr [eax], ecx */ 11061 ecx = MEM32(ebp + (-0xC)); /* 0x3001165F: mov ecx, dword ptr [ebp - 0xc] */ 11062 MEM32(eax + 0x4) = ecx; /* 0x30011662: mov dword ptr [eax + 4], ecx */ 11063 ebx = POP32_VAL(esp); /* 0x30011665: pop ebx */ 11064 esp = ebp; /* 0x30011666: mov esp, ebp */ 11065 ebp = POP32_VAL(esp); /* 0x30011668: pop ebp */ 11066 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30011669: ret 8 */ 11067 RECOMP_REGS_OUT(); 11068 } 11069 11070 void sub_30011670(void) { 11071 int _fpu_cmp = 0; 11072 uint32_t _cf = 0; 11073 int _df = 1; 11074 uint32_t _flag_k = FK_NONE; 11075 uint32_t _flag_a = 0, _flag_b = 0; 11076 uint32_t _itail_tgt = 0; 11077 RECOMP_REGS_LOCALS 11078 RECOMP_ENTER(0x30011670u); 11079 11080 L_30011670: 11081 PUSH32(esp, ebp); /* 0x30011670: push ebp */ 11082 ebp = esp; /* 0x30011671: mov ebp, esp */ 11083 eax = MEM32(ecx + 0x4); /* 0x30011673: mov eax, dword ptr [ecx + 4] */ 11084 ecx = MEM32(eax); /* 0x30011676: mov ecx, dword ptr [eax] */ 11085 eax = MEM32(ebp + 0x8); /* 0x30011678: mov eax, dword ptr [ebp + 8] */ 11086 MEM32(eax) = ecx; /* 0x3001167B: mov dword ptr [eax], ecx */ 11087 ebp = POP32_VAL(esp); /* 0x3001167D: pop ebp */ 11088 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3001167E: ret 4 */ 11089 RECOMP_REGS_OUT(); 11090 } 11091 11092 void sub_30011690(void) { 11093 int _fpu_cmp = 0; 11094 uint32_t _cf = 0; 11095 int _df = 1; 11096 uint32_t _flag_k = FK_NONE; 11097 uint32_t _flag_a = 0, _flag_b = 0; 11098 uint32_t _itail_tgt = 0; 11099 RECOMP_REGS_LOCALS 11100 RECOMP_ENTER(0x30011690u); 11101 11102 L_30011690: 11103 PUSH32(esp, ebp); /* 0x30011690: push ebp */ 11104 ebp = esp; /* 0x30011691: mov ebp, esp */ 11105 PUSH32(esp, ebx); /* 0x30011693: push ebx */ 11106 ebx = MEM32(ebp + 0x10); /* 0x30011694: mov ebx, dword ptr [ebp + 0x10] */ 11107 PUSH32(esp, esi); /* 0x30011697: push esi */ 11108 esi = ecx; /* 0x30011698: mov esi, ecx */ 11109 ecx = MEM32(ebp + 0xC); /* 0x3001169A: mov ecx, dword ptr [ebp + 0xc] */ 11110 PUSH32(esp, edi); /* 0x3001169D: push edi */ 11111 eax = MEM32(esi + 0x10); /* 0x3001169E: mov eax, dword ptr [esi + 0x10] */ 11112 /* test eax, eax */ /* 0x300116A1: test eax, eax */ 11113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11114 _cf = 0; 11115 _flag_k = FK_TEST; 11116 if (TEST_Z(_flag_a, _flag_b)) goto L_30011707; /* 0x300116A3: je 0x30011707 */ 11117 L_300116A5: 11118 eax = MEM32(esi + 0x4); /* 0x300116A5: mov eax, dword ptr [esi + 4] */ 11119 /* cmp ecx, MEM32(eax) */ /* 0x300116A8: cmp ecx, dword ptr [eax] */ 11120 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 11121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11122 _flag_k = FK_CMP; 11123 if (CMP_NE(_flag_a, _flag_b)) goto L_30011707; /* 0x300116AA: jne 0x30011707 */ 11124 L_300116AC: 11125 /* cmp ebx, eax */ /* 0x300116AC: cmp ebx, eax */ 11126 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 11127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11128 _flag_k = FK_CMP; 11129 if (CMP_NE(_flag_a, _flag_b)) goto L_30011707; /* 0x300116AE: jne 0x30011707 */ 11130 L_300116B0: 11131 ebx = MEM32(eax + 0x4); /* 0x300116B0: mov ebx, dword ptr [eax + 4] */ 11132 eax = MEM32(esi + 0x8); /* 0x300116B3: mov eax, dword ptr [esi + 8] */ 11133 /* cmp ebx, eax */ /* 0x300116B6: cmp ebx, eax */ 11134 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 11135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11136 _flag_k = FK_CMP; 11137 edi = ebx; /* 0x300116B8: mov edi, ebx */ 11138 if (CMP_EQ(_flag_a, _flag_b)) goto L_300116DB; /* 0x300116BA: je 0x300116db */ 11139 L_300116BC: 11140 eax = MEM32(edi + 0x8); /* 0x300116BC: mov eax, dword ptr [edi + 8] */ 11141 ecx = esi; /* 0x300116BF: mov ecx, esi */ 11142 PUSH32(esp, eax); /* 0x300116C1: push eax */ 11143 RECOMP_ICALL(0x30012A30u); /* 0x300116C2: call 0x30012a30 */ /* not lifted */ 11144 RECOMP_FLAGS_IN(); 11145 edi = MEM32(edi); /* 0x300116C7: mov edi, dword ptr [edi] */ 11146 PUSH32(esp, ebx); /* 0x300116C9: push ebx */ 11147 RECOMP_ICALL(0x30018080u); /* 0x300116CA: call 0x30018080 */ /* not lifted */ 11148 RECOMP_FLAGS_IN(); 11149 eax = MEM32(esi + 0x8); /* 0x300116CF: mov eax, dword ptr [esi + 8] */ 11150 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11151 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11152 esp = esp + 4; /* 0x300116D2: add esp, 4 */ 11153 _flag_k = FK_ADD; 11154 /* cmp edi, eax */ /* 0x300116D5: cmp edi, eax */ 11155 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11157 _flag_k = FK_CMP; 11158 ebx = edi; /* 0x300116D7: mov ebx, edi */ 11159 RECOMP_BACKEDGE(); 11160 if (CMP_NE(_flag_a, _flag_b)) goto L_300116BC; /* 0x300116D9: jne 0x300116bc */ 11161 L_300116DB: 11162 ecx = MEM32(esi + 0x4); /* 0x300116DB: mov ecx, dword ptr [esi + 4] */ 11163 edx = MEM32(esi + 0x8); /* 0x300116DE: mov edx, dword ptr [esi + 8] */ 11164 edi = POP32_VAL(esp); /* 0x300116E1: pop edi */ 11165 MEM32(ecx + 0x4) = edx; /* 0x300116E2: mov dword ptr [ecx + 4], edx */ 11166 eax = MEM32(esi + 0x4); /* 0x300116E5: mov eax, dword ptr [esi + 4] */ 11167 MEM32(esi + 0x10) = 0; /* 0x300116E8: mov dword ptr [esi + 0x10], 0 */ 11168 MEM32(eax) = eax; /* 0x300116EF: mov dword ptr [eax], eax */ 11169 eax = MEM32(esi + 0x4); /* 0x300116F1: mov eax, dword ptr [esi + 4] */ 11170 MEM32(eax + 0x8) = eax; /* 0x300116F4: mov dword ptr [eax + 8], eax */ 11171 eax = MEM32(esi + 0x4); /* 0x300116F7: mov eax, dword ptr [esi + 4] */ 11172 esi = POP32_VAL(esp); /* 0x300116FA: pop esi */ 11173 ebx = POP32_VAL(esp); /* 0x300116FB: pop ebx */ 11174 ecx = MEM32(eax); /* 0x300116FC: mov ecx, dword ptr [eax] */ 11175 eax = MEM32(ebp + 0x8); /* 0x300116FE: mov eax, dword ptr [ebp + 8] */ 11176 MEM32(eax) = ecx; /* 0x30011701: mov dword ptr [eax], ecx */ 11177 ebp = POP32_VAL(esp); /* 0x30011703: pop ebp */ 11178 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x30011704: ret 0xc */ 11179 L_30011707: 11180 /* cmp ecx, ebx */ /* 0x30011707: cmp ecx, ebx */ 11181 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 11182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11183 _flag_k = FK_CMP; 11184 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011728; /* 0x30011709: je 0x30011728 */ 11185 L_3001170B: 11186 edi = ecx; /* 0x3001170B: mov edi, ecx */ 11187 ecx = ebp + 0xC; /* 0x3001170D: lea ecx, [ebp + 0xc] */ 11188 RECOMP_ICALL(0x300117B0u); /* 0x30011710: call 0x300117b0 */ /* not lifted */ 11189 RECOMP_FLAGS_IN(); 11190 ecx = ebp + 0x10; /* 0x30011715: lea ecx, [ebp + 0x10] */ 11191 PUSH32(esp, edi); /* 0x30011718: push edi */ 11192 PUSH32(esp, ecx); /* 0x30011719: push ecx */ 11193 ecx = esi; /* 0x3001171A: mov ecx, esi */ 11194 RECOMP_ICALL(0x30012670u); /* 0x3001171C: call 0x30012670 */ /* not lifted */ 11195 RECOMP_FLAGS_IN(); 11196 ecx = MEM32(ebp + 0xC); /* 0x30011721: mov ecx, dword ptr [ebp + 0xc] */ 11197 /* cmp ecx, ebx */ /* 0x30011724: cmp ecx, ebx */ 11198 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 11199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11200 _flag_k = FK_CMP; 11201 RECOMP_BACKEDGE(); 11202 if (CMP_NE(_flag_a, _flag_b)) goto L_3001170B; /* 0x30011726: jne 0x3001170b */ 11203 L_30011728: 11204 eax = MEM32(ebp + 0x8); /* 0x30011728: mov eax, dword ptr [ebp + 8] */ 11205 edi = POP32_VAL(esp); /* 0x3001172B: pop edi */ 11206 esi = POP32_VAL(esp); /* 0x3001172C: pop esi */ 11207 ebx = POP32_VAL(esp); /* 0x3001172D: pop ebx */ 11208 MEM32(eax) = ecx; /* 0x3001172E: mov dword ptr [eax], ecx */ 11209 ebp = POP32_VAL(esp); /* 0x30011730: pop ebp */ 11210 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x30011731: ret 0xc */ 11211 RECOMP_REGS_OUT(); 11212 } 11213 11214 void sub_30011740(void) { 11215 int _fpu_cmp = 0; 11216 uint32_t _cf = 0; 11217 int _df = 1; 11218 uint32_t _flag_k = FK_NONE; 11219 uint32_t _flag_a = 0, _flag_b = 0; 11220 uint32_t _itail_tgt = 0; 11221 RECOMP_REGS_LOCALS 11222 RECOMP_ENTER(0x30011740u); 11223 11224 L_30011740: 11225 PUSH32(esp, ebp); /* 0x30011740: push ebp */ 11226 ebp = esp; /* 0x30011741: mov ebp, esp */ 11227 PUSH32(esp, ecx); /* 0x30011743: push ecx */ 11228 edx = MEM32(ecx + 0x4); /* 0x30011744: mov edx, dword ptr [ecx + 4] */ 11229 ecx = MEM32(ecx + 0x8); /* 0x30011747: mov ecx, dword ptr [ecx + 8] */ 11230 PUSH32(esp, ebx); /* 0x3001174A: push ebx */ 11231 ebx = MEM32(ebp + 0xC); /* 0x3001174B: mov ebx, dword ptr [ebp + 0xc] */ 11232 eax = MEM32(edx + 0x4); /* 0x3001174E: mov eax, dword ptr [edx + 4] */ 11233 PUSH32(esp, esi); /* 0x30011751: push esi */ 11234 /* cmp eax, ecx */ /* 0x30011752: cmp eax, ecx */ 11235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11237 _flag_k = FK_CMP; 11238 esi = edx; /* 0x30011754: mov esi, edx */ 11239 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001176E; /* 0x30011756: je 0x3001176e */ 11240 L_30011758: 11241 PUSH32(esp, edi); /* 0x30011758: push edi */ 11242 edi = MEM32(ebx); /* 0x30011759: mov edi, dword ptr [ebx] */ 11243 L_3001175B: 11244 /* cmp MEM32(eax + 0xC), edi */ /* 0x3001175B: cmp dword ptr [eax + 0xc], edi */ 11245 _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(edi); 11246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11247 _flag_k = FK_CMP; 11248 if (CMP_AE(_flag_a, _flag_b)) goto L_30011765; /* 0x3001175E: jae 0x30011765 */ 11249 L_30011760: 11250 eax = MEM32(eax + 0x8); /* 0x30011760: mov eax, dword ptr [eax + 8] */ 11251 goto L_30011769; /* 0x30011763: jmp 0x30011769 */ 11252 L_30011765: 11253 esi = eax; /* 0x30011765: mov esi, eax */ 11254 eax = MEM32(eax); /* 0x30011767: mov eax, dword ptr [eax] */ 11255 L_30011769: 11256 /* cmp eax, ecx */ /* 0x30011769: cmp eax, ecx */ 11257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11259 _flag_k = FK_CMP; 11260 RECOMP_BACKEDGE(); 11261 if (CMP_NE(_flag_a, _flag_b)) goto L_3001175B; /* 0x3001176B: jne 0x3001175b */ 11262 L_3001176D: 11263 edi = POP32_VAL(esp); /* 0x3001176D: pop edi */ 11264 L_3001176E: 11265 /* cmp esi, edx */ /* 0x3001176E: cmp esi, edx */ 11266 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 11267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11268 _flag_k = FK_CMP; 11269 MEM32(ebp + 0xC) = esi; /* 0x30011770: mov dword ptr [ebp + 0xc], esi */ 11270 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011790; /* 0x30011773: je 0x30011790 */ 11271 L_30011775: 11272 eax = MEM32(ebx); /* 0x30011775: mov eax, dword ptr [ebx] */ 11273 ecx = MEM32(esi + 0xC); /* 0x30011777: mov ecx, dword ptr [esi + 0xc] */ 11274 /* cmp eax, ecx */ /* 0x3001177A: cmp eax, ecx */ 11275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11277 _flag_k = FK_CMP; 11278 if (CMP_B(_flag_a, _flag_b)) goto L_30011790; /* 0x3001177C: jb 0x30011790 */ 11279 L_3001177E: 11280 eax = ebp + 0xC; /* 0x3001177E: lea eax, [ebp + 0xc] */ 11281 esi = POP32_VAL(esp); /* 0x30011781: pop esi */ 11282 ebx = POP32_VAL(esp); /* 0x30011782: pop ebx */ 11283 ecx = MEM32(eax); /* 0x30011783: mov ecx, dword ptr [eax] */ 11284 eax = MEM32(ebp + 0x8); /* 0x30011785: mov eax, dword ptr [ebp + 8] */ 11285 MEM32(eax) = ecx; /* 0x30011788: mov dword ptr [eax], ecx */ 11286 esp = ebp; /* 0x3001178A: mov esp, ebp */ 11287 ebp = POP32_VAL(esp); /* 0x3001178C: pop ebp */ 11288 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001178D: ret 8 */ 11289 L_30011790: 11290 eax = ebp + (-0x4); /* 0x30011790: lea eax, [ebp - 4] */ 11291 MEM32(ebp + (-0x4)) = edx; /* 0x30011793: mov dword ptr [ebp - 4], edx */ 11292 esi = POP32_VAL(esp); /* 0x30011796: pop esi */ 11293 ebx = POP32_VAL(esp); /* 0x30011797: pop ebx */ 11294 ecx = MEM32(eax); /* 0x30011798: mov ecx, dword ptr [eax] */ 11295 eax = MEM32(ebp + 0x8); /* 0x3001179A: mov eax, dword ptr [ebp + 8] */ 11296 MEM32(eax) = ecx; /* 0x3001179D: mov dword ptr [eax], ecx */ 11297 esp = ebp; /* 0x3001179F: mov esp, ebp */ 11298 ebp = POP32_VAL(esp); /* 0x300117A1: pop ebp */ 11299 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x300117A2: ret 8 */ 11300 RECOMP_REGS_OUT(); 11301 } 11302 11303 void sub_300117B0(void) { 11304 int _fpu_cmp = 0; 11305 uint32_t _cf = 0; 11306 int _df = 1; 11307 uint32_t _flag_k = FK_NONE; 11308 uint32_t _flag_a = 0, _flag_b = 0; 11309 uint32_t _itail_tgt = 0; 11310 RECOMP_REGS_LOCALS 11311 RECOMP_ENTER(0x300117B0u); 11312 11313 L_300117B0: 11314 eax = MEM32(ecx); /* 0x300117B0: mov eax, dword ptr [ecx] */ 11315 PUSH32(esp, ebx); /* 0x300117B2: push ebx */ 11316 edx = MEM32(eax + 0x8); /* 0x300117B3: mov edx, dword ptr [eax + 8] */ 11317 SET_LO8(ebx, MEM8(edx + 0x15)); /* 0x300117B6: mov bl, byte ptr [edx + 0x15] */ 11318 /* test LO8(ebx), LO8(ebx) */ /* 0x300117B9: test bl, bl */ 11319 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11320 _cf = 0; 11321 _flag_k = FK_NARROW(FK_TEST, 24); 11322 if (TEST_NZ(_flag_a, _flag_b)) goto L_300117D5; /* 0x300117BB: jne 0x300117d5 */ 11323 L_300117BD: 11324 eax = MEM32(edx); /* 0x300117BD: mov eax, dword ptr [edx] */ 11325 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x300117BF: mov bl, byte ptr [eax + 0x15] */ 11326 /* test LO8(ebx), LO8(ebx) */ /* 0x300117C2: test bl, bl */ 11327 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11328 _cf = 0; 11329 _flag_k = FK_NARROW(FK_TEST, 24); 11330 if (TEST_NZ(_flag_a, _flag_b)) goto L_300117D1; /* 0x300117C4: jne 0x300117d1 */ 11331 L_300117C6: 11332 edx = eax; /* 0x300117C6: mov edx, eax */ 11333 eax = MEM32(edx); /* 0x300117C8: mov eax, dword ptr [edx] */ 11334 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x300117CA: mov bl, byte ptr [eax + 0x15] */ 11335 /* test LO8(ebx), LO8(ebx) */ /* 0x300117CD: test bl, bl */ 11336 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11337 _cf = 0; 11338 _flag_k = FK_NARROW(FK_TEST, 24); 11339 RECOMP_BACKEDGE(); 11340 if (TEST_Z(_flag_a, _flag_b)) goto L_300117C6; /* 0x300117CF: je 0x300117c6 */ 11341 L_300117D1: 11342 MEM32(ecx) = edx; /* 0x300117D1: mov dword ptr [ecx], edx */ 11343 ebx = POP32_VAL(esp); /* 0x300117D3: pop ebx */ 11344 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300117D4: ret */ 11345 L_300117D5: 11346 eax = MEM32(eax + 0x4); /* 0x300117D5: mov eax, dword ptr [eax + 4] */ 11347 edx = MEM32(ecx); /* 0x300117D8: mov edx, dword ptr [ecx] */ 11348 /* cmp edx, MEM32(eax + 0x8) */ /* 0x300117DA: cmp edx, dword ptr [eax + 8] */ 11349 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 11350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11351 _flag_k = FK_CMP; 11352 if (CMP_NE(_flag_a, _flag_b)) goto L_300117EB; /* 0x300117DD: jne 0x300117eb */ 11353 L_300117DF: 11354 MEM32(ecx) = eax; /* 0x300117DF: mov dword ptr [ecx], eax */ 11355 eax = MEM32(eax + 0x4); /* 0x300117E1: mov eax, dword ptr [eax + 4] */ 11356 edx = MEM32(ecx); /* 0x300117E4: mov edx, dword ptr [ecx] */ 11357 /* cmp edx, MEM32(eax + 0x8) */ /* 0x300117E6: cmp edx, dword ptr [eax + 8] */ 11358 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 11359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11360 _flag_k = FK_CMP; 11361 RECOMP_BACKEDGE(); 11362 if (CMP_EQ(_flag_a, _flag_b)) goto L_300117DF; /* 0x300117E9: je 0x300117df */ 11363 L_300117EB: 11364 edx = MEM32(ecx); /* 0x300117EB: mov edx, dword ptr [ecx] */ 11365 /* cmp MEM32(edx + 0x8), eax */ /* 0x300117ED: cmp dword ptr [edx + 8], eax */ 11366 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 11367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11368 _flag_k = FK_CMP; 11369 if (CMP_EQ(_flag_a, _flag_b)) goto L_300117F4; /* 0x300117F0: je 0x300117f4 */ 11370 L_300117F2: 11371 MEM32(ecx) = eax; /* 0x300117F2: mov dword ptr [ecx], eax */ 11372 L_300117F4: 11373 ebx = POP32_VAL(esp); /* 0x300117F4: pop ebx */ 11374 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300117F5: ret */ 11375 RECOMP_REGS_OUT(); 11376 } 11377 11378 void sub_30011800(void) { 11379 int _fpu_cmp = 0; 11380 uint32_t _cf = 0; 11381 int _df = 1; 11382 uint32_t _flag_k = FK_NONE; 11383 uint32_t _flag_a = 0, _flag_b = 0; 11384 uint32_t _itail_tgt = 0; 11385 RECOMP_REGS_LOCALS 11386 RECOMP_ENTER(0x30011800u); 11387 11388 L_30011800: 11389 PUSH32(esp, ebp); /* 0x30011800: push ebp */ 11390 ebp = esp; /* 0x30011801: mov ebp, esp */ 11391 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 11392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11393 esp = esp - 0x20u; /* 0x30011803: sub esp, 0x20 */ 11394 _flag_k = FK_CMP; 11395 PUSH32(esp, ebx); /* 0x30011806: push ebx */ 11396 PUSH32(esp, esi); /* 0x30011807: push esi */ 11397 PUSH32(esp, edi); /* 0x30011808: push edi */ 11398 esi = ecx; /* 0x30011809: mov esi, ecx */ 11399 PUSH32(esp, 0x1000u); /* 0x3001180B: push 0x1000 */ 11400 RECOMP_ICALL(0x300180A8u); /* 0x30011810: call 0x300180a8 */ /* not lifted */ 11401 RECOMP_FLAGS_IN(); 11402 ebx = eax; /* 0x30011815: mov ebx, eax */ 11403 eax = MEM32(esi + 0x2C); /* 0x30011817: mov eax, dword ptr [esi + 0x2c] */ 11404 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11405 edi = 0; /* 0x3001181A: xor edi, edi */ 11406 _cf = 0; 11407 _flag_k = FK_TEST; 11408 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11409 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11410 esp = esp + 4; /* 0x3001181C: add esp, 4 */ 11411 _flag_k = FK_ADD; 11412 /* cmp eax, edi */ /* 0x3001181F: cmp eax, edi */ 11413 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11415 _flag_k = FK_CMP; 11416 MEM32(ebp + (-0x8)) = ebx; /* 0x30011821: mov dword ptr [ebp - 8], ebx */ 11417 if (CMP_NE(_flag_a, _flag_b)) goto L_30011880; /* 0x30011824: jne 0x30011880 */ 11418 L_30011826: 11419 PUSH32(esp, 0x20u); /* 0x30011826: push 0x20 */ 11420 RECOMP_ICALL(0x300180A8u); /* 0x30011828: call 0x300180a8 */ /* not lifted */ 11421 RECOMP_FLAGS_IN(); 11422 MEM32(esi + 0x24) = eax; /* 0x3001182D: mov dword ptr [esi + 0x24], eax */ 11423 MEM32(esi + 0x28) = 8; /* 0x30011830: mov dword ptr [esi + 0x28], 8 */ 11424 MEM32(eax + 0xC) = edi; /* 0x30011837: mov dword ptr [eax + 0xc], edi */ 11425 eax = MEM32(esi + 0x24); /* 0x3001183A: mov eax, dword ptr [esi + 0x24] */ 11426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11428 esp = esp + 4; /* 0x3001183D: add esp, 4 */ 11429 _flag_k = FK_ADD; 11430 MEM32(eax + 0x10) = ebx; /* 0x30011840: mov dword ptr [eax + 0x10], ebx */ 11431 ecx = MEM32(esi + 0x24); /* 0x30011843: mov ecx, dword ptr [esi + 0x24] */ 11432 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x800u); 11433 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11434 ebx = ebx + 0x800u; /* 0x30011846: add ebx, 0x800 */ 11435 _flag_k = FK_ADD; 11436 MEM32(ecx + 0x14) = edi; /* 0x3001184C: mov dword ptr [ecx + 0x14], edi */ 11437 eax = MEM32(esi + 0x24); /* 0x3001184F: mov eax, dword ptr [esi + 0x24] */ 11438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 11439 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11440 eax = eax + 0x10u; /* 0x30011852: add eax, 0x10 */ 11441 _flag_k = FK_ADD; 11442 edi = esi + 0x4; /* 0x30011855: lea edi, [esi + 4] */ 11443 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 11444 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11445 esi = esi + 0x14u; /* 0x30011858: add esi, 0x14 */ 11446 _flag_k = FK_ADD; 11447 ecx = MEM32(eax); /* 0x3001185B: mov ecx, dword ptr [eax] */ 11448 MEM32(edi) = ecx; /* 0x3001185D: mov dword ptr [edi], ecx */ 11449 MEM32(esi) = ecx; /* 0x3001185F: mov dword ptr [esi], ecx */ 11450 edx = ecx + 0x1000; /* 0x30011861: lea edx, [ecx + 0x1000] */ 11451 MEM32(edi + 0x4) = edx; /* 0x30011867: mov dword ptr [edi + 4], edx */ 11452 MEM32(esi + 0x4) = edx; /* 0x3001186A: mov dword ptr [esi + 4], edx */ 11453 MEM32(edi + 0x8) = ebx; /* 0x3001186D: mov dword ptr [edi + 8], ebx */ 11454 MEM32(esi + 0x8) = ebx; /* 0x30011870: mov dword ptr [esi + 8], ebx */ 11455 MEM32(edi + 0xC) = eax; /* 0x30011873: mov dword ptr [edi + 0xc], eax */ 11456 MEM32(esi + 0xC) = eax; /* 0x30011876: mov dword ptr [esi + 0xc], eax */ 11457 edi = POP32_VAL(esp); /* 0x30011879: pop edi */ 11458 esi = POP32_VAL(esp); /* 0x3001187A: pop esi */ 11459 ebx = POP32_VAL(esp); /* 0x3001187B: pop ebx */ 11460 esp = ebp; /* 0x3001187C: mov esp, ebp */ 11461 ebp = POP32_VAL(esp); /* 0x3001187E: pop ebp */ 11462 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3001187F: ret */ 11463 L_30011880: 11464 edx = MEM32(esi + 0x28); /* 0x30011880: mov edx, dword ptr [esi + 0x28] */ 11465 ecx = MEM32(esi + 0x24); /* 0x30011883: mov ecx, dword ptr [esi + 0x24] */ 11466 eax = MEM32(esi + 0x20); /* 0x30011886: mov eax, dword ptr [esi + 0x20] */ 11467 ecx = ecx + edx * 4 + (-0x8); /* 0x30011889: lea ecx, [ecx + edx*4 - 8] */ 11468 /* cmp eax, ecx */ /* 0x3001188D: cmp eax, ecx */ 11469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11471 _flag_k = FK_CMP; 11472 if (CMP_AE(_flag_a, _flag_b)) goto L_300118BF; /* 0x3001188F: jae 0x300118bf */ 11473 L_30011891: 11474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 11475 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11476 eax = eax + 4; /* 0x30011891: add eax, 4 */ 11477 _flag_k = FK_ADD; 11478 MEM32(esi + 0x20) = eax; /* 0x30011894: mov dword ptr [esi + 0x20], eax */ 11479 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 11480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11481 esi = esi + 0x14u; /* 0x30011897: add esi, 0x14 */ 11482 _flag_k = FK_ADD; 11483 MEM32(eax) = ebx; /* 0x3001189A: mov dword ptr [eax], ebx */ 11484 edx = MEM32(esi + 0xC); /* 0x3001189C: mov edx, dword ptr [esi + 0xc] */ 11485 MEM32(edx + 0x4) = edi; /* 0x3001189F: mov dword ptr [edx + 4], edi */ 11486 eax = MEM32(esi + 0xC); /* 0x300118A2: mov eax, dword ptr [esi + 0xc] */ 11487 edi = POP32_VAL(esp); /* 0x300118A5: pop edi */ 11488 ecx = MEM32(eax); /* 0x300118A6: mov ecx, dword ptr [eax] */ 11489 MEM32(esi) = ecx; /* 0x300118A8: mov dword ptr [esi], ecx */ 11490 edx = ecx + 0x1000; /* 0x300118AA: lea edx, [ecx + 0x1000] */ 11491 MEM32(esi + 0x4) = edx; /* 0x300118B0: mov dword ptr [esi + 4], edx */ 11492 MEM32(esi + 0x8) = ebx; /* 0x300118B3: mov dword ptr [esi + 8], ebx */ 11493 MEM32(esi + 0xC) = eax; /* 0x300118B6: mov dword ptr [esi + 0xc], eax */ 11494 esi = POP32_VAL(esp); /* 0x300118B9: pop esi */ 11495 ebx = POP32_VAL(esp); /* 0x300118BA: pop ebx */ 11496 esp = ebp; /* 0x300118BB: mov esp, ebp */ 11497 ebp = POP32_VAL(esp); /* 0x300118BD: pop ebp */ 11498 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300118BE: ret */ 11499 L_300118BF: 11500 ecx = MEM32(esi + 0x10); /* 0x300118BF: mov ecx, dword ptr [esi + 0x10] */ 11501 ebx = eax; /* 0x300118C2: mov ebx, eax */ 11502 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 11503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11504 ebx = ebx - ecx; /* 0x300118C4: sub ebx, ecx */ 11505 _flag_k = FK_CMP; 11506 if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x300118C6: sar ebx, 2 */ 11507 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11508 ebx = (uint32_t)((int32_t)ebx >> 2u); 11509 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 11510 ebx = ebx + 1; /* 0x300118C9: inc ebx */ 11511 _flag_k = FK_INC; 11512 MEM32(ebp + (-0xC)) = ebx; /* 0x300118CA: mov dword ptr [ebp - 0xc], ebx */ 11513 edi = ebx + ebx + 0x2; /* 0x300118CD: lea edi, [ebx + ebx + 2] */ 11514 /* cmp edi, 8 */ /* 0x300118D1: cmp edi, 8 */ 11515 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 11516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11517 _flag_k = FK_CMP; 11518 MEM32(ebp + (-0x4)) = edi; /* 0x300118D4: mov dword ptr [ebp - 4], edi */ 11519 if (CMP_AE(_flag_a, _flag_b)) goto L_300118E3; /* 0x300118D7: jae 0x300118e3 */ 11520 L_300118D9: 11521 MEM32(ebp + (-0x4)) = 8; /* 0x300118D9: mov dword ptr [ebp - 4], 8 */ 11522 edi = MEM32(ebp + (-0x4)); /* 0x300118E0: mov edi, dword ptr [ebp - 4] */ 11523 L_300118E3: 11524 /* cmp edi, edx */ /* 0x300118E3: cmp edi, edx */ 11525 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 11526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11527 _flag_k = FK_CMP; 11528 if (CMP_A(_flag_a, _flag_b)) goto L_30011947; /* 0x300118E5: ja 0x30011947 */ 11529 L_300118E7: 11530 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x300118E7: shr edx, 2 */ 11531 if (2u) { _flag_a = recomp_flags_pack((edx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11532 edx = edx >> 2u; /* 0x300118E7: shr edx, 2 */ 11533 /* cmp edx, edi */ /* 0x300118EA: cmp edx, edi */ 11534 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 11535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11536 _flag_k = FK_CMP; 11537 if (CMP_AE(_flag_a, _flag_b)) goto L_30011947; /* 0x300118EC: jae 0x30011947 */ 11538 L_300118EE: 11539 edi = MEM32(esi + 0x24); /* 0x300118EE: mov edi, dword ptr [esi + 0x24] */ 11540 edi = edi + edx * 4; /* 0x300118F1: lea edi, [edi + edx*4] */ 11541 edx = ecx + (-0x4); /* 0x300118F4: lea edx, [ecx - 4] */ 11542 /* cmp edi, edx */ /* 0x300118F7: cmp edi, edx */ 11543 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 11544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11545 _flag_k = FK_CMP; 11546 if (CMP_AE(_flag_a, _flag_b)) goto L_30011922; /* 0x300118F9: jae 0x30011922 */ 11547 L_300118FB: 11548 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 11549 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11550 eax = eax + 8; /* 0x300118FB: add eax, 8 */ 11551 _flag_k = FK_ADD; 11552 edx = edi; /* 0x300118FE: mov edx, edi */ 11553 MEM32(ebp + (-0x4)) = eax; /* 0x30011900: mov dword ptr [ebp - 4], eax */ 11554 eax = ecx + (-0x4); /* 0x30011903: lea eax, [ecx - 4] */ 11555 /* cmp eax, MEM32(ebp + (-0x4)) */ /* 0x30011906: cmp eax, dword ptr [ebp - 4] */ 11556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 11557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11558 _flag_k = FK_CMP; 11559 if (CMP_EQ(_flag_a, _flag_b)) goto L_300119A1; /* 0x30011909: je 0x300119a1 */ 11560 L_3001190F: 11561 ecx = MEM32(eax); /* 0x3001190F: mov ecx, dword ptr [eax] */ 11562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 11563 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11564 eax = eax + 4; /* 0x30011911: add eax, 4 */ 11565 _flag_k = FK_ADD; 11566 MEM32(edx) = ecx; /* 0x30011914: mov dword ptr [edx], ecx */ 11567 ecx = MEM32(ebp + (-0x4)); /* 0x30011916: mov ecx, dword ptr [ebp - 4] */ 11568 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 11569 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11570 edx = edx + 4; /* 0x30011919: add edx, 4 */ 11571 _flag_k = FK_ADD; 11572 /* cmp eax, ecx */ /* 0x3001191C: cmp eax, ecx */ 11573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11575 _flag_k = FK_CMP; 11576 RECOMP_BACKEDGE(); 11577 if (CMP_NE(_flag_a, _flag_b)) goto L_3001190F; /* 0x3001191E: jne 0x3001190f */ 11578 L_30011920: 11579 goto L_300119A1; /* 0x30011920: jmp 0x300119a1 */ 11580 L_30011922: 11581 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 11582 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11583 eax = eax + 8; /* 0x30011922: add eax, 8 */ 11584 _flag_k = FK_ADD; 11585 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu); 11586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11587 ecx = ecx + 0xFFFFFFFCu; /* 0x30011925: add ecx, -4 */ 11588 _flag_k = FK_ADD; 11589 /* cmp ecx, eax */ /* 0x30011928: cmp ecx, eax */ 11590 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11592 _flag_k = FK_CMP; 11593 edx = edi + ebx * 4 + 0x8; /* 0x3001192A: lea edx, [edi + ebx*4 + 8] */ 11594 MEM32(ebp + (-0x4)) = ecx; /* 0x3001192E: mov dword ptr [ebp - 4], ecx */ 11595 if (CMP_EQ(_flag_a, _flag_b)) goto L_300119A1; /* 0x30011931: je 0x300119a1 */ 11596 L_30011933: 11597 ecx = MEM32(eax + (-0x4)); /* 0x30011933: mov ecx, dword ptr [eax - 4] */ 11598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 11599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11600 eax = eax - 4; /* 0x30011936: sub eax, 4 */ 11601 _flag_k = FK_CMP; 11602 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 11603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11604 edx = edx - 4; /* 0x30011939: sub edx, 4 */ 11605 _flag_k = FK_CMP; 11606 MEM32(edx) = ecx; /* 0x3001193C: mov dword ptr [edx], ecx */ 11607 ecx = MEM32(ebp + (-0x4)); /* 0x3001193E: mov ecx, dword ptr [ebp - 4] */ 11608 /* cmp eax, ecx */ /* 0x30011941: cmp eax, ecx */ 11609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11611 _flag_k = FK_CMP; 11612 RECOMP_BACKEDGE(); 11613 if (CMP_NE(_flag_a, _flag_b)) goto L_30011933; /* 0x30011943: jne 0x30011933 */ 11614 L_30011945: 11615 goto L_300119A1; /* 0x30011945: jmp 0x300119a1 */ 11616 L_30011947: 11617 eax = edi * 4; /* 0x30011947: lea eax, [edi*4] */ 11618 /* test eax, eax */ /* 0x3001194E: test eax, eax */ 11619 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11620 _cf = 0; 11621 _flag_k = FK_TEST; 11622 if (TEST_NS(_flag_a, _flag_b)) goto L_30011954; /* 0x30011950: jge 0x30011954 */ 11623 L_30011952: 11624 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11625 eax = 0; /* 0x30011952: xor eax, eax */ 11626 _cf = 0; 11627 _flag_k = FK_TEST; 11628 L_30011954: 11629 PUSH32(esp, eax); /* 0x30011954: push eax */ 11630 RECOMP_ICALL(0x300180A8u); /* 0x30011955: call 0x300180a8 */ /* not lifted */ 11631 RECOMP_FLAGS_IN(); 11632 ecx = MEM32(esi + 0x20); /* 0x3001195A: mov ecx, dword ptr [esi + 0x20] */ 11633 MEM32(ebp + (-0x10)) = eax; /* 0x3001195D: mov dword ptr [ebp - 0x10], eax */ 11634 if (2u) _cf = (((edi) >> 1) & 1u); /* 0x30011960: shr edi, 2 */ 11635 if (2u) { _flag_a = recomp_flags_pack((edi >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11636 edi = edi >> 2u; /* 0x30011960: shr edi, 2 */ 11637 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 11638 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11639 ecx = ecx + 8; /* 0x30011963: add ecx, 8 */ 11640 _flag_k = FK_ADD; 11641 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11642 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11643 esp = esp + 4; /* 0x30011966: add esp, 4 */ 11644 _flag_k = FK_ADD; 11645 edi = eax + edi * 4; /* 0x30011969: lea edi, [eax + edi*4] */ 11646 eax = MEM32(esi + 0x10); /* 0x3001196C: mov eax, dword ptr [esi + 0x10] */ 11647 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 11648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11649 eax = eax - 4; /* 0x3001196F: sub eax, 4 */ 11650 _flag_k = FK_CMP; 11651 edx = edi; /* 0x30011972: mov edx, edi */ 11652 /* cmp eax, ecx */ /* 0x30011974: cmp eax, ecx */ 11653 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11655 _flag_k = FK_CMP; 11656 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011989; /* 0x30011976: je 0x30011989 */ 11657 L_30011978: 11658 ebx = MEM32(eax); /* 0x30011978: mov ebx, dword ptr [eax] */ 11659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 11660 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11661 eax = eax + 4; /* 0x3001197A: add eax, 4 */ 11662 _flag_k = FK_ADD; 11663 MEM32(edx) = ebx; /* 0x3001197D: mov dword ptr [edx], ebx */ 11664 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 11665 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11666 edx = edx + 4; /* 0x3001197F: add edx, 4 */ 11667 _flag_k = FK_ADD; 11668 /* cmp eax, ecx */ /* 0x30011982: cmp eax, ecx */ 11669 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11671 _flag_k = FK_CMP; 11672 RECOMP_BACKEDGE(); 11673 if (CMP_NE(_flag_a, _flag_b)) goto L_30011978; /* 0x30011984: jne 0x30011978 */ 11674 L_30011986: 11675 ebx = MEM32(ebp + (-0xC)); /* 0x30011986: mov ebx, dword ptr [ebp - 0xc] */ 11676 L_30011989: 11677 edx = MEM32(esi + 0x24); /* 0x30011989: mov edx, dword ptr [esi + 0x24] */ 11678 PUSH32(esp, edx); /* 0x3001198C: push edx */ 11679 RECOMP_ICALL(0x30018080u); /* 0x3001198D: call 0x30018080 */ /* not lifted */ 11680 RECOMP_FLAGS_IN(); 11681 eax = MEM32(ebp + (-0x10)); /* 0x30011992: mov eax, dword ptr [ebp - 0x10] */ 11682 ecx = MEM32(ebp + (-0x4)); /* 0x30011995: mov ecx, dword ptr [ebp - 4] */ 11683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11685 esp = esp + 4; /* 0x30011998: add esp, 4 */ 11686 _flag_k = FK_ADD; 11687 MEM32(esi + 0x24) = eax; /* 0x3001199B: mov dword ptr [esi + 0x24], eax */ 11688 MEM32(esi + 0x28) = ecx; /* 0x3001199E: mov dword ptr [esi + 0x28], ecx */ 11689 L_300119A1: 11690 edx = MEM32(ebp + (-0x8)); /* 0x300119A1: mov edx, dword ptr [ebp - 8] */ 11691 eax = edi + 0x4; /* 0x300119A4: lea eax, [edi + 4] */ 11692 ecx = eax + ebx * 4; /* 0x300119A7: lea ecx, [eax + ebx*4] */ 11693 MEM32(ecx) = edx; /* 0x300119AA: mov dword ptr [ecx], edx */ 11694 MEM32(eax + ebx * 4 + 0x4) = 0; /* 0x300119AC: mov dword ptr [eax + ebx*4 + 4], 0 */ 11695 edi = MEM32(esi + 0xC); /* 0x300119B4: mov edi, dword ptr [esi + 0xc] */ 11696 edx = MEM32(eax); /* 0x300119B7: mov edx, dword ptr [eax] */ 11697 MEM32(ebp + (-0x18)) = edi; /* 0x300119B9: mov dword ptr [ebp - 0x18], edi */ 11698 edi = esi + 0x4; /* 0x300119BC: lea edi, [esi + 4] */ 11699 ebx = edx + 0x1000; /* 0x300119BF: lea ebx, [edx + 0x1000] */ 11700 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 11701 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11702 esi = esi + 0x14u; /* 0x300119C5: add esi, 0x14 */ 11703 _flag_k = FK_ADD; 11704 MEM32(edi) = edx; /* 0x300119C8: mov dword ptr [edi], edx */ 11705 edx = MEM32(ebp + (-0x18)); /* 0x300119CA: mov edx, dword ptr [ebp - 0x18] */ 11706 MEM32(edi + 0x4) = ebx; /* 0x300119CD: mov dword ptr [edi + 4], ebx */ 11707 MEM32(edi + 0x8) = edx; /* 0x300119D0: mov dword ptr [edi + 8], edx */ 11708 MEM32(edi + 0xC) = eax; /* 0x300119D3: mov dword ptr [edi + 0xc], eax */ 11709 eax = MEM32(ecx); /* 0x300119D6: mov eax, dword ptr [ecx] */ 11710 MEM32(esi) = eax; /* 0x300119D8: mov dword ptr [esi], eax */ 11711 edi = POP32_VAL(esp); /* 0x300119DA: pop edi */ 11712 edx = eax + 0x1000; /* 0x300119DB: lea edx, [eax + 0x1000] */ 11713 eax = MEM32(ebp + (-0x8)); /* 0x300119E1: mov eax, dword ptr [ebp - 8] */ 11714 MEM32(esi + 0x4) = edx; /* 0x300119E4: mov dword ptr [esi + 4], edx */ 11715 MEM32(esi + 0x8) = eax; /* 0x300119E7: mov dword ptr [esi + 8], eax */ 11716 MEM32(esi + 0xC) = ecx; /* 0x300119EA: mov dword ptr [esi + 0xc], ecx */ 11717 esi = POP32_VAL(esp); /* 0x300119ED: pop esi */ 11718 ebx = POP32_VAL(esp); /* 0x300119EE: pop ebx */ 11719 esp = ebp; /* 0x300119EF: mov esp, ebp */ 11720 ebp = POP32_VAL(esp); /* 0x300119F1: pop ebp */ 11721 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x300119F2: ret */ 11722 RECOMP_REGS_OUT(); 11723 } 11724 11725 void sub_30011A00(void) { 11726 int _fpu_cmp = 0; 11727 uint32_t _cf = 0; 11728 int _df = 1; 11729 uint32_t _flag_k = FK_NONE; 11730 uint32_t _flag_a = 0, _flag_b = 0; 11731 uint32_t _itail_tgt = 0; 11732 RECOMP_REGS_LOCALS 11733 RECOMP_ENTER(0x30011A00u); 11734 11735 L_30011A00: 11736 PUSH32(esp, esi); /* 0x30011A00: push esi */ 11737 esi = ecx; /* 0x30011A01: mov esi, ecx */ 11738 PUSH32(esp, edi); /* 0x30011A03: push edi */ 11739 eax = MEM32(esi + 0xC); /* 0x30011A04: mov eax, dword ptr [esi + 0xc] */ 11740 ecx = MEM32(esi + 0x8); /* 0x30011A07: mov ecx, dword ptr [esi + 8] */ 11741 edi = MEM32(esi + 0x10); /* 0x30011A0A: mov edi, dword ptr [esi + 0x10] */ 11742 /* cmp eax, ecx */ /* 0x30011A0D: cmp eax, ecx */ 11743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11745 _flag_k = FK_CMP; 11746 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011A3C; /* 0x30011A0F: je 0x30011a3c */ 11747 L_30011A11: 11748 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 11749 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11750 eax = eax + 4; /* 0x30011A11: add eax, 4 */ 11751 _flag_k = FK_ADD; 11752 /* cmp eax, ecx */ /* 0x30011A14: cmp eax, ecx */ 11753 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11755 _flag_k = FK_CMP; 11756 MEM32(esi + 0xC) = eax; /* 0x30011A16: mov dword ptr [esi + 0xc], eax */ 11757 if (CMP_NE(_flag_a, _flag_b)) goto L_30011A3C; /* 0x30011A19: jne 0x30011a3c */ 11758 L_30011A1B: 11759 eax = MEM32(esi + 0x10); /* 0x30011A1B: mov eax, dword ptr [esi + 0x10] */ 11760 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 11761 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11762 eax = eax + 4; /* 0x30011A1E: add eax, 4 */ 11763 _flag_k = FK_ADD; 11764 /* cmp MEM32(eax), 0 */ /* 0x30011A21: cmp dword ptr [eax], 0 */ 11765 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 11766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11767 _flag_k = FK_CMP; 11768 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011A3C; /* 0x30011A24: je 0x30011a3c */ 11769 L_30011A26: 11770 MEM32(esi + 0x10) = eax; /* 0x30011A26: mov dword ptr [esi + 0x10], eax */ 11771 eax = MEM32(eax); /* 0x30011A29: mov eax, dword ptr [eax] */ 11772 MEM32(esi + 0x4) = eax; /* 0x30011A2B: mov dword ptr [esi + 4], eax */ 11773 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 11774 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11775 eax = eax + 0x1000u; /* 0x30011A2E: add eax, 0x1000 */ 11776 _flag_k = FK_ADD; 11777 MEM32(esi + 0x8) = eax; /* 0x30011A33: mov dword ptr [esi + 8], eax */ 11778 eax = MEM32(esi + 0x4); /* 0x30011A36: mov eax, dword ptr [esi + 4] */ 11779 MEM32(esi + 0xC) = eax; /* 0x30011A39: mov dword ptr [esi + 0xc], eax */ 11780 L_30011A3C: 11781 eax = MEM32(esi + 0x2C); /* 0x30011A3C: mov eax, dword ptr [esi + 0x2c] */ 11782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11783 eax = eax - 1; /* 0x30011A3F: dec eax */ 11784 _flag_k = FK_DEC; 11785 MEM32(esi + 0x2C) = eax; /* 0x30011A40: mov dword ptr [esi + 0x2c], eax */ 11786 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_30011A9B; /* 0x30011A43: jne 0x30011a9b */ 11787 L_30011A45: 11788 ecx = MEM32(esi + 0x10); /* 0x30011A45: mov ecx, dword ptr [esi + 0x10] */ 11789 PUSH32(esp, ebx); /* 0x30011A48: push ebx */ 11790 edx = MEM32(ecx + (-0x4)); /* 0x30011A49: mov edx, dword ptr [ecx - 4] */ 11791 PUSH32(esp, edx); /* 0x30011A4C: push edx */ 11792 RECOMP_ICALL(0x30018080u); /* 0x30011A4D: call 0x30018080 */ /* not lifted */ 11793 RECOMP_FLAGS_IN(); 11794 eax = MEM32(esi + 0x10); /* 0x30011A52: mov eax, dword ptr [esi + 0x10] */ 11795 ecx = MEM32(eax); /* 0x30011A55: mov ecx, dword ptr [eax] */ 11796 PUSH32(esp, ecx); /* 0x30011A57: push ecx */ 11797 RECOMP_ICALL(0x30018080u); /* 0x30011A58: call 0x30018080 */ /* not lifted */ 11798 RECOMP_FLAGS_IN(); 11799 edx = MEM32(esi + 0x10); /* 0x30011A5D: mov edx, dword ptr [esi + 0x10] */ 11800 eax = MEM32(edx + 0x4); /* 0x30011A60: mov eax, dword ptr [edx + 4] */ 11801 PUSH32(esp, eax); /* 0x30011A63: push eax */ 11802 RECOMP_ICALL(0x30018080u); /* 0x30011A64: call 0x30018080 */ /* not lifted */ 11803 RECOMP_FLAGS_IN(); 11804 ebx = esi + 0x14; /* 0x30011A69: lea ebx, [esi + 0x14] */ 11805 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11806 eax = 0; /* 0x30011A6C: xor eax, eax */ 11807 _cf = 0; 11808 _flag_k = FK_TEST; 11809 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11810 ecx = 0; /* 0x30011A6E: xor ecx, ecx */ 11811 _cf = 0; 11812 _flag_k = FK_TEST; 11813 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11814 edx = 0; /* 0x30011A70: xor edx, edx */ 11815 _cf = 0; 11816 _flag_k = FK_TEST; 11817 MEM32(ebx) = eax; /* 0x30011A72: mov dword ptr [ebx], eax */ 11818 MEM32(esi + 0x4) = eax; /* 0x30011A74: mov dword ptr [esi + 4], eax */ 11819 MEM32(esi + 0x8) = ecx; /* 0x30011A77: mov dword ptr [esi + 8], ecx */ 11820 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11821 edi = 0; /* 0x30011A7A: xor edi, edi */ 11822 _cf = 0; 11823 _flag_k = FK_TEST; 11824 MEM32(ebx + 0x4) = ecx; /* 0x30011A7C: mov dword ptr [ebx + 4], ecx */ 11825 ecx = MEM32(esi + 0x24); /* 0x30011A7F: mov ecx, dword ptr [esi + 0x24] */ 11826 MEM32(esi + 0xC) = edx; /* 0x30011A82: mov dword ptr [esi + 0xc], edx */ 11827 PUSH32(esp, ecx); /* 0x30011A85: push ecx */ 11828 MEM32(ebx + 0x8) = edx; /* 0x30011A86: mov dword ptr [ebx + 8], edx */ 11829 MEM32(esi + 0x10) = edi; /* 0x30011A89: mov dword ptr [esi + 0x10], edi */ 11830 MEM32(ebx + 0xC) = edi; /* 0x30011A8C: mov dword ptr [ebx + 0xc], edi */ 11831 RECOMP_ICALL(0x30018080u); /* 0x30011A8F: call 0x30018080 */ /* not lifted */ 11832 RECOMP_FLAGS_IN(); 11833 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11834 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11835 esp = esp + 0x10u; /* 0x30011A94: add esp, 0x10 */ 11836 _flag_k = FK_ADD; 11837 ebx = POP32_VAL(esp); /* 0x30011A97: pop ebx */ 11838 edi = POP32_VAL(esp); /* 0x30011A98: pop edi */ 11839 esi = POP32_VAL(esp); /* 0x30011A99: pop esi */ 11840 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30011A9A: ret */ 11841 L_30011A9B: 11842 /* cmp edi, MEM32(esi + 0x10) */ /* 0x30011A9B: cmp edi, dword ptr [esi + 0x10] */ 11843 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x10)); 11844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11845 _flag_k = FK_CMP; 11846 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011AB1; /* 0x30011A9E: je 0x30011ab1 */ 11847 L_30011AA0: 11848 edx = MEM32(edi); /* 0x30011AA0: mov edx, dword ptr [edi] */ 11849 PUSH32(esp, edx); /* 0x30011AA2: push edx */ 11850 RECOMP_ICALL(0x30018080u); /* 0x30011AA3: call 0x30018080 */ /* not lifted */ 11851 RECOMP_FLAGS_IN(); 11852 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11853 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11854 esp = esp + 4; /* 0x30011AA8: add esp, 4 */ 11855 _flag_k = FK_ADD; 11856 MEM32(edi) = 0; /* 0x30011AAB: mov dword ptr [edi], 0 */ 11857 L_30011AB1: 11858 edi = POP32_VAL(esp); /* 0x30011AB1: pop edi */ 11859 esi = POP32_VAL(esp); /* 0x30011AB2: pop esi */ 11860 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30011AB3: ret */ 11861 RECOMP_REGS_OUT(); 11862 } 11863 11864 void sub_30011AC0(void) { 11865 int _fpu_cmp = 0; 11866 uint32_t _cf = 0; 11867 int _df = 1; 11868 uint32_t _flag_k = FK_NONE; 11869 uint32_t _flag_a = 0, _flag_b = 0; 11870 uint32_t _itail_tgt = 0; 11871 RECOMP_REGS_LOCALS 11872 RECOMP_ENTER(0x30011AC0u); 11873 11874 L_30011AC0: 11875 eax = ecx; /* 0x30011AC0: mov eax, ecx */ 11876 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11877 ecx = 0; /* 0x30011AC2: xor ecx, ecx */ 11878 _cf = 0; 11879 _flag_k = FK_TEST; 11880 MEM32(eax) = ecx; /* 0x30011AC4: mov dword ptr [eax], ecx */ 11881 MEM32(eax + 0x4) = ecx; /* 0x30011AC6: mov dword ptr [eax + 4], ecx */ 11882 MEM32(eax + 0x8) = ecx; /* 0x30011AC9: mov dword ptr [eax + 8], ecx */ 11883 MEM32(eax + 0xC) = ecx; /* 0x30011ACC: mov dword ptr [eax + 0xc], ecx */ 11884 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30011ACF: ret */ 11885 RECOMP_REGS_OUT(); 11886 } 11887 11888 void sub_30011AD0(void) { 11889 int _fpu_cmp = 0; 11890 uint32_t _cf = 0; 11891 int _df = 1; 11892 uint32_t _flag_k = FK_NONE; 11893 uint32_t _flag_a = 0, _flag_b = 0; 11894 uint32_t _itail_tgt = 0; 11895 RECOMP_REGS_LOCALS 11896 RECOMP_ENTER(0x30011AD0u); 11897 11898 L_30011AD0: 11899 eax = ecx; /* 0x30011AD0: mov eax, ecx */ 11900 ecx = MEM32(eax + 0x8); /* 0x30011AD2: mov ecx, dword ptr [eax + 8] */ 11901 edx = MEM32(eax + 0x4); /* 0x30011AD5: mov edx, dword ptr [eax + 4] */ 11902 /* cmp ecx, edx */ /* 0x30011AD8: cmp ecx, edx */ 11903 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11905 _flag_k = FK_CMP; 11906 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011B06; /* 0x30011ADA: je 0x30011b06 */ 11907 L_30011ADC: 11908 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11910 ecx = ecx + 4; /* 0x30011ADC: add ecx, 4 */ 11911 _flag_k = FK_ADD; 11912 /* cmp ecx, edx */ /* 0x30011ADF: cmp ecx, edx */ 11913 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11915 _flag_k = FK_CMP; 11916 MEM32(eax + 0x8) = ecx; /* 0x30011AE1: mov dword ptr [eax + 8], ecx */ 11917 if (CMP_NE(_flag_a, _flag_b)) goto L_30011B06; /* 0x30011AE4: jne 0x30011b06 */ 11918 L_30011AE6: 11919 ecx = MEM32(eax + 0xC); /* 0x30011AE6: mov ecx, dword ptr [eax + 0xc] */ 11920 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11921 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11922 ecx = ecx + 4; /* 0x30011AE9: add ecx, 4 */ 11923 _flag_k = FK_ADD; 11924 /* cmp MEM32(ecx), 0 */ /* 0x30011AEC: cmp dword ptr [ecx], 0 */ 11925 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0); 11926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11927 _flag_k = FK_CMP; 11928 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011B06; /* 0x30011AEF: je 0x30011b06 */ 11929 L_30011AF1: 11930 MEM32(eax + 0xC) = ecx; /* 0x30011AF1: mov dword ptr [eax + 0xc], ecx */ 11931 ecx = MEM32(ecx); /* 0x30011AF4: mov ecx, dword ptr [ecx] */ 11932 MEM32(eax) = ecx; /* 0x30011AF6: mov dword ptr [eax], ecx */ 11933 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1000u); 11934 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11935 ecx = ecx + 0x1000u; /* 0x30011AF8: add ecx, 0x1000 */ 11936 _flag_k = FK_ADD; 11937 MEM32(eax + 0x4) = ecx; /* 0x30011AFE: mov dword ptr [eax + 4], ecx */ 11938 ecx = MEM32(eax); /* 0x30011B01: mov ecx, dword ptr [eax] */ 11939 MEM32(eax + 0x8) = ecx; /* 0x30011B03: mov dword ptr [eax + 8], ecx */ 11940 L_30011B06: 11941 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30011B06: ret */ 11942 RECOMP_REGS_OUT(); 11943 } 11944 11945 void sub_30011B10(void) { 11946 int _fpu_cmp = 0; 11947 uint32_t _cf = 0; 11948 int _df = 1; 11949 uint32_t _flag_k = FK_NONE; 11950 uint32_t _flag_a = 0, _flag_b = 0; 11951 uint32_t _itail_tgt = 0; 11952 RECOMP_REGS_LOCALS 11953 RECOMP_ENTER(0x30011B10u); 11954 11955 L_30011B10: 11956 PUSH32(esp, ebp); /* 0x30011B10: push ebp */ 11957 ebp = esp; /* 0x30011B11: mov ebp, esp */ 11958 eax = MEM32(ebp + 0xC); /* 0x30011B13: mov eax, dword ptr [ebp + 0xc] */ 11959 PUSH32(esp, ebx); /* 0x30011B16: push ebx */ 11960 edx = MEM32(ecx); /* 0x30011B17: mov edx, dword ptr [ecx] */ 11961 PUSH32(esp, esi); /* 0x30011B19: push esi */ 11962 PUSH32(esp, edi); /* 0x30011B1A: push edi */ 11963 edi = MEM32(ecx + 0x8); /* 0x30011B1B: mov edi, dword ptr [ecx + 8] */ 11964 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 11965 _cf = (eax) != 0; 11966 eax = (uint32_t)(-(int32_t)eax); /* 0x30011B1E: neg eax */ 11967 _flag_k = FK_CMP; 11968 ebx = MEM32(ecx + 0x4); /* 0x30011B20: mov ebx, dword ptr [ecx + 4] */ 11969 esi = MEM32(ecx + 0xC); /* 0x30011B23: mov esi, dword ptr [ecx + 0xc] */ 11970 edi = edi + eax * 4; /* 0x30011B26: lea edi, [edi + eax*4] */ 11971 eax = edi; /* 0x30011B29: mov eax, edi */ 11972 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11974 eax = eax - edx; /* 0x30011B2B: sub eax, edx */ 11975 _flag_k = FK_CMP; 11976 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x30011B2D: sar eax, 2 */ 11977 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11978 eax = (uint32_t)((int32_t)eax >> 2u); 11979 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_S, _cf)) goto L_30011B39; /* 0x30011B30: js 0x30011b39 */ 11980 L_30011B32: 11981 ecx = eax; /* 0x30011B32: mov ecx, eax */ 11982 if (10u) _cf = (((ecx) >> 9) & 1u); /* 0x30011B34: shr ecx, 0xa */ 11983 if (10u) { _flag_a = recomp_flags_pack((ecx >> 10u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11984 ecx = ecx >> 10u; /* 0x30011B34: shr ecx, 0xa */ 11985 goto L_30011B45; /* 0x30011B37: jmp 0x30011b45 */ 11986 L_30011B39: 11987 ecx = 0x3FFu; /* 0x30011B39: mov ecx, 0x3ff */ 11988 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11990 ecx = ecx - eax; /* 0x30011B3E: sub ecx, eax */ 11991 _flag_k = FK_CMP; 11992 if (10u) _cf = (((ecx) >> 9) & 1u); /* 0x30011B40: shr ecx, 0xa */ 11993 if (10u) { _flag_a = recomp_flags_pack((ecx >> 10u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11994 ecx = ecx >> 10u; /* 0x30011B40: shr ecx, 0xa */ 11995 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 11996 _cf = (ecx) != 0; 11997 ecx = (uint32_t)(-(int32_t)ecx); /* 0x30011B43: neg ecx */ 11998 _flag_k = FK_CMP; 11999 L_30011B45: 12000 /* test ecx, ecx */ /* 0x30011B45: test ecx, ecx */ 12001 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12002 _cf = 0; 12003 _flag_k = FK_TEST; 12004 if (TEST_Z(_flag_a, _flag_b)) goto L_30011B5D; /* 0x30011B47: je 0x30011b5d */ 12005 L_30011B49: 12006 edx = MEM32(esi + ecx * 4); /* 0x30011B49: mov edx, dword ptr [esi + ecx*4] */ 12007 esi = esi + ecx * 4; /* 0x30011B4C: lea esi, [esi + ecx*4] */ 12008 if (10u) _cf = (((ecx) >> 22) & 1u); /* 0x30011B4F: shl ecx, 0xa */ 12009 if (10u) { _flag_a = recomp_flags_pack((ecx << 10u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12010 ecx = ecx << 10u; /* 0x30011B4F: shl ecx, 0xa */ 12011 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12013 eax = eax - ecx; /* 0x30011B52: sub eax, ecx */ 12014 _flag_k = FK_CMP; 12015 ebx = edx + 0x1000; /* 0x30011B54: lea ebx, [edx + 0x1000] */ 12016 edi = edx + eax * 4; /* 0x30011B5A: lea edi, [edx + eax*4] */ 12017 L_30011B5D: 12018 eax = MEM32(ebp + 0x8); /* 0x30011B5D: mov eax, dword ptr [ebp + 8] */ 12019 ecx = eax; /* 0x30011B60: mov ecx, eax */ 12020 MEM32(ecx) = edx; /* 0x30011B62: mov dword ptr [ecx], edx */ 12021 MEM32(ecx + 0x4) = ebx; /* 0x30011B64: mov dword ptr [ecx + 4], ebx */ 12022 MEM32(ecx + 0x8) = edi; /* 0x30011B67: mov dword ptr [ecx + 8], edi */ 12023 edi = POP32_VAL(esp); /* 0x30011B6A: pop edi */ 12024 MEM32(ecx + 0xC) = esi; /* 0x30011B6B: mov dword ptr [ecx + 0xc], esi */ 12025 esi = POP32_VAL(esp); /* 0x30011B6E: pop esi */ 12026 ebx = POP32_VAL(esp); /* 0x30011B6F: pop ebx */ 12027 ebp = POP32_VAL(esp); /* 0x30011B70: pop ebp */ 12028 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30011B71: ret 8 */ 12029 RECOMP_REGS_OUT(); 12030 } 12031 12032 void sub_30011B80(void) { 12033 int _fpu_cmp = 0; 12034 uint32_t _cf = 0; 12035 int _df = 1; 12036 uint32_t _flag_k = FK_NONE; 12037 uint32_t _flag_a = 0, _flag_b = 0; 12038 uint32_t _itail_tgt = 0; 12039 RECOMP_REGS_LOCALS 12040 RECOMP_ENTER(0x30011B80u); 12041 12042 L_30011B80: 12043 PUSH32(esp, ebp); /* 0x30011B80: push ebp */ 12044 ebp = esp; /* 0x30011B81: mov ebp, esp */ 12045 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 12046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12047 esp = esp - 0x10u; /* 0x30011B83: sub esp, 0x10 */ 12048 _flag_k = FK_CMP; 12049 PUSH32(esp, ebx); /* 0x30011B86: push ebx */ 12050 ebx = ecx; /* 0x30011B87: mov ebx, ecx */ 12051 PUSH32(esp, esi); /* 0x30011B89: push esi */ 12052 PUSH32(esp, edi); /* 0x30011B8A: push edi */ 12053 edx = MEM32(ebx + 0x4); /* 0x30011B8B: mov edx, dword ptr [ebx + 4] */ 12054 ecx = MEM32(ebx + 0x8); /* 0x30011B8E: mov ecx, dword ptr [ebx + 8] */ 12055 edi = edx; /* 0x30011B91: mov edi, edx */ 12056 SET_LO8(eax, 1); /* 0x30011B93: mov al, 1 */ 12057 esi = MEM32(edx + 0x4); /* 0x30011B95: mov esi, dword ptr [edx + 4] */ 12058 /* cmp esi, ecx */ /* 0x30011B98: cmp esi, ecx */ 12059 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 12060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12061 _flag_k = FK_CMP; 12062 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011BBE; /* 0x30011B9A: je 0x30011bbe */ 12063 L_30011B9C: 12064 eax = MEM32(ebp + 0xC); /* 0x30011B9C: mov eax, dword ptr [ebp + 0xc] */ 12065 eax = MEM32(eax); /* 0x30011B9F: mov eax, dword ptr [eax] */ 12066 MEM32(ebp + (-0x4)) = eax; /* 0x30011BA1: mov dword ptr [ebp - 4], eax */ 12067 L_30011BA4: 12068 eax = MEM32(ebp + (-0x4)); /* 0x30011BA4: mov eax, dword ptr [ebp - 4] */ 12069 edi = esi; /* 0x30011BA7: mov edi, esi */ 12070 /* cmp eax, MEM32(esi + 0xC) */ /* 0x30011BA9: cmp eax, dword ptr [esi + 0xc] */ 12071 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 12072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12073 _flag_k = FK_CMP; 12074 SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x30011BAC: setl al */ 12075 /* test LO8(eax), LO8(eax) */ /* 0x30011BAF: test al, al */ 12076 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12077 _cf = 0; 12078 _flag_k = FK_NARROW(FK_TEST, 24); 12079 if (TEST_Z(_flag_a, _flag_b)) goto L_30011BB7; /* 0x30011BB1: je 0x30011bb7 */ 12080 L_30011BB3: 12081 esi = MEM32(esi); /* 0x30011BB3: mov esi, dword ptr [esi] */ 12082 goto L_30011BBA; /* 0x30011BB5: jmp 0x30011bba */ 12083 L_30011BB7: 12084 esi = MEM32(esi + 0x8); /* 0x30011BB7: mov esi, dword ptr [esi + 8] */ 12085 L_30011BBA: 12086 /* cmp esi, ecx */ /* 0x30011BBA: cmp esi, ecx */ 12087 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 12088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12089 _flag_k = FK_CMP; 12090 RECOMP_BACKEDGE(); 12091 if (CMP_NE(_flag_a, _flag_b)) goto L_30011BA4; /* 0x30011BBC: jne 0x30011ba4 */ 12092 L_30011BBE: 12093 SET_LO8(ecx, MEM8(ebx + 0xC)); /* 0x30011BBE: mov cl, byte ptr [ebx + 0xc] */ 12094 /* test LO8(ecx), LO8(ecx) */ /* 0x30011BC1: test cl, cl */ 12095 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12096 _cf = 0; 12097 _flag_k = FK_NARROW(FK_TEST, 24); 12098 if (TEST_Z(_flag_a, _flag_b)) goto L_30011BE3; /* 0x30011BC3: je 0x30011be3 */ 12099 L_30011BC5: 12100 ecx = MEM32(ebp + 0xC); /* 0x30011BC5: mov ecx, dword ptr [ebp + 0xc] */ 12101 edx = ebp + (-0x8); /* 0x30011BC8: lea edx, [ebp - 8] */ 12102 PUSH32(esp, ecx); /* 0x30011BCB: push ecx */ 12103 PUSH32(esp, edi); /* 0x30011BCC: push edi */ 12104 PUSH32(esp, esi); /* 0x30011BCD: push esi */ 12105 PUSH32(esp, edx); /* 0x30011BCE: push edx */ 12106 ecx = ebx; /* 0x30011BCF: mov ecx, ebx */ 12107 RECOMP_ICALL(0x30013230u); /* 0x30011BD1: call 0x30013230 */ /* not lifted */ 12108 RECOMP_FLAGS_IN(); 12109 eax = MEM32(eax); /* 0x30011BD6: mov eax, dword ptr [eax] */ 12110 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x30011BD8: mov byte ptr [ebp - 0xc], 1 */ 12111 ecx = eax; /* 0x30011BDC: mov ecx, eax */ 12112 eax = MEM32(ebp + (-0xC)); /* 0x30011BDE: mov eax, dword ptr [ebp - 0xc] */ 12113 goto L_30011C45; /* 0x30011BE1: jmp 0x30011c45 */ 12114 L_30011BE3: 12115 ecx = edi; /* 0x30011BE3: mov ecx, edi */ 12116 /* test LO8(eax), LO8(eax) */ /* 0x30011BE5: test al, al */ 12117 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12118 _cf = 0; 12119 _flag_k = FK_NARROW(FK_TEST, 24); 12120 MEM32(ebp + (-0x4)) = ecx; /* 0x30011BE7: mov dword ptr [ebp - 4], ecx */ 12121 if (TEST_Z(_flag_a, _flag_b)) goto L_30011C19; /* 0x30011BEA: je 0x30011c19 */ 12122 L_30011BEC: 12123 /* cmp edi, MEM32(edx) */ /* 0x30011BEC: cmp edi, dword ptr [edx] */ 12124 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx)); 12125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12126 _flag_k = FK_CMP; 12127 if (CMP_NE(_flag_a, _flag_b)) goto L_30011C0E; /* 0x30011BEE: jne 0x30011c0e */ 12128 L_30011BF0: 12129 eax = MEM32(ebp + 0xC); /* 0x30011BF0: mov eax, dword ptr [ebp + 0xc] */ 12130 ecx = ebp + (-0xC); /* 0x30011BF3: lea ecx, [ebp - 0xc] */ 12131 PUSH32(esp, eax); /* 0x30011BF6: push eax */ 12132 PUSH32(esp, edi); /* 0x30011BF7: push edi */ 12133 PUSH32(esp, esi); /* 0x30011BF8: push esi */ 12134 PUSH32(esp, ecx); /* 0x30011BF9: push ecx */ 12135 ecx = ebx; /* 0x30011BFA: mov ecx, ebx */ 12136 RECOMP_ICALL(0x30013230u); /* 0x30011BFC: call 0x30013230 */ /* not lifted */ 12137 RECOMP_FLAGS_IN(); 12138 eax = MEM32(eax); /* 0x30011C01: mov eax, dword ptr [eax] */ 12139 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x30011C03: mov byte ptr [ebp - 0xc], 1 */ 12140 ecx = eax; /* 0x30011C07: mov ecx, eax */ 12141 eax = MEM32(ebp + (-0xC)); /* 0x30011C09: mov eax, dword ptr [ebp - 0xc] */ 12142 goto L_30011C45; /* 0x30011C0C: jmp 0x30011c45 */ 12143 L_30011C0E: 12144 ecx = ebp + (-0x4); /* 0x30011C0E: lea ecx, [ebp - 4] */ 12145 RECOMP_ICALL(0x30013470u); /* 0x30011C11: call 0x30013470 */ /* not lifted */ 12146 RECOMP_FLAGS_IN(); 12147 ecx = MEM32(ebp + (-0x4)); /* 0x30011C16: mov ecx, dword ptr [ebp - 4] */ 12148 L_30011C19: 12149 eax = MEM32(ebp + 0xC); /* 0x30011C19: mov eax, dword ptr [ebp + 0xc] */ 12150 edx = MEM32(ecx + 0xC); /* 0x30011C1C: mov edx, dword ptr [ecx + 0xc] */ 12151 /* cmp edx, MEM32(eax) */ /* 0x30011C1F: cmp edx, dword ptr [eax] */ 12152 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 12153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12154 _flag_k = FK_CMP; 12155 if (CMP_GE(_flag_a, _flag_b)) goto L_30011C3E; /* 0x30011C21: jge 0x30011c3e */ 12156 L_30011C23: 12157 PUSH32(esp, eax); /* 0x30011C23: push eax */ 12158 PUSH32(esp, edi); /* 0x30011C24: push edi */ 12159 eax = ebp + 0xC; /* 0x30011C25: lea eax, [ebp + 0xc] */ 12160 PUSH32(esp, esi); /* 0x30011C28: push esi */ 12161 PUSH32(esp, eax); /* 0x30011C29: push eax */ 12162 ecx = ebx; /* 0x30011C2A: mov ecx, ebx */ 12163 RECOMP_ICALL(0x30013230u); /* 0x30011C2C: call 0x30013230 */ /* not lifted */ 12164 RECOMP_FLAGS_IN(); 12165 eax = MEM32(eax); /* 0x30011C31: mov eax, dword ptr [eax] */ 12166 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x30011C33: mov byte ptr [ebp - 0xc], 1 */ 12167 ecx = eax; /* 0x30011C37: mov ecx, eax */ 12168 eax = MEM32(ebp + (-0xC)); /* 0x30011C39: mov eax, dword ptr [ebp - 0xc] */ 12169 goto L_30011C45; /* 0x30011C3C: jmp 0x30011c45 */ 12170 L_30011C3E: 12171 MEM8(ebp + (-0xC)) = (uint8_t)(0); /* 0x30011C3E: mov byte ptr [ebp - 0xc], 0 */ 12172 eax = MEM32(ebp + (-0xC)); /* 0x30011C42: mov eax, dword ptr [ebp - 0xc] */ 12173 L_30011C45: 12174 MEM8(ebp + (-0xC)) = (uint8_t)(LO8(eax)); /* 0x30011C45: mov byte ptr [ebp - 0xc], al */ 12175 eax = MEM32(ebp + 0x8); /* 0x30011C48: mov eax, dword ptr [ebp + 8] */ 12176 edi = POP32_VAL(esp); /* 0x30011C4B: pop edi */ 12177 esi = POP32_VAL(esp); /* 0x30011C4C: pop esi */ 12178 MEM32(eax) = ecx; /* 0x30011C4D: mov dword ptr [eax], ecx */ 12179 ecx = MEM32(ebp + (-0xC)); /* 0x30011C4F: mov ecx, dword ptr [ebp - 0xc] */ 12180 MEM32(eax + 0x4) = ecx; /* 0x30011C52: mov dword ptr [eax + 4], ecx */ 12181 ebx = POP32_VAL(esp); /* 0x30011C55: pop ebx */ 12182 esp = ebp; /* 0x30011C56: mov esp, ebp */ 12183 ebp = POP32_VAL(esp); /* 0x30011C58: pop ebp */ 12184 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30011C59: ret 8 */ 12185 RECOMP_REGS_OUT(); 12186 } 12187 12188 void sub_30011C60(void) { 12189 int _fpu_cmp = 0; 12190 uint32_t _cf = 0; 12191 int _df = 1; 12192 uint32_t _flag_k = FK_NONE; 12193 uint32_t _flag_a = 0, _flag_b = 0; 12194 uint32_t _itail_tgt = 0; 12195 RECOMP_REGS_LOCALS 12196 RECOMP_ENTER(0x30011C60u); 12197 12198 L_30011C60: 12199 PUSH32(esp, ebp); /* 0x30011C60: push ebp */ 12200 ebp = esp; /* 0x30011C61: mov ebp, esp */ 12201 eax = MEM32(ebp + 0x10); /* 0x30011C63: mov eax, dword ptr [ebp + 0x10] */ 12202 edx = MEM32(ebp + 0x8); /* 0x30011C66: mov edx, dword ptr [ebp + 8] */ 12203 PUSH32(esp, ebx); /* 0x30011C69: push ebx */ 12204 PUSH32(esp, esi); /* 0x30011C6A: push esi */ 12205 esi = ecx; /* 0x30011C6B: mov esi, ecx */ 12206 PUSH32(esp, edi); /* 0x30011C6D: push edi */ 12207 SET_LO8(ecx, MEM8(eax)); /* 0x30011C6E: mov cl, byte ptr [eax] */ 12208 PUSH32(esp, 0x20u); /* 0x30011C70: push 0x20 */ 12209 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x30011C72: mov byte ptr [esi], cl */ 12210 SET_LO8(eax, MEM8(edx)); /* 0x30011C74: mov al, byte ptr [edx] */ 12211 SET_LO8(ecx, MEM8(ebp + 0xC)); /* 0x30011C76: mov cl, byte ptr [ebp + 0xc] */ 12212 MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x30011C79: mov byte ptr [esi + 1], al */ 12213 MEM8(esi + 0xC) = (uint8_t)(LO8(ecx)); /* 0x30011C7C: mov byte ptr [esi + 0xc], cl */ 12214 RECOMP_ICALL(0x300180A8u); /* 0x30011C7F: call 0x300180a8 */ /* not lifted */ 12215 RECOMP_FLAGS_IN(); 12216 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12217 ebx = 0; /* 0x30011C84: xor ebx, ebx */ 12218 _cf = 0; 12219 _flag_k = FK_TEST; 12220 SET_LO8(ecx, 1); /* 0x30011C86: mov cl, 1 */ 12221 MEM32(eax + 0x4) = ebx; /* 0x30011C88: mov dword ptr [eax + 4], ebx */ 12222 MEM8(eax + 0x1C) = (uint8_t)(LO8(ecx)); /* 0x30011C8B: mov byte ptr [eax + 0x1c], cl */ 12223 MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x30011C8E: mov byte ptr [eax + 0x1d], bl */ 12224 MEM32(esi + 0x8) = eax; /* 0x30011C91: mov dword ptr [esi + 8], eax */ 12225 MEM8(eax + 0x1D) = (uint8_t)(LO8(ecx)); /* 0x30011C94: mov byte ptr [eax + 0x1d], cl */ 12226 edx = MEM32(esi + 0x8); /* 0x30011C97: mov edx, dword ptr [esi + 8] */ 12227 PUSH32(esp, 0x20u); /* 0x30011C9A: push 0x20 */ 12228 MEM32(edx) = ebx; /* 0x30011C9C: mov dword ptr [edx], ebx */ 12229 eax = MEM32(esi + 0x8); /* 0x30011C9E: mov eax, dword ptr [esi + 8] */ 12230 MEM32(eax + 0x8) = ebx; /* 0x30011CA1: mov dword ptr [eax + 8], ebx */ 12231 edi = MEM32(esi + 0x8); /* 0x30011CA4: mov edi, dword ptr [esi + 8] */ 12232 RECOMP_ICALL(0x300180A8u); /* 0x30011CA7: call 0x300180a8 */ /* not lifted */ 12233 RECOMP_FLAGS_IN(); 12234 MEM32(eax + 0x4) = edi; /* 0x30011CAC: mov dword ptr [eax + 4], edi */ 12235 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30011CAF: mov byte ptr [eax + 0x1c], bl */ 12236 MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x30011CB2: mov byte ptr [eax + 0x1d], bl */ 12237 MEM32(esi + 0x4) = eax; /* 0x30011CB5: mov dword ptr [esi + 4], eax */ 12238 MEM32(eax) = eax; /* 0x30011CB8: mov dword ptr [eax], eax */ 12239 eax = MEM32(esi + 0x4); /* 0x30011CBA: mov eax, dword ptr [esi + 4] */ 12240 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12241 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12242 esp = esp + 8; /* 0x30011CBD: add esp, 8 */ 12243 _flag_k = FK_ADD; 12244 MEM32(eax + 0x8) = eax; /* 0x30011CC0: mov dword ptr [eax + 8], eax */ 12245 MEM32(esi + 0x10) = ebx; /* 0x30011CC3: mov dword ptr [esi + 0x10], ebx */ 12246 eax = esi; /* 0x30011CC6: mov eax, esi */ 12247 edi = POP32_VAL(esp); /* 0x30011CC8: pop edi */ 12248 esi = POP32_VAL(esp); /* 0x30011CC9: pop esi */ 12249 ebx = POP32_VAL(esp); /* 0x30011CCA: pop ebx */ 12250 ebp = POP32_VAL(esp); /* 0x30011CCB: pop ebp */ 12251 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x30011CCC: ret 0xc */ 12252 RECOMP_REGS_OUT(); 12253 } 12254 12255 void sub_30011CD0(void) { 12256 int _fpu_cmp = 0; 12257 uint32_t _cf = 0; 12258 int _df = 1; 12259 uint32_t _flag_k = FK_NONE; 12260 uint32_t _flag_a = 0, _flag_b = 0; 12261 uint32_t _itail_tgt = 0; 12262 RECOMP_REGS_LOCALS 12263 RECOMP_ENTER(0x30011CD0u); 12264 12265 L_30011CD0: 12266 eax = MEM32(ecx); /* 0x30011CD0: mov eax, dword ptr [ecx] */ 12267 PUSH32(esp, ebx); /* 0x30011CD2: push ebx */ 12268 edx = MEM32(eax + 0x8); /* 0x30011CD3: mov edx, dword ptr [eax + 8] */ 12269 SET_LO8(ebx, MEM8(edx + 0x1D)); /* 0x30011CD6: mov bl, byte ptr [edx + 0x1d] */ 12270 /* test LO8(ebx), LO8(ebx) */ /* 0x30011CD9: test bl, bl */ 12271 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12272 _cf = 0; 12273 _flag_k = FK_NARROW(FK_TEST, 24); 12274 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011CF5; /* 0x30011CDB: jne 0x30011cf5 */ 12275 L_30011CDD: 12276 eax = MEM32(edx); /* 0x30011CDD: mov eax, dword ptr [edx] */ 12277 SET_LO8(ebx, MEM8(eax + 0x1D)); /* 0x30011CDF: mov bl, byte ptr [eax + 0x1d] */ 12278 /* test LO8(ebx), LO8(ebx) */ /* 0x30011CE2: test bl, bl */ 12279 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12280 _cf = 0; 12281 _flag_k = FK_NARROW(FK_TEST, 24); 12282 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011CF1; /* 0x30011CE4: jne 0x30011cf1 */ 12283 L_30011CE6: 12284 edx = eax; /* 0x30011CE6: mov edx, eax */ 12285 eax = MEM32(edx); /* 0x30011CE8: mov eax, dword ptr [edx] */ 12286 SET_LO8(ebx, MEM8(eax + 0x1D)); /* 0x30011CEA: mov bl, byte ptr [eax + 0x1d] */ 12287 /* test LO8(ebx), LO8(ebx) */ /* 0x30011CED: test bl, bl */ 12288 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12289 _cf = 0; 12290 _flag_k = FK_NARROW(FK_TEST, 24); 12291 RECOMP_BACKEDGE(); 12292 if (TEST_Z(_flag_a, _flag_b)) goto L_30011CE6; /* 0x30011CEF: je 0x30011ce6 */ 12293 L_30011CF1: 12294 MEM32(ecx) = edx; /* 0x30011CF1: mov dword ptr [ecx], edx */ 12295 ebx = POP32_VAL(esp); /* 0x30011CF3: pop ebx */ 12296 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30011CF4: ret */ 12297 L_30011CF5: 12298 eax = MEM32(eax + 0x4); /* 0x30011CF5: mov eax, dword ptr [eax + 4] */ 12299 edx = MEM32(ecx); /* 0x30011CF8: mov edx, dword ptr [ecx] */ 12300 /* cmp edx, MEM32(eax + 0x8) */ /* 0x30011CFA: cmp edx, dword ptr [eax + 8] */ 12301 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 12302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12303 _flag_k = FK_CMP; 12304 if (CMP_NE(_flag_a, _flag_b)) goto L_30011D0B; /* 0x30011CFD: jne 0x30011d0b */ 12305 L_30011CFF: 12306 MEM32(ecx) = eax; /* 0x30011CFF: mov dword ptr [ecx], eax */ 12307 eax = MEM32(eax + 0x4); /* 0x30011D01: mov eax, dword ptr [eax + 4] */ 12308 edx = MEM32(ecx); /* 0x30011D04: mov edx, dword ptr [ecx] */ 12309 /* cmp edx, MEM32(eax + 0x8) */ /* 0x30011D06: cmp edx, dword ptr [eax + 8] */ 12310 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 12311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12312 _flag_k = FK_CMP; 12313 RECOMP_BACKEDGE(); 12314 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011CFF; /* 0x30011D09: je 0x30011cff */ 12315 L_30011D0B: 12316 edx = MEM32(ecx); /* 0x30011D0B: mov edx, dword ptr [ecx] */ 12317 /* cmp MEM32(edx + 0x8), eax */ /* 0x30011D0D: cmp dword ptr [edx + 8], eax */ 12318 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 12319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12320 _flag_k = FK_CMP; 12321 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011D14; /* 0x30011D10: je 0x30011d14 */ 12322 L_30011D12: 12323 MEM32(ecx) = eax; /* 0x30011D12: mov dword ptr [ecx], eax */ 12324 L_30011D14: 12325 ebx = POP32_VAL(esp); /* 0x30011D14: pop ebx */ 12326 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x30011D15: ret */ 12327 RECOMP_REGS_OUT(); 12328 } 12329 12330 void sub_30011D20(void) { 12331 int _fpu_cmp = 0; 12332 uint32_t _cf = 0; 12333 int _df = 1; 12334 uint32_t _flag_k = FK_NONE; 12335 uint32_t _flag_a = 0, _flag_b = 0; 12336 uint32_t _itail_tgt = 0; 12337 RECOMP_REGS_LOCALS 12338 RECOMP_ENTER(0x30011D20u); 12339 12340 L_30011D20: 12341 PUSH32(esp, ebp); /* 0x30011D20: push ebp */ 12342 ebp = esp; /* 0x30011D21: mov ebp, esp */ 12343 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 12344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12345 esp = esp - 0x14u; /* 0x30011D23: sub esp, 0x14 */ 12346 _flag_k = FK_CMP; 12347 PUSH32(esp, ebx); /* 0x30011D26: push ebx */ 12348 PUSH32(esp, esi); /* 0x30011D27: push esi */ 12349 PUSH32(esp, edi); /* 0x30011D28: push edi */ 12350 edi = ecx; /* 0x30011D29: mov edi, ecx */ 12351 SET_LO8(eax, 1); /* 0x30011D2B: mov al, 1 */ 12352 ebx = MEM32(edi + 0x4); /* 0x30011D2D: mov ebx, dword ptr [edi + 4] */ 12353 edx = MEM32(edi + 0x8); /* 0x30011D30: mov edx, dword ptr [edi + 8] */ 12354 esi = MEM32(ebx + 0x4); /* 0x30011D33: mov esi, dword ptr [ebx + 4] */ 12355 /* cmp esi, edx */ /* 0x30011D36: cmp esi, edx */ 12356 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 12357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12358 _flag_k = FK_CMP; 12359 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011D8F; /* 0x30011D38: je 0x30011d8f */ 12360 L_30011D3A: 12361 ecx = MEM32(ebp + 0xC); /* 0x30011D3A: mov ecx, dword ptr [ebp + 0xc] */ 12362 ebx = esi; /* 0x30011D3D: mov ebx, esi */ 12363 fp_push(*(float*)&MEM32(ecx)); /* 0x30011D3F: fld dword ptr [ecx] */ 12364 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x30011D41: fcomp dword ptr [esi + 0xc] */ 12365 fp_pop(); 12366 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30011D44: fnstsw ax */ 12367 /* test HI8(eax), 1 */ /* 0x30011D46: test ah, 1 */ 12368 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12369 _cf = 0; 12370 _flag_k = FK_NARROW(FK_TEST, 24); 12371 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011D89; /* 0x30011D49: jne 0x30011d89 */ 12372 L_30011D4B: 12373 fp_push(*(float*)&MEM32(ecx)); /* 0x30011D4B: fld dword ptr [ecx] */ 12374 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x30011D4D: fcomp dword ptr [esi + 0xc] */ 12375 fp_pop(); 12376 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30011D50: fnstsw ax */ 12377 /* test HI8(eax), 0x40u */ /* 0x30011D52: test ah, 0x40 */ 12378 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 12379 _cf = 0; 12380 _flag_k = FK_NARROW(FK_TEST, 24); 12381 if (TEST_Z(_flag_a, _flag_b)) goto L_30011D7E; /* 0x30011D55: je 0x30011d7e */ 12382 L_30011D57: 12383 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x30011D57: fld dword ptr [ecx + 4] */ 12384 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x10)); /* 0x30011D5A: fcomp dword ptr [esi + 0x10] */ 12385 fp_pop(); 12386 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30011D5D: fnstsw ax */ 12387 /* test HI8(eax), 1 */ /* 0x30011D5F: test ah, 1 */ 12388 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12389 _cf = 0; 12390 _flag_k = FK_NARROW(FK_TEST, 24); 12391 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011D89; /* 0x30011D62: jne 0x30011d89 */ 12392 L_30011D64: 12393 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x30011D64: fld dword ptr [ecx + 4] */ 12394 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x10)); /* 0x30011D67: fcomp dword ptr [esi + 0x10] */ 12395 fp_pop(); 12396 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30011D6A: fnstsw ax */ 12397 /* test HI8(eax), 0x40u */ /* 0x30011D6C: test ah, 0x40 */ 12398 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 12399 _cf = 0; 12400 _flag_k = FK_NARROW(FK_TEST, 24); 12401 if (TEST_Z(_flag_a, _flag_b)) goto L_30011D7E; /* 0x30011D6F: je 0x30011d7e */ 12402 L_30011D71: 12403 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x30011D71: fld dword ptr [ecx + 8] */ 12404 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x14)); /* 0x30011D74: fcomp dword ptr [esi + 0x14] */ 12405 fp_pop(); 12406 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x30011D77: fnstsw ax */ 12407 /* test HI8(eax), 1 */ /* 0x30011D79: test ah, 1 */ 12408 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12409 _cf = 0; 12410 _flag_k = FK_NARROW(FK_TEST, 24); 12411 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011D89; /* 0x30011D7C: jne 0x30011d89 */ 12412 L_30011D7E: 12413 esi = MEM32(esi + 0x8); /* 0x30011D7E: mov esi, dword ptr [esi + 8] */ 12414 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 12415 SET_LO8(eax, 0); /* 0x30011D81: xor al, al */ 12416 _cf = 0; 12417 _flag_k = FK_NARROW(FK_TEST, 24); 12418 L_30011D83: 12419 /* cmp esi, edx */ /* 0x30011D83: cmp esi, edx */ 12420 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 12421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12422 _flag_k = FK_CMP; 12423 RECOMP_BACKEDGE(); 12424 if (CMP_NE(_flag_a, _flag_b)) goto L_30011D3A; /* 0x30011D85: jne 0x30011d3a */ 12425 L_30011D87: 12426 goto L_30011D92; /* 0x30011D87: jmp 0x30011d92 */ 12427 L_30011D89: 12428 esi = MEM32(esi); /* 0x30011D89: mov esi, dword ptr [esi] */ 12429 SET_LO8(eax, 1); /* 0x30011D8B: mov al, 1 */ 12430 RECOMP_BACKEDGE(); 12431 goto L_30011D83; /* 0x30011D8D: jmp 0x30011d83 */ 12432 L_30011D8F: 12433 ecx = MEM32(ebp + 0xC); /* 0x30011D8F: mov ecx, dword ptr [ebp + 0xc] */ 12434 L_30011D92: 12435 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x30011D92: mov dl, byte ptr [edi + 0xc] */ 12436 /* test LO8(edx), LO8(edx) */ /* 0x30011D95: test dl, dl */ 12437 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12438 _cf = 0; 12439 _flag_k = FK_NARROW(FK_TEST, 24); 12440 if (TEST_Z(_flag_a, _flag_b)) goto L_30011F18; /* 0x30011D97: je 0x30011f18 */ 12441 L_30011D9D: 12442 PUSH32(esp, 0); /* 0x30011D9D: push 0 */ 12443 PUSH32(esp, ebx); /* 0x30011D9F: push ebx */ 12444 ecx = edi; /* 0x30011DA0: mov ecx, edi */ 12445 RECOMP_ICALL(0x30012F30u); /* 0x30011DA2: call 0x30012f30 */ /* not lifted */ 12446 RECOMP_FLAGS_IN(); 12447 ecx = MEM32(edi + 0x8); /* 0x30011DA7: mov ecx, dword ptr [edi + 8] */ 12448 MEM32(ebp + (-0x8)) = eax; /* 0x30011DAA: mov dword ptr [ebp - 8], eax */ 12449 MEM32(eax) = ecx; /* 0x30011DAD: mov dword ptr [eax], ecx */ 12450 edx = MEM32(edi + 0x8); /* 0x30011DAF: mov edx, dword ptr [edi + 8] */ 12451 ecx = MEM32(ebp + 0xC); /* 0x30011DB2: mov ecx, dword ptr [ebp + 0xc] */ 12452 MEM32(eax + 0x8) = edx; /* 0x30011DB5: mov dword ptr [eax + 8], edx */ 12453 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 12454 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12455 eax = eax + 0xCu; /* 0x30011DB8: add eax, 0xc */ 12456 _flag_k = FK_ADD; 12457 PUSH32(esp, ecx); /* 0x30011DBB: push ecx */ 12458 PUSH32(esp, eax); /* 0x30011DBC: push eax */ 12459 RECOMP_ICALL(0x30013530u); /* 0x30011DBD: call 0x30013530 */ /* not lifted */ 12460 RECOMP_FLAGS_IN(); 12461 ecx = MEM32(edi + 0x10); /* 0x30011DC2: mov ecx, dword ptr [edi + 0x10] */ 12462 eax = MEM32(edi + 0x4); /* 0x30011DC5: mov eax, dword ptr [edi + 4] */ 12463 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12464 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12465 esp = esp + 8; /* 0x30011DC8: add esp, 8 */ 12466 _flag_k = FK_ADD; 12467 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12468 ecx = ecx + 1; /* 0x30011DCB: inc ecx */ 12469 _flag_k = FK_INC; 12470 /* cmp ebx, eax */ /* 0x30011DCC: cmp ebx, eax */ 12471 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 12472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12473 _flag_k = FK_CMP; 12474 MEM32(edi + 0x10) = ecx; /* 0x30011DCE: mov dword ptr [edi + 0x10], ecx */ 12475 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011DFF; /* 0x30011DD1: je 0x30011dff */ 12476 L_30011DD3: 12477 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30011DD3: cmp esi, dword ptr [edi + 8] */ 12478 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12480 _flag_k = FK_CMP; 12481 if (CMP_NE(_flag_a, _flag_b)) goto L_30011DFF; /* 0x30011DD6: jne 0x30011dff */ 12482 L_30011DD8: 12483 eax = MEM32(ebp + 0xC); /* 0x30011DD8: mov eax, dword ptr [ebp + 0xc] */ 12484 edx = ebx + 0xC; /* 0x30011DDB: lea edx, [ebx + 0xc] */ 12485 PUSH32(esp, edx); /* 0x30011DDE: push edx */ 12486 PUSH32(esp, eax); /* 0x30011DDF: push eax */ 12487 ecx = edi + 0x1; /* 0x30011DE0: lea ecx, [edi + 1] */ 12488 RECOMP_ICALL(0x300112D0u); /* 0x30011DE3: call 0x300112d0 */ /* not lifted */ 12489 RECOMP_FLAGS_IN(); 12490 /* test LO8(eax), LO8(eax) */ /* 0x30011DE8: test al, al */ 12491 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12492 _cf = 0; 12493 _flag_k = FK_NARROW(FK_TEST, 24); 12494 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011DFF; /* 0x30011DEA: jne 0x30011dff */ 12495 L_30011DEC: 12496 ecx = MEM32(ebp + (-0x8)); /* 0x30011DEC: mov ecx, dword ptr [ebp - 8] */ 12497 MEM32(ebx + 0x8) = ecx; /* 0x30011DEF: mov dword ptr [ebx + 8], ecx */ 12498 eax = MEM32(edi + 0x4); /* 0x30011DF2: mov eax, dword ptr [edi + 4] */ 12499 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x30011DF5: cmp ebx, dword ptr [eax + 8] */ 12500 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 12501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12502 _flag_k = FK_CMP; 12503 if (CMP_NE(_flag_a, _flag_b)) goto L_30011E1F; /* 0x30011DF8: jne 0x30011e1f */ 12504 L_30011DFA: 12505 MEM32(eax + 0x8) = ecx; /* 0x30011DFA: mov dword ptr [eax + 8], ecx */ 12506 goto L_30011E1F; /* 0x30011DFD: jmp 0x30011e1f */ 12507 L_30011DFF: 12508 ecx = MEM32(ebp + (-0x8)); /* 0x30011DFF: mov ecx, dword ptr [ebp - 8] */ 12509 MEM32(ebx) = ecx; /* 0x30011E02: mov dword ptr [ebx], ecx */ 12510 eax = MEM32(edi + 0x4); /* 0x30011E04: mov eax, dword ptr [edi + 4] */ 12511 /* cmp ebx, eax */ /* 0x30011E07: cmp ebx, eax */ 12512 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 12513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12514 _flag_k = FK_CMP; 12515 if (CMP_NE(_flag_a, _flag_b)) goto L_30011E16; /* 0x30011E09: jne 0x30011e16 */ 12516 L_30011E0B: 12517 MEM32(eax + 0x4) = ecx; /* 0x30011E0B: mov dword ptr [eax + 4], ecx */ 12518 edx = MEM32(edi + 0x4); /* 0x30011E0E: mov edx, dword ptr [edi + 4] */ 12519 MEM32(edx + 0x8) = ecx; /* 0x30011E11: mov dword ptr [edx + 8], ecx */ 12520 goto L_30011E1F; /* 0x30011E14: jmp 0x30011e1f */ 12521 L_30011E16: 12522 /* cmp ebx, MEM32(eax) */ /* 0x30011E16: cmp ebx, dword ptr [eax] */ 12523 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax)); 12524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12525 _flag_k = FK_CMP; 12526 if (CMP_NE(_flag_a, _flag_b)) goto L_30011E1F; /* 0x30011E18: jne 0x30011e1f */ 12527 L_30011E1A: 12528 ecx = MEM32(ebp + (-0x8)); /* 0x30011E1A: mov ecx, dword ptr [ebp - 8] */ 12529 MEM32(eax) = ecx; /* 0x30011E1D: mov dword ptr [eax], ecx */ 12530 L_30011E1F: 12531 edx = MEM32(edi + 0x4); /* 0x30011E1F: mov edx, dword ptr [edi + 4] */ 12532 esi = MEM32(ebp + (-0x8)); /* 0x30011E22: mov esi, dword ptr [ebp - 8] */ 12533 /* cmp esi, MEM32(edx + 0x4) */ /* 0x30011E25: cmp esi, dword ptr [edx + 4] */ 12534 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12536 _flag_k = FK_CMP; 12537 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011EF3; /* 0x30011E28: je 0x30011ef3 */ 12538 L_30011E2E: 12539 eax = MEM32(esi + 0x4); /* 0x30011E2E: mov eax, dword ptr [esi + 4] */ 12540 SET_LO8(ecx, MEM8(eax + 0x1C)); /* 0x30011E31: mov cl, byte ptr [eax + 0x1c] */ 12541 /* test LO8(ecx), LO8(ecx) */ /* 0x30011E34: test cl, cl */ 12542 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 12543 _cf = 0; 12544 _flag_k = FK_NARROW(FK_TEST, 24); 12545 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011EF3; /* 0x30011E36: jne 0x30011ef3 */ 12546 L_30011E3C: 12547 edx = MEM32(eax + 0x4); /* 0x30011E3C: mov edx, dword ptr [eax + 4] */ 12548 ecx = MEM32(edx); /* 0x30011E3F: mov ecx, dword ptr [edx] */ 12549 /* cmp eax, ecx */ /* 0x30011E41: cmp eax, ecx */ 12550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12552 _flag_k = FK_CMP; 12553 if (CMP_NE(_flag_a, _flag_b)) goto L_30011E99; /* 0x30011E43: jne 0x30011e99 */ 12554 L_30011E45: 12555 ecx = MEM32(edx + 0x8); /* 0x30011E45: mov ecx, dword ptr [edx + 8] */ 12556 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30011E48: mov dl, byte ptr [ecx + 0x1c] */ 12557 /* test LO8(edx), LO8(edx) */ /* 0x30011E4B: test dl, dl */ 12558 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12559 _cf = 0; 12560 _flag_k = FK_NARROW(FK_TEST, 24); 12561 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011E69; /* 0x30011E4D: jne 0x30011e69 */ 12562 L_30011E4F: 12563 MEM8(eax + 0x1C) = (uint8_t)(1); /* 0x30011E4F: mov byte ptr [eax + 0x1c], 1 */ 12564 MEM8(ecx + 0x1C) = (uint8_t)(1); /* 0x30011E53: mov byte ptr [ecx + 0x1c], 1 */ 12565 eax = MEM32(esi + 0x4); /* 0x30011E57: mov eax, dword ptr [esi + 4] */ 12566 ecx = MEM32(eax + 0x4); /* 0x30011E5A: mov ecx, dword ptr [eax + 4] */ 12567 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30011E5D: mov byte ptr [ecx + 0x1c], 0 */ 12568 edx = MEM32(esi + 0x4); /* 0x30011E61: mov edx, dword ptr [esi + 4] */ 12569 esi = MEM32(edx + 0x4); /* 0x30011E64: mov esi, dword ptr [edx + 4] */ 12570 goto L_30011EE7; /* 0x30011E67: jmp 0x30011ee7 */ 12571 L_30011E69: 12572 /* cmp esi, MEM32(eax + 0x8) */ /* 0x30011E69: cmp esi, dword ptr [eax + 8] */ 12573 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 12574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12575 _flag_k = FK_CMP; 12576 if (CMP_NE(_flag_a, _flag_b)) goto L_30011E78; /* 0x30011E6C: jne 0x30011e78 */ 12577 L_30011E6E: 12578 esi = eax; /* 0x30011E6E: mov esi, eax */ 12579 ecx = edi; /* 0x30011E70: mov ecx, edi */ 12580 PUSH32(esp, esi); /* 0x30011E72: push esi */ 12581 RECOMP_ICALL(0x300131A0u); /* 0x30011E73: call 0x300131a0 */ /* not lifted */ 12582 RECOMP_FLAGS_IN(); 12583 L_30011E78: 12584 eax = MEM32(esi + 0x4); /* 0x30011E78: mov eax, dword ptr [esi + 4] */ 12585 MEM8(eax + 0x1C) = (uint8_t)(1); /* 0x30011E7B: mov byte ptr [eax + 0x1c], 1 */ 12586 ecx = MEM32(esi + 0x4); /* 0x30011E7F: mov ecx, dword ptr [esi + 4] */ 12587 edx = MEM32(ecx + 0x4); /* 0x30011E82: mov edx, dword ptr [ecx + 4] */ 12588 MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x30011E85: mov byte ptr [edx + 0x1c], 0 */ 12589 eax = MEM32(esi + 0x4); /* 0x30011E89: mov eax, dword ptr [esi + 4] */ 12590 ecx = MEM32(eax + 0x4); /* 0x30011E8C: mov ecx, dword ptr [eax + 4] */ 12591 PUSH32(esp, ecx); /* 0x30011E8F: push ecx */ 12592 ecx = edi; /* 0x30011E90: mov ecx, edi */ 12593 RECOMP_ICALL(0x30012ED0u); /* 0x30011E92: call 0x30012ed0 */ /* not lifted */ 12594 RECOMP_FLAGS_IN(); 12595 goto L_30011EE7; /* 0x30011E97: jmp 0x30011ee7 */ 12596 L_30011E99: 12597 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30011E99: mov dl, byte ptr [ecx + 0x1c] */ 12598 /* test LO8(edx), LO8(edx) */ /* 0x30011E9C: test dl, dl */ 12599 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12600 _cf = 0; 12601 _flag_k = FK_NARROW(FK_TEST, 24); 12602 if (TEST_NZ(_flag_a, _flag_b)) goto L_30011EBA; /* 0x30011E9E: jne 0x30011eba */ 12603 L_30011EA0: 12604 MEM8(eax + 0x1C) = (uint8_t)(1); /* 0x30011EA0: mov byte ptr [eax + 0x1c], 1 */ 12605 MEM8(ecx + 0x1C) = (uint8_t)(1); /* 0x30011EA4: mov byte ptr [ecx + 0x1c], 1 */ 12606 edx = MEM32(esi + 0x4); /* 0x30011EA8: mov edx, dword ptr [esi + 4] */ 12607 eax = MEM32(edx + 0x4); /* 0x30011EAB: mov eax, dword ptr [edx + 4] */ 12608 MEM8(eax + 0x1C) = (uint8_t)(0); /* 0x30011EAE: mov byte ptr [eax + 0x1c], 0 */ 12609 ecx = MEM32(esi + 0x4); /* 0x30011EB2: mov ecx, dword ptr [esi + 4] */ 12610 esi = MEM32(ecx + 0x4); /* 0x30011EB5: mov esi, dword ptr [ecx + 4] */ 12611 goto L_30011EE7; /* 0x30011EB8: jmp 0x30011ee7 */ 12612 L_30011EBA: 12613 /* cmp esi, MEM32(eax) */ /* 0x30011EBA: cmp esi, dword ptr [eax] */ 12614 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 12615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12616 _flag_k = FK_CMP; 12617 if (CMP_NE(_flag_a, _flag_b)) goto L_30011EC8; /* 0x30011EBC: jne 0x30011ec8 */ 12618 L_30011EBE: 12619 esi = eax; /* 0x30011EBE: mov esi, eax */ 12620 ecx = edi; /* 0x30011EC0: mov ecx, edi */ 12621 PUSH32(esp, esi); /* 0x30011EC2: push esi */ 12622 RECOMP_ICALL(0x30012ED0u); /* 0x30011EC3: call 0x30012ed0 */ /* not lifted */ 12623 RECOMP_FLAGS_IN(); 12624 L_30011EC8: 12625 edx = MEM32(esi + 0x4); /* 0x30011EC8: mov edx, dword ptr [esi + 4] */ 12626 MEM8(edx + 0x1C) = (uint8_t)(1); /* 0x30011ECB: mov byte ptr [edx + 0x1c], 1 */ 12627 eax = MEM32(esi + 0x4); /* 0x30011ECF: mov eax, dword ptr [esi + 4] */ 12628 ecx = MEM32(eax + 0x4); /* 0x30011ED2: mov ecx, dword ptr [eax + 4] */ 12629 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30011ED5: mov byte ptr [ecx + 0x1c], 0 */ 12630 edx = MEM32(esi + 0x4); /* 0x30011ED9: mov edx, dword ptr [esi + 4] */ 12631 ecx = edi; /* 0x30011EDC: mov ecx, edi */ 12632 eax = MEM32(edx + 0x4); /* 0x30011EDE: mov eax, dword ptr [edx + 4] */ 12633 PUSH32(esp, eax); /* 0x30011EE1: push eax */ 12634 RECOMP_ICALL(0x300131A0u); /* 0x30011EE2: call 0x300131a0 */ /* not lifted */ 12635 RECOMP_FLAGS_IN(); 12636 L_30011EE7: 12637 ecx = MEM32(edi + 0x4); /* 0x30011EE7: mov ecx, dword ptr [edi + 4] */ 12638 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x30011EEA: cmp esi, dword ptr [ecx + 4] */ 12639 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12641 _flag_k = FK_CMP; 12642 RECOMP_BACKEDGE(); 12643 if (CMP_NE(_flag_a, _flag_b)) goto L_30011E2E; /* 0x30011EED: jne 0x30011e2e */ 12644 L_30011EF3: 12645 edx = MEM32(edi + 0x4); /* 0x30011EF3: mov edx, dword ptr [edi + 4] */ 12646 ecx = MEM32(ebp + (-0x8)); /* 0x30011EF6: mov ecx, dword ptr [ebp - 8] */ 12647 edi = POP32_VAL(esp); /* 0x30011EF9: pop edi */ 12648 esi = POP32_VAL(esp); /* 0x30011EFA: pop esi */ 12649 eax = MEM32(edx + 0x4); /* 0x30011EFB: mov eax, dword ptr [edx + 4] */ 12650 ebx = POP32_VAL(esp); /* 0x30011EFE: pop ebx */ 12651 MEM8(eax + 0x1C) = (uint8_t)(1); /* 0x30011EFF: mov byte ptr [eax + 0x1c], 1 */ 12652 eax = MEM32(ebp + 0x8); /* 0x30011F03: mov eax, dword ptr [ebp + 8] */ 12653 MEM8(ebp + (-0x10)) = (uint8_t)(1); /* 0x30011F06: mov byte ptr [ebp - 0x10], 1 */ 12654 edx = MEM32(ebp + (-0x10)); /* 0x30011F0A: mov edx, dword ptr [ebp - 0x10] */ 12655 MEM32(eax) = ecx; /* 0x30011F0D: mov dword ptr [eax], ecx */ 12656 MEM32(eax + 0x4) = edx; /* 0x30011F0F: mov dword ptr [eax + 4], edx */ 12657 esp = ebp; /* 0x30011F12: mov esp, ebp */ 12658 ebp = POP32_VAL(esp); /* 0x30011F14: pop ebp */ 12659 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30011F15: ret 8 */ 12660 L_30011F18: 12661 /* test LO8(eax), LO8(eax) */ /* 0x30011F18: test al, al */ 12662 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12663 _cf = 0; 12664 _flag_k = FK_NARROW(FK_TEST, 24); 12665 MEM32(ebp + (-0x10)) = ebx; /* 0x30011F1A: mov dword ptr [ebp - 0x10], ebx */ 12666 if (TEST_Z(_flag_a, _flag_b)) goto L_30011F59; /* 0x30011F1D: je 0x30011f59 */ 12667 L_30011F1F: 12668 eax = MEM32(edi + 0x4); /* 0x30011F1F: mov eax, dword ptr [edi + 4] */ 12669 /* cmp ebx, MEM32(eax) */ /* 0x30011F22: cmp ebx, dword ptr [eax] */ 12670 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax)); 12671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12672 _flag_k = FK_CMP; 12673 if (CMP_NE(_flag_a, _flag_b)) goto L_30011F4E; /* 0x30011F24: jne 0x30011f4e */ 12674 L_30011F26: 12675 PUSH32(esp, ecx); /* 0x30011F26: push ecx */ 12676 PUSH32(esp, ebx); /* 0x30011F27: push ebx */ 12677 eax = ebp + 0xC; /* 0x30011F28: lea eax, [ebp + 0xc] */ 12678 PUSH32(esp, esi); /* 0x30011F2B: push esi */ 12679 PUSH32(esp, eax); /* 0x30011F2C: push eax */ 12680 ecx = edi; /* 0x30011F2D: mov ecx, edi */ 12681 RECOMP_ICALL(0x30012BE0u); /* 0x30011F2F: call 0x30012be0 */ /* not lifted */ 12682 RECOMP_FLAGS_IN(); 12683 ecx = MEM32(eax); /* 0x30011F34: mov ecx, dword ptr [eax] */ 12684 eax = MEM32(ebp + 0x8); /* 0x30011F36: mov eax, dword ptr [ebp + 8] */ 12685 MEM8(ebp + (-0x10)) = (uint8_t)(1); /* 0x30011F39: mov byte ptr [ebp - 0x10], 1 */ 12686 edi = POP32_VAL(esp); /* 0x30011F3D: pop edi */ 12687 MEM32(eax) = ecx; /* 0x30011F3E: mov dword ptr [eax], ecx */ 12688 ecx = MEM32(ebp + (-0x10)); /* 0x30011F40: mov ecx, dword ptr [ebp - 0x10] */ 12689 esi = POP32_VAL(esp); /* 0x30011F43: pop esi */ 12690 MEM32(eax + 0x4) = ecx; /* 0x30011F44: mov dword ptr [eax + 4], ecx */ 12691 ebx = POP32_VAL(esp); /* 0x30011F47: pop ebx */ 12692 esp = ebp; /* 0x30011F48: mov esp, ebp */ 12693 ebp = POP32_VAL(esp); /* 0x30011F4A: pop ebp */ 12694 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30011F4B: ret 8 */ 12695 L_30011F4E: 12696 ecx = ebp + (-0x10); /* 0x30011F4E: lea ecx, [ebp - 0x10] */ 12697 RECOMP_ICALL(0x30013470u); /* 0x30011F51: call 0x30013470 */ /* not lifted */ 12698 RECOMP_FLAGS_IN(); 12699 ecx = MEM32(ebp + 0xC); /* 0x30011F56: mov ecx, dword ptr [ebp + 0xc] */ 12700 L_30011F59: 12701 edx = MEM32(ebp + (-0x10)); /* 0x30011F59: mov edx, dword ptr [ebp - 0x10] */ 12702 PUSH32(esp, ecx); /* 0x30011F5C: push ecx */ 12703 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu); 12704 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12705 edx = edx + 0xCu; /* 0x30011F5D: add edx, 0xc */ 12706 _flag_k = FK_ADD; 12707 ecx = edi + 0x1; /* 0x30011F60: lea ecx, [edi + 1] */ 12708 PUSH32(esp, edx); /* 0x30011F63: push edx */ 12709 RECOMP_ICALL(0x300112D0u); /* 0x30011F64: call 0x300112d0 */ /* not lifted */ 12710 RECOMP_FLAGS_IN(); 12711 /* test LO8(eax), LO8(eax) */ /* 0x30011F69: test al, al */ 12712 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12713 _cf = 0; 12714 _flag_k = FK_NARROW(FK_TEST, 24); 12715 if (TEST_Z(_flag_a, _flag_b)) goto L_30011F8C; /* 0x30011F6B: je 0x30011f8c */ 12716 L_30011F6D: 12717 ecx = MEM32(ebp + 0xC); /* 0x30011F6D: mov ecx, dword ptr [ebp + 0xc] */ 12718 eax = ebp + (-0x1); /* 0x30011F70: lea eax, [ebp - 1] */ 12719 PUSH32(esp, eax); /* 0x30011F73: push eax */ 12720 PUSH32(esp, ecx); /* 0x30011F74: push ecx */ 12721 PUSH32(esp, ebx); /* 0x30011F75: push ebx */ 12722 edx = ebp + 0xC; /* 0x30011F76: lea edx, [ebp + 0xc] */ 12723 PUSH32(esp, esi); /* 0x30011F79: push esi */ 12724 PUSH32(esp, edx); /* 0x30011F7A: push edx */ 12725 ecx = edi; /* 0x30011F7B: mov ecx, edi */ 12726 MEM8(ebp + (-0x1)) = (uint8_t)(1); /* 0x30011F7D: mov byte ptr [ebp - 1], 1 */ 12727 RECOMP_ICALL(0x30012BE0u); /* 0x30011F81: call 0x30012be0 */ /* not lifted */ 12728 RECOMP_FLAGS_IN(); 12729 PUSH32(esp, eax); /* 0x30011F86: push eax */ 12730 ecx = ebp + (-0xC); /* 0x30011F87: lea ecx, [ebp - 0xc] */ 12731 goto L_30011F9B; /* 0x30011F8A: jmp 0x30011f9b */ 12732 L_30011F8C: 12733 edx = ebp + 0xF; /* 0x30011F8C: lea edx, [ebp + 0xf] */ 12734 eax = ebp + (-0x10); /* 0x30011F8F: lea eax, [ebp - 0x10] */ 12735 PUSH32(esp, edx); /* 0x30011F92: push edx */ 12736 MEM8(ebp + 0xF) = (uint8_t)(0); /* 0x30011F93: mov byte ptr [ebp + 0xf], 0 */ 12737 PUSH32(esp, eax); /* 0x30011F97: push eax */ 12738 ecx = ebp + (-0xC); /* 0x30011F98: lea ecx, [ebp - 0xc] */ 12739 L_30011F9B: 12740 RECOMP_ICALL(0x30012B90u); /* 0x30011F9B: call 0x30012b90 */ /* not lifted */ 12741 RECOMP_FLAGS_IN(); 12742 ecx = eax; /* 0x30011FA0: mov ecx, eax */ 12743 eax = MEM32(ebp + 0x8); /* 0x30011FA2: mov eax, dword ptr [ebp + 8] */ 12744 edi = POP32_VAL(esp); /* 0x30011FA5: pop edi */ 12745 esi = POP32_VAL(esp); /* 0x30011FA6: pop esi */ 12746 edx = MEM32(ecx); /* 0x30011FA7: mov edx, dword ptr [ecx] */ 12747 ebx = POP32_VAL(esp); /* 0x30011FA9: pop ebx */ 12748 MEM32(eax) = edx; /* 0x30011FAA: mov dword ptr [eax], edx */ 12749 ecx = MEM32(ecx + 0x4); /* 0x30011FAC: mov ecx, dword ptr [ecx + 4] */ 12750 MEM32(eax + 0x4) = ecx; /* 0x30011FAF: mov dword ptr [eax + 4], ecx */ 12751 esp = ebp; /* 0x30011FB2: mov esp, ebp */ 12752 ebp = POP32_VAL(esp); /* 0x30011FB4: pop ebp */ 12753 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30011FB5: ret 8 */ 12754 RECOMP_REGS_OUT(); 12755 } 12756 12757 void sub_30011FC0(void) { 12758 int _fpu_cmp = 0; 12759 uint32_t _cf = 0; 12760 int _df = 1; 12761 uint32_t _flag_k = FK_NONE; 12762 uint32_t _flag_a = 0, _flag_b = 0; 12763 uint32_t _itail_tgt = 0; 12764 RECOMP_REGS_LOCALS 12765 RECOMP_ENTER(0x30011FC0u); 12766 12767 L_30011FC0: 12768 PUSH32(esp, ebp); /* 0x30011FC0: push ebp */ 12769 ebp = esp; /* 0x30011FC1: mov ebp, esp */ 12770 PUSH32(esp, ecx); /* 0x30011FC3: push ecx */ 12771 PUSH32(esp, ebx); /* 0x30011FC4: push ebx */ 12772 PUSH32(esp, esi); /* 0x30011FC5: push esi */ 12773 esi = MEM32(ebp + 0xC); /* 0x30011FC6: mov esi, dword ptr [ebp + 0xc] */ 12774 PUSH32(esp, edi); /* 0x30011FC9: push edi */ 12775 edi = ecx; /* 0x30011FCA: mov edi, ecx */ 12776 ecx = ebp + 0xC; /* 0x30011FCC: lea ecx, [ebp + 0xc] */ 12777 RECOMP_ICALL(0x30011CD0u); /* 0x30011FCF: call 0x30011cd0 */ /* not lifted */ 12778 RECOMP_FLAGS_IN(); 12779 edx = MEM32(esi); /* 0x30011FD4: mov edx, dword ptr [esi] */ 12780 eax = MEM32(edi + 0x8); /* 0x30011FD6: mov eax, dword ptr [edi + 8] */ 12781 /* cmp edx, eax */ /* 0x30011FD9: cmp edx, eax */ 12782 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 12783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12784 _flag_k = FK_CMP; 12785 MEM32(ebp + (-0x4)) = esi; /* 0x30011FDB: mov dword ptr [ebp - 4], esi */ 12786 if (CMP_NE(_flag_a, _flag_b)) goto L_30012000; /* 0x30011FDE: jne 0x30012000 */ 12787 L_30011FE0: 12788 eax = MEM32(esi + 0x8); /* 0x30011FE0: mov eax, dword ptr [esi + 8] */ 12789 L_30011FE3: 12790 ecx = MEM32(ebp + (-0x4)); /* 0x30011FE3: mov ecx, dword ptr [ebp - 4] */ 12791 edx = MEM32(ecx + 0x4); /* 0x30011FE6: mov edx, dword ptr [ecx + 4] */ 12792 MEM32(eax + 0x4) = edx; /* 0x30011FE9: mov dword ptr [eax + 4], edx */ 12793 ecx = MEM32(edi + 0x4); /* 0x30011FEC: mov ecx, dword ptr [edi + 4] */ 12794 /* cmp MEM32(ecx + 0x4), esi */ /* 0x30011FEF: cmp dword ptr [ecx + 4], esi */ 12795 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 12796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12797 _flag_k = FK_CMP; 12798 if (CMP_NE(_flag_a, _flag_b)) goto L_30012085; /* 0x30011FF2: jne 0x30012085 */ 12799 L_30011FF8: 12800 MEM32(ecx + 0x4) = eax; /* 0x30011FF8: mov dword ptr [ecx + 4], eax */ 12801 goto L_30012093; /* 0x30011FFB: jmp 0x30012093 */ 12802 L_30012000: 12803 ecx = MEM32(esi + 0x8); /* 0x30012000: mov ecx, dword ptr [esi + 8] */ 12804 /* cmp ecx, eax */ /* 0x30012003: cmp ecx, eax */ 12805 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 12806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12807 _flag_k = FK_CMP; 12808 if (CMP_NE(_flag_a, _flag_b)) goto L_3001200B; /* 0x30012005: jne 0x3001200b */ 12809 L_30012007: 12810 eax = edx; /* 0x30012007: mov eax, edx */ 12811 RECOMP_BACKEDGE(); 12812 goto L_30011FE3; /* 0x30012009: jmp 0x30011fe3 */ 12813 L_3001200B: 12814 eax = MEM32(ecx); /* 0x3001200B: mov eax, dword ptr [ecx] */ 12815 SET_LO8(ebx, MEM8(eax + 0x1D)); /* 0x3001200D: mov bl, byte ptr [eax + 0x1d] */ 12816 /* test LO8(ebx), LO8(ebx) */ /* 0x30012010: test bl, bl */ 12817 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12818 _cf = 0; 12819 _flag_k = FK_NARROW(FK_TEST, 24); 12820 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001201F; /* 0x30012012: jne 0x3001201f */ 12821 L_30012014: 12822 ecx = eax; /* 0x30012014: mov ecx, eax */ 12823 eax = MEM32(ecx); /* 0x30012016: mov eax, dword ptr [ecx] */ 12824 SET_LO8(ebx, MEM8(eax + 0x1D)); /* 0x30012018: mov bl, byte ptr [eax + 0x1d] */ 12825 /* test LO8(ebx), LO8(ebx) */ /* 0x3001201B: test bl, bl */ 12826 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12827 _cf = 0; 12828 _flag_k = FK_NARROW(FK_TEST, 24); 12829 RECOMP_BACKEDGE(); 12830 if (TEST_Z(_flag_a, _flag_b)) goto L_30012014; /* 0x3001201D: je 0x30012014 */ 12831 L_3001201F: 12832 eax = MEM32(ecx + 0x8); /* 0x3001201F: mov eax, dword ptr [ecx + 8] */ 12833 /* cmp ecx, esi */ /* 0x30012022: cmp ecx, esi */ 12834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 12835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12836 _flag_k = FK_CMP; 12837 MEM32(ebp + (-0x4)) = ecx; /* 0x30012024: mov dword ptr [ebp - 4], ecx */ 12838 RECOMP_BACKEDGE(); 12839 if (CMP_EQ(_flag_a, _flag_b)) goto L_30011FE3; /* 0x30012027: je 0x30011fe3 */ 12840 L_30012029: 12841 MEM32(edx + 0x4) = ecx; /* 0x30012029: mov dword ptr [edx + 4], ecx */ 12842 edx = MEM32(esi); /* 0x3001202C: mov edx, dword ptr [esi] */ 12843 MEM32(ecx) = edx; /* 0x3001202E: mov dword ptr [ecx], edx */ 12844 edx = MEM32(esi + 0x8); /* 0x30012030: mov edx, dword ptr [esi + 8] */ 12845 /* cmp ecx, edx */ /* 0x30012033: cmp ecx, edx */ 12846 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12848 _flag_k = FK_CMP; 12849 if (CMP_NE(_flag_a, _flag_b)) goto L_3001203C; /* 0x30012035: jne 0x3001203c */ 12850 L_30012037: 12851 MEM32(eax + 0x4) = ecx; /* 0x30012037: mov dword ptr [eax + 4], ecx */ 12852 goto L_30012053; /* 0x3001203A: jmp 0x30012053 */ 12853 L_3001203C: 12854 edx = MEM32(ecx + 0x4); /* 0x3001203C: mov edx, dword ptr [ecx + 4] */ 12855 MEM32(eax + 0x4) = edx; /* 0x3001203F: mov dword ptr [eax + 4], edx */ 12856 edx = MEM32(ecx + 0x4); /* 0x30012042: mov edx, dword ptr [ecx + 4] */ 12857 MEM32(edx) = eax; /* 0x30012045: mov dword ptr [edx], eax */ 12858 edx = MEM32(esi + 0x8); /* 0x30012047: mov edx, dword ptr [esi + 8] */ 12859 MEM32(ecx + 0x8) = edx; /* 0x3001204A: mov dword ptr [ecx + 8], edx */ 12860 edx = MEM32(esi + 0x8); /* 0x3001204D: mov edx, dword ptr [esi + 8] */ 12861 MEM32(edx + 0x4) = ecx; /* 0x30012050: mov dword ptr [edx + 4], ecx */ 12862 L_30012053: 12863 edx = MEM32(edi + 0x4); /* 0x30012053: mov edx, dword ptr [edi + 4] */ 12864 /* cmp MEM32(edx + 0x4), esi */ /* 0x30012056: cmp dword ptr [edx + 4], esi */ 12865 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 12866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12867 _flag_k = FK_CMP; 12868 if (CMP_NE(_flag_a, _flag_b)) goto L_30012060; /* 0x30012059: jne 0x30012060 */ 12869 L_3001205B: 12870 MEM32(edx + 0x4) = ecx; /* 0x3001205B: mov dword ptr [edx + 4], ecx */ 12871 goto L_3001206E; /* 0x3001205E: jmp 0x3001206e */ 12872 L_30012060: 12873 edx = MEM32(esi + 0x4); /* 0x30012060: mov edx, dword ptr [esi + 4] */ 12874 /* cmp MEM32(edx), esi */ /* 0x30012063: cmp dword ptr [edx], esi */ 12875 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 12876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12877 _flag_k = FK_CMP; 12878 if (CMP_NE(_flag_a, _flag_b)) goto L_3001206B; /* 0x30012065: jne 0x3001206b */ 12879 L_30012067: 12880 MEM32(edx) = ecx; /* 0x30012067: mov dword ptr [edx], ecx */ 12881 goto L_3001206E; /* 0x30012069: jmp 0x3001206e */ 12882 L_3001206B: 12883 MEM32(edx + 0x8) = ecx; /* 0x3001206B: mov dword ptr [edx + 8], ecx */ 12884 L_3001206E: 12885 edx = MEM32(esi + 0x4); /* 0x3001206E: mov edx, dword ptr [esi + 4] */ 12886 MEM32(ebp + (-0x4)) = esi; /* 0x30012071: mov dword ptr [ebp - 4], esi */ 12887 MEM32(ecx + 0x4) = edx; /* 0x30012074: mov dword ptr [ecx + 4], edx */ 12888 SET_LO8(ebx, MEM8(esi + 0x1C)); /* 0x30012077: mov bl, byte ptr [esi + 0x1c] */ 12889 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3001207A: mov dl, byte ptr [ecx + 0x1c] */ 12890 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001207D: mov byte ptr [ecx + 0x1c], bl */ 12891 MEM8(esi + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012080: mov byte ptr [esi + 0x1c], dl */ 12892 goto L_300120EE; /* 0x30012083: jmp 0x300120ee */ 12893 L_30012085: 12894 ecx = MEM32(esi + 0x4); /* 0x30012085: mov ecx, dword ptr [esi + 4] */ 12895 /* cmp MEM32(ecx), esi */ /* 0x30012088: cmp dword ptr [ecx], esi */ 12896 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 12897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12898 _flag_k = FK_CMP; 12899 if (CMP_NE(_flag_a, _flag_b)) goto L_30012090; /* 0x3001208A: jne 0x30012090 */ 12900 L_3001208C: 12901 MEM32(ecx) = eax; /* 0x3001208C: mov dword ptr [ecx], eax */ 12902 goto L_30012093; /* 0x3001208E: jmp 0x30012093 */ 12903 L_30012090: 12904 MEM32(ecx + 0x8) = eax; /* 0x30012090: mov dword ptr [ecx + 8], eax */ 12905 L_30012093: 12906 ebx = MEM32(edi + 0x4); /* 0x30012093: mov ebx, dword ptr [edi + 4] */ 12907 /* cmp MEM32(ebx), esi */ /* 0x30012096: cmp dword ptr [ebx], esi */ 12908 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 12909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12910 _flag_k = FK_CMP; 12911 if (CMP_NE(_flag_a, _flag_b)) goto L_300120BF; /* 0x30012098: jne 0x300120bf */ 12912 L_3001209A: 12913 ecx = MEM32(esi + 0x8); /* 0x3001209A: mov ecx, dword ptr [esi + 8] */ 12914 edx = MEM32(edi + 0x8); /* 0x3001209D: mov edx, dword ptr [edi + 8] */ 12915 /* cmp ecx, edx */ /* 0x300120A0: cmp ecx, edx */ 12916 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12918 _flag_k = FK_CMP; 12919 if (CMP_NE(_flag_a, _flag_b)) goto L_300120A9; /* 0x300120A2: jne 0x300120a9 */ 12920 L_300120A4: 12921 edx = MEM32(esi + 0x4); /* 0x300120A4: mov edx, dword ptr [esi + 4] */ 12922 goto L_300120BD; /* 0x300120A7: jmp 0x300120bd */ 12923 L_300120A9: 12924 ecx = MEM32(eax); /* 0x300120A9: mov ecx, dword ptr [eax] */ 12925 edx = eax; /* 0x300120AB: mov edx, eax */ 12926 /* cmp MEM8(ecx + 0x1D), 0 */ /* 0x300120AD: cmp byte ptr [ecx + 0x1d], 0 */ 12927 _flag_a = (uint32_t)(MEM8(ecx + 0x1D)) << 24; _flag_b = (uint32_t)(0) << 24; 12928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12929 _flag_k = FK_NARROW(FK_CMP, 24); 12930 if (CMP_NE(_flag_a, _flag_b)) goto L_300120BD; /* 0x300120B1: jne 0x300120bd */ 12931 L_300120B3: 12932 edx = ecx; /* 0x300120B3: mov edx, ecx */ 12933 ecx = MEM32(edx); /* 0x300120B5: mov ecx, dword ptr [edx] */ 12934 /* cmp MEM8(ecx + 0x1D), 0 */ /* 0x300120B7: cmp byte ptr [ecx + 0x1d], 0 */ 12935 _flag_a = (uint32_t)(MEM8(ecx + 0x1D)) << 24; _flag_b = (uint32_t)(0) << 24; 12936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12937 _flag_k = FK_NARROW(FK_CMP, 24); 12938 RECOMP_BACKEDGE(); 12939 if (CMP_EQ(_flag_a, _flag_b)) goto L_300120B3; /* 0x300120BB: je 0x300120b3 */ 12940 L_300120BD: 12941 MEM32(ebx) = edx; /* 0x300120BD: mov dword ptr [ebx], edx */ 12942 L_300120BF: 12943 ebx = MEM32(edi + 0x4); /* 0x300120BF: mov ebx, dword ptr [edi + 4] */ 12944 /* cmp MEM32(ebx + 0x8), esi */ /* 0x300120C2: cmp dword ptr [ebx + 8], esi */ 12945 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 12946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12947 _flag_k = FK_CMP; 12948 if (CMP_NE(_flag_a, _flag_b)) goto L_300120EE; /* 0x300120C5: jne 0x300120ee */ 12949 L_300120C7: 12950 ecx = MEM32(esi); /* 0x300120C7: mov ecx, dword ptr [esi] */ 12951 edx = MEM32(edi + 0x8); /* 0x300120C9: mov edx, dword ptr [edi + 8] */ 12952 /* cmp ecx, edx */ /* 0x300120CC: cmp ecx, edx */ 12953 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12955 _flag_k = FK_CMP; 12956 if (CMP_NE(_flag_a, _flag_b)) goto L_300120D5; /* 0x300120CE: jne 0x300120d5 */ 12957 L_300120D0: 12958 edx = MEM32(esi + 0x4); /* 0x300120D0: mov edx, dword ptr [esi + 4] */ 12959 goto L_300120EB; /* 0x300120D3: jmp 0x300120eb */ 12960 L_300120D5: 12961 ecx = MEM32(eax + 0x8); /* 0x300120D5: mov ecx, dword ptr [eax + 8] */ 12962 edx = eax; /* 0x300120D8: mov edx, eax */ 12963 /* cmp MEM8(ecx + 0x1D), 0 */ /* 0x300120DA: cmp byte ptr [ecx + 0x1d], 0 */ 12964 _flag_a = (uint32_t)(MEM8(ecx + 0x1D)) << 24; _flag_b = (uint32_t)(0) << 24; 12965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12966 _flag_k = FK_NARROW(FK_CMP, 24); 12967 if (CMP_NE(_flag_a, _flag_b)) goto L_300120EB; /* 0x300120DE: jne 0x300120eb */ 12968 L_300120E0: 12969 edx = ecx; /* 0x300120E0: mov edx, ecx */ 12970 ecx = MEM32(edx + 0x8); /* 0x300120E2: mov ecx, dword ptr [edx + 8] */ 12971 /* cmp MEM8(ecx + 0x1D), 0 */ /* 0x300120E5: cmp byte ptr [ecx + 0x1d], 0 */ 12972 _flag_a = (uint32_t)(MEM8(ecx + 0x1D)) << 24; _flag_b = (uint32_t)(0) << 24; 12973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12974 _flag_k = FK_NARROW(FK_CMP, 24); 12975 RECOMP_BACKEDGE(); 12976 if (CMP_EQ(_flag_a, _flag_b)) goto L_300120E0; /* 0x300120E9: je 0x300120e0 */ 12977 L_300120EB: 12978 MEM32(ebx + 0x8) = edx; /* 0x300120EB: mov dword ptr [ebx + 8], edx */ 12979 L_300120EE: 12980 ecx = MEM32(ebp + (-0x4)); /* 0x300120EE: mov ecx, dword ptr [ebp - 4] */ 12981 SET_LO8(ebx, 1); /* 0x300120F1: mov bl, 1 */ 12982 /* cmp MEM8(ecx + 0x1C), LO8(ebx) */ /* 0x300120F3: cmp byte ptr [ecx + 0x1c], bl */ 12983 _flag_a = (uint32_t)(MEM8(ecx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12985 _flag_k = FK_NARROW(FK_CMP, 24); 12986 if (CMP_NE(_flag_a, _flag_b)) goto L_30012359; /* 0x300120F6: jne 0x30012359 */ 12987 L_300120FC: 12988 edx = MEM32(edi + 0x4); /* 0x300120FC: mov edx, dword ptr [edi + 4] */ 12989 /* cmp eax, MEM32(edx + 0x4) */ /* 0x300120FF: cmp eax, dword ptr [edx + 4] */ 12990 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 12991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12992 _flag_k = FK_CMP; 12993 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012356; /* 0x30012102: je 0x30012356 */ 12994 L_30012108: 12995 /* cmp MEM8(eax + 0x1C), LO8(ebx) */ /* 0x30012108: cmp byte ptr [eax + 0x1c], bl */ 12996 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12998 _flag_k = FK_NARROW(FK_CMP, 24); 12999 if (CMP_NE(_flag_a, _flag_b)) goto L_30012356; /* 0x3001210B: jne 0x30012356 */ 13000 L_30012111: 13001 edx = MEM32(eax + 0x4); /* 0x30012111: mov edx, dword ptr [eax + 4] */ 13002 ecx = MEM32(edx); /* 0x30012114: mov ecx, dword ptr [edx] */ 13003 /* cmp eax, ecx */ /* 0x30012116: cmp eax, ecx */ 13004 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13006 _flag_k = FK_CMP; 13007 if (CMP_NE(_flag_a, _flag_b)) goto L_30012188; /* 0x30012118: jne 0x30012188 */ 13008 L_3001211A: 13009 ecx = MEM32(edx + 0x8); /* 0x3001211A: mov ecx, dword ptr [edx + 8] */ 13010 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3001211D: mov dl, byte ptr [ecx + 0x1c] */ 13011 /* test LO8(edx), LO8(edx) */ /* 0x30012120: test dl, dl */ 13012 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13013 _cf = 0; 13014 _flag_k = FK_NARROW(FK_TEST, 24); 13015 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001216F; /* 0x30012122: jne 0x3001216f */ 13016 L_30012124: 13017 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012124: mov byte ptr [ecx + 0x1c], bl */ 13018 ecx = MEM32(eax + 0x4); /* 0x30012127: mov ecx, dword ptr [eax + 4] */ 13019 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3001212A: mov byte ptr [ecx + 0x1c], 0 */ 13020 ecx = MEM32(eax + 0x4); /* 0x3001212E: mov ecx, dword ptr [eax + 4] */ 13021 edx = MEM32(ecx + 0x8); /* 0x30012131: mov edx, dword ptr [ecx + 8] */ 13022 esi = MEM32(edx); /* 0x30012134: mov esi, dword ptr [edx] */ 13023 MEM32(ecx + 0x8) = esi; /* 0x30012136: mov dword ptr [ecx + 8], esi */ 13024 esi = MEM32(edx); /* 0x30012139: mov esi, dword ptr [edx] */ 13025 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001213B: cmp esi, dword ptr [edi + 8] */ 13026 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13028 _flag_k = FK_CMP; 13029 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012143; /* 0x3001213E: je 0x30012143 */ 13030 L_30012140: 13031 MEM32(esi + 0x4) = ecx; /* 0x30012140: mov dword ptr [esi + 4], ecx */ 13032 L_30012143: 13033 esi = MEM32(ecx + 0x4); /* 0x30012143: mov esi, dword ptr [ecx + 4] */ 13034 MEM32(edx + 0x4) = esi; /* 0x30012146: mov dword ptr [edx + 4], esi */ 13035 esi = MEM32(edi + 0x4); /* 0x30012149: mov esi, dword ptr [edi + 4] */ 13036 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001214C: cmp ecx, dword ptr [esi + 4] */ 13037 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13039 _flag_k = FK_CMP; 13040 if (CMP_NE(_flag_a, _flag_b)) goto L_30012156; /* 0x3001214F: jne 0x30012156 */ 13041 L_30012151: 13042 MEM32(esi + 0x4) = edx; /* 0x30012151: mov dword ptr [esi + 4], edx */ 13043 goto L_30012164; /* 0x30012154: jmp 0x30012164 */ 13044 L_30012156: 13045 esi = MEM32(ecx + 0x4); /* 0x30012156: mov esi, dword ptr [ecx + 4] */ 13046 /* cmp ecx, MEM32(esi) */ /* 0x30012159: cmp ecx, dword ptr [esi] */ 13047 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13049 _flag_k = FK_CMP; 13050 if (CMP_NE(_flag_a, _flag_b)) goto L_30012161; /* 0x3001215B: jne 0x30012161 */ 13051 L_3001215D: 13052 MEM32(esi) = edx; /* 0x3001215D: mov dword ptr [esi], edx */ 13053 goto L_30012164; /* 0x3001215F: jmp 0x30012164 */ 13054 L_30012161: 13055 MEM32(esi + 0x8) = edx; /* 0x30012161: mov dword ptr [esi + 8], edx */ 13056 L_30012164: 13057 MEM32(edx) = ecx; /* 0x30012164: mov dword ptr [edx], ecx */ 13058 MEM32(ecx + 0x4) = edx; /* 0x30012166: mov dword ptr [ecx + 4], edx */ 13059 edx = MEM32(eax + 0x4); /* 0x30012169: mov edx, dword ptr [eax + 4] */ 13060 ecx = MEM32(edx + 0x8); /* 0x3001216C: mov ecx, dword ptr [edx + 8] */ 13061 L_3001216F: 13062 edx = MEM32(ecx); /* 0x3001216F: mov edx, dword ptr [ecx] */ 13063 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x30012171: cmp byte ptr [edx + 0x1c], bl */ 13064 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13066 _flag_k = FK_NARROW(FK_CMP, 24); 13067 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012174: jne 0x3001220a */ 13068 L_3001217A: 13069 edx = MEM32(ecx + 0x8); /* 0x3001217A: mov edx, dword ptr [ecx + 8] */ 13070 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001217D: cmp byte ptr [edx + 0x1c], bl */ 13071 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13073 _flag_k = FK_NARROW(FK_CMP, 24); 13074 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012180: jne 0x3001220a */ 13075 L_30012186: 13076 goto L_300121F2; /* 0x30012186: jmp 0x300121f2 */ 13077 L_30012188: 13078 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30012188: mov dl, byte ptr [ecx + 0x1c] */ 13079 /* test LO8(edx), LO8(edx) */ /* 0x3001218B: test dl, dl */ 13080 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13081 _cf = 0; 13082 _flag_k = FK_NARROW(FK_TEST, 24); 13083 if (TEST_NZ(_flag_a, _flag_b)) goto L_300121DB; /* 0x3001218D: jne 0x300121db */ 13084 L_3001218F: 13085 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001218F: mov byte ptr [ecx + 0x1c], bl */ 13086 ecx = MEM32(eax + 0x4); /* 0x30012192: mov ecx, dword ptr [eax + 4] */ 13087 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012195: mov byte ptr [ecx + 0x1c], 0 */ 13088 ecx = MEM32(eax + 0x4); /* 0x30012199: mov ecx, dword ptr [eax + 4] */ 13089 edx = MEM32(ecx); /* 0x3001219C: mov edx, dword ptr [ecx] */ 13090 esi = MEM32(edx + 0x8); /* 0x3001219E: mov esi, dword ptr [edx + 8] */ 13091 MEM32(ecx) = esi; /* 0x300121A1: mov dword ptr [ecx], esi */ 13092 esi = MEM32(edx + 0x8); /* 0x300121A3: mov esi, dword ptr [edx + 8] */ 13093 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300121A6: cmp esi, dword ptr [edi + 8] */ 13094 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13096 _flag_k = FK_CMP; 13097 if (CMP_EQ(_flag_a, _flag_b)) goto L_300121AE; /* 0x300121A9: je 0x300121ae */ 13098 L_300121AB: 13099 MEM32(esi + 0x4) = ecx; /* 0x300121AB: mov dword ptr [esi + 4], ecx */ 13100 L_300121AE: 13101 esi = MEM32(ecx + 0x4); /* 0x300121AE: mov esi, dword ptr [ecx + 4] */ 13102 MEM32(edx + 0x4) = esi; /* 0x300121B1: mov dword ptr [edx + 4], esi */ 13103 esi = MEM32(edi + 0x4); /* 0x300121B4: mov esi, dword ptr [edi + 4] */ 13104 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300121B7: cmp ecx, dword ptr [esi + 4] */ 13105 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13107 _flag_k = FK_CMP; 13108 if (CMP_NE(_flag_a, _flag_b)) goto L_300121C1; /* 0x300121BA: jne 0x300121c1 */ 13109 L_300121BC: 13110 MEM32(esi + 0x4) = edx; /* 0x300121BC: mov dword ptr [esi + 4], edx */ 13111 goto L_300121D0; /* 0x300121BF: jmp 0x300121d0 */ 13112 L_300121C1: 13113 esi = MEM32(ecx + 0x4); /* 0x300121C1: mov esi, dword ptr [ecx + 4] */ 13114 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300121C4: cmp ecx, dword ptr [esi + 8] */ 13115 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13117 _flag_k = FK_CMP; 13118 if (CMP_NE(_flag_a, _flag_b)) goto L_300121CE; /* 0x300121C7: jne 0x300121ce */ 13119 L_300121C9: 13120 MEM32(esi + 0x8) = edx; /* 0x300121C9: mov dword ptr [esi + 8], edx */ 13121 goto L_300121D0; /* 0x300121CC: jmp 0x300121d0 */ 13122 L_300121CE: 13123 MEM32(esi) = edx; /* 0x300121CE: mov dword ptr [esi], edx */ 13124 L_300121D0: 13125 MEM32(edx + 0x8) = ecx; /* 0x300121D0: mov dword ptr [edx + 8], ecx */ 13126 MEM32(ecx + 0x4) = edx; /* 0x300121D3: mov dword ptr [ecx + 4], edx */ 13127 edx = MEM32(eax + 0x4); /* 0x300121D6: mov edx, dword ptr [eax + 4] */ 13128 ecx = MEM32(edx); /* 0x300121D9: mov ecx, dword ptr [edx] */ 13129 L_300121DB: 13130 edx = MEM32(ecx + 0x8); /* 0x300121DB: mov edx, dword ptr [ecx + 8] */ 13131 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121DE: cmp byte ptr [edx + 0x1c], bl */ 13132 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13134 _flag_k = FK_NARROW(FK_CMP, 24); 13135 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121E1: jne 0x300122b7 */ 13136 L_300121E7: 13137 edx = MEM32(ecx); /* 0x300121E7: mov edx, dword ptr [ecx] */ 13138 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121E9: cmp byte ptr [edx + 0x1c], bl */ 13139 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13141 _flag_k = FK_NARROW(FK_CMP, 24); 13142 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121EC: jne 0x300122b7 */ 13143 L_300121F2: 13144 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300121F2: mov byte ptr [ecx + 0x1c], 0 */ 13145 ecx = MEM32(edi + 0x4); /* 0x300121F6: mov ecx, dword ptr [edi + 4] */ 13146 eax = MEM32(eax + 0x4); /* 0x300121F9: mov eax, dword ptr [eax + 4] */ 13147 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300121FC: cmp eax, dword ptr [ecx + 4] */ 13148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13150 _flag_k = FK_CMP; 13151 RECOMP_BACKEDGE(); 13152 if (CMP_NE(_flag_a, _flag_b)) goto L_30012108; /* 0x300121FF: jne 0x30012108 */ 13153 L_30012205: 13154 goto L_30012356; /* 0x30012205: jmp 0x30012356 */ 13155 L_3001220A: 13156 edx = MEM32(ecx + 0x8); /* 0x3001220A: mov edx, dword ptr [ecx + 8] */ 13157 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001220D: cmp byte ptr [edx + 0x1c], bl */ 13158 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13160 _flag_k = FK_NARROW(FK_CMP, 24); 13161 if (CMP_NE(_flag_a, _flag_b)) goto L_3001225B; /* 0x30012210: jne 0x3001225b */ 13162 L_30012212: 13163 edx = MEM32(ecx); /* 0x30012212: mov edx, dword ptr [ecx] */ 13164 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012214: mov byte ptr [edx + 0x1c], bl */ 13165 edx = MEM32(ecx); /* 0x30012217: mov edx, dword ptr [ecx] */ 13166 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012219: mov byte ptr [ecx + 0x1c], 0 */ 13167 esi = MEM32(edx + 0x8); /* 0x3001221D: mov esi, dword ptr [edx + 8] */ 13168 MEM32(ecx) = esi; /* 0x30012220: mov dword ptr [ecx], esi */ 13169 esi = MEM32(edx + 0x8); /* 0x30012222: mov esi, dword ptr [edx + 8] */ 13170 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012225: cmp esi, dword ptr [edi + 8] */ 13171 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13173 _flag_k = FK_CMP; 13174 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001222D; /* 0x30012228: je 0x3001222d */ 13175 L_3001222A: 13176 MEM32(esi + 0x4) = ecx; /* 0x3001222A: mov dword ptr [esi + 4], ecx */ 13177 L_3001222D: 13178 esi = MEM32(ecx + 0x4); /* 0x3001222D: mov esi, dword ptr [ecx + 4] */ 13179 MEM32(edx + 0x4) = esi; /* 0x30012230: mov dword ptr [edx + 4], esi */ 13180 esi = MEM32(edi + 0x4); /* 0x30012233: mov esi, dword ptr [edi + 4] */ 13181 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012236: cmp ecx, dword ptr [esi + 4] */ 13182 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13184 _flag_k = FK_CMP; 13185 if (CMP_NE(_flag_a, _flag_b)) goto L_30012240; /* 0x30012239: jne 0x30012240 */ 13186 L_3001223B: 13187 MEM32(esi + 0x4) = edx; /* 0x3001223B: mov dword ptr [esi + 4], edx */ 13188 goto L_3001224F; /* 0x3001223E: jmp 0x3001224f */ 13189 L_30012240: 13190 esi = MEM32(ecx + 0x4); /* 0x30012240: mov esi, dword ptr [ecx + 4] */ 13191 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012243: cmp ecx, dword ptr [esi + 8] */ 13192 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13194 _flag_k = FK_CMP; 13195 if (CMP_NE(_flag_a, _flag_b)) goto L_3001224D; /* 0x30012246: jne 0x3001224d */ 13196 L_30012248: 13197 MEM32(esi + 0x8) = edx; /* 0x30012248: mov dword ptr [esi + 8], edx */ 13198 goto L_3001224F; /* 0x3001224B: jmp 0x3001224f */ 13199 L_3001224D: 13200 MEM32(esi) = edx; /* 0x3001224D: mov dword ptr [esi], edx */ 13201 L_3001224F: 13202 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 13203 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 13204 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 13205 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 13206 L_3001225B: 13207 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 13208 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 13209 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 13210 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 13211 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 13212 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 13213 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 13214 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 13215 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 13216 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 13217 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 13218 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 13219 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 13220 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13222 _flag_k = FK_CMP; 13223 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 13224 L_30012282: 13225 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 13226 L_30012285: 13227 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 13228 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 13229 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 13230 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 13231 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13233 _flag_k = FK_CMP; 13234 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 13235 L_30012293: 13236 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 13237 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 13238 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 13239 L_3001229D: 13240 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 13241 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 13242 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13244 _flag_k = FK_CMP; 13245 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 13246 L_300122A4: 13247 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 13248 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 13249 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 13250 L_300122AD: 13251 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 13252 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 13253 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 13254 L_300122B7: 13255 edx = MEM32(ecx); /* 0x300122B7: mov edx, dword ptr [ecx] */ 13256 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300122B9: cmp byte ptr [edx + 0x1c], bl */ 13257 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13259 _flag_k = FK_NARROW(FK_CMP, 24); 13260 if (CMP_NE(_flag_a, _flag_b)) goto L_30012305; /* 0x300122BC: jne 0x30012305 */ 13261 L_300122BE: 13262 edx = MEM32(ecx + 0x8); /* 0x300122BE: mov edx, dword ptr [ecx + 8] */ 13263 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x300122C1: mov byte ptr [edx + 0x1c], bl */ 13264 edx = MEM32(ecx + 0x8); /* 0x300122C4: mov edx, dword ptr [ecx + 8] */ 13265 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300122C7: mov byte ptr [ecx + 0x1c], 0 */ 13266 esi = MEM32(edx); /* 0x300122CB: mov esi, dword ptr [edx] */ 13267 MEM32(ecx + 0x8) = esi; /* 0x300122CD: mov dword ptr [ecx + 8], esi */ 13268 esi = MEM32(edx); /* 0x300122D0: mov esi, dword ptr [edx] */ 13269 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300122D2: cmp esi, dword ptr [edi + 8] */ 13270 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13272 _flag_k = FK_CMP; 13273 if (CMP_EQ(_flag_a, _flag_b)) goto L_300122DA; /* 0x300122D5: je 0x300122da */ 13274 L_300122D7: 13275 MEM32(esi + 0x4) = ecx; /* 0x300122D7: mov dword ptr [esi + 4], ecx */ 13276 L_300122DA: 13277 esi = MEM32(ecx + 0x4); /* 0x300122DA: mov esi, dword ptr [ecx + 4] */ 13278 MEM32(edx + 0x4) = esi; /* 0x300122DD: mov dword ptr [edx + 4], esi */ 13279 esi = MEM32(edi + 0x4); /* 0x300122E0: mov esi, dword ptr [edi + 4] */ 13280 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300122E3: cmp ecx, dword ptr [esi + 4] */ 13281 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13283 _flag_k = FK_CMP; 13284 if (CMP_NE(_flag_a, _flag_b)) goto L_300122ED; /* 0x300122E6: jne 0x300122ed */ 13285 L_300122E8: 13286 MEM32(esi + 0x4) = edx; /* 0x300122E8: mov dword ptr [esi + 4], edx */ 13287 goto L_300122FB; /* 0x300122EB: jmp 0x300122fb */ 13288 L_300122ED: 13289 esi = MEM32(ecx + 0x4); /* 0x300122ED: mov esi, dword ptr [ecx + 4] */ 13290 /* cmp ecx, MEM32(esi) */ /* 0x300122F0: cmp ecx, dword ptr [esi] */ 13291 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13293 _flag_k = FK_CMP; 13294 if (CMP_NE(_flag_a, _flag_b)) goto L_300122F8; /* 0x300122F2: jne 0x300122f8 */ 13295 L_300122F4: 13296 MEM32(esi) = edx; /* 0x300122F4: mov dword ptr [esi], edx */ 13297 goto L_300122FB; /* 0x300122F6: jmp 0x300122fb */ 13298 L_300122F8: 13299 MEM32(esi + 0x8) = edx; /* 0x300122F8: mov dword ptr [esi + 8], edx */ 13300 L_300122FB: 13301 MEM32(edx) = ecx; /* 0x300122FB: mov dword ptr [edx], ecx */ 13302 MEM32(ecx + 0x4) = edx; /* 0x300122FD: mov dword ptr [ecx + 4], edx */ 13303 ecx = MEM32(eax + 0x4); /* 0x30012300: mov ecx, dword ptr [eax + 4] */ 13304 ecx = MEM32(ecx); /* 0x30012303: mov ecx, dword ptr [ecx] */ 13305 L_30012305: 13306 edx = MEM32(eax + 0x4); /* 0x30012305: mov edx, dword ptr [eax + 4] */ 13307 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x30012308: mov dl, byte ptr [edx + 0x1c] */ 13308 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3001230B: mov byte ptr [ecx + 0x1c], dl */ 13309 edx = MEM32(eax + 0x4); /* 0x3001230E: mov edx, dword ptr [eax + 4] */ 13310 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012311: mov byte ptr [edx + 0x1c], bl */ 13311 ecx = MEM32(ecx); /* 0x30012314: mov ecx, dword ptr [ecx] */ 13312 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012316: mov byte ptr [ecx + 0x1c], bl */ 13313 ecx = MEM32(eax + 0x4); /* 0x30012319: mov ecx, dword ptr [eax + 4] */ 13314 edx = MEM32(ecx); /* 0x3001231C: mov edx, dword ptr [ecx] */ 13315 esi = MEM32(edx + 0x8); /* 0x3001231E: mov esi, dword ptr [edx + 8] */ 13316 MEM32(ecx) = esi; /* 0x30012321: mov dword ptr [ecx], esi */ 13317 esi = MEM32(edx + 0x8); /* 0x30012323: mov esi, dword ptr [edx + 8] */ 13318 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012326: cmp esi, dword ptr [edi + 8] */ 13319 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13321 _flag_k = FK_CMP; 13322 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001232E; /* 0x30012329: je 0x3001232e */ 13323 L_3001232B: 13324 MEM32(esi + 0x4) = ecx; /* 0x3001232B: mov dword ptr [esi + 4], ecx */ 13325 L_3001232E: 13326 esi = MEM32(ecx + 0x4); /* 0x3001232E: mov esi, dword ptr [ecx + 4] */ 13327 MEM32(edx + 0x4) = esi; /* 0x30012331: mov dword ptr [edx + 4], esi */ 13328 esi = MEM32(edi + 0x4); /* 0x30012334: mov esi, dword ptr [edi + 4] */ 13329 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012337: cmp ecx, dword ptr [esi + 4] */ 13330 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13332 _flag_k = FK_CMP; 13333 if (CMP_NE(_flag_a, _flag_b)) goto L_30012341; /* 0x3001233A: jne 0x30012341 */ 13334 L_3001233C: 13335 MEM32(esi + 0x4) = edx; /* 0x3001233C: mov dword ptr [esi + 4], edx */ 13336 goto L_30012350; /* 0x3001233F: jmp 0x30012350 */ 13337 L_30012341: 13338 esi = MEM32(ecx + 0x4); /* 0x30012341: mov esi, dword ptr [ecx + 4] */ 13339 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012344: cmp ecx, dword ptr [esi + 8] */ 13340 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13342 _flag_k = FK_CMP; 13343 if (CMP_NE(_flag_a, _flag_b)) goto L_3001234E; /* 0x30012347: jne 0x3001234e */ 13344 L_30012349: 13345 MEM32(esi + 0x8) = edx; /* 0x30012349: mov dword ptr [esi + 8], edx */ 13346 goto L_30012350; /* 0x3001234C: jmp 0x30012350 */ 13347 L_3001234E: 13348 MEM32(esi) = edx; /* 0x3001234E: mov dword ptr [esi], edx */ 13349 L_30012350: 13350 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 13351 L_30012353: 13352 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 13353 L_30012356: 13354 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 13355 L_30012359: 13356 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 13357 PUSH32(esp, edx); /* 0x3001235C: push edx */ 13358 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 13359 RECOMP_FLAGS_IN(); 13360 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 13361 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 13362 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13363 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13364 esp = esp + 4; /* 0x30012368: add esp, 4 */ 13365 _flag_k = FK_ADD; 13366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13367 eax = eax - 1; /* 0x3001236B: dec eax */ 13368 _flag_k = FK_DEC; 13369 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 13370 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 13371 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 13372 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 13373 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 13374 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 13375 esp = ebp; /* 0x30012377: mov esp, ebp */ 13376 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 13377 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 13378 RECOMP_REGS_OUT(); 13379 } 13380 13381 void sub_30012093(void) { 13382 int _fpu_cmp = 0; 13383 uint32_t _cf = 0; 13384 int _df = 1; 13385 uint32_t _flag_k = FK_NONE; 13386 uint32_t _flag_a = 0, _flag_b = 0; 13387 uint32_t _itail_tgt = 0; 13388 RECOMP_REGS_LOCALS 13389 RECOMP_ENTER(0x30012093u); 13390 13391 L_30012093: 13392 ebx = MEM32(edi + 0x4); /* 0x30012093: mov ebx, dword ptr [edi + 4] */ 13393 /* cmp MEM32(ebx), esi */ /* 0x30012096: cmp dword ptr [ebx], esi */ 13394 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 13395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13396 _flag_k = FK_CMP; 13397 if (CMP_NE(_flag_a, _flag_b)) goto L_300120BF; /* 0x30012098: jne 0x300120bf */ 13398 L_3001209A: 13399 ecx = MEM32(esi + 0x8); /* 0x3001209A: mov ecx, dword ptr [esi + 8] */ 13400 edx = MEM32(edi + 0x8); /* 0x3001209D: mov edx, dword ptr [edi + 8] */ 13401 /* cmp ecx, edx */ /* 0x300120A0: cmp ecx, edx */ 13402 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13404 _flag_k = FK_CMP; 13405 if (CMP_NE(_flag_a, _flag_b)) goto L_300120A9; /* 0x300120A2: jne 0x300120a9 */ 13406 L_300120A4: 13407 edx = MEM32(esi + 0x4); /* 0x300120A4: mov edx, dword ptr [esi + 4] */ 13408 goto L_300120BD; /* 0x300120A7: jmp 0x300120bd */ 13409 L_300120A9: 13410 ecx = MEM32(eax); /* 0x300120A9: mov ecx, dword ptr [eax] */ 13411 edx = eax; /* 0x300120AB: mov edx, eax */ 13412 /* cmp MEM8(ecx + 0x1D), 0 */ /* 0x300120AD: cmp byte ptr [ecx + 0x1d], 0 */ 13413 _flag_a = (uint32_t)(MEM8(ecx + 0x1D)) << 24; _flag_b = (uint32_t)(0) << 24; 13414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13415 _flag_k = FK_NARROW(FK_CMP, 24); 13416 if (CMP_NE(_flag_a, _flag_b)) goto L_300120BD; /* 0x300120B1: jne 0x300120bd */ 13417 L_300120B3: 13418 edx = ecx; /* 0x300120B3: mov edx, ecx */ 13419 ecx = MEM32(edx); /* 0x300120B5: mov ecx, dword ptr [edx] */ 13420 /* cmp MEM8(ecx + 0x1D), 0 */ /* 0x300120B7: cmp byte ptr [ecx + 0x1d], 0 */ 13421 _flag_a = (uint32_t)(MEM8(ecx + 0x1D)) << 24; _flag_b = (uint32_t)(0) << 24; 13422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13423 _flag_k = FK_NARROW(FK_CMP, 24); 13424 RECOMP_BACKEDGE(); 13425 if (CMP_EQ(_flag_a, _flag_b)) goto L_300120B3; /* 0x300120BB: je 0x300120b3 */ 13426 L_300120BD: 13427 MEM32(ebx) = edx; /* 0x300120BD: mov dword ptr [ebx], edx */ 13428 L_300120BF: 13429 ebx = MEM32(edi + 0x4); /* 0x300120BF: mov ebx, dword ptr [edi + 4] */ 13430 /* cmp MEM32(ebx + 0x8), esi */ /* 0x300120C2: cmp dword ptr [ebx + 8], esi */ 13431 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 13432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13433 _flag_k = FK_CMP; 13434 if (CMP_NE(_flag_a, _flag_b)) goto L_300120EE; /* 0x300120C5: jne 0x300120ee */ 13435 L_300120C7: 13436 ecx = MEM32(esi); /* 0x300120C7: mov ecx, dword ptr [esi] */ 13437 edx = MEM32(edi + 0x8); /* 0x300120C9: mov edx, dword ptr [edi + 8] */ 13438 /* cmp ecx, edx */ /* 0x300120CC: cmp ecx, edx */ 13439 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13441 _flag_k = FK_CMP; 13442 if (CMP_NE(_flag_a, _flag_b)) goto L_300120D5; /* 0x300120CE: jne 0x300120d5 */ 13443 L_300120D0: 13444 edx = MEM32(esi + 0x4); /* 0x300120D0: mov edx, dword ptr [esi + 4] */ 13445 goto L_300120EB; /* 0x300120D3: jmp 0x300120eb */ 13446 L_300120D5: 13447 ecx = MEM32(eax + 0x8); /* 0x300120D5: mov ecx, dword ptr [eax + 8] */ 13448 edx = eax; /* 0x300120D8: mov edx, eax */ 13449 /* cmp MEM8(ecx + 0x1D), 0 */ /* 0x300120DA: cmp byte ptr [ecx + 0x1d], 0 */ 13450 _flag_a = (uint32_t)(MEM8(ecx + 0x1D)) << 24; _flag_b = (uint32_t)(0) << 24; 13451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13452 _flag_k = FK_NARROW(FK_CMP, 24); 13453 if (CMP_NE(_flag_a, _flag_b)) goto L_300120EB; /* 0x300120DE: jne 0x300120eb */ 13454 L_300120E0: 13455 edx = ecx; /* 0x300120E0: mov edx, ecx */ 13456 ecx = MEM32(edx + 0x8); /* 0x300120E2: mov ecx, dword ptr [edx + 8] */ 13457 /* cmp MEM8(ecx + 0x1D), 0 */ /* 0x300120E5: cmp byte ptr [ecx + 0x1d], 0 */ 13458 _flag_a = (uint32_t)(MEM8(ecx + 0x1D)) << 24; _flag_b = (uint32_t)(0) << 24; 13459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13460 _flag_k = FK_NARROW(FK_CMP, 24); 13461 RECOMP_BACKEDGE(); 13462 if (CMP_EQ(_flag_a, _flag_b)) goto L_300120E0; /* 0x300120E9: je 0x300120e0 */ 13463 L_300120EB: 13464 MEM32(ebx + 0x8) = edx; /* 0x300120EB: mov dword ptr [ebx + 8], edx */ 13465 L_300120EE: 13466 ecx = MEM32(ebp + (-0x4)); /* 0x300120EE: mov ecx, dword ptr [ebp - 4] */ 13467 SET_LO8(ebx, 1); /* 0x300120F1: mov bl, 1 */ 13468 /* cmp MEM8(ecx + 0x1C), LO8(ebx) */ /* 0x300120F3: cmp byte ptr [ecx + 0x1c], bl */ 13469 _flag_a = (uint32_t)(MEM8(ecx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13471 _flag_k = FK_NARROW(FK_CMP, 24); 13472 if (CMP_NE(_flag_a, _flag_b)) goto L_30012359; /* 0x300120F6: jne 0x30012359 */ 13473 L_300120FC: 13474 edx = MEM32(edi + 0x4); /* 0x300120FC: mov edx, dword ptr [edi + 4] */ 13475 /* cmp eax, MEM32(edx + 0x4) */ /* 0x300120FF: cmp eax, dword ptr [edx + 4] */ 13476 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 13477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13478 _flag_k = FK_CMP; 13479 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012356; /* 0x30012102: je 0x30012356 */ 13480 L_30012108: 13481 /* cmp MEM8(eax + 0x1C), LO8(ebx) */ /* 0x30012108: cmp byte ptr [eax + 0x1c], bl */ 13482 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13484 _flag_k = FK_NARROW(FK_CMP, 24); 13485 if (CMP_NE(_flag_a, _flag_b)) goto L_30012356; /* 0x3001210B: jne 0x30012356 */ 13486 L_30012111: 13487 edx = MEM32(eax + 0x4); /* 0x30012111: mov edx, dword ptr [eax + 4] */ 13488 ecx = MEM32(edx); /* 0x30012114: mov ecx, dword ptr [edx] */ 13489 /* cmp eax, ecx */ /* 0x30012116: cmp eax, ecx */ 13490 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13492 _flag_k = FK_CMP; 13493 if (CMP_NE(_flag_a, _flag_b)) goto L_30012188; /* 0x30012118: jne 0x30012188 */ 13494 L_3001211A: 13495 ecx = MEM32(edx + 0x8); /* 0x3001211A: mov ecx, dword ptr [edx + 8] */ 13496 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3001211D: mov dl, byte ptr [ecx + 0x1c] */ 13497 /* test LO8(edx), LO8(edx) */ /* 0x30012120: test dl, dl */ 13498 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13499 _cf = 0; 13500 _flag_k = FK_NARROW(FK_TEST, 24); 13501 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001216F; /* 0x30012122: jne 0x3001216f */ 13502 L_30012124: 13503 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012124: mov byte ptr [ecx + 0x1c], bl */ 13504 ecx = MEM32(eax + 0x4); /* 0x30012127: mov ecx, dword ptr [eax + 4] */ 13505 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3001212A: mov byte ptr [ecx + 0x1c], 0 */ 13506 ecx = MEM32(eax + 0x4); /* 0x3001212E: mov ecx, dword ptr [eax + 4] */ 13507 edx = MEM32(ecx + 0x8); /* 0x30012131: mov edx, dword ptr [ecx + 8] */ 13508 esi = MEM32(edx); /* 0x30012134: mov esi, dword ptr [edx] */ 13509 MEM32(ecx + 0x8) = esi; /* 0x30012136: mov dword ptr [ecx + 8], esi */ 13510 esi = MEM32(edx); /* 0x30012139: mov esi, dword ptr [edx] */ 13511 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001213B: cmp esi, dword ptr [edi + 8] */ 13512 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13514 _flag_k = FK_CMP; 13515 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012143; /* 0x3001213E: je 0x30012143 */ 13516 L_30012140: 13517 MEM32(esi + 0x4) = ecx; /* 0x30012140: mov dword ptr [esi + 4], ecx */ 13518 L_30012143: 13519 esi = MEM32(ecx + 0x4); /* 0x30012143: mov esi, dword ptr [ecx + 4] */ 13520 MEM32(edx + 0x4) = esi; /* 0x30012146: mov dword ptr [edx + 4], esi */ 13521 esi = MEM32(edi + 0x4); /* 0x30012149: mov esi, dword ptr [edi + 4] */ 13522 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001214C: cmp ecx, dword ptr [esi + 4] */ 13523 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13525 _flag_k = FK_CMP; 13526 if (CMP_NE(_flag_a, _flag_b)) goto L_30012156; /* 0x3001214F: jne 0x30012156 */ 13527 L_30012151: 13528 MEM32(esi + 0x4) = edx; /* 0x30012151: mov dword ptr [esi + 4], edx */ 13529 goto L_30012164; /* 0x30012154: jmp 0x30012164 */ 13530 L_30012156: 13531 esi = MEM32(ecx + 0x4); /* 0x30012156: mov esi, dword ptr [ecx + 4] */ 13532 /* cmp ecx, MEM32(esi) */ /* 0x30012159: cmp ecx, dword ptr [esi] */ 13533 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13535 _flag_k = FK_CMP; 13536 if (CMP_NE(_flag_a, _flag_b)) goto L_30012161; /* 0x3001215B: jne 0x30012161 */ 13537 L_3001215D: 13538 MEM32(esi) = edx; /* 0x3001215D: mov dword ptr [esi], edx */ 13539 goto L_30012164; /* 0x3001215F: jmp 0x30012164 */ 13540 L_30012161: 13541 MEM32(esi + 0x8) = edx; /* 0x30012161: mov dword ptr [esi + 8], edx */ 13542 L_30012164: 13543 MEM32(edx) = ecx; /* 0x30012164: mov dword ptr [edx], ecx */ 13544 MEM32(ecx + 0x4) = edx; /* 0x30012166: mov dword ptr [ecx + 4], edx */ 13545 edx = MEM32(eax + 0x4); /* 0x30012169: mov edx, dword ptr [eax + 4] */ 13546 ecx = MEM32(edx + 0x8); /* 0x3001216C: mov ecx, dword ptr [edx + 8] */ 13547 L_3001216F: 13548 edx = MEM32(ecx); /* 0x3001216F: mov edx, dword ptr [ecx] */ 13549 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x30012171: cmp byte ptr [edx + 0x1c], bl */ 13550 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13552 _flag_k = FK_NARROW(FK_CMP, 24); 13553 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012174: jne 0x3001220a */ 13554 L_3001217A: 13555 edx = MEM32(ecx + 0x8); /* 0x3001217A: mov edx, dword ptr [ecx + 8] */ 13556 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001217D: cmp byte ptr [edx + 0x1c], bl */ 13557 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13559 _flag_k = FK_NARROW(FK_CMP, 24); 13560 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012180: jne 0x3001220a */ 13561 L_30012186: 13562 goto L_300121F2; /* 0x30012186: jmp 0x300121f2 */ 13563 L_30012188: 13564 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30012188: mov dl, byte ptr [ecx + 0x1c] */ 13565 /* test LO8(edx), LO8(edx) */ /* 0x3001218B: test dl, dl */ 13566 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13567 _cf = 0; 13568 _flag_k = FK_NARROW(FK_TEST, 24); 13569 if (TEST_NZ(_flag_a, _flag_b)) goto L_300121DB; /* 0x3001218D: jne 0x300121db */ 13570 L_3001218F: 13571 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001218F: mov byte ptr [ecx + 0x1c], bl */ 13572 ecx = MEM32(eax + 0x4); /* 0x30012192: mov ecx, dword ptr [eax + 4] */ 13573 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012195: mov byte ptr [ecx + 0x1c], 0 */ 13574 ecx = MEM32(eax + 0x4); /* 0x30012199: mov ecx, dword ptr [eax + 4] */ 13575 edx = MEM32(ecx); /* 0x3001219C: mov edx, dword ptr [ecx] */ 13576 esi = MEM32(edx + 0x8); /* 0x3001219E: mov esi, dword ptr [edx + 8] */ 13577 MEM32(ecx) = esi; /* 0x300121A1: mov dword ptr [ecx], esi */ 13578 esi = MEM32(edx + 0x8); /* 0x300121A3: mov esi, dword ptr [edx + 8] */ 13579 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300121A6: cmp esi, dword ptr [edi + 8] */ 13580 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13582 _flag_k = FK_CMP; 13583 if (CMP_EQ(_flag_a, _flag_b)) goto L_300121AE; /* 0x300121A9: je 0x300121ae */ 13584 L_300121AB: 13585 MEM32(esi + 0x4) = ecx; /* 0x300121AB: mov dword ptr [esi + 4], ecx */ 13586 L_300121AE: 13587 esi = MEM32(ecx + 0x4); /* 0x300121AE: mov esi, dword ptr [ecx + 4] */ 13588 MEM32(edx + 0x4) = esi; /* 0x300121B1: mov dword ptr [edx + 4], esi */ 13589 esi = MEM32(edi + 0x4); /* 0x300121B4: mov esi, dword ptr [edi + 4] */ 13590 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300121B7: cmp ecx, dword ptr [esi + 4] */ 13591 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13593 _flag_k = FK_CMP; 13594 if (CMP_NE(_flag_a, _flag_b)) goto L_300121C1; /* 0x300121BA: jne 0x300121c1 */ 13595 L_300121BC: 13596 MEM32(esi + 0x4) = edx; /* 0x300121BC: mov dword ptr [esi + 4], edx */ 13597 goto L_300121D0; /* 0x300121BF: jmp 0x300121d0 */ 13598 L_300121C1: 13599 esi = MEM32(ecx + 0x4); /* 0x300121C1: mov esi, dword ptr [ecx + 4] */ 13600 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300121C4: cmp ecx, dword ptr [esi + 8] */ 13601 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13603 _flag_k = FK_CMP; 13604 if (CMP_NE(_flag_a, _flag_b)) goto L_300121CE; /* 0x300121C7: jne 0x300121ce */ 13605 L_300121C9: 13606 MEM32(esi + 0x8) = edx; /* 0x300121C9: mov dword ptr [esi + 8], edx */ 13607 goto L_300121D0; /* 0x300121CC: jmp 0x300121d0 */ 13608 L_300121CE: 13609 MEM32(esi) = edx; /* 0x300121CE: mov dword ptr [esi], edx */ 13610 L_300121D0: 13611 MEM32(edx + 0x8) = ecx; /* 0x300121D0: mov dword ptr [edx + 8], ecx */ 13612 MEM32(ecx + 0x4) = edx; /* 0x300121D3: mov dword ptr [ecx + 4], edx */ 13613 edx = MEM32(eax + 0x4); /* 0x300121D6: mov edx, dword ptr [eax + 4] */ 13614 ecx = MEM32(edx); /* 0x300121D9: mov ecx, dword ptr [edx] */ 13615 L_300121DB: 13616 edx = MEM32(ecx + 0x8); /* 0x300121DB: mov edx, dword ptr [ecx + 8] */ 13617 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121DE: cmp byte ptr [edx + 0x1c], bl */ 13618 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13620 _flag_k = FK_NARROW(FK_CMP, 24); 13621 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121E1: jne 0x300122b7 */ 13622 L_300121E7: 13623 edx = MEM32(ecx); /* 0x300121E7: mov edx, dword ptr [ecx] */ 13624 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121E9: cmp byte ptr [edx + 0x1c], bl */ 13625 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13627 _flag_k = FK_NARROW(FK_CMP, 24); 13628 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121EC: jne 0x300122b7 */ 13629 L_300121F2: 13630 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300121F2: mov byte ptr [ecx + 0x1c], 0 */ 13631 ecx = MEM32(edi + 0x4); /* 0x300121F6: mov ecx, dword ptr [edi + 4] */ 13632 eax = MEM32(eax + 0x4); /* 0x300121F9: mov eax, dword ptr [eax + 4] */ 13633 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300121FC: cmp eax, dword ptr [ecx + 4] */ 13634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13636 _flag_k = FK_CMP; 13637 RECOMP_BACKEDGE(); 13638 if (CMP_NE(_flag_a, _flag_b)) goto L_30012108; /* 0x300121FF: jne 0x30012108 */ 13639 L_30012205: 13640 goto L_30012356; /* 0x30012205: jmp 0x30012356 */ 13641 L_3001220A: 13642 edx = MEM32(ecx + 0x8); /* 0x3001220A: mov edx, dword ptr [ecx + 8] */ 13643 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001220D: cmp byte ptr [edx + 0x1c], bl */ 13644 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13646 _flag_k = FK_NARROW(FK_CMP, 24); 13647 if (CMP_NE(_flag_a, _flag_b)) goto L_3001225B; /* 0x30012210: jne 0x3001225b */ 13648 L_30012212: 13649 edx = MEM32(ecx); /* 0x30012212: mov edx, dword ptr [ecx] */ 13650 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012214: mov byte ptr [edx + 0x1c], bl */ 13651 edx = MEM32(ecx); /* 0x30012217: mov edx, dword ptr [ecx] */ 13652 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012219: mov byte ptr [ecx + 0x1c], 0 */ 13653 esi = MEM32(edx + 0x8); /* 0x3001221D: mov esi, dword ptr [edx + 8] */ 13654 MEM32(ecx) = esi; /* 0x30012220: mov dword ptr [ecx], esi */ 13655 esi = MEM32(edx + 0x8); /* 0x30012222: mov esi, dword ptr [edx + 8] */ 13656 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012225: cmp esi, dword ptr [edi + 8] */ 13657 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13659 _flag_k = FK_CMP; 13660 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001222D; /* 0x30012228: je 0x3001222d */ 13661 L_3001222A: 13662 MEM32(esi + 0x4) = ecx; /* 0x3001222A: mov dword ptr [esi + 4], ecx */ 13663 L_3001222D: 13664 esi = MEM32(ecx + 0x4); /* 0x3001222D: mov esi, dword ptr [ecx + 4] */ 13665 MEM32(edx + 0x4) = esi; /* 0x30012230: mov dword ptr [edx + 4], esi */ 13666 esi = MEM32(edi + 0x4); /* 0x30012233: mov esi, dword ptr [edi + 4] */ 13667 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012236: cmp ecx, dword ptr [esi + 4] */ 13668 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13670 _flag_k = FK_CMP; 13671 if (CMP_NE(_flag_a, _flag_b)) goto L_30012240; /* 0x30012239: jne 0x30012240 */ 13672 L_3001223B: 13673 MEM32(esi + 0x4) = edx; /* 0x3001223B: mov dword ptr [esi + 4], edx */ 13674 goto L_3001224F; /* 0x3001223E: jmp 0x3001224f */ 13675 L_30012240: 13676 esi = MEM32(ecx + 0x4); /* 0x30012240: mov esi, dword ptr [ecx + 4] */ 13677 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012243: cmp ecx, dword ptr [esi + 8] */ 13678 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13680 _flag_k = FK_CMP; 13681 if (CMP_NE(_flag_a, _flag_b)) goto L_3001224D; /* 0x30012246: jne 0x3001224d */ 13682 L_30012248: 13683 MEM32(esi + 0x8) = edx; /* 0x30012248: mov dword ptr [esi + 8], edx */ 13684 goto L_3001224F; /* 0x3001224B: jmp 0x3001224f */ 13685 L_3001224D: 13686 MEM32(esi) = edx; /* 0x3001224D: mov dword ptr [esi], edx */ 13687 L_3001224F: 13688 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 13689 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 13690 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 13691 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 13692 L_3001225B: 13693 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 13694 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 13695 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 13696 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 13697 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 13698 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 13699 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 13700 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 13701 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 13702 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 13703 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 13704 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 13705 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 13706 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13708 _flag_k = FK_CMP; 13709 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 13710 L_30012282: 13711 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 13712 L_30012285: 13713 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 13714 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 13715 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 13716 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 13717 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13719 _flag_k = FK_CMP; 13720 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 13721 L_30012293: 13722 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 13723 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 13724 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 13725 L_3001229D: 13726 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 13727 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 13728 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13730 _flag_k = FK_CMP; 13731 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 13732 L_300122A4: 13733 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 13734 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 13735 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 13736 L_300122AD: 13737 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 13738 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 13739 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 13740 L_300122B7: 13741 edx = MEM32(ecx); /* 0x300122B7: mov edx, dword ptr [ecx] */ 13742 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300122B9: cmp byte ptr [edx + 0x1c], bl */ 13743 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13745 _flag_k = FK_NARROW(FK_CMP, 24); 13746 if (CMP_NE(_flag_a, _flag_b)) goto L_30012305; /* 0x300122BC: jne 0x30012305 */ 13747 L_300122BE: 13748 edx = MEM32(ecx + 0x8); /* 0x300122BE: mov edx, dword ptr [ecx + 8] */ 13749 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x300122C1: mov byte ptr [edx + 0x1c], bl */ 13750 edx = MEM32(ecx + 0x8); /* 0x300122C4: mov edx, dword ptr [ecx + 8] */ 13751 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300122C7: mov byte ptr [ecx + 0x1c], 0 */ 13752 esi = MEM32(edx); /* 0x300122CB: mov esi, dword ptr [edx] */ 13753 MEM32(ecx + 0x8) = esi; /* 0x300122CD: mov dword ptr [ecx + 8], esi */ 13754 esi = MEM32(edx); /* 0x300122D0: mov esi, dword ptr [edx] */ 13755 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300122D2: cmp esi, dword ptr [edi + 8] */ 13756 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13758 _flag_k = FK_CMP; 13759 if (CMP_EQ(_flag_a, _flag_b)) goto L_300122DA; /* 0x300122D5: je 0x300122da */ 13760 L_300122D7: 13761 MEM32(esi + 0x4) = ecx; /* 0x300122D7: mov dword ptr [esi + 4], ecx */ 13762 L_300122DA: 13763 esi = MEM32(ecx + 0x4); /* 0x300122DA: mov esi, dword ptr [ecx + 4] */ 13764 MEM32(edx + 0x4) = esi; /* 0x300122DD: mov dword ptr [edx + 4], esi */ 13765 esi = MEM32(edi + 0x4); /* 0x300122E0: mov esi, dword ptr [edi + 4] */ 13766 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300122E3: cmp ecx, dword ptr [esi + 4] */ 13767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13769 _flag_k = FK_CMP; 13770 if (CMP_NE(_flag_a, _flag_b)) goto L_300122ED; /* 0x300122E6: jne 0x300122ed */ 13771 L_300122E8: 13772 MEM32(esi + 0x4) = edx; /* 0x300122E8: mov dword ptr [esi + 4], edx */ 13773 goto L_300122FB; /* 0x300122EB: jmp 0x300122fb */ 13774 L_300122ED: 13775 esi = MEM32(ecx + 0x4); /* 0x300122ED: mov esi, dword ptr [ecx + 4] */ 13776 /* cmp ecx, MEM32(esi) */ /* 0x300122F0: cmp ecx, dword ptr [esi] */ 13777 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13779 _flag_k = FK_CMP; 13780 if (CMP_NE(_flag_a, _flag_b)) goto L_300122F8; /* 0x300122F2: jne 0x300122f8 */ 13781 L_300122F4: 13782 MEM32(esi) = edx; /* 0x300122F4: mov dword ptr [esi], edx */ 13783 goto L_300122FB; /* 0x300122F6: jmp 0x300122fb */ 13784 L_300122F8: 13785 MEM32(esi + 0x8) = edx; /* 0x300122F8: mov dword ptr [esi + 8], edx */ 13786 L_300122FB: 13787 MEM32(edx) = ecx; /* 0x300122FB: mov dword ptr [edx], ecx */ 13788 MEM32(ecx + 0x4) = edx; /* 0x300122FD: mov dword ptr [ecx + 4], edx */ 13789 ecx = MEM32(eax + 0x4); /* 0x30012300: mov ecx, dword ptr [eax + 4] */ 13790 ecx = MEM32(ecx); /* 0x30012303: mov ecx, dword ptr [ecx] */ 13791 L_30012305: 13792 edx = MEM32(eax + 0x4); /* 0x30012305: mov edx, dword ptr [eax + 4] */ 13793 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x30012308: mov dl, byte ptr [edx + 0x1c] */ 13794 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3001230B: mov byte ptr [ecx + 0x1c], dl */ 13795 edx = MEM32(eax + 0x4); /* 0x3001230E: mov edx, dword ptr [eax + 4] */ 13796 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012311: mov byte ptr [edx + 0x1c], bl */ 13797 ecx = MEM32(ecx); /* 0x30012314: mov ecx, dword ptr [ecx] */ 13798 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012316: mov byte ptr [ecx + 0x1c], bl */ 13799 ecx = MEM32(eax + 0x4); /* 0x30012319: mov ecx, dword ptr [eax + 4] */ 13800 edx = MEM32(ecx); /* 0x3001231C: mov edx, dword ptr [ecx] */ 13801 esi = MEM32(edx + 0x8); /* 0x3001231E: mov esi, dword ptr [edx + 8] */ 13802 MEM32(ecx) = esi; /* 0x30012321: mov dword ptr [ecx], esi */ 13803 esi = MEM32(edx + 0x8); /* 0x30012323: mov esi, dword ptr [edx + 8] */ 13804 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012326: cmp esi, dword ptr [edi + 8] */ 13805 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13807 _flag_k = FK_CMP; 13808 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001232E; /* 0x30012329: je 0x3001232e */ 13809 L_3001232B: 13810 MEM32(esi + 0x4) = ecx; /* 0x3001232B: mov dword ptr [esi + 4], ecx */ 13811 L_3001232E: 13812 esi = MEM32(ecx + 0x4); /* 0x3001232E: mov esi, dword ptr [ecx + 4] */ 13813 MEM32(edx + 0x4) = esi; /* 0x30012331: mov dword ptr [edx + 4], esi */ 13814 esi = MEM32(edi + 0x4); /* 0x30012334: mov esi, dword ptr [edi + 4] */ 13815 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012337: cmp ecx, dword ptr [esi + 4] */ 13816 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13818 _flag_k = FK_CMP; 13819 if (CMP_NE(_flag_a, _flag_b)) goto L_30012341; /* 0x3001233A: jne 0x30012341 */ 13820 L_3001233C: 13821 MEM32(esi + 0x4) = edx; /* 0x3001233C: mov dword ptr [esi + 4], edx */ 13822 goto L_30012350; /* 0x3001233F: jmp 0x30012350 */ 13823 L_30012341: 13824 esi = MEM32(ecx + 0x4); /* 0x30012341: mov esi, dword ptr [ecx + 4] */ 13825 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012344: cmp ecx, dword ptr [esi + 8] */ 13826 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13828 _flag_k = FK_CMP; 13829 if (CMP_NE(_flag_a, _flag_b)) goto L_3001234E; /* 0x30012347: jne 0x3001234e */ 13830 L_30012349: 13831 MEM32(esi + 0x8) = edx; /* 0x30012349: mov dword ptr [esi + 8], edx */ 13832 goto L_30012350; /* 0x3001234C: jmp 0x30012350 */ 13833 L_3001234E: 13834 MEM32(esi) = edx; /* 0x3001234E: mov dword ptr [esi], edx */ 13835 L_30012350: 13836 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 13837 L_30012353: 13838 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 13839 L_30012356: 13840 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 13841 L_30012359: 13842 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 13843 PUSH32(esp, edx); /* 0x3001235C: push edx */ 13844 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 13845 RECOMP_FLAGS_IN(); 13846 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 13847 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 13848 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13850 esp = esp + 4; /* 0x30012368: add esp, 4 */ 13851 _flag_k = FK_ADD; 13852 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13853 eax = eax - 1; /* 0x3001236B: dec eax */ 13854 _flag_k = FK_DEC; 13855 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 13856 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 13857 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 13858 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 13859 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 13860 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 13861 esp = ebp; /* 0x30012377: mov esp, ebp */ 13862 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 13863 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 13864 RECOMP_REGS_OUT(); 13865 } 13866 13867 void sub_300120BD(void) { 13868 int _fpu_cmp = 0; 13869 uint32_t _cf = 0; 13870 int _df = 1; 13871 uint32_t _flag_k = FK_NONE; 13872 uint32_t _flag_a = 0, _flag_b = 0; 13873 uint32_t _itail_tgt = 0; 13874 RECOMP_REGS_LOCALS 13875 RECOMP_ENTER(0x300120BDu); 13876 13877 L_300120BD: 13878 MEM32(ebx) = edx; /* 0x300120BD: mov dword ptr [ebx], edx */ 13879 ebx = MEM32(edi + 0x4); /* 0x300120BF: mov ebx, dword ptr [edi + 4] */ 13880 /* cmp MEM32(ebx + 0x8), esi */ /* 0x300120C2: cmp dword ptr [ebx + 8], esi */ 13881 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 13882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13883 _flag_k = FK_CMP; 13884 if (CMP_NE(_flag_a, _flag_b)) goto L_300120EE; /* 0x300120C5: jne 0x300120ee */ 13885 L_300120C7: 13886 ecx = MEM32(esi); /* 0x300120C7: mov ecx, dword ptr [esi] */ 13887 edx = MEM32(edi + 0x8); /* 0x300120C9: mov edx, dword ptr [edi + 8] */ 13888 /* cmp ecx, edx */ /* 0x300120CC: cmp ecx, edx */ 13889 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13891 _flag_k = FK_CMP; 13892 if (CMP_NE(_flag_a, _flag_b)) goto L_300120D5; /* 0x300120CE: jne 0x300120d5 */ 13893 L_300120D0: 13894 edx = MEM32(esi + 0x4); /* 0x300120D0: mov edx, dword ptr [esi + 4] */ 13895 goto L_300120EB; /* 0x300120D3: jmp 0x300120eb */ 13896 L_300120D5: 13897 ecx = MEM32(eax + 0x8); /* 0x300120D5: mov ecx, dword ptr [eax + 8] */ 13898 edx = eax; /* 0x300120D8: mov edx, eax */ 13899 /* cmp MEM8(ecx + 0x1D), 0 */ /* 0x300120DA: cmp byte ptr [ecx + 0x1d], 0 */ 13900 _flag_a = (uint32_t)(MEM8(ecx + 0x1D)) << 24; _flag_b = (uint32_t)(0) << 24; 13901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13902 _flag_k = FK_NARROW(FK_CMP, 24); 13903 if (CMP_NE(_flag_a, _flag_b)) goto L_300120EB; /* 0x300120DE: jne 0x300120eb */ 13904 L_300120E0: 13905 edx = ecx; /* 0x300120E0: mov edx, ecx */ 13906 ecx = MEM32(edx + 0x8); /* 0x300120E2: mov ecx, dword ptr [edx + 8] */ 13907 /* cmp MEM8(ecx + 0x1D), 0 */ /* 0x300120E5: cmp byte ptr [ecx + 0x1d], 0 */ 13908 _flag_a = (uint32_t)(MEM8(ecx + 0x1D)) << 24; _flag_b = (uint32_t)(0) << 24; 13909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13910 _flag_k = FK_NARROW(FK_CMP, 24); 13911 RECOMP_BACKEDGE(); 13912 if (CMP_EQ(_flag_a, _flag_b)) goto L_300120E0; /* 0x300120E9: je 0x300120e0 */ 13913 L_300120EB: 13914 MEM32(ebx + 0x8) = edx; /* 0x300120EB: mov dword ptr [ebx + 8], edx */ 13915 L_300120EE: 13916 ecx = MEM32(ebp + (-0x4)); /* 0x300120EE: mov ecx, dword ptr [ebp - 4] */ 13917 SET_LO8(ebx, 1); /* 0x300120F1: mov bl, 1 */ 13918 /* cmp MEM8(ecx + 0x1C), LO8(ebx) */ /* 0x300120F3: cmp byte ptr [ecx + 0x1c], bl */ 13919 _flag_a = (uint32_t)(MEM8(ecx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13921 _flag_k = FK_NARROW(FK_CMP, 24); 13922 if (CMP_NE(_flag_a, _flag_b)) goto L_30012359; /* 0x300120F6: jne 0x30012359 */ 13923 L_300120FC: 13924 edx = MEM32(edi + 0x4); /* 0x300120FC: mov edx, dword ptr [edi + 4] */ 13925 /* cmp eax, MEM32(edx + 0x4) */ /* 0x300120FF: cmp eax, dword ptr [edx + 4] */ 13926 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 13927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13928 _flag_k = FK_CMP; 13929 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012356; /* 0x30012102: je 0x30012356 */ 13930 L_30012108: 13931 /* cmp MEM8(eax + 0x1C), LO8(ebx) */ /* 0x30012108: cmp byte ptr [eax + 0x1c], bl */ 13932 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13934 _flag_k = FK_NARROW(FK_CMP, 24); 13935 if (CMP_NE(_flag_a, _flag_b)) goto L_30012356; /* 0x3001210B: jne 0x30012356 */ 13936 L_30012111: 13937 edx = MEM32(eax + 0x4); /* 0x30012111: mov edx, dword ptr [eax + 4] */ 13938 ecx = MEM32(edx); /* 0x30012114: mov ecx, dword ptr [edx] */ 13939 /* cmp eax, ecx */ /* 0x30012116: cmp eax, ecx */ 13940 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13942 _flag_k = FK_CMP; 13943 if (CMP_NE(_flag_a, _flag_b)) goto L_30012188; /* 0x30012118: jne 0x30012188 */ 13944 L_3001211A: 13945 ecx = MEM32(edx + 0x8); /* 0x3001211A: mov ecx, dword ptr [edx + 8] */ 13946 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3001211D: mov dl, byte ptr [ecx + 0x1c] */ 13947 /* test LO8(edx), LO8(edx) */ /* 0x30012120: test dl, dl */ 13948 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13949 _cf = 0; 13950 _flag_k = FK_NARROW(FK_TEST, 24); 13951 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001216F; /* 0x30012122: jne 0x3001216f */ 13952 L_30012124: 13953 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012124: mov byte ptr [ecx + 0x1c], bl */ 13954 ecx = MEM32(eax + 0x4); /* 0x30012127: mov ecx, dword ptr [eax + 4] */ 13955 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3001212A: mov byte ptr [ecx + 0x1c], 0 */ 13956 ecx = MEM32(eax + 0x4); /* 0x3001212E: mov ecx, dword ptr [eax + 4] */ 13957 edx = MEM32(ecx + 0x8); /* 0x30012131: mov edx, dword ptr [ecx + 8] */ 13958 esi = MEM32(edx); /* 0x30012134: mov esi, dword ptr [edx] */ 13959 MEM32(ecx + 0x8) = esi; /* 0x30012136: mov dword ptr [ecx + 8], esi */ 13960 esi = MEM32(edx); /* 0x30012139: mov esi, dword ptr [edx] */ 13961 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001213B: cmp esi, dword ptr [edi + 8] */ 13962 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13964 _flag_k = FK_CMP; 13965 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012143; /* 0x3001213E: je 0x30012143 */ 13966 L_30012140: 13967 MEM32(esi + 0x4) = ecx; /* 0x30012140: mov dword ptr [esi + 4], ecx */ 13968 L_30012143: 13969 esi = MEM32(ecx + 0x4); /* 0x30012143: mov esi, dword ptr [ecx + 4] */ 13970 MEM32(edx + 0x4) = esi; /* 0x30012146: mov dword ptr [edx + 4], esi */ 13971 esi = MEM32(edi + 0x4); /* 0x30012149: mov esi, dword ptr [edi + 4] */ 13972 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001214C: cmp ecx, dword ptr [esi + 4] */ 13973 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13975 _flag_k = FK_CMP; 13976 if (CMP_NE(_flag_a, _flag_b)) goto L_30012156; /* 0x3001214F: jne 0x30012156 */ 13977 L_30012151: 13978 MEM32(esi + 0x4) = edx; /* 0x30012151: mov dword ptr [esi + 4], edx */ 13979 goto L_30012164; /* 0x30012154: jmp 0x30012164 */ 13980 L_30012156: 13981 esi = MEM32(ecx + 0x4); /* 0x30012156: mov esi, dword ptr [ecx + 4] */ 13982 /* cmp ecx, MEM32(esi) */ /* 0x30012159: cmp ecx, dword ptr [esi] */ 13983 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13985 _flag_k = FK_CMP; 13986 if (CMP_NE(_flag_a, _flag_b)) goto L_30012161; /* 0x3001215B: jne 0x30012161 */ 13987 L_3001215D: 13988 MEM32(esi) = edx; /* 0x3001215D: mov dword ptr [esi], edx */ 13989 goto L_30012164; /* 0x3001215F: jmp 0x30012164 */ 13990 L_30012161: 13991 MEM32(esi + 0x8) = edx; /* 0x30012161: mov dword ptr [esi + 8], edx */ 13992 L_30012164: 13993 MEM32(edx) = ecx; /* 0x30012164: mov dword ptr [edx], ecx */ 13994 MEM32(ecx + 0x4) = edx; /* 0x30012166: mov dword ptr [ecx + 4], edx */ 13995 edx = MEM32(eax + 0x4); /* 0x30012169: mov edx, dword ptr [eax + 4] */ 13996 ecx = MEM32(edx + 0x8); /* 0x3001216C: mov ecx, dword ptr [edx + 8] */ 13997 L_3001216F: 13998 edx = MEM32(ecx); /* 0x3001216F: mov edx, dword ptr [ecx] */ 13999 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x30012171: cmp byte ptr [edx + 0x1c], bl */ 14000 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14002 _flag_k = FK_NARROW(FK_CMP, 24); 14003 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012174: jne 0x3001220a */ 14004 L_3001217A: 14005 edx = MEM32(ecx + 0x8); /* 0x3001217A: mov edx, dword ptr [ecx + 8] */ 14006 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001217D: cmp byte ptr [edx + 0x1c], bl */ 14007 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14009 _flag_k = FK_NARROW(FK_CMP, 24); 14010 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012180: jne 0x3001220a */ 14011 L_30012186: 14012 goto L_300121F2; /* 0x30012186: jmp 0x300121f2 */ 14013 L_30012188: 14014 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30012188: mov dl, byte ptr [ecx + 0x1c] */ 14015 /* test LO8(edx), LO8(edx) */ /* 0x3001218B: test dl, dl */ 14016 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14017 _cf = 0; 14018 _flag_k = FK_NARROW(FK_TEST, 24); 14019 if (TEST_NZ(_flag_a, _flag_b)) goto L_300121DB; /* 0x3001218D: jne 0x300121db */ 14020 L_3001218F: 14021 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001218F: mov byte ptr [ecx + 0x1c], bl */ 14022 ecx = MEM32(eax + 0x4); /* 0x30012192: mov ecx, dword ptr [eax + 4] */ 14023 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012195: mov byte ptr [ecx + 0x1c], 0 */ 14024 ecx = MEM32(eax + 0x4); /* 0x30012199: mov ecx, dword ptr [eax + 4] */ 14025 edx = MEM32(ecx); /* 0x3001219C: mov edx, dword ptr [ecx] */ 14026 esi = MEM32(edx + 0x8); /* 0x3001219E: mov esi, dword ptr [edx + 8] */ 14027 MEM32(ecx) = esi; /* 0x300121A1: mov dword ptr [ecx], esi */ 14028 esi = MEM32(edx + 0x8); /* 0x300121A3: mov esi, dword ptr [edx + 8] */ 14029 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300121A6: cmp esi, dword ptr [edi + 8] */ 14030 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14032 _flag_k = FK_CMP; 14033 if (CMP_EQ(_flag_a, _flag_b)) goto L_300121AE; /* 0x300121A9: je 0x300121ae */ 14034 L_300121AB: 14035 MEM32(esi + 0x4) = ecx; /* 0x300121AB: mov dword ptr [esi + 4], ecx */ 14036 L_300121AE: 14037 esi = MEM32(ecx + 0x4); /* 0x300121AE: mov esi, dword ptr [ecx + 4] */ 14038 MEM32(edx + 0x4) = esi; /* 0x300121B1: mov dword ptr [edx + 4], esi */ 14039 esi = MEM32(edi + 0x4); /* 0x300121B4: mov esi, dword ptr [edi + 4] */ 14040 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300121B7: cmp ecx, dword ptr [esi + 4] */ 14041 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14043 _flag_k = FK_CMP; 14044 if (CMP_NE(_flag_a, _flag_b)) goto L_300121C1; /* 0x300121BA: jne 0x300121c1 */ 14045 L_300121BC: 14046 MEM32(esi + 0x4) = edx; /* 0x300121BC: mov dword ptr [esi + 4], edx */ 14047 goto L_300121D0; /* 0x300121BF: jmp 0x300121d0 */ 14048 L_300121C1: 14049 esi = MEM32(ecx + 0x4); /* 0x300121C1: mov esi, dword ptr [ecx + 4] */ 14050 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300121C4: cmp ecx, dword ptr [esi + 8] */ 14051 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14053 _flag_k = FK_CMP; 14054 if (CMP_NE(_flag_a, _flag_b)) goto L_300121CE; /* 0x300121C7: jne 0x300121ce */ 14055 L_300121C9: 14056 MEM32(esi + 0x8) = edx; /* 0x300121C9: mov dword ptr [esi + 8], edx */ 14057 goto L_300121D0; /* 0x300121CC: jmp 0x300121d0 */ 14058 L_300121CE: 14059 MEM32(esi) = edx; /* 0x300121CE: mov dword ptr [esi], edx */ 14060 L_300121D0: 14061 MEM32(edx + 0x8) = ecx; /* 0x300121D0: mov dword ptr [edx + 8], ecx */ 14062 MEM32(ecx + 0x4) = edx; /* 0x300121D3: mov dword ptr [ecx + 4], edx */ 14063 edx = MEM32(eax + 0x4); /* 0x300121D6: mov edx, dword ptr [eax + 4] */ 14064 ecx = MEM32(edx); /* 0x300121D9: mov ecx, dword ptr [edx] */ 14065 L_300121DB: 14066 edx = MEM32(ecx + 0x8); /* 0x300121DB: mov edx, dword ptr [ecx + 8] */ 14067 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121DE: cmp byte ptr [edx + 0x1c], bl */ 14068 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14070 _flag_k = FK_NARROW(FK_CMP, 24); 14071 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121E1: jne 0x300122b7 */ 14072 L_300121E7: 14073 edx = MEM32(ecx); /* 0x300121E7: mov edx, dword ptr [ecx] */ 14074 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121E9: cmp byte ptr [edx + 0x1c], bl */ 14075 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14077 _flag_k = FK_NARROW(FK_CMP, 24); 14078 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121EC: jne 0x300122b7 */ 14079 L_300121F2: 14080 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300121F2: mov byte ptr [ecx + 0x1c], 0 */ 14081 ecx = MEM32(edi + 0x4); /* 0x300121F6: mov ecx, dword ptr [edi + 4] */ 14082 eax = MEM32(eax + 0x4); /* 0x300121F9: mov eax, dword ptr [eax + 4] */ 14083 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300121FC: cmp eax, dword ptr [ecx + 4] */ 14084 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14086 _flag_k = FK_CMP; 14087 RECOMP_BACKEDGE(); 14088 if (CMP_NE(_flag_a, _flag_b)) goto L_30012108; /* 0x300121FF: jne 0x30012108 */ 14089 L_30012205: 14090 goto L_30012356; /* 0x30012205: jmp 0x30012356 */ 14091 L_3001220A: 14092 edx = MEM32(ecx + 0x8); /* 0x3001220A: mov edx, dword ptr [ecx + 8] */ 14093 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001220D: cmp byte ptr [edx + 0x1c], bl */ 14094 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14096 _flag_k = FK_NARROW(FK_CMP, 24); 14097 if (CMP_NE(_flag_a, _flag_b)) goto L_3001225B; /* 0x30012210: jne 0x3001225b */ 14098 L_30012212: 14099 edx = MEM32(ecx); /* 0x30012212: mov edx, dword ptr [ecx] */ 14100 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012214: mov byte ptr [edx + 0x1c], bl */ 14101 edx = MEM32(ecx); /* 0x30012217: mov edx, dword ptr [ecx] */ 14102 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012219: mov byte ptr [ecx + 0x1c], 0 */ 14103 esi = MEM32(edx + 0x8); /* 0x3001221D: mov esi, dword ptr [edx + 8] */ 14104 MEM32(ecx) = esi; /* 0x30012220: mov dword ptr [ecx], esi */ 14105 esi = MEM32(edx + 0x8); /* 0x30012222: mov esi, dword ptr [edx + 8] */ 14106 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012225: cmp esi, dword ptr [edi + 8] */ 14107 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14109 _flag_k = FK_CMP; 14110 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001222D; /* 0x30012228: je 0x3001222d */ 14111 L_3001222A: 14112 MEM32(esi + 0x4) = ecx; /* 0x3001222A: mov dword ptr [esi + 4], ecx */ 14113 L_3001222D: 14114 esi = MEM32(ecx + 0x4); /* 0x3001222D: mov esi, dword ptr [ecx + 4] */ 14115 MEM32(edx + 0x4) = esi; /* 0x30012230: mov dword ptr [edx + 4], esi */ 14116 esi = MEM32(edi + 0x4); /* 0x30012233: mov esi, dword ptr [edi + 4] */ 14117 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012236: cmp ecx, dword ptr [esi + 4] */ 14118 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14120 _flag_k = FK_CMP; 14121 if (CMP_NE(_flag_a, _flag_b)) goto L_30012240; /* 0x30012239: jne 0x30012240 */ 14122 L_3001223B: 14123 MEM32(esi + 0x4) = edx; /* 0x3001223B: mov dword ptr [esi + 4], edx */ 14124 goto L_3001224F; /* 0x3001223E: jmp 0x3001224f */ 14125 L_30012240: 14126 esi = MEM32(ecx + 0x4); /* 0x30012240: mov esi, dword ptr [ecx + 4] */ 14127 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012243: cmp ecx, dword ptr [esi + 8] */ 14128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14130 _flag_k = FK_CMP; 14131 if (CMP_NE(_flag_a, _flag_b)) goto L_3001224D; /* 0x30012246: jne 0x3001224d */ 14132 L_30012248: 14133 MEM32(esi + 0x8) = edx; /* 0x30012248: mov dword ptr [esi + 8], edx */ 14134 goto L_3001224F; /* 0x3001224B: jmp 0x3001224f */ 14135 L_3001224D: 14136 MEM32(esi) = edx; /* 0x3001224D: mov dword ptr [esi], edx */ 14137 L_3001224F: 14138 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 14139 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 14140 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 14141 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 14142 L_3001225B: 14143 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 14144 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 14145 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 14146 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 14147 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 14148 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 14149 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 14150 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 14151 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 14152 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 14153 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 14154 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 14155 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 14156 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14158 _flag_k = FK_CMP; 14159 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 14160 L_30012282: 14161 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 14162 L_30012285: 14163 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 14164 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 14165 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 14166 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 14167 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14169 _flag_k = FK_CMP; 14170 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 14171 L_30012293: 14172 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 14173 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 14174 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 14175 L_3001229D: 14176 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 14177 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 14178 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14180 _flag_k = FK_CMP; 14181 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 14182 L_300122A4: 14183 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 14184 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 14185 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 14186 L_300122AD: 14187 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 14188 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 14189 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 14190 L_300122B7: 14191 edx = MEM32(ecx); /* 0x300122B7: mov edx, dword ptr [ecx] */ 14192 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300122B9: cmp byte ptr [edx + 0x1c], bl */ 14193 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14195 _flag_k = FK_NARROW(FK_CMP, 24); 14196 if (CMP_NE(_flag_a, _flag_b)) goto L_30012305; /* 0x300122BC: jne 0x30012305 */ 14197 L_300122BE: 14198 edx = MEM32(ecx + 0x8); /* 0x300122BE: mov edx, dword ptr [ecx + 8] */ 14199 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x300122C1: mov byte ptr [edx + 0x1c], bl */ 14200 edx = MEM32(ecx + 0x8); /* 0x300122C4: mov edx, dword ptr [ecx + 8] */ 14201 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300122C7: mov byte ptr [ecx + 0x1c], 0 */ 14202 esi = MEM32(edx); /* 0x300122CB: mov esi, dword ptr [edx] */ 14203 MEM32(ecx + 0x8) = esi; /* 0x300122CD: mov dword ptr [ecx + 8], esi */ 14204 esi = MEM32(edx); /* 0x300122D0: mov esi, dword ptr [edx] */ 14205 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300122D2: cmp esi, dword ptr [edi + 8] */ 14206 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14208 _flag_k = FK_CMP; 14209 if (CMP_EQ(_flag_a, _flag_b)) goto L_300122DA; /* 0x300122D5: je 0x300122da */ 14210 L_300122D7: 14211 MEM32(esi + 0x4) = ecx; /* 0x300122D7: mov dword ptr [esi + 4], ecx */ 14212 L_300122DA: 14213 esi = MEM32(ecx + 0x4); /* 0x300122DA: mov esi, dword ptr [ecx + 4] */ 14214 MEM32(edx + 0x4) = esi; /* 0x300122DD: mov dword ptr [edx + 4], esi */ 14215 esi = MEM32(edi + 0x4); /* 0x300122E0: mov esi, dword ptr [edi + 4] */ 14216 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300122E3: cmp ecx, dword ptr [esi + 4] */ 14217 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14219 _flag_k = FK_CMP; 14220 if (CMP_NE(_flag_a, _flag_b)) goto L_300122ED; /* 0x300122E6: jne 0x300122ed */ 14221 L_300122E8: 14222 MEM32(esi + 0x4) = edx; /* 0x300122E8: mov dword ptr [esi + 4], edx */ 14223 goto L_300122FB; /* 0x300122EB: jmp 0x300122fb */ 14224 L_300122ED: 14225 esi = MEM32(ecx + 0x4); /* 0x300122ED: mov esi, dword ptr [ecx + 4] */ 14226 /* cmp ecx, MEM32(esi) */ /* 0x300122F0: cmp ecx, dword ptr [esi] */ 14227 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14229 _flag_k = FK_CMP; 14230 if (CMP_NE(_flag_a, _flag_b)) goto L_300122F8; /* 0x300122F2: jne 0x300122f8 */ 14231 L_300122F4: 14232 MEM32(esi) = edx; /* 0x300122F4: mov dword ptr [esi], edx */ 14233 goto L_300122FB; /* 0x300122F6: jmp 0x300122fb */ 14234 L_300122F8: 14235 MEM32(esi + 0x8) = edx; /* 0x300122F8: mov dword ptr [esi + 8], edx */ 14236 L_300122FB: 14237 MEM32(edx) = ecx; /* 0x300122FB: mov dword ptr [edx], ecx */ 14238 MEM32(ecx + 0x4) = edx; /* 0x300122FD: mov dword ptr [ecx + 4], edx */ 14239 ecx = MEM32(eax + 0x4); /* 0x30012300: mov ecx, dword ptr [eax + 4] */ 14240 ecx = MEM32(ecx); /* 0x30012303: mov ecx, dword ptr [ecx] */ 14241 L_30012305: 14242 edx = MEM32(eax + 0x4); /* 0x30012305: mov edx, dword ptr [eax + 4] */ 14243 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x30012308: mov dl, byte ptr [edx + 0x1c] */ 14244 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3001230B: mov byte ptr [ecx + 0x1c], dl */ 14245 edx = MEM32(eax + 0x4); /* 0x3001230E: mov edx, dword ptr [eax + 4] */ 14246 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012311: mov byte ptr [edx + 0x1c], bl */ 14247 ecx = MEM32(ecx); /* 0x30012314: mov ecx, dword ptr [ecx] */ 14248 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012316: mov byte ptr [ecx + 0x1c], bl */ 14249 ecx = MEM32(eax + 0x4); /* 0x30012319: mov ecx, dword ptr [eax + 4] */ 14250 edx = MEM32(ecx); /* 0x3001231C: mov edx, dword ptr [ecx] */ 14251 esi = MEM32(edx + 0x8); /* 0x3001231E: mov esi, dword ptr [edx + 8] */ 14252 MEM32(ecx) = esi; /* 0x30012321: mov dword ptr [ecx], esi */ 14253 esi = MEM32(edx + 0x8); /* 0x30012323: mov esi, dword ptr [edx + 8] */ 14254 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012326: cmp esi, dword ptr [edi + 8] */ 14255 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14257 _flag_k = FK_CMP; 14258 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001232E; /* 0x30012329: je 0x3001232e */ 14259 L_3001232B: 14260 MEM32(esi + 0x4) = ecx; /* 0x3001232B: mov dword ptr [esi + 4], ecx */ 14261 L_3001232E: 14262 esi = MEM32(ecx + 0x4); /* 0x3001232E: mov esi, dword ptr [ecx + 4] */ 14263 MEM32(edx + 0x4) = esi; /* 0x30012331: mov dword ptr [edx + 4], esi */ 14264 esi = MEM32(edi + 0x4); /* 0x30012334: mov esi, dword ptr [edi + 4] */ 14265 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012337: cmp ecx, dword ptr [esi + 4] */ 14266 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14268 _flag_k = FK_CMP; 14269 if (CMP_NE(_flag_a, _flag_b)) goto L_30012341; /* 0x3001233A: jne 0x30012341 */ 14270 L_3001233C: 14271 MEM32(esi + 0x4) = edx; /* 0x3001233C: mov dword ptr [esi + 4], edx */ 14272 goto L_30012350; /* 0x3001233F: jmp 0x30012350 */ 14273 L_30012341: 14274 esi = MEM32(ecx + 0x4); /* 0x30012341: mov esi, dword ptr [ecx + 4] */ 14275 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012344: cmp ecx, dword ptr [esi + 8] */ 14276 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14278 _flag_k = FK_CMP; 14279 if (CMP_NE(_flag_a, _flag_b)) goto L_3001234E; /* 0x30012347: jne 0x3001234e */ 14280 L_30012349: 14281 MEM32(esi + 0x8) = edx; /* 0x30012349: mov dword ptr [esi + 8], edx */ 14282 goto L_30012350; /* 0x3001234C: jmp 0x30012350 */ 14283 L_3001234E: 14284 MEM32(esi) = edx; /* 0x3001234E: mov dword ptr [esi], edx */ 14285 L_30012350: 14286 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 14287 L_30012353: 14288 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 14289 L_30012356: 14290 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 14291 L_30012359: 14292 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 14293 PUSH32(esp, edx); /* 0x3001235C: push edx */ 14294 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 14295 RECOMP_FLAGS_IN(); 14296 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 14297 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 14298 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14300 esp = esp + 4; /* 0x30012368: add esp, 4 */ 14301 _flag_k = FK_ADD; 14302 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14303 eax = eax - 1; /* 0x3001236B: dec eax */ 14304 _flag_k = FK_DEC; 14305 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 14306 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 14307 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 14308 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 14309 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 14310 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 14311 esp = ebp; /* 0x30012377: mov esp, ebp */ 14312 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 14313 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 14314 RECOMP_REGS_OUT(); 14315 } 14316 14317 void sub_300120EB(void) { 14318 int _fpu_cmp = 0; 14319 uint32_t _cf = 0; 14320 int _df = 1; 14321 uint32_t _flag_k = FK_NONE; 14322 uint32_t _flag_a = 0, _flag_b = 0; 14323 uint32_t _itail_tgt = 0; 14324 RECOMP_REGS_LOCALS 14325 RECOMP_ENTER(0x300120EBu); 14326 14327 L_300120EB: 14328 MEM32(ebx + 0x8) = edx; /* 0x300120EB: mov dword ptr [ebx + 8], edx */ 14329 ecx = MEM32(ebp + (-0x4)); /* 0x300120EE: mov ecx, dword ptr [ebp - 4] */ 14330 SET_LO8(ebx, 1); /* 0x300120F1: mov bl, 1 */ 14331 /* cmp MEM8(ecx + 0x1C), LO8(ebx) */ /* 0x300120F3: cmp byte ptr [ecx + 0x1c], bl */ 14332 _flag_a = (uint32_t)(MEM8(ecx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14334 _flag_k = FK_NARROW(FK_CMP, 24); 14335 if (CMP_NE(_flag_a, _flag_b)) goto L_30012359; /* 0x300120F6: jne 0x30012359 */ 14336 L_300120FC: 14337 edx = MEM32(edi + 0x4); /* 0x300120FC: mov edx, dword ptr [edi + 4] */ 14338 /* cmp eax, MEM32(edx + 0x4) */ /* 0x300120FF: cmp eax, dword ptr [edx + 4] */ 14339 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 14340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14341 _flag_k = FK_CMP; 14342 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012356; /* 0x30012102: je 0x30012356 */ 14343 L_30012108: 14344 /* cmp MEM8(eax + 0x1C), LO8(ebx) */ /* 0x30012108: cmp byte ptr [eax + 0x1c], bl */ 14345 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14347 _flag_k = FK_NARROW(FK_CMP, 24); 14348 if (CMP_NE(_flag_a, _flag_b)) goto L_30012356; /* 0x3001210B: jne 0x30012356 */ 14349 L_30012111: 14350 edx = MEM32(eax + 0x4); /* 0x30012111: mov edx, dword ptr [eax + 4] */ 14351 ecx = MEM32(edx); /* 0x30012114: mov ecx, dword ptr [edx] */ 14352 /* cmp eax, ecx */ /* 0x30012116: cmp eax, ecx */ 14353 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 14354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14355 _flag_k = FK_CMP; 14356 if (CMP_NE(_flag_a, _flag_b)) goto L_30012188; /* 0x30012118: jne 0x30012188 */ 14357 L_3001211A: 14358 ecx = MEM32(edx + 0x8); /* 0x3001211A: mov ecx, dword ptr [edx + 8] */ 14359 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3001211D: mov dl, byte ptr [ecx + 0x1c] */ 14360 /* test LO8(edx), LO8(edx) */ /* 0x30012120: test dl, dl */ 14361 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14362 _cf = 0; 14363 _flag_k = FK_NARROW(FK_TEST, 24); 14364 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001216F; /* 0x30012122: jne 0x3001216f */ 14365 L_30012124: 14366 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012124: mov byte ptr [ecx + 0x1c], bl */ 14367 ecx = MEM32(eax + 0x4); /* 0x30012127: mov ecx, dword ptr [eax + 4] */ 14368 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3001212A: mov byte ptr [ecx + 0x1c], 0 */ 14369 ecx = MEM32(eax + 0x4); /* 0x3001212E: mov ecx, dword ptr [eax + 4] */ 14370 edx = MEM32(ecx + 0x8); /* 0x30012131: mov edx, dword ptr [ecx + 8] */ 14371 esi = MEM32(edx); /* 0x30012134: mov esi, dword ptr [edx] */ 14372 MEM32(ecx + 0x8) = esi; /* 0x30012136: mov dword ptr [ecx + 8], esi */ 14373 esi = MEM32(edx); /* 0x30012139: mov esi, dword ptr [edx] */ 14374 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001213B: cmp esi, dword ptr [edi + 8] */ 14375 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14377 _flag_k = FK_CMP; 14378 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012143; /* 0x3001213E: je 0x30012143 */ 14379 L_30012140: 14380 MEM32(esi + 0x4) = ecx; /* 0x30012140: mov dword ptr [esi + 4], ecx */ 14381 L_30012143: 14382 esi = MEM32(ecx + 0x4); /* 0x30012143: mov esi, dword ptr [ecx + 4] */ 14383 MEM32(edx + 0x4) = esi; /* 0x30012146: mov dword ptr [edx + 4], esi */ 14384 esi = MEM32(edi + 0x4); /* 0x30012149: mov esi, dword ptr [edi + 4] */ 14385 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001214C: cmp ecx, dword ptr [esi + 4] */ 14386 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14388 _flag_k = FK_CMP; 14389 if (CMP_NE(_flag_a, _flag_b)) goto L_30012156; /* 0x3001214F: jne 0x30012156 */ 14390 L_30012151: 14391 MEM32(esi + 0x4) = edx; /* 0x30012151: mov dword ptr [esi + 4], edx */ 14392 goto L_30012164; /* 0x30012154: jmp 0x30012164 */ 14393 L_30012156: 14394 esi = MEM32(ecx + 0x4); /* 0x30012156: mov esi, dword ptr [ecx + 4] */ 14395 /* cmp ecx, MEM32(esi) */ /* 0x30012159: cmp ecx, dword ptr [esi] */ 14396 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14398 _flag_k = FK_CMP; 14399 if (CMP_NE(_flag_a, _flag_b)) goto L_30012161; /* 0x3001215B: jne 0x30012161 */ 14400 L_3001215D: 14401 MEM32(esi) = edx; /* 0x3001215D: mov dword ptr [esi], edx */ 14402 goto L_30012164; /* 0x3001215F: jmp 0x30012164 */ 14403 L_30012161: 14404 MEM32(esi + 0x8) = edx; /* 0x30012161: mov dword ptr [esi + 8], edx */ 14405 L_30012164: 14406 MEM32(edx) = ecx; /* 0x30012164: mov dword ptr [edx], ecx */ 14407 MEM32(ecx + 0x4) = edx; /* 0x30012166: mov dword ptr [ecx + 4], edx */ 14408 edx = MEM32(eax + 0x4); /* 0x30012169: mov edx, dword ptr [eax + 4] */ 14409 ecx = MEM32(edx + 0x8); /* 0x3001216C: mov ecx, dword ptr [edx + 8] */ 14410 L_3001216F: 14411 edx = MEM32(ecx); /* 0x3001216F: mov edx, dword ptr [ecx] */ 14412 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x30012171: cmp byte ptr [edx + 0x1c], bl */ 14413 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14415 _flag_k = FK_NARROW(FK_CMP, 24); 14416 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012174: jne 0x3001220a */ 14417 L_3001217A: 14418 edx = MEM32(ecx + 0x8); /* 0x3001217A: mov edx, dword ptr [ecx + 8] */ 14419 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001217D: cmp byte ptr [edx + 0x1c], bl */ 14420 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14422 _flag_k = FK_NARROW(FK_CMP, 24); 14423 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012180: jne 0x3001220a */ 14424 L_30012186: 14425 goto L_300121F2; /* 0x30012186: jmp 0x300121f2 */ 14426 L_30012188: 14427 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30012188: mov dl, byte ptr [ecx + 0x1c] */ 14428 /* test LO8(edx), LO8(edx) */ /* 0x3001218B: test dl, dl */ 14429 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14430 _cf = 0; 14431 _flag_k = FK_NARROW(FK_TEST, 24); 14432 if (TEST_NZ(_flag_a, _flag_b)) goto L_300121DB; /* 0x3001218D: jne 0x300121db */ 14433 L_3001218F: 14434 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001218F: mov byte ptr [ecx + 0x1c], bl */ 14435 ecx = MEM32(eax + 0x4); /* 0x30012192: mov ecx, dword ptr [eax + 4] */ 14436 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012195: mov byte ptr [ecx + 0x1c], 0 */ 14437 ecx = MEM32(eax + 0x4); /* 0x30012199: mov ecx, dword ptr [eax + 4] */ 14438 edx = MEM32(ecx); /* 0x3001219C: mov edx, dword ptr [ecx] */ 14439 esi = MEM32(edx + 0x8); /* 0x3001219E: mov esi, dword ptr [edx + 8] */ 14440 MEM32(ecx) = esi; /* 0x300121A1: mov dword ptr [ecx], esi */ 14441 esi = MEM32(edx + 0x8); /* 0x300121A3: mov esi, dword ptr [edx + 8] */ 14442 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300121A6: cmp esi, dword ptr [edi + 8] */ 14443 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14445 _flag_k = FK_CMP; 14446 if (CMP_EQ(_flag_a, _flag_b)) goto L_300121AE; /* 0x300121A9: je 0x300121ae */ 14447 L_300121AB: 14448 MEM32(esi + 0x4) = ecx; /* 0x300121AB: mov dword ptr [esi + 4], ecx */ 14449 L_300121AE: 14450 esi = MEM32(ecx + 0x4); /* 0x300121AE: mov esi, dword ptr [ecx + 4] */ 14451 MEM32(edx + 0x4) = esi; /* 0x300121B1: mov dword ptr [edx + 4], esi */ 14452 esi = MEM32(edi + 0x4); /* 0x300121B4: mov esi, dword ptr [edi + 4] */ 14453 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300121B7: cmp ecx, dword ptr [esi + 4] */ 14454 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14456 _flag_k = FK_CMP; 14457 if (CMP_NE(_flag_a, _flag_b)) goto L_300121C1; /* 0x300121BA: jne 0x300121c1 */ 14458 L_300121BC: 14459 MEM32(esi + 0x4) = edx; /* 0x300121BC: mov dword ptr [esi + 4], edx */ 14460 goto L_300121D0; /* 0x300121BF: jmp 0x300121d0 */ 14461 L_300121C1: 14462 esi = MEM32(ecx + 0x4); /* 0x300121C1: mov esi, dword ptr [ecx + 4] */ 14463 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300121C4: cmp ecx, dword ptr [esi + 8] */ 14464 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14466 _flag_k = FK_CMP; 14467 if (CMP_NE(_flag_a, _flag_b)) goto L_300121CE; /* 0x300121C7: jne 0x300121ce */ 14468 L_300121C9: 14469 MEM32(esi + 0x8) = edx; /* 0x300121C9: mov dword ptr [esi + 8], edx */ 14470 goto L_300121D0; /* 0x300121CC: jmp 0x300121d0 */ 14471 L_300121CE: 14472 MEM32(esi) = edx; /* 0x300121CE: mov dword ptr [esi], edx */ 14473 L_300121D0: 14474 MEM32(edx + 0x8) = ecx; /* 0x300121D0: mov dword ptr [edx + 8], ecx */ 14475 MEM32(ecx + 0x4) = edx; /* 0x300121D3: mov dword ptr [ecx + 4], edx */ 14476 edx = MEM32(eax + 0x4); /* 0x300121D6: mov edx, dword ptr [eax + 4] */ 14477 ecx = MEM32(edx); /* 0x300121D9: mov ecx, dword ptr [edx] */ 14478 L_300121DB: 14479 edx = MEM32(ecx + 0x8); /* 0x300121DB: mov edx, dword ptr [ecx + 8] */ 14480 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121DE: cmp byte ptr [edx + 0x1c], bl */ 14481 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14483 _flag_k = FK_NARROW(FK_CMP, 24); 14484 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121E1: jne 0x300122b7 */ 14485 L_300121E7: 14486 edx = MEM32(ecx); /* 0x300121E7: mov edx, dword ptr [ecx] */ 14487 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121E9: cmp byte ptr [edx + 0x1c], bl */ 14488 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14490 _flag_k = FK_NARROW(FK_CMP, 24); 14491 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121EC: jne 0x300122b7 */ 14492 L_300121F2: 14493 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300121F2: mov byte ptr [ecx + 0x1c], 0 */ 14494 ecx = MEM32(edi + 0x4); /* 0x300121F6: mov ecx, dword ptr [edi + 4] */ 14495 eax = MEM32(eax + 0x4); /* 0x300121F9: mov eax, dword ptr [eax + 4] */ 14496 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300121FC: cmp eax, dword ptr [ecx + 4] */ 14497 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14499 _flag_k = FK_CMP; 14500 RECOMP_BACKEDGE(); 14501 if (CMP_NE(_flag_a, _flag_b)) goto L_30012108; /* 0x300121FF: jne 0x30012108 */ 14502 L_30012205: 14503 goto L_30012356; /* 0x30012205: jmp 0x30012356 */ 14504 L_3001220A: 14505 edx = MEM32(ecx + 0x8); /* 0x3001220A: mov edx, dword ptr [ecx + 8] */ 14506 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001220D: cmp byte ptr [edx + 0x1c], bl */ 14507 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14509 _flag_k = FK_NARROW(FK_CMP, 24); 14510 if (CMP_NE(_flag_a, _flag_b)) goto L_3001225B; /* 0x30012210: jne 0x3001225b */ 14511 L_30012212: 14512 edx = MEM32(ecx); /* 0x30012212: mov edx, dword ptr [ecx] */ 14513 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012214: mov byte ptr [edx + 0x1c], bl */ 14514 edx = MEM32(ecx); /* 0x30012217: mov edx, dword ptr [ecx] */ 14515 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012219: mov byte ptr [ecx + 0x1c], 0 */ 14516 esi = MEM32(edx + 0x8); /* 0x3001221D: mov esi, dword ptr [edx + 8] */ 14517 MEM32(ecx) = esi; /* 0x30012220: mov dword ptr [ecx], esi */ 14518 esi = MEM32(edx + 0x8); /* 0x30012222: mov esi, dword ptr [edx + 8] */ 14519 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012225: cmp esi, dword ptr [edi + 8] */ 14520 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14522 _flag_k = FK_CMP; 14523 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001222D; /* 0x30012228: je 0x3001222d */ 14524 L_3001222A: 14525 MEM32(esi + 0x4) = ecx; /* 0x3001222A: mov dword ptr [esi + 4], ecx */ 14526 L_3001222D: 14527 esi = MEM32(ecx + 0x4); /* 0x3001222D: mov esi, dword ptr [ecx + 4] */ 14528 MEM32(edx + 0x4) = esi; /* 0x30012230: mov dword ptr [edx + 4], esi */ 14529 esi = MEM32(edi + 0x4); /* 0x30012233: mov esi, dword ptr [edi + 4] */ 14530 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012236: cmp ecx, dword ptr [esi + 4] */ 14531 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14533 _flag_k = FK_CMP; 14534 if (CMP_NE(_flag_a, _flag_b)) goto L_30012240; /* 0x30012239: jne 0x30012240 */ 14535 L_3001223B: 14536 MEM32(esi + 0x4) = edx; /* 0x3001223B: mov dword ptr [esi + 4], edx */ 14537 goto L_3001224F; /* 0x3001223E: jmp 0x3001224f */ 14538 L_30012240: 14539 esi = MEM32(ecx + 0x4); /* 0x30012240: mov esi, dword ptr [ecx + 4] */ 14540 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012243: cmp ecx, dword ptr [esi + 8] */ 14541 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14543 _flag_k = FK_CMP; 14544 if (CMP_NE(_flag_a, _flag_b)) goto L_3001224D; /* 0x30012246: jne 0x3001224d */ 14545 L_30012248: 14546 MEM32(esi + 0x8) = edx; /* 0x30012248: mov dword ptr [esi + 8], edx */ 14547 goto L_3001224F; /* 0x3001224B: jmp 0x3001224f */ 14548 L_3001224D: 14549 MEM32(esi) = edx; /* 0x3001224D: mov dword ptr [esi], edx */ 14550 L_3001224F: 14551 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 14552 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 14553 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 14554 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 14555 L_3001225B: 14556 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 14557 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 14558 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 14559 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 14560 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 14561 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 14562 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 14563 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 14564 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 14565 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 14566 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 14567 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 14568 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 14569 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14571 _flag_k = FK_CMP; 14572 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 14573 L_30012282: 14574 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 14575 L_30012285: 14576 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 14577 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 14578 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 14579 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 14580 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14582 _flag_k = FK_CMP; 14583 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 14584 L_30012293: 14585 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 14586 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 14587 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 14588 L_3001229D: 14589 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 14590 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 14591 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14593 _flag_k = FK_CMP; 14594 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 14595 L_300122A4: 14596 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 14597 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 14598 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 14599 L_300122AD: 14600 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 14601 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 14602 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 14603 L_300122B7: 14604 edx = MEM32(ecx); /* 0x300122B7: mov edx, dword ptr [ecx] */ 14605 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300122B9: cmp byte ptr [edx + 0x1c], bl */ 14606 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14608 _flag_k = FK_NARROW(FK_CMP, 24); 14609 if (CMP_NE(_flag_a, _flag_b)) goto L_30012305; /* 0x300122BC: jne 0x30012305 */ 14610 L_300122BE: 14611 edx = MEM32(ecx + 0x8); /* 0x300122BE: mov edx, dword ptr [ecx + 8] */ 14612 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x300122C1: mov byte ptr [edx + 0x1c], bl */ 14613 edx = MEM32(ecx + 0x8); /* 0x300122C4: mov edx, dword ptr [ecx + 8] */ 14614 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300122C7: mov byte ptr [ecx + 0x1c], 0 */ 14615 esi = MEM32(edx); /* 0x300122CB: mov esi, dword ptr [edx] */ 14616 MEM32(ecx + 0x8) = esi; /* 0x300122CD: mov dword ptr [ecx + 8], esi */ 14617 esi = MEM32(edx); /* 0x300122D0: mov esi, dword ptr [edx] */ 14618 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300122D2: cmp esi, dword ptr [edi + 8] */ 14619 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14620 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14621 _flag_k = FK_CMP; 14622 if (CMP_EQ(_flag_a, _flag_b)) goto L_300122DA; /* 0x300122D5: je 0x300122da */ 14623 L_300122D7: 14624 MEM32(esi + 0x4) = ecx; /* 0x300122D7: mov dword ptr [esi + 4], ecx */ 14625 L_300122DA: 14626 esi = MEM32(ecx + 0x4); /* 0x300122DA: mov esi, dword ptr [ecx + 4] */ 14627 MEM32(edx + 0x4) = esi; /* 0x300122DD: mov dword ptr [edx + 4], esi */ 14628 esi = MEM32(edi + 0x4); /* 0x300122E0: mov esi, dword ptr [edi + 4] */ 14629 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300122E3: cmp ecx, dword ptr [esi + 4] */ 14630 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14632 _flag_k = FK_CMP; 14633 if (CMP_NE(_flag_a, _flag_b)) goto L_300122ED; /* 0x300122E6: jne 0x300122ed */ 14634 L_300122E8: 14635 MEM32(esi + 0x4) = edx; /* 0x300122E8: mov dword ptr [esi + 4], edx */ 14636 goto L_300122FB; /* 0x300122EB: jmp 0x300122fb */ 14637 L_300122ED: 14638 esi = MEM32(ecx + 0x4); /* 0x300122ED: mov esi, dword ptr [ecx + 4] */ 14639 /* cmp ecx, MEM32(esi) */ /* 0x300122F0: cmp ecx, dword ptr [esi] */ 14640 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14642 _flag_k = FK_CMP; 14643 if (CMP_NE(_flag_a, _flag_b)) goto L_300122F8; /* 0x300122F2: jne 0x300122f8 */ 14644 L_300122F4: 14645 MEM32(esi) = edx; /* 0x300122F4: mov dword ptr [esi], edx */ 14646 goto L_300122FB; /* 0x300122F6: jmp 0x300122fb */ 14647 L_300122F8: 14648 MEM32(esi + 0x8) = edx; /* 0x300122F8: mov dword ptr [esi + 8], edx */ 14649 L_300122FB: 14650 MEM32(edx) = ecx; /* 0x300122FB: mov dword ptr [edx], ecx */ 14651 MEM32(ecx + 0x4) = edx; /* 0x300122FD: mov dword ptr [ecx + 4], edx */ 14652 ecx = MEM32(eax + 0x4); /* 0x30012300: mov ecx, dword ptr [eax + 4] */ 14653 ecx = MEM32(ecx); /* 0x30012303: mov ecx, dword ptr [ecx] */ 14654 L_30012305: 14655 edx = MEM32(eax + 0x4); /* 0x30012305: mov edx, dword ptr [eax + 4] */ 14656 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x30012308: mov dl, byte ptr [edx + 0x1c] */ 14657 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3001230B: mov byte ptr [ecx + 0x1c], dl */ 14658 edx = MEM32(eax + 0x4); /* 0x3001230E: mov edx, dword ptr [eax + 4] */ 14659 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012311: mov byte ptr [edx + 0x1c], bl */ 14660 ecx = MEM32(ecx); /* 0x30012314: mov ecx, dword ptr [ecx] */ 14661 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012316: mov byte ptr [ecx + 0x1c], bl */ 14662 ecx = MEM32(eax + 0x4); /* 0x30012319: mov ecx, dword ptr [eax + 4] */ 14663 edx = MEM32(ecx); /* 0x3001231C: mov edx, dword ptr [ecx] */ 14664 esi = MEM32(edx + 0x8); /* 0x3001231E: mov esi, dword ptr [edx + 8] */ 14665 MEM32(ecx) = esi; /* 0x30012321: mov dword ptr [ecx], esi */ 14666 esi = MEM32(edx + 0x8); /* 0x30012323: mov esi, dword ptr [edx + 8] */ 14667 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012326: cmp esi, dword ptr [edi + 8] */ 14668 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14670 _flag_k = FK_CMP; 14671 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001232E; /* 0x30012329: je 0x3001232e */ 14672 L_3001232B: 14673 MEM32(esi + 0x4) = ecx; /* 0x3001232B: mov dword ptr [esi + 4], ecx */ 14674 L_3001232E: 14675 esi = MEM32(ecx + 0x4); /* 0x3001232E: mov esi, dword ptr [ecx + 4] */ 14676 MEM32(edx + 0x4) = esi; /* 0x30012331: mov dword ptr [edx + 4], esi */ 14677 esi = MEM32(edi + 0x4); /* 0x30012334: mov esi, dword ptr [edi + 4] */ 14678 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012337: cmp ecx, dword ptr [esi + 4] */ 14679 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14681 _flag_k = FK_CMP; 14682 if (CMP_NE(_flag_a, _flag_b)) goto L_30012341; /* 0x3001233A: jne 0x30012341 */ 14683 L_3001233C: 14684 MEM32(esi + 0x4) = edx; /* 0x3001233C: mov dword ptr [esi + 4], edx */ 14685 goto L_30012350; /* 0x3001233F: jmp 0x30012350 */ 14686 L_30012341: 14687 esi = MEM32(ecx + 0x4); /* 0x30012341: mov esi, dword ptr [ecx + 4] */ 14688 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012344: cmp ecx, dword ptr [esi + 8] */ 14689 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14691 _flag_k = FK_CMP; 14692 if (CMP_NE(_flag_a, _flag_b)) goto L_3001234E; /* 0x30012347: jne 0x3001234e */ 14693 L_30012349: 14694 MEM32(esi + 0x8) = edx; /* 0x30012349: mov dword ptr [esi + 8], edx */ 14695 goto L_30012350; /* 0x3001234C: jmp 0x30012350 */ 14696 L_3001234E: 14697 MEM32(esi) = edx; /* 0x3001234E: mov dword ptr [esi], edx */ 14698 L_30012350: 14699 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 14700 L_30012353: 14701 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 14702 L_30012356: 14703 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 14704 L_30012359: 14705 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 14706 PUSH32(esp, edx); /* 0x3001235C: push edx */ 14707 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 14708 RECOMP_FLAGS_IN(); 14709 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 14710 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 14711 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14712 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14713 esp = esp + 4; /* 0x30012368: add esp, 4 */ 14714 _flag_k = FK_ADD; 14715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14716 eax = eax - 1; /* 0x3001236B: dec eax */ 14717 _flag_k = FK_DEC; 14718 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 14719 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 14720 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 14721 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 14722 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 14723 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 14724 esp = ebp; /* 0x30012377: mov esp, ebp */ 14725 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 14726 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 14727 RECOMP_REGS_OUT(); 14728 } 14729 14730 void sub_30012108(void) { 14731 int _fpu_cmp = 0; 14732 uint32_t _cf = 0; 14733 int _df = 1; 14734 uint32_t _flag_k = FK_NONE; 14735 uint32_t _flag_a = 0, _flag_b = 0; 14736 uint32_t _itail_tgt = 0; 14737 RECOMP_REGS_LOCALS 14738 RECOMP_ENTER(0x30012108u); 14739 14740 L_30012108: 14741 /* cmp MEM8(eax + 0x1C), LO8(ebx) */ /* 0x30012108: cmp byte ptr [eax + 0x1c], bl */ 14742 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14744 _flag_k = FK_NARROW(FK_CMP, 24); 14745 if (CMP_NE(_flag_a, _flag_b)) goto L_30012356; /* 0x3001210B: jne 0x30012356 */ 14746 L_30012111: 14747 edx = MEM32(eax + 0x4); /* 0x30012111: mov edx, dword ptr [eax + 4] */ 14748 ecx = MEM32(edx); /* 0x30012114: mov ecx, dword ptr [edx] */ 14749 /* cmp eax, ecx */ /* 0x30012116: cmp eax, ecx */ 14750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 14751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14752 _flag_k = FK_CMP; 14753 if (CMP_NE(_flag_a, _flag_b)) goto L_30012188; /* 0x30012118: jne 0x30012188 */ 14754 L_3001211A: 14755 ecx = MEM32(edx + 0x8); /* 0x3001211A: mov ecx, dword ptr [edx + 8] */ 14756 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3001211D: mov dl, byte ptr [ecx + 0x1c] */ 14757 /* test LO8(edx), LO8(edx) */ /* 0x30012120: test dl, dl */ 14758 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14759 _cf = 0; 14760 _flag_k = FK_NARROW(FK_TEST, 24); 14761 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001216F; /* 0x30012122: jne 0x3001216f */ 14762 L_30012124: 14763 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012124: mov byte ptr [ecx + 0x1c], bl */ 14764 ecx = MEM32(eax + 0x4); /* 0x30012127: mov ecx, dword ptr [eax + 4] */ 14765 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3001212A: mov byte ptr [ecx + 0x1c], 0 */ 14766 ecx = MEM32(eax + 0x4); /* 0x3001212E: mov ecx, dword ptr [eax + 4] */ 14767 edx = MEM32(ecx + 0x8); /* 0x30012131: mov edx, dword ptr [ecx + 8] */ 14768 esi = MEM32(edx); /* 0x30012134: mov esi, dword ptr [edx] */ 14769 MEM32(ecx + 0x8) = esi; /* 0x30012136: mov dword ptr [ecx + 8], esi */ 14770 esi = MEM32(edx); /* 0x30012139: mov esi, dword ptr [edx] */ 14771 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001213B: cmp esi, dword ptr [edi + 8] */ 14772 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14774 _flag_k = FK_CMP; 14775 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012143; /* 0x3001213E: je 0x30012143 */ 14776 L_30012140: 14777 MEM32(esi + 0x4) = ecx; /* 0x30012140: mov dword ptr [esi + 4], ecx */ 14778 L_30012143: 14779 esi = MEM32(ecx + 0x4); /* 0x30012143: mov esi, dword ptr [ecx + 4] */ 14780 MEM32(edx + 0x4) = esi; /* 0x30012146: mov dword ptr [edx + 4], esi */ 14781 esi = MEM32(edi + 0x4); /* 0x30012149: mov esi, dword ptr [edi + 4] */ 14782 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001214C: cmp ecx, dword ptr [esi + 4] */ 14783 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14785 _flag_k = FK_CMP; 14786 if (CMP_NE(_flag_a, _flag_b)) goto L_30012156; /* 0x3001214F: jne 0x30012156 */ 14787 L_30012151: 14788 MEM32(esi + 0x4) = edx; /* 0x30012151: mov dword ptr [esi + 4], edx */ 14789 goto L_30012164; /* 0x30012154: jmp 0x30012164 */ 14790 L_30012156: 14791 esi = MEM32(ecx + 0x4); /* 0x30012156: mov esi, dword ptr [ecx + 4] */ 14792 /* cmp ecx, MEM32(esi) */ /* 0x30012159: cmp ecx, dword ptr [esi] */ 14793 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14795 _flag_k = FK_CMP; 14796 if (CMP_NE(_flag_a, _flag_b)) goto L_30012161; /* 0x3001215B: jne 0x30012161 */ 14797 L_3001215D: 14798 MEM32(esi) = edx; /* 0x3001215D: mov dword ptr [esi], edx */ 14799 goto L_30012164; /* 0x3001215F: jmp 0x30012164 */ 14800 L_30012161: 14801 MEM32(esi + 0x8) = edx; /* 0x30012161: mov dword ptr [esi + 8], edx */ 14802 L_30012164: 14803 MEM32(edx) = ecx; /* 0x30012164: mov dword ptr [edx], ecx */ 14804 MEM32(ecx + 0x4) = edx; /* 0x30012166: mov dword ptr [ecx + 4], edx */ 14805 edx = MEM32(eax + 0x4); /* 0x30012169: mov edx, dword ptr [eax + 4] */ 14806 ecx = MEM32(edx + 0x8); /* 0x3001216C: mov ecx, dword ptr [edx + 8] */ 14807 L_3001216F: 14808 edx = MEM32(ecx); /* 0x3001216F: mov edx, dword ptr [ecx] */ 14809 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x30012171: cmp byte ptr [edx + 0x1c], bl */ 14810 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14812 _flag_k = FK_NARROW(FK_CMP, 24); 14813 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012174: jne 0x3001220a */ 14814 L_3001217A: 14815 edx = MEM32(ecx + 0x8); /* 0x3001217A: mov edx, dword ptr [ecx + 8] */ 14816 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001217D: cmp byte ptr [edx + 0x1c], bl */ 14817 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14819 _flag_k = FK_NARROW(FK_CMP, 24); 14820 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012180: jne 0x3001220a */ 14821 L_30012186: 14822 goto L_300121F2; /* 0x30012186: jmp 0x300121f2 */ 14823 L_30012188: 14824 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30012188: mov dl, byte ptr [ecx + 0x1c] */ 14825 /* test LO8(edx), LO8(edx) */ /* 0x3001218B: test dl, dl */ 14826 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14827 _cf = 0; 14828 _flag_k = FK_NARROW(FK_TEST, 24); 14829 if (TEST_NZ(_flag_a, _flag_b)) goto L_300121DB; /* 0x3001218D: jne 0x300121db */ 14830 L_3001218F: 14831 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001218F: mov byte ptr [ecx + 0x1c], bl */ 14832 ecx = MEM32(eax + 0x4); /* 0x30012192: mov ecx, dword ptr [eax + 4] */ 14833 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012195: mov byte ptr [ecx + 0x1c], 0 */ 14834 ecx = MEM32(eax + 0x4); /* 0x30012199: mov ecx, dword ptr [eax + 4] */ 14835 edx = MEM32(ecx); /* 0x3001219C: mov edx, dword ptr [ecx] */ 14836 esi = MEM32(edx + 0x8); /* 0x3001219E: mov esi, dword ptr [edx + 8] */ 14837 MEM32(ecx) = esi; /* 0x300121A1: mov dword ptr [ecx], esi */ 14838 esi = MEM32(edx + 0x8); /* 0x300121A3: mov esi, dword ptr [edx + 8] */ 14839 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300121A6: cmp esi, dword ptr [edi + 8] */ 14840 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14842 _flag_k = FK_CMP; 14843 if (CMP_EQ(_flag_a, _flag_b)) goto L_300121AE; /* 0x300121A9: je 0x300121ae */ 14844 L_300121AB: 14845 MEM32(esi + 0x4) = ecx; /* 0x300121AB: mov dword ptr [esi + 4], ecx */ 14846 L_300121AE: 14847 esi = MEM32(ecx + 0x4); /* 0x300121AE: mov esi, dword ptr [ecx + 4] */ 14848 MEM32(edx + 0x4) = esi; /* 0x300121B1: mov dword ptr [edx + 4], esi */ 14849 esi = MEM32(edi + 0x4); /* 0x300121B4: mov esi, dword ptr [edi + 4] */ 14850 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300121B7: cmp ecx, dword ptr [esi + 4] */ 14851 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14853 _flag_k = FK_CMP; 14854 if (CMP_NE(_flag_a, _flag_b)) goto L_300121C1; /* 0x300121BA: jne 0x300121c1 */ 14855 L_300121BC: 14856 MEM32(esi + 0x4) = edx; /* 0x300121BC: mov dword ptr [esi + 4], edx */ 14857 goto L_300121D0; /* 0x300121BF: jmp 0x300121d0 */ 14858 L_300121C1: 14859 esi = MEM32(ecx + 0x4); /* 0x300121C1: mov esi, dword ptr [ecx + 4] */ 14860 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300121C4: cmp ecx, dword ptr [esi + 8] */ 14861 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14863 _flag_k = FK_CMP; 14864 if (CMP_NE(_flag_a, _flag_b)) goto L_300121CE; /* 0x300121C7: jne 0x300121ce */ 14865 L_300121C9: 14866 MEM32(esi + 0x8) = edx; /* 0x300121C9: mov dword ptr [esi + 8], edx */ 14867 goto L_300121D0; /* 0x300121CC: jmp 0x300121d0 */ 14868 L_300121CE: 14869 MEM32(esi) = edx; /* 0x300121CE: mov dword ptr [esi], edx */ 14870 L_300121D0: 14871 MEM32(edx + 0x8) = ecx; /* 0x300121D0: mov dword ptr [edx + 8], ecx */ 14872 MEM32(ecx + 0x4) = edx; /* 0x300121D3: mov dword ptr [ecx + 4], edx */ 14873 edx = MEM32(eax + 0x4); /* 0x300121D6: mov edx, dword ptr [eax + 4] */ 14874 ecx = MEM32(edx); /* 0x300121D9: mov ecx, dword ptr [edx] */ 14875 L_300121DB: 14876 edx = MEM32(ecx + 0x8); /* 0x300121DB: mov edx, dword ptr [ecx + 8] */ 14877 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121DE: cmp byte ptr [edx + 0x1c], bl */ 14878 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14880 _flag_k = FK_NARROW(FK_CMP, 24); 14881 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121E1: jne 0x300122b7 */ 14882 L_300121E7: 14883 edx = MEM32(ecx); /* 0x300121E7: mov edx, dword ptr [ecx] */ 14884 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121E9: cmp byte ptr [edx + 0x1c], bl */ 14885 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14887 _flag_k = FK_NARROW(FK_CMP, 24); 14888 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121EC: jne 0x300122b7 */ 14889 L_300121F2: 14890 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300121F2: mov byte ptr [ecx + 0x1c], 0 */ 14891 ecx = MEM32(edi + 0x4); /* 0x300121F6: mov ecx, dword ptr [edi + 4] */ 14892 eax = MEM32(eax + 0x4); /* 0x300121F9: mov eax, dword ptr [eax + 4] */ 14893 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300121FC: cmp eax, dword ptr [ecx + 4] */ 14894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14896 _flag_k = FK_CMP; 14897 RECOMP_BACKEDGE(); 14898 if (CMP_NE(_flag_a, _flag_b)) goto L_30012108; /* 0x300121FF: jne 0x30012108 */ 14899 L_30012205: 14900 goto L_30012356; /* 0x30012205: jmp 0x30012356 */ 14901 L_3001220A: 14902 edx = MEM32(ecx + 0x8); /* 0x3001220A: mov edx, dword ptr [ecx + 8] */ 14903 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001220D: cmp byte ptr [edx + 0x1c], bl */ 14904 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14906 _flag_k = FK_NARROW(FK_CMP, 24); 14907 if (CMP_NE(_flag_a, _flag_b)) goto L_3001225B; /* 0x30012210: jne 0x3001225b */ 14908 L_30012212: 14909 edx = MEM32(ecx); /* 0x30012212: mov edx, dword ptr [ecx] */ 14910 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012214: mov byte ptr [edx + 0x1c], bl */ 14911 edx = MEM32(ecx); /* 0x30012217: mov edx, dword ptr [ecx] */ 14912 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012219: mov byte ptr [ecx + 0x1c], 0 */ 14913 esi = MEM32(edx + 0x8); /* 0x3001221D: mov esi, dword ptr [edx + 8] */ 14914 MEM32(ecx) = esi; /* 0x30012220: mov dword ptr [ecx], esi */ 14915 esi = MEM32(edx + 0x8); /* 0x30012222: mov esi, dword ptr [edx + 8] */ 14916 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012225: cmp esi, dword ptr [edi + 8] */ 14917 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14919 _flag_k = FK_CMP; 14920 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001222D; /* 0x30012228: je 0x3001222d */ 14921 L_3001222A: 14922 MEM32(esi + 0x4) = ecx; /* 0x3001222A: mov dword ptr [esi + 4], ecx */ 14923 L_3001222D: 14924 esi = MEM32(ecx + 0x4); /* 0x3001222D: mov esi, dword ptr [ecx + 4] */ 14925 MEM32(edx + 0x4) = esi; /* 0x30012230: mov dword ptr [edx + 4], esi */ 14926 esi = MEM32(edi + 0x4); /* 0x30012233: mov esi, dword ptr [edi + 4] */ 14927 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012236: cmp ecx, dword ptr [esi + 4] */ 14928 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14930 _flag_k = FK_CMP; 14931 if (CMP_NE(_flag_a, _flag_b)) goto L_30012240; /* 0x30012239: jne 0x30012240 */ 14932 L_3001223B: 14933 MEM32(esi + 0x4) = edx; /* 0x3001223B: mov dword ptr [esi + 4], edx */ 14934 goto L_3001224F; /* 0x3001223E: jmp 0x3001224f */ 14935 L_30012240: 14936 esi = MEM32(ecx + 0x4); /* 0x30012240: mov esi, dword ptr [ecx + 4] */ 14937 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012243: cmp ecx, dword ptr [esi + 8] */ 14938 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14940 _flag_k = FK_CMP; 14941 if (CMP_NE(_flag_a, _flag_b)) goto L_3001224D; /* 0x30012246: jne 0x3001224d */ 14942 L_30012248: 14943 MEM32(esi + 0x8) = edx; /* 0x30012248: mov dword ptr [esi + 8], edx */ 14944 goto L_3001224F; /* 0x3001224B: jmp 0x3001224f */ 14945 L_3001224D: 14946 MEM32(esi) = edx; /* 0x3001224D: mov dword ptr [esi], edx */ 14947 L_3001224F: 14948 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 14949 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 14950 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 14951 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 14952 L_3001225B: 14953 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 14954 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 14955 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 14956 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 14957 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 14958 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 14959 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 14960 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 14961 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 14962 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 14963 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 14964 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 14965 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 14966 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14968 _flag_k = FK_CMP; 14969 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 14970 L_30012282: 14971 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 14972 L_30012285: 14973 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 14974 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 14975 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 14976 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 14977 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14979 _flag_k = FK_CMP; 14980 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 14981 L_30012293: 14982 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 14983 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 14984 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 14985 L_3001229D: 14986 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 14987 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 14988 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14990 _flag_k = FK_CMP; 14991 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 14992 L_300122A4: 14993 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 14994 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 14995 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 14996 L_300122AD: 14997 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 14998 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 14999 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 15000 L_300122B7: 15001 edx = MEM32(ecx); /* 0x300122B7: mov edx, dword ptr [ecx] */ 15002 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300122B9: cmp byte ptr [edx + 0x1c], bl */ 15003 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15005 _flag_k = FK_NARROW(FK_CMP, 24); 15006 if (CMP_NE(_flag_a, _flag_b)) goto L_30012305; /* 0x300122BC: jne 0x30012305 */ 15007 L_300122BE: 15008 edx = MEM32(ecx + 0x8); /* 0x300122BE: mov edx, dword ptr [ecx + 8] */ 15009 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x300122C1: mov byte ptr [edx + 0x1c], bl */ 15010 edx = MEM32(ecx + 0x8); /* 0x300122C4: mov edx, dword ptr [ecx + 8] */ 15011 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300122C7: mov byte ptr [ecx + 0x1c], 0 */ 15012 esi = MEM32(edx); /* 0x300122CB: mov esi, dword ptr [edx] */ 15013 MEM32(ecx + 0x8) = esi; /* 0x300122CD: mov dword ptr [ecx + 8], esi */ 15014 esi = MEM32(edx); /* 0x300122D0: mov esi, dword ptr [edx] */ 15015 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300122D2: cmp esi, dword ptr [edi + 8] */ 15016 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15018 _flag_k = FK_CMP; 15019 if (CMP_EQ(_flag_a, _flag_b)) goto L_300122DA; /* 0x300122D5: je 0x300122da */ 15020 L_300122D7: 15021 MEM32(esi + 0x4) = ecx; /* 0x300122D7: mov dword ptr [esi + 4], ecx */ 15022 L_300122DA: 15023 esi = MEM32(ecx + 0x4); /* 0x300122DA: mov esi, dword ptr [ecx + 4] */ 15024 MEM32(edx + 0x4) = esi; /* 0x300122DD: mov dword ptr [edx + 4], esi */ 15025 esi = MEM32(edi + 0x4); /* 0x300122E0: mov esi, dword ptr [edi + 4] */ 15026 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300122E3: cmp ecx, dword ptr [esi + 4] */ 15027 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15029 _flag_k = FK_CMP; 15030 if (CMP_NE(_flag_a, _flag_b)) goto L_300122ED; /* 0x300122E6: jne 0x300122ed */ 15031 L_300122E8: 15032 MEM32(esi + 0x4) = edx; /* 0x300122E8: mov dword ptr [esi + 4], edx */ 15033 goto L_300122FB; /* 0x300122EB: jmp 0x300122fb */ 15034 L_300122ED: 15035 esi = MEM32(ecx + 0x4); /* 0x300122ED: mov esi, dword ptr [ecx + 4] */ 15036 /* cmp ecx, MEM32(esi) */ /* 0x300122F0: cmp ecx, dword ptr [esi] */ 15037 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15039 _flag_k = FK_CMP; 15040 if (CMP_NE(_flag_a, _flag_b)) goto L_300122F8; /* 0x300122F2: jne 0x300122f8 */ 15041 L_300122F4: 15042 MEM32(esi) = edx; /* 0x300122F4: mov dword ptr [esi], edx */ 15043 goto L_300122FB; /* 0x300122F6: jmp 0x300122fb */ 15044 L_300122F8: 15045 MEM32(esi + 0x8) = edx; /* 0x300122F8: mov dword ptr [esi + 8], edx */ 15046 L_300122FB: 15047 MEM32(edx) = ecx; /* 0x300122FB: mov dword ptr [edx], ecx */ 15048 MEM32(ecx + 0x4) = edx; /* 0x300122FD: mov dword ptr [ecx + 4], edx */ 15049 ecx = MEM32(eax + 0x4); /* 0x30012300: mov ecx, dword ptr [eax + 4] */ 15050 ecx = MEM32(ecx); /* 0x30012303: mov ecx, dword ptr [ecx] */ 15051 L_30012305: 15052 edx = MEM32(eax + 0x4); /* 0x30012305: mov edx, dword ptr [eax + 4] */ 15053 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x30012308: mov dl, byte ptr [edx + 0x1c] */ 15054 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3001230B: mov byte ptr [ecx + 0x1c], dl */ 15055 edx = MEM32(eax + 0x4); /* 0x3001230E: mov edx, dword ptr [eax + 4] */ 15056 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012311: mov byte ptr [edx + 0x1c], bl */ 15057 ecx = MEM32(ecx); /* 0x30012314: mov ecx, dword ptr [ecx] */ 15058 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012316: mov byte ptr [ecx + 0x1c], bl */ 15059 ecx = MEM32(eax + 0x4); /* 0x30012319: mov ecx, dword ptr [eax + 4] */ 15060 edx = MEM32(ecx); /* 0x3001231C: mov edx, dword ptr [ecx] */ 15061 esi = MEM32(edx + 0x8); /* 0x3001231E: mov esi, dword ptr [edx + 8] */ 15062 MEM32(ecx) = esi; /* 0x30012321: mov dword ptr [ecx], esi */ 15063 esi = MEM32(edx + 0x8); /* 0x30012323: mov esi, dword ptr [edx + 8] */ 15064 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012326: cmp esi, dword ptr [edi + 8] */ 15065 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15067 _flag_k = FK_CMP; 15068 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001232E; /* 0x30012329: je 0x3001232e */ 15069 L_3001232B: 15070 MEM32(esi + 0x4) = ecx; /* 0x3001232B: mov dword ptr [esi + 4], ecx */ 15071 L_3001232E: 15072 esi = MEM32(ecx + 0x4); /* 0x3001232E: mov esi, dword ptr [ecx + 4] */ 15073 MEM32(edx + 0x4) = esi; /* 0x30012331: mov dword ptr [edx + 4], esi */ 15074 esi = MEM32(edi + 0x4); /* 0x30012334: mov esi, dword ptr [edi + 4] */ 15075 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012337: cmp ecx, dword ptr [esi + 4] */ 15076 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15078 _flag_k = FK_CMP; 15079 if (CMP_NE(_flag_a, _flag_b)) goto L_30012341; /* 0x3001233A: jne 0x30012341 */ 15080 L_3001233C: 15081 MEM32(esi + 0x4) = edx; /* 0x3001233C: mov dword ptr [esi + 4], edx */ 15082 goto L_30012350; /* 0x3001233F: jmp 0x30012350 */ 15083 L_30012341: 15084 esi = MEM32(ecx + 0x4); /* 0x30012341: mov esi, dword ptr [ecx + 4] */ 15085 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012344: cmp ecx, dword ptr [esi + 8] */ 15086 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15088 _flag_k = FK_CMP; 15089 if (CMP_NE(_flag_a, _flag_b)) goto L_3001234E; /* 0x30012347: jne 0x3001234e */ 15090 L_30012349: 15091 MEM32(esi + 0x8) = edx; /* 0x30012349: mov dword ptr [esi + 8], edx */ 15092 goto L_30012350; /* 0x3001234C: jmp 0x30012350 */ 15093 L_3001234E: 15094 MEM32(esi) = edx; /* 0x3001234E: mov dword ptr [esi], edx */ 15095 L_30012350: 15096 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 15097 L_30012353: 15098 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 15099 L_30012356: 15100 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 15101 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 15102 PUSH32(esp, edx); /* 0x3001235C: push edx */ 15103 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 15104 RECOMP_FLAGS_IN(); 15105 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 15106 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 15107 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15109 esp = esp + 4; /* 0x30012368: add esp, 4 */ 15110 _flag_k = FK_ADD; 15111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15112 eax = eax - 1; /* 0x3001236B: dec eax */ 15113 _flag_k = FK_DEC; 15114 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 15115 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 15116 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 15117 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 15118 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 15119 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 15120 esp = ebp; /* 0x30012377: mov esp, ebp */ 15121 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 15122 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 15123 RECOMP_REGS_OUT(); 15124 } 15125 15126 void sub_30012164(void) { 15127 int _fpu_cmp = 0; 15128 uint32_t _cf = 0; 15129 int _df = 1; 15130 uint32_t _flag_k = FK_NONE; 15131 uint32_t _flag_a = 0, _flag_b = 0; 15132 uint32_t _itail_tgt = 0; 15133 RECOMP_REGS_LOCALS 15134 RECOMP_ENTER(0x30012164u); 15135 15136 goto L_30012164; 15137 L_30012108: 15138 /* cmp MEM8(eax + 0x1C), LO8(ebx) */ /* 0x30012108: cmp byte ptr [eax + 0x1c], bl */ 15139 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15141 _flag_k = FK_NARROW(FK_CMP, 24); 15142 if (CMP_NE(_flag_a, _flag_b)) goto L_30012356; /* 0x3001210B: jne 0x30012356 */ 15143 L_30012111: 15144 edx = MEM32(eax + 0x4); /* 0x30012111: mov edx, dword ptr [eax + 4] */ 15145 ecx = MEM32(edx); /* 0x30012114: mov ecx, dword ptr [edx] */ 15146 /* cmp eax, ecx */ /* 0x30012116: cmp eax, ecx */ 15147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15149 _flag_k = FK_CMP; 15150 if (CMP_NE(_flag_a, _flag_b)) goto L_30012188; /* 0x30012118: jne 0x30012188 */ 15151 L_3001211A: 15152 ecx = MEM32(edx + 0x8); /* 0x3001211A: mov ecx, dword ptr [edx + 8] */ 15153 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3001211D: mov dl, byte ptr [ecx + 0x1c] */ 15154 /* test LO8(edx), LO8(edx) */ /* 0x30012120: test dl, dl */ 15155 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15156 _cf = 0; 15157 _flag_k = FK_NARROW(FK_TEST, 24); 15158 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001216F; /* 0x30012122: jne 0x3001216f */ 15159 L_30012124: 15160 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012124: mov byte ptr [ecx + 0x1c], bl */ 15161 ecx = MEM32(eax + 0x4); /* 0x30012127: mov ecx, dword ptr [eax + 4] */ 15162 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3001212A: mov byte ptr [ecx + 0x1c], 0 */ 15163 ecx = MEM32(eax + 0x4); /* 0x3001212E: mov ecx, dword ptr [eax + 4] */ 15164 edx = MEM32(ecx + 0x8); /* 0x30012131: mov edx, dword ptr [ecx + 8] */ 15165 esi = MEM32(edx); /* 0x30012134: mov esi, dword ptr [edx] */ 15166 MEM32(ecx + 0x8) = esi; /* 0x30012136: mov dword ptr [ecx + 8], esi */ 15167 esi = MEM32(edx); /* 0x30012139: mov esi, dword ptr [edx] */ 15168 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001213B: cmp esi, dword ptr [edi + 8] */ 15169 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15171 _flag_k = FK_CMP; 15172 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012143; /* 0x3001213E: je 0x30012143 */ 15173 L_30012140: 15174 MEM32(esi + 0x4) = ecx; /* 0x30012140: mov dword ptr [esi + 4], ecx */ 15175 L_30012143: 15176 esi = MEM32(ecx + 0x4); /* 0x30012143: mov esi, dword ptr [ecx + 4] */ 15177 MEM32(edx + 0x4) = esi; /* 0x30012146: mov dword ptr [edx + 4], esi */ 15178 esi = MEM32(edi + 0x4); /* 0x30012149: mov esi, dword ptr [edi + 4] */ 15179 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001214C: cmp ecx, dword ptr [esi + 4] */ 15180 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15182 _flag_k = FK_CMP; 15183 if (CMP_NE(_flag_a, _flag_b)) goto L_30012156; /* 0x3001214F: jne 0x30012156 */ 15184 L_30012151: 15185 MEM32(esi + 0x4) = edx; /* 0x30012151: mov dword ptr [esi + 4], edx */ 15186 goto L_30012164; /* 0x30012154: jmp 0x30012164 */ 15187 L_30012156: 15188 esi = MEM32(ecx + 0x4); /* 0x30012156: mov esi, dword ptr [ecx + 4] */ 15189 /* cmp ecx, MEM32(esi) */ /* 0x30012159: cmp ecx, dword ptr [esi] */ 15190 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15192 _flag_k = FK_CMP; 15193 if (CMP_NE(_flag_a, _flag_b)) goto L_30012161; /* 0x3001215B: jne 0x30012161 */ 15194 L_3001215D: 15195 MEM32(esi) = edx; /* 0x3001215D: mov dword ptr [esi], edx */ 15196 goto L_30012164; /* 0x3001215F: jmp 0x30012164 */ 15197 L_30012161: 15198 MEM32(esi + 0x8) = edx; /* 0x30012161: mov dword ptr [esi + 8], edx */ 15199 L_30012164: 15200 MEM32(edx) = ecx; /* 0x30012164: mov dword ptr [edx], ecx */ 15201 MEM32(ecx + 0x4) = edx; /* 0x30012166: mov dword ptr [ecx + 4], edx */ 15202 edx = MEM32(eax + 0x4); /* 0x30012169: mov edx, dword ptr [eax + 4] */ 15203 ecx = MEM32(edx + 0x8); /* 0x3001216C: mov ecx, dword ptr [edx + 8] */ 15204 L_3001216F: 15205 edx = MEM32(ecx); /* 0x3001216F: mov edx, dword ptr [ecx] */ 15206 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x30012171: cmp byte ptr [edx + 0x1c], bl */ 15207 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15209 _flag_k = FK_NARROW(FK_CMP, 24); 15210 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012174: jne 0x3001220a */ 15211 L_3001217A: 15212 edx = MEM32(ecx + 0x8); /* 0x3001217A: mov edx, dword ptr [ecx + 8] */ 15213 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001217D: cmp byte ptr [edx + 0x1c], bl */ 15214 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15216 _flag_k = FK_NARROW(FK_CMP, 24); 15217 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012180: jne 0x3001220a */ 15218 L_30012186: 15219 goto L_300121F2; /* 0x30012186: jmp 0x300121f2 */ 15220 L_30012188: 15221 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30012188: mov dl, byte ptr [ecx + 0x1c] */ 15222 /* test LO8(edx), LO8(edx) */ /* 0x3001218B: test dl, dl */ 15223 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15224 _cf = 0; 15225 _flag_k = FK_NARROW(FK_TEST, 24); 15226 if (TEST_NZ(_flag_a, _flag_b)) goto L_300121DB; /* 0x3001218D: jne 0x300121db */ 15227 L_3001218F: 15228 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001218F: mov byte ptr [ecx + 0x1c], bl */ 15229 ecx = MEM32(eax + 0x4); /* 0x30012192: mov ecx, dword ptr [eax + 4] */ 15230 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012195: mov byte ptr [ecx + 0x1c], 0 */ 15231 ecx = MEM32(eax + 0x4); /* 0x30012199: mov ecx, dword ptr [eax + 4] */ 15232 edx = MEM32(ecx); /* 0x3001219C: mov edx, dword ptr [ecx] */ 15233 esi = MEM32(edx + 0x8); /* 0x3001219E: mov esi, dword ptr [edx + 8] */ 15234 MEM32(ecx) = esi; /* 0x300121A1: mov dword ptr [ecx], esi */ 15235 esi = MEM32(edx + 0x8); /* 0x300121A3: mov esi, dword ptr [edx + 8] */ 15236 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300121A6: cmp esi, dword ptr [edi + 8] */ 15237 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15239 _flag_k = FK_CMP; 15240 if (CMP_EQ(_flag_a, _flag_b)) goto L_300121AE; /* 0x300121A9: je 0x300121ae */ 15241 L_300121AB: 15242 MEM32(esi + 0x4) = ecx; /* 0x300121AB: mov dword ptr [esi + 4], ecx */ 15243 L_300121AE: 15244 esi = MEM32(ecx + 0x4); /* 0x300121AE: mov esi, dword ptr [ecx + 4] */ 15245 MEM32(edx + 0x4) = esi; /* 0x300121B1: mov dword ptr [edx + 4], esi */ 15246 esi = MEM32(edi + 0x4); /* 0x300121B4: mov esi, dword ptr [edi + 4] */ 15247 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300121B7: cmp ecx, dword ptr [esi + 4] */ 15248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15250 _flag_k = FK_CMP; 15251 if (CMP_NE(_flag_a, _flag_b)) goto L_300121C1; /* 0x300121BA: jne 0x300121c1 */ 15252 L_300121BC: 15253 MEM32(esi + 0x4) = edx; /* 0x300121BC: mov dword ptr [esi + 4], edx */ 15254 goto L_300121D0; /* 0x300121BF: jmp 0x300121d0 */ 15255 L_300121C1: 15256 esi = MEM32(ecx + 0x4); /* 0x300121C1: mov esi, dword ptr [ecx + 4] */ 15257 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300121C4: cmp ecx, dword ptr [esi + 8] */ 15258 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15260 _flag_k = FK_CMP; 15261 if (CMP_NE(_flag_a, _flag_b)) goto L_300121CE; /* 0x300121C7: jne 0x300121ce */ 15262 L_300121C9: 15263 MEM32(esi + 0x8) = edx; /* 0x300121C9: mov dword ptr [esi + 8], edx */ 15264 goto L_300121D0; /* 0x300121CC: jmp 0x300121d0 */ 15265 L_300121CE: 15266 MEM32(esi) = edx; /* 0x300121CE: mov dword ptr [esi], edx */ 15267 L_300121D0: 15268 MEM32(edx + 0x8) = ecx; /* 0x300121D0: mov dword ptr [edx + 8], ecx */ 15269 MEM32(ecx + 0x4) = edx; /* 0x300121D3: mov dword ptr [ecx + 4], edx */ 15270 edx = MEM32(eax + 0x4); /* 0x300121D6: mov edx, dword ptr [eax + 4] */ 15271 ecx = MEM32(edx); /* 0x300121D9: mov ecx, dword ptr [edx] */ 15272 L_300121DB: 15273 edx = MEM32(ecx + 0x8); /* 0x300121DB: mov edx, dword ptr [ecx + 8] */ 15274 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121DE: cmp byte ptr [edx + 0x1c], bl */ 15275 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15277 _flag_k = FK_NARROW(FK_CMP, 24); 15278 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121E1: jne 0x300122b7 */ 15279 L_300121E7: 15280 edx = MEM32(ecx); /* 0x300121E7: mov edx, dword ptr [ecx] */ 15281 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121E9: cmp byte ptr [edx + 0x1c], bl */ 15282 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15284 _flag_k = FK_NARROW(FK_CMP, 24); 15285 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121EC: jne 0x300122b7 */ 15286 L_300121F2: 15287 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300121F2: mov byte ptr [ecx + 0x1c], 0 */ 15288 ecx = MEM32(edi + 0x4); /* 0x300121F6: mov ecx, dword ptr [edi + 4] */ 15289 eax = MEM32(eax + 0x4); /* 0x300121F9: mov eax, dword ptr [eax + 4] */ 15290 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300121FC: cmp eax, dword ptr [ecx + 4] */ 15291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 15292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15293 _flag_k = FK_CMP; 15294 RECOMP_BACKEDGE(); 15295 if (CMP_NE(_flag_a, _flag_b)) goto L_30012108; /* 0x300121FF: jne 0x30012108 */ 15296 L_30012205: 15297 goto L_30012356; /* 0x30012205: jmp 0x30012356 */ 15298 L_3001220A: 15299 edx = MEM32(ecx + 0x8); /* 0x3001220A: mov edx, dword ptr [ecx + 8] */ 15300 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001220D: cmp byte ptr [edx + 0x1c], bl */ 15301 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15303 _flag_k = FK_NARROW(FK_CMP, 24); 15304 if (CMP_NE(_flag_a, _flag_b)) goto L_3001225B; /* 0x30012210: jne 0x3001225b */ 15305 L_30012212: 15306 edx = MEM32(ecx); /* 0x30012212: mov edx, dword ptr [ecx] */ 15307 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012214: mov byte ptr [edx + 0x1c], bl */ 15308 edx = MEM32(ecx); /* 0x30012217: mov edx, dword ptr [ecx] */ 15309 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012219: mov byte ptr [ecx + 0x1c], 0 */ 15310 esi = MEM32(edx + 0x8); /* 0x3001221D: mov esi, dword ptr [edx + 8] */ 15311 MEM32(ecx) = esi; /* 0x30012220: mov dword ptr [ecx], esi */ 15312 esi = MEM32(edx + 0x8); /* 0x30012222: mov esi, dword ptr [edx + 8] */ 15313 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012225: cmp esi, dword ptr [edi + 8] */ 15314 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15316 _flag_k = FK_CMP; 15317 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001222D; /* 0x30012228: je 0x3001222d */ 15318 L_3001222A: 15319 MEM32(esi + 0x4) = ecx; /* 0x3001222A: mov dword ptr [esi + 4], ecx */ 15320 L_3001222D: 15321 esi = MEM32(ecx + 0x4); /* 0x3001222D: mov esi, dword ptr [ecx + 4] */ 15322 MEM32(edx + 0x4) = esi; /* 0x30012230: mov dword ptr [edx + 4], esi */ 15323 esi = MEM32(edi + 0x4); /* 0x30012233: mov esi, dword ptr [edi + 4] */ 15324 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012236: cmp ecx, dword ptr [esi + 4] */ 15325 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15327 _flag_k = FK_CMP; 15328 if (CMP_NE(_flag_a, _flag_b)) goto L_30012240; /* 0x30012239: jne 0x30012240 */ 15329 L_3001223B: 15330 MEM32(esi + 0x4) = edx; /* 0x3001223B: mov dword ptr [esi + 4], edx */ 15331 goto L_3001224F; /* 0x3001223E: jmp 0x3001224f */ 15332 L_30012240: 15333 esi = MEM32(ecx + 0x4); /* 0x30012240: mov esi, dword ptr [ecx + 4] */ 15334 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012243: cmp ecx, dword ptr [esi + 8] */ 15335 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15337 _flag_k = FK_CMP; 15338 if (CMP_NE(_flag_a, _flag_b)) goto L_3001224D; /* 0x30012246: jne 0x3001224d */ 15339 L_30012248: 15340 MEM32(esi + 0x8) = edx; /* 0x30012248: mov dword ptr [esi + 8], edx */ 15341 goto L_3001224F; /* 0x3001224B: jmp 0x3001224f */ 15342 L_3001224D: 15343 MEM32(esi) = edx; /* 0x3001224D: mov dword ptr [esi], edx */ 15344 L_3001224F: 15345 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 15346 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 15347 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 15348 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 15349 L_3001225B: 15350 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 15351 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 15352 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 15353 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 15354 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 15355 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 15356 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 15357 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 15358 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 15359 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 15360 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 15361 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 15362 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 15363 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15365 _flag_k = FK_CMP; 15366 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 15367 L_30012282: 15368 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 15369 L_30012285: 15370 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 15371 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 15372 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 15373 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 15374 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15376 _flag_k = FK_CMP; 15377 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 15378 L_30012293: 15379 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 15380 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 15381 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 15382 L_3001229D: 15383 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 15384 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 15385 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15387 _flag_k = FK_CMP; 15388 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 15389 L_300122A4: 15390 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 15391 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 15392 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 15393 L_300122AD: 15394 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 15395 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 15396 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 15397 L_300122B7: 15398 edx = MEM32(ecx); /* 0x300122B7: mov edx, dword ptr [ecx] */ 15399 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300122B9: cmp byte ptr [edx + 0x1c], bl */ 15400 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15402 _flag_k = FK_NARROW(FK_CMP, 24); 15403 if (CMP_NE(_flag_a, _flag_b)) goto L_30012305; /* 0x300122BC: jne 0x30012305 */ 15404 L_300122BE: 15405 edx = MEM32(ecx + 0x8); /* 0x300122BE: mov edx, dword ptr [ecx + 8] */ 15406 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x300122C1: mov byte ptr [edx + 0x1c], bl */ 15407 edx = MEM32(ecx + 0x8); /* 0x300122C4: mov edx, dword ptr [ecx + 8] */ 15408 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300122C7: mov byte ptr [ecx + 0x1c], 0 */ 15409 esi = MEM32(edx); /* 0x300122CB: mov esi, dword ptr [edx] */ 15410 MEM32(ecx + 0x8) = esi; /* 0x300122CD: mov dword ptr [ecx + 8], esi */ 15411 esi = MEM32(edx); /* 0x300122D0: mov esi, dword ptr [edx] */ 15412 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300122D2: cmp esi, dword ptr [edi + 8] */ 15413 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15415 _flag_k = FK_CMP; 15416 if (CMP_EQ(_flag_a, _flag_b)) goto L_300122DA; /* 0x300122D5: je 0x300122da */ 15417 L_300122D7: 15418 MEM32(esi + 0x4) = ecx; /* 0x300122D7: mov dword ptr [esi + 4], ecx */ 15419 L_300122DA: 15420 esi = MEM32(ecx + 0x4); /* 0x300122DA: mov esi, dword ptr [ecx + 4] */ 15421 MEM32(edx + 0x4) = esi; /* 0x300122DD: mov dword ptr [edx + 4], esi */ 15422 esi = MEM32(edi + 0x4); /* 0x300122E0: mov esi, dword ptr [edi + 4] */ 15423 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300122E3: cmp ecx, dword ptr [esi + 4] */ 15424 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15426 _flag_k = FK_CMP; 15427 if (CMP_NE(_flag_a, _flag_b)) goto L_300122ED; /* 0x300122E6: jne 0x300122ed */ 15428 L_300122E8: 15429 MEM32(esi + 0x4) = edx; /* 0x300122E8: mov dword ptr [esi + 4], edx */ 15430 goto L_300122FB; /* 0x300122EB: jmp 0x300122fb */ 15431 L_300122ED: 15432 esi = MEM32(ecx + 0x4); /* 0x300122ED: mov esi, dword ptr [ecx + 4] */ 15433 /* cmp ecx, MEM32(esi) */ /* 0x300122F0: cmp ecx, dword ptr [esi] */ 15434 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15436 _flag_k = FK_CMP; 15437 if (CMP_NE(_flag_a, _flag_b)) goto L_300122F8; /* 0x300122F2: jne 0x300122f8 */ 15438 L_300122F4: 15439 MEM32(esi) = edx; /* 0x300122F4: mov dword ptr [esi], edx */ 15440 goto L_300122FB; /* 0x300122F6: jmp 0x300122fb */ 15441 L_300122F8: 15442 MEM32(esi + 0x8) = edx; /* 0x300122F8: mov dword ptr [esi + 8], edx */ 15443 L_300122FB: 15444 MEM32(edx) = ecx; /* 0x300122FB: mov dword ptr [edx], ecx */ 15445 MEM32(ecx + 0x4) = edx; /* 0x300122FD: mov dword ptr [ecx + 4], edx */ 15446 ecx = MEM32(eax + 0x4); /* 0x30012300: mov ecx, dword ptr [eax + 4] */ 15447 ecx = MEM32(ecx); /* 0x30012303: mov ecx, dword ptr [ecx] */ 15448 L_30012305: 15449 edx = MEM32(eax + 0x4); /* 0x30012305: mov edx, dword ptr [eax + 4] */ 15450 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x30012308: mov dl, byte ptr [edx + 0x1c] */ 15451 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3001230B: mov byte ptr [ecx + 0x1c], dl */ 15452 edx = MEM32(eax + 0x4); /* 0x3001230E: mov edx, dword ptr [eax + 4] */ 15453 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012311: mov byte ptr [edx + 0x1c], bl */ 15454 ecx = MEM32(ecx); /* 0x30012314: mov ecx, dword ptr [ecx] */ 15455 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012316: mov byte ptr [ecx + 0x1c], bl */ 15456 ecx = MEM32(eax + 0x4); /* 0x30012319: mov ecx, dword ptr [eax + 4] */ 15457 edx = MEM32(ecx); /* 0x3001231C: mov edx, dword ptr [ecx] */ 15458 esi = MEM32(edx + 0x8); /* 0x3001231E: mov esi, dword ptr [edx + 8] */ 15459 MEM32(ecx) = esi; /* 0x30012321: mov dword ptr [ecx], esi */ 15460 esi = MEM32(edx + 0x8); /* 0x30012323: mov esi, dword ptr [edx + 8] */ 15461 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012326: cmp esi, dword ptr [edi + 8] */ 15462 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15464 _flag_k = FK_CMP; 15465 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001232E; /* 0x30012329: je 0x3001232e */ 15466 L_3001232B: 15467 MEM32(esi + 0x4) = ecx; /* 0x3001232B: mov dword ptr [esi + 4], ecx */ 15468 L_3001232E: 15469 esi = MEM32(ecx + 0x4); /* 0x3001232E: mov esi, dword ptr [ecx + 4] */ 15470 MEM32(edx + 0x4) = esi; /* 0x30012331: mov dword ptr [edx + 4], esi */ 15471 esi = MEM32(edi + 0x4); /* 0x30012334: mov esi, dword ptr [edi + 4] */ 15472 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012337: cmp ecx, dword ptr [esi + 4] */ 15473 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15475 _flag_k = FK_CMP; 15476 if (CMP_NE(_flag_a, _flag_b)) goto L_30012341; /* 0x3001233A: jne 0x30012341 */ 15477 L_3001233C: 15478 MEM32(esi + 0x4) = edx; /* 0x3001233C: mov dword ptr [esi + 4], edx */ 15479 goto L_30012350; /* 0x3001233F: jmp 0x30012350 */ 15480 L_30012341: 15481 esi = MEM32(ecx + 0x4); /* 0x30012341: mov esi, dword ptr [ecx + 4] */ 15482 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012344: cmp ecx, dword ptr [esi + 8] */ 15483 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15485 _flag_k = FK_CMP; 15486 if (CMP_NE(_flag_a, _flag_b)) goto L_3001234E; /* 0x30012347: jne 0x3001234e */ 15487 L_30012349: 15488 MEM32(esi + 0x8) = edx; /* 0x30012349: mov dword ptr [esi + 8], edx */ 15489 goto L_30012350; /* 0x3001234C: jmp 0x30012350 */ 15490 L_3001234E: 15491 MEM32(esi) = edx; /* 0x3001234E: mov dword ptr [esi], edx */ 15492 L_30012350: 15493 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 15494 L_30012353: 15495 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 15496 L_30012356: 15497 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 15498 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 15499 PUSH32(esp, edx); /* 0x3001235C: push edx */ 15500 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 15501 RECOMP_FLAGS_IN(); 15502 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 15503 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 15504 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15505 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15506 esp = esp + 4; /* 0x30012368: add esp, 4 */ 15507 _flag_k = FK_ADD; 15508 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15509 eax = eax - 1; /* 0x3001236B: dec eax */ 15510 _flag_k = FK_DEC; 15511 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 15512 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 15513 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 15514 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 15515 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 15516 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 15517 esp = ebp; /* 0x30012377: mov esp, ebp */ 15518 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 15519 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 15520 RECOMP_REGS_OUT(); 15521 } 15522 15523 void sub_3001216F(void) { 15524 int _fpu_cmp = 0; 15525 uint32_t _cf = 0; 15526 int _df = 1; 15527 uint32_t _flag_k = FK_NONE; 15528 uint32_t _flag_a = 0, _flag_b = 0; 15529 uint32_t _itail_tgt = 0; 15530 RECOMP_REGS_LOCALS 15531 RECOMP_ENTER(0x3001216Fu); 15532 15533 goto L_3001216F; 15534 L_30012108: 15535 /* cmp MEM8(eax + 0x1C), LO8(ebx) */ /* 0x30012108: cmp byte ptr [eax + 0x1c], bl */ 15536 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15538 _flag_k = FK_NARROW(FK_CMP, 24); 15539 if (CMP_NE(_flag_a, _flag_b)) goto L_30012356; /* 0x3001210B: jne 0x30012356 */ 15540 L_30012111: 15541 edx = MEM32(eax + 0x4); /* 0x30012111: mov edx, dword ptr [eax + 4] */ 15542 ecx = MEM32(edx); /* 0x30012114: mov ecx, dword ptr [edx] */ 15543 /* cmp eax, ecx */ /* 0x30012116: cmp eax, ecx */ 15544 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15546 _flag_k = FK_CMP; 15547 if (CMP_NE(_flag_a, _flag_b)) goto L_30012188; /* 0x30012118: jne 0x30012188 */ 15548 L_3001211A: 15549 ecx = MEM32(edx + 0x8); /* 0x3001211A: mov ecx, dword ptr [edx + 8] */ 15550 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3001211D: mov dl, byte ptr [ecx + 0x1c] */ 15551 /* test LO8(edx), LO8(edx) */ /* 0x30012120: test dl, dl */ 15552 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15553 _cf = 0; 15554 _flag_k = FK_NARROW(FK_TEST, 24); 15555 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001216F; /* 0x30012122: jne 0x3001216f */ 15556 L_30012124: 15557 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012124: mov byte ptr [ecx + 0x1c], bl */ 15558 ecx = MEM32(eax + 0x4); /* 0x30012127: mov ecx, dword ptr [eax + 4] */ 15559 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3001212A: mov byte ptr [ecx + 0x1c], 0 */ 15560 ecx = MEM32(eax + 0x4); /* 0x3001212E: mov ecx, dword ptr [eax + 4] */ 15561 edx = MEM32(ecx + 0x8); /* 0x30012131: mov edx, dword ptr [ecx + 8] */ 15562 esi = MEM32(edx); /* 0x30012134: mov esi, dword ptr [edx] */ 15563 MEM32(ecx + 0x8) = esi; /* 0x30012136: mov dword ptr [ecx + 8], esi */ 15564 esi = MEM32(edx); /* 0x30012139: mov esi, dword ptr [edx] */ 15565 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001213B: cmp esi, dword ptr [edi + 8] */ 15566 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15568 _flag_k = FK_CMP; 15569 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012143; /* 0x3001213E: je 0x30012143 */ 15570 L_30012140: 15571 MEM32(esi + 0x4) = ecx; /* 0x30012140: mov dword ptr [esi + 4], ecx */ 15572 L_30012143: 15573 esi = MEM32(ecx + 0x4); /* 0x30012143: mov esi, dword ptr [ecx + 4] */ 15574 MEM32(edx + 0x4) = esi; /* 0x30012146: mov dword ptr [edx + 4], esi */ 15575 esi = MEM32(edi + 0x4); /* 0x30012149: mov esi, dword ptr [edi + 4] */ 15576 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001214C: cmp ecx, dword ptr [esi + 4] */ 15577 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15579 _flag_k = FK_CMP; 15580 if (CMP_NE(_flag_a, _flag_b)) goto L_30012156; /* 0x3001214F: jne 0x30012156 */ 15581 L_30012151: 15582 MEM32(esi + 0x4) = edx; /* 0x30012151: mov dword ptr [esi + 4], edx */ 15583 goto L_30012164; /* 0x30012154: jmp 0x30012164 */ 15584 L_30012156: 15585 esi = MEM32(ecx + 0x4); /* 0x30012156: mov esi, dword ptr [ecx + 4] */ 15586 /* cmp ecx, MEM32(esi) */ /* 0x30012159: cmp ecx, dword ptr [esi] */ 15587 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15589 _flag_k = FK_CMP; 15590 if (CMP_NE(_flag_a, _flag_b)) goto L_30012161; /* 0x3001215B: jne 0x30012161 */ 15591 L_3001215D: 15592 MEM32(esi) = edx; /* 0x3001215D: mov dword ptr [esi], edx */ 15593 goto L_30012164; /* 0x3001215F: jmp 0x30012164 */ 15594 L_30012161: 15595 MEM32(esi + 0x8) = edx; /* 0x30012161: mov dword ptr [esi + 8], edx */ 15596 L_30012164: 15597 MEM32(edx) = ecx; /* 0x30012164: mov dword ptr [edx], ecx */ 15598 MEM32(ecx + 0x4) = edx; /* 0x30012166: mov dword ptr [ecx + 4], edx */ 15599 edx = MEM32(eax + 0x4); /* 0x30012169: mov edx, dword ptr [eax + 4] */ 15600 ecx = MEM32(edx + 0x8); /* 0x3001216C: mov ecx, dword ptr [edx + 8] */ 15601 L_3001216F: 15602 edx = MEM32(ecx); /* 0x3001216F: mov edx, dword ptr [ecx] */ 15603 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x30012171: cmp byte ptr [edx + 0x1c], bl */ 15604 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15606 _flag_k = FK_NARROW(FK_CMP, 24); 15607 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012174: jne 0x3001220a */ 15608 L_3001217A: 15609 edx = MEM32(ecx + 0x8); /* 0x3001217A: mov edx, dword ptr [ecx + 8] */ 15610 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001217D: cmp byte ptr [edx + 0x1c], bl */ 15611 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15613 _flag_k = FK_NARROW(FK_CMP, 24); 15614 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012180: jne 0x3001220a */ 15615 L_30012186: 15616 goto L_300121F2; /* 0x30012186: jmp 0x300121f2 */ 15617 L_30012188: 15618 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30012188: mov dl, byte ptr [ecx + 0x1c] */ 15619 /* test LO8(edx), LO8(edx) */ /* 0x3001218B: test dl, dl */ 15620 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15621 _cf = 0; 15622 _flag_k = FK_NARROW(FK_TEST, 24); 15623 if (TEST_NZ(_flag_a, _flag_b)) goto L_300121DB; /* 0x3001218D: jne 0x300121db */ 15624 L_3001218F: 15625 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001218F: mov byte ptr [ecx + 0x1c], bl */ 15626 ecx = MEM32(eax + 0x4); /* 0x30012192: mov ecx, dword ptr [eax + 4] */ 15627 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012195: mov byte ptr [ecx + 0x1c], 0 */ 15628 ecx = MEM32(eax + 0x4); /* 0x30012199: mov ecx, dword ptr [eax + 4] */ 15629 edx = MEM32(ecx); /* 0x3001219C: mov edx, dword ptr [ecx] */ 15630 esi = MEM32(edx + 0x8); /* 0x3001219E: mov esi, dword ptr [edx + 8] */ 15631 MEM32(ecx) = esi; /* 0x300121A1: mov dword ptr [ecx], esi */ 15632 esi = MEM32(edx + 0x8); /* 0x300121A3: mov esi, dword ptr [edx + 8] */ 15633 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300121A6: cmp esi, dword ptr [edi + 8] */ 15634 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15636 _flag_k = FK_CMP; 15637 if (CMP_EQ(_flag_a, _flag_b)) goto L_300121AE; /* 0x300121A9: je 0x300121ae */ 15638 L_300121AB: 15639 MEM32(esi + 0x4) = ecx; /* 0x300121AB: mov dword ptr [esi + 4], ecx */ 15640 L_300121AE: 15641 esi = MEM32(ecx + 0x4); /* 0x300121AE: mov esi, dword ptr [ecx + 4] */ 15642 MEM32(edx + 0x4) = esi; /* 0x300121B1: mov dword ptr [edx + 4], esi */ 15643 esi = MEM32(edi + 0x4); /* 0x300121B4: mov esi, dword ptr [edi + 4] */ 15644 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300121B7: cmp ecx, dword ptr [esi + 4] */ 15645 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15647 _flag_k = FK_CMP; 15648 if (CMP_NE(_flag_a, _flag_b)) goto L_300121C1; /* 0x300121BA: jne 0x300121c1 */ 15649 L_300121BC: 15650 MEM32(esi + 0x4) = edx; /* 0x300121BC: mov dword ptr [esi + 4], edx */ 15651 goto L_300121D0; /* 0x300121BF: jmp 0x300121d0 */ 15652 L_300121C1: 15653 esi = MEM32(ecx + 0x4); /* 0x300121C1: mov esi, dword ptr [ecx + 4] */ 15654 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300121C4: cmp ecx, dword ptr [esi + 8] */ 15655 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15657 _flag_k = FK_CMP; 15658 if (CMP_NE(_flag_a, _flag_b)) goto L_300121CE; /* 0x300121C7: jne 0x300121ce */ 15659 L_300121C9: 15660 MEM32(esi + 0x8) = edx; /* 0x300121C9: mov dword ptr [esi + 8], edx */ 15661 goto L_300121D0; /* 0x300121CC: jmp 0x300121d0 */ 15662 L_300121CE: 15663 MEM32(esi) = edx; /* 0x300121CE: mov dword ptr [esi], edx */ 15664 L_300121D0: 15665 MEM32(edx + 0x8) = ecx; /* 0x300121D0: mov dword ptr [edx + 8], ecx */ 15666 MEM32(ecx + 0x4) = edx; /* 0x300121D3: mov dword ptr [ecx + 4], edx */ 15667 edx = MEM32(eax + 0x4); /* 0x300121D6: mov edx, dword ptr [eax + 4] */ 15668 ecx = MEM32(edx); /* 0x300121D9: mov ecx, dword ptr [edx] */ 15669 L_300121DB: 15670 edx = MEM32(ecx + 0x8); /* 0x300121DB: mov edx, dword ptr [ecx + 8] */ 15671 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121DE: cmp byte ptr [edx + 0x1c], bl */ 15672 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15674 _flag_k = FK_NARROW(FK_CMP, 24); 15675 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121E1: jne 0x300122b7 */ 15676 L_300121E7: 15677 edx = MEM32(ecx); /* 0x300121E7: mov edx, dword ptr [ecx] */ 15678 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121E9: cmp byte ptr [edx + 0x1c], bl */ 15679 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15681 _flag_k = FK_NARROW(FK_CMP, 24); 15682 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121EC: jne 0x300122b7 */ 15683 L_300121F2: 15684 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300121F2: mov byte ptr [ecx + 0x1c], 0 */ 15685 ecx = MEM32(edi + 0x4); /* 0x300121F6: mov ecx, dword ptr [edi + 4] */ 15686 eax = MEM32(eax + 0x4); /* 0x300121F9: mov eax, dword ptr [eax + 4] */ 15687 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300121FC: cmp eax, dword ptr [ecx + 4] */ 15688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 15689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15690 _flag_k = FK_CMP; 15691 RECOMP_BACKEDGE(); 15692 if (CMP_NE(_flag_a, _flag_b)) goto L_30012108; /* 0x300121FF: jne 0x30012108 */ 15693 L_30012205: 15694 goto L_30012356; /* 0x30012205: jmp 0x30012356 */ 15695 L_3001220A: 15696 edx = MEM32(ecx + 0x8); /* 0x3001220A: mov edx, dword ptr [ecx + 8] */ 15697 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001220D: cmp byte ptr [edx + 0x1c], bl */ 15698 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15700 _flag_k = FK_NARROW(FK_CMP, 24); 15701 if (CMP_NE(_flag_a, _flag_b)) goto L_3001225B; /* 0x30012210: jne 0x3001225b */ 15702 L_30012212: 15703 edx = MEM32(ecx); /* 0x30012212: mov edx, dword ptr [ecx] */ 15704 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012214: mov byte ptr [edx + 0x1c], bl */ 15705 edx = MEM32(ecx); /* 0x30012217: mov edx, dword ptr [ecx] */ 15706 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012219: mov byte ptr [ecx + 0x1c], 0 */ 15707 esi = MEM32(edx + 0x8); /* 0x3001221D: mov esi, dword ptr [edx + 8] */ 15708 MEM32(ecx) = esi; /* 0x30012220: mov dword ptr [ecx], esi */ 15709 esi = MEM32(edx + 0x8); /* 0x30012222: mov esi, dword ptr [edx + 8] */ 15710 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012225: cmp esi, dword ptr [edi + 8] */ 15711 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15713 _flag_k = FK_CMP; 15714 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001222D; /* 0x30012228: je 0x3001222d */ 15715 L_3001222A: 15716 MEM32(esi + 0x4) = ecx; /* 0x3001222A: mov dword ptr [esi + 4], ecx */ 15717 L_3001222D: 15718 esi = MEM32(ecx + 0x4); /* 0x3001222D: mov esi, dword ptr [ecx + 4] */ 15719 MEM32(edx + 0x4) = esi; /* 0x30012230: mov dword ptr [edx + 4], esi */ 15720 esi = MEM32(edi + 0x4); /* 0x30012233: mov esi, dword ptr [edi + 4] */ 15721 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012236: cmp ecx, dword ptr [esi + 4] */ 15722 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15724 _flag_k = FK_CMP; 15725 if (CMP_NE(_flag_a, _flag_b)) goto L_30012240; /* 0x30012239: jne 0x30012240 */ 15726 L_3001223B: 15727 MEM32(esi + 0x4) = edx; /* 0x3001223B: mov dword ptr [esi + 4], edx */ 15728 goto L_3001224F; /* 0x3001223E: jmp 0x3001224f */ 15729 L_30012240: 15730 esi = MEM32(ecx + 0x4); /* 0x30012240: mov esi, dword ptr [ecx + 4] */ 15731 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012243: cmp ecx, dword ptr [esi + 8] */ 15732 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15734 _flag_k = FK_CMP; 15735 if (CMP_NE(_flag_a, _flag_b)) goto L_3001224D; /* 0x30012246: jne 0x3001224d */ 15736 L_30012248: 15737 MEM32(esi + 0x8) = edx; /* 0x30012248: mov dword ptr [esi + 8], edx */ 15738 goto L_3001224F; /* 0x3001224B: jmp 0x3001224f */ 15739 L_3001224D: 15740 MEM32(esi) = edx; /* 0x3001224D: mov dword ptr [esi], edx */ 15741 L_3001224F: 15742 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 15743 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 15744 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 15745 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 15746 L_3001225B: 15747 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 15748 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 15749 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 15750 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 15751 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 15752 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 15753 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 15754 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 15755 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 15756 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 15757 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 15758 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 15759 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 15760 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15762 _flag_k = FK_CMP; 15763 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 15764 L_30012282: 15765 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 15766 L_30012285: 15767 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 15768 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 15769 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 15770 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 15771 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15773 _flag_k = FK_CMP; 15774 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 15775 L_30012293: 15776 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 15777 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 15778 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 15779 L_3001229D: 15780 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 15781 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 15782 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15784 _flag_k = FK_CMP; 15785 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 15786 L_300122A4: 15787 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 15788 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 15789 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 15790 L_300122AD: 15791 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 15792 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 15793 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 15794 L_300122B7: 15795 edx = MEM32(ecx); /* 0x300122B7: mov edx, dword ptr [ecx] */ 15796 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300122B9: cmp byte ptr [edx + 0x1c], bl */ 15797 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15799 _flag_k = FK_NARROW(FK_CMP, 24); 15800 if (CMP_NE(_flag_a, _flag_b)) goto L_30012305; /* 0x300122BC: jne 0x30012305 */ 15801 L_300122BE: 15802 edx = MEM32(ecx + 0x8); /* 0x300122BE: mov edx, dword ptr [ecx + 8] */ 15803 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x300122C1: mov byte ptr [edx + 0x1c], bl */ 15804 edx = MEM32(ecx + 0x8); /* 0x300122C4: mov edx, dword ptr [ecx + 8] */ 15805 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300122C7: mov byte ptr [ecx + 0x1c], 0 */ 15806 esi = MEM32(edx); /* 0x300122CB: mov esi, dword ptr [edx] */ 15807 MEM32(ecx + 0x8) = esi; /* 0x300122CD: mov dword ptr [ecx + 8], esi */ 15808 esi = MEM32(edx); /* 0x300122D0: mov esi, dword ptr [edx] */ 15809 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300122D2: cmp esi, dword ptr [edi + 8] */ 15810 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15812 _flag_k = FK_CMP; 15813 if (CMP_EQ(_flag_a, _flag_b)) goto L_300122DA; /* 0x300122D5: je 0x300122da */ 15814 L_300122D7: 15815 MEM32(esi + 0x4) = ecx; /* 0x300122D7: mov dword ptr [esi + 4], ecx */ 15816 L_300122DA: 15817 esi = MEM32(ecx + 0x4); /* 0x300122DA: mov esi, dword ptr [ecx + 4] */ 15818 MEM32(edx + 0x4) = esi; /* 0x300122DD: mov dword ptr [edx + 4], esi */ 15819 esi = MEM32(edi + 0x4); /* 0x300122E0: mov esi, dword ptr [edi + 4] */ 15820 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300122E3: cmp ecx, dword ptr [esi + 4] */ 15821 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15823 _flag_k = FK_CMP; 15824 if (CMP_NE(_flag_a, _flag_b)) goto L_300122ED; /* 0x300122E6: jne 0x300122ed */ 15825 L_300122E8: 15826 MEM32(esi + 0x4) = edx; /* 0x300122E8: mov dword ptr [esi + 4], edx */ 15827 goto L_300122FB; /* 0x300122EB: jmp 0x300122fb */ 15828 L_300122ED: 15829 esi = MEM32(ecx + 0x4); /* 0x300122ED: mov esi, dword ptr [ecx + 4] */ 15830 /* cmp ecx, MEM32(esi) */ /* 0x300122F0: cmp ecx, dword ptr [esi] */ 15831 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15833 _flag_k = FK_CMP; 15834 if (CMP_NE(_flag_a, _flag_b)) goto L_300122F8; /* 0x300122F2: jne 0x300122f8 */ 15835 L_300122F4: 15836 MEM32(esi) = edx; /* 0x300122F4: mov dword ptr [esi], edx */ 15837 goto L_300122FB; /* 0x300122F6: jmp 0x300122fb */ 15838 L_300122F8: 15839 MEM32(esi + 0x8) = edx; /* 0x300122F8: mov dword ptr [esi + 8], edx */ 15840 L_300122FB: 15841 MEM32(edx) = ecx; /* 0x300122FB: mov dword ptr [edx], ecx */ 15842 MEM32(ecx + 0x4) = edx; /* 0x300122FD: mov dword ptr [ecx + 4], edx */ 15843 ecx = MEM32(eax + 0x4); /* 0x30012300: mov ecx, dword ptr [eax + 4] */ 15844 ecx = MEM32(ecx); /* 0x30012303: mov ecx, dword ptr [ecx] */ 15845 L_30012305: 15846 edx = MEM32(eax + 0x4); /* 0x30012305: mov edx, dword ptr [eax + 4] */ 15847 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x30012308: mov dl, byte ptr [edx + 0x1c] */ 15848 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3001230B: mov byte ptr [ecx + 0x1c], dl */ 15849 edx = MEM32(eax + 0x4); /* 0x3001230E: mov edx, dword ptr [eax + 4] */ 15850 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012311: mov byte ptr [edx + 0x1c], bl */ 15851 ecx = MEM32(ecx); /* 0x30012314: mov ecx, dword ptr [ecx] */ 15852 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012316: mov byte ptr [ecx + 0x1c], bl */ 15853 ecx = MEM32(eax + 0x4); /* 0x30012319: mov ecx, dword ptr [eax + 4] */ 15854 edx = MEM32(ecx); /* 0x3001231C: mov edx, dword ptr [ecx] */ 15855 esi = MEM32(edx + 0x8); /* 0x3001231E: mov esi, dword ptr [edx + 8] */ 15856 MEM32(ecx) = esi; /* 0x30012321: mov dword ptr [ecx], esi */ 15857 esi = MEM32(edx + 0x8); /* 0x30012323: mov esi, dword ptr [edx + 8] */ 15858 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012326: cmp esi, dword ptr [edi + 8] */ 15859 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15861 _flag_k = FK_CMP; 15862 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001232E; /* 0x30012329: je 0x3001232e */ 15863 L_3001232B: 15864 MEM32(esi + 0x4) = ecx; /* 0x3001232B: mov dword ptr [esi + 4], ecx */ 15865 L_3001232E: 15866 esi = MEM32(ecx + 0x4); /* 0x3001232E: mov esi, dword ptr [ecx + 4] */ 15867 MEM32(edx + 0x4) = esi; /* 0x30012331: mov dword ptr [edx + 4], esi */ 15868 esi = MEM32(edi + 0x4); /* 0x30012334: mov esi, dword ptr [edi + 4] */ 15869 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012337: cmp ecx, dword ptr [esi + 4] */ 15870 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15872 _flag_k = FK_CMP; 15873 if (CMP_NE(_flag_a, _flag_b)) goto L_30012341; /* 0x3001233A: jne 0x30012341 */ 15874 L_3001233C: 15875 MEM32(esi + 0x4) = edx; /* 0x3001233C: mov dword ptr [esi + 4], edx */ 15876 goto L_30012350; /* 0x3001233F: jmp 0x30012350 */ 15877 L_30012341: 15878 esi = MEM32(ecx + 0x4); /* 0x30012341: mov esi, dword ptr [ecx + 4] */ 15879 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012344: cmp ecx, dword ptr [esi + 8] */ 15880 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15882 _flag_k = FK_CMP; 15883 if (CMP_NE(_flag_a, _flag_b)) goto L_3001234E; /* 0x30012347: jne 0x3001234e */ 15884 L_30012349: 15885 MEM32(esi + 0x8) = edx; /* 0x30012349: mov dword ptr [esi + 8], edx */ 15886 goto L_30012350; /* 0x3001234C: jmp 0x30012350 */ 15887 L_3001234E: 15888 MEM32(esi) = edx; /* 0x3001234E: mov dword ptr [esi], edx */ 15889 L_30012350: 15890 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 15891 L_30012353: 15892 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 15893 L_30012356: 15894 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 15895 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 15896 PUSH32(esp, edx); /* 0x3001235C: push edx */ 15897 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 15898 RECOMP_FLAGS_IN(); 15899 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 15900 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 15901 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15903 esp = esp + 4; /* 0x30012368: add esp, 4 */ 15904 _flag_k = FK_ADD; 15905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15906 eax = eax - 1; /* 0x3001236B: dec eax */ 15907 _flag_k = FK_DEC; 15908 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 15909 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 15910 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 15911 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 15912 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 15913 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 15914 esp = ebp; /* 0x30012377: mov esp, ebp */ 15915 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 15916 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 15917 RECOMP_REGS_OUT(); 15918 } 15919 15920 void sub_30012188(void) { 15921 int _fpu_cmp = 0; 15922 uint32_t _cf = 0; 15923 int _df = 1; 15924 uint32_t _flag_k = FK_NONE; 15925 uint32_t _flag_a = 0, _flag_b = 0; 15926 uint32_t _itail_tgt = 0; 15927 RECOMP_REGS_LOCALS 15928 RECOMP_ENTER(0x30012188u); 15929 15930 goto L_30012188; 15931 L_30012108: 15932 /* cmp MEM8(eax + 0x1C), LO8(ebx) */ /* 0x30012108: cmp byte ptr [eax + 0x1c], bl */ 15933 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 15934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15935 _flag_k = FK_NARROW(FK_CMP, 24); 15936 if (CMP_NE(_flag_a, _flag_b)) goto L_30012356; /* 0x3001210B: jne 0x30012356 */ 15937 L_30012111: 15938 edx = MEM32(eax + 0x4); /* 0x30012111: mov edx, dword ptr [eax + 4] */ 15939 ecx = MEM32(edx); /* 0x30012114: mov ecx, dword ptr [edx] */ 15940 /* cmp eax, ecx */ /* 0x30012116: cmp eax, ecx */ 15941 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15943 _flag_k = FK_CMP; 15944 if (CMP_NE(_flag_a, _flag_b)) goto L_30012188; /* 0x30012118: jne 0x30012188 */ 15945 L_3001211A: 15946 ecx = MEM32(edx + 0x8); /* 0x3001211A: mov ecx, dword ptr [edx + 8] */ 15947 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3001211D: mov dl, byte ptr [ecx + 0x1c] */ 15948 /* test LO8(edx), LO8(edx) */ /* 0x30012120: test dl, dl */ 15949 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15950 _cf = 0; 15951 _flag_k = FK_NARROW(FK_TEST, 24); 15952 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001216F; /* 0x30012122: jne 0x3001216f */ 15953 L_30012124: 15954 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012124: mov byte ptr [ecx + 0x1c], bl */ 15955 ecx = MEM32(eax + 0x4); /* 0x30012127: mov ecx, dword ptr [eax + 4] */ 15956 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3001212A: mov byte ptr [ecx + 0x1c], 0 */ 15957 ecx = MEM32(eax + 0x4); /* 0x3001212E: mov ecx, dword ptr [eax + 4] */ 15958 edx = MEM32(ecx + 0x8); /* 0x30012131: mov edx, dword ptr [ecx + 8] */ 15959 esi = MEM32(edx); /* 0x30012134: mov esi, dword ptr [edx] */ 15960 MEM32(ecx + 0x8) = esi; /* 0x30012136: mov dword ptr [ecx + 8], esi */ 15961 esi = MEM32(edx); /* 0x30012139: mov esi, dword ptr [edx] */ 15962 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001213B: cmp esi, dword ptr [edi + 8] */ 15963 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 15964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15965 _flag_k = FK_CMP; 15966 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012143; /* 0x3001213E: je 0x30012143 */ 15967 L_30012140: 15968 MEM32(esi + 0x4) = ecx; /* 0x30012140: mov dword ptr [esi + 4], ecx */ 15969 L_30012143: 15970 esi = MEM32(ecx + 0x4); /* 0x30012143: mov esi, dword ptr [ecx + 4] */ 15971 MEM32(edx + 0x4) = esi; /* 0x30012146: mov dword ptr [edx + 4], esi */ 15972 esi = MEM32(edi + 0x4); /* 0x30012149: mov esi, dword ptr [edi + 4] */ 15973 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001214C: cmp ecx, dword ptr [esi + 4] */ 15974 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 15975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15976 _flag_k = FK_CMP; 15977 if (CMP_NE(_flag_a, _flag_b)) goto L_30012156; /* 0x3001214F: jne 0x30012156 */ 15978 L_30012151: 15979 MEM32(esi + 0x4) = edx; /* 0x30012151: mov dword ptr [esi + 4], edx */ 15980 goto L_30012164; /* 0x30012154: jmp 0x30012164 */ 15981 L_30012156: 15982 esi = MEM32(ecx + 0x4); /* 0x30012156: mov esi, dword ptr [ecx + 4] */ 15983 /* cmp ecx, MEM32(esi) */ /* 0x30012159: cmp ecx, dword ptr [esi] */ 15984 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 15985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15986 _flag_k = FK_CMP; 15987 if (CMP_NE(_flag_a, _flag_b)) goto L_30012161; /* 0x3001215B: jne 0x30012161 */ 15988 L_3001215D: 15989 MEM32(esi) = edx; /* 0x3001215D: mov dword ptr [esi], edx */ 15990 goto L_30012164; /* 0x3001215F: jmp 0x30012164 */ 15991 L_30012161: 15992 MEM32(esi + 0x8) = edx; /* 0x30012161: mov dword ptr [esi + 8], edx */ 15993 L_30012164: 15994 MEM32(edx) = ecx; /* 0x30012164: mov dword ptr [edx], ecx */ 15995 MEM32(ecx + 0x4) = edx; /* 0x30012166: mov dword ptr [ecx + 4], edx */ 15996 edx = MEM32(eax + 0x4); /* 0x30012169: mov edx, dword ptr [eax + 4] */ 15997 ecx = MEM32(edx + 0x8); /* 0x3001216C: mov ecx, dword ptr [edx + 8] */ 15998 L_3001216F: 15999 edx = MEM32(ecx); /* 0x3001216F: mov edx, dword ptr [ecx] */ 16000 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x30012171: cmp byte ptr [edx + 0x1c], bl */ 16001 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16003 _flag_k = FK_NARROW(FK_CMP, 24); 16004 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012174: jne 0x3001220a */ 16005 L_3001217A: 16006 edx = MEM32(ecx + 0x8); /* 0x3001217A: mov edx, dword ptr [ecx + 8] */ 16007 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001217D: cmp byte ptr [edx + 0x1c], bl */ 16008 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16010 _flag_k = FK_NARROW(FK_CMP, 24); 16011 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012180: jne 0x3001220a */ 16012 L_30012186: 16013 goto L_300121F2; /* 0x30012186: jmp 0x300121f2 */ 16014 L_30012188: 16015 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30012188: mov dl, byte ptr [ecx + 0x1c] */ 16016 /* test LO8(edx), LO8(edx) */ /* 0x3001218B: test dl, dl */ 16017 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16018 _cf = 0; 16019 _flag_k = FK_NARROW(FK_TEST, 24); 16020 if (TEST_NZ(_flag_a, _flag_b)) goto L_300121DB; /* 0x3001218D: jne 0x300121db */ 16021 L_3001218F: 16022 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001218F: mov byte ptr [ecx + 0x1c], bl */ 16023 ecx = MEM32(eax + 0x4); /* 0x30012192: mov ecx, dword ptr [eax + 4] */ 16024 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012195: mov byte ptr [ecx + 0x1c], 0 */ 16025 ecx = MEM32(eax + 0x4); /* 0x30012199: mov ecx, dword ptr [eax + 4] */ 16026 edx = MEM32(ecx); /* 0x3001219C: mov edx, dword ptr [ecx] */ 16027 esi = MEM32(edx + 0x8); /* 0x3001219E: mov esi, dword ptr [edx + 8] */ 16028 MEM32(ecx) = esi; /* 0x300121A1: mov dword ptr [ecx], esi */ 16029 esi = MEM32(edx + 0x8); /* 0x300121A3: mov esi, dword ptr [edx + 8] */ 16030 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300121A6: cmp esi, dword ptr [edi + 8] */ 16031 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16033 _flag_k = FK_CMP; 16034 if (CMP_EQ(_flag_a, _flag_b)) goto L_300121AE; /* 0x300121A9: je 0x300121ae */ 16035 L_300121AB: 16036 MEM32(esi + 0x4) = ecx; /* 0x300121AB: mov dword ptr [esi + 4], ecx */ 16037 L_300121AE: 16038 esi = MEM32(ecx + 0x4); /* 0x300121AE: mov esi, dword ptr [ecx + 4] */ 16039 MEM32(edx + 0x4) = esi; /* 0x300121B1: mov dword ptr [edx + 4], esi */ 16040 esi = MEM32(edi + 0x4); /* 0x300121B4: mov esi, dword ptr [edi + 4] */ 16041 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300121B7: cmp ecx, dword ptr [esi + 4] */ 16042 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16044 _flag_k = FK_CMP; 16045 if (CMP_NE(_flag_a, _flag_b)) goto L_300121C1; /* 0x300121BA: jne 0x300121c1 */ 16046 L_300121BC: 16047 MEM32(esi + 0x4) = edx; /* 0x300121BC: mov dword ptr [esi + 4], edx */ 16048 goto L_300121D0; /* 0x300121BF: jmp 0x300121d0 */ 16049 L_300121C1: 16050 esi = MEM32(ecx + 0x4); /* 0x300121C1: mov esi, dword ptr [ecx + 4] */ 16051 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300121C4: cmp ecx, dword ptr [esi + 8] */ 16052 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16054 _flag_k = FK_CMP; 16055 if (CMP_NE(_flag_a, _flag_b)) goto L_300121CE; /* 0x300121C7: jne 0x300121ce */ 16056 L_300121C9: 16057 MEM32(esi + 0x8) = edx; /* 0x300121C9: mov dword ptr [esi + 8], edx */ 16058 goto L_300121D0; /* 0x300121CC: jmp 0x300121d0 */ 16059 L_300121CE: 16060 MEM32(esi) = edx; /* 0x300121CE: mov dword ptr [esi], edx */ 16061 L_300121D0: 16062 MEM32(edx + 0x8) = ecx; /* 0x300121D0: mov dword ptr [edx + 8], ecx */ 16063 MEM32(ecx + 0x4) = edx; /* 0x300121D3: mov dword ptr [ecx + 4], edx */ 16064 edx = MEM32(eax + 0x4); /* 0x300121D6: mov edx, dword ptr [eax + 4] */ 16065 ecx = MEM32(edx); /* 0x300121D9: mov ecx, dword ptr [edx] */ 16066 L_300121DB: 16067 edx = MEM32(ecx + 0x8); /* 0x300121DB: mov edx, dword ptr [ecx + 8] */ 16068 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121DE: cmp byte ptr [edx + 0x1c], bl */ 16069 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16071 _flag_k = FK_NARROW(FK_CMP, 24); 16072 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121E1: jne 0x300122b7 */ 16073 L_300121E7: 16074 edx = MEM32(ecx); /* 0x300121E7: mov edx, dword ptr [ecx] */ 16075 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121E9: cmp byte ptr [edx + 0x1c], bl */ 16076 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16078 _flag_k = FK_NARROW(FK_CMP, 24); 16079 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121EC: jne 0x300122b7 */ 16080 L_300121F2: 16081 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300121F2: mov byte ptr [ecx + 0x1c], 0 */ 16082 ecx = MEM32(edi + 0x4); /* 0x300121F6: mov ecx, dword ptr [edi + 4] */ 16083 eax = MEM32(eax + 0x4); /* 0x300121F9: mov eax, dword ptr [eax + 4] */ 16084 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300121FC: cmp eax, dword ptr [ecx + 4] */ 16085 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 16086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16087 _flag_k = FK_CMP; 16088 RECOMP_BACKEDGE(); 16089 if (CMP_NE(_flag_a, _flag_b)) goto L_30012108; /* 0x300121FF: jne 0x30012108 */ 16090 L_30012205: 16091 goto L_30012356; /* 0x30012205: jmp 0x30012356 */ 16092 L_3001220A: 16093 edx = MEM32(ecx + 0x8); /* 0x3001220A: mov edx, dword ptr [ecx + 8] */ 16094 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001220D: cmp byte ptr [edx + 0x1c], bl */ 16095 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16097 _flag_k = FK_NARROW(FK_CMP, 24); 16098 if (CMP_NE(_flag_a, _flag_b)) goto L_3001225B; /* 0x30012210: jne 0x3001225b */ 16099 L_30012212: 16100 edx = MEM32(ecx); /* 0x30012212: mov edx, dword ptr [ecx] */ 16101 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012214: mov byte ptr [edx + 0x1c], bl */ 16102 edx = MEM32(ecx); /* 0x30012217: mov edx, dword ptr [ecx] */ 16103 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012219: mov byte ptr [ecx + 0x1c], 0 */ 16104 esi = MEM32(edx + 0x8); /* 0x3001221D: mov esi, dword ptr [edx + 8] */ 16105 MEM32(ecx) = esi; /* 0x30012220: mov dword ptr [ecx], esi */ 16106 esi = MEM32(edx + 0x8); /* 0x30012222: mov esi, dword ptr [edx + 8] */ 16107 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012225: cmp esi, dword ptr [edi + 8] */ 16108 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16110 _flag_k = FK_CMP; 16111 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001222D; /* 0x30012228: je 0x3001222d */ 16112 L_3001222A: 16113 MEM32(esi + 0x4) = ecx; /* 0x3001222A: mov dword ptr [esi + 4], ecx */ 16114 L_3001222D: 16115 esi = MEM32(ecx + 0x4); /* 0x3001222D: mov esi, dword ptr [ecx + 4] */ 16116 MEM32(edx + 0x4) = esi; /* 0x30012230: mov dword ptr [edx + 4], esi */ 16117 esi = MEM32(edi + 0x4); /* 0x30012233: mov esi, dword ptr [edi + 4] */ 16118 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012236: cmp ecx, dword ptr [esi + 4] */ 16119 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16121 _flag_k = FK_CMP; 16122 if (CMP_NE(_flag_a, _flag_b)) goto L_30012240; /* 0x30012239: jne 0x30012240 */ 16123 L_3001223B: 16124 MEM32(esi + 0x4) = edx; /* 0x3001223B: mov dword ptr [esi + 4], edx */ 16125 goto L_3001224F; /* 0x3001223E: jmp 0x3001224f */ 16126 L_30012240: 16127 esi = MEM32(ecx + 0x4); /* 0x30012240: mov esi, dword ptr [ecx + 4] */ 16128 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012243: cmp ecx, dword ptr [esi + 8] */ 16129 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16131 _flag_k = FK_CMP; 16132 if (CMP_NE(_flag_a, _flag_b)) goto L_3001224D; /* 0x30012246: jne 0x3001224d */ 16133 L_30012248: 16134 MEM32(esi + 0x8) = edx; /* 0x30012248: mov dword ptr [esi + 8], edx */ 16135 goto L_3001224F; /* 0x3001224B: jmp 0x3001224f */ 16136 L_3001224D: 16137 MEM32(esi) = edx; /* 0x3001224D: mov dword ptr [esi], edx */ 16138 L_3001224F: 16139 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 16140 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 16141 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 16142 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 16143 L_3001225B: 16144 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 16145 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 16146 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 16147 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 16148 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 16149 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 16150 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 16151 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 16152 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 16153 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 16154 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 16155 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 16156 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 16157 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16159 _flag_k = FK_CMP; 16160 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 16161 L_30012282: 16162 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 16163 L_30012285: 16164 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 16165 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 16166 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 16167 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 16168 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16170 _flag_k = FK_CMP; 16171 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 16172 L_30012293: 16173 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 16174 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 16175 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 16176 L_3001229D: 16177 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 16178 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 16179 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16181 _flag_k = FK_CMP; 16182 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 16183 L_300122A4: 16184 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 16185 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 16186 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 16187 L_300122AD: 16188 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 16189 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 16190 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 16191 L_300122B7: 16192 edx = MEM32(ecx); /* 0x300122B7: mov edx, dword ptr [ecx] */ 16193 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300122B9: cmp byte ptr [edx + 0x1c], bl */ 16194 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16196 _flag_k = FK_NARROW(FK_CMP, 24); 16197 if (CMP_NE(_flag_a, _flag_b)) goto L_30012305; /* 0x300122BC: jne 0x30012305 */ 16198 L_300122BE: 16199 edx = MEM32(ecx + 0x8); /* 0x300122BE: mov edx, dword ptr [ecx + 8] */ 16200 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x300122C1: mov byte ptr [edx + 0x1c], bl */ 16201 edx = MEM32(ecx + 0x8); /* 0x300122C4: mov edx, dword ptr [ecx + 8] */ 16202 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300122C7: mov byte ptr [ecx + 0x1c], 0 */ 16203 esi = MEM32(edx); /* 0x300122CB: mov esi, dword ptr [edx] */ 16204 MEM32(ecx + 0x8) = esi; /* 0x300122CD: mov dword ptr [ecx + 8], esi */ 16205 esi = MEM32(edx); /* 0x300122D0: mov esi, dword ptr [edx] */ 16206 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300122D2: cmp esi, dword ptr [edi + 8] */ 16207 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16209 _flag_k = FK_CMP; 16210 if (CMP_EQ(_flag_a, _flag_b)) goto L_300122DA; /* 0x300122D5: je 0x300122da */ 16211 L_300122D7: 16212 MEM32(esi + 0x4) = ecx; /* 0x300122D7: mov dword ptr [esi + 4], ecx */ 16213 L_300122DA: 16214 esi = MEM32(ecx + 0x4); /* 0x300122DA: mov esi, dword ptr [ecx + 4] */ 16215 MEM32(edx + 0x4) = esi; /* 0x300122DD: mov dword ptr [edx + 4], esi */ 16216 esi = MEM32(edi + 0x4); /* 0x300122E0: mov esi, dword ptr [edi + 4] */ 16217 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300122E3: cmp ecx, dword ptr [esi + 4] */ 16218 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16220 _flag_k = FK_CMP; 16221 if (CMP_NE(_flag_a, _flag_b)) goto L_300122ED; /* 0x300122E6: jne 0x300122ed */ 16222 L_300122E8: 16223 MEM32(esi + 0x4) = edx; /* 0x300122E8: mov dword ptr [esi + 4], edx */ 16224 goto L_300122FB; /* 0x300122EB: jmp 0x300122fb */ 16225 L_300122ED: 16226 esi = MEM32(ecx + 0x4); /* 0x300122ED: mov esi, dword ptr [ecx + 4] */ 16227 /* cmp ecx, MEM32(esi) */ /* 0x300122F0: cmp ecx, dword ptr [esi] */ 16228 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16230 _flag_k = FK_CMP; 16231 if (CMP_NE(_flag_a, _flag_b)) goto L_300122F8; /* 0x300122F2: jne 0x300122f8 */ 16232 L_300122F4: 16233 MEM32(esi) = edx; /* 0x300122F4: mov dword ptr [esi], edx */ 16234 goto L_300122FB; /* 0x300122F6: jmp 0x300122fb */ 16235 L_300122F8: 16236 MEM32(esi + 0x8) = edx; /* 0x300122F8: mov dword ptr [esi + 8], edx */ 16237 L_300122FB: 16238 MEM32(edx) = ecx; /* 0x300122FB: mov dword ptr [edx], ecx */ 16239 MEM32(ecx + 0x4) = edx; /* 0x300122FD: mov dword ptr [ecx + 4], edx */ 16240 ecx = MEM32(eax + 0x4); /* 0x30012300: mov ecx, dword ptr [eax + 4] */ 16241 ecx = MEM32(ecx); /* 0x30012303: mov ecx, dword ptr [ecx] */ 16242 L_30012305: 16243 edx = MEM32(eax + 0x4); /* 0x30012305: mov edx, dword ptr [eax + 4] */ 16244 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x30012308: mov dl, byte ptr [edx + 0x1c] */ 16245 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3001230B: mov byte ptr [ecx + 0x1c], dl */ 16246 edx = MEM32(eax + 0x4); /* 0x3001230E: mov edx, dword ptr [eax + 4] */ 16247 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012311: mov byte ptr [edx + 0x1c], bl */ 16248 ecx = MEM32(ecx); /* 0x30012314: mov ecx, dword ptr [ecx] */ 16249 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012316: mov byte ptr [ecx + 0x1c], bl */ 16250 ecx = MEM32(eax + 0x4); /* 0x30012319: mov ecx, dword ptr [eax + 4] */ 16251 edx = MEM32(ecx); /* 0x3001231C: mov edx, dword ptr [ecx] */ 16252 esi = MEM32(edx + 0x8); /* 0x3001231E: mov esi, dword ptr [edx + 8] */ 16253 MEM32(ecx) = esi; /* 0x30012321: mov dword ptr [ecx], esi */ 16254 esi = MEM32(edx + 0x8); /* 0x30012323: mov esi, dword ptr [edx + 8] */ 16255 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012326: cmp esi, dword ptr [edi + 8] */ 16256 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16258 _flag_k = FK_CMP; 16259 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001232E; /* 0x30012329: je 0x3001232e */ 16260 L_3001232B: 16261 MEM32(esi + 0x4) = ecx; /* 0x3001232B: mov dword ptr [esi + 4], ecx */ 16262 L_3001232E: 16263 esi = MEM32(ecx + 0x4); /* 0x3001232E: mov esi, dword ptr [ecx + 4] */ 16264 MEM32(edx + 0x4) = esi; /* 0x30012331: mov dword ptr [edx + 4], esi */ 16265 esi = MEM32(edi + 0x4); /* 0x30012334: mov esi, dword ptr [edi + 4] */ 16266 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012337: cmp ecx, dword ptr [esi + 4] */ 16267 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16269 _flag_k = FK_CMP; 16270 if (CMP_NE(_flag_a, _flag_b)) goto L_30012341; /* 0x3001233A: jne 0x30012341 */ 16271 L_3001233C: 16272 MEM32(esi + 0x4) = edx; /* 0x3001233C: mov dword ptr [esi + 4], edx */ 16273 goto L_30012350; /* 0x3001233F: jmp 0x30012350 */ 16274 L_30012341: 16275 esi = MEM32(ecx + 0x4); /* 0x30012341: mov esi, dword ptr [ecx + 4] */ 16276 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012344: cmp ecx, dword ptr [esi + 8] */ 16277 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16279 _flag_k = FK_CMP; 16280 if (CMP_NE(_flag_a, _flag_b)) goto L_3001234E; /* 0x30012347: jne 0x3001234e */ 16281 L_30012349: 16282 MEM32(esi + 0x8) = edx; /* 0x30012349: mov dword ptr [esi + 8], edx */ 16283 goto L_30012350; /* 0x3001234C: jmp 0x30012350 */ 16284 L_3001234E: 16285 MEM32(esi) = edx; /* 0x3001234E: mov dword ptr [esi], edx */ 16286 L_30012350: 16287 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 16288 L_30012353: 16289 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 16290 L_30012356: 16291 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 16292 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 16293 PUSH32(esp, edx); /* 0x3001235C: push edx */ 16294 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 16295 RECOMP_FLAGS_IN(); 16296 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 16297 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 16298 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16300 esp = esp + 4; /* 0x30012368: add esp, 4 */ 16301 _flag_k = FK_ADD; 16302 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16303 eax = eax - 1; /* 0x3001236B: dec eax */ 16304 _flag_k = FK_DEC; 16305 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 16306 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 16307 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 16308 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 16309 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 16310 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 16311 esp = ebp; /* 0x30012377: mov esp, ebp */ 16312 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 16313 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 16314 RECOMP_REGS_OUT(); 16315 } 16316 16317 void sub_300121D0(void) { 16318 int _fpu_cmp = 0; 16319 uint32_t _cf = 0; 16320 int _df = 1; 16321 uint32_t _flag_k = FK_NONE; 16322 uint32_t _flag_a = 0, _flag_b = 0; 16323 uint32_t _itail_tgt = 0; 16324 RECOMP_REGS_LOCALS 16325 RECOMP_ENTER(0x300121D0u); 16326 16327 goto L_300121D0; 16328 L_30012108: 16329 /* cmp MEM8(eax + 0x1C), LO8(ebx) */ /* 0x30012108: cmp byte ptr [eax + 0x1c], bl */ 16330 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16332 _flag_k = FK_NARROW(FK_CMP, 24); 16333 if (CMP_NE(_flag_a, _flag_b)) goto L_30012356; /* 0x3001210B: jne 0x30012356 */ 16334 L_30012111: 16335 edx = MEM32(eax + 0x4); /* 0x30012111: mov edx, dword ptr [eax + 4] */ 16336 ecx = MEM32(edx); /* 0x30012114: mov ecx, dword ptr [edx] */ 16337 /* cmp eax, ecx */ /* 0x30012116: cmp eax, ecx */ 16338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 16339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16340 _flag_k = FK_CMP; 16341 if (CMP_NE(_flag_a, _flag_b)) goto L_30012188; /* 0x30012118: jne 0x30012188 */ 16342 L_3001211A: 16343 ecx = MEM32(edx + 0x8); /* 0x3001211A: mov ecx, dword ptr [edx + 8] */ 16344 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3001211D: mov dl, byte ptr [ecx + 0x1c] */ 16345 /* test LO8(edx), LO8(edx) */ /* 0x30012120: test dl, dl */ 16346 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16347 _cf = 0; 16348 _flag_k = FK_NARROW(FK_TEST, 24); 16349 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001216F; /* 0x30012122: jne 0x3001216f */ 16350 L_30012124: 16351 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012124: mov byte ptr [ecx + 0x1c], bl */ 16352 ecx = MEM32(eax + 0x4); /* 0x30012127: mov ecx, dword ptr [eax + 4] */ 16353 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3001212A: mov byte ptr [ecx + 0x1c], 0 */ 16354 ecx = MEM32(eax + 0x4); /* 0x3001212E: mov ecx, dword ptr [eax + 4] */ 16355 edx = MEM32(ecx + 0x8); /* 0x30012131: mov edx, dword ptr [ecx + 8] */ 16356 esi = MEM32(edx); /* 0x30012134: mov esi, dword ptr [edx] */ 16357 MEM32(ecx + 0x8) = esi; /* 0x30012136: mov dword ptr [ecx + 8], esi */ 16358 esi = MEM32(edx); /* 0x30012139: mov esi, dword ptr [edx] */ 16359 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001213B: cmp esi, dword ptr [edi + 8] */ 16360 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16362 _flag_k = FK_CMP; 16363 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012143; /* 0x3001213E: je 0x30012143 */ 16364 L_30012140: 16365 MEM32(esi + 0x4) = ecx; /* 0x30012140: mov dword ptr [esi + 4], ecx */ 16366 L_30012143: 16367 esi = MEM32(ecx + 0x4); /* 0x30012143: mov esi, dword ptr [ecx + 4] */ 16368 MEM32(edx + 0x4) = esi; /* 0x30012146: mov dword ptr [edx + 4], esi */ 16369 esi = MEM32(edi + 0x4); /* 0x30012149: mov esi, dword ptr [edi + 4] */ 16370 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001214C: cmp ecx, dword ptr [esi + 4] */ 16371 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16373 _flag_k = FK_CMP; 16374 if (CMP_NE(_flag_a, _flag_b)) goto L_30012156; /* 0x3001214F: jne 0x30012156 */ 16375 L_30012151: 16376 MEM32(esi + 0x4) = edx; /* 0x30012151: mov dword ptr [esi + 4], edx */ 16377 goto L_30012164; /* 0x30012154: jmp 0x30012164 */ 16378 L_30012156: 16379 esi = MEM32(ecx + 0x4); /* 0x30012156: mov esi, dword ptr [ecx + 4] */ 16380 /* cmp ecx, MEM32(esi) */ /* 0x30012159: cmp ecx, dword ptr [esi] */ 16381 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16383 _flag_k = FK_CMP; 16384 if (CMP_NE(_flag_a, _flag_b)) goto L_30012161; /* 0x3001215B: jne 0x30012161 */ 16385 L_3001215D: 16386 MEM32(esi) = edx; /* 0x3001215D: mov dword ptr [esi], edx */ 16387 goto L_30012164; /* 0x3001215F: jmp 0x30012164 */ 16388 L_30012161: 16389 MEM32(esi + 0x8) = edx; /* 0x30012161: mov dword ptr [esi + 8], edx */ 16390 L_30012164: 16391 MEM32(edx) = ecx; /* 0x30012164: mov dword ptr [edx], ecx */ 16392 MEM32(ecx + 0x4) = edx; /* 0x30012166: mov dword ptr [ecx + 4], edx */ 16393 edx = MEM32(eax + 0x4); /* 0x30012169: mov edx, dword ptr [eax + 4] */ 16394 ecx = MEM32(edx + 0x8); /* 0x3001216C: mov ecx, dword ptr [edx + 8] */ 16395 L_3001216F: 16396 edx = MEM32(ecx); /* 0x3001216F: mov edx, dword ptr [ecx] */ 16397 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x30012171: cmp byte ptr [edx + 0x1c], bl */ 16398 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16400 _flag_k = FK_NARROW(FK_CMP, 24); 16401 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012174: jne 0x3001220a */ 16402 L_3001217A: 16403 edx = MEM32(ecx + 0x8); /* 0x3001217A: mov edx, dword ptr [ecx + 8] */ 16404 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001217D: cmp byte ptr [edx + 0x1c], bl */ 16405 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16407 _flag_k = FK_NARROW(FK_CMP, 24); 16408 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012180: jne 0x3001220a */ 16409 L_30012186: 16410 goto L_300121F2; /* 0x30012186: jmp 0x300121f2 */ 16411 L_30012188: 16412 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30012188: mov dl, byte ptr [ecx + 0x1c] */ 16413 /* test LO8(edx), LO8(edx) */ /* 0x3001218B: test dl, dl */ 16414 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16415 _cf = 0; 16416 _flag_k = FK_NARROW(FK_TEST, 24); 16417 if (TEST_NZ(_flag_a, _flag_b)) goto L_300121DB; /* 0x3001218D: jne 0x300121db */ 16418 L_3001218F: 16419 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001218F: mov byte ptr [ecx + 0x1c], bl */ 16420 ecx = MEM32(eax + 0x4); /* 0x30012192: mov ecx, dword ptr [eax + 4] */ 16421 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012195: mov byte ptr [ecx + 0x1c], 0 */ 16422 ecx = MEM32(eax + 0x4); /* 0x30012199: mov ecx, dword ptr [eax + 4] */ 16423 edx = MEM32(ecx); /* 0x3001219C: mov edx, dword ptr [ecx] */ 16424 esi = MEM32(edx + 0x8); /* 0x3001219E: mov esi, dword ptr [edx + 8] */ 16425 MEM32(ecx) = esi; /* 0x300121A1: mov dword ptr [ecx], esi */ 16426 esi = MEM32(edx + 0x8); /* 0x300121A3: mov esi, dword ptr [edx + 8] */ 16427 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300121A6: cmp esi, dword ptr [edi + 8] */ 16428 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16430 _flag_k = FK_CMP; 16431 if (CMP_EQ(_flag_a, _flag_b)) goto L_300121AE; /* 0x300121A9: je 0x300121ae */ 16432 L_300121AB: 16433 MEM32(esi + 0x4) = ecx; /* 0x300121AB: mov dword ptr [esi + 4], ecx */ 16434 L_300121AE: 16435 esi = MEM32(ecx + 0x4); /* 0x300121AE: mov esi, dword ptr [ecx + 4] */ 16436 MEM32(edx + 0x4) = esi; /* 0x300121B1: mov dword ptr [edx + 4], esi */ 16437 esi = MEM32(edi + 0x4); /* 0x300121B4: mov esi, dword ptr [edi + 4] */ 16438 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300121B7: cmp ecx, dword ptr [esi + 4] */ 16439 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16441 _flag_k = FK_CMP; 16442 if (CMP_NE(_flag_a, _flag_b)) goto L_300121C1; /* 0x300121BA: jne 0x300121c1 */ 16443 L_300121BC: 16444 MEM32(esi + 0x4) = edx; /* 0x300121BC: mov dword ptr [esi + 4], edx */ 16445 goto L_300121D0; /* 0x300121BF: jmp 0x300121d0 */ 16446 L_300121C1: 16447 esi = MEM32(ecx + 0x4); /* 0x300121C1: mov esi, dword ptr [ecx + 4] */ 16448 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300121C4: cmp ecx, dword ptr [esi + 8] */ 16449 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16451 _flag_k = FK_CMP; 16452 if (CMP_NE(_flag_a, _flag_b)) goto L_300121CE; /* 0x300121C7: jne 0x300121ce */ 16453 L_300121C9: 16454 MEM32(esi + 0x8) = edx; /* 0x300121C9: mov dword ptr [esi + 8], edx */ 16455 goto L_300121D0; /* 0x300121CC: jmp 0x300121d0 */ 16456 L_300121CE: 16457 MEM32(esi) = edx; /* 0x300121CE: mov dword ptr [esi], edx */ 16458 L_300121D0: 16459 MEM32(edx + 0x8) = ecx; /* 0x300121D0: mov dword ptr [edx + 8], ecx */ 16460 MEM32(ecx + 0x4) = edx; /* 0x300121D3: mov dword ptr [ecx + 4], edx */ 16461 edx = MEM32(eax + 0x4); /* 0x300121D6: mov edx, dword ptr [eax + 4] */ 16462 ecx = MEM32(edx); /* 0x300121D9: mov ecx, dword ptr [edx] */ 16463 L_300121DB: 16464 edx = MEM32(ecx + 0x8); /* 0x300121DB: mov edx, dword ptr [ecx + 8] */ 16465 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121DE: cmp byte ptr [edx + 0x1c], bl */ 16466 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16468 _flag_k = FK_NARROW(FK_CMP, 24); 16469 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121E1: jne 0x300122b7 */ 16470 L_300121E7: 16471 edx = MEM32(ecx); /* 0x300121E7: mov edx, dword ptr [ecx] */ 16472 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121E9: cmp byte ptr [edx + 0x1c], bl */ 16473 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16475 _flag_k = FK_NARROW(FK_CMP, 24); 16476 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121EC: jne 0x300122b7 */ 16477 L_300121F2: 16478 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300121F2: mov byte ptr [ecx + 0x1c], 0 */ 16479 ecx = MEM32(edi + 0x4); /* 0x300121F6: mov ecx, dword ptr [edi + 4] */ 16480 eax = MEM32(eax + 0x4); /* 0x300121F9: mov eax, dword ptr [eax + 4] */ 16481 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300121FC: cmp eax, dword ptr [ecx + 4] */ 16482 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 16483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16484 _flag_k = FK_CMP; 16485 RECOMP_BACKEDGE(); 16486 if (CMP_NE(_flag_a, _flag_b)) goto L_30012108; /* 0x300121FF: jne 0x30012108 */ 16487 L_30012205: 16488 goto L_30012356; /* 0x30012205: jmp 0x30012356 */ 16489 L_3001220A: 16490 edx = MEM32(ecx + 0x8); /* 0x3001220A: mov edx, dword ptr [ecx + 8] */ 16491 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001220D: cmp byte ptr [edx + 0x1c], bl */ 16492 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16494 _flag_k = FK_NARROW(FK_CMP, 24); 16495 if (CMP_NE(_flag_a, _flag_b)) goto L_3001225B; /* 0x30012210: jne 0x3001225b */ 16496 L_30012212: 16497 edx = MEM32(ecx); /* 0x30012212: mov edx, dword ptr [ecx] */ 16498 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012214: mov byte ptr [edx + 0x1c], bl */ 16499 edx = MEM32(ecx); /* 0x30012217: mov edx, dword ptr [ecx] */ 16500 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012219: mov byte ptr [ecx + 0x1c], 0 */ 16501 esi = MEM32(edx + 0x8); /* 0x3001221D: mov esi, dword ptr [edx + 8] */ 16502 MEM32(ecx) = esi; /* 0x30012220: mov dword ptr [ecx], esi */ 16503 esi = MEM32(edx + 0x8); /* 0x30012222: mov esi, dword ptr [edx + 8] */ 16504 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012225: cmp esi, dword ptr [edi + 8] */ 16505 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16507 _flag_k = FK_CMP; 16508 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001222D; /* 0x30012228: je 0x3001222d */ 16509 L_3001222A: 16510 MEM32(esi + 0x4) = ecx; /* 0x3001222A: mov dword ptr [esi + 4], ecx */ 16511 L_3001222D: 16512 esi = MEM32(ecx + 0x4); /* 0x3001222D: mov esi, dword ptr [ecx + 4] */ 16513 MEM32(edx + 0x4) = esi; /* 0x30012230: mov dword ptr [edx + 4], esi */ 16514 esi = MEM32(edi + 0x4); /* 0x30012233: mov esi, dword ptr [edi + 4] */ 16515 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012236: cmp ecx, dword ptr [esi + 4] */ 16516 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16518 _flag_k = FK_CMP; 16519 if (CMP_NE(_flag_a, _flag_b)) goto L_30012240; /* 0x30012239: jne 0x30012240 */ 16520 L_3001223B: 16521 MEM32(esi + 0x4) = edx; /* 0x3001223B: mov dword ptr [esi + 4], edx */ 16522 goto L_3001224F; /* 0x3001223E: jmp 0x3001224f */ 16523 L_30012240: 16524 esi = MEM32(ecx + 0x4); /* 0x30012240: mov esi, dword ptr [ecx + 4] */ 16525 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012243: cmp ecx, dword ptr [esi + 8] */ 16526 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16528 _flag_k = FK_CMP; 16529 if (CMP_NE(_flag_a, _flag_b)) goto L_3001224D; /* 0x30012246: jne 0x3001224d */ 16530 L_30012248: 16531 MEM32(esi + 0x8) = edx; /* 0x30012248: mov dword ptr [esi + 8], edx */ 16532 goto L_3001224F; /* 0x3001224B: jmp 0x3001224f */ 16533 L_3001224D: 16534 MEM32(esi) = edx; /* 0x3001224D: mov dword ptr [esi], edx */ 16535 L_3001224F: 16536 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 16537 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 16538 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 16539 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 16540 L_3001225B: 16541 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 16542 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 16543 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 16544 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 16545 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 16546 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 16547 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 16548 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 16549 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 16550 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 16551 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 16552 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 16553 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 16554 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16556 _flag_k = FK_CMP; 16557 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 16558 L_30012282: 16559 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 16560 L_30012285: 16561 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 16562 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 16563 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 16564 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 16565 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16567 _flag_k = FK_CMP; 16568 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 16569 L_30012293: 16570 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 16571 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 16572 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 16573 L_3001229D: 16574 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 16575 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 16576 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16578 _flag_k = FK_CMP; 16579 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 16580 L_300122A4: 16581 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 16582 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 16583 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 16584 L_300122AD: 16585 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 16586 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 16587 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 16588 L_300122B7: 16589 edx = MEM32(ecx); /* 0x300122B7: mov edx, dword ptr [ecx] */ 16590 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300122B9: cmp byte ptr [edx + 0x1c], bl */ 16591 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16593 _flag_k = FK_NARROW(FK_CMP, 24); 16594 if (CMP_NE(_flag_a, _flag_b)) goto L_30012305; /* 0x300122BC: jne 0x30012305 */ 16595 L_300122BE: 16596 edx = MEM32(ecx + 0x8); /* 0x300122BE: mov edx, dword ptr [ecx + 8] */ 16597 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x300122C1: mov byte ptr [edx + 0x1c], bl */ 16598 edx = MEM32(ecx + 0x8); /* 0x300122C4: mov edx, dword ptr [ecx + 8] */ 16599 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300122C7: mov byte ptr [ecx + 0x1c], 0 */ 16600 esi = MEM32(edx); /* 0x300122CB: mov esi, dword ptr [edx] */ 16601 MEM32(ecx + 0x8) = esi; /* 0x300122CD: mov dword ptr [ecx + 8], esi */ 16602 esi = MEM32(edx); /* 0x300122D0: mov esi, dword ptr [edx] */ 16603 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300122D2: cmp esi, dword ptr [edi + 8] */ 16604 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16606 _flag_k = FK_CMP; 16607 if (CMP_EQ(_flag_a, _flag_b)) goto L_300122DA; /* 0x300122D5: je 0x300122da */ 16608 L_300122D7: 16609 MEM32(esi + 0x4) = ecx; /* 0x300122D7: mov dword ptr [esi + 4], ecx */ 16610 L_300122DA: 16611 esi = MEM32(ecx + 0x4); /* 0x300122DA: mov esi, dword ptr [ecx + 4] */ 16612 MEM32(edx + 0x4) = esi; /* 0x300122DD: mov dword ptr [edx + 4], esi */ 16613 esi = MEM32(edi + 0x4); /* 0x300122E0: mov esi, dword ptr [edi + 4] */ 16614 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300122E3: cmp ecx, dword ptr [esi + 4] */ 16615 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16617 _flag_k = FK_CMP; 16618 if (CMP_NE(_flag_a, _flag_b)) goto L_300122ED; /* 0x300122E6: jne 0x300122ed */ 16619 L_300122E8: 16620 MEM32(esi + 0x4) = edx; /* 0x300122E8: mov dword ptr [esi + 4], edx */ 16621 goto L_300122FB; /* 0x300122EB: jmp 0x300122fb */ 16622 L_300122ED: 16623 esi = MEM32(ecx + 0x4); /* 0x300122ED: mov esi, dword ptr [ecx + 4] */ 16624 /* cmp ecx, MEM32(esi) */ /* 0x300122F0: cmp ecx, dword ptr [esi] */ 16625 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16627 _flag_k = FK_CMP; 16628 if (CMP_NE(_flag_a, _flag_b)) goto L_300122F8; /* 0x300122F2: jne 0x300122f8 */ 16629 L_300122F4: 16630 MEM32(esi) = edx; /* 0x300122F4: mov dword ptr [esi], edx */ 16631 goto L_300122FB; /* 0x300122F6: jmp 0x300122fb */ 16632 L_300122F8: 16633 MEM32(esi + 0x8) = edx; /* 0x300122F8: mov dword ptr [esi + 8], edx */ 16634 L_300122FB: 16635 MEM32(edx) = ecx; /* 0x300122FB: mov dword ptr [edx], ecx */ 16636 MEM32(ecx + 0x4) = edx; /* 0x300122FD: mov dword ptr [ecx + 4], edx */ 16637 ecx = MEM32(eax + 0x4); /* 0x30012300: mov ecx, dword ptr [eax + 4] */ 16638 ecx = MEM32(ecx); /* 0x30012303: mov ecx, dword ptr [ecx] */ 16639 L_30012305: 16640 edx = MEM32(eax + 0x4); /* 0x30012305: mov edx, dword ptr [eax + 4] */ 16641 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x30012308: mov dl, byte ptr [edx + 0x1c] */ 16642 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3001230B: mov byte ptr [ecx + 0x1c], dl */ 16643 edx = MEM32(eax + 0x4); /* 0x3001230E: mov edx, dword ptr [eax + 4] */ 16644 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012311: mov byte ptr [edx + 0x1c], bl */ 16645 ecx = MEM32(ecx); /* 0x30012314: mov ecx, dword ptr [ecx] */ 16646 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012316: mov byte ptr [ecx + 0x1c], bl */ 16647 ecx = MEM32(eax + 0x4); /* 0x30012319: mov ecx, dword ptr [eax + 4] */ 16648 edx = MEM32(ecx); /* 0x3001231C: mov edx, dword ptr [ecx] */ 16649 esi = MEM32(edx + 0x8); /* 0x3001231E: mov esi, dword ptr [edx + 8] */ 16650 MEM32(ecx) = esi; /* 0x30012321: mov dword ptr [ecx], esi */ 16651 esi = MEM32(edx + 0x8); /* 0x30012323: mov esi, dword ptr [edx + 8] */ 16652 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012326: cmp esi, dword ptr [edi + 8] */ 16653 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16655 _flag_k = FK_CMP; 16656 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001232E; /* 0x30012329: je 0x3001232e */ 16657 L_3001232B: 16658 MEM32(esi + 0x4) = ecx; /* 0x3001232B: mov dword ptr [esi + 4], ecx */ 16659 L_3001232E: 16660 esi = MEM32(ecx + 0x4); /* 0x3001232E: mov esi, dword ptr [ecx + 4] */ 16661 MEM32(edx + 0x4) = esi; /* 0x30012331: mov dword ptr [edx + 4], esi */ 16662 esi = MEM32(edi + 0x4); /* 0x30012334: mov esi, dword ptr [edi + 4] */ 16663 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012337: cmp ecx, dword ptr [esi + 4] */ 16664 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16666 _flag_k = FK_CMP; 16667 if (CMP_NE(_flag_a, _flag_b)) goto L_30012341; /* 0x3001233A: jne 0x30012341 */ 16668 L_3001233C: 16669 MEM32(esi + 0x4) = edx; /* 0x3001233C: mov dword ptr [esi + 4], edx */ 16670 goto L_30012350; /* 0x3001233F: jmp 0x30012350 */ 16671 L_30012341: 16672 esi = MEM32(ecx + 0x4); /* 0x30012341: mov esi, dword ptr [ecx + 4] */ 16673 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012344: cmp ecx, dword ptr [esi + 8] */ 16674 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16676 _flag_k = FK_CMP; 16677 if (CMP_NE(_flag_a, _flag_b)) goto L_3001234E; /* 0x30012347: jne 0x3001234e */ 16678 L_30012349: 16679 MEM32(esi + 0x8) = edx; /* 0x30012349: mov dword ptr [esi + 8], edx */ 16680 goto L_30012350; /* 0x3001234C: jmp 0x30012350 */ 16681 L_3001234E: 16682 MEM32(esi) = edx; /* 0x3001234E: mov dword ptr [esi], edx */ 16683 L_30012350: 16684 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 16685 L_30012353: 16686 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 16687 L_30012356: 16688 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 16689 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 16690 PUSH32(esp, edx); /* 0x3001235C: push edx */ 16691 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 16692 RECOMP_FLAGS_IN(); 16693 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 16694 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 16695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16697 esp = esp + 4; /* 0x30012368: add esp, 4 */ 16698 _flag_k = FK_ADD; 16699 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16700 eax = eax - 1; /* 0x3001236B: dec eax */ 16701 _flag_k = FK_DEC; 16702 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 16703 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 16704 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 16705 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 16706 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 16707 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 16708 esp = ebp; /* 0x30012377: mov esp, ebp */ 16709 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 16710 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 16711 RECOMP_REGS_OUT(); 16712 } 16713 16714 void sub_300121DB(void) { 16715 int _fpu_cmp = 0; 16716 uint32_t _cf = 0; 16717 int _df = 1; 16718 uint32_t _flag_k = FK_NONE; 16719 uint32_t _flag_a = 0, _flag_b = 0; 16720 uint32_t _itail_tgt = 0; 16721 RECOMP_REGS_LOCALS 16722 RECOMP_ENTER(0x300121DBu); 16723 16724 goto L_300121DB; 16725 L_30012108: 16726 /* cmp MEM8(eax + 0x1C), LO8(ebx) */ /* 0x30012108: cmp byte ptr [eax + 0x1c], bl */ 16727 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16729 _flag_k = FK_NARROW(FK_CMP, 24); 16730 if (CMP_NE(_flag_a, _flag_b)) goto L_30012356; /* 0x3001210B: jne 0x30012356 */ 16731 L_30012111: 16732 edx = MEM32(eax + 0x4); /* 0x30012111: mov edx, dword ptr [eax + 4] */ 16733 ecx = MEM32(edx); /* 0x30012114: mov ecx, dword ptr [edx] */ 16734 /* cmp eax, ecx */ /* 0x30012116: cmp eax, ecx */ 16735 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 16736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16737 _flag_k = FK_CMP; 16738 if (CMP_NE(_flag_a, _flag_b)) goto L_30012188; /* 0x30012118: jne 0x30012188 */ 16739 L_3001211A: 16740 ecx = MEM32(edx + 0x8); /* 0x3001211A: mov ecx, dword ptr [edx + 8] */ 16741 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3001211D: mov dl, byte ptr [ecx + 0x1c] */ 16742 /* test LO8(edx), LO8(edx) */ /* 0x30012120: test dl, dl */ 16743 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16744 _cf = 0; 16745 _flag_k = FK_NARROW(FK_TEST, 24); 16746 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001216F; /* 0x30012122: jne 0x3001216f */ 16747 L_30012124: 16748 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012124: mov byte ptr [ecx + 0x1c], bl */ 16749 ecx = MEM32(eax + 0x4); /* 0x30012127: mov ecx, dword ptr [eax + 4] */ 16750 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3001212A: mov byte ptr [ecx + 0x1c], 0 */ 16751 ecx = MEM32(eax + 0x4); /* 0x3001212E: mov ecx, dword ptr [eax + 4] */ 16752 edx = MEM32(ecx + 0x8); /* 0x30012131: mov edx, dword ptr [ecx + 8] */ 16753 esi = MEM32(edx); /* 0x30012134: mov esi, dword ptr [edx] */ 16754 MEM32(ecx + 0x8) = esi; /* 0x30012136: mov dword ptr [ecx + 8], esi */ 16755 esi = MEM32(edx); /* 0x30012139: mov esi, dword ptr [edx] */ 16756 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001213B: cmp esi, dword ptr [edi + 8] */ 16757 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16759 _flag_k = FK_CMP; 16760 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012143; /* 0x3001213E: je 0x30012143 */ 16761 L_30012140: 16762 MEM32(esi + 0x4) = ecx; /* 0x30012140: mov dword ptr [esi + 4], ecx */ 16763 L_30012143: 16764 esi = MEM32(ecx + 0x4); /* 0x30012143: mov esi, dword ptr [ecx + 4] */ 16765 MEM32(edx + 0x4) = esi; /* 0x30012146: mov dword ptr [edx + 4], esi */ 16766 esi = MEM32(edi + 0x4); /* 0x30012149: mov esi, dword ptr [edi + 4] */ 16767 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001214C: cmp ecx, dword ptr [esi + 4] */ 16768 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16770 _flag_k = FK_CMP; 16771 if (CMP_NE(_flag_a, _flag_b)) goto L_30012156; /* 0x3001214F: jne 0x30012156 */ 16772 L_30012151: 16773 MEM32(esi + 0x4) = edx; /* 0x30012151: mov dword ptr [esi + 4], edx */ 16774 goto L_30012164; /* 0x30012154: jmp 0x30012164 */ 16775 L_30012156: 16776 esi = MEM32(ecx + 0x4); /* 0x30012156: mov esi, dword ptr [ecx + 4] */ 16777 /* cmp ecx, MEM32(esi) */ /* 0x30012159: cmp ecx, dword ptr [esi] */ 16778 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16780 _flag_k = FK_CMP; 16781 if (CMP_NE(_flag_a, _flag_b)) goto L_30012161; /* 0x3001215B: jne 0x30012161 */ 16782 L_3001215D: 16783 MEM32(esi) = edx; /* 0x3001215D: mov dword ptr [esi], edx */ 16784 goto L_30012164; /* 0x3001215F: jmp 0x30012164 */ 16785 L_30012161: 16786 MEM32(esi + 0x8) = edx; /* 0x30012161: mov dword ptr [esi + 8], edx */ 16787 L_30012164: 16788 MEM32(edx) = ecx; /* 0x30012164: mov dword ptr [edx], ecx */ 16789 MEM32(ecx + 0x4) = edx; /* 0x30012166: mov dword ptr [ecx + 4], edx */ 16790 edx = MEM32(eax + 0x4); /* 0x30012169: mov edx, dword ptr [eax + 4] */ 16791 ecx = MEM32(edx + 0x8); /* 0x3001216C: mov ecx, dword ptr [edx + 8] */ 16792 L_3001216F: 16793 edx = MEM32(ecx); /* 0x3001216F: mov edx, dword ptr [ecx] */ 16794 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x30012171: cmp byte ptr [edx + 0x1c], bl */ 16795 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16797 _flag_k = FK_NARROW(FK_CMP, 24); 16798 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012174: jne 0x3001220a */ 16799 L_3001217A: 16800 edx = MEM32(ecx + 0x8); /* 0x3001217A: mov edx, dword ptr [ecx + 8] */ 16801 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001217D: cmp byte ptr [edx + 0x1c], bl */ 16802 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16804 _flag_k = FK_NARROW(FK_CMP, 24); 16805 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012180: jne 0x3001220a */ 16806 L_30012186: 16807 goto L_300121F2; /* 0x30012186: jmp 0x300121f2 */ 16808 L_30012188: 16809 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30012188: mov dl, byte ptr [ecx + 0x1c] */ 16810 /* test LO8(edx), LO8(edx) */ /* 0x3001218B: test dl, dl */ 16811 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16812 _cf = 0; 16813 _flag_k = FK_NARROW(FK_TEST, 24); 16814 if (TEST_NZ(_flag_a, _flag_b)) goto L_300121DB; /* 0x3001218D: jne 0x300121db */ 16815 L_3001218F: 16816 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001218F: mov byte ptr [ecx + 0x1c], bl */ 16817 ecx = MEM32(eax + 0x4); /* 0x30012192: mov ecx, dword ptr [eax + 4] */ 16818 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012195: mov byte ptr [ecx + 0x1c], 0 */ 16819 ecx = MEM32(eax + 0x4); /* 0x30012199: mov ecx, dword ptr [eax + 4] */ 16820 edx = MEM32(ecx); /* 0x3001219C: mov edx, dword ptr [ecx] */ 16821 esi = MEM32(edx + 0x8); /* 0x3001219E: mov esi, dword ptr [edx + 8] */ 16822 MEM32(ecx) = esi; /* 0x300121A1: mov dword ptr [ecx], esi */ 16823 esi = MEM32(edx + 0x8); /* 0x300121A3: mov esi, dword ptr [edx + 8] */ 16824 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300121A6: cmp esi, dword ptr [edi + 8] */ 16825 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16827 _flag_k = FK_CMP; 16828 if (CMP_EQ(_flag_a, _flag_b)) goto L_300121AE; /* 0x300121A9: je 0x300121ae */ 16829 L_300121AB: 16830 MEM32(esi + 0x4) = ecx; /* 0x300121AB: mov dword ptr [esi + 4], ecx */ 16831 L_300121AE: 16832 esi = MEM32(ecx + 0x4); /* 0x300121AE: mov esi, dword ptr [ecx + 4] */ 16833 MEM32(edx + 0x4) = esi; /* 0x300121B1: mov dword ptr [edx + 4], esi */ 16834 esi = MEM32(edi + 0x4); /* 0x300121B4: mov esi, dword ptr [edi + 4] */ 16835 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300121B7: cmp ecx, dword ptr [esi + 4] */ 16836 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16838 _flag_k = FK_CMP; 16839 if (CMP_NE(_flag_a, _flag_b)) goto L_300121C1; /* 0x300121BA: jne 0x300121c1 */ 16840 L_300121BC: 16841 MEM32(esi + 0x4) = edx; /* 0x300121BC: mov dword ptr [esi + 4], edx */ 16842 goto L_300121D0; /* 0x300121BF: jmp 0x300121d0 */ 16843 L_300121C1: 16844 esi = MEM32(ecx + 0x4); /* 0x300121C1: mov esi, dword ptr [ecx + 4] */ 16845 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300121C4: cmp ecx, dword ptr [esi + 8] */ 16846 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16848 _flag_k = FK_CMP; 16849 if (CMP_NE(_flag_a, _flag_b)) goto L_300121CE; /* 0x300121C7: jne 0x300121ce */ 16850 L_300121C9: 16851 MEM32(esi + 0x8) = edx; /* 0x300121C9: mov dword ptr [esi + 8], edx */ 16852 goto L_300121D0; /* 0x300121CC: jmp 0x300121d0 */ 16853 L_300121CE: 16854 MEM32(esi) = edx; /* 0x300121CE: mov dword ptr [esi], edx */ 16855 L_300121D0: 16856 MEM32(edx + 0x8) = ecx; /* 0x300121D0: mov dword ptr [edx + 8], ecx */ 16857 MEM32(ecx + 0x4) = edx; /* 0x300121D3: mov dword ptr [ecx + 4], edx */ 16858 edx = MEM32(eax + 0x4); /* 0x300121D6: mov edx, dword ptr [eax + 4] */ 16859 ecx = MEM32(edx); /* 0x300121D9: mov ecx, dword ptr [edx] */ 16860 L_300121DB: 16861 edx = MEM32(ecx + 0x8); /* 0x300121DB: mov edx, dword ptr [ecx + 8] */ 16862 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121DE: cmp byte ptr [edx + 0x1c], bl */ 16863 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16865 _flag_k = FK_NARROW(FK_CMP, 24); 16866 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121E1: jne 0x300122b7 */ 16867 L_300121E7: 16868 edx = MEM32(ecx); /* 0x300121E7: mov edx, dword ptr [ecx] */ 16869 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121E9: cmp byte ptr [edx + 0x1c], bl */ 16870 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16872 _flag_k = FK_NARROW(FK_CMP, 24); 16873 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121EC: jne 0x300122b7 */ 16874 L_300121F2: 16875 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300121F2: mov byte ptr [ecx + 0x1c], 0 */ 16876 ecx = MEM32(edi + 0x4); /* 0x300121F6: mov ecx, dword ptr [edi + 4] */ 16877 eax = MEM32(eax + 0x4); /* 0x300121F9: mov eax, dword ptr [eax + 4] */ 16878 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300121FC: cmp eax, dword ptr [ecx + 4] */ 16879 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 16880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16881 _flag_k = FK_CMP; 16882 RECOMP_BACKEDGE(); 16883 if (CMP_NE(_flag_a, _flag_b)) goto L_30012108; /* 0x300121FF: jne 0x30012108 */ 16884 L_30012205: 16885 goto L_30012356; /* 0x30012205: jmp 0x30012356 */ 16886 L_3001220A: 16887 edx = MEM32(ecx + 0x8); /* 0x3001220A: mov edx, dword ptr [ecx + 8] */ 16888 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001220D: cmp byte ptr [edx + 0x1c], bl */ 16889 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16891 _flag_k = FK_NARROW(FK_CMP, 24); 16892 if (CMP_NE(_flag_a, _flag_b)) goto L_3001225B; /* 0x30012210: jne 0x3001225b */ 16893 L_30012212: 16894 edx = MEM32(ecx); /* 0x30012212: mov edx, dword ptr [ecx] */ 16895 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012214: mov byte ptr [edx + 0x1c], bl */ 16896 edx = MEM32(ecx); /* 0x30012217: mov edx, dword ptr [ecx] */ 16897 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012219: mov byte ptr [ecx + 0x1c], 0 */ 16898 esi = MEM32(edx + 0x8); /* 0x3001221D: mov esi, dword ptr [edx + 8] */ 16899 MEM32(ecx) = esi; /* 0x30012220: mov dword ptr [ecx], esi */ 16900 esi = MEM32(edx + 0x8); /* 0x30012222: mov esi, dword ptr [edx + 8] */ 16901 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012225: cmp esi, dword ptr [edi + 8] */ 16902 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16904 _flag_k = FK_CMP; 16905 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001222D; /* 0x30012228: je 0x3001222d */ 16906 L_3001222A: 16907 MEM32(esi + 0x4) = ecx; /* 0x3001222A: mov dword ptr [esi + 4], ecx */ 16908 L_3001222D: 16909 esi = MEM32(ecx + 0x4); /* 0x3001222D: mov esi, dword ptr [ecx + 4] */ 16910 MEM32(edx + 0x4) = esi; /* 0x30012230: mov dword ptr [edx + 4], esi */ 16911 esi = MEM32(edi + 0x4); /* 0x30012233: mov esi, dword ptr [edi + 4] */ 16912 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012236: cmp ecx, dword ptr [esi + 4] */ 16913 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16915 _flag_k = FK_CMP; 16916 if (CMP_NE(_flag_a, _flag_b)) goto L_30012240; /* 0x30012239: jne 0x30012240 */ 16917 L_3001223B: 16918 MEM32(esi + 0x4) = edx; /* 0x3001223B: mov dword ptr [esi + 4], edx */ 16919 goto L_3001224F; /* 0x3001223E: jmp 0x3001224f */ 16920 L_30012240: 16921 esi = MEM32(ecx + 0x4); /* 0x30012240: mov esi, dword ptr [ecx + 4] */ 16922 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012243: cmp ecx, dword ptr [esi + 8] */ 16923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16925 _flag_k = FK_CMP; 16926 if (CMP_NE(_flag_a, _flag_b)) goto L_3001224D; /* 0x30012246: jne 0x3001224d */ 16927 L_30012248: 16928 MEM32(esi + 0x8) = edx; /* 0x30012248: mov dword ptr [esi + 8], edx */ 16929 goto L_3001224F; /* 0x3001224B: jmp 0x3001224f */ 16930 L_3001224D: 16931 MEM32(esi) = edx; /* 0x3001224D: mov dword ptr [esi], edx */ 16932 L_3001224F: 16933 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 16934 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 16935 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 16936 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 16937 L_3001225B: 16938 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 16939 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 16940 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 16941 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 16942 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 16943 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 16944 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 16945 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 16946 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 16947 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 16948 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 16949 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 16950 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 16951 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16953 _flag_k = FK_CMP; 16954 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 16955 L_30012282: 16956 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 16957 L_30012285: 16958 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 16959 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 16960 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 16961 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 16962 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 16963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16964 _flag_k = FK_CMP; 16965 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 16966 L_30012293: 16967 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 16968 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 16969 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 16970 L_3001229D: 16971 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 16972 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 16973 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 16974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16975 _flag_k = FK_CMP; 16976 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 16977 L_300122A4: 16978 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 16979 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 16980 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 16981 L_300122AD: 16982 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 16983 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 16984 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 16985 L_300122B7: 16986 edx = MEM32(ecx); /* 0x300122B7: mov edx, dword ptr [ecx] */ 16987 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300122B9: cmp byte ptr [edx + 0x1c], bl */ 16988 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16990 _flag_k = FK_NARROW(FK_CMP, 24); 16991 if (CMP_NE(_flag_a, _flag_b)) goto L_30012305; /* 0x300122BC: jne 0x30012305 */ 16992 L_300122BE: 16993 edx = MEM32(ecx + 0x8); /* 0x300122BE: mov edx, dword ptr [ecx + 8] */ 16994 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x300122C1: mov byte ptr [edx + 0x1c], bl */ 16995 edx = MEM32(ecx + 0x8); /* 0x300122C4: mov edx, dword ptr [ecx + 8] */ 16996 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300122C7: mov byte ptr [ecx + 0x1c], 0 */ 16997 esi = MEM32(edx); /* 0x300122CB: mov esi, dword ptr [edx] */ 16998 MEM32(ecx + 0x8) = esi; /* 0x300122CD: mov dword ptr [ecx + 8], esi */ 16999 esi = MEM32(edx); /* 0x300122D0: mov esi, dword ptr [edx] */ 17000 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300122D2: cmp esi, dword ptr [edi + 8] */ 17001 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17003 _flag_k = FK_CMP; 17004 if (CMP_EQ(_flag_a, _flag_b)) goto L_300122DA; /* 0x300122D5: je 0x300122da */ 17005 L_300122D7: 17006 MEM32(esi + 0x4) = ecx; /* 0x300122D7: mov dword ptr [esi + 4], ecx */ 17007 L_300122DA: 17008 esi = MEM32(ecx + 0x4); /* 0x300122DA: mov esi, dword ptr [ecx + 4] */ 17009 MEM32(edx + 0x4) = esi; /* 0x300122DD: mov dword ptr [edx + 4], esi */ 17010 esi = MEM32(edi + 0x4); /* 0x300122E0: mov esi, dword ptr [edi + 4] */ 17011 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300122E3: cmp ecx, dword ptr [esi + 4] */ 17012 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17014 _flag_k = FK_CMP; 17015 if (CMP_NE(_flag_a, _flag_b)) goto L_300122ED; /* 0x300122E6: jne 0x300122ed */ 17016 L_300122E8: 17017 MEM32(esi + 0x4) = edx; /* 0x300122E8: mov dword ptr [esi + 4], edx */ 17018 goto L_300122FB; /* 0x300122EB: jmp 0x300122fb */ 17019 L_300122ED: 17020 esi = MEM32(ecx + 0x4); /* 0x300122ED: mov esi, dword ptr [ecx + 4] */ 17021 /* cmp ecx, MEM32(esi) */ /* 0x300122F0: cmp ecx, dword ptr [esi] */ 17022 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17024 _flag_k = FK_CMP; 17025 if (CMP_NE(_flag_a, _flag_b)) goto L_300122F8; /* 0x300122F2: jne 0x300122f8 */ 17026 L_300122F4: 17027 MEM32(esi) = edx; /* 0x300122F4: mov dword ptr [esi], edx */ 17028 goto L_300122FB; /* 0x300122F6: jmp 0x300122fb */ 17029 L_300122F8: 17030 MEM32(esi + 0x8) = edx; /* 0x300122F8: mov dword ptr [esi + 8], edx */ 17031 L_300122FB: 17032 MEM32(edx) = ecx; /* 0x300122FB: mov dword ptr [edx], ecx */ 17033 MEM32(ecx + 0x4) = edx; /* 0x300122FD: mov dword ptr [ecx + 4], edx */ 17034 ecx = MEM32(eax + 0x4); /* 0x30012300: mov ecx, dword ptr [eax + 4] */ 17035 ecx = MEM32(ecx); /* 0x30012303: mov ecx, dword ptr [ecx] */ 17036 L_30012305: 17037 edx = MEM32(eax + 0x4); /* 0x30012305: mov edx, dword ptr [eax + 4] */ 17038 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x30012308: mov dl, byte ptr [edx + 0x1c] */ 17039 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3001230B: mov byte ptr [ecx + 0x1c], dl */ 17040 edx = MEM32(eax + 0x4); /* 0x3001230E: mov edx, dword ptr [eax + 4] */ 17041 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012311: mov byte ptr [edx + 0x1c], bl */ 17042 ecx = MEM32(ecx); /* 0x30012314: mov ecx, dword ptr [ecx] */ 17043 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012316: mov byte ptr [ecx + 0x1c], bl */ 17044 ecx = MEM32(eax + 0x4); /* 0x30012319: mov ecx, dword ptr [eax + 4] */ 17045 edx = MEM32(ecx); /* 0x3001231C: mov edx, dword ptr [ecx] */ 17046 esi = MEM32(edx + 0x8); /* 0x3001231E: mov esi, dword ptr [edx + 8] */ 17047 MEM32(ecx) = esi; /* 0x30012321: mov dword ptr [ecx], esi */ 17048 esi = MEM32(edx + 0x8); /* 0x30012323: mov esi, dword ptr [edx + 8] */ 17049 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012326: cmp esi, dword ptr [edi + 8] */ 17050 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17052 _flag_k = FK_CMP; 17053 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001232E; /* 0x30012329: je 0x3001232e */ 17054 L_3001232B: 17055 MEM32(esi + 0x4) = ecx; /* 0x3001232B: mov dword ptr [esi + 4], ecx */ 17056 L_3001232E: 17057 esi = MEM32(ecx + 0x4); /* 0x3001232E: mov esi, dword ptr [ecx + 4] */ 17058 MEM32(edx + 0x4) = esi; /* 0x30012331: mov dword ptr [edx + 4], esi */ 17059 esi = MEM32(edi + 0x4); /* 0x30012334: mov esi, dword ptr [edi + 4] */ 17060 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012337: cmp ecx, dword ptr [esi + 4] */ 17061 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17063 _flag_k = FK_CMP; 17064 if (CMP_NE(_flag_a, _flag_b)) goto L_30012341; /* 0x3001233A: jne 0x30012341 */ 17065 L_3001233C: 17066 MEM32(esi + 0x4) = edx; /* 0x3001233C: mov dword ptr [esi + 4], edx */ 17067 goto L_30012350; /* 0x3001233F: jmp 0x30012350 */ 17068 L_30012341: 17069 esi = MEM32(ecx + 0x4); /* 0x30012341: mov esi, dword ptr [ecx + 4] */ 17070 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012344: cmp ecx, dword ptr [esi + 8] */ 17071 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17073 _flag_k = FK_CMP; 17074 if (CMP_NE(_flag_a, _flag_b)) goto L_3001234E; /* 0x30012347: jne 0x3001234e */ 17075 L_30012349: 17076 MEM32(esi + 0x8) = edx; /* 0x30012349: mov dword ptr [esi + 8], edx */ 17077 goto L_30012350; /* 0x3001234C: jmp 0x30012350 */ 17078 L_3001234E: 17079 MEM32(esi) = edx; /* 0x3001234E: mov dword ptr [esi], edx */ 17080 L_30012350: 17081 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 17082 L_30012353: 17083 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 17084 L_30012356: 17085 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 17086 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 17087 PUSH32(esp, edx); /* 0x3001235C: push edx */ 17088 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 17089 RECOMP_FLAGS_IN(); 17090 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 17091 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 17092 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17093 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17094 esp = esp + 4; /* 0x30012368: add esp, 4 */ 17095 _flag_k = FK_ADD; 17096 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17097 eax = eax - 1; /* 0x3001236B: dec eax */ 17098 _flag_k = FK_DEC; 17099 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 17100 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 17101 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 17102 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 17103 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 17104 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 17105 esp = ebp; /* 0x30012377: mov esp, ebp */ 17106 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 17107 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 17108 RECOMP_REGS_OUT(); 17109 } 17110 17111 void sub_300121F2(void) { 17112 int _fpu_cmp = 0; 17113 uint32_t _cf = 0; 17114 int _df = 1; 17115 uint32_t _flag_k = FK_NONE; 17116 uint32_t _flag_a = 0, _flag_b = 0; 17117 uint32_t _itail_tgt = 0; 17118 RECOMP_REGS_LOCALS 17119 RECOMP_ENTER(0x300121F2u); 17120 17121 goto L_300121F2; 17122 L_30012108: 17123 /* cmp MEM8(eax + 0x1C), LO8(ebx) */ /* 0x30012108: cmp byte ptr [eax + 0x1c], bl */ 17124 _flag_a = (uint32_t)(MEM8(eax + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17126 _flag_k = FK_NARROW(FK_CMP, 24); 17127 if (CMP_NE(_flag_a, _flag_b)) goto L_30012356; /* 0x3001210B: jne 0x30012356 */ 17128 L_30012111: 17129 edx = MEM32(eax + 0x4); /* 0x30012111: mov edx, dword ptr [eax + 4] */ 17130 ecx = MEM32(edx); /* 0x30012114: mov ecx, dword ptr [edx] */ 17131 /* cmp eax, ecx */ /* 0x30012116: cmp eax, ecx */ 17132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 17133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17134 _flag_k = FK_CMP; 17135 if (CMP_NE(_flag_a, _flag_b)) goto L_30012188; /* 0x30012118: jne 0x30012188 */ 17136 L_3001211A: 17137 ecx = MEM32(edx + 0x8); /* 0x3001211A: mov ecx, dword ptr [edx + 8] */ 17138 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3001211D: mov dl, byte ptr [ecx + 0x1c] */ 17139 /* test LO8(edx), LO8(edx) */ /* 0x30012120: test dl, dl */ 17140 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 17141 _cf = 0; 17142 _flag_k = FK_NARROW(FK_TEST, 24); 17143 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001216F; /* 0x30012122: jne 0x3001216f */ 17144 L_30012124: 17145 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012124: mov byte ptr [ecx + 0x1c], bl */ 17146 ecx = MEM32(eax + 0x4); /* 0x30012127: mov ecx, dword ptr [eax + 4] */ 17147 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3001212A: mov byte ptr [ecx + 0x1c], 0 */ 17148 ecx = MEM32(eax + 0x4); /* 0x3001212E: mov ecx, dword ptr [eax + 4] */ 17149 edx = MEM32(ecx + 0x8); /* 0x30012131: mov edx, dword ptr [ecx + 8] */ 17150 esi = MEM32(edx); /* 0x30012134: mov esi, dword ptr [edx] */ 17151 MEM32(ecx + 0x8) = esi; /* 0x30012136: mov dword ptr [ecx + 8], esi */ 17152 esi = MEM32(edx); /* 0x30012139: mov esi, dword ptr [edx] */ 17153 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001213B: cmp esi, dword ptr [edi + 8] */ 17154 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17156 _flag_k = FK_CMP; 17157 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012143; /* 0x3001213E: je 0x30012143 */ 17158 L_30012140: 17159 MEM32(esi + 0x4) = ecx; /* 0x30012140: mov dword ptr [esi + 4], ecx */ 17160 L_30012143: 17161 esi = MEM32(ecx + 0x4); /* 0x30012143: mov esi, dword ptr [ecx + 4] */ 17162 MEM32(edx + 0x4) = esi; /* 0x30012146: mov dword ptr [edx + 4], esi */ 17163 esi = MEM32(edi + 0x4); /* 0x30012149: mov esi, dword ptr [edi + 4] */ 17164 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001214C: cmp ecx, dword ptr [esi + 4] */ 17165 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17167 _flag_k = FK_CMP; 17168 if (CMP_NE(_flag_a, _flag_b)) goto L_30012156; /* 0x3001214F: jne 0x30012156 */ 17169 L_30012151: 17170 MEM32(esi + 0x4) = edx; /* 0x30012151: mov dword ptr [esi + 4], edx */ 17171 goto L_30012164; /* 0x30012154: jmp 0x30012164 */ 17172 L_30012156: 17173 esi = MEM32(ecx + 0x4); /* 0x30012156: mov esi, dword ptr [ecx + 4] */ 17174 /* cmp ecx, MEM32(esi) */ /* 0x30012159: cmp ecx, dword ptr [esi] */ 17175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17177 _flag_k = FK_CMP; 17178 if (CMP_NE(_flag_a, _flag_b)) goto L_30012161; /* 0x3001215B: jne 0x30012161 */ 17179 L_3001215D: 17180 MEM32(esi) = edx; /* 0x3001215D: mov dword ptr [esi], edx */ 17181 goto L_30012164; /* 0x3001215F: jmp 0x30012164 */ 17182 L_30012161: 17183 MEM32(esi + 0x8) = edx; /* 0x30012161: mov dword ptr [esi + 8], edx */ 17184 L_30012164: 17185 MEM32(edx) = ecx; /* 0x30012164: mov dword ptr [edx], ecx */ 17186 MEM32(ecx + 0x4) = edx; /* 0x30012166: mov dword ptr [ecx + 4], edx */ 17187 edx = MEM32(eax + 0x4); /* 0x30012169: mov edx, dword ptr [eax + 4] */ 17188 ecx = MEM32(edx + 0x8); /* 0x3001216C: mov ecx, dword ptr [edx + 8] */ 17189 L_3001216F: 17190 edx = MEM32(ecx); /* 0x3001216F: mov edx, dword ptr [ecx] */ 17191 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x30012171: cmp byte ptr [edx + 0x1c], bl */ 17192 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17194 _flag_k = FK_NARROW(FK_CMP, 24); 17195 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012174: jne 0x3001220a */ 17196 L_3001217A: 17197 edx = MEM32(ecx + 0x8); /* 0x3001217A: mov edx, dword ptr [ecx + 8] */ 17198 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001217D: cmp byte ptr [edx + 0x1c], bl */ 17199 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17201 _flag_k = FK_NARROW(FK_CMP, 24); 17202 if (CMP_NE(_flag_a, _flag_b)) goto L_3001220A; /* 0x30012180: jne 0x3001220a */ 17203 L_30012186: 17204 goto L_300121F2; /* 0x30012186: jmp 0x300121f2 */ 17205 L_30012188: 17206 SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x30012188: mov dl, byte ptr [ecx + 0x1c] */ 17207 /* test LO8(edx), LO8(edx) */ /* 0x3001218B: test dl, dl */ 17208 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 17209 _cf = 0; 17210 _flag_k = FK_NARROW(FK_TEST, 24); 17211 if (TEST_NZ(_flag_a, _flag_b)) goto L_300121DB; /* 0x3001218D: jne 0x300121db */ 17212 L_3001218F: 17213 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001218F: mov byte ptr [ecx + 0x1c], bl */ 17214 ecx = MEM32(eax + 0x4); /* 0x30012192: mov ecx, dword ptr [eax + 4] */ 17215 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012195: mov byte ptr [ecx + 0x1c], 0 */ 17216 ecx = MEM32(eax + 0x4); /* 0x30012199: mov ecx, dword ptr [eax + 4] */ 17217 edx = MEM32(ecx); /* 0x3001219C: mov edx, dword ptr [ecx] */ 17218 esi = MEM32(edx + 0x8); /* 0x3001219E: mov esi, dword ptr [edx + 8] */ 17219 MEM32(ecx) = esi; /* 0x300121A1: mov dword ptr [ecx], esi */ 17220 esi = MEM32(edx + 0x8); /* 0x300121A3: mov esi, dword ptr [edx + 8] */ 17221 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300121A6: cmp esi, dword ptr [edi + 8] */ 17222 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17224 _flag_k = FK_CMP; 17225 if (CMP_EQ(_flag_a, _flag_b)) goto L_300121AE; /* 0x300121A9: je 0x300121ae */ 17226 L_300121AB: 17227 MEM32(esi + 0x4) = ecx; /* 0x300121AB: mov dword ptr [esi + 4], ecx */ 17228 L_300121AE: 17229 esi = MEM32(ecx + 0x4); /* 0x300121AE: mov esi, dword ptr [ecx + 4] */ 17230 MEM32(edx + 0x4) = esi; /* 0x300121B1: mov dword ptr [edx + 4], esi */ 17231 esi = MEM32(edi + 0x4); /* 0x300121B4: mov esi, dword ptr [edi + 4] */ 17232 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300121B7: cmp ecx, dword ptr [esi + 4] */ 17233 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17235 _flag_k = FK_CMP; 17236 if (CMP_NE(_flag_a, _flag_b)) goto L_300121C1; /* 0x300121BA: jne 0x300121c1 */ 17237 L_300121BC: 17238 MEM32(esi + 0x4) = edx; /* 0x300121BC: mov dword ptr [esi + 4], edx */ 17239 goto L_300121D0; /* 0x300121BF: jmp 0x300121d0 */ 17240 L_300121C1: 17241 esi = MEM32(ecx + 0x4); /* 0x300121C1: mov esi, dword ptr [ecx + 4] */ 17242 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300121C4: cmp ecx, dword ptr [esi + 8] */ 17243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17245 _flag_k = FK_CMP; 17246 if (CMP_NE(_flag_a, _flag_b)) goto L_300121CE; /* 0x300121C7: jne 0x300121ce */ 17247 L_300121C9: 17248 MEM32(esi + 0x8) = edx; /* 0x300121C9: mov dword ptr [esi + 8], edx */ 17249 goto L_300121D0; /* 0x300121CC: jmp 0x300121d0 */ 17250 L_300121CE: 17251 MEM32(esi) = edx; /* 0x300121CE: mov dword ptr [esi], edx */ 17252 L_300121D0: 17253 MEM32(edx + 0x8) = ecx; /* 0x300121D0: mov dword ptr [edx + 8], ecx */ 17254 MEM32(ecx + 0x4) = edx; /* 0x300121D3: mov dword ptr [ecx + 4], edx */ 17255 edx = MEM32(eax + 0x4); /* 0x300121D6: mov edx, dword ptr [eax + 4] */ 17256 ecx = MEM32(edx); /* 0x300121D9: mov ecx, dword ptr [edx] */ 17257 L_300121DB: 17258 edx = MEM32(ecx + 0x8); /* 0x300121DB: mov edx, dword ptr [ecx + 8] */ 17259 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121DE: cmp byte ptr [edx + 0x1c], bl */ 17260 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17262 _flag_k = FK_NARROW(FK_CMP, 24); 17263 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121E1: jne 0x300122b7 */ 17264 L_300121E7: 17265 edx = MEM32(ecx); /* 0x300121E7: mov edx, dword ptr [ecx] */ 17266 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300121E9: cmp byte ptr [edx + 0x1c], bl */ 17267 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17269 _flag_k = FK_NARROW(FK_CMP, 24); 17270 if (CMP_NE(_flag_a, _flag_b)) goto L_300122B7; /* 0x300121EC: jne 0x300122b7 */ 17271 L_300121F2: 17272 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300121F2: mov byte ptr [ecx + 0x1c], 0 */ 17273 ecx = MEM32(edi + 0x4); /* 0x300121F6: mov ecx, dword ptr [edi + 4] */ 17274 eax = MEM32(eax + 0x4); /* 0x300121F9: mov eax, dword ptr [eax + 4] */ 17275 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300121FC: cmp eax, dword ptr [ecx + 4] */ 17276 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 17277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17278 _flag_k = FK_CMP; 17279 RECOMP_BACKEDGE(); 17280 if (CMP_NE(_flag_a, _flag_b)) goto L_30012108; /* 0x300121FF: jne 0x30012108 */ 17281 L_30012205: 17282 goto L_30012356; /* 0x30012205: jmp 0x30012356 */ 17283 L_3001220A: 17284 edx = MEM32(ecx + 0x8); /* 0x3001220A: mov edx, dword ptr [ecx + 8] */ 17285 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001220D: cmp byte ptr [edx + 0x1c], bl */ 17286 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17288 _flag_k = FK_NARROW(FK_CMP, 24); 17289 if (CMP_NE(_flag_a, _flag_b)) goto L_3001225B; /* 0x30012210: jne 0x3001225b */ 17290 L_30012212: 17291 edx = MEM32(ecx); /* 0x30012212: mov edx, dword ptr [ecx] */ 17292 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012214: mov byte ptr [edx + 0x1c], bl */ 17293 edx = MEM32(ecx); /* 0x30012217: mov edx, dword ptr [ecx] */ 17294 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012219: mov byte ptr [ecx + 0x1c], 0 */ 17295 esi = MEM32(edx + 0x8); /* 0x3001221D: mov esi, dword ptr [edx + 8] */ 17296 MEM32(ecx) = esi; /* 0x30012220: mov dword ptr [ecx], esi */ 17297 esi = MEM32(edx + 0x8); /* 0x30012222: mov esi, dword ptr [edx + 8] */ 17298 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012225: cmp esi, dword ptr [edi + 8] */ 17299 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17301 _flag_k = FK_CMP; 17302 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001222D; /* 0x30012228: je 0x3001222d */ 17303 L_3001222A: 17304 MEM32(esi + 0x4) = ecx; /* 0x3001222A: mov dword ptr [esi + 4], ecx */ 17305 L_3001222D: 17306 esi = MEM32(ecx + 0x4); /* 0x3001222D: mov esi, dword ptr [ecx + 4] */ 17307 MEM32(edx + 0x4) = esi; /* 0x30012230: mov dword ptr [edx + 4], esi */ 17308 esi = MEM32(edi + 0x4); /* 0x30012233: mov esi, dword ptr [edi + 4] */ 17309 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012236: cmp ecx, dword ptr [esi + 4] */ 17310 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17312 _flag_k = FK_CMP; 17313 if (CMP_NE(_flag_a, _flag_b)) goto L_30012240; /* 0x30012239: jne 0x30012240 */ 17314 L_3001223B: 17315 MEM32(esi + 0x4) = edx; /* 0x3001223B: mov dword ptr [esi + 4], edx */ 17316 goto L_3001224F; /* 0x3001223E: jmp 0x3001224f */ 17317 L_30012240: 17318 esi = MEM32(ecx + 0x4); /* 0x30012240: mov esi, dword ptr [ecx + 4] */ 17319 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012243: cmp ecx, dword ptr [esi + 8] */ 17320 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17322 _flag_k = FK_CMP; 17323 if (CMP_NE(_flag_a, _flag_b)) goto L_3001224D; /* 0x30012246: jne 0x3001224d */ 17324 L_30012248: 17325 MEM32(esi + 0x8) = edx; /* 0x30012248: mov dword ptr [esi + 8], edx */ 17326 goto L_3001224F; /* 0x3001224B: jmp 0x3001224f */ 17327 L_3001224D: 17328 MEM32(esi) = edx; /* 0x3001224D: mov dword ptr [esi], edx */ 17329 L_3001224F: 17330 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 17331 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 17332 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 17333 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 17334 L_3001225B: 17335 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 17336 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 17337 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 17338 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 17339 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 17340 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 17341 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 17342 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 17343 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 17344 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 17345 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 17346 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 17347 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 17348 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17350 _flag_k = FK_CMP; 17351 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 17352 L_30012282: 17353 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 17354 L_30012285: 17355 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 17356 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 17357 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 17358 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 17359 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17361 _flag_k = FK_CMP; 17362 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 17363 L_30012293: 17364 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 17365 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 17366 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 17367 L_3001229D: 17368 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 17369 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 17370 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17372 _flag_k = FK_CMP; 17373 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 17374 L_300122A4: 17375 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 17376 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 17377 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 17378 L_300122AD: 17379 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 17380 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 17381 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 17382 L_300122B7: 17383 edx = MEM32(ecx); /* 0x300122B7: mov edx, dword ptr [ecx] */ 17384 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x300122B9: cmp byte ptr [edx + 0x1c], bl */ 17385 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17387 _flag_k = FK_NARROW(FK_CMP, 24); 17388 if (CMP_NE(_flag_a, _flag_b)) goto L_30012305; /* 0x300122BC: jne 0x30012305 */ 17389 L_300122BE: 17390 edx = MEM32(ecx + 0x8); /* 0x300122BE: mov edx, dword ptr [ecx + 8] */ 17391 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x300122C1: mov byte ptr [edx + 0x1c], bl */ 17392 edx = MEM32(ecx + 0x8); /* 0x300122C4: mov edx, dword ptr [ecx + 8] */ 17393 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x300122C7: mov byte ptr [ecx + 0x1c], 0 */ 17394 esi = MEM32(edx); /* 0x300122CB: mov esi, dword ptr [edx] */ 17395 MEM32(ecx + 0x8) = esi; /* 0x300122CD: mov dword ptr [ecx + 8], esi */ 17396 esi = MEM32(edx); /* 0x300122D0: mov esi, dword ptr [edx] */ 17397 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300122D2: cmp esi, dword ptr [edi + 8] */ 17398 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17400 _flag_k = FK_CMP; 17401 if (CMP_EQ(_flag_a, _flag_b)) goto L_300122DA; /* 0x300122D5: je 0x300122da */ 17402 L_300122D7: 17403 MEM32(esi + 0x4) = ecx; /* 0x300122D7: mov dword ptr [esi + 4], ecx */ 17404 L_300122DA: 17405 esi = MEM32(ecx + 0x4); /* 0x300122DA: mov esi, dword ptr [ecx + 4] */ 17406 MEM32(edx + 0x4) = esi; /* 0x300122DD: mov dword ptr [edx + 4], esi */ 17407 esi = MEM32(edi + 0x4); /* 0x300122E0: mov esi, dword ptr [edi + 4] */ 17408 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300122E3: cmp ecx, dword ptr [esi + 4] */ 17409 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17411 _flag_k = FK_CMP; 17412 if (CMP_NE(_flag_a, _flag_b)) goto L_300122ED; /* 0x300122E6: jne 0x300122ed */ 17413 L_300122E8: 17414 MEM32(esi + 0x4) = edx; /* 0x300122E8: mov dword ptr [esi + 4], edx */ 17415 goto L_300122FB; /* 0x300122EB: jmp 0x300122fb */ 17416 L_300122ED: 17417 esi = MEM32(ecx + 0x4); /* 0x300122ED: mov esi, dword ptr [ecx + 4] */ 17418 /* cmp ecx, MEM32(esi) */ /* 0x300122F0: cmp ecx, dword ptr [esi] */ 17419 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17421 _flag_k = FK_CMP; 17422 if (CMP_NE(_flag_a, _flag_b)) goto L_300122F8; /* 0x300122F2: jne 0x300122f8 */ 17423 L_300122F4: 17424 MEM32(esi) = edx; /* 0x300122F4: mov dword ptr [esi], edx */ 17425 goto L_300122FB; /* 0x300122F6: jmp 0x300122fb */ 17426 L_300122F8: 17427 MEM32(esi + 0x8) = edx; /* 0x300122F8: mov dword ptr [esi + 8], edx */ 17428 L_300122FB: 17429 MEM32(edx) = ecx; /* 0x300122FB: mov dword ptr [edx], ecx */ 17430 MEM32(ecx + 0x4) = edx; /* 0x300122FD: mov dword ptr [ecx + 4], edx */ 17431 ecx = MEM32(eax + 0x4); /* 0x30012300: mov ecx, dword ptr [eax + 4] */ 17432 ecx = MEM32(ecx); /* 0x30012303: mov ecx, dword ptr [ecx] */ 17433 L_30012305: 17434 edx = MEM32(eax + 0x4); /* 0x30012305: mov edx, dword ptr [eax + 4] */ 17435 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x30012308: mov dl, byte ptr [edx + 0x1c] */ 17436 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3001230B: mov byte ptr [ecx + 0x1c], dl */ 17437 edx = MEM32(eax + 0x4); /* 0x3001230E: mov edx, dword ptr [eax + 4] */ 17438 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012311: mov byte ptr [edx + 0x1c], bl */ 17439 ecx = MEM32(ecx); /* 0x30012314: mov ecx, dword ptr [ecx] */ 17440 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012316: mov byte ptr [ecx + 0x1c], bl */ 17441 ecx = MEM32(eax + 0x4); /* 0x30012319: mov ecx, dword ptr [eax + 4] */ 17442 edx = MEM32(ecx); /* 0x3001231C: mov edx, dword ptr [ecx] */ 17443 esi = MEM32(edx + 0x8); /* 0x3001231E: mov esi, dword ptr [edx + 8] */ 17444 MEM32(ecx) = esi; /* 0x30012321: mov dword ptr [ecx], esi */ 17445 esi = MEM32(edx + 0x8); /* 0x30012323: mov esi, dword ptr [edx + 8] */ 17446 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012326: cmp esi, dword ptr [edi + 8] */ 17447 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17449 _flag_k = FK_CMP; 17450 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001232E; /* 0x30012329: je 0x3001232e */ 17451 L_3001232B: 17452 MEM32(esi + 0x4) = ecx; /* 0x3001232B: mov dword ptr [esi + 4], ecx */ 17453 L_3001232E: 17454 esi = MEM32(ecx + 0x4); /* 0x3001232E: mov esi, dword ptr [ecx + 4] */ 17455 MEM32(edx + 0x4) = esi; /* 0x30012331: mov dword ptr [edx + 4], esi */ 17456 esi = MEM32(edi + 0x4); /* 0x30012334: mov esi, dword ptr [edi + 4] */ 17457 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012337: cmp ecx, dword ptr [esi + 4] */ 17458 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17460 _flag_k = FK_CMP; 17461 if (CMP_NE(_flag_a, _flag_b)) goto L_30012341; /* 0x3001233A: jne 0x30012341 */ 17462 L_3001233C: 17463 MEM32(esi + 0x4) = edx; /* 0x3001233C: mov dword ptr [esi + 4], edx */ 17464 goto L_30012350; /* 0x3001233F: jmp 0x30012350 */ 17465 L_30012341: 17466 esi = MEM32(ecx + 0x4); /* 0x30012341: mov esi, dword ptr [ecx + 4] */ 17467 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012344: cmp ecx, dword ptr [esi + 8] */ 17468 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17470 _flag_k = FK_CMP; 17471 if (CMP_NE(_flag_a, _flag_b)) goto L_3001234E; /* 0x30012347: jne 0x3001234e */ 17472 L_30012349: 17473 MEM32(esi + 0x8) = edx; /* 0x30012349: mov dword ptr [esi + 8], edx */ 17474 goto L_30012350; /* 0x3001234C: jmp 0x30012350 */ 17475 L_3001234E: 17476 MEM32(esi) = edx; /* 0x3001234E: mov dword ptr [esi], edx */ 17477 L_30012350: 17478 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 17479 L_30012353: 17480 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 17481 L_30012356: 17482 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 17483 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 17484 PUSH32(esp, edx); /* 0x3001235C: push edx */ 17485 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 17486 RECOMP_FLAGS_IN(); 17487 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 17488 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 17489 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17490 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17491 esp = esp + 4; /* 0x30012368: add esp, 4 */ 17492 _flag_k = FK_ADD; 17493 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17494 eax = eax - 1; /* 0x3001236B: dec eax */ 17495 _flag_k = FK_DEC; 17496 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 17497 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 17498 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 17499 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 17500 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 17501 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 17502 esp = ebp; /* 0x30012377: mov esp, ebp */ 17503 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 17504 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 17505 RECOMP_REGS_OUT(); 17506 } 17507 17508 void sub_3001220A(void) { 17509 int _fpu_cmp = 0; 17510 uint32_t _cf = 0; 17511 int _df = 1; 17512 uint32_t _flag_k = FK_NONE; 17513 uint32_t _flag_a = 0, _flag_b = 0; 17514 uint32_t _itail_tgt = 0; 17515 RECOMP_REGS_LOCALS 17516 RECOMP_ENTER(0x3001220Au); 17517 17518 L_3001220A: 17519 edx = MEM32(ecx + 0x8); /* 0x3001220A: mov edx, dword ptr [ecx + 8] */ 17520 /* cmp MEM8(edx + 0x1C), LO8(ebx) */ /* 0x3001220D: cmp byte ptr [edx + 0x1c], bl */ 17521 _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17523 _flag_k = FK_NARROW(FK_CMP, 24); 17524 if (CMP_NE(_flag_a, _flag_b)) goto L_3001225B; /* 0x30012210: jne 0x3001225b */ 17525 L_30012212: 17526 edx = MEM32(ecx); /* 0x30012212: mov edx, dword ptr [ecx] */ 17527 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012214: mov byte ptr [edx + 0x1c], bl */ 17528 edx = MEM32(ecx); /* 0x30012217: mov edx, dword ptr [ecx] */ 17529 MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x30012219: mov byte ptr [ecx + 0x1c], 0 */ 17530 esi = MEM32(edx + 0x8); /* 0x3001221D: mov esi, dword ptr [edx + 8] */ 17531 MEM32(ecx) = esi; /* 0x30012220: mov dword ptr [ecx], esi */ 17532 esi = MEM32(edx + 0x8); /* 0x30012222: mov esi, dword ptr [edx + 8] */ 17533 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012225: cmp esi, dword ptr [edi + 8] */ 17534 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17536 _flag_k = FK_CMP; 17537 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001222D; /* 0x30012228: je 0x3001222d */ 17538 L_3001222A: 17539 MEM32(esi + 0x4) = ecx; /* 0x3001222A: mov dword ptr [esi + 4], ecx */ 17540 L_3001222D: 17541 esi = MEM32(ecx + 0x4); /* 0x3001222D: mov esi, dword ptr [ecx + 4] */ 17542 MEM32(edx + 0x4) = esi; /* 0x30012230: mov dword ptr [edx + 4], esi */ 17543 esi = MEM32(edi + 0x4); /* 0x30012233: mov esi, dword ptr [edi + 4] */ 17544 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012236: cmp ecx, dword ptr [esi + 4] */ 17545 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17547 _flag_k = FK_CMP; 17548 if (CMP_NE(_flag_a, _flag_b)) goto L_30012240; /* 0x30012239: jne 0x30012240 */ 17549 L_3001223B: 17550 MEM32(esi + 0x4) = edx; /* 0x3001223B: mov dword ptr [esi + 4], edx */ 17551 goto L_3001224F; /* 0x3001223E: jmp 0x3001224f */ 17552 L_30012240: 17553 esi = MEM32(ecx + 0x4); /* 0x30012240: mov esi, dword ptr [ecx + 4] */ 17554 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012243: cmp ecx, dword ptr [esi + 8] */ 17555 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17557 _flag_k = FK_CMP; 17558 if (CMP_NE(_flag_a, _flag_b)) goto L_3001224D; /* 0x30012246: jne 0x3001224d */ 17559 L_30012248: 17560 MEM32(esi + 0x8) = edx; /* 0x30012248: mov dword ptr [esi + 8], edx */ 17561 goto L_3001224F; /* 0x3001224B: jmp 0x3001224f */ 17562 L_3001224D: 17563 MEM32(esi) = edx; /* 0x3001224D: mov dword ptr [esi], edx */ 17564 L_3001224F: 17565 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 17566 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 17567 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 17568 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 17569 L_3001225B: 17570 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 17571 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 17572 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 17573 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 17574 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 17575 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 17576 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 17577 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 17578 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 17579 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 17580 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 17581 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 17582 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 17583 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17585 _flag_k = FK_CMP; 17586 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 17587 L_30012282: 17588 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 17589 L_30012285: 17590 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 17591 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 17592 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 17593 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 17594 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17596 _flag_k = FK_CMP; 17597 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 17598 L_30012293: 17599 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 17600 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 17601 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 17602 L_3001229D: 17603 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 17604 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 17605 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17607 _flag_k = FK_CMP; 17608 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 17609 L_300122A4: 17610 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 17611 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 17612 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 17613 L_300122AD: 17614 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 17615 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 17616 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 17617 L_30012353: 17618 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 17619 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 17620 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 17621 PUSH32(esp, edx); /* 0x3001235C: push edx */ 17622 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 17623 RECOMP_FLAGS_IN(); 17624 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 17625 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 17626 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17627 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17628 esp = esp + 4; /* 0x30012368: add esp, 4 */ 17629 _flag_k = FK_ADD; 17630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17631 eax = eax - 1; /* 0x3001236B: dec eax */ 17632 _flag_k = FK_DEC; 17633 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 17634 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 17635 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 17636 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 17637 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 17638 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 17639 esp = ebp; /* 0x30012377: mov esp, ebp */ 17640 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 17641 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 17642 RECOMP_REGS_OUT(); 17643 } 17644 17645 void sub_3001224F(void) { 17646 int _fpu_cmp = 0; 17647 uint32_t _cf = 0; 17648 int _df = 1; 17649 uint32_t _flag_k = FK_NONE; 17650 uint32_t _flag_a = 0, _flag_b = 0; 17651 uint32_t _itail_tgt = 0; 17652 RECOMP_REGS_LOCALS 17653 RECOMP_ENTER(0x3001224Fu); 17654 17655 L_3001224F: 17656 MEM32(edx + 0x8) = ecx; /* 0x3001224F: mov dword ptr [edx + 8], ecx */ 17657 MEM32(ecx + 0x4) = edx; /* 0x30012252: mov dword ptr [ecx + 4], edx */ 17658 ecx = MEM32(eax + 0x4); /* 0x30012255: mov ecx, dword ptr [eax + 4] */ 17659 ecx = MEM32(ecx + 0x8); /* 0x30012258: mov ecx, dword ptr [ecx + 8] */ 17660 edx = MEM32(eax + 0x4); /* 0x3001225B: mov edx, dword ptr [eax + 4] */ 17661 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x3001225E: mov dl, byte ptr [edx + 0x1c] */ 17662 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x30012261: mov byte ptr [ecx + 0x1c], dl */ 17663 edx = MEM32(eax + 0x4); /* 0x30012264: mov edx, dword ptr [eax + 4] */ 17664 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012267: mov byte ptr [edx + 0x1c], bl */ 17665 ecx = MEM32(ecx + 0x8); /* 0x3001226A: mov ecx, dword ptr [ecx + 8] */ 17666 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3001226D: mov byte ptr [ecx + 0x1c], bl */ 17667 ecx = MEM32(eax + 0x4); /* 0x30012270: mov ecx, dword ptr [eax + 4] */ 17668 edx = MEM32(ecx + 0x8); /* 0x30012273: mov edx, dword ptr [ecx + 8] */ 17669 esi = MEM32(edx); /* 0x30012276: mov esi, dword ptr [edx] */ 17670 MEM32(ecx + 0x8) = esi; /* 0x30012278: mov dword ptr [ecx + 8], esi */ 17671 esi = MEM32(edx); /* 0x3001227B: mov esi, dword ptr [edx] */ 17672 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001227D: cmp esi, dword ptr [edi + 8] */ 17673 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17675 _flag_k = FK_CMP; 17676 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012285; /* 0x30012280: je 0x30012285 */ 17677 L_30012282: 17678 MEM32(esi + 0x4) = ecx; /* 0x30012282: mov dword ptr [esi + 4], ecx */ 17679 L_30012285: 17680 esi = MEM32(ecx + 0x4); /* 0x30012285: mov esi, dword ptr [ecx + 4] */ 17681 MEM32(edx + 0x4) = esi; /* 0x30012288: mov dword ptr [edx + 4], esi */ 17682 esi = MEM32(edi + 0x4); /* 0x3001228B: mov esi, dword ptr [edi + 4] */ 17683 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001228E: cmp ecx, dword ptr [esi + 4] */ 17684 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17686 _flag_k = FK_CMP; 17687 if (CMP_NE(_flag_a, _flag_b)) goto L_3001229D; /* 0x30012291: jne 0x3001229d */ 17688 L_30012293: 17689 MEM32(esi + 0x4) = edx; /* 0x30012293: mov dword ptr [esi + 4], edx */ 17690 MEM32(edx) = ecx; /* 0x30012296: mov dword ptr [edx], ecx */ 17691 goto L_30012353; /* 0x30012298: jmp 0x30012353 */ 17692 L_3001229D: 17693 esi = MEM32(ecx + 0x4); /* 0x3001229D: mov esi, dword ptr [ecx + 4] */ 17694 /* cmp ecx, MEM32(esi) */ /* 0x300122A0: cmp ecx, dword ptr [esi] */ 17695 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 17696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17697 _flag_k = FK_CMP; 17698 if (CMP_NE(_flag_a, _flag_b)) goto L_300122AD; /* 0x300122A2: jne 0x300122ad */ 17699 L_300122A4: 17700 MEM32(esi) = edx; /* 0x300122A4: mov dword ptr [esi], edx */ 17701 MEM32(edx) = ecx; /* 0x300122A6: mov dword ptr [edx], ecx */ 17702 goto L_30012353; /* 0x300122A8: jmp 0x30012353 */ 17703 L_300122AD: 17704 MEM32(esi + 0x8) = edx; /* 0x300122AD: mov dword ptr [esi + 8], edx */ 17705 MEM32(edx) = ecx; /* 0x300122B0: mov dword ptr [edx], ecx */ 17706 goto L_30012353; /* 0x300122B2: jmp 0x30012353 */ 17707 L_30012353: 17708 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 17709 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 17710 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 17711 PUSH32(esp, edx); /* 0x3001235C: push edx */ 17712 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 17713 RECOMP_FLAGS_IN(); 17714 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 17715 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 17716 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17718 esp = esp + 4; /* 0x30012368: add esp, 4 */ 17719 _flag_k = FK_ADD; 17720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17721 eax = eax - 1; /* 0x3001236B: dec eax */ 17722 _flag_k = FK_DEC; 17723 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 17724 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 17725 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 17726 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 17727 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 17728 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 17729 esp = ebp; /* 0x30012377: mov esp, ebp */ 17730 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 17731 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 17732 RECOMP_REGS_OUT(); 17733 } 17734 17735 void sub_300122FB(void) { 17736 int _fpu_cmp = 0; 17737 uint32_t _cf = 0; 17738 int _df = 1; 17739 uint32_t _flag_k = FK_NONE; 17740 uint32_t _flag_a = 0, _flag_b = 0; 17741 uint32_t _itail_tgt = 0; 17742 RECOMP_REGS_LOCALS 17743 RECOMP_ENTER(0x300122FBu); 17744 17745 L_300122FB: 17746 MEM32(edx) = ecx; /* 0x300122FB: mov dword ptr [edx], ecx */ 17747 MEM32(ecx + 0x4) = edx; /* 0x300122FD: mov dword ptr [ecx + 4], edx */ 17748 ecx = MEM32(eax + 0x4); /* 0x30012300: mov ecx, dword ptr [eax + 4] */ 17749 ecx = MEM32(ecx); /* 0x30012303: mov ecx, dword ptr [ecx] */ 17750 edx = MEM32(eax + 0x4); /* 0x30012305: mov edx, dword ptr [eax + 4] */ 17751 SET_LO8(edx, MEM8(edx + 0x1C)); /* 0x30012308: mov dl, byte ptr [edx + 0x1c] */ 17752 MEM8(ecx + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3001230B: mov byte ptr [ecx + 0x1c], dl */ 17753 edx = MEM32(eax + 0x4); /* 0x3001230E: mov edx, dword ptr [eax + 4] */ 17754 MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012311: mov byte ptr [edx + 0x1c], bl */ 17755 ecx = MEM32(ecx); /* 0x30012314: mov ecx, dword ptr [ecx] */ 17756 MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012316: mov byte ptr [ecx + 0x1c], bl */ 17757 ecx = MEM32(eax + 0x4); /* 0x30012319: mov ecx, dword ptr [eax + 4] */ 17758 edx = MEM32(ecx); /* 0x3001231C: mov edx, dword ptr [ecx] */ 17759 esi = MEM32(edx + 0x8); /* 0x3001231E: mov esi, dword ptr [edx + 8] */ 17760 MEM32(ecx) = esi; /* 0x30012321: mov dword ptr [ecx], esi */ 17761 esi = MEM32(edx + 0x8); /* 0x30012323: mov esi, dword ptr [edx + 8] */ 17762 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012326: cmp esi, dword ptr [edi + 8] */ 17763 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 17764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17765 _flag_k = FK_CMP; 17766 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001232E; /* 0x30012329: je 0x3001232e */ 17767 L_3001232B: 17768 MEM32(esi + 0x4) = ecx; /* 0x3001232B: mov dword ptr [esi + 4], ecx */ 17769 L_3001232E: 17770 esi = MEM32(ecx + 0x4); /* 0x3001232E: mov esi, dword ptr [ecx + 4] */ 17771 MEM32(edx + 0x4) = esi; /* 0x30012331: mov dword ptr [edx + 4], esi */ 17772 esi = MEM32(edi + 0x4); /* 0x30012334: mov esi, dword ptr [edi + 4] */ 17773 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012337: cmp ecx, dword ptr [esi + 4] */ 17774 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 17775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17776 _flag_k = FK_CMP; 17777 if (CMP_NE(_flag_a, _flag_b)) goto L_30012341; /* 0x3001233A: jne 0x30012341 */ 17778 L_3001233C: 17779 MEM32(esi + 0x4) = edx; /* 0x3001233C: mov dword ptr [esi + 4], edx */ 17780 goto L_30012350; /* 0x3001233F: jmp 0x30012350 */ 17781 L_30012341: 17782 esi = MEM32(ecx + 0x4); /* 0x30012341: mov esi, dword ptr [ecx + 4] */ 17783 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012344: cmp ecx, dword ptr [esi + 8] */ 17784 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 17785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17786 _flag_k = FK_CMP; 17787 if (CMP_NE(_flag_a, _flag_b)) goto L_3001234E; /* 0x30012347: jne 0x3001234e */ 17788 L_30012349: 17789 MEM32(esi + 0x8) = edx; /* 0x30012349: mov dword ptr [esi + 8], edx */ 17790 goto L_30012350; /* 0x3001234C: jmp 0x30012350 */ 17791 L_3001234E: 17792 MEM32(esi) = edx; /* 0x3001234E: mov dword ptr [esi], edx */ 17793 L_30012350: 17794 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 17795 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 17796 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 17797 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 17798 PUSH32(esp, edx); /* 0x3001235C: push edx */ 17799 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 17800 RECOMP_FLAGS_IN(); 17801 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 17802 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 17803 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17804 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17805 esp = esp + 4; /* 0x30012368: add esp, 4 */ 17806 _flag_k = FK_ADD; 17807 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17808 eax = eax - 1; /* 0x3001236B: dec eax */ 17809 _flag_k = FK_DEC; 17810 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 17811 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 17812 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 17813 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 17814 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 17815 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 17816 esp = ebp; /* 0x30012377: mov esp, ebp */ 17817 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 17818 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 17819 RECOMP_REGS_OUT(); 17820 } 17821 17822 void sub_30012350(void) { 17823 int _fpu_cmp = 0; 17824 uint32_t _cf = 0; 17825 int _df = 1; 17826 uint32_t _flag_k = FK_NONE; 17827 uint32_t _flag_a = 0, _flag_b = 0; 17828 uint32_t _itail_tgt = 0; 17829 RECOMP_REGS_LOCALS 17830 RECOMP_ENTER(0x30012350u); 17831 17832 L_30012350: 17833 MEM32(edx + 0x8) = ecx; /* 0x30012350: mov dword ptr [edx + 8], ecx */ 17834 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 17835 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 17836 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 17837 PUSH32(esp, edx); /* 0x3001235C: push edx */ 17838 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 17839 RECOMP_FLAGS_IN(); 17840 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 17841 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 17842 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17844 esp = esp + 4; /* 0x30012368: add esp, 4 */ 17845 _flag_k = FK_ADD; 17846 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17847 eax = eax - 1; /* 0x3001236B: dec eax */ 17848 _flag_k = FK_DEC; 17849 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 17850 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 17851 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 17852 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 17853 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 17854 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 17855 esp = ebp; /* 0x30012377: mov esp, ebp */ 17856 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 17857 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 17858 RECOMP_REGS_OUT(); 17859 } 17860 17861 void sub_30012353(void) { 17862 int _fpu_cmp = 0; 17863 uint32_t _cf = 0; 17864 int _df = 1; 17865 uint32_t _flag_k = FK_NONE; 17866 uint32_t _flag_a = 0, _flag_b = 0; 17867 uint32_t _itail_tgt = 0; 17868 RECOMP_REGS_LOCALS 17869 RECOMP_ENTER(0x30012353u); 17870 17871 L_30012353: 17872 MEM32(ecx + 0x4) = edx; /* 0x30012353: mov dword ptr [ecx + 4], edx */ 17873 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 17874 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 17875 PUSH32(esp, edx); /* 0x3001235C: push edx */ 17876 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 17877 RECOMP_FLAGS_IN(); 17878 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 17879 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 17880 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17881 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17882 esp = esp + 4; /* 0x30012368: add esp, 4 */ 17883 _flag_k = FK_ADD; 17884 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17885 eax = eax - 1; /* 0x3001236B: dec eax */ 17886 _flag_k = FK_DEC; 17887 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 17888 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 17889 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 17890 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 17891 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 17892 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 17893 esp = ebp; /* 0x30012377: mov esp, ebp */ 17894 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 17895 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 17896 RECOMP_REGS_OUT(); 17897 } 17898 17899 void sub_30012356(void) { 17900 int _fpu_cmp = 0; 17901 uint32_t _cf = 0; 17902 int _df = 1; 17903 uint32_t _flag_k = FK_NONE; 17904 uint32_t _flag_a = 0, _flag_b = 0; 17905 uint32_t _itail_tgt = 0; 17906 RECOMP_REGS_LOCALS 17907 RECOMP_ENTER(0x30012356u); 17908 17909 L_30012356: 17910 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x30012356: mov byte ptr [eax + 0x1c], bl */ 17911 edx = MEM32(ebp + (-0x4)); /* 0x30012359: mov edx, dword ptr [ebp - 4] */ 17912 PUSH32(esp, edx); /* 0x3001235C: push edx */ 17913 RECOMP_ICALL(0x30018080u); /* 0x3001235D: call 0x30018080 */ /* not lifted */ 17914 RECOMP_FLAGS_IN(); 17915 eax = MEM32(edi + 0x10); /* 0x30012362: mov eax, dword ptr [edi + 0x10] */ 17916 ecx = MEM32(ebp + 0xC); /* 0x30012365: mov ecx, dword ptr [ebp + 0xc] */ 17917 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17918 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17919 esp = esp + 4; /* 0x30012368: add esp, 4 */ 17920 _flag_k = FK_ADD; 17921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17922 eax = eax - 1; /* 0x3001236B: dec eax */ 17923 _flag_k = FK_DEC; 17924 MEM32(edi + 0x10) = eax; /* 0x3001236C: mov dword ptr [edi + 0x10], eax */ 17925 eax = MEM32(ebp + 0x8); /* 0x3001236F: mov eax, dword ptr [ebp + 8] */ 17926 edi = POP32_VAL(esp); /* 0x30012372: pop edi */ 17927 esi = POP32_VAL(esp); /* 0x30012373: pop esi */ 17928 MEM32(eax) = ecx; /* 0x30012374: mov dword ptr [eax], ecx */ 17929 ebx = POP32_VAL(esp); /* 0x30012376: pop ebx */ 17930 esp = ebp; /* 0x30012377: mov esp, ebp */ 17931 ebp = POP32_VAL(esp); /* 0x30012379: pop ebp */ 17932 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001237A: ret 8 */ 17933 RECOMP_REGS_OUT(); 17934 } 17935 17936 void sub_30012380(void) { 17937 int _fpu_cmp = 0; 17938 uint32_t _cf = 0; 17939 int _df = 1; 17940 uint32_t _flag_k = FK_NONE; 17941 uint32_t _flag_a = 0, _flag_b = 0; 17942 uint32_t _itail_tgt = 0; 17943 RECOMP_REGS_LOCALS 17944 RECOMP_ENTER(0x30012380u); 17945 17946 L_30012380: 17947 PUSH32(esp, ebp); /* 0x30012380: push ebp */ 17948 ebp = esp; /* 0x30012381: mov ebp, esp */ 17949 PUSH32(esp, ebx); /* 0x30012383: push ebx */ 17950 ebx = ecx; /* 0x30012384: mov ebx, ecx */ 17951 PUSH32(esp, esi); /* 0x30012386: push esi */ 17952 PUSH32(esp, edi); /* 0x30012387: push edi */ 17953 edi = MEM32(ebp + 0x8); /* 0x30012388: mov edi, dword ptr [ebp + 8] */ 17954 eax = MEM32(ebx + 0x8); /* 0x3001238B: mov eax, dword ptr [ebx + 8] */ 17955 /* cmp edi, eax */ /* 0x3001238E: cmp edi, eax */ 17956 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 17957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17958 _flag_k = FK_CMP; 17959 esi = edi; /* 0x30012390: mov esi, edi */ 17960 if (CMP_EQ(_flag_a, _flag_b)) goto L_300123B3; /* 0x30012392: je 0x300123b3 */ 17961 L_30012394: 17962 eax = MEM32(esi + 0x8); /* 0x30012394: mov eax, dword ptr [esi + 8] */ 17963 ecx = ebx; /* 0x30012397: mov ecx, ebx */ 17964 PUSH32(esp, eax); /* 0x30012399: push eax */ 17965 RECOMP_ICALL(0x30012380u); /* 0x3001239A: call 0x30012380 */ /* not lifted */ 17966 RECOMP_FLAGS_IN(); 17967 esi = MEM32(esi); /* 0x3001239F: mov esi, dword ptr [esi] */ 17968 PUSH32(esp, edi); /* 0x300123A1: push edi */ 17969 RECOMP_ICALL(0x30018080u); /* 0x300123A2: call 0x30018080 */ /* not lifted */ 17970 RECOMP_FLAGS_IN(); 17971 eax = MEM32(ebx + 0x8); /* 0x300123A7: mov eax, dword ptr [ebx + 8] */ 17972 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17973 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17974 esp = esp + 4; /* 0x300123AA: add esp, 4 */ 17975 _flag_k = FK_ADD; 17976 /* cmp esi, eax */ /* 0x300123AD: cmp esi, eax */ 17977 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 17978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17979 _flag_k = FK_CMP; 17980 edi = esi; /* 0x300123AF: mov edi, esi */ 17981 RECOMP_BACKEDGE(); 17982 if (CMP_NE(_flag_a, _flag_b)) goto L_30012394; /* 0x300123B1: jne 0x30012394 */ 17983 L_300123B3: 17984 edi = POP32_VAL(esp); /* 0x300123B3: pop edi */ 17985 esi = POP32_VAL(esp); /* 0x300123B4: pop esi */ 17986 ebx = POP32_VAL(esp); /* 0x300123B5: pop ebx */ 17987 ebp = POP32_VAL(esp); /* 0x300123B6: pop ebp */ 17988 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x300123B7: ret 4 */ 17989 RECOMP_REGS_OUT(); 17990 } 17991 17992 void sub_300123C0(void) { 17993 int _fpu_cmp = 0; 17994 uint32_t _cf = 0; 17995 int _df = 1; 17996 uint32_t _flag_k = FK_NONE; 17997 uint32_t _flag_a = 0, _flag_b = 0; 17998 uint32_t _itail_tgt = 0; 17999 RECOMP_REGS_LOCALS 18000 RECOMP_ENTER(0x300123C0u); 18001 18002 L_300123C0: 18003 PUSH32(esp, ebp); /* 0x300123C0: push ebp */ 18004 ebp = esp; /* 0x300123C1: mov ebp, esp */ 18005 PUSH32(esp, ebx); /* 0x300123C3: push ebx */ 18006 PUSH32(esp, esi); /* 0x300123C4: push esi */ 18007 esi = MEM32(ecx); /* 0x300123C5: mov esi, dword ptr [ecx] */ 18008 edx = MEM32(esi + 0x8); /* 0x300123C7: mov edx, dword ptr [esi + 8] */ 18009 SET_LO8(eax, MEM8(edx + 0x1D)); /* 0x300123CA: mov al, byte ptr [edx + 0x1d] */ 18010 /* test LO8(eax), LO8(eax) */ /* 0x300123CD: test al, al */ 18011 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18012 _cf = 0; 18013 _flag_k = FK_NARROW(FK_TEST, 24); 18014 if (TEST_NZ(_flag_a, _flag_b)) goto L_300123F2; /* 0x300123CF: jne 0x300123f2 */ 18015 L_300123D1: 18016 eax = MEM32(edx); /* 0x300123D1: mov eax, dword ptr [edx] */ 18017 SET_LO8(ebx, MEM8(eax + 0x1D)); /* 0x300123D3: mov bl, byte ptr [eax + 0x1d] */ 18018 /* test LO8(ebx), LO8(ebx) */ /* 0x300123D6: test bl, bl */ 18019 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18020 _cf = 0; 18021 _flag_k = FK_NARROW(FK_TEST, 24); 18022 if (TEST_NZ(_flag_a, _flag_b)) goto L_300123E5; /* 0x300123D8: jne 0x300123e5 */ 18023 L_300123DA: 18024 edx = eax; /* 0x300123DA: mov edx, eax */ 18025 eax = MEM32(edx); /* 0x300123DC: mov eax, dword ptr [edx] */ 18026 SET_LO8(ebx, MEM8(eax + 0x1D)); /* 0x300123DE: mov bl, byte ptr [eax + 0x1d] */ 18027 /* test LO8(ebx), LO8(ebx) */ /* 0x300123E1: test bl, bl */ 18028 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18029 _cf = 0; 18030 _flag_k = FK_NARROW(FK_TEST, 24); 18031 RECOMP_BACKEDGE(); 18032 if (TEST_Z(_flag_a, _flag_b)) goto L_300123DA; /* 0x300123E3: je 0x300123da */ 18033 L_300123E5: 18034 eax = MEM32(ebp + 0x8); /* 0x300123E5: mov eax, dword ptr [ebp + 8] */ 18035 MEM32(ecx) = edx; /* 0x300123E8: mov dword ptr [ecx], edx */ 18036 MEM32(eax) = esi; /* 0x300123EA: mov dword ptr [eax], esi */ 18037 esi = POP32_VAL(esp); /* 0x300123EC: pop esi */ 18038 ebx = POP32_VAL(esp); /* 0x300123ED: pop ebx */ 18039 ebp = POP32_VAL(esp); /* 0x300123EE: pop ebp */ 18040 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x300123EF: ret 8 */ 18041 L_300123F2: 18042 eax = MEM32(esi + 0x4); /* 0x300123F2: mov eax, dword ptr [esi + 4] */ 18043 edx = MEM32(ecx); /* 0x300123F5: mov edx, dword ptr [ecx] */ 18044 /* cmp edx, MEM32(eax + 0x8) */ /* 0x300123F7: cmp edx, dword ptr [eax + 8] */ 18045 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 18046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18047 _flag_k = FK_CMP; 18048 if (CMP_NE(_flag_a, _flag_b)) goto L_30012408; /* 0x300123FA: jne 0x30012408 */ 18049 L_300123FC: 18050 MEM32(ecx) = eax; /* 0x300123FC: mov dword ptr [ecx], eax */ 18051 eax = MEM32(eax + 0x4); /* 0x300123FE: mov eax, dword ptr [eax + 4] */ 18052 edx = MEM32(ecx); /* 0x30012401: mov edx, dword ptr [ecx] */ 18053 /* cmp edx, MEM32(eax + 0x8) */ /* 0x30012403: cmp edx, dword ptr [eax + 8] */ 18054 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 18055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18056 _flag_k = FK_CMP; 18057 RECOMP_BACKEDGE(); 18058 if (CMP_EQ(_flag_a, _flag_b)) goto L_300123FC; /* 0x30012406: je 0x300123fc */ 18059 L_30012408: 18060 edx = MEM32(ecx); /* 0x30012408: mov edx, dword ptr [ecx] */ 18061 /* cmp MEM32(edx + 0x8), eax */ /* 0x3001240A: cmp dword ptr [edx + 8], eax */ 18062 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 18063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18064 _flag_k = FK_CMP; 18065 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012411; /* 0x3001240D: je 0x30012411 */ 18066 L_3001240F: 18067 MEM32(ecx) = eax; /* 0x3001240F: mov dword ptr [ecx], eax */ 18068 L_30012411: 18069 eax = MEM32(ebp + 0x8); /* 0x30012411: mov eax, dword ptr [ebp + 8] */ 18070 MEM32(eax) = esi; /* 0x30012414: mov dword ptr [eax], esi */ 18071 esi = POP32_VAL(esp); /* 0x30012416: pop esi */ 18072 ebx = POP32_VAL(esp); /* 0x30012417: pop ebx */ 18073 ebp = POP32_VAL(esp); /* 0x30012418: pop ebp */ 18074 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012419: ret 8 */ 18075 RECOMP_REGS_OUT(); 18076 } 18077 18078 void sub_30012420(void) { 18079 int _fpu_cmp = 0; 18080 uint32_t _cf = 0; 18081 int _df = 1; 18082 uint32_t _flag_k = FK_NONE; 18083 uint32_t _flag_a = 0, _flag_b = 0; 18084 uint32_t _itail_tgt = 0; 18085 RECOMP_REGS_LOCALS 18086 RECOMP_ENTER(0x30012420u); 18087 18088 L_30012420: 18089 PUSH32(esp, ebp); /* 0x30012420: push ebp */ 18090 ebp = esp; /* 0x30012421: mov ebp, esp */ 18091 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18093 esp = esp - 0xCu; /* 0x30012423: sub esp, 0xc */ 18094 _flag_k = FK_CMP; 18095 PUSH32(esp, ebx); /* 0x30012426: push ebx */ 18096 PUSH32(esp, esi); /* 0x30012427: push esi */ 18097 PUSH32(esp, edi); /* 0x30012428: push edi */ 18098 edi = ecx; /* 0x30012429: mov edi, ecx */ 18099 SET_LO8(eax, 1); /* 0x3001242B: mov al, 1 */ 18100 ecx = MEM32(edi + 0x4); /* 0x3001242D: mov ecx, dword ptr [edi + 4] */ 18101 edx = MEM32(edi + 0x8); /* 0x30012430: mov edx, dword ptr [edi + 8] */ 18102 esi = ecx; /* 0x30012433: mov esi, ecx */ 18103 ebx = MEM32(ecx + 0x4); /* 0x30012435: mov ebx, dword ptr [ecx + 4] */ 18104 /* cmp ebx, edx */ /* 0x30012438: cmp ebx, edx */ 18105 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 18106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18107 _flag_k = FK_CMP; 18108 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001245E; /* 0x3001243A: je 0x3001245e */ 18109 L_3001243C: 18110 eax = MEM32(ebp + 0xC); /* 0x3001243C: mov eax, dword ptr [ebp + 0xc] */ 18111 eax = MEM32(eax); /* 0x3001243F: mov eax, dword ptr [eax] */ 18112 MEM32(ebp + (-0x8)) = eax; /* 0x30012441: mov dword ptr [ebp - 8], eax */ 18113 L_30012444: 18114 eax = MEM32(ebp + (-0x8)); /* 0x30012444: mov eax, dword ptr [ebp - 8] */ 18115 esi = ebx; /* 0x30012447: mov esi, ebx */ 18116 /* cmp eax, MEM32(ebx + 0xC) */ /* 0x30012449: cmp eax, dword ptr [ebx + 0xc] */ 18117 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 18118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18119 _flag_k = FK_CMP; 18120 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3001244C: setb al */ 18121 /* test LO8(eax), LO8(eax) */ /* 0x3001244F: test al, al */ 18122 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18123 _cf = 0; 18124 _flag_k = FK_NARROW(FK_TEST, 24); 18125 if (TEST_Z(_flag_a, _flag_b)) goto L_30012457; /* 0x30012451: je 0x30012457 */ 18126 L_30012453: 18127 ebx = MEM32(ebx); /* 0x30012453: mov ebx, dword ptr [ebx] */ 18128 goto L_3001245A; /* 0x30012455: jmp 0x3001245a */ 18129 L_30012457: 18130 ebx = MEM32(ebx + 0x8); /* 0x30012457: mov ebx, dword ptr [ebx + 8] */ 18131 L_3001245A: 18132 /* cmp ebx, edx */ /* 0x3001245A: cmp ebx, edx */ 18133 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 18134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18135 _flag_k = FK_CMP; 18136 RECOMP_BACKEDGE(); 18137 if (CMP_NE(_flag_a, _flag_b)) goto L_30012444; /* 0x3001245C: jne 0x30012444 */ 18138 L_3001245E: 18139 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x3001245E: mov dl, byte ptr [edi + 0xc] */ 18140 /* test LO8(edx), LO8(edx) */ /* 0x30012461: test dl, dl */ 18141 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 18142 _cf = 0; 18143 _flag_k = FK_NARROW(FK_TEST, 24); 18144 if (TEST_Z(_flag_a, _flag_b)) goto L_300125DB; /* 0x30012463: je 0x300125db */ 18145 L_30012469: 18146 PUSH32(esp, 0); /* 0x30012469: push 0 */ 18147 PUSH32(esp, esi); /* 0x3001246B: push esi */ 18148 ecx = edi; /* 0x3001246C: mov ecx, edi */ 18149 RECOMP_ICALL(0x30013200u); /* 0x3001246E: call 0x30013200 */ /* not lifted */ 18150 RECOMP_FLAGS_IN(); 18151 ecx = MEM32(edi + 0x8); /* 0x30012473: mov ecx, dword ptr [edi + 8] */ 18152 MEM32(ebp + (-0x4)) = eax; /* 0x30012476: mov dword ptr [ebp - 4], eax */ 18153 MEM32(eax) = ecx; /* 0x30012479: mov dword ptr [eax], ecx */ 18154 edx = MEM32(edi + 0x8); /* 0x3001247B: mov edx, dword ptr [edi + 8] */ 18155 ecx = MEM32(ebp + 0xC); /* 0x3001247E: mov ecx, dword ptr [ebp + 0xc] */ 18156 MEM32(eax + 0x8) = edx; /* 0x30012481: mov dword ptr [eax + 8], edx */ 18157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 18158 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18159 eax = eax + 0xCu; /* 0x30012484: add eax, 0xc */ 18160 _flag_k = FK_ADD; 18161 PUSH32(esp, ecx); /* 0x30012487: push ecx */ 18162 PUSH32(esp, eax); /* 0x30012488: push eax */ 18163 RECOMP_ICALL(0x30013560u); /* 0x30012489: call 0x30013560 */ /* not lifted */ 18164 RECOMP_FLAGS_IN(); 18165 ecx = MEM32(edi + 0x10); /* 0x3001248E: mov ecx, dword ptr [edi + 0x10] */ 18166 eax = MEM32(edi + 0x4); /* 0x30012491: mov eax, dword ptr [edi + 4] */ 18167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 18168 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18169 esp = esp + 8; /* 0x30012494: add esp, 8 */ 18170 _flag_k = FK_ADD; 18171 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 18172 ecx = ecx + 1; /* 0x30012497: inc ecx */ 18173 _flag_k = FK_INC; 18174 /* cmp esi, eax */ /* 0x30012498: cmp esi, eax */ 18175 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 18176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18177 _flag_k = FK_CMP; 18178 MEM32(edi + 0x10) = ecx; /* 0x3001249A: mov dword ptr [edi + 0x10], ecx */ 18179 if (CMP_EQ(_flag_a, _flag_b)) goto L_300124C3; /* 0x3001249D: je 0x300124c3 */ 18180 L_3001249F: 18181 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3001249F: cmp ebx, dword ptr [edi + 8] */ 18182 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 18183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18184 _flag_k = FK_CMP; 18185 if (CMP_NE(_flag_a, _flag_b)) goto L_300124C3; /* 0x300124A2: jne 0x300124c3 */ 18186 L_300124A4: 18187 edx = MEM32(ebp + 0xC); /* 0x300124A4: mov edx, dword ptr [ebp + 0xc] */ 18188 ecx = MEM32(esi + 0xC); /* 0x300124A7: mov ecx, dword ptr [esi + 0xc] */ 18189 eax = MEM32(edx); /* 0x300124AA: mov eax, dword ptr [edx] */ 18190 /* cmp eax, ecx */ /* 0x300124AC: cmp eax, ecx */ 18191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 18192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18193 _flag_k = FK_CMP; 18194 if (CMP_B(_flag_a, _flag_b)) goto L_300124C3; /* 0x300124AE: jb 0x300124c3 */ 18195 L_300124B0: 18196 ebx = MEM32(ebp + (-0x4)); /* 0x300124B0: mov ebx, dword ptr [ebp - 4] */ 18197 MEM32(esi + 0x8) = ebx; /* 0x300124B3: mov dword ptr [esi + 8], ebx */ 18198 eax = MEM32(edi + 0x4); /* 0x300124B6: mov eax, dword ptr [edi + 4] */ 18199 /* cmp esi, MEM32(eax + 0x8) */ /* 0x300124B9: cmp esi, dword ptr [eax + 8] */ 18200 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 18201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18202 _flag_k = FK_CMP; 18203 if (CMP_NE(_flag_a, _flag_b)) goto L_300124E6; /* 0x300124BC: jne 0x300124e6 */ 18204 L_300124BE: 18205 MEM32(eax + 0x8) = ebx; /* 0x300124BE: mov dword ptr [eax + 8], ebx */ 18206 goto L_300124E6; /* 0x300124C1: jmp 0x300124e6 */ 18207 L_300124C3: 18208 ecx = MEM32(ebp + (-0x4)); /* 0x300124C3: mov ecx, dword ptr [ebp - 4] */ 18209 MEM32(esi) = ecx; /* 0x300124C6: mov dword ptr [esi], ecx */ 18210 eax = MEM32(edi + 0x4); /* 0x300124C8: mov eax, dword ptr [edi + 4] */ 18211 /* cmp esi, eax */ /* 0x300124CB: cmp esi, eax */ 18212 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 18213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18214 _flag_k = FK_CMP; 18215 if (CMP_NE(_flag_a, _flag_b)) goto L_300124DA; /* 0x300124CD: jne 0x300124da */ 18216 L_300124CF: 18217 MEM32(eax + 0x4) = ecx; /* 0x300124CF: mov dword ptr [eax + 4], ecx */ 18218 edx = MEM32(edi + 0x4); /* 0x300124D2: mov edx, dword ptr [edi + 4] */ 18219 MEM32(edx + 0x8) = ecx; /* 0x300124D5: mov dword ptr [edx + 8], ecx */ 18220 goto L_300124E3; /* 0x300124D8: jmp 0x300124e3 */ 18221 L_300124DA: 18222 /* cmp esi, MEM32(eax) */ /* 0x300124DA: cmp esi, dword ptr [eax] */ 18223 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 18224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18225 _flag_k = FK_CMP; 18226 if (CMP_NE(_flag_a, _flag_b)) goto L_300124E3; /* 0x300124DC: jne 0x300124e3 */ 18227 L_300124DE: 18228 ecx = MEM32(ebp + (-0x4)); /* 0x300124DE: mov ecx, dword ptr [ebp - 4] */ 18229 MEM32(eax) = ecx; /* 0x300124E1: mov dword ptr [eax], ecx */ 18230 L_300124E3: 18231 ebx = MEM32(ebp + (-0x4)); /* 0x300124E3: mov ebx, dword ptr [ebp - 4] */ 18232 L_300124E6: 18233 edx = MEM32(edi + 0x4); /* 0x300124E6: mov edx, dword ptr [edi + 4] */ 18234 esi = ebx; /* 0x300124E9: mov esi, ebx */ 18235 /* cmp ebx, MEM32(edx + 0x4) */ /* 0x300124EB: cmp ebx, dword ptr [edx + 4] */ 18236 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 18237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18238 _flag_k = FK_CMP; 18239 if (CMP_EQ(_flag_a, _flag_b)) goto L_300125B9; /* 0x300124EE: je 0x300125b9 */ 18240 L_300124F4: 18241 eax = MEM32(esi + 0x4); /* 0x300124F4: mov eax, dword ptr [esi + 4] */ 18242 SET_LO8(ecx, MEM8(eax + 0x14)); /* 0x300124F7: mov cl, byte ptr [eax + 0x14] */ 18243 /* test LO8(ecx), LO8(ecx) */ /* 0x300124FA: test cl, cl */ 18244 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 18245 _cf = 0; 18246 _flag_k = FK_NARROW(FK_TEST, 24); 18247 if (TEST_NZ(_flag_a, _flag_b)) goto L_300125B9; /* 0x300124FC: jne 0x300125b9 */ 18248 L_30012502: 18249 edx = MEM32(eax + 0x4); /* 0x30012502: mov edx, dword ptr [eax + 4] */ 18250 ecx = MEM32(edx); /* 0x30012505: mov ecx, dword ptr [edx] */ 18251 /* cmp eax, ecx */ /* 0x30012507: cmp eax, ecx */ 18252 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 18253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18254 _flag_k = FK_CMP; 18255 if (CMP_NE(_flag_a, _flag_b)) goto L_3001255F; /* 0x30012509: jne 0x3001255f */ 18256 L_3001250B: 18257 ecx = MEM32(edx + 0x8); /* 0x3001250B: mov ecx, dword ptr [edx + 8] */ 18258 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3001250E: mov dl, byte ptr [ecx + 0x14] */ 18259 /* test LO8(edx), LO8(edx) */ /* 0x30012511: test dl, dl */ 18260 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 18261 _cf = 0; 18262 _flag_k = FK_NARROW(FK_TEST, 24); 18263 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001252F; /* 0x30012513: jne 0x3001252f */ 18264 L_30012515: 18265 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x30012515: mov byte ptr [eax + 0x14], 1 */ 18266 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x30012519: mov byte ptr [ecx + 0x14], 1 */ 18267 eax = MEM32(esi + 0x4); /* 0x3001251D: mov eax, dword ptr [esi + 4] */ 18268 ecx = MEM32(eax + 0x4); /* 0x30012520: mov ecx, dword ptr [eax + 4] */ 18269 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012523: mov byte ptr [ecx + 0x14], 0 */ 18270 edx = MEM32(esi + 0x4); /* 0x30012527: mov edx, dword ptr [esi + 4] */ 18271 esi = MEM32(edx + 0x4); /* 0x3001252A: mov esi, dword ptr [edx + 4] */ 18272 goto L_300125AD; /* 0x3001252D: jmp 0x300125ad */ 18273 L_3001252F: 18274 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3001252F: cmp esi, dword ptr [eax + 8] */ 18275 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 18276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18277 _flag_k = FK_CMP; 18278 if (CMP_NE(_flag_a, _flag_b)) goto L_3001253E; /* 0x30012532: jne 0x3001253e */ 18279 L_30012534: 18280 esi = eax; /* 0x30012534: mov esi, eax */ 18281 ecx = edi; /* 0x30012536: mov ecx, edi */ 18282 PUSH32(esp, esi); /* 0x30012538: push esi */ 18283 RECOMP_ICALL(0x300131A0u); /* 0x30012539: call 0x300131a0 */ /* not lifted */ 18284 RECOMP_FLAGS_IN(); 18285 L_3001253E: 18286 eax = MEM32(esi + 0x4); /* 0x3001253E: mov eax, dword ptr [esi + 4] */ 18287 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x30012541: mov byte ptr [eax + 0x14], 1 */ 18288 ecx = MEM32(esi + 0x4); /* 0x30012545: mov ecx, dword ptr [esi + 4] */ 18289 edx = MEM32(ecx + 0x4); /* 0x30012548: mov edx, dword ptr [ecx + 4] */ 18290 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3001254B: mov byte ptr [edx + 0x14], 0 */ 18291 eax = MEM32(esi + 0x4); /* 0x3001254F: mov eax, dword ptr [esi + 4] */ 18292 ecx = MEM32(eax + 0x4); /* 0x30012552: mov ecx, dword ptr [eax + 4] */ 18293 PUSH32(esp, ecx); /* 0x30012555: push ecx */ 18294 ecx = edi; /* 0x30012556: mov ecx, edi */ 18295 RECOMP_ICALL(0x30012ED0u); /* 0x30012558: call 0x30012ed0 */ /* not lifted */ 18296 RECOMP_FLAGS_IN(); 18297 goto L_300125AD; /* 0x3001255D: jmp 0x300125ad */ 18298 L_3001255F: 18299 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3001255F: mov dl, byte ptr [ecx + 0x14] */ 18300 /* test LO8(edx), LO8(edx) */ /* 0x30012562: test dl, dl */ 18301 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 18302 _cf = 0; 18303 _flag_k = FK_NARROW(FK_TEST, 24); 18304 if (TEST_NZ(_flag_a, _flag_b)) goto L_30012580; /* 0x30012564: jne 0x30012580 */ 18305 L_30012566: 18306 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x30012566: mov byte ptr [eax + 0x14], 1 */ 18307 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x3001256A: mov byte ptr [ecx + 0x14], 1 */ 18308 edx = MEM32(esi + 0x4); /* 0x3001256E: mov edx, dword ptr [esi + 4] */ 18309 eax = MEM32(edx + 0x4); /* 0x30012571: mov eax, dword ptr [edx + 4] */ 18310 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x30012574: mov byte ptr [eax + 0x14], 0 */ 18311 ecx = MEM32(esi + 0x4); /* 0x30012578: mov ecx, dword ptr [esi + 4] */ 18312 esi = MEM32(ecx + 0x4); /* 0x3001257B: mov esi, dword ptr [ecx + 4] */ 18313 goto L_300125AD; /* 0x3001257E: jmp 0x300125ad */ 18314 L_30012580: 18315 /* cmp esi, MEM32(eax) */ /* 0x30012580: cmp esi, dword ptr [eax] */ 18316 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 18317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18318 _flag_k = FK_CMP; 18319 if (CMP_NE(_flag_a, _flag_b)) goto L_3001258E; /* 0x30012582: jne 0x3001258e */ 18320 L_30012584: 18321 esi = eax; /* 0x30012584: mov esi, eax */ 18322 ecx = edi; /* 0x30012586: mov ecx, edi */ 18323 PUSH32(esp, esi); /* 0x30012588: push esi */ 18324 RECOMP_ICALL(0x30012ED0u); /* 0x30012589: call 0x30012ed0 */ /* not lifted */ 18325 RECOMP_FLAGS_IN(); 18326 L_3001258E: 18327 edx = MEM32(esi + 0x4); /* 0x3001258E: mov edx, dword ptr [esi + 4] */ 18328 MEM8(edx + 0x14) = (uint8_t)(1); /* 0x30012591: mov byte ptr [edx + 0x14], 1 */ 18329 eax = MEM32(esi + 0x4); /* 0x30012595: mov eax, dword ptr [esi + 4] */ 18330 ecx = MEM32(eax + 0x4); /* 0x30012598: mov ecx, dword ptr [eax + 4] */ 18331 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3001259B: mov byte ptr [ecx + 0x14], 0 */ 18332 edx = MEM32(esi + 0x4); /* 0x3001259F: mov edx, dword ptr [esi + 4] */ 18333 ecx = edi; /* 0x300125A2: mov ecx, edi */ 18334 eax = MEM32(edx + 0x4); /* 0x300125A4: mov eax, dword ptr [edx + 4] */ 18335 PUSH32(esp, eax); /* 0x300125A7: push eax */ 18336 RECOMP_ICALL(0x300131A0u); /* 0x300125A8: call 0x300131a0 */ /* not lifted */ 18337 RECOMP_FLAGS_IN(); 18338 L_300125AD: 18339 ecx = MEM32(edi + 0x4); /* 0x300125AD: mov ecx, dword ptr [edi + 4] */ 18340 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x300125B0: cmp esi, dword ptr [ecx + 4] */ 18341 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 18342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18343 _flag_k = FK_CMP; 18344 RECOMP_BACKEDGE(); 18345 if (CMP_NE(_flag_a, _flag_b)) goto L_300124F4; /* 0x300125B3: jne 0x300124f4 */ 18346 L_300125B9: 18347 edx = MEM32(edi + 0x4); /* 0x300125B9: mov edx, dword ptr [edi + 4] */ 18348 edi = POP32_VAL(esp); /* 0x300125BC: pop edi */ 18349 esi = POP32_VAL(esp); /* 0x300125BD: pop esi */ 18350 eax = MEM32(edx + 0x4); /* 0x300125BE: mov eax, dword ptr [edx + 4] */ 18351 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x300125C1: mov byte ptr [eax + 0x14], 1 */ 18352 eax = MEM32(ebp + 0x8); /* 0x300125C5: mov eax, dword ptr [ebp + 8] */ 18353 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x300125C8: mov byte ptr [ebp - 8], 1 */ 18354 ecx = MEM32(ebp + (-0x8)); /* 0x300125CC: mov ecx, dword ptr [ebp - 8] */ 18355 MEM32(eax) = ebx; /* 0x300125CF: mov dword ptr [eax], ebx */ 18356 MEM32(eax + 0x4) = ecx; /* 0x300125D1: mov dword ptr [eax + 4], ecx */ 18357 ebx = POP32_VAL(esp); /* 0x300125D4: pop ebx */ 18358 esp = ebp; /* 0x300125D5: mov esp, ebp */ 18359 ebp = POP32_VAL(esp); /* 0x300125D7: pop ebp */ 18360 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x300125D8: ret 8 */ 18361 L_300125DB: 18362 edx = esi; /* 0x300125DB: mov edx, esi */ 18363 /* test LO8(eax), LO8(eax) */ /* 0x300125DD: test al, al */ 18364 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18365 _cf = 0; 18366 _flag_k = FK_NARROW(FK_TEST, 24); 18367 MEM32(ebp + (-0x8)) = edx; /* 0x300125DF: mov dword ptr [ebp - 8], edx */ 18368 if (TEST_Z(_flag_a, _flag_b)) goto L_3001261E; /* 0x300125E2: je 0x3001261e */ 18369 L_300125E4: 18370 /* cmp esi, MEM32(ecx) */ /* 0x300125E4: cmp esi, dword ptr [ecx] */ 18371 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 18372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18373 _flag_k = FK_CMP; 18374 if (CMP_NE(_flag_a, _flag_b)) goto L_30012613; /* 0x300125E6: jne 0x30012613 */ 18375 L_300125E8: 18376 edx = MEM32(ebp + 0xC); /* 0x300125E8: mov edx, dword ptr [ebp + 0xc] */ 18377 eax = ebp + 0xC; /* 0x300125EB: lea eax, [ebp + 0xc] */ 18378 PUSH32(esp, edx); /* 0x300125EE: push edx */ 18379 PUSH32(esp, esi); /* 0x300125EF: push esi */ 18380 PUSH32(esp, ebx); /* 0x300125F0: push ebx */ 18381 PUSH32(esp, eax); /* 0x300125F1: push eax */ 18382 ecx = edi; /* 0x300125F2: mov ecx, edi */ 18383 RECOMP_ICALL(0x30012F60u); /* 0x300125F4: call 0x30012f60 */ /* not lifted */ 18384 RECOMP_FLAGS_IN(); 18385 ecx = MEM32(eax); /* 0x300125F9: mov ecx, dword ptr [eax] */ 18386 eax = MEM32(ebp + 0x8); /* 0x300125FB: mov eax, dword ptr [ebp + 8] */ 18387 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x300125FE: mov byte ptr [ebp - 8], 1 */ 18388 edi = POP32_VAL(esp); /* 0x30012602: pop edi */ 18389 MEM32(eax) = ecx; /* 0x30012603: mov dword ptr [eax], ecx */ 18390 ecx = MEM32(ebp + (-0x8)); /* 0x30012605: mov ecx, dword ptr [ebp - 8] */ 18391 esi = POP32_VAL(esp); /* 0x30012608: pop esi */ 18392 MEM32(eax + 0x4) = ecx; /* 0x30012609: mov dword ptr [eax + 4], ecx */ 18393 ebx = POP32_VAL(esp); /* 0x3001260C: pop ebx */ 18394 esp = ebp; /* 0x3001260D: mov esp, ebp */ 18395 ebp = POP32_VAL(esp); /* 0x3001260F: pop ebp */ 18396 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012610: ret 8 */ 18397 L_30012613: 18398 ecx = ebp + (-0x8); /* 0x30012613: lea ecx, [ebp - 8] */ 18399 RECOMP_ICALL(0x300134D0u); /* 0x30012616: call 0x300134d0 */ /* not lifted */ 18400 RECOMP_FLAGS_IN(); 18401 edx = MEM32(ebp + (-0x8)); /* 0x3001261B: mov edx, dword ptr [ebp - 8] */ 18402 L_3001261E: 18403 eax = MEM32(ebp + 0xC); /* 0x3001261E: mov eax, dword ptr [ebp + 0xc] */ 18404 ecx = MEM32(edx + 0xC); /* 0x30012621: mov ecx, dword ptr [edx + 0xc] */ 18405 /* cmp ecx, MEM32(eax) */ /* 0x30012624: cmp ecx, dword ptr [eax] */ 18406 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 18407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18408 _flag_k = FK_CMP; 18409 if (CMP_AE(_flag_a, _flag_b)) goto L_30012650; /* 0x30012626: jae 0x30012650 */ 18410 L_30012628: 18411 PUSH32(esp, eax); /* 0x30012628: push eax */ 18412 PUSH32(esp, esi); /* 0x30012629: push esi */ 18413 edx = ebp + 0xC; /* 0x3001262A: lea edx, [ebp + 0xc] */ 18414 PUSH32(esp, ebx); /* 0x3001262D: push ebx */ 18415 PUSH32(esp, edx); /* 0x3001262E: push edx */ 18416 ecx = edi; /* 0x3001262F: mov ecx, edi */ 18417 RECOMP_ICALL(0x30012F60u); /* 0x30012631: call 0x30012f60 */ /* not lifted */ 18418 RECOMP_FLAGS_IN(); 18419 ecx = MEM32(eax); /* 0x30012636: mov ecx, dword ptr [eax] */ 18420 eax = MEM32(ebp + 0x8); /* 0x30012638: mov eax, dword ptr [ebp + 8] */ 18421 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3001263B: mov byte ptr [ebp - 8], 1 */ 18422 edi = POP32_VAL(esp); /* 0x3001263F: pop edi */ 18423 MEM32(eax) = ecx; /* 0x30012640: mov dword ptr [eax], ecx */ 18424 ecx = MEM32(ebp + (-0x8)); /* 0x30012642: mov ecx, dword ptr [ebp - 8] */ 18425 esi = POP32_VAL(esp); /* 0x30012645: pop esi */ 18426 MEM32(eax + 0x4) = ecx; /* 0x30012646: mov dword ptr [eax + 4], ecx */ 18427 ebx = POP32_VAL(esp); /* 0x30012649: pop ebx */ 18428 esp = ebp; /* 0x3001264A: mov esp, ebp */ 18429 ebp = POP32_VAL(esp); /* 0x3001264C: pop ebp */ 18430 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3001264D: ret 8 */ 18431 L_30012650: 18432 eax = MEM32(ebp + 0x8); /* 0x30012650: mov eax, dword ptr [ebp + 8] */ 18433 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x30012653: mov byte ptr [ebp - 8], 0 */ 18434 edi = POP32_VAL(esp); /* 0x30012657: pop edi */ 18435 esi = POP32_VAL(esp); /* 0x30012658: pop esi */ 18436 MEM32(eax) = edx; /* 0x30012659: mov dword ptr [eax], edx */ 18437 edx = MEM32(ebp + (-0x8)); /* 0x3001265B: mov edx, dword ptr [ebp - 8] */ 18438 MEM32(eax + 0x4) = edx; /* 0x3001265E: mov dword ptr [eax + 4], edx */ 18439 ebx = POP32_VAL(esp); /* 0x30012661: pop ebx */ 18440 esp = ebp; /* 0x30012662: mov esp, ebp */ 18441 ebp = POP32_VAL(esp); /* 0x30012664: pop ebp */ 18442 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012665: ret 8 */ 18443 RECOMP_REGS_OUT(); 18444 } 18445 18446 void sub_30012670(void) { 18447 int _fpu_cmp = 0; 18448 uint32_t _cf = 0; 18449 int _df = 1; 18450 uint32_t _flag_k = FK_NONE; 18451 uint32_t _flag_a = 0, _flag_b = 0; 18452 uint32_t _itail_tgt = 0; 18453 RECOMP_REGS_LOCALS 18454 RECOMP_ENTER(0x30012670u); 18455 18456 L_30012670: 18457 PUSH32(esp, ebp); /* 0x30012670: push ebp */ 18458 ebp = esp; /* 0x30012671: mov ebp, esp */ 18459 PUSH32(esp, ecx); /* 0x30012673: push ecx */ 18460 PUSH32(esp, ebx); /* 0x30012674: push ebx */ 18461 PUSH32(esp, esi); /* 0x30012675: push esi */ 18462 esi = MEM32(ebp + 0xC); /* 0x30012676: mov esi, dword ptr [ebp + 0xc] */ 18463 PUSH32(esp, edi); /* 0x30012679: push edi */ 18464 edi = ecx; /* 0x3001267A: mov edi, ecx */ 18465 ecx = ebp + 0xC; /* 0x3001267C: lea ecx, [ebp + 0xc] */ 18466 RECOMP_ICALL(0x300117B0u); /* 0x3001267F: call 0x300117b0 */ /* not lifted */ 18467 RECOMP_FLAGS_IN(); 18468 edx = MEM32(esi); /* 0x30012684: mov edx, dword ptr [esi] */ 18469 eax = MEM32(edi + 0x8); /* 0x30012686: mov eax, dword ptr [edi + 8] */ 18470 /* cmp edx, eax */ /* 0x30012689: cmp edx, eax */ 18471 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 18472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18473 _flag_k = FK_CMP; 18474 MEM32(ebp + (-0x4)) = esi; /* 0x3001268B: mov dword ptr [ebp - 4], esi */ 18475 if (CMP_NE(_flag_a, _flag_b)) goto L_300126B0; /* 0x3001268E: jne 0x300126b0 */ 18476 L_30012690: 18477 eax = MEM32(esi + 0x8); /* 0x30012690: mov eax, dword ptr [esi + 8] */ 18478 L_30012693: 18479 ecx = MEM32(ebp + (-0x4)); /* 0x30012693: mov ecx, dword ptr [ebp - 4] */ 18480 edx = MEM32(ecx + 0x4); /* 0x30012696: mov edx, dword ptr [ecx + 4] */ 18481 MEM32(eax + 0x4) = edx; /* 0x30012699: mov dword ptr [eax + 4], edx */ 18482 ecx = MEM32(edi + 0x4); /* 0x3001269C: mov ecx, dword ptr [edi + 4] */ 18483 /* cmp MEM32(ecx + 0x4), esi */ /* 0x3001269F: cmp dword ptr [ecx + 4], esi */ 18484 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 18485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18486 _flag_k = FK_CMP; 18487 if (CMP_NE(_flag_a, _flag_b)) goto L_30012735; /* 0x300126A2: jne 0x30012735 */ 18488 L_300126A8: 18489 MEM32(ecx + 0x4) = eax; /* 0x300126A8: mov dword ptr [ecx + 4], eax */ 18490 goto L_30012743; /* 0x300126AB: jmp 0x30012743 */ 18491 L_300126B0: 18492 ecx = MEM32(esi + 0x8); /* 0x300126B0: mov ecx, dword ptr [esi + 8] */ 18493 /* cmp ecx, eax */ /* 0x300126B3: cmp ecx, eax */ 18494 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 18495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18496 _flag_k = FK_CMP; 18497 if (CMP_NE(_flag_a, _flag_b)) goto L_300126BB; /* 0x300126B5: jne 0x300126bb */ 18498 L_300126B7: 18499 eax = edx; /* 0x300126B7: mov eax, edx */ 18500 RECOMP_BACKEDGE(); 18501 goto L_30012693; /* 0x300126B9: jmp 0x30012693 */ 18502 L_300126BB: 18503 eax = MEM32(ecx); /* 0x300126BB: mov eax, dword ptr [ecx] */ 18504 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x300126BD: mov bl, byte ptr [eax + 0x15] */ 18505 /* test LO8(ebx), LO8(ebx) */ /* 0x300126C0: test bl, bl */ 18506 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18507 _cf = 0; 18508 _flag_k = FK_NARROW(FK_TEST, 24); 18509 if (TEST_NZ(_flag_a, _flag_b)) goto L_300126CF; /* 0x300126C2: jne 0x300126cf */ 18510 L_300126C4: 18511 ecx = eax; /* 0x300126C4: mov ecx, eax */ 18512 eax = MEM32(ecx); /* 0x300126C6: mov eax, dword ptr [ecx] */ 18513 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x300126C8: mov bl, byte ptr [eax + 0x15] */ 18514 /* test LO8(ebx), LO8(ebx) */ /* 0x300126CB: test bl, bl */ 18515 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18516 _cf = 0; 18517 _flag_k = FK_NARROW(FK_TEST, 24); 18518 RECOMP_BACKEDGE(); 18519 if (TEST_Z(_flag_a, _flag_b)) goto L_300126C4; /* 0x300126CD: je 0x300126c4 */ 18520 L_300126CF: 18521 eax = MEM32(ecx + 0x8); /* 0x300126CF: mov eax, dword ptr [ecx + 8] */ 18522 /* cmp ecx, esi */ /* 0x300126D2: cmp ecx, esi */ 18523 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 18524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18525 _flag_k = FK_CMP; 18526 MEM32(ebp + (-0x4)) = ecx; /* 0x300126D4: mov dword ptr [ebp - 4], ecx */ 18527 RECOMP_BACKEDGE(); 18528 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012693; /* 0x300126D7: je 0x30012693 */ 18529 L_300126D9: 18530 MEM32(edx + 0x4) = ecx; /* 0x300126D9: mov dword ptr [edx + 4], ecx */ 18531 edx = MEM32(esi); /* 0x300126DC: mov edx, dword ptr [esi] */ 18532 MEM32(ecx) = edx; /* 0x300126DE: mov dword ptr [ecx], edx */ 18533 edx = MEM32(esi + 0x8); /* 0x300126E0: mov edx, dword ptr [esi + 8] */ 18534 /* cmp ecx, edx */ /* 0x300126E3: cmp ecx, edx */ 18535 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 18536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18537 _flag_k = FK_CMP; 18538 if (CMP_NE(_flag_a, _flag_b)) goto L_300126EC; /* 0x300126E5: jne 0x300126ec */ 18539 L_300126E7: 18540 MEM32(eax + 0x4) = ecx; /* 0x300126E7: mov dword ptr [eax + 4], ecx */ 18541 goto L_30012703; /* 0x300126EA: jmp 0x30012703 */ 18542 L_300126EC: 18543 edx = MEM32(ecx + 0x4); /* 0x300126EC: mov edx, dword ptr [ecx + 4] */ 18544 MEM32(eax + 0x4) = edx; /* 0x300126EF: mov dword ptr [eax + 4], edx */ 18545 edx = MEM32(ecx + 0x4); /* 0x300126F2: mov edx, dword ptr [ecx + 4] */ 18546 MEM32(edx) = eax; /* 0x300126F5: mov dword ptr [edx], eax */ 18547 edx = MEM32(esi + 0x8); /* 0x300126F7: mov edx, dword ptr [esi + 8] */ 18548 MEM32(ecx + 0x8) = edx; /* 0x300126FA: mov dword ptr [ecx + 8], edx */ 18549 edx = MEM32(esi + 0x8); /* 0x300126FD: mov edx, dword ptr [esi + 8] */ 18550 MEM32(edx + 0x4) = ecx; /* 0x30012700: mov dword ptr [edx + 4], ecx */ 18551 L_30012703: 18552 edx = MEM32(edi + 0x4); /* 0x30012703: mov edx, dword ptr [edi + 4] */ 18553 /* cmp MEM32(edx + 0x4), esi */ /* 0x30012706: cmp dword ptr [edx + 4], esi */ 18554 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 18555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18556 _flag_k = FK_CMP; 18557 if (CMP_NE(_flag_a, _flag_b)) goto L_30012710; /* 0x30012709: jne 0x30012710 */ 18558 L_3001270B: 18559 MEM32(edx + 0x4) = ecx; /* 0x3001270B: mov dword ptr [edx + 4], ecx */ 18560 goto L_3001271E; /* 0x3001270E: jmp 0x3001271e */ 18561 L_30012710: 18562 edx = MEM32(esi + 0x4); /* 0x30012710: mov edx, dword ptr [esi + 4] */ 18563 /* cmp MEM32(edx), esi */ /* 0x30012713: cmp dword ptr [edx], esi */ 18564 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 18565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18566 _flag_k = FK_CMP; 18567 if (CMP_NE(_flag_a, _flag_b)) goto L_3001271B; /* 0x30012715: jne 0x3001271b */ 18568 L_30012717: 18569 MEM32(edx) = ecx; /* 0x30012717: mov dword ptr [edx], ecx */ 18570 goto L_3001271E; /* 0x30012719: jmp 0x3001271e */ 18571 L_3001271B: 18572 MEM32(edx + 0x8) = ecx; /* 0x3001271B: mov dword ptr [edx + 8], ecx */ 18573 L_3001271E: 18574 edx = MEM32(esi + 0x4); /* 0x3001271E: mov edx, dword ptr [esi + 4] */ 18575 MEM32(ebp + (-0x4)) = esi; /* 0x30012721: mov dword ptr [ebp - 4], esi */ 18576 MEM32(ecx + 0x4) = edx; /* 0x30012724: mov dword ptr [ecx + 4], edx */ 18577 SET_LO8(ebx, MEM8(esi + 0x14)); /* 0x30012727: mov bl, byte ptr [esi + 0x14] */ 18578 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3001272A: mov dl, byte ptr [ecx + 0x14] */ 18579 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001272D: mov byte ptr [ecx + 0x14], bl */ 18580 MEM8(esi + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012730: mov byte ptr [esi + 0x14], dl */ 18581 goto L_3001279E; /* 0x30012733: jmp 0x3001279e */ 18582 L_30012735: 18583 ecx = MEM32(esi + 0x4); /* 0x30012735: mov ecx, dword ptr [esi + 4] */ 18584 /* cmp MEM32(ecx), esi */ /* 0x30012738: cmp dword ptr [ecx], esi */ 18585 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 18586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18587 _flag_k = FK_CMP; 18588 if (CMP_NE(_flag_a, _flag_b)) goto L_30012740; /* 0x3001273A: jne 0x30012740 */ 18589 L_3001273C: 18590 MEM32(ecx) = eax; /* 0x3001273C: mov dword ptr [ecx], eax */ 18591 goto L_30012743; /* 0x3001273E: jmp 0x30012743 */ 18592 L_30012740: 18593 MEM32(ecx + 0x8) = eax; /* 0x30012740: mov dword ptr [ecx + 8], eax */ 18594 L_30012743: 18595 ebx = MEM32(edi + 0x4); /* 0x30012743: mov ebx, dword ptr [edi + 4] */ 18596 /* cmp MEM32(ebx), esi */ /* 0x30012746: cmp dword ptr [ebx], esi */ 18597 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 18598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18599 _flag_k = FK_CMP; 18600 if (CMP_NE(_flag_a, _flag_b)) goto L_3001276F; /* 0x30012748: jne 0x3001276f */ 18601 L_3001274A: 18602 ecx = MEM32(esi + 0x8); /* 0x3001274A: mov ecx, dword ptr [esi + 8] */ 18603 edx = MEM32(edi + 0x8); /* 0x3001274D: mov edx, dword ptr [edi + 8] */ 18604 /* cmp ecx, edx */ /* 0x30012750: cmp ecx, edx */ 18605 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 18606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18607 _flag_k = FK_CMP; 18608 if (CMP_NE(_flag_a, _flag_b)) goto L_30012759; /* 0x30012752: jne 0x30012759 */ 18609 L_30012754: 18610 edx = MEM32(esi + 0x4); /* 0x30012754: mov edx, dword ptr [esi + 4] */ 18611 goto L_3001276D; /* 0x30012757: jmp 0x3001276d */ 18612 L_30012759: 18613 ecx = MEM32(eax); /* 0x30012759: mov ecx, dword ptr [eax] */ 18614 edx = eax; /* 0x3001275B: mov edx, eax */ 18615 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3001275D: cmp byte ptr [ecx + 0x15], 0 */ 18616 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 18617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18618 _flag_k = FK_NARROW(FK_CMP, 24); 18619 if (CMP_NE(_flag_a, _flag_b)) goto L_3001276D; /* 0x30012761: jne 0x3001276d */ 18620 L_30012763: 18621 edx = ecx; /* 0x30012763: mov edx, ecx */ 18622 ecx = MEM32(edx); /* 0x30012765: mov ecx, dword ptr [edx] */ 18623 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x30012767: cmp byte ptr [ecx + 0x15], 0 */ 18624 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 18625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18626 _flag_k = FK_NARROW(FK_CMP, 24); 18627 RECOMP_BACKEDGE(); 18628 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012763; /* 0x3001276B: je 0x30012763 */ 18629 L_3001276D: 18630 MEM32(ebx) = edx; /* 0x3001276D: mov dword ptr [ebx], edx */ 18631 L_3001276F: 18632 ebx = MEM32(edi + 0x4); /* 0x3001276F: mov ebx, dword ptr [edi + 4] */ 18633 /* cmp MEM32(ebx + 0x8), esi */ /* 0x30012772: cmp dword ptr [ebx + 8], esi */ 18634 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 18635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18636 _flag_k = FK_CMP; 18637 if (CMP_NE(_flag_a, _flag_b)) goto L_3001279E; /* 0x30012775: jne 0x3001279e */ 18638 L_30012777: 18639 ecx = MEM32(esi); /* 0x30012777: mov ecx, dword ptr [esi] */ 18640 edx = MEM32(edi + 0x8); /* 0x30012779: mov edx, dword ptr [edi + 8] */ 18641 /* cmp ecx, edx */ /* 0x3001277C: cmp ecx, edx */ 18642 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 18643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18644 _flag_k = FK_CMP; 18645 if (CMP_NE(_flag_a, _flag_b)) goto L_30012785; /* 0x3001277E: jne 0x30012785 */ 18646 L_30012780: 18647 edx = MEM32(esi + 0x4); /* 0x30012780: mov edx, dword ptr [esi + 4] */ 18648 goto L_3001279B; /* 0x30012783: jmp 0x3001279b */ 18649 L_30012785: 18650 ecx = MEM32(eax + 0x8); /* 0x30012785: mov ecx, dword ptr [eax + 8] */ 18651 edx = eax; /* 0x30012788: mov edx, eax */ 18652 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3001278A: cmp byte ptr [ecx + 0x15], 0 */ 18653 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 18654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18655 _flag_k = FK_NARROW(FK_CMP, 24); 18656 if (CMP_NE(_flag_a, _flag_b)) goto L_3001279B; /* 0x3001278E: jne 0x3001279b */ 18657 L_30012790: 18658 edx = ecx; /* 0x30012790: mov edx, ecx */ 18659 ecx = MEM32(edx + 0x8); /* 0x30012792: mov ecx, dword ptr [edx + 8] */ 18660 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x30012795: cmp byte ptr [ecx + 0x15], 0 */ 18661 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 18662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18663 _flag_k = FK_NARROW(FK_CMP, 24); 18664 RECOMP_BACKEDGE(); 18665 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012790; /* 0x30012799: je 0x30012790 */ 18666 L_3001279B: 18667 MEM32(ebx + 0x8) = edx; /* 0x3001279B: mov dword ptr [ebx + 8], edx */ 18668 L_3001279E: 18669 ecx = MEM32(ebp + (-0x4)); /* 0x3001279E: mov ecx, dword ptr [ebp - 4] */ 18670 SET_LO8(ebx, 1); /* 0x300127A1: mov bl, 1 */ 18671 /* cmp MEM8(ecx + 0x14), LO8(ebx) */ /* 0x300127A3: cmp byte ptr [ecx + 0x14], bl */ 18672 _flag_a = (uint32_t)(MEM8(ecx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18674 _flag_k = FK_NARROW(FK_CMP, 24); 18675 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A09; /* 0x300127A6: jne 0x30012a09 */ 18676 L_300127AC: 18677 edx = MEM32(edi + 0x4); /* 0x300127AC: mov edx, dword ptr [edi + 4] */ 18678 /* cmp eax, MEM32(edx + 0x4) */ /* 0x300127AF: cmp eax, dword ptr [edx + 4] */ 18679 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 18680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18681 _flag_k = FK_CMP; 18682 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127B2: je 0x30012a06 */ 18683 L_300127B8: 18684 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x300127B8: cmp byte ptr [eax + 0x14], bl */ 18685 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18687 _flag_k = FK_NARROW(FK_CMP, 24); 18688 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127BB: jne 0x30012a06 */ 18689 L_300127C1: 18690 edx = MEM32(eax + 0x4); /* 0x300127C1: mov edx, dword ptr [eax + 4] */ 18691 ecx = MEM32(edx); /* 0x300127C4: mov ecx, dword ptr [edx] */ 18692 /* cmp eax, ecx */ /* 0x300127C6: cmp eax, ecx */ 18693 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 18694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18695 _flag_k = FK_CMP; 18696 if (CMP_NE(_flag_a, _flag_b)) goto L_30012838; /* 0x300127C8: jne 0x30012838 */ 18697 L_300127CA: 18698 ecx = MEM32(edx + 0x8); /* 0x300127CA: mov ecx, dword ptr [edx + 8] */ 18699 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x300127CD: mov dl, byte ptr [ecx + 0x14] */ 18700 /* test LO8(edx), LO8(edx) */ /* 0x300127D0: test dl, dl */ 18701 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 18702 _cf = 0; 18703 _flag_k = FK_NARROW(FK_TEST, 24); 18704 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001281F; /* 0x300127D2: jne 0x3001281f */ 18705 L_300127D4: 18706 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300127D4: mov byte ptr [ecx + 0x14], bl */ 18707 ecx = MEM32(eax + 0x4); /* 0x300127D7: mov ecx, dword ptr [eax + 4] */ 18708 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300127DA: mov byte ptr [ecx + 0x14], 0 */ 18709 ecx = MEM32(eax + 0x4); /* 0x300127DE: mov ecx, dword ptr [eax + 4] */ 18710 edx = MEM32(ecx + 0x8); /* 0x300127E1: mov edx, dword ptr [ecx + 8] */ 18711 esi = MEM32(edx); /* 0x300127E4: mov esi, dword ptr [edx] */ 18712 MEM32(ecx + 0x8) = esi; /* 0x300127E6: mov dword ptr [ecx + 8], esi */ 18713 esi = MEM32(edx); /* 0x300127E9: mov esi, dword ptr [edx] */ 18714 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300127EB: cmp esi, dword ptr [edi + 8] */ 18715 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 18716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18717 _flag_k = FK_CMP; 18718 if (CMP_EQ(_flag_a, _flag_b)) goto L_300127F3; /* 0x300127EE: je 0x300127f3 */ 18719 L_300127F0: 18720 MEM32(esi + 0x4) = ecx; /* 0x300127F0: mov dword ptr [esi + 4], ecx */ 18721 L_300127F3: 18722 esi = MEM32(ecx + 0x4); /* 0x300127F3: mov esi, dword ptr [ecx + 4] */ 18723 MEM32(edx + 0x4) = esi; /* 0x300127F6: mov dword ptr [edx + 4], esi */ 18724 esi = MEM32(edi + 0x4); /* 0x300127F9: mov esi, dword ptr [edi + 4] */ 18725 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300127FC: cmp ecx, dword ptr [esi + 4] */ 18726 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 18727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18728 _flag_k = FK_CMP; 18729 if (CMP_NE(_flag_a, _flag_b)) goto L_30012806; /* 0x300127FF: jne 0x30012806 */ 18730 L_30012801: 18731 MEM32(esi + 0x4) = edx; /* 0x30012801: mov dword ptr [esi + 4], edx */ 18732 goto L_30012814; /* 0x30012804: jmp 0x30012814 */ 18733 L_30012806: 18734 esi = MEM32(ecx + 0x4); /* 0x30012806: mov esi, dword ptr [ecx + 4] */ 18735 /* cmp ecx, MEM32(esi) */ /* 0x30012809: cmp ecx, dword ptr [esi] */ 18736 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 18737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18738 _flag_k = FK_CMP; 18739 if (CMP_NE(_flag_a, _flag_b)) goto L_30012811; /* 0x3001280B: jne 0x30012811 */ 18740 L_3001280D: 18741 MEM32(esi) = edx; /* 0x3001280D: mov dword ptr [esi], edx */ 18742 goto L_30012814; /* 0x3001280F: jmp 0x30012814 */ 18743 L_30012811: 18744 MEM32(esi + 0x8) = edx; /* 0x30012811: mov dword ptr [esi + 8], edx */ 18745 L_30012814: 18746 MEM32(edx) = ecx; /* 0x30012814: mov dword ptr [edx], ecx */ 18747 MEM32(ecx + 0x4) = edx; /* 0x30012816: mov dword ptr [ecx + 4], edx */ 18748 edx = MEM32(eax + 0x4); /* 0x30012819: mov edx, dword ptr [eax + 4] */ 18749 ecx = MEM32(edx + 0x8); /* 0x3001281C: mov ecx, dword ptr [edx + 8] */ 18750 L_3001281F: 18751 edx = MEM32(ecx); /* 0x3001281F: mov edx, dword ptr [ecx] */ 18752 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012821: cmp byte ptr [edx + 0x14], bl */ 18753 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18755 _flag_k = FK_NARROW(FK_CMP, 24); 18756 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012824: jne 0x300128ba */ 18757 L_3001282A: 18758 edx = MEM32(ecx + 0x8); /* 0x3001282A: mov edx, dword ptr [ecx + 8] */ 18759 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001282D: cmp byte ptr [edx + 0x14], bl */ 18760 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18762 _flag_k = FK_NARROW(FK_CMP, 24); 18763 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012830: jne 0x300128ba */ 18764 L_30012836: 18765 goto L_300128A2; /* 0x30012836: jmp 0x300128a2 */ 18766 L_30012838: 18767 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x30012838: mov dl, byte ptr [ecx + 0x14] */ 18768 /* test LO8(edx), LO8(edx) */ /* 0x3001283B: test dl, dl */ 18769 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 18770 _cf = 0; 18771 _flag_k = FK_NARROW(FK_TEST, 24); 18772 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001288B; /* 0x3001283D: jne 0x3001288b */ 18773 L_3001283F: 18774 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001283F: mov byte ptr [ecx + 0x14], bl */ 18775 ecx = MEM32(eax + 0x4); /* 0x30012842: mov ecx, dword ptr [eax + 4] */ 18776 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012845: mov byte ptr [ecx + 0x14], 0 */ 18777 ecx = MEM32(eax + 0x4); /* 0x30012849: mov ecx, dword ptr [eax + 4] */ 18778 edx = MEM32(ecx); /* 0x3001284C: mov edx, dword ptr [ecx] */ 18779 esi = MEM32(edx + 0x8); /* 0x3001284E: mov esi, dword ptr [edx + 8] */ 18780 MEM32(ecx) = esi; /* 0x30012851: mov dword ptr [ecx], esi */ 18781 esi = MEM32(edx + 0x8); /* 0x30012853: mov esi, dword ptr [edx + 8] */ 18782 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012856: cmp esi, dword ptr [edi + 8] */ 18783 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 18784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18785 _flag_k = FK_CMP; 18786 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001285E; /* 0x30012859: je 0x3001285e */ 18787 L_3001285B: 18788 MEM32(esi + 0x4) = ecx; /* 0x3001285B: mov dword ptr [esi + 4], ecx */ 18789 L_3001285E: 18790 esi = MEM32(ecx + 0x4); /* 0x3001285E: mov esi, dword ptr [ecx + 4] */ 18791 MEM32(edx + 0x4) = esi; /* 0x30012861: mov dword ptr [edx + 4], esi */ 18792 esi = MEM32(edi + 0x4); /* 0x30012864: mov esi, dword ptr [edi + 4] */ 18793 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012867: cmp ecx, dword ptr [esi + 4] */ 18794 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 18795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18796 _flag_k = FK_CMP; 18797 if (CMP_NE(_flag_a, _flag_b)) goto L_30012871; /* 0x3001286A: jne 0x30012871 */ 18798 L_3001286C: 18799 MEM32(esi + 0x4) = edx; /* 0x3001286C: mov dword ptr [esi + 4], edx */ 18800 goto L_30012880; /* 0x3001286F: jmp 0x30012880 */ 18801 L_30012871: 18802 esi = MEM32(ecx + 0x4); /* 0x30012871: mov esi, dword ptr [ecx + 4] */ 18803 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012874: cmp ecx, dword ptr [esi + 8] */ 18804 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 18805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18806 _flag_k = FK_CMP; 18807 if (CMP_NE(_flag_a, _flag_b)) goto L_3001287E; /* 0x30012877: jne 0x3001287e */ 18808 L_30012879: 18809 MEM32(esi + 0x8) = edx; /* 0x30012879: mov dword ptr [esi + 8], edx */ 18810 goto L_30012880; /* 0x3001287C: jmp 0x30012880 */ 18811 L_3001287E: 18812 MEM32(esi) = edx; /* 0x3001287E: mov dword ptr [esi], edx */ 18813 L_30012880: 18814 MEM32(edx + 0x8) = ecx; /* 0x30012880: mov dword ptr [edx + 8], ecx */ 18815 MEM32(ecx + 0x4) = edx; /* 0x30012883: mov dword ptr [ecx + 4], edx */ 18816 edx = MEM32(eax + 0x4); /* 0x30012886: mov edx, dword ptr [eax + 4] */ 18817 ecx = MEM32(edx); /* 0x30012889: mov ecx, dword ptr [edx] */ 18818 L_3001288B: 18819 edx = MEM32(ecx + 0x8); /* 0x3001288B: mov edx, dword ptr [ecx + 8] */ 18820 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001288E: cmp byte ptr [edx + 0x14], bl */ 18821 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18823 _flag_k = FK_NARROW(FK_CMP, 24); 18824 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x30012891: jne 0x30012967 */ 18825 L_30012897: 18826 edx = MEM32(ecx); /* 0x30012897: mov edx, dword ptr [ecx] */ 18827 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012899: cmp byte ptr [edx + 0x14], bl */ 18828 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18830 _flag_k = FK_NARROW(FK_CMP, 24); 18831 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x3001289C: jne 0x30012967 */ 18832 L_300128A2: 18833 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128A2: mov byte ptr [ecx + 0x14], 0 */ 18834 ecx = MEM32(edi + 0x4); /* 0x300128A6: mov ecx, dword ptr [edi + 4] */ 18835 eax = MEM32(eax + 0x4); /* 0x300128A9: mov eax, dword ptr [eax + 4] */ 18836 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300128AC: cmp eax, dword ptr [ecx + 4] */ 18837 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 18838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18839 _flag_k = FK_CMP; 18840 RECOMP_BACKEDGE(); 18841 if (CMP_NE(_flag_a, _flag_b)) goto L_300127B8; /* 0x300128AF: jne 0x300127b8 */ 18842 L_300128B5: 18843 goto L_30012A06; /* 0x300128B5: jmp 0x30012a06 */ 18844 L_300128BA: 18845 edx = MEM32(ecx + 0x8); /* 0x300128BA: mov edx, dword ptr [ecx + 8] */ 18846 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x300128BD: cmp byte ptr [edx + 0x14], bl */ 18847 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18849 _flag_k = FK_NARROW(FK_CMP, 24); 18850 if (CMP_NE(_flag_a, _flag_b)) goto L_3001290B; /* 0x300128C0: jne 0x3001290b */ 18851 L_300128C2: 18852 edx = MEM32(ecx); /* 0x300128C2: mov edx, dword ptr [ecx] */ 18853 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300128C4: mov byte ptr [edx + 0x14], bl */ 18854 edx = MEM32(ecx); /* 0x300128C7: mov edx, dword ptr [ecx] */ 18855 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128C9: mov byte ptr [ecx + 0x14], 0 */ 18856 esi = MEM32(edx + 0x8); /* 0x300128CD: mov esi, dword ptr [edx + 8] */ 18857 MEM32(ecx) = esi; /* 0x300128D0: mov dword ptr [ecx], esi */ 18858 esi = MEM32(edx + 0x8); /* 0x300128D2: mov esi, dword ptr [edx + 8] */ 18859 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300128D5: cmp esi, dword ptr [edi + 8] */ 18860 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 18861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18862 _flag_k = FK_CMP; 18863 if (CMP_EQ(_flag_a, _flag_b)) goto L_300128DD; /* 0x300128D8: je 0x300128dd */ 18864 L_300128DA: 18865 MEM32(esi + 0x4) = ecx; /* 0x300128DA: mov dword ptr [esi + 4], ecx */ 18866 L_300128DD: 18867 esi = MEM32(ecx + 0x4); /* 0x300128DD: mov esi, dword ptr [ecx + 4] */ 18868 MEM32(edx + 0x4) = esi; /* 0x300128E0: mov dword ptr [edx + 4], esi */ 18869 esi = MEM32(edi + 0x4); /* 0x300128E3: mov esi, dword ptr [edi + 4] */ 18870 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300128E6: cmp ecx, dword ptr [esi + 4] */ 18871 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 18872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18873 _flag_k = FK_CMP; 18874 if (CMP_NE(_flag_a, _flag_b)) goto L_300128F0; /* 0x300128E9: jne 0x300128f0 */ 18875 L_300128EB: 18876 MEM32(esi + 0x4) = edx; /* 0x300128EB: mov dword ptr [esi + 4], edx */ 18877 goto L_300128FF; /* 0x300128EE: jmp 0x300128ff */ 18878 L_300128F0: 18879 esi = MEM32(ecx + 0x4); /* 0x300128F0: mov esi, dword ptr [ecx + 4] */ 18880 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300128F3: cmp ecx, dword ptr [esi + 8] */ 18881 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 18882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18883 _flag_k = FK_CMP; 18884 if (CMP_NE(_flag_a, _flag_b)) goto L_300128FD; /* 0x300128F6: jne 0x300128fd */ 18885 L_300128F8: 18886 MEM32(esi + 0x8) = edx; /* 0x300128F8: mov dword ptr [esi + 8], edx */ 18887 goto L_300128FF; /* 0x300128FB: jmp 0x300128ff */ 18888 L_300128FD: 18889 MEM32(esi) = edx; /* 0x300128FD: mov dword ptr [esi], edx */ 18890 L_300128FF: 18891 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 18892 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 18893 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 18894 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 18895 L_3001290B: 18896 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 18897 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 18898 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 18899 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 18900 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 18901 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 18902 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 18903 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 18904 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 18905 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 18906 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 18907 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 18908 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 18909 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 18910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18911 _flag_k = FK_CMP; 18912 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 18913 L_30012932: 18914 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 18915 L_30012935: 18916 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 18917 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 18918 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 18919 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 18920 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 18921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18922 _flag_k = FK_CMP; 18923 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 18924 L_30012943: 18925 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 18926 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 18927 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 18928 L_3001294D: 18929 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 18930 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 18931 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 18932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18933 _flag_k = FK_CMP; 18934 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 18935 L_30012954: 18936 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 18937 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 18938 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 18939 L_3001295D: 18940 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 18941 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 18942 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 18943 L_30012967: 18944 edx = MEM32(ecx); /* 0x30012967: mov edx, dword ptr [ecx] */ 18945 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012969: cmp byte ptr [edx + 0x14], bl */ 18946 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 18947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18948 _flag_k = FK_NARROW(FK_CMP, 24); 18949 if (CMP_NE(_flag_a, _flag_b)) goto L_300129B5; /* 0x3001296C: jne 0x300129b5 */ 18950 L_3001296E: 18951 edx = MEM32(ecx + 0x8); /* 0x3001296E: mov edx, dword ptr [ecx + 8] */ 18952 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012971: mov byte ptr [edx + 0x14], bl */ 18953 edx = MEM32(ecx + 0x8); /* 0x30012974: mov edx, dword ptr [ecx + 8] */ 18954 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012977: mov byte ptr [ecx + 0x14], 0 */ 18955 esi = MEM32(edx); /* 0x3001297B: mov esi, dword ptr [edx] */ 18956 MEM32(ecx + 0x8) = esi; /* 0x3001297D: mov dword ptr [ecx + 8], esi */ 18957 esi = MEM32(edx); /* 0x30012980: mov esi, dword ptr [edx] */ 18958 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012982: cmp esi, dword ptr [edi + 8] */ 18959 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 18960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18961 _flag_k = FK_CMP; 18962 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001298A; /* 0x30012985: je 0x3001298a */ 18963 L_30012987: 18964 MEM32(esi + 0x4) = ecx; /* 0x30012987: mov dword ptr [esi + 4], ecx */ 18965 L_3001298A: 18966 esi = MEM32(ecx + 0x4); /* 0x3001298A: mov esi, dword ptr [ecx + 4] */ 18967 MEM32(edx + 0x4) = esi; /* 0x3001298D: mov dword ptr [edx + 4], esi */ 18968 esi = MEM32(edi + 0x4); /* 0x30012990: mov esi, dword ptr [edi + 4] */ 18969 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012993: cmp ecx, dword ptr [esi + 4] */ 18970 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 18971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18972 _flag_k = FK_CMP; 18973 if (CMP_NE(_flag_a, _flag_b)) goto L_3001299D; /* 0x30012996: jne 0x3001299d */ 18974 L_30012998: 18975 MEM32(esi + 0x4) = edx; /* 0x30012998: mov dword ptr [esi + 4], edx */ 18976 goto L_300129AB; /* 0x3001299B: jmp 0x300129ab */ 18977 L_3001299D: 18978 esi = MEM32(ecx + 0x4); /* 0x3001299D: mov esi, dword ptr [ecx + 4] */ 18979 /* cmp ecx, MEM32(esi) */ /* 0x300129A0: cmp ecx, dword ptr [esi] */ 18980 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 18981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18982 _flag_k = FK_CMP; 18983 if (CMP_NE(_flag_a, _flag_b)) goto L_300129A8; /* 0x300129A2: jne 0x300129a8 */ 18984 L_300129A4: 18985 MEM32(esi) = edx; /* 0x300129A4: mov dword ptr [esi], edx */ 18986 goto L_300129AB; /* 0x300129A6: jmp 0x300129ab */ 18987 L_300129A8: 18988 MEM32(esi + 0x8) = edx; /* 0x300129A8: mov dword ptr [esi + 8], edx */ 18989 L_300129AB: 18990 MEM32(edx) = ecx; /* 0x300129AB: mov dword ptr [edx], ecx */ 18991 MEM32(ecx + 0x4) = edx; /* 0x300129AD: mov dword ptr [ecx + 4], edx */ 18992 ecx = MEM32(eax + 0x4); /* 0x300129B0: mov ecx, dword ptr [eax + 4] */ 18993 ecx = MEM32(ecx); /* 0x300129B3: mov ecx, dword ptr [ecx] */ 18994 L_300129B5: 18995 edx = MEM32(eax + 0x4); /* 0x300129B5: mov edx, dword ptr [eax + 4] */ 18996 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x300129B8: mov dl, byte ptr [edx + 0x14] */ 18997 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x300129BB: mov byte ptr [ecx + 0x14], dl */ 18998 edx = MEM32(eax + 0x4); /* 0x300129BE: mov edx, dword ptr [eax + 4] */ 18999 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C1: mov byte ptr [edx + 0x14], bl */ 19000 ecx = MEM32(ecx); /* 0x300129C4: mov ecx, dword ptr [ecx] */ 19001 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C6: mov byte ptr [ecx + 0x14], bl */ 19002 ecx = MEM32(eax + 0x4); /* 0x300129C9: mov ecx, dword ptr [eax + 4] */ 19003 edx = MEM32(ecx); /* 0x300129CC: mov edx, dword ptr [ecx] */ 19004 esi = MEM32(edx + 0x8); /* 0x300129CE: mov esi, dword ptr [edx + 8] */ 19005 MEM32(ecx) = esi; /* 0x300129D1: mov dword ptr [ecx], esi */ 19006 esi = MEM32(edx + 0x8); /* 0x300129D3: mov esi, dword ptr [edx + 8] */ 19007 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300129D6: cmp esi, dword ptr [edi + 8] */ 19008 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19010 _flag_k = FK_CMP; 19011 if (CMP_EQ(_flag_a, _flag_b)) goto L_300129DE; /* 0x300129D9: je 0x300129de */ 19012 L_300129DB: 19013 MEM32(esi + 0x4) = ecx; /* 0x300129DB: mov dword ptr [esi + 4], ecx */ 19014 L_300129DE: 19015 esi = MEM32(ecx + 0x4); /* 0x300129DE: mov esi, dword ptr [ecx + 4] */ 19016 MEM32(edx + 0x4) = esi; /* 0x300129E1: mov dword ptr [edx + 4], esi */ 19017 esi = MEM32(edi + 0x4); /* 0x300129E4: mov esi, dword ptr [edi + 4] */ 19018 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300129E7: cmp ecx, dword ptr [esi + 4] */ 19019 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19021 _flag_k = FK_CMP; 19022 if (CMP_NE(_flag_a, _flag_b)) goto L_300129F1; /* 0x300129EA: jne 0x300129f1 */ 19023 L_300129EC: 19024 MEM32(esi + 0x4) = edx; /* 0x300129EC: mov dword ptr [esi + 4], edx */ 19025 goto L_30012A00; /* 0x300129EF: jmp 0x30012a00 */ 19026 L_300129F1: 19027 esi = MEM32(ecx + 0x4); /* 0x300129F1: mov esi, dword ptr [ecx + 4] */ 19028 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300129F4: cmp ecx, dword ptr [esi + 8] */ 19029 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 19030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19031 _flag_k = FK_CMP; 19032 if (CMP_NE(_flag_a, _flag_b)) goto L_300129FE; /* 0x300129F7: jne 0x300129fe */ 19033 L_300129F9: 19034 MEM32(esi + 0x8) = edx; /* 0x300129F9: mov dword ptr [esi + 8], edx */ 19035 goto L_30012A00; /* 0x300129FC: jmp 0x30012a00 */ 19036 L_300129FE: 19037 MEM32(esi) = edx; /* 0x300129FE: mov dword ptr [esi], edx */ 19038 L_30012A00: 19039 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 19040 L_30012A03: 19041 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 19042 L_30012A06: 19043 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 19044 L_30012A09: 19045 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 19046 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 19047 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 19048 RECOMP_FLAGS_IN(); 19049 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 19050 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 19051 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19052 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19053 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 19054 _flag_k = FK_ADD; 19055 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 19056 eax = eax - 1; /* 0x30012A1B: dec eax */ 19057 _flag_k = FK_DEC; 19058 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 19059 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 19060 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 19061 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 19062 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 19063 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 19064 esp = ebp; /* 0x30012A27: mov esp, ebp */ 19065 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 19066 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 19067 RECOMP_REGS_OUT(); 19068 } 19069 19070 void sub_30012743(void) { 19071 int _fpu_cmp = 0; 19072 uint32_t _cf = 0; 19073 int _df = 1; 19074 uint32_t _flag_k = FK_NONE; 19075 uint32_t _flag_a = 0, _flag_b = 0; 19076 uint32_t _itail_tgt = 0; 19077 RECOMP_REGS_LOCALS 19078 RECOMP_ENTER(0x30012743u); 19079 19080 L_30012743: 19081 ebx = MEM32(edi + 0x4); /* 0x30012743: mov ebx, dword ptr [edi + 4] */ 19082 /* cmp MEM32(ebx), esi */ /* 0x30012746: cmp dword ptr [ebx], esi */ 19083 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 19084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19085 _flag_k = FK_CMP; 19086 if (CMP_NE(_flag_a, _flag_b)) goto L_3001276F; /* 0x30012748: jne 0x3001276f */ 19087 L_3001274A: 19088 ecx = MEM32(esi + 0x8); /* 0x3001274A: mov ecx, dword ptr [esi + 8] */ 19089 edx = MEM32(edi + 0x8); /* 0x3001274D: mov edx, dword ptr [edi + 8] */ 19090 /* cmp ecx, edx */ /* 0x30012750: cmp ecx, edx */ 19091 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19093 _flag_k = FK_CMP; 19094 if (CMP_NE(_flag_a, _flag_b)) goto L_30012759; /* 0x30012752: jne 0x30012759 */ 19095 L_30012754: 19096 edx = MEM32(esi + 0x4); /* 0x30012754: mov edx, dword ptr [esi + 4] */ 19097 goto L_3001276D; /* 0x30012757: jmp 0x3001276d */ 19098 L_30012759: 19099 ecx = MEM32(eax); /* 0x30012759: mov ecx, dword ptr [eax] */ 19100 edx = eax; /* 0x3001275B: mov edx, eax */ 19101 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3001275D: cmp byte ptr [ecx + 0x15], 0 */ 19102 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 19103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19104 _flag_k = FK_NARROW(FK_CMP, 24); 19105 if (CMP_NE(_flag_a, _flag_b)) goto L_3001276D; /* 0x30012761: jne 0x3001276d */ 19106 L_30012763: 19107 edx = ecx; /* 0x30012763: mov edx, ecx */ 19108 ecx = MEM32(edx); /* 0x30012765: mov ecx, dword ptr [edx] */ 19109 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x30012767: cmp byte ptr [ecx + 0x15], 0 */ 19110 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 19111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19112 _flag_k = FK_NARROW(FK_CMP, 24); 19113 RECOMP_BACKEDGE(); 19114 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012763; /* 0x3001276B: je 0x30012763 */ 19115 L_3001276D: 19116 MEM32(ebx) = edx; /* 0x3001276D: mov dword ptr [ebx], edx */ 19117 L_3001276F: 19118 ebx = MEM32(edi + 0x4); /* 0x3001276F: mov ebx, dword ptr [edi + 4] */ 19119 /* cmp MEM32(ebx + 0x8), esi */ /* 0x30012772: cmp dword ptr [ebx + 8], esi */ 19120 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 19121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19122 _flag_k = FK_CMP; 19123 if (CMP_NE(_flag_a, _flag_b)) goto L_3001279E; /* 0x30012775: jne 0x3001279e */ 19124 L_30012777: 19125 ecx = MEM32(esi); /* 0x30012777: mov ecx, dword ptr [esi] */ 19126 edx = MEM32(edi + 0x8); /* 0x30012779: mov edx, dword ptr [edi + 8] */ 19127 /* cmp ecx, edx */ /* 0x3001277C: cmp ecx, edx */ 19128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19130 _flag_k = FK_CMP; 19131 if (CMP_NE(_flag_a, _flag_b)) goto L_30012785; /* 0x3001277E: jne 0x30012785 */ 19132 L_30012780: 19133 edx = MEM32(esi + 0x4); /* 0x30012780: mov edx, dword ptr [esi + 4] */ 19134 goto L_3001279B; /* 0x30012783: jmp 0x3001279b */ 19135 L_30012785: 19136 ecx = MEM32(eax + 0x8); /* 0x30012785: mov ecx, dword ptr [eax + 8] */ 19137 edx = eax; /* 0x30012788: mov edx, eax */ 19138 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3001278A: cmp byte ptr [ecx + 0x15], 0 */ 19139 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 19140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19141 _flag_k = FK_NARROW(FK_CMP, 24); 19142 if (CMP_NE(_flag_a, _flag_b)) goto L_3001279B; /* 0x3001278E: jne 0x3001279b */ 19143 L_30012790: 19144 edx = ecx; /* 0x30012790: mov edx, ecx */ 19145 ecx = MEM32(edx + 0x8); /* 0x30012792: mov ecx, dword ptr [edx + 8] */ 19146 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x30012795: cmp byte ptr [ecx + 0x15], 0 */ 19147 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 19148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19149 _flag_k = FK_NARROW(FK_CMP, 24); 19150 RECOMP_BACKEDGE(); 19151 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012790; /* 0x30012799: je 0x30012790 */ 19152 L_3001279B: 19153 MEM32(ebx + 0x8) = edx; /* 0x3001279B: mov dword ptr [ebx + 8], edx */ 19154 L_3001279E: 19155 ecx = MEM32(ebp + (-0x4)); /* 0x3001279E: mov ecx, dword ptr [ebp - 4] */ 19156 SET_LO8(ebx, 1); /* 0x300127A1: mov bl, 1 */ 19157 /* cmp MEM8(ecx + 0x14), LO8(ebx) */ /* 0x300127A3: cmp byte ptr [ecx + 0x14], bl */ 19158 _flag_a = (uint32_t)(MEM8(ecx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19160 _flag_k = FK_NARROW(FK_CMP, 24); 19161 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A09; /* 0x300127A6: jne 0x30012a09 */ 19162 L_300127AC: 19163 edx = MEM32(edi + 0x4); /* 0x300127AC: mov edx, dword ptr [edi + 4] */ 19164 /* cmp eax, MEM32(edx + 0x4) */ /* 0x300127AF: cmp eax, dword ptr [edx + 4] */ 19165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 19166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19167 _flag_k = FK_CMP; 19168 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127B2: je 0x30012a06 */ 19169 L_300127B8: 19170 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x300127B8: cmp byte ptr [eax + 0x14], bl */ 19171 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19173 _flag_k = FK_NARROW(FK_CMP, 24); 19174 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127BB: jne 0x30012a06 */ 19175 L_300127C1: 19176 edx = MEM32(eax + 0x4); /* 0x300127C1: mov edx, dword ptr [eax + 4] */ 19177 ecx = MEM32(edx); /* 0x300127C4: mov ecx, dword ptr [edx] */ 19178 /* cmp eax, ecx */ /* 0x300127C6: cmp eax, ecx */ 19179 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19181 _flag_k = FK_CMP; 19182 if (CMP_NE(_flag_a, _flag_b)) goto L_30012838; /* 0x300127C8: jne 0x30012838 */ 19183 L_300127CA: 19184 ecx = MEM32(edx + 0x8); /* 0x300127CA: mov ecx, dword ptr [edx + 8] */ 19185 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x300127CD: mov dl, byte ptr [ecx + 0x14] */ 19186 /* test LO8(edx), LO8(edx) */ /* 0x300127D0: test dl, dl */ 19187 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 19188 _cf = 0; 19189 _flag_k = FK_NARROW(FK_TEST, 24); 19190 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001281F; /* 0x300127D2: jne 0x3001281f */ 19191 L_300127D4: 19192 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300127D4: mov byte ptr [ecx + 0x14], bl */ 19193 ecx = MEM32(eax + 0x4); /* 0x300127D7: mov ecx, dword ptr [eax + 4] */ 19194 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300127DA: mov byte ptr [ecx + 0x14], 0 */ 19195 ecx = MEM32(eax + 0x4); /* 0x300127DE: mov ecx, dword ptr [eax + 4] */ 19196 edx = MEM32(ecx + 0x8); /* 0x300127E1: mov edx, dword ptr [ecx + 8] */ 19197 esi = MEM32(edx); /* 0x300127E4: mov esi, dword ptr [edx] */ 19198 MEM32(ecx + 0x8) = esi; /* 0x300127E6: mov dword ptr [ecx + 8], esi */ 19199 esi = MEM32(edx); /* 0x300127E9: mov esi, dword ptr [edx] */ 19200 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300127EB: cmp esi, dword ptr [edi + 8] */ 19201 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19203 _flag_k = FK_CMP; 19204 if (CMP_EQ(_flag_a, _flag_b)) goto L_300127F3; /* 0x300127EE: je 0x300127f3 */ 19205 L_300127F0: 19206 MEM32(esi + 0x4) = ecx; /* 0x300127F0: mov dword ptr [esi + 4], ecx */ 19207 L_300127F3: 19208 esi = MEM32(ecx + 0x4); /* 0x300127F3: mov esi, dword ptr [ecx + 4] */ 19209 MEM32(edx + 0x4) = esi; /* 0x300127F6: mov dword ptr [edx + 4], esi */ 19210 esi = MEM32(edi + 0x4); /* 0x300127F9: mov esi, dword ptr [edi + 4] */ 19211 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300127FC: cmp ecx, dword ptr [esi + 4] */ 19212 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19214 _flag_k = FK_CMP; 19215 if (CMP_NE(_flag_a, _flag_b)) goto L_30012806; /* 0x300127FF: jne 0x30012806 */ 19216 L_30012801: 19217 MEM32(esi + 0x4) = edx; /* 0x30012801: mov dword ptr [esi + 4], edx */ 19218 goto L_30012814; /* 0x30012804: jmp 0x30012814 */ 19219 L_30012806: 19220 esi = MEM32(ecx + 0x4); /* 0x30012806: mov esi, dword ptr [ecx + 4] */ 19221 /* cmp ecx, MEM32(esi) */ /* 0x30012809: cmp ecx, dword ptr [esi] */ 19222 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 19223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19224 _flag_k = FK_CMP; 19225 if (CMP_NE(_flag_a, _flag_b)) goto L_30012811; /* 0x3001280B: jne 0x30012811 */ 19226 L_3001280D: 19227 MEM32(esi) = edx; /* 0x3001280D: mov dword ptr [esi], edx */ 19228 goto L_30012814; /* 0x3001280F: jmp 0x30012814 */ 19229 L_30012811: 19230 MEM32(esi + 0x8) = edx; /* 0x30012811: mov dword ptr [esi + 8], edx */ 19231 L_30012814: 19232 MEM32(edx) = ecx; /* 0x30012814: mov dword ptr [edx], ecx */ 19233 MEM32(ecx + 0x4) = edx; /* 0x30012816: mov dword ptr [ecx + 4], edx */ 19234 edx = MEM32(eax + 0x4); /* 0x30012819: mov edx, dword ptr [eax + 4] */ 19235 ecx = MEM32(edx + 0x8); /* 0x3001281C: mov ecx, dword ptr [edx + 8] */ 19236 L_3001281F: 19237 edx = MEM32(ecx); /* 0x3001281F: mov edx, dword ptr [ecx] */ 19238 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012821: cmp byte ptr [edx + 0x14], bl */ 19239 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19241 _flag_k = FK_NARROW(FK_CMP, 24); 19242 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012824: jne 0x300128ba */ 19243 L_3001282A: 19244 edx = MEM32(ecx + 0x8); /* 0x3001282A: mov edx, dword ptr [ecx + 8] */ 19245 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001282D: cmp byte ptr [edx + 0x14], bl */ 19246 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19248 _flag_k = FK_NARROW(FK_CMP, 24); 19249 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012830: jne 0x300128ba */ 19250 L_30012836: 19251 goto L_300128A2; /* 0x30012836: jmp 0x300128a2 */ 19252 L_30012838: 19253 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x30012838: mov dl, byte ptr [ecx + 0x14] */ 19254 /* test LO8(edx), LO8(edx) */ /* 0x3001283B: test dl, dl */ 19255 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 19256 _cf = 0; 19257 _flag_k = FK_NARROW(FK_TEST, 24); 19258 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001288B; /* 0x3001283D: jne 0x3001288b */ 19259 L_3001283F: 19260 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001283F: mov byte ptr [ecx + 0x14], bl */ 19261 ecx = MEM32(eax + 0x4); /* 0x30012842: mov ecx, dword ptr [eax + 4] */ 19262 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012845: mov byte ptr [ecx + 0x14], 0 */ 19263 ecx = MEM32(eax + 0x4); /* 0x30012849: mov ecx, dword ptr [eax + 4] */ 19264 edx = MEM32(ecx); /* 0x3001284C: mov edx, dword ptr [ecx] */ 19265 esi = MEM32(edx + 0x8); /* 0x3001284E: mov esi, dword ptr [edx + 8] */ 19266 MEM32(ecx) = esi; /* 0x30012851: mov dword ptr [ecx], esi */ 19267 esi = MEM32(edx + 0x8); /* 0x30012853: mov esi, dword ptr [edx + 8] */ 19268 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012856: cmp esi, dword ptr [edi + 8] */ 19269 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19271 _flag_k = FK_CMP; 19272 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001285E; /* 0x30012859: je 0x3001285e */ 19273 L_3001285B: 19274 MEM32(esi + 0x4) = ecx; /* 0x3001285B: mov dword ptr [esi + 4], ecx */ 19275 L_3001285E: 19276 esi = MEM32(ecx + 0x4); /* 0x3001285E: mov esi, dword ptr [ecx + 4] */ 19277 MEM32(edx + 0x4) = esi; /* 0x30012861: mov dword ptr [edx + 4], esi */ 19278 esi = MEM32(edi + 0x4); /* 0x30012864: mov esi, dword ptr [edi + 4] */ 19279 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012867: cmp ecx, dword ptr [esi + 4] */ 19280 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19282 _flag_k = FK_CMP; 19283 if (CMP_NE(_flag_a, _flag_b)) goto L_30012871; /* 0x3001286A: jne 0x30012871 */ 19284 L_3001286C: 19285 MEM32(esi + 0x4) = edx; /* 0x3001286C: mov dword ptr [esi + 4], edx */ 19286 goto L_30012880; /* 0x3001286F: jmp 0x30012880 */ 19287 L_30012871: 19288 esi = MEM32(ecx + 0x4); /* 0x30012871: mov esi, dword ptr [ecx + 4] */ 19289 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012874: cmp ecx, dword ptr [esi + 8] */ 19290 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 19291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19292 _flag_k = FK_CMP; 19293 if (CMP_NE(_flag_a, _flag_b)) goto L_3001287E; /* 0x30012877: jne 0x3001287e */ 19294 L_30012879: 19295 MEM32(esi + 0x8) = edx; /* 0x30012879: mov dword ptr [esi + 8], edx */ 19296 goto L_30012880; /* 0x3001287C: jmp 0x30012880 */ 19297 L_3001287E: 19298 MEM32(esi) = edx; /* 0x3001287E: mov dword ptr [esi], edx */ 19299 L_30012880: 19300 MEM32(edx + 0x8) = ecx; /* 0x30012880: mov dword ptr [edx + 8], ecx */ 19301 MEM32(ecx + 0x4) = edx; /* 0x30012883: mov dword ptr [ecx + 4], edx */ 19302 edx = MEM32(eax + 0x4); /* 0x30012886: mov edx, dword ptr [eax + 4] */ 19303 ecx = MEM32(edx); /* 0x30012889: mov ecx, dword ptr [edx] */ 19304 L_3001288B: 19305 edx = MEM32(ecx + 0x8); /* 0x3001288B: mov edx, dword ptr [ecx + 8] */ 19306 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001288E: cmp byte ptr [edx + 0x14], bl */ 19307 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19309 _flag_k = FK_NARROW(FK_CMP, 24); 19310 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x30012891: jne 0x30012967 */ 19311 L_30012897: 19312 edx = MEM32(ecx); /* 0x30012897: mov edx, dword ptr [ecx] */ 19313 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012899: cmp byte ptr [edx + 0x14], bl */ 19314 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19316 _flag_k = FK_NARROW(FK_CMP, 24); 19317 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x3001289C: jne 0x30012967 */ 19318 L_300128A2: 19319 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128A2: mov byte ptr [ecx + 0x14], 0 */ 19320 ecx = MEM32(edi + 0x4); /* 0x300128A6: mov ecx, dword ptr [edi + 4] */ 19321 eax = MEM32(eax + 0x4); /* 0x300128A9: mov eax, dword ptr [eax + 4] */ 19322 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300128AC: cmp eax, dword ptr [ecx + 4] */ 19323 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 19324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19325 _flag_k = FK_CMP; 19326 RECOMP_BACKEDGE(); 19327 if (CMP_NE(_flag_a, _flag_b)) goto L_300127B8; /* 0x300128AF: jne 0x300127b8 */ 19328 L_300128B5: 19329 goto L_30012A06; /* 0x300128B5: jmp 0x30012a06 */ 19330 L_300128BA: 19331 edx = MEM32(ecx + 0x8); /* 0x300128BA: mov edx, dword ptr [ecx + 8] */ 19332 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x300128BD: cmp byte ptr [edx + 0x14], bl */ 19333 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19335 _flag_k = FK_NARROW(FK_CMP, 24); 19336 if (CMP_NE(_flag_a, _flag_b)) goto L_3001290B; /* 0x300128C0: jne 0x3001290b */ 19337 L_300128C2: 19338 edx = MEM32(ecx); /* 0x300128C2: mov edx, dword ptr [ecx] */ 19339 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300128C4: mov byte ptr [edx + 0x14], bl */ 19340 edx = MEM32(ecx); /* 0x300128C7: mov edx, dword ptr [ecx] */ 19341 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128C9: mov byte ptr [ecx + 0x14], 0 */ 19342 esi = MEM32(edx + 0x8); /* 0x300128CD: mov esi, dword ptr [edx + 8] */ 19343 MEM32(ecx) = esi; /* 0x300128D0: mov dword ptr [ecx], esi */ 19344 esi = MEM32(edx + 0x8); /* 0x300128D2: mov esi, dword ptr [edx + 8] */ 19345 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300128D5: cmp esi, dword ptr [edi + 8] */ 19346 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19348 _flag_k = FK_CMP; 19349 if (CMP_EQ(_flag_a, _flag_b)) goto L_300128DD; /* 0x300128D8: je 0x300128dd */ 19350 L_300128DA: 19351 MEM32(esi + 0x4) = ecx; /* 0x300128DA: mov dword ptr [esi + 4], ecx */ 19352 L_300128DD: 19353 esi = MEM32(ecx + 0x4); /* 0x300128DD: mov esi, dword ptr [ecx + 4] */ 19354 MEM32(edx + 0x4) = esi; /* 0x300128E0: mov dword ptr [edx + 4], esi */ 19355 esi = MEM32(edi + 0x4); /* 0x300128E3: mov esi, dword ptr [edi + 4] */ 19356 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300128E6: cmp ecx, dword ptr [esi + 4] */ 19357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19359 _flag_k = FK_CMP; 19360 if (CMP_NE(_flag_a, _flag_b)) goto L_300128F0; /* 0x300128E9: jne 0x300128f0 */ 19361 L_300128EB: 19362 MEM32(esi + 0x4) = edx; /* 0x300128EB: mov dword ptr [esi + 4], edx */ 19363 goto L_300128FF; /* 0x300128EE: jmp 0x300128ff */ 19364 L_300128F0: 19365 esi = MEM32(ecx + 0x4); /* 0x300128F0: mov esi, dword ptr [ecx + 4] */ 19366 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300128F3: cmp ecx, dword ptr [esi + 8] */ 19367 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 19368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19369 _flag_k = FK_CMP; 19370 if (CMP_NE(_flag_a, _flag_b)) goto L_300128FD; /* 0x300128F6: jne 0x300128fd */ 19371 L_300128F8: 19372 MEM32(esi + 0x8) = edx; /* 0x300128F8: mov dword ptr [esi + 8], edx */ 19373 goto L_300128FF; /* 0x300128FB: jmp 0x300128ff */ 19374 L_300128FD: 19375 MEM32(esi) = edx; /* 0x300128FD: mov dword ptr [esi], edx */ 19376 L_300128FF: 19377 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 19378 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 19379 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 19380 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 19381 L_3001290B: 19382 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 19383 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 19384 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 19385 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 19386 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 19387 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 19388 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 19389 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 19390 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 19391 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 19392 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 19393 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 19394 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 19395 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19397 _flag_k = FK_CMP; 19398 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 19399 L_30012932: 19400 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 19401 L_30012935: 19402 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 19403 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 19404 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 19405 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 19406 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19408 _flag_k = FK_CMP; 19409 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 19410 L_30012943: 19411 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 19412 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 19413 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 19414 L_3001294D: 19415 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 19416 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 19417 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 19418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19419 _flag_k = FK_CMP; 19420 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 19421 L_30012954: 19422 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 19423 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 19424 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 19425 L_3001295D: 19426 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 19427 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 19428 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 19429 L_30012967: 19430 edx = MEM32(ecx); /* 0x30012967: mov edx, dword ptr [ecx] */ 19431 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012969: cmp byte ptr [edx + 0x14], bl */ 19432 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19434 _flag_k = FK_NARROW(FK_CMP, 24); 19435 if (CMP_NE(_flag_a, _flag_b)) goto L_300129B5; /* 0x3001296C: jne 0x300129b5 */ 19436 L_3001296E: 19437 edx = MEM32(ecx + 0x8); /* 0x3001296E: mov edx, dword ptr [ecx + 8] */ 19438 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012971: mov byte ptr [edx + 0x14], bl */ 19439 edx = MEM32(ecx + 0x8); /* 0x30012974: mov edx, dword ptr [ecx + 8] */ 19440 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012977: mov byte ptr [ecx + 0x14], 0 */ 19441 esi = MEM32(edx); /* 0x3001297B: mov esi, dword ptr [edx] */ 19442 MEM32(ecx + 0x8) = esi; /* 0x3001297D: mov dword ptr [ecx + 8], esi */ 19443 esi = MEM32(edx); /* 0x30012980: mov esi, dword ptr [edx] */ 19444 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012982: cmp esi, dword ptr [edi + 8] */ 19445 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19447 _flag_k = FK_CMP; 19448 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001298A; /* 0x30012985: je 0x3001298a */ 19449 L_30012987: 19450 MEM32(esi + 0x4) = ecx; /* 0x30012987: mov dword ptr [esi + 4], ecx */ 19451 L_3001298A: 19452 esi = MEM32(ecx + 0x4); /* 0x3001298A: mov esi, dword ptr [ecx + 4] */ 19453 MEM32(edx + 0x4) = esi; /* 0x3001298D: mov dword ptr [edx + 4], esi */ 19454 esi = MEM32(edi + 0x4); /* 0x30012990: mov esi, dword ptr [edi + 4] */ 19455 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012993: cmp ecx, dword ptr [esi + 4] */ 19456 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19458 _flag_k = FK_CMP; 19459 if (CMP_NE(_flag_a, _flag_b)) goto L_3001299D; /* 0x30012996: jne 0x3001299d */ 19460 L_30012998: 19461 MEM32(esi + 0x4) = edx; /* 0x30012998: mov dword ptr [esi + 4], edx */ 19462 goto L_300129AB; /* 0x3001299B: jmp 0x300129ab */ 19463 L_3001299D: 19464 esi = MEM32(ecx + 0x4); /* 0x3001299D: mov esi, dword ptr [ecx + 4] */ 19465 /* cmp ecx, MEM32(esi) */ /* 0x300129A0: cmp ecx, dword ptr [esi] */ 19466 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 19467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19468 _flag_k = FK_CMP; 19469 if (CMP_NE(_flag_a, _flag_b)) goto L_300129A8; /* 0x300129A2: jne 0x300129a8 */ 19470 L_300129A4: 19471 MEM32(esi) = edx; /* 0x300129A4: mov dword ptr [esi], edx */ 19472 goto L_300129AB; /* 0x300129A6: jmp 0x300129ab */ 19473 L_300129A8: 19474 MEM32(esi + 0x8) = edx; /* 0x300129A8: mov dword ptr [esi + 8], edx */ 19475 L_300129AB: 19476 MEM32(edx) = ecx; /* 0x300129AB: mov dword ptr [edx], ecx */ 19477 MEM32(ecx + 0x4) = edx; /* 0x300129AD: mov dword ptr [ecx + 4], edx */ 19478 ecx = MEM32(eax + 0x4); /* 0x300129B0: mov ecx, dword ptr [eax + 4] */ 19479 ecx = MEM32(ecx); /* 0x300129B3: mov ecx, dword ptr [ecx] */ 19480 L_300129B5: 19481 edx = MEM32(eax + 0x4); /* 0x300129B5: mov edx, dword ptr [eax + 4] */ 19482 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x300129B8: mov dl, byte ptr [edx + 0x14] */ 19483 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x300129BB: mov byte ptr [ecx + 0x14], dl */ 19484 edx = MEM32(eax + 0x4); /* 0x300129BE: mov edx, dword ptr [eax + 4] */ 19485 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C1: mov byte ptr [edx + 0x14], bl */ 19486 ecx = MEM32(ecx); /* 0x300129C4: mov ecx, dword ptr [ecx] */ 19487 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C6: mov byte ptr [ecx + 0x14], bl */ 19488 ecx = MEM32(eax + 0x4); /* 0x300129C9: mov ecx, dword ptr [eax + 4] */ 19489 edx = MEM32(ecx); /* 0x300129CC: mov edx, dword ptr [ecx] */ 19490 esi = MEM32(edx + 0x8); /* 0x300129CE: mov esi, dword ptr [edx + 8] */ 19491 MEM32(ecx) = esi; /* 0x300129D1: mov dword ptr [ecx], esi */ 19492 esi = MEM32(edx + 0x8); /* 0x300129D3: mov esi, dword ptr [edx + 8] */ 19493 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300129D6: cmp esi, dword ptr [edi + 8] */ 19494 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19496 _flag_k = FK_CMP; 19497 if (CMP_EQ(_flag_a, _flag_b)) goto L_300129DE; /* 0x300129D9: je 0x300129de */ 19498 L_300129DB: 19499 MEM32(esi + 0x4) = ecx; /* 0x300129DB: mov dword ptr [esi + 4], ecx */ 19500 L_300129DE: 19501 esi = MEM32(ecx + 0x4); /* 0x300129DE: mov esi, dword ptr [ecx + 4] */ 19502 MEM32(edx + 0x4) = esi; /* 0x300129E1: mov dword ptr [edx + 4], esi */ 19503 esi = MEM32(edi + 0x4); /* 0x300129E4: mov esi, dword ptr [edi + 4] */ 19504 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300129E7: cmp ecx, dword ptr [esi + 4] */ 19505 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19507 _flag_k = FK_CMP; 19508 if (CMP_NE(_flag_a, _flag_b)) goto L_300129F1; /* 0x300129EA: jne 0x300129f1 */ 19509 L_300129EC: 19510 MEM32(esi + 0x4) = edx; /* 0x300129EC: mov dword ptr [esi + 4], edx */ 19511 goto L_30012A00; /* 0x300129EF: jmp 0x30012a00 */ 19512 L_300129F1: 19513 esi = MEM32(ecx + 0x4); /* 0x300129F1: mov esi, dword ptr [ecx + 4] */ 19514 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300129F4: cmp ecx, dword ptr [esi + 8] */ 19515 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 19516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19517 _flag_k = FK_CMP; 19518 if (CMP_NE(_flag_a, _flag_b)) goto L_300129FE; /* 0x300129F7: jne 0x300129fe */ 19519 L_300129F9: 19520 MEM32(esi + 0x8) = edx; /* 0x300129F9: mov dword ptr [esi + 8], edx */ 19521 goto L_30012A00; /* 0x300129FC: jmp 0x30012a00 */ 19522 L_300129FE: 19523 MEM32(esi) = edx; /* 0x300129FE: mov dword ptr [esi], edx */ 19524 L_30012A00: 19525 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 19526 L_30012A03: 19527 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 19528 L_30012A06: 19529 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 19530 L_30012A09: 19531 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 19532 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 19533 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 19534 RECOMP_FLAGS_IN(); 19535 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 19536 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 19537 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19538 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19539 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 19540 _flag_k = FK_ADD; 19541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 19542 eax = eax - 1; /* 0x30012A1B: dec eax */ 19543 _flag_k = FK_DEC; 19544 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 19545 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 19546 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 19547 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 19548 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 19549 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 19550 esp = ebp; /* 0x30012A27: mov esp, ebp */ 19551 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 19552 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 19553 RECOMP_REGS_OUT(); 19554 } 19555 19556 void sub_3001276D(void) { 19557 int _fpu_cmp = 0; 19558 uint32_t _cf = 0; 19559 int _df = 1; 19560 uint32_t _flag_k = FK_NONE; 19561 uint32_t _flag_a = 0, _flag_b = 0; 19562 uint32_t _itail_tgt = 0; 19563 RECOMP_REGS_LOCALS 19564 RECOMP_ENTER(0x3001276Du); 19565 19566 L_3001276D: 19567 MEM32(ebx) = edx; /* 0x3001276D: mov dword ptr [ebx], edx */ 19568 ebx = MEM32(edi + 0x4); /* 0x3001276F: mov ebx, dword ptr [edi + 4] */ 19569 /* cmp MEM32(ebx + 0x8), esi */ /* 0x30012772: cmp dword ptr [ebx + 8], esi */ 19570 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 19571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19572 _flag_k = FK_CMP; 19573 if (CMP_NE(_flag_a, _flag_b)) goto L_3001279E; /* 0x30012775: jne 0x3001279e */ 19574 L_30012777: 19575 ecx = MEM32(esi); /* 0x30012777: mov ecx, dword ptr [esi] */ 19576 edx = MEM32(edi + 0x8); /* 0x30012779: mov edx, dword ptr [edi + 8] */ 19577 /* cmp ecx, edx */ /* 0x3001277C: cmp ecx, edx */ 19578 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19580 _flag_k = FK_CMP; 19581 if (CMP_NE(_flag_a, _flag_b)) goto L_30012785; /* 0x3001277E: jne 0x30012785 */ 19582 L_30012780: 19583 edx = MEM32(esi + 0x4); /* 0x30012780: mov edx, dword ptr [esi + 4] */ 19584 goto L_3001279B; /* 0x30012783: jmp 0x3001279b */ 19585 L_30012785: 19586 ecx = MEM32(eax + 0x8); /* 0x30012785: mov ecx, dword ptr [eax + 8] */ 19587 edx = eax; /* 0x30012788: mov edx, eax */ 19588 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x3001278A: cmp byte ptr [ecx + 0x15], 0 */ 19589 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 19590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19591 _flag_k = FK_NARROW(FK_CMP, 24); 19592 if (CMP_NE(_flag_a, _flag_b)) goto L_3001279B; /* 0x3001278E: jne 0x3001279b */ 19593 L_30012790: 19594 edx = ecx; /* 0x30012790: mov edx, ecx */ 19595 ecx = MEM32(edx + 0x8); /* 0x30012792: mov ecx, dword ptr [edx + 8] */ 19596 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x30012795: cmp byte ptr [ecx + 0x15], 0 */ 19597 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 19598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19599 _flag_k = FK_NARROW(FK_CMP, 24); 19600 RECOMP_BACKEDGE(); 19601 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012790; /* 0x30012799: je 0x30012790 */ 19602 L_3001279B: 19603 MEM32(ebx + 0x8) = edx; /* 0x3001279B: mov dword ptr [ebx + 8], edx */ 19604 L_3001279E: 19605 ecx = MEM32(ebp + (-0x4)); /* 0x3001279E: mov ecx, dword ptr [ebp - 4] */ 19606 SET_LO8(ebx, 1); /* 0x300127A1: mov bl, 1 */ 19607 /* cmp MEM8(ecx + 0x14), LO8(ebx) */ /* 0x300127A3: cmp byte ptr [ecx + 0x14], bl */ 19608 _flag_a = (uint32_t)(MEM8(ecx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19610 _flag_k = FK_NARROW(FK_CMP, 24); 19611 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A09; /* 0x300127A6: jne 0x30012a09 */ 19612 L_300127AC: 19613 edx = MEM32(edi + 0x4); /* 0x300127AC: mov edx, dword ptr [edi + 4] */ 19614 /* cmp eax, MEM32(edx + 0x4) */ /* 0x300127AF: cmp eax, dword ptr [edx + 4] */ 19615 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 19616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19617 _flag_k = FK_CMP; 19618 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127B2: je 0x30012a06 */ 19619 L_300127B8: 19620 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x300127B8: cmp byte ptr [eax + 0x14], bl */ 19621 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19623 _flag_k = FK_NARROW(FK_CMP, 24); 19624 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127BB: jne 0x30012a06 */ 19625 L_300127C1: 19626 edx = MEM32(eax + 0x4); /* 0x300127C1: mov edx, dword ptr [eax + 4] */ 19627 ecx = MEM32(edx); /* 0x300127C4: mov ecx, dword ptr [edx] */ 19628 /* cmp eax, ecx */ /* 0x300127C6: cmp eax, ecx */ 19629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19631 _flag_k = FK_CMP; 19632 if (CMP_NE(_flag_a, _flag_b)) goto L_30012838; /* 0x300127C8: jne 0x30012838 */ 19633 L_300127CA: 19634 ecx = MEM32(edx + 0x8); /* 0x300127CA: mov ecx, dword ptr [edx + 8] */ 19635 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x300127CD: mov dl, byte ptr [ecx + 0x14] */ 19636 /* test LO8(edx), LO8(edx) */ /* 0x300127D0: test dl, dl */ 19637 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 19638 _cf = 0; 19639 _flag_k = FK_NARROW(FK_TEST, 24); 19640 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001281F; /* 0x300127D2: jne 0x3001281f */ 19641 L_300127D4: 19642 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300127D4: mov byte ptr [ecx + 0x14], bl */ 19643 ecx = MEM32(eax + 0x4); /* 0x300127D7: mov ecx, dword ptr [eax + 4] */ 19644 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300127DA: mov byte ptr [ecx + 0x14], 0 */ 19645 ecx = MEM32(eax + 0x4); /* 0x300127DE: mov ecx, dword ptr [eax + 4] */ 19646 edx = MEM32(ecx + 0x8); /* 0x300127E1: mov edx, dword ptr [ecx + 8] */ 19647 esi = MEM32(edx); /* 0x300127E4: mov esi, dword ptr [edx] */ 19648 MEM32(ecx + 0x8) = esi; /* 0x300127E6: mov dword ptr [ecx + 8], esi */ 19649 esi = MEM32(edx); /* 0x300127E9: mov esi, dword ptr [edx] */ 19650 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300127EB: cmp esi, dword ptr [edi + 8] */ 19651 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19653 _flag_k = FK_CMP; 19654 if (CMP_EQ(_flag_a, _flag_b)) goto L_300127F3; /* 0x300127EE: je 0x300127f3 */ 19655 L_300127F0: 19656 MEM32(esi + 0x4) = ecx; /* 0x300127F0: mov dword ptr [esi + 4], ecx */ 19657 L_300127F3: 19658 esi = MEM32(ecx + 0x4); /* 0x300127F3: mov esi, dword ptr [ecx + 4] */ 19659 MEM32(edx + 0x4) = esi; /* 0x300127F6: mov dword ptr [edx + 4], esi */ 19660 esi = MEM32(edi + 0x4); /* 0x300127F9: mov esi, dword ptr [edi + 4] */ 19661 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300127FC: cmp ecx, dword ptr [esi + 4] */ 19662 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19664 _flag_k = FK_CMP; 19665 if (CMP_NE(_flag_a, _flag_b)) goto L_30012806; /* 0x300127FF: jne 0x30012806 */ 19666 L_30012801: 19667 MEM32(esi + 0x4) = edx; /* 0x30012801: mov dword ptr [esi + 4], edx */ 19668 goto L_30012814; /* 0x30012804: jmp 0x30012814 */ 19669 L_30012806: 19670 esi = MEM32(ecx + 0x4); /* 0x30012806: mov esi, dword ptr [ecx + 4] */ 19671 /* cmp ecx, MEM32(esi) */ /* 0x30012809: cmp ecx, dword ptr [esi] */ 19672 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 19673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19674 _flag_k = FK_CMP; 19675 if (CMP_NE(_flag_a, _flag_b)) goto L_30012811; /* 0x3001280B: jne 0x30012811 */ 19676 L_3001280D: 19677 MEM32(esi) = edx; /* 0x3001280D: mov dword ptr [esi], edx */ 19678 goto L_30012814; /* 0x3001280F: jmp 0x30012814 */ 19679 L_30012811: 19680 MEM32(esi + 0x8) = edx; /* 0x30012811: mov dword ptr [esi + 8], edx */ 19681 L_30012814: 19682 MEM32(edx) = ecx; /* 0x30012814: mov dword ptr [edx], ecx */ 19683 MEM32(ecx + 0x4) = edx; /* 0x30012816: mov dword ptr [ecx + 4], edx */ 19684 edx = MEM32(eax + 0x4); /* 0x30012819: mov edx, dword ptr [eax + 4] */ 19685 ecx = MEM32(edx + 0x8); /* 0x3001281C: mov ecx, dword ptr [edx + 8] */ 19686 L_3001281F: 19687 edx = MEM32(ecx); /* 0x3001281F: mov edx, dword ptr [ecx] */ 19688 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012821: cmp byte ptr [edx + 0x14], bl */ 19689 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19691 _flag_k = FK_NARROW(FK_CMP, 24); 19692 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012824: jne 0x300128ba */ 19693 L_3001282A: 19694 edx = MEM32(ecx + 0x8); /* 0x3001282A: mov edx, dword ptr [ecx + 8] */ 19695 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001282D: cmp byte ptr [edx + 0x14], bl */ 19696 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19698 _flag_k = FK_NARROW(FK_CMP, 24); 19699 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012830: jne 0x300128ba */ 19700 L_30012836: 19701 goto L_300128A2; /* 0x30012836: jmp 0x300128a2 */ 19702 L_30012838: 19703 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x30012838: mov dl, byte ptr [ecx + 0x14] */ 19704 /* test LO8(edx), LO8(edx) */ /* 0x3001283B: test dl, dl */ 19705 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 19706 _cf = 0; 19707 _flag_k = FK_NARROW(FK_TEST, 24); 19708 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001288B; /* 0x3001283D: jne 0x3001288b */ 19709 L_3001283F: 19710 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001283F: mov byte ptr [ecx + 0x14], bl */ 19711 ecx = MEM32(eax + 0x4); /* 0x30012842: mov ecx, dword ptr [eax + 4] */ 19712 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012845: mov byte ptr [ecx + 0x14], 0 */ 19713 ecx = MEM32(eax + 0x4); /* 0x30012849: mov ecx, dword ptr [eax + 4] */ 19714 edx = MEM32(ecx); /* 0x3001284C: mov edx, dword ptr [ecx] */ 19715 esi = MEM32(edx + 0x8); /* 0x3001284E: mov esi, dword ptr [edx + 8] */ 19716 MEM32(ecx) = esi; /* 0x30012851: mov dword ptr [ecx], esi */ 19717 esi = MEM32(edx + 0x8); /* 0x30012853: mov esi, dword ptr [edx + 8] */ 19718 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012856: cmp esi, dword ptr [edi + 8] */ 19719 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19721 _flag_k = FK_CMP; 19722 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001285E; /* 0x30012859: je 0x3001285e */ 19723 L_3001285B: 19724 MEM32(esi + 0x4) = ecx; /* 0x3001285B: mov dword ptr [esi + 4], ecx */ 19725 L_3001285E: 19726 esi = MEM32(ecx + 0x4); /* 0x3001285E: mov esi, dword ptr [ecx + 4] */ 19727 MEM32(edx + 0x4) = esi; /* 0x30012861: mov dword ptr [edx + 4], esi */ 19728 esi = MEM32(edi + 0x4); /* 0x30012864: mov esi, dword ptr [edi + 4] */ 19729 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012867: cmp ecx, dword ptr [esi + 4] */ 19730 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19732 _flag_k = FK_CMP; 19733 if (CMP_NE(_flag_a, _flag_b)) goto L_30012871; /* 0x3001286A: jne 0x30012871 */ 19734 L_3001286C: 19735 MEM32(esi + 0x4) = edx; /* 0x3001286C: mov dword ptr [esi + 4], edx */ 19736 goto L_30012880; /* 0x3001286F: jmp 0x30012880 */ 19737 L_30012871: 19738 esi = MEM32(ecx + 0x4); /* 0x30012871: mov esi, dword ptr [ecx + 4] */ 19739 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012874: cmp ecx, dword ptr [esi + 8] */ 19740 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 19741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19742 _flag_k = FK_CMP; 19743 if (CMP_NE(_flag_a, _flag_b)) goto L_3001287E; /* 0x30012877: jne 0x3001287e */ 19744 L_30012879: 19745 MEM32(esi + 0x8) = edx; /* 0x30012879: mov dword ptr [esi + 8], edx */ 19746 goto L_30012880; /* 0x3001287C: jmp 0x30012880 */ 19747 L_3001287E: 19748 MEM32(esi) = edx; /* 0x3001287E: mov dword ptr [esi], edx */ 19749 L_30012880: 19750 MEM32(edx + 0x8) = ecx; /* 0x30012880: mov dword ptr [edx + 8], ecx */ 19751 MEM32(ecx + 0x4) = edx; /* 0x30012883: mov dword ptr [ecx + 4], edx */ 19752 edx = MEM32(eax + 0x4); /* 0x30012886: mov edx, dword ptr [eax + 4] */ 19753 ecx = MEM32(edx); /* 0x30012889: mov ecx, dword ptr [edx] */ 19754 L_3001288B: 19755 edx = MEM32(ecx + 0x8); /* 0x3001288B: mov edx, dword ptr [ecx + 8] */ 19756 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001288E: cmp byte ptr [edx + 0x14], bl */ 19757 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19759 _flag_k = FK_NARROW(FK_CMP, 24); 19760 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x30012891: jne 0x30012967 */ 19761 L_30012897: 19762 edx = MEM32(ecx); /* 0x30012897: mov edx, dword ptr [ecx] */ 19763 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012899: cmp byte ptr [edx + 0x14], bl */ 19764 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19766 _flag_k = FK_NARROW(FK_CMP, 24); 19767 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x3001289C: jne 0x30012967 */ 19768 L_300128A2: 19769 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128A2: mov byte ptr [ecx + 0x14], 0 */ 19770 ecx = MEM32(edi + 0x4); /* 0x300128A6: mov ecx, dword ptr [edi + 4] */ 19771 eax = MEM32(eax + 0x4); /* 0x300128A9: mov eax, dword ptr [eax + 4] */ 19772 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300128AC: cmp eax, dword ptr [ecx + 4] */ 19773 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 19774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19775 _flag_k = FK_CMP; 19776 RECOMP_BACKEDGE(); 19777 if (CMP_NE(_flag_a, _flag_b)) goto L_300127B8; /* 0x300128AF: jne 0x300127b8 */ 19778 L_300128B5: 19779 goto L_30012A06; /* 0x300128B5: jmp 0x30012a06 */ 19780 L_300128BA: 19781 edx = MEM32(ecx + 0x8); /* 0x300128BA: mov edx, dword ptr [ecx + 8] */ 19782 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x300128BD: cmp byte ptr [edx + 0x14], bl */ 19783 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19785 _flag_k = FK_NARROW(FK_CMP, 24); 19786 if (CMP_NE(_flag_a, _flag_b)) goto L_3001290B; /* 0x300128C0: jne 0x3001290b */ 19787 L_300128C2: 19788 edx = MEM32(ecx); /* 0x300128C2: mov edx, dword ptr [ecx] */ 19789 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300128C4: mov byte ptr [edx + 0x14], bl */ 19790 edx = MEM32(ecx); /* 0x300128C7: mov edx, dword ptr [ecx] */ 19791 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128C9: mov byte ptr [ecx + 0x14], 0 */ 19792 esi = MEM32(edx + 0x8); /* 0x300128CD: mov esi, dword ptr [edx + 8] */ 19793 MEM32(ecx) = esi; /* 0x300128D0: mov dword ptr [ecx], esi */ 19794 esi = MEM32(edx + 0x8); /* 0x300128D2: mov esi, dword ptr [edx + 8] */ 19795 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300128D5: cmp esi, dword ptr [edi + 8] */ 19796 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19798 _flag_k = FK_CMP; 19799 if (CMP_EQ(_flag_a, _flag_b)) goto L_300128DD; /* 0x300128D8: je 0x300128dd */ 19800 L_300128DA: 19801 MEM32(esi + 0x4) = ecx; /* 0x300128DA: mov dword ptr [esi + 4], ecx */ 19802 L_300128DD: 19803 esi = MEM32(ecx + 0x4); /* 0x300128DD: mov esi, dword ptr [ecx + 4] */ 19804 MEM32(edx + 0x4) = esi; /* 0x300128E0: mov dword ptr [edx + 4], esi */ 19805 esi = MEM32(edi + 0x4); /* 0x300128E3: mov esi, dword ptr [edi + 4] */ 19806 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300128E6: cmp ecx, dword ptr [esi + 4] */ 19807 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19809 _flag_k = FK_CMP; 19810 if (CMP_NE(_flag_a, _flag_b)) goto L_300128F0; /* 0x300128E9: jne 0x300128f0 */ 19811 L_300128EB: 19812 MEM32(esi + 0x4) = edx; /* 0x300128EB: mov dword ptr [esi + 4], edx */ 19813 goto L_300128FF; /* 0x300128EE: jmp 0x300128ff */ 19814 L_300128F0: 19815 esi = MEM32(ecx + 0x4); /* 0x300128F0: mov esi, dword ptr [ecx + 4] */ 19816 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300128F3: cmp ecx, dword ptr [esi + 8] */ 19817 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 19818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19819 _flag_k = FK_CMP; 19820 if (CMP_NE(_flag_a, _flag_b)) goto L_300128FD; /* 0x300128F6: jne 0x300128fd */ 19821 L_300128F8: 19822 MEM32(esi + 0x8) = edx; /* 0x300128F8: mov dword ptr [esi + 8], edx */ 19823 goto L_300128FF; /* 0x300128FB: jmp 0x300128ff */ 19824 L_300128FD: 19825 MEM32(esi) = edx; /* 0x300128FD: mov dword ptr [esi], edx */ 19826 L_300128FF: 19827 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 19828 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 19829 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 19830 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 19831 L_3001290B: 19832 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 19833 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 19834 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 19835 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 19836 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 19837 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 19838 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 19839 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 19840 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 19841 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 19842 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 19843 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 19844 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 19845 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19847 _flag_k = FK_CMP; 19848 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 19849 L_30012932: 19850 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 19851 L_30012935: 19852 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 19853 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 19854 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 19855 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 19856 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19858 _flag_k = FK_CMP; 19859 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 19860 L_30012943: 19861 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 19862 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 19863 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 19864 L_3001294D: 19865 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 19866 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 19867 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 19868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19869 _flag_k = FK_CMP; 19870 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 19871 L_30012954: 19872 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 19873 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 19874 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 19875 L_3001295D: 19876 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 19877 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 19878 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 19879 L_30012967: 19880 edx = MEM32(ecx); /* 0x30012967: mov edx, dword ptr [ecx] */ 19881 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012969: cmp byte ptr [edx + 0x14], bl */ 19882 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 19883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19884 _flag_k = FK_NARROW(FK_CMP, 24); 19885 if (CMP_NE(_flag_a, _flag_b)) goto L_300129B5; /* 0x3001296C: jne 0x300129b5 */ 19886 L_3001296E: 19887 edx = MEM32(ecx + 0x8); /* 0x3001296E: mov edx, dword ptr [ecx + 8] */ 19888 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012971: mov byte ptr [edx + 0x14], bl */ 19889 edx = MEM32(ecx + 0x8); /* 0x30012974: mov edx, dword ptr [ecx + 8] */ 19890 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012977: mov byte ptr [ecx + 0x14], 0 */ 19891 esi = MEM32(edx); /* 0x3001297B: mov esi, dword ptr [edx] */ 19892 MEM32(ecx + 0x8) = esi; /* 0x3001297D: mov dword ptr [ecx + 8], esi */ 19893 esi = MEM32(edx); /* 0x30012980: mov esi, dword ptr [edx] */ 19894 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012982: cmp esi, dword ptr [edi + 8] */ 19895 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19897 _flag_k = FK_CMP; 19898 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001298A; /* 0x30012985: je 0x3001298a */ 19899 L_30012987: 19900 MEM32(esi + 0x4) = ecx; /* 0x30012987: mov dword ptr [esi + 4], ecx */ 19901 L_3001298A: 19902 esi = MEM32(ecx + 0x4); /* 0x3001298A: mov esi, dword ptr [ecx + 4] */ 19903 MEM32(edx + 0x4) = esi; /* 0x3001298D: mov dword ptr [edx + 4], esi */ 19904 esi = MEM32(edi + 0x4); /* 0x30012990: mov esi, dword ptr [edi + 4] */ 19905 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012993: cmp ecx, dword ptr [esi + 4] */ 19906 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19908 _flag_k = FK_CMP; 19909 if (CMP_NE(_flag_a, _flag_b)) goto L_3001299D; /* 0x30012996: jne 0x3001299d */ 19910 L_30012998: 19911 MEM32(esi + 0x4) = edx; /* 0x30012998: mov dword ptr [esi + 4], edx */ 19912 goto L_300129AB; /* 0x3001299B: jmp 0x300129ab */ 19913 L_3001299D: 19914 esi = MEM32(ecx + 0x4); /* 0x3001299D: mov esi, dword ptr [ecx + 4] */ 19915 /* cmp ecx, MEM32(esi) */ /* 0x300129A0: cmp ecx, dword ptr [esi] */ 19916 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 19917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19918 _flag_k = FK_CMP; 19919 if (CMP_NE(_flag_a, _flag_b)) goto L_300129A8; /* 0x300129A2: jne 0x300129a8 */ 19920 L_300129A4: 19921 MEM32(esi) = edx; /* 0x300129A4: mov dword ptr [esi], edx */ 19922 goto L_300129AB; /* 0x300129A6: jmp 0x300129ab */ 19923 L_300129A8: 19924 MEM32(esi + 0x8) = edx; /* 0x300129A8: mov dword ptr [esi + 8], edx */ 19925 L_300129AB: 19926 MEM32(edx) = ecx; /* 0x300129AB: mov dword ptr [edx], ecx */ 19927 MEM32(ecx + 0x4) = edx; /* 0x300129AD: mov dword ptr [ecx + 4], edx */ 19928 ecx = MEM32(eax + 0x4); /* 0x300129B0: mov ecx, dword ptr [eax + 4] */ 19929 ecx = MEM32(ecx); /* 0x300129B3: mov ecx, dword ptr [ecx] */ 19930 L_300129B5: 19931 edx = MEM32(eax + 0x4); /* 0x300129B5: mov edx, dword ptr [eax + 4] */ 19932 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x300129B8: mov dl, byte ptr [edx + 0x14] */ 19933 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x300129BB: mov byte ptr [ecx + 0x14], dl */ 19934 edx = MEM32(eax + 0x4); /* 0x300129BE: mov edx, dword ptr [eax + 4] */ 19935 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C1: mov byte ptr [edx + 0x14], bl */ 19936 ecx = MEM32(ecx); /* 0x300129C4: mov ecx, dword ptr [ecx] */ 19937 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C6: mov byte ptr [ecx + 0x14], bl */ 19938 ecx = MEM32(eax + 0x4); /* 0x300129C9: mov ecx, dword ptr [eax + 4] */ 19939 edx = MEM32(ecx); /* 0x300129CC: mov edx, dword ptr [ecx] */ 19940 esi = MEM32(edx + 0x8); /* 0x300129CE: mov esi, dword ptr [edx + 8] */ 19941 MEM32(ecx) = esi; /* 0x300129D1: mov dword ptr [ecx], esi */ 19942 esi = MEM32(edx + 0x8); /* 0x300129D3: mov esi, dword ptr [edx + 8] */ 19943 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300129D6: cmp esi, dword ptr [edi + 8] */ 19944 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 19945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19946 _flag_k = FK_CMP; 19947 if (CMP_EQ(_flag_a, _flag_b)) goto L_300129DE; /* 0x300129D9: je 0x300129de */ 19948 L_300129DB: 19949 MEM32(esi + 0x4) = ecx; /* 0x300129DB: mov dword ptr [esi + 4], ecx */ 19950 L_300129DE: 19951 esi = MEM32(ecx + 0x4); /* 0x300129DE: mov esi, dword ptr [ecx + 4] */ 19952 MEM32(edx + 0x4) = esi; /* 0x300129E1: mov dword ptr [edx + 4], esi */ 19953 esi = MEM32(edi + 0x4); /* 0x300129E4: mov esi, dword ptr [edi + 4] */ 19954 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300129E7: cmp ecx, dword ptr [esi + 4] */ 19955 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 19956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19957 _flag_k = FK_CMP; 19958 if (CMP_NE(_flag_a, _flag_b)) goto L_300129F1; /* 0x300129EA: jne 0x300129f1 */ 19959 L_300129EC: 19960 MEM32(esi + 0x4) = edx; /* 0x300129EC: mov dword ptr [esi + 4], edx */ 19961 goto L_30012A00; /* 0x300129EF: jmp 0x30012a00 */ 19962 L_300129F1: 19963 esi = MEM32(ecx + 0x4); /* 0x300129F1: mov esi, dword ptr [ecx + 4] */ 19964 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300129F4: cmp ecx, dword ptr [esi + 8] */ 19965 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 19966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19967 _flag_k = FK_CMP; 19968 if (CMP_NE(_flag_a, _flag_b)) goto L_300129FE; /* 0x300129F7: jne 0x300129fe */ 19969 L_300129F9: 19970 MEM32(esi + 0x8) = edx; /* 0x300129F9: mov dword ptr [esi + 8], edx */ 19971 goto L_30012A00; /* 0x300129FC: jmp 0x30012a00 */ 19972 L_300129FE: 19973 MEM32(esi) = edx; /* 0x300129FE: mov dword ptr [esi], edx */ 19974 L_30012A00: 19975 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 19976 L_30012A03: 19977 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 19978 L_30012A06: 19979 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 19980 L_30012A09: 19981 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 19982 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 19983 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 19984 RECOMP_FLAGS_IN(); 19985 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 19986 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 19987 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19988 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19989 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 19990 _flag_k = FK_ADD; 19991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 19992 eax = eax - 1; /* 0x30012A1B: dec eax */ 19993 _flag_k = FK_DEC; 19994 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 19995 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 19996 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 19997 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 19998 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 19999 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 20000 esp = ebp; /* 0x30012A27: mov esp, ebp */ 20001 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 20002 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 20003 RECOMP_REGS_OUT(); 20004 } 20005 20006 void sub_3001279B(void) { 20007 int _fpu_cmp = 0; 20008 uint32_t _cf = 0; 20009 int _df = 1; 20010 uint32_t _flag_k = FK_NONE; 20011 uint32_t _flag_a = 0, _flag_b = 0; 20012 uint32_t _itail_tgt = 0; 20013 RECOMP_REGS_LOCALS 20014 RECOMP_ENTER(0x3001279Bu); 20015 20016 L_3001279B: 20017 MEM32(ebx + 0x8) = edx; /* 0x3001279B: mov dword ptr [ebx + 8], edx */ 20018 ecx = MEM32(ebp + (-0x4)); /* 0x3001279E: mov ecx, dword ptr [ebp - 4] */ 20019 SET_LO8(ebx, 1); /* 0x300127A1: mov bl, 1 */ 20020 /* cmp MEM8(ecx + 0x14), LO8(ebx) */ /* 0x300127A3: cmp byte ptr [ecx + 0x14], bl */ 20021 _flag_a = (uint32_t)(MEM8(ecx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20023 _flag_k = FK_NARROW(FK_CMP, 24); 20024 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A09; /* 0x300127A6: jne 0x30012a09 */ 20025 L_300127AC: 20026 edx = MEM32(edi + 0x4); /* 0x300127AC: mov edx, dword ptr [edi + 4] */ 20027 /* cmp eax, MEM32(edx + 0x4) */ /* 0x300127AF: cmp eax, dword ptr [edx + 4] */ 20028 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 20029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20030 _flag_k = FK_CMP; 20031 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127B2: je 0x30012a06 */ 20032 L_300127B8: 20033 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x300127B8: cmp byte ptr [eax + 0x14], bl */ 20034 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20036 _flag_k = FK_NARROW(FK_CMP, 24); 20037 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127BB: jne 0x30012a06 */ 20038 L_300127C1: 20039 edx = MEM32(eax + 0x4); /* 0x300127C1: mov edx, dword ptr [eax + 4] */ 20040 ecx = MEM32(edx); /* 0x300127C4: mov ecx, dword ptr [edx] */ 20041 /* cmp eax, ecx */ /* 0x300127C6: cmp eax, ecx */ 20042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 20043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20044 _flag_k = FK_CMP; 20045 if (CMP_NE(_flag_a, _flag_b)) goto L_30012838; /* 0x300127C8: jne 0x30012838 */ 20046 L_300127CA: 20047 ecx = MEM32(edx + 0x8); /* 0x300127CA: mov ecx, dword ptr [edx + 8] */ 20048 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x300127CD: mov dl, byte ptr [ecx + 0x14] */ 20049 /* test LO8(edx), LO8(edx) */ /* 0x300127D0: test dl, dl */ 20050 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 20051 _cf = 0; 20052 _flag_k = FK_NARROW(FK_TEST, 24); 20053 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001281F; /* 0x300127D2: jne 0x3001281f */ 20054 L_300127D4: 20055 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300127D4: mov byte ptr [ecx + 0x14], bl */ 20056 ecx = MEM32(eax + 0x4); /* 0x300127D7: mov ecx, dword ptr [eax + 4] */ 20057 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300127DA: mov byte ptr [ecx + 0x14], 0 */ 20058 ecx = MEM32(eax + 0x4); /* 0x300127DE: mov ecx, dword ptr [eax + 4] */ 20059 edx = MEM32(ecx + 0x8); /* 0x300127E1: mov edx, dword ptr [ecx + 8] */ 20060 esi = MEM32(edx); /* 0x300127E4: mov esi, dword ptr [edx] */ 20061 MEM32(ecx + 0x8) = esi; /* 0x300127E6: mov dword ptr [ecx + 8], esi */ 20062 esi = MEM32(edx); /* 0x300127E9: mov esi, dword ptr [edx] */ 20063 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300127EB: cmp esi, dword ptr [edi + 8] */ 20064 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20066 _flag_k = FK_CMP; 20067 if (CMP_EQ(_flag_a, _flag_b)) goto L_300127F3; /* 0x300127EE: je 0x300127f3 */ 20068 L_300127F0: 20069 MEM32(esi + 0x4) = ecx; /* 0x300127F0: mov dword ptr [esi + 4], ecx */ 20070 L_300127F3: 20071 esi = MEM32(ecx + 0x4); /* 0x300127F3: mov esi, dword ptr [ecx + 4] */ 20072 MEM32(edx + 0x4) = esi; /* 0x300127F6: mov dword ptr [edx + 4], esi */ 20073 esi = MEM32(edi + 0x4); /* 0x300127F9: mov esi, dword ptr [edi + 4] */ 20074 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300127FC: cmp ecx, dword ptr [esi + 4] */ 20075 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20077 _flag_k = FK_CMP; 20078 if (CMP_NE(_flag_a, _flag_b)) goto L_30012806; /* 0x300127FF: jne 0x30012806 */ 20079 L_30012801: 20080 MEM32(esi + 0x4) = edx; /* 0x30012801: mov dword ptr [esi + 4], edx */ 20081 goto L_30012814; /* 0x30012804: jmp 0x30012814 */ 20082 L_30012806: 20083 esi = MEM32(ecx + 0x4); /* 0x30012806: mov esi, dword ptr [ecx + 4] */ 20084 /* cmp ecx, MEM32(esi) */ /* 0x30012809: cmp ecx, dword ptr [esi] */ 20085 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 20086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20087 _flag_k = FK_CMP; 20088 if (CMP_NE(_flag_a, _flag_b)) goto L_30012811; /* 0x3001280B: jne 0x30012811 */ 20089 L_3001280D: 20090 MEM32(esi) = edx; /* 0x3001280D: mov dword ptr [esi], edx */ 20091 goto L_30012814; /* 0x3001280F: jmp 0x30012814 */ 20092 L_30012811: 20093 MEM32(esi + 0x8) = edx; /* 0x30012811: mov dword ptr [esi + 8], edx */ 20094 L_30012814: 20095 MEM32(edx) = ecx; /* 0x30012814: mov dword ptr [edx], ecx */ 20096 MEM32(ecx + 0x4) = edx; /* 0x30012816: mov dword ptr [ecx + 4], edx */ 20097 edx = MEM32(eax + 0x4); /* 0x30012819: mov edx, dword ptr [eax + 4] */ 20098 ecx = MEM32(edx + 0x8); /* 0x3001281C: mov ecx, dword ptr [edx + 8] */ 20099 L_3001281F: 20100 edx = MEM32(ecx); /* 0x3001281F: mov edx, dword ptr [ecx] */ 20101 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012821: cmp byte ptr [edx + 0x14], bl */ 20102 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20104 _flag_k = FK_NARROW(FK_CMP, 24); 20105 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012824: jne 0x300128ba */ 20106 L_3001282A: 20107 edx = MEM32(ecx + 0x8); /* 0x3001282A: mov edx, dword ptr [ecx + 8] */ 20108 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001282D: cmp byte ptr [edx + 0x14], bl */ 20109 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20111 _flag_k = FK_NARROW(FK_CMP, 24); 20112 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012830: jne 0x300128ba */ 20113 L_30012836: 20114 goto L_300128A2; /* 0x30012836: jmp 0x300128a2 */ 20115 L_30012838: 20116 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x30012838: mov dl, byte ptr [ecx + 0x14] */ 20117 /* test LO8(edx), LO8(edx) */ /* 0x3001283B: test dl, dl */ 20118 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 20119 _cf = 0; 20120 _flag_k = FK_NARROW(FK_TEST, 24); 20121 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001288B; /* 0x3001283D: jne 0x3001288b */ 20122 L_3001283F: 20123 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001283F: mov byte ptr [ecx + 0x14], bl */ 20124 ecx = MEM32(eax + 0x4); /* 0x30012842: mov ecx, dword ptr [eax + 4] */ 20125 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012845: mov byte ptr [ecx + 0x14], 0 */ 20126 ecx = MEM32(eax + 0x4); /* 0x30012849: mov ecx, dword ptr [eax + 4] */ 20127 edx = MEM32(ecx); /* 0x3001284C: mov edx, dword ptr [ecx] */ 20128 esi = MEM32(edx + 0x8); /* 0x3001284E: mov esi, dword ptr [edx + 8] */ 20129 MEM32(ecx) = esi; /* 0x30012851: mov dword ptr [ecx], esi */ 20130 esi = MEM32(edx + 0x8); /* 0x30012853: mov esi, dword ptr [edx + 8] */ 20131 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012856: cmp esi, dword ptr [edi + 8] */ 20132 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20134 _flag_k = FK_CMP; 20135 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001285E; /* 0x30012859: je 0x3001285e */ 20136 L_3001285B: 20137 MEM32(esi + 0x4) = ecx; /* 0x3001285B: mov dword ptr [esi + 4], ecx */ 20138 L_3001285E: 20139 esi = MEM32(ecx + 0x4); /* 0x3001285E: mov esi, dword ptr [ecx + 4] */ 20140 MEM32(edx + 0x4) = esi; /* 0x30012861: mov dword ptr [edx + 4], esi */ 20141 esi = MEM32(edi + 0x4); /* 0x30012864: mov esi, dword ptr [edi + 4] */ 20142 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012867: cmp ecx, dword ptr [esi + 4] */ 20143 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20145 _flag_k = FK_CMP; 20146 if (CMP_NE(_flag_a, _flag_b)) goto L_30012871; /* 0x3001286A: jne 0x30012871 */ 20147 L_3001286C: 20148 MEM32(esi + 0x4) = edx; /* 0x3001286C: mov dword ptr [esi + 4], edx */ 20149 goto L_30012880; /* 0x3001286F: jmp 0x30012880 */ 20150 L_30012871: 20151 esi = MEM32(ecx + 0x4); /* 0x30012871: mov esi, dword ptr [ecx + 4] */ 20152 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012874: cmp ecx, dword ptr [esi + 8] */ 20153 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 20154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20155 _flag_k = FK_CMP; 20156 if (CMP_NE(_flag_a, _flag_b)) goto L_3001287E; /* 0x30012877: jne 0x3001287e */ 20157 L_30012879: 20158 MEM32(esi + 0x8) = edx; /* 0x30012879: mov dword ptr [esi + 8], edx */ 20159 goto L_30012880; /* 0x3001287C: jmp 0x30012880 */ 20160 L_3001287E: 20161 MEM32(esi) = edx; /* 0x3001287E: mov dword ptr [esi], edx */ 20162 L_30012880: 20163 MEM32(edx + 0x8) = ecx; /* 0x30012880: mov dword ptr [edx + 8], ecx */ 20164 MEM32(ecx + 0x4) = edx; /* 0x30012883: mov dword ptr [ecx + 4], edx */ 20165 edx = MEM32(eax + 0x4); /* 0x30012886: mov edx, dword ptr [eax + 4] */ 20166 ecx = MEM32(edx); /* 0x30012889: mov ecx, dword ptr [edx] */ 20167 L_3001288B: 20168 edx = MEM32(ecx + 0x8); /* 0x3001288B: mov edx, dword ptr [ecx + 8] */ 20169 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001288E: cmp byte ptr [edx + 0x14], bl */ 20170 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20172 _flag_k = FK_NARROW(FK_CMP, 24); 20173 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x30012891: jne 0x30012967 */ 20174 L_30012897: 20175 edx = MEM32(ecx); /* 0x30012897: mov edx, dword ptr [ecx] */ 20176 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012899: cmp byte ptr [edx + 0x14], bl */ 20177 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20179 _flag_k = FK_NARROW(FK_CMP, 24); 20180 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x3001289C: jne 0x30012967 */ 20181 L_300128A2: 20182 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128A2: mov byte ptr [ecx + 0x14], 0 */ 20183 ecx = MEM32(edi + 0x4); /* 0x300128A6: mov ecx, dword ptr [edi + 4] */ 20184 eax = MEM32(eax + 0x4); /* 0x300128A9: mov eax, dword ptr [eax + 4] */ 20185 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300128AC: cmp eax, dword ptr [ecx + 4] */ 20186 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 20187 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20188 _flag_k = FK_CMP; 20189 RECOMP_BACKEDGE(); 20190 if (CMP_NE(_flag_a, _flag_b)) goto L_300127B8; /* 0x300128AF: jne 0x300127b8 */ 20191 L_300128B5: 20192 goto L_30012A06; /* 0x300128B5: jmp 0x30012a06 */ 20193 L_300128BA: 20194 edx = MEM32(ecx + 0x8); /* 0x300128BA: mov edx, dword ptr [ecx + 8] */ 20195 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x300128BD: cmp byte ptr [edx + 0x14], bl */ 20196 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20198 _flag_k = FK_NARROW(FK_CMP, 24); 20199 if (CMP_NE(_flag_a, _flag_b)) goto L_3001290B; /* 0x300128C0: jne 0x3001290b */ 20200 L_300128C2: 20201 edx = MEM32(ecx); /* 0x300128C2: mov edx, dword ptr [ecx] */ 20202 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300128C4: mov byte ptr [edx + 0x14], bl */ 20203 edx = MEM32(ecx); /* 0x300128C7: mov edx, dword ptr [ecx] */ 20204 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128C9: mov byte ptr [ecx + 0x14], 0 */ 20205 esi = MEM32(edx + 0x8); /* 0x300128CD: mov esi, dword ptr [edx + 8] */ 20206 MEM32(ecx) = esi; /* 0x300128D0: mov dword ptr [ecx], esi */ 20207 esi = MEM32(edx + 0x8); /* 0x300128D2: mov esi, dword ptr [edx + 8] */ 20208 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300128D5: cmp esi, dword ptr [edi + 8] */ 20209 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20211 _flag_k = FK_CMP; 20212 if (CMP_EQ(_flag_a, _flag_b)) goto L_300128DD; /* 0x300128D8: je 0x300128dd */ 20213 L_300128DA: 20214 MEM32(esi + 0x4) = ecx; /* 0x300128DA: mov dword ptr [esi + 4], ecx */ 20215 L_300128DD: 20216 esi = MEM32(ecx + 0x4); /* 0x300128DD: mov esi, dword ptr [ecx + 4] */ 20217 MEM32(edx + 0x4) = esi; /* 0x300128E0: mov dword ptr [edx + 4], esi */ 20218 esi = MEM32(edi + 0x4); /* 0x300128E3: mov esi, dword ptr [edi + 4] */ 20219 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300128E6: cmp ecx, dword ptr [esi + 4] */ 20220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20222 _flag_k = FK_CMP; 20223 if (CMP_NE(_flag_a, _flag_b)) goto L_300128F0; /* 0x300128E9: jne 0x300128f0 */ 20224 L_300128EB: 20225 MEM32(esi + 0x4) = edx; /* 0x300128EB: mov dword ptr [esi + 4], edx */ 20226 goto L_300128FF; /* 0x300128EE: jmp 0x300128ff */ 20227 L_300128F0: 20228 esi = MEM32(ecx + 0x4); /* 0x300128F0: mov esi, dword ptr [ecx + 4] */ 20229 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300128F3: cmp ecx, dword ptr [esi + 8] */ 20230 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 20231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20232 _flag_k = FK_CMP; 20233 if (CMP_NE(_flag_a, _flag_b)) goto L_300128FD; /* 0x300128F6: jne 0x300128fd */ 20234 L_300128F8: 20235 MEM32(esi + 0x8) = edx; /* 0x300128F8: mov dword ptr [esi + 8], edx */ 20236 goto L_300128FF; /* 0x300128FB: jmp 0x300128ff */ 20237 L_300128FD: 20238 MEM32(esi) = edx; /* 0x300128FD: mov dword ptr [esi], edx */ 20239 L_300128FF: 20240 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 20241 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 20242 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 20243 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 20244 L_3001290B: 20245 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 20246 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 20247 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 20248 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 20249 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 20250 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 20251 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 20252 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 20253 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 20254 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 20255 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 20256 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 20257 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 20258 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20260 _flag_k = FK_CMP; 20261 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 20262 L_30012932: 20263 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 20264 L_30012935: 20265 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 20266 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 20267 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 20268 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 20269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20271 _flag_k = FK_CMP; 20272 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 20273 L_30012943: 20274 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 20275 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 20276 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 20277 L_3001294D: 20278 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 20279 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 20280 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 20281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20282 _flag_k = FK_CMP; 20283 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 20284 L_30012954: 20285 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 20286 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 20287 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 20288 L_3001295D: 20289 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 20290 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 20291 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 20292 L_30012967: 20293 edx = MEM32(ecx); /* 0x30012967: mov edx, dword ptr [ecx] */ 20294 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012969: cmp byte ptr [edx + 0x14], bl */ 20295 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20297 _flag_k = FK_NARROW(FK_CMP, 24); 20298 if (CMP_NE(_flag_a, _flag_b)) goto L_300129B5; /* 0x3001296C: jne 0x300129b5 */ 20299 L_3001296E: 20300 edx = MEM32(ecx + 0x8); /* 0x3001296E: mov edx, dword ptr [ecx + 8] */ 20301 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012971: mov byte ptr [edx + 0x14], bl */ 20302 edx = MEM32(ecx + 0x8); /* 0x30012974: mov edx, dword ptr [ecx + 8] */ 20303 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012977: mov byte ptr [ecx + 0x14], 0 */ 20304 esi = MEM32(edx); /* 0x3001297B: mov esi, dword ptr [edx] */ 20305 MEM32(ecx + 0x8) = esi; /* 0x3001297D: mov dword ptr [ecx + 8], esi */ 20306 esi = MEM32(edx); /* 0x30012980: mov esi, dword ptr [edx] */ 20307 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012982: cmp esi, dword ptr [edi + 8] */ 20308 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20310 _flag_k = FK_CMP; 20311 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001298A; /* 0x30012985: je 0x3001298a */ 20312 L_30012987: 20313 MEM32(esi + 0x4) = ecx; /* 0x30012987: mov dword ptr [esi + 4], ecx */ 20314 L_3001298A: 20315 esi = MEM32(ecx + 0x4); /* 0x3001298A: mov esi, dword ptr [ecx + 4] */ 20316 MEM32(edx + 0x4) = esi; /* 0x3001298D: mov dword ptr [edx + 4], esi */ 20317 esi = MEM32(edi + 0x4); /* 0x30012990: mov esi, dword ptr [edi + 4] */ 20318 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012993: cmp ecx, dword ptr [esi + 4] */ 20319 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20321 _flag_k = FK_CMP; 20322 if (CMP_NE(_flag_a, _flag_b)) goto L_3001299D; /* 0x30012996: jne 0x3001299d */ 20323 L_30012998: 20324 MEM32(esi + 0x4) = edx; /* 0x30012998: mov dword ptr [esi + 4], edx */ 20325 goto L_300129AB; /* 0x3001299B: jmp 0x300129ab */ 20326 L_3001299D: 20327 esi = MEM32(ecx + 0x4); /* 0x3001299D: mov esi, dword ptr [ecx + 4] */ 20328 /* cmp ecx, MEM32(esi) */ /* 0x300129A0: cmp ecx, dword ptr [esi] */ 20329 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 20330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20331 _flag_k = FK_CMP; 20332 if (CMP_NE(_flag_a, _flag_b)) goto L_300129A8; /* 0x300129A2: jne 0x300129a8 */ 20333 L_300129A4: 20334 MEM32(esi) = edx; /* 0x300129A4: mov dword ptr [esi], edx */ 20335 goto L_300129AB; /* 0x300129A6: jmp 0x300129ab */ 20336 L_300129A8: 20337 MEM32(esi + 0x8) = edx; /* 0x300129A8: mov dword ptr [esi + 8], edx */ 20338 L_300129AB: 20339 MEM32(edx) = ecx; /* 0x300129AB: mov dword ptr [edx], ecx */ 20340 MEM32(ecx + 0x4) = edx; /* 0x300129AD: mov dword ptr [ecx + 4], edx */ 20341 ecx = MEM32(eax + 0x4); /* 0x300129B0: mov ecx, dword ptr [eax + 4] */ 20342 ecx = MEM32(ecx); /* 0x300129B3: mov ecx, dword ptr [ecx] */ 20343 L_300129B5: 20344 edx = MEM32(eax + 0x4); /* 0x300129B5: mov edx, dword ptr [eax + 4] */ 20345 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x300129B8: mov dl, byte ptr [edx + 0x14] */ 20346 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x300129BB: mov byte ptr [ecx + 0x14], dl */ 20347 edx = MEM32(eax + 0x4); /* 0x300129BE: mov edx, dword ptr [eax + 4] */ 20348 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C1: mov byte ptr [edx + 0x14], bl */ 20349 ecx = MEM32(ecx); /* 0x300129C4: mov ecx, dword ptr [ecx] */ 20350 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C6: mov byte ptr [ecx + 0x14], bl */ 20351 ecx = MEM32(eax + 0x4); /* 0x300129C9: mov ecx, dword ptr [eax + 4] */ 20352 edx = MEM32(ecx); /* 0x300129CC: mov edx, dword ptr [ecx] */ 20353 esi = MEM32(edx + 0x8); /* 0x300129CE: mov esi, dword ptr [edx + 8] */ 20354 MEM32(ecx) = esi; /* 0x300129D1: mov dword ptr [ecx], esi */ 20355 esi = MEM32(edx + 0x8); /* 0x300129D3: mov esi, dword ptr [edx + 8] */ 20356 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300129D6: cmp esi, dword ptr [edi + 8] */ 20357 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20359 _flag_k = FK_CMP; 20360 if (CMP_EQ(_flag_a, _flag_b)) goto L_300129DE; /* 0x300129D9: je 0x300129de */ 20361 L_300129DB: 20362 MEM32(esi + 0x4) = ecx; /* 0x300129DB: mov dword ptr [esi + 4], ecx */ 20363 L_300129DE: 20364 esi = MEM32(ecx + 0x4); /* 0x300129DE: mov esi, dword ptr [ecx + 4] */ 20365 MEM32(edx + 0x4) = esi; /* 0x300129E1: mov dword ptr [edx + 4], esi */ 20366 esi = MEM32(edi + 0x4); /* 0x300129E4: mov esi, dword ptr [edi + 4] */ 20367 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300129E7: cmp ecx, dword ptr [esi + 4] */ 20368 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20370 _flag_k = FK_CMP; 20371 if (CMP_NE(_flag_a, _flag_b)) goto L_300129F1; /* 0x300129EA: jne 0x300129f1 */ 20372 L_300129EC: 20373 MEM32(esi + 0x4) = edx; /* 0x300129EC: mov dword ptr [esi + 4], edx */ 20374 goto L_30012A00; /* 0x300129EF: jmp 0x30012a00 */ 20375 L_300129F1: 20376 esi = MEM32(ecx + 0x4); /* 0x300129F1: mov esi, dword ptr [ecx + 4] */ 20377 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300129F4: cmp ecx, dword ptr [esi + 8] */ 20378 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 20379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20380 _flag_k = FK_CMP; 20381 if (CMP_NE(_flag_a, _flag_b)) goto L_300129FE; /* 0x300129F7: jne 0x300129fe */ 20382 L_300129F9: 20383 MEM32(esi + 0x8) = edx; /* 0x300129F9: mov dword ptr [esi + 8], edx */ 20384 goto L_30012A00; /* 0x300129FC: jmp 0x30012a00 */ 20385 L_300129FE: 20386 MEM32(esi) = edx; /* 0x300129FE: mov dword ptr [esi], edx */ 20387 L_30012A00: 20388 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 20389 L_30012A03: 20390 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 20391 L_30012A06: 20392 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 20393 L_30012A09: 20394 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 20395 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 20396 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 20397 RECOMP_FLAGS_IN(); 20398 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 20399 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 20400 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20402 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 20403 _flag_k = FK_ADD; 20404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 20405 eax = eax - 1; /* 0x30012A1B: dec eax */ 20406 _flag_k = FK_DEC; 20407 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 20408 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 20409 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 20410 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 20411 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 20412 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 20413 esp = ebp; /* 0x30012A27: mov esp, ebp */ 20414 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 20415 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 20416 RECOMP_REGS_OUT(); 20417 } 20418 20419 void sub_300127B8(void) { 20420 int _fpu_cmp = 0; 20421 uint32_t _cf = 0; 20422 int _df = 1; 20423 uint32_t _flag_k = FK_NONE; 20424 uint32_t _flag_a = 0, _flag_b = 0; 20425 uint32_t _itail_tgt = 0; 20426 RECOMP_REGS_LOCALS 20427 RECOMP_ENTER(0x300127B8u); 20428 20429 L_300127B8: 20430 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x300127B8: cmp byte ptr [eax + 0x14], bl */ 20431 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20433 _flag_k = FK_NARROW(FK_CMP, 24); 20434 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127BB: jne 0x30012a06 */ 20435 L_300127C1: 20436 edx = MEM32(eax + 0x4); /* 0x300127C1: mov edx, dword ptr [eax + 4] */ 20437 ecx = MEM32(edx); /* 0x300127C4: mov ecx, dword ptr [edx] */ 20438 /* cmp eax, ecx */ /* 0x300127C6: cmp eax, ecx */ 20439 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 20440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20441 _flag_k = FK_CMP; 20442 if (CMP_NE(_flag_a, _flag_b)) goto L_30012838; /* 0x300127C8: jne 0x30012838 */ 20443 L_300127CA: 20444 ecx = MEM32(edx + 0x8); /* 0x300127CA: mov ecx, dword ptr [edx + 8] */ 20445 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x300127CD: mov dl, byte ptr [ecx + 0x14] */ 20446 /* test LO8(edx), LO8(edx) */ /* 0x300127D0: test dl, dl */ 20447 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 20448 _cf = 0; 20449 _flag_k = FK_NARROW(FK_TEST, 24); 20450 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001281F; /* 0x300127D2: jne 0x3001281f */ 20451 L_300127D4: 20452 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300127D4: mov byte ptr [ecx + 0x14], bl */ 20453 ecx = MEM32(eax + 0x4); /* 0x300127D7: mov ecx, dword ptr [eax + 4] */ 20454 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300127DA: mov byte ptr [ecx + 0x14], 0 */ 20455 ecx = MEM32(eax + 0x4); /* 0x300127DE: mov ecx, dword ptr [eax + 4] */ 20456 edx = MEM32(ecx + 0x8); /* 0x300127E1: mov edx, dword ptr [ecx + 8] */ 20457 esi = MEM32(edx); /* 0x300127E4: mov esi, dword ptr [edx] */ 20458 MEM32(ecx + 0x8) = esi; /* 0x300127E6: mov dword ptr [ecx + 8], esi */ 20459 esi = MEM32(edx); /* 0x300127E9: mov esi, dword ptr [edx] */ 20460 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300127EB: cmp esi, dword ptr [edi + 8] */ 20461 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20463 _flag_k = FK_CMP; 20464 if (CMP_EQ(_flag_a, _flag_b)) goto L_300127F3; /* 0x300127EE: je 0x300127f3 */ 20465 L_300127F0: 20466 MEM32(esi + 0x4) = ecx; /* 0x300127F0: mov dword ptr [esi + 4], ecx */ 20467 L_300127F3: 20468 esi = MEM32(ecx + 0x4); /* 0x300127F3: mov esi, dword ptr [ecx + 4] */ 20469 MEM32(edx + 0x4) = esi; /* 0x300127F6: mov dword ptr [edx + 4], esi */ 20470 esi = MEM32(edi + 0x4); /* 0x300127F9: mov esi, dword ptr [edi + 4] */ 20471 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300127FC: cmp ecx, dword ptr [esi + 4] */ 20472 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20474 _flag_k = FK_CMP; 20475 if (CMP_NE(_flag_a, _flag_b)) goto L_30012806; /* 0x300127FF: jne 0x30012806 */ 20476 L_30012801: 20477 MEM32(esi + 0x4) = edx; /* 0x30012801: mov dword ptr [esi + 4], edx */ 20478 goto L_30012814; /* 0x30012804: jmp 0x30012814 */ 20479 L_30012806: 20480 esi = MEM32(ecx + 0x4); /* 0x30012806: mov esi, dword ptr [ecx + 4] */ 20481 /* cmp ecx, MEM32(esi) */ /* 0x30012809: cmp ecx, dword ptr [esi] */ 20482 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 20483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20484 _flag_k = FK_CMP; 20485 if (CMP_NE(_flag_a, _flag_b)) goto L_30012811; /* 0x3001280B: jne 0x30012811 */ 20486 L_3001280D: 20487 MEM32(esi) = edx; /* 0x3001280D: mov dword ptr [esi], edx */ 20488 goto L_30012814; /* 0x3001280F: jmp 0x30012814 */ 20489 L_30012811: 20490 MEM32(esi + 0x8) = edx; /* 0x30012811: mov dword ptr [esi + 8], edx */ 20491 L_30012814: 20492 MEM32(edx) = ecx; /* 0x30012814: mov dword ptr [edx], ecx */ 20493 MEM32(ecx + 0x4) = edx; /* 0x30012816: mov dword ptr [ecx + 4], edx */ 20494 edx = MEM32(eax + 0x4); /* 0x30012819: mov edx, dword ptr [eax + 4] */ 20495 ecx = MEM32(edx + 0x8); /* 0x3001281C: mov ecx, dword ptr [edx + 8] */ 20496 L_3001281F: 20497 edx = MEM32(ecx); /* 0x3001281F: mov edx, dword ptr [ecx] */ 20498 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012821: cmp byte ptr [edx + 0x14], bl */ 20499 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20501 _flag_k = FK_NARROW(FK_CMP, 24); 20502 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012824: jne 0x300128ba */ 20503 L_3001282A: 20504 edx = MEM32(ecx + 0x8); /* 0x3001282A: mov edx, dword ptr [ecx + 8] */ 20505 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001282D: cmp byte ptr [edx + 0x14], bl */ 20506 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20508 _flag_k = FK_NARROW(FK_CMP, 24); 20509 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012830: jne 0x300128ba */ 20510 L_30012836: 20511 goto L_300128A2; /* 0x30012836: jmp 0x300128a2 */ 20512 L_30012838: 20513 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x30012838: mov dl, byte ptr [ecx + 0x14] */ 20514 /* test LO8(edx), LO8(edx) */ /* 0x3001283B: test dl, dl */ 20515 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 20516 _cf = 0; 20517 _flag_k = FK_NARROW(FK_TEST, 24); 20518 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001288B; /* 0x3001283D: jne 0x3001288b */ 20519 L_3001283F: 20520 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001283F: mov byte ptr [ecx + 0x14], bl */ 20521 ecx = MEM32(eax + 0x4); /* 0x30012842: mov ecx, dword ptr [eax + 4] */ 20522 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012845: mov byte ptr [ecx + 0x14], 0 */ 20523 ecx = MEM32(eax + 0x4); /* 0x30012849: mov ecx, dword ptr [eax + 4] */ 20524 edx = MEM32(ecx); /* 0x3001284C: mov edx, dword ptr [ecx] */ 20525 esi = MEM32(edx + 0x8); /* 0x3001284E: mov esi, dword ptr [edx + 8] */ 20526 MEM32(ecx) = esi; /* 0x30012851: mov dword ptr [ecx], esi */ 20527 esi = MEM32(edx + 0x8); /* 0x30012853: mov esi, dword ptr [edx + 8] */ 20528 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012856: cmp esi, dword ptr [edi + 8] */ 20529 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20531 _flag_k = FK_CMP; 20532 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001285E; /* 0x30012859: je 0x3001285e */ 20533 L_3001285B: 20534 MEM32(esi + 0x4) = ecx; /* 0x3001285B: mov dword ptr [esi + 4], ecx */ 20535 L_3001285E: 20536 esi = MEM32(ecx + 0x4); /* 0x3001285E: mov esi, dword ptr [ecx + 4] */ 20537 MEM32(edx + 0x4) = esi; /* 0x30012861: mov dword ptr [edx + 4], esi */ 20538 esi = MEM32(edi + 0x4); /* 0x30012864: mov esi, dword ptr [edi + 4] */ 20539 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012867: cmp ecx, dword ptr [esi + 4] */ 20540 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20542 _flag_k = FK_CMP; 20543 if (CMP_NE(_flag_a, _flag_b)) goto L_30012871; /* 0x3001286A: jne 0x30012871 */ 20544 L_3001286C: 20545 MEM32(esi + 0x4) = edx; /* 0x3001286C: mov dword ptr [esi + 4], edx */ 20546 goto L_30012880; /* 0x3001286F: jmp 0x30012880 */ 20547 L_30012871: 20548 esi = MEM32(ecx + 0x4); /* 0x30012871: mov esi, dword ptr [ecx + 4] */ 20549 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012874: cmp ecx, dword ptr [esi + 8] */ 20550 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 20551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20552 _flag_k = FK_CMP; 20553 if (CMP_NE(_flag_a, _flag_b)) goto L_3001287E; /* 0x30012877: jne 0x3001287e */ 20554 L_30012879: 20555 MEM32(esi + 0x8) = edx; /* 0x30012879: mov dword ptr [esi + 8], edx */ 20556 goto L_30012880; /* 0x3001287C: jmp 0x30012880 */ 20557 L_3001287E: 20558 MEM32(esi) = edx; /* 0x3001287E: mov dword ptr [esi], edx */ 20559 L_30012880: 20560 MEM32(edx + 0x8) = ecx; /* 0x30012880: mov dword ptr [edx + 8], ecx */ 20561 MEM32(ecx + 0x4) = edx; /* 0x30012883: mov dword ptr [ecx + 4], edx */ 20562 edx = MEM32(eax + 0x4); /* 0x30012886: mov edx, dword ptr [eax + 4] */ 20563 ecx = MEM32(edx); /* 0x30012889: mov ecx, dword ptr [edx] */ 20564 L_3001288B: 20565 edx = MEM32(ecx + 0x8); /* 0x3001288B: mov edx, dword ptr [ecx + 8] */ 20566 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001288E: cmp byte ptr [edx + 0x14], bl */ 20567 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20569 _flag_k = FK_NARROW(FK_CMP, 24); 20570 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x30012891: jne 0x30012967 */ 20571 L_30012897: 20572 edx = MEM32(ecx); /* 0x30012897: mov edx, dword ptr [ecx] */ 20573 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012899: cmp byte ptr [edx + 0x14], bl */ 20574 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20576 _flag_k = FK_NARROW(FK_CMP, 24); 20577 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x3001289C: jne 0x30012967 */ 20578 L_300128A2: 20579 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128A2: mov byte ptr [ecx + 0x14], 0 */ 20580 ecx = MEM32(edi + 0x4); /* 0x300128A6: mov ecx, dword ptr [edi + 4] */ 20581 eax = MEM32(eax + 0x4); /* 0x300128A9: mov eax, dword ptr [eax + 4] */ 20582 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300128AC: cmp eax, dword ptr [ecx + 4] */ 20583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 20584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20585 _flag_k = FK_CMP; 20586 RECOMP_BACKEDGE(); 20587 if (CMP_NE(_flag_a, _flag_b)) goto L_300127B8; /* 0x300128AF: jne 0x300127b8 */ 20588 L_300128B5: 20589 goto L_30012A06; /* 0x300128B5: jmp 0x30012a06 */ 20590 L_300128BA: 20591 edx = MEM32(ecx + 0x8); /* 0x300128BA: mov edx, dword ptr [ecx + 8] */ 20592 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x300128BD: cmp byte ptr [edx + 0x14], bl */ 20593 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20595 _flag_k = FK_NARROW(FK_CMP, 24); 20596 if (CMP_NE(_flag_a, _flag_b)) goto L_3001290B; /* 0x300128C0: jne 0x3001290b */ 20597 L_300128C2: 20598 edx = MEM32(ecx); /* 0x300128C2: mov edx, dword ptr [ecx] */ 20599 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300128C4: mov byte ptr [edx + 0x14], bl */ 20600 edx = MEM32(ecx); /* 0x300128C7: mov edx, dword ptr [ecx] */ 20601 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128C9: mov byte ptr [ecx + 0x14], 0 */ 20602 esi = MEM32(edx + 0x8); /* 0x300128CD: mov esi, dword ptr [edx + 8] */ 20603 MEM32(ecx) = esi; /* 0x300128D0: mov dword ptr [ecx], esi */ 20604 esi = MEM32(edx + 0x8); /* 0x300128D2: mov esi, dword ptr [edx + 8] */ 20605 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300128D5: cmp esi, dword ptr [edi + 8] */ 20606 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20608 _flag_k = FK_CMP; 20609 if (CMP_EQ(_flag_a, _flag_b)) goto L_300128DD; /* 0x300128D8: je 0x300128dd */ 20610 L_300128DA: 20611 MEM32(esi + 0x4) = ecx; /* 0x300128DA: mov dword ptr [esi + 4], ecx */ 20612 L_300128DD: 20613 esi = MEM32(ecx + 0x4); /* 0x300128DD: mov esi, dword ptr [ecx + 4] */ 20614 MEM32(edx + 0x4) = esi; /* 0x300128E0: mov dword ptr [edx + 4], esi */ 20615 esi = MEM32(edi + 0x4); /* 0x300128E3: mov esi, dword ptr [edi + 4] */ 20616 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300128E6: cmp ecx, dword ptr [esi + 4] */ 20617 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20619 _flag_k = FK_CMP; 20620 if (CMP_NE(_flag_a, _flag_b)) goto L_300128F0; /* 0x300128E9: jne 0x300128f0 */ 20621 L_300128EB: 20622 MEM32(esi + 0x4) = edx; /* 0x300128EB: mov dword ptr [esi + 4], edx */ 20623 goto L_300128FF; /* 0x300128EE: jmp 0x300128ff */ 20624 L_300128F0: 20625 esi = MEM32(ecx + 0x4); /* 0x300128F0: mov esi, dword ptr [ecx + 4] */ 20626 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300128F3: cmp ecx, dword ptr [esi + 8] */ 20627 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 20628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20629 _flag_k = FK_CMP; 20630 if (CMP_NE(_flag_a, _flag_b)) goto L_300128FD; /* 0x300128F6: jne 0x300128fd */ 20631 L_300128F8: 20632 MEM32(esi + 0x8) = edx; /* 0x300128F8: mov dword ptr [esi + 8], edx */ 20633 goto L_300128FF; /* 0x300128FB: jmp 0x300128ff */ 20634 L_300128FD: 20635 MEM32(esi) = edx; /* 0x300128FD: mov dword ptr [esi], edx */ 20636 L_300128FF: 20637 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 20638 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 20639 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 20640 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 20641 L_3001290B: 20642 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 20643 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 20644 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 20645 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 20646 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 20647 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 20648 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 20649 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 20650 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 20651 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 20652 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 20653 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 20654 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 20655 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20657 _flag_k = FK_CMP; 20658 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 20659 L_30012932: 20660 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 20661 L_30012935: 20662 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 20663 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 20664 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 20665 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 20666 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20668 _flag_k = FK_CMP; 20669 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 20670 L_30012943: 20671 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 20672 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 20673 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 20674 L_3001294D: 20675 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 20676 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 20677 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 20678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20679 _flag_k = FK_CMP; 20680 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 20681 L_30012954: 20682 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 20683 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 20684 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 20685 L_3001295D: 20686 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 20687 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 20688 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 20689 L_30012967: 20690 edx = MEM32(ecx); /* 0x30012967: mov edx, dword ptr [ecx] */ 20691 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012969: cmp byte ptr [edx + 0x14], bl */ 20692 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20694 _flag_k = FK_NARROW(FK_CMP, 24); 20695 if (CMP_NE(_flag_a, _flag_b)) goto L_300129B5; /* 0x3001296C: jne 0x300129b5 */ 20696 L_3001296E: 20697 edx = MEM32(ecx + 0x8); /* 0x3001296E: mov edx, dword ptr [ecx + 8] */ 20698 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012971: mov byte ptr [edx + 0x14], bl */ 20699 edx = MEM32(ecx + 0x8); /* 0x30012974: mov edx, dword ptr [ecx + 8] */ 20700 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012977: mov byte ptr [ecx + 0x14], 0 */ 20701 esi = MEM32(edx); /* 0x3001297B: mov esi, dword ptr [edx] */ 20702 MEM32(ecx + 0x8) = esi; /* 0x3001297D: mov dword ptr [ecx + 8], esi */ 20703 esi = MEM32(edx); /* 0x30012980: mov esi, dword ptr [edx] */ 20704 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012982: cmp esi, dword ptr [edi + 8] */ 20705 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20707 _flag_k = FK_CMP; 20708 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001298A; /* 0x30012985: je 0x3001298a */ 20709 L_30012987: 20710 MEM32(esi + 0x4) = ecx; /* 0x30012987: mov dword ptr [esi + 4], ecx */ 20711 L_3001298A: 20712 esi = MEM32(ecx + 0x4); /* 0x3001298A: mov esi, dword ptr [ecx + 4] */ 20713 MEM32(edx + 0x4) = esi; /* 0x3001298D: mov dword ptr [edx + 4], esi */ 20714 esi = MEM32(edi + 0x4); /* 0x30012990: mov esi, dword ptr [edi + 4] */ 20715 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012993: cmp ecx, dword ptr [esi + 4] */ 20716 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20718 _flag_k = FK_CMP; 20719 if (CMP_NE(_flag_a, _flag_b)) goto L_3001299D; /* 0x30012996: jne 0x3001299d */ 20720 L_30012998: 20721 MEM32(esi + 0x4) = edx; /* 0x30012998: mov dword ptr [esi + 4], edx */ 20722 goto L_300129AB; /* 0x3001299B: jmp 0x300129ab */ 20723 L_3001299D: 20724 esi = MEM32(ecx + 0x4); /* 0x3001299D: mov esi, dword ptr [ecx + 4] */ 20725 /* cmp ecx, MEM32(esi) */ /* 0x300129A0: cmp ecx, dword ptr [esi] */ 20726 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 20727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20728 _flag_k = FK_CMP; 20729 if (CMP_NE(_flag_a, _flag_b)) goto L_300129A8; /* 0x300129A2: jne 0x300129a8 */ 20730 L_300129A4: 20731 MEM32(esi) = edx; /* 0x300129A4: mov dword ptr [esi], edx */ 20732 goto L_300129AB; /* 0x300129A6: jmp 0x300129ab */ 20733 L_300129A8: 20734 MEM32(esi + 0x8) = edx; /* 0x300129A8: mov dword ptr [esi + 8], edx */ 20735 L_300129AB: 20736 MEM32(edx) = ecx; /* 0x300129AB: mov dword ptr [edx], ecx */ 20737 MEM32(ecx + 0x4) = edx; /* 0x300129AD: mov dword ptr [ecx + 4], edx */ 20738 ecx = MEM32(eax + 0x4); /* 0x300129B0: mov ecx, dword ptr [eax + 4] */ 20739 ecx = MEM32(ecx); /* 0x300129B3: mov ecx, dword ptr [ecx] */ 20740 L_300129B5: 20741 edx = MEM32(eax + 0x4); /* 0x300129B5: mov edx, dword ptr [eax + 4] */ 20742 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x300129B8: mov dl, byte ptr [edx + 0x14] */ 20743 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x300129BB: mov byte ptr [ecx + 0x14], dl */ 20744 edx = MEM32(eax + 0x4); /* 0x300129BE: mov edx, dword ptr [eax + 4] */ 20745 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C1: mov byte ptr [edx + 0x14], bl */ 20746 ecx = MEM32(ecx); /* 0x300129C4: mov ecx, dword ptr [ecx] */ 20747 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C6: mov byte ptr [ecx + 0x14], bl */ 20748 ecx = MEM32(eax + 0x4); /* 0x300129C9: mov ecx, dword ptr [eax + 4] */ 20749 edx = MEM32(ecx); /* 0x300129CC: mov edx, dword ptr [ecx] */ 20750 esi = MEM32(edx + 0x8); /* 0x300129CE: mov esi, dword ptr [edx + 8] */ 20751 MEM32(ecx) = esi; /* 0x300129D1: mov dword ptr [ecx], esi */ 20752 esi = MEM32(edx + 0x8); /* 0x300129D3: mov esi, dword ptr [edx + 8] */ 20753 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300129D6: cmp esi, dword ptr [edi + 8] */ 20754 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20756 _flag_k = FK_CMP; 20757 if (CMP_EQ(_flag_a, _flag_b)) goto L_300129DE; /* 0x300129D9: je 0x300129de */ 20758 L_300129DB: 20759 MEM32(esi + 0x4) = ecx; /* 0x300129DB: mov dword ptr [esi + 4], ecx */ 20760 L_300129DE: 20761 esi = MEM32(ecx + 0x4); /* 0x300129DE: mov esi, dword ptr [ecx + 4] */ 20762 MEM32(edx + 0x4) = esi; /* 0x300129E1: mov dword ptr [edx + 4], esi */ 20763 esi = MEM32(edi + 0x4); /* 0x300129E4: mov esi, dword ptr [edi + 4] */ 20764 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300129E7: cmp ecx, dword ptr [esi + 4] */ 20765 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20767 _flag_k = FK_CMP; 20768 if (CMP_NE(_flag_a, _flag_b)) goto L_300129F1; /* 0x300129EA: jne 0x300129f1 */ 20769 L_300129EC: 20770 MEM32(esi + 0x4) = edx; /* 0x300129EC: mov dword ptr [esi + 4], edx */ 20771 goto L_30012A00; /* 0x300129EF: jmp 0x30012a00 */ 20772 L_300129F1: 20773 esi = MEM32(ecx + 0x4); /* 0x300129F1: mov esi, dword ptr [ecx + 4] */ 20774 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300129F4: cmp ecx, dword ptr [esi + 8] */ 20775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 20776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20777 _flag_k = FK_CMP; 20778 if (CMP_NE(_flag_a, _flag_b)) goto L_300129FE; /* 0x300129F7: jne 0x300129fe */ 20779 L_300129F9: 20780 MEM32(esi + 0x8) = edx; /* 0x300129F9: mov dword ptr [esi + 8], edx */ 20781 goto L_30012A00; /* 0x300129FC: jmp 0x30012a00 */ 20782 L_300129FE: 20783 MEM32(esi) = edx; /* 0x300129FE: mov dword ptr [esi], edx */ 20784 L_30012A00: 20785 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 20786 L_30012A03: 20787 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 20788 L_30012A06: 20789 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 20790 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 20791 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 20792 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 20793 RECOMP_FLAGS_IN(); 20794 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 20795 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 20796 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20797 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20798 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 20799 _flag_k = FK_ADD; 20800 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 20801 eax = eax - 1; /* 0x30012A1B: dec eax */ 20802 _flag_k = FK_DEC; 20803 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 20804 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 20805 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 20806 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 20807 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 20808 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 20809 esp = ebp; /* 0x30012A27: mov esp, ebp */ 20810 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 20811 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 20812 RECOMP_REGS_OUT(); 20813 } 20814 20815 void sub_30012814(void) { 20816 int _fpu_cmp = 0; 20817 uint32_t _cf = 0; 20818 int _df = 1; 20819 uint32_t _flag_k = FK_NONE; 20820 uint32_t _flag_a = 0, _flag_b = 0; 20821 uint32_t _itail_tgt = 0; 20822 RECOMP_REGS_LOCALS 20823 RECOMP_ENTER(0x30012814u); 20824 20825 goto L_30012814; 20826 L_300127B8: 20827 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x300127B8: cmp byte ptr [eax + 0x14], bl */ 20828 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20830 _flag_k = FK_NARROW(FK_CMP, 24); 20831 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127BB: jne 0x30012a06 */ 20832 L_300127C1: 20833 edx = MEM32(eax + 0x4); /* 0x300127C1: mov edx, dword ptr [eax + 4] */ 20834 ecx = MEM32(edx); /* 0x300127C4: mov ecx, dword ptr [edx] */ 20835 /* cmp eax, ecx */ /* 0x300127C6: cmp eax, ecx */ 20836 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 20837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20838 _flag_k = FK_CMP; 20839 if (CMP_NE(_flag_a, _flag_b)) goto L_30012838; /* 0x300127C8: jne 0x30012838 */ 20840 L_300127CA: 20841 ecx = MEM32(edx + 0x8); /* 0x300127CA: mov ecx, dword ptr [edx + 8] */ 20842 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x300127CD: mov dl, byte ptr [ecx + 0x14] */ 20843 /* test LO8(edx), LO8(edx) */ /* 0x300127D0: test dl, dl */ 20844 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 20845 _cf = 0; 20846 _flag_k = FK_NARROW(FK_TEST, 24); 20847 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001281F; /* 0x300127D2: jne 0x3001281f */ 20848 L_300127D4: 20849 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300127D4: mov byte ptr [ecx + 0x14], bl */ 20850 ecx = MEM32(eax + 0x4); /* 0x300127D7: mov ecx, dword ptr [eax + 4] */ 20851 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300127DA: mov byte ptr [ecx + 0x14], 0 */ 20852 ecx = MEM32(eax + 0x4); /* 0x300127DE: mov ecx, dword ptr [eax + 4] */ 20853 edx = MEM32(ecx + 0x8); /* 0x300127E1: mov edx, dword ptr [ecx + 8] */ 20854 esi = MEM32(edx); /* 0x300127E4: mov esi, dword ptr [edx] */ 20855 MEM32(ecx + 0x8) = esi; /* 0x300127E6: mov dword ptr [ecx + 8], esi */ 20856 esi = MEM32(edx); /* 0x300127E9: mov esi, dword ptr [edx] */ 20857 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300127EB: cmp esi, dword ptr [edi + 8] */ 20858 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20860 _flag_k = FK_CMP; 20861 if (CMP_EQ(_flag_a, _flag_b)) goto L_300127F3; /* 0x300127EE: je 0x300127f3 */ 20862 L_300127F0: 20863 MEM32(esi + 0x4) = ecx; /* 0x300127F0: mov dword ptr [esi + 4], ecx */ 20864 L_300127F3: 20865 esi = MEM32(ecx + 0x4); /* 0x300127F3: mov esi, dword ptr [ecx + 4] */ 20866 MEM32(edx + 0x4) = esi; /* 0x300127F6: mov dword ptr [edx + 4], esi */ 20867 esi = MEM32(edi + 0x4); /* 0x300127F9: mov esi, dword ptr [edi + 4] */ 20868 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300127FC: cmp ecx, dword ptr [esi + 4] */ 20869 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20871 _flag_k = FK_CMP; 20872 if (CMP_NE(_flag_a, _flag_b)) goto L_30012806; /* 0x300127FF: jne 0x30012806 */ 20873 L_30012801: 20874 MEM32(esi + 0x4) = edx; /* 0x30012801: mov dword ptr [esi + 4], edx */ 20875 goto L_30012814; /* 0x30012804: jmp 0x30012814 */ 20876 L_30012806: 20877 esi = MEM32(ecx + 0x4); /* 0x30012806: mov esi, dword ptr [ecx + 4] */ 20878 /* cmp ecx, MEM32(esi) */ /* 0x30012809: cmp ecx, dword ptr [esi] */ 20879 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 20880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20881 _flag_k = FK_CMP; 20882 if (CMP_NE(_flag_a, _flag_b)) goto L_30012811; /* 0x3001280B: jne 0x30012811 */ 20883 L_3001280D: 20884 MEM32(esi) = edx; /* 0x3001280D: mov dword ptr [esi], edx */ 20885 goto L_30012814; /* 0x3001280F: jmp 0x30012814 */ 20886 L_30012811: 20887 MEM32(esi + 0x8) = edx; /* 0x30012811: mov dword ptr [esi + 8], edx */ 20888 L_30012814: 20889 MEM32(edx) = ecx; /* 0x30012814: mov dword ptr [edx], ecx */ 20890 MEM32(ecx + 0x4) = edx; /* 0x30012816: mov dword ptr [ecx + 4], edx */ 20891 edx = MEM32(eax + 0x4); /* 0x30012819: mov edx, dword ptr [eax + 4] */ 20892 ecx = MEM32(edx + 0x8); /* 0x3001281C: mov ecx, dword ptr [edx + 8] */ 20893 L_3001281F: 20894 edx = MEM32(ecx); /* 0x3001281F: mov edx, dword ptr [ecx] */ 20895 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012821: cmp byte ptr [edx + 0x14], bl */ 20896 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20898 _flag_k = FK_NARROW(FK_CMP, 24); 20899 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012824: jne 0x300128ba */ 20900 L_3001282A: 20901 edx = MEM32(ecx + 0x8); /* 0x3001282A: mov edx, dword ptr [ecx + 8] */ 20902 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001282D: cmp byte ptr [edx + 0x14], bl */ 20903 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20905 _flag_k = FK_NARROW(FK_CMP, 24); 20906 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012830: jne 0x300128ba */ 20907 L_30012836: 20908 goto L_300128A2; /* 0x30012836: jmp 0x300128a2 */ 20909 L_30012838: 20910 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x30012838: mov dl, byte ptr [ecx + 0x14] */ 20911 /* test LO8(edx), LO8(edx) */ /* 0x3001283B: test dl, dl */ 20912 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 20913 _cf = 0; 20914 _flag_k = FK_NARROW(FK_TEST, 24); 20915 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001288B; /* 0x3001283D: jne 0x3001288b */ 20916 L_3001283F: 20917 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001283F: mov byte ptr [ecx + 0x14], bl */ 20918 ecx = MEM32(eax + 0x4); /* 0x30012842: mov ecx, dword ptr [eax + 4] */ 20919 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012845: mov byte ptr [ecx + 0x14], 0 */ 20920 ecx = MEM32(eax + 0x4); /* 0x30012849: mov ecx, dword ptr [eax + 4] */ 20921 edx = MEM32(ecx); /* 0x3001284C: mov edx, dword ptr [ecx] */ 20922 esi = MEM32(edx + 0x8); /* 0x3001284E: mov esi, dword ptr [edx + 8] */ 20923 MEM32(ecx) = esi; /* 0x30012851: mov dword ptr [ecx], esi */ 20924 esi = MEM32(edx + 0x8); /* 0x30012853: mov esi, dword ptr [edx + 8] */ 20925 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012856: cmp esi, dword ptr [edi + 8] */ 20926 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 20927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20928 _flag_k = FK_CMP; 20929 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001285E; /* 0x30012859: je 0x3001285e */ 20930 L_3001285B: 20931 MEM32(esi + 0x4) = ecx; /* 0x3001285B: mov dword ptr [esi + 4], ecx */ 20932 L_3001285E: 20933 esi = MEM32(ecx + 0x4); /* 0x3001285E: mov esi, dword ptr [ecx + 4] */ 20934 MEM32(edx + 0x4) = esi; /* 0x30012861: mov dword ptr [edx + 4], esi */ 20935 esi = MEM32(edi + 0x4); /* 0x30012864: mov esi, dword ptr [edi + 4] */ 20936 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012867: cmp ecx, dword ptr [esi + 4] */ 20937 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 20938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20939 _flag_k = FK_CMP; 20940 if (CMP_NE(_flag_a, _flag_b)) goto L_30012871; /* 0x3001286A: jne 0x30012871 */ 20941 L_3001286C: 20942 MEM32(esi + 0x4) = edx; /* 0x3001286C: mov dword ptr [esi + 4], edx */ 20943 goto L_30012880; /* 0x3001286F: jmp 0x30012880 */ 20944 L_30012871: 20945 esi = MEM32(ecx + 0x4); /* 0x30012871: mov esi, dword ptr [ecx + 4] */ 20946 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012874: cmp ecx, dword ptr [esi + 8] */ 20947 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 20948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20949 _flag_k = FK_CMP; 20950 if (CMP_NE(_flag_a, _flag_b)) goto L_3001287E; /* 0x30012877: jne 0x3001287e */ 20951 L_30012879: 20952 MEM32(esi + 0x8) = edx; /* 0x30012879: mov dword ptr [esi + 8], edx */ 20953 goto L_30012880; /* 0x3001287C: jmp 0x30012880 */ 20954 L_3001287E: 20955 MEM32(esi) = edx; /* 0x3001287E: mov dword ptr [esi], edx */ 20956 L_30012880: 20957 MEM32(edx + 0x8) = ecx; /* 0x30012880: mov dword ptr [edx + 8], ecx */ 20958 MEM32(ecx + 0x4) = edx; /* 0x30012883: mov dword ptr [ecx + 4], edx */ 20959 edx = MEM32(eax + 0x4); /* 0x30012886: mov edx, dword ptr [eax + 4] */ 20960 ecx = MEM32(edx); /* 0x30012889: mov ecx, dword ptr [edx] */ 20961 L_3001288B: 20962 edx = MEM32(ecx + 0x8); /* 0x3001288B: mov edx, dword ptr [ecx + 8] */ 20963 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001288E: cmp byte ptr [edx + 0x14], bl */ 20964 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20966 _flag_k = FK_NARROW(FK_CMP, 24); 20967 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x30012891: jne 0x30012967 */ 20968 L_30012897: 20969 edx = MEM32(ecx); /* 0x30012897: mov edx, dword ptr [ecx] */ 20970 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012899: cmp byte ptr [edx + 0x14], bl */ 20971 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20973 _flag_k = FK_NARROW(FK_CMP, 24); 20974 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x3001289C: jne 0x30012967 */ 20975 L_300128A2: 20976 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128A2: mov byte ptr [ecx + 0x14], 0 */ 20977 ecx = MEM32(edi + 0x4); /* 0x300128A6: mov ecx, dword ptr [edi + 4] */ 20978 eax = MEM32(eax + 0x4); /* 0x300128A9: mov eax, dword ptr [eax + 4] */ 20979 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300128AC: cmp eax, dword ptr [ecx + 4] */ 20980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 20981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20982 _flag_k = FK_CMP; 20983 RECOMP_BACKEDGE(); 20984 if (CMP_NE(_flag_a, _flag_b)) goto L_300127B8; /* 0x300128AF: jne 0x300127b8 */ 20985 L_300128B5: 20986 goto L_30012A06; /* 0x300128B5: jmp 0x30012a06 */ 20987 L_300128BA: 20988 edx = MEM32(ecx + 0x8); /* 0x300128BA: mov edx, dword ptr [ecx + 8] */ 20989 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x300128BD: cmp byte ptr [edx + 0x14], bl */ 20990 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 20991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20992 _flag_k = FK_NARROW(FK_CMP, 24); 20993 if (CMP_NE(_flag_a, _flag_b)) goto L_3001290B; /* 0x300128C0: jne 0x3001290b */ 20994 L_300128C2: 20995 edx = MEM32(ecx); /* 0x300128C2: mov edx, dword ptr [ecx] */ 20996 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300128C4: mov byte ptr [edx + 0x14], bl */ 20997 edx = MEM32(ecx); /* 0x300128C7: mov edx, dword ptr [ecx] */ 20998 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128C9: mov byte ptr [ecx + 0x14], 0 */ 20999 esi = MEM32(edx + 0x8); /* 0x300128CD: mov esi, dword ptr [edx + 8] */ 21000 MEM32(ecx) = esi; /* 0x300128D0: mov dword ptr [ecx], esi */ 21001 esi = MEM32(edx + 0x8); /* 0x300128D2: mov esi, dword ptr [edx + 8] */ 21002 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300128D5: cmp esi, dword ptr [edi + 8] */ 21003 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21005 _flag_k = FK_CMP; 21006 if (CMP_EQ(_flag_a, _flag_b)) goto L_300128DD; /* 0x300128D8: je 0x300128dd */ 21007 L_300128DA: 21008 MEM32(esi + 0x4) = ecx; /* 0x300128DA: mov dword ptr [esi + 4], ecx */ 21009 L_300128DD: 21010 esi = MEM32(ecx + 0x4); /* 0x300128DD: mov esi, dword ptr [ecx + 4] */ 21011 MEM32(edx + 0x4) = esi; /* 0x300128E0: mov dword ptr [edx + 4], esi */ 21012 esi = MEM32(edi + 0x4); /* 0x300128E3: mov esi, dword ptr [edi + 4] */ 21013 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300128E6: cmp ecx, dword ptr [esi + 4] */ 21014 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21016 _flag_k = FK_CMP; 21017 if (CMP_NE(_flag_a, _flag_b)) goto L_300128F0; /* 0x300128E9: jne 0x300128f0 */ 21018 L_300128EB: 21019 MEM32(esi + 0x4) = edx; /* 0x300128EB: mov dword ptr [esi + 4], edx */ 21020 goto L_300128FF; /* 0x300128EE: jmp 0x300128ff */ 21021 L_300128F0: 21022 esi = MEM32(ecx + 0x4); /* 0x300128F0: mov esi, dword ptr [ecx + 4] */ 21023 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300128F3: cmp ecx, dword ptr [esi + 8] */ 21024 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 21025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21026 _flag_k = FK_CMP; 21027 if (CMP_NE(_flag_a, _flag_b)) goto L_300128FD; /* 0x300128F6: jne 0x300128fd */ 21028 L_300128F8: 21029 MEM32(esi + 0x8) = edx; /* 0x300128F8: mov dword ptr [esi + 8], edx */ 21030 goto L_300128FF; /* 0x300128FB: jmp 0x300128ff */ 21031 L_300128FD: 21032 MEM32(esi) = edx; /* 0x300128FD: mov dword ptr [esi], edx */ 21033 L_300128FF: 21034 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 21035 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 21036 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 21037 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 21038 L_3001290B: 21039 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 21040 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 21041 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 21042 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 21043 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 21044 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 21045 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 21046 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 21047 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 21048 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 21049 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 21050 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 21051 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 21052 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21054 _flag_k = FK_CMP; 21055 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 21056 L_30012932: 21057 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 21058 L_30012935: 21059 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 21060 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 21061 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 21062 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 21063 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21065 _flag_k = FK_CMP; 21066 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 21067 L_30012943: 21068 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 21069 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 21070 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 21071 L_3001294D: 21072 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 21073 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 21074 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 21075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21076 _flag_k = FK_CMP; 21077 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 21078 L_30012954: 21079 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 21080 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 21081 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 21082 L_3001295D: 21083 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 21084 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 21085 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 21086 L_30012967: 21087 edx = MEM32(ecx); /* 0x30012967: mov edx, dword ptr [ecx] */ 21088 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012969: cmp byte ptr [edx + 0x14], bl */ 21089 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21091 _flag_k = FK_NARROW(FK_CMP, 24); 21092 if (CMP_NE(_flag_a, _flag_b)) goto L_300129B5; /* 0x3001296C: jne 0x300129b5 */ 21093 L_3001296E: 21094 edx = MEM32(ecx + 0x8); /* 0x3001296E: mov edx, dword ptr [ecx + 8] */ 21095 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012971: mov byte ptr [edx + 0x14], bl */ 21096 edx = MEM32(ecx + 0x8); /* 0x30012974: mov edx, dword ptr [ecx + 8] */ 21097 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012977: mov byte ptr [ecx + 0x14], 0 */ 21098 esi = MEM32(edx); /* 0x3001297B: mov esi, dword ptr [edx] */ 21099 MEM32(ecx + 0x8) = esi; /* 0x3001297D: mov dword ptr [ecx + 8], esi */ 21100 esi = MEM32(edx); /* 0x30012980: mov esi, dword ptr [edx] */ 21101 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012982: cmp esi, dword ptr [edi + 8] */ 21102 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21104 _flag_k = FK_CMP; 21105 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001298A; /* 0x30012985: je 0x3001298a */ 21106 L_30012987: 21107 MEM32(esi + 0x4) = ecx; /* 0x30012987: mov dword ptr [esi + 4], ecx */ 21108 L_3001298A: 21109 esi = MEM32(ecx + 0x4); /* 0x3001298A: mov esi, dword ptr [ecx + 4] */ 21110 MEM32(edx + 0x4) = esi; /* 0x3001298D: mov dword ptr [edx + 4], esi */ 21111 esi = MEM32(edi + 0x4); /* 0x30012990: mov esi, dword ptr [edi + 4] */ 21112 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012993: cmp ecx, dword ptr [esi + 4] */ 21113 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21115 _flag_k = FK_CMP; 21116 if (CMP_NE(_flag_a, _flag_b)) goto L_3001299D; /* 0x30012996: jne 0x3001299d */ 21117 L_30012998: 21118 MEM32(esi + 0x4) = edx; /* 0x30012998: mov dword ptr [esi + 4], edx */ 21119 goto L_300129AB; /* 0x3001299B: jmp 0x300129ab */ 21120 L_3001299D: 21121 esi = MEM32(ecx + 0x4); /* 0x3001299D: mov esi, dword ptr [ecx + 4] */ 21122 /* cmp ecx, MEM32(esi) */ /* 0x300129A0: cmp ecx, dword ptr [esi] */ 21123 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 21124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21125 _flag_k = FK_CMP; 21126 if (CMP_NE(_flag_a, _flag_b)) goto L_300129A8; /* 0x300129A2: jne 0x300129a8 */ 21127 L_300129A4: 21128 MEM32(esi) = edx; /* 0x300129A4: mov dword ptr [esi], edx */ 21129 goto L_300129AB; /* 0x300129A6: jmp 0x300129ab */ 21130 L_300129A8: 21131 MEM32(esi + 0x8) = edx; /* 0x300129A8: mov dword ptr [esi + 8], edx */ 21132 L_300129AB: 21133 MEM32(edx) = ecx; /* 0x300129AB: mov dword ptr [edx], ecx */ 21134 MEM32(ecx + 0x4) = edx; /* 0x300129AD: mov dword ptr [ecx + 4], edx */ 21135 ecx = MEM32(eax + 0x4); /* 0x300129B0: mov ecx, dword ptr [eax + 4] */ 21136 ecx = MEM32(ecx); /* 0x300129B3: mov ecx, dword ptr [ecx] */ 21137 L_300129B5: 21138 edx = MEM32(eax + 0x4); /* 0x300129B5: mov edx, dword ptr [eax + 4] */ 21139 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x300129B8: mov dl, byte ptr [edx + 0x14] */ 21140 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x300129BB: mov byte ptr [ecx + 0x14], dl */ 21141 edx = MEM32(eax + 0x4); /* 0x300129BE: mov edx, dword ptr [eax + 4] */ 21142 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C1: mov byte ptr [edx + 0x14], bl */ 21143 ecx = MEM32(ecx); /* 0x300129C4: mov ecx, dword ptr [ecx] */ 21144 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C6: mov byte ptr [ecx + 0x14], bl */ 21145 ecx = MEM32(eax + 0x4); /* 0x300129C9: mov ecx, dword ptr [eax + 4] */ 21146 edx = MEM32(ecx); /* 0x300129CC: mov edx, dword ptr [ecx] */ 21147 esi = MEM32(edx + 0x8); /* 0x300129CE: mov esi, dword ptr [edx + 8] */ 21148 MEM32(ecx) = esi; /* 0x300129D1: mov dword ptr [ecx], esi */ 21149 esi = MEM32(edx + 0x8); /* 0x300129D3: mov esi, dword ptr [edx + 8] */ 21150 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300129D6: cmp esi, dword ptr [edi + 8] */ 21151 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21153 _flag_k = FK_CMP; 21154 if (CMP_EQ(_flag_a, _flag_b)) goto L_300129DE; /* 0x300129D9: je 0x300129de */ 21155 L_300129DB: 21156 MEM32(esi + 0x4) = ecx; /* 0x300129DB: mov dword ptr [esi + 4], ecx */ 21157 L_300129DE: 21158 esi = MEM32(ecx + 0x4); /* 0x300129DE: mov esi, dword ptr [ecx + 4] */ 21159 MEM32(edx + 0x4) = esi; /* 0x300129E1: mov dword ptr [edx + 4], esi */ 21160 esi = MEM32(edi + 0x4); /* 0x300129E4: mov esi, dword ptr [edi + 4] */ 21161 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300129E7: cmp ecx, dword ptr [esi + 4] */ 21162 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21164 _flag_k = FK_CMP; 21165 if (CMP_NE(_flag_a, _flag_b)) goto L_300129F1; /* 0x300129EA: jne 0x300129f1 */ 21166 L_300129EC: 21167 MEM32(esi + 0x4) = edx; /* 0x300129EC: mov dword ptr [esi + 4], edx */ 21168 goto L_30012A00; /* 0x300129EF: jmp 0x30012a00 */ 21169 L_300129F1: 21170 esi = MEM32(ecx + 0x4); /* 0x300129F1: mov esi, dword ptr [ecx + 4] */ 21171 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300129F4: cmp ecx, dword ptr [esi + 8] */ 21172 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 21173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21174 _flag_k = FK_CMP; 21175 if (CMP_NE(_flag_a, _flag_b)) goto L_300129FE; /* 0x300129F7: jne 0x300129fe */ 21176 L_300129F9: 21177 MEM32(esi + 0x8) = edx; /* 0x300129F9: mov dword ptr [esi + 8], edx */ 21178 goto L_30012A00; /* 0x300129FC: jmp 0x30012a00 */ 21179 L_300129FE: 21180 MEM32(esi) = edx; /* 0x300129FE: mov dword ptr [esi], edx */ 21181 L_30012A00: 21182 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 21183 L_30012A03: 21184 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 21185 L_30012A06: 21186 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 21187 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 21188 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 21189 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 21190 RECOMP_FLAGS_IN(); 21191 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 21192 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 21193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 21194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21195 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 21196 _flag_k = FK_ADD; 21197 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 21198 eax = eax - 1; /* 0x30012A1B: dec eax */ 21199 _flag_k = FK_DEC; 21200 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 21201 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 21202 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 21203 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 21204 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 21205 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 21206 esp = ebp; /* 0x30012A27: mov esp, ebp */ 21207 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 21208 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 21209 RECOMP_REGS_OUT(); 21210 } 21211 21212 void sub_3001281F(void) { 21213 int _fpu_cmp = 0; 21214 uint32_t _cf = 0; 21215 int _df = 1; 21216 uint32_t _flag_k = FK_NONE; 21217 uint32_t _flag_a = 0, _flag_b = 0; 21218 uint32_t _itail_tgt = 0; 21219 RECOMP_REGS_LOCALS 21220 RECOMP_ENTER(0x3001281Fu); 21221 21222 goto L_3001281F; 21223 L_300127B8: 21224 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x300127B8: cmp byte ptr [eax + 0x14], bl */ 21225 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21227 _flag_k = FK_NARROW(FK_CMP, 24); 21228 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127BB: jne 0x30012a06 */ 21229 L_300127C1: 21230 edx = MEM32(eax + 0x4); /* 0x300127C1: mov edx, dword ptr [eax + 4] */ 21231 ecx = MEM32(edx); /* 0x300127C4: mov ecx, dword ptr [edx] */ 21232 /* cmp eax, ecx */ /* 0x300127C6: cmp eax, ecx */ 21233 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 21234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21235 _flag_k = FK_CMP; 21236 if (CMP_NE(_flag_a, _flag_b)) goto L_30012838; /* 0x300127C8: jne 0x30012838 */ 21237 L_300127CA: 21238 ecx = MEM32(edx + 0x8); /* 0x300127CA: mov ecx, dword ptr [edx + 8] */ 21239 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x300127CD: mov dl, byte ptr [ecx + 0x14] */ 21240 /* test LO8(edx), LO8(edx) */ /* 0x300127D0: test dl, dl */ 21241 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 21242 _cf = 0; 21243 _flag_k = FK_NARROW(FK_TEST, 24); 21244 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001281F; /* 0x300127D2: jne 0x3001281f */ 21245 L_300127D4: 21246 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300127D4: mov byte ptr [ecx + 0x14], bl */ 21247 ecx = MEM32(eax + 0x4); /* 0x300127D7: mov ecx, dword ptr [eax + 4] */ 21248 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300127DA: mov byte ptr [ecx + 0x14], 0 */ 21249 ecx = MEM32(eax + 0x4); /* 0x300127DE: mov ecx, dword ptr [eax + 4] */ 21250 edx = MEM32(ecx + 0x8); /* 0x300127E1: mov edx, dword ptr [ecx + 8] */ 21251 esi = MEM32(edx); /* 0x300127E4: mov esi, dword ptr [edx] */ 21252 MEM32(ecx + 0x8) = esi; /* 0x300127E6: mov dword ptr [ecx + 8], esi */ 21253 esi = MEM32(edx); /* 0x300127E9: mov esi, dword ptr [edx] */ 21254 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300127EB: cmp esi, dword ptr [edi + 8] */ 21255 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21257 _flag_k = FK_CMP; 21258 if (CMP_EQ(_flag_a, _flag_b)) goto L_300127F3; /* 0x300127EE: je 0x300127f3 */ 21259 L_300127F0: 21260 MEM32(esi + 0x4) = ecx; /* 0x300127F0: mov dword ptr [esi + 4], ecx */ 21261 L_300127F3: 21262 esi = MEM32(ecx + 0x4); /* 0x300127F3: mov esi, dword ptr [ecx + 4] */ 21263 MEM32(edx + 0x4) = esi; /* 0x300127F6: mov dword ptr [edx + 4], esi */ 21264 esi = MEM32(edi + 0x4); /* 0x300127F9: mov esi, dword ptr [edi + 4] */ 21265 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300127FC: cmp ecx, dword ptr [esi + 4] */ 21266 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21268 _flag_k = FK_CMP; 21269 if (CMP_NE(_flag_a, _flag_b)) goto L_30012806; /* 0x300127FF: jne 0x30012806 */ 21270 L_30012801: 21271 MEM32(esi + 0x4) = edx; /* 0x30012801: mov dword ptr [esi + 4], edx */ 21272 goto L_30012814; /* 0x30012804: jmp 0x30012814 */ 21273 L_30012806: 21274 esi = MEM32(ecx + 0x4); /* 0x30012806: mov esi, dword ptr [ecx + 4] */ 21275 /* cmp ecx, MEM32(esi) */ /* 0x30012809: cmp ecx, dword ptr [esi] */ 21276 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 21277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21278 _flag_k = FK_CMP; 21279 if (CMP_NE(_flag_a, _flag_b)) goto L_30012811; /* 0x3001280B: jne 0x30012811 */ 21280 L_3001280D: 21281 MEM32(esi) = edx; /* 0x3001280D: mov dword ptr [esi], edx */ 21282 goto L_30012814; /* 0x3001280F: jmp 0x30012814 */ 21283 L_30012811: 21284 MEM32(esi + 0x8) = edx; /* 0x30012811: mov dword ptr [esi + 8], edx */ 21285 L_30012814: 21286 MEM32(edx) = ecx; /* 0x30012814: mov dword ptr [edx], ecx */ 21287 MEM32(ecx + 0x4) = edx; /* 0x30012816: mov dword ptr [ecx + 4], edx */ 21288 edx = MEM32(eax + 0x4); /* 0x30012819: mov edx, dword ptr [eax + 4] */ 21289 ecx = MEM32(edx + 0x8); /* 0x3001281C: mov ecx, dword ptr [edx + 8] */ 21290 L_3001281F: 21291 edx = MEM32(ecx); /* 0x3001281F: mov edx, dword ptr [ecx] */ 21292 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012821: cmp byte ptr [edx + 0x14], bl */ 21293 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21295 _flag_k = FK_NARROW(FK_CMP, 24); 21296 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012824: jne 0x300128ba */ 21297 L_3001282A: 21298 edx = MEM32(ecx + 0x8); /* 0x3001282A: mov edx, dword ptr [ecx + 8] */ 21299 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001282D: cmp byte ptr [edx + 0x14], bl */ 21300 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21302 _flag_k = FK_NARROW(FK_CMP, 24); 21303 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012830: jne 0x300128ba */ 21304 L_30012836: 21305 goto L_300128A2; /* 0x30012836: jmp 0x300128a2 */ 21306 L_30012838: 21307 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x30012838: mov dl, byte ptr [ecx + 0x14] */ 21308 /* test LO8(edx), LO8(edx) */ /* 0x3001283B: test dl, dl */ 21309 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 21310 _cf = 0; 21311 _flag_k = FK_NARROW(FK_TEST, 24); 21312 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001288B; /* 0x3001283D: jne 0x3001288b */ 21313 L_3001283F: 21314 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001283F: mov byte ptr [ecx + 0x14], bl */ 21315 ecx = MEM32(eax + 0x4); /* 0x30012842: mov ecx, dword ptr [eax + 4] */ 21316 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012845: mov byte ptr [ecx + 0x14], 0 */ 21317 ecx = MEM32(eax + 0x4); /* 0x30012849: mov ecx, dword ptr [eax + 4] */ 21318 edx = MEM32(ecx); /* 0x3001284C: mov edx, dword ptr [ecx] */ 21319 esi = MEM32(edx + 0x8); /* 0x3001284E: mov esi, dword ptr [edx + 8] */ 21320 MEM32(ecx) = esi; /* 0x30012851: mov dword ptr [ecx], esi */ 21321 esi = MEM32(edx + 0x8); /* 0x30012853: mov esi, dword ptr [edx + 8] */ 21322 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012856: cmp esi, dword ptr [edi + 8] */ 21323 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21325 _flag_k = FK_CMP; 21326 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001285E; /* 0x30012859: je 0x3001285e */ 21327 L_3001285B: 21328 MEM32(esi + 0x4) = ecx; /* 0x3001285B: mov dword ptr [esi + 4], ecx */ 21329 L_3001285E: 21330 esi = MEM32(ecx + 0x4); /* 0x3001285E: mov esi, dword ptr [ecx + 4] */ 21331 MEM32(edx + 0x4) = esi; /* 0x30012861: mov dword ptr [edx + 4], esi */ 21332 esi = MEM32(edi + 0x4); /* 0x30012864: mov esi, dword ptr [edi + 4] */ 21333 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012867: cmp ecx, dword ptr [esi + 4] */ 21334 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21336 _flag_k = FK_CMP; 21337 if (CMP_NE(_flag_a, _flag_b)) goto L_30012871; /* 0x3001286A: jne 0x30012871 */ 21338 L_3001286C: 21339 MEM32(esi + 0x4) = edx; /* 0x3001286C: mov dword ptr [esi + 4], edx */ 21340 goto L_30012880; /* 0x3001286F: jmp 0x30012880 */ 21341 L_30012871: 21342 esi = MEM32(ecx + 0x4); /* 0x30012871: mov esi, dword ptr [ecx + 4] */ 21343 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012874: cmp ecx, dword ptr [esi + 8] */ 21344 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 21345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21346 _flag_k = FK_CMP; 21347 if (CMP_NE(_flag_a, _flag_b)) goto L_3001287E; /* 0x30012877: jne 0x3001287e */ 21348 L_30012879: 21349 MEM32(esi + 0x8) = edx; /* 0x30012879: mov dword ptr [esi + 8], edx */ 21350 goto L_30012880; /* 0x3001287C: jmp 0x30012880 */ 21351 L_3001287E: 21352 MEM32(esi) = edx; /* 0x3001287E: mov dword ptr [esi], edx */ 21353 L_30012880: 21354 MEM32(edx + 0x8) = ecx; /* 0x30012880: mov dword ptr [edx + 8], ecx */ 21355 MEM32(ecx + 0x4) = edx; /* 0x30012883: mov dword ptr [ecx + 4], edx */ 21356 edx = MEM32(eax + 0x4); /* 0x30012886: mov edx, dword ptr [eax + 4] */ 21357 ecx = MEM32(edx); /* 0x30012889: mov ecx, dword ptr [edx] */ 21358 L_3001288B: 21359 edx = MEM32(ecx + 0x8); /* 0x3001288B: mov edx, dword ptr [ecx + 8] */ 21360 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001288E: cmp byte ptr [edx + 0x14], bl */ 21361 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21363 _flag_k = FK_NARROW(FK_CMP, 24); 21364 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x30012891: jne 0x30012967 */ 21365 L_30012897: 21366 edx = MEM32(ecx); /* 0x30012897: mov edx, dword ptr [ecx] */ 21367 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012899: cmp byte ptr [edx + 0x14], bl */ 21368 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21370 _flag_k = FK_NARROW(FK_CMP, 24); 21371 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x3001289C: jne 0x30012967 */ 21372 L_300128A2: 21373 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128A2: mov byte ptr [ecx + 0x14], 0 */ 21374 ecx = MEM32(edi + 0x4); /* 0x300128A6: mov ecx, dword ptr [edi + 4] */ 21375 eax = MEM32(eax + 0x4); /* 0x300128A9: mov eax, dword ptr [eax + 4] */ 21376 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300128AC: cmp eax, dword ptr [ecx + 4] */ 21377 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 21378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21379 _flag_k = FK_CMP; 21380 RECOMP_BACKEDGE(); 21381 if (CMP_NE(_flag_a, _flag_b)) goto L_300127B8; /* 0x300128AF: jne 0x300127b8 */ 21382 L_300128B5: 21383 goto L_30012A06; /* 0x300128B5: jmp 0x30012a06 */ 21384 L_300128BA: 21385 edx = MEM32(ecx + 0x8); /* 0x300128BA: mov edx, dword ptr [ecx + 8] */ 21386 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x300128BD: cmp byte ptr [edx + 0x14], bl */ 21387 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21389 _flag_k = FK_NARROW(FK_CMP, 24); 21390 if (CMP_NE(_flag_a, _flag_b)) goto L_3001290B; /* 0x300128C0: jne 0x3001290b */ 21391 L_300128C2: 21392 edx = MEM32(ecx); /* 0x300128C2: mov edx, dword ptr [ecx] */ 21393 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300128C4: mov byte ptr [edx + 0x14], bl */ 21394 edx = MEM32(ecx); /* 0x300128C7: mov edx, dword ptr [ecx] */ 21395 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128C9: mov byte ptr [ecx + 0x14], 0 */ 21396 esi = MEM32(edx + 0x8); /* 0x300128CD: mov esi, dword ptr [edx + 8] */ 21397 MEM32(ecx) = esi; /* 0x300128D0: mov dword ptr [ecx], esi */ 21398 esi = MEM32(edx + 0x8); /* 0x300128D2: mov esi, dword ptr [edx + 8] */ 21399 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300128D5: cmp esi, dword ptr [edi + 8] */ 21400 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21402 _flag_k = FK_CMP; 21403 if (CMP_EQ(_flag_a, _flag_b)) goto L_300128DD; /* 0x300128D8: je 0x300128dd */ 21404 L_300128DA: 21405 MEM32(esi + 0x4) = ecx; /* 0x300128DA: mov dword ptr [esi + 4], ecx */ 21406 L_300128DD: 21407 esi = MEM32(ecx + 0x4); /* 0x300128DD: mov esi, dword ptr [ecx + 4] */ 21408 MEM32(edx + 0x4) = esi; /* 0x300128E0: mov dword ptr [edx + 4], esi */ 21409 esi = MEM32(edi + 0x4); /* 0x300128E3: mov esi, dword ptr [edi + 4] */ 21410 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300128E6: cmp ecx, dword ptr [esi + 4] */ 21411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21413 _flag_k = FK_CMP; 21414 if (CMP_NE(_flag_a, _flag_b)) goto L_300128F0; /* 0x300128E9: jne 0x300128f0 */ 21415 L_300128EB: 21416 MEM32(esi + 0x4) = edx; /* 0x300128EB: mov dword ptr [esi + 4], edx */ 21417 goto L_300128FF; /* 0x300128EE: jmp 0x300128ff */ 21418 L_300128F0: 21419 esi = MEM32(ecx + 0x4); /* 0x300128F0: mov esi, dword ptr [ecx + 4] */ 21420 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300128F3: cmp ecx, dword ptr [esi + 8] */ 21421 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 21422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21423 _flag_k = FK_CMP; 21424 if (CMP_NE(_flag_a, _flag_b)) goto L_300128FD; /* 0x300128F6: jne 0x300128fd */ 21425 L_300128F8: 21426 MEM32(esi + 0x8) = edx; /* 0x300128F8: mov dword ptr [esi + 8], edx */ 21427 goto L_300128FF; /* 0x300128FB: jmp 0x300128ff */ 21428 L_300128FD: 21429 MEM32(esi) = edx; /* 0x300128FD: mov dword ptr [esi], edx */ 21430 L_300128FF: 21431 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 21432 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 21433 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 21434 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 21435 L_3001290B: 21436 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 21437 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 21438 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 21439 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 21440 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 21441 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 21442 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 21443 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 21444 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 21445 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 21446 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 21447 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 21448 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 21449 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21451 _flag_k = FK_CMP; 21452 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 21453 L_30012932: 21454 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 21455 L_30012935: 21456 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 21457 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 21458 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 21459 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 21460 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21462 _flag_k = FK_CMP; 21463 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 21464 L_30012943: 21465 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 21466 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 21467 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 21468 L_3001294D: 21469 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 21470 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 21471 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 21472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21473 _flag_k = FK_CMP; 21474 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 21475 L_30012954: 21476 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 21477 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 21478 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 21479 L_3001295D: 21480 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 21481 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 21482 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 21483 L_30012967: 21484 edx = MEM32(ecx); /* 0x30012967: mov edx, dword ptr [ecx] */ 21485 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012969: cmp byte ptr [edx + 0x14], bl */ 21486 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21488 _flag_k = FK_NARROW(FK_CMP, 24); 21489 if (CMP_NE(_flag_a, _flag_b)) goto L_300129B5; /* 0x3001296C: jne 0x300129b5 */ 21490 L_3001296E: 21491 edx = MEM32(ecx + 0x8); /* 0x3001296E: mov edx, dword ptr [ecx + 8] */ 21492 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012971: mov byte ptr [edx + 0x14], bl */ 21493 edx = MEM32(ecx + 0x8); /* 0x30012974: mov edx, dword ptr [ecx + 8] */ 21494 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012977: mov byte ptr [ecx + 0x14], 0 */ 21495 esi = MEM32(edx); /* 0x3001297B: mov esi, dword ptr [edx] */ 21496 MEM32(ecx + 0x8) = esi; /* 0x3001297D: mov dword ptr [ecx + 8], esi */ 21497 esi = MEM32(edx); /* 0x30012980: mov esi, dword ptr [edx] */ 21498 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012982: cmp esi, dword ptr [edi + 8] */ 21499 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21501 _flag_k = FK_CMP; 21502 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001298A; /* 0x30012985: je 0x3001298a */ 21503 L_30012987: 21504 MEM32(esi + 0x4) = ecx; /* 0x30012987: mov dword ptr [esi + 4], ecx */ 21505 L_3001298A: 21506 esi = MEM32(ecx + 0x4); /* 0x3001298A: mov esi, dword ptr [ecx + 4] */ 21507 MEM32(edx + 0x4) = esi; /* 0x3001298D: mov dword ptr [edx + 4], esi */ 21508 esi = MEM32(edi + 0x4); /* 0x30012990: mov esi, dword ptr [edi + 4] */ 21509 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012993: cmp ecx, dword ptr [esi + 4] */ 21510 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21512 _flag_k = FK_CMP; 21513 if (CMP_NE(_flag_a, _flag_b)) goto L_3001299D; /* 0x30012996: jne 0x3001299d */ 21514 L_30012998: 21515 MEM32(esi + 0x4) = edx; /* 0x30012998: mov dword ptr [esi + 4], edx */ 21516 goto L_300129AB; /* 0x3001299B: jmp 0x300129ab */ 21517 L_3001299D: 21518 esi = MEM32(ecx + 0x4); /* 0x3001299D: mov esi, dword ptr [ecx + 4] */ 21519 /* cmp ecx, MEM32(esi) */ /* 0x300129A0: cmp ecx, dword ptr [esi] */ 21520 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 21521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21522 _flag_k = FK_CMP; 21523 if (CMP_NE(_flag_a, _flag_b)) goto L_300129A8; /* 0x300129A2: jne 0x300129a8 */ 21524 L_300129A4: 21525 MEM32(esi) = edx; /* 0x300129A4: mov dword ptr [esi], edx */ 21526 goto L_300129AB; /* 0x300129A6: jmp 0x300129ab */ 21527 L_300129A8: 21528 MEM32(esi + 0x8) = edx; /* 0x300129A8: mov dword ptr [esi + 8], edx */ 21529 L_300129AB: 21530 MEM32(edx) = ecx; /* 0x300129AB: mov dword ptr [edx], ecx */ 21531 MEM32(ecx + 0x4) = edx; /* 0x300129AD: mov dword ptr [ecx + 4], edx */ 21532 ecx = MEM32(eax + 0x4); /* 0x300129B0: mov ecx, dword ptr [eax + 4] */ 21533 ecx = MEM32(ecx); /* 0x300129B3: mov ecx, dword ptr [ecx] */ 21534 L_300129B5: 21535 edx = MEM32(eax + 0x4); /* 0x300129B5: mov edx, dword ptr [eax + 4] */ 21536 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x300129B8: mov dl, byte ptr [edx + 0x14] */ 21537 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x300129BB: mov byte ptr [ecx + 0x14], dl */ 21538 edx = MEM32(eax + 0x4); /* 0x300129BE: mov edx, dword ptr [eax + 4] */ 21539 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C1: mov byte ptr [edx + 0x14], bl */ 21540 ecx = MEM32(ecx); /* 0x300129C4: mov ecx, dword ptr [ecx] */ 21541 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C6: mov byte ptr [ecx + 0x14], bl */ 21542 ecx = MEM32(eax + 0x4); /* 0x300129C9: mov ecx, dword ptr [eax + 4] */ 21543 edx = MEM32(ecx); /* 0x300129CC: mov edx, dword ptr [ecx] */ 21544 esi = MEM32(edx + 0x8); /* 0x300129CE: mov esi, dword ptr [edx + 8] */ 21545 MEM32(ecx) = esi; /* 0x300129D1: mov dword ptr [ecx], esi */ 21546 esi = MEM32(edx + 0x8); /* 0x300129D3: mov esi, dword ptr [edx + 8] */ 21547 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300129D6: cmp esi, dword ptr [edi + 8] */ 21548 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21550 _flag_k = FK_CMP; 21551 if (CMP_EQ(_flag_a, _flag_b)) goto L_300129DE; /* 0x300129D9: je 0x300129de */ 21552 L_300129DB: 21553 MEM32(esi + 0x4) = ecx; /* 0x300129DB: mov dword ptr [esi + 4], ecx */ 21554 L_300129DE: 21555 esi = MEM32(ecx + 0x4); /* 0x300129DE: mov esi, dword ptr [ecx + 4] */ 21556 MEM32(edx + 0x4) = esi; /* 0x300129E1: mov dword ptr [edx + 4], esi */ 21557 esi = MEM32(edi + 0x4); /* 0x300129E4: mov esi, dword ptr [edi + 4] */ 21558 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300129E7: cmp ecx, dword ptr [esi + 4] */ 21559 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21561 _flag_k = FK_CMP; 21562 if (CMP_NE(_flag_a, _flag_b)) goto L_300129F1; /* 0x300129EA: jne 0x300129f1 */ 21563 L_300129EC: 21564 MEM32(esi + 0x4) = edx; /* 0x300129EC: mov dword ptr [esi + 4], edx */ 21565 goto L_30012A00; /* 0x300129EF: jmp 0x30012a00 */ 21566 L_300129F1: 21567 esi = MEM32(ecx + 0x4); /* 0x300129F1: mov esi, dword ptr [ecx + 4] */ 21568 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300129F4: cmp ecx, dword ptr [esi + 8] */ 21569 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 21570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21571 _flag_k = FK_CMP; 21572 if (CMP_NE(_flag_a, _flag_b)) goto L_300129FE; /* 0x300129F7: jne 0x300129fe */ 21573 L_300129F9: 21574 MEM32(esi + 0x8) = edx; /* 0x300129F9: mov dword ptr [esi + 8], edx */ 21575 goto L_30012A00; /* 0x300129FC: jmp 0x30012a00 */ 21576 L_300129FE: 21577 MEM32(esi) = edx; /* 0x300129FE: mov dword ptr [esi], edx */ 21578 L_30012A00: 21579 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 21580 L_30012A03: 21581 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 21582 L_30012A06: 21583 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 21584 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 21585 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 21586 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 21587 RECOMP_FLAGS_IN(); 21588 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 21589 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 21590 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 21591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21592 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 21593 _flag_k = FK_ADD; 21594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 21595 eax = eax - 1; /* 0x30012A1B: dec eax */ 21596 _flag_k = FK_DEC; 21597 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 21598 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 21599 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 21600 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 21601 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 21602 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 21603 esp = ebp; /* 0x30012A27: mov esp, ebp */ 21604 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 21605 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 21606 RECOMP_REGS_OUT(); 21607 } 21608 21609 void sub_30012838(void) { 21610 int _fpu_cmp = 0; 21611 uint32_t _cf = 0; 21612 int _df = 1; 21613 uint32_t _flag_k = FK_NONE; 21614 uint32_t _flag_a = 0, _flag_b = 0; 21615 uint32_t _itail_tgt = 0; 21616 RECOMP_REGS_LOCALS 21617 RECOMP_ENTER(0x30012838u); 21618 21619 goto L_30012838; 21620 L_300127B8: 21621 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x300127B8: cmp byte ptr [eax + 0x14], bl */ 21622 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21624 _flag_k = FK_NARROW(FK_CMP, 24); 21625 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127BB: jne 0x30012a06 */ 21626 L_300127C1: 21627 edx = MEM32(eax + 0x4); /* 0x300127C1: mov edx, dword ptr [eax + 4] */ 21628 ecx = MEM32(edx); /* 0x300127C4: mov ecx, dword ptr [edx] */ 21629 /* cmp eax, ecx */ /* 0x300127C6: cmp eax, ecx */ 21630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 21631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21632 _flag_k = FK_CMP; 21633 if (CMP_NE(_flag_a, _flag_b)) goto L_30012838; /* 0x300127C8: jne 0x30012838 */ 21634 L_300127CA: 21635 ecx = MEM32(edx + 0x8); /* 0x300127CA: mov ecx, dword ptr [edx + 8] */ 21636 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x300127CD: mov dl, byte ptr [ecx + 0x14] */ 21637 /* test LO8(edx), LO8(edx) */ /* 0x300127D0: test dl, dl */ 21638 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 21639 _cf = 0; 21640 _flag_k = FK_NARROW(FK_TEST, 24); 21641 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001281F; /* 0x300127D2: jne 0x3001281f */ 21642 L_300127D4: 21643 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300127D4: mov byte ptr [ecx + 0x14], bl */ 21644 ecx = MEM32(eax + 0x4); /* 0x300127D7: mov ecx, dword ptr [eax + 4] */ 21645 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300127DA: mov byte ptr [ecx + 0x14], 0 */ 21646 ecx = MEM32(eax + 0x4); /* 0x300127DE: mov ecx, dword ptr [eax + 4] */ 21647 edx = MEM32(ecx + 0x8); /* 0x300127E1: mov edx, dword ptr [ecx + 8] */ 21648 esi = MEM32(edx); /* 0x300127E4: mov esi, dword ptr [edx] */ 21649 MEM32(ecx + 0x8) = esi; /* 0x300127E6: mov dword ptr [ecx + 8], esi */ 21650 esi = MEM32(edx); /* 0x300127E9: mov esi, dword ptr [edx] */ 21651 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300127EB: cmp esi, dword ptr [edi + 8] */ 21652 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21654 _flag_k = FK_CMP; 21655 if (CMP_EQ(_flag_a, _flag_b)) goto L_300127F3; /* 0x300127EE: je 0x300127f3 */ 21656 L_300127F0: 21657 MEM32(esi + 0x4) = ecx; /* 0x300127F0: mov dword ptr [esi + 4], ecx */ 21658 L_300127F3: 21659 esi = MEM32(ecx + 0x4); /* 0x300127F3: mov esi, dword ptr [ecx + 4] */ 21660 MEM32(edx + 0x4) = esi; /* 0x300127F6: mov dword ptr [edx + 4], esi */ 21661 esi = MEM32(edi + 0x4); /* 0x300127F9: mov esi, dword ptr [edi + 4] */ 21662 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300127FC: cmp ecx, dword ptr [esi + 4] */ 21663 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21665 _flag_k = FK_CMP; 21666 if (CMP_NE(_flag_a, _flag_b)) goto L_30012806; /* 0x300127FF: jne 0x30012806 */ 21667 L_30012801: 21668 MEM32(esi + 0x4) = edx; /* 0x30012801: mov dword ptr [esi + 4], edx */ 21669 goto L_30012814; /* 0x30012804: jmp 0x30012814 */ 21670 L_30012806: 21671 esi = MEM32(ecx + 0x4); /* 0x30012806: mov esi, dword ptr [ecx + 4] */ 21672 /* cmp ecx, MEM32(esi) */ /* 0x30012809: cmp ecx, dword ptr [esi] */ 21673 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 21674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21675 _flag_k = FK_CMP; 21676 if (CMP_NE(_flag_a, _flag_b)) goto L_30012811; /* 0x3001280B: jne 0x30012811 */ 21677 L_3001280D: 21678 MEM32(esi) = edx; /* 0x3001280D: mov dword ptr [esi], edx */ 21679 goto L_30012814; /* 0x3001280F: jmp 0x30012814 */ 21680 L_30012811: 21681 MEM32(esi + 0x8) = edx; /* 0x30012811: mov dword ptr [esi + 8], edx */ 21682 L_30012814: 21683 MEM32(edx) = ecx; /* 0x30012814: mov dword ptr [edx], ecx */ 21684 MEM32(ecx + 0x4) = edx; /* 0x30012816: mov dword ptr [ecx + 4], edx */ 21685 edx = MEM32(eax + 0x4); /* 0x30012819: mov edx, dword ptr [eax + 4] */ 21686 ecx = MEM32(edx + 0x8); /* 0x3001281C: mov ecx, dword ptr [edx + 8] */ 21687 L_3001281F: 21688 edx = MEM32(ecx); /* 0x3001281F: mov edx, dword ptr [ecx] */ 21689 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012821: cmp byte ptr [edx + 0x14], bl */ 21690 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21692 _flag_k = FK_NARROW(FK_CMP, 24); 21693 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012824: jne 0x300128ba */ 21694 L_3001282A: 21695 edx = MEM32(ecx + 0x8); /* 0x3001282A: mov edx, dword ptr [ecx + 8] */ 21696 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001282D: cmp byte ptr [edx + 0x14], bl */ 21697 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21698 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21699 _flag_k = FK_NARROW(FK_CMP, 24); 21700 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012830: jne 0x300128ba */ 21701 L_30012836: 21702 goto L_300128A2; /* 0x30012836: jmp 0x300128a2 */ 21703 L_30012838: 21704 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x30012838: mov dl, byte ptr [ecx + 0x14] */ 21705 /* test LO8(edx), LO8(edx) */ /* 0x3001283B: test dl, dl */ 21706 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 21707 _cf = 0; 21708 _flag_k = FK_NARROW(FK_TEST, 24); 21709 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001288B; /* 0x3001283D: jne 0x3001288b */ 21710 L_3001283F: 21711 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001283F: mov byte ptr [ecx + 0x14], bl */ 21712 ecx = MEM32(eax + 0x4); /* 0x30012842: mov ecx, dword ptr [eax + 4] */ 21713 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012845: mov byte ptr [ecx + 0x14], 0 */ 21714 ecx = MEM32(eax + 0x4); /* 0x30012849: mov ecx, dword ptr [eax + 4] */ 21715 edx = MEM32(ecx); /* 0x3001284C: mov edx, dword ptr [ecx] */ 21716 esi = MEM32(edx + 0x8); /* 0x3001284E: mov esi, dword ptr [edx + 8] */ 21717 MEM32(ecx) = esi; /* 0x30012851: mov dword ptr [ecx], esi */ 21718 esi = MEM32(edx + 0x8); /* 0x30012853: mov esi, dword ptr [edx + 8] */ 21719 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012856: cmp esi, dword ptr [edi + 8] */ 21720 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21722 _flag_k = FK_CMP; 21723 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001285E; /* 0x30012859: je 0x3001285e */ 21724 L_3001285B: 21725 MEM32(esi + 0x4) = ecx; /* 0x3001285B: mov dword ptr [esi + 4], ecx */ 21726 L_3001285E: 21727 esi = MEM32(ecx + 0x4); /* 0x3001285E: mov esi, dword ptr [ecx + 4] */ 21728 MEM32(edx + 0x4) = esi; /* 0x30012861: mov dword ptr [edx + 4], esi */ 21729 esi = MEM32(edi + 0x4); /* 0x30012864: mov esi, dword ptr [edi + 4] */ 21730 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012867: cmp ecx, dword ptr [esi + 4] */ 21731 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21733 _flag_k = FK_CMP; 21734 if (CMP_NE(_flag_a, _flag_b)) goto L_30012871; /* 0x3001286A: jne 0x30012871 */ 21735 L_3001286C: 21736 MEM32(esi + 0x4) = edx; /* 0x3001286C: mov dword ptr [esi + 4], edx */ 21737 goto L_30012880; /* 0x3001286F: jmp 0x30012880 */ 21738 L_30012871: 21739 esi = MEM32(ecx + 0x4); /* 0x30012871: mov esi, dword ptr [ecx + 4] */ 21740 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012874: cmp ecx, dword ptr [esi + 8] */ 21741 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 21742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21743 _flag_k = FK_CMP; 21744 if (CMP_NE(_flag_a, _flag_b)) goto L_3001287E; /* 0x30012877: jne 0x3001287e */ 21745 L_30012879: 21746 MEM32(esi + 0x8) = edx; /* 0x30012879: mov dword ptr [esi + 8], edx */ 21747 goto L_30012880; /* 0x3001287C: jmp 0x30012880 */ 21748 L_3001287E: 21749 MEM32(esi) = edx; /* 0x3001287E: mov dword ptr [esi], edx */ 21750 L_30012880: 21751 MEM32(edx + 0x8) = ecx; /* 0x30012880: mov dword ptr [edx + 8], ecx */ 21752 MEM32(ecx + 0x4) = edx; /* 0x30012883: mov dword ptr [ecx + 4], edx */ 21753 edx = MEM32(eax + 0x4); /* 0x30012886: mov edx, dword ptr [eax + 4] */ 21754 ecx = MEM32(edx); /* 0x30012889: mov ecx, dword ptr [edx] */ 21755 L_3001288B: 21756 edx = MEM32(ecx + 0x8); /* 0x3001288B: mov edx, dword ptr [ecx + 8] */ 21757 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001288E: cmp byte ptr [edx + 0x14], bl */ 21758 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21760 _flag_k = FK_NARROW(FK_CMP, 24); 21761 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x30012891: jne 0x30012967 */ 21762 L_30012897: 21763 edx = MEM32(ecx); /* 0x30012897: mov edx, dword ptr [ecx] */ 21764 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012899: cmp byte ptr [edx + 0x14], bl */ 21765 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21767 _flag_k = FK_NARROW(FK_CMP, 24); 21768 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x3001289C: jne 0x30012967 */ 21769 L_300128A2: 21770 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128A2: mov byte ptr [ecx + 0x14], 0 */ 21771 ecx = MEM32(edi + 0x4); /* 0x300128A6: mov ecx, dword ptr [edi + 4] */ 21772 eax = MEM32(eax + 0x4); /* 0x300128A9: mov eax, dword ptr [eax + 4] */ 21773 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300128AC: cmp eax, dword ptr [ecx + 4] */ 21774 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 21775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21776 _flag_k = FK_CMP; 21777 RECOMP_BACKEDGE(); 21778 if (CMP_NE(_flag_a, _flag_b)) goto L_300127B8; /* 0x300128AF: jne 0x300127b8 */ 21779 L_300128B5: 21780 goto L_30012A06; /* 0x300128B5: jmp 0x30012a06 */ 21781 L_300128BA: 21782 edx = MEM32(ecx + 0x8); /* 0x300128BA: mov edx, dword ptr [ecx + 8] */ 21783 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x300128BD: cmp byte ptr [edx + 0x14], bl */ 21784 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21786 _flag_k = FK_NARROW(FK_CMP, 24); 21787 if (CMP_NE(_flag_a, _flag_b)) goto L_3001290B; /* 0x300128C0: jne 0x3001290b */ 21788 L_300128C2: 21789 edx = MEM32(ecx); /* 0x300128C2: mov edx, dword ptr [ecx] */ 21790 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300128C4: mov byte ptr [edx + 0x14], bl */ 21791 edx = MEM32(ecx); /* 0x300128C7: mov edx, dword ptr [ecx] */ 21792 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128C9: mov byte ptr [ecx + 0x14], 0 */ 21793 esi = MEM32(edx + 0x8); /* 0x300128CD: mov esi, dword ptr [edx + 8] */ 21794 MEM32(ecx) = esi; /* 0x300128D0: mov dword ptr [ecx], esi */ 21795 esi = MEM32(edx + 0x8); /* 0x300128D2: mov esi, dword ptr [edx + 8] */ 21796 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300128D5: cmp esi, dword ptr [edi + 8] */ 21797 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21799 _flag_k = FK_CMP; 21800 if (CMP_EQ(_flag_a, _flag_b)) goto L_300128DD; /* 0x300128D8: je 0x300128dd */ 21801 L_300128DA: 21802 MEM32(esi + 0x4) = ecx; /* 0x300128DA: mov dword ptr [esi + 4], ecx */ 21803 L_300128DD: 21804 esi = MEM32(ecx + 0x4); /* 0x300128DD: mov esi, dword ptr [ecx + 4] */ 21805 MEM32(edx + 0x4) = esi; /* 0x300128E0: mov dword ptr [edx + 4], esi */ 21806 esi = MEM32(edi + 0x4); /* 0x300128E3: mov esi, dword ptr [edi + 4] */ 21807 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300128E6: cmp ecx, dword ptr [esi + 4] */ 21808 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21810 _flag_k = FK_CMP; 21811 if (CMP_NE(_flag_a, _flag_b)) goto L_300128F0; /* 0x300128E9: jne 0x300128f0 */ 21812 L_300128EB: 21813 MEM32(esi + 0x4) = edx; /* 0x300128EB: mov dword ptr [esi + 4], edx */ 21814 goto L_300128FF; /* 0x300128EE: jmp 0x300128ff */ 21815 L_300128F0: 21816 esi = MEM32(ecx + 0x4); /* 0x300128F0: mov esi, dword ptr [ecx + 4] */ 21817 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300128F3: cmp ecx, dword ptr [esi + 8] */ 21818 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 21819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21820 _flag_k = FK_CMP; 21821 if (CMP_NE(_flag_a, _flag_b)) goto L_300128FD; /* 0x300128F6: jne 0x300128fd */ 21822 L_300128F8: 21823 MEM32(esi + 0x8) = edx; /* 0x300128F8: mov dword ptr [esi + 8], edx */ 21824 goto L_300128FF; /* 0x300128FB: jmp 0x300128ff */ 21825 L_300128FD: 21826 MEM32(esi) = edx; /* 0x300128FD: mov dword ptr [esi], edx */ 21827 L_300128FF: 21828 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 21829 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 21830 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 21831 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 21832 L_3001290B: 21833 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 21834 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 21835 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 21836 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 21837 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 21838 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 21839 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 21840 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 21841 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 21842 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 21843 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 21844 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 21845 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 21846 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21848 _flag_k = FK_CMP; 21849 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 21850 L_30012932: 21851 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 21852 L_30012935: 21853 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 21854 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 21855 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 21856 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 21857 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21859 _flag_k = FK_CMP; 21860 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 21861 L_30012943: 21862 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 21863 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 21864 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 21865 L_3001294D: 21866 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 21867 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 21868 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 21869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21870 _flag_k = FK_CMP; 21871 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 21872 L_30012954: 21873 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 21874 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 21875 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 21876 L_3001295D: 21877 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 21878 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 21879 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 21880 L_30012967: 21881 edx = MEM32(ecx); /* 0x30012967: mov edx, dword ptr [ecx] */ 21882 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012969: cmp byte ptr [edx + 0x14], bl */ 21883 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 21884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21885 _flag_k = FK_NARROW(FK_CMP, 24); 21886 if (CMP_NE(_flag_a, _flag_b)) goto L_300129B5; /* 0x3001296C: jne 0x300129b5 */ 21887 L_3001296E: 21888 edx = MEM32(ecx + 0x8); /* 0x3001296E: mov edx, dword ptr [ecx + 8] */ 21889 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012971: mov byte ptr [edx + 0x14], bl */ 21890 edx = MEM32(ecx + 0x8); /* 0x30012974: mov edx, dword ptr [ecx + 8] */ 21891 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012977: mov byte ptr [ecx + 0x14], 0 */ 21892 esi = MEM32(edx); /* 0x3001297B: mov esi, dword ptr [edx] */ 21893 MEM32(ecx + 0x8) = esi; /* 0x3001297D: mov dword ptr [ecx + 8], esi */ 21894 esi = MEM32(edx); /* 0x30012980: mov esi, dword ptr [edx] */ 21895 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012982: cmp esi, dword ptr [edi + 8] */ 21896 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21898 _flag_k = FK_CMP; 21899 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001298A; /* 0x30012985: je 0x3001298a */ 21900 L_30012987: 21901 MEM32(esi + 0x4) = ecx; /* 0x30012987: mov dword ptr [esi + 4], ecx */ 21902 L_3001298A: 21903 esi = MEM32(ecx + 0x4); /* 0x3001298A: mov esi, dword ptr [ecx + 4] */ 21904 MEM32(edx + 0x4) = esi; /* 0x3001298D: mov dword ptr [edx + 4], esi */ 21905 esi = MEM32(edi + 0x4); /* 0x30012990: mov esi, dword ptr [edi + 4] */ 21906 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012993: cmp ecx, dword ptr [esi + 4] */ 21907 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21909 _flag_k = FK_CMP; 21910 if (CMP_NE(_flag_a, _flag_b)) goto L_3001299D; /* 0x30012996: jne 0x3001299d */ 21911 L_30012998: 21912 MEM32(esi + 0x4) = edx; /* 0x30012998: mov dword ptr [esi + 4], edx */ 21913 goto L_300129AB; /* 0x3001299B: jmp 0x300129ab */ 21914 L_3001299D: 21915 esi = MEM32(ecx + 0x4); /* 0x3001299D: mov esi, dword ptr [ecx + 4] */ 21916 /* cmp ecx, MEM32(esi) */ /* 0x300129A0: cmp ecx, dword ptr [esi] */ 21917 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 21918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21919 _flag_k = FK_CMP; 21920 if (CMP_NE(_flag_a, _flag_b)) goto L_300129A8; /* 0x300129A2: jne 0x300129a8 */ 21921 L_300129A4: 21922 MEM32(esi) = edx; /* 0x300129A4: mov dword ptr [esi], edx */ 21923 goto L_300129AB; /* 0x300129A6: jmp 0x300129ab */ 21924 L_300129A8: 21925 MEM32(esi + 0x8) = edx; /* 0x300129A8: mov dword ptr [esi + 8], edx */ 21926 L_300129AB: 21927 MEM32(edx) = ecx; /* 0x300129AB: mov dword ptr [edx], ecx */ 21928 MEM32(ecx + 0x4) = edx; /* 0x300129AD: mov dword ptr [ecx + 4], edx */ 21929 ecx = MEM32(eax + 0x4); /* 0x300129B0: mov ecx, dword ptr [eax + 4] */ 21930 ecx = MEM32(ecx); /* 0x300129B3: mov ecx, dword ptr [ecx] */ 21931 L_300129B5: 21932 edx = MEM32(eax + 0x4); /* 0x300129B5: mov edx, dword ptr [eax + 4] */ 21933 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x300129B8: mov dl, byte ptr [edx + 0x14] */ 21934 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x300129BB: mov byte ptr [ecx + 0x14], dl */ 21935 edx = MEM32(eax + 0x4); /* 0x300129BE: mov edx, dword ptr [eax + 4] */ 21936 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C1: mov byte ptr [edx + 0x14], bl */ 21937 ecx = MEM32(ecx); /* 0x300129C4: mov ecx, dword ptr [ecx] */ 21938 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C6: mov byte ptr [ecx + 0x14], bl */ 21939 ecx = MEM32(eax + 0x4); /* 0x300129C9: mov ecx, dword ptr [eax + 4] */ 21940 edx = MEM32(ecx); /* 0x300129CC: mov edx, dword ptr [ecx] */ 21941 esi = MEM32(edx + 0x8); /* 0x300129CE: mov esi, dword ptr [edx + 8] */ 21942 MEM32(ecx) = esi; /* 0x300129D1: mov dword ptr [ecx], esi */ 21943 esi = MEM32(edx + 0x8); /* 0x300129D3: mov esi, dword ptr [edx + 8] */ 21944 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300129D6: cmp esi, dword ptr [edi + 8] */ 21945 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 21946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21947 _flag_k = FK_CMP; 21948 if (CMP_EQ(_flag_a, _flag_b)) goto L_300129DE; /* 0x300129D9: je 0x300129de */ 21949 L_300129DB: 21950 MEM32(esi + 0x4) = ecx; /* 0x300129DB: mov dword ptr [esi + 4], ecx */ 21951 L_300129DE: 21952 esi = MEM32(ecx + 0x4); /* 0x300129DE: mov esi, dword ptr [ecx + 4] */ 21953 MEM32(edx + 0x4) = esi; /* 0x300129E1: mov dword ptr [edx + 4], esi */ 21954 esi = MEM32(edi + 0x4); /* 0x300129E4: mov esi, dword ptr [edi + 4] */ 21955 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300129E7: cmp ecx, dword ptr [esi + 4] */ 21956 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 21957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21958 _flag_k = FK_CMP; 21959 if (CMP_NE(_flag_a, _flag_b)) goto L_300129F1; /* 0x300129EA: jne 0x300129f1 */ 21960 L_300129EC: 21961 MEM32(esi + 0x4) = edx; /* 0x300129EC: mov dword ptr [esi + 4], edx */ 21962 goto L_30012A00; /* 0x300129EF: jmp 0x30012a00 */ 21963 L_300129F1: 21964 esi = MEM32(ecx + 0x4); /* 0x300129F1: mov esi, dword ptr [ecx + 4] */ 21965 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300129F4: cmp ecx, dword ptr [esi + 8] */ 21966 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 21967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21968 _flag_k = FK_CMP; 21969 if (CMP_NE(_flag_a, _flag_b)) goto L_300129FE; /* 0x300129F7: jne 0x300129fe */ 21970 L_300129F9: 21971 MEM32(esi + 0x8) = edx; /* 0x300129F9: mov dword ptr [esi + 8], edx */ 21972 goto L_30012A00; /* 0x300129FC: jmp 0x30012a00 */ 21973 L_300129FE: 21974 MEM32(esi) = edx; /* 0x300129FE: mov dword ptr [esi], edx */ 21975 L_30012A00: 21976 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 21977 L_30012A03: 21978 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 21979 L_30012A06: 21980 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 21981 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 21982 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 21983 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 21984 RECOMP_FLAGS_IN(); 21985 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 21986 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 21987 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 21988 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21989 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 21990 _flag_k = FK_ADD; 21991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 21992 eax = eax - 1; /* 0x30012A1B: dec eax */ 21993 _flag_k = FK_DEC; 21994 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 21995 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 21996 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 21997 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 21998 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 21999 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 22000 esp = ebp; /* 0x30012A27: mov esp, ebp */ 22001 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 22002 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 22003 RECOMP_REGS_OUT(); 22004 } 22005 22006 void sub_30012880(void) { 22007 int _fpu_cmp = 0; 22008 uint32_t _cf = 0; 22009 int _df = 1; 22010 uint32_t _flag_k = FK_NONE; 22011 uint32_t _flag_a = 0, _flag_b = 0; 22012 uint32_t _itail_tgt = 0; 22013 RECOMP_REGS_LOCALS 22014 RECOMP_ENTER(0x30012880u); 22015 22016 goto L_30012880; 22017 L_300127B8: 22018 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x300127B8: cmp byte ptr [eax + 0x14], bl */ 22019 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22021 _flag_k = FK_NARROW(FK_CMP, 24); 22022 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127BB: jne 0x30012a06 */ 22023 L_300127C1: 22024 edx = MEM32(eax + 0x4); /* 0x300127C1: mov edx, dword ptr [eax + 4] */ 22025 ecx = MEM32(edx); /* 0x300127C4: mov ecx, dword ptr [edx] */ 22026 /* cmp eax, ecx */ /* 0x300127C6: cmp eax, ecx */ 22027 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 22028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22029 _flag_k = FK_CMP; 22030 if (CMP_NE(_flag_a, _flag_b)) goto L_30012838; /* 0x300127C8: jne 0x30012838 */ 22031 L_300127CA: 22032 ecx = MEM32(edx + 0x8); /* 0x300127CA: mov ecx, dword ptr [edx + 8] */ 22033 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x300127CD: mov dl, byte ptr [ecx + 0x14] */ 22034 /* test LO8(edx), LO8(edx) */ /* 0x300127D0: test dl, dl */ 22035 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 22036 _cf = 0; 22037 _flag_k = FK_NARROW(FK_TEST, 24); 22038 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001281F; /* 0x300127D2: jne 0x3001281f */ 22039 L_300127D4: 22040 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300127D4: mov byte ptr [ecx + 0x14], bl */ 22041 ecx = MEM32(eax + 0x4); /* 0x300127D7: mov ecx, dword ptr [eax + 4] */ 22042 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300127DA: mov byte ptr [ecx + 0x14], 0 */ 22043 ecx = MEM32(eax + 0x4); /* 0x300127DE: mov ecx, dword ptr [eax + 4] */ 22044 edx = MEM32(ecx + 0x8); /* 0x300127E1: mov edx, dword ptr [ecx + 8] */ 22045 esi = MEM32(edx); /* 0x300127E4: mov esi, dword ptr [edx] */ 22046 MEM32(ecx + 0x8) = esi; /* 0x300127E6: mov dword ptr [ecx + 8], esi */ 22047 esi = MEM32(edx); /* 0x300127E9: mov esi, dword ptr [edx] */ 22048 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300127EB: cmp esi, dword ptr [edi + 8] */ 22049 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22051 _flag_k = FK_CMP; 22052 if (CMP_EQ(_flag_a, _flag_b)) goto L_300127F3; /* 0x300127EE: je 0x300127f3 */ 22053 L_300127F0: 22054 MEM32(esi + 0x4) = ecx; /* 0x300127F0: mov dword ptr [esi + 4], ecx */ 22055 L_300127F3: 22056 esi = MEM32(ecx + 0x4); /* 0x300127F3: mov esi, dword ptr [ecx + 4] */ 22057 MEM32(edx + 0x4) = esi; /* 0x300127F6: mov dword ptr [edx + 4], esi */ 22058 esi = MEM32(edi + 0x4); /* 0x300127F9: mov esi, dword ptr [edi + 4] */ 22059 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300127FC: cmp ecx, dword ptr [esi + 4] */ 22060 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22062 _flag_k = FK_CMP; 22063 if (CMP_NE(_flag_a, _flag_b)) goto L_30012806; /* 0x300127FF: jne 0x30012806 */ 22064 L_30012801: 22065 MEM32(esi + 0x4) = edx; /* 0x30012801: mov dword ptr [esi + 4], edx */ 22066 goto L_30012814; /* 0x30012804: jmp 0x30012814 */ 22067 L_30012806: 22068 esi = MEM32(ecx + 0x4); /* 0x30012806: mov esi, dword ptr [ecx + 4] */ 22069 /* cmp ecx, MEM32(esi) */ /* 0x30012809: cmp ecx, dword ptr [esi] */ 22070 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 22071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22072 _flag_k = FK_CMP; 22073 if (CMP_NE(_flag_a, _flag_b)) goto L_30012811; /* 0x3001280B: jne 0x30012811 */ 22074 L_3001280D: 22075 MEM32(esi) = edx; /* 0x3001280D: mov dword ptr [esi], edx */ 22076 goto L_30012814; /* 0x3001280F: jmp 0x30012814 */ 22077 L_30012811: 22078 MEM32(esi + 0x8) = edx; /* 0x30012811: mov dword ptr [esi + 8], edx */ 22079 L_30012814: 22080 MEM32(edx) = ecx; /* 0x30012814: mov dword ptr [edx], ecx */ 22081 MEM32(ecx + 0x4) = edx; /* 0x30012816: mov dword ptr [ecx + 4], edx */ 22082 edx = MEM32(eax + 0x4); /* 0x30012819: mov edx, dword ptr [eax + 4] */ 22083 ecx = MEM32(edx + 0x8); /* 0x3001281C: mov ecx, dword ptr [edx + 8] */ 22084 L_3001281F: 22085 edx = MEM32(ecx); /* 0x3001281F: mov edx, dword ptr [ecx] */ 22086 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012821: cmp byte ptr [edx + 0x14], bl */ 22087 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22089 _flag_k = FK_NARROW(FK_CMP, 24); 22090 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012824: jne 0x300128ba */ 22091 L_3001282A: 22092 edx = MEM32(ecx + 0x8); /* 0x3001282A: mov edx, dword ptr [ecx + 8] */ 22093 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001282D: cmp byte ptr [edx + 0x14], bl */ 22094 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22096 _flag_k = FK_NARROW(FK_CMP, 24); 22097 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012830: jne 0x300128ba */ 22098 L_30012836: 22099 goto L_300128A2; /* 0x30012836: jmp 0x300128a2 */ 22100 L_30012838: 22101 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x30012838: mov dl, byte ptr [ecx + 0x14] */ 22102 /* test LO8(edx), LO8(edx) */ /* 0x3001283B: test dl, dl */ 22103 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 22104 _cf = 0; 22105 _flag_k = FK_NARROW(FK_TEST, 24); 22106 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001288B; /* 0x3001283D: jne 0x3001288b */ 22107 L_3001283F: 22108 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001283F: mov byte ptr [ecx + 0x14], bl */ 22109 ecx = MEM32(eax + 0x4); /* 0x30012842: mov ecx, dword ptr [eax + 4] */ 22110 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012845: mov byte ptr [ecx + 0x14], 0 */ 22111 ecx = MEM32(eax + 0x4); /* 0x30012849: mov ecx, dword ptr [eax + 4] */ 22112 edx = MEM32(ecx); /* 0x3001284C: mov edx, dword ptr [ecx] */ 22113 esi = MEM32(edx + 0x8); /* 0x3001284E: mov esi, dword ptr [edx + 8] */ 22114 MEM32(ecx) = esi; /* 0x30012851: mov dword ptr [ecx], esi */ 22115 esi = MEM32(edx + 0x8); /* 0x30012853: mov esi, dword ptr [edx + 8] */ 22116 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012856: cmp esi, dword ptr [edi + 8] */ 22117 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22119 _flag_k = FK_CMP; 22120 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001285E; /* 0x30012859: je 0x3001285e */ 22121 L_3001285B: 22122 MEM32(esi + 0x4) = ecx; /* 0x3001285B: mov dword ptr [esi + 4], ecx */ 22123 L_3001285E: 22124 esi = MEM32(ecx + 0x4); /* 0x3001285E: mov esi, dword ptr [ecx + 4] */ 22125 MEM32(edx + 0x4) = esi; /* 0x30012861: mov dword ptr [edx + 4], esi */ 22126 esi = MEM32(edi + 0x4); /* 0x30012864: mov esi, dword ptr [edi + 4] */ 22127 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012867: cmp ecx, dword ptr [esi + 4] */ 22128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22130 _flag_k = FK_CMP; 22131 if (CMP_NE(_flag_a, _flag_b)) goto L_30012871; /* 0x3001286A: jne 0x30012871 */ 22132 L_3001286C: 22133 MEM32(esi + 0x4) = edx; /* 0x3001286C: mov dword ptr [esi + 4], edx */ 22134 goto L_30012880; /* 0x3001286F: jmp 0x30012880 */ 22135 L_30012871: 22136 esi = MEM32(ecx + 0x4); /* 0x30012871: mov esi, dword ptr [ecx + 4] */ 22137 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012874: cmp ecx, dword ptr [esi + 8] */ 22138 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 22139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22140 _flag_k = FK_CMP; 22141 if (CMP_NE(_flag_a, _flag_b)) goto L_3001287E; /* 0x30012877: jne 0x3001287e */ 22142 L_30012879: 22143 MEM32(esi + 0x8) = edx; /* 0x30012879: mov dword ptr [esi + 8], edx */ 22144 goto L_30012880; /* 0x3001287C: jmp 0x30012880 */ 22145 L_3001287E: 22146 MEM32(esi) = edx; /* 0x3001287E: mov dword ptr [esi], edx */ 22147 L_30012880: 22148 MEM32(edx + 0x8) = ecx; /* 0x30012880: mov dword ptr [edx + 8], ecx */ 22149 MEM32(ecx + 0x4) = edx; /* 0x30012883: mov dword ptr [ecx + 4], edx */ 22150 edx = MEM32(eax + 0x4); /* 0x30012886: mov edx, dword ptr [eax + 4] */ 22151 ecx = MEM32(edx); /* 0x30012889: mov ecx, dword ptr [edx] */ 22152 L_3001288B: 22153 edx = MEM32(ecx + 0x8); /* 0x3001288B: mov edx, dword ptr [ecx + 8] */ 22154 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001288E: cmp byte ptr [edx + 0x14], bl */ 22155 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22157 _flag_k = FK_NARROW(FK_CMP, 24); 22158 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x30012891: jne 0x30012967 */ 22159 L_30012897: 22160 edx = MEM32(ecx); /* 0x30012897: mov edx, dword ptr [ecx] */ 22161 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012899: cmp byte ptr [edx + 0x14], bl */ 22162 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22164 _flag_k = FK_NARROW(FK_CMP, 24); 22165 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x3001289C: jne 0x30012967 */ 22166 L_300128A2: 22167 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128A2: mov byte ptr [ecx + 0x14], 0 */ 22168 ecx = MEM32(edi + 0x4); /* 0x300128A6: mov ecx, dword ptr [edi + 4] */ 22169 eax = MEM32(eax + 0x4); /* 0x300128A9: mov eax, dword ptr [eax + 4] */ 22170 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300128AC: cmp eax, dword ptr [ecx + 4] */ 22171 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 22172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22173 _flag_k = FK_CMP; 22174 RECOMP_BACKEDGE(); 22175 if (CMP_NE(_flag_a, _flag_b)) goto L_300127B8; /* 0x300128AF: jne 0x300127b8 */ 22176 L_300128B5: 22177 goto L_30012A06; /* 0x300128B5: jmp 0x30012a06 */ 22178 L_300128BA: 22179 edx = MEM32(ecx + 0x8); /* 0x300128BA: mov edx, dword ptr [ecx + 8] */ 22180 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x300128BD: cmp byte ptr [edx + 0x14], bl */ 22181 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22183 _flag_k = FK_NARROW(FK_CMP, 24); 22184 if (CMP_NE(_flag_a, _flag_b)) goto L_3001290B; /* 0x300128C0: jne 0x3001290b */ 22185 L_300128C2: 22186 edx = MEM32(ecx); /* 0x300128C2: mov edx, dword ptr [ecx] */ 22187 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300128C4: mov byte ptr [edx + 0x14], bl */ 22188 edx = MEM32(ecx); /* 0x300128C7: mov edx, dword ptr [ecx] */ 22189 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128C9: mov byte ptr [ecx + 0x14], 0 */ 22190 esi = MEM32(edx + 0x8); /* 0x300128CD: mov esi, dword ptr [edx + 8] */ 22191 MEM32(ecx) = esi; /* 0x300128D0: mov dword ptr [ecx], esi */ 22192 esi = MEM32(edx + 0x8); /* 0x300128D2: mov esi, dword ptr [edx + 8] */ 22193 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300128D5: cmp esi, dword ptr [edi + 8] */ 22194 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22196 _flag_k = FK_CMP; 22197 if (CMP_EQ(_flag_a, _flag_b)) goto L_300128DD; /* 0x300128D8: je 0x300128dd */ 22198 L_300128DA: 22199 MEM32(esi + 0x4) = ecx; /* 0x300128DA: mov dword ptr [esi + 4], ecx */ 22200 L_300128DD: 22201 esi = MEM32(ecx + 0x4); /* 0x300128DD: mov esi, dword ptr [ecx + 4] */ 22202 MEM32(edx + 0x4) = esi; /* 0x300128E0: mov dword ptr [edx + 4], esi */ 22203 esi = MEM32(edi + 0x4); /* 0x300128E3: mov esi, dword ptr [edi + 4] */ 22204 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300128E6: cmp ecx, dword ptr [esi + 4] */ 22205 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22207 _flag_k = FK_CMP; 22208 if (CMP_NE(_flag_a, _flag_b)) goto L_300128F0; /* 0x300128E9: jne 0x300128f0 */ 22209 L_300128EB: 22210 MEM32(esi + 0x4) = edx; /* 0x300128EB: mov dword ptr [esi + 4], edx */ 22211 goto L_300128FF; /* 0x300128EE: jmp 0x300128ff */ 22212 L_300128F0: 22213 esi = MEM32(ecx + 0x4); /* 0x300128F0: mov esi, dword ptr [ecx + 4] */ 22214 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300128F3: cmp ecx, dword ptr [esi + 8] */ 22215 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 22216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22217 _flag_k = FK_CMP; 22218 if (CMP_NE(_flag_a, _flag_b)) goto L_300128FD; /* 0x300128F6: jne 0x300128fd */ 22219 L_300128F8: 22220 MEM32(esi + 0x8) = edx; /* 0x300128F8: mov dword ptr [esi + 8], edx */ 22221 goto L_300128FF; /* 0x300128FB: jmp 0x300128ff */ 22222 L_300128FD: 22223 MEM32(esi) = edx; /* 0x300128FD: mov dword ptr [esi], edx */ 22224 L_300128FF: 22225 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 22226 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 22227 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 22228 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 22229 L_3001290B: 22230 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 22231 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 22232 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 22233 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 22234 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 22235 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 22236 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 22237 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 22238 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 22239 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 22240 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 22241 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 22242 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 22243 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22245 _flag_k = FK_CMP; 22246 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 22247 L_30012932: 22248 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 22249 L_30012935: 22250 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 22251 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 22252 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 22253 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 22254 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22256 _flag_k = FK_CMP; 22257 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 22258 L_30012943: 22259 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 22260 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 22261 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 22262 L_3001294D: 22263 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 22264 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 22265 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 22266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22267 _flag_k = FK_CMP; 22268 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 22269 L_30012954: 22270 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 22271 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 22272 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 22273 L_3001295D: 22274 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 22275 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 22276 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 22277 L_30012967: 22278 edx = MEM32(ecx); /* 0x30012967: mov edx, dword ptr [ecx] */ 22279 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012969: cmp byte ptr [edx + 0x14], bl */ 22280 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22282 _flag_k = FK_NARROW(FK_CMP, 24); 22283 if (CMP_NE(_flag_a, _flag_b)) goto L_300129B5; /* 0x3001296C: jne 0x300129b5 */ 22284 L_3001296E: 22285 edx = MEM32(ecx + 0x8); /* 0x3001296E: mov edx, dword ptr [ecx + 8] */ 22286 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012971: mov byte ptr [edx + 0x14], bl */ 22287 edx = MEM32(ecx + 0x8); /* 0x30012974: mov edx, dword ptr [ecx + 8] */ 22288 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012977: mov byte ptr [ecx + 0x14], 0 */ 22289 esi = MEM32(edx); /* 0x3001297B: mov esi, dword ptr [edx] */ 22290 MEM32(ecx + 0x8) = esi; /* 0x3001297D: mov dword ptr [ecx + 8], esi */ 22291 esi = MEM32(edx); /* 0x30012980: mov esi, dword ptr [edx] */ 22292 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012982: cmp esi, dword ptr [edi + 8] */ 22293 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22295 _flag_k = FK_CMP; 22296 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001298A; /* 0x30012985: je 0x3001298a */ 22297 L_30012987: 22298 MEM32(esi + 0x4) = ecx; /* 0x30012987: mov dword ptr [esi + 4], ecx */ 22299 L_3001298A: 22300 esi = MEM32(ecx + 0x4); /* 0x3001298A: mov esi, dword ptr [ecx + 4] */ 22301 MEM32(edx + 0x4) = esi; /* 0x3001298D: mov dword ptr [edx + 4], esi */ 22302 esi = MEM32(edi + 0x4); /* 0x30012990: mov esi, dword ptr [edi + 4] */ 22303 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012993: cmp ecx, dword ptr [esi + 4] */ 22304 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22306 _flag_k = FK_CMP; 22307 if (CMP_NE(_flag_a, _flag_b)) goto L_3001299D; /* 0x30012996: jne 0x3001299d */ 22308 L_30012998: 22309 MEM32(esi + 0x4) = edx; /* 0x30012998: mov dword ptr [esi + 4], edx */ 22310 goto L_300129AB; /* 0x3001299B: jmp 0x300129ab */ 22311 L_3001299D: 22312 esi = MEM32(ecx + 0x4); /* 0x3001299D: mov esi, dword ptr [ecx + 4] */ 22313 /* cmp ecx, MEM32(esi) */ /* 0x300129A0: cmp ecx, dword ptr [esi] */ 22314 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 22315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22316 _flag_k = FK_CMP; 22317 if (CMP_NE(_flag_a, _flag_b)) goto L_300129A8; /* 0x300129A2: jne 0x300129a8 */ 22318 L_300129A4: 22319 MEM32(esi) = edx; /* 0x300129A4: mov dword ptr [esi], edx */ 22320 goto L_300129AB; /* 0x300129A6: jmp 0x300129ab */ 22321 L_300129A8: 22322 MEM32(esi + 0x8) = edx; /* 0x300129A8: mov dword ptr [esi + 8], edx */ 22323 L_300129AB: 22324 MEM32(edx) = ecx; /* 0x300129AB: mov dword ptr [edx], ecx */ 22325 MEM32(ecx + 0x4) = edx; /* 0x300129AD: mov dword ptr [ecx + 4], edx */ 22326 ecx = MEM32(eax + 0x4); /* 0x300129B0: mov ecx, dword ptr [eax + 4] */ 22327 ecx = MEM32(ecx); /* 0x300129B3: mov ecx, dword ptr [ecx] */ 22328 L_300129B5: 22329 edx = MEM32(eax + 0x4); /* 0x300129B5: mov edx, dword ptr [eax + 4] */ 22330 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x300129B8: mov dl, byte ptr [edx + 0x14] */ 22331 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x300129BB: mov byte ptr [ecx + 0x14], dl */ 22332 edx = MEM32(eax + 0x4); /* 0x300129BE: mov edx, dword ptr [eax + 4] */ 22333 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C1: mov byte ptr [edx + 0x14], bl */ 22334 ecx = MEM32(ecx); /* 0x300129C4: mov ecx, dword ptr [ecx] */ 22335 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C6: mov byte ptr [ecx + 0x14], bl */ 22336 ecx = MEM32(eax + 0x4); /* 0x300129C9: mov ecx, dword ptr [eax + 4] */ 22337 edx = MEM32(ecx); /* 0x300129CC: mov edx, dword ptr [ecx] */ 22338 esi = MEM32(edx + 0x8); /* 0x300129CE: mov esi, dword ptr [edx + 8] */ 22339 MEM32(ecx) = esi; /* 0x300129D1: mov dword ptr [ecx], esi */ 22340 esi = MEM32(edx + 0x8); /* 0x300129D3: mov esi, dword ptr [edx + 8] */ 22341 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300129D6: cmp esi, dword ptr [edi + 8] */ 22342 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22344 _flag_k = FK_CMP; 22345 if (CMP_EQ(_flag_a, _flag_b)) goto L_300129DE; /* 0x300129D9: je 0x300129de */ 22346 L_300129DB: 22347 MEM32(esi + 0x4) = ecx; /* 0x300129DB: mov dword ptr [esi + 4], ecx */ 22348 L_300129DE: 22349 esi = MEM32(ecx + 0x4); /* 0x300129DE: mov esi, dword ptr [ecx + 4] */ 22350 MEM32(edx + 0x4) = esi; /* 0x300129E1: mov dword ptr [edx + 4], esi */ 22351 esi = MEM32(edi + 0x4); /* 0x300129E4: mov esi, dword ptr [edi + 4] */ 22352 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300129E7: cmp ecx, dword ptr [esi + 4] */ 22353 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22355 _flag_k = FK_CMP; 22356 if (CMP_NE(_flag_a, _flag_b)) goto L_300129F1; /* 0x300129EA: jne 0x300129f1 */ 22357 L_300129EC: 22358 MEM32(esi + 0x4) = edx; /* 0x300129EC: mov dword ptr [esi + 4], edx */ 22359 goto L_30012A00; /* 0x300129EF: jmp 0x30012a00 */ 22360 L_300129F1: 22361 esi = MEM32(ecx + 0x4); /* 0x300129F1: mov esi, dword ptr [ecx + 4] */ 22362 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300129F4: cmp ecx, dword ptr [esi + 8] */ 22363 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 22364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22365 _flag_k = FK_CMP; 22366 if (CMP_NE(_flag_a, _flag_b)) goto L_300129FE; /* 0x300129F7: jne 0x300129fe */ 22367 L_300129F9: 22368 MEM32(esi + 0x8) = edx; /* 0x300129F9: mov dword ptr [esi + 8], edx */ 22369 goto L_30012A00; /* 0x300129FC: jmp 0x30012a00 */ 22370 L_300129FE: 22371 MEM32(esi) = edx; /* 0x300129FE: mov dword ptr [esi], edx */ 22372 L_30012A00: 22373 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 22374 L_30012A03: 22375 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 22376 L_30012A06: 22377 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 22378 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 22379 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 22380 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 22381 RECOMP_FLAGS_IN(); 22382 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 22383 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 22384 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 22385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22386 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 22387 _flag_k = FK_ADD; 22388 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 22389 eax = eax - 1; /* 0x30012A1B: dec eax */ 22390 _flag_k = FK_DEC; 22391 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 22392 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 22393 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 22394 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 22395 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 22396 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 22397 esp = ebp; /* 0x30012A27: mov esp, ebp */ 22398 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 22399 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 22400 RECOMP_REGS_OUT(); 22401 } 22402 22403 void sub_3001288B(void) { 22404 int _fpu_cmp = 0; 22405 uint32_t _cf = 0; 22406 int _df = 1; 22407 uint32_t _flag_k = FK_NONE; 22408 uint32_t _flag_a = 0, _flag_b = 0; 22409 uint32_t _itail_tgt = 0; 22410 RECOMP_REGS_LOCALS 22411 RECOMP_ENTER(0x3001288Bu); 22412 22413 goto L_3001288B; 22414 L_300127B8: 22415 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x300127B8: cmp byte ptr [eax + 0x14], bl */ 22416 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22418 _flag_k = FK_NARROW(FK_CMP, 24); 22419 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127BB: jne 0x30012a06 */ 22420 L_300127C1: 22421 edx = MEM32(eax + 0x4); /* 0x300127C1: mov edx, dword ptr [eax + 4] */ 22422 ecx = MEM32(edx); /* 0x300127C4: mov ecx, dword ptr [edx] */ 22423 /* cmp eax, ecx */ /* 0x300127C6: cmp eax, ecx */ 22424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 22425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22426 _flag_k = FK_CMP; 22427 if (CMP_NE(_flag_a, _flag_b)) goto L_30012838; /* 0x300127C8: jne 0x30012838 */ 22428 L_300127CA: 22429 ecx = MEM32(edx + 0x8); /* 0x300127CA: mov ecx, dword ptr [edx + 8] */ 22430 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x300127CD: mov dl, byte ptr [ecx + 0x14] */ 22431 /* test LO8(edx), LO8(edx) */ /* 0x300127D0: test dl, dl */ 22432 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 22433 _cf = 0; 22434 _flag_k = FK_NARROW(FK_TEST, 24); 22435 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001281F; /* 0x300127D2: jne 0x3001281f */ 22436 L_300127D4: 22437 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300127D4: mov byte ptr [ecx + 0x14], bl */ 22438 ecx = MEM32(eax + 0x4); /* 0x300127D7: mov ecx, dword ptr [eax + 4] */ 22439 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300127DA: mov byte ptr [ecx + 0x14], 0 */ 22440 ecx = MEM32(eax + 0x4); /* 0x300127DE: mov ecx, dword ptr [eax + 4] */ 22441 edx = MEM32(ecx + 0x8); /* 0x300127E1: mov edx, dword ptr [ecx + 8] */ 22442 esi = MEM32(edx); /* 0x300127E4: mov esi, dword ptr [edx] */ 22443 MEM32(ecx + 0x8) = esi; /* 0x300127E6: mov dword ptr [ecx + 8], esi */ 22444 esi = MEM32(edx); /* 0x300127E9: mov esi, dword ptr [edx] */ 22445 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300127EB: cmp esi, dword ptr [edi + 8] */ 22446 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22448 _flag_k = FK_CMP; 22449 if (CMP_EQ(_flag_a, _flag_b)) goto L_300127F3; /* 0x300127EE: je 0x300127f3 */ 22450 L_300127F0: 22451 MEM32(esi + 0x4) = ecx; /* 0x300127F0: mov dword ptr [esi + 4], ecx */ 22452 L_300127F3: 22453 esi = MEM32(ecx + 0x4); /* 0x300127F3: mov esi, dword ptr [ecx + 4] */ 22454 MEM32(edx + 0x4) = esi; /* 0x300127F6: mov dword ptr [edx + 4], esi */ 22455 esi = MEM32(edi + 0x4); /* 0x300127F9: mov esi, dword ptr [edi + 4] */ 22456 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300127FC: cmp ecx, dword ptr [esi + 4] */ 22457 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22459 _flag_k = FK_CMP; 22460 if (CMP_NE(_flag_a, _flag_b)) goto L_30012806; /* 0x300127FF: jne 0x30012806 */ 22461 L_30012801: 22462 MEM32(esi + 0x4) = edx; /* 0x30012801: mov dword ptr [esi + 4], edx */ 22463 goto L_30012814; /* 0x30012804: jmp 0x30012814 */ 22464 L_30012806: 22465 esi = MEM32(ecx + 0x4); /* 0x30012806: mov esi, dword ptr [ecx + 4] */ 22466 /* cmp ecx, MEM32(esi) */ /* 0x30012809: cmp ecx, dword ptr [esi] */ 22467 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 22468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22469 _flag_k = FK_CMP; 22470 if (CMP_NE(_flag_a, _flag_b)) goto L_30012811; /* 0x3001280B: jne 0x30012811 */ 22471 L_3001280D: 22472 MEM32(esi) = edx; /* 0x3001280D: mov dword ptr [esi], edx */ 22473 goto L_30012814; /* 0x3001280F: jmp 0x30012814 */ 22474 L_30012811: 22475 MEM32(esi + 0x8) = edx; /* 0x30012811: mov dword ptr [esi + 8], edx */ 22476 L_30012814: 22477 MEM32(edx) = ecx; /* 0x30012814: mov dword ptr [edx], ecx */ 22478 MEM32(ecx + 0x4) = edx; /* 0x30012816: mov dword ptr [ecx + 4], edx */ 22479 edx = MEM32(eax + 0x4); /* 0x30012819: mov edx, dword ptr [eax + 4] */ 22480 ecx = MEM32(edx + 0x8); /* 0x3001281C: mov ecx, dword ptr [edx + 8] */ 22481 L_3001281F: 22482 edx = MEM32(ecx); /* 0x3001281F: mov edx, dword ptr [ecx] */ 22483 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012821: cmp byte ptr [edx + 0x14], bl */ 22484 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22486 _flag_k = FK_NARROW(FK_CMP, 24); 22487 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012824: jne 0x300128ba */ 22488 L_3001282A: 22489 edx = MEM32(ecx + 0x8); /* 0x3001282A: mov edx, dword ptr [ecx + 8] */ 22490 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001282D: cmp byte ptr [edx + 0x14], bl */ 22491 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22493 _flag_k = FK_NARROW(FK_CMP, 24); 22494 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012830: jne 0x300128ba */ 22495 L_30012836: 22496 goto L_300128A2; /* 0x30012836: jmp 0x300128a2 */ 22497 L_30012838: 22498 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x30012838: mov dl, byte ptr [ecx + 0x14] */ 22499 /* test LO8(edx), LO8(edx) */ /* 0x3001283B: test dl, dl */ 22500 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 22501 _cf = 0; 22502 _flag_k = FK_NARROW(FK_TEST, 24); 22503 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001288B; /* 0x3001283D: jne 0x3001288b */ 22504 L_3001283F: 22505 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001283F: mov byte ptr [ecx + 0x14], bl */ 22506 ecx = MEM32(eax + 0x4); /* 0x30012842: mov ecx, dword ptr [eax + 4] */ 22507 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012845: mov byte ptr [ecx + 0x14], 0 */ 22508 ecx = MEM32(eax + 0x4); /* 0x30012849: mov ecx, dword ptr [eax + 4] */ 22509 edx = MEM32(ecx); /* 0x3001284C: mov edx, dword ptr [ecx] */ 22510 esi = MEM32(edx + 0x8); /* 0x3001284E: mov esi, dword ptr [edx + 8] */ 22511 MEM32(ecx) = esi; /* 0x30012851: mov dword ptr [ecx], esi */ 22512 esi = MEM32(edx + 0x8); /* 0x30012853: mov esi, dword ptr [edx + 8] */ 22513 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012856: cmp esi, dword ptr [edi + 8] */ 22514 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22516 _flag_k = FK_CMP; 22517 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001285E; /* 0x30012859: je 0x3001285e */ 22518 L_3001285B: 22519 MEM32(esi + 0x4) = ecx; /* 0x3001285B: mov dword ptr [esi + 4], ecx */ 22520 L_3001285E: 22521 esi = MEM32(ecx + 0x4); /* 0x3001285E: mov esi, dword ptr [ecx + 4] */ 22522 MEM32(edx + 0x4) = esi; /* 0x30012861: mov dword ptr [edx + 4], esi */ 22523 esi = MEM32(edi + 0x4); /* 0x30012864: mov esi, dword ptr [edi + 4] */ 22524 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012867: cmp ecx, dword ptr [esi + 4] */ 22525 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22527 _flag_k = FK_CMP; 22528 if (CMP_NE(_flag_a, _flag_b)) goto L_30012871; /* 0x3001286A: jne 0x30012871 */ 22529 L_3001286C: 22530 MEM32(esi + 0x4) = edx; /* 0x3001286C: mov dword ptr [esi + 4], edx */ 22531 goto L_30012880; /* 0x3001286F: jmp 0x30012880 */ 22532 L_30012871: 22533 esi = MEM32(ecx + 0x4); /* 0x30012871: mov esi, dword ptr [ecx + 4] */ 22534 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012874: cmp ecx, dword ptr [esi + 8] */ 22535 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 22536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22537 _flag_k = FK_CMP; 22538 if (CMP_NE(_flag_a, _flag_b)) goto L_3001287E; /* 0x30012877: jne 0x3001287e */ 22539 L_30012879: 22540 MEM32(esi + 0x8) = edx; /* 0x30012879: mov dword ptr [esi + 8], edx */ 22541 goto L_30012880; /* 0x3001287C: jmp 0x30012880 */ 22542 L_3001287E: 22543 MEM32(esi) = edx; /* 0x3001287E: mov dword ptr [esi], edx */ 22544 L_30012880: 22545 MEM32(edx + 0x8) = ecx; /* 0x30012880: mov dword ptr [edx + 8], ecx */ 22546 MEM32(ecx + 0x4) = edx; /* 0x30012883: mov dword ptr [ecx + 4], edx */ 22547 edx = MEM32(eax + 0x4); /* 0x30012886: mov edx, dword ptr [eax + 4] */ 22548 ecx = MEM32(edx); /* 0x30012889: mov ecx, dword ptr [edx] */ 22549 L_3001288B: 22550 edx = MEM32(ecx + 0x8); /* 0x3001288B: mov edx, dword ptr [ecx + 8] */ 22551 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001288E: cmp byte ptr [edx + 0x14], bl */ 22552 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22554 _flag_k = FK_NARROW(FK_CMP, 24); 22555 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x30012891: jne 0x30012967 */ 22556 L_30012897: 22557 edx = MEM32(ecx); /* 0x30012897: mov edx, dword ptr [ecx] */ 22558 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012899: cmp byte ptr [edx + 0x14], bl */ 22559 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22561 _flag_k = FK_NARROW(FK_CMP, 24); 22562 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x3001289C: jne 0x30012967 */ 22563 L_300128A2: 22564 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128A2: mov byte ptr [ecx + 0x14], 0 */ 22565 ecx = MEM32(edi + 0x4); /* 0x300128A6: mov ecx, dword ptr [edi + 4] */ 22566 eax = MEM32(eax + 0x4); /* 0x300128A9: mov eax, dword ptr [eax + 4] */ 22567 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300128AC: cmp eax, dword ptr [ecx + 4] */ 22568 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 22569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22570 _flag_k = FK_CMP; 22571 RECOMP_BACKEDGE(); 22572 if (CMP_NE(_flag_a, _flag_b)) goto L_300127B8; /* 0x300128AF: jne 0x300127b8 */ 22573 L_300128B5: 22574 goto L_30012A06; /* 0x300128B5: jmp 0x30012a06 */ 22575 L_300128BA: 22576 edx = MEM32(ecx + 0x8); /* 0x300128BA: mov edx, dword ptr [ecx + 8] */ 22577 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x300128BD: cmp byte ptr [edx + 0x14], bl */ 22578 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22580 _flag_k = FK_NARROW(FK_CMP, 24); 22581 if (CMP_NE(_flag_a, _flag_b)) goto L_3001290B; /* 0x300128C0: jne 0x3001290b */ 22582 L_300128C2: 22583 edx = MEM32(ecx); /* 0x300128C2: mov edx, dword ptr [ecx] */ 22584 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300128C4: mov byte ptr [edx + 0x14], bl */ 22585 edx = MEM32(ecx); /* 0x300128C7: mov edx, dword ptr [ecx] */ 22586 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128C9: mov byte ptr [ecx + 0x14], 0 */ 22587 esi = MEM32(edx + 0x8); /* 0x300128CD: mov esi, dword ptr [edx + 8] */ 22588 MEM32(ecx) = esi; /* 0x300128D0: mov dword ptr [ecx], esi */ 22589 esi = MEM32(edx + 0x8); /* 0x300128D2: mov esi, dword ptr [edx + 8] */ 22590 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300128D5: cmp esi, dword ptr [edi + 8] */ 22591 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22593 _flag_k = FK_CMP; 22594 if (CMP_EQ(_flag_a, _flag_b)) goto L_300128DD; /* 0x300128D8: je 0x300128dd */ 22595 L_300128DA: 22596 MEM32(esi + 0x4) = ecx; /* 0x300128DA: mov dword ptr [esi + 4], ecx */ 22597 L_300128DD: 22598 esi = MEM32(ecx + 0x4); /* 0x300128DD: mov esi, dword ptr [ecx + 4] */ 22599 MEM32(edx + 0x4) = esi; /* 0x300128E0: mov dword ptr [edx + 4], esi */ 22600 esi = MEM32(edi + 0x4); /* 0x300128E3: mov esi, dword ptr [edi + 4] */ 22601 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300128E6: cmp ecx, dword ptr [esi + 4] */ 22602 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22604 _flag_k = FK_CMP; 22605 if (CMP_NE(_flag_a, _flag_b)) goto L_300128F0; /* 0x300128E9: jne 0x300128f0 */ 22606 L_300128EB: 22607 MEM32(esi + 0x4) = edx; /* 0x300128EB: mov dword ptr [esi + 4], edx */ 22608 goto L_300128FF; /* 0x300128EE: jmp 0x300128ff */ 22609 L_300128F0: 22610 esi = MEM32(ecx + 0x4); /* 0x300128F0: mov esi, dword ptr [ecx + 4] */ 22611 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300128F3: cmp ecx, dword ptr [esi + 8] */ 22612 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 22613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22614 _flag_k = FK_CMP; 22615 if (CMP_NE(_flag_a, _flag_b)) goto L_300128FD; /* 0x300128F6: jne 0x300128fd */ 22616 L_300128F8: 22617 MEM32(esi + 0x8) = edx; /* 0x300128F8: mov dword ptr [esi + 8], edx */ 22618 goto L_300128FF; /* 0x300128FB: jmp 0x300128ff */ 22619 L_300128FD: 22620 MEM32(esi) = edx; /* 0x300128FD: mov dword ptr [esi], edx */ 22621 L_300128FF: 22622 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 22623 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 22624 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 22625 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 22626 L_3001290B: 22627 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 22628 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 22629 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 22630 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 22631 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 22632 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 22633 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 22634 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 22635 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 22636 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 22637 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 22638 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 22639 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 22640 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22642 _flag_k = FK_CMP; 22643 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 22644 L_30012932: 22645 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 22646 L_30012935: 22647 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 22648 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 22649 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 22650 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 22651 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22653 _flag_k = FK_CMP; 22654 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 22655 L_30012943: 22656 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 22657 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 22658 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 22659 L_3001294D: 22660 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 22661 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 22662 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 22663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22664 _flag_k = FK_CMP; 22665 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 22666 L_30012954: 22667 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 22668 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 22669 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 22670 L_3001295D: 22671 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 22672 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 22673 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 22674 L_30012967: 22675 edx = MEM32(ecx); /* 0x30012967: mov edx, dword ptr [ecx] */ 22676 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012969: cmp byte ptr [edx + 0x14], bl */ 22677 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22679 _flag_k = FK_NARROW(FK_CMP, 24); 22680 if (CMP_NE(_flag_a, _flag_b)) goto L_300129B5; /* 0x3001296C: jne 0x300129b5 */ 22681 L_3001296E: 22682 edx = MEM32(ecx + 0x8); /* 0x3001296E: mov edx, dword ptr [ecx + 8] */ 22683 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012971: mov byte ptr [edx + 0x14], bl */ 22684 edx = MEM32(ecx + 0x8); /* 0x30012974: mov edx, dword ptr [ecx + 8] */ 22685 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012977: mov byte ptr [ecx + 0x14], 0 */ 22686 esi = MEM32(edx); /* 0x3001297B: mov esi, dword ptr [edx] */ 22687 MEM32(ecx + 0x8) = esi; /* 0x3001297D: mov dword ptr [ecx + 8], esi */ 22688 esi = MEM32(edx); /* 0x30012980: mov esi, dword ptr [edx] */ 22689 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012982: cmp esi, dword ptr [edi + 8] */ 22690 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22692 _flag_k = FK_CMP; 22693 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001298A; /* 0x30012985: je 0x3001298a */ 22694 L_30012987: 22695 MEM32(esi + 0x4) = ecx; /* 0x30012987: mov dword ptr [esi + 4], ecx */ 22696 L_3001298A: 22697 esi = MEM32(ecx + 0x4); /* 0x3001298A: mov esi, dword ptr [ecx + 4] */ 22698 MEM32(edx + 0x4) = esi; /* 0x3001298D: mov dword ptr [edx + 4], esi */ 22699 esi = MEM32(edi + 0x4); /* 0x30012990: mov esi, dword ptr [edi + 4] */ 22700 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012993: cmp ecx, dword ptr [esi + 4] */ 22701 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22703 _flag_k = FK_CMP; 22704 if (CMP_NE(_flag_a, _flag_b)) goto L_3001299D; /* 0x30012996: jne 0x3001299d */ 22705 L_30012998: 22706 MEM32(esi + 0x4) = edx; /* 0x30012998: mov dword ptr [esi + 4], edx */ 22707 goto L_300129AB; /* 0x3001299B: jmp 0x300129ab */ 22708 L_3001299D: 22709 esi = MEM32(ecx + 0x4); /* 0x3001299D: mov esi, dword ptr [ecx + 4] */ 22710 /* cmp ecx, MEM32(esi) */ /* 0x300129A0: cmp ecx, dword ptr [esi] */ 22711 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 22712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22713 _flag_k = FK_CMP; 22714 if (CMP_NE(_flag_a, _flag_b)) goto L_300129A8; /* 0x300129A2: jne 0x300129a8 */ 22715 L_300129A4: 22716 MEM32(esi) = edx; /* 0x300129A4: mov dword ptr [esi], edx */ 22717 goto L_300129AB; /* 0x300129A6: jmp 0x300129ab */ 22718 L_300129A8: 22719 MEM32(esi + 0x8) = edx; /* 0x300129A8: mov dword ptr [esi + 8], edx */ 22720 L_300129AB: 22721 MEM32(edx) = ecx; /* 0x300129AB: mov dword ptr [edx], ecx */ 22722 MEM32(ecx + 0x4) = edx; /* 0x300129AD: mov dword ptr [ecx + 4], edx */ 22723 ecx = MEM32(eax + 0x4); /* 0x300129B0: mov ecx, dword ptr [eax + 4] */ 22724 ecx = MEM32(ecx); /* 0x300129B3: mov ecx, dword ptr [ecx] */ 22725 L_300129B5: 22726 edx = MEM32(eax + 0x4); /* 0x300129B5: mov edx, dword ptr [eax + 4] */ 22727 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x300129B8: mov dl, byte ptr [edx + 0x14] */ 22728 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x300129BB: mov byte ptr [ecx + 0x14], dl */ 22729 edx = MEM32(eax + 0x4); /* 0x300129BE: mov edx, dword ptr [eax + 4] */ 22730 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C1: mov byte ptr [edx + 0x14], bl */ 22731 ecx = MEM32(ecx); /* 0x300129C4: mov ecx, dword ptr [ecx] */ 22732 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C6: mov byte ptr [ecx + 0x14], bl */ 22733 ecx = MEM32(eax + 0x4); /* 0x300129C9: mov ecx, dword ptr [eax + 4] */ 22734 edx = MEM32(ecx); /* 0x300129CC: mov edx, dword ptr [ecx] */ 22735 esi = MEM32(edx + 0x8); /* 0x300129CE: mov esi, dword ptr [edx + 8] */ 22736 MEM32(ecx) = esi; /* 0x300129D1: mov dword ptr [ecx], esi */ 22737 esi = MEM32(edx + 0x8); /* 0x300129D3: mov esi, dword ptr [edx + 8] */ 22738 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300129D6: cmp esi, dword ptr [edi + 8] */ 22739 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22741 _flag_k = FK_CMP; 22742 if (CMP_EQ(_flag_a, _flag_b)) goto L_300129DE; /* 0x300129D9: je 0x300129de */ 22743 L_300129DB: 22744 MEM32(esi + 0x4) = ecx; /* 0x300129DB: mov dword ptr [esi + 4], ecx */ 22745 L_300129DE: 22746 esi = MEM32(ecx + 0x4); /* 0x300129DE: mov esi, dword ptr [ecx + 4] */ 22747 MEM32(edx + 0x4) = esi; /* 0x300129E1: mov dword ptr [edx + 4], esi */ 22748 esi = MEM32(edi + 0x4); /* 0x300129E4: mov esi, dword ptr [edi + 4] */ 22749 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300129E7: cmp ecx, dword ptr [esi + 4] */ 22750 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22752 _flag_k = FK_CMP; 22753 if (CMP_NE(_flag_a, _flag_b)) goto L_300129F1; /* 0x300129EA: jne 0x300129f1 */ 22754 L_300129EC: 22755 MEM32(esi + 0x4) = edx; /* 0x300129EC: mov dword ptr [esi + 4], edx */ 22756 goto L_30012A00; /* 0x300129EF: jmp 0x30012a00 */ 22757 L_300129F1: 22758 esi = MEM32(ecx + 0x4); /* 0x300129F1: mov esi, dword ptr [ecx + 4] */ 22759 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300129F4: cmp ecx, dword ptr [esi + 8] */ 22760 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 22761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22762 _flag_k = FK_CMP; 22763 if (CMP_NE(_flag_a, _flag_b)) goto L_300129FE; /* 0x300129F7: jne 0x300129fe */ 22764 L_300129F9: 22765 MEM32(esi + 0x8) = edx; /* 0x300129F9: mov dword ptr [esi + 8], edx */ 22766 goto L_30012A00; /* 0x300129FC: jmp 0x30012a00 */ 22767 L_300129FE: 22768 MEM32(esi) = edx; /* 0x300129FE: mov dword ptr [esi], edx */ 22769 L_30012A00: 22770 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 22771 L_30012A03: 22772 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 22773 L_30012A06: 22774 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 22775 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 22776 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 22777 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 22778 RECOMP_FLAGS_IN(); 22779 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 22780 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 22781 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 22782 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22783 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 22784 _flag_k = FK_ADD; 22785 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 22786 eax = eax - 1; /* 0x30012A1B: dec eax */ 22787 _flag_k = FK_DEC; 22788 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 22789 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 22790 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 22791 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 22792 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 22793 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 22794 esp = ebp; /* 0x30012A27: mov esp, ebp */ 22795 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 22796 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 22797 RECOMP_REGS_OUT(); 22798 } 22799 22800 void sub_300128A2(void) { 22801 int _fpu_cmp = 0; 22802 uint32_t _cf = 0; 22803 int _df = 1; 22804 uint32_t _flag_k = FK_NONE; 22805 uint32_t _flag_a = 0, _flag_b = 0; 22806 uint32_t _itail_tgt = 0; 22807 RECOMP_REGS_LOCALS 22808 RECOMP_ENTER(0x300128A2u); 22809 22810 goto L_300128A2; 22811 L_300127B8: 22812 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x300127B8: cmp byte ptr [eax + 0x14], bl */ 22813 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22815 _flag_k = FK_NARROW(FK_CMP, 24); 22816 if (CMP_NE(_flag_a, _flag_b)) goto L_30012A06; /* 0x300127BB: jne 0x30012a06 */ 22817 L_300127C1: 22818 edx = MEM32(eax + 0x4); /* 0x300127C1: mov edx, dword ptr [eax + 4] */ 22819 ecx = MEM32(edx); /* 0x300127C4: mov ecx, dword ptr [edx] */ 22820 /* cmp eax, ecx */ /* 0x300127C6: cmp eax, ecx */ 22821 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 22822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22823 _flag_k = FK_CMP; 22824 if (CMP_NE(_flag_a, _flag_b)) goto L_30012838; /* 0x300127C8: jne 0x30012838 */ 22825 L_300127CA: 22826 ecx = MEM32(edx + 0x8); /* 0x300127CA: mov ecx, dword ptr [edx + 8] */ 22827 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x300127CD: mov dl, byte ptr [ecx + 0x14] */ 22828 /* test LO8(edx), LO8(edx) */ /* 0x300127D0: test dl, dl */ 22829 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 22830 _cf = 0; 22831 _flag_k = FK_NARROW(FK_TEST, 24); 22832 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001281F; /* 0x300127D2: jne 0x3001281f */ 22833 L_300127D4: 22834 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300127D4: mov byte ptr [ecx + 0x14], bl */ 22835 ecx = MEM32(eax + 0x4); /* 0x300127D7: mov ecx, dword ptr [eax + 4] */ 22836 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300127DA: mov byte ptr [ecx + 0x14], 0 */ 22837 ecx = MEM32(eax + 0x4); /* 0x300127DE: mov ecx, dword ptr [eax + 4] */ 22838 edx = MEM32(ecx + 0x8); /* 0x300127E1: mov edx, dword ptr [ecx + 8] */ 22839 esi = MEM32(edx); /* 0x300127E4: mov esi, dword ptr [edx] */ 22840 MEM32(ecx + 0x8) = esi; /* 0x300127E6: mov dword ptr [ecx + 8], esi */ 22841 esi = MEM32(edx); /* 0x300127E9: mov esi, dword ptr [edx] */ 22842 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300127EB: cmp esi, dword ptr [edi + 8] */ 22843 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22845 _flag_k = FK_CMP; 22846 if (CMP_EQ(_flag_a, _flag_b)) goto L_300127F3; /* 0x300127EE: je 0x300127f3 */ 22847 L_300127F0: 22848 MEM32(esi + 0x4) = ecx; /* 0x300127F0: mov dword ptr [esi + 4], ecx */ 22849 L_300127F3: 22850 esi = MEM32(ecx + 0x4); /* 0x300127F3: mov esi, dword ptr [ecx + 4] */ 22851 MEM32(edx + 0x4) = esi; /* 0x300127F6: mov dword ptr [edx + 4], esi */ 22852 esi = MEM32(edi + 0x4); /* 0x300127F9: mov esi, dword ptr [edi + 4] */ 22853 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300127FC: cmp ecx, dword ptr [esi + 4] */ 22854 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22856 _flag_k = FK_CMP; 22857 if (CMP_NE(_flag_a, _flag_b)) goto L_30012806; /* 0x300127FF: jne 0x30012806 */ 22858 L_30012801: 22859 MEM32(esi + 0x4) = edx; /* 0x30012801: mov dword ptr [esi + 4], edx */ 22860 goto L_30012814; /* 0x30012804: jmp 0x30012814 */ 22861 L_30012806: 22862 esi = MEM32(ecx + 0x4); /* 0x30012806: mov esi, dword ptr [ecx + 4] */ 22863 /* cmp ecx, MEM32(esi) */ /* 0x30012809: cmp ecx, dword ptr [esi] */ 22864 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 22865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22866 _flag_k = FK_CMP; 22867 if (CMP_NE(_flag_a, _flag_b)) goto L_30012811; /* 0x3001280B: jne 0x30012811 */ 22868 L_3001280D: 22869 MEM32(esi) = edx; /* 0x3001280D: mov dword ptr [esi], edx */ 22870 goto L_30012814; /* 0x3001280F: jmp 0x30012814 */ 22871 L_30012811: 22872 MEM32(esi + 0x8) = edx; /* 0x30012811: mov dword ptr [esi + 8], edx */ 22873 L_30012814: 22874 MEM32(edx) = ecx; /* 0x30012814: mov dword ptr [edx], ecx */ 22875 MEM32(ecx + 0x4) = edx; /* 0x30012816: mov dword ptr [ecx + 4], edx */ 22876 edx = MEM32(eax + 0x4); /* 0x30012819: mov edx, dword ptr [eax + 4] */ 22877 ecx = MEM32(edx + 0x8); /* 0x3001281C: mov ecx, dword ptr [edx + 8] */ 22878 L_3001281F: 22879 edx = MEM32(ecx); /* 0x3001281F: mov edx, dword ptr [ecx] */ 22880 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012821: cmp byte ptr [edx + 0x14], bl */ 22881 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22883 _flag_k = FK_NARROW(FK_CMP, 24); 22884 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012824: jne 0x300128ba */ 22885 L_3001282A: 22886 edx = MEM32(ecx + 0x8); /* 0x3001282A: mov edx, dword ptr [ecx + 8] */ 22887 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001282D: cmp byte ptr [edx + 0x14], bl */ 22888 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22890 _flag_k = FK_NARROW(FK_CMP, 24); 22891 if (CMP_NE(_flag_a, _flag_b)) goto L_300128BA; /* 0x30012830: jne 0x300128ba */ 22892 L_30012836: 22893 goto L_300128A2; /* 0x30012836: jmp 0x300128a2 */ 22894 L_30012838: 22895 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x30012838: mov dl, byte ptr [ecx + 0x14] */ 22896 /* test LO8(edx), LO8(edx) */ /* 0x3001283B: test dl, dl */ 22897 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 22898 _cf = 0; 22899 _flag_k = FK_NARROW(FK_TEST, 24); 22900 if (TEST_NZ(_flag_a, _flag_b)) goto L_3001288B; /* 0x3001283D: jne 0x3001288b */ 22901 L_3001283F: 22902 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001283F: mov byte ptr [ecx + 0x14], bl */ 22903 ecx = MEM32(eax + 0x4); /* 0x30012842: mov ecx, dword ptr [eax + 4] */ 22904 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012845: mov byte ptr [ecx + 0x14], 0 */ 22905 ecx = MEM32(eax + 0x4); /* 0x30012849: mov ecx, dword ptr [eax + 4] */ 22906 edx = MEM32(ecx); /* 0x3001284C: mov edx, dword ptr [ecx] */ 22907 esi = MEM32(edx + 0x8); /* 0x3001284E: mov esi, dword ptr [edx + 8] */ 22908 MEM32(ecx) = esi; /* 0x30012851: mov dword ptr [ecx], esi */ 22909 esi = MEM32(edx + 0x8); /* 0x30012853: mov esi, dword ptr [edx + 8] */ 22910 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012856: cmp esi, dword ptr [edi + 8] */ 22911 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22913 _flag_k = FK_CMP; 22914 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001285E; /* 0x30012859: je 0x3001285e */ 22915 L_3001285B: 22916 MEM32(esi + 0x4) = ecx; /* 0x3001285B: mov dword ptr [esi + 4], ecx */ 22917 L_3001285E: 22918 esi = MEM32(ecx + 0x4); /* 0x3001285E: mov esi, dword ptr [ecx + 4] */ 22919 MEM32(edx + 0x4) = esi; /* 0x30012861: mov dword ptr [edx + 4], esi */ 22920 esi = MEM32(edi + 0x4); /* 0x30012864: mov esi, dword ptr [edi + 4] */ 22921 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012867: cmp ecx, dword ptr [esi + 4] */ 22922 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 22923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22924 _flag_k = FK_CMP; 22925 if (CMP_NE(_flag_a, _flag_b)) goto L_30012871; /* 0x3001286A: jne 0x30012871 */ 22926 L_3001286C: 22927 MEM32(esi + 0x4) = edx; /* 0x3001286C: mov dword ptr [esi + 4], edx */ 22928 goto L_30012880; /* 0x3001286F: jmp 0x30012880 */ 22929 L_30012871: 22930 esi = MEM32(ecx + 0x4); /* 0x30012871: mov esi, dword ptr [ecx + 4] */ 22931 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x30012874: cmp ecx, dword ptr [esi + 8] */ 22932 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 22933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22934 _flag_k = FK_CMP; 22935 if (CMP_NE(_flag_a, _flag_b)) goto L_3001287E; /* 0x30012877: jne 0x3001287e */ 22936 L_30012879: 22937 MEM32(esi + 0x8) = edx; /* 0x30012879: mov dword ptr [esi + 8], edx */ 22938 goto L_30012880; /* 0x3001287C: jmp 0x30012880 */ 22939 L_3001287E: 22940 MEM32(esi) = edx; /* 0x3001287E: mov dword ptr [esi], edx */ 22941 L_30012880: 22942 MEM32(edx + 0x8) = ecx; /* 0x30012880: mov dword ptr [edx + 8], ecx */ 22943 MEM32(ecx + 0x4) = edx; /* 0x30012883: mov dword ptr [ecx + 4], edx */ 22944 edx = MEM32(eax + 0x4); /* 0x30012886: mov edx, dword ptr [eax + 4] */ 22945 ecx = MEM32(edx); /* 0x30012889: mov ecx, dword ptr [edx] */ 22946 L_3001288B: 22947 edx = MEM32(ecx + 0x8); /* 0x3001288B: mov edx, dword ptr [ecx + 8] */ 22948 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x3001288E: cmp byte ptr [edx + 0x14], bl */ 22949 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22951 _flag_k = FK_NARROW(FK_CMP, 24); 22952 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x30012891: jne 0x30012967 */ 22953 L_30012897: 22954 edx = MEM32(ecx); /* 0x30012897: mov edx, dword ptr [ecx] */ 22955 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012899: cmp byte ptr [edx + 0x14], bl */ 22956 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22958 _flag_k = FK_NARROW(FK_CMP, 24); 22959 if (CMP_NE(_flag_a, _flag_b)) goto L_30012967; /* 0x3001289C: jne 0x30012967 */ 22960 L_300128A2: 22961 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128A2: mov byte ptr [ecx + 0x14], 0 */ 22962 ecx = MEM32(edi + 0x4); /* 0x300128A6: mov ecx, dword ptr [edi + 4] */ 22963 eax = MEM32(eax + 0x4); /* 0x300128A9: mov eax, dword ptr [eax + 4] */ 22964 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x300128AC: cmp eax, dword ptr [ecx + 4] */ 22965 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 22966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22967 _flag_k = FK_CMP; 22968 RECOMP_BACKEDGE(); 22969 if (CMP_NE(_flag_a, _flag_b)) goto L_300127B8; /* 0x300128AF: jne 0x300127b8 */ 22970 L_300128B5: 22971 goto L_30012A06; /* 0x300128B5: jmp 0x30012a06 */ 22972 L_300128BA: 22973 edx = MEM32(ecx + 0x8); /* 0x300128BA: mov edx, dword ptr [ecx + 8] */ 22974 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x300128BD: cmp byte ptr [edx + 0x14], bl */ 22975 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 22976 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22977 _flag_k = FK_NARROW(FK_CMP, 24); 22978 if (CMP_NE(_flag_a, _flag_b)) goto L_3001290B; /* 0x300128C0: jne 0x3001290b */ 22979 L_300128C2: 22980 edx = MEM32(ecx); /* 0x300128C2: mov edx, dword ptr [ecx] */ 22981 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300128C4: mov byte ptr [edx + 0x14], bl */ 22982 edx = MEM32(ecx); /* 0x300128C7: mov edx, dword ptr [ecx] */ 22983 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128C9: mov byte ptr [ecx + 0x14], 0 */ 22984 esi = MEM32(edx + 0x8); /* 0x300128CD: mov esi, dword ptr [edx + 8] */ 22985 MEM32(ecx) = esi; /* 0x300128D0: mov dword ptr [ecx], esi */ 22986 esi = MEM32(edx + 0x8); /* 0x300128D2: mov esi, dword ptr [edx + 8] */ 22987 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300128D5: cmp esi, dword ptr [edi + 8] */ 22988 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 22989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22990 _flag_k = FK_CMP; 22991 if (CMP_EQ(_flag_a, _flag_b)) goto L_300128DD; /* 0x300128D8: je 0x300128dd */ 22992 L_300128DA: 22993 MEM32(esi + 0x4) = ecx; /* 0x300128DA: mov dword ptr [esi + 4], ecx */ 22994 L_300128DD: 22995 esi = MEM32(ecx + 0x4); /* 0x300128DD: mov esi, dword ptr [ecx + 4] */ 22996 MEM32(edx + 0x4) = esi; /* 0x300128E0: mov dword ptr [edx + 4], esi */ 22997 esi = MEM32(edi + 0x4); /* 0x300128E3: mov esi, dword ptr [edi + 4] */ 22998 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300128E6: cmp ecx, dword ptr [esi + 4] */ 22999 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 23000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23001 _flag_k = FK_CMP; 23002 if (CMP_NE(_flag_a, _flag_b)) goto L_300128F0; /* 0x300128E9: jne 0x300128f0 */ 23003 L_300128EB: 23004 MEM32(esi + 0x4) = edx; /* 0x300128EB: mov dword ptr [esi + 4], edx */ 23005 goto L_300128FF; /* 0x300128EE: jmp 0x300128ff */ 23006 L_300128F0: 23007 esi = MEM32(ecx + 0x4); /* 0x300128F0: mov esi, dword ptr [ecx + 4] */ 23008 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300128F3: cmp ecx, dword ptr [esi + 8] */ 23009 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 23010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23011 _flag_k = FK_CMP; 23012 if (CMP_NE(_flag_a, _flag_b)) goto L_300128FD; /* 0x300128F6: jne 0x300128fd */ 23013 L_300128F8: 23014 MEM32(esi + 0x8) = edx; /* 0x300128F8: mov dword ptr [esi + 8], edx */ 23015 goto L_300128FF; /* 0x300128FB: jmp 0x300128ff */ 23016 L_300128FD: 23017 MEM32(esi) = edx; /* 0x300128FD: mov dword ptr [esi], edx */ 23018 L_300128FF: 23019 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 23020 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 23021 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 23022 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 23023 L_3001290B: 23024 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 23025 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 23026 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 23027 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 23028 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 23029 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 23030 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 23031 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 23032 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 23033 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 23034 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 23035 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 23036 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 23037 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 23038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23039 _flag_k = FK_CMP; 23040 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 23041 L_30012932: 23042 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 23043 L_30012935: 23044 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 23045 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 23046 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 23047 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 23048 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 23049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23050 _flag_k = FK_CMP; 23051 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 23052 L_30012943: 23053 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 23054 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 23055 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 23056 L_3001294D: 23057 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 23058 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 23059 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 23060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23061 _flag_k = FK_CMP; 23062 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 23063 L_30012954: 23064 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 23065 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 23066 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 23067 L_3001295D: 23068 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 23069 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 23070 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 23071 L_30012967: 23072 edx = MEM32(ecx); /* 0x30012967: mov edx, dword ptr [ecx] */ 23073 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x30012969: cmp byte ptr [edx + 0x14], bl */ 23074 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 23075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23076 _flag_k = FK_NARROW(FK_CMP, 24); 23077 if (CMP_NE(_flag_a, _flag_b)) goto L_300129B5; /* 0x3001296C: jne 0x300129b5 */ 23078 L_3001296E: 23079 edx = MEM32(ecx + 0x8); /* 0x3001296E: mov edx, dword ptr [ecx + 8] */ 23080 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012971: mov byte ptr [edx + 0x14], bl */ 23081 edx = MEM32(ecx + 0x8); /* 0x30012974: mov edx, dword ptr [ecx + 8] */ 23082 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x30012977: mov byte ptr [ecx + 0x14], 0 */ 23083 esi = MEM32(edx); /* 0x3001297B: mov esi, dword ptr [edx] */ 23084 MEM32(ecx + 0x8) = esi; /* 0x3001297D: mov dword ptr [ecx + 8], esi */ 23085 esi = MEM32(edx); /* 0x30012980: mov esi, dword ptr [edx] */ 23086 /* cmp esi, MEM32(edi + 0x8) */ /* 0x30012982: cmp esi, dword ptr [edi + 8] */ 23087 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 23088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23089 _flag_k = FK_CMP; 23090 if (CMP_EQ(_flag_a, _flag_b)) goto L_3001298A; /* 0x30012985: je 0x3001298a */ 23091 L_30012987: 23092 MEM32(esi + 0x4) = ecx; /* 0x30012987: mov dword ptr [esi + 4], ecx */ 23093 L_3001298A: 23094 esi = MEM32(ecx + 0x4); /* 0x3001298A: mov esi, dword ptr [ecx + 4] */ 23095 MEM32(edx + 0x4) = esi; /* 0x3001298D: mov dword ptr [edx + 4], esi */ 23096 esi = MEM32(edi + 0x4); /* 0x30012990: mov esi, dword ptr [edi + 4] */ 23097 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x30012993: cmp ecx, dword ptr [esi + 4] */ 23098 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 23099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23100 _flag_k = FK_CMP; 23101 if (CMP_NE(_flag_a, _flag_b)) goto L_3001299D; /* 0x30012996: jne 0x3001299d */ 23102 L_30012998: 23103 MEM32(esi + 0x4) = edx; /* 0x30012998: mov dword ptr [esi + 4], edx */ 23104 goto L_300129AB; /* 0x3001299B: jmp 0x300129ab */ 23105 L_3001299D: 23106 esi = MEM32(ecx + 0x4); /* 0x3001299D: mov esi, dword ptr [ecx + 4] */ 23107 /* cmp ecx, MEM32(esi) */ /* 0x300129A0: cmp ecx, dword ptr [esi] */ 23108 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 23109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23110 _flag_k = FK_CMP; 23111 if (CMP_NE(_flag_a, _flag_b)) goto L_300129A8; /* 0x300129A2: jne 0x300129a8 */ 23112 L_300129A4: 23113 MEM32(esi) = edx; /* 0x300129A4: mov dword ptr [esi], edx */ 23114 goto L_300129AB; /* 0x300129A6: jmp 0x300129ab */ 23115 L_300129A8: 23116 MEM32(esi + 0x8) = edx; /* 0x300129A8: mov dword ptr [esi + 8], edx */ 23117 L_300129AB: 23118 MEM32(edx) = ecx; /* 0x300129AB: mov dword ptr [edx], ecx */ 23119 MEM32(ecx + 0x4) = edx; /* 0x300129AD: mov dword ptr [ecx + 4], edx */ 23120 ecx = MEM32(eax + 0x4); /* 0x300129B0: mov ecx, dword ptr [eax + 4] */ 23121 ecx = MEM32(ecx); /* 0x300129B3: mov ecx, dword ptr [ecx] */ 23122 L_300129B5: 23123 edx = MEM32(eax + 0x4); /* 0x300129B5: mov edx, dword ptr [eax + 4] */ 23124 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x300129B8: mov dl, byte ptr [edx + 0x14] */ 23125 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x300129BB: mov byte ptr [ecx + 0x14], dl */ 23126 edx = MEM32(eax + 0x4); /* 0x300129BE: mov edx, dword ptr [eax + 4] */ 23127 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C1: mov byte ptr [edx + 0x14], bl */ 23128 ecx = MEM32(ecx); /* 0x300129C4: mov ecx, dword ptr [ecx] */ 23129 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C6: mov byte ptr [ecx + 0x14], bl */ 23130 ecx = MEM32(eax + 0x4); /* 0x300129C9: mov ecx, dword ptr [eax + 4] */ 23131 edx = MEM32(ecx); /* 0x300129CC: mov edx, dword ptr [ecx] */ 23132 esi = MEM32(edx + 0x8); /* 0x300129CE: mov esi, dword ptr [edx + 8] */ 23133 MEM32(ecx) = esi; /* 0x300129D1: mov dword ptr [ecx], esi */ 23134 esi = MEM32(edx + 0x8); /* 0x300129D3: mov esi, dword ptr [edx + 8] */ 23135 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300129D6: cmp esi, dword ptr [edi + 8] */ 23136 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 23137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23138 _flag_k = FK_CMP; 23139 if (CMP_EQ(_flag_a, _flag_b)) goto L_300129DE; /* 0x300129D9: je 0x300129de */ 23140 L_300129DB: 23141 MEM32(esi + 0x4) = ecx; /* 0x300129DB: mov dword ptr [esi + 4], ecx */ 23142 L_300129DE: 23143 esi = MEM32(ecx + 0x4); /* 0x300129DE: mov esi, dword ptr [ecx + 4] */ 23144 MEM32(edx + 0x4) = esi; /* 0x300129E1: mov dword ptr [edx + 4], esi */ 23145 esi = MEM32(edi + 0x4); /* 0x300129E4: mov esi, dword ptr [edi + 4] */ 23146 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300129E7: cmp ecx, dword ptr [esi + 4] */ 23147 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 23148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23149 _flag_k = FK_CMP; 23150 if (CMP_NE(_flag_a, _flag_b)) goto L_300129F1; /* 0x300129EA: jne 0x300129f1 */ 23151 L_300129EC: 23152 MEM32(esi + 0x4) = edx; /* 0x300129EC: mov dword ptr [esi + 4], edx */ 23153 goto L_30012A00; /* 0x300129EF: jmp 0x30012a00 */ 23154 L_300129F1: 23155 esi = MEM32(ecx + 0x4); /* 0x300129F1: mov esi, dword ptr [ecx + 4] */ 23156 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300129F4: cmp ecx, dword ptr [esi + 8] */ 23157 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 23158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23159 _flag_k = FK_CMP; 23160 if (CMP_NE(_flag_a, _flag_b)) goto L_300129FE; /* 0x300129F7: jne 0x300129fe */ 23161 L_300129F9: 23162 MEM32(esi + 0x8) = edx; /* 0x300129F9: mov dword ptr [esi + 8], edx */ 23163 goto L_30012A00; /* 0x300129FC: jmp 0x30012a00 */ 23164 L_300129FE: 23165 MEM32(esi) = edx; /* 0x300129FE: mov dword ptr [esi], edx */ 23166 L_30012A00: 23167 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 23168 L_30012A03: 23169 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 23170 L_30012A06: 23171 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 23172 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 23173 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 23174 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 23175 RECOMP_FLAGS_IN(); 23176 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 23177 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 23178 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23180 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 23181 _flag_k = FK_ADD; 23182 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 23183 eax = eax - 1; /* 0x30012A1B: dec eax */ 23184 _flag_k = FK_DEC; 23185 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 23186 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 23187 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 23188 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 23189 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 23190 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 23191 esp = ebp; /* 0x30012A27: mov esp, ebp */ 23192 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 23193 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 23194 RECOMP_REGS_OUT(); 23195 } 23196 23197 void sub_300128BA(void) { 23198 int _fpu_cmp = 0; 23199 uint32_t _cf = 0; 23200 int _df = 1; 23201 uint32_t _flag_k = FK_NONE; 23202 uint32_t _flag_a = 0, _flag_b = 0; 23203 uint32_t _itail_tgt = 0; 23204 RECOMP_REGS_LOCALS 23205 RECOMP_ENTER(0x300128BAu); 23206 23207 L_300128BA: 23208 edx = MEM32(ecx + 0x8); /* 0x300128BA: mov edx, dword ptr [ecx + 8] */ 23209 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x300128BD: cmp byte ptr [edx + 0x14], bl */ 23210 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 23211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23212 _flag_k = FK_NARROW(FK_CMP, 24); 23213 if (CMP_NE(_flag_a, _flag_b)) goto L_3001290B; /* 0x300128C0: jne 0x3001290b */ 23214 L_300128C2: 23215 edx = MEM32(ecx); /* 0x300128C2: mov edx, dword ptr [ecx] */ 23216 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300128C4: mov byte ptr [edx + 0x14], bl */ 23217 edx = MEM32(ecx); /* 0x300128C7: mov edx, dword ptr [ecx] */ 23218 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x300128C9: mov byte ptr [ecx + 0x14], 0 */ 23219 esi = MEM32(edx + 0x8); /* 0x300128CD: mov esi, dword ptr [edx + 8] */ 23220 MEM32(ecx) = esi; /* 0x300128D0: mov dword ptr [ecx], esi */ 23221 esi = MEM32(edx + 0x8); /* 0x300128D2: mov esi, dword ptr [edx + 8] */ 23222 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300128D5: cmp esi, dword ptr [edi + 8] */ 23223 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 23224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23225 _flag_k = FK_CMP; 23226 if (CMP_EQ(_flag_a, _flag_b)) goto L_300128DD; /* 0x300128D8: je 0x300128dd */ 23227 L_300128DA: 23228 MEM32(esi + 0x4) = ecx; /* 0x300128DA: mov dword ptr [esi + 4], ecx */ 23229 L_300128DD: 23230 esi = MEM32(ecx + 0x4); /* 0x300128DD: mov esi, dword ptr [ecx + 4] */ 23231 MEM32(edx + 0x4) = esi; /* 0x300128E0: mov dword ptr [edx + 4], esi */ 23232 esi = MEM32(edi + 0x4); /* 0x300128E3: mov esi, dword ptr [edi + 4] */ 23233 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300128E6: cmp ecx, dword ptr [esi + 4] */ 23234 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 23235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23236 _flag_k = FK_CMP; 23237 if (CMP_NE(_flag_a, _flag_b)) goto L_300128F0; /* 0x300128E9: jne 0x300128f0 */ 23238 L_300128EB: 23239 MEM32(esi + 0x4) = edx; /* 0x300128EB: mov dword ptr [esi + 4], edx */ 23240 goto L_300128FF; /* 0x300128EE: jmp 0x300128ff */ 23241 L_300128F0: 23242 esi = MEM32(ecx + 0x4); /* 0x300128F0: mov esi, dword ptr [ecx + 4] */ 23243 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300128F3: cmp ecx, dword ptr [esi + 8] */ 23244 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 23245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23246 _flag_k = FK_CMP; 23247 if (CMP_NE(_flag_a, _flag_b)) goto L_300128FD; /* 0x300128F6: jne 0x300128fd */ 23248 L_300128F8: 23249 MEM32(esi + 0x8) = edx; /* 0x300128F8: mov dword ptr [esi + 8], edx */ 23250 goto L_300128FF; /* 0x300128FB: jmp 0x300128ff */ 23251 L_300128FD: 23252 MEM32(esi) = edx; /* 0x300128FD: mov dword ptr [esi], edx */ 23253 L_300128FF: 23254 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 23255 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 23256 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 23257 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 23258 L_3001290B: 23259 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 23260 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 23261 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 23262 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 23263 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 23264 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 23265 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 23266 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 23267 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 23268 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 23269 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 23270 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 23271 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 23272 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 23273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23274 _flag_k = FK_CMP; 23275 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 23276 L_30012932: 23277 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 23278 L_30012935: 23279 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 23280 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 23281 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 23282 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 23283 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 23284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23285 _flag_k = FK_CMP; 23286 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 23287 L_30012943: 23288 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 23289 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 23290 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 23291 L_3001294D: 23292 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 23293 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 23294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 23295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23296 _flag_k = FK_CMP; 23297 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 23298 L_30012954: 23299 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 23300 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 23301 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 23302 L_3001295D: 23303 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 23304 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 23305 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 23306 L_30012A03: 23307 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 23308 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 23309 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 23310 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 23311 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 23312 RECOMP_FLAGS_IN(); 23313 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 23314 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 23315 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23316 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23317 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 23318 _flag_k = FK_ADD; 23319 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 23320 eax = eax - 1; /* 0x30012A1B: dec eax */ 23321 _flag_k = FK_DEC; 23322 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 23323 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 23324 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 23325 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 23326 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 23327 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 23328 esp = ebp; /* 0x30012A27: mov esp, ebp */ 23329 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 23330 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 23331 RECOMP_REGS_OUT(); 23332 } 23333 23334 void sub_300128FF(void) { 23335 int _fpu_cmp = 0; 23336 uint32_t _cf = 0; 23337 int _df = 1; 23338 uint32_t _flag_k = FK_NONE; 23339 uint32_t _flag_a = 0, _flag_b = 0; 23340 uint32_t _itail_tgt = 0; 23341 RECOMP_REGS_LOCALS 23342 RECOMP_ENTER(0x300128FFu); 23343 23344 L_300128FF: 23345 MEM32(edx + 0x8) = ecx; /* 0x300128FF: mov dword ptr [edx + 8], ecx */ 23346 MEM32(ecx + 0x4) = edx; /* 0x30012902: mov dword ptr [ecx + 4], edx */ 23347 ecx = MEM32(eax + 0x4); /* 0x30012905: mov ecx, dword ptr [eax + 4] */ 23348 ecx = MEM32(ecx + 0x8); /* 0x30012908: mov ecx, dword ptr [ecx + 8] */ 23349 edx = MEM32(eax + 0x4); /* 0x3001290B: mov edx, dword ptr [eax + 4] */ 23350 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x3001290E: mov dl, byte ptr [edx + 0x14] */ 23351 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x30012911: mov byte ptr [ecx + 0x14], dl */ 23352 edx = MEM32(eax + 0x4); /* 0x30012914: mov edx, dword ptr [eax + 4] */ 23353 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012917: mov byte ptr [edx + 0x14], bl */ 23354 ecx = MEM32(ecx + 0x8); /* 0x3001291A: mov ecx, dword ptr [ecx + 8] */ 23355 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3001291D: mov byte ptr [ecx + 0x14], bl */ 23356 ecx = MEM32(eax + 0x4); /* 0x30012920: mov ecx, dword ptr [eax + 4] */ 23357 edx = MEM32(ecx + 0x8); /* 0x30012923: mov edx, dword ptr [ecx + 8] */ 23358 esi = MEM32(edx); /* 0x30012926: mov esi, dword ptr [edx] */ 23359 MEM32(ecx + 0x8) = esi; /* 0x30012928: mov dword ptr [ecx + 8], esi */ 23360 esi = MEM32(edx); /* 0x3001292B: mov esi, dword ptr [edx] */ 23361 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3001292D: cmp esi, dword ptr [edi + 8] */ 23362 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 23363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23364 _flag_k = FK_CMP; 23365 if (CMP_EQ(_flag_a, _flag_b)) goto L_30012935; /* 0x30012930: je 0x30012935 */ 23366 L_30012932: 23367 MEM32(esi + 0x4) = ecx; /* 0x30012932: mov dword ptr [esi + 4], ecx */ 23368 L_30012935: 23369 esi = MEM32(ecx + 0x4); /* 0x30012935: mov esi, dword ptr [ecx + 4] */ 23370 MEM32(edx + 0x4) = esi; /* 0x30012938: mov dword ptr [edx + 4], esi */ 23371 esi = MEM32(edi + 0x4); /* 0x3001293B: mov esi, dword ptr [edi + 4] */ 23372 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3001293E: cmp ecx, dword ptr [esi + 4] */ 23373 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 23374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23375 _flag_k = FK_CMP; 23376 if (CMP_NE(_flag_a, _flag_b)) goto L_3001294D; /* 0x30012941: jne 0x3001294d */ 23377 L_30012943: 23378 MEM32(esi + 0x4) = edx; /* 0x30012943: mov dword ptr [esi + 4], edx */ 23379 MEM32(edx) = ecx; /* 0x30012946: mov dword ptr [edx], ecx */ 23380 goto L_30012A03; /* 0x30012948: jmp 0x30012a03 */ 23381 L_3001294D: 23382 esi = MEM32(ecx + 0x4); /* 0x3001294D: mov esi, dword ptr [ecx + 4] */ 23383 /* cmp ecx, MEM32(esi) */ /* 0x30012950: cmp ecx, dword ptr [esi] */ 23384 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 23385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23386 _flag_k = FK_CMP; 23387 if (CMP_NE(_flag_a, _flag_b)) goto L_3001295D; /* 0x30012952: jne 0x3001295d */ 23388 L_30012954: 23389 MEM32(esi) = edx; /* 0x30012954: mov dword ptr [esi], edx */ 23390 MEM32(edx) = ecx; /* 0x30012956: mov dword ptr [edx], ecx */ 23391 goto L_30012A03; /* 0x30012958: jmp 0x30012a03 */ 23392 L_3001295D: 23393 MEM32(esi + 0x8) = edx; /* 0x3001295D: mov dword ptr [esi + 8], edx */ 23394 MEM32(edx) = ecx; /* 0x30012960: mov dword ptr [edx], ecx */ 23395 goto L_30012A03; /* 0x30012962: jmp 0x30012a03 */ 23396 L_30012A03: 23397 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 23398 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 23399 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 23400 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 23401 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 23402 RECOMP_FLAGS_IN(); 23403 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 23404 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 23405 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23407 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 23408 _flag_k = FK_ADD; 23409 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 23410 eax = eax - 1; /* 0x30012A1B: dec eax */ 23411 _flag_k = FK_DEC; 23412 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 23413 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 23414 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 23415 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 23416 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 23417 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 23418 esp = ebp; /* 0x30012A27: mov esp, ebp */ 23419 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 23420 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 23421 RECOMP_REGS_OUT(); 23422 } 23423 23424 void sub_300129AB(void) { 23425 int _fpu_cmp = 0; 23426 uint32_t _cf = 0; 23427 int _df = 1; 23428 uint32_t _flag_k = FK_NONE; 23429 uint32_t _flag_a = 0, _flag_b = 0; 23430 uint32_t _itail_tgt = 0; 23431 RECOMP_REGS_LOCALS 23432 RECOMP_ENTER(0x300129ABu); 23433 23434 L_300129AB: 23435 MEM32(edx) = ecx; /* 0x300129AB: mov dword ptr [edx], ecx */ 23436 MEM32(ecx + 0x4) = edx; /* 0x300129AD: mov dword ptr [ecx + 4], edx */ 23437 ecx = MEM32(eax + 0x4); /* 0x300129B0: mov ecx, dword ptr [eax + 4] */ 23438 ecx = MEM32(ecx); /* 0x300129B3: mov ecx, dword ptr [ecx] */ 23439 edx = MEM32(eax + 0x4); /* 0x300129B5: mov edx, dword ptr [eax + 4] */ 23440 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x300129B8: mov dl, byte ptr [edx + 0x14] */ 23441 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x300129BB: mov byte ptr [ecx + 0x14], dl */ 23442 edx = MEM32(eax + 0x4); /* 0x300129BE: mov edx, dword ptr [eax + 4] */ 23443 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C1: mov byte ptr [edx + 0x14], bl */ 23444 ecx = MEM32(ecx); /* 0x300129C4: mov ecx, dword ptr [ecx] */ 23445 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x300129C6: mov byte ptr [ecx + 0x14], bl */ 23446 ecx = MEM32(eax + 0x4); /* 0x300129C9: mov ecx, dword ptr [eax + 4] */ 23447 edx = MEM32(ecx); /* 0x300129CC: mov edx, dword ptr [ecx] */ 23448 esi = MEM32(edx + 0x8); /* 0x300129CE: mov esi, dword ptr [edx + 8] */ 23449 MEM32(ecx) = esi; /* 0x300129D1: mov dword ptr [ecx], esi */ 23450 esi = MEM32(edx + 0x8); /* 0x300129D3: mov esi, dword ptr [edx + 8] */ 23451 /* cmp esi, MEM32(edi + 0x8) */ /* 0x300129D6: cmp esi, dword ptr [edi + 8] */ 23452 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 23453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23454 _flag_k = FK_CMP; 23455 if (CMP_EQ(_flag_a, _flag_b)) goto L_300129DE; /* 0x300129D9: je 0x300129de */ 23456 L_300129DB: 23457 MEM32(esi + 0x4) = ecx; /* 0x300129DB: mov dword ptr [esi + 4], ecx */ 23458 L_300129DE: 23459 esi = MEM32(ecx + 0x4); /* 0x300129DE: mov esi, dword ptr [ecx + 4] */ 23460 MEM32(edx + 0x4) = esi; /* 0x300129E1: mov dword ptr [edx + 4], esi */ 23461 esi = MEM32(edi + 0x4); /* 0x300129E4: mov esi, dword ptr [edi + 4] */ 23462 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x300129E7: cmp ecx, dword ptr [esi + 4] */ 23463 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 23464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23465 _flag_k = FK_CMP; 23466 if (CMP_NE(_flag_a, _flag_b)) goto L_300129F1; /* 0x300129EA: jne 0x300129f1 */ 23467 L_300129EC: 23468 MEM32(esi + 0x4) = edx; /* 0x300129EC: mov dword ptr [esi + 4], edx */ 23469 goto L_30012A00; /* 0x300129EF: jmp 0x30012a00 */ 23470 L_300129F1: 23471 esi = MEM32(ecx + 0x4); /* 0x300129F1: mov esi, dword ptr [ecx + 4] */ 23472 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x300129F4: cmp ecx, dword ptr [esi + 8] */ 23473 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 23474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23475 _flag_k = FK_CMP; 23476 if (CMP_NE(_flag_a, _flag_b)) goto L_300129FE; /* 0x300129F7: jne 0x300129fe */ 23477 L_300129F9: 23478 MEM32(esi + 0x8) = edx; /* 0x300129F9: mov dword ptr [esi + 8], edx */ 23479 goto L_30012A00; /* 0x300129FC: jmp 0x30012a00 */ 23480 L_300129FE: 23481 MEM32(esi) = edx; /* 0x300129FE: mov dword ptr [esi], edx */ 23482 L_30012A00: 23483 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 23484 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 23485 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 23486 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 23487 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 23488 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 23489 RECOMP_FLAGS_IN(); 23490 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 23491 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 23492 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23493 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23494 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 23495 _flag_k = FK_ADD; 23496 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 23497 eax = eax - 1; /* 0x30012A1B: dec eax */ 23498 _flag_k = FK_DEC; 23499 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 23500 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 23501 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 23502 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 23503 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 23504 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 23505 esp = ebp; /* 0x30012A27: mov esp, ebp */ 23506 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 23507 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 23508 RECOMP_REGS_OUT(); 23509 } 23510 23511 void sub_30012A00(void) { 23512 int _fpu_cmp = 0; 23513 uint32_t _cf = 0; 23514 int _df = 1; 23515 uint32_t _flag_k = FK_NONE; 23516 uint32_t _flag_a = 0, _flag_b = 0; 23517 uint32_t _itail_tgt = 0; 23518 RECOMP_REGS_LOCALS 23519 RECOMP_ENTER(0x30012A00u); 23520 23521 L_30012A00: 23522 MEM32(edx + 0x8) = ecx; /* 0x30012A00: mov dword ptr [edx + 8], ecx */ 23523 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 23524 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 23525 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 23526 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 23527 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 23528 RECOMP_FLAGS_IN(); 23529 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 23530 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 23531 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23533 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 23534 _flag_k = FK_ADD; 23535 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 23536 eax = eax - 1; /* 0x30012A1B: dec eax */ 23537 _flag_k = FK_DEC; 23538 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 23539 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 23540 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 23541 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 23542 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 23543 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 23544 esp = ebp; /* 0x30012A27: mov esp, ebp */ 23545 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 23546 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 23547 RECOMP_REGS_OUT(); 23548 } 23549 23550 void sub_30012A03(void) { 23551 int _fpu_cmp = 0; 23552 uint32_t _cf = 0; 23553 int _df = 1; 23554 uint32_t _flag_k = FK_NONE; 23555 uint32_t _flag_a = 0, _flag_b = 0; 23556 uint32_t _itail_tgt = 0; 23557 RECOMP_REGS_LOCALS 23558 RECOMP_ENTER(0x30012A03u); 23559 23560 L_30012A03: 23561 MEM32(ecx + 0x4) = edx; /* 0x30012A03: mov dword ptr [ecx + 4], edx */ 23562 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x30012A06: mov byte ptr [eax + 0x14], bl */ 23563 edx = MEM32(ebp + (-0x4)); /* 0x30012A09: mov edx, dword ptr [ebp - 4] */ 23564 PUSH32(esp, edx); /* 0x30012A0C: push edx */ 23565 RECOMP_ICALL(0x30018080u); /* 0x30012A0D: call 0x30018080 */ /* not lifted */ 23566 RECOMP_FLAGS_IN(); 23567 eax = MEM32(edi + 0x10); /* 0x30012A12: mov eax, dword ptr [edi + 0x10] */ 23568 ecx = MEM32(ebp + 0xC); /* 0x30012A15: mov ecx, dword ptr [ebp + 0xc] */ 23569 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23570 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23571 esp = esp + 4; /* 0x30012A18: add esp, 4 */ 23572 _flag_k = FK_ADD; 23573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 23574 eax = eax - 1; /* 0x30012A1B: dec eax */ 23575 _flag_k = FK_DEC; 23576 MEM32(edi + 0x10) = eax; /* 0x30012A1C: mov dword ptr [edi + 0x10], eax */ 23577 eax = MEM32(ebp + 0x8); /* 0x30012A1F: mov eax, dword ptr [ebp + 8] */ 23578 edi = POP32_VAL(esp); /* 0x30012A22: pop edi */ 23579 esi = POP32_VAL(esp); /* 0x30012A23: pop esi */ 23580 MEM32(eax) = ecx; /* 0x30012A24: mov dword ptr [eax], ecx */ 23581 ebx = POP32_VAL(esp); /* 0x30012A26: pop ebx */ 23582 esp = ebp; /* 0x30012A27: mov esp, ebp */ 23583 ebp = POP32_VAL(esp); /* 0x30012A29: pop ebp */ 23584 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x30012A2A: ret 8 */ 23585 RECOMP_REGS_OUT(); 23586 }