client/vendor/ace/source/lifted-0012.c (257776B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_470153F0(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(0x470153F0u); 13 14 L_470153F0: 15 MEM32(0x4710DF34) = 0x47104BD4u; /* 0x470153F0: mov dword ptr [0x4710df34], 0x47104bd4 */ 16 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470153FA: ret */ 17 RECOMP_REGS_OUT(); 18 } 19 20 void sub_47015400(void) { 21 int _fpu_cmp = 0; 22 uint32_t _cf = 0; 23 int _df = 1; 24 uint32_t _flag_k = FK_NONE; 25 uint32_t _flag_a = 0, _flag_b = 0; 26 uint32_t _itail_tgt = 0; 27 RECOMP_REGS_LOCALS 28 RECOMP_ENTER(0x47015400u); 29 30 L_47015400: 31 PUSH32(esp, ebx); /* 0x47015400: push ebx */ 32 PUSH32(esp, ebp); /* 0x47015401: push ebp */ 33 ebp = MEM32(esp + 0xC); /* 0x47015402: mov ebp, dword ptr [esp + 0xc] */ 34 eax = MEM32(ebp); /* 0x47015406: mov eax, dword ptr [ebp] */ 35 PUSH32(esp, esi); /* 0x47015409: push esi */ 36 esi = ecx; /* 0x4701540A: mov esi, ecx */ 37 MEM32(esi) = eax; /* 0x4701540C: mov dword ptr [esi], eax */ 38 ecx = MEM32(ebp + 0x4); /* 0x4701540E: mov ecx, dword ptr [ebp + 4] */ 39 MEM32(esi + 0x4) = ecx; /* 0x47015411: mov dword ptr [esi + 4], ecx */ 40 edx = MEM32(ebp + 0x8); /* 0x47015414: mov edx, dword ptr [ebp + 8] */ 41 MEM32(esi + 0x8) = edx; /* 0x47015417: mov dword ptr [esi + 8], edx */ 42 eax = MEM32(ebp + 0xC); /* 0x4701541A: mov eax, dword ptr [ebp + 0xc] */ 43 MEM32(esi + 0xC) = eax; /* 0x4701541D: mov dword ptr [esi + 0xc], eax */ 44 ecx = MEM32(ebp + 0x10); /* 0x47015420: mov ecx, dword ptr [ebp + 0x10] */ 45 MEM32(esi + 0x10) = ecx; /* 0x47015423: mov dword ptr [esi + 0x10], ecx */ 46 edx = MEM32(ebp + 0x14); /* 0x47015426: mov edx, dword ptr [ebp + 0x14] */ 47 MEM32(esi + 0x14) = edx; /* 0x47015429: mov dword ptr [esi + 0x14], edx */ 48 PUSH32(esp, edi); /* 0x4701542C: push edi */ 49 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 50 edi = 0; /* 0x4701542D: xor edi, edi */ 51 _cf = 0; 52 _flag_k = FK_TEST; 53 MEM32(esi + 0x18) = edi; /* 0x4701542F: mov dword ptr [esi + 0x18], edi */ 54 MEM32(esi + 0x1C) = edi; /* 0x47015432: mov dword ptr [esi + 0x1c], edi */ 55 eax = MEM32(ebp + 0x20); /* 0x47015435: mov eax, dword ptr [ebp + 0x20] */ 56 /* cmp eax, edi */ /* 0x47015438: cmp eax, edi */ 57 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 58 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 59 _flag_k = FK_CMP; 60 MEM32(esi + 0x20) = eax; /* 0x4701543A: mov dword ptr [esi + 0x20], eax */ 61 if (CMP_NE(_flag_a, _flag_b)) goto L_47015447; /* 0x4701543D: jne 0x47015447 */ 62 L_4701543F: 63 RECOMP_ICALL(0x4703DAC0u); /* 0x4701543F: call 0x4703dac0 */ /* not lifted */ 64 RECOMP_FLAGS_IN(); 65 MEM32(esi + 0x20) = eax; /* 0x47015444: mov dword ptr [esi + 0x20], eax */ 66 L_47015447: 67 ecx = MEM32(esi + 0x20); /* 0x47015447: mov ecx, dword ptr [esi + 0x20] */ 68 eax = MEM32(ecx); /* 0x4701544A: mov eax, dword ptr [ecx] */ 69 PUSH32(esp, 8); /* 0x4701544C: push 8 */ 70 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4701544E: call dword ptr [eax + 4] */ 71 RECOMP_FLAGS_IN(); 72 /* cmp eax, edi */ /* 0x47015451: cmp eax, edi */ 73 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 74 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 75 _flag_k = FK_CMP; 76 MEM32(esi + 0x18) = eax; /* 0x47015453: mov dword ptr [esi + 0x18], eax */ 77 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015497; /* 0x47015456: je 0x47015497 */ 78 L_47015458: 79 MEM32(eax) = edi; /* 0x47015458: mov dword ptr [eax], edi */ 80 eax = MEM32(esi + 0x18); /* 0x4701545A: mov eax, dword ptr [esi + 0x18] */ 81 MEM32(eax) = eax; /* 0x4701545D: mov dword ptr [eax], eax */ 82 eax = MEM32(ebp + 0x18); /* 0x4701545F: mov eax, dword ptr [ebp + 0x18] */ 83 ebx = MEM32(eax); /* 0x47015462: mov ebx, dword ptr [eax] */ 84 /* cmp ebx, eax */ /* 0x47015464: cmp ebx, eax */ 85 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 86 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 87 _flag_k = FK_CMP; 88 if (CMP_EQ(_flag_a, _flag_b)) goto L_470154EC; /* 0x47015466: je 0x470154ec */ 89 L_4701546C: 90 ecx = MEM32(esi + 0x18); /* 0x4701546C: mov ecx, dword ptr [esi + 0x18] */ 91 edx = MEM32(ebx + 0x4); /* 0x4701546F: mov edx, dword ptr [ebx + 4] */ 92 MEM32(ecx + 0x4) = edx; /* 0x47015472: mov dword ptr [ecx + 4], edx */ 93 ecx = MEM32(esi + 0x20); /* 0x47015475: mov ecx, dword ptr [esi + 0x20] */ 94 eax = MEM32(ecx); /* 0x47015478: mov eax, dword ptr [ecx] */ 95 PUSH32(esp, 8); /* 0x4701547A: push 8 */ 96 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4701547C: call dword ptr [eax + 4] */ 97 RECOMP_FLAGS_IN(); 98 /* test eax, eax */ /* 0x4701547F: test eax, eax */ 99 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 100 _cf = 0; 101 _flag_k = FK_TEST; 102 if (TEST_Z(_flag_a, _flag_b)) goto L_470154AC; /* 0x47015481: je 0x470154ac */ 103 L_47015483: 104 ecx = MEM32(esi + 0x18); /* 0x47015483: mov ecx, dword ptr [esi + 0x18] */ 105 edx = MEM32(ecx); /* 0x47015486: mov edx, dword ptr [ecx] */ 106 MEM32(eax) = edx; /* 0x47015488: mov dword ptr [eax], edx */ 107 ecx = MEM32(esi + 0x18); /* 0x4701548A: mov ecx, dword ptr [esi + 0x18] */ 108 MEM32(ecx) = eax; /* 0x4701548D: mov dword ptr [ecx], eax */ 109 MEM32(esi + 0x18) = eax; /* 0x4701548F: mov dword ptr [esi + 0x18], eax */ 110 _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(1); 111 MEM32(esi + 0x1C) = MEM32(esi + 0x1C) + 1; /* 0x47015492: inc dword ptr [esi + 0x1c] */ 112 _flag_k = FK_INC; 113 goto L_470154E5; /* 0x47015495: jmp 0x470154e5 */ 114 L_47015497: 115 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47015497: call dword ptr [0x470ac3c8] */ 116 RECOMP_FLAGS_IN(); 117 edi = POP32_VAL(esp); /* 0x4701549D: pop edi */ 118 MEM32(eax) = 0xCu; /* 0x4701549E: mov dword ptr [eax], 0xc */ 119 eax = esi; /* 0x470154A4: mov eax, esi */ 120 esi = POP32_VAL(esp); /* 0x470154A6: pop esi */ 121 ebp = POP32_VAL(esp); /* 0x470154A7: pop ebp */ 122 ebx = POP32_VAL(esp); /* 0x470154A8: pop ebx */ 123 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470154A9: ret 4 */ 124 L_470154AC: 125 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470154AC: call dword ptr [0x470ac3c8] */ 126 RECOMP_FLAGS_IN(); 127 MEM32(eax) = 0xCu; /* 0x470154B2: mov dword ptr [eax], 0xc */ 128 eax = MEM32(esi + 0x18); /* 0x470154B8: mov eax, dword ptr [esi + 0x18] */ 129 edi = MEM32(eax); /* 0x470154BB: mov edi, dword ptr [eax] */ 130 /* cmp edi, eax */ /* 0x470154BD: cmp edi, eax */ 131 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 133 _flag_k = FK_CMP; 134 if (CMP_EQ(_flag_a, _flag_b)) goto L_470154E0; /* 0x470154BF: je 0x470154e0 */ 135 L_470154C1: 136 eax = edi; /* 0x470154C1: mov eax, edi */ 137 /* test eax, eax */ /* 0x470154C3: test eax, eax */ 138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 139 _cf = 0; 140 _flag_k = FK_TEST; 141 edi = MEM32(edi); /* 0x470154C5: mov edi, dword ptr [edi] */ 142 if (TEST_Z(_flag_a, _flag_b)) goto L_470154D2; /* 0x470154C7: je 0x470154d2 */ 143 L_470154C9: 144 ecx = MEM32(esi + 0x20); /* 0x470154C9: mov ecx, dword ptr [esi + 0x20] */ 145 edx = MEM32(ecx); /* 0x470154CC: mov edx, dword ptr [ecx] */ 146 PUSH32(esp, eax); /* 0x470154CE: push eax */ 147 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470154CF: call dword ptr [edx + 0xc] */ 148 RECOMP_FLAGS_IN(); 149 L_470154D2: 150 ecx = MEM32(esi + 0x1C); /* 0x470154D2: mov ecx, dword ptr [esi + 0x1c] */ 151 eax = MEM32(esi + 0x18); /* 0x470154D5: mov eax, dword ptr [esi + 0x18] */ 152 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 153 ecx = ecx - 1; /* 0x470154D8: dec ecx */ 154 _flag_k = FK_DEC; 155 /* cmp edi, eax */ /* 0x470154D9: cmp edi, eax */ 156 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 158 _flag_k = FK_CMP; 159 MEM32(esi + 0x1C) = ecx; /* 0x470154DB: mov dword ptr [esi + 0x1c], ecx */ 160 RECOMP_BACKEDGE(); 161 if (CMP_NE(_flag_a, _flag_b)) goto L_470154C1; /* 0x470154DE: jne 0x470154c1 */ 162 L_470154E0: 163 eax = MEM32(esi + 0x18); /* 0x470154E0: mov eax, dword ptr [esi + 0x18] */ 164 MEM32(eax) = eax; /* 0x470154E3: mov dword ptr [eax], eax */ 165 L_470154E5: 166 ebx = MEM32(ebx); /* 0x470154E5: mov ebx, dword ptr [ebx] */ 167 /* cmp ebx, MEM32(ebp + 0x18) */ /* 0x470154E7: cmp ebx, dword ptr [ebp + 0x18] */ 168 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + 0x18)); 169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 170 _flag_k = FK_CMP; 171 RECOMP_BACKEDGE(); 172 if (CMP_NE(_flag_a, _flag_b)) goto L_4701546C; /* 0x470154EA: jne 0x4701546c */ 173 L_470154EC: 174 edi = POP32_VAL(esp); /* 0x470154EC: pop edi */ 175 eax = esi; /* 0x470154ED: mov eax, esi */ 176 esi = POP32_VAL(esp); /* 0x470154EF: pop esi */ 177 ebp = POP32_VAL(esp); /* 0x470154F0: pop ebp */ 178 ebx = POP32_VAL(esp); /* 0x470154F1: pop ebx */ 179 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470154F2: ret 4 */ 180 RECOMP_REGS_OUT(); 181 } 182 183 void sub_47015500(void) { 184 int _fpu_cmp = 0; 185 uint32_t _cf = 0; 186 int _df = 1; 187 uint32_t _flag_k = FK_NONE; 188 uint32_t _flag_a = 0, _flag_b = 0; 189 uint32_t _itail_tgt = 0; 190 RECOMP_REGS_LOCALS 191 RECOMP_ENTER(0x47015500u); 192 193 L_47015500: 194 eax = MEM32(esp + 0x4); /* 0x47015500: mov eax, dword ptr [esp + 4] */ 195 PUSH32(esp, ebx); /* 0x47015504: push ebx */ 196 PUSH32(esp, ebp); /* 0x47015505: push ebp */ 197 ebp = ecx; /* 0x47015506: mov ebp, ecx */ 198 ecx = MEM32(eax); /* 0x47015508: mov ecx, dword ptr [eax] */ 199 MEM32(ebp) = ecx; /* 0x4701550A: mov dword ptr [ebp], ecx */ 200 edx = MEM32(eax + 0x4); /* 0x4701550D: mov edx, dword ptr [eax + 4] */ 201 MEM32(ebp + 0x4) = edx; /* 0x47015510: mov dword ptr [ebp + 4], edx */ 202 ecx = MEM32(eax + 0x8); /* 0x47015513: mov ecx, dword ptr [eax + 8] */ 203 MEM32(ebp + 0x8) = ecx; /* 0x47015516: mov dword ptr [ebp + 8], ecx */ 204 edx = MEM32(eax + 0xC); /* 0x47015519: mov edx, dword ptr [eax + 0xc] */ 205 MEM32(ebp + 0xC) = edx; /* 0x4701551C: mov dword ptr [ebp + 0xc], edx */ 206 ecx = MEM32(eax + 0x10); /* 0x4701551F: mov ecx, dword ptr [eax + 0x10] */ 207 PUSH32(esp, esi); /* 0x47015522: push esi */ 208 MEM32(ebp + 0x10) = ecx; /* 0x47015523: mov dword ptr [ebp + 0x10], ecx */ 209 edx = MEM32(eax + 0x14); /* 0x47015526: mov edx, dword ptr [eax + 0x14] */ 210 ecx = eax + 0x18; /* 0x47015529: lea ecx, [eax + 0x18] */ 211 esi = ebp + 0x18; /* 0x4701552C: lea esi, [ebp + 0x18] */ 212 /* cmp esi, ecx */ /* 0x4701552F: cmp esi, ecx */ 213 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 215 _flag_k = FK_CMP; 216 PUSH32(esp, edi); /* 0x47015531: push edi */ 217 MEM32(ebp + 0x14) = edx; /* 0x47015532: mov dword ptr [ebp + 0x14], edx */ 218 MEM32(esp + 0x14) = ecx; /* 0x47015535: mov dword ptr [esp + 0x14], ecx */ 219 if (CMP_EQ(_flag_a, _flag_b)) goto L_470155B5; /* 0x47015539: je 0x470155b5 */ 220 L_4701553B: 221 eax = MEM32(esi); /* 0x4701553B: mov eax, dword ptr [esi] */ 222 edi = MEM32(eax); /* 0x4701553D: mov edi, dword ptr [eax] */ 223 /* cmp edi, eax */ /* 0x4701553F: cmp edi, eax */ 224 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 226 _flag_k = FK_CMP; 227 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015565; /* 0x47015541: je 0x47015565 */ 228 L_47015543: 229 eax = edi; /* 0x47015543: mov eax, edi */ 230 /* test eax, eax */ /* 0x47015545: test eax, eax */ 231 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 232 _cf = 0; 233 _flag_k = FK_TEST; 234 edi = MEM32(edi); /* 0x47015547: mov edi, dword ptr [edi] */ 235 if (TEST_Z(_flag_a, _flag_b)) goto L_47015554; /* 0x47015549: je 0x47015554 */ 236 L_4701554B: 237 ecx = MEM32(esi + 0x8); /* 0x4701554B: mov ecx, dword ptr [esi + 8] */ 238 edx = MEM32(ecx); /* 0x4701554E: mov edx, dword ptr [ecx] */ 239 PUSH32(esp, eax); /* 0x47015550: push eax */ 240 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47015551: call dword ptr [edx + 0xc] */ 241 RECOMP_FLAGS_IN(); 242 L_47015554: 243 ecx = MEM32(esi + 0x4); /* 0x47015554: mov ecx, dword ptr [esi + 4] */ 244 eax = MEM32(esi); /* 0x47015557: mov eax, dword ptr [esi] */ 245 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 246 ecx = ecx - 1; /* 0x47015559: dec ecx */ 247 _flag_k = FK_DEC; 248 /* cmp edi, eax */ /* 0x4701555A: cmp edi, eax */ 249 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 251 _flag_k = FK_CMP; 252 MEM32(esi + 0x4) = ecx; /* 0x4701555C: mov dword ptr [esi + 4], ecx */ 253 RECOMP_BACKEDGE(); 254 if (CMP_NE(_flag_a, _flag_b)) goto L_47015543; /* 0x4701555F: jne 0x47015543 */ 255 L_47015561: 256 ecx = MEM32(esp + 0x14); /* 0x47015561: mov ecx, dword ptr [esp + 0x14] */ 257 L_47015565: 258 eax = MEM32(esi); /* 0x47015565: mov eax, dword ptr [esi] */ 259 MEM32(eax) = eax; /* 0x47015567: mov dword ptr [eax], eax */ 260 eax = MEM32(ecx); /* 0x47015569: mov eax, dword ptr [ecx] */ 261 ebx = MEM32(eax); /* 0x4701556B: mov ebx, dword ptr [eax] */ 262 /* cmp ebx, eax */ /* 0x4701556D: cmp ebx, eax */ 263 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 265 _flag_k = FK_CMP; 266 if (CMP_EQ(_flag_a, _flag_b)) goto L_470155B5; /* 0x4701556F: je 0x470155b5 */ 267 L_47015571: 268 eax = ebx + 0x4; /* 0x47015571: lea eax, [ebx + 4] */ 269 PUSH32(esp, eax); /* 0x47015574: push eax */ 270 ecx = esi; /* 0x47015575: mov ecx, esi */ 271 RECOMP_ICALL(0x47067230u); /* 0x47015577: call 0x47067230 */ /* not lifted */ 272 RECOMP_FLAGS_IN(); 273 /* cmp eax, 0xFFFFFFFFu */ /* 0x4701557C: cmp eax, -1 */ 274 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 276 _flag_k = FK_CMP; 277 if (CMP_NE(_flag_a, _flag_b)) goto L_470155AB; /* 0x4701557F: jne 0x470155ab */ 278 L_47015581: 279 eax = MEM32(esi); /* 0x47015581: mov eax, dword ptr [esi] */ 280 edi = MEM32(eax); /* 0x47015583: mov edi, dword ptr [eax] */ 281 /* cmp edi, eax */ /* 0x47015585: cmp edi, eax */ 282 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 284 _flag_k = FK_CMP; 285 if (CMP_EQ(_flag_a, _flag_b)) goto L_470155A7; /* 0x47015587: je 0x470155a7 */ 286 L_47015589: 287 eax = edi; /* 0x47015589: mov eax, edi */ 288 /* test eax, eax */ /* 0x4701558B: test eax, eax */ 289 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 290 _cf = 0; 291 _flag_k = FK_TEST; 292 edi = MEM32(edi); /* 0x4701558D: mov edi, dword ptr [edi] */ 293 if (TEST_Z(_flag_a, _flag_b)) goto L_4701559A; /* 0x4701558F: je 0x4701559a */ 294 L_47015591: 295 ecx = MEM32(esi + 0x8); /* 0x47015591: mov ecx, dword ptr [esi + 8] */ 296 edx = MEM32(ecx); /* 0x47015594: mov edx, dword ptr [ecx] */ 297 PUSH32(esp, eax); /* 0x47015596: push eax */ 298 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47015597: call dword ptr [edx + 0xc] */ 299 RECOMP_FLAGS_IN(); 300 L_4701559A: 301 ecx = MEM32(esi + 0x4); /* 0x4701559A: mov ecx, dword ptr [esi + 4] */ 302 eax = MEM32(esi); /* 0x4701559D: mov eax, dword ptr [esi] */ 303 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 304 ecx = ecx - 1; /* 0x4701559F: dec ecx */ 305 _flag_k = FK_DEC; 306 /* cmp edi, eax */ /* 0x470155A0: cmp edi, eax */ 307 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 309 _flag_k = FK_CMP; 310 MEM32(esi + 0x4) = ecx; /* 0x470155A2: mov dword ptr [esi + 4], ecx */ 311 RECOMP_BACKEDGE(); 312 if (CMP_NE(_flag_a, _flag_b)) goto L_47015589; /* 0x470155A5: jne 0x47015589 */ 313 L_470155A7: 314 eax = MEM32(esi); /* 0x470155A7: mov eax, dword ptr [esi] */ 315 MEM32(eax) = eax; /* 0x470155A9: mov dword ptr [eax], eax */ 316 L_470155AB: 317 eax = MEM32(esp + 0x14); /* 0x470155AB: mov eax, dword ptr [esp + 0x14] */ 318 ebx = MEM32(ebx); /* 0x470155AF: mov ebx, dword ptr [ebx] */ 319 /* cmp ebx, MEM32(eax) */ /* 0x470155B1: cmp ebx, dword ptr [eax] */ 320 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax)); 321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 322 _flag_k = FK_CMP; 323 RECOMP_BACKEDGE(); 324 if (CMP_NE(_flag_a, _flag_b)) goto L_47015571; /* 0x470155B3: jne 0x47015571 */ 325 L_470155B5: 326 edi = POP32_VAL(esp); /* 0x470155B5: pop edi */ 327 esi = POP32_VAL(esp); /* 0x470155B6: pop esi */ 328 eax = ebp; /* 0x470155B7: mov eax, ebp */ 329 ebp = POP32_VAL(esp); /* 0x470155B9: pop ebp */ 330 ebx = POP32_VAL(esp); /* 0x470155BA: pop ebx */ 331 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470155BB: ret 4 */ 332 RECOMP_REGS_OUT(); 333 } 334 335 void sub_470155C0(void) { 336 int _fpu_cmp = 0; 337 uint32_t _cf = 0; 338 int _df = 1; 339 uint32_t _flag_k = FK_NONE; 340 uint32_t _flag_a = 0, _flag_b = 0; 341 uint32_t _itail_tgt = 0; 342 RECOMP_REGS_LOCALS 343 RECOMP_ENTER(0x470155C0u); 344 345 L_470155C0: 346 PUSH32(esp, 1); /* 0x470155C0: push 1 */ 347 RECOMP_ICALL(0x47015D70u); /* 0x470155C2: call 0x47015d70 */ /* not lifted */ 348 RECOMP_FLAGS_IN(); 349 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470155C7: ret */ 350 RECOMP_REGS_OUT(); 351 } 352 353 void sub_470155D0(void) { 354 int _fpu_cmp = 0; 355 uint32_t _cf = 0; 356 int _df = 1; 357 uint32_t _flag_k = FK_NONE; 358 uint32_t _flag_a = 0, _flag_b = 0; 359 uint32_t _itail_tgt = 0; 360 RECOMP_REGS_LOCALS 361 RECOMP_ENTER(0x470155D0u); 362 363 L_470155D0: 364 PUSH32(esp, esi); /* 0x470155D0: push esi */ 365 esi = ecx; /* 0x470155D1: mov esi, ecx */ 366 eax = MEM32(esi + 0x10); /* 0x470155D3: mov eax, dword ptr [esi + 0x10] */ 367 /* test eax, eax */ /* 0x470155D6: test eax, eax */ 368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 369 _cf = 0; 370 _flag_k = FK_TEST; 371 if (TEST_NZ(_flag_a, _flag_b)) goto L_470155E5; /* 0x470155D8: jne 0x470155e5 */ 372 L_470155DA: 373 /* cmp MEM32(esi + 0x4), 3 */ /* 0x470155DA: cmp dword ptr [esi + 4], 3 */ 374 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(3); 375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 376 _flag_k = FK_CMP; 377 if (CMP_NE(_flag_a, _flag_b)) goto L_470155E5; /* 0x470155DE: jne 0x470155e5 */ 378 L_470155E0: 379 RECOMP_ICALL(0x47015FC0u); /* 0x470155E0: call 0x47015fc0 */ /* not lifted */ 380 RECOMP_FLAGS_IN(); 381 L_470155E5: 382 eax = MEM32(esi + 0x10); /* 0x470155E5: mov eax, dword ptr [esi + 0x10] */ 383 esi = POP32_VAL(esp); /* 0x470155E8: pop esi */ 384 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470155E9: ret */ 385 RECOMP_REGS_OUT(); 386 } 387 388 void sub_470155F0(void) { 389 int _fpu_cmp = 0; 390 uint32_t _cf = 0; 391 int _df = 1; 392 uint32_t _flag_k = FK_NONE; 393 uint32_t _flag_a = 0, _flag_b = 0; 394 uint32_t _itail_tgt = 0; 395 RECOMP_REGS_LOCALS 396 RECOMP_ENTER(0x470155F0u); 397 398 L_470155F0: 399 PUSH32(esp, esi); /* 0x470155F0: push esi */ 400 esi = ecx; /* 0x470155F1: mov esi, ecx */ 401 eax = MEM32(esi + 0xC); /* 0x470155F3: mov eax, dword ptr [esi + 0xc] */ 402 /* test eax, eax */ /* 0x470155F6: test eax, eax */ 403 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 404 _cf = 0; 405 _flag_k = FK_TEST; 406 PUSH32(esp, edi); /* 0x470155F8: push edi */ 407 edi = esi + 0xC; /* 0x470155F9: lea edi, [esi + 0xc] */ 408 if (TEST_NZ(_flag_a, _flag_b)) goto L_4701562E; /* 0x470155FC: jne 0x4701562e */ 409 L_470155FE: 410 /* cmp MEM32(esi + 0x4), 3 */ /* 0x470155FE: cmp dword ptr [esi + 4], 3 */ 411 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(3); 412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 413 _flag_k = FK_CMP; 414 if (CMP_NE(_flag_a, _flag_b)) goto L_47015610; /* 0x47015602: jne 0x47015610 */ 415 L_47015604: 416 eax = MEM32(esi + 0x10); /* 0x47015604: mov eax, dword ptr [esi + 0x10] */ 417 /* test eax, eax */ /* 0x47015607: test eax, eax */ 418 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 419 _cf = 0; 420 _flag_k = FK_TEST; 421 if (TEST_NZ(_flag_a, _flag_b)) goto L_47015610; /* 0x47015609: jne 0x47015610 */ 422 L_4701560B: 423 RECOMP_ICALL(0x47015FC0u); /* 0x4701560B: call 0x47015fc0 */ /* not lifted */ 424 RECOMP_FLAGS_IN(); 425 L_47015610: 426 eax = MEM32(esi); /* 0x47015610: mov eax, dword ptr [esi] */ 427 edx = MEM32(esi + 0x10); /* 0x47015612: mov edx, dword ptr [esi + 0x10] */ 428 PUSH32(esp, eax); /* 0x47015615: push eax */ 429 PUSH32(esp, edi); /* 0x47015616: push edi */ 430 ecx = esi + 0x8; /* 0x47015617: lea ecx, [esi + 8] */ 431 PUSH32(esp, ecx); /* 0x4701561A: push ecx */ 432 PUSH32(esp, edx); /* 0x4701561B: push edx */ 433 RECOMP_ICALL(0x470563F0u); /* 0x4701561C: call 0x470563f0 */ /* not lifted */ 434 RECOMP_FLAGS_IN(); 435 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 436 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 437 esp = esp + 0x10u; /* 0x47015621: add esp, 0x10 */ 438 _flag_k = FK_ADD; 439 /* cmp eax, 0xFFFFFFFFu */ /* 0x47015624: cmp eax, -1 */ 440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 442 _flag_k = FK_CMP; 443 if (CMP_NE(_flag_a, _flag_b)) goto L_4701562E; /* 0x47015627: jne 0x4701562e */ 444 L_47015629: 445 edi = POP32_VAL(esp); /* 0x47015629: pop edi */ 446 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 447 eax = 0; /* 0x4701562A: xor eax, eax */ 448 _cf = 0; 449 _flag_k = FK_TEST; 450 esi = POP32_VAL(esp); /* 0x4701562C: pop esi */ 451 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701562D: ret */ 452 L_4701562E: 453 eax = MEM32(edi); /* 0x4701562E: mov eax, dword ptr [edi] */ 454 edi = POP32_VAL(esp); /* 0x47015630: pop edi */ 455 esi = POP32_VAL(esp); /* 0x47015631: pop esi */ 456 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47015632: ret */ 457 RECOMP_REGS_OUT(); 458 } 459 460 void sub_47015640(void) { 461 int _fpu_cmp = 0; 462 uint32_t _cf = 0; 463 int _df = 1; 464 uint32_t _flag_k = FK_NONE; 465 uint32_t _flag_a = 0, _flag_b = 0; 466 uint32_t _itail_tgt = 0; 467 RECOMP_REGS_LOCALS 468 RECOMP_ENTER(0x47015640u); 469 470 L_47015640: 471 PUSH32(esp, ebx); /* 0x47015640: push ebx */ 472 PUSH32(esp, ebp); /* 0x47015641: push ebp */ 473 ebp = MEM32(esp + 0xC); /* 0x47015642: mov ebp, dword ptr [esp + 0xc] */ 474 PUSH32(esp, esi); /* 0x47015646: push esi */ 475 esi = ecx; /* 0x47015647: mov esi, ecx */ 476 eax = MEM32(esi + 0x8); /* 0x47015649: mov eax, dword ptr [esi + 8] */ 477 /* cmp ebp, eax */ /* 0x4701564C: cmp ebp, eax */ 478 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(eax); 479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 480 _flag_k = FK_CMP; 481 ebx = esi + 0x8; /* 0x4701564E: lea ebx, [esi + 8] */ 482 if (CMP_B(_flag_a, _flag_b)) goto L_4701565B; /* 0x47015651: jb 0x4701565b */ 483 L_47015653: 484 esi = POP32_VAL(esp); /* 0x47015653: pop esi */ 485 ebp = POP32_VAL(esp); /* 0x47015654: pop ebp */ 486 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 487 eax = 0; /* 0x47015655: xor eax, eax */ 488 _cf = 0; 489 _flag_k = FK_TEST; 490 ebx = POP32_VAL(esp); /* 0x47015657: pop ebx */ 491 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47015658: ret 4 */ 492 L_4701565B: 493 eax = MEM32(esi + 0xC); /* 0x4701565B: mov eax, dword ptr [esi + 0xc] */ 494 /* test eax, eax */ /* 0x4701565E: test eax, eax */ 495 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 496 _cf = 0; 497 _flag_k = FK_TEST; 498 PUSH32(esp, edi); /* 0x47015660: push edi */ 499 edi = esi + 0xC; /* 0x47015661: lea edi, [esi + 0xc] */ 500 if (TEST_NZ(_flag_a, _flag_b)) goto L_4701569C; /* 0x47015664: jne 0x4701569c */ 501 L_47015666: 502 /* cmp MEM32(esi + 0x4), 3 */ /* 0x47015666: cmp dword ptr [esi + 4], 3 */ 503 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(3); 504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 505 _flag_k = FK_CMP; 506 if (CMP_NE(_flag_a, _flag_b)) goto L_4701567A; /* 0x4701566A: jne 0x4701567a */ 507 L_4701566C: 508 eax = MEM32(esi + 0x10); /* 0x4701566C: mov eax, dword ptr [esi + 0x10] */ 509 /* test eax, eax */ /* 0x4701566F: test eax, eax */ 510 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 511 _cf = 0; 512 _flag_k = FK_TEST; 513 if (TEST_NZ(_flag_a, _flag_b)) goto L_4701567A; /* 0x47015671: jne 0x4701567a */ 514 L_47015673: 515 ecx = esi; /* 0x47015673: mov ecx, esi */ 516 RECOMP_ICALL(0x47015FC0u); /* 0x47015675: call 0x47015fc0 */ /* not lifted */ 517 RECOMP_FLAGS_IN(); 518 L_4701567A: 519 eax = MEM32(esi); /* 0x4701567A: mov eax, dword ptr [esi] */ 520 ecx = MEM32(esi + 0x10); /* 0x4701567C: mov ecx, dword ptr [esi + 0x10] */ 521 PUSH32(esp, eax); /* 0x4701567F: push eax */ 522 PUSH32(esp, edi); /* 0x47015680: push edi */ 523 PUSH32(esp, ebx); /* 0x47015681: push ebx */ 524 PUSH32(esp, ecx); /* 0x47015682: push ecx */ 525 RECOMP_ICALL(0x470563F0u); /* 0x47015683: call 0x470563f0 */ /* not lifted */ 526 RECOMP_FLAGS_IN(); 527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 529 esp = esp + 0x10u; /* 0x47015688: add esp, 0x10 */ 530 _flag_k = FK_ADD; 531 /* cmp eax, 0xFFFFFFFFu */ /* 0x4701568B: cmp eax, -1 */ 532 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 534 _flag_k = FK_CMP; 535 if (CMP_NE(_flag_a, _flag_b)) goto L_4701569C; /* 0x4701568E: jne 0x4701569c */ 536 L_47015690: 537 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 538 edi = 0; /* 0x47015690: xor edi, edi */ 539 _cf = 0; 540 _flag_k = FK_TEST; 541 eax = MEM32(edi + ebp * 4); /* 0x47015692: mov eax, dword ptr [edi + ebp*4] */ 542 edi = POP32_VAL(esp); /* 0x47015695: pop edi */ 543 esi = POP32_VAL(esp); /* 0x47015696: pop esi */ 544 ebp = POP32_VAL(esp); /* 0x47015697: pop ebp */ 545 ebx = POP32_VAL(esp); /* 0x47015698: pop ebx */ 546 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47015699: ret 4 */ 547 L_4701569C: 548 edi = MEM32(edi); /* 0x4701569C: mov edi, dword ptr [edi] */ 549 eax = MEM32(edi + ebp * 4); /* 0x4701569E: mov eax, dword ptr [edi + ebp*4] */ 550 edi = POP32_VAL(esp); /* 0x470156A1: pop edi */ 551 esi = POP32_VAL(esp); /* 0x470156A2: pop esi */ 552 ebp = POP32_VAL(esp); /* 0x470156A3: pop ebp */ 553 ebx = POP32_VAL(esp); /* 0x470156A4: pop ebx */ 554 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470156A5: ret 4 */ 555 RECOMP_REGS_OUT(); 556 } 557 558 void sub_470156B0(void) { 559 int _fpu_cmp = 0; 560 uint32_t _cf = 0; 561 int _df = 1; 562 uint32_t _flag_k = FK_NONE; 563 uint32_t _flag_a = 0, _flag_b = 0; 564 uint32_t _itail_tgt = 0; 565 RECOMP_REGS_LOCALS 566 RECOMP_ENTER(0x470156B0u); 567 568 L_470156B0: 569 MEM32(0x4710DF3C) = 0x47105560u; /* 0x470156B0: mov dword ptr [0x4710df3c], 0x47105560 */ 570 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470156BA: ret */ 571 RECOMP_REGS_OUT(); 572 } 573 574 void sub_470156C0(void) { 575 int _fpu_cmp = 0; 576 uint32_t _cf = 0; 577 int _df = 1; 578 uint32_t _flag_k = FK_NONE; 579 uint32_t _flag_a = 0, _flag_b = 0; 580 uint32_t _itail_tgt = 0; 581 RECOMP_REGS_LOCALS 582 RECOMP_ENTER(0x470156C0u); 583 584 L_470156C0: 585 PUSH32(esp, ecx); /* 0x470156C0: push ecx */ 586 PUSH32(esp, ebx); /* 0x470156C1: push ebx */ 587 PUSH32(esp, ebp); /* 0x470156C2: push ebp */ 588 ebp = MEM32(0x470AC150); /* 0x470156C3: mov ebp, dword ptr [0x470ac150] */ 589 PUSH32(esp, esi); /* 0x470156C9: push esi */ 590 PUSH32(esp, edi); /* 0x470156CA: push edi */ 591 ebx = ecx; /* 0x470156CB: mov ebx, ecx */ 592 RECOMP_ICALL(ebp); /* 0x470156CD: call ebp */ 593 RECOMP_FLAGS_IN(); 594 edi = eax; /* 0x470156CF: mov edi, eax */ 595 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470156D1: call dword ptr [0x470ac3c8] */ 596 RECOMP_FLAGS_IN(); 597 eax = MEM32(eax); /* 0x470156D7: mov eax, dword ptr [eax] */ 598 /* test eax, eax */ /* 0x470156D9: test eax, eax */ 599 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 600 _cf = 0; 601 _flag_k = FK_TEST; 602 if (TEST_Z(_flag_a, _flag_b)) goto L_470156DF; /* 0x470156DB: je 0x470156df */ 603 L_470156DD: 604 edi = eax; /* 0x470156DD: mov edi, eax */ 605 L_470156DF: 606 RECOMP_ICALL(0x47039020u); /* 0x470156DF: call 0x47039020 */ /* not lifted */ 607 RECOMP_FLAGS_IN(); 608 esi = eax; /* 0x470156E4: mov esi, eax */ 609 ecx = esi; /* 0x470156E6: mov ecx, esi */ 610 RECOMP_ICALL(0x4703B210u); /* 0x470156E8: call 0x4703b210 */ /* not lifted */ 611 RECOMP_FLAGS_IN(); 612 PUSH32(esp, eax); /* 0x470156ED: push eax */ 613 ecx = esi; /* 0x470156EE: mov ecx, esi */ 614 RECOMP_ICALL(0x4703B240u); /* 0x470156F0: call 0x4703b240 */ /* not lifted */ 615 RECOMP_FLAGS_IN(); 616 PUSH32(esp, eax); /* 0x470156F5: push eax */ 617 ecx = esi; /* 0x470156F6: mov ecx, esi */ 618 RECOMP_ICALL(0x4703B080u); /* 0x470156F8: call 0x4703b080 */ /* not lifted */ 619 RECOMP_FLAGS_IN(); 620 PUSH32(esp, eax); /* 0x470156FD: push eax */ 621 PUSH32(esp, edi); /* 0x470156FE: push edi */ 622 PUSH32(esp, 0); /* 0x470156FF: push 0 */ 623 PUSH32(esp, 0x16u); /* 0x47015701: push 0x16 */ 624 PUSH32(esp, 0x471055BCu); /* 0x47015703: push 0x471055bc */ 625 ecx = esi; /* 0x47015708: mov ecx, esi */ 626 RECOMP_ICALL(0x4703A340u); /* 0x4701570A: call 0x4703a340 */ /* not lifted */ 627 RECOMP_FLAGS_IN(); 628 PUSH32(esp, ebx); /* 0x4701570F: push ebx */ 629 PUSH32(esp, 0x471052CCu); /* 0x47015710: push 0x471052cc */ 630 PUSH32(esp, 4); /* 0x47015715: push 4 */ 631 PUSH32(esp, esi); /* 0x47015717: push esi */ 632 RECOMP_ICALL(0x47039830u); /* 0x47015718: call 0x47039830 */ /* not lifted */ 633 RECOMP_FLAGS_IN(); 634 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 636 esp = esp + 0x10u; /* 0x4701571D: add esp, 0x10 */ 637 _flag_k = FK_ADD; 638 RECOMP_ICALL(ebp); /* 0x47015720: call ebp */ 639 RECOMP_FLAGS_IN(); 640 esi = eax; /* 0x47015722: mov esi, eax */ 641 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47015724: call dword ptr [0x470ac3c8] */ 642 RECOMP_FLAGS_IN(); 643 eax = MEM32(eax); /* 0x4701572A: mov eax, dword ptr [eax] */ 644 /* test eax, eax */ /* 0x4701572C: test eax, eax */ 645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 646 _cf = 0; 647 _flag_k = FK_TEST; 648 edi = esi; /* 0x4701572E: mov edi, esi */ 649 if (TEST_Z(_flag_a, _flag_b)) goto L_47015734; /* 0x47015730: je 0x47015734 */ 650 L_47015732: 651 edi = eax; /* 0x47015732: mov edi, eax */ 652 L_47015734: 653 RECOMP_ICALL(0x47039020u); /* 0x47015734: call 0x47039020 */ /* not lifted */ 654 RECOMP_FLAGS_IN(); 655 esi = eax; /* 0x47015739: mov esi, eax */ 656 ecx = esi; /* 0x4701573B: mov ecx, esi */ 657 RECOMP_ICALL(0x4703B210u); /* 0x4701573D: call 0x4703b210 */ /* not lifted */ 658 RECOMP_FLAGS_IN(); 659 PUSH32(esp, eax); /* 0x47015742: push eax */ 660 ecx = esi; /* 0x47015743: mov ecx, esi */ 661 RECOMP_ICALL(0x4703B240u); /* 0x47015745: call 0x4703b240 */ /* not lifted */ 662 RECOMP_FLAGS_IN(); 663 PUSH32(esp, eax); /* 0x4701574A: push eax */ 664 ecx = esi; /* 0x4701574B: mov ecx, esi */ 665 RECOMP_ICALL(0x4703B080u); /* 0x4701574D: call 0x4703b080 */ /* not lifted */ 666 RECOMP_FLAGS_IN(); 667 PUSH32(esp, eax); /* 0x47015752: push eax */ 668 PUSH32(esp, edi); /* 0x47015753: push edi */ 669 PUSH32(esp, 0); /* 0x47015754: push 0 */ 670 PUSH32(esp, 0x17u); /* 0x47015756: push 0x17 */ 671 PUSH32(esp, 0x471055BCu); /* 0x47015758: push 0x471055bc */ 672 ecx = esi; /* 0x4701575D: mov ecx, esi */ 673 RECOMP_ICALL(0x4703A340u); /* 0x4701575F: call 0x4703a340 */ /* not lifted */ 674 RECOMP_FLAGS_IN(); 675 eax = MEM32(ebx + 0x8); /* 0x47015764: mov eax, dword ptr [ebx + 8] */ 676 PUSH32(esp, eax); /* 0x47015767: push eax */ 677 PUSH32(esp, 0x471055B0u); /* 0x47015768: push 0x471055b0 */ 678 PUSH32(esp, 4); /* 0x4701576D: push 4 */ 679 PUSH32(esp, esi); /* 0x4701576F: push esi */ 680 RECOMP_ICALL(0x47039830u); /* 0x47015770: call 0x47039830 */ /* not lifted */ 681 RECOMP_FLAGS_IN(); 682 eax = MEM32(ebx + 0x8); /* 0x47015775: mov eax, dword ptr [ebx + 8] */ 683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 685 esp = esp + 0x10u; /* 0x47015778: add esp, 0x10 */ 686 _flag_k = FK_ADD; 687 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 688 edi = 0; /* 0x4701577B: xor edi, edi */ 689 _cf = 0; 690 _flag_k = FK_TEST; 691 /* test eax, eax */ /* 0x4701577D: test eax, eax */ 692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 693 _cf = 0; 694 _flag_k = FK_TEST; 695 if (TEST_Z(_flag_a, _flag_b)) goto L_470157E9; /* 0x4701577F: jbe 0x470157e9 */ 696 L_47015781: 697 RECOMP_ICALL(ebp); /* 0x47015781: call ebp */ 698 RECOMP_FLAGS_IN(); 699 ebp = eax; /* 0x47015783: mov ebp, eax */ 700 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47015785: call dword ptr [0x470ac3c8] */ 701 RECOMP_FLAGS_IN(); 702 eax = MEM32(eax); /* 0x4701578B: mov eax, dword ptr [eax] */ 703 /* test eax, eax */ /* 0x4701578D: test eax, eax */ 704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 705 _cf = 0; 706 _flag_k = FK_TEST; 707 if (TEST_Z(_flag_a, _flag_b)) goto L_47015793; /* 0x4701578F: je 0x47015793 */ 708 L_47015791: 709 ebp = eax; /* 0x47015791: mov ebp, eax */ 710 L_47015793: 711 RECOMP_ICALL(0x47039020u); /* 0x47015793: call 0x47039020 */ /* not lifted */ 712 RECOMP_FLAGS_IN(); 713 esi = eax; /* 0x47015798: mov esi, eax */ 714 ecx = esi; /* 0x4701579A: mov ecx, esi */ 715 RECOMP_ICALL(0x4703B210u); /* 0x4701579C: call 0x4703b210 */ /* not lifted */ 716 RECOMP_FLAGS_IN(); 717 PUSH32(esp, eax); /* 0x470157A1: push eax */ 718 ecx = esi; /* 0x470157A2: mov ecx, esi */ 719 RECOMP_ICALL(0x4703B240u); /* 0x470157A4: call 0x4703b240 */ /* not lifted */ 720 RECOMP_FLAGS_IN(); 721 PUSH32(esp, eax); /* 0x470157A9: push eax */ 722 ecx = esi; /* 0x470157AA: mov ecx, esi */ 723 RECOMP_ICALL(0x4703B080u); /* 0x470157AC: call 0x4703b080 */ /* not lifted */ 724 RECOMP_FLAGS_IN(); 725 PUSH32(esp, eax); /* 0x470157B1: push eax */ 726 PUSH32(esp, ebp); /* 0x470157B2: push ebp */ 727 PUSH32(esp, 0); /* 0x470157B3: push 0 */ 728 PUSH32(esp, 0x1Au); /* 0x470157B5: push 0x1a */ 729 PUSH32(esp, 0x471055BCu); /* 0x470157B7: push 0x471055bc */ 730 ecx = esi; /* 0x470157BC: mov ecx, esi */ 731 RECOMP_ICALL(0x4703A340u); /* 0x470157BE: call 0x4703a340 */ /* not lifted */ 732 RECOMP_FLAGS_IN(); 733 ecx = MEM32(ebx + 0xC); /* 0x470157C3: mov ecx, dword ptr [ebx + 0xc] */ 734 edx = MEM32(ecx + edi * 4); /* 0x470157C6: mov edx, dword ptr [ecx + edi*4] */ 735 PUSH32(esp, edx); /* 0x470157C9: push edx */ 736 PUSH32(esp, edi); /* 0x470157CA: push edi */ 737 PUSH32(esp, 0x471055A0u); /* 0x470157CB: push 0x471055a0 */ 738 PUSH32(esp, 4); /* 0x470157D0: push 4 */ 739 PUSH32(esp, esi); /* 0x470157D2: push esi */ 740 RECOMP_ICALL(0x47039830u); /* 0x470157D3: call 0x47039830 */ /* not lifted */ 741 RECOMP_FLAGS_IN(); 742 eax = MEM32(ebx + 0x8); /* 0x470157D8: mov eax, dword ptr [ebx + 8] */ 743 ebp = MEM32(0x470AC150); /* 0x470157DB: mov ebp, dword ptr [0x470ac150] */ 744 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 745 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 746 esp = esp + 0x14u; /* 0x470157E1: add esp, 0x14 */ 747 _flag_k = FK_ADD; 748 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 749 edi = edi + 1; /* 0x470157E4: inc edi */ 750 _flag_k = FK_INC; 751 /* cmp edi, eax */ /* 0x470157E5: cmp edi, eax */ 752 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 754 _flag_k = FK_CMP; 755 RECOMP_BACKEDGE(); 756 if (CMP_B(_flag_a, _flag_b)) goto L_47015781; /* 0x470157E7: jb 0x47015781 */ 757 L_470157E9: 758 RECOMP_ICALL(ebp); /* 0x470157E9: call ebp */ 759 RECOMP_FLAGS_IN(); 760 edi = MEM32(0x470AC3C8); /* 0x470157EB: mov edi, dword ptr [0x470ac3c8] */ 761 esi = eax; /* 0x470157F1: mov esi, eax */ 762 RECOMP_ICALL(edi); /* 0x470157F3: call edi */ 763 RECOMP_FLAGS_IN(); 764 eax = MEM32(eax); /* 0x470157F5: mov eax, dword ptr [eax] */ 765 /* test eax, eax */ /* 0x470157F7: test eax, eax */ 766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 767 _cf = 0; 768 _flag_k = FK_TEST; 769 MEM32(esp + 0x10) = esi; /* 0x470157F9: mov dword ptr [esp + 0x10], esi */ 770 if (TEST_Z(_flag_a, _flag_b)) goto L_47015803; /* 0x470157FD: je 0x47015803 */ 771 L_470157FF: 772 MEM32(esp + 0x10) = eax; /* 0x470157FF: mov dword ptr [esp + 0x10], eax */ 773 L_47015803: 774 RECOMP_ICALL(0x47039020u); /* 0x47015803: call 0x47039020 */ /* not lifted */ 775 RECOMP_FLAGS_IN(); 776 esi = eax; /* 0x47015808: mov esi, eax */ 777 ecx = esi; /* 0x4701580A: mov ecx, esi */ 778 RECOMP_ICALL(0x4703B210u); /* 0x4701580C: call 0x4703b210 */ /* not lifted */ 779 RECOMP_FLAGS_IN(); 780 PUSH32(esp, eax); /* 0x47015811: push eax */ 781 ecx = esi; /* 0x47015812: mov ecx, esi */ 782 RECOMP_ICALL(0x4703B240u); /* 0x47015814: call 0x4703b240 */ /* not lifted */ 783 RECOMP_FLAGS_IN(); 784 PUSH32(esp, eax); /* 0x47015819: push eax */ 785 ecx = esi; /* 0x4701581A: mov ecx, esi */ 786 RECOMP_ICALL(0x4703B080u); /* 0x4701581C: call 0x4703b080 */ /* not lifted */ 787 RECOMP_FLAGS_IN(); 788 PUSH32(esp, eax); /* 0x47015821: push eax */ 789 eax = MEM32(esp + 0x1C); /* 0x47015822: mov eax, dword ptr [esp + 0x1c] */ 790 PUSH32(esp, eax); /* 0x47015826: push eax */ 791 PUSH32(esp, 0); /* 0x47015827: push 0 */ 792 PUSH32(esp, 0x1Cu); /* 0x47015829: push 0x1c */ 793 PUSH32(esp, 0x471055BCu); /* 0x4701582B: push 0x471055bc */ 794 ecx = esi; /* 0x47015830: mov ecx, esi */ 795 RECOMP_ICALL(0x4703A340u); /* 0x47015832: call 0x4703a340 */ /* not lifted */ 796 RECOMP_FLAGS_IN(); 797 ecx = MEM32(ebx + 0x10); /* 0x47015837: mov ecx, dword ptr [ebx + 0x10] */ 798 PUSH32(esp, ecx); /* 0x4701583A: push ecx */ 799 PUSH32(esp, 0x47105594u); /* 0x4701583B: push 0x47105594 */ 800 PUSH32(esp, 4); /* 0x47015840: push 4 */ 801 PUSH32(esp, esi); /* 0x47015842: push esi */ 802 RECOMP_ICALL(0x47039830u); /* 0x47015843: call 0x47039830 */ /* not lifted */ 803 RECOMP_FLAGS_IN(); 804 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 805 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 806 esp = esp + 0x10u; /* 0x47015848: add esp, 0x10 */ 807 _flag_k = FK_ADD; 808 RECOMP_ICALL(ebp); /* 0x4701584B: call ebp */ 809 RECOMP_FLAGS_IN(); 810 ebx = eax; /* 0x4701584D: mov ebx, eax */ 811 RECOMP_ICALL(edi); /* 0x4701584F: call edi */ 812 RECOMP_FLAGS_IN(); 813 eax = MEM32(eax); /* 0x47015851: mov eax, dword ptr [eax] */ 814 /* test eax, eax */ /* 0x47015853: test eax, eax */ 815 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 816 _cf = 0; 817 _flag_k = FK_TEST; 818 if (TEST_Z(_flag_a, _flag_b)) goto L_47015859; /* 0x47015855: je 0x47015859 */ 819 L_47015857: 820 ebx = eax; /* 0x47015857: mov ebx, eax */ 821 L_47015859: 822 RECOMP_ICALL(0x47039020u); /* 0x47015859: call 0x47039020 */ /* not lifted */ 823 RECOMP_FLAGS_IN(); 824 esi = eax; /* 0x4701585E: mov esi, eax */ 825 ecx = esi; /* 0x47015860: mov ecx, esi */ 826 RECOMP_ICALL(0x4703B210u); /* 0x47015862: call 0x4703b210 */ /* not lifted */ 827 RECOMP_FLAGS_IN(); 828 PUSH32(esp, eax); /* 0x47015867: push eax */ 829 ecx = esi; /* 0x47015868: mov ecx, esi */ 830 RECOMP_ICALL(0x4703B240u); /* 0x4701586A: call 0x4703b240 */ /* not lifted */ 831 RECOMP_FLAGS_IN(); 832 PUSH32(esp, eax); /* 0x4701586F: push eax */ 833 ecx = esi; /* 0x47015870: mov ecx, esi */ 834 RECOMP_ICALL(0x4703B080u); /* 0x47015872: call 0x4703b080 */ /* not lifted */ 835 RECOMP_FLAGS_IN(); 836 PUSH32(esp, eax); /* 0x47015877: push eax */ 837 PUSH32(esp, ebx); /* 0x47015878: push ebx */ 838 PUSH32(esp, 0); /* 0x47015879: push 0 */ 839 PUSH32(esp, 0x1Du); /* 0x4701587B: push 0x1d */ 840 PUSH32(esp, 0x471055BCu); /* 0x4701587D: push 0x471055bc */ 841 ecx = esi; /* 0x47015882: mov ecx, esi */ 842 RECOMP_ICALL(0x4703A340u); /* 0x47015884: call 0x4703a340 */ /* not lifted */ 843 RECOMP_FLAGS_IN(); 844 PUSH32(esp, 0x47105590u); /* 0x47015889: push 0x47105590 */ 845 PUSH32(esp, 4); /* 0x4701588E: push 4 */ 846 PUSH32(esp, esi); /* 0x47015890: push esi */ 847 RECOMP_ICALL(0x47039830u); /* 0x47015891: call 0x47039830 */ /* not lifted */ 848 RECOMP_FLAGS_IN(); 849 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 850 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 851 esp = esp + 0xCu; /* 0x47015896: add esp, 0xc */ 852 _flag_k = FK_ADD; 853 RECOMP_ICALL(ebp); /* 0x47015899: call ebp */ 854 RECOMP_FLAGS_IN(); 855 esi = eax; /* 0x4701589B: mov esi, eax */ 856 RECOMP_ICALL(edi); /* 0x4701589D: call edi */ 857 RECOMP_FLAGS_IN(); 858 eax = MEM32(eax); /* 0x4701589F: mov eax, dword ptr [eax] */ 859 /* test eax, eax */ /* 0x470158A1: test eax, eax */ 860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 861 _cf = 0; 862 _flag_k = FK_TEST; 863 edi = esi; /* 0x470158A3: mov edi, esi */ 864 if (TEST_Z(_flag_a, _flag_b)) goto L_470158A9; /* 0x470158A5: je 0x470158a9 */ 865 L_470158A7: 866 edi = eax; /* 0x470158A7: mov edi, eax */ 867 L_470158A9: 868 RECOMP_ICALL(0x47039020u); /* 0x470158A9: call 0x47039020 */ /* not lifted */ 869 RECOMP_FLAGS_IN(); 870 esi = eax; /* 0x470158AE: mov esi, eax */ 871 ecx = esi; /* 0x470158B0: mov ecx, esi */ 872 RECOMP_ICALL(0x4703B210u); /* 0x470158B2: call 0x4703b210 */ /* not lifted */ 873 RECOMP_FLAGS_IN(); 874 PUSH32(esp, eax); /* 0x470158B7: push eax */ 875 ecx = esi; /* 0x470158B8: mov ecx, esi */ 876 RECOMP_ICALL(0x4703B240u); /* 0x470158BA: call 0x4703b240 */ /* not lifted */ 877 RECOMP_FLAGS_IN(); 878 PUSH32(esp, eax); /* 0x470158BF: push eax */ 879 ecx = esi; /* 0x470158C0: mov ecx, esi */ 880 RECOMP_ICALL(0x4703B080u); /* 0x470158C2: call 0x4703b080 */ /* not lifted */ 881 RECOMP_FLAGS_IN(); 882 PUSH32(esp, eax); /* 0x470158C7: push eax */ 883 PUSH32(esp, edi); /* 0x470158C8: push edi */ 884 PUSH32(esp, 0); /* 0x470158C9: push 0 */ 885 PUSH32(esp, 0x1Eu); /* 0x470158CB: push 0x1e */ 886 PUSH32(esp, 0x471055BCu); /* 0x470158CD: push 0x471055bc */ 887 ecx = esi; /* 0x470158D2: mov ecx, esi */ 888 RECOMP_ICALL(0x4703A340u); /* 0x470158D4: call 0x4703a340 */ /* not lifted */ 889 RECOMP_FLAGS_IN(); 890 PUSH32(esp, 0x4710529Cu); /* 0x470158D9: push 0x4710529c */ 891 PUSH32(esp, 4); /* 0x470158DE: push 4 */ 892 PUSH32(esp, esi); /* 0x470158E0: push esi */ 893 RECOMP_ICALL(0x47039830u); /* 0x470158E1: call 0x47039830 */ /* not lifted */ 894 RECOMP_FLAGS_IN(); 895 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 897 esp = esp + 0xCu; /* 0x470158E6: add esp, 0xc */ 898 _flag_k = FK_ADD; 899 edi = POP32_VAL(esp); /* 0x470158E9: pop edi */ 900 esi = POP32_VAL(esp); /* 0x470158EA: pop esi */ 901 ebp = POP32_VAL(esp); /* 0x470158EB: pop ebp */ 902 ebx = POP32_VAL(esp); /* 0x470158EC: pop ebx */ 903 ecx = POP32_VAL(esp); /* 0x470158ED: pop ecx */ 904 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470158EE: ret */ 905 RECOMP_REGS_OUT(); 906 } 907 908 void sub_470158F0(void) { 909 int _fpu_cmp = 0; 910 uint32_t _cf = 0; 911 int _df = 1; 912 uint32_t _flag_k = FK_NONE; 913 uint32_t _flag_a = 0, _flag_b = 0; 914 uint32_t _itail_tgt = 0; 915 RECOMP_REGS_LOCALS 916 RECOMP_ENTER(0x470158F0u); 917 918 L_470158F0: 919 eax = MEM32(ecx); /* 0x470158F0: mov eax, dword ptr [ecx] */ 920 PUSH32(esp, eax); /* 0x470158F2: push eax */ 921 edx = ecx + 0xC; /* 0x470158F3: lea edx, [ecx + 0xc] */ 922 PUSH32(esp, edx); /* 0x470158F6: push edx */ 923 eax = ecx + 0x8; /* 0x470158F7: lea eax, [ecx + 8] */ 924 ecx = MEM32(ecx + 0x10); /* 0x470158FA: mov ecx, dword ptr [ecx + 0x10] */ 925 PUSH32(esp, eax); /* 0x470158FD: push eax */ 926 PUSH32(esp, ecx); /* 0x470158FE: push ecx */ 927 RECOMP_ICALL(0x470563F0u); /* 0x470158FF: call 0x470563f0 */ /* not lifted */ 928 RECOMP_FLAGS_IN(); 929 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 930 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 931 esp = esp + 0x10u; /* 0x47015904: add esp, 0x10 */ 932 _flag_k = FK_ADD; 933 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47015907: ret */ 934 RECOMP_REGS_OUT(); 935 } 936 937 void sub_47015910(void) { 938 int _fpu_cmp = 0; 939 uint32_t _cf = 0; 940 int _df = 1; 941 uint32_t _flag_k = FK_NONE; 942 uint32_t _flag_a = 0, _flag_b = 0; 943 uint32_t _itail_tgt = 0; 944 RECOMP_REGS_LOCALS 945 RECOMP_ENTER(0x47015910u); 946 947 L_47015910: 948 eax = MEM32(esp + 0x8); /* 0x47015910: mov eax, dword ptr [esp + 8] */ 949 ecx = MEM32(esp + 0x4); /* 0x47015914: mov ecx, dword ptr [esp + 4] */ 950 PUSH32(esp, 1); /* 0x47015918: push 1 */ 951 PUSH32(esp, eax); /* 0x4701591A: push eax */ 952 PUSH32(esp, ecx); /* 0x4701591B: push ecx */ 953 RECOMP_ICALL(0x47056300u); /* 0x4701591C: call 0x47056300 */ /* not lifted */ 954 RECOMP_FLAGS_IN(); 955 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 956 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 957 esp = esp + 0xCu; /* 0x47015921: add esp, 0xc */ 958 _flag_k = FK_ADD; 959 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47015924: ret 8 */ 960 RECOMP_REGS_OUT(); 961 } 962 963 void sub_47015930(void) { 964 int _fpu_cmp = 0; 965 uint32_t _cf = 0; 966 int _df = 1; 967 uint32_t _flag_k = FK_NONE; 968 uint32_t _flag_a = 0, _flag_b = 0; 969 uint32_t _itail_tgt = 0; 970 RECOMP_REGS_LOCALS 971 RECOMP_ENTER(0x47015930u); 972 973 L_47015930: 974 PUSH32(esp, 0xFFFFFFFFu); /* 0x47015930: push -1 */ 975 PUSH32(esp, 0x470A3ECBu); /* 0x47015932: push 0x470a3ecb */ 976 eax = MEM32(FS_BASE + (0)); /* 0x47015937: mov eax, dword ptr fs:[0] */ 977 PUSH32(esp, eax); /* 0x4701593D: push eax */ 978 MEM32(FS_BASE + (0)) = esp; /* 0x4701593E: mov dword ptr fs:[0], esp */ 979 PUSH32(esp, ecx); /* 0x47015945: push ecx */ 980 eax = MEM32(esp + 0x18); /* 0x47015946: mov eax, dword ptr [esp + 0x18] */ 981 PUSH32(esp, ebx); /* 0x4701594A: push ebx */ 982 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 983 ebx = 0; /* 0x4701594B: xor ebx, ebx */ 984 _cf = 0; 985 _flag_k = FK_TEST; 986 PUSH32(esp, ebp); /* 0x4701594D: push ebp */ 987 ebp = ecx; /* 0x4701594E: mov ebp, ecx */ 988 MEM32(ebp) = eax; /* 0x47015950: mov dword ptr [ebp], eax */ 989 MEM32(ebp + 0x4) = 2; /* 0x47015953: mov dword ptr [ebp + 4], 2 */ 990 MEM32(ebp + 0x8) = ebx; /* 0x4701595A: mov dword ptr [ebp + 8], ebx */ 991 MEM32(ebp + 0xC) = ebx; /* 0x4701595D: mov dword ptr [ebp + 0xc], ebx */ 992 MEM32(ebp + 0x10) = ebx; /* 0x47015960: mov dword ptr [ebp + 0x10], ebx */ 993 MEM32(ebp + 0x14) = ebx; /* 0x47015963: mov dword ptr [ebp + 0x14], ebx */ 994 PUSH32(esp, esi); /* 0x47015966: push esi */ 995 PUSH32(esp, edi); /* 0x47015967: push edi */ 996 MEM32(esp + 0x10) = ebp; /* 0x47015968: mov dword ptr [esp + 0x10], ebp */ 997 MEM32(ebp + 0x18) = ebx; /* 0x4701596C: mov dword ptr [ebp + 0x18], ebx */ 998 MEM32(ebp + 0x1C) = ebx; /* 0x4701596F: mov dword ptr [ebp + 0x1c], ebx */ 999 MEM32(ebp + 0x20) = ebx; /* 0x47015972: mov dword ptr [ebp + 0x20], ebx */ 1000 RECOMP_ICALL(0x4703DAC0u); /* 0x47015975: call 0x4703dac0 */ /* not lifted */ 1001 RECOMP_FLAGS_IN(); 1002 MEM32(ebp + 0x20) = eax; /* 0x4701597A: mov dword ptr [ebp + 0x20], eax */ 1003 edx = MEM32(eax); /* 0x4701597D: mov edx, dword ptr [eax] */ 1004 PUSH32(esp, 8); /* 0x4701597F: push 8 */ 1005 ecx = eax; /* 0x47015981: mov ecx, eax */ 1006 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47015983: call dword ptr [edx + 4] */ 1007 RECOMP_FLAGS_IN(); 1008 /* cmp eax, ebx */ /* 0x47015986: cmp eax, ebx */ 1009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1011 _flag_k = FK_CMP; 1012 MEM32(ebp + 0x18) = eax; /* 0x47015988: mov dword ptr [ebp + 0x18], eax */ 1013 if (CMP_EQ(_flag_a, _flag_b)) goto L_470159DA; /* 0x4701598B: je 0x470159da */ 1014 L_4701598D: 1015 MEM32(eax) = ebx; /* 0x4701598D: mov dword ptr [eax], ebx */ 1016 eax = MEM32(ebp + 0x18); /* 0x4701598F: mov eax, dword ptr [ebp + 0x18] */ 1017 MEM32(eax) = eax; /* 0x47015992: mov dword ptr [eax], eax */ 1018 L_47015994: 1019 esi = MEM32(esp + 0x24); /* 0x47015994: mov esi, dword ptr [esp + 0x24] */ 1020 /* cmp esi, ebx */ /* 0x47015998: cmp esi, ebx */ 1021 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1023 _flag_k = FK_CMP; 1024 MEM32(esp + 0x1C) = ebx; /* 0x4701599A: mov dword ptr [esp + 0x1c], ebx */ 1025 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015A82; /* 0x4701599E: je 0x47015a82 */ 1026 L_470159A4: 1027 /* cmp MEM8(esi), LO8(ebx) */ /* 0x470159A4: cmp byte ptr [esi], bl */ 1028 _flag_a = (uint32_t)(MEM8(esi)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1030 _flag_k = FK_NARROW(FK_CMP, 24); 1031 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015A82; /* 0x470159A6: je 0x47015a82 */ 1032 L_470159AC: 1033 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1034 ecx = ecx | 0xFFFFFFFFu; /* 0x470159AC: or ecx, 0xffffffff */ 1035 _cf = 0; 1036 _flag_k = FK_TEST; 1037 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1038 eax = 0; /* 0x470159AF: xor eax, eax */ 1039 _cf = 0; 1040 _flag_k = FK_TEST; 1041 edi = esi; /* 0x470159B1: mov edi, esi */ 1042 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x470159B3: repne scasb al, byte ptr es:[edi] */ 1043 ecx = ~ecx; /* 0x470159B5: not ecx */ 1044 PUSH32(esp, ecx); /* 0x470159B7: push ecx */ 1045 RECOMP_ICALL(0x470A33F2u); /* 0x470159B8: call 0x470a33f2 */ /* not lifted */ 1046 RECOMP_FLAGS_IN(); 1047 edx = eax; /* 0x470159BD: mov edx, eax */ 1048 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1049 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1050 esp = esp + 4; /* 0x470159BF: add esp, 4 */ 1051 _flag_k = FK_ADD; 1052 /* cmp edx, ebx */ /* 0x470159C2: cmp edx, ebx */ 1053 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 1054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1055 _flag_k = FK_CMP; 1056 MEM32(ebp + 0x10) = edx; /* 0x470159C4: mov dword ptr [ebp + 0x10], edx */ 1057 if (CMP_NE(_flag_a, _flag_b)) goto L_470159E8; /* 0x470159C7: jne 0x470159e8 */ 1058 L_470159C9: 1059 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470159C9: call dword ptr [0x470ac3c8] */ 1060 RECOMP_FLAGS_IN(); 1061 MEM32(eax) = 0xCu; /* 0x470159CF: mov dword ptr [eax], 0xc */ 1062 goto L_47015A82; /* 0x470159D5: jmp 0x47015a82 */ 1063 L_470159DA: 1064 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470159DA: call dword ptr [0x470ac3c8] */ 1065 RECOMP_FLAGS_IN(); 1066 MEM32(eax) = 0xCu; /* 0x470159E0: mov dword ptr [eax], 0xc */ 1067 RECOMP_BACKEDGE(); 1068 goto L_47015994; /* 0x470159E6: jmp 0x47015994 */ 1069 L_470159E8: 1070 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1071 ecx = ecx | 0xFFFFFFFFu; /* 0x470159E8: or ecx, 0xffffffff */ 1072 _cf = 0; 1073 _flag_k = FK_TEST; 1074 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1075 eax = 0; /* 0x470159EB: xor eax, eax */ 1076 _cf = 0; 1077 _flag_k = FK_TEST; 1078 edi = esi; /* 0x470159ED: mov edi, esi */ 1079 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x470159EF: repne scasb al, byte ptr es:[edi] */ 1080 ecx = ~ecx; /* 0x470159F1: not ecx */ 1081 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1083 edi = edi - ecx; /* 0x470159F3: sub edi, ecx */ 1084 _flag_k = FK_CMP; 1085 eax = ecx; /* 0x470159F5: mov eax, ecx */ 1086 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x470159F7: shr ecx, 2 */ 1087 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1088 ecx = ecx >> 2u; /* 0x470159F7: shr ecx, 2 */ 1089 esi = edi; /* 0x470159FA: mov esi, edi */ 1090 edi = edx; /* 0x470159FC: mov edi, edx */ 1091 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470159FE: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1092 ecx = eax; /* 0x47015A00: mov ecx, eax */ 1093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1094 ecx = ecx & 3; /* 0x47015A02: and ecx, 3 */ 1095 _cf = 0; 1096 _flag_k = FK_TEST; 1097 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47015A05: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1098 ecx = MEM32(ebp); /* 0x47015A07: mov ecx, dword ptr [ebp] */ 1099 edx = MEM32(ebp + 0x10); /* 0x47015A0A: mov edx, dword ptr [ebp + 0x10] */ 1100 PUSH32(esp, ecx); /* 0x47015A0D: push ecx */ 1101 eax = ebp + 0xC; /* 0x47015A0E: lea eax, [ebp + 0xc] */ 1102 PUSH32(esp, eax); /* 0x47015A11: push eax */ 1103 eax = ebp + 0x8; /* 0x47015A12: lea eax, [ebp + 8] */ 1104 PUSH32(esp, eax); /* 0x47015A15: push eax */ 1105 PUSH32(esp, edx); /* 0x47015A16: push edx */ 1106 RECOMP_ICALL(0x470563F0u); /* 0x47015A17: call 0x470563f0 */ /* not lifted */ 1107 RECOMP_FLAGS_IN(); 1108 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1109 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1110 esp = esp + 0x10u; /* 0x47015A1C: add esp, 0x10 */ 1111 _flag_k = FK_ADD; 1112 /* cmp eax, 0xFFFFFFFFu */ /* 0x47015A1F: cmp eax, -1 */ 1113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1115 _flag_k = FK_CMP; 1116 if (CMP_NE(_flag_a, _flag_b)) goto L_47015A82; /* 0x47015A22: jne 0x47015a82 */ 1117 L_47015A24: 1118 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47015A24: call dword ptr [0x470ac150] */ 1119 RECOMP_FLAGS_IN(); 1120 edi = eax; /* 0x47015A2A: mov edi, eax */ 1121 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47015A2C: call dword ptr [0x470ac3c8] */ 1122 RECOMP_FLAGS_IN(); 1123 eax = MEM32(eax); /* 0x47015A32: mov eax, dword ptr [eax] */ 1124 /* cmp eax, ebx */ /* 0x47015A34: cmp eax, ebx */ 1125 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1127 _flag_k = FK_CMP; 1128 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015A3A; /* 0x47015A36: je 0x47015a3a */ 1129 L_47015A38: 1130 edi = eax; /* 0x47015A38: mov edi, eax */ 1131 L_47015A3A: 1132 RECOMP_ICALL(0x47039020u); /* 0x47015A3A: call 0x47039020 */ /* not lifted */ 1133 RECOMP_FLAGS_IN(); 1134 esi = eax; /* 0x47015A3F: mov esi, eax */ 1135 ecx = esi; /* 0x47015A41: mov ecx, esi */ 1136 RECOMP_ICALL(0x4703B210u); /* 0x47015A43: call 0x4703b210 */ /* not lifted */ 1137 RECOMP_FLAGS_IN(); 1138 PUSH32(esp, eax); /* 0x47015A48: push eax */ 1139 ecx = esi; /* 0x47015A49: mov ecx, esi */ 1140 RECOMP_ICALL(0x4703B240u); /* 0x47015A4B: call 0x4703b240 */ /* not lifted */ 1141 RECOMP_FLAGS_IN(); 1142 PUSH32(esp, eax); /* 0x47015A50: push eax */ 1143 ecx = esi; /* 0x47015A51: mov ecx, esi */ 1144 RECOMP_ICALL(0x4703B080u); /* 0x47015A53: call 0x4703b080 */ /* not lifted */ 1145 RECOMP_FLAGS_IN(); 1146 PUSH32(esp, eax); /* 0x47015A58: push eax */ 1147 PUSH32(esp, edi); /* 0x47015A59: push edi */ 1148 PUSH32(esp, 0xFFFFFFFFu); /* 0x47015A5A: push -1 */ 1149 PUSH32(esp, 0x4Fu); /* 0x47015A5C: push 0x4f */ 1150 PUSH32(esp, 0x471055BCu); /* 0x47015A5E: push 0x471055bc */ 1151 ecx = esi; /* 0x47015A63: mov ecx, esi */ 1152 RECOMP_ICALL(0x4703A340u); /* 0x47015A65: call 0x4703a340 */ /* not lifted */ 1153 RECOMP_FLAGS_IN(); 1154 PUSH32(esp, 0x471055F4u); /* 0x47015A6A: push 0x471055f4 */ 1155 PUSH32(esp, 0x471055F0u); /* 0x47015A6F: push 0x471055f0 */ 1156 PUSH32(esp, 0x80u); /* 0x47015A74: push 0x80 */ 1157 PUSH32(esp, esi); /* 0x47015A79: push esi */ 1158 RECOMP_ICALL(0x47039830u); /* 0x47015A7A: call 0x47039830 */ /* not lifted */ 1159 RECOMP_FLAGS_IN(); 1160 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1161 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1162 esp = esp + 0x10u; /* 0x47015A7F: add esp, 0x10 */ 1163 _flag_k = FK_ADD; 1164 L_47015A82: 1165 ecx = MEM32(esp + 0x14); /* 0x47015A82: mov ecx, dword ptr [esp + 0x14] */ 1166 edi = POP32_VAL(esp); /* 0x47015A86: pop edi */ 1167 esi = POP32_VAL(esp); /* 0x47015A87: pop esi */ 1168 eax = ebp; /* 0x47015A88: mov eax, ebp */ 1169 ebp = POP32_VAL(esp); /* 0x47015A8A: pop ebp */ 1170 ebx = POP32_VAL(esp); /* 0x47015A8B: pop ebx */ 1171 MEM32(FS_BASE + (0)) = ecx; /* 0x47015A8C: mov dword ptr fs:[0], ecx */ 1172 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1174 esp = esp + 0x10u; /* 0x47015A93: add esp, 0x10 */ 1175 _flag_k = FK_ADD; 1176 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47015A96: ret 8 */ 1177 RECOMP_REGS_OUT(); 1178 } 1179 1180 void sub_47015A82(void) { 1181 int _fpu_cmp = 0; 1182 uint32_t _cf = 0; 1183 int _df = 1; 1184 uint32_t _flag_k = FK_NONE; 1185 uint32_t _flag_a = 0, _flag_b = 0; 1186 uint32_t _itail_tgt = 0; 1187 RECOMP_REGS_LOCALS 1188 RECOMP_ENTER(0x47015A82u); 1189 1190 L_47015A82: 1191 ecx = MEM32(esp + 0x14); /* 0x47015A82: mov ecx, dword ptr [esp + 0x14] */ 1192 edi = POP32_VAL(esp); /* 0x47015A86: pop edi */ 1193 esi = POP32_VAL(esp); /* 0x47015A87: pop esi */ 1194 eax = ebp; /* 0x47015A88: mov eax, ebp */ 1195 ebp = POP32_VAL(esp); /* 0x47015A8A: pop ebp */ 1196 ebx = POP32_VAL(esp); /* 0x47015A8B: pop ebx */ 1197 MEM32(FS_BASE + (0)) = ecx; /* 0x47015A8C: mov dword ptr fs:[0], ecx */ 1198 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1200 esp = esp + 0x10u; /* 0x47015A93: add esp, 0x10 */ 1201 _flag_k = FK_ADD; 1202 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47015A96: ret 8 */ 1203 RECOMP_REGS_OUT(); 1204 } 1205 1206 void sub_47015AA0(void) { 1207 int _fpu_cmp = 0; 1208 uint32_t _cf = 0; 1209 int _df = 1; 1210 uint32_t _flag_k = FK_NONE; 1211 uint32_t _flag_a = 0, _flag_b = 0; 1212 uint32_t _itail_tgt = 0; 1213 RECOMP_REGS_LOCALS 1214 RECOMP_ENTER(0x47015AA0u); 1215 1216 L_47015AA0: 1217 PUSH32(esp, 0xFFFFFFFFu); /* 0x47015AA0: push -1 */ 1218 PUSH32(esp, 0x470A3EEBu); /* 0x47015AA2: push 0x470a3eeb */ 1219 eax = MEM32(FS_BASE + (0)); /* 0x47015AA7: mov eax, dword ptr fs:[0] */ 1220 PUSH32(esp, eax); /* 0x47015AAD: push eax */ 1221 MEM32(FS_BASE + (0)) = esp; /* 0x47015AAE: mov dword ptr fs:[0], esp */ 1222 PUSH32(esp, ecx); /* 0x47015AB5: push ecx */ 1223 eax = MEM32(esp + 0x18); /* 0x47015AB6: mov eax, dword ptr [esp + 0x18] */ 1224 PUSH32(esp, ebx); /* 0x47015ABA: push ebx */ 1225 PUSH32(esp, ebp); /* 0x47015ABB: push ebp */ 1226 ebp = ecx; /* 0x47015ABC: mov ebp, ecx */ 1227 PUSH32(esp, esi); /* 0x47015ABE: push esi */ 1228 PUSH32(esp, edi); /* 0x47015ABF: push edi */ 1229 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1230 edi = 0; /* 0x47015AC0: xor edi, edi */ 1231 _cf = 0; 1232 _flag_k = FK_TEST; 1233 MEM32(ebp) = eax; /* 0x47015AC2: mov dword ptr [ebp], eax */ 1234 MEM32(ebp + 0x4) = 1; /* 0x47015AC5: mov dword ptr [ebp + 4], 1 */ 1235 MEM32(ebp + 0x8) = edi; /* 0x47015ACC: mov dword ptr [ebp + 8], edi */ 1236 MEM32(ebp + 0xC) = edi; /* 0x47015ACF: mov dword ptr [ebp + 0xc], edi */ 1237 MEM32(ebp + 0x10) = edi; /* 0x47015AD2: mov dword ptr [ebp + 0x10], edi */ 1238 MEM32(ebp + 0x14) = edi; /* 0x47015AD5: mov dword ptr [ebp + 0x14], edi */ 1239 MEM32(esp + 0x10) = ebp; /* 0x47015AD8: mov dword ptr [esp + 0x10], ebp */ 1240 MEM32(ebp + 0x18) = edi; /* 0x47015ADC: mov dword ptr [ebp + 0x18], edi */ 1241 MEM32(ebp + 0x1C) = edi; /* 0x47015ADF: mov dword ptr [ebp + 0x1c], edi */ 1242 MEM32(ebp + 0x20) = edi; /* 0x47015AE2: mov dword ptr [ebp + 0x20], edi */ 1243 RECOMP_ICALL(0x4703DAC0u); /* 0x47015AE5: call 0x4703dac0 */ /* not lifted */ 1244 RECOMP_FLAGS_IN(); 1245 MEM32(ebp + 0x20) = eax; /* 0x47015AEA: mov dword ptr [ebp + 0x20], eax */ 1246 edx = MEM32(eax); /* 0x47015AED: mov edx, dword ptr [eax] */ 1247 PUSH32(esp, 8); /* 0x47015AEF: push 8 */ 1248 ecx = eax; /* 0x47015AF1: mov ecx, eax */ 1249 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47015AF3: call dword ptr [edx + 4] */ 1250 RECOMP_FLAGS_IN(); 1251 /* cmp eax, edi */ /* 0x47015AF6: cmp eax, edi */ 1252 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1254 _flag_k = FK_CMP; 1255 MEM32(ebp + 0x18) = eax; /* 0x47015AF8: mov dword ptr [ebp + 0x18], eax */ 1256 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015B20; /* 0x47015AFB: je 0x47015b20 */ 1257 L_47015AFD: 1258 MEM32(eax) = edi; /* 0x47015AFD: mov dword ptr [eax], edi */ 1259 eax = MEM32(ebp + 0x18); /* 0x47015AFF: mov eax, dword ptr [ebp + 0x18] */ 1260 MEM32(eax) = eax; /* 0x47015B02: mov dword ptr [eax], eax */ 1261 L_47015B04: 1262 esi = MEM32(esp + 0x24); /* 0x47015B04: mov esi, dword ptr [esp + 0x24] */ 1263 /* cmp esi, edi */ /* 0x47015B08: cmp esi, edi */ 1264 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1266 _flag_k = FK_CMP; 1267 MEM32(esp + 0x1C) = edi; /* 0x47015B0A: mov dword ptr [esp + 0x1c], edi */ 1268 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015BF7; /* 0x47015B0E: je 0x47015bf7 */ 1269 L_47015B14: 1270 /* cmp MEM32(esi), edi */ /* 0x47015B14: cmp dword ptr [esi], edi */ 1271 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(edi); 1272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1273 _flag_k = FK_CMP; 1274 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015BF7; /* 0x47015B16: je 0x47015bf7 */ 1275 L_47015B1C: 1276 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1277 ebx = 0; /* 0x47015B1C: xor ebx, ebx */ 1278 _cf = 0; 1279 _flag_k = FK_TEST; 1280 goto L_47015B30; /* 0x47015B1E: jmp 0x47015b30 */ 1281 L_47015B20: 1282 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47015B20: call dword ptr [0x470ac3c8] */ 1283 RECOMP_FLAGS_IN(); 1284 MEM32(eax) = 0xCu; /* 0x47015B26: mov dword ptr [eax], 0xc */ 1285 RECOMP_BACKEDGE(); 1286 goto L_47015B04; /* 0x47015B2C: jmp 0x47015b04 */ 1287 L_47015B2E: 1288 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1289 edi = 0; /* 0x47015B2E: xor edi, edi */ 1290 _cf = 0; 1291 _flag_k = FK_TEST; 1292 L_47015B30: 1293 /* cmp MEM32(ebp), edi */ /* 0x47015B30: cmp dword ptr [ebp], edi */ 1294 _flag_a = (uint32_t)(MEM32(ebp)); _flag_b = (uint32_t)(edi); 1295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1296 _flag_k = FK_CMP; 1297 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015B4D; /* 0x47015B33: je 0x47015b4d */ 1298 L_47015B35: 1299 eax = MEM32(esi); /* 0x47015B35: mov eax, dword ptr [esi] */ 1300 /* cmp MEM8(eax), 0x24u */ /* 0x47015B37: cmp byte ptr [eax], 0x24 */ 1301 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x24u) << 24; 1302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1303 _flag_k = FK_NARROW(FK_CMP, 24); 1304 if (CMP_NE(_flag_a, _flag_b)) goto L_47015B4D; /* 0x47015B3A: jne 0x47015b4d */ 1305 L_47015B3C: 1306 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1307 eax = eax + 1; /* 0x47015B3C: inc eax */ 1308 _flag_k = FK_INC; 1309 PUSH32(esp, eax); /* 0x47015B3D: push eax */ 1310 RECOMP_ICALL(MEM32(0x470AC268)); /* 0x47015B3E: call dword ptr [0x470ac268] */ 1311 RECOMP_FLAGS_IN(); 1312 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1313 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1314 esp = esp + 4; /* 0x47015B44: add esp, 4 */ 1315 _flag_k = FK_ADD; 1316 /* cmp eax, edi */ /* 0x47015B47: cmp eax, edi */ 1317 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1319 _flag_k = FK_CMP; 1320 edi = eax; /* 0x47015B49: mov edi, eax */ 1321 if (CMP_NE(_flag_a, _flag_b)) goto L_47015B4F; /* 0x47015B4B: jne 0x47015b4f */ 1322 L_47015B4D: 1323 edi = MEM32(esi); /* 0x47015B4D: mov edi, dword ptr [esi] */ 1324 L_47015B4F: 1325 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1326 ecx = ecx | 0xFFFFFFFFu; /* 0x47015B4F: or ecx, 0xffffffff */ 1327 _cf = 0; 1328 _flag_k = FK_TEST; 1329 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1330 eax = 0; /* 0x47015B52: xor eax, eax */ 1331 _cf = 0; 1332 _flag_k = FK_TEST; 1333 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47015B54: repne scasb al, byte ptr es:[edi] */ 1334 eax = MEM32(esi + 0x4); /* 0x47015B56: mov eax, dword ptr [esi + 4] */ 1335 ecx = ~ecx; /* 0x47015B59: not ecx */ 1336 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1337 ecx = ecx - 1; /* 0x47015B5B: dec ecx */ 1338 _flag_k = FK_DEC; 1339 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 1340 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1341 esi = esi + 4; /* 0x47015B5C: add esi, 4 */ 1342 _flag_k = FK_ADD; 1343 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 1344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1345 ebx = ebx + ecx; /* 0x47015B5F: add ebx, ecx */ 1346 _flag_k = FK_ADD; 1347 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 1348 ebx = ebx + 1; /* 0x47015B61: inc ebx */ 1349 _flag_k = FK_INC; 1350 /* test eax, eax */ /* 0x47015B62: test eax, eax */ 1351 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1352 _cf = 0; 1353 _flag_k = FK_TEST; 1354 RECOMP_BACKEDGE(); 1355 if (TEST_NZ(_flag_a, _flag_b)) goto L_47015B2E; /* 0x47015B64: jne 0x47015b2e */ 1356 L_47015B66: 1357 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 1358 ebx = ebx + 1; /* 0x47015B66: inc ebx */ 1359 _flag_k = FK_INC; 1360 PUSH32(esp, ebx); /* 0x47015B67: push ebx */ 1361 RECOMP_ICALL(0x470A33F2u); /* 0x47015B68: call 0x470a33f2 */ /* not lifted */ 1362 RECOMP_FLAGS_IN(); 1363 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1365 esp = esp + 4; /* 0x47015B6D: add esp, 4 */ 1366 _flag_k = FK_ADD; 1367 /* test eax, eax */ /* 0x47015B70: test eax, eax */ 1368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1369 _cf = 0; 1370 _flag_k = FK_TEST; 1371 MEM32(ebp + 0x10) = eax; /* 0x47015B72: mov dword ptr [ebp + 0x10], eax */ 1372 if (TEST_NZ(_flag_a, _flag_b)) goto L_47015B85; /* 0x47015B75: jne 0x47015b85 */ 1373 L_47015B77: 1374 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47015B77: call dword ptr [0x470ac3c8] */ 1375 RECOMP_FLAGS_IN(); 1376 MEM32(eax) = 0xCu; /* 0x47015B7D: mov dword ptr [eax], 0xc */ 1377 goto L_47015BF7; /* 0x47015B83: jmp 0x47015bf7 */ 1378 L_47015B85: 1379 edi = MEM32(esp + 0x24); /* 0x47015B85: mov edi, dword ptr [esp + 0x24] */ 1380 esi = eax; /* 0x47015B89: mov esi, eax */ 1381 eax = MEM32(edi); /* 0x47015B8B: mov eax, dword ptr [edi] */ 1382 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1383 ebx = 0; /* 0x47015B8D: xor ebx, ebx */ 1384 _cf = 0; 1385 _flag_k = FK_TEST; 1386 /* test eax, eax */ /* 0x47015B8F: test eax, eax */ 1387 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1388 _cf = 0; 1389 _flag_k = FK_TEST; 1390 if (TEST_Z(_flag_a, _flag_b)) goto L_47015BF1; /* 0x47015B91: je 0x47015bf1 */ 1391 L_47015B93: 1392 /* cmp MEM32(ebp), 0 */ /* 0x47015B93: cmp dword ptr [ebp], 0 */ 1393 _flag_a = (uint32_t)(MEM32(ebp)); _flag_b = (uint32_t)(0); 1394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1395 _flag_k = FK_CMP; 1396 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015BCD; /* 0x47015B97: je 0x47015bcd */ 1397 L_47015B99: 1398 eax = MEM32(edi); /* 0x47015B99: mov eax, dword ptr [edi] */ 1399 /* cmp MEM8(eax), 0x24u */ /* 0x47015B9B: cmp byte ptr [eax], 0x24 */ 1400 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0x24u) << 24; 1401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1402 _flag_k = FK_NARROW(FK_CMP, 24); 1403 if (CMP_NE(_flag_a, _flag_b)) goto L_47015BCD; /* 0x47015B9E: jne 0x47015bcd */ 1404 L_47015BA0: 1405 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1406 eax = eax + 1; /* 0x47015BA0: inc eax */ 1407 _flag_k = FK_INC; 1408 PUSH32(esp, eax); /* 0x47015BA1: push eax */ 1409 RECOMP_ICALL(MEM32(0x470AC268)); /* 0x47015BA2: call dword ptr [0x470ac268] */ 1410 RECOMP_FLAGS_IN(); 1411 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1413 esp = esp + 4; /* 0x47015BA8: add esp, 4 */ 1414 _flag_k = FK_ADD; 1415 /* test eax, eax */ /* 0x47015BAB: test eax, eax */ 1416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1417 _cf = 0; 1418 _flag_k = FK_TEST; 1419 if (TEST_Z(_flag_a, _flag_b)) goto L_47015BCD; /* 0x47015BAD: je 0x47015bcd */ 1420 L_47015BAF: 1421 SET_LO8(edx, MEM8(eax)); /* 0x47015BAF: mov dl, byte ptr [eax] */ 1422 /* test LO8(edx), LO8(edx) */ /* 0x47015BB1: test dl, dl */ 1423 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1424 _cf = 0; 1425 _flag_k = FK_NARROW(FK_TEST, 24); 1426 MEM8(esi) = (uint8_t)(LO8(edx)); /* 0x47015BB3: mov byte ptr [esi], dl */ 1427 ecx = esi + 0x1; /* 0x47015BB5: lea ecx, [esi + 1] */ 1428 if (TEST_Z(_flag_a, _flag_b)) goto L_47015BC9; /* 0x47015BB8: je 0x47015bc9 */ 1429 L_47015BBA: 1430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1432 eax = eax - ecx; /* 0x47015BBA: sub eax, ecx */ 1433 _flag_k = FK_CMP; 1434 edx = eax + 0x1; /* 0x47015BBC: lea edx, [eax + 1] */ 1435 L_47015BBF: 1436 SET_LO8(eax, MEM8(edx + ecx)); /* 0x47015BBF: mov al, byte ptr [edx + ecx] */ 1437 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x47015BC2: mov byte ptr [ecx], al */ 1438 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1439 ecx = ecx + 1; /* 0x47015BC4: inc ecx */ 1440 _flag_k = FK_INC; 1441 /* test LO8(eax), LO8(eax) */ /* 0x47015BC5: test al, al */ 1442 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1443 _cf = 0; 1444 _flag_k = FK_NARROW(FK_TEST, 24); 1445 RECOMP_BACKEDGE(); 1446 if (TEST_NZ(_flag_a, _flag_b)) goto L_47015BBF; /* 0x47015BC7: jne 0x47015bbf */ 1447 L_47015BC9: 1448 esi = ecx; /* 0x47015BC9: mov esi, ecx */ 1449 goto L_47015BE3; /* 0x47015BCB: jmp 0x47015be3 */ 1450 L_47015BCD: 1451 eax = MEM32(edi); /* 0x47015BCD: mov eax, dword ptr [edi] */ 1452 SET_LO8(ecx, MEM8(eax)); /* 0x47015BCF: mov cl, byte ptr [eax] */ 1453 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x47015BD1: mov byte ptr [esi], cl */ 1454 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1455 esi = esi + 1; /* 0x47015BD3: inc esi */ 1456 _flag_k = FK_INC; 1457 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1458 eax = eax + 1; /* 0x47015BD4: inc eax */ 1459 _flag_k = FK_INC; 1460 /* test LO8(ecx), LO8(ecx) */ /* 0x47015BD5: test cl, cl */ 1461 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 1462 _cf = 0; 1463 _flag_k = FK_NARROW(FK_TEST, 24); 1464 if (TEST_Z(_flag_a, _flag_b)) goto L_47015BE3; /* 0x47015BD7: je 0x47015be3 */ 1465 L_47015BD9: 1466 SET_LO8(ecx, MEM8(eax)); /* 0x47015BD9: mov cl, byte ptr [eax] */ 1467 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x47015BDB: mov byte ptr [esi], cl */ 1468 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1469 esi = esi + 1; /* 0x47015BDD: inc esi */ 1470 _flag_k = FK_INC; 1471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1472 eax = eax + 1; /* 0x47015BDE: inc eax */ 1473 _flag_k = FK_INC; 1474 /* test LO8(ecx), LO8(ecx) */ /* 0x47015BDF: test cl, cl */ 1475 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 1476 _cf = 0; 1477 _flag_k = FK_NARROW(FK_TEST, 24); 1478 RECOMP_BACKEDGE(); 1479 if (TEST_NZ(_flag_a, _flag_b)) goto L_47015BD9; /* 0x47015BE1: jne 0x47015bd9 */ 1480 L_47015BE3: 1481 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 1482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1483 edi = edi + 4; /* 0x47015BE3: add edi, 4 */ 1484 _flag_k = FK_ADD; 1485 MEM8(esi + (-0x1)) = (uint8_t)(0x20u); /* 0x47015BE6: mov byte ptr [esi - 1], 0x20 */ 1486 eax = MEM32(edi); /* 0x47015BEA: mov eax, dword ptr [edi] */ 1487 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 1488 ebx = ebx + 1; /* 0x47015BEC: inc ebx */ 1489 _flag_k = FK_INC; 1490 /* test eax, eax */ /* 0x47015BED: test eax, eax */ 1491 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1492 _cf = 0; 1493 _flag_k = FK_TEST; 1494 RECOMP_BACKEDGE(); 1495 if (TEST_NZ(_flag_a, _flag_b)) goto L_47015B93; /* 0x47015BEF: jne 0x47015b93 */ 1496 L_47015BF1: 1497 MEM32(ebp + 0x8) = ebx; /* 0x47015BF1: mov dword ptr [ebp + 8], ebx */ 1498 MEM8(esi) = (uint8_t)(0); /* 0x47015BF4: mov byte ptr [esi], 0 */ 1499 L_47015BF7: 1500 ecx = MEM32(esp + 0x14); /* 0x47015BF7: mov ecx, dword ptr [esp + 0x14] */ 1501 edi = POP32_VAL(esp); /* 0x47015BFB: pop edi */ 1502 esi = POP32_VAL(esp); /* 0x47015BFC: pop esi */ 1503 eax = ebp; /* 0x47015BFD: mov eax, ebp */ 1504 ebp = POP32_VAL(esp); /* 0x47015BFF: pop ebp */ 1505 ebx = POP32_VAL(esp); /* 0x47015C00: pop ebx */ 1506 MEM32(FS_BASE + (0)) = ecx; /* 0x47015C01: mov dword ptr fs:[0], ecx */ 1507 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1508 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1509 esp = esp + 0x10u; /* 0x47015C08: add esp, 0x10 */ 1510 _flag_k = FK_ADD; 1511 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47015C0B: ret 8 */ 1512 RECOMP_REGS_OUT(); 1513 } 1514 1515 void sub_47015C10(void) { 1516 int _fpu_cmp = 0; 1517 uint32_t _cf = 0; 1518 int _df = 1; 1519 uint32_t _flag_k = FK_NONE; 1520 uint32_t _flag_a = 0, _flag_b = 0; 1521 uint32_t _itail_tgt = 0; 1522 RECOMP_REGS_LOCALS 1523 RECOMP_ENTER(0x47015C10u); 1524 1525 L_47015C10: 1526 PUSH32(esp, 0xFFFFFFFFu); /* 0x47015C10: push -1 */ 1527 PUSH32(esp, 0x470A3F0Bu); /* 0x47015C12: push 0x470a3f0b */ 1528 eax = MEM32(FS_BASE + (0)); /* 0x47015C17: mov eax, dword ptr fs:[0] */ 1529 PUSH32(esp, eax); /* 0x47015C1D: push eax */ 1530 MEM32(FS_BASE + (0)) = esp; /* 0x47015C1E: mov dword ptr fs:[0], esp */ 1531 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1533 esp = esp - 8; /* 0x47015C25: sub esp, 8 */ 1534 _flag_k = FK_CMP; 1535 eax = MEM32(esp + 0x20); /* 0x47015C28: mov eax, dword ptr [esp + 0x20] */ 1536 PUSH32(esp, ebx); /* 0x47015C2C: push ebx */ 1537 ebx = ecx; /* 0x47015C2D: mov ebx, ecx */ 1538 PUSH32(esp, ebp); /* 0x47015C2F: push ebp */ 1539 PUSH32(esp, esi); /* 0x47015C30: push esi */ 1540 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1541 esi = 0; /* 0x47015C31: xor esi, esi */ 1542 _cf = 0; 1543 _flag_k = FK_TEST; 1544 MEM32(ebx) = eax; /* 0x47015C33: mov dword ptr [ebx], eax */ 1545 MEM32(ebx + 0x4) = 1; /* 0x47015C35: mov dword ptr [ebx + 4], 1 */ 1546 MEM32(ebx + 0x8) = esi; /* 0x47015C3C: mov dword ptr [ebx + 8], esi */ 1547 MEM32(ebx + 0xC) = esi; /* 0x47015C3F: mov dword ptr [ebx + 0xc], esi */ 1548 MEM32(ebx + 0x10) = esi; /* 0x47015C42: mov dword ptr [ebx + 0x10], esi */ 1549 MEM32(ebx + 0x14) = esi; /* 0x47015C45: mov dword ptr [ebx + 0x14], esi */ 1550 PUSH32(esp, edi); /* 0x47015C48: push edi */ 1551 MEM32(esp + 0x14) = ebx; /* 0x47015C49: mov dword ptr [esp + 0x14], ebx */ 1552 MEM32(ebx + 0x18) = esi; /* 0x47015C4D: mov dword ptr [ebx + 0x18], esi */ 1553 MEM32(ebx + 0x1C) = esi; /* 0x47015C50: mov dword ptr [ebx + 0x1c], esi */ 1554 MEM32(ebx + 0x20) = esi; /* 0x47015C53: mov dword ptr [ebx + 0x20], esi */ 1555 RECOMP_ICALL(0x4703DAC0u); /* 0x47015C56: call 0x4703dac0 */ /* not lifted */ 1556 RECOMP_FLAGS_IN(); 1557 MEM32(ebx + 0x20) = eax; /* 0x47015C5B: mov dword ptr [ebx + 0x20], eax */ 1558 edx = MEM32(eax); /* 0x47015C5E: mov edx, dword ptr [eax] */ 1559 PUSH32(esp, 8); /* 0x47015C60: push 8 */ 1560 ecx = eax; /* 0x47015C62: mov ecx, eax */ 1561 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47015C64: call dword ptr [edx + 4] */ 1562 RECOMP_FLAGS_IN(); 1563 /* cmp eax, esi */ /* 0x47015C67: cmp eax, esi */ 1564 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1566 _flag_k = FK_CMP; 1567 ebp = MEM32(0x470AC3C8); /* 0x47015C69: mov ebp, dword ptr [0x470ac3c8] */ 1568 MEM32(ebx + 0x18) = eax; /* 0x47015C6F: mov dword ptr [ebx + 0x18], eax */ 1569 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015CE9; /* 0x47015C72: je 0x47015ce9 */ 1570 L_47015C74: 1571 /* cmp eax, esi */ /* 0x47015C74: cmp eax, esi */ 1572 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1574 _flag_k = FK_CMP; 1575 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015C7A; /* 0x47015C76: je 0x47015c7a */ 1576 L_47015C78: 1577 MEM32(eax) = esi; /* 0x47015C78: mov dword ptr [eax], esi */ 1578 L_47015C7A: 1579 eax = MEM32(ebx + 0x18); /* 0x47015C7A: mov eax, dword ptr [ebx + 0x18] */ 1580 MEM32(eax) = eax; /* 0x47015C7D: mov dword ptr [eax], eax */ 1581 L_47015C7F: 1582 ecx = MEM32(esp + 0x28); /* 0x47015C7F: mov ecx, dword ptr [esp + 0x28] */ 1583 PUSH32(esp, 1); /* 0x47015C83: push 1 */ 1584 eax = esp + 0x34; /* 0x47015C85: lea eax, [esp + 0x34] */ 1585 PUSH32(esp, eax); /* 0x47015C89: push eax */ 1586 PUSH32(esp, ecx); /* 0x47015C8A: push ecx */ 1587 MEM32(esp + 0x2C) = esi; /* 0x47015C8B: mov dword ptr [esp + 0x2c], esi */ 1588 RECOMP_ICALL(0x47056300u); /* 0x47015C8F: call 0x47056300 */ /* not lifted */ 1589 RECOMP_FLAGS_IN(); 1590 PUSH32(esp, 1); /* 0x47015C94: push 1 */ 1591 edx = esp + 0x20; /* 0x47015C96: lea edx, [esp + 0x20] */ 1592 edi = eax; /* 0x47015C9A: mov edi, eax */ 1593 eax = MEM32(esp + 0x3C); /* 0x47015C9C: mov eax, dword ptr [esp + 0x3c] */ 1594 PUSH32(esp, edx); /* 0x47015CA0: push edx */ 1595 PUSH32(esp, eax); /* 0x47015CA1: push eax */ 1596 RECOMP_ICALL(0x47056300u); /* 0x47015CA2: call 0x47056300 */ /* not lifted */ 1597 RECOMP_FLAGS_IN(); 1598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1599 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1600 eax = eax + edi; /* 0x47015CA7: add eax, edi */ 1601 _flag_k = FK_ADD; 1602 edi = MEM32(esp + 0x28); /* 0x47015CA9: mov edi, dword ptr [esp + 0x28] */ 1603 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1604 ecx = ecx | 0xFFFFFFFFu; /* 0x47015CAD: or ecx, 0xffffffff */ 1605 _cf = 0; 1606 _flag_k = FK_TEST; 1607 MEM32(ebx + 0x8) = eax; /* 0x47015CB0: mov dword ptr [ebx + 8], eax */ 1608 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1609 eax = 0; /* 0x47015CB3: xor eax, eax */ 1610 _cf = 0; 1611 _flag_k = FK_TEST; 1612 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47015CB5: repne scasb al, byte ptr es:[edi] */ 1613 edi = MEM32(esp + 0x48); /* 0x47015CB7: mov edi, dword ptr [esp + 0x48] */ 1614 ecx = ~ecx; /* 0x47015CBB: not ecx */ 1615 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1616 ecx = ecx - 1; /* 0x47015CBD: dec ecx */ 1617 _flag_k = FK_DEC; 1618 edx = ecx; /* 0x47015CBE: mov edx, ecx */ 1619 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1620 ecx = ecx | 0xFFFFFFFFu; /* 0x47015CC0: or ecx, 0xffffffff */ 1621 _cf = 0; 1622 _flag_k = FK_TEST; 1623 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47015CC3: repne scasb al, byte ptr es:[edi] */ 1624 ecx = ~ecx; /* 0x47015CC5: not ecx */ 1625 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1626 ecx = ecx - 1; /* 0x47015CC7: dec ecx */ 1627 _flag_k = FK_DEC; 1628 eax = edx + ecx + 0x1; /* 0x47015CC8: lea eax, [edx + ecx + 1] */ 1629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1630 eax = eax + 1; /* 0x47015CCC: inc eax */ 1631 _flag_k = FK_INC; 1632 PUSH32(esp, eax); /* 0x47015CCD: push eax */ 1633 RECOMP_ICALL(0x470A33F2u); /* 0x47015CCE: call 0x470a33f2 */ /* not lifted */ 1634 RECOMP_FLAGS_IN(); 1635 edx = eax; /* 0x47015CD3: mov edx, eax */ 1636 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 1637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1638 esp = esp + 0x1Cu; /* 0x47015CD5: add esp, 0x1c */ 1639 _flag_k = FK_ADD; 1640 /* cmp edx, esi */ /* 0x47015CD8: cmp edx, esi */ 1641 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 1642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1643 _flag_k = FK_CMP; 1644 MEM32(ebx + 0x10) = edx; /* 0x47015CDA: mov dword ptr [ebx + 0x10], edx */ 1645 if (CMP_NE(_flag_a, _flag_b)) goto L_47015CF3; /* 0x47015CDD: jne 0x47015cf3 */ 1646 L_47015CDF: 1647 RECOMP_ICALL(ebp); /* 0x47015CDF: call ebp */ 1648 RECOMP_FLAGS_IN(); 1649 MEM32(eax) = 0xCu; /* 0x47015CE1: mov dword ptr [eax], 0xc */ 1650 goto L_47015D55; /* 0x47015CE7: jmp 0x47015d55 */ 1651 L_47015CE9: 1652 RECOMP_ICALL(ebp); /* 0x47015CE9: call ebp */ 1653 RECOMP_FLAGS_IN(); 1654 MEM32(eax) = 0xCu; /* 0x47015CEB: mov dword ptr [eax], 0xc */ 1655 RECOMP_BACKEDGE(); 1656 goto L_47015C7F; /* 0x47015CF1: jmp 0x47015c7f */ 1657 L_47015CF3: 1658 edi = MEM32(esp + 0x30); /* 0x47015CF3: mov edi, dword ptr [esp + 0x30] */ 1659 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1660 ecx = ecx | 0xFFFFFFFFu; /* 0x47015CF7: or ecx, 0xffffffff */ 1661 _cf = 0; 1662 _flag_k = FK_TEST; 1663 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1664 eax = 0; /* 0x47015CFA: xor eax, eax */ 1665 _cf = 0; 1666 _flag_k = FK_TEST; 1667 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47015CFC: repne scasb al, byte ptr es:[edi] */ 1668 ecx = ~ecx; /* 0x47015CFE: not ecx */ 1669 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1671 edi = edi - ecx; /* 0x47015D00: sub edi, ecx */ 1672 _flag_k = FK_CMP; 1673 eax = ecx; /* 0x47015D02: mov eax, ecx */ 1674 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47015D04: shr ecx, 2 */ 1675 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1676 ecx = ecx >> 2u; /* 0x47015D04: shr ecx, 2 */ 1677 esi = edi; /* 0x47015D07: mov esi, edi */ 1678 edi = edx; /* 0x47015D09: mov edi, edx */ 1679 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47015D0B: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1680 ecx = eax; /* 0x47015D0D: mov ecx, eax */ 1681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1682 ecx = ecx & 3; /* 0x47015D0F: and ecx, 3 */ 1683 _cf = 0; 1684 _flag_k = FK_TEST; 1685 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47015D12: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1686 edi = MEM32(esp + 0x10); /* 0x47015D14: mov edi, dword ptr [esp + 0x10] */ 1687 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1688 ecx = ecx | 0xFFFFFFFFu; /* 0x47015D18: or ecx, 0xffffffff */ 1689 _cf = 0; 1690 _flag_k = FK_TEST; 1691 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1692 eax = 0; /* 0x47015D1B: xor eax, eax */ 1693 _cf = 0; 1694 _flag_k = FK_TEST; 1695 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47015D1D: repne scasb al, byte ptr es:[edi] */ 1696 ecx = ~ecx; /* 0x47015D1F: not ecx */ 1697 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1698 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1699 edi = edi - ecx; /* 0x47015D21: sub edi, ecx */ 1700 _flag_k = FK_CMP; 1701 edx = ecx; /* 0x47015D23: mov edx, ecx */ 1702 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1703 ecx = ecx | 0xFFFFFFFFu; /* 0x47015D25: or ecx, 0xffffffff */ 1704 _cf = 0; 1705 _flag_k = FK_TEST; 1706 esi = edi; /* 0x47015D28: mov esi, edi */ 1707 edi = MEM32(ebx + 0x10); /* 0x47015D2A: mov edi, dword ptr [ebx + 0x10] */ 1708 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47015D2D: repne scasb al, byte ptr es:[edi] */ 1709 ecx = edx; /* 0x47015D2F: mov ecx, edx */ 1710 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47015D31: shr ecx, 2 */ 1711 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1712 ecx = ecx >> 2u; /* 0x47015D31: shr ecx, 2 */ 1713 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1714 edi = edi - 1; /* 0x47015D34: dec edi */ 1715 _flag_k = FK_DEC; 1716 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47015D35: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1717 ecx = edx; /* 0x47015D37: mov ecx, edx */ 1718 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1719 ecx = ecx & 3; /* 0x47015D39: and ecx, 3 */ 1720 _cf = 0; 1721 _flag_k = FK_TEST; 1722 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47015D3C: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1723 eax = MEM32(esp + 0x30); /* 0x47015D3E: mov eax, dword ptr [esp + 0x30] */ 1724 PUSH32(esp, eax); /* 0x47015D42: push eax */ 1725 RECOMP_ICALL(0x470A32A2u); /* 0x47015D43: call 0x470a32a2 */ /* not lifted */ 1726 RECOMP_FLAGS_IN(); 1727 ecx = MEM32(esp + 0x14); /* 0x47015D48: mov ecx, dword ptr [esp + 0x14] */ 1728 PUSH32(esp, ecx); /* 0x47015D4C: push ecx */ 1729 RECOMP_ICALL(0x470A32A2u); /* 0x47015D4D: call 0x470a32a2 */ /* not lifted */ 1730 RECOMP_FLAGS_IN(); 1731 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1732 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1733 esp = esp + 8; /* 0x47015D52: add esp, 8 */ 1734 _flag_k = FK_ADD; 1735 L_47015D55: 1736 ecx = MEM32(esp + 0x18); /* 0x47015D55: mov ecx, dword ptr [esp + 0x18] */ 1737 edi = POP32_VAL(esp); /* 0x47015D59: pop edi */ 1738 esi = POP32_VAL(esp); /* 0x47015D5A: pop esi */ 1739 ebp = POP32_VAL(esp); /* 0x47015D5B: pop ebp */ 1740 eax = ebx; /* 0x47015D5C: mov eax, ebx */ 1741 ebx = POP32_VAL(esp); /* 0x47015D5E: pop ebx */ 1742 MEM32(FS_BASE + (0)) = ecx; /* 0x47015D5F: mov dword ptr fs:[0], ecx */ 1743 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1745 esp = esp + 0x14u; /* 0x47015D66: add esp, 0x14 */ 1746 _flag_k = FK_ADD; 1747 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47015D69: ret 0xc */ 1748 RECOMP_REGS_OUT(); 1749 } 1750 1751 void sub_47015D70(void) { 1752 int _fpu_cmp = 0; 1753 uint32_t _cf = 0; 1754 int _df = 1; 1755 uint32_t _flag_k = FK_NONE; 1756 uint32_t _flag_a = 0, _flag_b = 0; 1757 uint32_t _itail_tgt = 0; 1758 RECOMP_REGS_LOCALS 1759 RECOMP_ENTER(0x47015D70u); 1760 1761 L_47015D70: 1762 eax = MEM32(esp + 0x4); /* 0x47015D70: mov eax, dword ptr [esp + 4] */ 1763 PUSH32(esp, esi); /* 0x47015D74: push esi */ 1764 esi = ecx; /* 0x47015D75: mov esi, ecx */ 1765 PUSH32(esp, edi); /* 0x47015D77: push edi */ 1766 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1767 edi = 0; /* 0x47015D78: xor edi, edi */ 1768 _cf = 0; 1769 _flag_k = FK_TEST; 1770 MEM32(esi) = eax; /* 0x47015D7A: mov dword ptr [esi], eax */ 1771 MEM32(esi + 0x4) = 3; /* 0x47015D7C: mov dword ptr [esi + 4], 3 */ 1772 MEM32(esi + 0x8) = edi; /* 0x47015D83: mov dword ptr [esi + 8], edi */ 1773 MEM32(esi + 0xC) = edi; /* 0x47015D86: mov dword ptr [esi + 0xc], edi */ 1774 MEM32(esi + 0x10) = edi; /* 0x47015D89: mov dword ptr [esi + 0x10], edi */ 1775 MEM32(esi + 0x14) = edi; /* 0x47015D8C: mov dword ptr [esi + 0x14], edi */ 1776 MEM32(esi + 0x18) = edi; /* 0x47015D8F: mov dword ptr [esi + 0x18], edi */ 1777 MEM32(esi + 0x1C) = edi; /* 0x47015D92: mov dword ptr [esi + 0x1c], edi */ 1778 MEM32(esi + 0x20) = edi; /* 0x47015D95: mov dword ptr [esi + 0x20], edi */ 1779 RECOMP_ICALL(0x4703DAC0u); /* 0x47015D98: call 0x4703dac0 */ /* not lifted */ 1780 RECOMP_FLAGS_IN(); 1781 MEM32(esi + 0x20) = eax; /* 0x47015D9D: mov dword ptr [esi + 0x20], eax */ 1782 edx = MEM32(eax); /* 0x47015DA0: mov edx, dword ptr [eax] */ 1783 PUSH32(esp, 8); /* 0x47015DA2: push 8 */ 1784 ecx = eax; /* 0x47015DA4: mov ecx, eax */ 1785 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47015DA6: call dword ptr [edx + 4] */ 1786 RECOMP_FLAGS_IN(); 1787 /* cmp eax, edi */ /* 0x47015DA9: cmp eax, edi */ 1788 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1790 _flag_k = FK_CMP; 1791 MEM32(esi + 0x18) = eax; /* 0x47015DAB: mov dword ptr [esi + 0x18], eax */ 1792 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015DBE; /* 0x47015DAE: je 0x47015dbe */ 1793 L_47015DB0: 1794 MEM32(eax) = edi; /* 0x47015DB0: mov dword ptr [eax], edi */ 1795 eax = MEM32(esi + 0x18); /* 0x47015DB2: mov eax, dword ptr [esi + 0x18] */ 1796 MEM32(eax) = eax; /* 0x47015DB5: mov dword ptr [eax], eax */ 1797 edi = POP32_VAL(esp); /* 0x47015DB7: pop edi */ 1798 eax = esi; /* 0x47015DB8: mov eax, esi */ 1799 esi = POP32_VAL(esp); /* 0x47015DBA: pop esi */ 1800 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47015DBB: ret 4 */ 1801 L_47015DBE: 1802 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47015DBE: call dword ptr [0x470ac3c8] */ 1803 RECOMP_FLAGS_IN(); 1804 MEM32(eax) = 0xCu; /* 0x47015DC4: mov dword ptr [eax], 0xc */ 1805 edi = POP32_VAL(esp); /* 0x47015DCA: pop edi */ 1806 eax = esi; /* 0x47015DCB: mov eax, esi */ 1807 esi = POP32_VAL(esp); /* 0x47015DCD: pop esi */ 1808 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47015DCE: ret 4 */ 1809 RECOMP_REGS_OUT(); 1810 } 1811 1812 void sub_47015DE0(void) { 1813 int _fpu_cmp = 0; 1814 uint32_t _cf = 0; 1815 int _df = 1; 1816 uint32_t _flag_k = FK_NONE; 1817 uint32_t _flag_a = 0, _flag_b = 0; 1818 uint32_t _itail_tgt = 0; 1819 RECOMP_REGS_LOCALS 1820 RECOMP_ENTER(0x47015DE0u); 1821 1822 L_47015DE0: 1823 PUSH32(esp, esi); /* 0x47015DE0: push esi */ 1824 esi = ecx; /* 0x47015DE1: mov esi, ecx */ 1825 /* cmp MEM32(esi + 0x4), 3 */ /* 0x47015DE3: cmp dword ptr [esi + 4], 3 */ 1826 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(3); 1827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1828 _flag_k = FK_CMP; 1829 PUSH32(esp, edi); /* 0x47015DE7: push edi */ 1830 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015DFE; /* 0x47015DE8: je 0x47015dfe */ 1831 L_47015DEA: 1832 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47015DEA: call dword ptr [0x470ac3c8] */ 1833 RECOMP_FLAGS_IN(); 1834 edi = POP32_VAL(esp); /* 0x47015DF0: pop edi */ 1835 MEM32(eax) = 0x16u; /* 0x47015DF1: mov dword ptr [eax], 0x16 */ 1836 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1837 eax = eax | 0xFFFFFFFFu; /* 0x47015DF7: or eax, 0xffffffff */ 1838 _cf = 0; 1839 _flag_k = FK_TEST; 1840 esi = POP32_VAL(esp); /* 0x47015DFA: pop esi */ 1841 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47015DFB: ret 4 */ 1842 L_47015DFE: 1843 edi = MEM32(esp + 0xC); /* 0x47015DFE: mov edi, dword ptr [esp + 0xc] */ 1844 eax = esp + 0xC; /* 0x47015E02: lea eax, [esp + 0xc] */ 1845 PUSH32(esp, eax); /* 0x47015E06: push eax */ 1846 ecx = esi + 0x18; /* 0x47015E07: lea ecx, [esi + 0x18] */ 1847 MEM32(esp + 0x10) = edi; /* 0x47015E0A: mov dword ptr [esp + 0x10], edi */ 1848 RECOMP_ICALL(0x47067230u); /* 0x47015E0E: call 0x47067230 */ /* not lifted */ 1849 RECOMP_FLAGS_IN(); 1850 /* cmp eax, 0xFFFFFFFFu */ /* 0x47015E13: cmp eax, -1 */ 1851 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1853 _flag_k = FK_CMP; 1854 if (CMP_NE(_flag_a, _flag_b)) goto L_47015E7C; /* 0x47015E16: jne 0x47015e7c */ 1855 L_47015E18: 1856 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47015E18: call dword ptr [0x470ac150] */ 1857 RECOMP_FLAGS_IN(); 1858 edi = eax; /* 0x47015E1E: mov edi, eax */ 1859 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47015E20: call dword ptr [0x470ac3c8] */ 1860 RECOMP_FLAGS_IN(); 1861 eax = MEM32(eax); /* 0x47015E26: mov eax, dword ptr [eax] */ 1862 /* test eax, eax */ /* 0x47015E28: test eax, eax */ 1863 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1864 _cf = 0; 1865 _flag_k = FK_TEST; 1866 if (TEST_Z(_flag_a, _flag_b)) goto L_47015E2E; /* 0x47015E2A: je 0x47015e2e */ 1867 L_47015E2C: 1868 edi = eax; /* 0x47015E2C: mov edi, eax */ 1869 L_47015E2E: 1870 RECOMP_ICALL(0x47039020u); /* 0x47015E2E: call 0x47039020 */ /* not lifted */ 1871 RECOMP_FLAGS_IN(); 1872 esi = eax; /* 0x47015E33: mov esi, eax */ 1873 ecx = esi; /* 0x47015E35: mov ecx, esi */ 1874 RECOMP_ICALL(0x4703B210u); /* 0x47015E37: call 0x4703b210 */ /* not lifted */ 1875 RECOMP_FLAGS_IN(); 1876 PUSH32(esp, eax); /* 0x47015E3C: push eax */ 1877 ecx = esi; /* 0x47015E3D: mov ecx, esi */ 1878 RECOMP_ICALL(0x4703B240u); /* 0x47015E3F: call 0x4703b240 */ /* not lifted */ 1879 RECOMP_FLAGS_IN(); 1880 PUSH32(esp, eax); /* 0x47015E44: push eax */ 1881 ecx = esi; /* 0x47015E45: mov ecx, esi */ 1882 RECOMP_ICALL(0x4703B080u); /* 0x47015E47: call 0x4703b080 */ /* not lifted */ 1883 RECOMP_FLAGS_IN(); 1884 PUSH32(esp, eax); /* 0x47015E4C: push eax */ 1885 PUSH32(esp, edi); /* 0x47015E4D: push edi */ 1886 PUSH32(esp, 0xFFFFFFFFu); /* 0x47015E4E: push -1 */ 1887 PUSH32(esp, 0xE3u); /* 0x47015E50: push 0xe3 */ 1888 PUSH32(esp, 0x471055BCu); /* 0x47015E55: push 0x471055bc */ 1889 ecx = esi; /* 0x47015E5A: mov ecx, esi */ 1890 RECOMP_ICALL(0x4703A340u); /* 0x47015E5C: call 0x4703a340 */ /* not lifted */ 1891 RECOMP_FLAGS_IN(); 1892 PUSH32(esp, 0x47105604u); /* 0x47015E61: push 0x47105604 */ 1893 PUSH32(esp, 0x80u); /* 0x47015E66: push 0x80 */ 1894 PUSH32(esp, esi); /* 0x47015E6B: push esi */ 1895 RECOMP_ICALL(0x47039830u); /* 0x47015E6C: call 0x47039830 */ /* not lifted */ 1896 RECOMP_FLAGS_IN(); 1897 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1898 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1899 esp = esp + 0xCu; /* 0x47015E71: add esp, 0xc */ 1900 _flag_k = FK_ADD; 1901 edi = POP32_VAL(esp); /* 0x47015E74: pop edi */ 1902 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1903 eax = eax | 0xFFFFFFFFu; /* 0x47015E75: or eax, 0xffffffff */ 1904 _cf = 0; 1905 _flag_k = FK_TEST; 1906 esi = POP32_VAL(esp); /* 0x47015E78: pop esi */ 1907 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47015E79: ret 4 */ 1908 L_47015E7C: 1909 edx = MEM32(esi + 0x8); /* 0x47015E7C: mov edx, dword ptr [esi + 8] */ 1910 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1911 ecx = ecx | 0xFFFFFFFFu; /* 0x47015E7F: or ecx, 0xffffffff */ 1912 _cf = 0; 1913 _flag_k = FK_TEST; 1914 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1915 eax = 0; /* 0x47015E82: xor eax, eax */ 1916 _cf = 0; 1917 _flag_k = FK_TEST; 1918 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x47015E84: repne scasb al, byte ptr es:[edi] */ 1919 edi = MEM32(esi + 0x14); /* 0x47015E86: mov edi, dword ptr [esi + 0x14] */ 1920 eax = MEM32(esi + 0xC); /* 0x47015E89: mov eax, dword ptr [esi + 0xc] */ 1921 ecx = ~ecx; /* 0x47015E8C: not ecx */ 1922 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1923 ecx = ecx - 1; /* 0x47015E8E: dec ecx */ 1924 _flag_k = FK_DEC; 1925 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1926 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1927 edi = edi + ecx; /* 0x47015E8F: add edi, ecx */ 1928 _flag_k = FK_ADD; 1929 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1930 edx = edx + 1; /* 0x47015E91: inc edx */ 1931 _flag_k = FK_INC; 1932 /* test eax, eax */ /* 0x47015E92: test eax, eax */ 1933 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1934 _cf = 0; 1935 _flag_k = FK_TEST; 1936 MEM32(esi + 0x14) = edi; /* 0x47015E94: mov dword ptr [esi + 0x14], edi */ 1937 MEM32(esi + 0x8) = edx; /* 0x47015E97: mov dword ptr [esi + 8], edx */ 1938 if (TEST_Z(_flag_a, _flag_b)) goto L_47015ED3; /* 0x47015E9A: je 0x47015ed3 */ 1939 L_47015E9C: 1940 eax = MEM32(eax); /* 0x47015E9C: mov eax, dword ptr [eax] */ 1941 /* test eax, eax */ /* 0x47015E9E: test eax, eax */ 1942 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1943 _cf = 0; 1944 _flag_k = FK_TEST; 1945 if (TEST_Z(_flag_a, _flag_b)) goto L_47015EC0; /* 0x47015EA0: je 0x47015ec0 */ 1946 L_47015EA2: 1947 PUSH32(esp, ebx); /* 0x47015EA2: push ebx */ 1948 ebx = MEM32(0x470AC390); /* 0x47015EA3: mov ebx, dword ptr [0x470ac390] */ 1949 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1950 edi = 0; /* 0x47015EA9: xor edi, edi */ 1951 _cf = 0; 1952 _flag_k = FK_TEST; 1953 L_47015EAB: 1954 PUSH32(esp, eax); /* 0x47015EAB: push eax */ 1955 RECOMP_ICALL(ebx); /* 0x47015EAC: call ebx */ 1956 RECOMP_FLAGS_IN(); 1957 ecx = MEM32(esi + 0xC); /* 0x47015EAE: mov ecx, dword ptr [esi + 0xc] */ 1958 eax = MEM32(ecx + edi + 0x4); /* 0x47015EB1: mov eax, dword ptr [ecx + edi + 4] */ 1959 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 1960 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1961 edi = edi + 4; /* 0x47015EB5: add edi, 4 */ 1962 _flag_k = FK_ADD; 1963 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1964 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1965 esp = esp + 4; /* 0x47015EB8: add esp, 4 */ 1966 _flag_k = FK_ADD; 1967 /* test eax, eax */ /* 0x47015EBB: test eax, eax */ 1968 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1969 _cf = 0; 1970 _flag_k = FK_TEST; 1971 RECOMP_BACKEDGE(); 1972 if (TEST_NZ(_flag_a, _flag_b)) goto L_47015EAB; /* 0x47015EBD: jne 0x47015eab */ 1973 L_47015EBF: 1974 ebx = POP32_VAL(esp); /* 0x47015EBF: pop ebx */ 1975 L_47015EC0: 1976 edx = MEM32(esi + 0xC); /* 0x47015EC0: mov edx, dword ptr [esi + 0xc] */ 1977 PUSH32(esp, edx); /* 0x47015EC3: push edx */ 1978 RECOMP_ICALL(0x470A32A2u); /* 0x47015EC4: call 0x470a32a2 */ /* not lifted */ 1979 RECOMP_FLAGS_IN(); 1980 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1981 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1982 esp = esp + 4; /* 0x47015EC9: add esp, 4 */ 1983 _flag_k = FK_ADD; 1984 MEM32(esi + 0xC) = 0; /* 0x47015ECC: mov dword ptr [esi + 0xc], 0 */ 1985 L_47015ED3: 1986 eax = MEM32(esi + 0x10); /* 0x47015ED3: mov eax, dword ptr [esi + 0x10] */ 1987 PUSH32(esp, eax); /* 0x47015ED6: push eax */ 1988 RECOMP_ICALL(0x470A32A2u); /* 0x47015ED7: call 0x470a32a2 */ /* not lifted */ 1989 RECOMP_FLAGS_IN(); 1990 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1991 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1992 esp = esp + 4; /* 0x47015EDC: add esp, 4 */ 1993 _flag_k = FK_ADD; 1994 edi = POP32_VAL(esp); /* 0x47015EDF: pop edi */ 1995 MEM32(esi + 0x10) = 0; /* 0x47015EE0: mov dword ptr [esi + 0x10], 0 */ 1996 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1997 eax = 0; /* 0x47015EE7: xor eax, eax */ 1998 _cf = 0; 1999 _flag_k = FK_TEST; 2000 esi = POP32_VAL(esp); /* 0x47015EE9: pop esi */ 2001 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47015EEA: ret 4 */ 2002 RECOMP_REGS_OUT(); 2003 } 2004 2005 void sub_47015EF0(void) { 2006 int _fpu_cmp = 0; 2007 uint32_t _cf = 0; 2008 int _df = 1; 2009 uint32_t _flag_k = FK_NONE; 2010 uint32_t _flag_a = 0, _flag_b = 0; 2011 uint32_t _itail_tgt = 0; 2012 RECOMP_REGS_LOCALS 2013 RECOMP_ENTER(0x47015EF0u); 2014 2015 L_47015EF0: 2016 eax = MEM32(esp + 0x4); /* 0x47015EF0: mov eax, dword ptr [esp + 4] */ 2017 PUSH32(esp, esi); /* 0x47015EF4: push esi */ 2018 PUSH32(esp, edi); /* 0x47015EF5: push edi */ 2019 edi = ecx; /* 0x47015EF6: mov edi, ecx */ 2020 /* cmp MEM32(eax), 0 */ /* 0x47015EF8: cmp dword ptr [eax], 0 */ 2021 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 2022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2023 _flag_k = FK_CMP; 2024 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015F1A; /* 0x47015EFB: je 0x47015f1a */ 2025 L_47015EFD: 2026 esi = eax; /* 0x47015EFD: mov esi, eax */ 2027 L_47015EFF: 2028 eax = MEM32(eax); /* 0x47015EFF: mov eax, dword ptr [eax] */ 2029 PUSH32(esp, eax); /* 0x47015F01: push eax */ 2030 ecx = edi; /* 0x47015F02: mov ecx, edi */ 2031 RECOMP_ICALL(0x47015DE0u); /* 0x47015F04: call 0x47015de0 */ /* not lifted */ 2032 RECOMP_FLAGS_IN(); 2033 /* cmp eax, 0xFFFFFFFFu */ /* 0x47015F09: cmp eax, -1 */ 2034 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2036 _flag_k = FK_CMP; 2037 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015F21; /* 0x47015F0C: je 0x47015f21 */ 2038 L_47015F0E: 2039 ecx = MEM32(esi + 0x4); /* 0x47015F0E: mov ecx, dword ptr [esi + 4] */ 2040 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2041 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2042 esi = esi + 4; /* 0x47015F11: add esi, 4 */ 2043 _flag_k = FK_ADD; 2044 /* test ecx, ecx */ /* 0x47015F14: test ecx, ecx */ 2045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2046 _cf = 0; 2047 _flag_k = FK_TEST; 2048 eax = esi; /* 0x47015F16: mov eax, esi */ 2049 RECOMP_BACKEDGE(); 2050 if (TEST_NZ(_flag_a, _flag_b)) goto L_47015EFF; /* 0x47015F18: jne 0x47015eff */ 2051 L_47015F1A: 2052 edi = POP32_VAL(esp); /* 0x47015F1A: pop edi */ 2053 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2054 eax = 0; /* 0x47015F1B: xor eax, eax */ 2055 _cf = 0; 2056 _flag_k = FK_TEST; 2057 esi = POP32_VAL(esp); /* 0x47015F1D: pop esi */ 2058 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47015F1E: ret 4 */ 2059 L_47015F21: 2060 edi = POP32_VAL(esp); /* 0x47015F21: pop edi */ 2061 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2062 eax = eax | 0xFFFFFFFFu; /* 0x47015F22: or eax, 0xffffffff */ 2063 _cf = 0; 2064 _flag_k = FK_TEST; 2065 esi = POP32_VAL(esp); /* 0x47015F25: pop esi */ 2066 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47015F26: ret 4 */ 2067 RECOMP_REGS_OUT(); 2068 } 2069 2070 void sub_47015F30(void) { 2071 int _fpu_cmp = 0; 2072 uint32_t _cf = 0; 2073 int _df = 1; 2074 uint32_t _flag_k = FK_NONE; 2075 uint32_t _flag_a = 0, _flag_b = 0; 2076 uint32_t _itail_tgt = 0; 2077 RECOMP_REGS_LOCALS 2078 RECOMP_ENTER(0x47015F30u); 2079 2080 L_47015F30: 2081 PUSH32(esp, esi); /* 0x47015F30: push esi */ 2082 esi = ecx; /* 0x47015F31: mov esi, ecx */ 2083 eax = MEM32(esi + 0xC); /* 0x47015F33: mov eax, dword ptr [esi + 0xc] */ 2084 /* test eax, eax */ /* 0x47015F36: test eax, eax */ 2085 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2086 _cf = 0; 2087 _flag_k = FK_TEST; 2088 PUSH32(esp, edi); /* 0x47015F38: push edi */ 2089 if (TEST_Z(_flag_a, _flag_b)) goto L_47015F5F; /* 0x47015F39: je 0x47015f5f */ 2090 L_47015F3B: 2091 eax = MEM32(eax); /* 0x47015F3B: mov eax, dword ptr [eax] */ 2092 /* test eax, eax */ /* 0x47015F3D: test eax, eax */ 2093 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2094 _cf = 0; 2095 _flag_k = FK_TEST; 2096 if (TEST_Z(_flag_a, _flag_b)) goto L_47015F5F; /* 0x47015F3F: je 0x47015f5f */ 2097 L_47015F41: 2098 PUSH32(esp, ebx); /* 0x47015F41: push ebx */ 2099 ebx = MEM32(0x470AC390); /* 0x47015F42: mov ebx, dword ptr [0x470ac390] */ 2100 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2101 edi = 0; /* 0x47015F48: xor edi, edi */ 2102 _cf = 0; 2103 _flag_k = FK_TEST; 2104 L_47015F4A: 2105 PUSH32(esp, eax); /* 0x47015F4A: push eax */ 2106 RECOMP_ICALL(ebx); /* 0x47015F4B: call ebx */ 2107 RECOMP_FLAGS_IN(); 2108 eax = MEM32(esi + 0xC); /* 0x47015F4D: mov eax, dword ptr [esi + 0xc] */ 2109 eax = MEM32(edi + eax + 0x4); /* 0x47015F50: mov eax, dword ptr [edi + eax + 4] */ 2110 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 2111 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2112 edi = edi + 4; /* 0x47015F54: add edi, 4 */ 2113 _flag_k = FK_ADD; 2114 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2115 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2116 esp = esp + 4; /* 0x47015F57: add esp, 4 */ 2117 _flag_k = FK_ADD; 2118 /* test eax, eax */ /* 0x47015F5A: test eax, eax */ 2119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2120 _cf = 0; 2121 _flag_k = FK_TEST; 2122 RECOMP_BACKEDGE(); 2123 if (TEST_NZ(_flag_a, _flag_b)) goto L_47015F4A; /* 0x47015F5C: jne 0x47015f4a */ 2124 L_47015F5E: 2125 ebx = POP32_VAL(esp); /* 0x47015F5E: pop ebx */ 2126 L_47015F5F: 2127 ecx = MEM32(esi + 0xC); /* 0x47015F5F: mov ecx, dword ptr [esi + 0xc] */ 2128 PUSH32(esp, ecx); /* 0x47015F62: push ecx */ 2129 RECOMP_ICALL(0x470A32A2u); /* 0x47015F63: call 0x470a32a2 */ /* not lifted */ 2130 RECOMP_FLAGS_IN(); 2131 edx = MEM32(esi + 0x10); /* 0x47015F68: mov edx, dword ptr [esi + 0x10] */ 2132 PUSH32(esp, edx); /* 0x47015F6B: push edx */ 2133 RECOMP_ICALL(0x470A32A2u); /* 0x47015F6C: call 0x470a32a2 */ /* not lifted */ 2134 RECOMP_FLAGS_IN(); 2135 eax = MEM32(esi + 0x18); /* 0x47015F71: mov eax, dword ptr [esi + 0x18] */ 2136 edi = MEM32(eax); /* 0x47015F74: mov edi, dword ptr [eax] */ 2137 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2138 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2139 esp = esp + 8; /* 0x47015F76: add esp, 8 */ 2140 _flag_k = FK_ADD; 2141 /* cmp edi, eax */ /* 0x47015F79: cmp edi, eax */ 2142 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2144 _flag_k = FK_CMP; 2145 if (CMP_EQ(_flag_a, _flag_b)) goto L_47015F9C; /* 0x47015F7B: je 0x47015f9c */ 2146 L_47015F7D: 2147 eax = edi; /* 0x47015F7D: mov eax, edi */ 2148 /* test eax, eax */ /* 0x47015F7F: test eax, eax */ 2149 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2150 _cf = 0; 2151 _flag_k = FK_TEST; 2152 edi = MEM32(edi); /* 0x47015F81: mov edi, dword ptr [edi] */ 2153 if (TEST_Z(_flag_a, _flag_b)) goto L_47015F8E; /* 0x47015F83: je 0x47015f8e */ 2154 L_47015F85: 2155 ecx = MEM32(esi + 0x20); /* 0x47015F85: mov ecx, dword ptr [esi + 0x20] */ 2156 edx = MEM32(ecx); /* 0x47015F88: mov edx, dword ptr [ecx] */ 2157 PUSH32(esp, eax); /* 0x47015F8A: push eax */ 2158 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47015F8B: call dword ptr [edx + 0xc] */ 2159 RECOMP_FLAGS_IN(); 2160 L_47015F8E: 2161 ecx = MEM32(esi + 0x1C); /* 0x47015F8E: mov ecx, dword ptr [esi + 0x1c] */ 2162 eax = MEM32(esi + 0x18); /* 0x47015F91: mov eax, dword ptr [esi + 0x18] */ 2163 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2164 ecx = ecx - 1; /* 0x47015F94: dec ecx */ 2165 _flag_k = FK_DEC; 2166 /* cmp edi, eax */ /* 0x47015F95: cmp edi, eax */ 2167 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2169 _flag_k = FK_CMP; 2170 MEM32(esi + 0x1C) = ecx; /* 0x47015F97: mov dword ptr [esi + 0x1c], ecx */ 2171 RECOMP_BACKEDGE(); 2172 if (CMP_NE(_flag_a, _flag_b)) goto L_47015F7D; /* 0x47015F9A: jne 0x47015f7d */ 2173 L_47015F9C: 2174 eax = MEM32(esi + 0x18); /* 0x47015F9C: mov eax, dword ptr [esi + 0x18] */ 2175 MEM32(eax) = eax; /* 0x47015F9F: mov dword ptr [eax], eax */ 2176 eax = MEM32(esi + 0x18); /* 0x47015FA1: mov eax, dword ptr [esi + 0x18] */ 2177 /* test eax, eax */ /* 0x47015FA4: test eax, eax */ 2178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2179 _cf = 0; 2180 _flag_k = FK_TEST; 2181 if (TEST_Z(_flag_a, _flag_b)) goto L_47015FB1; /* 0x47015FA6: je 0x47015fb1 */ 2182 L_47015FA8: 2183 ecx = MEM32(esi + 0x20); /* 0x47015FA8: mov ecx, dword ptr [esi + 0x20] */ 2184 edx = MEM32(ecx); /* 0x47015FAB: mov edx, dword ptr [ecx] */ 2185 PUSH32(esp, eax); /* 0x47015FAD: push eax */ 2186 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47015FAE: call dword ptr [edx + 0xc] */ 2187 RECOMP_FLAGS_IN(); 2188 L_47015FB1: 2189 edi = POP32_VAL(esp); /* 0x47015FB1: pop edi */ 2190 MEM32(esi + 0x18) = 0; /* 0x47015FB2: mov dword ptr [esi + 0x18], 0 */ 2191 esi = POP32_VAL(esp); /* 0x47015FB9: pop esi */ 2192 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47015FBA: ret */ 2193 RECOMP_REGS_OUT(); 2194 } 2195 2196 void sub_47015FC0(void) { 2197 int _fpu_cmp = 0; 2198 uint32_t _cf = 0; 2199 int _df = 1; 2200 uint32_t _flag_k = FK_NONE; 2201 uint32_t _flag_a = 0, _flag_b = 0; 2202 uint32_t _itail_tgt = 0; 2203 RECOMP_REGS_LOCALS 2204 RECOMP_ENTER(0x47015FC0u); 2205 2206 L_47015FC0: 2207 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2209 esp = esp - 0xCu; /* 0x47015FC0: sub esp, 0xc */ 2210 _flag_k = FK_CMP; 2211 PUSH32(esp, ebx); /* 0x47015FC3: push ebx */ 2212 PUSH32(esp, esi); /* 0x47015FC4: push esi */ 2213 esi = ecx; /* 0x47015FC5: mov esi, ecx */ 2214 eax = MEM32(esi + 0x8); /* 0x47015FC7: mov eax, dword ptr [esi + 8] */ 2215 /* test eax, eax */ /* 0x47015FCA: test eax, eax */ 2216 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2217 _cf = 0; 2218 _flag_k = FK_TEST; 2219 MEM32(esp + 0x10) = esi; /* 0x47015FCC: mov dword ptr [esp + 0x10], esi */ 2220 if (TEST_NZ(_flag_a, _flag_b)) goto L_47015FDB; /* 0x47015FD0: ja 0x47015fdb */ 2221 L_47015FD2: 2222 esi = POP32_VAL(esp); /* 0x47015FD2: pop esi */ 2223 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2224 eax = eax | 0xFFFFFFFFu; /* 0x47015FD3: or eax, 0xffffffff */ 2225 _cf = 0; 2226 _flag_k = FK_TEST; 2227 ebx = POP32_VAL(esp); /* 0x47015FD6: pop ebx */ 2228 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2230 esp = esp + 0xCu; /* 0x47015FD7: add esp, 0xc */ 2231 _flag_k = FK_ADD; 2232 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47015FDA: ret */ 2233 L_47015FDB: 2234 eax = MEM32(esi + 0x10); /* 0x47015FDB: mov eax, dword ptr [esi + 0x10] */ 2235 PUSH32(esp, eax); /* 0x47015FDE: push eax */ 2236 RECOMP_ICALL(0x470A32A2u); /* 0x47015FDF: call 0x470a32a2 */ /* not lifted */ 2237 RECOMP_FLAGS_IN(); 2238 ecx = MEM32(esi + 0x14); /* 0x47015FE4: mov ecx, dword ptr [esi + 0x14] */ 2239 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2241 ecx = ecx + MEM32(esi + 0x8); /* 0x47015FE7: add ecx, dword ptr [esi + 8] */ 2242 _flag_k = FK_ADD; 2243 PUSH32(esp, ecx); /* 0x47015FEA: push ecx */ 2244 RECOMP_ICALL(0x470A33F2u); /* 0x47015FEB: call 0x470a33f2 */ /* not lifted */ 2245 RECOMP_FLAGS_IN(); 2246 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2247 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2248 esp = esp + 8; /* 0x47015FF0: add esp, 8 */ 2249 _flag_k = FK_ADD; 2250 /* test eax, eax */ /* 0x47015FF3: test eax, eax */ 2251 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2252 _cf = 0; 2253 _flag_k = FK_TEST; 2254 MEM32(esi + 0x10) = eax; /* 0x47015FF5: mov dword ptr [esi + 0x10], eax */ 2255 if (TEST_NZ(_flag_a, _flag_b)) goto L_4701600F; /* 0x47015FF8: jne 0x4701600f */ 2256 L_47015FFA: 2257 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47015FFA: call dword ptr [0x470ac3c8] */ 2258 RECOMP_FLAGS_IN(); 2259 esi = POP32_VAL(esp); /* 0x47016000: pop esi */ 2260 MEM32(eax) = 0xCu; /* 0x47016001: mov dword ptr [eax], 0xc */ 2261 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2262 eax = eax | 0xFFFFFFFFu; /* 0x47016007: or eax, 0xffffffff */ 2263 _cf = 0; 2264 _flag_k = FK_TEST; 2265 ebx = POP32_VAL(esp); /* 0x4701600A: pop ebx */ 2266 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2268 esp = esp + 0xCu; /* 0x4701600B: add esp, 0xc */ 2269 _flag_k = FK_ADD; 2270 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701600E: ret */ 2271 L_4701600F: 2272 ecx = MEM32(esi + 0x18); /* 0x4701600F: mov ecx, dword ptr [esi + 0x18] */ 2273 edx = MEM32(ecx); /* 0x47016012: mov edx, dword ptr [ecx] */ 2274 /* cmp edx, ecx */ /* 0x47016014: cmp edx, ecx */ 2275 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2277 _flag_k = FK_CMP; 2278 PUSH32(esp, ebp); /* 0x47016016: push ebp */ 2279 ebp = eax; /* 0x47016017: mov ebp, eax */ 2280 if (CMP_EQ(_flag_a, _flag_b)) goto L_47016071; /* 0x47016019: je 0x47016071 */ 2281 L_4701601B: 2282 PUSH32(esp, edi); /* 0x4701601B: push edi */ 2283 if (CMP_EQ(_flag_a, _flag_b)) goto L_47016025; /* 0x4701601C: je 0x47016025 */ 2284 L_4701601E: 2285 eax = edx + 0x4; /* 0x4701601E: lea eax, [edx + 4] */ 2286 MEM32(esp + 0x10) = eax; /* 0x47016021: mov dword ptr [esp + 0x10], eax */ 2287 L_47016025: 2288 edx = MEM32(edx); /* 0x47016025: mov edx, dword ptr [edx] */ 2289 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2290 eax = 0; /* 0x47016027: xor eax, eax */ 2291 _cf = 0; 2292 _flag_k = FK_TEST; 2293 /* cmp edx, ecx */ /* 0x47016029: cmp edx, ecx */ 2294 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2296 _flag_k = FK_CMP; 2297 ecx = MEM32(esp + 0x10); /* 0x4701602B: mov ecx, dword ptr [esp + 0x10] */ 2298 esi = MEM32(ecx); /* 0x4701602F: mov esi, dword ptr [ecx] */ 2299 SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x47016031: setne al */ 2300 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2301 ecx = ecx | 0xFFFFFFFFu; /* 0x47016034: or ecx, 0xffffffff */ 2302 _cf = 0; 2303 _flag_k = FK_TEST; 2304 edi = esi; /* 0x47016037: mov edi, esi */ 2305 MEM32(esp + 0x14) = eax; /* 0x47016039: mov dword ptr [esp + 0x14], eax */ 2306 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2307 eax = 0; /* 0x4701603D: xor eax, eax */ 2308 _cf = 0; 2309 _flag_k = FK_TEST; 2310 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4701603F: repne scasb al, byte ptr es:[edi] */ 2311 ecx = ~ecx; /* 0x47016041: not ecx */ 2312 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2313 ecx = ecx - 1; /* 0x47016043: dec ecx */ 2314 _flag_k = FK_DEC; 2315 eax = ecx; /* 0x47016044: mov eax, ecx */ 2316 ebx = ecx; /* 0x47016046: mov ebx, ecx */ 2317 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47016048: shr ecx, 2 */ 2318 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2319 ecx = ecx >> 2u; /* 0x47016048: shr ecx, 2 */ 2320 edi = ebp; /* 0x4701604B: mov edi, ebp */ 2321 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4701604D: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2322 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(eax); 2323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2324 ebp = ebp + eax; /* 0x4701604F: add ebp, eax */ 2325 _flag_k = FK_ADD; 2326 eax = MEM32(esp + 0x14); /* 0x47016051: mov eax, dword ptr [esp + 0x14] */ 2327 ecx = ebx; /* 0x47016055: mov ecx, ebx */ 2328 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2329 ecx = ecx & 3; /* 0x47016057: and ecx, 3 */ 2330 _cf = 0; 2331 _flag_k = FK_TEST; 2332 /* test eax, eax */ /* 0x4701605A: test eax, eax */ 2333 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2334 _cf = 0; 2335 _flag_k = FK_TEST; 2336 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4701605C: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2337 if (TEST_Z(_flag_a, _flag_b)) goto L_47016065; /* 0x4701605E: je 0x47016065 */ 2338 L_47016060: 2339 MEM8(ebp) = (uint8_t)(0x20u); /* 0x47016060: mov byte ptr [ebp], 0x20 */ 2340 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(1); 2341 ebp = ebp + 1; /* 0x47016064: inc ebp */ 2342 _flag_k = FK_INC; 2343 L_47016065: 2344 eax = MEM32(esp + 0x18); /* 0x47016065: mov eax, dword ptr [esp + 0x18] */ 2345 ecx = MEM32(eax + 0x18); /* 0x47016069: mov ecx, dword ptr [eax + 0x18] */ 2346 /* cmp edx, ecx */ /* 0x4701606C: cmp edx, ecx */ 2347 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2349 _flag_k = FK_CMP; 2350 RECOMP_BACKEDGE(); 2351 if (CMP_NE(_flag_a, _flag_b)) goto L_4701601E; /* 0x4701606E: jne 0x4701601e */ 2352 L_47016070: 2353 edi = POP32_VAL(esp); /* 0x47016070: pop edi */ 2354 L_47016071: 2355 MEM8(ebp) = (uint8_t)(0); /* 0x47016071: mov byte ptr [ebp], 0 */ 2356 ebp = POP32_VAL(esp); /* 0x47016075: pop ebp */ 2357 esi = POP32_VAL(esp); /* 0x47016076: pop esi */ 2358 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2359 eax = 0; /* 0x47016077: xor eax, eax */ 2360 _cf = 0; 2361 _flag_k = FK_TEST; 2362 ebx = POP32_VAL(esp); /* 0x47016079: pop ebx */ 2363 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2365 esp = esp + 0xCu; /* 0x4701607A: add esp, 0xc */ 2366 _flag_k = FK_ADD; 2367 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701607D: ret */ 2368 RECOMP_REGS_OUT(); 2369 } 2370 2371 void sub_47016080(void) { 2372 int _fpu_cmp = 0; 2373 uint32_t _cf = 0; 2374 int _df = 1; 2375 uint32_t _flag_k = FK_NONE; 2376 uint32_t _flag_a = 0, _flag_b = 0; 2377 uint32_t _itail_tgt = 0; 2378 RECOMP_REGS_LOCALS 2379 RECOMP_ENTER(0x47016080u); 2380 2381 L_47016080: 2382 ecx = 0x4710DF4Du; /* 0x47016080: mov ecx, 0x4710df4d */ 2383 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47016085: call dword ptr [0x470ac1c8] */ 2384 RECOMP_FLAGS_IN(); 2385 PUSH32(esp, 0x470160A0u); /* 0x4701608B: push 0x470160a0 */ 2386 RECOMP_ICALL(0x470A32D9u); /* 0x47016090: call 0x470a32d9 */ /* not lifted */ 2387 RECOMP_FLAGS_IN(); 2388 ecx = POP32_VAL(esp); /* 0x47016095: pop ecx */ 2389 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47016096: ret */ 2390 RECOMP_REGS_OUT(); 2391 } 2392 2393 void sub_470160A0(void) { 2394 int _fpu_cmp = 0; 2395 uint32_t _cf = 0; 2396 int _df = 1; 2397 uint32_t _flag_k = FK_NONE; 2398 uint32_t _flag_a = 0, _flag_b = 0; 2399 uint32_t _itail_tgt = 0; 2400 RECOMP_REGS_LOCALS 2401 RECOMP_ENTER(0x470160A0u); 2402 2403 L_470160A0: 2404 ecx = 0x4710DF4Du; /* 0x470160A0: mov ecx, 0x4710df4d */ 2405 L_470160A5: 2406 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 2407 { RECOMP_REGS_OUT(); return; } /* end of function */ 2408 _ljump: 2409 switch (_itail_tgt) { 2410 case 0x470160A0u: goto L_470160A0; 2411 case 0x470160A5u: goto L_470160A5; 2412 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2413 } 2414 RECOMP_REGS_OUT(); 2415 } 2416 2417 void sub_470160B0(void) { 2418 int _fpu_cmp = 0; 2419 uint32_t _cf = 0; 2420 int _df = 1; 2421 uint32_t _flag_k = FK_NONE; 2422 uint32_t _flag_a = 0, _flag_b = 0; 2423 uint32_t _itail_tgt = 0; 2424 RECOMP_REGS_LOCALS 2425 RECOMP_ENTER(0x470160B0u); 2426 2427 L_470160B0: 2428 ecx = 0x4710DF4Cu; /* 0x470160B0: mov ecx, 0x4710df4c */ 2429 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x470160B5: call dword ptr [0x470ac1c4] */ 2430 RECOMP_FLAGS_IN(); 2431 PUSH32(esp, 0x470160D0u); /* 0x470160BB: push 0x470160d0 */ 2432 RECOMP_ICALL(0x470A32D9u); /* 0x470160C0: call 0x470a32d9 */ /* not lifted */ 2433 RECOMP_FLAGS_IN(); 2434 ecx = POP32_VAL(esp); /* 0x470160C5: pop ecx */ 2435 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470160C6: ret */ 2436 RECOMP_REGS_OUT(); 2437 } 2438 2439 void sub_470160D0(void) { 2440 int _fpu_cmp = 0; 2441 uint32_t _cf = 0; 2442 int _df = 1; 2443 uint32_t _flag_k = FK_NONE; 2444 uint32_t _flag_a = 0, _flag_b = 0; 2445 uint32_t _itail_tgt = 0; 2446 RECOMP_REGS_LOCALS 2447 RECOMP_ENTER(0x470160D0u); 2448 2449 L_470160D0: 2450 ecx = 0x4710DF4Cu; /* 0x470160D0: mov ecx, 0x4710df4c */ 2451 L_470160D5: 2452 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 2453 { RECOMP_REGS_OUT(); return; } /* end of function */ 2454 _ljump: 2455 switch (_itail_tgt) { 2456 case 0x470160D0u: goto L_470160D0; 2457 case 0x470160D5u: goto L_470160D5; 2458 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2459 } 2460 RECOMP_REGS_OUT(); 2461 } 2462 2463 void sub_470160E0(void) { 2464 int _fpu_cmp = 0; 2465 uint32_t _cf = 0; 2466 int _df = 1; 2467 uint32_t _flag_k = FK_NONE; 2468 uint32_t _flag_a = 0, _flag_b = 0; 2469 uint32_t _itail_tgt = 0; 2470 RECOMP_REGS_LOCALS 2471 RECOMP_ENTER(0x470160E0u); 2472 2473 L_470160E0: 2474 eax = ecx; /* 0x470160E0: mov eax, ecx */ 2475 ecx = MEM32(esp + 0x4); /* 0x470160E2: mov ecx, dword ptr [esp + 4] */ 2476 edx = MEM32(ecx + 0x4); /* 0x470160E6: mov edx, dword ptr [ecx + 4] */ 2477 MEM32(eax + 0x4) = edx; /* 0x470160E9: mov dword ptr [eax + 4], edx */ 2478 MEM32(eax) = 0x470ACB80u; /* 0x470160EC: mov dword ptr [eax], 0x470acb80 */ 2479 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470160F2: ret 4 */ 2480 RECOMP_REGS_OUT(); 2481 } 2482 2483 void sub_47016100(void) { 2484 int _fpu_cmp = 0; 2485 uint32_t _cf = 0; 2486 int _df = 1; 2487 uint32_t _flag_k = FK_NONE; 2488 uint32_t _flag_a = 0, _flag_b = 0; 2489 uint32_t _itail_tgt = 0; 2490 RECOMP_REGS_LOCALS 2491 RECOMP_ENTER(0x47016100u); 2492 2493 L_47016100: 2494 eax = ecx; /* 0x47016100: mov eax, ecx */ 2495 ecx = MEM32(esp + 0x4); /* 0x47016102: mov ecx, dword ptr [esp + 4] */ 2496 edx = MEM32(ecx + 0x4); /* 0x47016106: mov edx, dword ptr [ecx + 4] */ 2497 MEM32(eax + 0x4) = edx; /* 0x47016109: mov dword ptr [eax + 4], edx */ 2498 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701610C: ret 4 */ 2499 RECOMP_REGS_OUT(); 2500 } 2501 2502 void sub_47016110(void) { 2503 int _fpu_cmp = 0; 2504 uint32_t _cf = 0; 2505 int _df = 1; 2506 uint32_t _flag_k = FK_NONE; 2507 uint32_t _flag_a = 0, _flag_b = 0; 2508 uint32_t _itail_tgt = 0; 2509 RECOMP_REGS_LOCALS 2510 RECOMP_ENTER(0x47016110u); 2511 2512 L_47016110: 2513 PUSH32(esp, ebx); /* 0x47016110: push ebx */ 2514 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016111: mov bl, byte ptr [esp + 8] */ 2515 /* test LO8(ebx), 2 */ /* 0x47016115: test bl, 2 */ 2516 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2517 _cf = 0; 2518 _flag_k = FK_NARROW(FK_TEST, 24); 2519 PUSH32(esp, esi); /* 0x47016118: push esi */ 2520 esi = ecx; /* 0x47016119: mov esi, ecx */ 2521 if (TEST_Z(_flag_a, _flag_b)) goto L_47016148; /* 0x4701611B: je 0x47016148 */ 2522 L_4701611D: 2523 eax = MEM32(esi + (-0x4)); /* 0x4701611D: mov eax, dword ptr [esi - 4] */ 2524 PUSH32(esp, edi); /* 0x47016120: push edi */ 2525 PUSH32(esp, 0x47017E00u); /* 0x47016121: push 0x47017e00 */ 2526 edi = esi + (-0x4); /* 0x47016126: lea edi, [esi - 4] */ 2527 PUSH32(esp, eax); /* 0x47016129: push eax */ 2528 PUSH32(esp, 8); /* 0x4701612A: push 8 */ 2529 PUSH32(esp, esi); /* 0x4701612C: push esi */ 2530 RECOMP_ICALL(0x470A32EBu); /* 0x4701612D: call 0x470a32eb */ /* not lifted */ 2531 RECOMP_FLAGS_IN(); 2532 /* test LO8(ebx), 1 */ /* 0x47016132: test bl, 1 */ 2533 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2534 _cf = 0; 2535 _flag_k = FK_NARROW(FK_TEST, 24); 2536 if (TEST_Z(_flag_a, _flag_b)) goto L_47016140; /* 0x47016135: je 0x47016140 */ 2537 L_47016137: 2538 PUSH32(esp, edi); /* 0x47016137: push edi */ 2539 RECOMP_ICALL(0x470A32A2u); /* 0x47016138: call 0x470a32a2 */ /* not lifted */ 2540 RECOMP_FLAGS_IN(); 2541 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2543 esp = esp + 4; /* 0x4701613D: add esp, 4 */ 2544 _flag_k = FK_ADD; 2545 L_47016140: 2546 eax = edi; /* 0x47016140: mov eax, edi */ 2547 edi = POP32_VAL(esp); /* 0x47016142: pop edi */ 2548 esi = POP32_VAL(esp); /* 0x47016143: pop esi */ 2549 ebx = POP32_VAL(esp); /* 0x47016144: pop ebx */ 2550 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016145: ret 4 */ 2551 L_47016148: 2552 /* test LO8(ebx), 1 */ /* 0x47016148: test bl, 1 */ 2553 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2554 _cf = 0; 2555 _flag_k = FK_NARROW(FK_TEST, 24); 2556 MEM32(esi) = 0x470ACB80u; /* 0x4701614B: mov dword ptr [esi], 0x470acb80 */ 2557 if (TEST_Z(_flag_a, _flag_b)) goto L_4701615C; /* 0x47016151: je 0x4701615c */ 2558 L_47016153: 2559 PUSH32(esp, esi); /* 0x47016153: push esi */ 2560 RECOMP_ICALL(0x470A32A2u); /* 0x47016154: call 0x470a32a2 */ /* not lifted */ 2561 RECOMP_FLAGS_IN(); 2562 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2563 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2564 esp = esp + 4; /* 0x47016159: add esp, 4 */ 2565 _flag_k = FK_ADD; 2566 L_4701615C: 2567 eax = esi; /* 0x4701615C: mov eax, esi */ 2568 esi = POP32_VAL(esp); /* 0x4701615E: pop esi */ 2569 ebx = POP32_VAL(esp); /* 0x4701615F: pop ebx */ 2570 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016160: ret 4 */ 2571 RECOMP_REGS_OUT(); 2572 } 2573 2574 void sub_47016170(void) { 2575 int _fpu_cmp = 0; 2576 uint32_t _cf = 0; 2577 int _df = 1; 2578 uint32_t _flag_k = FK_NONE; 2579 uint32_t _flag_a = 0, _flag_b = 0; 2580 uint32_t _itail_tgt = 0; 2581 RECOMP_REGS_LOCALS 2582 RECOMP_ENTER(0x47016170u); 2583 2584 L_47016170: 2585 eax = ecx; /* 0x47016170: mov eax, ecx */ 2586 ecx = MEM32(esp + 0x4); /* 0x47016172: mov ecx, dword ptr [esp + 4] */ 2587 edx = MEM32(ecx + 0x4); /* 0x47016176: mov edx, dword ptr [ecx + 4] */ 2588 MEM32(eax + 0x4) = edx; /* 0x47016179: mov dword ptr [eax + 4], edx */ 2589 MEM32(eax) = 0x470ACB84u; /* 0x4701617C: mov dword ptr [eax], 0x470acb84 */ 2590 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016182: ret 4 */ 2591 RECOMP_REGS_OUT(); 2592 } 2593 2594 void sub_47016190(void) { 2595 int _fpu_cmp = 0; 2596 uint32_t _cf = 0; 2597 int _df = 1; 2598 uint32_t _flag_k = FK_NONE; 2599 uint32_t _flag_a = 0, _flag_b = 0; 2600 uint32_t _itail_tgt = 0; 2601 RECOMP_REGS_LOCALS 2602 RECOMP_ENTER(0x47016190u); 2603 2604 L_47016190: 2605 PUSH32(esp, ebx); /* 0x47016190: push ebx */ 2606 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016191: mov bl, byte ptr [esp + 8] */ 2607 /* test LO8(ebx), 2 */ /* 0x47016195: test bl, 2 */ 2608 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2609 _cf = 0; 2610 _flag_k = FK_NARROW(FK_TEST, 24); 2611 PUSH32(esp, esi); /* 0x47016198: push esi */ 2612 esi = ecx; /* 0x47016199: mov esi, ecx */ 2613 if (TEST_Z(_flag_a, _flag_b)) goto L_470161C8; /* 0x4701619B: je 0x470161c8 */ 2614 L_4701619D: 2615 eax = MEM32(esi + (-0x4)); /* 0x4701619D: mov eax, dword ptr [esi - 4] */ 2616 PUSH32(esp, edi); /* 0x470161A0: push edi */ 2617 PUSH32(esp, 0x47018200u); /* 0x470161A1: push 0x47018200 */ 2618 edi = esi + (-0x4); /* 0x470161A6: lea edi, [esi - 4] */ 2619 PUSH32(esp, eax); /* 0x470161A9: push eax */ 2620 PUSH32(esp, 8); /* 0x470161AA: push 8 */ 2621 PUSH32(esp, esi); /* 0x470161AC: push esi */ 2622 RECOMP_ICALL(0x470A32EBu); /* 0x470161AD: call 0x470a32eb */ /* not lifted */ 2623 RECOMP_FLAGS_IN(); 2624 /* test LO8(ebx), 1 */ /* 0x470161B2: test bl, 1 */ 2625 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2626 _cf = 0; 2627 _flag_k = FK_NARROW(FK_TEST, 24); 2628 if (TEST_Z(_flag_a, _flag_b)) goto L_470161C0; /* 0x470161B5: je 0x470161c0 */ 2629 L_470161B7: 2630 PUSH32(esp, edi); /* 0x470161B7: push edi */ 2631 RECOMP_ICALL(0x470A32A2u); /* 0x470161B8: call 0x470a32a2 */ /* not lifted */ 2632 RECOMP_FLAGS_IN(); 2633 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2634 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2635 esp = esp + 4; /* 0x470161BD: add esp, 4 */ 2636 _flag_k = FK_ADD; 2637 L_470161C0: 2638 eax = edi; /* 0x470161C0: mov eax, edi */ 2639 edi = POP32_VAL(esp); /* 0x470161C2: pop edi */ 2640 esi = POP32_VAL(esp); /* 0x470161C3: pop esi */ 2641 ebx = POP32_VAL(esp); /* 0x470161C4: pop ebx */ 2642 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470161C5: ret 4 */ 2643 L_470161C8: 2644 ecx = MEM32(esi + 0x4); /* 0x470161C8: mov ecx, dword ptr [esi + 4] */ 2645 /* test ecx, ecx */ /* 0x470161CB: test ecx, ecx */ 2646 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2647 _cf = 0; 2648 _flag_k = FK_TEST; 2649 MEM32(esi) = 0x470ACB84u; /* 0x470161CD: mov dword ptr [esi], 0x470acb84 */ 2650 if (TEST_Z(_flag_a, _flag_b)) goto L_470161DB; /* 0x470161D3: je 0x470161db */ 2651 L_470161D5: 2652 edx = MEM32(ecx); /* 0x470161D5: mov edx, dword ptr [ecx] */ 2653 PUSH32(esp, 1); /* 0x470161D7: push 1 */ 2654 RECOMP_ICALL(MEM32(edx)); /* 0x470161D9: call dword ptr [edx] */ 2655 RECOMP_FLAGS_IN(); 2656 L_470161DB: 2657 /* test LO8(ebx), 1 */ /* 0x470161DB: test bl, 1 */ 2658 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2659 _cf = 0; 2660 _flag_k = FK_NARROW(FK_TEST, 24); 2661 MEM32(esi + 0x4) = 0; /* 0x470161DE: mov dword ptr [esi + 4], 0 */ 2662 if (TEST_Z(_flag_a, _flag_b)) goto L_470161F0; /* 0x470161E5: je 0x470161f0 */ 2663 L_470161E7: 2664 PUSH32(esp, esi); /* 0x470161E7: push esi */ 2665 RECOMP_ICALL(0x470A32A2u); /* 0x470161E8: call 0x470a32a2 */ /* not lifted */ 2666 RECOMP_FLAGS_IN(); 2667 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2669 esp = esp + 4; /* 0x470161ED: add esp, 4 */ 2670 _flag_k = FK_ADD; 2671 L_470161F0: 2672 eax = esi; /* 0x470161F0: mov eax, esi */ 2673 esi = POP32_VAL(esp); /* 0x470161F2: pop esi */ 2674 ebx = POP32_VAL(esp); /* 0x470161F3: pop ebx */ 2675 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470161F4: ret 4 */ 2676 RECOMP_REGS_OUT(); 2677 } 2678 2679 void sub_47016200(void) { 2680 int _fpu_cmp = 0; 2681 uint32_t _cf = 0; 2682 int _df = 1; 2683 uint32_t _flag_k = FK_NONE; 2684 uint32_t _flag_a = 0, _flag_b = 0; 2685 uint32_t _itail_tgt = 0; 2686 RECOMP_REGS_LOCALS 2687 RECOMP_ENTER(0x47016200u); 2688 2689 L_47016200: 2690 eax = ecx; /* 0x47016200: mov eax, ecx */ 2691 ecx = MEM32(esp + 0x4); /* 0x47016202: mov ecx, dword ptr [esp + 4] */ 2692 edx = MEM32(ecx + 0x4); /* 0x47016206: mov edx, dword ptr [ecx + 4] */ 2693 MEM32(eax) = 0x470ACB80u; /* 0x47016209: mov dword ptr [eax], 0x470acb80 */ 2694 MEM32(eax + 0x4) = edx; /* 0x4701620F: mov dword ptr [eax + 4], edx */ 2695 ecx = MEM32(ecx + 0x8); /* 0x47016212: mov ecx, dword ptr [ecx + 8] */ 2696 MEM32(eax + 0x8) = ecx; /* 0x47016215: mov dword ptr [eax + 8], ecx */ 2697 MEM32(eax) = 0x470ACB88u; /* 0x47016218: mov dword ptr [eax], 0x470acb88 */ 2698 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701621E: ret 4 */ 2699 RECOMP_REGS_OUT(); 2700 } 2701 2702 void sub_47016230(void) { 2703 int _fpu_cmp = 0; 2704 uint32_t _cf = 0; 2705 int _df = 1; 2706 uint32_t _flag_k = FK_NONE; 2707 uint32_t _flag_a = 0, _flag_b = 0; 2708 uint32_t _itail_tgt = 0; 2709 RECOMP_REGS_LOCALS 2710 RECOMP_ENTER(0x47016230u); 2711 2712 L_47016230: 2713 eax = ecx; /* 0x47016230: mov eax, ecx */ 2714 ecx = MEM32(esp + 0x4); /* 0x47016232: mov ecx, dword ptr [esp + 4] */ 2715 edx = MEM32(ecx + 0x4); /* 0x47016236: mov edx, dword ptr [ecx + 4] */ 2716 MEM32(eax) = 0x470ACB84u; /* 0x47016239: mov dword ptr [eax], 0x470acb84 */ 2717 MEM32(eax + 0x4) = edx; /* 0x4701623F: mov dword ptr [eax + 4], edx */ 2718 ecx = MEM32(ecx + 0x8); /* 0x47016242: mov ecx, dword ptr [ecx + 8] */ 2719 MEM32(eax + 0x8) = ecx; /* 0x47016245: mov dword ptr [eax + 8], ecx */ 2720 MEM32(eax) = 0x470ACB8Cu; /* 0x47016248: mov dword ptr [eax], 0x470acb8c */ 2721 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701624E: ret 4 */ 2722 RECOMP_REGS_OUT(); 2723 } 2724 2725 void sub_47016260(void) { 2726 int _fpu_cmp = 0; 2727 uint32_t _cf = 0; 2728 int _df = 1; 2729 uint32_t _flag_k = FK_NONE; 2730 uint32_t _flag_a = 0, _flag_b = 0; 2731 uint32_t _itail_tgt = 0; 2732 RECOMP_REGS_LOCALS 2733 RECOMP_ENTER(0x47016260u); 2734 2735 L_47016260: 2736 eax = ecx; /* 0x47016260: mov eax, ecx */ 2737 ecx = MEM32(esp + 0x4); /* 0x47016262: mov ecx, dword ptr [esp + 4] */ 2738 edx = MEM32(ecx + 0x4); /* 0x47016266: mov edx, dword ptr [ecx + 4] */ 2739 MEM32(eax) = 0x470ACB80u; /* 0x47016269: mov dword ptr [eax], 0x470acb80 */ 2740 MEM32(eax + 0x4) = edx; /* 0x4701626F: mov dword ptr [eax + 4], edx */ 2741 ecx = MEM32(ecx + 0x8); /* 0x47016272: mov ecx, dword ptr [ecx + 8] */ 2742 MEM32(eax + 0x8) = ecx; /* 0x47016275: mov dword ptr [eax + 8], ecx */ 2743 MEM32(eax) = 0x470ACB90u; /* 0x47016278: mov dword ptr [eax], 0x470acb90 */ 2744 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701627E: ret 4 */ 2745 RECOMP_REGS_OUT(); 2746 } 2747 2748 void sub_47016290(void) { 2749 int _fpu_cmp = 0; 2750 uint32_t _cf = 0; 2751 int _df = 1; 2752 uint32_t _flag_k = FK_NONE; 2753 uint32_t _flag_a = 0, _flag_b = 0; 2754 uint32_t _itail_tgt = 0; 2755 RECOMP_REGS_LOCALS 2756 RECOMP_ENTER(0x47016290u); 2757 2758 L_47016290: 2759 eax = ecx; /* 0x47016290: mov eax, ecx */ 2760 ecx = MEM32(esp + 0x4); /* 0x47016292: mov ecx, dword ptr [esp + 4] */ 2761 edx = MEM32(ecx + 0x4); /* 0x47016296: mov edx, dword ptr [ecx + 4] */ 2762 MEM32(eax) = 0x470ACB84u; /* 0x47016299: mov dword ptr [eax], 0x470acb84 */ 2763 MEM32(eax + 0x4) = edx; /* 0x4701629F: mov dword ptr [eax + 4], edx */ 2764 ecx = MEM32(ecx + 0x8); /* 0x470162A2: mov ecx, dword ptr [ecx + 8] */ 2765 MEM32(eax + 0x8) = ecx; /* 0x470162A5: mov dword ptr [eax + 8], ecx */ 2766 MEM32(eax) = 0x470ACB94u; /* 0x470162A8: mov dword ptr [eax], 0x470acb94 */ 2767 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470162AE: ret 4 */ 2768 RECOMP_REGS_OUT(); 2769 } 2770 2771 void sub_470162C0(void) { 2772 int _fpu_cmp = 0; 2773 uint32_t _cf = 0; 2774 int _df = 1; 2775 uint32_t _flag_k = FK_NONE; 2776 uint32_t _flag_a = 0, _flag_b = 0; 2777 uint32_t _itail_tgt = 0; 2778 RECOMP_REGS_LOCALS 2779 RECOMP_ENTER(0x470162C0u); 2780 2781 L_470162C0: 2782 PUSH32(esp, ebx); /* 0x470162C0: push ebx */ 2783 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470162C1: mov bl, byte ptr [esp + 8] */ 2784 /* test LO8(ebx), 2 */ /* 0x470162C5: test bl, 2 */ 2785 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2786 _cf = 0; 2787 _flag_k = FK_NARROW(FK_TEST, 24); 2788 PUSH32(esp, esi); /* 0x470162C8: push esi */ 2789 esi = ecx; /* 0x470162C9: mov esi, ecx */ 2790 if (TEST_Z(_flag_a, _flag_b)) goto L_470162F8; /* 0x470162CB: je 0x470162f8 */ 2791 L_470162CD: 2792 eax = MEM32(esi + (-0x4)); /* 0x470162CD: mov eax, dword ptr [esi - 4] */ 2793 PUSH32(esp, edi); /* 0x470162D0: push edi */ 2794 PUSH32(esp, 0x47018200u); /* 0x470162D1: push 0x47018200 */ 2795 edi = esi + (-0x4); /* 0x470162D6: lea edi, [esi - 4] */ 2796 PUSH32(esp, eax); /* 0x470162D9: push eax */ 2797 PUSH32(esp, 0xCu); /* 0x470162DA: push 0xc */ 2798 PUSH32(esp, esi); /* 0x470162DC: push esi */ 2799 RECOMP_ICALL(0x470A32EBu); /* 0x470162DD: call 0x470a32eb */ /* not lifted */ 2800 RECOMP_FLAGS_IN(); 2801 /* test LO8(ebx), 1 */ /* 0x470162E2: test bl, 1 */ 2802 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2803 _cf = 0; 2804 _flag_k = FK_NARROW(FK_TEST, 24); 2805 if (TEST_Z(_flag_a, _flag_b)) goto L_470162F0; /* 0x470162E5: je 0x470162f0 */ 2806 L_470162E7: 2807 PUSH32(esp, edi); /* 0x470162E7: push edi */ 2808 RECOMP_ICALL(0x470A32A2u); /* 0x470162E8: call 0x470a32a2 */ /* not lifted */ 2809 RECOMP_FLAGS_IN(); 2810 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2811 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2812 esp = esp + 4; /* 0x470162ED: add esp, 4 */ 2813 _flag_k = FK_ADD; 2814 L_470162F0: 2815 eax = edi; /* 0x470162F0: mov eax, edi */ 2816 edi = POP32_VAL(esp); /* 0x470162F2: pop edi */ 2817 esi = POP32_VAL(esp); /* 0x470162F3: pop esi */ 2818 ebx = POP32_VAL(esp); /* 0x470162F4: pop ebx */ 2819 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470162F5: ret 4 */ 2820 L_470162F8: 2821 ecx = esi; /* 0x470162F8: mov ecx, esi */ 2822 RECOMP_ICALL(0x47018200u); /* 0x470162FA: call 0x47018200 */ /* not lifted */ 2823 RECOMP_FLAGS_IN(); 2824 /* test LO8(ebx), 1 */ /* 0x470162FF: test bl, 1 */ 2825 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2826 _cf = 0; 2827 _flag_k = FK_NARROW(FK_TEST, 24); 2828 if (TEST_Z(_flag_a, _flag_b)) goto L_4701630D; /* 0x47016302: je 0x4701630d */ 2829 L_47016304: 2830 PUSH32(esp, esi); /* 0x47016304: push esi */ 2831 RECOMP_ICALL(0x470A32A2u); /* 0x47016305: call 0x470a32a2 */ /* not lifted */ 2832 RECOMP_FLAGS_IN(); 2833 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2834 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2835 esp = esp + 4; /* 0x4701630A: add esp, 4 */ 2836 _flag_k = FK_ADD; 2837 L_4701630D: 2838 eax = esi; /* 0x4701630D: mov eax, esi */ 2839 esi = POP32_VAL(esp); /* 0x4701630F: pop esi */ 2840 ebx = POP32_VAL(esp); /* 0x47016310: pop ebx */ 2841 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016311: ret 4 */ 2842 RECOMP_REGS_OUT(); 2843 } 2844 2845 void sub_47016320(void) { 2846 int _fpu_cmp = 0; 2847 uint32_t _cf = 0; 2848 int _df = 1; 2849 uint32_t _flag_k = FK_NONE; 2850 uint32_t _flag_a = 0, _flag_b = 0; 2851 uint32_t _itail_tgt = 0; 2852 RECOMP_REGS_LOCALS 2853 RECOMP_ENTER(0x47016320u); 2854 2855 L_47016320: 2856 eax = ecx; /* 0x47016320: mov eax, ecx */ 2857 ecx = MEM32(esp + 0x4); /* 0x47016322: mov ecx, dword ptr [esp + 4] */ 2858 edx = MEM32(ecx + 0x4); /* 0x47016326: mov edx, dword ptr [ecx + 4] */ 2859 MEM32(eax) = 0x470ACB80u; /* 0x47016329: mov dword ptr [eax], 0x470acb80 */ 2860 MEM32(eax + 0x4) = edx; /* 0x4701632F: mov dword ptr [eax + 4], edx */ 2861 edx = MEM32(ecx + 0x8); /* 0x47016332: mov edx, dword ptr [ecx + 8] */ 2862 MEM32(eax) = 0x470ACB88u; /* 0x47016335: mov dword ptr [eax], 0x470acb88 */ 2863 MEM32(eax + 0x8) = edx; /* 0x4701633B: mov dword ptr [eax + 8], edx */ 2864 ecx = MEM32(ecx + 0xC); /* 0x4701633E: mov ecx, dword ptr [ecx + 0xc] */ 2865 MEM32(eax + 0xC) = ecx; /* 0x47016341: mov dword ptr [eax + 0xc], ecx */ 2866 MEM32(eax) = 0x470ACB98u; /* 0x47016344: mov dword ptr [eax], 0x470acb98 */ 2867 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701634A: ret 4 */ 2868 RECOMP_REGS_OUT(); 2869 } 2870 2871 void sub_47016350(void) { 2872 int _fpu_cmp = 0; 2873 uint32_t _cf = 0; 2874 int _df = 1; 2875 uint32_t _flag_k = FK_NONE; 2876 uint32_t _flag_a = 0, _flag_b = 0; 2877 uint32_t _itail_tgt = 0; 2878 RECOMP_REGS_LOCALS 2879 RECOMP_ENTER(0x47016350u); 2880 2881 L_47016350: 2882 PUSH32(esp, esi); /* 0x47016350: push esi */ 2883 PUSH32(esp, edi); /* 0x47016351: push edi */ 2884 edi = MEM32(esp + 0xC); /* 0x47016352: mov edi, dword ptr [esp + 0xc] */ 2885 esi = ecx; /* 0x47016356: mov esi, ecx */ 2886 PUSH32(esp, edi); /* 0x47016358: push edi */ 2887 RECOMP_ICALL(0x47016350u); /* 0x47016359: call 0x47016350 */ /* not lifted */ 2888 RECOMP_FLAGS_IN(); 2889 eax = MEM32(edi + 0xC); /* 0x4701635E: mov eax, dword ptr [edi + 0xc] */ 2890 MEM32(esi + 0xC) = eax; /* 0x47016361: mov dword ptr [esi + 0xc], eax */ 2891 edi = POP32_VAL(esp); /* 0x47016364: pop edi */ 2892 eax = esi; /* 0x47016365: mov eax, esi */ 2893 esi = POP32_VAL(esp); /* 0x47016367: pop esi */ 2894 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016368: ret 4 */ 2895 RECOMP_REGS_OUT(); 2896 } 2897 2898 void sub_47016370(void) { 2899 int _fpu_cmp = 0; 2900 uint32_t _cf = 0; 2901 int _df = 1; 2902 uint32_t _flag_k = FK_NONE; 2903 uint32_t _flag_a = 0, _flag_b = 0; 2904 uint32_t _itail_tgt = 0; 2905 RECOMP_REGS_LOCALS 2906 RECOMP_ENTER(0x47016370u); 2907 2908 L_47016370: 2909 eax = ecx; /* 0x47016370: mov eax, ecx */ 2910 ecx = MEM32(esp + 0x4); /* 0x47016372: mov ecx, dword ptr [esp + 4] */ 2911 edx = MEM32(ecx + 0x4); /* 0x47016376: mov edx, dword ptr [ecx + 4] */ 2912 MEM32(eax) = 0x470ACB84u; /* 0x47016379: mov dword ptr [eax], 0x470acb84 */ 2913 MEM32(eax + 0x4) = edx; /* 0x4701637F: mov dword ptr [eax + 4], edx */ 2914 edx = MEM32(ecx + 0x8); /* 0x47016382: mov edx, dword ptr [ecx + 8] */ 2915 MEM32(eax) = 0x470ACB8Cu; /* 0x47016385: mov dword ptr [eax], 0x470acb8c */ 2916 MEM32(eax + 0x8) = edx; /* 0x4701638B: mov dword ptr [eax + 8], edx */ 2917 ecx = MEM32(ecx + 0xC); /* 0x4701638E: mov ecx, dword ptr [ecx + 0xc] */ 2918 MEM32(eax + 0xC) = ecx; /* 0x47016391: mov dword ptr [eax + 0xc], ecx */ 2919 MEM32(eax) = 0x470ACB9Cu; /* 0x47016394: mov dword ptr [eax], 0x470acb9c */ 2920 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701639A: ret 4 */ 2921 RECOMP_REGS_OUT(); 2922 } 2923 2924 void sub_470163A0(void) { 2925 int _fpu_cmp = 0; 2926 uint32_t _cf = 0; 2927 int _df = 1; 2928 uint32_t _flag_k = FK_NONE; 2929 uint32_t _flag_a = 0, _flag_b = 0; 2930 uint32_t _itail_tgt = 0; 2931 RECOMP_REGS_LOCALS 2932 RECOMP_ENTER(0x470163A0u); 2933 2934 L_470163A0: 2935 eax = ecx; /* 0x470163A0: mov eax, ecx */ 2936 ecx = MEM32(esp + 0x4); /* 0x470163A2: mov ecx, dword ptr [esp + 4] */ 2937 edx = MEM32(ecx + 0x4); /* 0x470163A6: mov edx, dword ptr [ecx + 4] */ 2938 MEM32(eax) = 0x470ACB80u; /* 0x470163A9: mov dword ptr [eax], 0x470acb80 */ 2939 MEM32(eax + 0x4) = edx; /* 0x470163AF: mov dword ptr [eax + 4], edx */ 2940 edx = MEM32(ecx + 0x8); /* 0x470163B2: mov edx, dword ptr [ecx + 8] */ 2941 MEM32(eax) = 0x470ACB90u; /* 0x470163B5: mov dword ptr [eax], 0x470acb90 */ 2942 MEM32(eax + 0x8) = edx; /* 0x470163BB: mov dword ptr [eax + 8], edx */ 2943 ecx = MEM32(ecx + 0xC); /* 0x470163BE: mov ecx, dword ptr [ecx + 0xc] */ 2944 MEM32(eax + 0xC) = ecx; /* 0x470163C1: mov dword ptr [eax + 0xc], ecx */ 2945 MEM32(eax) = 0x470ACBA0u; /* 0x470163C4: mov dword ptr [eax], 0x470acba0 */ 2946 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470163CA: ret 4 */ 2947 RECOMP_REGS_OUT(); 2948 } 2949 2950 void sub_470163D0(void) { 2951 int _fpu_cmp = 0; 2952 uint32_t _cf = 0; 2953 int _df = 1; 2954 uint32_t _flag_k = FK_NONE; 2955 uint32_t _flag_a = 0, _flag_b = 0; 2956 uint32_t _itail_tgt = 0; 2957 RECOMP_REGS_LOCALS 2958 RECOMP_ENTER(0x470163D0u); 2959 2960 L_470163D0: 2961 PUSH32(esp, esi); /* 0x470163D0: push esi */ 2962 PUSH32(esp, edi); /* 0x470163D1: push edi */ 2963 edi = MEM32(esp + 0xC); /* 0x470163D2: mov edi, dword ptr [esp + 0xc] */ 2964 esi = ecx; /* 0x470163D6: mov esi, ecx */ 2965 PUSH32(esp, edi); /* 0x470163D8: push edi */ 2966 RECOMP_ICALL(0x470163D0u); /* 0x470163D9: call 0x470163d0 */ /* not lifted */ 2967 RECOMP_FLAGS_IN(); 2968 eax = MEM32(edi + 0xC); /* 0x470163DE: mov eax, dword ptr [edi + 0xc] */ 2969 MEM32(esi + 0xC) = eax; /* 0x470163E1: mov dword ptr [esi + 0xc], eax */ 2970 edi = POP32_VAL(esp); /* 0x470163E4: pop edi */ 2971 eax = esi; /* 0x470163E5: mov eax, esi */ 2972 esi = POP32_VAL(esp); /* 0x470163E7: pop esi */ 2973 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470163E8: ret 4 */ 2974 RECOMP_REGS_OUT(); 2975 } 2976 2977 void sub_470163F0(void) { 2978 int _fpu_cmp = 0; 2979 uint32_t _cf = 0; 2980 int _df = 1; 2981 uint32_t _flag_k = FK_NONE; 2982 uint32_t _flag_a = 0, _flag_b = 0; 2983 uint32_t _itail_tgt = 0; 2984 RECOMP_REGS_LOCALS 2985 RECOMP_ENTER(0x470163F0u); 2986 2987 L_470163F0: 2988 eax = ecx; /* 0x470163F0: mov eax, ecx */ 2989 ecx = MEM32(esp + 0x4); /* 0x470163F2: mov ecx, dword ptr [esp + 4] */ 2990 edx = MEM32(ecx + 0x4); /* 0x470163F6: mov edx, dword ptr [ecx + 4] */ 2991 MEM32(eax) = 0x470ACB84u; /* 0x470163F9: mov dword ptr [eax], 0x470acb84 */ 2992 MEM32(eax + 0x4) = edx; /* 0x470163FF: mov dword ptr [eax + 4], edx */ 2993 edx = MEM32(ecx + 0x8); /* 0x47016402: mov edx, dword ptr [ecx + 8] */ 2994 MEM32(eax) = 0x470ACB94u; /* 0x47016405: mov dword ptr [eax], 0x470acb94 */ 2995 MEM32(eax + 0x8) = edx; /* 0x4701640B: mov dword ptr [eax + 8], edx */ 2996 ecx = MEM32(ecx + 0xC); /* 0x4701640E: mov ecx, dword ptr [ecx + 0xc] */ 2997 MEM32(eax + 0xC) = ecx; /* 0x47016411: mov dword ptr [eax + 0xc], ecx */ 2998 MEM32(eax) = 0x470ACBA4u; /* 0x47016414: mov dword ptr [eax], 0x470acba4 */ 2999 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701641A: ret 4 */ 3000 RECOMP_REGS_OUT(); 3001 } 3002 3003 void sub_47016420(void) { 3004 int _fpu_cmp = 0; 3005 uint32_t _cf = 0; 3006 int _df = 1; 3007 uint32_t _flag_k = FK_NONE; 3008 uint32_t _flag_a = 0, _flag_b = 0; 3009 uint32_t _itail_tgt = 0; 3010 RECOMP_REGS_LOCALS 3011 RECOMP_ENTER(0x47016420u); 3012 3013 L_47016420: 3014 PUSH32(esp, ebx); /* 0x47016420: push ebx */ 3015 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016421: mov bl, byte ptr [esp + 8] */ 3016 /* test LO8(ebx), 2 */ /* 0x47016425: test bl, 2 */ 3017 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3018 _cf = 0; 3019 _flag_k = FK_NARROW(FK_TEST, 24); 3020 PUSH32(esp, esi); /* 0x47016428: push esi */ 3021 esi = ecx; /* 0x47016429: mov esi, ecx */ 3022 if (TEST_Z(_flag_a, _flag_b)) goto L_47016458; /* 0x4701642B: je 0x47016458 */ 3023 L_4701642D: 3024 eax = MEM32(esi + (-0x4)); /* 0x4701642D: mov eax, dword ptr [esi - 4] */ 3025 PUSH32(esp, edi); /* 0x47016430: push edi */ 3026 PUSH32(esp, 0x47017E00u); /* 0x47016431: push 0x47017e00 */ 3027 edi = esi + (-0x4); /* 0x47016436: lea edi, [esi - 4] */ 3028 PUSH32(esp, eax); /* 0x47016439: push eax */ 3029 PUSH32(esp, 0x10u); /* 0x4701643A: push 0x10 */ 3030 PUSH32(esp, esi); /* 0x4701643C: push esi */ 3031 RECOMP_ICALL(0x470A32EBu); /* 0x4701643D: call 0x470a32eb */ /* not lifted */ 3032 RECOMP_FLAGS_IN(); 3033 /* test LO8(ebx), 1 */ /* 0x47016442: test bl, 1 */ 3034 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3035 _cf = 0; 3036 _flag_k = FK_NARROW(FK_TEST, 24); 3037 if (TEST_Z(_flag_a, _flag_b)) goto L_47016450; /* 0x47016445: je 0x47016450 */ 3038 L_47016447: 3039 PUSH32(esp, edi); /* 0x47016447: push edi */ 3040 RECOMP_ICALL(0x470A32A2u); /* 0x47016448: call 0x470a32a2 */ /* not lifted */ 3041 RECOMP_FLAGS_IN(); 3042 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3044 esp = esp + 4; /* 0x4701644D: add esp, 4 */ 3045 _flag_k = FK_ADD; 3046 L_47016450: 3047 eax = edi; /* 0x47016450: mov eax, edi */ 3048 edi = POP32_VAL(esp); /* 0x47016452: pop edi */ 3049 esi = POP32_VAL(esp); /* 0x47016453: pop esi */ 3050 ebx = POP32_VAL(esp); /* 0x47016454: pop ebx */ 3051 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016455: ret 4 */ 3052 L_47016458: 3053 ecx = esi; /* 0x47016458: mov ecx, esi */ 3054 RECOMP_ICALL(0x47017E00u); /* 0x4701645A: call 0x47017e00 */ /* not lifted */ 3055 RECOMP_FLAGS_IN(); 3056 /* test LO8(ebx), 1 */ /* 0x4701645F: test bl, 1 */ 3057 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3058 _cf = 0; 3059 _flag_k = FK_NARROW(FK_TEST, 24); 3060 if (TEST_Z(_flag_a, _flag_b)) goto L_4701646D; /* 0x47016462: je 0x4701646d */ 3061 L_47016464: 3062 PUSH32(esp, esi); /* 0x47016464: push esi */ 3063 RECOMP_ICALL(0x470A32A2u); /* 0x47016465: call 0x470a32a2 */ /* not lifted */ 3064 RECOMP_FLAGS_IN(); 3065 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3066 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3067 esp = esp + 4; /* 0x4701646A: add esp, 4 */ 3068 _flag_k = FK_ADD; 3069 L_4701646D: 3070 eax = esi; /* 0x4701646D: mov eax, esi */ 3071 esi = POP32_VAL(esp); /* 0x4701646F: pop esi */ 3072 ebx = POP32_VAL(esp); /* 0x47016470: pop ebx */ 3073 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016471: ret 4 */ 3074 RECOMP_REGS_OUT(); 3075 } 3076 3077 void sub_47016480(void) { 3078 int _fpu_cmp = 0; 3079 uint32_t _cf = 0; 3080 int _df = 1; 3081 uint32_t _flag_k = FK_NONE; 3082 uint32_t _flag_a = 0, _flag_b = 0; 3083 uint32_t _itail_tgt = 0; 3084 RECOMP_REGS_LOCALS 3085 RECOMP_ENTER(0x47016480u); 3086 3087 L_47016480: 3088 PUSH32(esp, ebx); /* 0x47016480: push ebx */ 3089 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016481: mov bl, byte ptr [esp + 8] */ 3090 /* test LO8(ebx), 2 */ /* 0x47016485: test bl, 2 */ 3091 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3092 _cf = 0; 3093 _flag_k = FK_NARROW(FK_TEST, 24); 3094 PUSH32(esp, esi); /* 0x47016488: push esi */ 3095 esi = ecx; /* 0x47016489: mov esi, ecx */ 3096 if (TEST_Z(_flag_a, _flag_b)) goto L_470164B8; /* 0x4701648B: je 0x470164b8 */ 3097 L_4701648D: 3098 eax = MEM32(esi + (-0x4)); /* 0x4701648D: mov eax, dword ptr [esi - 4] */ 3099 PUSH32(esp, edi); /* 0x47016490: push edi */ 3100 PUSH32(esp, 0x47018200u); /* 0x47016491: push 0x47018200 */ 3101 edi = esi + (-0x4); /* 0x47016496: lea edi, [esi - 4] */ 3102 PUSH32(esp, eax); /* 0x47016499: push eax */ 3103 PUSH32(esp, 0x10u); /* 0x4701649A: push 0x10 */ 3104 PUSH32(esp, esi); /* 0x4701649C: push esi */ 3105 RECOMP_ICALL(0x470A32EBu); /* 0x4701649D: call 0x470a32eb */ /* not lifted */ 3106 RECOMP_FLAGS_IN(); 3107 /* test LO8(ebx), 1 */ /* 0x470164A2: test bl, 1 */ 3108 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3109 _cf = 0; 3110 _flag_k = FK_NARROW(FK_TEST, 24); 3111 if (TEST_Z(_flag_a, _flag_b)) goto L_470164B0; /* 0x470164A5: je 0x470164b0 */ 3112 L_470164A7: 3113 PUSH32(esp, edi); /* 0x470164A7: push edi */ 3114 RECOMP_ICALL(0x470A32A2u); /* 0x470164A8: call 0x470a32a2 */ /* not lifted */ 3115 RECOMP_FLAGS_IN(); 3116 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3117 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3118 esp = esp + 4; /* 0x470164AD: add esp, 4 */ 3119 _flag_k = FK_ADD; 3120 L_470164B0: 3121 eax = edi; /* 0x470164B0: mov eax, edi */ 3122 edi = POP32_VAL(esp); /* 0x470164B2: pop edi */ 3123 esi = POP32_VAL(esp); /* 0x470164B3: pop esi */ 3124 ebx = POP32_VAL(esp); /* 0x470164B4: pop ebx */ 3125 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470164B5: ret 4 */ 3126 L_470164B8: 3127 ecx = esi; /* 0x470164B8: mov ecx, esi */ 3128 RECOMP_ICALL(0x47018200u); /* 0x470164BA: call 0x47018200 */ /* not lifted */ 3129 RECOMP_FLAGS_IN(); 3130 /* test LO8(ebx), 1 */ /* 0x470164BF: test bl, 1 */ 3131 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3132 _cf = 0; 3133 _flag_k = FK_NARROW(FK_TEST, 24); 3134 if (TEST_Z(_flag_a, _flag_b)) goto L_470164CD; /* 0x470164C2: je 0x470164cd */ 3135 L_470164C4: 3136 PUSH32(esp, esi); /* 0x470164C4: push esi */ 3137 RECOMP_ICALL(0x470A32A2u); /* 0x470164C5: call 0x470a32a2 */ /* not lifted */ 3138 RECOMP_FLAGS_IN(); 3139 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3140 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3141 esp = esp + 4; /* 0x470164CA: add esp, 4 */ 3142 _flag_k = FK_ADD; 3143 L_470164CD: 3144 eax = esi; /* 0x470164CD: mov eax, esi */ 3145 esi = POP32_VAL(esp); /* 0x470164CF: pop esi */ 3146 ebx = POP32_VAL(esp); /* 0x470164D0: pop ebx */ 3147 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470164D1: ret 4 */ 3148 RECOMP_REGS_OUT(); 3149 } 3150 3151 void sub_470164E0(void) { 3152 int _fpu_cmp = 0; 3153 uint32_t _cf = 0; 3154 int _df = 1; 3155 uint32_t _flag_k = FK_NONE; 3156 uint32_t _flag_a = 0, _flag_b = 0; 3157 uint32_t _itail_tgt = 0; 3158 RECOMP_REGS_LOCALS 3159 RECOMP_ENTER(0x470164E0u); 3160 3161 L_470164E0: 3162 eax = ecx; /* 0x470164E0: mov eax, ecx */ 3163 ecx = MEM32(esp + 0x4); /* 0x470164E2: mov ecx, dword ptr [esp + 4] */ 3164 edx = MEM32(ecx + 0x4); /* 0x470164E6: mov edx, dword ptr [ecx + 4] */ 3165 MEM32(eax) = 0x470ACB80u; /* 0x470164E9: mov dword ptr [eax], 0x470acb80 */ 3166 MEM32(eax + 0x4) = edx; /* 0x470164EF: mov dword ptr [eax + 4], edx */ 3167 ecx = MEM32(ecx + 0x8); /* 0x470164F2: mov ecx, dword ptr [ecx + 8] */ 3168 MEM32(eax + 0x8) = ecx; /* 0x470164F5: mov dword ptr [eax + 8], ecx */ 3169 MEM32(eax) = 0x470ACBA8u; /* 0x470164F8: mov dword ptr [eax], 0x470acba8 */ 3170 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470164FE: ret 4 */ 3171 RECOMP_REGS_OUT(); 3172 } 3173 3174 void sub_47016510(void) { 3175 int _fpu_cmp = 0; 3176 uint32_t _cf = 0; 3177 int _df = 1; 3178 uint32_t _flag_k = FK_NONE; 3179 uint32_t _flag_a = 0, _flag_b = 0; 3180 uint32_t _itail_tgt = 0; 3181 RECOMP_REGS_LOCALS 3182 RECOMP_ENTER(0x47016510u); 3183 3184 L_47016510: 3185 eax = ecx; /* 0x47016510: mov eax, ecx */ 3186 ecx = MEM32(esp + 0x4); /* 0x47016512: mov ecx, dword ptr [esp + 4] */ 3187 edx = MEM32(ecx + 0x4); /* 0x47016516: mov edx, dword ptr [ecx + 4] */ 3188 MEM32(eax) = 0x470ACB84u; /* 0x47016519: mov dword ptr [eax], 0x470acb84 */ 3189 MEM32(eax + 0x4) = edx; /* 0x4701651F: mov dword ptr [eax + 4], edx */ 3190 ecx = MEM32(ecx + 0x8); /* 0x47016522: mov ecx, dword ptr [ecx + 8] */ 3191 MEM32(eax + 0x8) = ecx; /* 0x47016525: mov dword ptr [eax + 8], ecx */ 3192 MEM32(eax) = 0x470ACBACu; /* 0x47016528: mov dword ptr [eax], 0x470acbac */ 3193 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701652E: ret 4 */ 3194 RECOMP_REGS_OUT(); 3195 } 3196 3197 void sub_47016540(void) { 3198 int _fpu_cmp = 0; 3199 uint32_t _cf = 0; 3200 int _df = 1; 3201 uint32_t _flag_k = FK_NONE; 3202 uint32_t _flag_a = 0, _flag_b = 0; 3203 uint32_t _itail_tgt = 0; 3204 RECOMP_REGS_LOCALS 3205 RECOMP_ENTER(0x47016540u); 3206 3207 L_47016540: 3208 eax = ecx; /* 0x47016540: mov eax, ecx */ 3209 ecx = MEM32(esp + 0x4); /* 0x47016542: mov ecx, dword ptr [esp + 4] */ 3210 edx = MEM32(ecx + 0x4); /* 0x47016546: mov edx, dword ptr [ecx + 4] */ 3211 MEM32(eax) = 0x470ACB80u; /* 0x47016549: mov dword ptr [eax], 0x470acb80 */ 3212 MEM32(eax + 0x4) = edx; /* 0x4701654F: mov dword ptr [eax + 4], edx */ 3213 ecx = MEM32(ecx + 0x8); /* 0x47016552: mov ecx, dword ptr [ecx + 8] */ 3214 MEM32(eax + 0x8) = ecx; /* 0x47016555: mov dword ptr [eax + 8], ecx */ 3215 MEM32(eax) = 0x470ACBB0u; /* 0x47016558: mov dword ptr [eax], 0x470acbb0 */ 3216 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701655E: ret 4 */ 3217 RECOMP_REGS_OUT(); 3218 } 3219 3220 void sub_47016570(void) { 3221 int _fpu_cmp = 0; 3222 uint32_t _cf = 0; 3223 int _df = 1; 3224 uint32_t _flag_k = FK_NONE; 3225 uint32_t _flag_a = 0, _flag_b = 0; 3226 uint32_t _itail_tgt = 0; 3227 RECOMP_REGS_LOCALS 3228 RECOMP_ENTER(0x47016570u); 3229 3230 L_47016570: 3231 eax = ecx; /* 0x47016570: mov eax, ecx */ 3232 ecx = MEM32(esp + 0x4); /* 0x47016572: mov ecx, dword ptr [esp + 4] */ 3233 edx = MEM32(ecx + 0x4); /* 0x47016576: mov edx, dword ptr [ecx + 4] */ 3234 MEM32(eax + 0x4) = edx; /* 0x47016579: mov dword ptr [eax + 4], edx */ 3235 edx = MEM32(ecx + 0x8); /* 0x4701657C: mov edx, dword ptr [ecx + 8] */ 3236 MEM32(eax + 0x8) = edx; /* 0x4701657F: mov dword ptr [eax + 8], edx */ 3237 edx = MEM32(ecx + 0xC); /* 0x47016582: mov edx, dword ptr [ecx + 0xc] */ 3238 MEM32(eax + 0xC) = edx; /* 0x47016585: mov dword ptr [eax + 0xc], edx */ 3239 edx = MEM32(ecx + 0x10); /* 0x47016588: mov edx, dword ptr [ecx + 0x10] */ 3240 MEM32(eax + 0x10) = edx; /* 0x4701658B: mov dword ptr [eax + 0x10], edx */ 3241 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 3242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3243 ecx = ecx + 0x14u; /* 0x4701658E: add ecx, 0x14 */ 3244 _flag_k = FK_ADD; 3245 PUSH32(esp, esi); /* 0x47016591: push esi */ 3246 esi = MEM32(ecx); /* 0x47016592: mov esi, dword ptr [ecx] */ 3247 edx = eax + 0x14; /* 0x47016594: lea edx, [eax + 0x14] */ 3248 MEM32(edx) = esi; /* 0x47016597: mov dword ptr [edx], esi */ 3249 esi = MEM32(ecx + 0x4); /* 0x47016599: mov esi, dword ptr [ecx + 4] */ 3250 MEM32(edx + 0x4) = esi; /* 0x4701659C: mov dword ptr [edx + 4], esi */ 3251 esi = MEM32(ecx + 0x8); /* 0x4701659F: mov esi, dword ptr [ecx + 8] */ 3252 MEM32(edx + 0x8) = esi; /* 0x470165A2: mov dword ptr [edx + 8], esi */ 3253 ecx = MEM32(ecx + 0xC); /* 0x470165A5: mov ecx, dword ptr [ecx + 0xc] */ 3254 MEM32(edx + 0xC) = ecx; /* 0x470165A8: mov dword ptr [edx + 0xc], ecx */ 3255 MEM32(eax) = 0x470ACBB4u; /* 0x470165AB: mov dword ptr [eax], 0x470acbb4 */ 3256 esi = POP32_VAL(esp); /* 0x470165B1: pop esi */ 3257 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470165B2: ret 4 */ 3258 RECOMP_REGS_OUT(); 3259 } 3260 3261 void sub_470165C0(void) { 3262 int _fpu_cmp = 0; 3263 uint32_t _cf = 0; 3264 int _df = 1; 3265 uint32_t _flag_k = FK_NONE; 3266 uint32_t _flag_a = 0, _flag_b = 0; 3267 uint32_t _itail_tgt = 0; 3268 RECOMP_REGS_LOCALS 3269 RECOMP_ENTER(0x470165C0u); 3270 3271 L_470165C0: 3272 eax = ecx; /* 0x470165C0: mov eax, ecx */ 3273 ecx = MEM32(esp + 0x4); /* 0x470165C2: mov ecx, dword ptr [esp + 4] */ 3274 edx = MEM32(ecx + 0x4); /* 0x470165C6: mov edx, dword ptr [ecx + 4] */ 3275 MEM32(eax + 0x4) = edx; /* 0x470165C9: mov dword ptr [eax + 4], edx */ 3276 edx = MEM32(ecx + 0x8); /* 0x470165CC: mov edx, dword ptr [ecx + 8] */ 3277 MEM32(eax + 0x8) = edx; /* 0x470165CF: mov dword ptr [eax + 8], edx */ 3278 edx = MEM32(ecx + 0xC); /* 0x470165D2: mov edx, dword ptr [ecx + 0xc] */ 3279 MEM32(eax + 0xC) = edx; /* 0x470165D5: mov dword ptr [eax + 0xc], edx */ 3280 edx = MEM32(ecx + 0x10); /* 0x470165D8: mov edx, dword ptr [ecx + 0x10] */ 3281 MEM32(eax + 0x10) = edx; /* 0x470165DB: mov dword ptr [eax + 0x10], edx */ 3282 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 3283 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3284 ecx = ecx + 0x14u; /* 0x470165DE: add ecx, 0x14 */ 3285 _flag_k = FK_ADD; 3286 PUSH32(esp, esi); /* 0x470165E1: push esi */ 3287 esi = MEM32(ecx); /* 0x470165E2: mov esi, dword ptr [ecx] */ 3288 edx = eax + 0x14; /* 0x470165E4: lea edx, [eax + 0x14] */ 3289 MEM32(edx) = esi; /* 0x470165E7: mov dword ptr [edx], esi */ 3290 esi = MEM32(ecx + 0x4); /* 0x470165E9: mov esi, dword ptr [ecx + 4] */ 3291 MEM32(edx + 0x4) = esi; /* 0x470165EC: mov dword ptr [edx + 4], esi */ 3292 esi = MEM32(ecx + 0x8); /* 0x470165EF: mov esi, dword ptr [ecx + 8] */ 3293 MEM32(edx + 0x8) = esi; /* 0x470165F2: mov dword ptr [edx + 8], esi */ 3294 ecx = MEM32(ecx + 0xC); /* 0x470165F5: mov ecx, dword ptr [ecx + 0xc] */ 3295 MEM32(edx + 0xC) = ecx; /* 0x470165F8: mov dword ptr [edx + 0xc], ecx */ 3296 esi = POP32_VAL(esp); /* 0x470165FB: pop esi */ 3297 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470165FC: ret 4 */ 3298 RECOMP_REGS_OUT(); 3299 } 3300 3301 void sub_47016600(void) { 3302 int _fpu_cmp = 0; 3303 uint32_t _cf = 0; 3304 int _df = 1; 3305 uint32_t _flag_k = FK_NONE; 3306 uint32_t _flag_a = 0, _flag_b = 0; 3307 uint32_t _itail_tgt = 0; 3308 RECOMP_REGS_LOCALS 3309 RECOMP_ENTER(0x47016600u); 3310 3311 L_47016600: 3312 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3313 eax = 0; /* 0x47016600: xor eax, eax */ 3314 _cf = 0; 3315 _flag_k = FK_TEST; 3316 MEM32(ecx + 0x4) = eax; /* 0x47016602: mov dword ptr [ecx + 4], eax */ 3317 MEM32(ecx + 0x8) = eax; /* 0x47016605: mov dword ptr [ecx + 8], eax */ 3318 MEM32(ecx + 0xC) = eax; /* 0x47016608: mov dword ptr [ecx + 0xc], eax */ 3319 MEM32(ecx + 0x10) = eax; /* 0x4701660B: mov dword ptr [ecx + 0x10], eax */ 3320 MEM32(ecx) = 0x470ACBB4u; /* 0x4701660E: mov dword ptr [ecx], 0x470acbb4 */ 3321 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47016614: ret */ 3322 RECOMP_REGS_OUT(); 3323 } 3324 3325 void sub_47016620(void) { 3326 int _fpu_cmp = 0; 3327 uint32_t _cf = 0; 3328 int _df = 1; 3329 uint32_t _flag_k = FK_NONE; 3330 uint32_t _flag_a = 0, _flag_b = 0; 3331 uint32_t _itail_tgt = 0; 3332 RECOMP_REGS_LOCALS 3333 RECOMP_ENTER(0x47016620u); 3334 3335 L_47016620: 3336 eax = ecx; /* 0x47016620: mov eax, ecx */ 3337 ecx = MEM32(esp + 0x4); /* 0x47016622: mov ecx, dword ptr [esp + 4] */ 3338 edx = MEM32(ecx + 0x4); /* 0x47016626: mov edx, dword ptr [ecx + 4] */ 3339 MEM32(eax) = 0x470ACB84u; /* 0x47016629: mov dword ptr [eax], 0x470acb84 */ 3340 MEM32(eax + 0x4) = edx; /* 0x4701662F: mov dword ptr [eax + 4], edx */ 3341 ecx = MEM32(ecx + 0x8); /* 0x47016632: mov ecx, dword ptr [ecx + 8] */ 3342 MEM32(eax + 0x8) = ecx; /* 0x47016635: mov dword ptr [eax + 8], ecx */ 3343 MEM32(eax) = 0x470ACBB8u; /* 0x47016638: mov dword ptr [eax], 0x470acbb8 */ 3344 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701663E: ret 4 */ 3345 RECOMP_REGS_OUT(); 3346 } 3347 3348 void sub_47016650(void) { 3349 int _fpu_cmp = 0; 3350 uint32_t _cf = 0; 3351 int _df = 1; 3352 uint32_t _flag_k = FK_NONE; 3353 uint32_t _flag_a = 0, _flag_b = 0; 3354 uint32_t _itail_tgt = 0; 3355 RECOMP_REGS_LOCALS 3356 RECOMP_ENTER(0x47016650u); 3357 3358 L_47016650: 3359 PUSH32(esp, ebx); /* 0x47016650: push ebx */ 3360 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016651: mov bl, byte ptr [esp + 8] */ 3361 /* test LO8(ebx), 2 */ /* 0x47016655: test bl, 2 */ 3362 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3363 _cf = 0; 3364 _flag_k = FK_NARROW(FK_TEST, 24); 3365 PUSH32(esp, esi); /* 0x47016658: push esi */ 3366 esi = ecx; /* 0x47016659: mov esi, ecx */ 3367 if (TEST_Z(_flag_a, _flag_b)) goto L_47016688; /* 0x4701665B: je 0x47016688 */ 3368 L_4701665D: 3369 eax = MEM32(esi + (-0x4)); /* 0x4701665D: mov eax, dword ptr [esi - 4] */ 3370 PUSH32(esp, edi); /* 0x47016660: push edi */ 3371 PUSH32(esp, 0x47017E00u); /* 0x47016661: push 0x47017e00 */ 3372 edi = esi + (-0x4); /* 0x47016666: lea edi, [esi - 4] */ 3373 PUSH32(esp, eax); /* 0x47016669: push eax */ 3374 PUSH32(esp, 0xCu); /* 0x4701666A: push 0xc */ 3375 PUSH32(esp, esi); /* 0x4701666C: push esi */ 3376 RECOMP_ICALL(0x470A32EBu); /* 0x4701666D: call 0x470a32eb */ /* not lifted */ 3377 RECOMP_FLAGS_IN(); 3378 /* test LO8(ebx), 1 */ /* 0x47016672: test bl, 1 */ 3379 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3380 _cf = 0; 3381 _flag_k = FK_NARROW(FK_TEST, 24); 3382 if (TEST_Z(_flag_a, _flag_b)) goto L_47016680; /* 0x47016675: je 0x47016680 */ 3383 L_47016677: 3384 PUSH32(esp, edi); /* 0x47016677: push edi */ 3385 RECOMP_ICALL(0x470A32A2u); /* 0x47016678: call 0x470a32a2 */ /* not lifted */ 3386 RECOMP_FLAGS_IN(); 3387 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3388 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3389 esp = esp + 4; /* 0x4701667D: add esp, 4 */ 3390 _flag_k = FK_ADD; 3391 L_47016680: 3392 eax = edi; /* 0x47016680: mov eax, edi */ 3393 edi = POP32_VAL(esp); /* 0x47016682: pop edi */ 3394 esi = POP32_VAL(esp); /* 0x47016683: pop esi */ 3395 ebx = POP32_VAL(esp); /* 0x47016684: pop ebx */ 3396 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016685: ret 4 */ 3397 L_47016688: 3398 ecx = esi; /* 0x47016688: mov ecx, esi */ 3399 RECOMP_ICALL(0x47017E00u); /* 0x4701668A: call 0x47017e00 */ /* not lifted */ 3400 RECOMP_FLAGS_IN(); 3401 /* test LO8(ebx), 1 */ /* 0x4701668F: test bl, 1 */ 3402 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3403 _cf = 0; 3404 _flag_k = FK_NARROW(FK_TEST, 24); 3405 if (TEST_Z(_flag_a, _flag_b)) goto L_4701669D; /* 0x47016692: je 0x4701669d */ 3406 L_47016694: 3407 PUSH32(esp, esi); /* 0x47016694: push esi */ 3408 RECOMP_ICALL(0x470A32A2u); /* 0x47016695: call 0x470a32a2 */ /* not lifted */ 3409 RECOMP_FLAGS_IN(); 3410 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3411 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3412 esp = esp + 4; /* 0x4701669A: add esp, 4 */ 3413 _flag_k = FK_ADD; 3414 L_4701669D: 3415 eax = esi; /* 0x4701669D: mov eax, esi */ 3416 esi = POP32_VAL(esp); /* 0x4701669F: pop esi */ 3417 ebx = POP32_VAL(esp); /* 0x470166A0: pop ebx */ 3418 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470166A1: ret 4 */ 3419 RECOMP_REGS_OUT(); 3420 } 3421 3422 void sub_470166B0(void) { 3423 int _fpu_cmp = 0; 3424 uint32_t _cf = 0; 3425 int _df = 1; 3426 uint32_t _flag_k = FK_NONE; 3427 uint32_t _flag_a = 0, _flag_b = 0; 3428 uint32_t _itail_tgt = 0; 3429 RECOMP_REGS_LOCALS 3430 RECOMP_ENTER(0x470166B0u); 3431 3432 L_470166B0: 3433 PUSH32(esp, ebx); /* 0x470166B0: push ebx */ 3434 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470166B1: mov bl, byte ptr [esp + 8] */ 3435 /* test LO8(ebx), 2 */ /* 0x470166B5: test bl, 2 */ 3436 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3437 _cf = 0; 3438 _flag_k = FK_NARROW(FK_TEST, 24); 3439 PUSH32(esp, esi); /* 0x470166B8: push esi */ 3440 esi = ecx; /* 0x470166B9: mov esi, ecx */ 3441 if (TEST_Z(_flag_a, _flag_b)) goto L_470166E8; /* 0x470166BB: je 0x470166e8 */ 3442 L_470166BD: 3443 eax = MEM32(esi + (-0x4)); /* 0x470166BD: mov eax, dword ptr [esi - 4] */ 3444 PUSH32(esp, edi); /* 0x470166C0: push edi */ 3445 PUSH32(esp, 0x470183A0u); /* 0x470166C1: push 0x470183a0 */ 3446 edi = esi + (-0x4); /* 0x470166C6: lea edi, [esi - 4] */ 3447 PUSH32(esp, eax); /* 0x470166C9: push eax */ 3448 PUSH32(esp, 0x24u); /* 0x470166CA: push 0x24 */ 3449 PUSH32(esp, esi); /* 0x470166CC: push esi */ 3450 RECOMP_ICALL(0x470A32EBu); /* 0x470166CD: call 0x470a32eb */ /* not lifted */ 3451 RECOMP_FLAGS_IN(); 3452 /* test LO8(ebx), 1 */ /* 0x470166D2: test bl, 1 */ 3453 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3454 _cf = 0; 3455 _flag_k = FK_NARROW(FK_TEST, 24); 3456 if (TEST_Z(_flag_a, _flag_b)) goto L_470166E0; /* 0x470166D5: je 0x470166e0 */ 3457 L_470166D7: 3458 PUSH32(esp, edi); /* 0x470166D7: push edi */ 3459 RECOMP_ICALL(0x470A32A2u); /* 0x470166D8: call 0x470a32a2 */ /* not lifted */ 3460 RECOMP_FLAGS_IN(); 3461 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3462 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3463 esp = esp + 4; /* 0x470166DD: add esp, 4 */ 3464 _flag_k = FK_ADD; 3465 L_470166E0: 3466 eax = edi; /* 0x470166E0: mov eax, edi */ 3467 edi = POP32_VAL(esp); /* 0x470166E2: pop edi */ 3468 esi = POP32_VAL(esp); /* 0x470166E3: pop esi */ 3469 ebx = POP32_VAL(esp); /* 0x470166E4: pop ebx */ 3470 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470166E5: ret 4 */ 3471 L_470166E8: 3472 /* test LO8(ebx), 1 */ /* 0x470166E8: test bl, 1 */ 3473 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3474 _cf = 0; 3475 _flag_k = FK_NARROW(FK_TEST, 24); 3476 MEM32(esi) = 0x470ACBB4u; /* 0x470166EB: mov dword ptr [esi], 0x470acbb4 */ 3477 if (TEST_Z(_flag_a, _flag_b)) goto L_470166FC; /* 0x470166F1: je 0x470166fc */ 3478 L_470166F3: 3479 PUSH32(esp, esi); /* 0x470166F3: push esi */ 3480 RECOMP_ICALL(0x470A32A2u); /* 0x470166F4: call 0x470a32a2 */ /* not lifted */ 3481 RECOMP_FLAGS_IN(); 3482 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3483 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3484 esp = esp + 4; /* 0x470166F9: add esp, 4 */ 3485 _flag_k = FK_ADD; 3486 L_470166FC: 3487 eax = esi; /* 0x470166FC: mov eax, esi */ 3488 esi = POP32_VAL(esp); /* 0x470166FE: pop esi */ 3489 ebx = POP32_VAL(esp); /* 0x470166FF: pop ebx */ 3490 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016700: ret 4 */ 3491 RECOMP_REGS_OUT(); 3492 } 3493 3494 void sub_47016710(void) { 3495 int _fpu_cmp = 0; 3496 uint32_t _cf = 0; 3497 int _df = 1; 3498 uint32_t _flag_k = FK_NONE; 3499 uint32_t _flag_a = 0, _flag_b = 0; 3500 uint32_t _itail_tgt = 0; 3501 RECOMP_REGS_LOCALS 3502 RECOMP_ENTER(0x47016710u); 3503 3504 L_47016710: 3505 eax = ecx; /* 0x47016710: mov eax, ecx */ 3506 ecx = MEM32(esp + 0x4); /* 0x47016712: mov ecx, dword ptr [esp + 4] */ 3507 edx = MEM32(ecx + 0x4); /* 0x47016716: mov edx, dword ptr [ecx + 4] */ 3508 MEM32(eax + 0x4) = edx; /* 0x47016719: mov dword ptr [eax + 4], edx */ 3509 MEM32(eax) = 0x470ACBBCu; /* 0x4701671C: mov dword ptr [eax], 0x470acbbc */ 3510 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016722: ret 4 */ 3511 RECOMP_REGS_OUT(); 3512 } 3513 3514 void sub_47016730(void) { 3515 int _fpu_cmp = 0; 3516 uint32_t _cf = 0; 3517 int _df = 1; 3518 uint32_t _flag_k = FK_NONE; 3519 uint32_t _flag_a = 0, _flag_b = 0; 3520 uint32_t _itail_tgt = 0; 3521 RECOMP_REGS_LOCALS 3522 RECOMP_ENTER(0x47016730u); 3523 3524 L_47016730: 3525 PUSH32(esp, ebx); /* 0x47016730: push ebx */ 3526 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016731: mov bl, byte ptr [esp + 8] */ 3527 /* test LO8(ebx), 2 */ /* 0x47016735: test bl, 2 */ 3528 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3529 _cf = 0; 3530 _flag_k = FK_NARROW(FK_TEST, 24); 3531 PUSH32(esp, esi); /* 0x47016738: push esi */ 3532 esi = ecx; /* 0x47016739: mov esi, ecx */ 3533 if (TEST_Z(_flag_a, _flag_b)) goto L_47016768; /* 0x4701673B: je 0x47016768 */ 3534 L_4701673D: 3535 eax = MEM32(esi + (-0x4)); /* 0x4701673D: mov eax, dword ptr [esi - 4] */ 3536 PUSH32(esp, edi); /* 0x47016740: push edi */ 3537 PUSH32(esp, 0x47018480u); /* 0x47016741: push 0x47018480 */ 3538 edi = esi + (-0x4); /* 0x47016746: lea edi, [esi - 4] */ 3539 PUSH32(esp, eax); /* 0x47016749: push eax */ 3540 PUSH32(esp, 8); /* 0x4701674A: push 8 */ 3541 PUSH32(esp, esi); /* 0x4701674C: push esi */ 3542 RECOMP_ICALL(0x470A32EBu); /* 0x4701674D: call 0x470a32eb */ /* not lifted */ 3543 RECOMP_FLAGS_IN(); 3544 /* test LO8(ebx), 1 */ /* 0x47016752: test bl, 1 */ 3545 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3546 _cf = 0; 3547 _flag_k = FK_NARROW(FK_TEST, 24); 3548 if (TEST_Z(_flag_a, _flag_b)) goto L_47016760; /* 0x47016755: je 0x47016760 */ 3549 L_47016757: 3550 PUSH32(esp, edi); /* 0x47016757: push edi */ 3551 RECOMP_ICALL(0x470A32A2u); /* 0x47016758: call 0x470a32a2 */ /* not lifted */ 3552 RECOMP_FLAGS_IN(); 3553 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3554 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3555 esp = esp + 4; /* 0x4701675D: add esp, 4 */ 3556 _flag_k = FK_ADD; 3557 L_47016760: 3558 eax = edi; /* 0x47016760: mov eax, edi */ 3559 edi = POP32_VAL(esp); /* 0x47016762: pop edi */ 3560 esi = POP32_VAL(esp); /* 0x47016763: pop esi */ 3561 ebx = POP32_VAL(esp); /* 0x47016764: pop ebx */ 3562 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016765: ret 4 */ 3563 L_47016768: 3564 /* test LO8(ebx), 1 */ /* 0x47016768: test bl, 1 */ 3565 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3566 _cf = 0; 3567 _flag_k = FK_NARROW(FK_TEST, 24); 3568 MEM32(esi) = 0x470ACBBCu; /* 0x4701676B: mov dword ptr [esi], 0x470acbbc */ 3569 if (TEST_Z(_flag_a, _flag_b)) goto L_4701677C; /* 0x47016771: je 0x4701677c */ 3570 L_47016773: 3571 PUSH32(esp, esi); /* 0x47016773: push esi */ 3572 RECOMP_ICALL(0x470A32A2u); /* 0x47016774: call 0x470a32a2 */ /* not lifted */ 3573 RECOMP_FLAGS_IN(); 3574 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3575 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3576 esp = esp + 4; /* 0x47016779: add esp, 4 */ 3577 _flag_k = FK_ADD; 3578 L_4701677C: 3579 eax = esi; /* 0x4701677C: mov eax, esi */ 3580 esi = POP32_VAL(esp); /* 0x4701677E: pop esi */ 3581 ebx = POP32_VAL(esp); /* 0x4701677F: pop ebx */ 3582 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016780: ret 4 */ 3583 RECOMP_REGS_OUT(); 3584 } 3585 3586 void sub_47016790(void) { 3587 int _fpu_cmp = 0; 3588 uint32_t _cf = 0; 3589 int _df = 1; 3590 uint32_t _flag_k = FK_NONE; 3591 uint32_t _flag_a = 0, _flag_b = 0; 3592 uint32_t _itail_tgt = 0; 3593 RECOMP_REGS_LOCALS 3594 RECOMP_ENTER(0x47016790u); 3595 3596 L_47016790: 3597 eax = ecx; /* 0x47016790: mov eax, ecx */ 3598 ecx = MEM32(esp + 0x4); /* 0x47016792: mov ecx, dword ptr [esp + 4] */ 3599 edx = MEM32(ecx + 0x4); /* 0x47016796: mov edx, dword ptr [ecx + 4] */ 3600 MEM32(eax + 0x4) = edx; /* 0x47016799: mov dword ptr [eax + 4], edx */ 3601 MEM32(eax) = 0x470ACBE4u; /* 0x4701679C: mov dword ptr [eax], 0x470acbe4 */ 3602 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470167A2: ret 4 */ 3603 RECOMP_REGS_OUT(); 3604 } 3605 3606 void sub_470167B0(void) { 3607 int _fpu_cmp = 0; 3608 uint32_t _cf = 0; 3609 int _df = 1; 3610 uint32_t _flag_k = FK_NONE; 3611 uint32_t _flag_a = 0, _flag_b = 0; 3612 uint32_t _itail_tgt = 0; 3613 RECOMP_REGS_LOCALS 3614 RECOMP_ENTER(0x470167B0u); 3615 3616 L_470167B0: 3617 PUSH32(esp, ebx); /* 0x470167B0: push ebx */ 3618 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470167B1: mov bl, byte ptr [esp + 8] */ 3619 /* test LO8(ebx), 2 */ /* 0x470167B5: test bl, 2 */ 3620 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3621 _cf = 0; 3622 _flag_k = FK_NARROW(FK_TEST, 24); 3623 PUSH32(esp, esi); /* 0x470167B8: push esi */ 3624 esi = ecx; /* 0x470167B9: mov esi, ecx */ 3625 if (TEST_Z(_flag_a, _flag_b)) goto L_470167E8; /* 0x470167BB: je 0x470167e8 */ 3626 L_470167BD: 3627 eax = MEM32(esi + (-0x4)); /* 0x470167BD: mov eax, dword ptr [esi - 4] */ 3628 PUSH32(esp, edi); /* 0x470167C0: push edi */ 3629 PUSH32(esp, 0x47018480u); /* 0x470167C1: push 0x47018480 */ 3630 edi = esi + (-0x4); /* 0x470167C6: lea edi, [esi - 4] */ 3631 PUSH32(esp, eax); /* 0x470167C9: push eax */ 3632 PUSH32(esp, 8); /* 0x470167CA: push 8 */ 3633 PUSH32(esp, esi); /* 0x470167CC: push esi */ 3634 RECOMP_ICALL(0x470A32EBu); /* 0x470167CD: call 0x470a32eb */ /* not lifted */ 3635 RECOMP_FLAGS_IN(); 3636 /* test LO8(ebx), 1 */ /* 0x470167D2: test bl, 1 */ 3637 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3638 _cf = 0; 3639 _flag_k = FK_NARROW(FK_TEST, 24); 3640 if (TEST_Z(_flag_a, _flag_b)) goto L_470167E0; /* 0x470167D5: je 0x470167e0 */ 3641 L_470167D7: 3642 PUSH32(esp, edi); /* 0x470167D7: push edi */ 3643 RECOMP_ICALL(0x470A32A2u); /* 0x470167D8: call 0x470a32a2 */ /* not lifted */ 3644 RECOMP_FLAGS_IN(); 3645 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3647 esp = esp + 4; /* 0x470167DD: add esp, 4 */ 3648 _flag_k = FK_ADD; 3649 L_470167E0: 3650 eax = edi; /* 0x470167E0: mov eax, edi */ 3651 edi = POP32_VAL(esp); /* 0x470167E2: pop edi */ 3652 esi = POP32_VAL(esp); /* 0x470167E3: pop esi */ 3653 ebx = POP32_VAL(esp); /* 0x470167E4: pop ebx */ 3654 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470167E5: ret 4 */ 3655 L_470167E8: 3656 ecx = esi; /* 0x470167E8: mov ecx, esi */ 3657 RECOMP_ICALL(0x47018480u); /* 0x470167EA: call 0x47018480 */ /* not lifted */ 3658 RECOMP_FLAGS_IN(); 3659 /* test LO8(ebx), 1 */ /* 0x470167EF: test bl, 1 */ 3660 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3661 _cf = 0; 3662 _flag_k = FK_NARROW(FK_TEST, 24); 3663 if (TEST_Z(_flag_a, _flag_b)) goto L_470167FD; /* 0x470167F2: je 0x470167fd */ 3664 L_470167F4: 3665 PUSH32(esp, esi); /* 0x470167F4: push esi */ 3666 RECOMP_ICALL(0x470A32A2u); /* 0x470167F5: call 0x470a32a2 */ /* not lifted */ 3667 RECOMP_FLAGS_IN(); 3668 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3670 esp = esp + 4; /* 0x470167FA: add esp, 4 */ 3671 _flag_k = FK_ADD; 3672 L_470167FD: 3673 eax = esi; /* 0x470167FD: mov eax, esi */ 3674 esi = POP32_VAL(esp); /* 0x470167FF: pop esi */ 3675 ebx = POP32_VAL(esp); /* 0x47016800: pop ebx */ 3676 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016801: ret 4 */ 3677 RECOMP_REGS_OUT(); 3678 } 3679 3680 void sub_47016810(void) { 3681 int _fpu_cmp = 0; 3682 uint32_t _cf = 0; 3683 int _df = 1; 3684 uint32_t _flag_k = FK_NONE; 3685 uint32_t _flag_a = 0, _flag_b = 0; 3686 uint32_t _itail_tgt = 0; 3687 RECOMP_REGS_LOCALS 3688 RECOMP_ENTER(0x47016810u); 3689 3690 L_47016810: 3691 MEM32(0x4710DF5C) = 0x47105624u; /* 0x47016810: mov dword ptr [0x4710df5c], 0x47105624 */ 3692 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701681A: ret */ 3693 RECOMP_REGS_OUT(); 3694 } 3695 3696 void sub_47016820(void) { 3697 int _fpu_cmp = 0; 3698 uint32_t _cf = 0; 3699 int _df = 1; 3700 uint32_t _flag_k = FK_NONE; 3701 uint32_t _flag_a = 0, _flag_b = 0; 3702 uint32_t _itail_tgt = 0; 3703 RECOMP_REGS_LOCALS 3704 RECOMP_ENTER(0x47016820u); 3705 3706 L_47016820: 3707 eax = ecx; /* 0x47016820: mov eax, ecx */ 3708 MEM32(eax) = 0x470ACC18u; /* 0x47016822: mov dword ptr [eax], 0x470acc18 */ 3709 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016828: ret 4 */ 3710 RECOMP_REGS_OUT(); 3711 } 3712 3713 void sub_47016830(void) { 3714 int _fpu_cmp = 0; 3715 uint32_t _cf = 0; 3716 int _df = 1; 3717 uint32_t _flag_k = FK_NONE; 3718 uint32_t _flag_a = 0, _flag_b = 0; 3719 uint32_t _itail_tgt = 0; 3720 RECOMP_REGS_LOCALS 3721 RECOMP_ENTER(0x47016830u); 3722 3723 L_47016830: 3724 PUSH32(esp, ebx); /* 0x47016830: push ebx */ 3725 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016831: mov bl, byte ptr [esp + 8] */ 3726 /* test LO8(ebx), 2 */ /* 0x47016835: test bl, 2 */ 3727 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3728 _cf = 0; 3729 _flag_k = FK_NARROW(FK_TEST, 24); 3730 PUSH32(esp, esi); /* 0x47016838: push esi */ 3731 esi = ecx; /* 0x47016839: mov esi, ecx */ 3732 if (TEST_Z(_flag_a, _flag_b)) goto L_47016868; /* 0x4701683B: je 0x47016868 */ 3733 L_4701683D: 3734 eax = MEM32(esi + (-0x4)); /* 0x4701683D: mov eax, dword ptr [esi - 4] */ 3735 PUSH32(esp, edi); /* 0x47016840: push edi */ 3736 PUSH32(esp, 0x47018740u); /* 0x47016841: push 0x47018740 */ 3737 edi = esi + (-0x4); /* 0x47016846: lea edi, [esi - 4] */ 3738 PUSH32(esp, eax); /* 0x47016849: push eax */ 3739 PUSH32(esp, 4); /* 0x4701684A: push 4 */ 3740 PUSH32(esp, esi); /* 0x4701684C: push esi */ 3741 RECOMP_ICALL(0x470A32EBu); /* 0x4701684D: call 0x470a32eb */ /* not lifted */ 3742 RECOMP_FLAGS_IN(); 3743 /* test LO8(ebx), 1 */ /* 0x47016852: test bl, 1 */ 3744 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3745 _cf = 0; 3746 _flag_k = FK_NARROW(FK_TEST, 24); 3747 if (TEST_Z(_flag_a, _flag_b)) goto L_47016860; /* 0x47016855: je 0x47016860 */ 3748 L_47016857: 3749 PUSH32(esp, edi); /* 0x47016857: push edi */ 3750 RECOMP_ICALL(0x470A32A2u); /* 0x47016858: call 0x470a32a2 */ /* not lifted */ 3751 RECOMP_FLAGS_IN(); 3752 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3753 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3754 esp = esp + 4; /* 0x4701685D: add esp, 4 */ 3755 _flag_k = FK_ADD; 3756 L_47016860: 3757 eax = edi; /* 0x47016860: mov eax, edi */ 3758 edi = POP32_VAL(esp); /* 0x47016862: pop edi */ 3759 esi = POP32_VAL(esp); /* 0x47016863: pop esi */ 3760 ebx = POP32_VAL(esp); /* 0x47016864: pop ebx */ 3761 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016865: ret 4 */ 3762 L_47016868: 3763 ecx = esi; /* 0x47016868: mov ecx, esi */ 3764 RECOMP_ICALL(0x47018740u); /* 0x4701686A: call 0x47018740 */ /* not lifted */ 3765 RECOMP_FLAGS_IN(); 3766 /* test LO8(ebx), 1 */ /* 0x4701686F: test bl, 1 */ 3767 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3768 _cf = 0; 3769 _flag_k = FK_NARROW(FK_TEST, 24); 3770 if (TEST_Z(_flag_a, _flag_b)) goto L_4701687D; /* 0x47016872: je 0x4701687d */ 3771 L_47016874: 3772 PUSH32(esp, esi); /* 0x47016874: push esi */ 3773 RECOMP_ICALL(0x470A32A2u); /* 0x47016875: call 0x470a32a2 */ /* not lifted */ 3774 RECOMP_FLAGS_IN(); 3775 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3776 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3777 esp = esp + 4; /* 0x4701687A: add esp, 4 */ 3778 _flag_k = FK_ADD; 3779 L_4701687D: 3780 eax = esi; /* 0x4701687D: mov eax, esi */ 3781 esi = POP32_VAL(esp); /* 0x4701687F: pop esi */ 3782 ebx = POP32_VAL(esp); /* 0x47016880: pop ebx */ 3783 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016881: ret 4 */ 3784 RECOMP_REGS_OUT(); 3785 } 3786 3787 void sub_47016890(void) { 3788 int _fpu_cmp = 0; 3789 uint32_t _cf = 0; 3790 int _df = 1; 3791 uint32_t _flag_k = FK_NONE; 3792 uint32_t _flag_a = 0, _flag_b = 0; 3793 uint32_t _itail_tgt = 0; 3794 RECOMP_REGS_LOCALS 3795 RECOMP_ENTER(0x47016890u); 3796 3797 L_47016890: 3798 eax = ecx; /* 0x47016890: mov eax, ecx */ 3799 MEM32(eax) = 0x470ACC4Cu; /* 0x47016892: mov dword ptr [eax], 0x470acc4c */ 3800 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016898: ret 4 */ 3801 RECOMP_REGS_OUT(); 3802 } 3803 3804 void sub_470168A0(void) { 3805 int _fpu_cmp = 0; 3806 uint32_t _cf = 0; 3807 int _df = 1; 3808 uint32_t _flag_k = FK_NONE; 3809 uint32_t _flag_a = 0, _flag_b = 0; 3810 uint32_t _itail_tgt = 0; 3811 RECOMP_REGS_LOCALS 3812 RECOMP_ENTER(0x470168A0u); 3813 3814 L_470168A0: 3815 PUSH32(esp, ebx); /* 0x470168A0: push ebx */ 3816 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470168A1: mov bl, byte ptr [esp + 8] */ 3817 /* test LO8(ebx), 2 */ /* 0x470168A5: test bl, 2 */ 3818 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3819 _cf = 0; 3820 _flag_k = FK_NARROW(FK_TEST, 24); 3821 PUSH32(esp, esi); /* 0x470168A8: push esi */ 3822 esi = ecx; /* 0x470168A9: mov esi, ecx */ 3823 if (TEST_Z(_flag_a, _flag_b)) goto L_470168D8; /* 0x470168AB: je 0x470168d8 */ 3824 L_470168AD: 3825 eax = MEM32(esi + (-0x4)); /* 0x470168AD: mov eax, dword ptr [esi - 4] */ 3826 PUSH32(esp, edi); /* 0x470168B0: push edi */ 3827 PUSH32(esp, 0x47018750u); /* 0x470168B1: push 0x47018750 */ 3828 edi = esi + (-0x4); /* 0x470168B6: lea edi, [esi - 4] */ 3829 PUSH32(esp, eax); /* 0x470168B9: push eax */ 3830 PUSH32(esp, 4); /* 0x470168BA: push 4 */ 3831 PUSH32(esp, esi); /* 0x470168BC: push esi */ 3832 RECOMP_ICALL(0x470A32EBu); /* 0x470168BD: call 0x470a32eb */ /* not lifted */ 3833 RECOMP_FLAGS_IN(); 3834 /* test LO8(ebx), 1 */ /* 0x470168C2: test bl, 1 */ 3835 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3836 _cf = 0; 3837 _flag_k = FK_NARROW(FK_TEST, 24); 3838 if (TEST_Z(_flag_a, _flag_b)) goto L_470168D0; /* 0x470168C5: je 0x470168d0 */ 3839 L_470168C7: 3840 PUSH32(esp, edi); /* 0x470168C7: push edi */ 3841 RECOMP_ICALL(0x470A32A2u); /* 0x470168C8: call 0x470a32a2 */ /* not lifted */ 3842 RECOMP_FLAGS_IN(); 3843 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3844 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3845 esp = esp + 4; /* 0x470168CD: add esp, 4 */ 3846 _flag_k = FK_ADD; 3847 L_470168D0: 3848 eax = edi; /* 0x470168D0: mov eax, edi */ 3849 edi = POP32_VAL(esp); /* 0x470168D2: pop edi */ 3850 esi = POP32_VAL(esp); /* 0x470168D3: pop esi */ 3851 ebx = POP32_VAL(esp); /* 0x470168D4: pop ebx */ 3852 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470168D5: ret 4 */ 3853 L_470168D8: 3854 ecx = esi; /* 0x470168D8: mov ecx, esi */ 3855 RECOMP_ICALL(0x47018750u); /* 0x470168DA: call 0x47018750 */ /* not lifted */ 3856 RECOMP_FLAGS_IN(); 3857 /* test LO8(ebx), 1 */ /* 0x470168DF: test bl, 1 */ 3858 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3859 _cf = 0; 3860 _flag_k = FK_NARROW(FK_TEST, 24); 3861 if (TEST_Z(_flag_a, _flag_b)) goto L_470168ED; /* 0x470168E2: je 0x470168ed */ 3862 L_470168E4: 3863 PUSH32(esp, esi); /* 0x470168E4: push esi */ 3864 RECOMP_ICALL(0x470A32A2u); /* 0x470168E5: call 0x470a32a2 */ /* not lifted */ 3865 RECOMP_FLAGS_IN(); 3866 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3868 esp = esp + 4; /* 0x470168EA: add esp, 4 */ 3869 _flag_k = FK_ADD; 3870 L_470168ED: 3871 eax = esi; /* 0x470168ED: mov eax, esi */ 3872 esi = POP32_VAL(esp); /* 0x470168EF: pop esi */ 3873 ebx = POP32_VAL(esp); /* 0x470168F0: pop ebx */ 3874 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470168F1: ret 4 */ 3875 RECOMP_REGS_OUT(); 3876 } 3877 3878 void sub_47016900(void) { 3879 int _fpu_cmp = 0; 3880 uint32_t _cf = 0; 3881 int _df = 1; 3882 uint32_t _flag_k = FK_NONE; 3883 uint32_t _flag_a = 0, _flag_b = 0; 3884 uint32_t _itail_tgt = 0; 3885 RECOMP_REGS_LOCALS 3886 RECOMP_ENTER(0x47016900u); 3887 3888 L_47016900: 3889 PUSH32(esp, ecx); /* 0x47016900: push ecx */ 3890 eax = ecx; /* 0x47016901: mov eax, ecx */ 3891 ecx = MEM32(esp + 0xC); /* 0x47016903: mov ecx, dword ptr [esp + 0xc] */ 3892 /* test ecx, ecx */ /* 0x47016907: test ecx, ecx */ 3893 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3894 _cf = 0; 3895 _flag_k = FK_TEST; 3896 MEM32(esp) = 0; /* 0x47016909: mov dword ptr [esp], 0 */ 3897 if (TEST_Z(_flag_a, _flag_b)) goto L_47016921; /* 0x47016911: je 0x47016921 */ 3898 L_47016913: 3899 MEM32(eax + 0x4) = 0x470ACC70u; /* 0x47016913: mov dword ptr [eax + 4], 0x470acc70 */ 3900 MEM32(eax + 0x8) = 0x470ACC4Cu; /* 0x4701691A: mov dword ptr [eax + 8], 0x470acc4c */ 3901 L_47016921: 3902 ecx = MEM32(eax + 0x4); /* 0x47016921: mov ecx, dword ptr [eax + 4] */ 3903 MEM32(eax) = 0x470ACC6Cu; /* 0x47016924: mov dword ptr [eax], 0x470acc6c */ 3904 edx = MEM32(ecx + 0x4); /* 0x4701692A: mov edx, dword ptr [ecx + 4] */ 3905 MEM32(edx + eax + 0x4) = 0x470ACC5Cu; /* 0x4701692D: mov dword ptr [edx + eax + 4], 0x470acc5c */ 3906 ecx = POP32_VAL(esp); /* 0x47016935: pop ecx */ 3907 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47016936: ret 8 */ 3908 RECOMP_REGS_OUT(); 3909 } 3910 3911 void sub_47016940(void) { 3912 int _fpu_cmp = 0; 3913 uint32_t _cf = 0; 3914 int _df = 1; 3915 uint32_t _flag_k = FK_NONE; 3916 uint32_t _flag_a = 0, _flag_b = 0; 3917 uint32_t _itail_tgt = 0; 3918 RECOMP_REGS_LOCALS 3919 RECOMP_ENTER(0x47016940u); 3920 3921 L_47016940: 3922 PUSH32(esp, esi); /* 0x47016940: push esi */ 3923 esi = ecx + 0x8; /* 0x47016941: lea esi, [ecx + 8] */ 3924 ecx = esi; /* 0x47016944: mov ecx, esi */ 3925 RECOMP_ICALL(0x47018760u); /* 0x47016946: call 0x47018760 */ /* not lifted */ 3926 RECOMP_FLAGS_IN(); 3927 ecx = esi; /* 0x4701694B: mov ecx, esi */ 3928 RECOMP_ICALL(0x47018750u); /* 0x4701694D: call 0x47018750 */ /* not lifted */ 3929 RECOMP_FLAGS_IN(); 3930 esi = POP32_VAL(esp); /* 0x47016952: pop esi */ 3931 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47016953: ret */ 3932 RECOMP_REGS_OUT(); 3933 } 3934 3935 void sub_47016960(void) { 3936 int _fpu_cmp = 0; 3937 uint32_t _cf = 0; 3938 int _df = 1; 3939 uint32_t _flag_k = FK_NONE; 3940 uint32_t _flag_a = 0, _flag_b = 0; 3941 uint32_t _itail_tgt = 0; 3942 RECOMP_REGS_LOCALS 3943 RECOMP_ENTER(0x47016960u); 3944 3945 L_47016960: 3946 PUSH32(esp, ebx); /* 0x47016960: push ebx */ 3947 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016961: mov bl, byte ptr [esp + 8] */ 3948 /* test LO8(ebx), 2 */ /* 0x47016965: test bl, 2 */ 3949 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3950 _cf = 0; 3951 _flag_k = FK_NARROW(FK_TEST, 24); 3952 PUSH32(esp, esi); /* 0x47016968: push esi */ 3953 if (TEST_Z(_flag_a, _flag_b)) goto L_47016997; /* 0x47016969: je 0x47016997 */ 3954 L_4701696B: 3955 eax = MEM32(ecx + (-0xC)); /* 0x4701696B: mov eax, dword ptr [ecx - 0xc] */ 3956 esi = ecx + (-0xC); /* 0x4701696E: lea esi, [ecx - 0xc] */ 3957 PUSH32(esp, 0x47016940u); /* 0x47016971: push 0x47016940 */ 3958 PUSH32(esp, eax); /* 0x47016976: push eax */ 3959 PUSH32(esp, 0xCu); /* 0x47016977: push 0xc */ 3960 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u); 3961 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3962 ecx = ecx + 0xFFFFFFF8u; /* 0x47016979: add ecx, -8 */ 3963 _flag_k = FK_ADD; 3964 PUSH32(esp, ecx); /* 0x4701697C: push ecx */ 3965 RECOMP_ICALL(0x470A32EBu); /* 0x4701697D: call 0x470a32eb */ /* not lifted */ 3966 RECOMP_FLAGS_IN(); 3967 /* test LO8(ebx), 1 */ /* 0x47016982: test bl, 1 */ 3968 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3969 _cf = 0; 3970 _flag_k = FK_NARROW(FK_TEST, 24); 3971 if (TEST_Z(_flag_a, _flag_b)) goto L_47016990; /* 0x47016985: je 0x47016990 */ 3972 L_47016987: 3973 PUSH32(esp, esi); /* 0x47016987: push esi */ 3974 RECOMP_ICALL(0x470A32A2u); /* 0x47016988: call 0x470a32a2 */ /* not lifted */ 3975 RECOMP_FLAGS_IN(); 3976 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3978 esp = esp + 4; /* 0x4701698D: add esp, 4 */ 3979 _flag_k = FK_ADD; 3980 L_47016990: 3981 eax = esi; /* 0x47016990: mov eax, esi */ 3982 esi = POP32_VAL(esp); /* 0x47016992: pop esi */ 3983 ebx = POP32_VAL(esp); /* 0x47016993: pop ebx */ 3984 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016994: ret 4 */ 3985 L_47016997: 3986 PUSH32(esp, edi); /* 0x47016997: push edi */ 3987 edi = ecx + (-0x8); /* 0x47016998: lea edi, [ecx - 8] */ 3988 esi = edi + 0x8; /* 0x4701699B: lea esi, [edi + 8] */ 3989 ecx = esi; /* 0x4701699E: mov ecx, esi */ 3990 RECOMP_ICALL(0x47018760u); /* 0x470169A0: call 0x47018760 */ /* not lifted */ 3991 RECOMP_FLAGS_IN(); 3992 ecx = esi; /* 0x470169A5: mov ecx, esi */ 3993 RECOMP_ICALL(0x47018750u); /* 0x470169A7: call 0x47018750 */ /* not lifted */ 3994 RECOMP_FLAGS_IN(); 3995 /* test LO8(ebx), 1 */ /* 0x470169AC: test bl, 1 */ 3996 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3997 _cf = 0; 3998 _flag_k = FK_NARROW(FK_TEST, 24); 3999 if (TEST_Z(_flag_a, _flag_b)) goto L_470169BA; /* 0x470169AF: je 0x470169ba */ 4000 L_470169B1: 4001 PUSH32(esp, edi); /* 0x470169B1: push edi */ 4002 RECOMP_ICALL(0x470A32A2u); /* 0x470169B2: call 0x470a32a2 */ /* not lifted */ 4003 RECOMP_FLAGS_IN(); 4004 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4006 esp = esp + 4; /* 0x470169B7: add esp, 4 */ 4007 _flag_k = FK_ADD; 4008 L_470169BA: 4009 eax = edi; /* 0x470169BA: mov eax, edi */ 4010 edi = POP32_VAL(esp); /* 0x470169BC: pop edi */ 4011 esi = POP32_VAL(esp); /* 0x470169BD: pop esi */ 4012 ebx = POP32_VAL(esp); /* 0x470169BE: pop ebx */ 4013 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470169BF: ret 4 */ 4014 RECOMP_REGS_OUT(); 4015 } 4016 4017 void sub_470169D0(void) { 4018 int _fpu_cmp = 0; 4019 uint32_t _cf = 0; 4020 int _df = 1; 4021 uint32_t _flag_k = FK_NONE; 4022 uint32_t _flag_a = 0, _flag_b = 0; 4023 uint32_t _itail_tgt = 0; 4024 RECOMP_REGS_LOCALS 4025 RECOMP_ENTER(0x470169D0u); 4026 4027 L_470169D0: 4028 PUSH32(esp, ecx); /* 0x470169D0: push ecx */ 4029 eax = ecx; /* 0x470169D1: mov eax, ecx */ 4030 ecx = MEM32(esp + 0xC); /* 0x470169D3: mov ecx, dword ptr [esp + 0xc] */ 4031 /* test ecx, ecx */ /* 0x470169D7: test ecx, ecx */ 4032 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4033 _cf = 0; 4034 _flag_k = FK_TEST; 4035 MEM32(esp) = 0; /* 0x470169D9: mov dword ptr [esp], 0 */ 4036 if (TEST_Z(_flag_a, _flag_b)) goto L_470169F1; /* 0x470169E1: je 0x470169f1 */ 4037 L_470169E3: 4038 MEM32(eax + 0x4) = 0x470ACCB8u; /* 0x470169E3: mov dword ptr [eax + 4], 0x470accb8 */ 4039 MEM32(eax + 0x8) = 0x470ACC18u; /* 0x470169EA: mov dword ptr [eax + 8], 0x470acc18 */ 4040 L_470169F1: 4041 ecx = MEM32(eax + 0x4); /* 0x470169F1: mov ecx, dword ptr [eax + 4] */ 4042 MEM32(eax) = 0x470ACCACu; /* 0x470169F4: mov dword ptr [eax], 0x470accac */ 4043 edx = MEM32(ecx + 0x4); /* 0x470169FA: mov edx, dword ptr [ecx + 4] */ 4044 MEM32(edx + eax + 0x4) = 0x470ACC78u; /* 0x470169FD: mov dword ptr [edx + eax + 4], 0x470acc78 */ 4045 ecx = POP32_VAL(esp); /* 0x47016A05: pop ecx */ 4046 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47016A06: ret 8 */ 4047 RECOMP_REGS_OUT(); 4048 } 4049 4050 void sub_47016A10(void) { 4051 int _fpu_cmp = 0; 4052 uint32_t _cf = 0; 4053 int _df = 1; 4054 uint32_t _flag_k = FK_NONE; 4055 uint32_t _flag_a = 0, _flag_b = 0; 4056 uint32_t _itail_tgt = 0; 4057 RECOMP_REGS_LOCALS 4058 RECOMP_ENTER(0x47016A10u); 4059 4060 L_47016A10: 4061 PUSH32(esp, esi); /* 0x47016A10: push esi */ 4062 esi = ecx + 0x8; /* 0x47016A11: lea esi, [ecx + 8] */ 4063 ecx = esi; /* 0x47016A14: mov ecx, esi */ 4064 RECOMP_ICALL(0x47018780u); /* 0x47016A16: call 0x47018780 */ /* not lifted */ 4065 RECOMP_FLAGS_IN(); 4066 ecx = esi; /* 0x47016A1B: mov ecx, esi */ 4067 RECOMP_ICALL(0x47018740u); /* 0x47016A1D: call 0x47018740 */ /* not lifted */ 4068 RECOMP_FLAGS_IN(); 4069 esi = POP32_VAL(esp); /* 0x47016A22: pop esi */ 4070 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47016A23: ret */ 4071 RECOMP_REGS_OUT(); 4072 } 4073 4074 void sub_47016A30(void) { 4075 int _fpu_cmp = 0; 4076 uint32_t _cf = 0; 4077 int _df = 1; 4078 uint32_t _flag_k = FK_NONE; 4079 uint32_t _flag_a = 0, _flag_b = 0; 4080 uint32_t _itail_tgt = 0; 4081 RECOMP_REGS_LOCALS 4082 RECOMP_ENTER(0x47016A30u); 4083 4084 L_47016A30: 4085 PUSH32(esp, ebx); /* 0x47016A30: push ebx */ 4086 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016A31: mov bl, byte ptr [esp + 8] */ 4087 /* test LO8(ebx), 2 */ /* 0x47016A35: test bl, 2 */ 4088 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 4089 _cf = 0; 4090 _flag_k = FK_NARROW(FK_TEST, 24); 4091 PUSH32(esp, esi); /* 0x47016A38: push esi */ 4092 if (TEST_Z(_flag_a, _flag_b)) goto L_47016A67; /* 0x47016A39: je 0x47016a67 */ 4093 L_47016A3B: 4094 eax = MEM32(ecx + (-0xC)); /* 0x47016A3B: mov eax, dword ptr [ecx - 0xc] */ 4095 esi = ecx + (-0xC); /* 0x47016A3E: lea esi, [ecx - 0xc] */ 4096 PUSH32(esp, 0x47016A10u); /* 0x47016A41: push 0x47016a10 */ 4097 PUSH32(esp, eax); /* 0x47016A46: push eax */ 4098 PUSH32(esp, 0xCu); /* 0x47016A47: push 0xc */ 4099 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u); 4100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4101 ecx = ecx + 0xFFFFFFF8u; /* 0x47016A49: add ecx, -8 */ 4102 _flag_k = FK_ADD; 4103 PUSH32(esp, ecx); /* 0x47016A4C: push ecx */ 4104 RECOMP_ICALL(0x470A32EBu); /* 0x47016A4D: call 0x470a32eb */ /* not lifted */ 4105 RECOMP_FLAGS_IN(); 4106 /* test LO8(ebx), 1 */ /* 0x47016A52: test bl, 1 */ 4107 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4108 _cf = 0; 4109 _flag_k = FK_NARROW(FK_TEST, 24); 4110 if (TEST_Z(_flag_a, _flag_b)) goto L_47016A60; /* 0x47016A55: je 0x47016a60 */ 4111 L_47016A57: 4112 PUSH32(esp, esi); /* 0x47016A57: push esi */ 4113 RECOMP_ICALL(0x470A32A2u); /* 0x47016A58: call 0x470a32a2 */ /* not lifted */ 4114 RECOMP_FLAGS_IN(); 4115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4117 esp = esp + 4; /* 0x47016A5D: add esp, 4 */ 4118 _flag_k = FK_ADD; 4119 L_47016A60: 4120 eax = esi; /* 0x47016A60: mov eax, esi */ 4121 esi = POP32_VAL(esp); /* 0x47016A62: pop esi */ 4122 ebx = POP32_VAL(esp); /* 0x47016A63: pop ebx */ 4123 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016A64: ret 4 */ 4124 L_47016A67: 4125 PUSH32(esp, edi); /* 0x47016A67: push edi */ 4126 edi = ecx + (-0x8); /* 0x47016A68: lea edi, [ecx - 8] */ 4127 esi = edi + 0x8; /* 0x47016A6B: lea esi, [edi + 8] */ 4128 ecx = esi; /* 0x47016A6E: mov ecx, esi */ 4129 RECOMP_ICALL(0x47018780u); /* 0x47016A70: call 0x47018780 */ /* not lifted */ 4130 RECOMP_FLAGS_IN(); 4131 ecx = esi; /* 0x47016A75: mov ecx, esi */ 4132 RECOMP_ICALL(0x47018740u); /* 0x47016A77: call 0x47018740 */ /* not lifted */ 4133 RECOMP_FLAGS_IN(); 4134 /* test LO8(ebx), 1 */ /* 0x47016A7C: test bl, 1 */ 4135 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4136 _cf = 0; 4137 _flag_k = FK_NARROW(FK_TEST, 24); 4138 if (TEST_Z(_flag_a, _flag_b)) goto L_47016A8A; /* 0x47016A7F: je 0x47016a8a */ 4139 L_47016A81: 4140 PUSH32(esp, edi); /* 0x47016A81: push edi */ 4141 RECOMP_ICALL(0x470A32A2u); /* 0x47016A82: call 0x470a32a2 */ /* not lifted */ 4142 RECOMP_FLAGS_IN(); 4143 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4144 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4145 esp = esp + 4; /* 0x47016A87: add esp, 4 */ 4146 _flag_k = FK_ADD; 4147 L_47016A8A: 4148 eax = edi; /* 0x47016A8A: mov eax, edi */ 4149 edi = POP32_VAL(esp); /* 0x47016A8C: pop edi */ 4150 esi = POP32_VAL(esp); /* 0x47016A8D: pop esi */ 4151 ebx = POP32_VAL(esp); /* 0x47016A8E: pop ebx */ 4152 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016A8F: ret 4 */ 4153 RECOMP_REGS_OUT(); 4154 } 4155 4156 void sub_47016AA0(void) { 4157 int _fpu_cmp = 0; 4158 uint32_t _cf = 0; 4159 int _df = 1; 4160 uint32_t _flag_k = FK_NONE; 4161 uint32_t _flag_a = 0, _flag_b = 0; 4162 uint32_t _itail_tgt = 0; 4163 RECOMP_REGS_LOCALS 4164 RECOMP_ENTER(0x47016AA0u); 4165 4166 L_47016AA0: 4167 PUSH32(esp, ecx); /* 0x47016AA0: push ecx */ 4168 eax = ecx; /* 0x47016AA1: mov eax, ecx */ 4169 ecx = MEM32(esp + 0xC); /* 0x47016AA3: mov ecx, dword ptr [esp + 0xc] */ 4170 /* test ecx, ecx */ /* 0x47016AA7: test ecx, ecx */ 4171 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4172 _cf = 0; 4173 _flag_k = FK_TEST; 4174 MEM32(esp) = 0; /* 0x47016AA9: mov dword ptr [esp], 0 */ 4175 if (TEST_Z(_flag_a, _flag_b)) goto L_47016AC1; /* 0x47016AB1: je 0x47016ac1 */ 4176 L_47016AB3: 4177 MEM32(eax + 0x4) = 0x470ACCD4u; /* 0x47016AB3: mov dword ptr [eax + 4], 0x470accd4 */ 4178 MEM32(eax + 0x8) = 0x470ACC4Cu; /* 0x47016ABA: mov dword ptr [eax + 8], 0x470acc4c */ 4179 L_47016AC1: 4180 ecx = MEM32(eax + 0x4); /* 0x47016AC1: mov ecx, dword ptr [eax + 4] */ 4181 MEM32(eax) = 0x470ACCD0u; /* 0x47016AC4: mov dword ptr [eax], 0x470accd0 */ 4182 edx = MEM32(ecx + 0x4); /* 0x47016ACA: mov edx, dword ptr [ecx + 4] */ 4183 MEM32(edx + eax + 0x4) = 0x470ACCC0u; /* 0x47016ACD: mov dword ptr [edx + eax + 4], 0x470accc0 */ 4184 ecx = POP32_VAL(esp); /* 0x47016AD5: pop ecx */ 4185 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47016AD6: ret 8 */ 4186 RECOMP_REGS_OUT(); 4187 } 4188 4189 void sub_47016AE0(void) { 4190 int _fpu_cmp = 0; 4191 uint32_t _cf = 0; 4192 int _df = 1; 4193 uint32_t _flag_k = FK_NONE; 4194 uint32_t _flag_a = 0, _flag_b = 0; 4195 uint32_t _itail_tgt = 0; 4196 RECOMP_REGS_LOCALS 4197 RECOMP_ENTER(0x47016AE0u); 4198 4199 L_47016AE0: 4200 PUSH32(esp, esi); /* 0x47016AE0: push esi */ 4201 esi = ecx + 0x8; /* 0x47016AE1: lea esi, [ecx + 8] */ 4202 ecx = esi; /* 0x47016AE4: mov ecx, esi */ 4203 RECOMP_ICALL(0x470187A0u); /* 0x47016AE6: call 0x470187a0 */ /* not lifted */ 4204 RECOMP_FLAGS_IN(); 4205 ecx = esi; /* 0x47016AEB: mov ecx, esi */ 4206 RECOMP_ICALL(0x47018750u); /* 0x47016AED: call 0x47018750 */ /* not lifted */ 4207 RECOMP_FLAGS_IN(); 4208 esi = POP32_VAL(esp); /* 0x47016AF2: pop esi */ 4209 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47016AF3: ret */ 4210 RECOMP_REGS_OUT(); 4211 } 4212 4213 void sub_47016B00(void) { 4214 int _fpu_cmp = 0; 4215 uint32_t _cf = 0; 4216 int _df = 1; 4217 uint32_t _flag_k = FK_NONE; 4218 uint32_t _flag_a = 0, _flag_b = 0; 4219 uint32_t _itail_tgt = 0; 4220 RECOMP_REGS_LOCALS 4221 RECOMP_ENTER(0x47016B00u); 4222 4223 L_47016B00: 4224 PUSH32(esp, ebx); /* 0x47016B00: push ebx */ 4225 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016B01: mov bl, byte ptr [esp + 8] */ 4226 /* test LO8(ebx), 2 */ /* 0x47016B05: test bl, 2 */ 4227 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 4228 _cf = 0; 4229 _flag_k = FK_NARROW(FK_TEST, 24); 4230 PUSH32(esp, esi); /* 0x47016B08: push esi */ 4231 if (TEST_Z(_flag_a, _flag_b)) goto L_47016B37; /* 0x47016B09: je 0x47016b37 */ 4232 L_47016B0B: 4233 eax = MEM32(ecx + (-0xC)); /* 0x47016B0B: mov eax, dword ptr [ecx - 0xc] */ 4234 esi = ecx + (-0xC); /* 0x47016B0E: lea esi, [ecx - 0xc] */ 4235 PUSH32(esp, 0x47016AE0u); /* 0x47016B11: push 0x47016ae0 */ 4236 PUSH32(esp, eax); /* 0x47016B16: push eax */ 4237 PUSH32(esp, 0xCu); /* 0x47016B17: push 0xc */ 4238 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u); 4239 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4240 ecx = ecx + 0xFFFFFFF8u; /* 0x47016B19: add ecx, -8 */ 4241 _flag_k = FK_ADD; 4242 PUSH32(esp, ecx); /* 0x47016B1C: push ecx */ 4243 RECOMP_ICALL(0x470A32EBu); /* 0x47016B1D: call 0x470a32eb */ /* not lifted */ 4244 RECOMP_FLAGS_IN(); 4245 /* test LO8(ebx), 1 */ /* 0x47016B22: test bl, 1 */ 4246 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4247 _cf = 0; 4248 _flag_k = FK_NARROW(FK_TEST, 24); 4249 if (TEST_Z(_flag_a, _flag_b)) goto L_47016B30; /* 0x47016B25: je 0x47016b30 */ 4250 L_47016B27: 4251 PUSH32(esp, esi); /* 0x47016B27: push esi */ 4252 RECOMP_ICALL(0x470A32A2u); /* 0x47016B28: call 0x470a32a2 */ /* not lifted */ 4253 RECOMP_FLAGS_IN(); 4254 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4255 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4256 esp = esp + 4; /* 0x47016B2D: add esp, 4 */ 4257 _flag_k = FK_ADD; 4258 L_47016B30: 4259 eax = esi; /* 0x47016B30: mov eax, esi */ 4260 esi = POP32_VAL(esp); /* 0x47016B32: pop esi */ 4261 ebx = POP32_VAL(esp); /* 0x47016B33: pop ebx */ 4262 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016B34: ret 4 */ 4263 L_47016B37: 4264 PUSH32(esp, edi); /* 0x47016B37: push edi */ 4265 edi = ecx + (-0x8); /* 0x47016B38: lea edi, [ecx - 8] */ 4266 esi = edi + 0x8; /* 0x47016B3B: lea esi, [edi + 8] */ 4267 ecx = esi; /* 0x47016B3E: mov ecx, esi */ 4268 RECOMP_ICALL(0x470187A0u); /* 0x47016B40: call 0x470187a0 */ /* not lifted */ 4269 RECOMP_FLAGS_IN(); 4270 ecx = esi; /* 0x47016B45: mov ecx, esi */ 4271 RECOMP_ICALL(0x47018750u); /* 0x47016B47: call 0x47018750 */ /* not lifted */ 4272 RECOMP_FLAGS_IN(); 4273 /* test LO8(ebx), 1 */ /* 0x47016B4C: test bl, 1 */ 4274 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4275 _cf = 0; 4276 _flag_k = FK_NARROW(FK_TEST, 24); 4277 if (TEST_Z(_flag_a, _flag_b)) goto L_47016B5A; /* 0x47016B4F: je 0x47016b5a */ 4278 L_47016B51: 4279 PUSH32(esp, edi); /* 0x47016B51: push edi */ 4280 RECOMP_ICALL(0x470A32A2u); /* 0x47016B52: call 0x470a32a2 */ /* not lifted */ 4281 RECOMP_FLAGS_IN(); 4282 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4283 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4284 esp = esp + 4; /* 0x47016B57: add esp, 4 */ 4285 _flag_k = FK_ADD; 4286 L_47016B5A: 4287 eax = edi; /* 0x47016B5A: mov eax, edi */ 4288 edi = POP32_VAL(esp); /* 0x47016B5C: pop edi */ 4289 esi = POP32_VAL(esp); /* 0x47016B5D: pop esi */ 4290 ebx = POP32_VAL(esp); /* 0x47016B5E: pop ebx */ 4291 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016B5F: ret 4 */ 4292 RECOMP_REGS_OUT(); 4293 } 4294 4295 void sub_47016B70(void) { 4296 int _fpu_cmp = 0; 4297 uint32_t _cf = 0; 4298 int _df = 1; 4299 uint32_t _flag_k = FK_NONE; 4300 uint32_t _flag_a = 0, _flag_b = 0; 4301 uint32_t _itail_tgt = 0; 4302 RECOMP_REGS_LOCALS 4303 RECOMP_ENTER(0x47016B70u); 4304 4305 L_47016B70: 4306 PUSH32(esp, ecx); /* 0x47016B70: push ecx */ 4307 eax = ecx; /* 0x47016B71: mov eax, ecx */ 4308 ecx = MEM32(esp + 0xC); /* 0x47016B73: mov ecx, dword ptr [esp + 0xc] */ 4309 /* test ecx, ecx */ /* 0x47016B77: test ecx, ecx */ 4310 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4311 _cf = 0; 4312 _flag_k = FK_TEST; 4313 MEM32(esp) = 0; /* 0x47016B79: mov dword ptr [esp], 0 */ 4314 if (TEST_Z(_flag_a, _flag_b)) goto L_47016B91; /* 0x47016B81: je 0x47016b91 */ 4315 L_47016B83: 4316 MEM32(eax + 0x4) = 0x470ACD1Cu; /* 0x47016B83: mov dword ptr [eax + 4], 0x470acd1c */ 4317 MEM32(eax + 0x8) = 0x470ACC18u; /* 0x47016B8A: mov dword ptr [eax + 8], 0x470acc18 */ 4318 L_47016B91: 4319 ecx = MEM32(eax + 0x4); /* 0x47016B91: mov ecx, dword ptr [eax + 4] */ 4320 MEM32(eax) = 0x470ACD10u; /* 0x47016B94: mov dword ptr [eax], 0x470acd10 */ 4321 edx = MEM32(ecx + 0x4); /* 0x47016B9A: mov edx, dword ptr [ecx + 4] */ 4322 MEM32(edx + eax + 0x4) = 0x470ACCDCu; /* 0x47016B9D: mov dword ptr [edx + eax + 4], 0x470accdc */ 4323 ecx = POP32_VAL(esp); /* 0x47016BA5: pop ecx */ 4324 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47016BA6: ret 8 */ 4325 RECOMP_REGS_OUT(); 4326 } 4327 4328 void sub_47016BB0(void) { 4329 int _fpu_cmp = 0; 4330 uint32_t _cf = 0; 4331 int _df = 1; 4332 uint32_t _flag_k = FK_NONE; 4333 uint32_t _flag_a = 0, _flag_b = 0; 4334 uint32_t _itail_tgt = 0; 4335 RECOMP_REGS_LOCALS 4336 RECOMP_ENTER(0x47016BB0u); 4337 4338 L_47016BB0: 4339 PUSH32(esp, esi); /* 0x47016BB0: push esi */ 4340 esi = ecx + 0x8; /* 0x47016BB1: lea esi, [ecx + 8] */ 4341 ecx = esi; /* 0x47016BB4: mov ecx, esi */ 4342 RECOMP_ICALL(0x470187C0u); /* 0x47016BB6: call 0x470187c0 */ /* not lifted */ 4343 RECOMP_FLAGS_IN(); 4344 ecx = esi; /* 0x47016BBB: mov ecx, esi */ 4345 RECOMP_ICALL(0x47018740u); /* 0x47016BBD: call 0x47018740 */ /* not lifted */ 4346 RECOMP_FLAGS_IN(); 4347 esi = POP32_VAL(esp); /* 0x47016BC2: pop esi */ 4348 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47016BC3: ret */ 4349 RECOMP_REGS_OUT(); 4350 } 4351 4352 void sub_47016BD0(void) { 4353 int _fpu_cmp = 0; 4354 uint32_t _cf = 0; 4355 int _df = 1; 4356 uint32_t _flag_k = FK_NONE; 4357 uint32_t _flag_a = 0, _flag_b = 0; 4358 uint32_t _itail_tgt = 0; 4359 RECOMP_REGS_LOCALS 4360 RECOMP_ENTER(0x47016BD0u); 4361 4362 L_47016BD0: 4363 PUSH32(esp, ebx); /* 0x47016BD0: push ebx */ 4364 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016BD1: mov bl, byte ptr [esp + 8] */ 4365 /* test LO8(ebx), 2 */ /* 0x47016BD5: test bl, 2 */ 4366 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 4367 _cf = 0; 4368 _flag_k = FK_NARROW(FK_TEST, 24); 4369 PUSH32(esp, esi); /* 0x47016BD8: push esi */ 4370 if (TEST_Z(_flag_a, _flag_b)) goto L_47016C07; /* 0x47016BD9: je 0x47016c07 */ 4371 L_47016BDB: 4372 eax = MEM32(ecx + (-0xC)); /* 0x47016BDB: mov eax, dword ptr [ecx - 0xc] */ 4373 esi = ecx + (-0xC); /* 0x47016BDE: lea esi, [ecx - 0xc] */ 4374 PUSH32(esp, 0x47016BB0u); /* 0x47016BE1: push 0x47016bb0 */ 4375 PUSH32(esp, eax); /* 0x47016BE6: push eax */ 4376 PUSH32(esp, 0xCu); /* 0x47016BE7: push 0xc */ 4377 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u); 4378 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4379 ecx = ecx + 0xFFFFFFF8u; /* 0x47016BE9: add ecx, -8 */ 4380 _flag_k = FK_ADD; 4381 PUSH32(esp, ecx); /* 0x47016BEC: push ecx */ 4382 RECOMP_ICALL(0x470A32EBu); /* 0x47016BED: call 0x470a32eb */ /* not lifted */ 4383 RECOMP_FLAGS_IN(); 4384 /* test LO8(ebx), 1 */ /* 0x47016BF2: test bl, 1 */ 4385 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4386 _cf = 0; 4387 _flag_k = FK_NARROW(FK_TEST, 24); 4388 if (TEST_Z(_flag_a, _flag_b)) goto L_47016C00; /* 0x47016BF5: je 0x47016c00 */ 4389 L_47016BF7: 4390 PUSH32(esp, esi); /* 0x47016BF7: push esi */ 4391 RECOMP_ICALL(0x470A32A2u); /* 0x47016BF8: call 0x470a32a2 */ /* not lifted */ 4392 RECOMP_FLAGS_IN(); 4393 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4395 esp = esp + 4; /* 0x47016BFD: add esp, 4 */ 4396 _flag_k = FK_ADD; 4397 L_47016C00: 4398 eax = esi; /* 0x47016C00: mov eax, esi */ 4399 esi = POP32_VAL(esp); /* 0x47016C02: pop esi */ 4400 ebx = POP32_VAL(esp); /* 0x47016C03: pop ebx */ 4401 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016C04: ret 4 */ 4402 L_47016C07: 4403 PUSH32(esp, edi); /* 0x47016C07: push edi */ 4404 edi = ecx + (-0x8); /* 0x47016C08: lea edi, [ecx - 8] */ 4405 esi = edi + 0x8; /* 0x47016C0B: lea esi, [edi + 8] */ 4406 ecx = esi; /* 0x47016C0E: mov ecx, esi */ 4407 RECOMP_ICALL(0x470187C0u); /* 0x47016C10: call 0x470187c0 */ /* not lifted */ 4408 RECOMP_FLAGS_IN(); 4409 ecx = esi; /* 0x47016C15: mov ecx, esi */ 4410 RECOMP_ICALL(0x47018740u); /* 0x47016C17: call 0x47018740 */ /* not lifted */ 4411 RECOMP_FLAGS_IN(); 4412 /* test LO8(ebx), 1 */ /* 0x47016C1C: test bl, 1 */ 4413 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4414 _cf = 0; 4415 _flag_k = FK_NARROW(FK_TEST, 24); 4416 if (TEST_Z(_flag_a, _flag_b)) goto L_47016C2A; /* 0x47016C1F: je 0x47016c2a */ 4417 L_47016C21: 4418 PUSH32(esp, edi); /* 0x47016C21: push edi */ 4419 RECOMP_ICALL(0x470A32A2u); /* 0x47016C22: call 0x470a32a2 */ /* not lifted */ 4420 RECOMP_FLAGS_IN(); 4421 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4422 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4423 esp = esp + 4; /* 0x47016C27: add esp, 4 */ 4424 _flag_k = FK_ADD; 4425 L_47016C2A: 4426 eax = edi; /* 0x47016C2A: mov eax, edi */ 4427 edi = POP32_VAL(esp); /* 0x47016C2C: pop edi */ 4428 esi = POP32_VAL(esp); /* 0x47016C2D: pop esi */ 4429 ebx = POP32_VAL(esp); /* 0x47016C2E: pop ebx */ 4430 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016C2F: ret 4 */ 4431 RECOMP_REGS_OUT(); 4432 } 4433 4434 void sub_47016C40(void) { 4435 int _fpu_cmp = 0; 4436 uint32_t _cf = 0; 4437 int _df = 1; 4438 uint32_t _flag_k = FK_NONE; 4439 uint32_t _flag_a = 0, _flag_b = 0; 4440 uint32_t _itail_tgt = 0; 4441 RECOMP_REGS_LOCALS 4442 RECOMP_ENTER(0x47016C40u); 4443 4444 L_47016C40: 4445 PUSH32(esp, ecx); /* 0x47016C40: push ecx */ 4446 eax = ecx; /* 0x47016C41: mov eax, ecx */ 4447 ecx = MEM32(esp + 0xC); /* 0x47016C43: mov ecx, dword ptr [esp + 0xc] */ 4448 /* test ecx, ecx */ /* 0x47016C47: test ecx, ecx */ 4449 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4450 _cf = 0; 4451 _flag_k = FK_TEST; 4452 MEM32(esp) = 0; /* 0x47016C49: mov dword ptr [esp], 0 */ 4453 if (TEST_Z(_flag_a, _flag_b)) goto L_47016C7D; /* 0x47016C51: je 0x47016c7d */ 4454 L_47016C53: 4455 MEM32(eax + 0x4) = 0x470ACD44u; /* 0x47016C53: mov dword ptr [eax + 4], 0x470acd44 */ 4456 MEM32(eax + 0x10) = 0x470ACD3Cu; /* 0x47016C5A: mov dword ptr [eax + 0x10], 0x470acd3c */ 4457 MEM32(eax + 0x8) = 0x470ACC4Cu; /* 0x47016C61: mov dword ptr [eax + 8], 0x470acc4c */ 4458 ecx = MEM32(eax + 0x10); /* 0x47016C68: mov ecx, dword ptr [eax + 0x10] */ 4459 MEM32(eax + 0xC) = 0x470ACC6Cu; /* 0x47016C6B: mov dword ptr [eax + 0xc], 0x470acc6c */ 4460 edx = MEM32(ecx + 0x4); /* 0x47016C72: mov edx, dword ptr [ecx + 4] */ 4461 MEM32(edx + eax + 0x10) = 0x470ACC5Cu; /* 0x47016C75: mov dword ptr [edx + eax + 0x10], 0x470acc5c */ 4462 L_47016C7D: 4463 ecx = MEM32(eax + 0x4); /* 0x47016C7D: mov ecx, dword ptr [eax + 4] */ 4464 MEM32(eax) = 0x470ACD38u; /* 0x47016C80: mov dword ptr [eax], 0x470acd38 */ 4465 edx = MEM32(ecx + 0x4); /* 0x47016C86: mov edx, dword ptr [ecx + 4] */ 4466 MEM32(edx + eax + 0x4) = 0x470ACD28u; /* 0x47016C89: mov dword ptr [edx + eax + 4], 0x470acd28 */ 4467 ecx = MEM32(eax + 0x4); /* 0x47016C91: mov ecx, dword ptr [eax + 4] */ 4468 edx = MEM32(ecx + 0x8); /* 0x47016C94: mov edx, dword ptr [ecx + 8] */ 4469 MEM32(edx + eax + 0x4) = 0x470ACD24u; /* 0x47016C97: mov dword ptr [edx + eax + 4], 0x470acd24 */ 4470 ecx = POP32_VAL(esp); /* 0x47016C9F: pop ecx */ 4471 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47016CA0: ret 8 */ 4472 RECOMP_REGS_OUT(); 4473 } 4474 4475 void sub_47016CB0(void) { 4476 int _fpu_cmp = 0; 4477 uint32_t _cf = 0; 4478 int _df = 1; 4479 uint32_t _flag_k = FK_NONE; 4480 uint32_t _flag_a = 0, _flag_b = 0; 4481 uint32_t _itail_tgt = 0; 4482 RECOMP_REGS_LOCALS 4483 RECOMP_ENTER(0x47016CB0u); 4484 4485 L_47016CB0: 4486 PUSH32(esp, esi); /* 0x47016CB0: push esi */ 4487 esi = ecx; /* 0x47016CB1: mov esi, ecx */ 4488 PUSH32(esp, edi); /* 0x47016CB3: push edi */ 4489 edi = esi + 0x8; /* 0x47016CB4: lea edi, [esi + 8] */ 4490 ecx = edi; /* 0x47016CB7: mov ecx, edi */ 4491 RECOMP_ICALL(0x470187E0u); /* 0x47016CB9: call 0x470187e0 */ /* not lifted */ 4492 RECOMP_FLAGS_IN(); 4493 ecx = esi + 0x14; /* 0x47016CBE: lea ecx, [esi + 0x14] */ 4494 RECOMP_ICALL(0x47018760u); /* 0x47016CC1: call 0x47018760 */ /* not lifted */ 4495 RECOMP_FLAGS_IN(); 4496 ecx = edi; /* 0x47016CC6: mov ecx, edi */ 4497 RECOMP_ICALL(0x47018750u); /* 0x47016CC8: call 0x47018750 */ /* not lifted */ 4498 RECOMP_FLAGS_IN(); 4499 edi = POP32_VAL(esp); /* 0x47016CCD: pop edi */ 4500 esi = POP32_VAL(esp); /* 0x47016CCE: pop esi */ 4501 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47016CCF: ret */ 4502 RECOMP_REGS_OUT(); 4503 } 4504 4505 void sub_47016CD0(void) { 4506 int _fpu_cmp = 0; 4507 uint32_t _cf = 0; 4508 int _df = 1; 4509 uint32_t _flag_k = FK_NONE; 4510 uint32_t _flag_a = 0, _flag_b = 0; 4511 uint32_t _itail_tgt = 0; 4512 RECOMP_REGS_LOCALS 4513 RECOMP_ENTER(0x47016CD0u); 4514 4515 L_47016CD0: 4516 PUSH32(esp, ebx); /* 0x47016CD0: push ebx */ 4517 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016CD1: mov bl, byte ptr [esp + 8] */ 4518 /* test LO8(ebx), 2 */ /* 0x47016CD5: test bl, 2 */ 4519 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 4520 _cf = 0; 4521 _flag_k = FK_NARROW(FK_TEST, 24); 4522 PUSH32(esp, esi); /* 0x47016CD8: push esi */ 4523 if (TEST_Z(_flag_a, _flag_b)) goto L_47016D07; /* 0x47016CD9: je 0x47016d07 */ 4524 L_47016CDB: 4525 eax = MEM32(ecx + (-0xC)); /* 0x47016CDB: mov eax, dword ptr [ecx - 0xc] */ 4526 esi = ecx + (-0xC); /* 0x47016CDE: lea esi, [ecx - 0xc] */ 4527 PUSH32(esp, 0x47016CB0u); /* 0x47016CE1: push 0x47016cb0 */ 4528 PUSH32(esp, eax); /* 0x47016CE6: push eax */ 4529 PUSH32(esp, 0x14u); /* 0x47016CE7: push 0x14 */ 4530 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u); 4531 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4532 ecx = ecx + 0xFFFFFFF8u; /* 0x47016CE9: add ecx, -8 */ 4533 _flag_k = FK_ADD; 4534 PUSH32(esp, ecx); /* 0x47016CEC: push ecx */ 4535 RECOMP_ICALL(0x470A32EBu); /* 0x47016CED: call 0x470a32eb */ /* not lifted */ 4536 RECOMP_FLAGS_IN(); 4537 /* test LO8(ebx), 1 */ /* 0x47016CF2: test bl, 1 */ 4538 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4539 _cf = 0; 4540 _flag_k = FK_NARROW(FK_TEST, 24); 4541 if (TEST_Z(_flag_a, _flag_b)) goto L_47016D33; /* 0x47016CF5: je 0x47016d33 */ 4542 L_47016CF7: 4543 PUSH32(esp, esi); /* 0x47016CF7: push esi */ 4544 RECOMP_ICALL(0x470A32A2u); /* 0x47016CF8: call 0x470a32a2 */ /* not lifted */ 4545 RECOMP_FLAGS_IN(); 4546 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4547 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4548 esp = esp + 4; /* 0x47016CFD: add esp, 4 */ 4549 _flag_k = FK_ADD; 4550 eax = esi; /* 0x47016D00: mov eax, esi */ 4551 esi = POP32_VAL(esp); /* 0x47016D02: pop esi */ 4552 ebx = POP32_VAL(esp); /* 0x47016D03: pop ebx */ 4553 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016D04: ret 4 */ 4554 L_47016D07: 4555 esi = ecx + (-0x8); /* 0x47016D07: lea esi, [ecx - 8] */ 4556 PUSH32(esp, edi); /* 0x47016D0A: push edi */ 4557 edi = esi + 0x8; /* 0x47016D0B: lea edi, [esi + 8] */ 4558 ecx = edi; /* 0x47016D0E: mov ecx, edi */ 4559 RECOMP_ICALL(0x470187E0u); /* 0x47016D10: call 0x470187e0 */ /* not lifted */ 4560 RECOMP_FLAGS_IN(); 4561 ecx = esi + 0x14; /* 0x47016D15: lea ecx, [esi + 0x14] */ 4562 RECOMP_ICALL(0x47018760u); /* 0x47016D18: call 0x47018760 */ /* not lifted */ 4563 RECOMP_FLAGS_IN(); 4564 ecx = edi; /* 0x47016D1D: mov ecx, edi */ 4565 RECOMP_ICALL(0x47018750u); /* 0x47016D1F: call 0x47018750 */ /* not lifted */ 4566 RECOMP_FLAGS_IN(); 4567 /* test LO8(ebx), 1 */ /* 0x47016D24: test bl, 1 */ 4568 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4569 _cf = 0; 4570 _flag_k = FK_NARROW(FK_TEST, 24); 4571 edi = POP32_VAL(esp); /* 0x47016D27: pop edi */ 4572 if (TEST_Z(_flag_a, _flag_b)) goto L_47016D33; /* 0x47016D28: je 0x47016d33 */ 4573 L_47016D2A: 4574 PUSH32(esp, esi); /* 0x47016D2A: push esi */ 4575 RECOMP_ICALL(0x470A32A2u); /* 0x47016D2B: call 0x470a32a2 */ /* not lifted */ 4576 RECOMP_FLAGS_IN(); 4577 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4578 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4579 esp = esp + 4; /* 0x47016D30: add esp, 4 */ 4580 _flag_k = FK_ADD; 4581 L_47016D33: 4582 eax = esi; /* 0x47016D33: mov eax, esi */ 4583 esi = POP32_VAL(esp); /* 0x47016D35: pop esi */ 4584 ebx = POP32_VAL(esp); /* 0x47016D36: pop ebx */ 4585 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016D37: ret 4 */ 4586 RECOMP_REGS_OUT(); 4587 } 4588 4589 void sub_47016D40(void) { 4590 int _fpu_cmp = 0; 4591 uint32_t _cf = 0; 4592 int _df = 1; 4593 uint32_t _flag_k = FK_NONE; 4594 uint32_t _flag_a = 0, _flag_b = 0; 4595 uint32_t _itail_tgt = 0; 4596 RECOMP_REGS_LOCALS 4597 RECOMP_ENTER(0x47016D40u); 4598 4599 L_47016D40: 4600 PUSH32(esp, ecx); /* 0x47016D40: push ecx */ 4601 eax = ecx; /* 0x47016D41: mov eax, ecx */ 4602 ecx = MEM32(esp + 0xC); /* 0x47016D43: mov ecx, dword ptr [esp + 0xc] */ 4603 /* test ecx, ecx */ /* 0x47016D47: test ecx, ecx */ 4604 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4605 _cf = 0; 4606 _flag_k = FK_TEST; 4607 MEM32(esp) = 0; /* 0x47016D49: mov dword ptr [esp], 0 */ 4608 if (TEST_Z(_flag_a, _flag_b)) goto L_47016D7C; /* 0x47016D51: je 0x47016d7c */ 4609 L_47016D53: 4610 MEM32(eax) = 0x470ACD98u; /* 0x47016D53: mov dword ptr [eax], 0x470acd98 */ 4611 MEM32(eax + 0xC) = 0x470ACD90u; /* 0x47016D59: mov dword ptr [eax + 0xc], 0x470acd90 */ 4612 MEM32(eax + 0x4) = 0x470ACC18u; /* 0x47016D60: mov dword ptr [eax + 4], 0x470acc18 */ 4613 ecx = MEM32(eax + 0xC); /* 0x47016D67: mov ecx, dword ptr [eax + 0xc] */ 4614 MEM32(eax + 0x8) = 0x470ACCACu; /* 0x47016D6A: mov dword ptr [eax + 8], 0x470accac */ 4615 edx = MEM32(ecx + 0x4); /* 0x47016D71: mov edx, dword ptr [ecx + 4] */ 4616 MEM32(edx + eax + 0xC) = 0x470ACC78u; /* 0x47016D74: mov dword ptr [edx + eax + 0xc], 0x470acc78 */ 4617 L_47016D7C: 4618 ecx = MEM32(eax); /* 0x47016D7C: mov ecx, dword ptr [eax] */ 4619 edx = MEM32(ecx + 0x4); /* 0x47016D7E: mov edx, dword ptr [ecx + 4] */ 4620 MEM32(edx + eax) = 0x470ACD5Cu; /* 0x47016D81: mov dword ptr [edx + eax], 0x470acd5c */ 4621 ecx = MEM32(eax); /* 0x47016D88: mov ecx, dword ptr [eax] */ 4622 edx = MEM32(ecx + 0x8); /* 0x47016D8A: mov edx, dword ptr [ecx + 8] */ 4623 MEM32(edx + eax) = 0x470ACD50u; /* 0x47016D8D: mov dword ptr [edx + eax], 0x470acd50 */ 4624 ecx = POP32_VAL(esp); /* 0x47016D94: pop ecx */ 4625 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47016D95: ret 8 */ 4626 RECOMP_REGS_OUT(); 4627 } 4628 4629 void sub_47016DA0(void) { 4630 int _fpu_cmp = 0; 4631 uint32_t _cf = 0; 4632 int _df = 1; 4633 uint32_t _flag_k = FK_NONE; 4634 uint32_t _flag_a = 0, _flag_b = 0; 4635 uint32_t _itail_tgt = 0; 4636 RECOMP_REGS_LOCALS 4637 RECOMP_ENTER(0x47016DA0u); 4638 4639 L_47016DA0: 4640 PUSH32(esp, esi); /* 0x47016DA0: push esi */ 4641 esi = ecx; /* 0x47016DA1: mov esi, ecx */ 4642 PUSH32(esp, edi); /* 0x47016DA3: push edi */ 4643 edi = esi + 0x4; /* 0x47016DA4: lea edi, [esi + 4] */ 4644 ecx = edi; /* 0x47016DA7: mov ecx, edi */ 4645 RECOMP_ICALL(0x47018840u); /* 0x47016DA9: call 0x47018840 */ /* not lifted */ 4646 RECOMP_FLAGS_IN(); 4647 ecx = esi + 0x10; /* 0x47016DAE: lea ecx, [esi + 0x10] */ 4648 RECOMP_ICALL(0x47018780u); /* 0x47016DB1: call 0x47018780 */ /* not lifted */ 4649 RECOMP_FLAGS_IN(); 4650 ecx = edi; /* 0x47016DB6: mov ecx, edi */ 4651 RECOMP_ICALL(0x47018740u); /* 0x47016DB8: call 0x47018740 */ /* not lifted */ 4652 RECOMP_FLAGS_IN(); 4653 edi = POP32_VAL(esp); /* 0x47016DBD: pop edi */ 4654 esi = POP32_VAL(esp); /* 0x47016DBE: pop esi */ 4655 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47016DBF: ret */ 4656 RECOMP_REGS_OUT(); 4657 } 4658 4659 void sub_47016DC0(void) { 4660 int _fpu_cmp = 0; 4661 uint32_t _cf = 0; 4662 int _df = 1; 4663 uint32_t _flag_k = FK_NONE; 4664 uint32_t _flag_a = 0, _flag_b = 0; 4665 uint32_t _itail_tgt = 0; 4666 RECOMP_REGS_LOCALS 4667 RECOMP_ENTER(0x47016DC0u); 4668 4669 L_47016DC0: 4670 PUSH32(esp, ebx); /* 0x47016DC0: push ebx */ 4671 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016DC1: mov bl, byte ptr [esp + 8] */ 4672 /* test LO8(ebx), 2 */ /* 0x47016DC5: test bl, 2 */ 4673 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 4674 _cf = 0; 4675 _flag_k = FK_NARROW(FK_TEST, 24); 4676 PUSH32(esp, esi); /* 0x47016DC8: push esi */ 4677 if (TEST_Z(_flag_a, _flag_b)) goto L_47016DF7; /* 0x47016DC9: je 0x47016df7 */ 4678 L_47016DCB: 4679 eax = MEM32(ecx + (-0x8)); /* 0x47016DCB: mov eax, dword ptr [ecx - 8] */ 4680 esi = ecx + (-0x8); /* 0x47016DCE: lea esi, [ecx - 8] */ 4681 PUSH32(esp, 0x47016DA0u); /* 0x47016DD1: push 0x47016da0 */ 4682 PUSH32(esp, eax); /* 0x47016DD6: push eax */ 4683 PUSH32(esp, 0x10u); /* 0x47016DD7: push 0x10 */ 4684 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu); 4685 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4686 ecx = ecx + 0xFFFFFFFCu; /* 0x47016DD9: add ecx, -4 */ 4687 _flag_k = FK_ADD; 4688 PUSH32(esp, ecx); /* 0x47016DDC: push ecx */ 4689 RECOMP_ICALL(0x470A32EBu); /* 0x47016DDD: call 0x470a32eb */ /* not lifted */ 4690 RECOMP_FLAGS_IN(); 4691 /* test LO8(ebx), 1 */ /* 0x47016DE2: test bl, 1 */ 4692 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4693 _cf = 0; 4694 _flag_k = FK_NARROW(FK_TEST, 24); 4695 if (TEST_Z(_flag_a, _flag_b)) goto L_47016E23; /* 0x47016DE5: je 0x47016e23 */ 4696 L_47016DE7: 4697 PUSH32(esp, esi); /* 0x47016DE7: push esi */ 4698 RECOMP_ICALL(0x470A32A2u); /* 0x47016DE8: call 0x470a32a2 */ /* not lifted */ 4699 RECOMP_FLAGS_IN(); 4700 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4701 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4702 esp = esp + 4; /* 0x47016DED: add esp, 4 */ 4703 _flag_k = FK_ADD; 4704 eax = esi; /* 0x47016DF0: mov eax, esi */ 4705 esi = POP32_VAL(esp); /* 0x47016DF2: pop esi */ 4706 ebx = POP32_VAL(esp); /* 0x47016DF3: pop ebx */ 4707 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016DF4: ret 4 */ 4708 L_47016DF7: 4709 esi = ecx + (-0x4); /* 0x47016DF7: lea esi, [ecx - 4] */ 4710 PUSH32(esp, edi); /* 0x47016DFA: push edi */ 4711 edi = esi + 0x4; /* 0x47016DFB: lea edi, [esi + 4] */ 4712 ecx = edi; /* 0x47016DFE: mov ecx, edi */ 4713 RECOMP_ICALL(0x47018840u); /* 0x47016E00: call 0x47018840 */ /* not lifted */ 4714 RECOMP_FLAGS_IN(); 4715 ecx = esi + 0x10; /* 0x47016E05: lea ecx, [esi + 0x10] */ 4716 RECOMP_ICALL(0x47018780u); /* 0x47016E08: call 0x47018780 */ /* not lifted */ 4717 RECOMP_FLAGS_IN(); 4718 ecx = edi; /* 0x47016E0D: mov ecx, edi */ 4719 RECOMP_ICALL(0x47018740u); /* 0x47016E0F: call 0x47018740 */ /* not lifted */ 4720 RECOMP_FLAGS_IN(); 4721 /* test LO8(ebx), 1 */ /* 0x47016E14: test bl, 1 */ 4722 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4723 _cf = 0; 4724 _flag_k = FK_NARROW(FK_TEST, 24); 4725 edi = POP32_VAL(esp); /* 0x47016E17: pop edi */ 4726 if (TEST_Z(_flag_a, _flag_b)) goto L_47016E23; /* 0x47016E18: je 0x47016e23 */ 4727 L_47016E1A: 4728 PUSH32(esp, esi); /* 0x47016E1A: push esi */ 4729 RECOMP_ICALL(0x470A32A2u); /* 0x47016E1B: call 0x470a32a2 */ /* not lifted */ 4730 RECOMP_FLAGS_IN(); 4731 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4732 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4733 esp = esp + 4; /* 0x47016E20: add esp, 4 */ 4734 _flag_k = FK_ADD; 4735 L_47016E23: 4736 eax = esi; /* 0x47016E23: mov eax, esi */ 4737 esi = POP32_VAL(esp); /* 0x47016E25: pop esi */ 4738 ebx = POP32_VAL(esp); /* 0x47016E26: pop ebx */ 4739 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016E27: ret 4 */ 4740 RECOMP_REGS_OUT(); 4741 } 4742 4743 void sub_47016E30(void) { 4744 int _fpu_cmp = 0; 4745 uint32_t _cf = 0; 4746 int _df = 1; 4747 uint32_t _flag_k = FK_NONE; 4748 uint32_t _flag_a = 0, _flag_b = 0; 4749 uint32_t _itail_tgt = 0; 4750 RECOMP_REGS_LOCALS 4751 RECOMP_ENTER(0x47016E30u); 4752 4753 L_47016E30: 4754 PUSH32(esp, ecx); /* 0x47016E30: push ecx */ 4755 eax = ecx; /* 0x47016E31: mov eax, ecx */ 4756 ecx = MEM32(esp + 0xC); /* 0x47016E33: mov ecx, dword ptr [esp + 0xc] */ 4757 /* test ecx, ecx */ /* 0x47016E37: test ecx, ecx */ 4758 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4759 _cf = 0; 4760 _flag_k = FK_TEST; 4761 MEM32(esp) = 0; /* 0x47016E39: mov dword ptr [esp], 0 */ 4762 if (TEST_Z(_flag_a, _flag_b)) goto L_47016E6D; /* 0x47016E41: je 0x47016e6d */ 4763 L_47016E43: 4764 MEM32(eax + 0x4) = 0x470ACDC4u; /* 0x47016E43: mov dword ptr [eax + 4], 0x470acdc4 */ 4765 MEM32(eax + 0x10) = 0x470ACDBCu; /* 0x47016E4A: mov dword ptr [eax + 0x10], 0x470acdbc */ 4766 MEM32(eax + 0x8) = 0x470ACC4Cu; /* 0x47016E51: mov dword ptr [eax + 8], 0x470acc4c */ 4767 ecx = MEM32(eax + 0x10); /* 0x47016E58: mov ecx, dword ptr [eax + 0x10] */ 4768 MEM32(eax + 0xC) = 0x470ACCD0u; /* 0x47016E5B: mov dword ptr [eax + 0xc], 0x470accd0 */ 4769 edx = MEM32(ecx + 0x4); /* 0x47016E62: mov edx, dword ptr [ecx + 4] */ 4770 MEM32(edx + eax + 0x10) = 0x470ACCC0u; /* 0x47016E65: mov dword ptr [edx + eax + 0x10], 0x470accc0 */ 4771 L_47016E6D: 4772 ecx = MEM32(eax + 0x4); /* 0x47016E6D: mov ecx, dword ptr [eax + 4] */ 4773 MEM32(eax) = 0x470ACDB8u; /* 0x47016E70: mov dword ptr [eax], 0x470acdb8 */ 4774 edx = MEM32(ecx + 0x4); /* 0x47016E76: mov edx, dword ptr [ecx + 4] */ 4775 MEM32(edx + eax + 0x4) = 0x470ACDA8u; /* 0x47016E79: mov dword ptr [edx + eax + 4], 0x470acda8 */ 4776 ecx = MEM32(eax + 0x4); /* 0x47016E81: mov ecx, dword ptr [eax + 4] */ 4777 edx = MEM32(ecx + 0x8); /* 0x47016E84: mov edx, dword ptr [ecx + 8] */ 4778 MEM32(edx + eax + 0x4) = 0x470ACDA4u; /* 0x47016E87: mov dword ptr [edx + eax + 4], 0x470acda4 */ 4779 ecx = POP32_VAL(esp); /* 0x47016E8F: pop ecx */ 4780 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47016E90: ret 8 */ 4781 RECOMP_REGS_OUT(); 4782 } 4783 4784 void sub_47016EA0(void) { 4785 int _fpu_cmp = 0; 4786 uint32_t _cf = 0; 4787 int _df = 1; 4788 uint32_t _flag_k = FK_NONE; 4789 uint32_t _flag_a = 0, _flag_b = 0; 4790 uint32_t _itail_tgt = 0; 4791 RECOMP_REGS_LOCALS 4792 RECOMP_ENTER(0x47016EA0u); 4793 4794 L_47016EA0: 4795 PUSH32(esp, esi); /* 0x47016EA0: push esi */ 4796 esi = ecx; /* 0x47016EA1: mov esi, ecx */ 4797 PUSH32(esp, edi); /* 0x47016EA3: push edi */ 4798 edi = esi + 0x8; /* 0x47016EA4: lea edi, [esi + 8] */ 4799 ecx = edi; /* 0x47016EA7: mov ecx, edi */ 4800 RECOMP_ICALL(0x47018810u); /* 0x47016EA9: call 0x47018810 */ /* not lifted */ 4801 RECOMP_FLAGS_IN(); 4802 ecx = esi + 0x14; /* 0x47016EAE: lea ecx, [esi + 0x14] */ 4803 RECOMP_ICALL(0x470187A0u); /* 0x47016EB1: call 0x470187a0 */ /* not lifted */ 4804 RECOMP_FLAGS_IN(); 4805 ecx = edi; /* 0x47016EB6: mov ecx, edi */ 4806 RECOMP_ICALL(0x47018750u); /* 0x47016EB8: call 0x47018750 */ /* not lifted */ 4807 RECOMP_FLAGS_IN(); 4808 edi = POP32_VAL(esp); /* 0x47016EBD: pop edi */ 4809 esi = POP32_VAL(esp); /* 0x47016EBE: pop esi */ 4810 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47016EBF: ret */ 4811 RECOMP_REGS_OUT(); 4812 } 4813 4814 void sub_47016EC0(void) { 4815 int _fpu_cmp = 0; 4816 uint32_t _cf = 0; 4817 int _df = 1; 4818 uint32_t _flag_k = FK_NONE; 4819 uint32_t _flag_a = 0, _flag_b = 0; 4820 uint32_t _itail_tgt = 0; 4821 RECOMP_REGS_LOCALS 4822 RECOMP_ENTER(0x47016EC0u); 4823 4824 L_47016EC0: 4825 PUSH32(esp, ebx); /* 0x47016EC0: push ebx */ 4826 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016EC1: mov bl, byte ptr [esp + 8] */ 4827 /* test LO8(ebx), 2 */ /* 0x47016EC5: test bl, 2 */ 4828 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 4829 _cf = 0; 4830 _flag_k = FK_NARROW(FK_TEST, 24); 4831 PUSH32(esp, esi); /* 0x47016EC8: push esi */ 4832 if (TEST_Z(_flag_a, _flag_b)) goto L_47016EF7; /* 0x47016EC9: je 0x47016ef7 */ 4833 L_47016ECB: 4834 eax = MEM32(ecx + (-0xC)); /* 0x47016ECB: mov eax, dword ptr [ecx - 0xc] */ 4835 esi = ecx + (-0xC); /* 0x47016ECE: lea esi, [ecx - 0xc] */ 4836 PUSH32(esp, 0x47016EA0u); /* 0x47016ED1: push 0x47016ea0 */ 4837 PUSH32(esp, eax); /* 0x47016ED6: push eax */ 4838 PUSH32(esp, 0x14u); /* 0x47016ED7: push 0x14 */ 4839 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u); 4840 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4841 ecx = ecx + 0xFFFFFFF8u; /* 0x47016ED9: add ecx, -8 */ 4842 _flag_k = FK_ADD; 4843 PUSH32(esp, ecx); /* 0x47016EDC: push ecx */ 4844 RECOMP_ICALL(0x470A32EBu); /* 0x47016EDD: call 0x470a32eb */ /* not lifted */ 4845 RECOMP_FLAGS_IN(); 4846 /* test LO8(ebx), 1 */ /* 0x47016EE2: test bl, 1 */ 4847 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4848 _cf = 0; 4849 _flag_k = FK_NARROW(FK_TEST, 24); 4850 if (TEST_Z(_flag_a, _flag_b)) goto L_47016F23; /* 0x47016EE5: je 0x47016f23 */ 4851 L_47016EE7: 4852 PUSH32(esp, esi); /* 0x47016EE7: push esi */ 4853 RECOMP_ICALL(0x470A32A2u); /* 0x47016EE8: call 0x470a32a2 */ /* not lifted */ 4854 RECOMP_FLAGS_IN(); 4855 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4856 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4857 esp = esp + 4; /* 0x47016EED: add esp, 4 */ 4858 _flag_k = FK_ADD; 4859 eax = esi; /* 0x47016EF0: mov eax, esi */ 4860 esi = POP32_VAL(esp); /* 0x47016EF2: pop esi */ 4861 ebx = POP32_VAL(esp); /* 0x47016EF3: pop ebx */ 4862 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016EF4: ret 4 */ 4863 L_47016EF7: 4864 esi = ecx + (-0x8); /* 0x47016EF7: lea esi, [ecx - 8] */ 4865 PUSH32(esp, edi); /* 0x47016EFA: push edi */ 4866 edi = esi + 0x8; /* 0x47016EFB: lea edi, [esi + 8] */ 4867 ecx = edi; /* 0x47016EFE: mov ecx, edi */ 4868 RECOMP_ICALL(0x47018810u); /* 0x47016F00: call 0x47018810 */ /* not lifted */ 4869 RECOMP_FLAGS_IN(); 4870 ecx = esi + 0x14; /* 0x47016F05: lea ecx, [esi + 0x14] */ 4871 RECOMP_ICALL(0x470187A0u); /* 0x47016F08: call 0x470187a0 */ /* not lifted */ 4872 RECOMP_FLAGS_IN(); 4873 ecx = edi; /* 0x47016F0D: mov ecx, edi */ 4874 RECOMP_ICALL(0x47018750u); /* 0x47016F0F: call 0x47018750 */ /* not lifted */ 4875 RECOMP_FLAGS_IN(); 4876 /* test LO8(ebx), 1 */ /* 0x47016F14: test bl, 1 */ 4877 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4878 _cf = 0; 4879 _flag_k = FK_NARROW(FK_TEST, 24); 4880 edi = POP32_VAL(esp); /* 0x47016F17: pop edi */ 4881 if (TEST_Z(_flag_a, _flag_b)) goto L_47016F23; /* 0x47016F18: je 0x47016f23 */ 4882 L_47016F1A: 4883 PUSH32(esp, esi); /* 0x47016F1A: push esi */ 4884 RECOMP_ICALL(0x470A32A2u); /* 0x47016F1B: call 0x470a32a2 */ /* not lifted */ 4885 RECOMP_FLAGS_IN(); 4886 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4888 esp = esp + 4; /* 0x47016F20: add esp, 4 */ 4889 _flag_k = FK_ADD; 4890 L_47016F23: 4891 eax = esi; /* 0x47016F23: mov eax, esi */ 4892 esi = POP32_VAL(esp); /* 0x47016F25: pop esi */ 4893 ebx = POP32_VAL(esp); /* 0x47016F26: pop ebx */ 4894 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016F27: ret 4 */ 4895 RECOMP_REGS_OUT(); 4896 } 4897 4898 void sub_47016F30(void) { 4899 int _fpu_cmp = 0; 4900 uint32_t _cf = 0; 4901 int _df = 1; 4902 uint32_t _flag_k = FK_NONE; 4903 uint32_t _flag_a = 0, _flag_b = 0; 4904 uint32_t _itail_tgt = 0; 4905 RECOMP_REGS_LOCALS 4906 RECOMP_ENTER(0x47016F30u); 4907 4908 L_47016F30: 4909 PUSH32(esp, ecx); /* 0x47016F30: push ecx */ 4910 eax = ecx; /* 0x47016F31: mov eax, ecx */ 4911 ecx = MEM32(esp + 0xC); /* 0x47016F33: mov ecx, dword ptr [esp + 0xc] */ 4912 /* test ecx, ecx */ /* 0x47016F37: test ecx, ecx */ 4913 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4914 _cf = 0; 4915 _flag_k = FK_TEST; 4916 MEM32(esp) = 0; /* 0x47016F39: mov dword ptr [esp], 0 */ 4917 if (TEST_Z(_flag_a, _flag_b)) goto L_47016F6C; /* 0x47016F41: je 0x47016f6c */ 4918 L_47016F43: 4919 MEM32(eax) = 0x470ACE18u; /* 0x47016F43: mov dword ptr [eax], 0x470ace18 */ 4920 MEM32(eax + 0xC) = 0x470ACE10u; /* 0x47016F49: mov dword ptr [eax + 0xc], 0x470ace10 */ 4921 MEM32(eax + 0x4) = 0x470ACC18u; /* 0x47016F50: mov dword ptr [eax + 4], 0x470acc18 */ 4922 ecx = MEM32(eax + 0xC); /* 0x47016F57: mov ecx, dword ptr [eax + 0xc] */ 4923 MEM32(eax + 0x8) = 0x470ACD10u; /* 0x47016F5A: mov dword ptr [eax + 8], 0x470acd10 */ 4924 edx = MEM32(ecx + 0x4); /* 0x47016F61: mov edx, dword ptr [ecx + 4] */ 4925 MEM32(edx + eax + 0xC) = 0x470ACCDCu; /* 0x47016F64: mov dword ptr [edx + eax + 0xc], 0x470accdc */ 4926 L_47016F6C: 4927 ecx = MEM32(eax); /* 0x47016F6C: mov ecx, dword ptr [eax] */ 4928 edx = MEM32(ecx + 0x4); /* 0x47016F6E: mov edx, dword ptr [ecx + 4] */ 4929 MEM32(edx + eax) = 0x470ACDDCu; /* 0x47016F71: mov dword ptr [edx + eax], 0x470acddc */ 4930 ecx = MEM32(eax); /* 0x47016F78: mov ecx, dword ptr [eax] */ 4931 edx = MEM32(ecx + 0x8); /* 0x47016F7A: mov edx, dword ptr [ecx + 8] */ 4932 MEM32(edx + eax) = 0x470ACDD0u; /* 0x47016F7D: mov dword ptr [edx + eax], 0x470acdd0 */ 4933 ecx = POP32_VAL(esp); /* 0x47016F84: pop ecx */ 4934 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47016F85: ret 8 */ 4935 RECOMP_REGS_OUT(); 4936 } 4937 4938 void sub_47016F90(void) { 4939 int _fpu_cmp = 0; 4940 uint32_t _cf = 0; 4941 int _df = 1; 4942 uint32_t _flag_k = FK_NONE; 4943 uint32_t _flag_a = 0, _flag_b = 0; 4944 uint32_t _itail_tgt = 0; 4945 RECOMP_REGS_LOCALS 4946 RECOMP_ENTER(0x47016F90u); 4947 4948 L_47016F90: 4949 PUSH32(esp, esi); /* 0x47016F90: push esi */ 4950 esi = ecx; /* 0x47016F91: mov esi, ecx */ 4951 PUSH32(esp, edi); /* 0x47016F93: push edi */ 4952 edi = esi + 0x4; /* 0x47016F94: lea edi, [esi + 4] */ 4953 ecx = edi; /* 0x47016F97: mov ecx, edi */ 4954 RECOMP_ICALL(0x47018860u); /* 0x47016F99: call 0x47018860 */ /* not lifted */ 4955 RECOMP_FLAGS_IN(); 4956 ecx = esi + 0x10; /* 0x47016F9E: lea ecx, [esi + 0x10] */ 4957 RECOMP_ICALL(0x470187C0u); /* 0x47016FA1: call 0x470187c0 */ /* not lifted */ 4958 RECOMP_FLAGS_IN(); 4959 ecx = edi; /* 0x47016FA6: mov ecx, edi */ 4960 RECOMP_ICALL(0x47018740u); /* 0x47016FA8: call 0x47018740 */ /* not lifted */ 4961 RECOMP_FLAGS_IN(); 4962 edi = POP32_VAL(esp); /* 0x47016FAD: pop edi */ 4963 esi = POP32_VAL(esp); /* 0x47016FAE: pop esi */ 4964 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47016FAF: ret */ 4965 RECOMP_REGS_OUT(); 4966 } 4967 4968 void sub_47016FB0(void) { 4969 int _fpu_cmp = 0; 4970 uint32_t _cf = 0; 4971 int _df = 1; 4972 uint32_t _flag_k = FK_NONE; 4973 uint32_t _flag_a = 0, _flag_b = 0; 4974 uint32_t _itail_tgt = 0; 4975 RECOMP_REGS_LOCALS 4976 RECOMP_ENTER(0x47016FB0u); 4977 4978 L_47016FB0: 4979 PUSH32(esp, ebx); /* 0x47016FB0: push ebx */ 4980 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47016FB1: mov bl, byte ptr [esp + 8] */ 4981 /* test LO8(ebx), 2 */ /* 0x47016FB5: test bl, 2 */ 4982 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 4983 _cf = 0; 4984 _flag_k = FK_NARROW(FK_TEST, 24); 4985 PUSH32(esp, esi); /* 0x47016FB8: push esi */ 4986 if (TEST_Z(_flag_a, _flag_b)) goto L_47016FE7; /* 0x47016FB9: je 0x47016fe7 */ 4987 L_47016FBB: 4988 eax = MEM32(ecx + (-0x8)); /* 0x47016FBB: mov eax, dword ptr [ecx - 8] */ 4989 esi = ecx + (-0x8); /* 0x47016FBE: lea esi, [ecx - 8] */ 4990 PUSH32(esp, 0x47016F90u); /* 0x47016FC1: push 0x47016f90 */ 4991 PUSH32(esp, eax); /* 0x47016FC6: push eax */ 4992 PUSH32(esp, 0x10u); /* 0x47016FC7: push 0x10 */ 4993 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu); 4994 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4995 ecx = ecx + 0xFFFFFFFCu; /* 0x47016FC9: add ecx, -4 */ 4996 _flag_k = FK_ADD; 4997 PUSH32(esp, ecx); /* 0x47016FCC: push ecx */ 4998 RECOMP_ICALL(0x470A32EBu); /* 0x47016FCD: call 0x470a32eb */ /* not lifted */ 4999 RECOMP_FLAGS_IN(); 5000 /* test LO8(ebx), 1 */ /* 0x47016FD2: test bl, 1 */ 5001 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5002 _cf = 0; 5003 _flag_k = FK_NARROW(FK_TEST, 24); 5004 if (TEST_Z(_flag_a, _flag_b)) goto L_47017013; /* 0x47016FD5: je 0x47017013 */ 5005 L_47016FD7: 5006 PUSH32(esp, esi); /* 0x47016FD7: push esi */ 5007 RECOMP_ICALL(0x470A32A2u); /* 0x47016FD8: call 0x470a32a2 */ /* not lifted */ 5008 RECOMP_FLAGS_IN(); 5009 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5010 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5011 esp = esp + 4; /* 0x47016FDD: add esp, 4 */ 5012 _flag_k = FK_ADD; 5013 eax = esi; /* 0x47016FE0: mov eax, esi */ 5014 esi = POP32_VAL(esp); /* 0x47016FE2: pop esi */ 5015 ebx = POP32_VAL(esp); /* 0x47016FE3: pop ebx */ 5016 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47016FE4: ret 4 */ 5017 L_47016FE7: 5018 esi = ecx + (-0x4); /* 0x47016FE7: lea esi, [ecx - 4] */ 5019 PUSH32(esp, edi); /* 0x47016FEA: push edi */ 5020 edi = esi + 0x4; /* 0x47016FEB: lea edi, [esi + 4] */ 5021 ecx = edi; /* 0x47016FEE: mov ecx, edi */ 5022 RECOMP_ICALL(0x47018860u); /* 0x47016FF0: call 0x47018860 */ /* not lifted */ 5023 RECOMP_FLAGS_IN(); 5024 ecx = esi + 0x10; /* 0x47016FF5: lea ecx, [esi + 0x10] */ 5025 RECOMP_ICALL(0x470187C0u); /* 0x47016FF8: call 0x470187c0 */ /* not lifted */ 5026 RECOMP_FLAGS_IN(); 5027 ecx = edi; /* 0x47016FFD: mov ecx, edi */ 5028 RECOMP_ICALL(0x47018740u); /* 0x47016FFF: call 0x47018740 */ /* not lifted */ 5029 RECOMP_FLAGS_IN(); 5030 /* test LO8(ebx), 1 */ /* 0x47017004: test bl, 1 */ 5031 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5032 _cf = 0; 5033 _flag_k = FK_NARROW(FK_TEST, 24); 5034 edi = POP32_VAL(esp); /* 0x47017007: pop edi */ 5035 if (TEST_Z(_flag_a, _flag_b)) goto L_47017013; /* 0x47017008: je 0x47017013 */ 5036 L_4701700A: 5037 PUSH32(esp, esi); /* 0x4701700A: push esi */ 5038 RECOMP_ICALL(0x470A32A2u); /* 0x4701700B: call 0x470a32a2 */ /* not lifted */ 5039 RECOMP_FLAGS_IN(); 5040 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5041 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5042 esp = esp + 4; /* 0x47017010: add esp, 4 */ 5043 _flag_k = FK_ADD; 5044 L_47017013: 5045 eax = esi; /* 0x47017013: mov eax, esi */ 5046 esi = POP32_VAL(esp); /* 0x47017015: pop esi */ 5047 ebx = POP32_VAL(esp); /* 0x47017016: pop ebx */ 5048 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017017: ret 4 */ 5049 RECOMP_REGS_OUT(); 5050 } 5051 5052 void sub_47017020(void) { 5053 int _fpu_cmp = 0; 5054 uint32_t _cf = 0; 5055 int _df = 1; 5056 uint32_t _flag_k = FK_NONE; 5057 uint32_t _flag_a = 0, _flag_b = 0; 5058 uint32_t _itail_tgt = 0; 5059 RECOMP_REGS_LOCALS 5060 RECOMP_ENTER(0x47017020u); 5061 5062 L_47017020: 5063 PUSH32(esp, ecx); /* 0x47017020: push ecx */ 5064 eax = ecx; /* 0x47017021: mov eax, ecx */ 5065 ecx = MEM32(esp + 0xC); /* 0x47017023: mov ecx, dword ptr [esp + 0xc] */ 5066 /* test ecx, ecx */ /* 0x47017027: test ecx, ecx */ 5067 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5068 _cf = 0; 5069 _flag_k = FK_TEST; 5070 MEM32(esp) = 0; /* 0x47017029: mov dword ptr [esp], 0 */ 5071 if (TEST_Z(_flag_a, _flag_b)) goto L_47017041; /* 0x47017031: je 0x47017041 */ 5072 L_47017033: 5073 MEM32(eax + 0x4) = 0x470ACE38u; /* 0x47017033: mov dword ptr [eax + 4], 0x470ace38 */ 5074 MEM32(eax + 0x8) = 0x470ACC4Cu; /* 0x4701703A: mov dword ptr [eax + 8], 0x470acc4c */ 5075 L_47017041: 5076 ecx = MEM32(eax + 0x4); /* 0x47017041: mov ecx, dword ptr [eax + 4] */ 5077 MEM32(eax) = 0x470ACE34u; /* 0x47017044: mov dword ptr [eax], 0x470ace34 */ 5078 edx = MEM32(ecx + 0x4); /* 0x4701704A: mov edx, dword ptr [ecx + 4] */ 5079 MEM32(edx + eax + 0x4) = 0x470ACE24u; /* 0x4701704D: mov dword ptr [edx + eax + 4], 0x470ace24 */ 5080 ecx = POP32_VAL(esp); /* 0x47017055: pop ecx */ 5081 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47017056: ret 8 */ 5082 RECOMP_REGS_OUT(); 5083 } 5084 5085 void sub_47017060(void) { 5086 int _fpu_cmp = 0; 5087 uint32_t _cf = 0; 5088 int _df = 1; 5089 uint32_t _flag_k = FK_NONE; 5090 uint32_t _flag_a = 0, _flag_b = 0; 5091 uint32_t _itail_tgt = 0; 5092 RECOMP_REGS_LOCALS 5093 RECOMP_ENTER(0x47017060u); 5094 5095 L_47017060: 5096 PUSH32(esp, esi); /* 0x47017060: push esi */ 5097 esi = ecx + 0x8; /* 0x47017061: lea esi, [ecx + 8] */ 5098 ecx = esi; /* 0x47017064: mov ecx, esi */ 5099 RECOMP_ICALL(0x470188A0u); /* 0x47017066: call 0x470188a0 */ /* not lifted */ 5100 RECOMP_FLAGS_IN(); 5101 ecx = esi; /* 0x4701706B: mov ecx, esi */ 5102 RECOMP_ICALL(0x47018750u); /* 0x4701706D: call 0x47018750 */ /* not lifted */ 5103 RECOMP_FLAGS_IN(); 5104 esi = POP32_VAL(esp); /* 0x47017072: pop esi */ 5105 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017073: ret */ 5106 RECOMP_REGS_OUT(); 5107 } 5108 5109 void sub_47017080(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(0x47017080u); 5118 5119 L_47017080: 5120 PUSH32(esp, ebx); /* 0x47017080: push ebx */ 5121 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47017081: mov bl, byte ptr [esp + 8] */ 5122 /* test LO8(ebx), 2 */ /* 0x47017085: test bl, 2 */ 5123 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 5124 _cf = 0; 5125 _flag_k = FK_NARROW(FK_TEST, 24); 5126 PUSH32(esp, esi); /* 0x47017088: push esi */ 5127 if (TEST_Z(_flag_a, _flag_b)) goto L_470170B7; /* 0x47017089: je 0x470170b7 */ 5128 L_4701708B: 5129 eax = MEM32(ecx + (-0xC)); /* 0x4701708B: mov eax, dword ptr [ecx - 0xc] */ 5130 esi = ecx + (-0xC); /* 0x4701708E: lea esi, [ecx - 0xc] */ 5131 PUSH32(esp, 0x47017060u); /* 0x47017091: push 0x47017060 */ 5132 PUSH32(esp, eax); /* 0x47017096: push eax */ 5133 PUSH32(esp, 0xCu); /* 0x47017097: push 0xc */ 5134 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u); 5135 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5136 ecx = ecx + 0xFFFFFFF8u; /* 0x47017099: add ecx, -8 */ 5137 _flag_k = FK_ADD; 5138 PUSH32(esp, ecx); /* 0x4701709C: push ecx */ 5139 RECOMP_ICALL(0x470A32EBu); /* 0x4701709D: call 0x470a32eb */ /* not lifted */ 5140 RECOMP_FLAGS_IN(); 5141 /* test LO8(ebx), 1 */ /* 0x470170A2: test bl, 1 */ 5142 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5143 _cf = 0; 5144 _flag_k = FK_NARROW(FK_TEST, 24); 5145 if (TEST_Z(_flag_a, _flag_b)) goto L_470170B0; /* 0x470170A5: je 0x470170b0 */ 5146 L_470170A7: 5147 PUSH32(esp, esi); /* 0x470170A7: push esi */ 5148 RECOMP_ICALL(0x470A32A2u); /* 0x470170A8: call 0x470a32a2 */ /* not lifted */ 5149 RECOMP_FLAGS_IN(); 5150 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5151 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5152 esp = esp + 4; /* 0x470170AD: add esp, 4 */ 5153 _flag_k = FK_ADD; 5154 L_470170B0: 5155 eax = esi; /* 0x470170B0: mov eax, esi */ 5156 esi = POP32_VAL(esp); /* 0x470170B2: pop esi */ 5157 ebx = POP32_VAL(esp); /* 0x470170B3: pop ebx */ 5158 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470170B4: ret 4 */ 5159 L_470170B7: 5160 PUSH32(esp, edi); /* 0x470170B7: push edi */ 5161 edi = ecx + (-0x8); /* 0x470170B8: lea edi, [ecx - 8] */ 5162 esi = edi + 0x8; /* 0x470170BB: lea esi, [edi + 8] */ 5163 ecx = esi; /* 0x470170BE: mov ecx, esi */ 5164 RECOMP_ICALL(0x470188A0u); /* 0x470170C0: call 0x470188a0 */ /* not lifted */ 5165 RECOMP_FLAGS_IN(); 5166 ecx = esi; /* 0x470170C5: mov ecx, esi */ 5167 RECOMP_ICALL(0x47018750u); /* 0x470170C7: call 0x47018750 */ /* not lifted */ 5168 RECOMP_FLAGS_IN(); 5169 /* test LO8(ebx), 1 */ /* 0x470170CC: test bl, 1 */ 5170 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5171 _cf = 0; 5172 _flag_k = FK_NARROW(FK_TEST, 24); 5173 if (TEST_Z(_flag_a, _flag_b)) goto L_470170DA; /* 0x470170CF: je 0x470170da */ 5174 L_470170D1: 5175 PUSH32(esp, edi); /* 0x470170D1: push edi */ 5176 RECOMP_ICALL(0x470A32A2u); /* 0x470170D2: call 0x470a32a2 */ /* not lifted */ 5177 RECOMP_FLAGS_IN(); 5178 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5180 esp = esp + 4; /* 0x470170D7: add esp, 4 */ 5181 _flag_k = FK_ADD; 5182 L_470170DA: 5183 eax = edi; /* 0x470170DA: mov eax, edi */ 5184 edi = POP32_VAL(esp); /* 0x470170DC: pop edi */ 5185 esi = POP32_VAL(esp); /* 0x470170DD: pop esi */ 5186 ebx = POP32_VAL(esp); /* 0x470170DE: pop ebx */ 5187 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470170DF: ret 4 */ 5188 RECOMP_REGS_OUT(); 5189 } 5190 5191 void sub_470170F0(void) { 5192 int _fpu_cmp = 0; 5193 uint32_t _cf = 0; 5194 int _df = 1; 5195 uint32_t _flag_k = FK_NONE; 5196 uint32_t _flag_a = 0, _flag_b = 0; 5197 uint32_t _itail_tgt = 0; 5198 RECOMP_REGS_LOCALS 5199 RECOMP_ENTER(0x470170F0u); 5200 5201 L_470170F0: 5202 PUSH32(esp, ecx); /* 0x470170F0: push ecx */ 5203 eax = ecx; /* 0x470170F1: mov eax, ecx */ 5204 ecx = MEM32(esp + 0xC); /* 0x470170F3: mov ecx, dword ptr [esp + 0xc] */ 5205 /* test ecx, ecx */ /* 0x470170F7: test ecx, ecx */ 5206 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5207 _cf = 0; 5208 _flag_k = FK_TEST; 5209 MEM32(esp) = 0; /* 0x470170F9: mov dword ptr [esp], 0 */ 5210 if (TEST_Z(_flag_a, _flag_b)) goto L_47017111; /* 0x47017101: je 0x47017111 */ 5211 L_47017103: 5212 MEM32(eax + 0x4) = 0x470ACE84u; /* 0x47017103: mov dword ptr [eax + 4], 0x470ace84 */ 5213 MEM32(eax + 0x8) = 0x470ACC18u; /* 0x4701710A: mov dword ptr [eax + 8], 0x470acc18 */ 5214 L_47017111: 5215 ecx = MEM32(eax + 0x4); /* 0x47017111: mov ecx, dword ptr [eax + 4] */ 5216 MEM32(eax) = 0x470ACE74u; /* 0x47017114: mov dword ptr [eax], 0x470ace74 */ 5217 edx = MEM32(ecx + 0x4); /* 0x4701711A: mov edx, dword ptr [ecx + 4] */ 5218 MEM32(edx + eax + 0x4) = 0x470ACE40u; /* 0x4701711D: mov dword ptr [edx + eax + 4], 0x470ace40 */ 5219 ecx = POP32_VAL(esp); /* 0x47017125: pop ecx */ 5220 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47017126: ret 8 */ 5221 RECOMP_REGS_OUT(); 5222 } 5223 5224 void sub_47017130(void) { 5225 int _fpu_cmp = 0; 5226 uint32_t _cf = 0; 5227 int _df = 1; 5228 uint32_t _flag_k = FK_NONE; 5229 uint32_t _flag_a = 0, _flag_b = 0; 5230 uint32_t _itail_tgt = 0; 5231 RECOMP_REGS_LOCALS 5232 RECOMP_ENTER(0x47017130u); 5233 5234 L_47017130: 5235 PUSH32(esp, esi); /* 0x47017130: push esi */ 5236 esi = ecx + 0x8; /* 0x47017131: lea esi, [ecx + 8] */ 5237 ecx = esi; /* 0x47017134: mov ecx, esi */ 5238 RECOMP_ICALL(0x47018880u); /* 0x47017136: call 0x47018880 */ /* not lifted */ 5239 RECOMP_FLAGS_IN(); 5240 ecx = esi; /* 0x4701713B: mov ecx, esi */ 5241 RECOMP_ICALL(0x47018740u); /* 0x4701713D: call 0x47018740 */ /* not lifted */ 5242 RECOMP_FLAGS_IN(); 5243 esi = POP32_VAL(esp); /* 0x47017142: pop esi */ 5244 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017143: ret */ 5245 RECOMP_REGS_OUT(); 5246 } 5247 5248 void sub_47017150(void) { 5249 int _fpu_cmp = 0; 5250 uint32_t _cf = 0; 5251 int _df = 1; 5252 uint32_t _flag_k = FK_NONE; 5253 uint32_t _flag_a = 0, _flag_b = 0; 5254 uint32_t _itail_tgt = 0; 5255 RECOMP_REGS_LOCALS 5256 RECOMP_ENTER(0x47017150u); 5257 5258 L_47017150: 5259 PUSH32(esp, ebx); /* 0x47017150: push ebx */ 5260 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47017151: mov bl, byte ptr [esp + 8] */ 5261 /* test LO8(ebx), 2 */ /* 0x47017155: test bl, 2 */ 5262 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 5263 _cf = 0; 5264 _flag_k = FK_NARROW(FK_TEST, 24); 5265 PUSH32(esp, esi); /* 0x47017158: push esi */ 5266 if (TEST_Z(_flag_a, _flag_b)) goto L_47017187; /* 0x47017159: je 0x47017187 */ 5267 L_4701715B: 5268 eax = MEM32(ecx + (-0xC)); /* 0x4701715B: mov eax, dword ptr [ecx - 0xc] */ 5269 esi = ecx + (-0xC); /* 0x4701715E: lea esi, [ecx - 0xc] */ 5270 PUSH32(esp, 0x47017130u); /* 0x47017161: push 0x47017130 */ 5271 PUSH32(esp, eax); /* 0x47017166: push eax */ 5272 PUSH32(esp, 0xCu); /* 0x47017167: push 0xc */ 5273 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u); 5274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5275 ecx = ecx + 0xFFFFFFF8u; /* 0x47017169: add ecx, -8 */ 5276 _flag_k = FK_ADD; 5277 PUSH32(esp, ecx); /* 0x4701716C: push ecx */ 5278 RECOMP_ICALL(0x470A32EBu); /* 0x4701716D: call 0x470a32eb */ /* not lifted */ 5279 RECOMP_FLAGS_IN(); 5280 /* test LO8(ebx), 1 */ /* 0x47017172: test bl, 1 */ 5281 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5282 _cf = 0; 5283 _flag_k = FK_NARROW(FK_TEST, 24); 5284 if (TEST_Z(_flag_a, _flag_b)) goto L_47017180; /* 0x47017175: je 0x47017180 */ 5285 L_47017177: 5286 PUSH32(esp, esi); /* 0x47017177: push esi */ 5287 RECOMP_ICALL(0x470A32A2u); /* 0x47017178: call 0x470a32a2 */ /* not lifted */ 5288 RECOMP_FLAGS_IN(); 5289 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5291 esp = esp + 4; /* 0x4701717D: add esp, 4 */ 5292 _flag_k = FK_ADD; 5293 L_47017180: 5294 eax = esi; /* 0x47017180: mov eax, esi */ 5295 esi = POP32_VAL(esp); /* 0x47017182: pop esi */ 5296 ebx = POP32_VAL(esp); /* 0x47017183: pop ebx */ 5297 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017184: ret 4 */ 5298 L_47017187: 5299 PUSH32(esp, edi); /* 0x47017187: push edi */ 5300 edi = ecx + (-0x8); /* 0x47017188: lea edi, [ecx - 8] */ 5301 esi = edi + 0x8; /* 0x4701718B: lea esi, [edi + 8] */ 5302 ecx = esi; /* 0x4701718E: mov ecx, esi */ 5303 RECOMP_ICALL(0x47018880u); /* 0x47017190: call 0x47018880 */ /* not lifted */ 5304 RECOMP_FLAGS_IN(); 5305 ecx = esi; /* 0x47017195: mov ecx, esi */ 5306 RECOMP_ICALL(0x47018740u); /* 0x47017197: call 0x47018740 */ /* not lifted */ 5307 RECOMP_FLAGS_IN(); 5308 /* test LO8(ebx), 1 */ /* 0x4701719C: test bl, 1 */ 5309 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5310 _cf = 0; 5311 _flag_k = FK_NARROW(FK_TEST, 24); 5312 if (TEST_Z(_flag_a, _flag_b)) goto L_470171AA; /* 0x4701719F: je 0x470171aa */ 5313 L_470171A1: 5314 PUSH32(esp, edi); /* 0x470171A1: push edi */ 5315 RECOMP_ICALL(0x470A32A2u); /* 0x470171A2: call 0x470a32a2 */ /* not lifted */ 5316 RECOMP_FLAGS_IN(); 5317 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5319 esp = esp + 4; /* 0x470171A7: add esp, 4 */ 5320 _flag_k = FK_ADD; 5321 L_470171AA: 5322 eax = edi; /* 0x470171AA: mov eax, edi */ 5323 edi = POP32_VAL(esp); /* 0x470171AC: pop edi */ 5324 esi = POP32_VAL(esp); /* 0x470171AD: pop esi */ 5325 ebx = POP32_VAL(esp); /* 0x470171AE: pop ebx */ 5326 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470171AF: ret 4 */ 5327 RECOMP_REGS_OUT(); 5328 } 5329 5330 void sub_470171C0(void) { 5331 int _fpu_cmp = 0; 5332 uint32_t _cf = 0; 5333 int _df = 1; 5334 uint32_t _flag_k = FK_NONE; 5335 uint32_t _flag_a = 0, _flag_b = 0; 5336 uint32_t _itail_tgt = 0; 5337 RECOMP_REGS_LOCALS 5338 RECOMP_ENTER(0x470171C0u); 5339 5340 L_470171C0: 5341 PUSH32(esp, ecx); /* 0x470171C0: push ecx */ 5342 eax = ecx; /* 0x470171C1: mov eax, ecx */ 5343 ecx = MEM32(esp + 0xC); /* 0x470171C3: mov ecx, dword ptr [esp + 0xc] */ 5344 /* test ecx, ecx */ /* 0x470171C7: test ecx, ecx */ 5345 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5346 _cf = 0; 5347 _flag_k = FK_TEST; 5348 MEM32(esp) = 0; /* 0x470171C9: mov dword ptr [esp], 0 */ 5349 if (TEST_Z(_flag_a, _flag_b)) goto L_470171E1; /* 0x470171D1: je 0x470171e1 */ 5350 L_470171D3: 5351 MEM32(eax + 0x4) = 0x470ACED8u; /* 0x470171D3: mov dword ptr [eax + 4], 0x470aced8 */ 5352 MEM32(eax + 0x8) = 0x470ACC18u; /* 0x470171DA: mov dword ptr [eax + 8], 0x470acc18 */ 5353 L_470171E1: 5354 ecx = MEM32(eax + 0x4); /* 0x470171E1: mov ecx, dword ptr [eax + 4] */ 5355 MEM32(eax) = 0x470ACEC0u; /* 0x470171E4: mov dword ptr [eax], 0x470acec0 */ 5356 edx = MEM32(ecx + 0x4); /* 0x470171EA: mov edx, dword ptr [ecx + 4] */ 5357 MEM32(edx + eax + 0x4) = 0x470ACE8Cu; /* 0x470171ED: mov dword ptr [edx + eax + 4], 0x470ace8c */ 5358 ecx = POP32_VAL(esp); /* 0x470171F5: pop ecx */ 5359 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470171F6: ret 8 */ 5360 RECOMP_REGS_OUT(); 5361 } 5362 5363 void sub_47017200(void) { 5364 int _fpu_cmp = 0; 5365 uint32_t _cf = 0; 5366 int _df = 1; 5367 uint32_t _flag_k = FK_NONE; 5368 uint32_t _flag_a = 0, _flag_b = 0; 5369 uint32_t _itail_tgt = 0; 5370 RECOMP_REGS_LOCALS 5371 RECOMP_ENTER(0x47017200u); 5372 5373 L_47017200: 5374 PUSH32(esp, esi); /* 0x47017200: push esi */ 5375 esi = ecx + 0x8; /* 0x47017201: lea esi, [ecx + 8] */ 5376 ecx = esi; /* 0x47017204: mov ecx, esi */ 5377 RECOMP_ICALL(0x47018920u); /* 0x47017206: call 0x47018920 */ /* not lifted */ 5378 RECOMP_FLAGS_IN(); 5379 ecx = esi; /* 0x4701720B: mov ecx, esi */ 5380 RECOMP_ICALL(0x47018740u); /* 0x4701720D: call 0x47018740 */ /* not lifted */ 5381 RECOMP_FLAGS_IN(); 5382 esi = POP32_VAL(esp); /* 0x47017212: pop esi */ 5383 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017213: ret */ 5384 RECOMP_REGS_OUT(); 5385 } 5386 5387 void sub_47017220(void) { 5388 int _fpu_cmp = 0; 5389 uint32_t _cf = 0; 5390 int _df = 1; 5391 uint32_t _flag_k = FK_NONE; 5392 uint32_t _flag_a = 0, _flag_b = 0; 5393 uint32_t _itail_tgt = 0; 5394 RECOMP_REGS_LOCALS 5395 RECOMP_ENTER(0x47017220u); 5396 5397 L_47017220: 5398 PUSH32(esp, ebx); /* 0x47017220: push ebx */ 5399 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47017221: mov bl, byte ptr [esp + 8] */ 5400 /* test LO8(ebx), 2 */ /* 0x47017225: test bl, 2 */ 5401 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 5402 _cf = 0; 5403 _flag_k = FK_NARROW(FK_TEST, 24); 5404 PUSH32(esp, esi); /* 0x47017228: push esi */ 5405 if (TEST_Z(_flag_a, _flag_b)) goto L_47017257; /* 0x47017229: je 0x47017257 */ 5406 L_4701722B: 5407 eax = MEM32(ecx + (-0xC)); /* 0x4701722B: mov eax, dword ptr [ecx - 0xc] */ 5408 esi = ecx + (-0xC); /* 0x4701722E: lea esi, [ecx - 0xc] */ 5409 PUSH32(esp, 0x47017200u); /* 0x47017231: push 0x47017200 */ 5410 PUSH32(esp, eax); /* 0x47017236: push eax */ 5411 PUSH32(esp, 0xCu); /* 0x47017237: push 0xc */ 5412 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u); 5413 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5414 ecx = ecx + 0xFFFFFFF8u; /* 0x47017239: add ecx, -8 */ 5415 _flag_k = FK_ADD; 5416 PUSH32(esp, ecx); /* 0x4701723C: push ecx */ 5417 RECOMP_ICALL(0x470A32EBu); /* 0x4701723D: call 0x470a32eb */ /* not lifted */ 5418 RECOMP_FLAGS_IN(); 5419 /* test LO8(ebx), 1 */ /* 0x47017242: test bl, 1 */ 5420 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5421 _cf = 0; 5422 _flag_k = FK_NARROW(FK_TEST, 24); 5423 if (TEST_Z(_flag_a, _flag_b)) goto L_47017250; /* 0x47017245: je 0x47017250 */ 5424 L_47017247: 5425 PUSH32(esp, esi); /* 0x47017247: push esi */ 5426 RECOMP_ICALL(0x470A32A2u); /* 0x47017248: call 0x470a32a2 */ /* not lifted */ 5427 RECOMP_FLAGS_IN(); 5428 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5429 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5430 esp = esp + 4; /* 0x4701724D: add esp, 4 */ 5431 _flag_k = FK_ADD; 5432 L_47017250: 5433 eax = esi; /* 0x47017250: mov eax, esi */ 5434 esi = POP32_VAL(esp); /* 0x47017252: pop esi */ 5435 ebx = POP32_VAL(esp); /* 0x47017253: pop ebx */ 5436 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017254: ret 4 */ 5437 L_47017257: 5438 PUSH32(esp, edi); /* 0x47017257: push edi */ 5439 edi = ecx + (-0x8); /* 0x47017258: lea edi, [ecx - 8] */ 5440 esi = edi + 0x8; /* 0x4701725B: lea esi, [edi + 8] */ 5441 ecx = esi; /* 0x4701725E: mov ecx, esi */ 5442 RECOMP_ICALL(0x47018920u); /* 0x47017260: call 0x47018920 */ /* not lifted */ 5443 RECOMP_FLAGS_IN(); 5444 ecx = esi; /* 0x47017265: mov ecx, esi */ 5445 RECOMP_ICALL(0x47018740u); /* 0x47017267: call 0x47018740 */ /* not lifted */ 5446 RECOMP_FLAGS_IN(); 5447 /* test LO8(ebx), 1 */ /* 0x4701726C: test bl, 1 */ 5448 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 5449 _cf = 0; 5450 _flag_k = FK_NARROW(FK_TEST, 24); 5451 if (TEST_Z(_flag_a, _flag_b)) goto L_4701727A; /* 0x4701726F: je 0x4701727a */ 5452 L_47017271: 5453 PUSH32(esp, edi); /* 0x47017271: push edi */ 5454 RECOMP_ICALL(0x470A32A2u); /* 0x47017272: call 0x470a32a2 */ /* not lifted */ 5455 RECOMP_FLAGS_IN(); 5456 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5458 esp = esp + 4; /* 0x47017277: add esp, 4 */ 5459 _flag_k = FK_ADD; 5460 L_4701727A: 5461 eax = edi; /* 0x4701727A: mov eax, edi */ 5462 edi = POP32_VAL(esp); /* 0x4701727C: pop edi */ 5463 esi = POP32_VAL(esp); /* 0x4701727D: pop esi */ 5464 ebx = POP32_VAL(esp); /* 0x4701727E: pop ebx */ 5465 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701727F: ret 4 */ 5466 RECOMP_REGS_OUT(); 5467 } 5468 5469 void sub_47017290(void) { 5470 int _fpu_cmp = 0; 5471 uint32_t _cf = 0; 5472 int _df = 1; 5473 uint32_t _flag_k = FK_NONE; 5474 uint32_t _flag_a = 0, _flag_b = 0; 5475 uint32_t _itail_tgt = 0; 5476 RECOMP_REGS_LOCALS 5477 RECOMP_ENTER(0x47017290u); 5478 5479 L_47017290: 5480 eax = ecx; /* 0x47017290: mov eax, ecx */ 5481 MEM32(eax) = 0x470ACC18u; /* 0x47017292: mov dword ptr [eax], 0x470acc18 */ 5482 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47017298: ret */ 5483 RECOMP_REGS_OUT(); 5484 } 5485 5486 void sub_470172A0(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(0x470172A0u); 5495 5496 L_470172A0: 5497 eax = ecx; /* 0x470172A0: mov eax, ecx */ 5498 MEM32(eax) = 0x470ACC4Cu; /* 0x470172A2: mov dword ptr [eax], 0x470acc4c */ 5499 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470172A8: ret */ 5500 RECOMP_REGS_OUT(); 5501 } 5502 5503 void sub_470172B0(void) { 5504 int _fpu_cmp = 0; 5505 uint32_t _cf = 0; 5506 int _df = 1; 5507 uint32_t _flag_k = FK_NONE; 5508 uint32_t _flag_a = 0, _flag_b = 0; 5509 uint32_t _itail_tgt = 0; 5510 RECOMP_REGS_LOCALS 5511 RECOMP_ENTER(0x470172B0u); 5512 5513 L_470172B0: 5514 PUSH32(esp, ecx); /* 0x470172B0: push ecx */ 5515 eax = ecx; /* 0x470172B1: mov eax, ecx */ 5516 ecx = MEM32(esp + 0x8); /* 0x470172B3: mov ecx, dword ptr [esp + 8] */ 5517 /* test ecx, ecx */ /* 0x470172B7: test ecx, ecx */ 5518 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5519 _cf = 0; 5520 _flag_k = FK_TEST; 5521 MEM32(esp) = 0; /* 0x470172B9: mov dword ptr [esp], 0 */ 5522 if (TEST_Z(_flag_a, _flag_b)) goto L_470172D1; /* 0x470172C1: je 0x470172d1 */ 5523 L_470172C3: 5524 MEM32(eax + 0x4) = 0x470ACC70u; /* 0x470172C3: mov dword ptr [eax + 4], 0x470acc70 */ 5525 MEM32(eax + 0x8) = 0x470ACC4Cu; /* 0x470172CA: mov dword ptr [eax + 8], 0x470acc4c */ 5526 L_470172D1: 5527 ecx = MEM32(eax + 0x4); /* 0x470172D1: mov ecx, dword ptr [eax + 4] */ 5528 MEM32(eax) = 0x470ACC6Cu; /* 0x470172D4: mov dword ptr [eax], 0x470acc6c */ 5529 edx = MEM32(ecx + 0x4); /* 0x470172DA: mov edx, dword ptr [ecx + 4] */ 5530 MEM32(edx + eax + 0x4) = 0x470ACC5Cu; /* 0x470172DD: mov dword ptr [edx + eax + 4], 0x470acc5c */ 5531 ecx = POP32_VAL(esp); /* 0x470172E5: pop ecx */ 5532 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470172E6: ret 4 */ 5533 RECOMP_REGS_OUT(); 5534 } 5535 5536 void sub_470172F0(void) { 5537 int _fpu_cmp = 0; 5538 uint32_t _cf = 0; 5539 int _df = 1; 5540 uint32_t _flag_k = FK_NONE; 5541 uint32_t _flag_a = 0, _flag_b = 0; 5542 uint32_t _itail_tgt = 0; 5543 RECOMP_REGS_LOCALS 5544 RECOMP_ENTER(0x470172F0u); 5545 5546 L_470172F0: 5547 PUSH32(esp, ecx); /* 0x470172F0: push ecx */ 5548 eax = ecx; /* 0x470172F1: mov eax, ecx */ 5549 ecx = MEM32(esp + 0x8); /* 0x470172F3: mov ecx, dword ptr [esp + 8] */ 5550 /* test ecx, ecx */ /* 0x470172F7: test ecx, ecx */ 5551 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5552 _cf = 0; 5553 _flag_k = FK_TEST; 5554 MEM32(esp) = 0; /* 0x470172F9: mov dword ptr [esp], 0 */ 5555 if (TEST_Z(_flag_a, _flag_b)) goto L_47017311; /* 0x47017301: je 0x47017311 */ 5556 L_47017303: 5557 MEM32(eax + 0x4) = 0x470ACCB8u; /* 0x47017303: mov dword ptr [eax + 4], 0x470accb8 */ 5558 MEM32(eax + 0x8) = 0x470ACC18u; /* 0x4701730A: mov dword ptr [eax + 8], 0x470acc18 */ 5559 L_47017311: 5560 ecx = MEM32(eax + 0x4); /* 0x47017311: mov ecx, dword ptr [eax + 4] */ 5561 MEM32(eax) = 0x470ACCACu; /* 0x47017314: mov dword ptr [eax], 0x470accac */ 5562 edx = MEM32(ecx + 0x4); /* 0x4701731A: mov edx, dword ptr [ecx + 4] */ 5563 MEM32(edx + eax + 0x4) = 0x470ACC78u; /* 0x4701731D: mov dword ptr [edx + eax + 4], 0x470acc78 */ 5564 ecx = POP32_VAL(esp); /* 0x47017325: pop ecx */ 5565 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017326: ret 4 */ 5566 RECOMP_REGS_OUT(); 5567 } 5568 5569 void sub_47017330(void) { 5570 int _fpu_cmp = 0; 5571 uint32_t _cf = 0; 5572 int _df = 1; 5573 uint32_t _flag_k = FK_NONE; 5574 uint32_t _flag_a = 0, _flag_b = 0; 5575 uint32_t _itail_tgt = 0; 5576 RECOMP_REGS_LOCALS 5577 RECOMP_ENTER(0x47017330u); 5578 5579 L_47017330: 5580 PUSH32(esp, ecx); /* 0x47017330: push ecx */ 5581 eax = ecx; /* 0x47017331: mov eax, ecx */ 5582 ecx = MEM32(esp + 0x8); /* 0x47017333: mov ecx, dword ptr [esp + 8] */ 5583 /* test ecx, ecx */ /* 0x47017337: test ecx, ecx */ 5584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5585 _cf = 0; 5586 _flag_k = FK_TEST; 5587 MEM32(esp) = 0; /* 0x47017339: mov dword ptr [esp], 0 */ 5588 if (TEST_Z(_flag_a, _flag_b)) goto L_47017351; /* 0x47017341: je 0x47017351 */ 5589 L_47017343: 5590 MEM32(eax + 0x4) = 0x470ACCD4u; /* 0x47017343: mov dword ptr [eax + 4], 0x470accd4 */ 5591 MEM32(eax + 0x8) = 0x470ACC4Cu; /* 0x4701734A: mov dword ptr [eax + 8], 0x470acc4c */ 5592 L_47017351: 5593 ecx = MEM32(eax + 0x4); /* 0x47017351: mov ecx, dword ptr [eax + 4] */ 5594 MEM32(eax) = 0x470ACCD0u; /* 0x47017354: mov dword ptr [eax], 0x470accd0 */ 5595 edx = MEM32(ecx + 0x4); /* 0x4701735A: mov edx, dword ptr [ecx + 4] */ 5596 MEM32(edx + eax + 0x4) = 0x470ACCC0u; /* 0x4701735D: mov dword ptr [edx + eax + 4], 0x470accc0 */ 5597 ecx = POP32_VAL(esp); /* 0x47017365: pop ecx */ 5598 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017366: ret 4 */ 5599 RECOMP_REGS_OUT(); 5600 } 5601 5602 void sub_47017370(void) { 5603 int _fpu_cmp = 0; 5604 uint32_t _cf = 0; 5605 int _df = 1; 5606 uint32_t _flag_k = FK_NONE; 5607 uint32_t _flag_a = 0, _flag_b = 0; 5608 uint32_t _itail_tgt = 0; 5609 RECOMP_REGS_LOCALS 5610 RECOMP_ENTER(0x47017370u); 5611 5612 L_47017370: 5613 PUSH32(esp, ecx); /* 0x47017370: push ecx */ 5614 eax = ecx; /* 0x47017371: mov eax, ecx */ 5615 ecx = MEM32(esp + 0x8); /* 0x47017373: mov ecx, dword ptr [esp + 8] */ 5616 /* test ecx, ecx */ /* 0x47017377: test ecx, ecx */ 5617 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5618 _cf = 0; 5619 _flag_k = FK_TEST; 5620 MEM32(esp) = 0; /* 0x47017379: mov dword ptr [esp], 0 */ 5621 if (TEST_Z(_flag_a, _flag_b)) goto L_47017391; /* 0x47017381: je 0x47017391 */ 5622 L_47017383: 5623 MEM32(eax + 0x4) = 0x470ACD1Cu; /* 0x47017383: mov dword ptr [eax + 4], 0x470acd1c */ 5624 MEM32(eax + 0x8) = 0x470ACC18u; /* 0x4701738A: mov dword ptr [eax + 8], 0x470acc18 */ 5625 L_47017391: 5626 ecx = MEM32(eax + 0x4); /* 0x47017391: mov ecx, dword ptr [eax + 4] */ 5627 MEM32(eax) = 0x470ACD10u; /* 0x47017394: mov dword ptr [eax], 0x470acd10 */ 5628 edx = MEM32(ecx + 0x4); /* 0x4701739A: mov edx, dword ptr [ecx + 4] */ 5629 MEM32(edx + eax + 0x4) = 0x470ACCDCu; /* 0x4701739D: mov dword ptr [edx + eax + 4], 0x470accdc */ 5630 ecx = POP32_VAL(esp); /* 0x470173A5: pop ecx */ 5631 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470173A6: ret 4 */ 5632 RECOMP_REGS_OUT(); 5633 } 5634 5635 void sub_470173B0(void) { 5636 int _fpu_cmp = 0; 5637 uint32_t _cf = 0; 5638 int _df = 1; 5639 uint32_t _flag_k = FK_NONE; 5640 uint32_t _flag_a = 0, _flag_b = 0; 5641 uint32_t _itail_tgt = 0; 5642 RECOMP_REGS_LOCALS 5643 RECOMP_ENTER(0x470173B0u); 5644 5645 L_470173B0: 5646 PUSH32(esp, ecx); /* 0x470173B0: push ecx */ 5647 eax = ecx; /* 0x470173B1: mov eax, ecx */ 5648 ecx = MEM32(esp + 0x8); /* 0x470173B3: mov ecx, dword ptr [esp + 8] */ 5649 /* test ecx, ecx */ /* 0x470173B7: test ecx, ecx */ 5650 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5651 _cf = 0; 5652 _flag_k = FK_TEST; 5653 MEM32(esp) = 0; /* 0x470173B9: mov dword ptr [esp], 0 */ 5654 if (TEST_Z(_flag_a, _flag_b)) goto L_470173ED; /* 0x470173C1: je 0x470173ed */ 5655 L_470173C3: 5656 MEM32(eax + 0x4) = 0x470ACD44u; /* 0x470173C3: mov dword ptr [eax + 4], 0x470acd44 */ 5657 MEM32(eax + 0x10) = 0x470ACD3Cu; /* 0x470173CA: mov dword ptr [eax + 0x10], 0x470acd3c */ 5658 MEM32(eax + 0x8) = 0x470ACC4Cu; /* 0x470173D1: mov dword ptr [eax + 8], 0x470acc4c */ 5659 ecx = MEM32(eax + 0x10); /* 0x470173D8: mov ecx, dword ptr [eax + 0x10] */ 5660 MEM32(eax + 0xC) = 0x470ACC6Cu; /* 0x470173DB: mov dword ptr [eax + 0xc], 0x470acc6c */ 5661 edx = MEM32(ecx + 0x4); /* 0x470173E2: mov edx, dword ptr [ecx + 4] */ 5662 MEM32(edx + eax + 0x10) = 0x470ACC5Cu; /* 0x470173E5: mov dword ptr [edx + eax + 0x10], 0x470acc5c */ 5663 L_470173ED: 5664 ecx = MEM32(eax + 0x4); /* 0x470173ED: mov ecx, dword ptr [eax + 4] */ 5665 MEM32(eax) = 0x470ACD38u; /* 0x470173F0: mov dword ptr [eax], 0x470acd38 */ 5666 edx = MEM32(ecx + 0x4); /* 0x470173F6: mov edx, dword ptr [ecx + 4] */ 5667 MEM32(edx + eax + 0x4) = 0x470ACD28u; /* 0x470173F9: mov dword ptr [edx + eax + 4], 0x470acd28 */ 5668 ecx = MEM32(eax + 0x4); /* 0x47017401: mov ecx, dword ptr [eax + 4] */ 5669 edx = MEM32(ecx + 0x8); /* 0x47017404: mov edx, dword ptr [ecx + 8] */ 5670 MEM32(edx + eax + 0x4) = 0x470ACD24u; /* 0x47017407: mov dword ptr [edx + eax + 4], 0x470acd24 */ 5671 ecx = POP32_VAL(esp); /* 0x4701740F: pop ecx */ 5672 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47017410: ret 4 */ 5673 RECOMP_REGS_OUT(); 5674 }