client/vendor/ace/source/lifted-0058.c (345844B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_47081691(void) { 5 int _fpu_cmp = 0; 6 uint32_t _cf = 0; 7 int _df = 1; 8 uint32_t _flag_k = FK_NONE; 9 uint32_t _flag_a = 0, _flag_b = 0; 10 uint32_t _itail_tgt = 0; 11 RECOMP_REGS_LOCALS 12 RECOMP_ENTER(0x47081691u); 13 14 L_47081691: 15 /* cmp eax, ebx */ /* 0x47081691: cmp eax, ebx */ 16 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 17 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18 _flag_k = FK_CMP; 19 if (CMP_NE(_flag_a, _flag_b)) goto L_4708190C; /* 0x47081693: jne 0x4708190c */ 20 L_47081699: 21 /* cmp edi, ebx */ /* 0x47081699: cmp edi, ebx */ 22 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 23 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24 _flag_k = FK_CMP; 25 if (CMP_L(_flag_a, _flag_b)) goto L_47081959; /* 0x4708169B: jl 0x47081959 */ 26 L_470816A1: 27 if (CMP_NE(_flag_a, _flag_b)) goto L_470816B0; /* 0x470816A1: jne 0x470816b0 */ 28 L_470816A3: 29 PUSH32(esp, ebx); /* 0x470816A3: push ebx */ 30 PUSH32(esp, 0x4710B604u); /* 0x470816A4: push 0x4710b604 */ 31 eax = esp + 0x6C; /* 0x470816A9: lea eax, [esp + 0x6c] */ 32 PUSH32(esp, eax); /* 0x470816AD: push eax */ 33 goto L_470816BB; /* 0x470816AE: jmp 0x470816bb */ 34 L_470816B0: 35 PUSH32(esp, edi); /* 0x470816B0: push edi */ 36 PUSH32(esp, 0x4710B5F8u); /* 0x470816B1: push 0x4710b5f8 */ 37 ecx = esp + 0x6C; /* 0x470816B6: lea ecx, [esp + 0x6c] */ 38 PUSH32(esp, ecx); /* 0x470816BA: push ecx */ 39 L_470816BB: 40 RECOMP_ICALL(0x47054FC0u); /* 0x470816BB: call 0x47054fc0 */ /* not lifted */ 41 RECOMP_FLAGS_IN(); 42 eax = MEM32(ebp + 0x4); /* 0x470816C0: mov eax, dword ptr [ebp + 4] */ 43 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 44 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 45 esp = esp + 0xCu; /* 0x470816C3: add esp, 0xc */ 46 _flag_k = FK_ADD; 47 /* cmp eax, ebx */ /* 0x470816C6: cmp eax, ebx */ 48 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 49 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 50 _flag_k = FK_CMP; 51 MEM32(esp + 0x3C) = ebx; /* 0x470816C8: mov dword ptr [esp + 0x3c], ebx */ 52 MEM32(esp + 0x40) = ebx; /* 0x470816CC: mov dword ptr [esp + 0x40], ebx */ 53 MEM32(esp + 0x44) = edi; /* 0x470816D0: mov dword ptr [esp + 0x44], edi */ 54 if (CMP_BE(_flag_a, _flag_b)) goto L_4708174E; /* 0x470816D4: jbe 0x4708174e */ 55 L_470816D6: 56 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 57 edi = 0; /* 0x470816D6: xor edi, edi */ 58 _cf = 0; 59 _flag_k = FK_TEST; 60 PUSH32(esp, edi); /* 0x470816D8: push edi */ 61 edx = ebp + 0x10; /* 0x470816D9: lea edx, [ebp + 0x10] */ 62 PUSH32(esp, edx); /* 0x470816DC: push edx */ 63 ecx = esp + 0x20; /* 0x470816DD: lea ecx, [esp + 0x20] */ 64 ebx = 1; /* 0x470816E1: mov ebx, 1 */ 65 RECOMP_ICALL(0x470820E0u); /* 0x470816E6: call 0x470820e0 */ /* not lifted */ 66 RECOMP_FLAGS_IN(); 67 eax = MEM32(esp + 0x1C); /* 0x470816EB: mov eax, dword ptr [esp + 0x1c] */ 68 ecx = MEM32(esp + 0x18); /* 0x470816EF: mov ecx, dword ptr [esp + 0x18] */ 69 /* cmp ecx, MEM32(eax) */ /* 0x470816F3: cmp ecx, dword ptr [eax] */ 70 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 71 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 72 _flag_k = FK_CMP; 73 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708172A; /* 0x470816F5: je 0x4708172a */ 74 L_470816F7: 75 edx = esp + 0x54; /* 0x470816F7: lea edx, [esp + 0x54] */ 76 PUSH32(esp, edx); /* 0x470816FB: push edx */ 77 ecx = esp + 0x1C; /* 0x470816FC: lea ecx, [esp + 0x1c] */ 78 RECOMP_ICALL(0x47082100u); /* 0x47081700: call 0x47082100 */ /* not lifted */ 79 RECOMP_FLAGS_IN(); 80 /* test eax, eax */ /* 0x47081705: test eax, eax */ 81 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 82 _cf = 0; 83 _flag_k = FK_TEST; 84 if (TEST_Z(_flag_a, _flag_b)) goto L_4708171E; /* 0x47081707: je 0x4708171e */ 85 L_47081709: 86 eax = MEM32(esp + 0x54); /* 0x47081709: mov eax, dword ptr [esp + 0x54] */ 87 eax = MEM32(eax); /* 0x4708170D: mov eax, dword ptr [eax] */ 88 ecx = MEM32(esp + 0x18); /* 0x4708170F: mov ecx, dword ptr [esp + 0x18] */ 89 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081713: cdq */ 90 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 91 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 92 edi = edi + eax; /* 0x47081714: add edi, eax */ 93 _flag_k = FK_ADD; 94 { uint32_t _aa = ebx, _ab = edx, _ac = _cf; /* 0x47081716: adc ebx, edx */ 95 ebx = _aa + _ab + _ac; 96 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 97 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 98 edx = MEM32(ecx); /* 0x47081718: mov edx, dword ptr [ecx] */ 99 MEM32(esp + 0x18) = edx; /* 0x4708171A: mov dword ptr [esp + 0x18], edx */ 100 L_4708171E: 101 eax = MEM32(esp + 0x1C); /* 0x4708171E: mov eax, dword ptr [esp + 0x1c] */ 102 ecx = MEM32(esp + 0x18); /* 0x47081722: mov ecx, dword ptr [esp + 0x18] */ 103 /* cmp ecx, MEM32(eax) */ /* 0x47081726: cmp ecx, dword ptr [eax] */ 104 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 106 _flag_k = FK_CMP; 107 RECOMP_BACKEDGE(); 108 if (CMP_NE(_flag_a, _flag_b)) goto L_470816F7; /* 0x47081728: jne 0x470816f7 */ 109 L_4708172A: 110 eax = MEM32(ebp + 0x4); /* 0x4708172A: mov eax, dword ptr [ebp + 4] */ 111 eax = (uint32_t)((int32_t)eax * (int32_t)esi); /* 0x4708172D: imul eax, esi */ 112 edx = esp + 0x3C; /* 0x47081730: lea edx, [esp + 0x3c] */ 113 PUSH32(esp, edx); /* 0x47081734: push edx */ 114 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0); 115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 116 edi = edi - 0; /* 0x47081735: sub edi, 0 */ 117 _flag_k = FK_CMP; 118 PUSH32(esp, eax); /* 0x47081738: push eax */ 119 { uint32_t _sa = ebx, _sb = 1, _sc = _cf; /* 0x47081739: sbb ebx, 1 */ 120 ebx = _sa - _sb - _sc; 121 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 122 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 123 PUSH32(esp, ebx); /* 0x4708173C: push ebx */ 124 PUSH32(esp, edi); /* 0x4708173D: push edi */ 125 RECOMP_ICALL(0x47081990u); /* 0x4708173E: call 0x47081990 */ /* not lifted */ 126 RECOMP_FLAGS_IN(); 127 edi = MEM32(esp + 0x20); /* 0x47081743: mov edi, dword ptr [esp + 0x20] */ 128 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 129 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 130 esp = esp + 0x10u; /* 0x47081747: add esp, 0x10 */ 131 _flag_k = FK_ADD; 132 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 133 ebx = 0; /* 0x4708174A: xor ebx, ebx */ 134 _cf = 0; 135 _flag_k = FK_TEST; 136 goto L_47081756; /* 0x4708174C: jmp 0x47081756 */ 137 L_4708174E: 138 MEM32(esp + 0x3C) = ebx; /* 0x4708174E: mov dword ptr [esp + 0x3c], ebx */ 139 MEM32(esp + 0x40) = ebx; /* 0x47081752: mov dword ptr [esp + 0x40], ebx */ 140 L_47081756: 141 ecx = MEM32(esp + 0x40); /* 0x47081756: mov ecx, dword ptr [esp + 0x40] */ 142 edx = MEM32(esp + 0x3C); /* 0x4708175A: mov edx, dword ptr [esp + 0x3c] */ 143 PUSH32(esp, ecx); /* 0x4708175E: push ecx */ 144 PUSH32(esp, edx); /* 0x4708175F: push edx */ 145 eax = esp + 0x6C; /* 0x47081760: lea eax, [esp + 0x6c] */ 146 PUSH32(esp, eax); /* 0x47081764: push eax */ 147 ecx = esp + 0x90; /* 0x47081765: lea ecx, [esp + 0x90] */ 148 PUSH32(esp, ecx); /* 0x4708176C: push ecx */ 149 RECOMP_ICALL(0x47054FC0u); /* 0x4708176D: call 0x47054fc0 */ /* not lifted */ 150 RECOMP_FLAGS_IN(); 151 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 152 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 153 esp = esp + 0x10u; /* 0x47081772: add esp, 0x10 */ 154 _flag_k = FK_ADD; 155 PUSH32(esp, esi); /* 0x47081775: push esi */ 156 edx = esp + 0x5C; /* 0x47081776: lea edx, [esp + 0x5c] */ 157 PUSH32(esp, edx); /* 0x4708177A: push edx */ 158 ecx = ebp; /* 0x4708177B: mov ecx, ebp */ 159 MEM32(esp + 0x60) = ebx; /* 0x4708177D: mov dword ptr [esp + 0x60], ebx */ 160 MEM32(esp + 0x64) = ebx; /* 0x47081781: mov dword ptr [esp + 0x64], ebx */ 161 MEM32(esp + 0x68) = edi; /* 0x47081785: mov dword ptr [esp + 0x68], edi */ 162 RECOMP_ICALL(0x47081360u); /* 0x47081789: call 0x47081360 */ /* not lifted */ 163 RECOMP_FLAGS_IN(); 164 /* test eax, eax */ /* 0x4708178E: test eax, eax */ 165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 166 _cf = 0; 167 _flag_k = FK_TEST; 168 if (TEST_Z(_flag_a, _flag_b)) goto L_4708179B; /* 0x47081790: je 0x4708179b */ 169 L_47081792: 170 MEM32(esp + 0x14) = ebx; /* 0x47081792: mov dword ptr [esp + 0x14], ebx */ 171 goto L_470818F8; /* 0x47081796: jmp 0x470818f8 */ 172 L_4708179B: 173 eax = MEM32(esp + 0x5C); /* 0x4708179B: mov eax, dword ptr [esp + 0x5c] */ 174 ecx = MEM32(esp + 0x58); /* 0x4708179F: mov ecx, dword ptr [esp + 0x58] */ 175 PUSH32(esp, eax); /* 0x470817A3: push eax */ 176 PUSH32(esp, ecx); /* 0x470817A4: push ecx */ 177 edx = esp + 0x6C; /* 0x470817A5: lea edx, [esp + 0x6c] */ 178 PUSH32(esp, edx); /* 0x470817A9: push edx */ 179 eax = esp + 0x190; /* 0x470817AA: lea eax, [esp + 0x190] */ 180 PUSH32(esp, eax); /* 0x470817B1: push eax */ 181 MEM32(esp + 0x24) = 1; /* 0x470817B2: mov dword ptr [esp + 0x24], 1 */ 182 RECOMP_ICALL(0x47054FC0u); /* 0x470817BA: call 0x47054fc0 */ /* not lifted */ 183 RECOMP_FLAGS_IN(); 184 eax = MEM32(ebp + 0x8); /* 0x470817BF: mov eax, dword ptr [ebp + 8] */ 185 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 187 esp = esp + 0x10u; /* 0x470817C2: add esp, 0x10 */ 188 _flag_k = FK_ADD; 189 /* cmp eax, ebx */ /* 0x470817C5: cmp eax, ebx */ 190 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 192 _flag_k = FK_CMP; 193 MEM32(esp + 0x2C) = ebx; /* 0x470817C7: mov dword ptr [esp + 0x2c], ebx */ 194 MEM32(esp + 0x30) = ebx; /* 0x470817CB: mov dword ptr [esp + 0x30], ebx */ 195 MEM32(esp + 0x34) = edi; /* 0x470817CF: mov dword ptr [esp + 0x34], edi */ 196 MEM32(esp + 0x20) = ebx; /* 0x470817D3: mov dword ptr [esp + 0x20], ebx */ 197 MEM32(esp + 0x24) = ebx; /* 0x470817D7: mov dword ptr [esp + 0x24], ebx */ 198 MEM32(esp + 0x28) = edi; /* 0x470817DB: mov dword ptr [esp + 0x28], edi */ 199 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708184C; /* 0x470817DF: je 0x4708184c */ 200 L_470817E1: 201 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x470817E1: cdq */ 202 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 203 edi = 0; /* 0x470817E2: xor edi, edi */ 204 _cf = 0; 205 _flag_k = FK_TEST; 206 /* cmp esi, edi */ /* 0x470817E4: cmp esi, edi */ 207 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 209 _flag_k = FK_CMP; 210 ebx = eax; /* 0x470817E6: mov ebx, eax */ 211 ebp = edx; /* 0x470817E8: mov ebp, edx */ 212 if (CMP_NE(_flag_a, _flag_b)) goto L_470817F2; /* 0x470817EA: jne 0x470817f2 */ 213 L_470817EC: 214 MEM32(esp + 0x2C) = edi; /* 0x470817EC: mov dword ptr [esp + 0x2c], edi */ 215 goto L_470817FF; /* 0x470817F0: jmp 0x470817ff */ 216 L_470817F2: 217 PUSH32(esp, edi); /* 0x470817F2: push edi */ 218 PUSH32(esp, esi); /* 0x470817F3: push esi */ 219 PUSH32(esp, ebp); /* 0x470817F4: push ebp */ 220 PUSH32(esp, ebx); /* 0x470817F5: push ebx */ 221 RECOMP_ICALL(0x470A3500u); /* 0x470817F6: call 0x470a3500 */ /* not lifted */ 222 RECOMP_FLAGS_IN(); 223 MEM32(esp + 0x2C) = eax; /* 0x470817FB: mov dword ptr [esp + 0x2c], eax */ 224 L_470817FF: 225 /* cmp MEM32(esp + 0x10), edi */ /* 0x470817FF: cmp dword ptr [esp + 0x10], edi */ 226 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(edi); 227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 228 _flag_k = FK_CMP; 229 if (CMP_A(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081803: ja 0x4708180f */ 230 L_47081805: 231 /* cmp esi, edi */ /* 0x47081805: cmp esi, edi */ 232 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 234 _flag_k = FK_CMP; 235 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081807: je 0x4708180f */ 236 L_47081809: 237 MEM32(esp + 0x30) = edi; /* 0x47081809: mov dword ptr [esp + 0x30], edi */ 238 goto L_47081842; /* 0x4708180D: jmp 0x47081842 */ 239 L_4708180F: 240 ecx = esp + 0x2C; /* 0x4708180F: lea ecx, [esp + 0x2c] */ 241 RECOMP_ICALL(0x47081200u); /* 0x47081813: call 0x47081200 */ /* not lifted */ 242 RECOMP_FLAGS_IN(); 243 PUSH32(esp, edi); /* 0x47081818: push edi */ 244 PUSH32(esp, esi); /* 0x47081819: push esi */ 245 PUSH32(esp, ebp); /* 0x4708181A: push ebp */ 246 ecx = eax; /* 0x4708181B: mov ecx, eax */ 247 PUSH32(esp, ebx); /* 0x4708181D: push ebx */ 248 MEM32(esp + 0x60) = ecx; /* 0x4708181E: mov dword ptr [esp + 0x60], ecx */ 249 RECOMP_ICALL(0x470A3640u); /* 0x47081822: call 0x470a3640 */ /* not lifted */ 250 RECOMP_FLAGS_IN(); 251 ecx = MEM32(esp + 0x50); /* 0x47081827: mov ecx, dword ptr [esp + 0x50] */ 252 PUSH32(esp, edx); /* 0x4708182B: push edx */ 253 PUSH32(esp, eax); /* 0x4708182C: push eax */ 254 PUSH32(esp, 0); /* 0x4708182D: push 0 */ 255 PUSH32(esp, ecx); /* 0x4708182F: push ecx */ 256 RECOMP_ICALL(0x470A34C0u); /* 0x47081830: call 0x470a34c0 */ /* not lifted */ 257 RECOMP_FLAGS_IN(); 258 PUSH32(esp, edi); /* 0x47081835: push edi */ 259 PUSH32(esp, esi); /* 0x47081836: push esi */ 260 PUSH32(esp, edx); /* 0x47081837: push edx */ 261 PUSH32(esp, eax); /* 0x47081838: push eax */ 262 RECOMP_ICALL(0x470A3500u); /* 0x47081839: call 0x470a3500 */ /* not lifted */ 263 RECOMP_FLAGS_IN(); 264 MEM32(esp + 0x30) = eax; /* 0x4708183E: mov dword ptr [esp + 0x30], eax */ 265 L_47081842: 266 ebp = MEM32(esp + 0x38); /* 0x47081842: mov ebp, dword ptr [esp + 0x38] */ 267 edi = MEM32(esp + 0x10); /* 0x47081846: mov edi, dword ptr [esp + 0x10] */ 268 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 269 ebx = 0; /* 0x4708184A: xor ebx, ebx */ 270 _cf = 0; 271 _flag_k = FK_TEST; 272 L_4708184C: 273 eax = MEM32(ebp + 0xC); /* 0x4708184C: mov eax, dword ptr [ebp + 0xc] */ 274 /* cmp eax, ebx */ /* 0x4708184F: cmp eax, ebx */ 275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 277 _flag_k = FK_CMP; 278 if (CMP_EQ(_flag_a, _flag_b)) goto L_470818BD; /* 0x47081851: je 0x470818bd */ 279 L_47081853: 280 /* cmp esi, ebx */ /* 0x47081853: cmp esi, ebx */ 281 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 283 _flag_k = FK_CMP; 284 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081855: cdq */ 285 MEM32(esp + 0x48) = eax; /* 0x47081856: mov dword ptr [esp + 0x48], eax */ 286 MEM32(esp + 0x4C) = edx; /* 0x4708185A: mov dword ptr [esp + 0x4c], edx */ 287 if (CMP_NE(_flag_a, _flag_b)) goto L_47081866; /* 0x4708185E: jne 0x47081866 */ 288 L_47081860: 289 MEM32(esp + 0x20) = ebx; /* 0x47081860: mov dword ptr [esp + 0x20], ebx */ 290 goto L_47081873; /* 0x47081864: jmp 0x47081873 */ 291 L_47081866: 292 PUSH32(esp, ebx); /* 0x47081866: push ebx */ 293 PUSH32(esp, esi); /* 0x47081867: push esi */ 294 PUSH32(esp, edx); /* 0x47081868: push edx */ 295 PUSH32(esp, eax); /* 0x47081869: push eax */ 296 RECOMP_ICALL(0x470A3500u); /* 0x4708186A: call 0x470a3500 */ /* not lifted */ 297 RECOMP_FLAGS_IN(); 298 MEM32(esp + 0x20) = eax; /* 0x4708186F: mov dword ptr [esp + 0x20], eax */ 299 L_47081873: 300 /* cmp MEM32(esp + 0x28), ebx */ /* 0x47081873: cmp dword ptr [esp + 0x28], ebx */ 301 _flag_a = (uint32_t)(MEM32(esp + 0x28)); _flag_b = (uint32_t)(ebx); 302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 303 _flag_k = FK_CMP; 304 if (CMP_A(_flag_a, _flag_b)) goto L_47081883; /* 0x47081877: ja 0x47081883 */ 305 L_47081879: 306 /* cmp esi, ebx */ /* 0x47081879: cmp esi, ebx */ 307 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 309 _flag_k = FK_CMP; 310 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081883; /* 0x4708187B: je 0x47081883 */ 311 L_4708187D: 312 MEM32(esp + 0x24) = ebx; /* 0x4708187D: mov dword ptr [esp + 0x24], ebx */ 313 goto L_470818BD; /* 0x47081881: jmp 0x470818bd */ 314 L_47081883: 315 ecx = esp + 0x20; /* 0x47081883: lea ecx, [esp + 0x20] */ 316 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 317 edi = 0; /* 0x47081887: xor edi, edi */ 318 _cf = 0; 319 _flag_k = FK_TEST; 320 RECOMP_ICALL(0x47081200u); /* 0x47081889: call 0x47081200 */ /* not lifted */ 321 RECOMP_FLAGS_IN(); 322 edx = MEM32(esp + 0x4C); /* 0x4708188E: mov edx, dword ptr [esp + 0x4c] */ 323 PUSH32(esp, edi); /* 0x47081892: push edi */ 324 PUSH32(esp, esi); /* 0x47081893: push esi */ 325 ebx = eax; /* 0x47081894: mov ebx, eax */ 326 eax = MEM32(esp + 0x50); /* 0x47081896: mov eax, dword ptr [esp + 0x50] */ 327 PUSH32(esp, edx); /* 0x4708189A: push edx */ 328 PUSH32(esp, eax); /* 0x4708189B: push eax */ 329 RECOMP_ICALL(0x470A3640u); /* 0x4708189C: call 0x470a3640 */ /* not lifted */ 330 RECOMP_FLAGS_IN(); 331 PUSH32(esp, edx); /* 0x470818A1: push edx */ 332 PUSH32(esp, eax); /* 0x470818A2: push eax */ 333 PUSH32(esp, edi); /* 0x470818A3: push edi */ 334 PUSH32(esp, ebx); /* 0x470818A4: push ebx */ 335 RECOMP_ICALL(0x470A34C0u); /* 0x470818A5: call 0x470a34c0 */ /* not lifted */ 336 RECOMP_FLAGS_IN(); 337 PUSH32(esp, edi); /* 0x470818AA: push edi */ 338 PUSH32(esp, esi); /* 0x470818AB: push esi */ 339 PUSH32(esp, edx); /* 0x470818AC: push edx */ 340 PUSH32(esp, eax); /* 0x470818AD: push eax */ 341 RECOMP_ICALL(0x470A3500u); /* 0x470818AE: call 0x470a3500 */ /* not lifted */ 342 RECOMP_FLAGS_IN(); 343 edi = MEM32(esp + 0x10); /* 0x470818B3: mov edi, dword ptr [esp + 0x10] */ 344 MEM32(esp + 0x24) = eax; /* 0x470818B7: mov dword ptr [esp + 0x24], eax */ 345 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 346 ebx = 0; /* 0x470818BB: xor ebx, ebx */ 347 _cf = 0; 348 _flag_k = FK_TEST; 349 L_470818BD: 350 ecx = MEM32(esp + 0x30); /* 0x470818BD: mov ecx, dword ptr [esp + 0x30] */ 351 edx = MEM32(esp + 0x2C); /* 0x470818C1: mov edx, dword ptr [esp + 0x2c] */ 352 PUSH32(esp, ecx); /* 0x470818C5: push ecx */ 353 PUSH32(esp, edx); /* 0x470818C6: push edx */ 354 eax = esp + 0x6C; /* 0x470818C7: lea eax, [esp + 0x6c] */ 355 PUSH32(esp, eax); /* 0x470818CB: push eax */ 356 ecx = esp + 0x210; /* 0x470818CC: lea ecx, [esp + 0x210] */ 357 PUSH32(esp, ecx); /* 0x470818D3: push ecx */ 358 RECOMP_ICALL(0x47054FC0u); /* 0x470818D4: call 0x47054fc0 */ /* not lifted */ 359 RECOMP_FLAGS_IN(); 360 edx = MEM32(esp + 0x34); /* 0x470818D9: mov edx, dword ptr [esp + 0x34] */ 361 eax = MEM32(esp + 0x30); /* 0x470818DD: mov eax, dword ptr [esp + 0x30] */ 362 PUSH32(esp, edx); /* 0x470818E1: push edx */ 363 PUSH32(esp, eax); /* 0x470818E2: push eax */ 364 ecx = esp + 0x7C; /* 0x470818E3: lea ecx, [esp + 0x7c] */ 365 PUSH32(esp, ecx); /* 0x470818E7: push ecx */ 366 edx = esp + 0x120; /* 0x470818E8: lea edx, [esp + 0x120] */ 367 PUSH32(esp, edx); /* 0x470818EF: push edx */ 368 RECOMP_ICALL(0x47054FC0u); /* 0x470818F0: call 0x47054fc0 */ /* not lifted */ 369 RECOMP_FLAGS_IN(); 370 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 371 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 372 esp = esp + 0x20u; /* 0x470818F5: add esp, 0x20 */ 373 _flag_k = FK_ADD; 374 L_470818F8: 375 eax = MEM32(ebp); /* 0x470818F8: mov eax, dword ptr [ebp] */ 376 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 377 edi = edi - 1; /* 0x470818FB: dec edi */ 378 _flag_k = FK_DEC; 379 /* cmp eax, ebx */ /* 0x470818FC: cmp eax, ebx */ 380 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 382 _flag_k = FK_CMP; 383 eax = MEM32(esp + 0x14); /* 0x470818FE: mov eax, dword ptr [esp + 0x14] */ 384 MEM32(esp + 0x10) = edi; /* 0x47081902: mov dword ptr [esp + 0x10], edi */ 385 RECOMP_BACKEDGE(); 386 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081691; /* 0x47081906: je 0x47081691 */ 387 L_4708190C: 388 /* cmp eax, 1 */ /* 0x4708190C: cmp eax, 1 */ 389 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 391 _flag_k = FK_CMP; 392 if (CMP_NE(_flag_a, _flag_b)) goto L_47081959; /* 0x4708190F: jne 0x47081959 */ 393 L_47081911: 394 eax = esp + 0x184; /* 0x47081911: lea eax, [esp + 0x184] */ 395 PUSH32(esp, eax); /* 0x47081918: push eax */ 396 ecx = esp + 0x88; /* 0x47081919: lea ecx, [esp + 0x88] */ 397 PUSH32(esp, ecx); /* 0x47081920: push ecx */ 398 ecx = MEM32(ebp + 0x4); /* 0x47081921: mov ecx, dword ptr [ebp + 4] */ 399 edx = esp + 0x10C; /* 0x47081924: lea edx, [esp + 0x10c] */ 400 PUSH32(esp, edx); /* 0x4708192B: push edx */ 401 edx = MEM32(esp + 0x29C); /* 0x4708192C: mov edx, dword ptr [esp + 0x29c] */ 402 eax = esp + 0x210; /* 0x47081933: lea eax, [esp + 0x210] */ 403 PUSH32(esp, eax); /* 0x4708193A: push eax */ 404 PUSH32(esp, ecx); /* 0x4708193B: push ecx */ 405 PUSH32(esp, 0x4710B5C8u); /* 0x4708193C: push 0x4710b5c8 */ 406 PUSH32(esp, edx); /* 0x47081941: push edx */ 407 RECOMP_ICALL(0x47054F80u); /* 0x47081942: call 0x47054f80 */ /* not lifted */ 408 RECOMP_FLAGS_IN(); 409 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 410 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 411 esp = esp + 0x1Cu; /* 0x47081947: add esp, 0x1c */ 412 _flag_k = FK_ADD; 413 edi = POP32_VAL(esp); /* 0x4708194A: pop edi */ 414 esi = POP32_VAL(esp); /* 0x4708194B: pop esi */ 415 ebp = POP32_VAL(esp); /* 0x4708194C: pop ebp */ 416 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 417 eax = 0; /* 0x4708194D: xor eax, eax */ 418 _cf = 0; 419 _flag_k = FK_TEST; 420 ebx = POP32_VAL(esp); /* 0x4708194F: pop ebx */ 421 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 422 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 423 esp = esp + 0x274u; /* 0x47081950: add esp, 0x274 */ 424 _flag_k = FK_ADD; 425 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081956: ret 0xc */ 426 L_47081959: 427 eax = MEM32(ebp); /* 0x47081959: mov eax, dword ptr [ebp] */ 428 PUSH32(esp, eax); /* 0x4708195C: push eax */ 429 RECOMP_ICALL(MEM32(0x470AC324)); /* 0x4708195D: call dword ptr [0x470ac324] */ 430 RECOMP_FLAGS_IN(); 431 ecx = MEM32(esp + 0x294); /* 0x47081963: mov ecx, dword ptr [esp + 0x294] */ 432 PUSH32(esp, eax); /* 0x4708196A: push eax */ 433 PUSH32(esp, 0x4710B5A0u); /* 0x4708196B: push 0x4710b5a0 */ 434 PUSH32(esp, ecx); /* 0x47081970: push ecx */ 435 RECOMP_ICALL(0x47054F80u); /* 0x47081971: call 0x47054f80 */ /* not lifted */ 436 RECOMP_FLAGS_IN(); 437 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 438 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 439 esp = esp + 0x10u; /* 0x47081976: add esp, 0x10 */ 440 _flag_k = FK_ADD; 441 edi = POP32_VAL(esp); /* 0x47081979: pop edi */ 442 esi = POP32_VAL(esp); /* 0x4708197A: pop esi */ 443 ebp = POP32_VAL(esp); /* 0x4708197B: pop ebp */ 444 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 445 eax = eax | 0xFFFFFFFFu; /* 0x4708197C: or eax, 0xffffffff */ 446 _cf = 0; 447 _flag_k = FK_TEST; 448 ebx = POP32_VAL(esp); /* 0x4708197F: pop ebx */ 449 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 450 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 451 esp = esp + 0x274u; /* 0x47081980: add esp, 0x274 */ 452 _flag_k = FK_ADD; 453 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081986: ret 0xc */ 454 RECOMP_REGS_OUT(); 455 } 456 457 void sub_470816BB(void) { 458 int _fpu_cmp = 0; 459 uint32_t _cf = 0; 460 int _df = 1; 461 uint32_t _flag_k = FK_NONE; 462 uint32_t _flag_a = 0, _flag_b = 0; 463 uint32_t _itail_tgt = 0; 464 RECOMP_REGS_LOCALS 465 RECOMP_ENTER(0x470816BBu); 466 467 goto L_470816BB; 468 L_47081691: 469 /* cmp eax, ebx */ /* 0x47081691: cmp eax, ebx */ 470 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 471 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 472 _flag_k = FK_CMP; 473 if (CMP_NE(_flag_a, _flag_b)) goto L_4708190C; /* 0x47081693: jne 0x4708190c */ 474 L_47081699: 475 /* cmp edi, ebx */ /* 0x47081699: cmp edi, ebx */ 476 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 478 _flag_k = FK_CMP; 479 if (CMP_L(_flag_a, _flag_b)) goto L_47081959; /* 0x4708169B: jl 0x47081959 */ 480 L_470816A1: 481 if (CMP_NE(_flag_a, _flag_b)) goto L_470816B0; /* 0x470816A1: jne 0x470816b0 */ 482 L_470816A3: 483 PUSH32(esp, ebx); /* 0x470816A3: push ebx */ 484 PUSH32(esp, 0x4710B604u); /* 0x470816A4: push 0x4710b604 */ 485 eax = esp + 0x6C; /* 0x470816A9: lea eax, [esp + 0x6c] */ 486 PUSH32(esp, eax); /* 0x470816AD: push eax */ 487 goto L_470816BB; /* 0x470816AE: jmp 0x470816bb */ 488 L_470816B0: 489 PUSH32(esp, edi); /* 0x470816B0: push edi */ 490 PUSH32(esp, 0x4710B5F8u); /* 0x470816B1: push 0x4710b5f8 */ 491 ecx = esp + 0x6C; /* 0x470816B6: lea ecx, [esp + 0x6c] */ 492 PUSH32(esp, ecx); /* 0x470816BA: push ecx */ 493 L_470816BB: 494 RECOMP_ICALL(0x47054FC0u); /* 0x470816BB: call 0x47054fc0 */ /* not lifted */ 495 RECOMP_FLAGS_IN(); 496 eax = MEM32(ebp + 0x4); /* 0x470816C0: mov eax, dword ptr [ebp + 4] */ 497 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 498 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 499 esp = esp + 0xCu; /* 0x470816C3: add esp, 0xc */ 500 _flag_k = FK_ADD; 501 /* cmp eax, ebx */ /* 0x470816C6: cmp eax, ebx */ 502 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 504 _flag_k = FK_CMP; 505 MEM32(esp + 0x3C) = ebx; /* 0x470816C8: mov dword ptr [esp + 0x3c], ebx */ 506 MEM32(esp + 0x40) = ebx; /* 0x470816CC: mov dword ptr [esp + 0x40], ebx */ 507 MEM32(esp + 0x44) = edi; /* 0x470816D0: mov dword ptr [esp + 0x44], edi */ 508 if (CMP_BE(_flag_a, _flag_b)) goto L_4708174E; /* 0x470816D4: jbe 0x4708174e */ 509 L_470816D6: 510 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 511 edi = 0; /* 0x470816D6: xor edi, edi */ 512 _cf = 0; 513 _flag_k = FK_TEST; 514 PUSH32(esp, edi); /* 0x470816D8: push edi */ 515 edx = ebp + 0x10; /* 0x470816D9: lea edx, [ebp + 0x10] */ 516 PUSH32(esp, edx); /* 0x470816DC: push edx */ 517 ecx = esp + 0x20; /* 0x470816DD: lea ecx, [esp + 0x20] */ 518 ebx = 1; /* 0x470816E1: mov ebx, 1 */ 519 RECOMP_ICALL(0x470820E0u); /* 0x470816E6: call 0x470820e0 */ /* not lifted */ 520 RECOMP_FLAGS_IN(); 521 eax = MEM32(esp + 0x1C); /* 0x470816EB: mov eax, dword ptr [esp + 0x1c] */ 522 ecx = MEM32(esp + 0x18); /* 0x470816EF: mov ecx, dword ptr [esp + 0x18] */ 523 /* cmp ecx, MEM32(eax) */ /* 0x470816F3: cmp ecx, dword ptr [eax] */ 524 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 526 _flag_k = FK_CMP; 527 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708172A; /* 0x470816F5: je 0x4708172a */ 528 L_470816F7: 529 edx = esp + 0x54; /* 0x470816F7: lea edx, [esp + 0x54] */ 530 PUSH32(esp, edx); /* 0x470816FB: push edx */ 531 ecx = esp + 0x1C; /* 0x470816FC: lea ecx, [esp + 0x1c] */ 532 RECOMP_ICALL(0x47082100u); /* 0x47081700: call 0x47082100 */ /* not lifted */ 533 RECOMP_FLAGS_IN(); 534 /* test eax, eax */ /* 0x47081705: test eax, eax */ 535 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 536 _cf = 0; 537 _flag_k = FK_TEST; 538 if (TEST_Z(_flag_a, _flag_b)) goto L_4708171E; /* 0x47081707: je 0x4708171e */ 539 L_47081709: 540 eax = MEM32(esp + 0x54); /* 0x47081709: mov eax, dword ptr [esp + 0x54] */ 541 eax = MEM32(eax); /* 0x4708170D: mov eax, dword ptr [eax] */ 542 ecx = MEM32(esp + 0x18); /* 0x4708170F: mov ecx, dword ptr [esp + 0x18] */ 543 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081713: cdq */ 544 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 545 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 546 edi = edi + eax; /* 0x47081714: add edi, eax */ 547 _flag_k = FK_ADD; 548 { uint32_t _aa = ebx, _ab = edx, _ac = _cf; /* 0x47081716: adc ebx, edx */ 549 ebx = _aa + _ab + _ac; 550 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 551 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 552 edx = MEM32(ecx); /* 0x47081718: mov edx, dword ptr [ecx] */ 553 MEM32(esp + 0x18) = edx; /* 0x4708171A: mov dword ptr [esp + 0x18], edx */ 554 L_4708171E: 555 eax = MEM32(esp + 0x1C); /* 0x4708171E: mov eax, dword ptr [esp + 0x1c] */ 556 ecx = MEM32(esp + 0x18); /* 0x47081722: mov ecx, dword ptr [esp + 0x18] */ 557 /* cmp ecx, MEM32(eax) */ /* 0x47081726: cmp ecx, dword ptr [eax] */ 558 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 560 _flag_k = FK_CMP; 561 RECOMP_BACKEDGE(); 562 if (CMP_NE(_flag_a, _flag_b)) goto L_470816F7; /* 0x47081728: jne 0x470816f7 */ 563 L_4708172A: 564 eax = MEM32(ebp + 0x4); /* 0x4708172A: mov eax, dword ptr [ebp + 4] */ 565 eax = (uint32_t)((int32_t)eax * (int32_t)esi); /* 0x4708172D: imul eax, esi */ 566 edx = esp + 0x3C; /* 0x47081730: lea edx, [esp + 0x3c] */ 567 PUSH32(esp, edx); /* 0x47081734: push edx */ 568 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0); 569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 570 edi = edi - 0; /* 0x47081735: sub edi, 0 */ 571 _flag_k = FK_CMP; 572 PUSH32(esp, eax); /* 0x47081738: push eax */ 573 { uint32_t _sa = ebx, _sb = 1, _sc = _cf; /* 0x47081739: sbb ebx, 1 */ 574 ebx = _sa - _sb - _sc; 575 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 576 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 577 PUSH32(esp, ebx); /* 0x4708173C: push ebx */ 578 PUSH32(esp, edi); /* 0x4708173D: push edi */ 579 RECOMP_ICALL(0x47081990u); /* 0x4708173E: call 0x47081990 */ /* not lifted */ 580 RECOMP_FLAGS_IN(); 581 edi = MEM32(esp + 0x20); /* 0x47081743: mov edi, dword ptr [esp + 0x20] */ 582 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 583 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 584 esp = esp + 0x10u; /* 0x47081747: add esp, 0x10 */ 585 _flag_k = FK_ADD; 586 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 587 ebx = 0; /* 0x4708174A: xor ebx, ebx */ 588 _cf = 0; 589 _flag_k = FK_TEST; 590 goto L_47081756; /* 0x4708174C: jmp 0x47081756 */ 591 L_4708174E: 592 MEM32(esp + 0x3C) = ebx; /* 0x4708174E: mov dword ptr [esp + 0x3c], ebx */ 593 MEM32(esp + 0x40) = ebx; /* 0x47081752: mov dword ptr [esp + 0x40], ebx */ 594 L_47081756: 595 ecx = MEM32(esp + 0x40); /* 0x47081756: mov ecx, dword ptr [esp + 0x40] */ 596 edx = MEM32(esp + 0x3C); /* 0x4708175A: mov edx, dword ptr [esp + 0x3c] */ 597 PUSH32(esp, ecx); /* 0x4708175E: push ecx */ 598 PUSH32(esp, edx); /* 0x4708175F: push edx */ 599 eax = esp + 0x6C; /* 0x47081760: lea eax, [esp + 0x6c] */ 600 PUSH32(esp, eax); /* 0x47081764: push eax */ 601 ecx = esp + 0x90; /* 0x47081765: lea ecx, [esp + 0x90] */ 602 PUSH32(esp, ecx); /* 0x4708176C: push ecx */ 603 RECOMP_ICALL(0x47054FC0u); /* 0x4708176D: call 0x47054fc0 */ /* not lifted */ 604 RECOMP_FLAGS_IN(); 605 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 606 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 607 esp = esp + 0x10u; /* 0x47081772: add esp, 0x10 */ 608 _flag_k = FK_ADD; 609 PUSH32(esp, esi); /* 0x47081775: push esi */ 610 edx = esp + 0x5C; /* 0x47081776: lea edx, [esp + 0x5c] */ 611 PUSH32(esp, edx); /* 0x4708177A: push edx */ 612 ecx = ebp; /* 0x4708177B: mov ecx, ebp */ 613 MEM32(esp + 0x60) = ebx; /* 0x4708177D: mov dword ptr [esp + 0x60], ebx */ 614 MEM32(esp + 0x64) = ebx; /* 0x47081781: mov dword ptr [esp + 0x64], ebx */ 615 MEM32(esp + 0x68) = edi; /* 0x47081785: mov dword ptr [esp + 0x68], edi */ 616 RECOMP_ICALL(0x47081360u); /* 0x47081789: call 0x47081360 */ /* not lifted */ 617 RECOMP_FLAGS_IN(); 618 /* test eax, eax */ /* 0x4708178E: test eax, eax */ 619 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 620 _cf = 0; 621 _flag_k = FK_TEST; 622 if (TEST_Z(_flag_a, _flag_b)) goto L_4708179B; /* 0x47081790: je 0x4708179b */ 623 L_47081792: 624 MEM32(esp + 0x14) = ebx; /* 0x47081792: mov dword ptr [esp + 0x14], ebx */ 625 goto L_470818F8; /* 0x47081796: jmp 0x470818f8 */ 626 L_4708179B: 627 eax = MEM32(esp + 0x5C); /* 0x4708179B: mov eax, dword ptr [esp + 0x5c] */ 628 ecx = MEM32(esp + 0x58); /* 0x4708179F: mov ecx, dword ptr [esp + 0x58] */ 629 PUSH32(esp, eax); /* 0x470817A3: push eax */ 630 PUSH32(esp, ecx); /* 0x470817A4: push ecx */ 631 edx = esp + 0x6C; /* 0x470817A5: lea edx, [esp + 0x6c] */ 632 PUSH32(esp, edx); /* 0x470817A9: push edx */ 633 eax = esp + 0x190; /* 0x470817AA: lea eax, [esp + 0x190] */ 634 PUSH32(esp, eax); /* 0x470817B1: push eax */ 635 MEM32(esp + 0x24) = 1; /* 0x470817B2: mov dword ptr [esp + 0x24], 1 */ 636 RECOMP_ICALL(0x47054FC0u); /* 0x470817BA: call 0x47054fc0 */ /* not lifted */ 637 RECOMP_FLAGS_IN(); 638 eax = MEM32(ebp + 0x8); /* 0x470817BF: mov eax, dword ptr [ebp + 8] */ 639 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 641 esp = esp + 0x10u; /* 0x470817C2: add esp, 0x10 */ 642 _flag_k = FK_ADD; 643 /* cmp eax, ebx */ /* 0x470817C5: cmp eax, ebx */ 644 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 646 _flag_k = FK_CMP; 647 MEM32(esp + 0x2C) = ebx; /* 0x470817C7: mov dword ptr [esp + 0x2c], ebx */ 648 MEM32(esp + 0x30) = ebx; /* 0x470817CB: mov dword ptr [esp + 0x30], ebx */ 649 MEM32(esp + 0x34) = edi; /* 0x470817CF: mov dword ptr [esp + 0x34], edi */ 650 MEM32(esp + 0x20) = ebx; /* 0x470817D3: mov dword ptr [esp + 0x20], ebx */ 651 MEM32(esp + 0x24) = ebx; /* 0x470817D7: mov dword ptr [esp + 0x24], ebx */ 652 MEM32(esp + 0x28) = edi; /* 0x470817DB: mov dword ptr [esp + 0x28], edi */ 653 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708184C; /* 0x470817DF: je 0x4708184c */ 654 L_470817E1: 655 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x470817E1: cdq */ 656 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 657 edi = 0; /* 0x470817E2: xor edi, edi */ 658 _cf = 0; 659 _flag_k = FK_TEST; 660 /* cmp esi, edi */ /* 0x470817E4: cmp esi, edi */ 661 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 663 _flag_k = FK_CMP; 664 ebx = eax; /* 0x470817E6: mov ebx, eax */ 665 ebp = edx; /* 0x470817E8: mov ebp, edx */ 666 if (CMP_NE(_flag_a, _flag_b)) goto L_470817F2; /* 0x470817EA: jne 0x470817f2 */ 667 L_470817EC: 668 MEM32(esp + 0x2C) = edi; /* 0x470817EC: mov dword ptr [esp + 0x2c], edi */ 669 goto L_470817FF; /* 0x470817F0: jmp 0x470817ff */ 670 L_470817F2: 671 PUSH32(esp, edi); /* 0x470817F2: push edi */ 672 PUSH32(esp, esi); /* 0x470817F3: push esi */ 673 PUSH32(esp, ebp); /* 0x470817F4: push ebp */ 674 PUSH32(esp, ebx); /* 0x470817F5: push ebx */ 675 RECOMP_ICALL(0x470A3500u); /* 0x470817F6: call 0x470a3500 */ /* not lifted */ 676 RECOMP_FLAGS_IN(); 677 MEM32(esp + 0x2C) = eax; /* 0x470817FB: mov dword ptr [esp + 0x2c], eax */ 678 L_470817FF: 679 /* cmp MEM32(esp + 0x10), edi */ /* 0x470817FF: cmp dword ptr [esp + 0x10], edi */ 680 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(edi); 681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 682 _flag_k = FK_CMP; 683 if (CMP_A(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081803: ja 0x4708180f */ 684 L_47081805: 685 /* cmp esi, edi */ /* 0x47081805: cmp esi, edi */ 686 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 688 _flag_k = FK_CMP; 689 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081807: je 0x4708180f */ 690 L_47081809: 691 MEM32(esp + 0x30) = edi; /* 0x47081809: mov dword ptr [esp + 0x30], edi */ 692 goto L_47081842; /* 0x4708180D: jmp 0x47081842 */ 693 L_4708180F: 694 ecx = esp + 0x2C; /* 0x4708180F: lea ecx, [esp + 0x2c] */ 695 RECOMP_ICALL(0x47081200u); /* 0x47081813: call 0x47081200 */ /* not lifted */ 696 RECOMP_FLAGS_IN(); 697 PUSH32(esp, edi); /* 0x47081818: push edi */ 698 PUSH32(esp, esi); /* 0x47081819: push esi */ 699 PUSH32(esp, ebp); /* 0x4708181A: push ebp */ 700 ecx = eax; /* 0x4708181B: mov ecx, eax */ 701 PUSH32(esp, ebx); /* 0x4708181D: push ebx */ 702 MEM32(esp + 0x60) = ecx; /* 0x4708181E: mov dword ptr [esp + 0x60], ecx */ 703 RECOMP_ICALL(0x470A3640u); /* 0x47081822: call 0x470a3640 */ /* not lifted */ 704 RECOMP_FLAGS_IN(); 705 ecx = MEM32(esp + 0x50); /* 0x47081827: mov ecx, dword ptr [esp + 0x50] */ 706 PUSH32(esp, edx); /* 0x4708182B: push edx */ 707 PUSH32(esp, eax); /* 0x4708182C: push eax */ 708 PUSH32(esp, 0); /* 0x4708182D: push 0 */ 709 PUSH32(esp, ecx); /* 0x4708182F: push ecx */ 710 RECOMP_ICALL(0x470A34C0u); /* 0x47081830: call 0x470a34c0 */ /* not lifted */ 711 RECOMP_FLAGS_IN(); 712 PUSH32(esp, edi); /* 0x47081835: push edi */ 713 PUSH32(esp, esi); /* 0x47081836: push esi */ 714 PUSH32(esp, edx); /* 0x47081837: push edx */ 715 PUSH32(esp, eax); /* 0x47081838: push eax */ 716 RECOMP_ICALL(0x470A3500u); /* 0x47081839: call 0x470a3500 */ /* not lifted */ 717 RECOMP_FLAGS_IN(); 718 MEM32(esp + 0x30) = eax; /* 0x4708183E: mov dword ptr [esp + 0x30], eax */ 719 L_47081842: 720 ebp = MEM32(esp + 0x38); /* 0x47081842: mov ebp, dword ptr [esp + 0x38] */ 721 edi = MEM32(esp + 0x10); /* 0x47081846: mov edi, dword ptr [esp + 0x10] */ 722 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 723 ebx = 0; /* 0x4708184A: xor ebx, ebx */ 724 _cf = 0; 725 _flag_k = FK_TEST; 726 L_4708184C: 727 eax = MEM32(ebp + 0xC); /* 0x4708184C: mov eax, dword ptr [ebp + 0xc] */ 728 /* cmp eax, ebx */ /* 0x4708184F: cmp eax, ebx */ 729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 731 _flag_k = FK_CMP; 732 if (CMP_EQ(_flag_a, _flag_b)) goto L_470818BD; /* 0x47081851: je 0x470818bd */ 733 L_47081853: 734 /* cmp esi, ebx */ /* 0x47081853: cmp esi, ebx */ 735 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 737 _flag_k = FK_CMP; 738 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081855: cdq */ 739 MEM32(esp + 0x48) = eax; /* 0x47081856: mov dword ptr [esp + 0x48], eax */ 740 MEM32(esp + 0x4C) = edx; /* 0x4708185A: mov dword ptr [esp + 0x4c], edx */ 741 if (CMP_NE(_flag_a, _flag_b)) goto L_47081866; /* 0x4708185E: jne 0x47081866 */ 742 L_47081860: 743 MEM32(esp + 0x20) = ebx; /* 0x47081860: mov dword ptr [esp + 0x20], ebx */ 744 goto L_47081873; /* 0x47081864: jmp 0x47081873 */ 745 L_47081866: 746 PUSH32(esp, ebx); /* 0x47081866: push ebx */ 747 PUSH32(esp, esi); /* 0x47081867: push esi */ 748 PUSH32(esp, edx); /* 0x47081868: push edx */ 749 PUSH32(esp, eax); /* 0x47081869: push eax */ 750 RECOMP_ICALL(0x470A3500u); /* 0x4708186A: call 0x470a3500 */ /* not lifted */ 751 RECOMP_FLAGS_IN(); 752 MEM32(esp + 0x20) = eax; /* 0x4708186F: mov dword ptr [esp + 0x20], eax */ 753 L_47081873: 754 /* cmp MEM32(esp + 0x28), ebx */ /* 0x47081873: cmp dword ptr [esp + 0x28], ebx */ 755 _flag_a = (uint32_t)(MEM32(esp + 0x28)); _flag_b = (uint32_t)(ebx); 756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 757 _flag_k = FK_CMP; 758 if (CMP_A(_flag_a, _flag_b)) goto L_47081883; /* 0x47081877: ja 0x47081883 */ 759 L_47081879: 760 /* cmp esi, ebx */ /* 0x47081879: cmp esi, ebx */ 761 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 763 _flag_k = FK_CMP; 764 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081883; /* 0x4708187B: je 0x47081883 */ 765 L_4708187D: 766 MEM32(esp + 0x24) = ebx; /* 0x4708187D: mov dword ptr [esp + 0x24], ebx */ 767 goto L_470818BD; /* 0x47081881: jmp 0x470818bd */ 768 L_47081883: 769 ecx = esp + 0x20; /* 0x47081883: lea ecx, [esp + 0x20] */ 770 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 771 edi = 0; /* 0x47081887: xor edi, edi */ 772 _cf = 0; 773 _flag_k = FK_TEST; 774 RECOMP_ICALL(0x47081200u); /* 0x47081889: call 0x47081200 */ /* not lifted */ 775 RECOMP_FLAGS_IN(); 776 edx = MEM32(esp + 0x4C); /* 0x4708188E: mov edx, dword ptr [esp + 0x4c] */ 777 PUSH32(esp, edi); /* 0x47081892: push edi */ 778 PUSH32(esp, esi); /* 0x47081893: push esi */ 779 ebx = eax; /* 0x47081894: mov ebx, eax */ 780 eax = MEM32(esp + 0x50); /* 0x47081896: mov eax, dword ptr [esp + 0x50] */ 781 PUSH32(esp, edx); /* 0x4708189A: push edx */ 782 PUSH32(esp, eax); /* 0x4708189B: push eax */ 783 RECOMP_ICALL(0x470A3640u); /* 0x4708189C: call 0x470a3640 */ /* not lifted */ 784 RECOMP_FLAGS_IN(); 785 PUSH32(esp, edx); /* 0x470818A1: push edx */ 786 PUSH32(esp, eax); /* 0x470818A2: push eax */ 787 PUSH32(esp, edi); /* 0x470818A3: push edi */ 788 PUSH32(esp, ebx); /* 0x470818A4: push ebx */ 789 RECOMP_ICALL(0x470A34C0u); /* 0x470818A5: call 0x470a34c0 */ /* not lifted */ 790 RECOMP_FLAGS_IN(); 791 PUSH32(esp, edi); /* 0x470818AA: push edi */ 792 PUSH32(esp, esi); /* 0x470818AB: push esi */ 793 PUSH32(esp, edx); /* 0x470818AC: push edx */ 794 PUSH32(esp, eax); /* 0x470818AD: push eax */ 795 RECOMP_ICALL(0x470A3500u); /* 0x470818AE: call 0x470a3500 */ /* not lifted */ 796 RECOMP_FLAGS_IN(); 797 edi = MEM32(esp + 0x10); /* 0x470818B3: mov edi, dword ptr [esp + 0x10] */ 798 MEM32(esp + 0x24) = eax; /* 0x470818B7: mov dword ptr [esp + 0x24], eax */ 799 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 800 ebx = 0; /* 0x470818BB: xor ebx, ebx */ 801 _cf = 0; 802 _flag_k = FK_TEST; 803 L_470818BD: 804 ecx = MEM32(esp + 0x30); /* 0x470818BD: mov ecx, dword ptr [esp + 0x30] */ 805 edx = MEM32(esp + 0x2C); /* 0x470818C1: mov edx, dword ptr [esp + 0x2c] */ 806 PUSH32(esp, ecx); /* 0x470818C5: push ecx */ 807 PUSH32(esp, edx); /* 0x470818C6: push edx */ 808 eax = esp + 0x6C; /* 0x470818C7: lea eax, [esp + 0x6c] */ 809 PUSH32(esp, eax); /* 0x470818CB: push eax */ 810 ecx = esp + 0x210; /* 0x470818CC: lea ecx, [esp + 0x210] */ 811 PUSH32(esp, ecx); /* 0x470818D3: push ecx */ 812 RECOMP_ICALL(0x47054FC0u); /* 0x470818D4: call 0x47054fc0 */ /* not lifted */ 813 RECOMP_FLAGS_IN(); 814 edx = MEM32(esp + 0x34); /* 0x470818D9: mov edx, dword ptr [esp + 0x34] */ 815 eax = MEM32(esp + 0x30); /* 0x470818DD: mov eax, dword ptr [esp + 0x30] */ 816 PUSH32(esp, edx); /* 0x470818E1: push edx */ 817 PUSH32(esp, eax); /* 0x470818E2: push eax */ 818 ecx = esp + 0x7C; /* 0x470818E3: lea ecx, [esp + 0x7c] */ 819 PUSH32(esp, ecx); /* 0x470818E7: push ecx */ 820 edx = esp + 0x120; /* 0x470818E8: lea edx, [esp + 0x120] */ 821 PUSH32(esp, edx); /* 0x470818EF: push edx */ 822 RECOMP_ICALL(0x47054FC0u); /* 0x470818F0: call 0x47054fc0 */ /* not lifted */ 823 RECOMP_FLAGS_IN(); 824 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 825 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 826 esp = esp + 0x20u; /* 0x470818F5: add esp, 0x20 */ 827 _flag_k = FK_ADD; 828 L_470818F8: 829 eax = MEM32(ebp); /* 0x470818F8: mov eax, dword ptr [ebp] */ 830 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 831 edi = edi - 1; /* 0x470818FB: dec edi */ 832 _flag_k = FK_DEC; 833 /* cmp eax, ebx */ /* 0x470818FC: cmp eax, ebx */ 834 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 836 _flag_k = FK_CMP; 837 eax = MEM32(esp + 0x14); /* 0x470818FE: mov eax, dword ptr [esp + 0x14] */ 838 MEM32(esp + 0x10) = edi; /* 0x47081902: mov dword ptr [esp + 0x10], edi */ 839 RECOMP_BACKEDGE(); 840 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081691; /* 0x47081906: je 0x47081691 */ 841 L_4708190C: 842 /* cmp eax, 1 */ /* 0x4708190C: cmp eax, 1 */ 843 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 845 _flag_k = FK_CMP; 846 if (CMP_NE(_flag_a, _flag_b)) goto L_47081959; /* 0x4708190F: jne 0x47081959 */ 847 L_47081911: 848 eax = esp + 0x184; /* 0x47081911: lea eax, [esp + 0x184] */ 849 PUSH32(esp, eax); /* 0x47081918: push eax */ 850 ecx = esp + 0x88; /* 0x47081919: lea ecx, [esp + 0x88] */ 851 PUSH32(esp, ecx); /* 0x47081920: push ecx */ 852 ecx = MEM32(ebp + 0x4); /* 0x47081921: mov ecx, dword ptr [ebp + 4] */ 853 edx = esp + 0x10C; /* 0x47081924: lea edx, [esp + 0x10c] */ 854 PUSH32(esp, edx); /* 0x4708192B: push edx */ 855 edx = MEM32(esp + 0x29C); /* 0x4708192C: mov edx, dword ptr [esp + 0x29c] */ 856 eax = esp + 0x210; /* 0x47081933: lea eax, [esp + 0x210] */ 857 PUSH32(esp, eax); /* 0x4708193A: push eax */ 858 PUSH32(esp, ecx); /* 0x4708193B: push ecx */ 859 PUSH32(esp, 0x4710B5C8u); /* 0x4708193C: push 0x4710b5c8 */ 860 PUSH32(esp, edx); /* 0x47081941: push edx */ 861 RECOMP_ICALL(0x47054F80u); /* 0x47081942: call 0x47054f80 */ /* not lifted */ 862 RECOMP_FLAGS_IN(); 863 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 865 esp = esp + 0x1Cu; /* 0x47081947: add esp, 0x1c */ 866 _flag_k = FK_ADD; 867 edi = POP32_VAL(esp); /* 0x4708194A: pop edi */ 868 esi = POP32_VAL(esp); /* 0x4708194B: pop esi */ 869 ebp = POP32_VAL(esp); /* 0x4708194C: pop ebp */ 870 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 871 eax = 0; /* 0x4708194D: xor eax, eax */ 872 _cf = 0; 873 _flag_k = FK_TEST; 874 ebx = POP32_VAL(esp); /* 0x4708194F: pop ebx */ 875 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 876 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 877 esp = esp + 0x274u; /* 0x47081950: add esp, 0x274 */ 878 _flag_k = FK_ADD; 879 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081956: ret 0xc */ 880 L_47081959: 881 eax = MEM32(ebp); /* 0x47081959: mov eax, dword ptr [ebp] */ 882 PUSH32(esp, eax); /* 0x4708195C: push eax */ 883 RECOMP_ICALL(MEM32(0x470AC324)); /* 0x4708195D: call dword ptr [0x470ac324] */ 884 RECOMP_FLAGS_IN(); 885 ecx = MEM32(esp + 0x294); /* 0x47081963: mov ecx, dword ptr [esp + 0x294] */ 886 PUSH32(esp, eax); /* 0x4708196A: push eax */ 887 PUSH32(esp, 0x4710B5A0u); /* 0x4708196B: push 0x4710b5a0 */ 888 PUSH32(esp, ecx); /* 0x47081970: push ecx */ 889 RECOMP_ICALL(0x47054F80u); /* 0x47081971: call 0x47054f80 */ /* not lifted */ 890 RECOMP_FLAGS_IN(); 891 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 892 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 893 esp = esp + 0x10u; /* 0x47081976: add esp, 0x10 */ 894 _flag_k = FK_ADD; 895 edi = POP32_VAL(esp); /* 0x47081979: pop edi */ 896 esi = POP32_VAL(esp); /* 0x4708197A: pop esi */ 897 ebp = POP32_VAL(esp); /* 0x4708197B: pop ebp */ 898 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 899 eax = eax | 0xFFFFFFFFu; /* 0x4708197C: or eax, 0xffffffff */ 900 _cf = 0; 901 _flag_k = FK_TEST; 902 ebx = POP32_VAL(esp); /* 0x4708197F: pop ebx */ 903 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 905 esp = esp + 0x274u; /* 0x47081980: add esp, 0x274 */ 906 _flag_k = FK_ADD; 907 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081986: ret 0xc */ 908 RECOMP_REGS_OUT(); 909 } 910 911 void sub_47081756(void) { 912 int _fpu_cmp = 0; 913 uint32_t _cf = 0; 914 int _df = 1; 915 uint32_t _flag_k = FK_NONE; 916 uint32_t _flag_a = 0, _flag_b = 0; 917 uint32_t _itail_tgt = 0; 918 RECOMP_REGS_LOCALS 919 RECOMP_ENTER(0x47081756u); 920 921 goto L_47081756; 922 L_47081691: 923 /* cmp eax, ebx */ /* 0x47081691: cmp eax, ebx */ 924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 926 _flag_k = FK_CMP; 927 if (CMP_NE(_flag_a, _flag_b)) goto L_4708190C; /* 0x47081693: jne 0x4708190c */ 928 L_47081699: 929 /* cmp edi, ebx */ /* 0x47081699: cmp edi, ebx */ 930 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 932 _flag_k = FK_CMP; 933 if (CMP_L(_flag_a, _flag_b)) goto L_47081959; /* 0x4708169B: jl 0x47081959 */ 934 L_470816A1: 935 if (CMP_NE(_flag_a, _flag_b)) goto L_470816B0; /* 0x470816A1: jne 0x470816b0 */ 936 L_470816A3: 937 PUSH32(esp, ebx); /* 0x470816A3: push ebx */ 938 PUSH32(esp, 0x4710B604u); /* 0x470816A4: push 0x4710b604 */ 939 eax = esp + 0x6C; /* 0x470816A9: lea eax, [esp + 0x6c] */ 940 PUSH32(esp, eax); /* 0x470816AD: push eax */ 941 goto L_470816BB; /* 0x470816AE: jmp 0x470816bb */ 942 L_470816B0: 943 PUSH32(esp, edi); /* 0x470816B0: push edi */ 944 PUSH32(esp, 0x4710B5F8u); /* 0x470816B1: push 0x4710b5f8 */ 945 ecx = esp + 0x6C; /* 0x470816B6: lea ecx, [esp + 0x6c] */ 946 PUSH32(esp, ecx); /* 0x470816BA: push ecx */ 947 L_470816BB: 948 RECOMP_ICALL(0x47054FC0u); /* 0x470816BB: call 0x47054fc0 */ /* not lifted */ 949 RECOMP_FLAGS_IN(); 950 eax = MEM32(ebp + 0x4); /* 0x470816C0: mov eax, dword ptr [ebp + 4] */ 951 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 952 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 953 esp = esp + 0xCu; /* 0x470816C3: add esp, 0xc */ 954 _flag_k = FK_ADD; 955 /* cmp eax, ebx */ /* 0x470816C6: cmp eax, ebx */ 956 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 958 _flag_k = FK_CMP; 959 MEM32(esp + 0x3C) = ebx; /* 0x470816C8: mov dword ptr [esp + 0x3c], ebx */ 960 MEM32(esp + 0x40) = ebx; /* 0x470816CC: mov dword ptr [esp + 0x40], ebx */ 961 MEM32(esp + 0x44) = edi; /* 0x470816D0: mov dword ptr [esp + 0x44], edi */ 962 if (CMP_BE(_flag_a, _flag_b)) goto L_4708174E; /* 0x470816D4: jbe 0x4708174e */ 963 L_470816D6: 964 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 965 edi = 0; /* 0x470816D6: xor edi, edi */ 966 _cf = 0; 967 _flag_k = FK_TEST; 968 PUSH32(esp, edi); /* 0x470816D8: push edi */ 969 edx = ebp + 0x10; /* 0x470816D9: lea edx, [ebp + 0x10] */ 970 PUSH32(esp, edx); /* 0x470816DC: push edx */ 971 ecx = esp + 0x20; /* 0x470816DD: lea ecx, [esp + 0x20] */ 972 ebx = 1; /* 0x470816E1: mov ebx, 1 */ 973 RECOMP_ICALL(0x470820E0u); /* 0x470816E6: call 0x470820e0 */ /* not lifted */ 974 RECOMP_FLAGS_IN(); 975 eax = MEM32(esp + 0x1C); /* 0x470816EB: mov eax, dword ptr [esp + 0x1c] */ 976 ecx = MEM32(esp + 0x18); /* 0x470816EF: mov ecx, dword ptr [esp + 0x18] */ 977 /* cmp ecx, MEM32(eax) */ /* 0x470816F3: cmp ecx, dword ptr [eax] */ 978 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 980 _flag_k = FK_CMP; 981 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708172A; /* 0x470816F5: je 0x4708172a */ 982 L_470816F7: 983 edx = esp + 0x54; /* 0x470816F7: lea edx, [esp + 0x54] */ 984 PUSH32(esp, edx); /* 0x470816FB: push edx */ 985 ecx = esp + 0x1C; /* 0x470816FC: lea ecx, [esp + 0x1c] */ 986 RECOMP_ICALL(0x47082100u); /* 0x47081700: call 0x47082100 */ /* not lifted */ 987 RECOMP_FLAGS_IN(); 988 /* test eax, eax */ /* 0x47081705: test eax, eax */ 989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 990 _cf = 0; 991 _flag_k = FK_TEST; 992 if (TEST_Z(_flag_a, _flag_b)) goto L_4708171E; /* 0x47081707: je 0x4708171e */ 993 L_47081709: 994 eax = MEM32(esp + 0x54); /* 0x47081709: mov eax, dword ptr [esp + 0x54] */ 995 eax = MEM32(eax); /* 0x4708170D: mov eax, dword ptr [eax] */ 996 ecx = MEM32(esp + 0x18); /* 0x4708170F: mov ecx, dword ptr [esp + 0x18] */ 997 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081713: cdq */ 998 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 999 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1000 edi = edi + eax; /* 0x47081714: add edi, eax */ 1001 _flag_k = FK_ADD; 1002 { uint32_t _aa = ebx, _ab = edx, _ac = _cf; /* 0x47081716: adc ebx, edx */ 1003 ebx = _aa + _ab + _ac; 1004 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 1005 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1006 edx = MEM32(ecx); /* 0x47081718: mov edx, dword ptr [ecx] */ 1007 MEM32(esp + 0x18) = edx; /* 0x4708171A: mov dword ptr [esp + 0x18], edx */ 1008 L_4708171E: 1009 eax = MEM32(esp + 0x1C); /* 0x4708171E: mov eax, dword ptr [esp + 0x1c] */ 1010 ecx = MEM32(esp + 0x18); /* 0x47081722: mov ecx, dword ptr [esp + 0x18] */ 1011 /* cmp ecx, MEM32(eax) */ /* 0x47081726: cmp ecx, dword ptr [eax] */ 1012 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 1013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1014 _flag_k = FK_CMP; 1015 RECOMP_BACKEDGE(); 1016 if (CMP_NE(_flag_a, _flag_b)) goto L_470816F7; /* 0x47081728: jne 0x470816f7 */ 1017 L_4708172A: 1018 eax = MEM32(ebp + 0x4); /* 0x4708172A: mov eax, dword ptr [ebp + 4] */ 1019 eax = (uint32_t)((int32_t)eax * (int32_t)esi); /* 0x4708172D: imul eax, esi */ 1020 edx = esp + 0x3C; /* 0x47081730: lea edx, [esp + 0x3c] */ 1021 PUSH32(esp, edx); /* 0x47081734: push edx */ 1022 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0); 1023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1024 edi = edi - 0; /* 0x47081735: sub edi, 0 */ 1025 _flag_k = FK_CMP; 1026 PUSH32(esp, eax); /* 0x47081738: push eax */ 1027 { uint32_t _sa = ebx, _sb = 1, _sc = _cf; /* 0x47081739: sbb ebx, 1 */ 1028 ebx = _sa - _sb - _sc; 1029 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1030 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1031 PUSH32(esp, ebx); /* 0x4708173C: push ebx */ 1032 PUSH32(esp, edi); /* 0x4708173D: push edi */ 1033 RECOMP_ICALL(0x47081990u); /* 0x4708173E: call 0x47081990 */ /* not lifted */ 1034 RECOMP_FLAGS_IN(); 1035 edi = MEM32(esp + 0x20); /* 0x47081743: mov edi, dword ptr [esp + 0x20] */ 1036 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1037 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1038 esp = esp + 0x10u; /* 0x47081747: add esp, 0x10 */ 1039 _flag_k = FK_ADD; 1040 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1041 ebx = 0; /* 0x4708174A: xor ebx, ebx */ 1042 _cf = 0; 1043 _flag_k = FK_TEST; 1044 goto L_47081756; /* 0x4708174C: jmp 0x47081756 */ 1045 L_4708174E: 1046 MEM32(esp + 0x3C) = ebx; /* 0x4708174E: mov dword ptr [esp + 0x3c], ebx */ 1047 MEM32(esp + 0x40) = ebx; /* 0x47081752: mov dword ptr [esp + 0x40], ebx */ 1048 L_47081756: 1049 ecx = MEM32(esp + 0x40); /* 0x47081756: mov ecx, dword ptr [esp + 0x40] */ 1050 edx = MEM32(esp + 0x3C); /* 0x4708175A: mov edx, dword ptr [esp + 0x3c] */ 1051 PUSH32(esp, ecx); /* 0x4708175E: push ecx */ 1052 PUSH32(esp, edx); /* 0x4708175F: push edx */ 1053 eax = esp + 0x6C; /* 0x47081760: lea eax, [esp + 0x6c] */ 1054 PUSH32(esp, eax); /* 0x47081764: push eax */ 1055 ecx = esp + 0x90; /* 0x47081765: lea ecx, [esp + 0x90] */ 1056 PUSH32(esp, ecx); /* 0x4708176C: push ecx */ 1057 RECOMP_ICALL(0x47054FC0u); /* 0x4708176D: call 0x47054fc0 */ /* not lifted */ 1058 RECOMP_FLAGS_IN(); 1059 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1061 esp = esp + 0x10u; /* 0x47081772: add esp, 0x10 */ 1062 _flag_k = FK_ADD; 1063 PUSH32(esp, esi); /* 0x47081775: push esi */ 1064 edx = esp + 0x5C; /* 0x47081776: lea edx, [esp + 0x5c] */ 1065 PUSH32(esp, edx); /* 0x4708177A: push edx */ 1066 ecx = ebp; /* 0x4708177B: mov ecx, ebp */ 1067 MEM32(esp + 0x60) = ebx; /* 0x4708177D: mov dword ptr [esp + 0x60], ebx */ 1068 MEM32(esp + 0x64) = ebx; /* 0x47081781: mov dword ptr [esp + 0x64], ebx */ 1069 MEM32(esp + 0x68) = edi; /* 0x47081785: mov dword ptr [esp + 0x68], edi */ 1070 RECOMP_ICALL(0x47081360u); /* 0x47081789: call 0x47081360 */ /* not lifted */ 1071 RECOMP_FLAGS_IN(); 1072 /* test eax, eax */ /* 0x4708178E: test eax, eax */ 1073 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1074 _cf = 0; 1075 _flag_k = FK_TEST; 1076 if (TEST_Z(_flag_a, _flag_b)) goto L_4708179B; /* 0x47081790: je 0x4708179b */ 1077 L_47081792: 1078 MEM32(esp + 0x14) = ebx; /* 0x47081792: mov dword ptr [esp + 0x14], ebx */ 1079 goto L_470818F8; /* 0x47081796: jmp 0x470818f8 */ 1080 L_4708179B: 1081 eax = MEM32(esp + 0x5C); /* 0x4708179B: mov eax, dword ptr [esp + 0x5c] */ 1082 ecx = MEM32(esp + 0x58); /* 0x4708179F: mov ecx, dword ptr [esp + 0x58] */ 1083 PUSH32(esp, eax); /* 0x470817A3: push eax */ 1084 PUSH32(esp, ecx); /* 0x470817A4: push ecx */ 1085 edx = esp + 0x6C; /* 0x470817A5: lea edx, [esp + 0x6c] */ 1086 PUSH32(esp, edx); /* 0x470817A9: push edx */ 1087 eax = esp + 0x190; /* 0x470817AA: lea eax, [esp + 0x190] */ 1088 PUSH32(esp, eax); /* 0x470817B1: push eax */ 1089 MEM32(esp + 0x24) = 1; /* 0x470817B2: mov dword ptr [esp + 0x24], 1 */ 1090 RECOMP_ICALL(0x47054FC0u); /* 0x470817BA: call 0x47054fc0 */ /* not lifted */ 1091 RECOMP_FLAGS_IN(); 1092 eax = MEM32(ebp + 0x8); /* 0x470817BF: mov eax, dword ptr [ebp + 8] */ 1093 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1095 esp = esp + 0x10u; /* 0x470817C2: add esp, 0x10 */ 1096 _flag_k = FK_ADD; 1097 /* cmp eax, ebx */ /* 0x470817C5: cmp eax, ebx */ 1098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1100 _flag_k = FK_CMP; 1101 MEM32(esp + 0x2C) = ebx; /* 0x470817C7: mov dword ptr [esp + 0x2c], ebx */ 1102 MEM32(esp + 0x30) = ebx; /* 0x470817CB: mov dword ptr [esp + 0x30], ebx */ 1103 MEM32(esp + 0x34) = edi; /* 0x470817CF: mov dword ptr [esp + 0x34], edi */ 1104 MEM32(esp + 0x20) = ebx; /* 0x470817D3: mov dword ptr [esp + 0x20], ebx */ 1105 MEM32(esp + 0x24) = ebx; /* 0x470817D7: mov dword ptr [esp + 0x24], ebx */ 1106 MEM32(esp + 0x28) = edi; /* 0x470817DB: mov dword ptr [esp + 0x28], edi */ 1107 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708184C; /* 0x470817DF: je 0x4708184c */ 1108 L_470817E1: 1109 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x470817E1: cdq */ 1110 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1111 edi = 0; /* 0x470817E2: xor edi, edi */ 1112 _cf = 0; 1113 _flag_k = FK_TEST; 1114 /* cmp esi, edi */ /* 0x470817E4: cmp esi, edi */ 1115 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1117 _flag_k = FK_CMP; 1118 ebx = eax; /* 0x470817E6: mov ebx, eax */ 1119 ebp = edx; /* 0x470817E8: mov ebp, edx */ 1120 if (CMP_NE(_flag_a, _flag_b)) goto L_470817F2; /* 0x470817EA: jne 0x470817f2 */ 1121 L_470817EC: 1122 MEM32(esp + 0x2C) = edi; /* 0x470817EC: mov dword ptr [esp + 0x2c], edi */ 1123 goto L_470817FF; /* 0x470817F0: jmp 0x470817ff */ 1124 L_470817F2: 1125 PUSH32(esp, edi); /* 0x470817F2: push edi */ 1126 PUSH32(esp, esi); /* 0x470817F3: push esi */ 1127 PUSH32(esp, ebp); /* 0x470817F4: push ebp */ 1128 PUSH32(esp, ebx); /* 0x470817F5: push ebx */ 1129 RECOMP_ICALL(0x470A3500u); /* 0x470817F6: call 0x470a3500 */ /* not lifted */ 1130 RECOMP_FLAGS_IN(); 1131 MEM32(esp + 0x2C) = eax; /* 0x470817FB: mov dword ptr [esp + 0x2c], eax */ 1132 L_470817FF: 1133 /* cmp MEM32(esp + 0x10), edi */ /* 0x470817FF: cmp dword ptr [esp + 0x10], edi */ 1134 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(edi); 1135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1136 _flag_k = FK_CMP; 1137 if (CMP_A(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081803: ja 0x4708180f */ 1138 L_47081805: 1139 /* cmp esi, edi */ /* 0x47081805: cmp esi, edi */ 1140 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1142 _flag_k = FK_CMP; 1143 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081807: je 0x4708180f */ 1144 L_47081809: 1145 MEM32(esp + 0x30) = edi; /* 0x47081809: mov dword ptr [esp + 0x30], edi */ 1146 goto L_47081842; /* 0x4708180D: jmp 0x47081842 */ 1147 L_4708180F: 1148 ecx = esp + 0x2C; /* 0x4708180F: lea ecx, [esp + 0x2c] */ 1149 RECOMP_ICALL(0x47081200u); /* 0x47081813: call 0x47081200 */ /* not lifted */ 1150 RECOMP_FLAGS_IN(); 1151 PUSH32(esp, edi); /* 0x47081818: push edi */ 1152 PUSH32(esp, esi); /* 0x47081819: push esi */ 1153 PUSH32(esp, ebp); /* 0x4708181A: push ebp */ 1154 ecx = eax; /* 0x4708181B: mov ecx, eax */ 1155 PUSH32(esp, ebx); /* 0x4708181D: push ebx */ 1156 MEM32(esp + 0x60) = ecx; /* 0x4708181E: mov dword ptr [esp + 0x60], ecx */ 1157 RECOMP_ICALL(0x470A3640u); /* 0x47081822: call 0x470a3640 */ /* not lifted */ 1158 RECOMP_FLAGS_IN(); 1159 ecx = MEM32(esp + 0x50); /* 0x47081827: mov ecx, dword ptr [esp + 0x50] */ 1160 PUSH32(esp, edx); /* 0x4708182B: push edx */ 1161 PUSH32(esp, eax); /* 0x4708182C: push eax */ 1162 PUSH32(esp, 0); /* 0x4708182D: push 0 */ 1163 PUSH32(esp, ecx); /* 0x4708182F: push ecx */ 1164 RECOMP_ICALL(0x470A34C0u); /* 0x47081830: call 0x470a34c0 */ /* not lifted */ 1165 RECOMP_FLAGS_IN(); 1166 PUSH32(esp, edi); /* 0x47081835: push edi */ 1167 PUSH32(esp, esi); /* 0x47081836: push esi */ 1168 PUSH32(esp, edx); /* 0x47081837: push edx */ 1169 PUSH32(esp, eax); /* 0x47081838: push eax */ 1170 RECOMP_ICALL(0x470A3500u); /* 0x47081839: call 0x470a3500 */ /* not lifted */ 1171 RECOMP_FLAGS_IN(); 1172 MEM32(esp + 0x30) = eax; /* 0x4708183E: mov dword ptr [esp + 0x30], eax */ 1173 L_47081842: 1174 ebp = MEM32(esp + 0x38); /* 0x47081842: mov ebp, dword ptr [esp + 0x38] */ 1175 edi = MEM32(esp + 0x10); /* 0x47081846: mov edi, dword ptr [esp + 0x10] */ 1176 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1177 ebx = 0; /* 0x4708184A: xor ebx, ebx */ 1178 _cf = 0; 1179 _flag_k = FK_TEST; 1180 L_4708184C: 1181 eax = MEM32(ebp + 0xC); /* 0x4708184C: mov eax, dword ptr [ebp + 0xc] */ 1182 /* cmp eax, ebx */ /* 0x4708184F: cmp eax, ebx */ 1183 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1185 _flag_k = FK_CMP; 1186 if (CMP_EQ(_flag_a, _flag_b)) goto L_470818BD; /* 0x47081851: je 0x470818bd */ 1187 L_47081853: 1188 /* cmp esi, ebx */ /* 0x47081853: cmp esi, ebx */ 1189 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1191 _flag_k = FK_CMP; 1192 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081855: cdq */ 1193 MEM32(esp + 0x48) = eax; /* 0x47081856: mov dword ptr [esp + 0x48], eax */ 1194 MEM32(esp + 0x4C) = edx; /* 0x4708185A: mov dword ptr [esp + 0x4c], edx */ 1195 if (CMP_NE(_flag_a, _flag_b)) goto L_47081866; /* 0x4708185E: jne 0x47081866 */ 1196 L_47081860: 1197 MEM32(esp + 0x20) = ebx; /* 0x47081860: mov dword ptr [esp + 0x20], ebx */ 1198 goto L_47081873; /* 0x47081864: jmp 0x47081873 */ 1199 L_47081866: 1200 PUSH32(esp, ebx); /* 0x47081866: push ebx */ 1201 PUSH32(esp, esi); /* 0x47081867: push esi */ 1202 PUSH32(esp, edx); /* 0x47081868: push edx */ 1203 PUSH32(esp, eax); /* 0x47081869: push eax */ 1204 RECOMP_ICALL(0x470A3500u); /* 0x4708186A: call 0x470a3500 */ /* not lifted */ 1205 RECOMP_FLAGS_IN(); 1206 MEM32(esp + 0x20) = eax; /* 0x4708186F: mov dword ptr [esp + 0x20], eax */ 1207 L_47081873: 1208 /* cmp MEM32(esp + 0x28), ebx */ /* 0x47081873: cmp dword ptr [esp + 0x28], ebx */ 1209 _flag_a = (uint32_t)(MEM32(esp + 0x28)); _flag_b = (uint32_t)(ebx); 1210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1211 _flag_k = FK_CMP; 1212 if (CMP_A(_flag_a, _flag_b)) goto L_47081883; /* 0x47081877: ja 0x47081883 */ 1213 L_47081879: 1214 /* cmp esi, ebx */ /* 0x47081879: cmp esi, ebx */ 1215 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1217 _flag_k = FK_CMP; 1218 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081883; /* 0x4708187B: je 0x47081883 */ 1219 L_4708187D: 1220 MEM32(esp + 0x24) = ebx; /* 0x4708187D: mov dword ptr [esp + 0x24], ebx */ 1221 goto L_470818BD; /* 0x47081881: jmp 0x470818bd */ 1222 L_47081883: 1223 ecx = esp + 0x20; /* 0x47081883: lea ecx, [esp + 0x20] */ 1224 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1225 edi = 0; /* 0x47081887: xor edi, edi */ 1226 _cf = 0; 1227 _flag_k = FK_TEST; 1228 RECOMP_ICALL(0x47081200u); /* 0x47081889: call 0x47081200 */ /* not lifted */ 1229 RECOMP_FLAGS_IN(); 1230 edx = MEM32(esp + 0x4C); /* 0x4708188E: mov edx, dword ptr [esp + 0x4c] */ 1231 PUSH32(esp, edi); /* 0x47081892: push edi */ 1232 PUSH32(esp, esi); /* 0x47081893: push esi */ 1233 ebx = eax; /* 0x47081894: mov ebx, eax */ 1234 eax = MEM32(esp + 0x50); /* 0x47081896: mov eax, dword ptr [esp + 0x50] */ 1235 PUSH32(esp, edx); /* 0x4708189A: push edx */ 1236 PUSH32(esp, eax); /* 0x4708189B: push eax */ 1237 RECOMP_ICALL(0x470A3640u); /* 0x4708189C: call 0x470a3640 */ /* not lifted */ 1238 RECOMP_FLAGS_IN(); 1239 PUSH32(esp, edx); /* 0x470818A1: push edx */ 1240 PUSH32(esp, eax); /* 0x470818A2: push eax */ 1241 PUSH32(esp, edi); /* 0x470818A3: push edi */ 1242 PUSH32(esp, ebx); /* 0x470818A4: push ebx */ 1243 RECOMP_ICALL(0x470A34C0u); /* 0x470818A5: call 0x470a34c0 */ /* not lifted */ 1244 RECOMP_FLAGS_IN(); 1245 PUSH32(esp, edi); /* 0x470818AA: push edi */ 1246 PUSH32(esp, esi); /* 0x470818AB: push esi */ 1247 PUSH32(esp, edx); /* 0x470818AC: push edx */ 1248 PUSH32(esp, eax); /* 0x470818AD: push eax */ 1249 RECOMP_ICALL(0x470A3500u); /* 0x470818AE: call 0x470a3500 */ /* not lifted */ 1250 RECOMP_FLAGS_IN(); 1251 edi = MEM32(esp + 0x10); /* 0x470818B3: mov edi, dword ptr [esp + 0x10] */ 1252 MEM32(esp + 0x24) = eax; /* 0x470818B7: mov dword ptr [esp + 0x24], eax */ 1253 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1254 ebx = 0; /* 0x470818BB: xor ebx, ebx */ 1255 _cf = 0; 1256 _flag_k = FK_TEST; 1257 L_470818BD: 1258 ecx = MEM32(esp + 0x30); /* 0x470818BD: mov ecx, dword ptr [esp + 0x30] */ 1259 edx = MEM32(esp + 0x2C); /* 0x470818C1: mov edx, dword ptr [esp + 0x2c] */ 1260 PUSH32(esp, ecx); /* 0x470818C5: push ecx */ 1261 PUSH32(esp, edx); /* 0x470818C6: push edx */ 1262 eax = esp + 0x6C; /* 0x470818C7: lea eax, [esp + 0x6c] */ 1263 PUSH32(esp, eax); /* 0x470818CB: push eax */ 1264 ecx = esp + 0x210; /* 0x470818CC: lea ecx, [esp + 0x210] */ 1265 PUSH32(esp, ecx); /* 0x470818D3: push ecx */ 1266 RECOMP_ICALL(0x47054FC0u); /* 0x470818D4: call 0x47054fc0 */ /* not lifted */ 1267 RECOMP_FLAGS_IN(); 1268 edx = MEM32(esp + 0x34); /* 0x470818D9: mov edx, dword ptr [esp + 0x34] */ 1269 eax = MEM32(esp + 0x30); /* 0x470818DD: mov eax, dword ptr [esp + 0x30] */ 1270 PUSH32(esp, edx); /* 0x470818E1: push edx */ 1271 PUSH32(esp, eax); /* 0x470818E2: push eax */ 1272 ecx = esp + 0x7C; /* 0x470818E3: lea ecx, [esp + 0x7c] */ 1273 PUSH32(esp, ecx); /* 0x470818E7: push ecx */ 1274 edx = esp + 0x120; /* 0x470818E8: lea edx, [esp + 0x120] */ 1275 PUSH32(esp, edx); /* 0x470818EF: push edx */ 1276 RECOMP_ICALL(0x47054FC0u); /* 0x470818F0: call 0x47054fc0 */ /* not lifted */ 1277 RECOMP_FLAGS_IN(); 1278 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 1279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1280 esp = esp + 0x20u; /* 0x470818F5: add esp, 0x20 */ 1281 _flag_k = FK_ADD; 1282 L_470818F8: 1283 eax = MEM32(ebp); /* 0x470818F8: mov eax, dword ptr [ebp] */ 1284 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1285 edi = edi - 1; /* 0x470818FB: dec edi */ 1286 _flag_k = FK_DEC; 1287 /* cmp eax, ebx */ /* 0x470818FC: cmp eax, ebx */ 1288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1290 _flag_k = FK_CMP; 1291 eax = MEM32(esp + 0x14); /* 0x470818FE: mov eax, dword ptr [esp + 0x14] */ 1292 MEM32(esp + 0x10) = edi; /* 0x47081902: mov dword ptr [esp + 0x10], edi */ 1293 RECOMP_BACKEDGE(); 1294 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081691; /* 0x47081906: je 0x47081691 */ 1295 L_4708190C: 1296 /* cmp eax, 1 */ /* 0x4708190C: cmp eax, 1 */ 1297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1299 _flag_k = FK_CMP; 1300 if (CMP_NE(_flag_a, _flag_b)) goto L_47081959; /* 0x4708190F: jne 0x47081959 */ 1301 L_47081911: 1302 eax = esp + 0x184; /* 0x47081911: lea eax, [esp + 0x184] */ 1303 PUSH32(esp, eax); /* 0x47081918: push eax */ 1304 ecx = esp + 0x88; /* 0x47081919: lea ecx, [esp + 0x88] */ 1305 PUSH32(esp, ecx); /* 0x47081920: push ecx */ 1306 ecx = MEM32(ebp + 0x4); /* 0x47081921: mov ecx, dword ptr [ebp + 4] */ 1307 edx = esp + 0x10C; /* 0x47081924: lea edx, [esp + 0x10c] */ 1308 PUSH32(esp, edx); /* 0x4708192B: push edx */ 1309 edx = MEM32(esp + 0x29C); /* 0x4708192C: mov edx, dword ptr [esp + 0x29c] */ 1310 eax = esp + 0x210; /* 0x47081933: lea eax, [esp + 0x210] */ 1311 PUSH32(esp, eax); /* 0x4708193A: push eax */ 1312 PUSH32(esp, ecx); /* 0x4708193B: push ecx */ 1313 PUSH32(esp, 0x4710B5C8u); /* 0x4708193C: push 0x4710b5c8 */ 1314 PUSH32(esp, edx); /* 0x47081941: push edx */ 1315 RECOMP_ICALL(0x47054F80u); /* 0x47081942: call 0x47054f80 */ /* not lifted */ 1316 RECOMP_FLAGS_IN(); 1317 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 1318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1319 esp = esp + 0x1Cu; /* 0x47081947: add esp, 0x1c */ 1320 _flag_k = FK_ADD; 1321 edi = POP32_VAL(esp); /* 0x4708194A: pop edi */ 1322 esi = POP32_VAL(esp); /* 0x4708194B: pop esi */ 1323 ebp = POP32_VAL(esp); /* 0x4708194C: pop ebp */ 1324 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1325 eax = 0; /* 0x4708194D: xor eax, eax */ 1326 _cf = 0; 1327 _flag_k = FK_TEST; 1328 ebx = POP32_VAL(esp); /* 0x4708194F: pop ebx */ 1329 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 1330 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1331 esp = esp + 0x274u; /* 0x47081950: add esp, 0x274 */ 1332 _flag_k = FK_ADD; 1333 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081956: ret 0xc */ 1334 L_47081959: 1335 eax = MEM32(ebp); /* 0x47081959: mov eax, dword ptr [ebp] */ 1336 PUSH32(esp, eax); /* 0x4708195C: push eax */ 1337 RECOMP_ICALL(MEM32(0x470AC324)); /* 0x4708195D: call dword ptr [0x470ac324] */ 1338 RECOMP_FLAGS_IN(); 1339 ecx = MEM32(esp + 0x294); /* 0x47081963: mov ecx, dword ptr [esp + 0x294] */ 1340 PUSH32(esp, eax); /* 0x4708196A: push eax */ 1341 PUSH32(esp, 0x4710B5A0u); /* 0x4708196B: push 0x4710b5a0 */ 1342 PUSH32(esp, ecx); /* 0x47081970: push ecx */ 1343 RECOMP_ICALL(0x47054F80u); /* 0x47081971: call 0x47054f80 */ /* not lifted */ 1344 RECOMP_FLAGS_IN(); 1345 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1346 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1347 esp = esp + 0x10u; /* 0x47081976: add esp, 0x10 */ 1348 _flag_k = FK_ADD; 1349 edi = POP32_VAL(esp); /* 0x47081979: pop edi */ 1350 esi = POP32_VAL(esp); /* 0x4708197A: pop esi */ 1351 ebp = POP32_VAL(esp); /* 0x4708197B: pop ebp */ 1352 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1353 eax = eax | 0xFFFFFFFFu; /* 0x4708197C: or eax, 0xffffffff */ 1354 _cf = 0; 1355 _flag_k = FK_TEST; 1356 ebx = POP32_VAL(esp); /* 0x4708197F: pop ebx */ 1357 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 1358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1359 esp = esp + 0x274u; /* 0x47081980: add esp, 0x274 */ 1360 _flag_k = FK_ADD; 1361 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081986: ret 0xc */ 1362 RECOMP_REGS_OUT(); 1363 } 1364 1365 void sub_470817FF(void) { 1366 int _fpu_cmp = 0; 1367 uint32_t _cf = 0; 1368 int _df = 1; 1369 uint32_t _flag_k = FK_NONE; 1370 uint32_t _flag_a = 0, _flag_b = 0; 1371 uint32_t _itail_tgt = 0; 1372 RECOMP_REGS_LOCALS 1373 RECOMP_ENTER(0x470817FFu); 1374 1375 goto L_470817FF; 1376 L_47081691: 1377 /* cmp eax, ebx */ /* 0x47081691: cmp eax, ebx */ 1378 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1380 _flag_k = FK_CMP; 1381 if (CMP_NE(_flag_a, _flag_b)) goto L_4708190C; /* 0x47081693: jne 0x4708190c */ 1382 L_47081699: 1383 /* cmp edi, ebx */ /* 0x47081699: cmp edi, ebx */ 1384 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1386 _flag_k = FK_CMP; 1387 if (CMP_L(_flag_a, _flag_b)) goto L_47081959; /* 0x4708169B: jl 0x47081959 */ 1388 L_470816A1: 1389 if (CMP_NE(_flag_a, _flag_b)) goto L_470816B0; /* 0x470816A1: jne 0x470816b0 */ 1390 L_470816A3: 1391 PUSH32(esp, ebx); /* 0x470816A3: push ebx */ 1392 PUSH32(esp, 0x4710B604u); /* 0x470816A4: push 0x4710b604 */ 1393 eax = esp + 0x6C; /* 0x470816A9: lea eax, [esp + 0x6c] */ 1394 PUSH32(esp, eax); /* 0x470816AD: push eax */ 1395 goto L_470816BB; /* 0x470816AE: jmp 0x470816bb */ 1396 L_470816B0: 1397 PUSH32(esp, edi); /* 0x470816B0: push edi */ 1398 PUSH32(esp, 0x4710B5F8u); /* 0x470816B1: push 0x4710b5f8 */ 1399 ecx = esp + 0x6C; /* 0x470816B6: lea ecx, [esp + 0x6c] */ 1400 PUSH32(esp, ecx); /* 0x470816BA: push ecx */ 1401 L_470816BB: 1402 RECOMP_ICALL(0x47054FC0u); /* 0x470816BB: call 0x47054fc0 */ /* not lifted */ 1403 RECOMP_FLAGS_IN(); 1404 eax = MEM32(ebp + 0x4); /* 0x470816C0: mov eax, dword ptr [ebp + 4] */ 1405 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1407 esp = esp + 0xCu; /* 0x470816C3: add esp, 0xc */ 1408 _flag_k = FK_ADD; 1409 /* cmp eax, ebx */ /* 0x470816C6: cmp eax, ebx */ 1410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1412 _flag_k = FK_CMP; 1413 MEM32(esp + 0x3C) = ebx; /* 0x470816C8: mov dword ptr [esp + 0x3c], ebx */ 1414 MEM32(esp + 0x40) = ebx; /* 0x470816CC: mov dword ptr [esp + 0x40], ebx */ 1415 MEM32(esp + 0x44) = edi; /* 0x470816D0: mov dword ptr [esp + 0x44], edi */ 1416 if (CMP_BE(_flag_a, _flag_b)) goto L_4708174E; /* 0x470816D4: jbe 0x4708174e */ 1417 L_470816D6: 1418 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1419 edi = 0; /* 0x470816D6: xor edi, edi */ 1420 _cf = 0; 1421 _flag_k = FK_TEST; 1422 PUSH32(esp, edi); /* 0x470816D8: push edi */ 1423 edx = ebp + 0x10; /* 0x470816D9: lea edx, [ebp + 0x10] */ 1424 PUSH32(esp, edx); /* 0x470816DC: push edx */ 1425 ecx = esp + 0x20; /* 0x470816DD: lea ecx, [esp + 0x20] */ 1426 ebx = 1; /* 0x470816E1: mov ebx, 1 */ 1427 RECOMP_ICALL(0x470820E0u); /* 0x470816E6: call 0x470820e0 */ /* not lifted */ 1428 RECOMP_FLAGS_IN(); 1429 eax = MEM32(esp + 0x1C); /* 0x470816EB: mov eax, dword ptr [esp + 0x1c] */ 1430 ecx = MEM32(esp + 0x18); /* 0x470816EF: mov ecx, dword ptr [esp + 0x18] */ 1431 /* cmp ecx, MEM32(eax) */ /* 0x470816F3: cmp ecx, dword ptr [eax] */ 1432 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 1433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1434 _flag_k = FK_CMP; 1435 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708172A; /* 0x470816F5: je 0x4708172a */ 1436 L_470816F7: 1437 edx = esp + 0x54; /* 0x470816F7: lea edx, [esp + 0x54] */ 1438 PUSH32(esp, edx); /* 0x470816FB: push edx */ 1439 ecx = esp + 0x1C; /* 0x470816FC: lea ecx, [esp + 0x1c] */ 1440 RECOMP_ICALL(0x47082100u); /* 0x47081700: call 0x47082100 */ /* not lifted */ 1441 RECOMP_FLAGS_IN(); 1442 /* test eax, eax */ /* 0x47081705: test eax, eax */ 1443 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1444 _cf = 0; 1445 _flag_k = FK_TEST; 1446 if (TEST_Z(_flag_a, _flag_b)) goto L_4708171E; /* 0x47081707: je 0x4708171e */ 1447 L_47081709: 1448 eax = MEM32(esp + 0x54); /* 0x47081709: mov eax, dword ptr [esp + 0x54] */ 1449 eax = MEM32(eax); /* 0x4708170D: mov eax, dword ptr [eax] */ 1450 ecx = MEM32(esp + 0x18); /* 0x4708170F: mov ecx, dword ptr [esp + 0x18] */ 1451 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081713: cdq */ 1452 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1453 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1454 edi = edi + eax; /* 0x47081714: add edi, eax */ 1455 _flag_k = FK_ADD; 1456 { uint32_t _aa = ebx, _ab = edx, _ac = _cf; /* 0x47081716: adc ebx, edx */ 1457 ebx = _aa + _ab + _ac; 1458 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 1459 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1460 edx = MEM32(ecx); /* 0x47081718: mov edx, dword ptr [ecx] */ 1461 MEM32(esp + 0x18) = edx; /* 0x4708171A: mov dword ptr [esp + 0x18], edx */ 1462 L_4708171E: 1463 eax = MEM32(esp + 0x1C); /* 0x4708171E: mov eax, dword ptr [esp + 0x1c] */ 1464 ecx = MEM32(esp + 0x18); /* 0x47081722: mov ecx, dword ptr [esp + 0x18] */ 1465 /* cmp ecx, MEM32(eax) */ /* 0x47081726: cmp ecx, dword ptr [eax] */ 1466 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 1467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1468 _flag_k = FK_CMP; 1469 RECOMP_BACKEDGE(); 1470 if (CMP_NE(_flag_a, _flag_b)) goto L_470816F7; /* 0x47081728: jne 0x470816f7 */ 1471 L_4708172A: 1472 eax = MEM32(ebp + 0x4); /* 0x4708172A: mov eax, dword ptr [ebp + 4] */ 1473 eax = (uint32_t)((int32_t)eax * (int32_t)esi); /* 0x4708172D: imul eax, esi */ 1474 edx = esp + 0x3C; /* 0x47081730: lea edx, [esp + 0x3c] */ 1475 PUSH32(esp, edx); /* 0x47081734: push edx */ 1476 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0); 1477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1478 edi = edi - 0; /* 0x47081735: sub edi, 0 */ 1479 _flag_k = FK_CMP; 1480 PUSH32(esp, eax); /* 0x47081738: push eax */ 1481 { uint32_t _sa = ebx, _sb = 1, _sc = _cf; /* 0x47081739: sbb ebx, 1 */ 1482 ebx = _sa - _sb - _sc; 1483 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1484 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1485 PUSH32(esp, ebx); /* 0x4708173C: push ebx */ 1486 PUSH32(esp, edi); /* 0x4708173D: push edi */ 1487 RECOMP_ICALL(0x47081990u); /* 0x4708173E: call 0x47081990 */ /* not lifted */ 1488 RECOMP_FLAGS_IN(); 1489 edi = MEM32(esp + 0x20); /* 0x47081743: mov edi, dword ptr [esp + 0x20] */ 1490 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1492 esp = esp + 0x10u; /* 0x47081747: add esp, 0x10 */ 1493 _flag_k = FK_ADD; 1494 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1495 ebx = 0; /* 0x4708174A: xor ebx, ebx */ 1496 _cf = 0; 1497 _flag_k = FK_TEST; 1498 goto L_47081756; /* 0x4708174C: jmp 0x47081756 */ 1499 L_4708174E: 1500 MEM32(esp + 0x3C) = ebx; /* 0x4708174E: mov dword ptr [esp + 0x3c], ebx */ 1501 MEM32(esp + 0x40) = ebx; /* 0x47081752: mov dword ptr [esp + 0x40], ebx */ 1502 L_47081756: 1503 ecx = MEM32(esp + 0x40); /* 0x47081756: mov ecx, dword ptr [esp + 0x40] */ 1504 edx = MEM32(esp + 0x3C); /* 0x4708175A: mov edx, dword ptr [esp + 0x3c] */ 1505 PUSH32(esp, ecx); /* 0x4708175E: push ecx */ 1506 PUSH32(esp, edx); /* 0x4708175F: push edx */ 1507 eax = esp + 0x6C; /* 0x47081760: lea eax, [esp + 0x6c] */ 1508 PUSH32(esp, eax); /* 0x47081764: push eax */ 1509 ecx = esp + 0x90; /* 0x47081765: lea ecx, [esp + 0x90] */ 1510 PUSH32(esp, ecx); /* 0x4708176C: push ecx */ 1511 RECOMP_ICALL(0x47054FC0u); /* 0x4708176D: call 0x47054fc0 */ /* not lifted */ 1512 RECOMP_FLAGS_IN(); 1513 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1514 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1515 esp = esp + 0x10u; /* 0x47081772: add esp, 0x10 */ 1516 _flag_k = FK_ADD; 1517 PUSH32(esp, esi); /* 0x47081775: push esi */ 1518 edx = esp + 0x5C; /* 0x47081776: lea edx, [esp + 0x5c] */ 1519 PUSH32(esp, edx); /* 0x4708177A: push edx */ 1520 ecx = ebp; /* 0x4708177B: mov ecx, ebp */ 1521 MEM32(esp + 0x60) = ebx; /* 0x4708177D: mov dword ptr [esp + 0x60], ebx */ 1522 MEM32(esp + 0x64) = ebx; /* 0x47081781: mov dword ptr [esp + 0x64], ebx */ 1523 MEM32(esp + 0x68) = edi; /* 0x47081785: mov dword ptr [esp + 0x68], edi */ 1524 RECOMP_ICALL(0x47081360u); /* 0x47081789: call 0x47081360 */ /* not lifted */ 1525 RECOMP_FLAGS_IN(); 1526 /* test eax, eax */ /* 0x4708178E: test eax, eax */ 1527 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1528 _cf = 0; 1529 _flag_k = FK_TEST; 1530 if (TEST_Z(_flag_a, _flag_b)) goto L_4708179B; /* 0x47081790: je 0x4708179b */ 1531 L_47081792: 1532 MEM32(esp + 0x14) = ebx; /* 0x47081792: mov dword ptr [esp + 0x14], ebx */ 1533 goto L_470818F8; /* 0x47081796: jmp 0x470818f8 */ 1534 L_4708179B: 1535 eax = MEM32(esp + 0x5C); /* 0x4708179B: mov eax, dword ptr [esp + 0x5c] */ 1536 ecx = MEM32(esp + 0x58); /* 0x4708179F: mov ecx, dword ptr [esp + 0x58] */ 1537 PUSH32(esp, eax); /* 0x470817A3: push eax */ 1538 PUSH32(esp, ecx); /* 0x470817A4: push ecx */ 1539 edx = esp + 0x6C; /* 0x470817A5: lea edx, [esp + 0x6c] */ 1540 PUSH32(esp, edx); /* 0x470817A9: push edx */ 1541 eax = esp + 0x190; /* 0x470817AA: lea eax, [esp + 0x190] */ 1542 PUSH32(esp, eax); /* 0x470817B1: push eax */ 1543 MEM32(esp + 0x24) = 1; /* 0x470817B2: mov dword ptr [esp + 0x24], 1 */ 1544 RECOMP_ICALL(0x47054FC0u); /* 0x470817BA: call 0x47054fc0 */ /* not lifted */ 1545 RECOMP_FLAGS_IN(); 1546 eax = MEM32(ebp + 0x8); /* 0x470817BF: mov eax, dword ptr [ebp + 8] */ 1547 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1548 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1549 esp = esp + 0x10u; /* 0x470817C2: add esp, 0x10 */ 1550 _flag_k = FK_ADD; 1551 /* cmp eax, ebx */ /* 0x470817C5: cmp eax, ebx */ 1552 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1554 _flag_k = FK_CMP; 1555 MEM32(esp + 0x2C) = ebx; /* 0x470817C7: mov dword ptr [esp + 0x2c], ebx */ 1556 MEM32(esp + 0x30) = ebx; /* 0x470817CB: mov dword ptr [esp + 0x30], ebx */ 1557 MEM32(esp + 0x34) = edi; /* 0x470817CF: mov dword ptr [esp + 0x34], edi */ 1558 MEM32(esp + 0x20) = ebx; /* 0x470817D3: mov dword ptr [esp + 0x20], ebx */ 1559 MEM32(esp + 0x24) = ebx; /* 0x470817D7: mov dword ptr [esp + 0x24], ebx */ 1560 MEM32(esp + 0x28) = edi; /* 0x470817DB: mov dword ptr [esp + 0x28], edi */ 1561 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708184C; /* 0x470817DF: je 0x4708184c */ 1562 L_470817E1: 1563 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x470817E1: cdq */ 1564 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1565 edi = 0; /* 0x470817E2: xor edi, edi */ 1566 _cf = 0; 1567 _flag_k = FK_TEST; 1568 /* cmp esi, edi */ /* 0x470817E4: cmp esi, edi */ 1569 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1571 _flag_k = FK_CMP; 1572 ebx = eax; /* 0x470817E6: mov ebx, eax */ 1573 ebp = edx; /* 0x470817E8: mov ebp, edx */ 1574 if (CMP_NE(_flag_a, _flag_b)) goto L_470817F2; /* 0x470817EA: jne 0x470817f2 */ 1575 L_470817EC: 1576 MEM32(esp + 0x2C) = edi; /* 0x470817EC: mov dword ptr [esp + 0x2c], edi */ 1577 goto L_470817FF; /* 0x470817F0: jmp 0x470817ff */ 1578 L_470817F2: 1579 PUSH32(esp, edi); /* 0x470817F2: push edi */ 1580 PUSH32(esp, esi); /* 0x470817F3: push esi */ 1581 PUSH32(esp, ebp); /* 0x470817F4: push ebp */ 1582 PUSH32(esp, ebx); /* 0x470817F5: push ebx */ 1583 RECOMP_ICALL(0x470A3500u); /* 0x470817F6: call 0x470a3500 */ /* not lifted */ 1584 RECOMP_FLAGS_IN(); 1585 MEM32(esp + 0x2C) = eax; /* 0x470817FB: mov dword ptr [esp + 0x2c], eax */ 1586 L_470817FF: 1587 /* cmp MEM32(esp + 0x10), edi */ /* 0x470817FF: cmp dword ptr [esp + 0x10], edi */ 1588 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(edi); 1589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1590 _flag_k = FK_CMP; 1591 if (CMP_A(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081803: ja 0x4708180f */ 1592 L_47081805: 1593 /* cmp esi, edi */ /* 0x47081805: cmp esi, edi */ 1594 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1596 _flag_k = FK_CMP; 1597 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081807: je 0x4708180f */ 1598 L_47081809: 1599 MEM32(esp + 0x30) = edi; /* 0x47081809: mov dword ptr [esp + 0x30], edi */ 1600 goto L_47081842; /* 0x4708180D: jmp 0x47081842 */ 1601 L_4708180F: 1602 ecx = esp + 0x2C; /* 0x4708180F: lea ecx, [esp + 0x2c] */ 1603 RECOMP_ICALL(0x47081200u); /* 0x47081813: call 0x47081200 */ /* not lifted */ 1604 RECOMP_FLAGS_IN(); 1605 PUSH32(esp, edi); /* 0x47081818: push edi */ 1606 PUSH32(esp, esi); /* 0x47081819: push esi */ 1607 PUSH32(esp, ebp); /* 0x4708181A: push ebp */ 1608 ecx = eax; /* 0x4708181B: mov ecx, eax */ 1609 PUSH32(esp, ebx); /* 0x4708181D: push ebx */ 1610 MEM32(esp + 0x60) = ecx; /* 0x4708181E: mov dword ptr [esp + 0x60], ecx */ 1611 RECOMP_ICALL(0x470A3640u); /* 0x47081822: call 0x470a3640 */ /* not lifted */ 1612 RECOMP_FLAGS_IN(); 1613 ecx = MEM32(esp + 0x50); /* 0x47081827: mov ecx, dword ptr [esp + 0x50] */ 1614 PUSH32(esp, edx); /* 0x4708182B: push edx */ 1615 PUSH32(esp, eax); /* 0x4708182C: push eax */ 1616 PUSH32(esp, 0); /* 0x4708182D: push 0 */ 1617 PUSH32(esp, ecx); /* 0x4708182F: push ecx */ 1618 RECOMP_ICALL(0x470A34C0u); /* 0x47081830: call 0x470a34c0 */ /* not lifted */ 1619 RECOMP_FLAGS_IN(); 1620 PUSH32(esp, edi); /* 0x47081835: push edi */ 1621 PUSH32(esp, esi); /* 0x47081836: push esi */ 1622 PUSH32(esp, edx); /* 0x47081837: push edx */ 1623 PUSH32(esp, eax); /* 0x47081838: push eax */ 1624 RECOMP_ICALL(0x470A3500u); /* 0x47081839: call 0x470a3500 */ /* not lifted */ 1625 RECOMP_FLAGS_IN(); 1626 MEM32(esp + 0x30) = eax; /* 0x4708183E: mov dword ptr [esp + 0x30], eax */ 1627 L_47081842: 1628 ebp = MEM32(esp + 0x38); /* 0x47081842: mov ebp, dword ptr [esp + 0x38] */ 1629 edi = MEM32(esp + 0x10); /* 0x47081846: mov edi, dword ptr [esp + 0x10] */ 1630 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1631 ebx = 0; /* 0x4708184A: xor ebx, ebx */ 1632 _cf = 0; 1633 _flag_k = FK_TEST; 1634 L_4708184C: 1635 eax = MEM32(ebp + 0xC); /* 0x4708184C: mov eax, dword ptr [ebp + 0xc] */ 1636 /* cmp eax, ebx */ /* 0x4708184F: cmp eax, ebx */ 1637 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1639 _flag_k = FK_CMP; 1640 if (CMP_EQ(_flag_a, _flag_b)) goto L_470818BD; /* 0x47081851: je 0x470818bd */ 1641 L_47081853: 1642 /* cmp esi, ebx */ /* 0x47081853: cmp esi, ebx */ 1643 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1645 _flag_k = FK_CMP; 1646 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081855: cdq */ 1647 MEM32(esp + 0x48) = eax; /* 0x47081856: mov dword ptr [esp + 0x48], eax */ 1648 MEM32(esp + 0x4C) = edx; /* 0x4708185A: mov dword ptr [esp + 0x4c], edx */ 1649 if (CMP_NE(_flag_a, _flag_b)) goto L_47081866; /* 0x4708185E: jne 0x47081866 */ 1650 L_47081860: 1651 MEM32(esp + 0x20) = ebx; /* 0x47081860: mov dword ptr [esp + 0x20], ebx */ 1652 goto L_47081873; /* 0x47081864: jmp 0x47081873 */ 1653 L_47081866: 1654 PUSH32(esp, ebx); /* 0x47081866: push ebx */ 1655 PUSH32(esp, esi); /* 0x47081867: push esi */ 1656 PUSH32(esp, edx); /* 0x47081868: push edx */ 1657 PUSH32(esp, eax); /* 0x47081869: push eax */ 1658 RECOMP_ICALL(0x470A3500u); /* 0x4708186A: call 0x470a3500 */ /* not lifted */ 1659 RECOMP_FLAGS_IN(); 1660 MEM32(esp + 0x20) = eax; /* 0x4708186F: mov dword ptr [esp + 0x20], eax */ 1661 L_47081873: 1662 /* cmp MEM32(esp + 0x28), ebx */ /* 0x47081873: cmp dword ptr [esp + 0x28], ebx */ 1663 _flag_a = (uint32_t)(MEM32(esp + 0x28)); _flag_b = (uint32_t)(ebx); 1664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1665 _flag_k = FK_CMP; 1666 if (CMP_A(_flag_a, _flag_b)) goto L_47081883; /* 0x47081877: ja 0x47081883 */ 1667 L_47081879: 1668 /* cmp esi, ebx */ /* 0x47081879: cmp esi, ebx */ 1669 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1671 _flag_k = FK_CMP; 1672 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081883; /* 0x4708187B: je 0x47081883 */ 1673 L_4708187D: 1674 MEM32(esp + 0x24) = ebx; /* 0x4708187D: mov dword ptr [esp + 0x24], ebx */ 1675 goto L_470818BD; /* 0x47081881: jmp 0x470818bd */ 1676 L_47081883: 1677 ecx = esp + 0x20; /* 0x47081883: lea ecx, [esp + 0x20] */ 1678 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1679 edi = 0; /* 0x47081887: xor edi, edi */ 1680 _cf = 0; 1681 _flag_k = FK_TEST; 1682 RECOMP_ICALL(0x47081200u); /* 0x47081889: call 0x47081200 */ /* not lifted */ 1683 RECOMP_FLAGS_IN(); 1684 edx = MEM32(esp + 0x4C); /* 0x4708188E: mov edx, dword ptr [esp + 0x4c] */ 1685 PUSH32(esp, edi); /* 0x47081892: push edi */ 1686 PUSH32(esp, esi); /* 0x47081893: push esi */ 1687 ebx = eax; /* 0x47081894: mov ebx, eax */ 1688 eax = MEM32(esp + 0x50); /* 0x47081896: mov eax, dword ptr [esp + 0x50] */ 1689 PUSH32(esp, edx); /* 0x4708189A: push edx */ 1690 PUSH32(esp, eax); /* 0x4708189B: push eax */ 1691 RECOMP_ICALL(0x470A3640u); /* 0x4708189C: call 0x470a3640 */ /* not lifted */ 1692 RECOMP_FLAGS_IN(); 1693 PUSH32(esp, edx); /* 0x470818A1: push edx */ 1694 PUSH32(esp, eax); /* 0x470818A2: push eax */ 1695 PUSH32(esp, edi); /* 0x470818A3: push edi */ 1696 PUSH32(esp, ebx); /* 0x470818A4: push ebx */ 1697 RECOMP_ICALL(0x470A34C0u); /* 0x470818A5: call 0x470a34c0 */ /* not lifted */ 1698 RECOMP_FLAGS_IN(); 1699 PUSH32(esp, edi); /* 0x470818AA: push edi */ 1700 PUSH32(esp, esi); /* 0x470818AB: push esi */ 1701 PUSH32(esp, edx); /* 0x470818AC: push edx */ 1702 PUSH32(esp, eax); /* 0x470818AD: push eax */ 1703 RECOMP_ICALL(0x470A3500u); /* 0x470818AE: call 0x470a3500 */ /* not lifted */ 1704 RECOMP_FLAGS_IN(); 1705 edi = MEM32(esp + 0x10); /* 0x470818B3: mov edi, dword ptr [esp + 0x10] */ 1706 MEM32(esp + 0x24) = eax; /* 0x470818B7: mov dword ptr [esp + 0x24], eax */ 1707 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1708 ebx = 0; /* 0x470818BB: xor ebx, ebx */ 1709 _cf = 0; 1710 _flag_k = FK_TEST; 1711 L_470818BD: 1712 ecx = MEM32(esp + 0x30); /* 0x470818BD: mov ecx, dword ptr [esp + 0x30] */ 1713 edx = MEM32(esp + 0x2C); /* 0x470818C1: mov edx, dword ptr [esp + 0x2c] */ 1714 PUSH32(esp, ecx); /* 0x470818C5: push ecx */ 1715 PUSH32(esp, edx); /* 0x470818C6: push edx */ 1716 eax = esp + 0x6C; /* 0x470818C7: lea eax, [esp + 0x6c] */ 1717 PUSH32(esp, eax); /* 0x470818CB: push eax */ 1718 ecx = esp + 0x210; /* 0x470818CC: lea ecx, [esp + 0x210] */ 1719 PUSH32(esp, ecx); /* 0x470818D3: push ecx */ 1720 RECOMP_ICALL(0x47054FC0u); /* 0x470818D4: call 0x47054fc0 */ /* not lifted */ 1721 RECOMP_FLAGS_IN(); 1722 edx = MEM32(esp + 0x34); /* 0x470818D9: mov edx, dword ptr [esp + 0x34] */ 1723 eax = MEM32(esp + 0x30); /* 0x470818DD: mov eax, dword ptr [esp + 0x30] */ 1724 PUSH32(esp, edx); /* 0x470818E1: push edx */ 1725 PUSH32(esp, eax); /* 0x470818E2: push eax */ 1726 ecx = esp + 0x7C; /* 0x470818E3: lea ecx, [esp + 0x7c] */ 1727 PUSH32(esp, ecx); /* 0x470818E7: push ecx */ 1728 edx = esp + 0x120; /* 0x470818E8: lea edx, [esp + 0x120] */ 1729 PUSH32(esp, edx); /* 0x470818EF: push edx */ 1730 RECOMP_ICALL(0x47054FC0u); /* 0x470818F0: call 0x47054fc0 */ /* not lifted */ 1731 RECOMP_FLAGS_IN(); 1732 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 1733 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1734 esp = esp + 0x20u; /* 0x470818F5: add esp, 0x20 */ 1735 _flag_k = FK_ADD; 1736 L_470818F8: 1737 eax = MEM32(ebp); /* 0x470818F8: mov eax, dword ptr [ebp] */ 1738 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1739 edi = edi - 1; /* 0x470818FB: dec edi */ 1740 _flag_k = FK_DEC; 1741 /* cmp eax, ebx */ /* 0x470818FC: cmp eax, ebx */ 1742 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1744 _flag_k = FK_CMP; 1745 eax = MEM32(esp + 0x14); /* 0x470818FE: mov eax, dword ptr [esp + 0x14] */ 1746 MEM32(esp + 0x10) = edi; /* 0x47081902: mov dword ptr [esp + 0x10], edi */ 1747 RECOMP_BACKEDGE(); 1748 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081691; /* 0x47081906: je 0x47081691 */ 1749 L_4708190C: 1750 /* cmp eax, 1 */ /* 0x4708190C: cmp eax, 1 */ 1751 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1753 _flag_k = FK_CMP; 1754 if (CMP_NE(_flag_a, _flag_b)) goto L_47081959; /* 0x4708190F: jne 0x47081959 */ 1755 L_47081911: 1756 eax = esp + 0x184; /* 0x47081911: lea eax, [esp + 0x184] */ 1757 PUSH32(esp, eax); /* 0x47081918: push eax */ 1758 ecx = esp + 0x88; /* 0x47081919: lea ecx, [esp + 0x88] */ 1759 PUSH32(esp, ecx); /* 0x47081920: push ecx */ 1760 ecx = MEM32(ebp + 0x4); /* 0x47081921: mov ecx, dword ptr [ebp + 4] */ 1761 edx = esp + 0x10C; /* 0x47081924: lea edx, [esp + 0x10c] */ 1762 PUSH32(esp, edx); /* 0x4708192B: push edx */ 1763 edx = MEM32(esp + 0x29C); /* 0x4708192C: mov edx, dword ptr [esp + 0x29c] */ 1764 eax = esp + 0x210; /* 0x47081933: lea eax, [esp + 0x210] */ 1765 PUSH32(esp, eax); /* 0x4708193A: push eax */ 1766 PUSH32(esp, ecx); /* 0x4708193B: push ecx */ 1767 PUSH32(esp, 0x4710B5C8u); /* 0x4708193C: push 0x4710b5c8 */ 1768 PUSH32(esp, edx); /* 0x47081941: push edx */ 1769 RECOMP_ICALL(0x47054F80u); /* 0x47081942: call 0x47054f80 */ /* not lifted */ 1770 RECOMP_FLAGS_IN(); 1771 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 1772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1773 esp = esp + 0x1Cu; /* 0x47081947: add esp, 0x1c */ 1774 _flag_k = FK_ADD; 1775 edi = POP32_VAL(esp); /* 0x4708194A: pop edi */ 1776 esi = POP32_VAL(esp); /* 0x4708194B: pop esi */ 1777 ebp = POP32_VAL(esp); /* 0x4708194C: pop ebp */ 1778 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1779 eax = 0; /* 0x4708194D: xor eax, eax */ 1780 _cf = 0; 1781 _flag_k = FK_TEST; 1782 ebx = POP32_VAL(esp); /* 0x4708194F: pop ebx */ 1783 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 1784 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1785 esp = esp + 0x274u; /* 0x47081950: add esp, 0x274 */ 1786 _flag_k = FK_ADD; 1787 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081956: ret 0xc */ 1788 L_47081959: 1789 eax = MEM32(ebp); /* 0x47081959: mov eax, dword ptr [ebp] */ 1790 PUSH32(esp, eax); /* 0x4708195C: push eax */ 1791 RECOMP_ICALL(MEM32(0x470AC324)); /* 0x4708195D: call dword ptr [0x470ac324] */ 1792 RECOMP_FLAGS_IN(); 1793 ecx = MEM32(esp + 0x294); /* 0x47081963: mov ecx, dword ptr [esp + 0x294] */ 1794 PUSH32(esp, eax); /* 0x4708196A: push eax */ 1795 PUSH32(esp, 0x4710B5A0u); /* 0x4708196B: push 0x4710b5a0 */ 1796 PUSH32(esp, ecx); /* 0x47081970: push ecx */ 1797 RECOMP_ICALL(0x47054F80u); /* 0x47081971: call 0x47054f80 */ /* not lifted */ 1798 RECOMP_FLAGS_IN(); 1799 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1800 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1801 esp = esp + 0x10u; /* 0x47081976: add esp, 0x10 */ 1802 _flag_k = FK_ADD; 1803 edi = POP32_VAL(esp); /* 0x47081979: pop edi */ 1804 esi = POP32_VAL(esp); /* 0x4708197A: pop esi */ 1805 ebp = POP32_VAL(esp); /* 0x4708197B: pop ebp */ 1806 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1807 eax = eax | 0xFFFFFFFFu; /* 0x4708197C: or eax, 0xffffffff */ 1808 _cf = 0; 1809 _flag_k = FK_TEST; 1810 ebx = POP32_VAL(esp); /* 0x4708197F: pop ebx */ 1811 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 1812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1813 esp = esp + 0x274u; /* 0x47081980: add esp, 0x274 */ 1814 _flag_k = FK_ADD; 1815 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081986: ret 0xc */ 1816 RECOMP_REGS_OUT(); 1817 } 1818 1819 void sub_47081842(void) { 1820 int _fpu_cmp = 0; 1821 uint32_t _cf = 0; 1822 int _df = 1; 1823 uint32_t _flag_k = FK_NONE; 1824 uint32_t _flag_a = 0, _flag_b = 0; 1825 uint32_t _itail_tgt = 0; 1826 RECOMP_REGS_LOCALS 1827 RECOMP_ENTER(0x47081842u); 1828 1829 goto L_47081842; 1830 L_47081691: 1831 /* cmp eax, ebx */ /* 0x47081691: cmp eax, ebx */ 1832 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1834 _flag_k = FK_CMP; 1835 if (CMP_NE(_flag_a, _flag_b)) goto L_4708190C; /* 0x47081693: jne 0x4708190c */ 1836 L_47081699: 1837 /* cmp edi, ebx */ /* 0x47081699: cmp edi, ebx */ 1838 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1840 _flag_k = FK_CMP; 1841 if (CMP_L(_flag_a, _flag_b)) goto L_47081959; /* 0x4708169B: jl 0x47081959 */ 1842 L_470816A1: 1843 if (CMP_NE(_flag_a, _flag_b)) goto L_470816B0; /* 0x470816A1: jne 0x470816b0 */ 1844 L_470816A3: 1845 PUSH32(esp, ebx); /* 0x470816A3: push ebx */ 1846 PUSH32(esp, 0x4710B604u); /* 0x470816A4: push 0x4710b604 */ 1847 eax = esp + 0x6C; /* 0x470816A9: lea eax, [esp + 0x6c] */ 1848 PUSH32(esp, eax); /* 0x470816AD: push eax */ 1849 goto L_470816BB; /* 0x470816AE: jmp 0x470816bb */ 1850 L_470816B0: 1851 PUSH32(esp, edi); /* 0x470816B0: push edi */ 1852 PUSH32(esp, 0x4710B5F8u); /* 0x470816B1: push 0x4710b5f8 */ 1853 ecx = esp + 0x6C; /* 0x470816B6: lea ecx, [esp + 0x6c] */ 1854 PUSH32(esp, ecx); /* 0x470816BA: push ecx */ 1855 L_470816BB: 1856 RECOMP_ICALL(0x47054FC0u); /* 0x470816BB: call 0x47054fc0 */ /* not lifted */ 1857 RECOMP_FLAGS_IN(); 1858 eax = MEM32(ebp + 0x4); /* 0x470816C0: mov eax, dword ptr [ebp + 4] */ 1859 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1861 esp = esp + 0xCu; /* 0x470816C3: add esp, 0xc */ 1862 _flag_k = FK_ADD; 1863 /* cmp eax, ebx */ /* 0x470816C6: cmp eax, ebx */ 1864 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1866 _flag_k = FK_CMP; 1867 MEM32(esp + 0x3C) = ebx; /* 0x470816C8: mov dword ptr [esp + 0x3c], ebx */ 1868 MEM32(esp + 0x40) = ebx; /* 0x470816CC: mov dword ptr [esp + 0x40], ebx */ 1869 MEM32(esp + 0x44) = edi; /* 0x470816D0: mov dword ptr [esp + 0x44], edi */ 1870 if (CMP_BE(_flag_a, _flag_b)) goto L_4708174E; /* 0x470816D4: jbe 0x4708174e */ 1871 L_470816D6: 1872 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1873 edi = 0; /* 0x470816D6: xor edi, edi */ 1874 _cf = 0; 1875 _flag_k = FK_TEST; 1876 PUSH32(esp, edi); /* 0x470816D8: push edi */ 1877 edx = ebp + 0x10; /* 0x470816D9: lea edx, [ebp + 0x10] */ 1878 PUSH32(esp, edx); /* 0x470816DC: push edx */ 1879 ecx = esp + 0x20; /* 0x470816DD: lea ecx, [esp + 0x20] */ 1880 ebx = 1; /* 0x470816E1: mov ebx, 1 */ 1881 RECOMP_ICALL(0x470820E0u); /* 0x470816E6: call 0x470820e0 */ /* not lifted */ 1882 RECOMP_FLAGS_IN(); 1883 eax = MEM32(esp + 0x1C); /* 0x470816EB: mov eax, dword ptr [esp + 0x1c] */ 1884 ecx = MEM32(esp + 0x18); /* 0x470816EF: mov ecx, dword ptr [esp + 0x18] */ 1885 /* cmp ecx, MEM32(eax) */ /* 0x470816F3: cmp ecx, dword ptr [eax] */ 1886 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 1887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1888 _flag_k = FK_CMP; 1889 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708172A; /* 0x470816F5: je 0x4708172a */ 1890 L_470816F7: 1891 edx = esp + 0x54; /* 0x470816F7: lea edx, [esp + 0x54] */ 1892 PUSH32(esp, edx); /* 0x470816FB: push edx */ 1893 ecx = esp + 0x1C; /* 0x470816FC: lea ecx, [esp + 0x1c] */ 1894 RECOMP_ICALL(0x47082100u); /* 0x47081700: call 0x47082100 */ /* not lifted */ 1895 RECOMP_FLAGS_IN(); 1896 /* test eax, eax */ /* 0x47081705: test eax, eax */ 1897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1898 _cf = 0; 1899 _flag_k = FK_TEST; 1900 if (TEST_Z(_flag_a, _flag_b)) goto L_4708171E; /* 0x47081707: je 0x4708171e */ 1901 L_47081709: 1902 eax = MEM32(esp + 0x54); /* 0x47081709: mov eax, dword ptr [esp + 0x54] */ 1903 eax = MEM32(eax); /* 0x4708170D: mov eax, dword ptr [eax] */ 1904 ecx = MEM32(esp + 0x18); /* 0x4708170F: mov ecx, dword ptr [esp + 0x18] */ 1905 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081713: cdq */ 1906 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1908 edi = edi + eax; /* 0x47081714: add edi, eax */ 1909 _flag_k = FK_ADD; 1910 { uint32_t _aa = ebx, _ab = edx, _ac = _cf; /* 0x47081716: adc ebx, edx */ 1911 ebx = _aa + _ab + _ac; 1912 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 1913 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1914 edx = MEM32(ecx); /* 0x47081718: mov edx, dword ptr [ecx] */ 1915 MEM32(esp + 0x18) = edx; /* 0x4708171A: mov dword ptr [esp + 0x18], edx */ 1916 L_4708171E: 1917 eax = MEM32(esp + 0x1C); /* 0x4708171E: mov eax, dword ptr [esp + 0x1c] */ 1918 ecx = MEM32(esp + 0x18); /* 0x47081722: mov ecx, dword ptr [esp + 0x18] */ 1919 /* cmp ecx, MEM32(eax) */ /* 0x47081726: cmp ecx, dword ptr [eax] */ 1920 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 1921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1922 _flag_k = FK_CMP; 1923 RECOMP_BACKEDGE(); 1924 if (CMP_NE(_flag_a, _flag_b)) goto L_470816F7; /* 0x47081728: jne 0x470816f7 */ 1925 L_4708172A: 1926 eax = MEM32(ebp + 0x4); /* 0x4708172A: mov eax, dword ptr [ebp + 4] */ 1927 eax = (uint32_t)((int32_t)eax * (int32_t)esi); /* 0x4708172D: imul eax, esi */ 1928 edx = esp + 0x3C; /* 0x47081730: lea edx, [esp + 0x3c] */ 1929 PUSH32(esp, edx); /* 0x47081734: push edx */ 1930 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0); 1931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1932 edi = edi - 0; /* 0x47081735: sub edi, 0 */ 1933 _flag_k = FK_CMP; 1934 PUSH32(esp, eax); /* 0x47081738: push eax */ 1935 { uint32_t _sa = ebx, _sb = 1, _sc = _cf; /* 0x47081739: sbb ebx, 1 */ 1936 ebx = _sa - _sb - _sc; 1937 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1938 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1939 PUSH32(esp, ebx); /* 0x4708173C: push ebx */ 1940 PUSH32(esp, edi); /* 0x4708173D: push edi */ 1941 RECOMP_ICALL(0x47081990u); /* 0x4708173E: call 0x47081990 */ /* not lifted */ 1942 RECOMP_FLAGS_IN(); 1943 edi = MEM32(esp + 0x20); /* 0x47081743: mov edi, dword ptr [esp + 0x20] */ 1944 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1945 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1946 esp = esp + 0x10u; /* 0x47081747: add esp, 0x10 */ 1947 _flag_k = FK_ADD; 1948 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1949 ebx = 0; /* 0x4708174A: xor ebx, ebx */ 1950 _cf = 0; 1951 _flag_k = FK_TEST; 1952 goto L_47081756; /* 0x4708174C: jmp 0x47081756 */ 1953 L_4708174E: 1954 MEM32(esp + 0x3C) = ebx; /* 0x4708174E: mov dword ptr [esp + 0x3c], ebx */ 1955 MEM32(esp + 0x40) = ebx; /* 0x47081752: mov dword ptr [esp + 0x40], ebx */ 1956 L_47081756: 1957 ecx = MEM32(esp + 0x40); /* 0x47081756: mov ecx, dword ptr [esp + 0x40] */ 1958 edx = MEM32(esp + 0x3C); /* 0x4708175A: mov edx, dword ptr [esp + 0x3c] */ 1959 PUSH32(esp, ecx); /* 0x4708175E: push ecx */ 1960 PUSH32(esp, edx); /* 0x4708175F: push edx */ 1961 eax = esp + 0x6C; /* 0x47081760: lea eax, [esp + 0x6c] */ 1962 PUSH32(esp, eax); /* 0x47081764: push eax */ 1963 ecx = esp + 0x90; /* 0x47081765: lea ecx, [esp + 0x90] */ 1964 PUSH32(esp, ecx); /* 0x4708176C: push ecx */ 1965 RECOMP_ICALL(0x47054FC0u); /* 0x4708176D: call 0x47054fc0 */ /* not lifted */ 1966 RECOMP_FLAGS_IN(); 1967 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1968 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1969 esp = esp + 0x10u; /* 0x47081772: add esp, 0x10 */ 1970 _flag_k = FK_ADD; 1971 PUSH32(esp, esi); /* 0x47081775: push esi */ 1972 edx = esp + 0x5C; /* 0x47081776: lea edx, [esp + 0x5c] */ 1973 PUSH32(esp, edx); /* 0x4708177A: push edx */ 1974 ecx = ebp; /* 0x4708177B: mov ecx, ebp */ 1975 MEM32(esp + 0x60) = ebx; /* 0x4708177D: mov dword ptr [esp + 0x60], ebx */ 1976 MEM32(esp + 0x64) = ebx; /* 0x47081781: mov dword ptr [esp + 0x64], ebx */ 1977 MEM32(esp + 0x68) = edi; /* 0x47081785: mov dword ptr [esp + 0x68], edi */ 1978 RECOMP_ICALL(0x47081360u); /* 0x47081789: call 0x47081360 */ /* not lifted */ 1979 RECOMP_FLAGS_IN(); 1980 /* test eax, eax */ /* 0x4708178E: test eax, eax */ 1981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1982 _cf = 0; 1983 _flag_k = FK_TEST; 1984 if (TEST_Z(_flag_a, _flag_b)) goto L_4708179B; /* 0x47081790: je 0x4708179b */ 1985 L_47081792: 1986 MEM32(esp + 0x14) = ebx; /* 0x47081792: mov dword ptr [esp + 0x14], ebx */ 1987 goto L_470818F8; /* 0x47081796: jmp 0x470818f8 */ 1988 L_4708179B: 1989 eax = MEM32(esp + 0x5C); /* 0x4708179B: mov eax, dword ptr [esp + 0x5c] */ 1990 ecx = MEM32(esp + 0x58); /* 0x4708179F: mov ecx, dword ptr [esp + 0x58] */ 1991 PUSH32(esp, eax); /* 0x470817A3: push eax */ 1992 PUSH32(esp, ecx); /* 0x470817A4: push ecx */ 1993 edx = esp + 0x6C; /* 0x470817A5: lea edx, [esp + 0x6c] */ 1994 PUSH32(esp, edx); /* 0x470817A9: push edx */ 1995 eax = esp + 0x190; /* 0x470817AA: lea eax, [esp + 0x190] */ 1996 PUSH32(esp, eax); /* 0x470817B1: push eax */ 1997 MEM32(esp + 0x24) = 1; /* 0x470817B2: mov dword ptr [esp + 0x24], 1 */ 1998 RECOMP_ICALL(0x47054FC0u); /* 0x470817BA: call 0x47054fc0 */ /* not lifted */ 1999 RECOMP_FLAGS_IN(); 2000 eax = MEM32(ebp + 0x8); /* 0x470817BF: mov eax, dword ptr [ebp + 8] */ 2001 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2002 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2003 esp = esp + 0x10u; /* 0x470817C2: add esp, 0x10 */ 2004 _flag_k = FK_ADD; 2005 /* cmp eax, ebx */ /* 0x470817C5: cmp eax, ebx */ 2006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2008 _flag_k = FK_CMP; 2009 MEM32(esp + 0x2C) = ebx; /* 0x470817C7: mov dword ptr [esp + 0x2c], ebx */ 2010 MEM32(esp + 0x30) = ebx; /* 0x470817CB: mov dword ptr [esp + 0x30], ebx */ 2011 MEM32(esp + 0x34) = edi; /* 0x470817CF: mov dword ptr [esp + 0x34], edi */ 2012 MEM32(esp + 0x20) = ebx; /* 0x470817D3: mov dword ptr [esp + 0x20], ebx */ 2013 MEM32(esp + 0x24) = ebx; /* 0x470817D7: mov dword ptr [esp + 0x24], ebx */ 2014 MEM32(esp + 0x28) = edi; /* 0x470817DB: mov dword ptr [esp + 0x28], edi */ 2015 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708184C; /* 0x470817DF: je 0x4708184c */ 2016 L_470817E1: 2017 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x470817E1: cdq */ 2018 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2019 edi = 0; /* 0x470817E2: xor edi, edi */ 2020 _cf = 0; 2021 _flag_k = FK_TEST; 2022 /* cmp esi, edi */ /* 0x470817E4: cmp esi, edi */ 2023 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2025 _flag_k = FK_CMP; 2026 ebx = eax; /* 0x470817E6: mov ebx, eax */ 2027 ebp = edx; /* 0x470817E8: mov ebp, edx */ 2028 if (CMP_NE(_flag_a, _flag_b)) goto L_470817F2; /* 0x470817EA: jne 0x470817f2 */ 2029 L_470817EC: 2030 MEM32(esp + 0x2C) = edi; /* 0x470817EC: mov dword ptr [esp + 0x2c], edi */ 2031 goto L_470817FF; /* 0x470817F0: jmp 0x470817ff */ 2032 L_470817F2: 2033 PUSH32(esp, edi); /* 0x470817F2: push edi */ 2034 PUSH32(esp, esi); /* 0x470817F3: push esi */ 2035 PUSH32(esp, ebp); /* 0x470817F4: push ebp */ 2036 PUSH32(esp, ebx); /* 0x470817F5: push ebx */ 2037 RECOMP_ICALL(0x470A3500u); /* 0x470817F6: call 0x470a3500 */ /* not lifted */ 2038 RECOMP_FLAGS_IN(); 2039 MEM32(esp + 0x2C) = eax; /* 0x470817FB: mov dword ptr [esp + 0x2c], eax */ 2040 L_470817FF: 2041 /* cmp MEM32(esp + 0x10), edi */ /* 0x470817FF: cmp dword ptr [esp + 0x10], edi */ 2042 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(edi); 2043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2044 _flag_k = FK_CMP; 2045 if (CMP_A(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081803: ja 0x4708180f */ 2046 L_47081805: 2047 /* cmp esi, edi */ /* 0x47081805: cmp esi, edi */ 2048 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2050 _flag_k = FK_CMP; 2051 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081807: je 0x4708180f */ 2052 L_47081809: 2053 MEM32(esp + 0x30) = edi; /* 0x47081809: mov dword ptr [esp + 0x30], edi */ 2054 goto L_47081842; /* 0x4708180D: jmp 0x47081842 */ 2055 L_4708180F: 2056 ecx = esp + 0x2C; /* 0x4708180F: lea ecx, [esp + 0x2c] */ 2057 RECOMP_ICALL(0x47081200u); /* 0x47081813: call 0x47081200 */ /* not lifted */ 2058 RECOMP_FLAGS_IN(); 2059 PUSH32(esp, edi); /* 0x47081818: push edi */ 2060 PUSH32(esp, esi); /* 0x47081819: push esi */ 2061 PUSH32(esp, ebp); /* 0x4708181A: push ebp */ 2062 ecx = eax; /* 0x4708181B: mov ecx, eax */ 2063 PUSH32(esp, ebx); /* 0x4708181D: push ebx */ 2064 MEM32(esp + 0x60) = ecx; /* 0x4708181E: mov dword ptr [esp + 0x60], ecx */ 2065 RECOMP_ICALL(0x470A3640u); /* 0x47081822: call 0x470a3640 */ /* not lifted */ 2066 RECOMP_FLAGS_IN(); 2067 ecx = MEM32(esp + 0x50); /* 0x47081827: mov ecx, dword ptr [esp + 0x50] */ 2068 PUSH32(esp, edx); /* 0x4708182B: push edx */ 2069 PUSH32(esp, eax); /* 0x4708182C: push eax */ 2070 PUSH32(esp, 0); /* 0x4708182D: push 0 */ 2071 PUSH32(esp, ecx); /* 0x4708182F: push ecx */ 2072 RECOMP_ICALL(0x470A34C0u); /* 0x47081830: call 0x470a34c0 */ /* not lifted */ 2073 RECOMP_FLAGS_IN(); 2074 PUSH32(esp, edi); /* 0x47081835: push edi */ 2075 PUSH32(esp, esi); /* 0x47081836: push esi */ 2076 PUSH32(esp, edx); /* 0x47081837: push edx */ 2077 PUSH32(esp, eax); /* 0x47081838: push eax */ 2078 RECOMP_ICALL(0x470A3500u); /* 0x47081839: call 0x470a3500 */ /* not lifted */ 2079 RECOMP_FLAGS_IN(); 2080 MEM32(esp + 0x30) = eax; /* 0x4708183E: mov dword ptr [esp + 0x30], eax */ 2081 L_47081842: 2082 ebp = MEM32(esp + 0x38); /* 0x47081842: mov ebp, dword ptr [esp + 0x38] */ 2083 edi = MEM32(esp + 0x10); /* 0x47081846: mov edi, dword ptr [esp + 0x10] */ 2084 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2085 ebx = 0; /* 0x4708184A: xor ebx, ebx */ 2086 _cf = 0; 2087 _flag_k = FK_TEST; 2088 L_4708184C: 2089 eax = MEM32(ebp + 0xC); /* 0x4708184C: mov eax, dword ptr [ebp + 0xc] */ 2090 /* cmp eax, ebx */ /* 0x4708184F: cmp eax, ebx */ 2091 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2093 _flag_k = FK_CMP; 2094 if (CMP_EQ(_flag_a, _flag_b)) goto L_470818BD; /* 0x47081851: je 0x470818bd */ 2095 L_47081853: 2096 /* cmp esi, ebx */ /* 0x47081853: cmp esi, ebx */ 2097 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2099 _flag_k = FK_CMP; 2100 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081855: cdq */ 2101 MEM32(esp + 0x48) = eax; /* 0x47081856: mov dword ptr [esp + 0x48], eax */ 2102 MEM32(esp + 0x4C) = edx; /* 0x4708185A: mov dword ptr [esp + 0x4c], edx */ 2103 if (CMP_NE(_flag_a, _flag_b)) goto L_47081866; /* 0x4708185E: jne 0x47081866 */ 2104 L_47081860: 2105 MEM32(esp + 0x20) = ebx; /* 0x47081860: mov dword ptr [esp + 0x20], ebx */ 2106 goto L_47081873; /* 0x47081864: jmp 0x47081873 */ 2107 L_47081866: 2108 PUSH32(esp, ebx); /* 0x47081866: push ebx */ 2109 PUSH32(esp, esi); /* 0x47081867: push esi */ 2110 PUSH32(esp, edx); /* 0x47081868: push edx */ 2111 PUSH32(esp, eax); /* 0x47081869: push eax */ 2112 RECOMP_ICALL(0x470A3500u); /* 0x4708186A: call 0x470a3500 */ /* not lifted */ 2113 RECOMP_FLAGS_IN(); 2114 MEM32(esp + 0x20) = eax; /* 0x4708186F: mov dword ptr [esp + 0x20], eax */ 2115 L_47081873: 2116 /* cmp MEM32(esp + 0x28), ebx */ /* 0x47081873: cmp dword ptr [esp + 0x28], ebx */ 2117 _flag_a = (uint32_t)(MEM32(esp + 0x28)); _flag_b = (uint32_t)(ebx); 2118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2119 _flag_k = FK_CMP; 2120 if (CMP_A(_flag_a, _flag_b)) goto L_47081883; /* 0x47081877: ja 0x47081883 */ 2121 L_47081879: 2122 /* cmp esi, ebx */ /* 0x47081879: cmp esi, ebx */ 2123 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2125 _flag_k = FK_CMP; 2126 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081883; /* 0x4708187B: je 0x47081883 */ 2127 L_4708187D: 2128 MEM32(esp + 0x24) = ebx; /* 0x4708187D: mov dword ptr [esp + 0x24], ebx */ 2129 goto L_470818BD; /* 0x47081881: jmp 0x470818bd */ 2130 L_47081883: 2131 ecx = esp + 0x20; /* 0x47081883: lea ecx, [esp + 0x20] */ 2132 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2133 edi = 0; /* 0x47081887: xor edi, edi */ 2134 _cf = 0; 2135 _flag_k = FK_TEST; 2136 RECOMP_ICALL(0x47081200u); /* 0x47081889: call 0x47081200 */ /* not lifted */ 2137 RECOMP_FLAGS_IN(); 2138 edx = MEM32(esp + 0x4C); /* 0x4708188E: mov edx, dword ptr [esp + 0x4c] */ 2139 PUSH32(esp, edi); /* 0x47081892: push edi */ 2140 PUSH32(esp, esi); /* 0x47081893: push esi */ 2141 ebx = eax; /* 0x47081894: mov ebx, eax */ 2142 eax = MEM32(esp + 0x50); /* 0x47081896: mov eax, dword ptr [esp + 0x50] */ 2143 PUSH32(esp, edx); /* 0x4708189A: push edx */ 2144 PUSH32(esp, eax); /* 0x4708189B: push eax */ 2145 RECOMP_ICALL(0x470A3640u); /* 0x4708189C: call 0x470a3640 */ /* not lifted */ 2146 RECOMP_FLAGS_IN(); 2147 PUSH32(esp, edx); /* 0x470818A1: push edx */ 2148 PUSH32(esp, eax); /* 0x470818A2: push eax */ 2149 PUSH32(esp, edi); /* 0x470818A3: push edi */ 2150 PUSH32(esp, ebx); /* 0x470818A4: push ebx */ 2151 RECOMP_ICALL(0x470A34C0u); /* 0x470818A5: call 0x470a34c0 */ /* not lifted */ 2152 RECOMP_FLAGS_IN(); 2153 PUSH32(esp, edi); /* 0x470818AA: push edi */ 2154 PUSH32(esp, esi); /* 0x470818AB: push esi */ 2155 PUSH32(esp, edx); /* 0x470818AC: push edx */ 2156 PUSH32(esp, eax); /* 0x470818AD: push eax */ 2157 RECOMP_ICALL(0x470A3500u); /* 0x470818AE: call 0x470a3500 */ /* not lifted */ 2158 RECOMP_FLAGS_IN(); 2159 edi = MEM32(esp + 0x10); /* 0x470818B3: mov edi, dword ptr [esp + 0x10] */ 2160 MEM32(esp + 0x24) = eax; /* 0x470818B7: mov dword ptr [esp + 0x24], eax */ 2161 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2162 ebx = 0; /* 0x470818BB: xor ebx, ebx */ 2163 _cf = 0; 2164 _flag_k = FK_TEST; 2165 L_470818BD: 2166 ecx = MEM32(esp + 0x30); /* 0x470818BD: mov ecx, dword ptr [esp + 0x30] */ 2167 edx = MEM32(esp + 0x2C); /* 0x470818C1: mov edx, dword ptr [esp + 0x2c] */ 2168 PUSH32(esp, ecx); /* 0x470818C5: push ecx */ 2169 PUSH32(esp, edx); /* 0x470818C6: push edx */ 2170 eax = esp + 0x6C; /* 0x470818C7: lea eax, [esp + 0x6c] */ 2171 PUSH32(esp, eax); /* 0x470818CB: push eax */ 2172 ecx = esp + 0x210; /* 0x470818CC: lea ecx, [esp + 0x210] */ 2173 PUSH32(esp, ecx); /* 0x470818D3: push ecx */ 2174 RECOMP_ICALL(0x47054FC0u); /* 0x470818D4: call 0x47054fc0 */ /* not lifted */ 2175 RECOMP_FLAGS_IN(); 2176 edx = MEM32(esp + 0x34); /* 0x470818D9: mov edx, dword ptr [esp + 0x34] */ 2177 eax = MEM32(esp + 0x30); /* 0x470818DD: mov eax, dword ptr [esp + 0x30] */ 2178 PUSH32(esp, edx); /* 0x470818E1: push edx */ 2179 PUSH32(esp, eax); /* 0x470818E2: push eax */ 2180 ecx = esp + 0x7C; /* 0x470818E3: lea ecx, [esp + 0x7c] */ 2181 PUSH32(esp, ecx); /* 0x470818E7: push ecx */ 2182 edx = esp + 0x120; /* 0x470818E8: lea edx, [esp + 0x120] */ 2183 PUSH32(esp, edx); /* 0x470818EF: push edx */ 2184 RECOMP_ICALL(0x47054FC0u); /* 0x470818F0: call 0x47054fc0 */ /* not lifted */ 2185 RECOMP_FLAGS_IN(); 2186 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 2187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2188 esp = esp + 0x20u; /* 0x470818F5: add esp, 0x20 */ 2189 _flag_k = FK_ADD; 2190 L_470818F8: 2191 eax = MEM32(ebp); /* 0x470818F8: mov eax, dword ptr [ebp] */ 2192 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 2193 edi = edi - 1; /* 0x470818FB: dec edi */ 2194 _flag_k = FK_DEC; 2195 /* cmp eax, ebx */ /* 0x470818FC: cmp eax, ebx */ 2196 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2198 _flag_k = FK_CMP; 2199 eax = MEM32(esp + 0x14); /* 0x470818FE: mov eax, dword ptr [esp + 0x14] */ 2200 MEM32(esp + 0x10) = edi; /* 0x47081902: mov dword ptr [esp + 0x10], edi */ 2201 RECOMP_BACKEDGE(); 2202 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081691; /* 0x47081906: je 0x47081691 */ 2203 L_4708190C: 2204 /* cmp eax, 1 */ /* 0x4708190C: cmp eax, 1 */ 2205 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2207 _flag_k = FK_CMP; 2208 if (CMP_NE(_flag_a, _flag_b)) goto L_47081959; /* 0x4708190F: jne 0x47081959 */ 2209 L_47081911: 2210 eax = esp + 0x184; /* 0x47081911: lea eax, [esp + 0x184] */ 2211 PUSH32(esp, eax); /* 0x47081918: push eax */ 2212 ecx = esp + 0x88; /* 0x47081919: lea ecx, [esp + 0x88] */ 2213 PUSH32(esp, ecx); /* 0x47081920: push ecx */ 2214 ecx = MEM32(ebp + 0x4); /* 0x47081921: mov ecx, dword ptr [ebp + 4] */ 2215 edx = esp + 0x10C; /* 0x47081924: lea edx, [esp + 0x10c] */ 2216 PUSH32(esp, edx); /* 0x4708192B: push edx */ 2217 edx = MEM32(esp + 0x29C); /* 0x4708192C: mov edx, dword ptr [esp + 0x29c] */ 2218 eax = esp + 0x210; /* 0x47081933: lea eax, [esp + 0x210] */ 2219 PUSH32(esp, eax); /* 0x4708193A: push eax */ 2220 PUSH32(esp, ecx); /* 0x4708193B: push ecx */ 2221 PUSH32(esp, 0x4710B5C8u); /* 0x4708193C: push 0x4710b5c8 */ 2222 PUSH32(esp, edx); /* 0x47081941: push edx */ 2223 RECOMP_ICALL(0x47054F80u); /* 0x47081942: call 0x47054f80 */ /* not lifted */ 2224 RECOMP_FLAGS_IN(); 2225 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 2226 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2227 esp = esp + 0x1Cu; /* 0x47081947: add esp, 0x1c */ 2228 _flag_k = FK_ADD; 2229 edi = POP32_VAL(esp); /* 0x4708194A: pop edi */ 2230 esi = POP32_VAL(esp); /* 0x4708194B: pop esi */ 2231 ebp = POP32_VAL(esp); /* 0x4708194C: pop ebp */ 2232 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2233 eax = 0; /* 0x4708194D: xor eax, eax */ 2234 _cf = 0; 2235 _flag_k = FK_TEST; 2236 ebx = POP32_VAL(esp); /* 0x4708194F: pop ebx */ 2237 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 2238 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2239 esp = esp + 0x274u; /* 0x47081950: add esp, 0x274 */ 2240 _flag_k = FK_ADD; 2241 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081956: ret 0xc */ 2242 L_47081959: 2243 eax = MEM32(ebp); /* 0x47081959: mov eax, dword ptr [ebp] */ 2244 PUSH32(esp, eax); /* 0x4708195C: push eax */ 2245 RECOMP_ICALL(MEM32(0x470AC324)); /* 0x4708195D: call dword ptr [0x470ac324] */ 2246 RECOMP_FLAGS_IN(); 2247 ecx = MEM32(esp + 0x294); /* 0x47081963: mov ecx, dword ptr [esp + 0x294] */ 2248 PUSH32(esp, eax); /* 0x4708196A: push eax */ 2249 PUSH32(esp, 0x4710B5A0u); /* 0x4708196B: push 0x4710b5a0 */ 2250 PUSH32(esp, ecx); /* 0x47081970: push ecx */ 2251 RECOMP_ICALL(0x47054F80u); /* 0x47081971: call 0x47054f80 */ /* not lifted */ 2252 RECOMP_FLAGS_IN(); 2253 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2254 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2255 esp = esp + 0x10u; /* 0x47081976: add esp, 0x10 */ 2256 _flag_k = FK_ADD; 2257 edi = POP32_VAL(esp); /* 0x47081979: pop edi */ 2258 esi = POP32_VAL(esp); /* 0x4708197A: pop esi */ 2259 ebp = POP32_VAL(esp); /* 0x4708197B: pop ebp */ 2260 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2261 eax = eax | 0xFFFFFFFFu; /* 0x4708197C: or eax, 0xffffffff */ 2262 _cf = 0; 2263 _flag_k = FK_TEST; 2264 ebx = POP32_VAL(esp); /* 0x4708197F: pop ebx */ 2265 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 2266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2267 esp = esp + 0x274u; /* 0x47081980: add esp, 0x274 */ 2268 _flag_k = FK_ADD; 2269 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081986: ret 0xc */ 2270 RECOMP_REGS_OUT(); 2271 } 2272 2273 void sub_47081873(void) { 2274 int _fpu_cmp = 0; 2275 uint32_t _cf = 0; 2276 int _df = 1; 2277 uint32_t _flag_k = FK_NONE; 2278 uint32_t _flag_a = 0, _flag_b = 0; 2279 uint32_t _itail_tgt = 0; 2280 RECOMP_REGS_LOCALS 2281 RECOMP_ENTER(0x47081873u); 2282 2283 goto L_47081873; 2284 L_47081691: 2285 /* cmp eax, ebx */ /* 0x47081691: cmp eax, ebx */ 2286 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2288 _flag_k = FK_CMP; 2289 if (CMP_NE(_flag_a, _flag_b)) goto L_4708190C; /* 0x47081693: jne 0x4708190c */ 2290 L_47081699: 2291 /* cmp edi, ebx */ /* 0x47081699: cmp edi, ebx */ 2292 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2294 _flag_k = FK_CMP; 2295 if (CMP_L(_flag_a, _flag_b)) goto L_47081959; /* 0x4708169B: jl 0x47081959 */ 2296 L_470816A1: 2297 if (CMP_NE(_flag_a, _flag_b)) goto L_470816B0; /* 0x470816A1: jne 0x470816b0 */ 2298 L_470816A3: 2299 PUSH32(esp, ebx); /* 0x470816A3: push ebx */ 2300 PUSH32(esp, 0x4710B604u); /* 0x470816A4: push 0x4710b604 */ 2301 eax = esp + 0x6C; /* 0x470816A9: lea eax, [esp + 0x6c] */ 2302 PUSH32(esp, eax); /* 0x470816AD: push eax */ 2303 goto L_470816BB; /* 0x470816AE: jmp 0x470816bb */ 2304 L_470816B0: 2305 PUSH32(esp, edi); /* 0x470816B0: push edi */ 2306 PUSH32(esp, 0x4710B5F8u); /* 0x470816B1: push 0x4710b5f8 */ 2307 ecx = esp + 0x6C; /* 0x470816B6: lea ecx, [esp + 0x6c] */ 2308 PUSH32(esp, ecx); /* 0x470816BA: push ecx */ 2309 L_470816BB: 2310 RECOMP_ICALL(0x47054FC0u); /* 0x470816BB: call 0x47054fc0 */ /* not lifted */ 2311 RECOMP_FLAGS_IN(); 2312 eax = MEM32(ebp + 0x4); /* 0x470816C0: mov eax, dword ptr [ebp + 4] */ 2313 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2315 esp = esp + 0xCu; /* 0x470816C3: add esp, 0xc */ 2316 _flag_k = FK_ADD; 2317 /* cmp eax, ebx */ /* 0x470816C6: cmp eax, ebx */ 2318 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2320 _flag_k = FK_CMP; 2321 MEM32(esp + 0x3C) = ebx; /* 0x470816C8: mov dword ptr [esp + 0x3c], ebx */ 2322 MEM32(esp + 0x40) = ebx; /* 0x470816CC: mov dword ptr [esp + 0x40], ebx */ 2323 MEM32(esp + 0x44) = edi; /* 0x470816D0: mov dword ptr [esp + 0x44], edi */ 2324 if (CMP_BE(_flag_a, _flag_b)) goto L_4708174E; /* 0x470816D4: jbe 0x4708174e */ 2325 L_470816D6: 2326 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2327 edi = 0; /* 0x470816D6: xor edi, edi */ 2328 _cf = 0; 2329 _flag_k = FK_TEST; 2330 PUSH32(esp, edi); /* 0x470816D8: push edi */ 2331 edx = ebp + 0x10; /* 0x470816D9: lea edx, [ebp + 0x10] */ 2332 PUSH32(esp, edx); /* 0x470816DC: push edx */ 2333 ecx = esp + 0x20; /* 0x470816DD: lea ecx, [esp + 0x20] */ 2334 ebx = 1; /* 0x470816E1: mov ebx, 1 */ 2335 RECOMP_ICALL(0x470820E0u); /* 0x470816E6: call 0x470820e0 */ /* not lifted */ 2336 RECOMP_FLAGS_IN(); 2337 eax = MEM32(esp + 0x1C); /* 0x470816EB: mov eax, dword ptr [esp + 0x1c] */ 2338 ecx = MEM32(esp + 0x18); /* 0x470816EF: mov ecx, dword ptr [esp + 0x18] */ 2339 /* cmp ecx, MEM32(eax) */ /* 0x470816F3: cmp ecx, dword ptr [eax] */ 2340 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 2341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2342 _flag_k = FK_CMP; 2343 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708172A; /* 0x470816F5: je 0x4708172a */ 2344 L_470816F7: 2345 edx = esp + 0x54; /* 0x470816F7: lea edx, [esp + 0x54] */ 2346 PUSH32(esp, edx); /* 0x470816FB: push edx */ 2347 ecx = esp + 0x1C; /* 0x470816FC: lea ecx, [esp + 0x1c] */ 2348 RECOMP_ICALL(0x47082100u); /* 0x47081700: call 0x47082100 */ /* not lifted */ 2349 RECOMP_FLAGS_IN(); 2350 /* test eax, eax */ /* 0x47081705: test eax, eax */ 2351 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2352 _cf = 0; 2353 _flag_k = FK_TEST; 2354 if (TEST_Z(_flag_a, _flag_b)) goto L_4708171E; /* 0x47081707: je 0x4708171e */ 2355 L_47081709: 2356 eax = MEM32(esp + 0x54); /* 0x47081709: mov eax, dword ptr [esp + 0x54] */ 2357 eax = MEM32(eax); /* 0x4708170D: mov eax, dword ptr [eax] */ 2358 ecx = MEM32(esp + 0x18); /* 0x4708170F: mov ecx, dword ptr [esp + 0x18] */ 2359 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081713: cdq */ 2360 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2361 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2362 edi = edi + eax; /* 0x47081714: add edi, eax */ 2363 _flag_k = FK_ADD; 2364 { uint32_t _aa = ebx, _ab = edx, _ac = _cf; /* 0x47081716: adc ebx, edx */ 2365 ebx = _aa + _ab + _ac; 2366 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 2367 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2368 edx = MEM32(ecx); /* 0x47081718: mov edx, dword ptr [ecx] */ 2369 MEM32(esp + 0x18) = edx; /* 0x4708171A: mov dword ptr [esp + 0x18], edx */ 2370 L_4708171E: 2371 eax = MEM32(esp + 0x1C); /* 0x4708171E: mov eax, dword ptr [esp + 0x1c] */ 2372 ecx = MEM32(esp + 0x18); /* 0x47081722: mov ecx, dword ptr [esp + 0x18] */ 2373 /* cmp ecx, MEM32(eax) */ /* 0x47081726: cmp ecx, dword ptr [eax] */ 2374 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 2375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2376 _flag_k = FK_CMP; 2377 RECOMP_BACKEDGE(); 2378 if (CMP_NE(_flag_a, _flag_b)) goto L_470816F7; /* 0x47081728: jne 0x470816f7 */ 2379 L_4708172A: 2380 eax = MEM32(ebp + 0x4); /* 0x4708172A: mov eax, dword ptr [ebp + 4] */ 2381 eax = (uint32_t)((int32_t)eax * (int32_t)esi); /* 0x4708172D: imul eax, esi */ 2382 edx = esp + 0x3C; /* 0x47081730: lea edx, [esp + 0x3c] */ 2383 PUSH32(esp, edx); /* 0x47081734: push edx */ 2384 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0); 2385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2386 edi = edi - 0; /* 0x47081735: sub edi, 0 */ 2387 _flag_k = FK_CMP; 2388 PUSH32(esp, eax); /* 0x47081738: push eax */ 2389 { uint32_t _sa = ebx, _sb = 1, _sc = _cf; /* 0x47081739: sbb ebx, 1 */ 2390 ebx = _sa - _sb - _sc; 2391 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2392 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2393 PUSH32(esp, ebx); /* 0x4708173C: push ebx */ 2394 PUSH32(esp, edi); /* 0x4708173D: push edi */ 2395 RECOMP_ICALL(0x47081990u); /* 0x4708173E: call 0x47081990 */ /* not lifted */ 2396 RECOMP_FLAGS_IN(); 2397 edi = MEM32(esp + 0x20); /* 0x47081743: mov edi, dword ptr [esp + 0x20] */ 2398 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2400 esp = esp + 0x10u; /* 0x47081747: add esp, 0x10 */ 2401 _flag_k = FK_ADD; 2402 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2403 ebx = 0; /* 0x4708174A: xor ebx, ebx */ 2404 _cf = 0; 2405 _flag_k = FK_TEST; 2406 goto L_47081756; /* 0x4708174C: jmp 0x47081756 */ 2407 L_4708174E: 2408 MEM32(esp + 0x3C) = ebx; /* 0x4708174E: mov dword ptr [esp + 0x3c], ebx */ 2409 MEM32(esp + 0x40) = ebx; /* 0x47081752: mov dword ptr [esp + 0x40], ebx */ 2410 L_47081756: 2411 ecx = MEM32(esp + 0x40); /* 0x47081756: mov ecx, dword ptr [esp + 0x40] */ 2412 edx = MEM32(esp + 0x3C); /* 0x4708175A: mov edx, dword ptr [esp + 0x3c] */ 2413 PUSH32(esp, ecx); /* 0x4708175E: push ecx */ 2414 PUSH32(esp, edx); /* 0x4708175F: push edx */ 2415 eax = esp + 0x6C; /* 0x47081760: lea eax, [esp + 0x6c] */ 2416 PUSH32(esp, eax); /* 0x47081764: push eax */ 2417 ecx = esp + 0x90; /* 0x47081765: lea ecx, [esp + 0x90] */ 2418 PUSH32(esp, ecx); /* 0x4708176C: push ecx */ 2419 RECOMP_ICALL(0x47054FC0u); /* 0x4708176D: call 0x47054fc0 */ /* not lifted */ 2420 RECOMP_FLAGS_IN(); 2421 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2422 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2423 esp = esp + 0x10u; /* 0x47081772: add esp, 0x10 */ 2424 _flag_k = FK_ADD; 2425 PUSH32(esp, esi); /* 0x47081775: push esi */ 2426 edx = esp + 0x5C; /* 0x47081776: lea edx, [esp + 0x5c] */ 2427 PUSH32(esp, edx); /* 0x4708177A: push edx */ 2428 ecx = ebp; /* 0x4708177B: mov ecx, ebp */ 2429 MEM32(esp + 0x60) = ebx; /* 0x4708177D: mov dword ptr [esp + 0x60], ebx */ 2430 MEM32(esp + 0x64) = ebx; /* 0x47081781: mov dword ptr [esp + 0x64], ebx */ 2431 MEM32(esp + 0x68) = edi; /* 0x47081785: mov dword ptr [esp + 0x68], edi */ 2432 RECOMP_ICALL(0x47081360u); /* 0x47081789: call 0x47081360 */ /* not lifted */ 2433 RECOMP_FLAGS_IN(); 2434 /* test eax, eax */ /* 0x4708178E: test eax, eax */ 2435 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2436 _cf = 0; 2437 _flag_k = FK_TEST; 2438 if (TEST_Z(_flag_a, _flag_b)) goto L_4708179B; /* 0x47081790: je 0x4708179b */ 2439 L_47081792: 2440 MEM32(esp + 0x14) = ebx; /* 0x47081792: mov dword ptr [esp + 0x14], ebx */ 2441 goto L_470818F8; /* 0x47081796: jmp 0x470818f8 */ 2442 L_4708179B: 2443 eax = MEM32(esp + 0x5C); /* 0x4708179B: mov eax, dword ptr [esp + 0x5c] */ 2444 ecx = MEM32(esp + 0x58); /* 0x4708179F: mov ecx, dword ptr [esp + 0x58] */ 2445 PUSH32(esp, eax); /* 0x470817A3: push eax */ 2446 PUSH32(esp, ecx); /* 0x470817A4: push ecx */ 2447 edx = esp + 0x6C; /* 0x470817A5: lea edx, [esp + 0x6c] */ 2448 PUSH32(esp, edx); /* 0x470817A9: push edx */ 2449 eax = esp + 0x190; /* 0x470817AA: lea eax, [esp + 0x190] */ 2450 PUSH32(esp, eax); /* 0x470817B1: push eax */ 2451 MEM32(esp + 0x24) = 1; /* 0x470817B2: mov dword ptr [esp + 0x24], 1 */ 2452 RECOMP_ICALL(0x47054FC0u); /* 0x470817BA: call 0x47054fc0 */ /* not lifted */ 2453 RECOMP_FLAGS_IN(); 2454 eax = MEM32(ebp + 0x8); /* 0x470817BF: mov eax, dword ptr [ebp + 8] */ 2455 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2456 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2457 esp = esp + 0x10u; /* 0x470817C2: add esp, 0x10 */ 2458 _flag_k = FK_ADD; 2459 /* cmp eax, ebx */ /* 0x470817C5: cmp eax, ebx */ 2460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2462 _flag_k = FK_CMP; 2463 MEM32(esp + 0x2C) = ebx; /* 0x470817C7: mov dword ptr [esp + 0x2c], ebx */ 2464 MEM32(esp + 0x30) = ebx; /* 0x470817CB: mov dword ptr [esp + 0x30], ebx */ 2465 MEM32(esp + 0x34) = edi; /* 0x470817CF: mov dword ptr [esp + 0x34], edi */ 2466 MEM32(esp + 0x20) = ebx; /* 0x470817D3: mov dword ptr [esp + 0x20], ebx */ 2467 MEM32(esp + 0x24) = ebx; /* 0x470817D7: mov dword ptr [esp + 0x24], ebx */ 2468 MEM32(esp + 0x28) = edi; /* 0x470817DB: mov dword ptr [esp + 0x28], edi */ 2469 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708184C; /* 0x470817DF: je 0x4708184c */ 2470 L_470817E1: 2471 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x470817E1: cdq */ 2472 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2473 edi = 0; /* 0x470817E2: xor edi, edi */ 2474 _cf = 0; 2475 _flag_k = FK_TEST; 2476 /* cmp esi, edi */ /* 0x470817E4: cmp esi, edi */ 2477 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2479 _flag_k = FK_CMP; 2480 ebx = eax; /* 0x470817E6: mov ebx, eax */ 2481 ebp = edx; /* 0x470817E8: mov ebp, edx */ 2482 if (CMP_NE(_flag_a, _flag_b)) goto L_470817F2; /* 0x470817EA: jne 0x470817f2 */ 2483 L_470817EC: 2484 MEM32(esp + 0x2C) = edi; /* 0x470817EC: mov dword ptr [esp + 0x2c], edi */ 2485 goto L_470817FF; /* 0x470817F0: jmp 0x470817ff */ 2486 L_470817F2: 2487 PUSH32(esp, edi); /* 0x470817F2: push edi */ 2488 PUSH32(esp, esi); /* 0x470817F3: push esi */ 2489 PUSH32(esp, ebp); /* 0x470817F4: push ebp */ 2490 PUSH32(esp, ebx); /* 0x470817F5: push ebx */ 2491 RECOMP_ICALL(0x470A3500u); /* 0x470817F6: call 0x470a3500 */ /* not lifted */ 2492 RECOMP_FLAGS_IN(); 2493 MEM32(esp + 0x2C) = eax; /* 0x470817FB: mov dword ptr [esp + 0x2c], eax */ 2494 L_470817FF: 2495 /* cmp MEM32(esp + 0x10), edi */ /* 0x470817FF: cmp dword ptr [esp + 0x10], edi */ 2496 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(edi); 2497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2498 _flag_k = FK_CMP; 2499 if (CMP_A(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081803: ja 0x4708180f */ 2500 L_47081805: 2501 /* cmp esi, edi */ /* 0x47081805: cmp esi, edi */ 2502 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2504 _flag_k = FK_CMP; 2505 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081807: je 0x4708180f */ 2506 L_47081809: 2507 MEM32(esp + 0x30) = edi; /* 0x47081809: mov dword ptr [esp + 0x30], edi */ 2508 goto L_47081842; /* 0x4708180D: jmp 0x47081842 */ 2509 L_4708180F: 2510 ecx = esp + 0x2C; /* 0x4708180F: lea ecx, [esp + 0x2c] */ 2511 RECOMP_ICALL(0x47081200u); /* 0x47081813: call 0x47081200 */ /* not lifted */ 2512 RECOMP_FLAGS_IN(); 2513 PUSH32(esp, edi); /* 0x47081818: push edi */ 2514 PUSH32(esp, esi); /* 0x47081819: push esi */ 2515 PUSH32(esp, ebp); /* 0x4708181A: push ebp */ 2516 ecx = eax; /* 0x4708181B: mov ecx, eax */ 2517 PUSH32(esp, ebx); /* 0x4708181D: push ebx */ 2518 MEM32(esp + 0x60) = ecx; /* 0x4708181E: mov dword ptr [esp + 0x60], ecx */ 2519 RECOMP_ICALL(0x470A3640u); /* 0x47081822: call 0x470a3640 */ /* not lifted */ 2520 RECOMP_FLAGS_IN(); 2521 ecx = MEM32(esp + 0x50); /* 0x47081827: mov ecx, dword ptr [esp + 0x50] */ 2522 PUSH32(esp, edx); /* 0x4708182B: push edx */ 2523 PUSH32(esp, eax); /* 0x4708182C: push eax */ 2524 PUSH32(esp, 0); /* 0x4708182D: push 0 */ 2525 PUSH32(esp, ecx); /* 0x4708182F: push ecx */ 2526 RECOMP_ICALL(0x470A34C0u); /* 0x47081830: call 0x470a34c0 */ /* not lifted */ 2527 RECOMP_FLAGS_IN(); 2528 PUSH32(esp, edi); /* 0x47081835: push edi */ 2529 PUSH32(esp, esi); /* 0x47081836: push esi */ 2530 PUSH32(esp, edx); /* 0x47081837: push edx */ 2531 PUSH32(esp, eax); /* 0x47081838: push eax */ 2532 RECOMP_ICALL(0x470A3500u); /* 0x47081839: call 0x470a3500 */ /* not lifted */ 2533 RECOMP_FLAGS_IN(); 2534 MEM32(esp + 0x30) = eax; /* 0x4708183E: mov dword ptr [esp + 0x30], eax */ 2535 L_47081842: 2536 ebp = MEM32(esp + 0x38); /* 0x47081842: mov ebp, dword ptr [esp + 0x38] */ 2537 edi = MEM32(esp + 0x10); /* 0x47081846: mov edi, dword ptr [esp + 0x10] */ 2538 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2539 ebx = 0; /* 0x4708184A: xor ebx, ebx */ 2540 _cf = 0; 2541 _flag_k = FK_TEST; 2542 L_4708184C: 2543 eax = MEM32(ebp + 0xC); /* 0x4708184C: mov eax, dword ptr [ebp + 0xc] */ 2544 /* cmp eax, ebx */ /* 0x4708184F: cmp eax, ebx */ 2545 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2547 _flag_k = FK_CMP; 2548 if (CMP_EQ(_flag_a, _flag_b)) goto L_470818BD; /* 0x47081851: je 0x470818bd */ 2549 L_47081853: 2550 /* cmp esi, ebx */ /* 0x47081853: cmp esi, ebx */ 2551 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2553 _flag_k = FK_CMP; 2554 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081855: cdq */ 2555 MEM32(esp + 0x48) = eax; /* 0x47081856: mov dword ptr [esp + 0x48], eax */ 2556 MEM32(esp + 0x4C) = edx; /* 0x4708185A: mov dword ptr [esp + 0x4c], edx */ 2557 if (CMP_NE(_flag_a, _flag_b)) goto L_47081866; /* 0x4708185E: jne 0x47081866 */ 2558 L_47081860: 2559 MEM32(esp + 0x20) = ebx; /* 0x47081860: mov dword ptr [esp + 0x20], ebx */ 2560 goto L_47081873; /* 0x47081864: jmp 0x47081873 */ 2561 L_47081866: 2562 PUSH32(esp, ebx); /* 0x47081866: push ebx */ 2563 PUSH32(esp, esi); /* 0x47081867: push esi */ 2564 PUSH32(esp, edx); /* 0x47081868: push edx */ 2565 PUSH32(esp, eax); /* 0x47081869: push eax */ 2566 RECOMP_ICALL(0x470A3500u); /* 0x4708186A: call 0x470a3500 */ /* not lifted */ 2567 RECOMP_FLAGS_IN(); 2568 MEM32(esp + 0x20) = eax; /* 0x4708186F: mov dword ptr [esp + 0x20], eax */ 2569 L_47081873: 2570 /* cmp MEM32(esp + 0x28), ebx */ /* 0x47081873: cmp dword ptr [esp + 0x28], ebx */ 2571 _flag_a = (uint32_t)(MEM32(esp + 0x28)); _flag_b = (uint32_t)(ebx); 2572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2573 _flag_k = FK_CMP; 2574 if (CMP_A(_flag_a, _flag_b)) goto L_47081883; /* 0x47081877: ja 0x47081883 */ 2575 L_47081879: 2576 /* cmp esi, ebx */ /* 0x47081879: cmp esi, ebx */ 2577 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2579 _flag_k = FK_CMP; 2580 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081883; /* 0x4708187B: je 0x47081883 */ 2581 L_4708187D: 2582 MEM32(esp + 0x24) = ebx; /* 0x4708187D: mov dword ptr [esp + 0x24], ebx */ 2583 goto L_470818BD; /* 0x47081881: jmp 0x470818bd */ 2584 L_47081883: 2585 ecx = esp + 0x20; /* 0x47081883: lea ecx, [esp + 0x20] */ 2586 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2587 edi = 0; /* 0x47081887: xor edi, edi */ 2588 _cf = 0; 2589 _flag_k = FK_TEST; 2590 RECOMP_ICALL(0x47081200u); /* 0x47081889: call 0x47081200 */ /* not lifted */ 2591 RECOMP_FLAGS_IN(); 2592 edx = MEM32(esp + 0x4C); /* 0x4708188E: mov edx, dword ptr [esp + 0x4c] */ 2593 PUSH32(esp, edi); /* 0x47081892: push edi */ 2594 PUSH32(esp, esi); /* 0x47081893: push esi */ 2595 ebx = eax; /* 0x47081894: mov ebx, eax */ 2596 eax = MEM32(esp + 0x50); /* 0x47081896: mov eax, dword ptr [esp + 0x50] */ 2597 PUSH32(esp, edx); /* 0x4708189A: push edx */ 2598 PUSH32(esp, eax); /* 0x4708189B: push eax */ 2599 RECOMP_ICALL(0x470A3640u); /* 0x4708189C: call 0x470a3640 */ /* not lifted */ 2600 RECOMP_FLAGS_IN(); 2601 PUSH32(esp, edx); /* 0x470818A1: push edx */ 2602 PUSH32(esp, eax); /* 0x470818A2: push eax */ 2603 PUSH32(esp, edi); /* 0x470818A3: push edi */ 2604 PUSH32(esp, ebx); /* 0x470818A4: push ebx */ 2605 RECOMP_ICALL(0x470A34C0u); /* 0x470818A5: call 0x470a34c0 */ /* not lifted */ 2606 RECOMP_FLAGS_IN(); 2607 PUSH32(esp, edi); /* 0x470818AA: push edi */ 2608 PUSH32(esp, esi); /* 0x470818AB: push esi */ 2609 PUSH32(esp, edx); /* 0x470818AC: push edx */ 2610 PUSH32(esp, eax); /* 0x470818AD: push eax */ 2611 RECOMP_ICALL(0x470A3500u); /* 0x470818AE: call 0x470a3500 */ /* not lifted */ 2612 RECOMP_FLAGS_IN(); 2613 edi = MEM32(esp + 0x10); /* 0x470818B3: mov edi, dword ptr [esp + 0x10] */ 2614 MEM32(esp + 0x24) = eax; /* 0x470818B7: mov dword ptr [esp + 0x24], eax */ 2615 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2616 ebx = 0; /* 0x470818BB: xor ebx, ebx */ 2617 _cf = 0; 2618 _flag_k = FK_TEST; 2619 L_470818BD: 2620 ecx = MEM32(esp + 0x30); /* 0x470818BD: mov ecx, dword ptr [esp + 0x30] */ 2621 edx = MEM32(esp + 0x2C); /* 0x470818C1: mov edx, dword ptr [esp + 0x2c] */ 2622 PUSH32(esp, ecx); /* 0x470818C5: push ecx */ 2623 PUSH32(esp, edx); /* 0x470818C6: push edx */ 2624 eax = esp + 0x6C; /* 0x470818C7: lea eax, [esp + 0x6c] */ 2625 PUSH32(esp, eax); /* 0x470818CB: push eax */ 2626 ecx = esp + 0x210; /* 0x470818CC: lea ecx, [esp + 0x210] */ 2627 PUSH32(esp, ecx); /* 0x470818D3: push ecx */ 2628 RECOMP_ICALL(0x47054FC0u); /* 0x470818D4: call 0x47054fc0 */ /* not lifted */ 2629 RECOMP_FLAGS_IN(); 2630 edx = MEM32(esp + 0x34); /* 0x470818D9: mov edx, dword ptr [esp + 0x34] */ 2631 eax = MEM32(esp + 0x30); /* 0x470818DD: mov eax, dword ptr [esp + 0x30] */ 2632 PUSH32(esp, edx); /* 0x470818E1: push edx */ 2633 PUSH32(esp, eax); /* 0x470818E2: push eax */ 2634 ecx = esp + 0x7C; /* 0x470818E3: lea ecx, [esp + 0x7c] */ 2635 PUSH32(esp, ecx); /* 0x470818E7: push ecx */ 2636 edx = esp + 0x120; /* 0x470818E8: lea edx, [esp + 0x120] */ 2637 PUSH32(esp, edx); /* 0x470818EF: push edx */ 2638 RECOMP_ICALL(0x47054FC0u); /* 0x470818F0: call 0x47054fc0 */ /* not lifted */ 2639 RECOMP_FLAGS_IN(); 2640 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 2641 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2642 esp = esp + 0x20u; /* 0x470818F5: add esp, 0x20 */ 2643 _flag_k = FK_ADD; 2644 L_470818F8: 2645 eax = MEM32(ebp); /* 0x470818F8: mov eax, dword ptr [ebp] */ 2646 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 2647 edi = edi - 1; /* 0x470818FB: dec edi */ 2648 _flag_k = FK_DEC; 2649 /* cmp eax, ebx */ /* 0x470818FC: cmp eax, ebx */ 2650 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2652 _flag_k = FK_CMP; 2653 eax = MEM32(esp + 0x14); /* 0x470818FE: mov eax, dword ptr [esp + 0x14] */ 2654 MEM32(esp + 0x10) = edi; /* 0x47081902: mov dword ptr [esp + 0x10], edi */ 2655 RECOMP_BACKEDGE(); 2656 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081691; /* 0x47081906: je 0x47081691 */ 2657 L_4708190C: 2658 /* cmp eax, 1 */ /* 0x4708190C: cmp eax, 1 */ 2659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2661 _flag_k = FK_CMP; 2662 if (CMP_NE(_flag_a, _flag_b)) goto L_47081959; /* 0x4708190F: jne 0x47081959 */ 2663 L_47081911: 2664 eax = esp + 0x184; /* 0x47081911: lea eax, [esp + 0x184] */ 2665 PUSH32(esp, eax); /* 0x47081918: push eax */ 2666 ecx = esp + 0x88; /* 0x47081919: lea ecx, [esp + 0x88] */ 2667 PUSH32(esp, ecx); /* 0x47081920: push ecx */ 2668 ecx = MEM32(ebp + 0x4); /* 0x47081921: mov ecx, dword ptr [ebp + 4] */ 2669 edx = esp + 0x10C; /* 0x47081924: lea edx, [esp + 0x10c] */ 2670 PUSH32(esp, edx); /* 0x4708192B: push edx */ 2671 edx = MEM32(esp + 0x29C); /* 0x4708192C: mov edx, dword ptr [esp + 0x29c] */ 2672 eax = esp + 0x210; /* 0x47081933: lea eax, [esp + 0x210] */ 2673 PUSH32(esp, eax); /* 0x4708193A: push eax */ 2674 PUSH32(esp, ecx); /* 0x4708193B: push ecx */ 2675 PUSH32(esp, 0x4710B5C8u); /* 0x4708193C: push 0x4710b5c8 */ 2676 PUSH32(esp, edx); /* 0x47081941: push edx */ 2677 RECOMP_ICALL(0x47054F80u); /* 0x47081942: call 0x47054f80 */ /* not lifted */ 2678 RECOMP_FLAGS_IN(); 2679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 2680 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2681 esp = esp + 0x1Cu; /* 0x47081947: add esp, 0x1c */ 2682 _flag_k = FK_ADD; 2683 edi = POP32_VAL(esp); /* 0x4708194A: pop edi */ 2684 esi = POP32_VAL(esp); /* 0x4708194B: pop esi */ 2685 ebp = POP32_VAL(esp); /* 0x4708194C: pop ebp */ 2686 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2687 eax = 0; /* 0x4708194D: xor eax, eax */ 2688 _cf = 0; 2689 _flag_k = FK_TEST; 2690 ebx = POP32_VAL(esp); /* 0x4708194F: pop ebx */ 2691 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 2692 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2693 esp = esp + 0x274u; /* 0x47081950: add esp, 0x274 */ 2694 _flag_k = FK_ADD; 2695 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081956: ret 0xc */ 2696 L_47081959: 2697 eax = MEM32(ebp); /* 0x47081959: mov eax, dword ptr [ebp] */ 2698 PUSH32(esp, eax); /* 0x4708195C: push eax */ 2699 RECOMP_ICALL(MEM32(0x470AC324)); /* 0x4708195D: call dword ptr [0x470ac324] */ 2700 RECOMP_FLAGS_IN(); 2701 ecx = MEM32(esp + 0x294); /* 0x47081963: mov ecx, dword ptr [esp + 0x294] */ 2702 PUSH32(esp, eax); /* 0x4708196A: push eax */ 2703 PUSH32(esp, 0x4710B5A0u); /* 0x4708196B: push 0x4710b5a0 */ 2704 PUSH32(esp, ecx); /* 0x47081970: push ecx */ 2705 RECOMP_ICALL(0x47054F80u); /* 0x47081971: call 0x47054f80 */ /* not lifted */ 2706 RECOMP_FLAGS_IN(); 2707 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2709 esp = esp + 0x10u; /* 0x47081976: add esp, 0x10 */ 2710 _flag_k = FK_ADD; 2711 edi = POP32_VAL(esp); /* 0x47081979: pop edi */ 2712 esi = POP32_VAL(esp); /* 0x4708197A: pop esi */ 2713 ebp = POP32_VAL(esp); /* 0x4708197B: pop ebp */ 2714 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2715 eax = eax | 0xFFFFFFFFu; /* 0x4708197C: or eax, 0xffffffff */ 2716 _cf = 0; 2717 _flag_k = FK_TEST; 2718 ebx = POP32_VAL(esp); /* 0x4708197F: pop ebx */ 2719 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 2720 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2721 esp = esp + 0x274u; /* 0x47081980: add esp, 0x274 */ 2722 _flag_k = FK_ADD; 2723 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081986: ret 0xc */ 2724 RECOMP_REGS_OUT(); 2725 } 2726 2727 void sub_470818BD(void) { 2728 int _fpu_cmp = 0; 2729 uint32_t _cf = 0; 2730 int _df = 1; 2731 uint32_t _flag_k = FK_NONE; 2732 uint32_t _flag_a = 0, _flag_b = 0; 2733 uint32_t _itail_tgt = 0; 2734 RECOMP_REGS_LOCALS 2735 RECOMP_ENTER(0x470818BDu); 2736 2737 goto L_470818BD; 2738 L_47081691: 2739 /* cmp eax, ebx */ /* 0x47081691: cmp eax, ebx */ 2740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2742 _flag_k = FK_CMP; 2743 if (CMP_NE(_flag_a, _flag_b)) goto L_4708190C; /* 0x47081693: jne 0x4708190c */ 2744 L_47081699: 2745 /* cmp edi, ebx */ /* 0x47081699: cmp edi, ebx */ 2746 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2748 _flag_k = FK_CMP; 2749 if (CMP_L(_flag_a, _flag_b)) goto L_47081959; /* 0x4708169B: jl 0x47081959 */ 2750 L_470816A1: 2751 if (CMP_NE(_flag_a, _flag_b)) goto L_470816B0; /* 0x470816A1: jne 0x470816b0 */ 2752 L_470816A3: 2753 PUSH32(esp, ebx); /* 0x470816A3: push ebx */ 2754 PUSH32(esp, 0x4710B604u); /* 0x470816A4: push 0x4710b604 */ 2755 eax = esp + 0x6C; /* 0x470816A9: lea eax, [esp + 0x6c] */ 2756 PUSH32(esp, eax); /* 0x470816AD: push eax */ 2757 goto L_470816BB; /* 0x470816AE: jmp 0x470816bb */ 2758 L_470816B0: 2759 PUSH32(esp, edi); /* 0x470816B0: push edi */ 2760 PUSH32(esp, 0x4710B5F8u); /* 0x470816B1: push 0x4710b5f8 */ 2761 ecx = esp + 0x6C; /* 0x470816B6: lea ecx, [esp + 0x6c] */ 2762 PUSH32(esp, ecx); /* 0x470816BA: push ecx */ 2763 L_470816BB: 2764 RECOMP_ICALL(0x47054FC0u); /* 0x470816BB: call 0x47054fc0 */ /* not lifted */ 2765 RECOMP_FLAGS_IN(); 2766 eax = MEM32(ebp + 0x4); /* 0x470816C0: mov eax, dword ptr [ebp + 4] */ 2767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2768 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2769 esp = esp + 0xCu; /* 0x470816C3: add esp, 0xc */ 2770 _flag_k = FK_ADD; 2771 /* cmp eax, ebx */ /* 0x470816C6: cmp eax, ebx */ 2772 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2774 _flag_k = FK_CMP; 2775 MEM32(esp + 0x3C) = ebx; /* 0x470816C8: mov dword ptr [esp + 0x3c], ebx */ 2776 MEM32(esp + 0x40) = ebx; /* 0x470816CC: mov dword ptr [esp + 0x40], ebx */ 2777 MEM32(esp + 0x44) = edi; /* 0x470816D0: mov dword ptr [esp + 0x44], edi */ 2778 if (CMP_BE(_flag_a, _flag_b)) goto L_4708174E; /* 0x470816D4: jbe 0x4708174e */ 2779 L_470816D6: 2780 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2781 edi = 0; /* 0x470816D6: xor edi, edi */ 2782 _cf = 0; 2783 _flag_k = FK_TEST; 2784 PUSH32(esp, edi); /* 0x470816D8: push edi */ 2785 edx = ebp + 0x10; /* 0x470816D9: lea edx, [ebp + 0x10] */ 2786 PUSH32(esp, edx); /* 0x470816DC: push edx */ 2787 ecx = esp + 0x20; /* 0x470816DD: lea ecx, [esp + 0x20] */ 2788 ebx = 1; /* 0x470816E1: mov ebx, 1 */ 2789 RECOMP_ICALL(0x470820E0u); /* 0x470816E6: call 0x470820e0 */ /* not lifted */ 2790 RECOMP_FLAGS_IN(); 2791 eax = MEM32(esp + 0x1C); /* 0x470816EB: mov eax, dword ptr [esp + 0x1c] */ 2792 ecx = MEM32(esp + 0x18); /* 0x470816EF: mov ecx, dword ptr [esp + 0x18] */ 2793 /* cmp ecx, MEM32(eax) */ /* 0x470816F3: cmp ecx, dword ptr [eax] */ 2794 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 2795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2796 _flag_k = FK_CMP; 2797 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708172A; /* 0x470816F5: je 0x4708172a */ 2798 L_470816F7: 2799 edx = esp + 0x54; /* 0x470816F7: lea edx, [esp + 0x54] */ 2800 PUSH32(esp, edx); /* 0x470816FB: push edx */ 2801 ecx = esp + 0x1C; /* 0x470816FC: lea ecx, [esp + 0x1c] */ 2802 RECOMP_ICALL(0x47082100u); /* 0x47081700: call 0x47082100 */ /* not lifted */ 2803 RECOMP_FLAGS_IN(); 2804 /* test eax, eax */ /* 0x47081705: test eax, eax */ 2805 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2806 _cf = 0; 2807 _flag_k = FK_TEST; 2808 if (TEST_Z(_flag_a, _flag_b)) goto L_4708171E; /* 0x47081707: je 0x4708171e */ 2809 L_47081709: 2810 eax = MEM32(esp + 0x54); /* 0x47081709: mov eax, dword ptr [esp + 0x54] */ 2811 eax = MEM32(eax); /* 0x4708170D: mov eax, dword ptr [eax] */ 2812 ecx = MEM32(esp + 0x18); /* 0x4708170F: mov ecx, dword ptr [esp + 0x18] */ 2813 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081713: cdq */ 2814 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2815 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2816 edi = edi + eax; /* 0x47081714: add edi, eax */ 2817 _flag_k = FK_ADD; 2818 { uint32_t _aa = ebx, _ab = edx, _ac = _cf; /* 0x47081716: adc ebx, edx */ 2819 ebx = _aa + _ab + _ac; 2820 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 2821 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2822 edx = MEM32(ecx); /* 0x47081718: mov edx, dword ptr [ecx] */ 2823 MEM32(esp + 0x18) = edx; /* 0x4708171A: mov dword ptr [esp + 0x18], edx */ 2824 L_4708171E: 2825 eax = MEM32(esp + 0x1C); /* 0x4708171E: mov eax, dword ptr [esp + 0x1c] */ 2826 ecx = MEM32(esp + 0x18); /* 0x47081722: mov ecx, dword ptr [esp + 0x18] */ 2827 /* cmp ecx, MEM32(eax) */ /* 0x47081726: cmp ecx, dword ptr [eax] */ 2828 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 2829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2830 _flag_k = FK_CMP; 2831 RECOMP_BACKEDGE(); 2832 if (CMP_NE(_flag_a, _flag_b)) goto L_470816F7; /* 0x47081728: jne 0x470816f7 */ 2833 L_4708172A: 2834 eax = MEM32(ebp + 0x4); /* 0x4708172A: mov eax, dword ptr [ebp + 4] */ 2835 eax = (uint32_t)((int32_t)eax * (int32_t)esi); /* 0x4708172D: imul eax, esi */ 2836 edx = esp + 0x3C; /* 0x47081730: lea edx, [esp + 0x3c] */ 2837 PUSH32(esp, edx); /* 0x47081734: push edx */ 2838 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0); 2839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2840 edi = edi - 0; /* 0x47081735: sub edi, 0 */ 2841 _flag_k = FK_CMP; 2842 PUSH32(esp, eax); /* 0x47081738: push eax */ 2843 { uint32_t _sa = ebx, _sb = 1, _sc = _cf; /* 0x47081739: sbb ebx, 1 */ 2844 ebx = _sa - _sb - _sc; 2845 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2846 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2847 PUSH32(esp, ebx); /* 0x4708173C: push ebx */ 2848 PUSH32(esp, edi); /* 0x4708173D: push edi */ 2849 RECOMP_ICALL(0x47081990u); /* 0x4708173E: call 0x47081990 */ /* not lifted */ 2850 RECOMP_FLAGS_IN(); 2851 edi = MEM32(esp + 0x20); /* 0x47081743: mov edi, dword ptr [esp + 0x20] */ 2852 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2853 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2854 esp = esp + 0x10u; /* 0x47081747: add esp, 0x10 */ 2855 _flag_k = FK_ADD; 2856 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2857 ebx = 0; /* 0x4708174A: xor ebx, ebx */ 2858 _cf = 0; 2859 _flag_k = FK_TEST; 2860 goto L_47081756; /* 0x4708174C: jmp 0x47081756 */ 2861 L_4708174E: 2862 MEM32(esp + 0x3C) = ebx; /* 0x4708174E: mov dword ptr [esp + 0x3c], ebx */ 2863 MEM32(esp + 0x40) = ebx; /* 0x47081752: mov dword ptr [esp + 0x40], ebx */ 2864 L_47081756: 2865 ecx = MEM32(esp + 0x40); /* 0x47081756: mov ecx, dword ptr [esp + 0x40] */ 2866 edx = MEM32(esp + 0x3C); /* 0x4708175A: mov edx, dword ptr [esp + 0x3c] */ 2867 PUSH32(esp, ecx); /* 0x4708175E: push ecx */ 2868 PUSH32(esp, edx); /* 0x4708175F: push edx */ 2869 eax = esp + 0x6C; /* 0x47081760: lea eax, [esp + 0x6c] */ 2870 PUSH32(esp, eax); /* 0x47081764: push eax */ 2871 ecx = esp + 0x90; /* 0x47081765: lea ecx, [esp + 0x90] */ 2872 PUSH32(esp, ecx); /* 0x4708176C: push ecx */ 2873 RECOMP_ICALL(0x47054FC0u); /* 0x4708176D: call 0x47054fc0 */ /* not lifted */ 2874 RECOMP_FLAGS_IN(); 2875 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2876 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2877 esp = esp + 0x10u; /* 0x47081772: add esp, 0x10 */ 2878 _flag_k = FK_ADD; 2879 PUSH32(esp, esi); /* 0x47081775: push esi */ 2880 edx = esp + 0x5C; /* 0x47081776: lea edx, [esp + 0x5c] */ 2881 PUSH32(esp, edx); /* 0x4708177A: push edx */ 2882 ecx = ebp; /* 0x4708177B: mov ecx, ebp */ 2883 MEM32(esp + 0x60) = ebx; /* 0x4708177D: mov dword ptr [esp + 0x60], ebx */ 2884 MEM32(esp + 0x64) = ebx; /* 0x47081781: mov dword ptr [esp + 0x64], ebx */ 2885 MEM32(esp + 0x68) = edi; /* 0x47081785: mov dword ptr [esp + 0x68], edi */ 2886 RECOMP_ICALL(0x47081360u); /* 0x47081789: call 0x47081360 */ /* not lifted */ 2887 RECOMP_FLAGS_IN(); 2888 /* test eax, eax */ /* 0x4708178E: test eax, eax */ 2889 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2890 _cf = 0; 2891 _flag_k = FK_TEST; 2892 if (TEST_Z(_flag_a, _flag_b)) goto L_4708179B; /* 0x47081790: je 0x4708179b */ 2893 L_47081792: 2894 MEM32(esp + 0x14) = ebx; /* 0x47081792: mov dword ptr [esp + 0x14], ebx */ 2895 goto L_470818F8; /* 0x47081796: jmp 0x470818f8 */ 2896 L_4708179B: 2897 eax = MEM32(esp + 0x5C); /* 0x4708179B: mov eax, dword ptr [esp + 0x5c] */ 2898 ecx = MEM32(esp + 0x58); /* 0x4708179F: mov ecx, dword ptr [esp + 0x58] */ 2899 PUSH32(esp, eax); /* 0x470817A3: push eax */ 2900 PUSH32(esp, ecx); /* 0x470817A4: push ecx */ 2901 edx = esp + 0x6C; /* 0x470817A5: lea edx, [esp + 0x6c] */ 2902 PUSH32(esp, edx); /* 0x470817A9: push edx */ 2903 eax = esp + 0x190; /* 0x470817AA: lea eax, [esp + 0x190] */ 2904 PUSH32(esp, eax); /* 0x470817B1: push eax */ 2905 MEM32(esp + 0x24) = 1; /* 0x470817B2: mov dword ptr [esp + 0x24], 1 */ 2906 RECOMP_ICALL(0x47054FC0u); /* 0x470817BA: call 0x47054fc0 */ /* not lifted */ 2907 RECOMP_FLAGS_IN(); 2908 eax = MEM32(ebp + 0x8); /* 0x470817BF: mov eax, dword ptr [ebp + 8] */ 2909 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2910 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2911 esp = esp + 0x10u; /* 0x470817C2: add esp, 0x10 */ 2912 _flag_k = FK_ADD; 2913 /* cmp eax, ebx */ /* 0x470817C5: cmp eax, ebx */ 2914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2916 _flag_k = FK_CMP; 2917 MEM32(esp + 0x2C) = ebx; /* 0x470817C7: mov dword ptr [esp + 0x2c], ebx */ 2918 MEM32(esp + 0x30) = ebx; /* 0x470817CB: mov dword ptr [esp + 0x30], ebx */ 2919 MEM32(esp + 0x34) = edi; /* 0x470817CF: mov dword ptr [esp + 0x34], edi */ 2920 MEM32(esp + 0x20) = ebx; /* 0x470817D3: mov dword ptr [esp + 0x20], ebx */ 2921 MEM32(esp + 0x24) = ebx; /* 0x470817D7: mov dword ptr [esp + 0x24], ebx */ 2922 MEM32(esp + 0x28) = edi; /* 0x470817DB: mov dword ptr [esp + 0x28], edi */ 2923 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708184C; /* 0x470817DF: je 0x4708184c */ 2924 L_470817E1: 2925 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x470817E1: cdq */ 2926 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2927 edi = 0; /* 0x470817E2: xor edi, edi */ 2928 _cf = 0; 2929 _flag_k = FK_TEST; 2930 /* cmp esi, edi */ /* 0x470817E4: cmp esi, edi */ 2931 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2933 _flag_k = FK_CMP; 2934 ebx = eax; /* 0x470817E6: mov ebx, eax */ 2935 ebp = edx; /* 0x470817E8: mov ebp, edx */ 2936 if (CMP_NE(_flag_a, _flag_b)) goto L_470817F2; /* 0x470817EA: jne 0x470817f2 */ 2937 L_470817EC: 2938 MEM32(esp + 0x2C) = edi; /* 0x470817EC: mov dword ptr [esp + 0x2c], edi */ 2939 goto L_470817FF; /* 0x470817F0: jmp 0x470817ff */ 2940 L_470817F2: 2941 PUSH32(esp, edi); /* 0x470817F2: push edi */ 2942 PUSH32(esp, esi); /* 0x470817F3: push esi */ 2943 PUSH32(esp, ebp); /* 0x470817F4: push ebp */ 2944 PUSH32(esp, ebx); /* 0x470817F5: push ebx */ 2945 RECOMP_ICALL(0x470A3500u); /* 0x470817F6: call 0x470a3500 */ /* not lifted */ 2946 RECOMP_FLAGS_IN(); 2947 MEM32(esp + 0x2C) = eax; /* 0x470817FB: mov dword ptr [esp + 0x2c], eax */ 2948 L_470817FF: 2949 /* cmp MEM32(esp + 0x10), edi */ /* 0x470817FF: cmp dword ptr [esp + 0x10], edi */ 2950 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(edi); 2951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2952 _flag_k = FK_CMP; 2953 if (CMP_A(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081803: ja 0x4708180f */ 2954 L_47081805: 2955 /* cmp esi, edi */ /* 0x47081805: cmp esi, edi */ 2956 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2958 _flag_k = FK_CMP; 2959 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081807: je 0x4708180f */ 2960 L_47081809: 2961 MEM32(esp + 0x30) = edi; /* 0x47081809: mov dword ptr [esp + 0x30], edi */ 2962 goto L_47081842; /* 0x4708180D: jmp 0x47081842 */ 2963 L_4708180F: 2964 ecx = esp + 0x2C; /* 0x4708180F: lea ecx, [esp + 0x2c] */ 2965 RECOMP_ICALL(0x47081200u); /* 0x47081813: call 0x47081200 */ /* not lifted */ 2966 RECOMP_FLAGS_IN(); 2967 PUSH32(esp, edi); /* 0x47081818: push edi */ 2968 PUSH32(esp, esi); /* 0x47081819: push esi */ 2969 PUSH32(esp, ebp); /* 0x4708181A: push ebp */ 2970 ecx = eax; /* 0x4708181B: mov ecx, eax */ 2971 PUSH32(esp, ebx); /* 0x4708181D: push ebx */ 2972 MEM32(esp + 0x60) = ecx; /* 0x4708181E: mov dword ptr [esp + 0x60], ecx */ 2973 RECOMP_ICALL(0x470A3640u); /* 0x47081822: call 0x470a3640 */ /* not lifted */ 2974 RECOMP_FLAGS_IN(); 2975 ecx = MEM32(esp + 0x50); /* 0x47081827: mov ecx, dword ptr [esp + 0x50] */ 2976 PUSH32(esp, edx); /* 0x4708182B: push edx */ 2977 PUSH32(esp, eax); /* 0x4708182C: push eax */ 2978 PUSH32(esp, 0); /* 0x4708182D: push 0 */ 2979 PUSH32(esp, ecx); /* 0x4708182F: push ecx */ 2980 RECOMP_ICALL(0x470A34C0u); /* 0x47081830: call 0x470a34c0 */ /* not lifted */ 2981 RECOMP_FLAGS_IN(); 2982 PUSH32(esp, edi); /* 0x47081835: push edi */ 2983 PUSH32(esp, esi); /* 0x47081836: push esi */ 2984 PUSH32(esp, edx); /* 0x47081837: push edx */ 2985 PUSH32(esp, eax); /* 0x47081838: push eax */ 2986 RECOMP_ICALL(0x470A3500u); /* 0x47081839: call 0x470a3500 */ /* not lifted */ 2987 RECOMP_FLAGS_IN(); 2988 MEM32(esp + 0x30) = eax; /* 0x4708183E: mov dword ptr [esp + 0x30], eax */ 2989 L_47081842: 2990 ebp = MEM32(esp + 0x38); /* 0x47081842: mov ebp, dword ptr [esp + 0x38] */ 2991 edi = MEM32(esp + 0x10); /* 0x47081846: mov edi, dword ptr [esp + 0x10] */ 2992 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2993 ebx = 0; /* 0x4708184A: xor ebx, ebx */ 2994 _cf = 0; 2995 _flag_k = FK_TEST; 2996 L_4708184C: 2997 eax = MEM32(ebp + 0xC); /* 0x4708184C: mov eax, dword ptr [ebp + 0xc] */ 2998 /* cmp eax, ebx */ /* 0x4708184F: cmp eax, ebx */ 2999 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3001 _flag_k = FK_CMP; 3002 if (CMP_EQ(_flag_a, _flag_b)) goto L_470818BD; /* 0x47081851: je 0x470818bd */ 3003 L_47081853: 3004 /* cmp esi, ebx */ /* 0x47081853: cmp esi, ebx */ 3005 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3007 _flag_k = FK_CMP; 3008 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081855: cdq */ 3009 MEM32(esp + 0x48) = eax; /* 0x47081856: mov dword ptr [esp + 0x48], eax */ 3010 MEM32(esp + 0x4C) = edx; /* 0x4708185A: mov dword ptr [esp + 0x4c], edx */ 3011 if (CMP_NE(_flag_a, _flag_b)) goto L_47081866; /* 0x4708185E: jne 0x47081866 */ 3012 L_47081860: 3013 MEM32(esp + 0x20) = ebx; /* 0x47081860: mov dword ptr [esp + 0x20], ebx */ 3014 goto L_47081873; /* 0x47081864: jmp 0x47081873 */ 3015 L_47081866: 3016 PUSH32(esp, ebx); /* 0x47081866: push ebx */ 3017 PUSH32(esp, esi); /* 0x47081867: push esi */ 3018 PUSH32(esp, edx); /* 0x47081868: push edx */ 3019 PUSH32(esp, eax); /* 0x47081869: push eax */ 3020 RECOMP_ICALL(0x470A3500u); /* 0x4708186A: call 0x470a3500 */ /* not lifted */ 3021 RECOMP_FLAGS_IN(); 3022 MEM32(esp + 0x20) = eax; /* 0x4708186F: mov dword ptr [esp + 0x20], eax */ 3023 L_47081873: 3024 /* cmp MEM32(esp + 0x28), ebx */ /* 0x47081873: cmp dword ptr [esp + 0x28], ebx */ 3025 _flag_a = (uint32_t)(MEM32(esp + 0x28)); _flag_b = (uint32_t)(ebx); 3026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3027 _flag_k = FK_CMP; 3028 if (CMP_A(_flag_a, _flag_b)) goto L_47081883; /* 0x47081877: ja 0x47081883 */ 3029 L_47081879: 3030 /* cmp esi, ebx */ /* 0x47081879: cmp esi, ebx */ 3031 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3033 _flag_k = FK_CMP; 3034 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081883; /* 0x4708187B: je 0x47081883 */ 3035 L_4708187D: 3036 MEM32(esp + 0x24) = ebx; /* 0x4708187D: mov dword ptr [esp + 0x24], ebx */ 3037 goto L_470818BD; /* 0x47081881: jmp 0x470818bd */ 3038 L_47081883: 3039 ecx = esp + 0x20; /* 0x47081883: lea ecx, [esp + 0x20] */ 3040 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3041 edi = 0; /* 0x47081887: xor edi, edi */ 3042 _cf = 0; 3043 _flag_k = FK_TEST; 3044 RECOMP_ICALL(0x47081200u); /* 0x47081889: call 0x47081200 */ /* not lifted */ 3045 RECOMP_FLAGS_IN(); 3046 edx = MEM32(esp + 0x4C); /* 0x4708188E: mov edx, dword ptr [esp + 0x4c] */ 3047 PUSH32(esp, edi); /* 0x47081892: push edi */ 3048 PUSH32(esp, esi); /* 0x47081893: push esi */ 3049 ebx = eax; /* 0x47081894: mov ebx, eax */ 3050 eax = MEM32(esp + 0x50); /* 0x47081896: mov eax, dword ptr [esp + 0x50] */ 3051 PUSH32(esp, edx); /* 0x4708189A: push edx */ 3052 PUSH32(esp, eax); /* 0x4708189B: push eax */ 3053 RECOMP_ICALL(0x470A3640u); /* 0x4708189C: call 0x470a3640 */ /* not lifted */ 3054 RECOMP_FLAGS_IN(); 3055 PUSH32(esp, edx); /* 0x470818A1: push edx */ 3056 PUSH32(esp, eax); /* 0x470818A2: push eax */ 3057 PUSH32(esp, edi); /* 0x470818A3: push edi */ 3058 PUSH32(esp, ebx); /* 0x470818A4: push ebx */ 3059 RECOMP_ICALL(0x470A34C0u); /* 0x470818A5: call 0x470a34c0 */ /* not lifted */ 3060 RECOMP_FLAGS_IN(); 3061 PUSH32(esp, edi); /* 0x470818AA: push edi */ 3062 PUSH32(esp, esi); /* 0x470818AB: push esi */ 3063 PUSH32(esp, edx); /* 0x470818AC: push edx */ 3064 PUSH32(esp, eax); /* 0x470818AD: push eax */ 3065 RECOMP_ICALL(0x470A3500u); /* 0x470818AE: call 0x470a3500 */ /* not lifted */ 3066 RECOMP_FLAGS_IN(); 3067 edi = MEM32(esp + 0x10); /* 0x470818B3: mov edi, dword ptr [esp + 0x10] */ 3068 MEM32(esp + 0x24) = eax; /* 0x470818B7: mov dword ptr [esp + 0x24], eax */ 3069 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3070 ebx = 0; /* 0x470818BB: xor ebx, ebx */ 3071 _cf = 0; 3072 _flag_k = FK_TEST; 3073 L_470818BD: 3074 ecx = MEM32(esp + 0x30); /* 0x470818BD: mov ecx, dword ptr [esp + 0x30] */ 3075 edx = MEM32(esp + 0x2C); /* 0x470818C1: mov edx, dword ptr [esp + 0x2c] */ 3076 PUSH32(esp, ecx); /* 0x470818C5: push ecx */ 3077 PUSH32(esp, edx); /* 0x470818C6: push edx */ 3078 eax = esp + 0x6C; /* 0x470818C7: lea eax, [esp + 0x6c] */ 3079 PUSH32(esp, eax); /* 0x470818CB: push eax */ 3080 ecx = esp + 0x210; /* 0x470818CC: lea ecx, [esp + 0x210] */ 3081 PUSH32(esp, ecx); /* 0x470818D3: push ecx */ 3082 RECOMP_ICALL(0x47054FC0u); /* 0x470818D4: call 0x47054fc0 */ /* not lifted */ 3083 RECOMP_FLAGS_IN(); 3084 edx = MEM32(esp + 0x34); /* 0x470818D9: mov edx, dword ptr [esp + 0x34] */ 3085 eax = MEM32(esp + 0x30); /* 0x470818DD: mov eax, dword ptr [esp + 0x30] */ 3086 PUSH32(esp, edx); /* 0x470818E1: push edx */ 3087 PUSH32(esp, eax); /* 0x470818E2: push eax */ 3088 ecx = esp + 0x7C; /* 0x470818E3: lea ecx, [esp + 0x7c] */ 3089 PUSH32(esp, ecx); /* 0x470818E7: push ecx */ 3090 edx = esp + 0x120; /* 0x470818E8: lea edx, [esp + 0x120] */ 3091 PUSH32(esp, edx); /* 0x470818EF: push edx */ 3092 RECOMP_ICALL(0x47054FC0u); /* 0x470818F0: call 0x47054fc0 */ /* not lifted */ 3093 RECOMP_FLAGS_IN(); 3094 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 3095 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3096 esp = esp + 0x20u; /* 0x470818F5: add esp, 0x20 */ 3097 _flag_k = FK_ADD; 3098 L_470818F8: 3099 eax = MEM32(ebp); /* 0x470818F8: mov eax, dword ptr [ebp] */ 3100 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 3101 edi = edi - 1; /* 0x470818FB: dec edi */ 3102 _flag_k = FK_DEC; 3103 /* cmp eax, ebx */ /* 0x470818FC: cmp eax, ebx */ 3104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3106 _flag_k = FK_CMP; 3107 eax = MEM32(esp + 0x14); /* 0x470818FE: mov eax, dword ptr [esp + 0x14] */ 3108 MEM32(esp + 0x10) = edi; /* 0x47081902: mov dword ptr [esp + 0x10], edi */ 3109 RECOMP_BACKEDGE(); 3110 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081691; /* 0x47081906: je 0x47081691 */ 3111 L_4708190C: 3112 /* cmp eax, 1 */ /* 0x4708190C: cmp eax, 1 */ 3113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3115 _flag_k = FK_CMP; 3116 if (CMP_NE(_flag_a, _flag_b)) goto L_47081959; /* 0x4708190F: jne 0x47081959 */ 3117 L_47081911: 3118 eax = esp + 0x184; /* 0x47081911: lea eax, [esp + 0x184] */ 3119 PUSH32(esp, eax); /* 0x47081918: push eax */ 3120 ecx = esp + 0x88; /* 0x47081919: lea ecx, [esp + 0x88] */ 3121 PUSH32(esp, ecx); /* 0x47081920: push ecx */ 3122 ecx = MEM32(ebp + 0x4); /* 0x47081921: mov ecx, dword ptr [ebp + 4] */ 3123 edx = esp + 0x10C; /* 0x47081924: lea edx, [esp + 0x10c] */ 3124 PUSH32(esp, edx); /* 0x4708192B: push edx */ 3125 edx = MEM32(esp + 0x29C); /* 0x4708192C: mov edx, dword ptr [esp + 0x29c] */ 3126 eax = esp + 0x210; /* 0x47081933: lea eax, [esp + 0x210] */ 3127 PUSH32(esp, eax); /* 0x4708193A: push eax */ 3128 PUSH32(esp, ecx); /* 0x4708193B: push ecx */ 3129 PUSH32(esp, 0x4710B5C8u); /* 0x4708193C: push 0x4710b5c8 */ 3130 PUSH32(esp, edx); /* 0x47081941: push edx */ 3131 RECOMP_ICALL(0x47054F80u); /* 0x47081942: call 0x47054f80 */ /* not lifted */ 3132 RECOMP_FLAGS_IN(); 3133 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3135 esp = esp + 0x1Cu; /* 0x47081947: add esp, 0x1c */ 3136 _flag_k = FK_ADD; 3137 edi = POP32_VAL(esp); /* 0x4708194A: pop edi */ 3138 esi = POP32_VAL(esp); /* 0x4708194B: pop esi */ 3139 ebp = POP32_VAL(esp); /* 0x4708194C: pop ebp */ 3140 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3141 eax = 0; /* 0x4708194D: xor eax, eax */ 3142 _cf = 0; 3143 _flag_k = FK_TEST; 3144 ebx = POP32_VAL(esp); /* 0x4708194F: pop ebx */ 3145 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 3146 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3147 esp = esp + 0x274u; /* 0x47081950: add esp, 0x274 */ 3148 _flag_k = FK_ADD; 3149 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081956: ret 0xc */ 3150 L_47081959: 3151 eax = MEM32(ebp); /* 0x47081959: mov eax, dword ptr [ebp] */ 3152 PUSH32(esp, eax); /* 0x4708195C: push eax */ 3153 RECOMP_ICALL(MEM32(0x470AC324)); /* 0x4708195D: call dword ptr [0x470ac324] */ 3154 RECOMP_FLAGS_IN(); 3155 ecx = MEM32(esp + 0x294); /* 0x47081963: mov ecx, dword ptr [esp + 0x294] */ 3156 PUSH32(esp, eax); /* 0x4708196A: push eax */ 3157 PUSH32(esp, 0x4710B5A0u); /* 0x4708196B: push 0x4710b5a0 */ 3158 PUSH32(esp, ecx); /* 0x47081970: push ecx */ 3159 RECOMP_ICALL(0x47054F80u); /* 0x47081971: call 0x47054f80 */ /* not lifted */ 3160 RECOMP_FLAGS_IN(); 3161 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3162 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3163 esp = esp + 0x10u; /* 0x47081976: add esp, 0x10 */ 3164 _flag_k = FK_ADD; 3165 edi = POP32_VAL(esp); /* 0x47081979: pop edi */ 3166 esi = POP32_VAL(esp); /* 0x4708197A: pop esi */ 3167 ebp = POP32_VAL(esp); /* 0x4708197B: pop ebp */ 3168 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3169 eax = eax | 0xFFFFFFFFu; /* 0x4708197C: or eax, 0xffffffff */ 3170 _cf = 0; 3171 _flag_k = FK_TEST; 3172 ebx = POP32_VAL(esp); /* 0x4708197F: pop ebx */ 3173 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 3174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3175 esp = esp + 0x274u; /* 0x47081980: add esp, 0x274 */ 3176 _flag_k = FK_ADD; 3177 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081986: ret 0xc */ 3178 RECOMP_REGS_OUT(); 3179 } 3180 3181 void sub_470818F8(void) { 3182 int _fpu_cmp = 0; 3183 uint32_t _cf = 0; 3184 int _df = 1; 3185 uint32_t _flag_k = FK_NONE; 3186 uint32_t _flag_a = 0, _flag_b = 0; 3187 uint32_t _itail_tgt = 0; 3188 RECOMP_REGS_LOCALS 3189 RECOMP_ENTER(0x470818F8u); 3190 3191 goto L_470818F8; 3192 L_47081691: 3193 /* cmp eax, ebx */ /* 0x47081691: cmp eax, ebx */ 3194 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3196 _flag_k = FK_CMP; 3197 if (CMP_NE(_flag_a, _flag_b)) goto L_4708190C; /* 0x47081693: jne 0x4708190c */ 3198 L_47081699: 3199 /* cmp edi, ebx */ /* 0x47081699: cmp edi, ebx */ 3200 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3202 _flag_k = FK_CMP; 3203 if (CMP_L(_flag_a, _flag_b)) goto L_47081959; /* 0x4708169B: jl 0x47081959 */ 3204 L_470816A1: 3205 if (CMP_NE(_flag_a, _flag_b)) goto L_470816B0; /* 0x470816A1: jne 0x470816b0 */ 3206 L_470816A3: 3207 PUSH32(esp, ebx); /* 0x470816A3: push ebx */ 3208 PUSH32(esp, 0x4710B604u); /* 0x470816A4: push 0x4710b604 */ 3209 eax = esp + 0x6C; /* 0x470816A9: lea eax, [esp + 0x6c] */ 3210 PUSH32(esp, eax); /* 0x470816AD: push eax */ 3211 goto L_470816BB; /* 0x470816AE: jmp 0x470816bb */ 3212 L_470816B0: 3213 PUSH32(esp, edi); /* 0x470816B0: push edi */ 3214 PUSH32(esp, 0x4710B5F8u); /* 0x470816B1: push 0x4710b5f8 */ 3215 ecx = esp + 0x6C; /* 0x470816B6: lea ecx, [esp + 0x6c] */ 3216 PUSH32(esp, ecx); /* 0x470816BA: push ecx */ 3217 L_470816BB: 3218 RECOMP_ICALL(0x47054FC0u); /* 0x470816BB: call 0x47054fc0 */ /* not lifted */ 3219 RECOMP_FLAGS_IN(); 3220 eax = MEM32(ebp + 0x4); /* 0x470816C0: mov eax, dword ptr [ebp + 4] */ 3221 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3222 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3223 esp = esp + 0xCu; /* 0x470816C3: add esp, 0xc */ 3224 _flag_k = FK_ADD; 3225 /* cmp eax, ebx */ /* 0x470816C6: cmp eax, ebx */ 3226 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3228 _flag_k = FK_CMP; 3229 MEM32(esp + 0x3C) = ebx; /* 0x470816C8: mov dword ptr [esp + 0x3c], ebx */ 3230 MEM32(esp + 0x40) = ebx; /* 0x470816CC: mov dword ptr [esp + 0x40], ebx */ 3231 MEM32(esp + 0x44) = edi; /* 0x470816D0: mov dword ptr [esp + 0x44], edi */ 3232 if (CMP_BE(_flag_a, _flag_b)) goto L_4708174E; /* 0x470816D4: jbe 0x4708174e */ 3233 L_470816D6: 3234 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3235 edi = 0; /* 0x470816D6: xor edi, edi */ 3236 _cf = 0; 3237 _flag_k = FK_TEST; 3238 PUSH32(esp, edi); /* 0x470816D8: push edi */ 3239 edx = ebp + 0x10; /* 0x470816D9: lea edx, [ebp + 0x10] */ 3240 PUSH32(esp, edx); /* 0x470816DC: push edx */ 3241 ecx = esp + 0x20; /* 0x470816DD: lea ecx, [esp + 0x20] */ 3242 ebx = 1; /* 0x470816E1: mov ebx, 1 */ 3243 RECOMP_ICALL(0x470820E0u); /* 0x470816E6: call 0x470820e0 */ /* not lifted */ 3244 RECOMP_FLAGS_IN(); 3245 eax = MEM32(esp + 0x1C); /* 0x470816EB: mov eax, dword ptr [esp + 0x1c] */ 3246 ecx = MEM32(esp + 0x18); /* 0x470816EF: mov ecx, dword ptr [esp + 0x18] */ 3247 /* cmp ecx, MEM32(eax) */ /* 0x470816F3: cmp ecx, dword ptr [eax] */ 3248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 3249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3250 _flag_k = FK_CMP; 3251 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708172A; /* 0x470816F5: je 0x4708172a */ 3252 L_470816F7: 3253 edx = esp + 0x54; /* 0x470816F7: lea edx, [esp + 0x54] */ 3254 PUSH32(esp, edx); /* 0x470816FB: push edx */ 3255 ecx = esp + 0x1C; /* 0x470816FC: lea ecx, [esp + 0x1c] */ 3256 RECOMP_ICALL(0x47082100u); /* 0x47081700: call 0x47082100 */ /* not lifted */ 3257 RECOMP_FLAGS_IN(); 3258 /* test eax, eax */ /* 0x47081705: test eax, eax */ 3259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3260 _cf = 0; 3261 _flag_k = FK_TEST; 3262 if (TEST_Z(_flag_a, _flag_b)) goto L_4708171E; /* 0x47081707: je 0x4708171e */ 3263 L_47081709: 3264 eax = MEM32(esp + 0x54); /* 0x47081709: mov eax, dword ptr [esp + 0x54] */ 3265 eax = MEM32(eax); /* 0x4708170D: mov eax, dword ptr [eax] */ 3266 ecx = MEM32(esp + 0x18); /* 0x4708170F: mov ecx, dword ptr [esp + 0x18] */ 3267 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081713: cdq */ 3268 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3269 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3270 edi = edi + eax; /* 0x47081714: add edi, eax */ 3271 _flag_k = FK_ADD; 3272 { uint32_t _aa = ebx, _ab = edx, _ac = _cf; /* 0x47081716: adc ebx, edx */ 3273 ebx = _aa + _ab + _ac; 3274 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 3275 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3276 edx = MEM32(ecx); /* 0x47081718: mov edx, dword ptr [ecx] */ 3277 MEM32(esp + 0x18) = edx; /* 0x4708171A: mov dword ptr [esp + 0x18], edx */ 3278 L_4708171E: 3279 eax = MEM32(esp + 0x1C); /* 0x4708171E: mov eax, dword ptr [esp + 0x1c] */ 3280 ecx = MEM32(esp + 0x18); /* 0x47081722: mov ecx, dword ptr [esp + 0x18] */ 3281 /* cmp ecx, MEM32(eax) */ /* 0x47081726: cmp ecx, dword ptr [eax] */ 3282 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 3283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3284 _flag_k = FK_CMP; 3285 RECOMP_BACKEDGE(); 3286 if (CMP_NE(_flag_a, _flag_b)) goto L_470816F7; /* 0x47081728: jne 0x470816f7 */ 3287 L_4708172A: 3288 eax = MEM32(ebp + 0x4); /* 0x4708172A: mov eax, dword ptr [ebp + 4] */ 3289 eax = (uint32_t)((int32_t)eax * (int32_t)esi); /* 0x4708172D: imul eax, esi */ 3290 edx = esp + 0x3C; /* 0x47081730: lea edx, [esp + 0x3c] */ 3291 PUSH32(esp, edx); /* 0x47081734: push edx */ 3292 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0); 3293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3294 edi = edi - 0; /* 0x47081735: sub edi, 0 */ 3295 _flag_k = FK_CMP; 3296 PUSH32(esp, eax); /* 0x47081738: push eax */ 3297 { uint32_t _sa = ebx, _sb = 1, _sc = _cf; /* 0x47081739: sbb ebx, 1 */ 3298 ebx = _sa - _sb - _sc; 3299 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3300 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3301 PUSH32(esp, ebx); /* 0x4708173C: push ebx */ 3302 PUSH32(esp, edi); /* 0x4708173D: push edi */ 3303 RECOMP_ICALL(0x47081990u); /* 0x4708173E: call 0x47081990 */ /* not lifted */ 3304 RECOMP_FLAGS_IN(); 3305 edi = MEM32(esp + 0x20); /* 0x47081743: mov edi, dword ptr [esp + 0x20] */ 3306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3308 esp = esp + 0x10u; /* 0x47081747: add esp, 0x10 */ 3309 _flag_k = FK_ADD; 3310 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3311 ebx = 0; /* 0x4708174A: xor ebx, ebx */ 3312 _cf = 0; 3313 _flag_k = FK_TEST; 3314 goto L_47081756; /* 0x4708174C: jmp 0x47081756 */ 3315 L_4708174E: 3316 MEM32(esp + 0x3C) = ebx; /* 0x4708174E: mov dword ptr [esp + 0x3c], ebx */ 3317 MEM32(esp + 0x40) = ebx; /* 0x47081752: mov dword ptr [esp + 0x40], ebx */ 3318 L_47081756: 3319 ecx = MEM32(esp + 0x40); /* 0x47081756: mov ecx, dword ptr [esp + 0x40] */ 3320 edx = MEM32(esp + 0x3C); /* 0x4708175A: mov edx, dword ptr [esp + 0x3c] */ 3321 PUSH32(esp, ecx); /* 0x4708175E: push ecx */ 3322 PUSH32(esp, edx); /* 0x4708175F: push edx */ 3323 eax = esp + 0x6C; /* 0x47081760: lea eax, [esp + 0x6c] */ 3324 PUSH32(esp, eax); /* 0x47081764: push eax */ 3325 ecx = esp + 0x90; /* 0x47081765: lea ecx, [esp + 0x90] */ 3326 PUSH32(esp, ecx); /* 0x4708176C: push ecx */ 3327 RECOMP_ICALL(0x47054FC0u); /* 0x4708176D: call 0x47054fc0 */ /* not lifted */ 3328 RECOMP_FLAGS_IN(); 3329 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3330 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3331 esp = esp + 0x10u; /* 0x47081772: add esp, 0x10 */ 3332 _flag_k = FK_ADD; 3333 PUSH32(esp, esi); /* 0x47081775: push esi */ 3334 edx = esp + 0x5C; /* 0x47081776: lea edx, [esp + 0x5c] */ 3335 PUSH32(esp, edx); /* 0x4708177A: push edx */ 3336 ecx = ebp; /* 0x4708177B: mov ecx, ebp */ 3337 MEM32(esp + 0x60) = ebx; /* 0x4708177D: mov dword ptr [esp + 0x60], ebx */ 3338 MEM32(esp + 0x64) = ebx; /* 0x47081781: mov dword ptr [esp + 0x64], ebx */ 3339 MEM32(esp + 0x68) = edi; /* 0x47081785: mov dword ptr [esp + 0x68], edi */ 3340 RECOMP_ICALL(0x47081360u); /* 0x47081789: call 0x47081360 */ /* not lifted */ 3341 RECOMP_FLAGS_IN(); 3342 /* test eax, eax */ /* 0x4708178E: test eax, eax */ 3343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3344 _cf = 0; 3345 _flag_k = FK_TEST; 3346 if (TEST_Z(_flag_a, _flag_b)) goto L_4708179B; /* 0x47081790: je 0x4708179b */ 3347 L_47081792: 3348 MEM32(esp + 0x14) = ebx; /* 0x47081792: mov dword ptr [esp + 0x14], ebx */ 3349 goto L_470818F8; /* 0x47081796: jmp 0x470818f8 */ 3350 L_4708179B: 3351 eax = MEM32(esp + 0x5C); /* 0x4708179B: mov eax, dword ptr [esp + 0x5c] */ 3352 ecx = MEM32(esp + 0x58); /* 0x4708179F: mov ecx, dword ptr [esp + 0x58] */ 3353 PUSH32(esp, eax); /* 0x470817A3: push eax */ 3354 PUSH32(esp, ecx); /* 0x470817A4: push ecx */ 3355 edx = esp + 0x6C; /* 0x470817A5: lea edx, [esp + 0x6c] */ 3356 PUSH32(esp, edx); /* 0x470817A9: push edx */ 3357 eax = esp + 0x190; /* 0x470817AA: lea eax, [esp + 0x190] */ 3358 PUSH32(esp, eax); /* 0x470817B1: push eax */ 3359 MEM32(esp + 0x24) = 1; /* 0x470817B2: mov dword ptr [esp + 0x24], 1 */ 3360 RECOMP_ICALL(0x47054FC0u); /* 0x470817BA: call 0x47054fc0 */ /* not lifted */ 3361 RECOMP_FLAGS_IN(); 3362 eax = MEM32(ebp + 0x8); /* 0x470817BF: mov eax, dword ptr [ebp + 8] */ 3363 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3365 esp = esp + 0x10u; /* 0x470817C2: add esp, 0x10 */ 3366 _flag_k = FK_ADD; 3367 /* cmp eax, ebx */ /* 0x470817C5: cmp eax, ebx */ 3368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3370 _flag_k = FK_CMP; 3371 MEM32(esp + 0x2C) = ebx; /* 0x470817C7: mov dword ptr [esp + 0x2c], ebx */ 3372 MEM32(esp + 0x30) = ebx; /* 0x470817CB: mov dword ptr [esp + 0x30], ebx */ 3373 MEM32(esp + 0x34) = edi; /* 0x470817CF: mov dword ptr [esp + 0x34], edi */ 3374 MEM32(esp + 0x20) = ebx; /* 0x470817D3: mov dword ptr [esp + 0x20], ebx */ 3375 MEM32(esp + 0x24) = ebx; /* 0x470817D7: mov dword ptr [esp + 0x24], ebx */ 3376 MEM32(esp + 0x28) = edi; /* 0x470817DB: mov dword ptr [esp + 0x28], edi */ 3377 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708184C; /* 0x470817DF: je 0x4708184c */ 3378 L_470817E1: 3379 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x470817E1: cdq */ 3380 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3381 edi = 0; /* 0x470817E2: xor edi, edi */ 3382 _cf = 0; 3383 _flag_k = FK_TEST; 3384 /* cmp esi, edi */ /* 0x470817E4: cmp esi, edi */ 3385 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3387 _flag_k = FK_CMP; 3388 ebx = eax; /* 0x470817E6: mov ebx, eax */ 3389 ebp = edx; /* 0x470817E8: mov ebp, edx */ 3390 if (CMP_NE(_flag_a, _flag_b)) goto L_470817F2; /* 0x470817EA: jne 0x470817f2 */ 3391 L_470817EC: 3392 MEM32(esp + 0x2C) = edi; /* 0x470817EC: mov dword ptr [esp + 0x2c], edi */ 3393 goto L_470817FF; /* 0x470817F0: jmp 0x470817ff */ 3394 L_470817F2: 3395 PUSH32(esp, edi); /* 0x470817F2: push edi */ 3396 PUSH32(esp, esi); /* 0x470817F3: push esi */ 3397 PUSH32(esp, ebp); /* 0x470817F4: push ebp */ 3398 PUSH32(esp, ebx); /* 0x470817F5: push ebx */ 3399 RECOMP_ICALL(0x470A3500u); /* 0x470817F6: call 0x470a3500 */ /* not lifted */ 3400 RECOMP_FLAGS_IN(); 3401 MEM32(esp + 0x2C) = eax; /* 0x470817FB: mov dword ptr [esp + 0x2c], eax */ 3402 L_470817FF: 3403 /* cmp MEM32(esp + 0x10), edi */ /* 0x470817FF: cmp dword ptr [esp + 0x10], edi */ 3404 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(edi); 3405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3406 _flag_k = FK_CMP; 3407 if (CMP_A(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081803: ja 0x4708180f */ 3408 L_47081805: 3409 /* cmp esi, edi */ /* 0x47081805: cmp esi, edi */ 3410 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3412 _flag_k = FK_CMP; 3413 if (CMP_EQ(_flag_a, _flag_b)) goto L_4708180F; /* 0x47081807: je 0x4708180f */ 3414 L_47081809: 3415 MEM32(esp + 0x30) = edi; /* 0x47081809: mov dword ptr [esp + 0x30], edi */ 3416 goto L_47081842; /* 0x4708180D: jmp 0x47081842 */ 3417 L_4708180F: 3418 ecx = esp + 0x2C; /* 0x4708180F: lea ecx, [esp + 0x2c] */ 3419 RECOMP_ICALL(0x47081200u); /* 0x47081813: call 0x47081200 */ /* not lifted */ 3420 RECOMP_FLAGS_IN(); 3421 PUSH32(esp, edi); /* 0x47081818: push edi */ 3422 PUSH32(esp, esi); /* 0x47081819: push esi */ 3423 PUSH32(esp, ebp); /* 0x4708181A: push ebp */ 3424 ecx = eax; /* 0x4708181B: mov ecx, eax */ 3425 PUSH32(esp, ebx); /* 0x4708181D: push ebx */ 3426 MEM32(esp + 0x60) = ecx; /* 0x4708181E: mov dword ptr [esp + 0x60], ecx */ 3427 RECOMP_ICALL(0x470A3640u); /* 0x47081822: call 0x470a3640 */ /* not lifted */ 3428 RECOMP_FLAGS_IN(); 3429 ecx = MEM32(esp + 0x50); /* 0x47081827: mov ecx, dword ptr [esp + 0x50] */ 3430 PUSH32(esp, edx); /* 0x4708182B: push edx */ 3431 PUSH32(esp, eax); /* 0x4708182C: push eax */ 3432 PUSH32(esp, 0); /* 0x4708182D: push 0 */ 3433 PUSH32(esp, ecx); /* 0x4708182F: push ecx */ 3434 RECOMP_ICALL(0x470A34C0u); /* 0x47081830: call 0x470a34c0 */ /* not lifted */ 3435 RECOMP_FLAGS_IN(); 3436 PUSH32(esp, edi); /* 0x47081835: push edi */ 3437 PUSH32(esp, esi); /* 0x47081836: push esi */ 3438 PUSH32(esp, edx); /* 0x47081837: push edx */ 3439 PUSH32(esp, eax); /* 0x47081838: push eax */ 3440 RECOMP_ICALL(0x470A3500u); /* 0x47081839: call 0x470a3500 */ /* not lifted */ 3441 RECOMP_FLAGS_IN(); 3442 MEM32(esp + 0x30) = eax; /* 0x4708183E: mov dword ptr [esp + 0x30], eax */ 3443 L_47081842: 3444 ebp = MEM32(esp + 0x38); /* 0x47081842: mov ebp, dword ptr [esp + 0x38] */ 3445 edi = MEM32(esp + 0x10); /* 0x47081846: mov edi, dword ptr [esp + 0x10] */ 3446 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3447 ebx = 0; /* 0x4708184A: xor ebx, ebx */ 3448 _cf = 0; 3449 _flag_k = FK_TEST; 3450 L_4708184C: 3451 eax = MEM32(ebp + 0xC); /* 0x4708184C: mov eax, dword ptr [ebp + 0xc] */ 3452 /* cmp eax, ebx */ /* 0x4708184F: cmp eax, ebx */ 3453 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3455 _flag_k = FK_CMP; 3456 if (CMP_EQ(_flag_a, _flag_b)) goto L_470818BD; /* 0x47081851: je 0x470818bd */ 3457 L_47081853: 3458 /* cmp esi, ebx */ /* 0x47081853: cmp esi, ebx */ 3459 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3461 _flag_k = FK_CMP; 3462 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x47081855: cdq */ 3463 MEM32(esp + 0x48) = eax; /* 0x47081856: mov dword ptr [esp + 0x48], eax */ 3464 MEM32(esp + 0x4C) = edx; /* 0x4708185A: mov dword ptr [esp + 0x4c], edx */ 3465 if (CMP_NE(_flag_a, _flag_b)) goto L_47081866; /* 0x4708185E: jne 0x47081866 */ 3466 L_47081860: 3467 MEM32(esp + 0x20) = ebx; /* 0x47081860: mov dword ptr [esp + 0x20], ebx */ 3468 goto L_47081873; /* 0x47081864: jmp 0x47081873 */ 3469 L_47081866: 3470 PUSH32(esp, ebx); /* 0x47081866: push ebx */ 3471 PUSH32(esp, esi); /* 0x47081867: push esi */ 3472 PUSH32(esp, edx); /* 0x47081868: push edx */ 3473 PUSH32(esp, eax); /* 0x47081869: push eax */ 3474 RECOMP_ICALL(0x470A3500u); /* 0x4708186A: call 0x470a3500 */ /* not lifted */ 3475 RECOMP_FLAGS_IN(); 3476 MEM32(esp + 0x20) = eax; /* 0x4708186F: mov dword ptr [esp + 0x20], eax */ 3477 L_47081873: 3478 /* cmp MEM32(esp + 0x28), ebx */ /* 0x47081873: cmp dword ptr [esp + 0x28], ebx */ 3479 _flag_a = (uint32_t)(MEM32(esp + 0x28)); _flag_b = (uint32_t)(ebx); 3480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3481 _flag_k = FK_CMP; 3482 if (CMP_A(_flag_a, _flag_b)) goto L_47081883; /* 0x47081877: ja 0x47081883 */ 3483 L_47081879: 3484 /* cmp esi, ebx */ /* 0x47081879: cmp esi, ebx */ 3485 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3486 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3487 _flag_k = FK_CMP; 3488 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081883; /* 0x4708187B: je 0x47081883 */ 3489 L_4708187D: 3490 MEM32(esp + 0x24) = ebx; /* 0x4708187D: mov dword ptr [esp + 0x24], ebx */ 3491 goto L_470818BD; /* 0x47081881: jmp 0x470818bd */ 3492 L_47081883: 3493 ecx = esp + 0x20; /* 0x47081883: lea ecx, [esp + 0x20] */ 3494 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3495 edi = 0; /* 0x47081887: xor edi, edi */ 3496 _cf = 0; 3497 _flag_k = FK_TEST; 3498 RECOMP_ICALL(0x47081200u); /* 0x47081889: call 0x47081200 */ /* not lifted */ 3499 RECOMP_FLAGS_IN(); 3500 edx = MEM32(esp + 0x4C); /* 0x4708188E: mov edx, dword ptr [esp + 0x4c] */ 3501 PUSH32(esp, edi); /* 0x47081892: push edi */ 3502 PUSH32(esp, esi); /* 0x47081893: push esi */ 3503 ebx = eax; /* 0x47081894: mov ebx, eax */ 3504 eax = MEM32(esp + 0x50); /* 0x47081896: mov eax, dword ptr [esp + 0x50] */ 3505 PUSH32(esp, edx); /* 0x4708189A: push edx */ 3506 PUSH32(esp, eax); /* 0x4708189B: push eax */ 3507 RECOMP_ICALL(0x470A3640u); /* 0x4708189C: call 0x470a3640 */ /* not lifted */ 3508 RECOMP_FLAGS_IN(); 3509 PUSH32(esp, edx); /* 0x470818A1: push edx */ 3510 PUSH32(esp, eax); /* 0x470818A2: push eax */ 3511 PUSH32(esp, edi); /* 0x470818A3: push edi */ 3512 PUSH32(esp, ebx); /* 0x470818A4: push ebx */ 3513 RECOMP_ICALL(0x470A34C0u); /* 0x470818A5: call 0x470a34c0 */ /* not lifted */ 3514 RECOMP_FLAGS_IN(); 3515 PUSH32(esp, edi); /* 0x470818AA: push edi */ 3516 PUSH32(esp, esi); /* 0x470818AB: push esi */ 3517 PUSH32(esp, edx); /* 0x470818AC: push edx */ 3518 PUSH32(esp, eax); /* 0x470818AD: push eax */ 3519 RECOMP_ICALL(0x470A3500u); /* 0x470818AE: call 0x470a3500 */ /* not lifted */ 3520 RECOMP_FLAGS_IN(); 3521 edi = MEM32(esp + 0x10); /* 0x470818B3: mov edi, dword ptr [esp + 0x10] */ 3522 MEM32(esp + 0x24) = eax; /* 0x470818B7: mov dword ptr [esp + 0x24], eax */ 3523 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3524 ebx = 0; /* 0x470818BB: xor ebx, ebx */ 3525 _cf = 0; 3526 _flag_k = FK_TEST; 3527 L_470818BD: 3528 ecx = MEM32(esp + 0x30); /* 0x470818BD: mov ecx, dword ptr [esp + 0x30] */ 3529 edx = MEM32(esp + 0x2C); /* 0x470818C1: mov edx, dword ptr [esp + 0x2c] */ 3530 PUSH32(esp, ecx); /* 0x470818C5: push ecx */ 3531 PUSH32(esp, edx); /* 0x470818C6: push edx */ 3532 eax = esp + 0x6C; /* 0x470818C7: lea eax, [esp + 0x6c] */ 3533 PUSH32(esp, eax); /* 0x470818CB: push eax */ 3534 ecx = esp + 0x210; /* 0x470818CC: lea ecx, [esp + 0x210] */ 3535 PUSH32(esp, ecx); /* 0x470818D3: push ecx */ 3536 RECOMP_ICALL(0x47054FC0u); /* 0x470818D4: call 0x47054fc0 */ /* not lifted */ 3537 RECOMP_FLAGS_IN(); 3538 edx = MEM32(esp + 0x34); /* 0x470818D9: mov edx, dword ptr [esp + 0x34] */ 3539 eax = MEM32(esp + 0x30); /* 0x470818DD: mov eax, dword ptr [esp + 0x30] */ 3540 PUSH32(esp, edx); /* 0x470818E1: push edx */ 3541 PUSH32(esp, eax); /* 0x470818E2: push eax */ 3542 ecx = esp + 0x7C; /* 0x470818E3: lea ecx, [esp + 0x7c] */ 3543 PUSH32(esp, ecx); /* 0x470818E7: push ecx */ 3544 edx = esp + 0x120; /* 0x470818E8: lea edx, [esp + 0x120] */ 3545 PUSH32(esp, edx); /* 0x470818EF: push edx */ 3546 RECOMP_ICALL(0x47054FC0u); /* 0x470818F0: call 0x47054fc0 */ /* not lifted */ 3547 RECOMP_FLAGS_IN(); 3548 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 3549 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3550 esp = esp + 0x20u; /* 0x470818F5: add esp, 0x20 */ 3551 _flag_k = FK_ADD; 3552 L_470818F8: 3553 eax = MEM32(ebp); /* 0x470818F8: mov eax, dword ptr [ebp] */ 3554 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 3555 edi = edi - 1; /* 0x470818FB: dec edi */ 3556 _flag_k = FK_DEC; 3557 /* cmp eax, ebx */ /* 0x470818FC: cmp eax, ebx */ 3558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3560 _flag_k = FK_CMP; 3561 eax = MEM32(esp + 0x14); /* 0x470818FE: mov eax, dword ptr [esp + 0x14] */ 3562 MEM32(esp + 0x10) = edi; /* 0x47081902: mov dword ptr [esp + 0x10], edi */ 3563 RECOMP_BACKEDGE(); 3564 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081691; /* 0x47081906: je 0x47081691 */ 3565 L_4708190C: 3566 /* cmp eax, 1 */ /* 0x4708190C: cmp eax, 1 */ 3567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3569 _flag_k = FK_CMP; 3570 if (CMP_NE(_flag_a, _flag_b)) goto L_47081959; /* 0x4708190F: jne 0x47081959 */ 3571 L_47081911: 3572 eax = esp + 0x184; /* 0x47081911: lea eax, [esp + 0x184] */ 3573 PUSH32(esp, eax); /* 0x47081918: push eax */ 3574 ecx = esp + 0x88; /* 0x47081919: lea ecx, [esp + 0x88] */ 3575 PUSH32(esp, ecx); /* 0x47081920: push ecx */ 3576 ecx = MEM32(ebp + 0x4); /* 0x47081921: mov ecx, dword ptr [ebp + 4] */ 3577 edx = esp + 0x10C; /* 0x47081924: lea edx, [esp + 0x10c] */ 3578 PUSH32(esp, edx); /* 0x4708192B: push edx */ 3579 edx = MEM32(esp + 0x29C); /* 0x4708192C: mov edx, dword ptr [esp + 0x29c] */ 3580 eax = esp + 0x210; /* 0x47081933: lea eax, [esp + 0x210] */ 3581 PUSH32(esp, eax); /* 0x4708193A: push eax */ 3582 PUSH32(esp, ecx); /* 0x4708193B: push ecx */ 3583 PUSH32(esp, 0x4710B5C8u); /* 0x4708193C: push 0x4710b5c8 */ 3584 PUSH32(esp, edx); /* 0x47081941: push edx */ 3585 RECOMP_ICALL(0x47054F80u); /* 0x47081942: call 0x47054f80 */ /* not lifted */ 3586 RECOMP_FLAGS_IN(); 3587 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3589 esp = esp + 0x1Cu; /* 0x47081947: add esp, 0x1c */ 3590 _flag_k = FK_ADD; 3591 edi = POP32_VAL(esp); /* 0x4708194A: pop edi */ 3592 esi = POP32_VAL(esp); /* 0x4708194B: pop esi */ 3593 ebp = POP32_VAL(esp); /* 0x4708194C: pop ebp */ 3594 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3595 eax = 0; /* 0x4708194D: xor eax, eax */ 3596 _cf = 0; 3597 _flag_k = FK_TEST; 3598 ebx = POP32_VAL(esp); /* 0x4708194F: pop ebx */ 3599 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 3600 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3601 esp = esp + 0x274u; /* 0x47081950: add esp, 0x274 */ 3602 _flag_k = FK_ADD; 3603 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081956: ret 0xc */ 3604 L_47081959: 3605 eax = MEM32(ebp); /* 0x47081959: mov eax, dword ptr [ebp] */ 3606 PUSH32(esp, eax); /* 0x4708195C: push eax */ 3607 RECOMP_ICALL(MEM32(0x470AC324)); /* 0x4708195D: call dword ptr [0x470ac324] */ 3608 RECOMP_FLAGS_IN(); 3609 ecx = MEM32(esp + 0x294); /* 0x47081963: mov ecx, dword ptr [esp + 0x294] */ 3610 PUSH32(esp, eax); /* 0x4708196A: push eax */ 3611 PUSH32(esp, 0x4710B5A0u); /* 0x4708196B: push 0x4710b5a0 */ 3612 PUSH32(esp, ecx); /* 0x47081970: push ecx */ 3613 RECOMP_ICALL(0x47054F80u); /* 0x47081971: call 0x47054f80 */ /* not lifted */ 3614 RECOMP_FLAGS_IN(); 3615 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3616 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3617 esp = esp + 0x10u; /* 0x47081976: add esp, 0x10 */ 3618 _flag_k = FK_ADD; 3619 edi = POP32_VAL(esp); /* 0x47081979: pop edi */ 3620 esi = POP32_VAL(esp); /* 0x4708197A: pop esi */ 3621 ebp = POP32_VAL(esp); /* 0x4708197B: pop ebp */ 3622 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3623 eax = eax | 0xFFFFFFFFu; /* 0x4708197C: or eax, 0xffffffff */ 3624 _cf = 0; 3625 _flag_k = FK_TEST; 3626 ebx = POP32_VAL(esp); /* 0x4708197F: pop ebx */ 3627 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 3628 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3629 esp = esp + 0x274u; /* 0x47081980: add esp, 0x274 */ 3630 _flag_k = FK_ADD; 3631 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081986: ret 0xc */ 3632 RECOMP_REGS_OUT(); 3633 } 3634 3635 void sub_4708190C(void) { 3636 int _fpu_cmp = 0; 3637 uint32_t _cf = 0; 3638 int _df = 1; 3639 uint32_t _flag_k = FK_NONE; 3640 uint32_t _flag_a = 0, _flag_b = 0; 3641 uint32_t _itail_tgt = 0; 3642 RECOMP_REGS_LOCALS 3643 RECOMP_ENTER(0x4708190Cu); 3644 3645 L_4708190C: 3646 /* cmp eax, 1 */ /* 0x4708190C: cmp eax, 1 */ 3647 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3649 _flag_k = FK_CMP; 3650 if (CMP_NE(_flag_a, _flag_b)) goto L_47081959; /* 0x4708190F: jne 0x47081959 */ 3651 L_47081911: 3652 eax = esp + 0x184; /* 0x47081911: lea eax, [esp + 0x184] */ 3653 PUSH32(esp, eax); /* 0x47081918: push eax */ 3654 ecx = esp + 0x88; /* 0x47081919: lea ecx, [esp + 0x88] */ 3655 PUSH32(esp, ecx); /* 0x47081920: push ecx */ 3656 ecx = MEM32(ebp + 0x4); /* 0x47081921: mov ecx, dword ptr [ebp + 4] */ 3657 edx = esp + 0x10C; /* 0x47081924: lea edx, [esp + 0x10c] */ 3658 PUSH32(esp, edx); /* 0x4708192B: push edx */ 3659 edx = MEM32(esp + 0x29C); /* 0x4708192C: mov edx, dword ptr [esp + 0x29c] */ 3660 eax = esp + 0x210; /* 0x47081933: lea eax, [esp + 0x210] */ 3661 PUSH32(esp, eax); /* 0x4708193A: push eax */ 3662 PUSH32(esp, ecx); /* 0x4708193B: push ecx */ 3663 PUSH32(esp, 0x4710B5C8u); /* 0x4708193C: push 0x4710b5c8 */ 3664 PUSH32(esp, edx); /* 0x47081941: push edx */ 3665 RECOMP_ICALL(0x47054F80u); /* 0x47081942: call 0x47054f80 */ /* not lifted */ 3666 RECOMP_FLAGS_IN(); 3667 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3669 esp = esp + 0x1Cu; /* 0x47081947: add esp, 0x1c */ 3670 _flag_k = FK_ADD; 3671 edi = POP32_VAL(esp); /* 0x4708194A: pop edi */ 3672 esi = POP32_VAL(esp); /* 0x4708194B: pop esi */ 3673 ebp = POP32_VAL(esp); /* 0x4708194C: pop ebp */ 3674 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3675 eax = 0; /* 0x4708194D: xor eax, eax */ 3676 _cf = 0; 3677 _flag_k = FK_TEST; 3678 ebx = POP32_VAL(esp); /* 0x4708194F: pop ebx */ 3679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 3680 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3681 esp = esp + 0x274u; /* 0x47081950: add esp, 0x274 */ 3682 _flag_k = FK_ADD; 3683 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081956: ret 0xc */ 3684 L_47081959: 3685 eax = MEM32(ebp); /* 0x47081959: mov eax, dword ptr [ebp] */ 3686 PUSH32(esp, eax); /* 0x4708195C: push eax */ 3687 RECOMP_ICALL(MEM32(0x470AC324)); /* 0x4708195D: call dword ptr [0x470ac324] */ 3688 RECOMP_FLAGS_IN(); 3689 ecx = MEM32(esp + 0x294); /* 0x47081963: mov ecx, dword ptr [esp + 0x294] */ 3690 PUSH32(esp, eax); /* 0x4708196A: push eax */ 3691 PUSH32(esp, 0x4710B5A0u); /* 0x4708196B: push 0x4710b5a0 */ 3692 PUSH32(esp, ecx); /* 0x47081970: push ecx */ 3693 RECOMP_ICALL(0x47054F80u); /* 0x47081971: call 0x47054f80 */ /* not lifted */ 3694 RECOMP_FLAGS_IN(); 3695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3697 esp = esp + 0x10u; /* 0x47081976: add esp, 0x10 */ 3698 _flag_k = FK_ADD; 3699 edi = POP32_VAL(esp); /* 0x47081979: pop edi */ 3700 esi = POP32_VAL(esp); /* 0x4708197A: pop esi */ 3701 ebp = POP32_VAL(esp); /* 0x4708197B: pop ebp */ 3702 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3703 eax = eax | 0xFFFFFFFFu; /* 0x4708197C: or eax, 0xffffffff */ 3704 _cf = 0; 3705 _flag_k = FK_TEST; 3706 ebx = POP32_VAL(esp); /* 0x4708197F: pop ebx */ 3707 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 3708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3709 esp = esp + 0x274u; /* 0x47081980: add esp, 0x274 */ 3710 _flag_k = FK_ADD; 3711 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081986: ret 0xc */ 3712 RECOMP_REGS_OUT(); 3713 } 3714 3715 void sub_47081959(void) { 3716 int _fpu_cmp = 0; 3717 uint32_t _cf = 0; 3718 int _df = 1; 3719 uint32_t _flag_k = FK_NONE; 3720 uint32_t _flag_a = 0, _flag_b = 0; 3721 uint32_t _itail_tgt = 0; 3722 RECOMP_REGS_LOCALS 3723 RECOMP_ENTER(0x47081959u); 3724 3725 L_47081959: 3726 eax = MEM32(ebp); /* 0x47081959: mov eax, dword ptr [ebp] */ 3727 PUSH32(esp, eax); /* 0x4708195C: push eax */ 3728 RECOMP_ICALL(MEM32(0x470AC324)); /* 0x4708195D: call dword ptr [0x470ac324] */ 3729 RECOMP_FLAGS_IN(); 3730 ecx = MEM32(esp + 0x294); /* 0x47081963: mov ecx, dword ptr [esp + 0x294] */ 3731 PUSH32(esp, eax); /* 0x4708196A: push eax */ 3732 PUSH32(esp, 0x4710B5A0u); /* 0x4708196B: push 0x4710b5a0 */ 3733 PUSH32(esp, ecx); /* 0x47081970: push ecx */ 3734 RECOMP_ICALL(0x47054F80u); /* 0x47081971: call 0x47054f80 */ /* not lifted */ 3735 RECOMP_FLAGS_IN(); 3736 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3738 esp = esp + 0x10u; /* 0x47081976: add esp, 0x10 */ 3739 _flag_k = FK_ADD; 3740 edi = POP32_VAL(esp); /* 0x47081979: pop edi */ 3741 esi = POP32_VAL(esp); /* 0x4708197A: pop esi */ 3742 ebp = POP32_VAL(esp); /* 0x4708197B: pop ebp */ 3743 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3744 eax = eax | 0xFFFFFFFFu; /* 0x4708197C: or eax, 0xffffffff */ 3745 _cf = 0; 3746 _flag_k = FK_TEST; 3747 ebx = POP32_VAL(esp); /* 0x4708197F: pop ebx */ 3748 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x274u); 3749 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3750 esp = esp + 0x274u; /* 0x47081980: add esp, 0x274 */ 3751 _flag_k = FK_ADD; 3752 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47081986: ret 0xc */ 3753 RECOMP_REGS_OUT(); 3754 } 3755 3756 void sub_47081990(void) { 3757 int _fpu_cmp = 0; 3758 uint32_t _cf = 0; 3759 int _df = 1; 3760 uint32_t _flag_k = FK_NONE; 3761 uint32_t _flag_a = 0, _flag_b = 0; 3762 uint32_t _itail_tgt = 0; 3763 RECOMP_REGS_LOCALS 3764 RECOMP_ENTER(0x47081990u); 3765 3766 L_47081990: 3767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3769 esp = esp - 8; /* 0x47081990: sub esp, 8 */ 3770 _flag_k = FK_CMP; 3771 PUSH32(esp, ebp); /* 0x47081993: push ebp */ 3772 PUSH32(esp, esi); /* 0x47081994: push esi */ 3773 PUSH32(esp, edi); /* 0x47081995: push edi */ 3774 edi = MEM32(esp + 0x20); /* 0x47081996: mov edi, dword ptr [esp + 0x20] */ 3775 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3776 esi = 0; /* 0x4708199A: xor esi, esi */ 3777 _cf = 0; 3778 _flag_k = FK_TEST; 3779 /* cmp edi, esi */ /* 0x4708199C: cmp edi, esi */ 3780 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 3781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3782 _flag_k = FK_CMP; 3783 if (CMP_NE(_flag_a, _flag_b)) goto L_470819A8; /* 0x4708199E: jne 0x470819a8 */ 3784 L_470819A0: 3785 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3786 eax = 0; /* 0x470819A0: xor eax, eax */ 3787 _cf = 0; 3788 _flag_k = FK_TEST; 3789 MEM32(esp + 0x10) = esi; /* 0x470819A2: mov dword ptr [esp + 0x10], esi */ 3790 goto L_470819BD; /* 0x470819A6: jmp 0x470819bd */ 3791 L_470819A8: 3792 eax = MEM32(esp + 0x1C); /* 0x470819A8: mov eax, dword ptr [esp + 0x1c] */ 3793 ecx = MEM32(esp + 0x18); /* 0x470819AC: mov ecx, dword ptr [esp + 0x18] */ 3794 PUSH32(esp, esi); /* 0x470819B0: push esi */ 3795 PUSH32(esp, edi); /* 0x470819B1: push edi */ 3796 PUSH32(esp, eax); /* 0x470819B2: push eax */ 3797 PUSH32(esp, ecx); /* 0x470819B3: push ecx */ 3798 RECOMP_ICALL(0x470A3500u); /* 0x470819B4: call 0x470a3500 */ /* not lifted */ 3799 RECOMP_FLAGS_IN(); 3800 MEM32(esp + 0x10) = edx; /* 0x470819B9: mov dword ptr [esp + 0x10], edx */ 3801 L_470819BD: 3802 ebp = MEM32(esp + 0x24); /* 0x470819BD: mov ebp, dword ptr [esp + 0x24] */ 3803 ecx = MEM32(ebp + 0x8); /* 0x470819C1: mov ecx, dword ptr [ebp + 8] */ 3804 /* cmp ecx, esi */ /* 0x470819C4: cmp ecx, esi */ 3805 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 3806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3807 _flag_k = FK_CMP; 3808 MEM32(ebp) = eax; /* 0x470819C6: mov dword ptr [ebp], eax */ 3809 if (CMP_A(_flag_a, _flag_b)) goto L_470819D9; /* 0x470819C9: ja 0x470819d9 */ 3810 L_470819CB: 3811 /* cmp edi, esi */ /* 0x470819CB: cmp edi, esi */ 3812 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 3813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3814 _flag_k = FK_CMP; 3815 if (CMP_EQ(_flag_a, _flag_b)) goto L_470819D9; /* 0x470819CD: je 0x470819d9 */ 3816 L_470819CF: 3817 edi = POP32_VAL(esp); /* 0x470819CF: pop edi */ 3818 MEM32(ebp + 0x4) = esi; /* 0x470819D0: mov dword ptr [ebp + 4], esi */ 3819 esi = POP32_VAL(esp); /* 0x470819D3: pop esi */ 3820 ebp = POP32_VAL(esp); /* 0x470819D4: pop ebp */ 3821 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3823 esp = esp + 8; /* 0x470819D5: add esp, 8 */ 3824 _flag_k = FK_ADD; 3825 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470819D8: ret */ 3826 L_470819D9: 3827 /* cmp ecx, esi */ /* 0x470819D9: cmp ecx, esi */ 3828 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 3829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3830 _flag_k = FK_CMP; 3831 PUSH32(esp, ebx); /* 0x470819DB: push ebx */ 3832 if (CMP_NE(_flag_a, _flag_b)) goto L_470819E5; /* 0x470819DC: jne 0x470819e5 */ 3833 L_470819DE: 3834 ebx = 1; /* 0x470819DE: mov ebx, 1 */ 3835 goto L_470819F9; /* 0x470819E3: jmp 0x470819f9 */ 3836 L_470819E5: 3837 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3838 ecx = ecx - 1; /* 0x470819E5: dec ecx */ 3839 _flag_k = FK_DEC; 3840 /* cmp ecx, esi */ /* 0x470819E6: cmp ecx, esi */ 3841 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 3842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3843 _flag_k = FK_CMP; 3844 eax = 0xAu; /* 0x470819E8: mov eax, 0xa */ 3845 if (CMP_BE(_flag_a, _flag_b)) goto L_470819F7; /* 0x470819ED: jbe 0x470819f7 */ 3846 L_470819EF: 3847 eax = eax + eax * 4; /* 0x470819EF: lea eax, [eax + eax*4] */ 3848 if (1u) _cf = (((eax) >> 31) & 1u); /* 0x470819F2: shl eax, 1 */ 3849 if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3850 eax = eax << 1u; /* 0x470819F2: shl eax, 1 */ 3851 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3852 ecx = ecx - 1; /* 0x470819F4: dec ecx */ 3853 _flag_k = FK_DEC; 3854 RECOMP_BACKEDGE(); 3855 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_470819EF; /* 0x470819F5: jne 0x470819ef */ 3856 L_470819F7: 3857 ebx = eax; /* 0x470819F7: mov ebx, eax */ 3858 L_470819F9: 3859 edx = MEM32(esp + 0x20); /* 0x470819F9: mov edx, dword ptr [esp + 0x20] */ 3860 eax = MEM32(esp + 0x1C); /* 0x470819FD: mov eax, dword ptr [esp + 0x1c] */ 3861 PUSH32(esp, esi); /* 0x47081A01: push esi */ 3862 PUSH32(esp, edi); /* 0x47081A02: push edi */ 3863 PUSH32(esp, edx); /* 0x47081A03: push edx */ 3864 PUSH32(esp, eax); /* 0x47081A04: push eax */ 3865 RECOMP_ICALL(0x470A3640u); /* 0x47081A05: call 0x470a3640 */ /* not lifted */ 3866 RECOMP_FLAGS_IN(); 3867 PUSH32(esp, 0); /* 0x47081A0A: push 0 */ 3868 PUSH32(esp, ebx); /* 0x47081A0C: push ebx */ 3869 PUSH32(esp, edx); /* 0x47081A0D: push edx */ 3870 PUSH32(esp, eax); /* 0x47081A0E: push eax */ 3871 RECOMP_ICALL(0x470A34C0u); /* 0x47081A0F: call 0x470a34c0 */ /* not lifted */ 3872 RECOMP_FLAGS_IN(); 3873 PUSH32(esp, esi); /* 0x47081A14: push esi */ 3874 PUSH32(esp, edi); /* 0x47081A15: push edi */ 3875 PUSH32(esp, edx); /* 0x47081A16: push edx */ 3876 PUSH32(esp, eax); /* 0x47081A17: push eax */ 3877 RECOMP_ICALL(0x470A3500u); /* 0x47081A18: call 0x470a3500 */ /* not lifted */ 3878 RECOMP_FLAGS_IN(); 3879 ebx = POP32_VAL(esp); /* 0x47081A1D: pop ebx */ 3880 edi = POP32_VAL(esp); /* 0x47081A1E: pop edi */ 3881 esi = POP32_VAL(esp); /* 0x47081A1F: pop esi */ 3882 MEM32(ebp + 0x4) = eax; /* 0x47081A20: mov dword ptr [ebp + 4], eax */ 3883 ebp = POP32_VAL(esp); /* 0x47081A23: pop ebp */ 3884 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3885 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3886 esp = esp + 8; /* 0x47081A24: add esp, 8 */ 3887 _flag_k = FK_ADD; 3888 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47081A27: ret */ 3889 RECOMP_REGS_OUT(); 3890 } 3891 3892 void sub_47081A30(void) { 3893 int _fpu_cmp = 0; 3894 uint32_t _cf = 0; 3895 int _df = 1; 3896 uint32_t _flag_k = FK_NONE; 3897 uint32_t _flag_a = 0, _flag_b = 0; 3898 uint32_t _itail_tgt = 0; 3899 RECOMP_REGS_LOCALS 3900 RECOMP_ENTER(0x47081A30u); 3901 3902 L_47081A30: 3903 PUSH32(esp, ebx); /* 0x47081A30: push ebx */ 3904 ebx = MEM32(esp + 0x8); /* 0x47081A31: mov ebx, dword ptr [esp + 8] */ 3905 PUSH32(esp, esi); /* 0x47081A35: push esi */ 3906 esi = MEM32(esp + 0x10); /* 0x47081A36: mov esi, dword ptr [esp + 0x10] */ 3907 /* test esi, esi */ /* 0x47081A3A: test esi, esi */ 3908 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3909 _cf = 0; 3910 _flag_k = FK_TEST; 3911 PUSH32(esp, edi); /* 0x47081A3C: push edi */ 3912 if (TEST_NZ(_flag_a, _flag_b)) goto L_47081A43; /* 0x47081A3D: jne 0x47081a43 */ 3913 L_47081A3F: 3914 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3915 eax = 0; /* 0x47081A3F: xor eax, eax */ 3916 _cf = 0; 3917 _flag_k = FK_TEST; 3918 goto L_47081A49; /* 0x47081A41: jmp 0x47081a49 */ 3919 L_47081A43: 3920 eax = MEM32(ebx); /* 0x47081A43: mov eax, dword ptr [ebx] */ 3921 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3922 edx = 0; /* 0x47081A45: xor edx, edx */ 3923 _cf = 0; 3924 _flag_k = FK_TEST; 3925 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)esi; /* 0x47081A47: div esi */ 3926 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 3927 else { eax = 0; edx = 0; } } 3928 L_47081A49: 3929 edi = MEM32(esp + 0x18); /* 0x47081A49: mov edi, dword ptr [esp + 0x18] */ 3930 ecx = MEM32(edi + 0x8); /* 0x47081A4D: mov ecx, dword ptr [edi + 8] */ 3931 /* test ecx, ecx */ /* 0x47081A50: test ecx, ecx */ 3932 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3933 _cf = 0; 3934 _flag_k = FK_TEST; 3935 MEM32(edi) = eax; /* 0x47081A52: mov dword ptr [edi], eax */ 3936 if (TEST_NZ(_flag_a, _flag_b)) goto L_47081A70; /* 0x47081A54: ja 0x47081a70 */ 3937 L_47081A56: 3938 /* test esi, esi */ /* 0x47081A56: test esi, esi */ 3939 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3940 _cf = 0; 3941 _flag_k = FK_TEST; 3942 if (TEST_Z(_flag_a, _flag_b)) goto L_47081A65; /* 0x47081A58: je 0x47081a65 */ 3943 L_47081A5A: 3944 MEM32(edi + 0x4) = 0; /* 0x47081A5A: mov dword ptr [edi + 4], 0 */ 3945 edi = POP32_VAL(esp); /* 0x47081A61: pop edi */ 3946 esi = POP32_VAL(esp); /* 0x47081A62: pop esi */ 3947 ebx = POP32_VAL(esp); /* 0x47081A63: pop ebx */ 3948 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47081A64: ret */ 3949 L_47081A65: 3950 /* test ecx, ecx */ /* 0x47081A65: test ecx, ecx */ 3951 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3952 _cf = 0; 3953 _flag_k = FK_TEST; 3954 if (TEST_NZ(_flag_a, _flag_b)) goto L_47081A70; /* 0x47081A67: jne 0x47081a70 */ 3955 L_47081A69: 3956 ecx = 1; /* 0x47081A69: mov ecx, 1 */ 3957 goto L_47081A84; /* 0x47081A6E: jmp 0x47081a84 */ 3958 L_47081A70: 3959 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3960 ecx = ecx - 1; /* 0x47081A70: dec ecx */ 3961 _flag_k = FK_DEC; 3962 /* test ecx, ecx */ /* 0x47081A71: test ecx, ecx */ 3963 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3964 _cf = 0; 3965 _flag_k = FK_TEST; 3966 eax = 0xAu; /* 0x47081A73: mov eax, 0xa */ 3967 if (TEST_Z(_flag_a, _flag_b)) goto L_47081A82; /* 0x47081A78: jbe 0x47081a82 */ 3968 L_47081A7A: 3969 eax = eax + eax * 4; /* 0x47081A7A: lea eax, [eax + eax*4] */ 3970 if (1u) _cf = (((eax) >> 31) & 1u); /* 0x47081A7D: shl eax, 1 */ 3971 if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3972 eax = eax << 1u; /* 0x47081A7D: shl eax, 1 */ 3973 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3974 ecx = ecx - 1; /* 0x47081A7F: dec ecx */ 3975 _flag_k = FK_DEC; 3976 RECOMP_BACKEDGE(); 3977 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_47081A7A; /* 0x47081A80: jne 0x47081a7a */ 3978 L_47081A82: 3979 ecx = eax; /* 0x47081A82: mov ecx, eax */ 3980 L_47081A84: 3981 eax = MEM32(ebx); /* 0x47081A84: mov eax, dword ptr [ebx] */ 3982 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3983 edx = 0; /* 0x47081A86: xor edx, edx */ 3984 _cf = 0; 3985 _flag_k = FK_TEST; 3986 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)esi; /* 0x47081A88: div esi */ 3987 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 3988 else { eax = 0; edx = 0; } } 3989 eax = edx; /* 0x47081A8A: mov eax, edx */ 3990 eax = (uint32_t)((int32_t)eax * (int32_t)ecx); /* 0x47081A8C: imul eax, ecx */ 3991 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3992 edx = 0; /* 0x47081A8F: xor edx, edx */ 3993 _cf = 0; 3994 _flag_k = FK_TEST; 3995 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)esi; /* 0x47081A91: div esi */ 3996 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 3997 else { eax = 0; edx = 0; } } 3998 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3999 edx = 0; /* 0x47081A93: xor edx, edx */ 4000 _cf = 0; 4001 _flag_k = FK_TEST; 4002 ecx = eax; /* 0x47081A95: mov ecx, eax */ 4003 eax = MEM32(ebx + 0x4); /* 0x47081A97: mov eax, dword ptr [ebx + 4] */ 4004 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)esi; /* 0x47081A9A: div esi */ 4005 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 4006 else { eax = 0; edx = 0; } } 4007 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4008 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4009 ecx = ecx + eax; /* 0x47081A9C: add ecx, eax */ 4010 _flag_k = FK_ADD; 4011 MEM32(edi + 0x4) = ecx; /* 0x47081A9E: mov dword ptr [edi + 4], ecx */ 4012 edi = POP32_VAL(esp); /* 0x47081AA1: pop edi */ 4013 esi = POP32_VAL(esp); /* 0x47081AA2: pop esi */ 4014 ebx = POP32_VAL(esp); /* 0x47081AA3: pop ebx */ 4015 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47081AA4: ret */ 4016 RECOMP_REGS_OUT(); 4017 } 4018 4019 void sub_47081AB0(void) { 4020 int _fpu_cmp = 0; 4021 uint32_t _cf = 0; 4022 int _df = 1; 4023 uint32_t _flag_k = FK_NONE; 4024 uint32_t _flag_a = 0, _flag_b = 0; 4025 uint32_t _itail_tgt = 0; 4026 RECOMP_REGS_LOCALS 4027 RECOMP_ENTER(0x47081AB0u); 4028 4029 L_47081AB0: 4030 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4032 esp = esp - 0x18u; /* 0x47081AB0: sub esp, 0x18 */ 4033 _flag_k = FK_CMP; 4034 PUSH32(esp, ebx); /* 0x47081AB3: push ebx */ 4035 PUSH32(esp, ebp); /* 0x47081AB4: push ebp */ 4036 PUSH32(esp, esi); /* 0x47081AB5: push esi */ 4037 PUSH32(esp, edi); /* 0x47081AB6: push edi */ 4038 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4039 edi = 0; /* 0x47081AB7: xor edi, edi */ 4040 _cf = 0; 4041 _flag_k = FK_TEST; 4042 _flag_a = (uint32_t)((ebp | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebp | 0xFFFFFFFFu)); 4043 ebp = ebp | 0xFFFFFFFFu; /* 0x47081AB9: or ebp, 0xffffffff */ 4044 _cf = 0; 4045 _flag_k = FK_TEST; 4046 MEM32(esp + 0x10) = edi; /* 0x47081ABC: mov dword ptr [esp + 0x10], edi */ 4047 L_47081AC0: 4048 esi = ebp; /* 0x47081AC0: mov esi, ebp */ 4049 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4051 esi = esi - edi; /* 0x47081AC2: sub esi, edi */ 4052 _flag_k = FK_CMP; 4053 if (1u) _cf = (((esi) >> 0) & 1u); /* 0x47081AC4: shr esi, 1 */ 4054 if (1u) { _flag_a = recomp_flags_pack((esi >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4055 esi = esi >> 1u; /* 0x47081AC4: shr esi, 1 */ 4056 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4057 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4058 esi = esi + edi; /* 0x47081AC6: add esi, edi */ 4059 _flag_k = FK_ADD; 4060 /* cmp edi, esi */ /* 0x47081AC8: cmp edi, esi */ 4061 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4063 _flag_k = FK_CMP; 4064 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081B05; /* 0x47081ACA: je 0x47081b05 */ 4065 L_47081ACC: 4066 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4067 eax = 0; /* 0x47081ACC: xor eax, eax */ 4068 _cf = 0; 4069 _flag_k = FK_TEST; 4070 PUSH32(esp, eax); /* 0x47081ACE: push eax */ 4071 PUSH32(esp, esi); /* 0x47081ACF: push esi */ 4072 PUSH32(esp, eax); /* 0x47081AD0: push eax */ 4073 PUSH32(esp, esi); /* 0x47081AD1: push esi */ 4074 RECOMP_ICALL(0x470A34C0u); /* 0x47081AD2: call 0x470a34c0 */ /* not lifted */ 4075 RECOMP_FLAGS_IN(); 4076 ebx = MEM32(esp + 0x2C); /* 0x47081AD7: mov ebx, dword ptr [esp + 0x2c] */ 4077 /* cmp eax, ebx */ /* 0x47081ADB: cmp eax, ebx */ 4078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4080 _flag_k = FK_CMP; 4081 if (CMP_NE(_flag_a, _flag_b)) goto L_47081AE5; /* 0x47081ADD: jne 0x47081ae5 */ 4082 L_47081ADF: 4083 /* cmp edx, MEM32(esp + 0x30) */ /* 0x47081ADF: cmp edx, dword ptr [esp + 0x30] */ 4084 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esp + 0x30)); 4085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4086 _flag_k = FK_CMP; 4087 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081B09; /* 0x47081AE3: je 0x47081b09 */ 4088 L_47081AE5: 4089 /* cmp edx, MEM32(esp + 0x30) */ /* 0x47081AE5: cmp edx, dword ptr [esp + 0x30] */ 4090 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esp + 0x30)); 4091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4092 _flag_k = FK_CMP; 4093 if (CMP_A(_flag_a, _flag_b)) goto L_47081AF5; /* 0x47081AE9: ja 0x47081af5 */ 4094 L_47081AEB: 4095 if (CMP_B(_flag_a, _flag_b)) goto L_47081AF1; /* 0x47081AEB: jb 0x47081af1 */ 4096 L_47081AED: 4097 /* cmp eax, ebx */ /* 0x47081AED: cmp eax, ebx */ 4098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4100 _flag_k = FK_CMP; 4101 if (CMP_AE(_flag_a, _flag_b)) goto L_47081AF5; /* 0x47081AEF: jae 0x47081af5 */ 4102 L_47081AF1: 4103 edi = esi; /* 0x47081AF1: mov edi, esi */ 4104 goto L_47081AF7; /* 0x47081AF3: jmp 0x47081af7 */ 4105 L_47081AF5: 4106 ebp = esi; /* 0x47081AF5: mov ebp, esi */ 4107 L_47081AF7: 4108 eax = MEM32(esp + 0x10); /* 0x47081AF7: mov eax, dword ptr [esp + 0x10] */ 4109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4110 eax = eax + 1; /* 0x47081AFB: inc eax */ 4111 _flag_k = FK_INC; 4112 /* cmp eax, 0x40u */ /* 0x47081AFC: cmp eax, 0x40 */ 4113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x40u); 4114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4115 _flag_k = FK_CMP; 4116 MEM32(esp + 0x10) = eax; /* 0x47081AFF: mov dword ptr [esp + 0x10], eax */ 4117 RECOMP_BACKEDGE(); 4118 if (CMP_B(_flag_a, _flag_b)) goto L_47081AC0; /* 0x47081B03: jb 0x47081ac0 */ 4119 L_47081B05: 4120 ebx = MEM32(esp + 0x2C); /* 0x47081B05: mov ebx, dword ptr [esp + 0x2c] */ 4121 L_47081B09: 4122 ebp = MEM32(esp + 0x34); /* 0x47081B09: mov ebp, dword ptr [esp + 0x34] */ 4123 edi = MEM32(ebp + 0x8); /* 0x47081B0D: mov edi, dword ptr [ebp + 8] */ 4124 /* test edi, edi */ /* 0x47081B10: test edi, edi */ 4125 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4126 _cf = 0; 4127 _flag_k = FK_TEST; 4128 MEM32(ebp) = esi; /* 0x47081B12: mov dword ptr [ebp], esi */ 4129 MEM32(esp + 0x14) = edi; /* 0x47081B15: mov dword ptr [esp + 0x14], edi */ 4130 if (TEST_Z(_flag_a, _flag_b)) goto L_47081C39; /* 0x47081B19: je 0x47081c39 */ 4131 L_47081B1F: 4132 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4133 eax = 0; /* 0x47081B1F: xor eax, eax */ 4134 _cf = 0; 4135 _flag_k = FK_TEST; 4136 PUSH32(esp, eax); /* 0x47081B21: push eax */ 4137 PUSH32(esp, esi); /* 0x47081B22: push esi */ 4138 PUSH32(esp, eax); /* 0x47081B23: push eax */ 4139 PUSH32(esp, esi); /* 0x47081B24: push esi */ 4140 RECOMP_ICALL(0x470A34C0u); /* 0x47081B25: call 0x470a34c0 */ /* not lifted */ 4141 RECOMP_FLAGS_IN(); 4142 /* cmp edx, MEM32(esp + 0x30) */ /* 0x47081B2A: cmp edx, dword ptr [esp + 0x30] */ 4143 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esp + 0x30)); 4144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4145 _flag_k = FK_CMP; 4146 if (CMP_A(_flag_a, _flag_b)) goto L_47081C39; /* 0x47081B2E: ja 0x47081c39 */ 4147 L_47081B34: 4148 if (CMP_B(_flag_a, _flag_b)) goto L_47081B3E; /* 0x47081B34: jb 0x47081b3e */ 4149 L_47081B36: 4150 /* cmp eax, ebx */ /* 0x47081B36: cmp eax, ebx */ 4151 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4153 _flag_k = FK_CMP; 4154 if (CMP_AE(_flag_a, _flag_b)) goto L_47081C39; /* 0x47081B38: jae 0x47081c39 */ 4155 L_47081B3E: 4156 eax = edi + (-0x1); /* 0x47081B3E: lea eax, [edi - 1] */ 4157 /* test eax, eax */ /* 0x47081B41: test eax, eax */ 4158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4159 _cf = 0; 4160 _flag_k = FK_TEST; 4161 ebx = 0xAu; /* 0x47081B43: mov ebx, 0xa */ 4162 if (TEST_Z(_flag_a, _flag_b)) goto L_47081B52; /* 0x47081B48: jbe 0x47081b52 */ 4163 L_47081B4A: 4164 ebx = ebx + ebx * 4; /* 0x47081B4A: lea ebx, [ebx + ebx*4] */ 4165 if (1u) _cf = (((ebx) >> 31) & 1u); /* 0x47081B4D: shl ebx, 1 */ 4166 if (1u) { _flag_a = recomp_flags_pack((ebx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4167 ebx = ebx << 1u; /* 0x47081B4D: shl ebx, 1 */ 4168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4169 eax = eax - 1; /* 0x47081B4F: dec eax */ 4170 _flag_k = FK_DEC; 4171 RECOMP_BACKEDGE(); 4172 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_47081B4A; /* 0x47081B50: jne 0x47081b4a */ 4173 L_47081B52: 4174 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4175 eax = 0; /* 0x47081B52: xor eax, eax */ 4176 _cf = 0; 4177 _flag_k = FK_TEST; 4178 PUSH32(esp, eax); /* 0x47081B54: push eax */ 4179 PUSH32(esp, ebx); /* 0x47081B55: push ebx */ 4180 PUSH32(esp, eax); /* 0x47081B56: push eax */ 4181 PUSH32(esp, ebx); /* 0x47081B57: push ebx */ 4182 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4183 edi = 0; /* 0x47081B58: xor edi, edi */ 4184 _cf = 0; 4185 _flag_k = FK_TEST; 4186 ebp = ebx; /* 0x47081B5A: mov ebp, ebx */ 4187 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4188 esi = 0; /* 0x47081B5C: xor esi, esi */ 4189 _cf = 0; 4190 _flag_k = FK_TEST; 4191 RECOMP_ICALL(0x470A34C0u); /* 0x47081B5E: call 0x470a34c0 */ /* not lifted */ 4192 RECOMP_FLAGS_IN(); 4193 ecx = MEM32(esp + 0x30); /* 0x47081B63: mov ecx, dword ptr [esp + 0x30] */ 4194 PUSH32(esp, ecx); /* 0x47081B67: push ecx */ 4195 ecx = MEM32(esp + 0x30); /* 0x47081B68: mov ecx, dword ptr [esp + 0x30] */ 4196 PUSH32(esp, ecx); /* 0x47081B6C: push ecx */ 4197 PUSH32(esp, edx); /* 0x47081B6D: push edx */ 4198 PUSH32(esp, eax); /* 0x47081B6E: push eax */ 4199 RECOMP_ICALL(0x470A34C0u); /* 0x47081B6F: call 0x470a34c0 */ /* not lifted */ 4200 RECOMP_FLAGS_IN(); 4201 ecx = MEM32(esp + 0x14); /* 0x47081B74: mov ecx, dword ptr [esp + 0x14] */ 4202 MEM32(esp + 0x18) = eax; /* 0x47081B78: mov dword ptr [esp + 0x18], eax */ 4203 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4204 eax = 0; /* 0x47081B7C: xor eax, eax */ 4205 _cf = 0; 4206 _flag_k = FK_TEST; 4207 /* cmp ecx, eax */ /* 0x47081B7E: cmp ecx, eax */ 4208 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4210 _flag_k = FK_CMP; 4211 MEM32(esp + 0x1C) = edx; /* 0x47081B80: mov dword ptr [esp + 0x1c], edx */ 4212 MEM32(esp + 0x20) = eax; /* 0x47081B84: mov dword ptr [esp + 0x20], eax */ 4213 MEM32(esp + 0x24) = eax; /* 0x47081B88: mov dword ptr [esp + 0x24], eax */ 4214 MEM32(esp + 0x10) = eax; /* 0x47081B8C: mov dword ptr [esp + 0x10], eax */ 4215 if (CMP_BE(_flag_a, _flag_b)) goto L_47081BF9; /* 0x47081B90: jbe 0x47081bf9 */ 4216 L_47081B92: 4217 edx = MEM32(esp + 0x34); /* 0x47081B92: mov edx, dword ptr [esp + 0x34] */ 4218 eax = MEM32(edx); /* 0x47081B96: mov eax, dword ptr [edx] */ 4219 eax = (uint32_t)((int32_t)eax * (int32_t)ebx); /* 0x47081B98: imul eax, ebx */ 4220 MEM32(esp + 0x2C) = eax; /* 0x47081B9B: mov dword ptr [esp + 0x2c], eax */ 4221 goto L_47081BA5; /* 0x47081B9F: jmp 0x47081ba5 */ 4222 L_47081BA1: 4223 eax = MEM32(esp + 0x2C); /* 0x47081BA1: mov eax, dword ptr [esp + 0x2c] */ 4224 L_47081BA5: 4225 esi = ebp; /* 0x47081BA5: mov esi, ebp */ 4226 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4228 esi = esi - edi; /* 0x47081BA7: sub esi, edi */ 4229 _flag_k = FK_CMP; 4230 if (1u) _cf = (((esi) >> 0) & 1u); /* 0x47081BA9: shr esi, 1 */ 4231 if (1u) { _flag_a = recomp_flags_pack((esi >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4232 esi = esi >> 1u; /* 0x47081BA9: shr esi, 1 */ 4233 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4234 ecx = 0; /* 0x47081BAB: xor ecx, ecx */ 4235 _cf = 0; 4236 _flag_k = FK_TEST; 4237 PUSH32(esp, ecx); /* 0x47081BAD: push ecx */ 4238 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4239 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4240 esi = esi + edi; /* 0x47081BAE: add esi, edi */ 4241 _flag_k = FK_ADD; 4242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4243 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4244 eax = eax + esi; /* 0x47081BB0: add eax, esi */ 4245 _flag_k = FK_ADD; 4246 PUSH32(esp, eax); /* 0x47081BB2: push eax */ 4247 PUSH32(esp, ecx); /* 0x47081BB3: push ecx */ 4248 PUSH32(esp, eax); /* 0x47081BB4: push eax */ 4249 RECOMP_ICALL(0x470A34C0u); /* 0x47081BB5: call 0x470a34c0 */ /* not lifted */ 4250 RECOMP_FLAGS_IN(); 4251 /* cmp edi, esi */ /* 0x47081BBA: cmp edi, esi */ 4252 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4254 _flag_k = FK_CMP; 4255 if (CMP_EQ(_flag_a, _flag_b)) goto L_47081BE5; /* 0x47081BBC: je 0x47081be5 */ 4256 L_47081BBE: 4257 /* cmp edx, MEM32(esp + 0x1C) */ /* 0x47081BBE: cmp edx, dword ptr [esp + 0x1c] */ 4258 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esp + 0x1C)); 4259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4260 _flag_k = FK_CMP; 4261 if (CMP_A(_flag_a, _flag_b)) goto L_47081BD0; /* 0x47081BC2: ja 0x47081bd0 */ 4262 L_47081BC4: 4263 if (CMP_B(_flag_a, _flag_b)) goto L_47081BCC; /* 0x47081BC4: jb 0x47081bcc */ 4264 L_47081BC6: 4265 /* cmp eax, MEM32(esp + 0x18) */ /* 0x47081BC6: cmp eax, dword ptr [esp + 0x18] */ 4266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esp + 0x18)); 4267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4268 _flag_k = FK_CMP; 4269 if (CMP_A(_flag_a, _flag_b)) goto L_47081BD0; /* 0x47081BCA: ja 0x47081bd0 */ 4270 L_47081BCC: 4271 edi = esi; /* 0x47081BCC: mov edi, esi */ 4272 goto L_47081BD2; /* 0x47081BCE: jmp 0x47081bd2 */ 4273 L_47081BD0: 4274 ebp = esi; /* 0x47081BD0: mov ebp, esi */ 4275 L_47081BD2: 4276 eax = MEM32(esp + 0x10); /* 0x47081BD2: mov eax, dword ptr [esp + 0x10] */ 4277 ecx = MEM32(esp + 0x14); /* 0x47081BD6: mov ecx, dword ptr [esp + 0x14] */ 4278 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4279 eax = eax + 1; /* 0x47081BDA: inc eax */ 4280 _flag_k = FK_INC; 4281 /* cmp eax, ecx */ /* 0x47081BDB: cmp eax, ecx */ 4282 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4284 _flag_k = FK_CMP; 4285 MEM32(esp + 0x10) = eax; /* 0x47081BDD: mov dword ptr [esp + 0x10], eax */ 4286 RECOMP_BACKEDGE(); 4287 if (CMP_B(_flag_a, _flag_b)) goto L_47081BA1; /* 0x47081BE1: jb 0x47081ba1 */ 4288 L_47081BE3: 4289 goto L_47081BF9; /* 0x47081BE3: jmp 0x47081bf9 */ 4290 L_47081BE5: 4291 ecx = MEM32(esp + 0x18); /* 0x47081BE5: mov ecx, dword ptr [esp + 0x18] */ 4292 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4294 ecx = ecx - eax; /* 0x47081BE9: sub ecx, eax */ 4295 _flag_k = FK_CMP; 4296 eax = MEM32(esp + 0x1C); /* 0x47081BEB: mov eax, dword ptr [esp + 0x1c] */ 4297 { uint32_t _sa = eax, _sb = edx, _sc = _cf; /* 0x47081BEF: sbb eax, edx */ 4298 eax = _sa - _sb - _sc; 4299 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4300 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4301 MEM32(esp + 0x20) = ecx; /* 0x47081BF1: mov dword ptr [esp + 0x20], ecx */ 4302 MEM32(esp + 0x24) = eax; /* 0x47081BF5: mov dword ptr [esp + 0x24], eax */ 4303 L_47081BF9: 4304 edi = MEM32(esp + 0x34); /* 0x47081BF9: mov edi, dword ptr [esp + 0x34] */ 4305 eax = MEM32(edi); /* 0x47081BFD: mov eax, dword ptr [edi] */ 4306 eax = (uint32_t)((int32_t)eax * (int32_t)ebx); /* 0x47081BFF: imul eax, ebx */ 4307 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4308 ecx = 0; /* 0x47081C02: xor ecx, ecx */ 4309 _cf = 0; 4310 _flag_k = FK_TEST; 4311 PUSH32(esp, ecx); /* 0x47081C04: push ecx */ 4312 eax = eax + esi + 0x1; /* 0x47081C05: lea eax, [eax + esi + 1] */ 4313 PUSH32(esp, eax); /* 0x47081C09: push eax */ 4314 PUSH32(esp, ecx); /* 0x47081C0A: push ecx */ 4315 PUSH32(esp, eax); /* 0x47081C0B: push eax */ 4316 RECOMP_ICALL(0x470A34C0u); /* 0x47081C0C: call 0x470a34c0 */ /* not lifted */ 4317 RECOMP_FLAGS_IN(); 4318 ebp = MEM32(esp + 0x18); /* 0x47081C11: mov ebp, dword ptr [esp + 0x18] */ 4319 ebx = MEM32(esp + 0x1C); /* 0x47081C15: mov ebx, dword ptr [esp + 0x1c] */ 4320 ecx = MEM32(esp + 0x24); /* 0x47081C19: mov ecx, dword ptr [esp + 0x24] */ 4321 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 4322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4323 eax = eax - ebp; /* 0x47081C1D: sub eax, ebp */ 4324 _flag_k = FK_CMP; 4325 { uint32_t _sa = edx, _sb = ebx, _sc = _cf; /* 0x47081C1F: sbb edx, ebx */ 4326 edx = _sa - _sb - _sc; 4327 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4328 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4329 /* cmp edx, ecx */ /* 0x47081C21: cmp edx, ecx */ 4330 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4332 _flag_k = FK_CMP; 4333 if (CMP_A(_flag_a, _flag_b)) goto L_47081C2E; /* 0x47081C23: ja 0x47081c2e */ 4334 L_47081C25: 4335 if (CMP_B(_flag_a, _flag_b)) goto L_47081C2D; /* 0x47081C25: jb 0x47081c2d */ 4336 L_47081C27: 4337 /* cmp eax, MEM32(esp + 0x20) */ /* 0x47081C27: cmp eax, dword ptr [esp + 0x20] */ 4338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esp + 0x20)); 4339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4340 _flag_k = FK_CMP; 4341 if (CMP_AE(_flag_a, _flag_b)) goto L_47081C2E; /* 0x47081C2B: jae 0x47081c2e */ 4342 L_47081C2D: 4343 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 4344 esi = esi + 1; /* 0x47081C2D: inc esi */ 4345 _flag_k = FK_INC; 4346 L_47081C2E: 4347 MEM32(edi + 0x4) = esi; /* 0x47081C2E: mov dword ptr [edi + 4], esi */ 4348 edi = POP32_VAL(esp); /* 0x47081C31: pop edi */ 4349 esi = POP32_VAL(esp); /* 0x47081C32: pop esi */ 4350 ebp = POP32_VAL(esp); /* 0x47081C33: pop ebp */ 4351 ebx = POP32_VAL(esp); /* 0x47081C34: pop ebx */ 4352 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4353 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4354 esp = esp + 0x18u; /* 0x47081C35: add esp, 0x18 */ 4355 _flag_k = FK_ADD; 4356 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47081C38: ret */ 4357 L_47081C39: 4358 edi = POP32_VAL(esp); /* 0x47081C39: pop edi */ 4359 esi = POP32_VAL(esp); /* 0x47081C3A: pop esi */ 4360 MEM32(ebp + 0x4) = 0; /* 0x47081C3B: mov dword ptr [ebp + 4], 0 */ 4361 ebp = POP32_VAL(esp); /* 0x47081C42: pop ebp */ 4362 ebx = POP32_VAL(esp); /* 0x47081C43: pop ebx */ 4363 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4365 esp = esp + 0x18u; /* 0x47081C44: add esp, 0x18 */ 4366 _flag_k = FK_ADD; 4367 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47081C47: ret */ 4368 RECOMP_REGS_OUT(); 4369 } 4370 4371 void sub_47081C50(void) { 4372 int _fpu_cmp = 0; 4373 uint32_t _cf = 0; 4374 int _df = 1; 4375 uint32_t _flag_k = FK_NONE; 4376 uint32_t _flag_a = 0, _flag_b = 0; 4377 uint32_t _itail_tgt = 0; 4378 RECOMP_REGS_LOCALS 4379 RECOMP_ENTER(0x47081C50u); 4380 4381 L_47081C50: 4382 eax = ecx; /* 0x47081C50: mov eax, ecx */ 4383 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4384 ecx = 0; /* 0x47081C52: xor ecx, ecx */ 4385 _cf = 0; 4386 _flag_k = FK_TEST; 4387 MEM32(eax) = ecx; /* 0x47081C54: mov dword ptr [eax], ecx */ 4388 MEM32(eax + 0x8) = ecx; /* 0x47081C56: mov dword ptr [eax + 8], ecx */ 4389 MEM32(eax + 0x18) = ecx; /* 0x47081C59: mov dword ptr [eax + 0x18], ecx */ 4390 MEM32(eax + 0x28) = ecx; /* 0x47081C5C: mov dword ptr [eax + 0x28], ecx */ 4391 MEM32(eax + 0x30) = ecx; /* 0x47081C5F: mov dword ptr [eax + 0x30], ecx */ 4392 MEM32(eax + 0x38) = ecx; /* 0x47081C62: mov dword ptr [eax + 0x38], ecx */ 4393 MEM32(eax + 0x40) = ecx; /* 0x47081C65: mov dword ptr [eax + 0x40], ecx */ 4394 MEM32(eax + 0x48) = ecx; /* 0x47081C68: mov dword ptr [eax + 0x48], ecx */ 4395 MEM32(eax + 0x50) = ecx; /* 0x47081C6B: mov dword ptr [eax + 0x50], ecx */ 4396 MEM32(eax + 0x58) = ecx; /* 0x47081C6E: mov dword ptr [eax + 0x58], ecx */ 4397 MEM32(eax + 0x60) = ecx; /* 0x47081C71: mov dword ptr [eax + 0x60], ecx */ 4398 MEM32(eax + 0x4) = ecx; /* 0x47081C74: mov dword ptr [eax + 4], ecx */ 4399 MEM32(eax + 0xC) = ecx; /* 0x47081C77: mov dword ptr [eax + 0xc], ecx */ 4400 MEM32(eax + 0x10) = ecx; /* 0x47081C7A: mov dword ptr [eax + 0x10], ecx */ 4401 MEM32(eax + 0x1C) = ecx; /* 0x47081C7D: mov dword ptr [eax + 0x1c], ecx */ 4402 MEM32(eax + 0x20) = ecx; /* 0x47081C80: mov dword ptr [eax + 0x20], ecx */ 4403 MEM32(eax + 0x2C) = ecx; /* 0x47081C83: mov dword ptr [eax + 0x2c], ecx */ 4404 MEM32(eax + 0x34) = ecx; /* 0x47081C86: mov dword ptr [eax + 0x34], ecx */ 4405 MEM32(eax + 0x3C) = ecx; /* 0x47081C89: mov dword ptr [eax + 0x3c], ecx */ 4406 MEM32(eax + 0x44) = ecx; /* 0x47081C8C: mov dword ptr [eax + 0x44], ecx */ 4407 MEM32(eax + 0x4C) = ecx; /* 0x47081C8F: mov dword ptr [eax + 0x4c], ecx */ 4408 MEM32(eax + 0x54) = ecx; /* 0x47081C92: mov dword ptr [eax + 0x54], ecx */ 4409 MEM32(eax + 0x5C) = ecx; /* 0x47081C95: mov dword ptr [eax + 0x5c], ecx */ 4410 MEM32(eax + 0x64) = ecx; /* 0x47081C98: mov dword ptr [eax + 0x64], ecx */ 4411 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47081C9B: ret */ 4412 RECOMP_REGS_OUT(); 4413 } 4414 4415 void sub_47081CA0(void) { 4416 int _fpu_cmp = 0; 4417 uint32_t _cf = 0; 4418 int _df = 1; 4419 uint32_t _flag_k = FK_NONE; 4420 uint32_t _flag_a = 0, _flag_b = 0; 4421 uint32_t _itail_tgt = 0; 4422 RECOMP_REGS_LOCALS 4423 RECOMP_ENTER(0x47081CA0u); 4424 4425 L_47081CA0: 4426 PUSH32(esp, esi); /* 0x47081CA0: push esi */ 4427 esi = ecx; /* 0x47081CA1: mov esi, ecx */ 4428 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(1); 4429 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4430 MEM32(esi) = MEM32(esi) + 1; /* 0x47081CA3: add dword ptr [esi], 1 */ 4431 _flag_k = FK_ADD; 4432 ecx = MEM32(esi + 0x4); /* 0x47081CA6: mov ecx, dword ptr [esi + 4] */ 4433 { uint32_t _aa = ecx, _ab = 0, _ac = _cf; /* 0x47081CA9: adc ecx, 0 */ 4434 ecx = _aa + _ab + _ac; 4435 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 4436 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4437 MEM32(esi + 0x4) = ecx; /* 0x47081CAC: mov dword ptr [esi + 4], ecx */ 4438 /* cmp MEM32(esi), 1 */ /* 0x47081CAF: cmp dword ptr [esi], 1 */ 4439 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(1); 4440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4441 _flag_k = FK_CMP; 4442 if (CMP_NE(_flag_a, _flag_b)) goto L_47081CFD; /* 0x47081CB2: jne 0x47081cfd */ 4443 L_47081CB4: 4444 eax = ecx; /* 0x47081CB4: mov eax, ecx */ 4445 /* test eax, eax */ /* 0x47081CB6: test eax, eax */ 4446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4447 _cf = 0; 4448 _flag_k = FK_TEST; 4449 if (TEST_NZ(_flag_a, _flag_b)) goto L_47081CFD; /* 0x47081CB8: jne 0x47081cfd */ 4450 L_47081CBA: 4451 ecx = MEM32(esp + 0x14); /* 0x47081CBA: mov ecx, dword ptr [esp + 0x14] */ 4452 eax = MEM32(esp + 0x10); /* 0x47081CBE: mov eax, dword ptr [esp + 0x10] */ 4453 edx = MEM32(esi); /* 0x47081CC2: mov edx, dword ptr [esi] */ 4454 PUSH32(esp, ecx); /* 0x47081CC4: push ecx */ 4455 PUSH32(esp, eax); /* 0x47081CC5: push eax */ 4456 PUSH32(esp, ecx); /* 0x47081CC6: push ecx */ 4457 MEM32(esi + 0x8) = eax; /* 0x47081CC7: mov dword ptr [esi + 8], eax */ 4458 MEM32(esi + 0x18) = eax; /* 0x47081CCA: mov dword ptr [esi + 0x18], eax */ 4459 MEM32(esi + 0x28) = eax; /* 0x47081CCD: mov dword ptr [esi + 0x28], eax */ 4460 PUSH32(esp, eax); /* 0x47081CD0: push eax */ 4461 MEM32(esi + 0xC) = ecx; /* 0x47081CD1: mov dword ptr [esi + 0xc], ecx */ 4462 MEM32(esi + 0x10) = edx; /* 0x47081CD4: mov dword ptr [esi + 0x10], edx */ 4463 MEM32(esi + 0x1C) = ecx; /* 0x47081CD7: mov dword ptr [esi + 0x1c], ecx */ 4464 MEM32(esi + 0x20) = edx; /* 0x47081CDA: mov dword ptr [esi + 0x20], edx */ 4465 MEM32(esi + 0x2C) = ecx; /* 0x47081CDD: mov dword ptr [esi + 0x2c], ecx */ 4466 RECOMP_ICALL(0x470A34C0u); /* 0x47081CE0: call 0x470a34c0 */ /* not lifted */ 4467 RECOMP_FLAGS_IN(); 4468 ecx = MEM32(esp + 0xC); /* 0x47081CE5: mov ecx, dword ptr [esp + 0xc] */ 4469 MEM32(esi + 0x30) = eax; /* 0x47081CE9: mov dword ptr [esi + 0x30], eax */ 4470 eax = MEM32(esp + 0x8); /* 0x47081CEC: mov eax, dword ptr [esp + 8] */ 4471 MEM32(esi + 0x38) = eax; /* 0x47081CF0: mov dword ptr [esi + 0x38], eax */ 4472 MEM32(esi + 0x34) = edx; /* 0x47081CF3: mov dword ptr [esi + 0x34], edx */ 4473 MEM32(esi + 0x3C) = ecx; /* 0x47081CF6: mov dword ptr [esi + 0x3c], ecx */ 4474 esi = POP32_VAL(esp); /* 0x47081CF9: pop esi */ 4475 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47081CFA: ret 0x10 */ 4476 L_47081CFD: 4477 edx = MEM32(esi + 0xC); /* 0x47081CFD: mov edx, dword ptr [esi + 0xc] */ 4478 eax = MEM32(esp + 0x14); /* 0x47081D00: mov eax, dword ptr [esp + 0x14] */ 4479 /* cmp edx, eax */ /* 0x47081D04: cmp edx, eax */ 4480 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4482 _flag_k = FK_CMP; 4483 ecx = MEM32(esp + 0x10); /* 0x47081D06: mov ecx, dword ptr [esp + 0x10] */ 4484 if (CMP_B(_flag_a, _flag_b)) goto L_47081D20; /* 0x47081D0A: jb 0x47081d20 */ 4485 L_47081D0C: 4486 if (CMP_A(_flag_a, _flag_b)) goto L_47081D15; /* 0x47081D0C: ja 0x47081d15 */ 4487 L_47081D0E: 4488 edx = MEM32(esi + 0x8); /* 0x47081D0E: mov edx, dword ptr [esi + 8] */ 4489 /* cmp edx, ecx */ /* 0x47081D11: cmp edx, ecx */ 4490 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4492 _flag_k = FK_CMP; 4493 if (CMP_BE(_flag_a, _flag_b)) goto L_47081D20; /* 0x47081D13: jbe 0x47081d20 */ 4494 L_47081D15: 4495 edx = MEM32(esi); /* 0x47081D15: mov edx, dword ptr [esi] */ 4496 MEM32(esi + 0x8) = ecx; /* 0x47081D17: mov dword ptr [esi + 8], ecx */ 4497 MEM32(esi + 0xC) = eax; /* 0x47081D1A: mov dword ptr [esi + 0xc], eax */ 4498 MEM32(esi + 0x10) = edx; /* 0x47081D1D: mov dword ptr [esi + 0x10], edx */ 4499 L_47081D20: 4500 edx = MEM32(esi + 0x1C); /* 0x47081D20: mov edx, dword ptr [esi + 0x1c] */ 4501 /* cmp edx, eax */ /* 0x47081D23: cmp edx, eax */ 4502 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4504 _flag_k = FK_CMP; 4505 if (CMP_A(_flag_a, _flag_b)) goto L_47081D3B; /* 0x47081D25: ja 0x47081d3b */ 4506 L_47081D27: 4507 if (CMP_B(_flag_a, _flag_b)) goto L_47081D30; /* 0x47081D27: jb 0x47081d30 */ 4508 L_47081D29: 4509 edx = MEM32(esi + 0x18); /* 0x47081D29: mov edx, dword ptr [esi + 0x18] */ 4510 /* cmp edx, ecx */ /* 0x47081D2C: cmp edx, ecx */ 4511 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4513 _flag_k = FK_CMP; 4514 if (CMP_AE(_flag_a, _flag_b)) goto L_47081D3B; /* 0x47081D2E: jae 0x47081d3b */ 4515 L_47081D30: 4516 edx = MEM32(esi); /* 0x47081D30: mov edx, dword ptr [esi] */ 4517 MEM32(esi + 0x18) = ecx; /* 0x47081D32: mov dword ptr [esi + 0x18], ecx */ 4518 MEM32(esi + 0x1C) = eax; /* 0x47081D35: mov dword ptr [esi + 0x1c], eax */ 4519 MEM32(esi + 0x20) = edx; /* 0x47081D38: mov dword ptr [esi + 0x20], edx */ 4520 L_47081D3B: 4521 edx = MEM32(esi + 0x28); /* 0x47081D3B: mov edx, dword ptr [esi + 0x28] */ 4522 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4523 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4524 edx = edx + ecx; /* 0x47081D3E: add edx, ecx */ 4525 _flag_k = FK_ADD; 4526 PUSH32(esp, eax); /* 0x47081D40: push eax */ 4527 MEM32(esi + 0x28) = edx; /* 0x47081D41: mov dword ptr [esi + 0x28], edx */ 4528 edx = MEM32(esi + 0x2C); /* 0x47081D44: mov edx, dword ptr [esi + 0x2c] */ 4529 PUSH32(esp, ecx); /* 0x47081D47: push ecx */ 4530 PUSH32(esp, eax); /* 0x47081D48: push eax */ 4531 { uint32_t _aa = edx, _ab = eax, _ac = _cf; /* 0x47081D49: adc edx, eax */ 4532 edx = _aa + _ab + _ac; 4533 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 4534 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4535 PUSH32(esp, ecx); /* 0x47081D4B: push ecx */ 4536 MEM32(esi + 0x2C) = edx; /* 0x47081D4C: mov dword ptr [esi + 0x2c], edx */ 4537 RECOMP_ICALL(0x470A34C0u); /* 0x47081D4F: call 0x470a34c0 */ /* not lifted */ 4538 RECOMP_FLAGS_IN(); 4539 _flag_a = (uint32_t)(MEM32(esi + 0x30)); _flag_b = (uint32_t)(eax); 4540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4541 MEM32(esi + 0x30) = MEM32(esi + 0x30) + eax; /* 0x47081D54: add dword ptr [esi + 0x30], eax */ 4542 _flag_k = FK_ADD; 4543 eax = MEM32(esi + 0x34); /* 0x47081D57: mov eax, dword ptr [esi + 0x34] */ 4544 ecx = MEM32(esp + 0xC); /* 0x47081D5A: mov ecx, dword ptr [esp + 0xc] */ 4545 { uint32_t _aa = eax, _ab = edx, _ac = _cf; /* 0x47081D5E: adc eax, edx */ 4546 eax = _aa + _ab + _ac; 4547 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 4548 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4549 MEM32(esi + 0x34) = eax; /* 0x47081D60: mov dword ptr [esi + 0x34], eax */ 4550 eax = MEM32(esp + 0x8); /* 0x47081D63: mov eax, dword ptr [esp + 8] */ 4551 MEM32(esi + 0x38) = eax; /* 0x47081D67: mov dword ptr [esi + 0x38], eax */ 4552 MEM32(esi + 0x3C) = ecx; /* 0x47081D6A: mov dword ptr [esi + 0x3c], ecx */ 4553 esi = POP32_VAL(esp); /* 0x47081D6D: pop esi */ 4554 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47081D6E: ret 0x10 */ 4555 RECOMP_REGS_OUT(); 4556 } 4557 4558 void sub_47081D80(void) { 4559 int _fpu_cmp = 0; 4560 uint32_t _cf = 0; 4561 int _df = 1; 4562 uint32_t _flag_k = FK_NONE; 4563 uint32_t _flag_a = 0, _flag_b = 0; 4564 uint32_t _itail_tgt = 0; 4565 RECOMP_REGS_LOCALS 4566 RECOMP_ENTER(0x47081D80u); 4567 4568 L_47081D80: 4569 eax = MEM32(esp + 0x4); /* 0x47081D80: mov eax, dword ptr [esp + 4] */ 4570 PUSH32(esp, ebx); /* 0x47081D84: push ebx */ 4571 ebx = MEM32(eax + 0x4); /* 0x47081D85: mov ebx, dword ptr [eax + 4] */ 4572 PUSH32(esp, ebp); /* 0x47081D88: push ebp */ 4573 PUSH32(esp, esi); /* 0x47081D89: push esi */ 4574 PUSH32(esp, edi); /* 0x47081D8A: push edi */ 4575 edi = MEM32(eax); /* 0x47081D8B: mov edi, dword ptr [eax] */ 4576 edx = edi; /* 0x47081D8D: mov edx, edi */ 4577 _flag_a = (uint32_t)((edx | ebx)); _flag_b = (uint32_t)((edx | ebx)); 4578 edx = edx | ebx; /* 0x47081D8F: or edx, ebx */ 4579 _cf = 0; 4580 _flag_k = FK_TEST; 4581 if (TEST_Z(_flag_a, _flag_b)) goto L_47081E6E; /* 0x47081D91: je 0x47081e6e */ 4582 L_47081D97: 4583 edx = MEM32(ecx); /* 0x47081D97: mov edx, dword ptr [ecx] */ 4584 esi = MEM32(ecx + 0x4); /* 0x47081D99: mov esi, dword ptr [ecx + 4] */ 4585 ebp = edx; /* 0x47081D9C: mov ebp, edx */ 4586 _flag_a = (uint32_t)((ebp | esi)); _flag_b = (uint32_t)((ebp | esi)); 4587 ebp = ebp | esi; /* 0x47081D9E: or ebp, esi */ 4588 _cf = 0; 4589 _flag_k = FK_TEST; 4590 if (TEST_NZ(_flag_a, _flag_b)) goto L_47081DEA; /* 0x47081DA0: jne 0x47081dea */ 4591 L_47081DA2: 4592 MEM32(ecx) = edi; /* 0x47081DA2: mov dword ptr [ecx], edi */ 4593 MEM32(ecx + 0x4) = ebx; /* 0x47081DA4: mov dword ptr [ecx + 4], ebx */ 4594 edx = MEM32(eax + 0x8); /* 0x47081DA7: mov edx, dword ptr [eax + 8] */ 4595 MEM32(ecx + 0x8) = edx; /* 0x47081DAA: mov dword ptr [ecx + 8], edx */ 4596 edx = MEM32(eax + 0xC); /* 0x47081DAD: mov edx, dword ptr [eax + 0xc] */ 4597 MEM32(ecx + 0xC) = edx; /* 0x47081DB0: mov dword ptr [ecx + 0xc], edx */ 4598 edx = MEM32(eax + 0x18); /* 0x47081DB3: mov edx, dword ptr [eax + 0x18] */ 4599 MEM32(ecx + 0x18) = edx; /* 0x47081DB6: mov dword ptr [ecx + 0x18], edx */ 4600 edx = MEM32(eax + 0x1C); /* 0x47081DB9: mov edx, dword ptr [eax + 0x1c] */ 4601 MEM32(ecx + 0x1C) = edx; /* 0x47081DBC: mov dword ptr [ecx + 0x1c], edx */ 4602 edx = MEM32(eax + 0x28); /* 0x47081DBF: mov edx, dword ptr [eax + 0x28] */ 4603 MEM32(ecx + 0x28) = edx; /* 0x47081DC2: mov dword ptr [ecx + 0x28], edx */ 4604 edx = MEM32(eax + 0x2C); /* 0x47081DC5: mov edx, dword ptr [eax + 0x2c] */ 4605 MEM32(ecx + 0x2C) = edx; /* 0x47081DC8: mov dword ptr [ecx + 0x2c], edx */ 4606 edx = MEM32(eax + 0x30); /* 0x47081DCB: mov edx, dword ptr [eax + 0x30] */ 4607 MEM32(ecx + 0x30) = edx; /* 0x47081DCE: mov dword ptr [ecx + 0x30], edx */ 4608 edx = MEM32(eax + 0x34); /* 0x47081DD1: mov edx, dword ptr [eax + 0x34] */ 4609 edi = POP32_VAL(esp); /* 0x47081DD4: pop edi */ 4610 MEM32(ecx + 0x34) = edx; /* 0x47081DD5: mov dword ptr [ecx + 0x34], edx */ 4611 edx = MEM32(eax + 0x38); /* 0x47081DD8: mov edx, dword ptr [eax + 0x38] */ 4612 esi = POP32_VAL(esp); /* 0x47081DDB: pop esi */ 4613 MEM32(ecx + 0x38) = edx; /* 0x47081DDC: mov dword ptr [ecx + 0x38], edx */ 4614 eax = MEM32(eax + 0x3C); /* 0x47081DDF: mov eax, dword ptr [eax + 0x3c] */ 4615 ebp = POP32_VAL(esp); /* 0x47081DE2: pop ebp */ 4616 MEM32(ecx + 0x3C) = eax; /* 0x47081DE3: mov dword ptr [ecx + 0x3c], eax */ 4617 ebx = POP32_VAL(esp); /* 0x47081DE6: pop ebx */ 4618 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47081DE7: ret 4 */ 4619 L_47081DEA: 4620 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 4621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4622 edx = edx + edi; /* 0x47081DEA: add edx, edi */ 4623 _flag_k = FK_ADD; 4624 edi = MEM32(ecx + 0xC); /* 0x47081DEC: mov edi, dword ptr [ecx + 0xc] */ 4625 { uint32_t _aa = esi, _ab = ebx, _ac = _cf; /* 0x47081DEF: adc esi, ebx */ 4626 esi = _aa + _ab + _ac; 4627 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 4628 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4629 MEM32(ecx) = edx; /* 0x47081DF1: mov dword ptr [ecx], edx */ 4630 MEM32(ecx + 0x4) = esi; /* 0x47081DF3: mov dword ptr [ecx + 4], esi */ 4631 edx = MEM32(eax + 0xC); /* 0x47081DF6: mov edx, dword ptr [eax + 0xc] */ 4632 /* cmp edi, edx */ /* 0x47081DF9: cmp edi, edx */ 4633 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 4634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4635 _flag_k = FK_CMP; 4636 esi = MEM32(eax + 0x8); /* 0x47081DFB: mov esi, dword ptr [eax + 8] */ 4637 if (CMP_B(_flag_a, _flag_b)) goto L_47081E0F; /* 0x47081DFE: jb 0x47081e0f */ 4638 L_47081E00: 4639 if (CMP_A(_flag_a, _flag_b)) goto L_47081E09; /* 0x47081E00: ja 0x47081e09 */ 4640 L_47081E02: 4641 edi = MEM32(ecx + 0x8); /* 0x47081E02: mov edi, dword ptr [ecx + 8] */ 4642 /* cmp edi, esi */ /* 0x47081E05: cmp edi, esi */ 4643 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4645 _flag_k = FK_CMP; 4646 if (CMP_BE(_flag_a, _flag_b)) goto L_47081E0F; /* 0x47081E07: jbe 0x47081e0f */ 4647 L_47081E09: 4648 MEM32(ecx + 0x8) = esi; /* 0x47081E09: mov dword ptr [ecx + 8], esi */ 4649 MEM32(ecx + 0xC) = edx; /* 0x47081E0C: mov dword ptr [ecx + 0xc], edx */ 4650 L_47081E0F: 4651 edx = MEM32(eax + 0x1C); /* 0x47081E0F: mov edx, dword ptr [eax + 0x1c] */ 4652 edi = MEM32(ecx + 0x1C); /* 0x47081E12: mov edi, dword ptr [ecx + 0x1c] */ 4653 /* cmp edi, edx */ /* 0x47081E15: cmp edi, edx */ 4654 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 4655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4656 _flag_k = FK_CMP; 4657 esi = MEM32(eax + 0x18); /* 0x47081E17: mov esi, dword ptr [eax + 0x18] */ 4658 if (CMP_A(_flag_a, _flag_b)) goto L_47081E2B; /* 0x47081E1A: ja 0x47081e2b */ 4659 L_47081E1C: 4660 if (CMP_B(_flag_a, _flag_b)) goto L_47081E25; /* 0x47081E1C: jb 0x47081e25 */ 4661 L_47081E1E: 4662 edi = MEM32(ecx + 0x18); /* 0x47081E1E: mov edi, dword ptr [ecx + 0x18] */ 4663 /* cmp edi, esi */ /* 0x47081E21: cmp edi, esi */ 4664 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4666 _flag_k = FK_CMP; 4667 if (CMP_AE(_flag_a, _flag_b)) goto L_47081E2B; /* 0x47081E23: jae 0x47081e2b */ 4668 L_47081E25: 4669 MEM32(ecx + 0x18) = esi; /* 0x47081E25: mov dword ptr [ecx + 0x18], esi */ 4670 MEM32(ecx + 0x1C) = edx; /* 0x47081E28: mov dword ptr [ecx + 0x1c], edx */ 4671 L_47081E2B: 4672 edx = MEM32(eax + 0x28); /* 0x47081E2B: mov edx, dword ptr [eax + 0x28] */ 4673 esi = MEM32(eax + 0x2C); /* 0x47081E2E: mov esi, dword ptr [eax + 0x2c] */ 4674 edi = MEM32(ecx + 0x28); /* 0x47081E31: mov edi, dword ptr [ecx + 0x28] */ 4675 ebp = MEM32(ecx + 0x30); /* 0x47081E34: mov ebp, dword ptr [ecx + 0x30] */ 4676 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 4677 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4678 edi = edi + edx; /* 0x47081E37: add edi, edx */ 4679 _flag_k = FK_ADD; 4680 MEM32(ecx + 0x28) = edi; /* 0x47081E39: mov dword ptr [ecx + 0x28], edi */ 4681 { uint32_t _aa = MEM32(ecx + 0x2C), _ab = esi, _ac = _cf; /* 0x47081E3C: adc dword ptr [ecx + 0x2c], esi */ 4682 MEM32(ecx + 0x2C) = _aa + _ab + _ac; 4683 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 4684 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4685 edx = MEM32(eax + 0x30); /* 0x47081E3F: mov edx, dword ptr [eax + 0x30] */ 4686 esi = MEM32(eax + 0x34); /* 0x47081E42: mov esi, dword ptr [eax + 0x34] */ 4687 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(edx); 4688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4689 ebp = ebp + edx; /* 0x47081E45: add ebp, edx */ 4690 _flag_k = FK_ADD; 4691 MEM32(ecx + 0x30) = ebp; /* 0x47081E47: mov dword ptr [ecx + 0x30], ebp */ 4692 ebx = MEM32(ecx + 0x34); /* 0x47081E4A: mov ebx, dword ptr [ecx + 0x34] */ 4693 { uint32_t _aa = ebx, _ab = esi, _ac = _cf; /* 0x47081E4D: adc ebx, esi */ 4694 ebx = _aa + _ab + _ac; 4695 _flag_a = recomp_flags_adc(_aa, _ab, _ac); _flag_b = 0; 4696 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4697 esi = MEM32(ecx + 0x3C); /* 0x47081E4F: mov esi, dword ptr [ecx + 0x3c] */ 4698 MEM32(ecx + 0x34) = ebx; /* 0x47081E52: mov dword ptr [ecx + 0x34], ebx */ 4699 edx = MEM32(eax + 0x38); /* 0x47081E55: mov edx, dword ptr [eax + 0x38] */ 4700 eax = MEM32(eax + 0x3C); /* 0x47081E58: mov eax, dword ptr [eax + 0x3c] */ 4701 /* cmp esi, eax */ /* 0x47081E5B: cmp esi, eax */ 4702 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4704 _flag_k = FK_CMP; 4705 if (CMP_A(_flag_a, _flag_b)) goto L_47081E6E; /* 0x47081E5D: ja 0x47081e6e */ 4706 L_47081E5F: 4707 if (CMP_B(_flag_a, _flag_b)) goto L_47081E68; /* 0x47081E5F: jb 0x47081e68 */ 4708 L_47081E61: 4709 esi = MEM32(ecx + 0x38); /* 0x47081E61: mov esi, dword ptr [ecx + 0x38] */ 4710 /* cmp esi, edx */ /* 0x47081E64: cmp esi, edx */ 4711 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 4712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4713 _flag_k = FK_CMP; 4714 if (CMP_AE(_flag_a, _flag_b)) goto L_47081E6E; /* 0x47081E66: jae 0x47081e6e */ 4715 L_47081E68: 4716 MEM32(ecx + 0x38) = edx; /* 0x47081E68: mov dword ptr [ecx + 0x38], edx */ 4717 MEM32(ecx + 0x3C) = eax; /* 0x47081E6B: mov dword ptr [ecx + 0x3c], eax */ 4718 L_47081E6E: 4719 edi = POP32_VAL(esp); /* 0x47081E6E: pop edi */ 4720 esi = POP32_VAL(esp); /* 0x47081E6F: pop esi */ 4721 ebp = POP32_VAL(esp); /* 0x47081E70: pop ebp */ 4722 ebx = POP32_VAL(esp); /* 0x47081E71: pop ebx */ 4723 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47081E72: ret 4 */ 4724 RECOMP_REGS_OUT(); 4725 } 4726 4727 void sub_47081E80(void) { 4728 int _fpu_cmp = 0; 4729 uint32_t _cf = 0; 4730 int _df = 1; 4731 uint32_t _flag_k = FK_NONE; 4732 uint32_t _flag_a = 0, _flag_b = 0; 4733 uint32_t _itail_tgt = 0; 4734 RECOMP_REGS_LOCALS 4735 RECOMP_ENTER(0x47081E80u); 4736 4737 L_47081E80: 4738 PUSH32(esp, ebp); /* 0x47081E80: push ebp */ 4739 ebp = esp; /* 0x47081E81: mov ebp, esp */ 4740 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xFFFFFFF8u); 4741 esp = esp & 0xFFFFFFF8u; /* 0x47081E83: and esp, 0xfffffff8 */ 4742 _cf = 0; 4743 _flag_k = FK_TEST; 4744 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 4745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4746 esp = esp - 0x2Cu; /* 0x47081E86: sub esp, 0x2c */ 4747 _flag_k = FK_CMP; 4748 PUSH32(esp, ebx); /* 0x47081E89: push ebx */ 4749 PUSH32(esp, esi); /* 0x47081E8A: push esi */ 4750 esi = ecx; /* 0x47081E8B: mov esi, ecx */ 4751 eax = MEM32(esi); /* 0x47081E8D: mov eax, dword ptr [esi] */ 4752 ecx = MEM32(esi + 0x4); /* 0x47081E8F: mov ecx, dword ptr [esi + 4] */ 4753 edx = eax; /* 0x47081E92: mov edx, eax */ 4754 _flag_a = (uint32_t)((edx | ecx)); _flag_b = (uint32_t)((edx | ecx)); 4755 edx = edx | ecx; /* 0x47081E94: or edx, ecx */ 4756 _cf = 0; 4757 _flag_k = FK_TEST; 4758 PUSH32(esp, edi); /* 0x47081E96: push edi */ 4759 if (TEST_NZ(_flag_a, _flag_b)) goto L_47081EFF; /* 0x47081E97: jne 0x47081eff */ 4760 L_47081E99: 4761 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47081E99: call dword ptr [0x470ac150] */ 4762 RECOMP_FLAGS_IN(); 4763 edi = eax; /* 0x47081E9F: mov edi, eax */ 4764 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47081EA1: call dword ptr [0x470ac3c8] */ 4765 RECOMP_FLAGS_IN(); 4766 eax = MEM32(eax); /* 0x47081EA7: mov eax, dword ptr [eax] */ 4767 /* test eax, eax */ /* 0x47081EA9: test eax, eax */ 4768 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4769 _cf = 0; 4770 _flag_k = FK_TEST; 4771 if (TEST_Z(_flag_a, _flag_b)) goto L_47081EAF; /* 0x47081EAB: je 0x47081eaf */ 4772 L_47081EAD: 4773 edi = eax; /* 0x47081EAD: mov edi, eax */ 4774 L_47081EAF: 4775 RECOMP_ICALL(0x47039020u); /* 0x47081EAF: call 0x47039020 */ /* not lifted */ 4776 RECOMP_FLAGS_IN(); 4777 esi = eax; /* 0x47081EB4: mov esi, eax */ 4778 ecx = esi; /* 0x47081EB6: mov ecx, esi */ 4779 RECOMP_ICALL(0x4703B210u); /* 0x47081EB8: call 0x4703b210 */ /* not lifted */ 4780 RECOMP_FLAGS_IN(); 4781 PUSH32(esp, eax); /* 0x47081EBD: push eax */ 4782 ecx = esi; /* 0x47081EBE: mov ecx, esi */ 4783 RECOMP_ICALL(0x4703B240u); /* 0x47081EC0: call 0x4703b240 */ /* not lifted */ 4784 RECOMP_FLAGS_IN(); 4785 PUSH32(esp, eax); /* 0x47081EC5: push eax */ 4786 ecx = esi; /* 0x47081EC6: mov ecx, esi */ 4787 RECOMP_ICALL(0x4703B080u); /* 0x47081EC8: call 0x4703b080 */ /* not lifted */ 4788 RECOMP_FLAGS_IN(); 4789 PUSH32(esp, eax); /* 0x47081ECD: push eax */ 4790 PUSH32(esp, edi); /* 0x47081ECE: push edi */ 4791 PUSH32(esp, 0); /* 0x47081ECF: push 0 */ 4792 PUSH32(esp, 0x231u); /* 0x47081ED1: push 0x231 */ 4793 PUSH32(esp, 0x4710B68Cu); /* 0x47081ED6: push 0x4710b68c */ 4794 ecx = esi; /* 0x47081EDB: mov ecx, esi */ 4795 RECOMP_ICALL(0x4703A340u); /* 0x47081EDD: call 0x4703a340 */ /* not lifted */ 4796 RECOMP_FLAGS_IN(); 4797 eax = MEM32(ebp + 0x8); /* 0x47081EE2: mov eax, dword ptr [ebp + 8] */ 4798 PUSH32(esp, eax); /* 0x47081EE5: push eax */ 4799 PUSH32(esp, 0x4710B674u); /* 0x47081EE6: push 0x4710b674 */ 4800 PUSH32(esp, 4); /* 0x47081EEB: push 4 */ 4801 PUSH32(esp, esi); /* 0x47081EED: push esi */ 4802 RECOMP_ICALL(0x47039830u); /* 0x47081EEE: call 0x47039830 */ /* not lifted */ 4803 RECOMP_FLAGS_IN(); 4804 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4805 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4806 esp = esp + 0x10u; /* 0x47081EF3: add esp, 0x10 */ 4807 _flag_k = FK_ADD; 4808 edi = POP32_VAL(esp); /* 0x47081EF6: pop edi */ 4809 esi = POP32_VAL(esp); /* 0x47081EF7: pop esi */ 4810 ebx = POP32_VAL(esp); /* 0x47081EF8: pop ebx */ 4811 esp = ebp; /* 0x47081EF9: mov esp, ebp */ 4812 ebp = POP32_VAL(esp); /* 0x47081EFB: pop ebp */ 4813 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47081EFC: ret 8 */ 4814 L_47081EFF: 4815 edx = MEM32(esi + 0x28); /* 0x47081EFF: mov edx, dword ptr [esi + 0x28] */ 4816 PUSH32(esp, ecx); /* 0x47081F02: push ecx */ 4817 ecx = MEM32(esi + 0x2C); /* 0x47081F03: mov ecx, dword ptr [esi + 0x2c] */ 4818 PUSH32(esp, eax); /* 0x47081F06: push eax */ 4819 PUSH32(esp, ecx); /* 0x47081F07: push ecx */ 4820 PUSH32(esp, edx); /* 0x47081F08: push edx */ 4821 RECOMP_ICALL(0x470A3500u); /* 0x47081F09: call 0x470a3500 */ /* not lifted */ 4822 RECOMP_FLAGS_IN(); 4823 ebx = MEM32(ebp + 0xC); /* 0x47081F0E: mov ebx, dword ptr [ebp + 0xc] */ 4824 edi = eax; /* 0x47081F11: mov edi, eax */ 4825 eax = MEM32(esi + 0x8); /* 0x47081F13: mov eax, dword ptr [esi + 8] */ 4826 MEM32(esp + 0x34) = edx; /* 0x47081F16: mov dword ptr [esp + 0x34], edx */ 4827 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4828 edx = 0; /* 0x47081F1A: xor edx, edx */ 4829 _cf = 0; 4830 _flag_k = FK_TEST; 4831 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ebx; /* 0x47081F1C: div ebx */ 4832 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 4833 else { eax = 0; edx = 0; } } 4834 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4835 edx = 0; /* 0x47081F1E: xor edx, edx */ 4836 _cf = 0; 4837 _flag_k = FK_TEST; 4838 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4839 ecx = 0; /* 0x47081F20: xor ecx, ecx */ 4840 _cf = 0; 4841 _flag_k = FK_TEST; 4842 MEM32(esp + 0x14) = ecx; /* 0x47081F22: mov dword ptr [esp + 0x14], ecx */ 4843 MEM32(esp + 0x10) = eax; /* 0x47081F26: mov dword ptr [esp + 0x10], eax */ 4844 eax = MEM32(esi + 0x18); /* 0x47081F2A: mov eax, dword ptr [esi + 0x18] */ 4845 fp_push_i64((int64_t)MEM64(esp + 0x10)); /* 0x47081F2D: fild qword ptr [esp + 0x10] */ 4846 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ebx; /* 0x47081F31: div ebx */ 4847 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 4848 else { eax = 0; edx = 0; } } 4849 { double _v = fp_pop(); *(double*)ADDR(esp + 0x30) = _v; } /* 0x47081F33: fstp qword ptr [esp + 0x30] */ 4850 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4851 edx = 0; /* 0x47081F37: xor edx, edx */ 4852 _cf = 0; 4853 _flag_k = FK_TEST; 4854 MEM32(esp + 0x14) = ecx; /* 0x47081F39: mov dword ptr [esp + 0x14], ecx */ 4855 MEM32(esp + 0x10) = eax; /* 0x47081F3D: mov dword ptr [esp + 0x10], eax */ 4856 eax = edi; /* 0x47081F41: mov eax, edi */ 4857 fp_push_i64((int64_t)MEM64(esp + 0x10)); /* 0x47081F43: fild qword ptr [esp + 0x10] */ 4858 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ebx; /* 0x47081F47: div ebx */ 4859 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 4860 else { eax = 0; edx = 0; } } 4861 { double _v = fp_pop(); *(double*)ADDR(esp + 0x20) = _v; } /* 0x47081F49: fstp qword ptr [esp + 0x20] */ 4862 MEM32(esp + 0x14) = ecx; /* 0x47081F4D: mov dword ptr [esp + 0x14], ecx */ 4863 ecx = MEM32(esi + 0x30); /* 0x47081F51: mov ecx, dword ptr [esi + 0x30] */ 4864 MEM32(esp + 0x10) = eax; /* 0x47081F54: mov dword ptr [esp + 0x10], eax */ 4865 eax = MEM32(esi + 0x4); /* 0x47081F58: mov eax, dword ptr [esi + 4] */ 4866 fp_push_i64((int64_t)MEM64(esp + 0x10)); /* 0x47081F5B: fild qword ptr [esp + 0x10] */ 4867 PUSH32(esp, eax); /* 0x47081F5F: push eax */ 4868 eax = MEM32(esi); /* 0x47081F60: mov eax, dword ptr [esi] */ 4869 PUSH32(esp, eax); /* 0x47081F62: push eax */ 4870 { double _v = fp_pop(); *(double*)ADDR(esp + 0x30) = _v; } /* 0x47081F63: fstp qword ptr [esp + 0x30] */ 4871 eax = MEM32(esi + 0x34); /* 0x47081F67: mov eax, dword ptr [esi + 0x34] */ 4872 PUSH32(esp, eax); /* 0x47081F6A: push eax */ 4873 PUSH32(esp, ecx); /* 0x47081F6B: push ecx */ 4874 RECOMP_ICALL(0x470A3500u); /* 0x47081F6C: call 0x470a3500 */ /* not lifted */ 4875 RECOMP_FLAGS_IN(); 4876 edx = edi; /* 0x47081F71: mov edx, edi */ 4877 edx = (uint32_t)((int32_t)edx * (int32_t)edi); /* 0x47081F73: imul edx, edi */ 4878 ecx = ebx; /* 0x47081F76: mov ecx, ebx */ 4879 ecx = (uint32_t)((int32_t)ecx * (int32_t)ebx); /* 0x47081F78: imul ecx, ebx */ 4880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4882 eax = eax - edx; /* 0x47081F7B: sub eax, edx */ 4883 _flag_k = FK_CMP; 4884 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4885 edx = 0; /* 0x47081F7D: xor edx, edx */ 4886 _cf = 0; 4887 _flag_k = FK_TEST; 4888 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x47081F7F: div ecx */ 4889 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 4890 else { eax = 0; edx = 0; } } 4891 MEM32(esp + 0x14) = 0; /* 0x47081F81: mov dword ptr [esp + 0x14], 0 */ 4892 MEM32(esp + 0x10) = eax; /* 0x47081F89: mov dword ptr [esp + 0x10], eax */ 4893 fp_push_i64((int64_t)MEM64(esp + 0x10)); /* 0x47081F8D: fild qword ptr [esp + 0x10] */ 4894 { double _v = fp_pop(); *(double*)ADDR(esp + 0x18) = _v; } /* 0x47081F91: fstp qword ptr [esp + 0x18] */ 4895 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47081F95: call dword ptr [0x470ac150] */ 4896 RECOMP_FLAGS_IN(); 4897 edi = eax; /* 0x47081F9B: mov edi, eax */ 4898 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47081F9D: call dword ptr [0x470ac3c8] */ 4899 RECOMP_FLAGS_IN(); 4900 eax = MEM32(eax); /* 0x47081FA3: mov eax, dword ptr [eax] */ 4901 /* test eax, eax */ /* 0x47081FA5: test eax, eax */ 4902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4903 _cf = 0; 4904 _flag_k = FK_TEST; 4905 MEM32(esp + 0x10) = edi; /* 0x47081FA7: mov dword ptr [esp + 0x10], edi */ 4906 if (TEST_Z(_flag_a, _flag_b)) goto L_47081FB1; /* 0x47081FAB: je 0x47081fb1 */ 4907 L_47081FAD: 4908 MEM32(esp + 0x10) = eax; /* 0x47081FAD: mov dword ptr [esp + 0x10], eax */ 4909 L_47081FB1: 4910 RECOMP_ICALL(0x47039020u); /* 0x47081FB1: call 0x47039020 */ /* not lifted */ 4911 RECOMP_FLAGS_IN(); 4912 edi = eax; /* 0x47081FB6: mov edi, eax */ 4913 ecx = edi; /* 0x47081FB8: mov ecx, edi */ 4914 RECOMP_ICALL(0x4703B210u); /* 0x47081FBA: call 0x4703b210 */ /* not lifted */ 4915 RECOMP_FLAGS_IN(); 4916 PUSH32(esp, eax); /* 0x47081FBF: push eax */ 4917 ecx = edi; /* 0x47081FC0: mov ecx, edi */ 4918 RECOMP_ICALL(0x4703B240u); /* 0x47081FC2: call 0x4703b240 */ /* not lifted */ 4919 RECOMP_FLAGS_IN(); 4920 PUSH32(esp, eax); /* 0x47081FC7: push eax */ 4921 ecx = edi; /* 0x47081FC8: mov ecx, edi */ 4922 RECOMP_ICALL(0x4703B080u); /* 0x47081FCA: call 0x4703b080 */ /* not lifted */ 4923 RECOMP_FLAGS_IN(); 4924 edx = MEM32(esp + 0x18); /* 0x47081FCF: mov edx, dword ptr [esp + 0x18] */ 4925 PUSH32(esp, eax); /* 0x47081FD3: push eax */ 4926 PUSH32(esp, edx); /* 0x47081FD4: push edx */ 4927 PUSH32(esp, 0); /* 0x47081FD5: push 0 */ 4928 PUSH32(esp, 0x24Fu); /* 0x47081FD7: push 0x24f */ 4929 PUSH32(esp, 0x4710B68Cu); /* 0x47081FDC: push 0x4710b68c */ 4930 ecx = edi; /* 0x47081FE1: mov ecx, edi */ 4931 RECOMP_ICALL(0x4703A340u); /* 0x47081FE3: call 0x4703a340 */ /* not lifted */ 4932 RECOMP_FLAGS_IN(); 4933 eax = MEM32(esp + 0x1C); /* 0x47081FE8: mov eax, dword ptr [esp + 0x1c] */ 4934 ecx = MEM32(esp + 0x18); /* 0x47081FEC: mov ecx, dword ptr [esp + 0x18] */ 4935 edx = MEM32(esi + 0x20); /* 0x47081FF0: mov edx, dword ptr [esi + 0x20] */ 4936 PUSH32(esp, eax); /* 0x47081FF3: push eax */ 4937 eax = MEM32(esp + 0x28); /* 0x47081FF4: mov eax, dword ptr [esp + 0x28] */ 4938 PUSH32(esp, ecx); /* 0x47081FF8: push ecx */ 4939 ecx = MEM32(esp + 0x28); /* 0x47081FF9: mov ecx, dword ptr [esp + 0x28] */ 4940 PUSH32(esp, edx); /* 0x47081FFD: push edx */ 4941 edx = MEM32(esp + 0x38); /* 0x47081FFE: mov edx, dword ptr [esp + 0x38] */ 4942 PUSH32(esp, eax); /* 0x47082002: push eax */ 4943 eax = MEM32(esp + 0x38); /* 0x47082003: mov eax, dword ptr [esp + 0x38] */ 4944 PUSH32(esp, ecx); /* 0x47082007: push ecx */ 4945 ecx = MEM32(esi + 0x10); /* 0x47082008: mov ecx, dword ptr [esi + 0x10] */ 4946 PUSH32(esp, edx); /* 0x4708200B: push edx */ 4947 edx = MEM32(esp + 0x4C); /* 0x4708200C: mov edx, dword ptr [esp + 0x4c] */ 4948 PUSH32(esp, eax); /* 0x47082010: push eax */ 4949 eax = MEM32(esp + 0x4C); /* 0x47082011: mov eax, dword ptr [esp + 0x4c] */ 4950 PUSH32(esp, ecx); /* 0x47082015: push ecx */ 4951 ecx = MEM32(ebp + 0x8); /* 0x47082016: mov ecx, dword ptr [ebp + 8] */ 4952 PUSH32(esp, edx); /* 0x47082019: push edx */ 4953 PUSH32(esp, eax); /* 0x4708201A: push eax */ 4954 PUSH32(esp, ecx); /* 0x4708201B: push ecx */ 4955 PUSH32(esp, 0x4710B634u); /* 0x4708201C: push 0x4710b634 */ 4956 PUSH32(esp, 4); /* 0x47082021: push 4 */ 4957 PUSH32(esp, edi); /* 0x47082023: push edi */ 4958 RECOMP_ICALL(0x47039830u); /* 0x47082024: call 0x47039830 */ /* not lifted */ 4959 RECOMP_FLAGS_IN(); 4960 edx = MEM32(esi); /* 0x47082029: mov edx, dword ptr [esi] */ 4961 eax = MEM32(esi + 0x3C); /* 0x4708202B: mov eax, dword ptr [esi + 0x3c] */ 4962 ecx = MEM32(esi + 0x38); /* 0x4708202E: mov ecx, dword ptr [esi + 0x38] */ 4963 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 4964 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4965 esp = esp + 0x38u; /* 0x47082031: add esp, 0x38 */ 4966 _flag_k = FK_ADD; 4967 PUSH32(esp, 0); /* 0x47082034: push 0 */ 4968 MEM32(esp + 0x34) = edx; /* 0x47082036: mov dword ptr [esp + 0x34], edx */ 4969 PUSH32(esp, ebx); /* 0x4708203A: push ebx */ 4970 MEM32(esp + 0x3C) = 0; /* 0x4708203B: mov dword ptr [esp + 0x3c], 0 */ 4971 fp_push_i64((int64_t)MEM64(esp + 0x38)); /* 0x47082043: fild qword ptr [esp + 0x38] */ 4972 PUSH32(esp, eax); /* 0x47082047: push eax */ 4973 PUSH32(esp, ecx); /* 0x47082048: push ecx */ 4974 { double _v = fp_pop(); *(double*)ADDR(esp + 0x38) = _v; } /* 0x47082049: fstp qword ptr [esp + 0x38] */ 4975 RECOMP_ICALL(0x470A3500u); /* 0x4708204D: call 0x470a3500 */ /* not lifted */ 4976 RECOMP_FLAGS_IN(); 4977 MEM32(esp + 0x30) = eax; /* 0x47082052: mov dword ptr [esp + 0x30], eax */ 4978 MEM32(esp + 0x34) = edx; /* 0x47082056: mov dword ptr [esp + 0x34], edx */ 4979 fp_push_i64((int64_t)MEM64(esp + 0x30)); /* 0x4708205A: fild qword ptr [esp + 0x30] */ 4980 _st[0] *= *(double*)ADDR(0x470AEDB8); /* 0x4708205E: fmul qword ptr [0x470aedb8] */ 4981 _st[0] = *(double*)ADDR(esp + 0x28) / _st[0]; /* 0x47082064: fdivr qword ptr [esp + 0x28] */ 4982 { double _v = fp_pop(); *(double*)ADDR(esp + 0x30) = _v; } /* 0x47082068: fstp qword ptr [esp + 0x30] */ 4983 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4708206C: call dword ptr [0x470ac150] */ 4984 RECOMP_FLAGS_IN(); 4985 esi = eax; /* 0x47082072: mov esi, eax */ 4986 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47082074: call dword ptr [0x470ac3c8] */ 4987 RECOMP_FLAGS_IN(); 4988 eax = MEM32(eax); /* 0x4708207A: mov eax, dword ptr [eax] */ 4989 /* test eax, eax */ /* 0x4708207C: test eax, eax */ 4990 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4991 _cf = 0; 4992 _flag_k = FK_TEST; 4993 edi = esi; /* 0x4708207E: mov edi, esi */ 4994 if (TEST_Z(_flag_a, _flag_b)) goto L_47082084; /* 0x47082080: je 0x47082084 */ 4995 L_47082082: 4996 edi = eax; /* 0x47082082: mov edi, eax */ 4997 L_47082084: 4998 RECOMP_ICALL(0x47039020u); /* 0x47082084: call 0x47039020 */ /* not lifted */ 4999 RECOMP_FLAGS_IN(); 5000 esi = eax; /* 0x47082089: mov esi, eax */ 5001 ecx = esi; /* 0x4708208B: mov ecx, esi */ 5002 RECOMP_ICALL(0x4703B210u); /* 0x4708208D: call 0x4703b210 */ /* not lifted */ 5003 RECOMP_FLAGS_IN(); 5004 PUSH32(esp, eax); /* 0x47082092: push eax */ 5005 ecx = esi; /* 0x47082093: mov ecx, esi */ 5006 RECOMP_ICALL(0x4703B240u); /* 0x47082095: call 0x4703b240 */ /* not lifted */ 5007 RECOMP_FLAGS_IN(); 5008 PUSH32(esp, eax); /* 0x4708209A: push eax */ 5009 ecx = esi; /* 0x4708209B: mov ecx, esi */ 5010 RECOMP_ICALL(0x4703B080u); /* 0x4708209D: call 0x4703b080 */ /* not lifted */ 5011 RECOMP_FLAGS_IN(); 5012 PUSH32(esp, eax); /* 0x470820A2: push eax */ 5013 PUSH32(esp, edi); /* 0x470820A3: push edi */ 5014 PUSH32(esp, 0); /* 0x470820A4: push 0 */ 5015 PUSH32(esp, 0x25Du); /* 0x470820A6: push 0x25d */ 5016 PUSH32(esp, 0x4710B68Cu); /* 0x470820AB: push 0x4710b68c */ 5017 ecx = esi; /* 0x470820B0: mov ecx, esi */ 5018 RECOMP_ICALL(0x4703A340u); /* 0x470820B2: call 0x4703a340 */ /* not lifted */ 5019 RECOMP_FLAGS_IN(); 5020 edx = MEM32(esp + 0x34); /* 0x470820B7: mov edx, dword ptr [esp + 0x34] */ 5021 eax = MEM32(esp + 0x30); /* 0x470820BB: mov eax, dword ptr [esp + 0x30] */ 5022 ecx = MEM32(ebp + 0x8); /* 0x470820BF: mov ecx, dword ptr [ebp + 8] */ 5023 PUSH32(esp, edx); /* 0x470820C2: push edx */ 5024 PUSH32(esp, eax); /* 0x470820C3: push eax */ 5025 PUSH32(esp, ecx); /* 0x470820C4: push ecx */ 5026 PUSH32(esp, 0x4710B60Cu); /* 0x470820C5: push 0x4710b60c */ 5027 PUSH32(esp, 4); /* 0x470820CA: push 4 */ 5028 PUSH32(esp, esi); /* 0x470820CC: push esi */ 5029 RECOMP_ICALL(0x47039830u); /* 0x470820CD: call 0x47039830 */ /* not lifted */ 5030 RECOMP_FLAGS_IN(); 5031 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 5032 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5033 esp = esp + 0x18u; /* 0x470820D2: add esp, 0x18 */ 5034 _flag_k = FK_ADD; 5035 edi = POP32_VAL(esp); /* 0x470820D5: pop edi */ 5036 esi = POP32_VAL(esp); /* 0x470820D6: pop esi */ 5037 ebx = POP32_VAL(esp); /* 0x470820D7: pop ebx */ 5038 esp = ebp; /* 0x470820D8: mov esp, ebp */ 5039 ebp = POP32_VAL(esp); /* 0x470820DA: pop ebp */ 5040 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470820DB: ret 8 */ 5041 RECOMP_REGS_OUT(); 5042 } 5043 5044 void sub_470820E0(void) { 5045 int _fpu_cmp = 0; 5046 uint32_t _cf = 0; 5047 int _df = 1; 5048 uint32_t _flag_k = FK_NONE; 5049 uint32_t _flag_a = 0, _flag_b = 0; 5050 uint32_t _itail_tgt = 0; 5051 RECOMP_REGS_LOCALS 5052 RECOMP_ENTER(0x470820E0u); 5053 5054 L_470820E0: 5055 eax = ecx; /* 0x470820E0: mov eax, ecx */ 5056 ecx = MEM32(esp + 0x8); /* 0x470820E2: mov ecx, dword ptr [esp + 8] */ 5057 /* test ecx, ecx */ /* 0x470820E6: test ecx, ecx */ 5058 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5059 _cf = 0; 5060 _flag_k = FK_TEST; 5061 ecx = MEM32(esp + 0x4); /* 0x470820E8: mov ecx, dword ptr [esp + 4] */ 5062 edx = MEM32(ecx); /* 0x470820EC: mov edx, dword ptr [ecx] */ 5063 if (TEST_NZ(_flag_a, _flag_b)) goto L_470820F2; /* 0x470820EE: jne 0x470820f2 */ 5064 L_470820F0: 5065 edx = MEM32(edx); /* 0x470820F0: mov edx, dword ptr [edx] */ 5066 L_470820F2: 5067 MEM32(eax) = edx; /* 0x470820F2: mov dword ptr [eax], edx */ 5068 MEM32(eax + 0x4) = ecx; /* 0x470820F4: mov dword ptr [eax + 4], ecx */ 5069 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470820F7: ret 8 */ 5070 RECOMP_REGS_OUT(); 5071 } 5072 5073 void sub_47082100(void) { 5074 int _fpu_cmp = 0; 5075 uint32_t _cf = 0; 5076 int _df = 1; 5077 uint32_t _flag_k = FK_NONE; 5078 uint32_t _flag_a = 0, _flag_b = 0; 5079 uint32_t _itail_tgt = 0; 5080 RECOMP_REGS_LOCALS 5081 RECOMP_ENTER(0x47082100u); 5082 5083 L_47082100: 5084 eax = MEM32(ecx); /* 0x47082100: mov eax, dword ptr [ecx] */ 5085 ecx = MEM32(ecx + 0x4); /* 0x47082102: mov ecx, dword ptr [ecx + 4] */ 5086 /* cmp eax, MEM32(ecx) */ /* 0x47082105: cmp eax, dword ptr [ecx] */ 5087 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 5088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5089 _flag_k = FK_CMP; 5090 if (CMP_NE(_flag_a, _flag_b)) goto L_4708210E; /* 0x47082107: jne 0x4708210e */ 5091 L_47082109: 5092 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5093 eax = 0; /* 0x47082109: xor eax, eax */ 5094 _cf = 0; 5095 _flag_k = FK_TEST; 5096 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4708210B: ret 4 */ 5097 L_4708210E: 5098 edx = MEM32(esp + 0x4); /* 0x4708210E: mov edx, dword ptr [esp + 4] */ 5099 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 5100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5101 eax = eax + 4; /* 0x47082112: add eax, 4 */ 5102 _flag_k = FK_ADD; 5103 MEM32(edx) = eax; /* 0x47082115: mov dword ptr [edx], eax */ 5104 eax = 1; /* 0x47082117: mov eax, 1 */ 5105 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4708211C: ret 4 */ 5106 RECOMP_REGS_OUT(); 5107 } 5108 5109 void sub_47082120(void) { 5110 int _fpu_cmp = 0; 5111 uint32_t _cf = 0; 5112 int _df = 1; 5113 uint32_t _flag_k = FK_NONE; 5114 uint32_t _flag_a = 0, _flag_b = 0; 5115 uint32_t _itail_tgt = 0; 5116 RECOMP_REGS_LOCALS 5117 RECOMP_ENTER(0x47082120u); 5118 5119 L_47082120: 5120 ecx = 0x4710F0A9u; /* 0x47082120: mov ecx, 0x4710f0a9 */ 5121 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47082125: call dword ptr [0x470ac1c8] */ 5122 RECOMP_FLAGS_IN(); 5123 PUSH32(esp, 0x47082140u); /* 0x4708212B: push 0x47082140 */ 5124 RECOMP_ICALL(0x470A32D9u); /* 0x47082130: call 0x470a32d9 */ /* not lifted */ 5125 RECOMP_FLAGS_IN(); 5126 ecx = POP32_VAL(esp); /* 0x47082135: pop ecx */ 5127 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082136: ret */ 5128 RECOMP_REGS_OUT(); 5129 } 5130 5131 void sub_47082140(void) { 5132 int _fpu_cmp = 0; 5133 uint32_t _cf = 0; 5134 int _df = 1; 5135 uint32_t _flag_k = FK_NONE; 5136 uint32_t _flag_a = 0, _flag_b = 0; 5137 uint32_t _itail_tgt = 0; 5138 RECOMP_REGS_LOCALS 5139 RECOMP_ENTER(0x47082140u); 5140 5141 L_47082140: 5142 ecx = 0x4710F0A9u; /* 0x47082140: mov ecx, 0x4710f0a9 */ 5143 L_47082145: 5144 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 5145 { RECOMP_REGS_OUT(); return; } /* end of function */ 5146 _ljump: 5147 switch (_itail_tgt) { 5148 case 0x47082140u: goto L_47082140; 5149 case 0x47082145u: goto L_47082145; 5150 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5151 } 5152 RECOMP_REGS_OUT(); 5153 } 5154 5155 void sub_47082150(void) { 5156 int _fpu_cmp = 0; 5157 uint32_t _cf = 0; 5158 int _df = 1; 5159 uint32_t _flag_k = FK_NONE; 5160 uint32_t _flag_a = 0, _flag_b = 0; 5161 uint32_t _itail_tgt = 0; 5162 RECOMP_REGS_LOCALS 5163 RECOMP_ENTER(0x47082150u); 5164 5165 L_47082150: 5166 ecx = 0x4710F0A8u; /* 0x47082150: mov ecx, 0x4710f0a8 */ 5167 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47082155: call dword ptr [0x470ac1c4] */ 5168 RECOMP_FLAGS_IN(); 5169 PUSH32(esp, 0x47082170u); /* 0x4708215B: push 0x47082170 */ 5170 RECOMP_ICALL(0x470A32D9u); /* 0x47082160: call 0x470a32d9 */ /* not lifted */ 5171 RECOMP_FLAGS_IN(); 5172 ecx = POP32_VAL(esp); /* 0x47082165: pop ecx */ 5173 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082166: ret */ 5174 RECOMP_REGS_OUT(); 5175 } 5176 5177 void sub_47082170(void) { 5178 int _fpu_cmp = 0; 5179 uint32_t _cf = 0; 5180 int _df = 1; 5181 uint32_t _flag_k = FK_NONE; 5182 uint32_t _flag_a = 0, _flag_b = 0; 5183 uint32_t _itail_tgt = 0; 5184 RECOMP_REGS_LOCALS 5185 RECOMP_ENTER(0x47082170u); 5186 5187 L_47082170: 5188 ecx = 0x4710F0A8u; /* 0x47082170: mov ecx, 0x4710f0a8 */ 5189 L_47082175: 5190 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 5191 { RECOMP_REGS_OUT(); return; } /* end of function */ 5192 _ljump: 5193 switch (_itail_tgt) { 5194 case 0x47082170u: goto L_47082170; 5195 case 0x47082175u: goto L_47082175; 5196 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5197 } 5198 RECOMP_REGS_OUT(); 5199 } 5200 5201 void sub_47082180(void) { 5202 int _fpu_cmp = 0; 5203 uint32_t _cf = 0; 5204 int _df = 1; 5205 uint32_t _flag_k = FK_NONE; 5206 uint32_t _flag_a = 0, _flag_b = 0; 5207 uint32_t _itail_tgt = 0; 5208 RECOMP_REGS_LOCALS 5209 RECOMP_ENTER(0x47082180u); 5210 5211 L_47082180: 5212 MEM32(0x4710F09C) = 0x47104A3Cu; /* 0x47082180: mov dword ptr [0x4710f09c], 0x47104a3c */ 5213 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708218A: ret */ 5214 RECOMP_REGS_OUT(); 5215 } 5216 5217 void sub_47082190(void) { 5218 int _fpu_cmp = 0; 5219 uint32_t _cf = 0; 5220 int _df = 1; 5221 uint32_t _flag_k = FK_NONE; 5222 uint32_t _flag_a = 0, _flag_b = 0; 5223 uint32_t _itail_tgt = 0; 5224 RECOMP_REGS_LOCALS 5225 RECOMP_ENTER(0x47082190u); 5226 5227 L_47082190: 5228 MEM32(0x4710F0D0) = 0x47104B6Cu; /* 0x47082190: mov dword ptr [0x4710f0d0], 0x47104b6c */ 5229 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708219A: ret */ 5230 RECOMP_REGS_OUT(); 5231 } 5232 5233 void sub_470821A0(void) { 5234 int _fpu_cmp = 0; 5235 uint32_t _cf = 0; 5236 int _df = 1; 5237 uint32_t _flag_k = FK_NONE; 5238 uint32_t _flag_a = 0, _flag_b = 0; 5239 uint32_t _itail_tgt = 0; 5240 RECOMP_REGS_LOCALS 5241 RECOMP_ENTER(0x470821A0u); 5242 5243 L_470821A0: 5244 MEM32(0x4710F0B4) = 0x47104A00u; /* 0x470821A0: mov dword ptr [0x4710f0b4], 0x47104a00 */ 5245 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470821AA: ret */ 5246 RECOMP_REGS_OUT(); 5247 } 5248 5249 void sub_470821B0(void) { 5250 int _fpu_cmp = 0; 5251 uint32_t _cf = 0; 5252 int _df = 1; 5253 uint32_t _flag_k = FK_NONE; 5254 uint32_t _flag_a = 0, _flag_b = 0; 5255 uint32_t _itail_tgt = 0; 5256 RECOMP_REGS_LOCALS 5257 RECOMP_ENTER(0x470821B0u); 5258 5259 L_470821B0: 5260 MEM32(0x4710F0B0) = 0x47104A70u; /* 0x470821B0: mov dword ptr [0x4710f0b0], 0x47104a70 */ 5261 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470821BA: ret */ 5262 RECOMP_REGS_OUT(); 5263 } 5264 5265 void sub_470821C0(void) { 5266 int _fpu_cmp = 0; 5267 uint32_t _cf = 0; 5268 int _df = 1; 5269 uint32_t _flag_k = FK_NONE; 5270 uint32_t _flag_a = 0, _flag_b = 0; 5271 uint32_t _itail_tgt = 0; 5272 RECOMP_REGS_LOCALS 5273 RECOMP_ENTER(0x470821C0u); 5274 5275 L_470821C0: 5276 MEM32(0x4710F0A4) = 0x47104BA0u; /* 0x470821C0: mov dword ptr [0x4710f0a4], 0x47104ba0 */ 5277 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470821CA: ret */ 5278 RECOMP_REGS_OUT(); 5279 } 5280 5281 void sub_470821D0(void) { 5282 int _fpu_cmp = 0; 5283 uint32_t _cf = 0; 5284 int _df = 1; 5285 uint32_t _flag_k = FK_NONE; 5286 uint32_t _flag_a = 0, _flag_b = 0; 5287 uint32_t _itail_tgt = 0; 5288 RECOMP_REGS_LOCALS 5289 RECOMP_ENTER(0x470821D0u); 5290 5291 L_470821D0: 5292 MEM32(0x4710F0C4) = 0x47104BD4u; /* 0x470821D0: mov dword ptr [0x4710f0c4], 0x47104bd4 */ 5293 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470821DA: ret */ 5294 RECOMP_REGS_OUT(); 5295 } 5296 5297 void sub_470821E0(void) { 5298 int _fpu_cmp = 0; 5299 uint32_t _cf = 0; 5300 int _df = 1; 5301 uint32_t _flag_k = FK_NONE; 5302 uint32_t _flag_a = 0, _flag_b = 0; 5303 uint32_t _itail_tgt = 0; 5304 RECOMP_REGS_LOCALS 5305 RECOMP_ENTER(0x470821E0u); 5306 5307 L_470821E0: 5308 MEM32(0x4710F0C0) = 0x471050FCu; /* 0x470821E0: mov dword ptr [0x4710f0c0], 0x471050fc */ 5309 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470821EA: ret */ 5310 RECOMP_REGS_OUT(); 5311 } 5312 5313 void sub_470821F0(void) { 5314 int _fpu_cmp = 0; 5315 uint32_t _cf = 0; 5316 int _df = 1; 5317 uint32_t _flag_k = FK_NONE; 5318 uint32_t _flag_a = 0, _flag_b = 0; 5319 uint32_t _itail_tgt = 0; 5320 RECOMP_REGS_LOCALS 5321 RECOMP_ENTER(0x470821F0u); 5322 5323 L_470821F0: 5324 MEM32(0x4710F0AC) = 0x47105158u; /* 0x470821F0: mov dword ptr [0x4710f0ac], 0x47105158 */ 5325 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470821FA: ret */ 5326 RECOMP_REGS_OUT(); 5327 } 5328 5329 void sub_47082200(void) { 5330 int _fpu_cmp = 0; 5331 uint32_t _cf = 0; 5332 int _df = 1; 5333 uint32_t _flag_k = FK_NONE; 5334 uint32_t _flag_a = 0, _flag_b = 0; 5335 uint32_t _itail_tgt = 0; 5336 RECOMP_REGS_LOCALS 5337 RECOMP_ENTER(0x47082200u); 5338 5339 L_47082200: 5340 MEM32(0x4710F0A0) = 0x4710518Cu; /* 0x47082200: mov dword ptr [0x4710f0a0], 0x4710518c */ 5341 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708220A: ret */ 5342 RECOMP_REGS_OUT(); 5343 } 5344 5345 void sub_47082210(void) { 5346 int _fpu_cmp = 0; 5347 uint32_t _cf = 0; 5348 int _df = 1; 5349 uint32_t _flag_k = FK_NONE; 5350 uint32_t _flag_a = 0, _flag_b = 0; 5351 uint32_t _itail_tgt = 0; 5352 RECOMP_REGS_LOCALS 5353 RECOMP_ENTER(0x47082210u); 5354 5355 L_47082210: 5356 MEM32(0x4710F0BC) = 0x47104C0Cu; /* 0x47082210: mov dword ptr [0x4710f0bc], 0x47104c0c */ 5357 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708221A: ret */ 5358 RECOMP_REGS_OUT(); 5359 } 5360 5361 void sub_47082220(void) { 5362 int _fpu_cmp = 0; 5363 uint32_t _cf = 0; 5364 int _df = 1; 5365 uint32_t _flag_k = FK_NONE; 5366 uint32_t _flag_a = 0, _flag_b = 0; 5367 uint32_t _itail_tgt = 0; 5368 RECOMP_REGS_LOCALS 5369 RECOMP_ENTER(0x47082220u); 5370 5371 L_47082220: 5372 MEM32(0x4710F0B8) = 0x47105224u; /* 0x47082220: mov dword ptr [0x4710f0b8], 0x47105224 */ 5373 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708222A: ret */ 5374 RECOMP_REGS_OUT(); 5375 } 5376 5377 void sub_47082230(void) { 5378 int _fpu_cmp = 0; 5379 uint32_t _cf = 0; 5380 int _df = 1; 5381 uint32_t _flag_k = FK_NONE; 5382 uint32_t _flag_a = 0, _flag_b = 0; 5383 uint32_t _itail_tgt = 0; 5384 RECOMP_REGS_LOCALS 5385 RECOMP_ENTER(0x47082230u); 5386 5387 L_47082230: 5388 MEM32(0x4710F0CC) = 0x471051ECu; /* 0x47082230: mov dword ptr [0x4710f0cc], 0x471051ec */ 5389 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708223A: ret */ 5390 RECOMP_REGS_OUT(); 5391 } 5392 5393 void sub_47082240(void) { 5394 int _fpu_cmp = 0; 5395 uint32_t _cf = 0; 5396 int _df = 1; 5397 uint32_t _flag_k = FK_NONE; 5398 uint32_t _flag_a = 0, _flag_b = 0; 5399 uint32_t _itail_tgt = 0; 5400 RECOMP_REGS_LOCALS 5401 RECOMP_ENTER(0x47082240u); 5402 5403 L_47082240: 5404 MEM32(0x4710F0C8) = 0x4710B6C0u; /* 0x47082240: mov dword ptr [0x4710f0c8], 0x4710b6c0 */ 5405 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708224A: ret */ 5406 RECOMP_REGS_OUT(); 5407 } 5408 5409 void sub_47082250(void) { 5410 int _fpu_cmp = 0; 5411 uint32_t _cf = 0; 5412 int _df = 1; 5413 uint32_t _flag_k = FK_NONE; 5414 uint32_t _flag_a = 0, _flag_b = 0; 5415 uint32_t _itail_tgt = 0; 5416 RECOMP_REGS_LOCALS 5417 RECOMP_ENTER(0x47082250u); 5418 5419 L_47082250: 5420 edx = MEM32(esp + 0x8); /* 0x47082250: mov edx, dword ptr [esp + 8] */ 5421 eax = ecx; /* 0x47082254: mov eax, ecx */ 5422 ecx = MEM32(esp + 0x4); /* 0x47082256: mov ecx, dword ptr [esp + 4] */ 5423 MEM32(eax + 0x4) = ecx; /* 0x4708225A: mov dword ptr [eax + 4], ecx */ 5424 MEM32(eax + 0x8) = edx; /* 0x4708225D: mov dword ptr [eax + 8], edx */ 5425 MEM32(eax) = 0x470AC7B4u; /* 0x47082260: mov dword ptr [eax], 0x470ac7b4 */ 5426 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47082266: ret 8 */ 5427 RECOMP_REGS_OUT(); 5428 } 5429 5430 void sub_47082270(void) { 5431 int _fpu_cmp = 0; 5432 uint32_t _cf = 0; 5433 int _df = 1; 5434 uint32_t _flag_k = FK_NONE; 5435 uint32_t _flag_a = 0, _flag_b = 0; 5436 uint32_t _itail_tgt = 0; 5437 RECOMP_REGS_LOCALS 5438 RECOMP_ENTER(0x47082270u); 5439 5440 L_47082270: 5441 MEM32(ecx) = 0x470AC7B4u; /* 0x47082270: mov dword ptr [ecx], 0x470ac7b4 */ 5442 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082276: ret */ 5443 RECOMP_REGS_OUT(); 5444 } 5445 5446 void sub_47082280(void) { 5447 int _fpu_cmp = 0; 5448 uint32_t _cf = 0; 5449 int _df = 1; 5450 uint32_t _flag_k = FK_NONE; 5451 uint32_t _flag_a = 0, _flag_b = 0; 5452 uint32_t _itail_tgt = 0; 5453 RECOMP_REGS_LOCALS 5454 RECOMP_ENTER(0x47082280u); 5455 5456 L_47082280: 5457 eax = MEM32(esp + 0x4); /* 0x47082280: mov eax, dword ptr [esp + 4] */ 5458 MEM32(ecx + 0x8) = eax; /* 0x47082284: mov dword ptr [ecx + 8], eax */ 5459 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47082287: ret 4 */ 5460 RECOMP_REGS_OUT(); 5461 } 5462 5463 void sub_47082290(void) { 5464 int _fpu_cmp = 0; 5465 uint32_t _cf = 0; 5466 int _df = 1; 5467 uint32_t _flag_k = FK_NONE; 5468 uint32_t _flag_a = 0, _flag_b = 0; 5469 uint32_t _itail_tgt = 0; 5470 RECOMP_REGS_LOCALS 5471 RECOMP_ENTER(0x47082290u); 5472 5473 L_47082290: 5474 edx = MEM32(esp + 0xC); /* 0x47082290: mov edx, dword ptr [esp + 0xc] */ 5475 eax = ecx; /* 0x47082294: mov eax, ecx */ 5476 ecx = MEM32(esp + 0x8); /* 0x47082296: mov ecx, dword ptr [esp + 8] */ 5477 MEM32(eax + 0x4) = ecx; /* 0x4708229A: mov dword ptr [eax + 4], ecx */ 5478 ecx = MEM32(esp + 0x4); /* 0x4708229D: mov ecx, dword ptr [esp + 4] */ 5479 MEM32(eax + 0x8) = edx; /* 0x470822A1: mov dword ptr [eax + 8], edx */ 5480 MEM32(eax + 0xC) = ecx; /* 0x470822A4: mov dword ptr [eax + 0xc], ecx */ 5481 MEM32(eax) = 0x470AC7C0u; /* 0x470822A7: mov dword ptr [eax], 0x470ac7c0 */ 5482 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470822AD: ret 0xc */ 5483 RECOMP_REGS_OUT(); 5484 } 5485 5486 void sub_470822B0(void) { 5487 int _fpu_cmp = 0; 5488 uint32_t _cf = 0; 5489 int _df = 1; 5490 uint32_t _flag_k = FK_NONE; 5491 uint32_t _flag_a = 0, _flag_b = 0; 5492 uint32_t _itail_tgt = 0; 5493 RECOMP_REGS_LOCALS 5494 RECOMP_ENTER(0x470822B0u); 5495 5496 L_470822B0: 5497 PUSH32(esp, esi); /* 0x470822B0: push esi */ 5498 eax = ecx; /* 0x470822B1: mov eax, ecx */ 5499 esi = MEM32(eax + 0x8); /* 0x470822B3: mov esi, dword ptr [eax + 8] */ 5500 ecx = MEM32(eax + 0xC); /* 0x470822B6: mov ecx, dword ptr [eax + 0xc] */ 5501 eax = MEM32(eax + 0x4); /* 0x470822B9: mov eax, dword ptr [eax + 4] */ 5502 edx = MEM32(ecx); /* 0x470822BC: mov edx, dword ptr [ecx] */ 5503 PUSH32(esp, 0); /* 0x470822BE: push 0 */ 5504 PUSH32(esp, esi); /* 0x470822C0: push esi */ 5505 PUSH32(esp, eax); /* 0x470822C1: push eax */ 5506 RECOMP_ICALL(MEM32(edx + 0xB4)); /* 0x470822C2: call dword ptr [edx + 0xb4] */ 5507 RECOMP_FLAGS_IN(); 5508 esi = POP32_VAL(esp); /* 0x470822C8: pop esi */ 5509 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470822C9: ret */ 5510 RECOMP_REGS_OUT(); 5511 } 5512 5513 void sub_470822D0(void) { 5514 int _fpu_cmp = 0; 5515 uint32_t _cf = 0; 5516 int _df = 1; 5517 uint32_t _flag_k = FK_NONE; 5518 uint32_t _flag_a = 0, _flag_b = 0; 5519 uint32_t _itail_tgt = 0; 5520 RECOMP_REGS_LOCALS 5521 RECOMP_ENTER(0x470822D0u); 5522 5523 L_470822D0: 5524 edx = MEM32(esp + 0x8); /* 0x470822D0: mov edx, dword ptr [esp + 8] */ 5525 ecx = MEM32(ecx + 0xC); /* 0x470822D4: mov ecx, dword ptr [ecx + 0xc] */ 5526 eax = MEM32(ecx); /* 0x470822D7: mov eax, dword ptr [ecx] */ 5527 PUSH32(esp, 0); /* 0x470822D9: push 0 */ 5528 PUSH32(esp, edx); /* 0x470822DB: push edx */ 5529 edx = MEM32(esp + 0xC); /* 0x470822DC: mov edx, dword ptr [esp + 0xc] */ 5530 PUSH32(esp, edx); /* 0x470822E0: push edx */ 5531 RECOMP_ICALL(MEM32(eax + 0xB4)); /* 0x470822E1: call dword ptr [eax + 0xb4] */ 5532 RECOMP_FLAGS_IN(); 5533 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470822E7: ret 8 */ 5534 RECOMP_REGS_OUT(); 5535 } 5536 5537 void sub_470822F0(void) { 5538 int _fpu_cmp = 0; 5539 uint32_t _cf = 0; 5540 int _df = 1; 5541 uint32_t _flag_k = FK_NONE; 5542 uint32_t _flag_a = 0, _flag_b = 0; 5543 uint32_t _itail_tgt = 0; 5544 RECOMP_REGS_LOCALS 5545 RECOMP_ENTER(0x470822F0u); 5546 5547 L_470822F0: 5548 MEM32(ecx) = 0x470AC7CCu; /* 0x470822F0: mov dword ptr [ecx], 0x470ac7cc */ 5549 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470822F6: ret */ 5550 RECOMP_REGS_OUT(); 5551 } 5552 5553 void sub_47082300(void) { 5554 int _fpu_cmp = 0; 5555 uint32_t _cf = 0; 5556 int _df = 1; 5557 uint32_t _flag_k = FK_NONE; 5558 uint32_t _flag_a = 0, _flag_b = 0; 5559 uint32_t _itail_tgt = 0; 5560 RECOMP_REGS_LOCALS 5561 RECOMP_ENTER(0x47082300u); 5562 5563 L_47082300: 5564 ecx = 0x4710F0D5u; /* 0x47082300: mov ecx, 0x4710f0d5 */ 5565 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47082305: call dword ptr [0x470ac1c8] */ 5566 RECOMP_FLAGS_IN(); 5567 PUSH32(esp, 0x47082320u); /* 0x4708230B: push 0x47082320 */ 5568 RECOMP_ICALL(0x470A32D9u); /* 0x47082310: call 0x470a32d9 */ /* not lifted */ 5569 RECOMP_FLAGS_IN(); 5570 ecx = POP32_VAL(esp); /* 0x47082315: pop ecx */ 5571 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082316: ret */ 5572 RECOMP_REGS_OUT(); 5573 } 5574 5575 void sub_47082320(void) { 5576 int _fpu_cmp = 0; 5577 uint32_t _cf = 0; 5578 int _df = 1; 5579 uint32_t _flag_k = FK_NONE; 5580 uint32_t _flag_a = 0, _flag_b = 0; 5581 uint32_t _itail_tgt = 0; 5582 RECOMP_REGS_LOCALS 5583 RECOMP_ENTER(0x47082320u); 5584 5585 L_47082320: 5586 ecx = 0x4710F0D5u; /* 0x47082320: mov ecx, 0x4710f0d5 */ 5587 L_47082325: 5588 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 5589 { RECOMP_REGS_OUT(); return; } /* end of function */ 5590 _ljump: 5591 switch (_itail_tgt) { 5592 case 0x47082320u: goto L_47082320; 5593 case 0x47082325u: goto L_47082325; 5594 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5595 } 5596 RECOMP_REGS_OUT(); 5597 } 5598 5599 void sub_47082330(void) { 5600 int _fpu_cmp = 0; 5601 uint32_t _cf = 0; 5602 int _df = 1; 5603 uint32_t _flag_k = FK_NONE; 5604 uint32_t _flag_a = 0, _flag_b = 0; 5605 uint32_t _itail_tgt = 0; 5606 RECOMP_REGS_LOCALS 5607 RECOMP_ENTER(0x47082330u); 5608 5609 L_47082330: 5610 ecx = 0x4710F0D4u; /* 0x47082330: mov ecx, 0x4710f0d4 */ 5611 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47082335: call dword ptr [0x470ac1c4] */ 5612 RECOMP_FLAGS_IN(); 5613 PUSH32(esp, 0x47082350u); /* 0x4708233B: push 0x47082350 */ 5614 RECOMP_ICALL(0x470A32D9u); /* 0x47082340: call 0x470a32d9 */ /* not lifted */ 5615 RECOMP_FLAGS_IN(); 5616 ecx = POP32_VAL(esp); /* 0x47082345: pop ecx */ 5617 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082346: ret */ 5618 RECOMP_REGS_OUT(); 5619 } 5620 5621 void sub_47082350(void) { 5622 int _fpu_cmp = 0; 5623 uint32_t _cf = 0; 5624 int _df = 1; 5625 uint32_t _flag_k = FK_NONE; 5626 uint32_t _flag_a = 0, _flag_b = 0; 5627 uint32_t _itail_tgt = 0; 5628 RECOMP_REGS_LOCALS 5629 RECOMP_ENTER(0x47082350u); 5630 5631 L_47082350: 5632 ecx = 0x4710F0D4u; /* 0x47082350: mov ecx, 0x4710f0d4 */ 5633 L_47082355: 5634 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 5635 { RECOMP_REGS_OUT(); return; } /* end of function */ 5636 _ljump: 5637 switch (_itail_tgt) { 5638 case 0x47082350u: goto L_47082350; 5639 case 0x47082355u: goto L_47082355; 5640 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5641 } 5642 RECOMP_REGS_OUT(); 5643 } 5644 5645 void sub_47082360(void) { 5646 int _fpu_cmp = 0; 5647 uint32_t _cf = 0; 5648 int _df = 1; 5649 uint32_t _flag_k = FK_NONE; 5650 uint32_t _flag_a = 0, _flag_b = 0; 5651 uint32_t _itail_tgt = 0; 5652 RECOMP_REGS_LOCALS 5653 RECOMP_ENTER(0x47082360u); 5654 5655 L_47082360: 5656 MEM32(ecx) = 0; /* 0x47082360: mov dword ptr [ecx], 0 */ 5657 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082366: ret */ 5658 RECOMP_REGS_OUT(); 5659 } 5660 5661 void sub_47082370(void) { 5662 int _fpu_cmp = 0; 5663 uint32_t _cf = 0; 5664 int _df = 1; 5665 uint32_t _flag_k = FK_NONE; 5666 uint32_t _flag_a = 0, _flag_b = 0; 5667 uint32_t _itail_tgt = 0; 5668 RECOMP_REGS_LOCALS 5669 RECOMP_ENTER(0x47082370u); 5670 5671 L_47082370: 5672 eax = ecx; /* 0x47082370: mov eax, ecx */ 5673 ecx = MEM32(esp + 0x4); /* 0x47082372: mov ecx, dword ptr [esp + 4] */ 5674 MEM32(eax) = ecx; /* 0x47082376: mov dword ptr [eax], ecx */ 5675 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47082378: ret 4 */ 5676 RECOMP_REGS_OUT(); 5677 } 5678 5679 void sub_47082380(void) { 5680 int _fpu_cmp = 0; 5681 uint32_t _cf = 0; 5682 int _df = 1; 5683 uint32_t _flag_k = FK_NONE; 5684 uint32_t _flag_a = 0, _flag_b = 0; 5685 uint32_t _itail_tgt = 0; 5686 RECOMP_REGS_LOCALS 5687 RECOMP_ENTER(0x47082380u); 5688 5689 L_47082380: 5690 MEM32(0x4710F0D8) = 0x4710B6F8u; /* 0x47082380: mov dword ptr [0x4710f0d8], 0x4710b6f8 */ 5691 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708238A: ret */ 5692 RECOMP_REGS_OUT(); 5693 } 5694 5695 void sub_47082390(void) { 5696 int _fpu_cmp = 0; 5697 uint32_t _cf = 0; 5698 int _df = 1; 5699 uint32_t _flag_k = FK_NONE; 5700 uint32_t _flag_a = 0, _flag_b = 0; 5701 uint32_t _itail_tgt = 0; 5702 RECOMP_REGS_LOCALS 5703 RECOMP_ENTER(0x47082390u); 5704 5705 L_47082390: 5706 ecx = 0x4710F0E1u; /* 0x47082390: mov ecx, 0x4710f0e1 */ 5707 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47082395: call dword ptr [0x470ac1c8] */ 5708 RECOMP_FLAGS_IN(); 5709 PUSH32(esp, 0x470823B0u); /* 0x4708239B: push 0x470823b0 */ 5710 RECOMP_ICALL(0x470A32D9u); /* 0x470823A0: call 0x470a32d9 */ /* not lifted */ 5711 RECOMP_FLAGS_IN(); 5712 ecx = POP32_VAL(esp); /* 0x470823A5: pop ecx */ 5713 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470823A6: ret */ 5714 RECOMP_REGS_OUT(); 5715 } 5716 5717 void sub_470823B0(void) { 5718 int _fpu_cmp = 0; 5719 uint32_t _cf = 0; 5720 int _df = 1; 5721 uint32_t _flag_k = FK_NONE; 5722 uint32_t _flag_a = 0, _flag_b = 0; 5723 uint32_t _itail_tgt = 0; 5724 RECOMP_REGS_LOCALS 5725 RECOMP_ENTER(0x470823B0u); 5726 5727 L_470823B0: 5728 ecx = 0x4710F0E1u; /* 0x470823B0: mov ecx, 0x4710f0e1 */ 5729 L_470823B5: 5730 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 5731 { RECOMP_REGS_OUT(); return; } /* end of function */ 5732 _ljump: 5733 switch (_itail_tgt) { 5734 case 0x470823B0u: goto L_470823B0; 5735 case 0x470823B5u: goto L_470823B5; 5736 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5737 } 5738 RECOMP_REGS_OUT(); 5739 } 5740 5741 void sub_470823C0(void) { 5742 int _fpu_cmp = 0; 5743 uint32_t _cf = 0; 5744 int _df = 1; 5745 uint32_t _flag_k = FK_NONE; 5746 uint32_t _flag_a = 0, _flag_b = 0; 5747 uint32_t _itail_tgt = 0; 5748 RECOMP_REGS_LOCALS 5749 RECOMP_ENTER(0x470823C0u); 5750 5751 L_470823C0: 5752 ecx = 0x4710F0E0u; /* 0x470823C0: mov ecx, 0x4710f0e0 */ 5753 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x470823C5: call dword ptr [0x470ac1c4] */ 5754 RECOMP_FLAGS_IN(); 5755 PUSH32(esp, 0x470823E0u); /* 0x470823CB: push 0x470823e0 */ 5756 RECOMP_ICALL(0x470A32D9u); /* 0x470823D0: call 0x470a32d9 */ /* not lifted */ 5757 RECOMP_FLAGS_IN(); 5758 ecx = POP32_VAL(esp); /* 0x470823D5: pop ecx */ 5759 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470823D6: ret */ 5760 RECOMP_REGS_OUT(); 5761 } 5762 5763 void sub_470823E0(void) { 5764 int _fpu_cmp = 0; 5765 uint32_t _cf = 0; 5766 int _df = 1; 5767 uint32_t _flag_k = FK_NONE; 5768 uint32_t _flag_a = 0, _flag_b = 0; 5769 uint32_t _itail_tgt = 0; 5770 RECOMP_REGS_LOCALS 5771 RECOMP_ENTER(0x470823E0u); 5772 5773 L_470823E0: 5774 ecx = 0x4710F0E0u; /* 0x470823E0: mov ecx, 0x4710f0e0 */ 5775 L_470823E5: 5776 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 5777 { RECOMP_REGS_OUT(); return; } /* end of function */ 5778 _ljump: 5779 switch (_itail_tgt) { 5780 case 0x470823E0u: goto L_470823E0; 5781 case 0x470823E5u: goto L_470823E5; 5782 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5783 } 5784 RECOMP_REGS_OUT(); 5785 } 5786 5787 void sub_470823F0(void) { 5788 int _fpu_cmp = 0; 5789 uint32_t _cf = 0; 5790 int _df = 1; 5791 uint32_t _flag_k = FK_NONE; 5792 uint32_t _flag_a = 0, _flag_b = 0; 5793 uint32_t _itail_tgt = 0; 5794 RECOMP_REGS_LOCALS 5795 RECOMP_ENTER(0x470823F0u); 5796 5797 L_470823F0: 5798 PUSH32(esp, esi); /* 0x470823F0: push esi */ 5799 esi = ecx; /* 0x470823F1: mov esi, ecx */ 5800 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470823F3: call dword ptr [0x470ac3c8] */ 5801 RECOMP_FLAGS_IN(); 5802 MEM32(eax) = 0x28u; /* 0x470823F9: mov dword ptr [eax], 0x28 */ 5803 MEM32(esi) = 0xFFFFFFFFu; /* 0x470823FF: mov dword ptr [esi], 0xffffffff */ 5804 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5805 eax = eax | 0xFFFFFFFFu; /* 0x47082405: or eax, 0xffffffff */ 5806 _cf = 0; 5807 _flag_k = FK_TEST; 5808 esi = POP32_VAL(esp); /* 0x47082408: pop esi */ 5809 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47082409: ret 0xc */ 5810 RECOMP_REGS_OUT(); 5811 } 5812 5813 void sub_47082410(void) { 5814 int _fpu_cmp = 0; 5815 uint32_t _cf = 0; 5816 int _df = 1; 5817 uint32_t _flag_k = FK_NONE; 5818 uint32_t _flag_a = 0, _flag_b = 0; 5819 uint32_t _itail_tgt = 0; 5820 RECOMP_REGS_LOCALS 5821 RECOMP_ENTER(0x47082410u); 5822 5823 L_47082410: 5824 MEM32(ecx) = 0xFFFFFFFFu; /* 0x47082410: mov dword ptr [ecx], 0xffffffff */ 5825 eax = 1; /* 0x47082416: mov eax, 1 */ 5826 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708241B: ret */ 5827 RECOMP_REGS_OUT(); 5828 } 5829 5830 void sub_47082420(void) { 5831 int _fpu_cmp = 0; 5832 uint32_t _cf = 0; 5833 int _df = 1; 5834 uint32_t _flag_k = FK_NONE; 5835 uint32_t _flag_a = 0, _flag_b = 0; 5836 uint32_t _itail_tgt = 0; 5837 RECOMP_REGS_LOCALS 5838 RECOMP_ENTER(0x47082420u); 5839 5840 L_47082420: 5841 PUSH32(esp, esi); /* 0x47082420: push esi */ 5842 esi = ecx; /* 0x47082421: mov esi, ecx */ 5843 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47082423: call dword ptr [0x470ac3c8] */ 5844 RECOMP_FLAGS_IN(); 5845 MEM32(eax) = 0x28u; /* 0x47082429: mov dword ptr [eax], 0x28 */ 5846 MEM32(esi) = 0xFFFFFFFFu; /* 0x4708242F: mov dword ptr [esi], 0xffffffff */ 5847 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5848 eax = eax | 0xFFFFFFFFu; /* 0x47082435: or eax, 0xffffffff */ 5849 _cf = 0; 5850 _flag_k = FK_TEST; 5851 esi = POP32_VAL(esp); /* 0x47082438: pop esi */ 5852 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082439: ret */ 5853 RECOMP_REGS_OUT(); 5854 } 5855 5856 void sub_47082440(void) { 5857 int _fpu_cmp = 0; 5858 uint32_t _cf = 0; 5859 int _df = 1; 5860 uint32_t _flag_k = FK_NONE; 5861 uint32_t _flag_a = 0, _flag_b = 0; 5862 uint32_t _itail_tgt = 0; 5863 RECOMP_REGS_LOCALS 5864 RECOMP_ENTER(0x47082440u); 5865 5866 L_47082440: 5867 MEM32(0x4710F0DC) = 0x4710B72Cu; /* 0x47082440: mov dword ptr [0x4710f0dc], 0x4710b72c */ 5868 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708244A: ret */ 5869 RECOMP_REGS_OUT(); 5870 } 5871 5872 void sub_47082450(void) { 5873 int _fpu_cmp = 0; 5874 uint32_t _cf = 0; 5875 int _df = 1; 5876 uint32_t _flag_k = FK_NONE; 5877 uint32_t _flag_a = 0, _flag_b = 0; 5878 uint32_t _itail_tgt = 0; 5879 RECOMP_REGS_LOCALS 5880 RECOMP_ENTER(0x47082450u); 5881 5882 L_47082450: 5883 PUSH32(esp, ebx); /* 0x47082450: push ebx */ 5884 PUSH32(esp, esi); /* 0x47082451: push esi */ 5885 esi = MEM32(0x470AC3C8); /* 0x47082452: mov esi, dword ptr [0x470ac3c8] */ 5886 PUSH32(esp, edi); /* 0x47082458: push edi */ 5887 edi = ecx; /* 0x47082459: mov edi, ecx */ 5888 RECOMP_ICALL(esi); /* 0x4708245B: call esi */ 5889 RECOMP_FLAGS_IN(); 5890 MEM32(eax) = 0x28u; /* 0x4708245D: mov dword ptr [eax], 0x28 */ 5891 MEM32(edi) = 0xFFFFFFFFu; /* 0x47082463: mov dword ptr [edi], 0xffffffff */ 5892 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47082469: call dword ptr [0x470ac150] */ 5893 RECOMP_FLAGS_IN(); 5894 ebx = eax; /* 0x4708246F: mov ebx, eax */ 5895 RECOMP_ICALL(esi); /* 0x47082471: call esi */ 5896 RECOMP_FLAGS_IN(); 5897 eax = MEM32(eax); /* 0x47082473: mov eax, dword ptr [eax] */ 5898 /* test eax, eax */ /* 0x47082475: test eax, eax */ 5899 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5900 _cf = 0; 5901 _flag_k = FK_TEST; 5902 if (TEST_Z(_flag_a, _flag_b)) goto L_4708247B; /* 0x47082477: je 0x4708247b */ 5903 L_47082479: 5904 ebx = eax; /* 0x47082479: mov ebx, eax */ 5905 L_4708247B: 5906 RECOMP_ICALL(0x47039020u); /* 0x4708247B: call 0x47039020 */ /* not lifted */ 5907 RECOMP_FLAGS_IN(); 5908 esi = eax; /* 0x47082480: mov esi, eax */ 5909 ecx = esi; /* 0x47082482: mov ecx, esi */ 5910 RECOMP_ICALL(0x4703B210u); /* 0x47082484: call 0x4703b210 */ /* not lifted */ 5911 RECOMP_FLAGS_IN(); 5912 PUSH32(esp, eax); /* 0x47082489: push eax */ 5913 ecx = esi; /* 0x4708248A: mov ecx, esi */ 5914 RECOMP_ICALL(0x4703B240u); /* 0x4708248C: call 0x4703b240 */ /* not lifted */ 5915 RECOMP_FLAGS_IN(); 5916 PUSH32(esp, eax); /* 0x47082491: push eax */ 5917 ecx = esi; /* 0x47082492: mov ecx, esi */ 5918 RECOMP_ICALL(0x4703B080u); /* 0x47082494: call 0x4703b080 */ /* not lifted */ 5919 RECOMP_FLAGS_IN(); 5920 PUSH32(esp, eax); /* 0x47082499: push eax */ 5921 PUSH32(esp, ebx); /* 0x4708249A: push ebx */ 5922 PUSH32(esp, 0xFFFFFFFFu); /* 0x4708249B: push -1 */ 5923 PUSH32(esp, 0x26u); /* 0x4708249D: push 0x26 */ 5924 PUSH32(esp, 0x4710B794u); /* 0x4708249F: push 0x4710b794 */ 5925 ecx = esi; /* 0x470824A4: mov ecx, esi */ 5926 RECOMP_ICALL(0x4703A340u); /* 0x470824A6: call 0x4703a340 */ /* not lifted */ 5927 RECOMP_FLAGS_IN(); 5928 PUSH32(esp, 0x4710B768u); /* 0x470824AB: push 0x4710b768 */ 5929 PUSH32(esp, 0x471055F0u); /* 0x470824B0: push 0x471055f0 */ 5930 PUSH32(esp, 0x80u); /* 0x470824B5: push 0x80 */ 5931 PUSH32(esp, esi); /* 0x470824BA: push esi */ 5932 RECOMP_ICALL(0x47039830u); /* 0x470824BB: call 0x47039830 */ /* not lifted */ 5933 RECOMP_FLAGS_IN(); 5934 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5936 esp = esp + 0x10u; /* 0x470824C0: add esp, 0x10 */ 5937 _flag_k = FK_ADD; 5938 eax = edi; /* 0x470824C3: mov eax, edi */ 5939 edi = POP32_VAL(esp); /* 0x470824C5: pop edi */ 5940 esi = POP32_VAL(esp); /* 0x470824C6: pop esi */ 5941 ebx = POP32_VAL(esp); /* 0x470824C7: pop ebx */ 5942 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470824C8: ret 0xc */ 5943 RECOMP_REGS_OUT(); 5944 } 5945 5946 void sub_470824D0(void) { 5947 int _fpu_cmp = 0; 5948 uint32_t _cf = 0; 5949 int _df = 1; 5950 uint32_t _flag_k = FK_NONE; 5951 uint32_t _flag_a = 0, _flag_b = 0; 5952 uint32_t _itail_tgt = 0; 5953 RECOMP_REGS_LOCALS 5954 RECOMP_ENTER(0x470824D0u); 5955 5956 L_470824D0: 5957 ecx = 0x4710F0E5u; /* 0x470824D0: mov ecx, 0x4710f0e5 */ 5958 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x470824D5: call dword ptr [0x470ac1c8] */ 5959 RECOMP_FLAGS_IN(); 5960 PUSH32(esp, 0x470824F0u); /* 0x470824DB: push 0x470824f0 */ 5961 RECOMP_ICALL(0x470A32D9u); /* 0x470824E0: call 0x470a32d9 */ /* not lifted */ 5962 RECOMP_FLAGS_IN(); 5963 ecx = POP32_VAL(esp); /* 0x470824E5: pop ecx */ 5964 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470824E6: ret */ 5965 RECOMP_REGS_OUT(); 5966 } 5967 5968 void sub_470824F0(void) { 5969 int _fpu_cmp = 0; 5970 uint32_t _cf = 0; 5971 int _df = 1; 5972 uint32_t _flag_k = FK_NONE; 5973 uint32_t _flag_a = 0, _flag_b = 0; 5974 uint32_t _itail_tgt = 0; 5975 RECOMP_REGS_LOCALS 5976 RECOMP_ENTER(0x470824F0u); 5977 5978 L_470824F0: 5979 ecx = 0x4710F0E5u; /* 0x470824F0: mov ecx, 0x4710f0e5 */ 5980 L_470824F5: 5981 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 5982 { RECOMP_REGS_OUT(); return; } /* end of function */ 5983 _ljump: 5984 switch (_itail_tgt) { 5985 case 0x470824F0u: goto L_470824F0; 5986 case 0x470824F5u: goto L_470824F5; 5987 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5988 } 5989 RECOMP_REGS_OUT(); 5990 } 5991 5992 void sub_47082500(void) { 5993 int _fpu_cmp = 0; 5994 uint32_t _cf = 0; 5995 int _df = 1; 5996 uint32_t _flag_k = FK_NONE; 5997 uint32_t _flag_a = 0, _flag_b = 0; 5998 uint32_t _itail_tgt = 0; 5999 RECOMP_REGS_LOCALS 6000 RECOMP_ENTER(0x47082500u); 6001 6002 L_47082500: 6003 ecx = 0x4710F0E4u; /* 0x47082500: mov ecx, 0x4710f0e4 */ 6004 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47082505: call dword ptr [0x470ac1c4] */ 6005 RECOMP_FLAGS_IN(); 6006 PUSH32(esp, 0x47082520u); /* 0x4708250B: push 0x47082520 */ 6007 RECOMP_ICALL(0x470A32D9u); /* 0x47082510: call 0x470a32d9 */ /* not lifted */ 6008 RECOMP_FLAGS_IN(); 6009 ecx = POP32_VAL(esp); /* 0x47082515: pop ecx */ 6010 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082516: ret */ 6011 RECOMP_REGS_OUT(); 6012 } 6013 6014 void sub_47082520(void) { 6015 int _fpu_cmp = 0; 6016 uint32_t _cf = 0; 6017 int _df = 1; 6018 uint32_t _flag_k = FK_NONE; 6019 uint32_t _flag_a = 0, _flag_b = 0; 6020 uint32_t _itail_tgt = 0; 6021 RECOMP_REGS_LOCALS 6022 RECOMP_ENTER(0x47082520u); 6023 6024 L_47082520: 6025 ecx = 0x4710F0E4u; /* 0x47082520: mov ecx, 0x4710f0e4 */ 6026 L_47082525: 6027 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 6028 { RECOMP_REGS_OUT(); return; } /* end of function */ 6029 _ljump: 6030 switch (_itail_tgt) { 6031 case 0x47082520u: goto L_47082520; 6032 case 0x47082525u: goto L_47082525; 6033 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6034 } 6035 RECOMP_REGS_OUT(); 6036 } 6037 6038 void sub_47082530(void) { 6039 int _fpu_cmp = 0; 6040 uint32_t _cf = 0; 6041 int _df = 1; 6042 uint32_t _flag_k = FK_NONE; 6043 uint32_t _flag_a = 0, _flag_b = 0; 6044 uint32_t _itail_tgt = 0; 6045 RECOMP_REGS_LOCALS 6046 RECOMP_ENTER(0x47082530u); 6047 6048 L_47082530: 6049 /* cmp MEM32(ecx + 0x4), 0xFFFFFFFFu */ /* 0x47082530: cmp dword ptr [ecx + 4], -1 */ 6050 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(0xFFFFFFFFu); 6051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6052 _flag_k = FK_CMP; 6053 if (CMP_EQ(_flag_a, _flag_b)) goto L_47082542; /* 0x47082534: je 0x47082542 */ 6054 L_47082536: 6055 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47082536: call dword ptr [0x470ac3c8] */ 6056 RECOMP_FLAGS_IN(); 6057 MEM32(eax) = 0x28u; /* 0x4708253C: mov dword ptr [eax], 0x28 */ 6058 L_47082542: 6059 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6060 eax = eax | 0xFFFFFFFFu; /* 0x47082542: or eax, 0xffffffff */ 6061 _cf = 0; 6062 _flag_k = FK_TEST; 6063 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47082545: ret 0xc */ 6064 RECOMP_REGS_OUT(); 6065 } 6066 6067 void sub_47082550(void) { 6068 int _fpu_cmp = 0; 6069 uint32_t _cf = 0; 6070 int _df = 1; 6071 uint32_t _flag_k = FK_NONE; 6072 uint32_t _flag_a = 0, _flag_b = 0; 6073 uint32_t _itail_tgt = 0; 6074 RECOMP_REGS_LOCALS 6075 RECOMP_ENTER(0x47082550u); 6076 6077 L_47082550: 6078 PUSH32(esp, 0xFFFFFFFFu); /* 0x47082550: push -1 */ 6079 PUSH32(esp, 0); /* 0x47082552: push 0 */ 6080 RECOMP_ICALL(0x470829E0u); /* 0x47082554: call 0x470829e0 */ /* not lifted */ 6081 RECOMP_FLAGS_IN(); 6082 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082559: ret */ 6083 RECOMP_REGS_OUT(); 6084 } 6085 6086 void sub_47082560(void) { 6087 int _fpu_cmp = 0; 6088 uint32_t _cf = 0; 6089 int _df = 1; 6090 uint32_t _flag_k = FK_NONE; 6091 uint32_t _flag_a = 0, _flag_b = 0; 6092 uint32_t _itail_tgt = 0; 6093 RECOMP_REGS_LOCALS 6094 RECOMP_ENTER(0x47082560u); 6095 6096 L_47082560: 6097 /* cmp MEM32(ecx + 0x4), 0xFFFFFFFFu */ /* 0x47082560: cmp dword ptr [ecx + 4], -1 */ 6098 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(0xFFFFFFFFu); 6099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6100 _flag_k = FK_CMP; 6101 if (CMP_EQ(_flag_a, _flag_b)) goto L_47082572; /* 0x47082564: je 0x47082572 */ 6102 L_47082566: 6103 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47082566: call dword ptr [0x470ac3c8] */ 6104 RECOMP_FLAGS_IN(); 6105 MEM32(eax) = 0x28u; /* 0x4708256C: mov dword ptr [eax], 0x28 */ 6106 L_47082572: 6107 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6108 eax = eax | 0xFFFFFFFFu; /* 0x47082572: or eax, 0xffffffff */ 6109 _cf = 0; 6110 _flag_k = FK_TEST; 6111 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47082575: ret 8 */ 6112 RECOMP_REGS_OUT(); 6113 } 6114 6115 void sub_47082580(void) { 6116 int _fpu_cmp = 0; 6117 uint32_t _cf = 0; 6118 int _df = 1; 6119 uint32_t _flag_k = FK_NONE; 6120 uint32_t _flag_a = 0, _flag_b = 0; 6121 uint32_t _itail_tgt = 0; 6122 RECOMP_REGS_LOCALS 6123 RECOMP_ENTER(0x47082580u); 6124 6125 L_47082580: 6126 eax = MEM32(esp + 0x8); /* 0x47082580: mov eax, dword ptr [esp + 8] */ 6127 edx = MEM32(esp + 0x4); /* 0x47082584: mov edx, dword ptr [esp + 4] */ 6128 PUSH32(esp, eax); /* 0x47082588: push eax */ 6129 PUSH32(esp, edx); /* 0x47082589: push edx */ 6130 PUSH32(esp, 0xFFFFFFFFu); /* 0x4708258A: push -1 */ 6131 RECOMP_ICALL(0x47082A00u); /* 0x4708258C: call 0x47082a00 */ /* not lifted */ 6132 RECOMP_FLAGS_IN(); 6133 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47082591: ret 8 */ 6134 RECOMP_REGS_OUT(); 6135 } 6136 6137 void sub_470825A0(void) { 6138 int _fpu_cmp = 0; 6139 uint32_t _cf = 0; 6140 int _df = 1; 6141 uint32_t _flag_k = FK_NONE; 6142 uint32_t _flag_a = 0, _flag_b = 0; 6143 uint32_t _itail_tgt = 0; 6144 RECOMP_REGS_LOCALS 6145 RECOMP_ENTER(0x470825A0u); 6146 6147 L_470825A0: 6148 eax = MEM32(esp + 0x8); /* 0x470825A0: mov eax, dword ptr [esp + 8] */ 6149 edx = MEM32(esp + 0x4); /* 0x470825A4: mov edx, dword ptr [esp + 4] */ 6150 PUSH32(esp, eax); /* 0x470825A8: push eax */ 6151 PUSH32(esp, edx); /* 0x470825A9: push edx */ 6152 PUSH32(esp, 1); /* 0x470825AA: push 1 */ 6153 RECOMP_ICALL(0x47082A00u); /* 0x470825AC: call 0x47082a00 */ /* not lifted */ 6154 RECOMP_FLAGS_IN(); 6155 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470825B1: ret 8 */ 6156 RECOMP_REGS_OUT(); 6157 } 6158 6159 void sub_470825C0(void) { 6160 int _fpu_cmp = 0; 6161 uint32_t _cf = 0; 6162 int _df = 1; 6163 uint32_t _flag_k = FK_NONE; 6164 uint32_t _flag_a = 0, _flag_b = 0; 6165 uint32_t _itail_tgt = 0; 6166 RECOMP_REGS_LOCALS 6167 RECOMP_ENTER(0x470825C0u); 6168 6169 L_470825C0: 6170 eax = MEM32(esp + 0x8); /* 0x470825C0: mov eax, dword ptr [esp + 8] */ 6171 edx = MEM32(esp + 0x4); /* 0x470825C4: mov edx, dword ptr [esp + 4] */ 6172 PUSH32(esp, eax); /* 0x470825C8: push eax */ 6173 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 6174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6175 edx = edx + 2; /* 0x470825C9: add edx, 2 */ 6176 _flag_k = FK_ADD; 6177 PUSH32(esp, edx); /* 0x470825CC: push edx */ 6178 PUSH32(esp, 0xFFFFFFFFu); /* 0x470825CD: push -1 */ 6179 RECOMP_ICALL(0x47082A00u); /* 0x470825CF: call 0x47082a00 */ /* not lifted */ 6180 RECOMP_FLAGS_IN(); 6181 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470825D4: ret 8 */ 6182 RECOMP_REGS_OUT(); 6183 } 6184 6185 void sub_470825E0(void) { 6186 int _fpu_cmp = 0; 6187 uint32_t _cf = 0; 6188 int _df = 1; 6189 uint32_t _flag_k = FK_NONE; 6190 uint32_t _flag_a = 0, _flag_b = 0; 6191 uint32_t _itail_tgt = 0; 6192 RECOMP_REGS_LOCALS 6193 RECOMP_ENTER(0x470825E0u); 6194 6195 L_470825E0: 6196 eax = MEM32(esp + 0x8); /* 0x470825E0: mov eax, dword ptr [esp + 8] */ 6197 edx = MEM32(esp + 0x4); /* 0x470825E4: mov edx, dword ptr [esp + 4] */ 6198 PUSH32(esp, eax); /* 0x470825E8: push eax */ 6199 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 6200 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6201 edx = edx + 2; /* 0x470825E9: add edx, 2 */ 6202 _flag_k = FK_ADD; 6203 PUSH32(esp, edx); /* 0x470825EC: push edx */ 6204 PUSH32(esp, 1); /* 0x470825ED: push 1 */ 6205 RECOMP_ICALL(0x47082A00u); /* 0x470825EF: call 0x47082a00 */ /* not lifted */ 6206 RECOMP_FLAGS_IN(); 6207 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470825F4: ret 8 */ 6208 RECOMP_REGS_OUT(); 6209 } 6210 6211 void sub_47082600(void) { 6212 int _fpu_cmp = 0; 6213 uint32_t _cf = 0; 6214 int _df = 1; 6215 uint32_t _flag_k = FK_NONE; 6216 uint32_t _flag_a = 0, _flag_b = 0; 6217 uint32_t _itail_tgt = 0; 6218 RECOMP_REGS_LOCALS 6219 RECOMP_ENTER(0x47082600u); 6220 6221 L_47082600: 6222 eax = MEM32(esp + 0xC); /* 0x47082600: mov eax, dword ptr [esp + 0xc] */ 6223 edx = MEM32(esp + 0x8); /* 0x47082604: mov edx, dword ptr [esp + 8] */ 6224 PUSH32(esp, eax); /* 0x47082608: push eax */ 6225 eax = MEM32(esp + 0x8); /* 0x47082609: mov eax, dword ptr [esp + 8] */ 6226 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 6227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6228 edx = edx + 2; /* 0x4708260D: add edx, 2 */ 6229 _flag_k = FK_ADD; 6230 PUSH32(esp, edx); /* 0x47082610: push edx */ 6231 PUSH32(esp, eax); /* 0x47082611: push eax */ 6232 RECOMP_ICALL(0x47082A00u); /* 0x47082612: call 0x47082a00 */ /* not lifted */ 6233 RECOMP_FLAGS_IN(); 6234 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47082617: ret 0xc */ 6235 RECOMP_REGS_OUT(); 6236 } 6237 6238 void sub_47082620(void) { 6239 int _fpu_cmp = 0; 6240 uint32_t _cf = 0; 6241 int _df = 1; 6242 uint32_t _flag_k = FK_NONE; 6243 uint32_t _flag_a = 0, _flag_b = 0; 6244 uint32_t _itail_tgt = 0; 6245 RECOMP_REGS_LOCALS 6246 RECOMP_ENTER(0x47082620u); 6247 6248 L_47082620: 6249 eax = MEM32(esp + 0xC); /* 0x47082620: mov eax, dword ptr [esp + 0xc] */ 6250 edx = MEM32(esp + 0x8); /* 0x47082624: mov edx, dword ptr [esp + 8] */ 6251 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6252 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6253 eax = eax + 2; /* 0x47082628: add eax, 2 */ 6254 _flag_k = FK_ADD; 6255 PUSH32(esp, eax); /* 0x4708262B: push eax */ 6256 eax = MEM32(esp + 0x8); /* 0x4708262C: mov eax, dword ptr [esp + 8] */ 6257 PUSH32(esp, edx); /* 0x47082630: push edx */ 6258 PUSH32(esp, eax); /* 0x47082631: push eax */ 6259 RECOMP_ICALL(0x470829C0u); /* 0x47082632: call 0x470829c0 */ /* not lifted */ 6260 RECOMP_FLAGS_IN(); 6261 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47082637: ret 0xc */ 6262 RECOMP_REGS_OUT(); 6263 } 6264 6265 void sub_47082640(void) { 6266 int _fpu_cmp = 0; 6267 uint32_t _cf = 0; 6268 int _df = 1; 6269 uint32_t _flag_k = FK_NONE; 6270 uint32_t _flag_a = 0, _flag_b = 0; 6271 uint32_t _itail_tgt = 0; 6272 RECOMP_REGS_LOCALS 6273 RECOMP_ENTER(0x47082640u); 6274 6275 L_47082640: 6276 MEM32(0x4710F0E8) = 0x4710B810u; /* 0x47082640: mov dword ptr [0x4710f0e8], 0x4710b810 */ 6277 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4708264A: ret */ 6278 RECOMP_REGS_OUT(); 6279 } 6280 6281 void sub_47082650(void) { 6282 int _fpu_cmp = 0; 6283 uint32_t _cf = 0; 6284 int _df = 1; 6285 uint32_t _flag_k = FK_NONE; 6286 uint32_t _flag_a = 0, _flag_b = 0; 6287 uint32_t _itail_tgt = 0; 6288 RECOMP_REGS_LOCALS 6289 RECOMP_ENTER(0x47082650u); 6290 6291 L_47082650: 6292 eax = MEM32(esp + 0x4); /* 0x47082650: mov eax, dword ptr [esp + 4] */ 6293 /* test eax, eax */ /* 0x47082654: test eax, eax */ 6294 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6295 _cf = 0; 6296 _flag_k = FK_TEST; 6297 PUSH32(esp, esi); /* 0x47082656: push esi */ 6298 esi = ecx; /* 0x47082657: mov esi, ecx */ 6299 if (TEST_NZ(_flag_a, _flag_b)) goto L_47082662; /* 0x47082659: jne 0x47082662 */ 6300 L_4708265B: 6301 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6302 eax = eax | 0xFFFFFFFFu; /* 0x4708265B: or eax, 0xffffffff */ 6303 _cf = 0; 6304 _flag_k = FK_TEST; 6305 esi = POP32_VAL(esp); /* 0x4708265E: pop esi */ 6306 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x4708265F: ret 0x14 */ 6307 L_47082662: 6308 MEM32(esi) = eax; /* 0x47082662: mov dword ptr [esi], eax */ 6309 eax = MEM32(esp + 0x14); /* 0x47082664: mov eax, dword ptr [esp + 0x14] */ 6310 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 6311 eax = eax & 0xFFFFu; /* 0x47082668: and eax, 0xffff */ 6312 _cf = 0; 6313 _flag_k = FK_TEST; 6314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6315 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6316 eax = eax + 2; /* 0x4708266D: add eax, 2 */ 6317 _flag_k = FK_ADD; 6318 MEM32(esi + 0x8) = eax; /* 0x47082670: mov dword ptr [esi + 8], eax */ 6319 eax = MEM32(esp + 0xC); /* 0x47082673: mov eax, dword ptr [esp + 0xc] */ 6320 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47082677: call dword ptr [0x470ac3c8] */ 6321 RECOMP_FLAGS_IN(); 6322 MEM32(eax) = 0x28u; /* 0x4708267D: mov dword ptr [eax], 0x28 */ 6323 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6324 eax = eax | 0xFFFFFFFFu; /* 0x47082683: or eax, 0xffffffff */ 6325 _cf = 0; 6326 _flag_k = FK_TEST; 6327 MEM32(esi + 0x4) = eax; /* 0x47082686: mov dword ptr [esi + 4], eax */ 6328 esi = POP32_VAL(esp); /* 0x47082689: pop esi */ 6329 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x4708268A: ret 0x14 */ 6330 RECOMP_REGS_OUT(); 6331 } 6332 6333 void sub_47082690(void) { 6334 int _fpu_cmp = 0; 6335 uint32_t _cf = 0; 6336 int _df = 1; 6337 uint32_t _flag_k = FK_NONE; 6338 uint32_t _flag_a = 0, _flag_b = 0; 6339 uint32_t _itail_tgt = 0; 6340 RECOMP_REGS_LOCALS 6341 RECOMP_ENTER(0x47082690u); 6342 6343 L_47082690: 6344 eax = MEM32(esp + 0x14); /* 0x47082690: mov eax, dword ptr [esp + 0x14] */ 6345 edx = MEM32(esp + 0xC); /* 0x47082694: mov edx, dword ptr [esp + 0xc] */ 6346 PUSH32(esp, esi); /* 0x47082698: push esi */ 6347 PUSH32(esp, eax); /* 0x47082699: push eax */ 6348 eax = MEM32(esp + 0x10); /* 0x4708269A: mov eax, dword ptr [esp + 0x10] */ 6349 esi = ecx; /* 0x4708269E: mov esi, ecx */ 6350 ecx = MEM32(esp + 0x18); /* 0x470826A0: mov ecx, dword ptr [esp + 0x18] */ 6351 PUSH32(esp, ecx); /* 0x470826A4: push ecx */ 6352 ecx = MEM32(esp + 0x10); /* 0x470826A5: mov ecx, dword ptr [esp + 0x10] */ 6353 PUSH32(esp, edx); /* 0x470826A9: push edx */ 6354 PUSH32(esp, eax); /* 0x470826AA: push eax */ 6355 PUSH32(esp, ecx); /* 0x470826AB: push ecx */ 6356 ecx = esi; /* 0x470826AC: mov ecx, esi */ 6357 RECOMP_ICALL(0x47082B00u); /* 0x470826AE: call 0x47082b00 */ /* not lifted */ 6358 RECOMP_FLAGS_IN(); 6359 PUSH32(esp, eax); /* 0x470826B3: push eax */ 6360 ecx = esi; /* 0x470826B4: mov ecx, esi */ 6361 RECOMP_ICALL(0x47082650u); /* 0x470826B6: call 0x47082650 */ /* not lifted */ 6362 RECOMP_FLAGS_IN(); 6363 esi = POP32_VAL(esp); /* 0x470826BB: pop esi */ 6364 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470826BC: ret 0x14 */ 6365 RECOMP_REGS_OUT(); 6366 } 6367 6368 void sub_470826C0(void) { 6369 int _fpu_cmp = 0; 6370 uint32_t _cf = 0; 6371 int _df = 1; 6372 uint32_t _flag_k = FK_NONE; 6373 uint32_t _flag_a = 0, _flag_b = 0; 6374 uint32_t _itail_tgt = 0; 6375 RECOMP_REGS_LOCALS 6376 RECOMP_ENTER(0x470826C0u); 6377 6378 L_470826C0: 6379 /* cmp MEM32(ecx), 0xFFFFFFFFu */ /* 0x470826C0: cmp dword ptr [ecx], -1 */ 6380 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0xFFFFFFFFu); 6381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6382 _flag_k = FK_CMP; 6383 if (CMP_EQ(_flag_a, _flag_b)) goto L_470826D7; /* 0x470826C3: je 0x470826d7 */ 6384 L_470826C5: 6385 /* cmp MEM32(ecx + 0x4), 0xFFFFFFFFu */ /* 0x470826C5: cmp dword ptr [ecx + 4], -1 */ 6386 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(0xFFFFFFFFu); 6387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6388 _flag_k = FK_CMP; 6389 if (CMP_EQ(_flag_a, _flag_b)) goto L_470826D7; /* 0x470826C9: je 0x470826d7 */ 6390 L_470826CB: 6391 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470826CB: call dword ptr [0x470ac3c8] */ 6392 RECOMP_FLAGS_IN(); 6393 MEM32(eax) = 0x28u; /* 0x470826D1: mov dword ptr [eax], 0x28 */ 6394 L_470826D7: 6395 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6396 eax = eax | 0xFFFFFFFFu; /* 0x470826D7: or eax, 0xffffffff */ 6397 _cf = 0; 6398 _flag_k = FK_TEST; 6399 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470826DA: ret */ 6400 RECOMP_REGS_OUT(); 6401 } 6402 6403 void sub_470826E0(void) { 6404 int _fpu_cmp = 0; 6405 uint32_t _cf = 0; 6406 int _df = 1; 6407 uint32_t _flag_k = FK_NONE; 6408 uint32_t _flag_a = 0, _flag_b = 0; 6409 uint32_t _itail_tgt = 0; 6410 RECOMP_REGS_LOCALS 6411 RECOMP_ENTER(0x470826E0u); 6412 6413 L_470826E0: 6414 PUSH32(esp, 0xFFFFFFFFu); /* 0x470826E0: push -1 */ 6415 PUSH32(esp, 0x470A9E28u); /* 0x470826E2: push 0x470a9e28 */ 6416 eax = MEM32(FS_BASE + (0)); /* 0x470826E7: mov eax, dword ptr fs:[0] */ 6417 PUSH32(esp, eax); /* 0x470826ED: push eax */ 6418 MEM32(FS_BASE + (0)) = esp; /* 0x470826EE: mov dword ptr fs:[0], esp */ 6419 PUSH32(esp, ecx); /* 0x470826F5: push ecx */ 6420 PUSH32(esp, edi); /* 0x470826F6: push edi */ 6421 edi = ecx; /* 0x470826F7: mov edi, ecx */ 6422 MEM32(esp + 0x4) = edi; /* 0x470826F9: mov dword ptr [esp + 4], edi */ 6423 RECOMP_ICALL(0x47082C40u); /* 0x470826FD: call 0x47082c40 */ /* not lifted */ 6424 RECOMP_FLAGS_IN(); 6425 eax = MEM32(esp + 0x28); /* 0x47082702: mov eax, dword ptr [esp + 0x28] */ 6426 ecx = MEM32(esp + 0x24); /* 0x47082706: mov ecx, dword ptr [esp + 0x24] */ 6427 edx = MEM32(esp + 0x20); /* 0x4708270A: mov edx, dword ptr [esp + 0x20] */ 6428 PUSH32(esp, eax); /* 0x4708270E: push eax */ 6429 eax = MEM32(esp + 0x20); /* 0x4708270F: mov eax, dword ptr [esp + 0x20] */ 6430 PUSH32(esp, ecx); /* 0x47082713: push ecx */ 6431 ecx = MEM32(esp + 0x20); /* 0x47082714: mov ecx, dword ptr [esp + 0x20] */ 6432 PUSH32(esp, edx); /* 0x47082718: push edx */ 6433 PUSH32(esp, eax); /* 0x47082719: push eax */ 6434 PUSH32(esp, ecx); /* 0x4708271A: push ecx */ 6435 ecx = edi; /* 0x4708271B: mov ecx, edi */ 6436 MEM32(esp + 0x24) = 0; /* 0x4708271D: mov dword ptr [esp + 0x24], 0 */ 6437 RECOMP_ICALL(0x47082650u); /* 0x47082725: call 0x47082650 */ /* not lifted */ 6438 RECOMP_FLAGS_IN(); 6439 /* cmp eax, 0xFFFFFFFFu */ /* 0x4708272A: cmp eax, -1 */ 6440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6442 _flag_k = FK_CMP; 6443 if (CMP_NE(_flag_a, _flag_b)) goto L_470827A8; /* 0x4708272D: jne 0x470827a8 */ 6444 L_4708272F: 6445 PUSH32(esp, ebx); /* 0x4708272F: push ebx */ 6446 PUSH32(esp, esi); /* 0x47082730: push esi */ 6447 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47082731: call dword ptr [0x470ac150] */ 6448 RECOMP_FLAGS_IN(); 6449 ebx = eax; /* 0x47082737: mov ebx, eax */ 6450 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47082739: call dword ptr [0x470ac3c8] */ 6451 RECOMP_FLAGS_IN(); 6452 eax = MEM32(eax); /* 0x4708273F: mov eax, dword ptr [eax] */ 6453 /* test eax, eax */ /* 0x47082741: test eax, eax */ 6454 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6455 _cf = 0; 6456 _flag_k = FK_TEST; 6457 if (TEST_Z(_flag_a, _flag_b)) goto L_47082747; /* 0x47082743: je 0x47082747 */ 6458 L_47082745: 6459 ebx = eax; /* 0x47082745: mov ebx, eax */ 6460 L_47082747: 6461 RECOMP_ICALL(0x47039020u); /* 0x47082747: call 0x47039020 */ /* not lifted */ 6462 RECOMP_FLAGS_IN(); 6463 esi = eax; /* 0x4708274C: mov esi, eax */ 6464 ecx = esi; /* 0x4708274E: mov ecx, esi */ 6465 RECOMP_ICALL(0x4703B210u); /* 0x47082750: call 0x4703b210 */ /* not lifted */ 6466 RECOMP_FLAGS_IN(); 6467 PUSH32(esp, eax); /* 0x47082755: push eax */ 6468 ecx = esi; /* 0x47082756: mov ecx, esi */ 6469 RECOMP_ICALL(0x4703B240u); /* 0x47082758: call 0x4703b240 */ /* not lifted */ 6470 RECOMP_FLAGS_IN(); 6471 PUSH32(esp, eax); /* 0x4708275D: push eax */ 6472 ecx = esi; /* 0x4708275E: mov ecx, esi */ 6473 RECOMP_ICALL(0x4703B080u); /* 0x47082760: call 0x4703b080 */ /* not lifted */ 6474 RECOMP_FLAGS_IN(); 6475 PUSH32(esp, eax); /* 0x47082765: push eax */ 6476 PUSH32(esp, ebx); /* 0x47082766: push ebx */ 6477 PUSH32(esp, 0xFFFFFFFFu); /* 0x47082767: push -1 */ 6478 PUSH32(esp, 0xDDu); /* 0x47082769: push 0xdd */ 6479 PUSH32(esp, 0x4710B86Cu); /* 0x4708276E: push 0x4710b86c */ 6480 ecx = esi; /* 0x47082773: mov ecx, esi */ 6481 RECOMP_ICALL(0x4703A340u); /* 0x47082775: call 0x4703a340 */ /* not lifted */ 6482 RECOMP_FLAGS_IN(); 6483 PUSH32(esp, 0x4710B850u); /* 0x4708277A: push 0x4710b850 */ 6484 PUSH32(esp, 0x471055F0u); /* 0x4708277F: push 0x471055f0 */ 6485 PUSH32(esp, 0x80u); /* 0x47082784: push 0x80 */ 6486 PUSH32(esp, esi); /* 0x47082789: push esi */ 6487 RECOMP_ICALL(0x47039830u); /* 0x4708278A: call 0x47039830 */ /* not lifted */ 6488 RECOMP_FLAGS_IN(); 6489 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6490 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6491 esp = esp + 0x10u; /* 0x4708278F: add esp, 0x10 */ 6492 _flag_k = FK_ADD; 6493 esi = POP32_VAL(esp); /* 0x47082792: pop esi */ 6494 ebx = POP32_VAL(esp); /* 0x47082793: pop ebx */ 6495 eax = edi; /* 0x47082794: mov eax, edi */ 6496 edi = POP32_VAL(esp); /* 0x47082796: pop edi */ 6497 ecx = MEM32(esp + 0x4); /* 0x47082797: mov ecx, dword ptr [esp + 4] */ 6498 MEM32(FS_BASE + (0)) = ecx; /* 0x4708279B: mov dword ptr fs:[0], ecx */ 6499 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6500 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6501 esp = esp + 0x10u; /* 0x470827A2: add esp, 0x10 */ 6502 _flag_k = FK_ADD; 6503 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470827A5: ret 0x14 */ 6504 L_470827A8: 6505 ecx = MEM32(esp + 0x8); /* 0x470827A8: mov ecx, dword ptr [esp + 8] */ 6506 eax = edi; /* 0x470827AC: mov eax, edi */ 6507 edi = POP32_VAL(esp); /* 0x470827AE: pop edi */ 6508 MEM32(FS_BASE + (0)) = ecx; /* 0x470827AF: mov dword ptr fs:[0], ecx */ 6509 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6510 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6511 esp = esp + 0x10u; /* 0x470827B6: add esp, 0x10 */ 6512 _flag_k = FK_ADD; 6513 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470827B9: ret 0x14 */ 6514 RECOMP_REGS_OUT(); 6515 } 6516 6517 void sub_470827C0(void) { 6518 int _fpu_cmp = 0; 6519 uint32_t _cf = 0; 6520 int _df = 1; 6521 uint32_t _flag_k = FK_NONE; 6522 uint32_t _flag_a = 0, _flag_b = 0; 6523 uint32_t _itail_tgt = 0; 6524 RECOMP_REGS_LOCALS 6525 RECOMP_ENTER(0x470827C0u); 6526 6527 L_470827C0: 6528 PUSH32(esp, 0xFFFFFFFFu); /* 0x470827C0: push -1 */ 6529 PUSH32(esp, 0x470A9E48u); /* 0x470827C2: push 0x470a9e48 */ 6530 eax = MEM32(FS_BASE + (0)); /* 0x470827C7: mov eax, dword ptr fs:[0] */ 6531 PUSH32(esp, eax); /* 0x470827CD: push eax */ 6532 MEM32(FS_BASE + (0)) = esp; /* 0x470827CE: mov dword ptr fs:[0], esp */ 6533 PUSH32(esp, ecx); /* 0x470827D5: push ecx */ 6534 PUSH32(esp, edi); /* 0x470827D6: push edi */ 6535 edi = ecx; /* 0x470827D7: mov edi, ecx */ 6536 MEM32(esp + 0x4) = edi; /* 0x470827D9: mov dword ptr [esp + 4], edi */ 6537 RECOMP_ICALL(0x47082C40u); /* 0x470827DD: call 0x47082c40 */ /* not lifted */ 6538 RECOMP_FLAGS_IN(); 6539 eax = MEM32(esp + 0x18); /* 0x470827E2: mov eax, dword ptr [esp + 0x18] */ 6540 /* test eax, eax */ /* 0x470827E6: test eax, eax */ 6541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6542 _cf = 0; 6543 _flag_k = FK_TEST; 6544 MEM32(esp + 0x10) = 0; /* 0x470827E8: mov dword ptr [esp + 0x10], 0 */ 6545 if (TEST_NZ(_flag_a, _flag_b)) goto L_470827F9; /* 0x470827F0: jne 0x470827f9 */ 6546 L_470827F2: 6547 eax = 0x4710B8B0u; /* 0x470827F2: mov eax, 0x4710b8b0 */ 6548 goto L_47082801; /* 0x470827F7: jmp 0x47082801 */ 6549 L_470827F9: 6550 PUSH32(esp, eax); /* 0x470827F9: push eax */ 6551 ecx = edi; /* 0x470827FA: mov ecx, edi */ 6552 RECOMP_ICALL(0x47082B00u); /* 0x470827FC: call 0x47082b00 */ /* not lifted */ 6553 RECOMP_FLAGS_IN(); 6554 L_47082801: 6555 ecx = MEM32(esp + 0x28); /* 0x47082801: mov ecx, dword ptr [esp + 0x28] */ 6556 edx = MEM32(esp + 0x24); /* 0x47082805: mov edx, dword ptr [esp + 0x24] */ 6557 PUSH32(esp, ecx); /* 0x47082809: push ecx */ 6558 ecx = MEM32(esp + 0x24); /* 0x4708280A: mov ecx, dword ptr [esp + 0x24] */ 6559 PUSH32(esp, edx); /* 0x4708280E: push edx */ 6560 edx = MEM32(esp + 0x24); /* 0x4708280F: mov edx, dword ptr [esp + 0x24] */ 6561 PUSH32(esp, ecx); /* 0x47082813: push ecx */ 6562 PUSH32(esp, edx); /* 0x47082814: push edx */ 6563 PUSH32(esp, eax); /* 0x47082815: push eax */ 6564 ecx = edi; /* 0x47082816: mov ecx, edi */ 6565 RECOMP_ICALL(0x47082650u); /* 0x47082818: call 0x47082650 */ /* not lifted */ 6566 RECOMP_FLAGS_IN(); 6567 /* cmp eax, 0xFFFFFFFFu */ /* 0x4708281D: cmp eax, -1 */ 6568 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6570 _flag_k = FK_CMP; 6571 if (CMP_NE(_flag_a, _flag_b)) goto L_4708289B; /* 0x47082820: jne 0x4708289b */ 6572 L_47082822: 6573 PUSH32(esp, ebx); /* 0x47082822: push ebx */ 6574 PUSH32(esp, esi); /* 0x47082823: push esi */ 6575 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47082824: call dword ptr [0x470ac150] */ 6576 RECOMP_FLAGS_IN(); 6577 ebx = eax; /* 0x4708282A: mov ebx, eax */ 6578 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4708282C: call dword ptr [0x470ac3c8] */ 6579 RECOMP_FLAGS_IN(); 6580 eax = MEM32(eax); /* 0x47082832: mov eax, dword ptr [eax] */ 6581 /* test eax, eax */ /* 0x47082834: test eax, eax */ 6582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6583 _cf = 0; 6584 _flag_k = FK_TEST; 6585 if (TEST_Z(_flag_a, _flag_b)) goto L_4708283A; /* 0x47082836: je 0x4708283a */ 6586 L_47082838: 6587 ebx = eax; /* 0x47082838: mov ebx, eax */ 6588 L_4708283A: 6589 RECOMP_ICALL(0x47039020u); /* 0x4708283A: call 0x47039020 */ /* not lifted */ 6590 RECOMP_FLAGS_IN(); 6591 esi = eax; /* 0x4708283F: mov esi, eax */ 6592 ecx = esi; /* 0x47082841: mov ecx, esi */ 6593 RECOMP_ICALL(0x4703B210u); /* 0x47082843: call 0x4703b210 */ /* not lifted */ 6594 RECOMP_FLAGS_IN(); 6595 PUSH32(esp, eax); /* 0x47082848: push eax */ 6596 ecx = esi; /* 0x47082849: mov ecx, esi */ 6597 RECOMP_ICALL(0x4703B240u); /* 0x4708284B: call 0x4703b240 */ /* not lifted */ 6598 RECOMP_FLAGS_IN(); 6599 PUSH32(esp, eax); /* 0x47082850: push eax */ 6600 ecx = esi; /* 0x47082851: mov ecx, esi */ 6601 RECOMP_ICALL(0x4703B080u); /* 0x47082853: call 0x4703b080 */ /* not lifted */ 6602 RECOMP_FLAGS_IN(); 6603 PUSH32(esp, eax); /* 0x47082858: push eax */ 6604 PUSH32(esp, ebx); /* 0x47082859: push ebx */ 6605 PUSH32(esp, 0xFFFFFFFFu); /* 0x4708285A: push -1 */ 6606 PUSH32(esp, 0xF0u); /* 0x4708285C: push 0xf0 */ 6607 PUSH32(esp, 0x4710B86Cu); /* 0x47082861: push 0x4710b86c */ 6608 ecx = esi; /* 0x47082866: mov ecx, esi */ 6609 RECOMP_ICALL(0x4703A340u); /* 0x47082868: call 0x4703a340 */ /* not lifted */ 6610 RECOMP_FLAGS_IN(); 6611 PUSH32(esp, 0x4710B850u); /* 0x4708286D: push 0x4710b850 */ 6612 PUSH32(esp, 0x471055F0u); /* 0x47082872: push 0x471055f0 */ 6613 PUSH32(esp, 0x80u); /* 0x47082877: push 0x80 */ 6614 PUSH32(esp, esi); /* 0x4708287C: push esi */ 6615 RECOMP_ICALL(0x47039830u); /* 0x4708287D: call 0x47039830 */ /* not lifted */ 6616 RECOMP_FLAGS_IN(); 6617 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6619 esp = esp + 0x10u; /* 0x47082882: add esp, 0x10 */ 6620 _flag_k = FK_ADD; 6621 esi = POP32_VAL(esp); /* 0x47082885: pop esi */ 6622 ebx = POP32_VAL(esp); /* 0x47082886: pop ebx */ 6623 eax = edi; /* 0x47082887: mov eax, edi */ 6624 edi = POP32_VAL(esp); /* 0x47082889: pop edi */ 6625 ecx = MEM32(esp + 0x4); /* 0x4708288A: mov ecx, dword ptr [esp + 4] */ 6626 MEM32(FS_BASE + (0)) = ecx; /* 0x4708288E: mov dword ptr fs:[0], ecx */ 6627 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6628 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6629 esp = esp + 0x10u; /* 0x47082895: add esp, 0x10 */ 6630 _flag_k = FK_ADD; 6631 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x47082898: ret 0x14 */ 6632 L_4708289B: 6633 ecx = MEM32(esp + 0x8); /* 0x4708289B: mov ecx, dword ptr [esp + 8] */ 6634 eax = edi; /* 0x4708289F: mov eax, edi */ 6635 edi = POP32_VAL(esp); /* 0x470828A1: pop edi */ 6636 MEM32(FS_BASE + (0)) = ecx; /* 0x470828A2: mov dword ptr fs:[0], ecx */ 6637 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6638 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6639 esp = esp + 0x10u; /* 0x470828A9: add esp, 0x10 */ 6640 _flag_k = FK_ADD; 6641 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470828AC: ret 0x14 */ 6642 RECOMP_REGS_OUT(); 6643 } 6644 6645 void sub_470828B0(void) { 6646 int _fpu_cmp = 0; 6647 uint32_t _cf = 0; 6648 int _df = 1; 6649 uint32_t _flag_k = FK_NONE; 6650 uint32_t _flag_a = 0, _flag_b = 0; 6651 uint32_t _itail_tgt = 0; 6652 RECOMP_REGS_LOCALS 6653 RECOMP_ENTER(0x470828B0u); 6654 6655 L_470828B0: 6656 PUSH32(esp, 0xFFFFFFFFu); /* 0x470828B0: push -1 */ 6657 PUSH32(esp, 0x470A9E68u); /* 0x470828B2: push 0x470a9e68 */ 6658 eax = MEM32(FS_BASE + (0)); /* 0x470828B7: mov eax, dword ptr fs:[0] */ 6659 PUSH32(esp, eax); /* 0x470828BD: push eax */ 6660 MEM32(FS_BASE + (0)) = esp; /* 0x470828BE: mov dword ptr fs:[0], esp */ 6661 PUSH32(esp, ecx); /* 0x470828C5: push ecx */ 6662 PUSH32(esp, esi); /* 0x470828C6: push esi */ 6663 esi = ecx; /* 0x470828C7: mov esi, ecx */ 6664 MEM32(esp + 0x4) = esi; /* 0x470828C9: mov dword ptr [esp + 4], esi */ 6665 eax = MEM32(esi + 0x4); /* 0x470828CD: mov eax, dword ptr [esi + 4] */ 6666 /* test eax, eax */ /* 0x470828D0: test eax, eax */ 6667 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6668 _cf = 0; 6669 _flag_k = FK_TEST; 6670 MEM32(esp + 0x10) = 0; /* 0x470828D2: mov dword ptr [esp + 0x10], 0 */ 6671 if (TEST_S(_flag_a, _flag_b)) goto L_470828E1; /* 0x470828DA: jl 0x470828e1 */ 6672 L_470828DC: 6673 RECOMP_ICALL(0x470826C0u); /* 0x470828DC: call 0x470826c0 */ /* not lifted */ 6674 RECOMP_FLAGS_IN(); 6675 L_470828E1: 6676 ecx = esi; /* 0x470828E1: mov ecx, esi */ 6677 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470828E3: mov dword ptr [esp + 0x10], 0xffffffff */ 6678 RECOMP_ICALL(0x47082C30u); /* 0x470828EB: call 0x47082c30 */ /* not lifted */ 6679 RECOMP_FLAGS_IN(); 6680 ecx = MEM32(esp + 0x8); /* 0x470828F0: mov ecx, dword ptr [esp + 8] */ 6681 esi = POP32_VAL(esp); /* 0x470828F4: pop esi */ 6682 MEM32(FS_BASE + (0)) = ecx; /* 0x470828F5: mov dword ptr fs:[0], ecx */ 6683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6685 esp = esp + 0x10u; /* 0x470828FC: add esp, 0x10 */ 6686 _flag_k = FK_ADD; 6687 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470828FF: ret */ 6688 RECOMP_REGS_OUT(); 6689 } 6690 6691 void sub_47082900(void) { 6692 int _fpu_cmp = 0; 6693 uint32_t _cf = 0; 6694 int _df = 1; 6695 uint32_t _flag_k = FK_NONE; 6696 uint32_t _flag_a = 0, _flag_b = 0; 6697 uint32_t _itail_tgt = 0; 6698 RECOMP_REGS_LOCALS 6699 RECOMP_ENTER(0x47082900u); 6700 6701 L_47082900: 6702 PUSH32(esp, 0xFFFFFFFFu); /* 0x47082900: push -1 */ 6703 PUSH32(esp, 0x470A9E88u); /* 0x47082902: push 0x470a9e88 */ 6704 eax = MEM32(FS_BASE + (0)); /* 0x47082907: mov eax, dword ptr fs:[0] */ 6705 PUSH32(esp, eax); /* 0x4708290D: push eax */ 6706 MEM32(FS_BASE + (0)) = esp; /* 0x4708290E: mov dword ptr fs:[0], esp */ 6707 PUSH32(esp, ecx); /* 0x47082915: push ecx */ 6708 PUSH32(esp, esi); /* 0x47082916: push esi */ 6709 esi = ecx; /* 0x47082917: mov esi, ecx */ 6710 MEM32(esp + 0x4) = esi; /* 0x47082919: mov dword ptr [esp + 4], esi */ 6711 RECOMP_ICALL(0x47082C40u); /* 0x4708291D: call 0x47082c40 */ /* not lifted */ 6712 RECOMP_FLAGS_IN(); 6713 PUSH32(esp, 0xFFFFFFFFu); /* 0x47082922: push -1 */ 6714 PUSH32(esp, 0); /* 0x47082924: push 0 */ 6715 ecx = esi; /* 0x47082926: mov ecx, esi */ 6716 MEM32(esp + 0x18) = 0; /* 0x47082928: mov dword ptr [esp + 0x18], 0 */ 6717 RECOMP_ICALL(0x470829E0u); /* 0x47082930: call 0x470829e0 */ /* not lifted */ 6718 RECOMP_FLAGS_IN(); 6719 ecx = MEM32(esp + 0x8); /* 0x47082935: mov ecx, dword ptr [esp + 8] */ 6720 eax = esi; /* 0x47082939: mov eax, esi */ 6721 esi = POP32_VAL(esp); /* 0x4708293B: pop esi */ 6722 MEM32(FS_BASE + (0)) = ecx; /* 0x4708293C: mov dword ptr fs:[0], ecx */ 6723 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6724 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6725 esp = esp + 0x10u; /* 0x47082943: add esp, 0x10 */ 6726 _flag_k = FK_ADD; 6727 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082946: ret */ 6728 RECOMP_REGS_OUT(); 6729 } 6730 6731 void sub_47082950(void) { 6732 int _fpu_cmp = 0; 6733 uint32_t _cf = 0; 6734 int _df = 1; 6735 uint32_t _flag_k = FK_NONE; 6736 uint32_t _flag_a = 0, _flag_b = 0; 6737 uint32_t _itail_tgt = 0; 6738 RECOMP_REGS_LOCALS 6739 RECOMP_ENTER(0x47082950u); 6740 6741 L_47082950: 6742 ecx = 0x4710F0EDu; /* 0x47082950: mov ecx, 0x4710f0ed */ 6743 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47082955: call dword ptr [0x470ac1c8] */ 6744 RECOMP_FLAGS_IN(); 6745 PUSH32(esp, 0x47082970u); /* 0x4708295B: push 0x47082970 */ 6746 RECOMP_ICALL(0x470A32D9u); /* 0x47082960: call 0x470a32d9 */ /* not lifted */ 6747 RECOMP_FLAGS_IN(); 6748 ecx = POP32_VAL(esp); /* 0x47082965: pop ecx */ 6749 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082966: ret */ 6750 RECOMP_REGS_OUT(); 6751 } 6752 6753 void sub_47082970(void) { 6754 int _fpu_cmp = 0; 6755 uint32_t _cf = 0; 6756 int _df = 1; 6757 uint32_t _flag_k = FK_NONE; 6758 uint32_t _flag_a = 0, _flag_b = 0; 6759 uint32_t _itail_tgt = 0; 6760 RECOMP_REGS_LOCALS 6761 RECOMP_ENTER(0x47082970u); 6762 6763 L_47082970: 6764 ecx = 0x4710F0EDu; /* 0x47082970: mov ecx, 0x4710f0ed */ 6765 L_47082975: 6766 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 6767 { RECOMP_REGS_OUT(); return; } /* end of function */ 6768 _ljump: 6769 switch (_itail_tgt) { 6770 case 0x47082970u: goto L_47082970; 6771 case 0x47082975u: goto L_47082975; 6772 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6773 } 6774 RECOMP_REGS_OUT(); 6775 } 6776 6777 void sub_47082980(void) { 6778 int _fpu_cmp = 0; 6779 uint32_t _cf = 0; 6780 int _df = 1; 6781 uint32_t _flag_k = FK_NONE; 6782 uint32_t _flag_a = 0, _flag_b = 0; 6783 uint32_t _itail_tgt = 0; 6784 RECOMP_REGS_LOCALS 6785 RECOMP_ENTER(0x47082980u); 6786 6787 L_47082980: 6788 ecx = 0x4710F0ECu; /* 0x47082980: mov ecx, 0x4710f0ec */ 6789 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47082985: call dword ptr [0x470ac1c4] */ 6790 RECOMP_FLAGS_IN(); 6791 PUSH32(esp, 0x470829A0u); /* 0x4708298B: push 0x470829a0 */ 6792 RECOMP_ICALL(0x470A32D9u); /* 0x47082990: call 0x470a32d9 */ /* not lifted */ 6793 RECOMP_FLAGS_IN(); 6794 ecx = POP32_VAL(esp); /* 0x47082995: pop ecx */ 6795 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082996: ret */ 6796 RECOMP_REGS_OUT(); 6797 } 6798 6799 void sub_470829A0(void) { 6800 int _fpu_cmp = 0; 6801 uint32_t _cf = 0; 6802 int _df = 1; 6803 uint32_t _flag_k = FK_NONE; 6804 uint32_t _flag_a = 0, _flag_b = 0; 6805 uint32_t _itail_tgt = 0; 6806 RECOMP_REGS_LOCALS 6807 RECOMP_ENTER(0x470829A0u); 6808 6809 L_470829A0: 6810 ecx = 0x4710F0ECu; /* 0x470829A0: mov ecx, 0x4710f0ec */ 6811 L_470829A5: 6812 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 6813 { RECOMP_REGS_OUT(); return; } /* end of function */ 6814 _ljump: 6815 switch (_itail_tgt) { 6816 case 0x470829A0u: goto L_470829A0; 6817 case 0x470829A5u: goto L_470829A5; 6818 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6819 } 6820 RECOMP_REGS_OUT(); 6821 } 6822 6823 void sub_470829B0(void) { 6824 int _fpu_cmp = 0; 6825 uint32_t _cf = 0; 6826 int _df = 1; 6827 uint32_t _flag_k = FK_NONE; 6828 uint32_t _flag_a = 0, _flag_b = 0; 6829 uint32_t _itail_tgt = 0; 6830 RECOMP_REGS_LOCALS 6831 RECOMP_ENTER(0x470829B0u); 6832 6833 L_470829B0: 6834 MEM32(0x4710F0F0) = 0x4710B8BCu; /* 0x470829B0: mov dword ptr [0x4710f0f0], 0x4710b8bc */ 6835 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470829BA: ret */ 6836 RECOMP_REGS_OUT(); 6837 } 6838 6839 void sub_470829C0(void) { 6840 int _fpu_cmp = 0; 6841 uint32_t _cf = 0; 6842 int _df = 1; 6843 uint32_t _flag_k = FK_NONE; 6844 uint32_t _flag_a = 0, _flag_b = 0; 6845 uint32_t _itail_tgt = 0; 6846 RECOMP_REGS_LOCALS 6847 RECOMP_ENTER(0x470829C0u); 6848 6849 L_470829C0: 6850 /* cmp MEM32(ecx + 0x4), 0xFFFFFFFFu */ /* 0x470829C0: cmp dword ptr [ecx + 4], -1 */ 6851 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(0xFFFFFFFFu); 6852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6853 _flag_k = FK_CMP; 6854 if (CMP_EQ(_flag_a, _flag_b)) goto L_470829D2; /* 0x470829C4: je 0x470829d2 */ 6855 L_470829C6: 6856 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470829C6: call dword ptr [0x470ac3c8] */ 6857 RECOMP_FLAGS_IN(); 6858 MEM32(eax) = 0x28u; /* 0x470829CC: mov dword ptr [eax], 0x28 */ 6859 L_470829D2: 6860 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6861 eax = eax | 0xFFFFFFFFu; /* 0x470829D2: or eax, 0xffffffff */ 6862 _cf = 0; 6863 _flag_k = FK_TEST; 6864 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470829D5: ret 0xc */ 6865 RECOMP_REGS_OUT(); 6866 } 6867 6868 void sub_470829E0(void) { 6869 int _fpu_cmp = 0; 6870 uint32_t _cf = 0; 6871 int _df = 1; 6872 uint32_t _flag_k = FK_NONE; 6873 uint32_t _flag_a = 0, _flag_b = 0; 6874 uint32_t _itail_tgt = 0; 6875 RECOMP_REGS_LOCALS 6876 RECOMP_ENTER(0x470829E0u); 6877 6878 L_470829E0: 6879 eax = MEM32(esp + 0x4); /* 0x470829E0: mov eax, dword ptr [esp + 4] */ 6880 edx = MEM32(esp + 0x8); /* 0x470829E4: mov edx, dword ptr [esp + 8] */ 6881 MEM32(ecx) = eax; /* 0x470829E8: mov dword ptr [ecx], eax */ 6882 MEM32(ecx + 0x4) = edx; /* 0x470829EA: mov dword ptr [ecx + 4], edx */ 6883 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6884 eax = 0; /* 0x470829ED: xor eax, eax */ 6885 _cf = 0; 6886 _flag_k = FK_TEST; 6887 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470829EF: ret 8 */ 6888 RECOMP_REGS_OUT(); 6889 } 6890 6891 void sub_47082A00(void) { 6892 int _fpu_cmp = 0; 6893 uint32_t _cf = 0; 6894 int _df = 1; 6895 uint32_t _flag_k = FK_NONE; 6896 uint32_t _flag_a = 0, _flag_b = 0; 6897 uint32_t _itail_tgt = 0; 6898 RECOMP_REGS_LOCALS 6899 RECOMP_ENTER(0x47082A00u); 6900 6901 L_47082A00: 6902 /* cmp MEM32(ecx + 0x4), 0xFFFFFFFFu */ /* 0x47082A00: cmp dword ptr [ecx + 4], -1 */ 6903 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(0xFFFFFFFFu); 6904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6905 _flag_k = FK_CMP; 6906 if (CMP_EQ(_flag_a, _flag_b)) goto L_47082A1A; /* 0x47082A04: je 0x47082a1a */ 6907 L_47082A06: 6908 /* cmp MEM16(esp + 0x4), 0 */ /* 0x47082A06: cmp word ptr [esp + 4], 0 */ 6909 _flag_a = (uint32_t)(MEM16(esp + 0x4)) << 16; _flag_b = (uint32_t)(0) << 16; 6910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6911 _flag_k = FK_NARROW(FK_CMP, 16); 6912 if (CMP_EQ(_flag_a, _flag_b)) goto L_47082A1A; /* 0x47082A0C: je 0x47082a1a */ 6913 L_47082A0E: 6914 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47082A0E: call dword ptr [0x470ac3c8] */ 6915 RECOMP_FLAGS_IN(); 6916 MEM32(eax) = 0x28u; /* 0x47082A14: mov dword ptr [eax], 0x28 */ 6917 L_47082A1A: 6918 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6919 eax = eax | 0xFFFFFFFFu; /* 0x47082A1A: or eax, 0xffffffff */ 6920 _cf = 0; 6921 _flag_k = FK_TEST; 6922 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47082A1D: ret 0xc */ 6923 RECOMP_REGS_OUT(); 6924 } 6925 6926 void sub_47082A20(void) { 6927 int _fpu_cmp = 0; 6928 uint32_t _cf = 0; 6929 int _df = 1; 6930 uint32_t _flag_k = FK_NONE; 6931 uint32_t _flag_a = 0, _flag_b = 0; 6932 uint32_t _itail_tgt = 0; 6933 RECOMP_REGS_LOCALS 6934 RECOMP_ENTER(0x47082A20u); 6935 6936 L_47082A20: 6937 eax = MEM32(esp + 0x4); /* 0x47082A20: mov eax, dword ptr [esp + 4] */ 6938 /* test eax, eax */ /* 0x47082A24: test eax, eax */ 6939 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6940 _cf = 0; 6941 _flag_k = FK_TEST; 6942 PUSH32(esp, esi); /* 0x47082A26: push esi */ 6943 esi = ecx; /* 0x47082A27: mov esi, ecx */ 6944 if (TEST_Z(_flag_a, _flag_b)) goto L_47082A4F; /* 0x47082A29: je 0x47082a4f */ 6945 L_47082A2B: 6946 MEM32(esi) = eax; /* 0x47082A2B: mov dword ptr [esi], eax */ 6947 eax = MEM32(esp + 0x14); /* 0x47082A2D: mov eax, dword ptr [esp + 0x14] */ 6948 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 6949 eax = eax & 0xFFFFu; /* 0x47082A31: and eax, 0xffff */ 6950 _cf = 0; 6951 _flag_k = FK_TEST; 6952 MEM32(esi + 0x8) = eax; /* 0x47082A36: mov dword ptr [esi + 8], eax */ 6953 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47082A39: call dword ptr [0x470ac3c8] */ 6954 RECOMP_FLAGS_IN(); 6955 MEM32(eax) = 0x28u; /* 0x47082A3F: mov dword ptr [eax], 0x28 */ 6956 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6957 eax = eax | 0xFFFFFFFFu; /* 0x47082A45: or eax, 0xffffffff */ 6958 _cf = 0; 6959 _flag_k = FK_TEST; 6960 MEM32(esi + 0x4) = eax; /* 0x47082A48: mov dword ptr [esi + 4], eax */ 6961 esi = POP32_VAL(esp); /* 0x47082A4B: pop esi */ 6962 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x47082A4C: ret 0x14 */ 6963 L_47082A4F: 6964 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6965 eax = eax | 0xFFFFFFFFu; /* 0x47082A4F: or eax, 0xffffffff */ 6966 _cf = 0; 6967 _flag_k = FK_TEST; 6968 esi = POP32_VAL(esp); /* 0x47082A52: pop esi */ 6969 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x47082A53: ret 0x14 */ 6970 RECOMP_REGS_OUT(); 6971 } 6972 6973 void sub_47082A60(void) { 6974 int _fpu_cmp = 0; 6975 uint32_t _cf = 0; 6976 int _df = 1; 6977 uint32_t _flag_k = FK_NONE; 6978 uint32_t _flag_a = 0, _flag_b = 0; 6979 uint32_t _itail_tgt = 0; 6980 RECOMP_REGS_LOCALS 6981 RECOMP_ENTER(0x47082A60u); 6982 6983 L_47082A60: 6984 eax = MEM32(esp + 0x4); /* 0x47082A60: mov eax, dword ptr [esp + 4] */ 6985 /* test eax, eax */ /* 0x47082A64: test eax, eax */ 6986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6987 _cf = 0; 6988 _flag_k = FK_TEST; 6989 PUSH32(esp, ebx); /* 0x47082A66: push ebx */ 6990 PUSH32(esp, esi); /* 0x47082A67: push esi */ 6991 esi = MEM32(0x470AC3C8); /* 0x47082A68: mov esi, dword ptr [0x470ac3c8] */ 6992 PUSH32(esp, edi); /* 0x47082A6E: push edi */ 6993 edi = ecx; /* 0x47082A6F: mov edi, ecx */ 6994 MEM32(edi) = eax; /* 0x47082A71: mov dword ptr [edi], eax */ 6995 if (TEST_Z(_flag_a, _flag_b)) goto L_47082A92; /* 0x47082A73: je 0x47082a92 */ 6996 L_47082A75: 6997 MEM32(edi) = eax; /* 0x47082A75: mov dword ptr [edi], eax */ 6998 eax = MEM32(esp + 0x1C); /* 0x47082A77: mov eax, dword ptr [esp + 0x1c] */ 6999 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 7000 eax = eax & 0xFFFFu; /* 0x47082A7B: and eax, 0xffff */ 7001 _cf = 0; 7002 _flag_k = FK_TEST; 7003 MEM32(edi + 0x8) = eax; /* 0x47082A80: mov dword ptr [edi + 8], eax */ 7004 RECOMP_ICALL(esi); /* 0x47082A83: call esi */ 7005 RECOMP_FLAGS_IN(); 7006 MEM32(eax) = 0x28u; /* 0x47082A85: mov dword ptr [eax], 0x28 */ 7007 MEM32(edi + 0x4) = 0xFFFFFFFFu; /* 0x47082A8B: mov dword ptr [edi + 4], 0xffffffff */ 7008 L_47082A92: 7009 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47082A92: call dword ptr [0x470ac150] */ 7010 RECOMP_FLAGS_IN(); 7011 ebx = eax; /* 0x47082A98: mov ebx, eax */ 7012 RECOMP_ICALL(esi); /* 0x47082A9A: call esi */ 7013 RECOMP_FLAGS_IN(); 7014 eax = MEM32(eax); /* 0x47082A9C: mov eax, dword ptr [eax] */ 7015 /* test eax, eax */ /* 0x47082A9E: test eax, eax */ 7016 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7017 _cf = 0; 7018 _flag_k = FK_TEST; 7019 if (TEST_Z(_flag_a, _flag_b)) goto L_47082AA4; /* 0x47082AA0: je 0x47082aa4 */ 7020 L_47082AA2: 7021 ebx = eax; /* 0x47082AA2: mov ebx, eax */ 7022 L_47082AA4: 7023 RECOMP_ICALL(0x47039020u); /* 0x47082AA4: call 0x47039020 */ /* not lifted */ 7024 RECOMP_FLAGS_IN(); 7025 esi = eax; /* 0x47082AA9: mov esi, eax */ 7026 ecx = esi; /* 0x47082AAB: mov ecx, esi */ 7027 RECOMP_ICALL(0x4703B210u); /* 0x47082AAD: call 0x4703b210 */ /* not lifted */ 7028 RECOMP_FLAGS_IN(); 7029 PUSH32(esp, eax); /* 0x47082AB2: push eax */ 7030 ecx = esi; /* 0x47082AB3: mov ecx, esi */ 7031 RECOMP_ICALL(0x4703B240u); /* 0x47082AB5: call 0x4703b240 */ /* not lifted */ 7032 RECOMP_FLAGS_IN(); 7033 PUSH32(esp, eax); /* 0x47082ABA: push eax */ 7034 ecx = esi; /* 0x47082ABB: mov ecx, esi */ 7035 RECOMP_ICALL(0x4703B080u); /* 0x47082ABD: call 0x4703b080 */ /* not lifted */ 7036 RECOMP_FLAGS_IN(); 7037 PUSH32(esp, eax); /* 0x47082AC2: push eax */ 7038 PUSH32(esp, ebx); /* 0x47082AC3: push ebx */ 7039 PUSH32(esp, 0xFFFFFFFFu); /* 0x47082AC4: push -1 */ 7040 PUSH32(esp, 0x71u); /* 0x47082AC6: push 0x71 */ 7041 PUSH32(esp, 0x4710B920u); /* 0x47082AC8: push 0x4710b920 */ 7042 ecx = esi; /* 0x47082ACD: mov ecx, esi */ 7043 RECOMP_ICALL(0x4703A340u); /* 0x47082ACF: call 0x4703a340 */ /* not lifted */ 7044 RECOMP_FLAGS_IN(); 7045 PUSH32(esp, 0x4710B8FCu); /* 0x47082AD4: push 0x4710b8fc */ 7046 PUSH32(esp, 0x471055F0u); /* 0x47082AD9: push 0x471055f0 */ 7047 PUSH32(esp, 0x80u); /* 0x47082ADE: push 0x80 */ 7048 PUSH32(esp, esi); /* 0x47082AE3: push esi */ 7049 RECOMP_ICALL(0x47039830u); /* 0x47082AE4: call 0x47039830 */ /* not lifted */ 7050 RECOMP_FLAGS_IN(); 7051 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7052 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7053 esp = esp + 0x10u; /* 0x47082AE9: add esp, 0x10 */ 7054 _flag_k = FK_ADD; 7055 eax = edi; /* 0x47082AEC: mov eax, edi */ 7056 edi = POP32_VAL(esp); /* 0x47082AEE: pop edi */ 7057 esi = POP32_VAL(esp); /* 0x47082AEF: pop esi */ 7058 ebx = POP32_VAL(esp); /* 0x47082AF0: pop ebx */ 7059 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x47082AF1: ret 0x14 */ 7060 RECOMP_REGS_OUT(); 7061 } 7062 7063 void sub_47082B00(void) { 7064 int _fpu_cmp = 0; 7065 uint32_t _cf = 0; 7066 int _df = 1; 7067 uint32_t _flag_k = FK_NONE; 7068 uint32_t _flag_a = 0, _flag_b = 0; 7069 uint32_t _itail_tgt = 0; 7070 RECOMP_REGS_LOCALS 7071 RECOMP_ENTER(0x47082B00u); 7072 7073 L_47082B00: 7074 eax = MEM32(esp + 0x4); /* 0x47082B00: mov eax, dword ptr [esp + 4] */ 7075 /* test eax, eax */ /* 0x47082B04: test eax, eax */ 7076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7077 _cf = 0; 7078 _flag_k = FK_TEST; 7079 if (TEST_NZ(_flag_a, _flag_b)) goto L_47082B19; /* 0x47082B06: jne 0x47082b19 */ 7080 L_47082B08: 7081 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47082B08: call dword ptr [0x470ac3c8] */ 7082 RECOMP_FLAGS_IN(); 7083 MEM32(eax) = 0x16u; /* 0x47082B0E: mov dword ptr [eax], 0x16 */ 7084 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7085 eax = 0; /* 0x47082B14: xor eax, eax */ 7086 _cf = 0; 7087 _flag_k = FK_TEST; 7088 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47082B16: ret 4 */ 7089 L_47082B19: 7090 PUSH32(esp, eax); /* 0x47082B19: push eax */ 7091 RECOMP_ICALL(0x4700B5C0u); /* 0x47082B1A: call 0x4700b5c0 */ /* not lifted */ 7092 RECOMP_FLAGS_IN(); 7093 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7095 esp = esp + 4; /* 0x47082B1F: add esp, 4 */ 7096 _flag_k = FK_ADD; 7097 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47082B22: ret 4 */ 7098 RECOMP_REGS_OUT(); 7099 } 7100 7101 void sub_47082B30(void) { 7102 int _fpu_cmp = 0; 7103 uint32_t _cf = 0; 7104 int _df = 1; 7105 uint32_t _flag_k = FK_NONE; 7106 uint32_t _flag_a = 0, _flag_b = 0; 7107 uint32_t _itail_tgt = 0; 7108 RECOMP_REGS_LOCALS 7109 RECOMP_ENTER(0x47082B30u); 7110 7111 L_47082B30: 7112 eax = MEM32(esp + 0x4); /* 0x47082B30: mov eax, dword ptr [esp + 4] */ 7113 /* test eax, eax */ /* 0x47082B34: test eax, eax */ 7114 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7115 _cf = 0; 7116 _flag_k = FK_TEST; 7117 PUSH32(esp, esi); /* 0x47082B36: push esi */ 7118 esi = ecx; /* 0x47082B37: mov esi, ecx */ 7119 if (TEST_NZ(_flag_a, _flag_b)) goto L_47082B42; /* 0x47082B39: jne 0x47082b42 */ 7120 L_47082B3B: 7121 eax = 0x4710B8B0u; /* 0x47082B3B: mov eax, 0x4710b8b0 */ 7122 goto L_47082B4B; /* 0x47082B40: jmp 0x47082b4b */ 7123 L_47082B42: 7124 PUSH32(esp, eax); /* 0x47082B42: push eax */ 7125 RECOMP_ICALL(0x4700B5C0u); /* 0x47082B43: call 0x4700b5c0 */ /* not lifted */ 7126 RECOMP_FLAGS_IN(); 7127 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7129 esp = esp + 4; /* 0x47082B48: add esp, 4 */ 7130 _flag_k = FK_ADD; 7131 L_47082B4B: 7132 /* test eax, eax */ /* 0x47082B4B: test eax, eax */ 7133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7134 _cf = 0; 7135 _flag_k = FK_TEST; 7136 if (TEST_Z(_flag_a, _flag_b)) goto L_47082B73; /* 0x47082B4D: je 0x47082b73 */ 7137 L_47082B4F: 7138 MEM32(esi) = eax; /* 0x47082B4F: mov dword ptr [esi], eax */ 7139 eax = MEM32(esp + 0x14); /* 0x47082B51: mov eax, dword ptr [esp + 0x14] */ 7140 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 7141 eax = eax & 0xFFFFu; /* 0x47082B55: and eax, 0xffff */ 7142 _cf = 0; 7143 _flag_k = FK_TEST; 7144 MEM32(esi + 0x8) = eax; /* 0x47082B5A: mov dword ptr [esi + 8], eax */ 7145 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47082B5D: call dword ptr [0x470ac3c8] */ 7146 RECOMP_FLAGS_IN(); 7147 MEM32(eax) = 0x28u; /* 0x47082B63: mov dword ptr [eax], 0x28 */ 7148 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7149 eax = eax | 0xFFFFFFFFu; /* 0x47082B69: or eax, 0xffffffff */ 7150 _cf = 0; 7151 _flag_k = FK_TEST; 7152 MEM32(esi + 0x4) = eax; /* 0x47082B6C: mov dword ptr [esi + 4], eax */ 7153 esi = POP32_VAL(esp); /* 0x47082B6F: pop esi */ 7154 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x47082B70: ret 0x14 */ 7155 L_47082B73: 7156 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7157 eax = eax | 0xFFFFFFFFu; /* 0x47082B73: or eax, 0xffffffff */ 7158 _cf = 0; 7159 _flag_k = FK_TEST; 7160 esi = POP32_VAL(esp); /* 0x47082B76: pop esi */ 7161 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x47082B77: ret 0x14 */ 7162 RECOMP_REGS_OUT(); 7163 } 7164 7165 void sub_47082B80(void) { 7166 int _fpu_cmp = 0; 7167 uint32_t _cf = 0; 7168 int _df = 1; 7169 uint32_t _flag_k = FK_NONE; 7170 uint32_t _flag_a = 0, _flag_b = 0; 7171 uint32_t _itail_tgt = 0; 7172 RECOMP_REGS_LOCALS 7173 RECOMP_ENTER(0x47082B80u); 7174 7175 L_47082B80: 7176 eax = MEM32(esp + 0x4); /* 0x47082B80: mov eax, dword ptr [esp + 4] */ 7177 /* test eax, eax */ /* 0x47082B84: test eax, eax */ 7178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7179 _cf = 0; 7180 _flag_k = FK_TEST; 7181 PUSH32(esp, ebx); /* 0x47082B86: push ebx */ 7182 PUSH32(esp, esi); /* 0x47082B87: push esi */ 7183 PUSH32(esp, edi); /* 0x47082B88: push edi */ 7184 edi = ecx; /* 0x47082B89: mov edi, ecx */ 7185 if (TEST_NZ(_flag_a, _flag_b)) goto L_47082B94; /* 0x47082B8B: jne 0x47082b94 */ 7186 L_47082B8D: 7187 eax = 0x4710B8B0u; /* 0x47082B8D: mov eax, 0x4710b8b0 */ 7188 goto L_47082B9D; /* 0x47082B92: jmp 0x47082b9d */ 7189 L_47082B94: 7190 PUSH32(esp, eax); /* 0x47082B94: push eax */ 7191 RECOMP_ICALL(0x4700B5C0u); /* 0x47082B95: call 0x4700b5c0 */ /* not lifted */ 7192 RECOMP_FLAGS_IN(); 7193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7195 esp = esp + 4; /* 0x47082B9A: add esp, 4 */ 7196 _flag_k = FK_ADD; 7197 L_47082B9D: 7198 /* test eax, eax */ /* 0x47082B9D: test eax, eax */ 7199 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7200 _cf = 0; 7201 _flag_k = FK_TEST; 7202 esi = MEM32(0x470AC3C8); /* 0x47082B9F: mov esi, dword ptr [0x470ac3c8] */ 7203 if (TEST_Z(_flag_a, _flag_b)) goto L_47082BC4; /* 0x47082BA5: je 0x47082bc4 */ 7204 L_47082BA7: 7205 MEM32(edi) = eax; /* 0x47082BA7: mov dword ptr [edi], eax */ 7206 eax = MEM32(esp + 0x1C); /* 0x47082BA9: mov eax, dword ptr [esp + 0x1c] */ 7207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 7208 eax = eax & 0xFFFFu; /* 0x47082BAD: and eax, 0xffff */ 7209 _cf = 0; 7210 _flag_k = FK_TEST; 7211 MEM32(edi + 0x8) = eax; /* 0x47082BB2: mov dword ptr [edi + 8], eax */ 7212 RECOMP_ICALL(esi); /* 0x47082BB5: call esi */ 7213 RECOMP_FLAGS_IN(); 7214 MEM32(eax) = 0x28u; /* 0x47082BB7: mov dword ptr [eax], 0x28 */ 7215 MEM32(edi + 0x4) = 0xFFFFFFFFu; /* 0x47082BBD: mov dword ptr [edi + 4], 0xffffffff */ 7216 L_47082BC4: 7217 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47082BC4: call dword ptr [0x470ac150] */ 7218 RECOMP_FLAGS_IN(); 7219 ebx = eax; /* 0x47082BCA: mov ebx, eax */ 7220 RECOMP_ICALL(esi); /* 0x47082BCC: call esi */ 7221 RECOMP_FLAGS_IN(); 7222 eax = MEM32(eax); /* 0x47082BCE: mov eax, dword ptr [eax] */ 7223 /* test eax, eax */ /* 0x47082BD0: test eax, eax */ 7224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7225 _cf = 0; 7226 _flag_k = FK_TEST; 7227 if (TEST_Z(_flag_a, _flag_b)) goto L_47082BD6; /* 0x47082BD2: je 0x47082bd6 */ 7228 L_47082BD4: 7229 ebx = eax; /* 0x47082BD4: mov ebx, eax */ 7230 L_47082BD6: 7231 RECOMP_ICALL(0x47039020u); /* 0x47082BD6: call 0x47039020 */ /* not lifted */ 7232 RECOMP_FLAGS_IN(); 7233 esi = eax; /* 0x47082BDB: mov esi, eax */ 7234 ecx = esi; /* 0x47082BDD: mov ecx, esi */ 7235 RECOMP_ICALL(0x4703B210u); /* 0x47082BDF: call 0x4703b210 */ /* not lifted */ 7236 RECOMP_FLAGS_IN(); 7237 PUSH32(esp, eax); /* 0x47082BE4: push eax */ 7238 ecx = esi; /* 0x47082BE5: mov ecx, esi */ 7239 RECOMP_ICALL(0x4703B240u); /* 0x47082BE7: call 0x4703b240 */ /* not lifted */ 7240 RECOMP_FLAGS_IN(); 7241 PUSH32(esp, eax); /* 0x47082BEC: push eax */ 7242 ecx = esi; /* 0x47082BED: mov ecx, esi */ 7243 RECOMP_ICALL(0x4703B080u); /* 0x47082BEF: call 0x4703b080 */ /* not lifted */ 7244 RECOMP_FLAGS_IN(); 7245 PUSH32(esp, eax); /* 0x47082BF4: push eax */ 7246 PUSH32(esp, ebx); /* 0x47082BF5: push ebx */ 7247 PUSH32(esp, 0xFFFFFFFFu); /* 0x47082BF6: push -1 */ 7248 PUSH32(esp, 0xB0u); /* 0x47082BF8: push 0xb0 */ 7249 PUSH32(esp, 0x4710B920u); /* 0x47082BFD: push 0x4710b920 */ 7250 ecx = esi; /* 0x47082C02: mov ecx, esi */ 7251 RECOMP_ICALL(0x4703A340u); /* 0x47082C04: call 0x4703a340 */ /* not lifted */ 7252 RECOMP_FLAGS_IN(); 7253 PUSH32(esp, 0x4710B964u); /* 0x47082C09: push 0x4710b964 */ 7254 PUSH32(esp, 0x471055F0u); /* 0x47082C0E: push 0x471055f0 */ 7255 PUSH32(esp, 0x80u); /* 0x47082C13: push 0x80 */ 7256 PUSH32(esp, esi); /* 0x47082C18: push esi */ 7257 RECOMP_ICALL(0x47039830u); /* 0x47082C19: call 0x47039830 */ /* not lifted */ 7258 RECOMP_FLAGS_IN(); 7259 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7260 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7261 esp = esp + 0x10u; /* 0x47082C1E: add esp, 0x10 */ 7262 _flag_k = FK_ADD; 7263 eax = edi; /* 0x47082C21: mov eax, edi */ 7264 edi = POP32_VAL(esp); /* 0x47082C23: pop edi */ 7265 esi = POP32_VAL(esp); /* 0x47082C24: pop esi */ 7266 ebx = POP32_VAL(esp); /* 0x47082C25: pop ebx */ 7267 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x47082C26: ret 0x14 */ 7268 RECOMP_REGS_OUT(); 7269 } 7270 7271 void sub_47082C30(void) { 7272 int _fpu_cmp = 0; 7273 uint32_t _cf = 0; 7274 int _df = 1; 7275 uint32_t _flag_k = FK_NONE; 7276 uint32_t _flag_a = 0, _flag_b = 0; 7277 uint32_t _itail_tgt = 0; 7278 RECOMP_REGS_LOCALS 7279 RECOMP_ENTER(0x47082C30u); 7280 7281 L_47082C30: 7282 MEM32(ecx) = 0; /* 0x47082C30: mov dword ptr [ecx], 0 */ 7283 MEM32(ecx + 0x4) = 0xFFFFFFFFu; /* 0x47082C36: mov dword ptr [ecx + 4], 0xffffffff */ 7284 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082C3D: ret */ 7285 RECOMP_REGS_OUT(); 7286 } 7287 7288 void sub_47082C40(void) { 7289 int _fpu_cmp = 0; 7290 uint32_t _cf = 0; 7291 int _df = 1; 7292 uint32_t _flag_k = FK_NONE; 7293 uint32_t _flag_a = 0, _flag_b = 0; 7294 uint32_t _itail_tgt = 0; 7295 RECOMP_REGS_LOCALS 7296 RECOMP_ENTER(0x47082C40u); 7297 7298 L_47082C40: 7299 eax = ecx; /* 0x47082C40: mov eax, ecx */ 7300 MEM32(eax) = 0; /* 0x47082C42: mov dword ptr [eax], 0 */ 7301 MEM32(eax + 0x4) = 0xFFFFFFFFu; /* 0x47082C48: mov dword ptr [eax + 4], 0xffffffff */ 7302 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082C4F: ret */ 7303 RECOMP_REGS_OUT(); 7304 } 7305 7306 void sub_47082C50(void) { 7307 int _fpu_cmp = 0; 7308 uint32_t _cf = 0; 7309 int _df = 1; 7310 uint32_t _flag_k = FK_NONE; 7311 uint32_t _flag_a = 0, _flag_b = 0; 7312 uint32_t _itail_tgt = 0; 7313 RECOMP_REGS_LOCALS 7314 RECOMP_ENTER(0x47082C50u); 7315 7316 L_47082C50: 7317 PUSH32(esp, esi); /* 0x47082C50: push esi */ 7318 esi = ecx; /* 0x47082C51: mov esi, ecx */ 7319 /* cmp MEM32(esi + 0x4), 0xFFFFFFFFu */ /* 0x47082C53: cmp dword ptr [esi + 4], -1 */ 7320 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(0xFFFFFFFFu); 7321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7322 _flag_k = FK_CMP; 7323 if (CMP_EQ(_flag_a, _flag_b)) goto L_47082C65; /* 0x47082C57: je 0x47082c65 */ 7324 L_47082C59: 7325 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47082C59: call dword ptr [0x470ac3c8] */ 7326 RECOMP_FLAGS_IN(); 7327 MEM32(eax) = 0x28u; /* 0x47082C5F: mov dword ptr [eax], 0x28 */ 7328 L_47082C65: 7329 MEM32(esi) = 0; /* 0x47082C65: mov dword ptr [esi], 0 */ 7330 MEM32(esi + 0x4) = 0xFFFFFFFFu; /* 0x47082C6B: mov dword ptr [esi + 4], 0xffffffff */ 7331 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7332 eax = eax | 0xFFFFFFFFu; /* 0x47082C72: or eax, 0xffffffff */ 7333 _cf = 0; 7334 _flag_k = FK_TEST; 7335 esi = POP32_VAL(esp); /* 0x47082C75: pop esi */ 7336 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082C76: ret */ 7337 RECOMP_REGS_OUT(); 7338 } 7339 7340 void sub_47082C80(void) { 7341 int _fpu_cmp = 0; 7342 uint32_t _cf = 0; 7343 int _df = 1; 7344 uint32_t _flag_k = FK_NONE; 7345 uint32_t _flag_a = 0, _flag_b = 0; 7346 uint32_t _itail_tgt = 0; 7347 RECOMP_REGS_LOCALS 7348 RECOMP_ENTER(0x47082C80u); 7349 7350 L_47082C80: 7351 ecx = 0x4710F0F5u; /* 0x47082C80: mov ecx, 0x4710f0f5 */ 7352 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47082C85: call dword ptr [0x470ac1c8] */ 7353 RECOMP_FLAGS_IN(); 7354 PUSH32(esp, 0x47082CA0u); /* 0x47082C8B: push 0x47082ca0 */ 7355 RECOMP_ICALL(0x470A32D9u); /* 0x47082C90: call 0x470a32d9 */ /* not lifted */ 7356 RECOMP_FLAGS_IN(); 7357 ecx = POP32_VAL(esp); /* 0x47082C95: pop ecx */ 7358 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082C96: ret */ 7359 RECOMP_REGS_OUT(); 7360 } 7361 7362 void sub_47082CA0(void) { 7363 int _fpu_cmp = 0; 7364 uint32_t _cf = 0; 7365 int _df = 1; 7366 uint32_t _flag_k = FK_NONE; 7367 uint32_t _flag_a = 0, _flag_b = 0; 7368 uint32_t _itail_tgt = 0; 7369 RECOMP_REGS_LOCALS 7370 RECOMP_ENTER(0x47082CA0u); 7371 7372 L_47082CA0: 7373 ecx = 0x4710F0F5u; /* 0x47082CA0: mov ecx, 0x4710f0f5 */ 7374 L_47082CA5: 7375 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 7376 { RECOMP_REGS_OUT(); return; } /* end of function */ 7377 _ljump: 7378 switch (_itail_tgt) { 7379 case 0x47082CA0u: goto L_47082CA0; 7380 case 0x47082CA5u: goto L_47082CA5; 7381 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 7382 } 7383 RECOMP_REGS_OUT(); 7384 } 7385 7386 void sub_47082CB0(void) { 7387 int _fpu_cmp = 0; 7388 uint32_t _cf = 0; 7389 int _df = 1; 7390 uint32_t _flag_k = FK_NONE; 7391 uint32_t _flag_a = 0, _flag_b = 0; 7392 uint32_t _itail_tgt = 0; 7393 RECOMP_REGS_LOCALS 7394 RECOMP_ENTER(0x47082CB0u); 7395 7396 L_47082CB0: 7397 ecx = 0x4710F0F4u; /* 0x47082CB0: mov ecx, 0x4710f0f4 */ 7398 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47082CB5: call dword ptr [0x470ac1c4] */ 7399 RECOMP_FLAGS_IN(); 7400 PUSH32(esp, 0x47082CD0u); /* 0x47082CBB: push 0x47082cd0 */ 7401 RECOMP_ICALL(0x470A32D9u); /* 0x47082CC0: call 0x470a32d9 */ /* not lifted */ 7402 RECOMP_FLAGS_IN(); 7403 ecx = POP32_VAL(esp); /* 0x47082CC5: pop ecx */ 7404 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47082CC6: ret */ 7405 RECOMP_REGS_OUT(); 7406 } 7407 7408 void sub_47082CD0(void) { 7409 int _fpu_cmp = 0; 7410 uint32_t _cf = 0; 7411 int _df = 1; 7412 uint32_t _flag_k = FK_NONE; 7413 uint32_t _flag_a = 0, _flag_b = 0; 7414 uint32_t _itail_tgt = 0; 7415 RECOMP_REGS_LOCALS 7416 RECOMP_ENTER(0x47082CD0u); 7417 7418 L_47082CD0: 7419 ecx = 0x4710F0F4u; /* 0x47082CD0: mov ecx, 0x4710f0f4 */ 7420 L_47082CD5: 7421 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 7422 { RECOMP_REGS_OUT(); return; } /* end of function */ 7423 _ljump: 7424 switch (_itail_tgt) { 7425 case 0x47082CD0u: goto L_47082CD0; 7426 case 0x47082CD5u: goto L_47082CD5; 7427 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 7428 } 7429 RECOMP_REGS_OUT(); 7430 }