client/vendor/msvcp60/source/lifted-0014.c (179067B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_4600E234(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(0x4600E234u); 13 14 L_4600E234: 15 eax = MEM32(ecx + 0xC); /* 0x4600E234: mov eax, dword ptr [ecx + 0xc] */ 16 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1C0u); 17 eax = eax & 0x1C0u; /* 0x4600E237: and eax, 0x1c0 */ 18 _cf = 0; 19 _flag_k = FK_TEST; 20 /* cmp eax, 0x40u */ /* 0x4600E23C: cmp eax, 0x40 */ 21 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x40u); 22 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23 _flag_k = FK_CMP; 24 if (CMP_EQ(_flag_a, _flag_b)) goto L_4600E368; /* 0x4600E23F: je 0x4600e368 */ 25 L_4600E245: 26 /* cmp eax, 0x100u */ /* 0x4600E245: cmp eax, 0x100 */ 27 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x100u); 28 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29 _flag_k = FK_CMP; 30 if (CMP_EQ(_flag_a, _flag_b)) goto L_4600E306; /* 0x4600E24A: je 0x4600e306 */ 31 L_4600E250: 32 eax = MEM32(ebp + 0xC); /* 0x4600E250: mov eax, dword ptr [ebp + 0xc] */ 33 esi = MEM32(ebp + (-0x14)); /* 0x4600E253: mov esi, dword ptr [ebp - 0x14] */ 34 MEM32(ebp + (-0x1C)) = eax; /* 0x4600E256: mov dword ptr [ebp - 0x1c], eax */ 35 eax = MEM32(ebp + 0x10); /* 0x4600E259: mov eax, dword ptr [ebp + 0x10] */ 36 /* test esi, esi */ /* 0x4600E25C: test esi, esi */ 37 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 38 _cf = 0; 39 _flag_k = FK_TEST; 40 MEM32(ebp + (-0x18)) = eax; /* 0x4600E25E: mov dword ptr [ebp - 0x18], eax */ 41 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E271; /* 0x4600E261: jbe 0x4600e271 */ 42 L_4600E263: 43 PUSH32(esp, MEM32(ebp + 0x18)); /* 0x4600E263: push dword ptr [ebp + 0x18] */ 44 ecx = ebp + (-0x1C); /* 0x4600E266: lea ecx, [ebp - 0x1c] */ 45 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E269: call 0x4601c3a2 */ /* not lifted */ 46 RECOMP_FLAGS_IN(); 47 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 48 esi = esi - 1; /* 0x4600E26E: dec esi */ 49 _flag_k = FK_DEC; 50 RECOMP_BACKEDGE(); 51 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E263; /* 0x4600E26F: jne 0x4600e263 */ 52 L_4600E271: 53 esi = MEM32(ebp + (-0x1C)); /* 0x4600E271: mov esi, dword ptr [ebp - 0x1c] */ 54 ebx = MEM32(ebp + (-0x18)); /* 0x4600E274: mov ebx, dword ptr [ebp - 0x18] */ 55 L_4600E277: 56 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(0); 57 MEM32(ebp + (-0x14)) = MEM32(ebp + (-0x14)) & 0; /* 0x4600E277: and dword ptr [ebp - 0x14], 0 */ 58 _cf = 0; 59 _flag_k = FK_TEST; 60 L_4600E27B: 61 /* cmp MEM8(ebp + (-0xD)), 0 */ /* 0x4600E27B: cmp byte ptr [ebp - 0xd], 0 */ 62 _flag_a = (uint32_t)(MEM8(ebp + (-0xD))) << 24; _flag_b = (uint32_t)(0) << 24; 63 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 64 _flag_k = FK_NARROW(FK_CMP, 24); 65 if (CMP_NE(_flag_a, _flag_b)) goto L_4600E373; /* 0x4600E27F: jne 0x4600e373 */ 66 L_4600E285: 67 edi = MEM32(ebp + 0x1C); /* 0x4600E285: mov edi, dword ptr [ebp + 0x1c] */ 68 MEM32(ebp + 0xC) = esi; /* 0x4600E288: mov dword ptr [ebp + 0xc], esi */ 69 esi = MEM32(ebp + 0x20); /* 0x4600E28B: mov esi, dword ptr [ebp + 0x20] */ 70 MEM32(ebp + 0x10) = ebx; /* 0x4600E28E: mov dword ptr [ebp + 0x10], ebx */ 71 /* test esi, esi */ /* 0x4600E291: test esi, esi */ 72 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 73 _cf = 0; 74 _flag_k = FK_TEST; 75 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E2AC; /* 0x4600E293: jbe 0x4600e2ac */ 76 L_4600E295: 77 eax = (int32_t)(int8_t)MEM8(edi); /* 0x4600E295: movsx eax, byte ptr [edi] */ 78 PUSH32(esp, eax); /* 0x4600E298: push eax */ 79 RECOMP_ICALL(0x460021A2u); /* 0x4600E299: call 0x460021a2 */ /* not lifted */ 80 RECOMP_FLAGS_IN(); 81 ecx = POP32_VAL(esp); /* 0x4600E29E: pop ecx */ 82 PUSH32(esp, eax); /* 0x4600E29F: push eax */ 83 ecx = ebp + 0xC; /* 0x4600E2A0: lea ecx, [ebp + 0xc] */ 84 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E2A3: call 0x4601c3a2 */ /* not lifted */ 85 RECOMP_FLAGS_IN(); 86 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 87 edi = edi + 1; /* 0x4600E2A8: inc edi */ 88 _flag_k = FK_INC; 89 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 90 esi = esi - 1; /* 0x4600E2A9: dec esi */ 91 _flag_k = FK_DEC; 92 RECOMP_BACKEDGE(); 93 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E295; /* 0x4600E2AA: jne 0x4600e295 */ 94 L_4600E2AC: 95 esi = MEM32(ebp + 0xC); /* 0x4600E2AC: mov esi, dword ptr [ebp + 0xc] */ 96 ebx = MEM32(ebp + 0x10); /* 0x4600E2AF: mov ebx, dword ptr [ebp + 0x10] */ 97 L_4600E2B2: 98 eax = MEM32(ebp + 0x14); /* 0x4600E2B2: mov eax, dword ptr [ebp + 0x14] */ 99 MEM32(ebp + 0xC) = esi; /* 0x4600E2B5: mov dword ptr [ebp + 0xc], esi */ 100 esi = MEM32(ebp + (-0x14)); /* 0x4600E2B8: mov esi, dword ptr [ebp - 0x14] */ 101 MEM32(ebp + 0x10) = ebx; /* 0x4600E2BB: mov dword ptr [ebp + 0x10], ebx */ 102 _flag_a = (uint32_t)(MEM32(eax + 0x14)); _flag_b = (uint32_t)(0); 103 MEM32(eax + 0x14) = MEM32(eax + 0x14) & 0; /* 0x4600E2BE: and dword ptr [eax + 0x14], 0 */ 104 _cf = 0; 105 _flag_k = FK_TEST; 106 /* test esi, esi */ /* 0x4600E2C2: test esi, esi */ 107 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 108 _cf = 0; 109 _flag_k = FK_TEST; 110 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E2D4; /* 0x4600E2C4: jbe 0x4600e2d4 */ 111 L_4600E2C6: 112 PUSH32(esp, MEM32(ebp + 0x18)); /* 0x4600E2C6: push dword ptr [ebp + 0x18] */ 113 ecx = ebp + 0xC; /* 0x4600E2C9: lea ecx, [ebp + 0xc] */ 114 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E2CC: call 0x4601c3a2 */ /* not lifted */ 115 RECOMP_FLAGS_IN(); 116 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 117 esi = esi - 1; /* 0x4600E2D1: dec esi */ 118 _flag_k = FK_DEC; 119 RECOMP_BACKEDGE(); 120 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E2C6; /* 0x4600E2D2: jne 0x4600e2c6 */ 121 L_4600E2D4: 122 esi = MEM32(ebp + 0x8); /* 0x4600E2D4: mov esi, dword ptr [ebp + 8] */ 123 eax = MEM32(ebp + 0xC); /* 0x4600E2D7: mov eax, dword ptr [ebp + 0xc] */ 124 PUSH32(esp, 1); /* 0x4600E2DA: push 1 */ 125 ecx = ebp + (-0x38); /* 0x4600E2DC: lea ecx, [ebp - 0x38] */ 126 MEM32(esi) = eax; /* 0x4600E2DF: mov dword ptr [esi], eax */ 127 eax = MEM32(ebp + 0x10); /* 0x4600E2E1: mov eax, dword ptr [ebp + 0x10] */ 128 MEM32(esi + 0x4) = eax; /* 0x4600E2E4: mov dword ptr [esi + 4], eax */ 129 RECOMP_ICALL(0x46001A60u); /* 0x4600E2E7: call 0x46001a60 */ /* not lifted */ 130 RECOMP_FLAGS_IN(); 131 ecx = MEM32(ebp + (-0xC)); /* 0x4600E2EC: mov ecx, dword ptr [ebp - 0xc] */ 132 eax = esi; /* 0x4600E2EF: mov eax, esi */ 133 edi = POP32_VAL(esp); /* 0x4600E2F1: pop edi */ 134 esi = POP32_VAL(esp); /* 0x4600E2F2: pop esi */ 135 ebx = POP32_VAL(esp); /* 0x4600E2F3: pop ebx */ 136 MEM32(FS_BASE + (0)) = ecx; /* 0x4600E2F4: mov dword ptr fs:[0], ecx */ 137 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E2FB: leave */ 138 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E2FC: ret */ 139 L_4600E306: 140 eax = MEM32(ebp + 0xC); /* 0x4600E306: mov eax, dword ptr [ebp + 0xc] */ 141 edi = MEM32(ebp + (-0x18)); /* 0x4600E309: mov edi, dword ptr [ebp - 0x18] */ 142 esi = MEM32(ebp + 0x1C); /* 0x4600E30C: mov esi, dword ptr [ebp + 0x1c] */ 143 MEM32(ebp + (-0x28)) = eax; /* 0x4600E30F: mov dword ptr [ebp - 0x28], eax */ 144 eax = MEM32(ebp + 0x10); /* 0x4600E312: mov eax, dword ptr [ebp + 0x10] */ 145 /* test edi, edi */ /* 0x4600E315: test edi, edi */ 146 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 147 _cf = 0; 148 _flag_k = FK_TEST; 149 MEM32(ebp + (-0x24)) = eax; /* 0x4600E317: mov dword ptr [ebp - 0x24], eax */ 150 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E333; /* 0x4600E31A: jbe 0x4600e333 */ 151 L_4600E31C: 152 eax = (int32_t)(int8_t)MEM8(esi); /* 0x4600E31C: movsx eax, byte ptr [esi] */ 153 PUSH32(esp, eax); /* 0x4600E31F: push eax */ 154 RECOMP_ICALL(0x460021A2u); /* 0x4600E320: call 0x460021a2 */ /* not lifted */ 155 RECOMP_FLAGS_IN(); 156 ecx = POP32_VAL(esp); /* 0x4600E325: pop ecx */ 157 PUSH32(esp, eax); /* 0x4600E326: push eax */ 158 ecx = ebp + (-0x28); /* 0x4600E327: lea ecx, [ebp - 0x28] */ 159 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E32A: call 0x4601c3a2 */ /* not lifted */ 160 RECOMP_FLAGS_IN(); 161 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 162 esi = esi + 1; /* 0x4600E32F: inc esi */ 163 _flag_k = FK_INC; 164 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 165 edi = edi - 1; /* 0x4600E330: dec edi */ 166 _flag_k = FK_DEC; 167 RECOMP_BACKEDGE(); 168 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E31C; /* 0x4600E331: jne 0x4600e31c */ 169 L_4600E333: 170 eax = MEM32(ebp + (-0x18)); /* 0x4600E333: mov eax, dword ptr [ebp - 0x18] */ 171 esi = MEM32(ebp + (-0x14)); /* 0x4600E336: mov esi, dword ptr [ebp - 0x14] */ 172 _flag_a = (uint32_t)(MEM32(ebp + 0x1C)); _flag_b = (uint32_t)(eax); 173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 174 MEM32(ebp + 0x1C) = MEM32(ebp + 0x1C) + eax; /* 0x4600E339: add dword ptr [ebp + 0x1c], eax */ 175 _flag_k = FK_ADD; 176 _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(eax); 177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 178 MEM32(ebp + 0x20) = MEM32(ebp + 0x20) - eax; /* 0x4600E33C: sub dword ptr [ebp + 0x20], eax */ 179 _flag_k = FK_CMP; 180 eax = MEM32(ebp + (-0x28)); /* 0x4600E33F: mov eax, dword ptr [ebp - 0x28] */ 181 MEM32(ebp + 0xC) = eax; /* 0x4600E342: mov dword ptr [ebp + 0xc], eax */ 182 eax = MEM32(ebp + (-0x24)); /* 0x4600E345: mov eax, dword ptr [ebp - 0x24] */ 183 /* test esi, esi */ /* 0x4600E348: test esi, esi */ 184 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 185 _cf = 0; 186 _flag_k = FK_TEST; 187 MEM32(ebp + 0x10) = eax; /* 0x4600E34A: mov dword ptr [ebp + 0x10], eax */ 188 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E35D; /* 0x4600E34D: jbe 0x4600e35d */ 189 L_4600E34F: 190 PUSH32(esp, MEM32(ebp + 0x18)); /* 0x4600E34F: push dword ptr [ebp + 0x18] */ 191 ecx = ebp + 0xC; /* 0x4600E352: lea ecx, [ebp + 0xc] */ 192 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E355: call 0x4601c3a2 */ /* not lifted */ 193 RECOMP_FLAGS_IN(); 194 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 195 esi = esi - 1; /* 0x4600E35A: dec esi */ 196 _flag_k = FK_DEC; 197 RECOMP_BACKEDGE(); 198 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E34F; /* 0x4600E35B: jne 0x4600e34f */ 199 L_4600E35D: 200 esi = MEM32(ebp + 0xC); /* 0x4600E35D: mov esi, dword ptr [ebp + 0xc] */ 201 ebx = MEM32(ebp + 0x10); /* 0x4600E360: mov ebx, dword ptr [ebp + 0x10] */ 202 RECOMP_BACKEDGE(); 203 goto L_4600E277; /* 0x4600E363: jmp 0x4600e277 */ 204 L_4600E368: 205 ebx = MEM32(ebp + 0x10); /* 0x4600E368: mov ebx, dword ptr [ebp + 0x10] */ 206 esi = MEM32(ebp + 0xC); /* 0x4600E36B: mov esi, dword ptr [ebp + 0xc] */ 207 RECOMP_BACKEDGE(); 208 goto L_4600E27B; /* 0x4600E36E: jmp 0x4600e27b */ 209 L_4600E373: 210 PUSH32(esp, 0x4602BC94u); /* 0x4600E373: push 0x4602bc94 */ 211 PUSH32(esp, MEM32(ebp + 0x1C)); /* 0x4600E378: push dword ptr [ebp + 0x1c] */ 212 RECOMP_ICALL(MEM32(0x4602B058)); /* 0x4600E37B: call dword ptr [0x4602b058] */ 213 RECOMP_FLAGS_IN(); 214 edi = eax; /* 0x4600E381: mov edi, eax */ 215 eax = MEM32(ebp + 0x1C); /* 0x4600E383: mov eax, dword ptr [ebp + 0x1c] */ 216 ecx = POP32_VAL(esp); /* 0x4600E386: pop ecx */ 217 MEM32(ebp + 0x10) = eax; /* 0x4600E387: mov dword ptr [ebp + 0x10], eax */ 218 /* test edi, edi */ /* 0x4600E38A: test edi, edi */ 219 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 220 _cf = 0; 221 _flag_k = FK_TEST; 222 ecx = POP32_VAL(esp); /* 0x4600E38C: pop ecx */ 223 MEM32(ebp + (-0x28)) = esi; /* 0x4600E38D: mov dword ptr [ebp - 0x28], esi */ 224 MEM32(ebp + (-0x24)) = ebx; /* 0x4600E390: mov dword ptr [ebp - 0x24], ebx */ 225 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E3B3; /* 0x4600E393: jbe 0x4600e3b3 */ 226 L_4600E395: 227 esi = edi; /* 0x4600E395: mov esi, edi */ 228 L_4600E397: 229 eax = MEM32(ebp + 0x10); /* 0x4600E397: mov eax, dword ptr [ebp + 0x10] */ 230 eax = (int32_t)(int8_t)MEM8(eax); /* 0x4600E39A: movsx eax, byte ptr [eax] */ 231 PUSH32(esp, eax); /* 0x4600E39D: push eax */ 232 RECOMP_ICALL(0x460021A2u); /* 0x4600E39E: call 0x460021a2 */ /* not lifted */ 233 RECOMP_FLAGS_IN(); 234 ecx = POP32_VAL(esp); /* 0x4600E3A3: pop ecx */ 235 PUSH32(esp, eax); /* 0x4600E3A4: push eax */ 236 ecx = ebp + (-0x28); /* 0x4600E3A5: lea ecx, [ebp - 0x28] */ 237 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E3A8: call 0x4601c3a2 */ /* not lifted */ 238 RECOMP_FLAGS_IN(); 239 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1); 240 MEM32(ebp + 0x10) = MEM32(ebp + 0x10) + 1; /* 0x4600E3AD: inc dword ptr [ebp + 0x10] */ 241 _flag_k = FK_INC; 242 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 243 esi = esi - 1; /* 0x4600E3B0: dec esi */ 244 _flag_k = FK_DEC; 245 RECOMP_BACKEDGE(); 246 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E397; /* 0x4600E3B1: jne 0x4600e397 */ 247 L_4600E3B3: 248 _flag_a = (uint32_t)(MEM32(ebp + 0x1C)); _flag_b = (uint32_t)(edi); 249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 250 MEM32(ebp + 0x1C) = MEM32(ebp + 0x1C) + edi; /* 0x4600E3B3: add dword ptr [ebp + 0x1c], edi */ 251 _flag_k = FK_ADD; 252 _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(edi); 253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 254 MEM32(ebp + 0x20) = MEM32(ebp + 0x20) - edi; /* 0x4600E3B6: sub dword ptr [ebp + 0x20], edi */ 255 _flag_k = FK_CMP; 256 esi = MEM32(ebp + (-0x28)); /* 0x4600E3B9: mov esi, dword ptr [ebp - 0x28] */ 257 ebx = MEM32(ebp + (-0x24)); /* 0x4600E3BC: mov ebx, dword ptr [ebp - 0x24] */ 258 RECOMP_BACKEDGE(); 259 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_4600E2B2; /* 0x4600E3BF: je 0x4600e2b2 */ 260 L_4600E3C5: 261 /* cmp MEM16(ebp + (-0x20)), 0 */ /* 0x4600E3C5: cmp word ptr [ebp - 0x20], 0 */ 262 _flag_a = (uint32_t)(MEM16(ebp + (-0x20))) << 16; _flag_b = (uint32_t)(0) << 16; 263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 264 _flag_k = FK_NARROW(FK_CMP, 16); 265 if (CMP_EQ(_flag_a, _flag_b)) goto L_4600E3E3; /* 0x4600E3CA: je 0x4600e3e3 */ 266 L_4600E3CC: 267 PUSH32(esp, MEM32(ebp + (-0x20))); /* 0x4600E3CC: push dword ptr [ebp - 0x20] */ 268 ecx = ebp + (-0x1C); /* 0x4600E3CF: lea ecx, [ebp - 0x1c] */ 269 MEM32(ebp + (-0x1C)) = esi; /* 0x4600E3D2: mov dword ptr [ebp - 0x1c], esi */ 270 MEM32(ebp + (-0x18)) = ebx; /* 0x4600E3D5: mov dword ptr [ebp - 0x18], ebx */ 271 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E3D8: call 0x4601c3a2 */ /* not lifted */ 272 RECOMP_FLAGS_IN(); 273 esi = MEM32(ebp + (-0x1C)); /* 0x4600E3DD: mov esi, dword ptr [ebp - 0x1c] */ 274 ebx = MEM32(ebp + (-0x18)); /* 0x4600E3E0: mov ebx, dword ptr [ebp - 0x18] */ 275 L_4600E3E3: 276 _flag_a = (uint32_t)(MEM32(ebp + 0x1C)); _flag_b = (uint32_t)(1); 277 MEM32(ebp + 0x1C) = MEM32(ebp + 0x1C) + 1; /* 0x4600E3E3: inc dword ptr [ebp + 0x1c] */ 278 _flag_k = FK_INC; 279 _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(1); 280 MEM32(ebp + 0x20) = MEM32(ebp + 0x20) - 1; /* 0x4600E3E6: dec dword ptr [ebp + 0x20] */ 281 _flag_k = FK_DEC; 282 RECOMP_BACKEDGE(); 283 goto L_4600E373; /* 0x4600E3E9: jmp 0x4600e373 */ 284 { RECOMP_REGS_OUT(); return; } /* end of function */ 285 RECOMP_REGS_OUT(); 286 } 287 288 void sub_4600E277(void) { 289 int _fpu_cmp = 0; 290 uint32_t _cf = 0; 291 int _df = 1; 292 uint32_t _flag_k = FK_NONE; 293 uint32_t _flag_a = 0, _flag_b = 0; 294 uint32_t _itail_tgt = 0; 295 RECOMP_REGS_LOCALS 296 RECOMP_ENTER(0x4600E277u); 297 298 L_4600E277: 299 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(0); 300 MEM32(ebp + (-0x14)) = MEM32(ebp + (-0x14)) & 0; /* 0x4600E277: and dword ptr [ebp - 0x14], 0 */ 301 _cf = 0; 302 _flag_k = FK_TEST; 303 /* cmp MEM8(ebp + (-0xD)), 0 */ /* 0x4600E27B: cmp byte ptr [ebp - 0xd], 0 */ 304 _flag_a = (uint32_t)(MEM8(ebp + (-0xD))) << 24; _flag_b = (uint32_t)(0) << 24; 305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 306 _flag_k = FK_NARROW(FK_CMP, 24); 307 if (CMP_NE(_flag_a, _flag_b)) goto L_4600E373; /* 0x4600E27F: jne 0x4600e373 */ 308 L_4600E285: 309 edi = MEM32(ebp + 0x1C); /* 0x4600E285: mov edi, dword ptr [ebp + 0x1c] */ 310 MEM32(ebp + 0xC) = esi; /* 0x4600E288: mov dword ptr [ebp + 0xc], esi */ 311 esi = MEM32(ebp + 0x20); /* 0x4600E28B: mov esi, dword ptr [ebp + 0x20] */ 312 MEM32(ebp + 0x10) = ebx; /* 0x4600E28E: mov dword ptr [ebp + 0x10], ebx */ 313 /* test esi, esi */ /* 0x4600E291: test esi, esi */ 314 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 315 _cf = 0; 316 _flag_k = FK_TEST; 317 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E2AC; /* 0x4600E293: jbe 0x4600e2ac */ 318 L_4600E295: 319 eax = (int32_t)(int8_t)MEM8(edi); /* 0x4600E295: movsx eax, byte ptr [edi] */ 320 PUSH32(esp, eax); /* 0x4600E298: push eax */ 321 RECOMP_ICALL(0x460021A2u); /* 0x4600E299: call 0x460021a2 */ /* not lifted */ 322 RECOMP_FLAGS_IN(); 323 ecx = POP32_VAL(esp); /* 0x4600E29E: pop ecx */ 324 PUSH32(esp, eax); /* 0x4600E29F: push eax */ 325 ecx = ebp + 0xC; /* 0x4600E2A0: lea ecx, [ebp + 0xc] */ 326 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E2A3: call 0x4601c3a2 */ /* not lifted */ 327 RECOMP_FLAGS_IN(); 328 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 329 edi = edi + 1; /* 0x4600E2A8: inc edi */ 330 _flag_k = FK_INC; 331 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 332 esi = esi - 1; /* 0x4600E2A9: dec esi */ 333 _flag_k = FK_DEC; 334 RECOMP_BACKEDGE(); 335 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E295; /* 0x4600E2AA: jne 0x4600e295 */ 336 L_4600E2AC: 337 esi = MEM32(ebp + 0xC); /* 0x4600E2AC: mov esi, dword ptr [ebp + 0xc] */ 338 ebx = MEM32(ebp + 0x10); /* 0x4600E2AF: mov ebx, dword ptr [ebp + 0x10] */ 339 L_4600E2B2: 340 eax = MEM32(ebp + 0x14); /* 0x4600E2B2: mov eax, dword ptr [ebp + 0x14] */ 341 MEM32(ebp + 0xC) = esi; /* 0x4600E2B5: mov dword ptr [ebp + 0xc], esi */ 342 esi = MEM32(ebp + (-0x14)); /* 0x4600E2B8: mov esi, dword ptr [ebp - 0x14] */ 343 MEM32(ebp + 0x10) = ebx; /* 0x4600E2BB: mov dword ptr [ebp + 0x10], ebx */ 344 _flag_a = (uint32_t)(MEM32(eax + 0x14)); _flag_b = (uint32_t)(0); 345 MEM32(eax + 0x14) = MEM32(eax + 0x14) & 0; /* 0x4600E2BE: and dword ptr [eax + 0x14], 0 */ 346 _cf = 0; 347 _flag_k = FK_TEST; 348 /* test esi, esi */ /* 0x4600E2C2: test esi, esi */ 349 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 350 _cf = 0; 351 _flag_k = FK_TEST; 352 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E2D4; /* 0x4600E2C4: jbe 0x4600e2d4 */ 353 L_4600E2C6: 354 PUSH32(esp, MEM32(ebp + 0x18)); /* 0x4600E2C6: push dword ptr [ebp + 0x18] */ 355 ecx = ebp + 0xC; /* 0x4600E2C9: lea ecx, [ebp + 0xc] */ 356 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E2CC: call 0x4601c3a2 */ /* not lifted */ 357 RECOMP_FLAGS_IN(); 358 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 359 esi = esi - 1; /* 0x4600E2D1: dec esi */ 360 _flag_k = FK_DEC; 361 RECOMP_BACKEDGE(); 362 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E2C6; /* 0x4600E2D2: jne 0x4600e2c6 */ 363 L_4600E2D4: 364 esi = MEM32(ebp + 0x8); /* 0x4600E2D4: mov esi, dword ptr [ebp + 8] */ 365 eax = MEM32(ebp + 0xC); /* 0x4600E2D7: mov eax, dword ptr [ebp + 0xc] */ 366 PUSH32(esp, 1); /* 0x4600E2DA: push 1 */ 367 ecx = ebp + (-0x38); /* 0x4600E2DC: lea ecx, [ebp - 0x38] */ 368 MEM32(esi) = eax; /* 0x4600E2DF: mov dword ptr [esi], eax */ 369 eax = MEM32(ebp + 0x10); /* 0x4600E2E1: mov eax, dword ptr [ebp + 0x10] */ 370 MEM32(esi + 0x4) = eax; /* 0x4600E2E4: mov dword ptr [esi + 4], eax */ 371 RECOMP_ICALL(0x46001A60u); /* 0x4600E2E7: call 0x46001a60 */ /* not lifted */ 372 RECOMP_FLAGS_IN(); 373 ecx = MEM32(ebp + (-0xC)); /* 0x4600E2EC: mov ecx, dword ptr [ebp - 0xc] */ 374 eax = esi; /* 0x4600E2EF: mov eax, esi */ 375 edi = POP32_VAL(esp); /* 0x4600E2F1: pop edi */ 376 esi = POP32_VAL(esp); /* 0x4600E2F2: pop esi */ 377 ebx = POP32_VAL(esp); /* 0x4600E2F3: pop ebx */ 378 MEM32(FS_BASE + (0)) = ecx; /* 0x4600E2F4: mov dword ptr fs:[0], ecx */ 379 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E2FB: leave */ 380 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E2FC: ret */ 381 L_4600E373: 382 PUSH32(esp, 0x4602BC94u); /* 0x4600E373: push 0x4602bc94 */ 383 PUSH32(esp, MEM32(ebp + 0x1C)); /* 0x4600E378: push dword ptr [ebp + 0x1c] */ 384 RECOMP_ICALL(MEM32(0x4602B058)); /* 0x4600E37B: call dword ptr [0x4602b058] */ 385 RECOMP_FLAGS_IN(); 386 edi = eax; /* 0x4600E381: mov edi, eax */ 387 eax = MEM32(ebp + 0x1C); /* 0x4600E383: mov eax, dword ptr [ebp + 0x1c] */ 388 ecx = POP32_VAL(esp); /* 0x4600E386: pop ecx */ 389 MEM32(ebp + 0x10) = eax; /* 0x4600E387: mov dword ptr [ebp + 0x10], eax */ 390 /* test edi, edi */ /* 0x4600E38A: test edi, edi */ 391 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 392 _cf = 0; 393 _flag_k = FK_TEST; 394 ecx = POP32_VAL(esp); /* 0x4600E38C: pop ecx */ 395 MEM32(ebp + (-0x28)) = esi; /* 0x4600E38D: mov dword ptr [ebp - 0x28], esi */ 396 MEM32(ebp + (-0x24)) = ebx; /* 0x4600E390: mov dword ptr [ebp - 0x24], ebx */ 397 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E3B3; /* 0x4600E393: jbe 0x4600e3b3 */ 398 L_4600E395: 399 esi = edi; /* 0x4600E395: mov esi, edi */ 400 L_4600E397: 401 eax = MEM32(ebp + 0x10); /* 0x4600E397: mov eax, dword ptr [ebp + 0x10] */ 402 eax = (int32_t)(int8_t)MEM8(eax); /* 0x4600E39A: movsx eax, byte ptr [eax] */ 403 PUSH32(esp, eax); /* 0x4600E39D: push eax */ 404 RECOMP_ICALL(0x460021A2u); /* 0x4600E39E: call 0x460021a2 */ /* not lifted */ 405 RECOMP_FLAGS_IN(); 406 ecx = POP32_VAL(esp); /* 0x4600E3A3: pop ecx */ 407 PUSH32(esp, eax); /* 0x4600E3A4: push eax */ 408 ecx = ebp + (-0x28); /* 0x4600E3A5: lea ecx, [ebp - 0x28] */ 409 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E3A8: call 0x4601c3a2 */ /* not lifted */ 410 RECOMP_FLAGS_IN(); 411 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1); 412 MEM32(ebp + 0x10) = MEM32(ebp + 0x10) + 1; /* 0x4600E3AD: inc dword ptr [ebp + 0x10] */ 413 _flag_k = FK_INC; 414 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 415 esi = esi - 1; /* 0x4600E3B0: dec esi */ 416 _flag_k = FK_DEC; 417 RECOMP_BACKEDGE(); 418 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E397; /* 0x4600E3B1: jne 0x4600e397 */ 419 L_4600E3B3: 420 _flag_a = (uint32_t)(MEM32(ebp + 0x1C)); _flag_b = (uint32_t)(edi); 421 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 422 MEM32(ebp + 0x1C) = MEM32(ebp + 0x1C) + edi; /* 0x4600E3B3: add dword ptr [ebp + 0x1c], edi */ 423 _flag_k = FK_ADD; 424 _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(edi); 425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 426 MEM32(ebp + 0x20) = MEM32(ebp + 0x20) - edi; /* 0x4600E3B6: sub dword ptr [ebp + 0x20], edi */ 427 _flag_k = FK_CMP; 428 esi = MEM32(ebp + (-0x28)); /* 0x4600E3B9: mov esi, dword ptr [ebp - 0x28] */ 429 ebx = MEM32(ebp + (-0x24)); /* 0x4600E3BC: mov ebx, dword ptr [ebp - 0x24] */ 430 RECOMP_BACKEDGE(); 431 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_4600E2B2; /* 0x4600E3BF: je 0x4600e2b2 */ 432 L_4600E3C5: 433 /* cmp MEM16(ebp + (-0x20)), 0 */ /* 0x4600E3C5: cmp word ptr [ebp - 0x20], 0 */ 434 _flag_a = (uint32_t)(MEM16(ebp + (-0x20))) << 16; _flag_b = (uint32_t)(0) << 16; 435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 436 _flag_k = FK_NARROW(FK_CMP, 16); 437 if (CMP_EQ(_flag_a, _flag_b)) goto L_4600E3E3; /* 0x4600E3CA: je 0x4600e3e3 */ 438 L_4600E3CC: 439 PUSH32(esp, MEM32(ebp + (-0x20))); /* 0x4600E3CC: push dword ptr [ebp - 0x20] */ 440 ecx = ebp + (-0x1C); /* 0x4600E3CF: lea ecx, [ebp - 0x1c] */ 441 MEM32(ebp + (-0x1C)) = esi; /* 0x4600E3D2: mov dword ptr [ebp - 0x1c], esi */ 442 MEM32(ebp + (-0x18)) = ebx; /* 0x4600E3D5: mov dword ptr [ebp - 0x18], ebx */ 443 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E3D8: call 0x4601c3a2 */ /* not lifted */ 444 RECOMP_FLAGS_IN(); 445 esi = MEM32(ebp + (-0x1C)); /* 0x4600E3DD: mov esi, dword ptr [ebp - 0x1c] */ 446 ebx = MEM32(ebp + (-0x18)); /* 0x4600E3E0: mov ebx, dword ptr [ebp - 0x18] */ 447 L_4600E3E3: 448 _flag_a = (uint32_t)(MEM32(ebp + 0x1C)); _flag_b = (uint32_t)(1); 449 MEM32(ebp + 0x1C) = MEM32(ebp + 0x1C) + 1; /* 0x4600E3E3: inc dword ptr [ebp + 0x1c] */ 450 _flag_k = FK_INC; 451 _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(1); 452 MEM32(ebp + 0x20) = MEM32(ebp + 0x20) - 1; /* 0x4600E3E6: dec dword ptr [ebp + 0x20] */ 453 _flag_k = FK_DEC; 454 RECOMP_BACKEDGE(); 455 goto L_4600E373; /* 0x4600E3E9: jmp 0x4600e373 */ 456 { RECOMP_REGS_OUT(); return; } /* end of function */ 457 RECOMP_REGS_OUT(); 458 } 459 460 void sub_4600E27B(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(0x4600E27Bu); 469 470 L_4600E27B: 471 /* cmp MEM8(ebp + (-0xD)), 0 */ /* 0x4600E27B: cmp byte ptr [ebp - 0xd], 0 */ 472 _flag_a = (uint32_t)(MEM8(ebp + (-0xD))) << 24; _flag_b = (uint32_t)(0) << 24; 473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 474 _flag_k = FK_NARROW(FK_CMP, 24); 475 if (CMP_NE(_flag_a, _flag_b)) goto L_4600E373; /* 0x4600E27F: jne 0x4600e373 */ 476 L_4600E285: 477 edi = MEM32(ebp + 0x1C); /* 0x4600E285: mov edi, dword ptr [ebp + 0x1c] */ 478 MEM32(ebp + 0xC) = esi; /* 0x4600E288: mov dword ptr [ebp + 0xc], esi */ 479 esi = MEM32(ebp + 0x20); /* 0x4600E28B: mov esi, dword ptr [ebp + 0x20] */ 480 MEM32(ebp + 0x10) = ebx; /* 0x4600E28E: mov dword ptr [ebp + 0x10], ebx */ 481 /* test esi, esi */ /* 0x4600E291: test esi, esi */ 482 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 483 _cf = 0; 484 _flag_k = FK_TEST; 485 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E2AC; /* 0x4600E293: jbe 0x4600e2ac */ 486 L_4600E295: 487 eax = (int32_t)(int8_t)MEM8(edi); /* 0x4600E295: movsx eax, byte ptr [edi] */ 488 PUSH32(esp, eax); /* 0x4600E298: push eax */ 489 RECOMP_ICALL(0x460021A2u); /* 0x4600E299: call 0x460021a2 */ /* not lifted */ 490 RECOMP_FLAGS_IN(); 491 ecx = POP32_VAL(esp); /* 0x4600E29E: pop ecx */ 492 PUSH32(esp, eax); /* 0x4600E29F: push eax */ 493 ecx = ebp + 0xC; /* 0x4600E2A0: lea ecx, [ebp + 0xc] */ 494 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E2A3: call 0x4601c3a2 */ /* not lifted */ 495 RECOMP_FLAGS_IN(); 496 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 497 edi = edi + 1; /* 0x4600E2A8: inc edi */ 498 _flag_k = FK_INC; 499 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 500 esi = esi - 1; /* 0x4600E2A9: dec esi */ 501 _flag_k = FK_DEC; 502 RECOMP_BACKEDGE(); 503 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E295; /* 0x4600E2AA: jne 0x4600e295 */ 504 L_4600E2AC: 505 esi = MEM32(ebp + 0xC); /* 0x4600E2AC: mov esi, dword ptr [ebp + 0xc] */ 506 ebx = MEM32(ebp + 0x10); /* 0x4600E2AF: mov ebx, dword ptr [ebp + 0x10] */ 507 L_4600E2B2: 508 eax = MEM32(ebp + 0x14); /* 0x4600E2B2: mov eax, dword ptr [ebp + 0x14] */ 509 MEM32(ebp + 0xC) = esi; /* 0x4600E2B5: mov dword ptr [ebp + 0xc], esi */ 510 esi = MEM32(ebp + (-0x14)); /* 0x4600E2B8: mov esi, dword ptr [ebp - 0x14] */ 511 MEM32(ebp + 0x10) = ebx; /* 0x4600E2BB: mov dword ptr [ebp + 0x10], ebx */ 512 _flag_a = (uint32_t)(MEM32(eax + 0x14)); _flag_b = (uint32_t)(0); 513 MEM32(eax + 0x14) = MEM32(eax + 0x14) & 0; /* 0x4600E2BE: and dword ptr [eax + 0x14], 0 */ 514 _cf = 0; 515 _flag_k = FK_TEST; 516 /* test esi, esi */ /* 0x4600E2C2: test esi, esi */ 517 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 518 _cf = 0; 519 _flag_k = FK_TEST; 520 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E2D4; /* 0x4600E2C4: jbe 0x4600e2d4 */ 521 L_4600E2C6: 522 PUSH32(esp, MEM32(ebp + 0x18)); /* 0x4600E2C6: push dword ptr [ebp + 0x18] */ 523 ecx = ebp + 0xC; /* 0x4600E2C9: lea ecx, [ebp + 0xc] */ 524 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E2CC: call 0x4601c3a2 */ /* not lifted */ 525 RECOMP_FLAGS_IN(); 526 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 527 esi = esi - 1; /* 0x4600E2D1: dec esi */ 528 _flag_k = FK_DEC; 529 RECOMP_BACKEDGE(); 530 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E2C6; /* 0x4600E2D2: jne 0x4600e2c6 */ 531 L_4600E2D4: 532 esi = MEM32(ebp + 0x8); /* 0x4600E2D4: mov esi, dword ptr [ebp + 8] */ 533 eax = MEM32(ebp + 0xC); /* 0x4600E2D7: mov eax, dword ptr [ebp + 0xc] */ 534 PUSH32(esp, 1); /* 0x4600E2DA: push 1 */ 535 ecx = ebp + (-0x38); /* 0x4600E2DC: lea ecx, [ebp - 0x38] */ 536 MEM32(esi) = eax; /* 0x4600E2DF: mov dword ptr [esi], eax */ 537 eax = MEM32(ebp + 0x10); /* 0x4600E2E1: mov eax, dword ptr [ebp + 0x10] */ 538 MEM32(esi + 0x4) = eax; /* 0x4600E2E4: mov dword ptr [esi + 4], eax */ 539 RECOMP_ICALL(0x46001A60u); /* 0x4600E2E7: call 0x46001a60 */ /* not lifted */ 540 RECOMP_FLAGS_IN(); 541 ecx = MEM32(ebp + (-0xC)); /* 0x4600E2EC: mov ecx, dword ptr [ebp - 0xc] */ 542 eax = esi; /* 0x4600E2EF: mov eax, esi */ 543 edi = POP32_VAL(esp); /* 0x4600E2F1: pop edi */ 544 esi = POP32_VAL(esp); /* 0x4600E2F2: pop esi */ 545 ebx = POP32_VAL(esp); /* 0x4600E2F3: pop ebx */ 546 MEM32(FS_BASE + (0)) = ecx; /* 0x4600E2F4: mov dword ptr fs:[0], ecx */ 547 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E2FB: leave */ 548 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E2FC: ret */ 549 L_4600E373: 550 PUSH32(esp, 0x4602BC94u); /* 0x4600E373: push 0x4602bc94 */ 551 PUSH32(esp, MEM32(ebp + 0x1C)); /* 0x4600E378: push dword ptr [ebp + 0x1c] */ 552 RECOMP_ICALL(MEM32(0x4602B058)); /* 0x4600E37B: call dword ptr [0x4602b058] */ 553 RECOMP_FLAGS_IN(); 554 edi = eax; /* 0x4600E381: mov edi, eax */ 555 eax = MEM32(ebp + 0x1C); /* 0x4600E383: mov eax, dword ptr [ebp + 0x1c] */ 556 ecx = POP32_VAL(esp); /* 0x4600E386: pop ecx */ 557 MEM32(ebp + 0x10) = eax; /* 0x4600E387: mov dword ptr [ebp + 0x10], eax */ 558 /* test edi, edi */ /* 0x4600E38A: test edi, edi */ 559 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 560 _cf = 0; 561 _flag_k = FK_TEST; 562 ecx = POP32_VAL(esp); /* 0x4600E38C: pop ecx */ 563 MEM32(ebp + (-0x28)) = esi; /* 0x4600E38D: mov dword ptr [ebp - 0x28], esi */ 564 MEM32(ebp + (-0x24)) = ebx; /* 0x4600E390: mov dword ptr [ebp - 0x24], ebx */ 565 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E3B3; /* 0x4600E393: jbe 0x4600e3b3 */ 566 L_4600E395: 567 esi = edi; /* 0x4600E395: mov esi, edi */ 568 L_4600E397: 569 eax = MEM32(ebp + 0x10); /* 0x4600E397: mov eax, dword ptr [ebp + 0x10] */ 570 eax = (int32_t)(int8_t)MEM8(eax); /* 0x4600E39A: movsx eax, byte ptr [eax] */ 571 PUSH32(esp, eax); /* 0x4600E39D: push eax */ 572 RECOMP_ICALL(0x460021A2u); /* 0x4600E39E: call 0x460021a2 */ /* not lifted */ 573 RECOMP_FLAGS_IN(); 574 ecx = POP32_VAL(esp); /* 0x4600E3A3: pop ecx */ 575 PUSH32(esp, eax); /* 0x4600E3A4: push eax */ 576 ecx = ebp + (-0x28); /* 0x4600E3A5: lea ecx, [ebp - 0x28] */ 577 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E3A8: call 0x4601c3a2 */ /* not lifted */ 578 RECOMP_FLAGS_IN(); 579 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1); 580 MEM32(ebp + 0x10) = MEM32(ebp + 0x10) + 1; /* 0x4600E3AD: inc dword ptr [ebp + 0x10] */ 581 _flag_k = FK_INC; 582 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 583 esi = esi - 1; /* 0x4600E3B0: dec esi */ 584 _flag_k = FK_DEC; 585 RECOMP_BACKEDGE(); 586 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E397; /* 0x4600E3B1: jne 0x4600e397 */ 587 L_4600E3B3: 588 _flag_a = (uint32_t)(MEM32(ebp + 0x1C)); _flag_b = (uint32_t)(edi); 589 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 590 MEM32(ebp + 0x1C) = MEM32(ebp + 0x1C) + edi; /* 0x4600E3B3: add dword ptr [ebp + 0x1c], edi */ 591 _flag_k = FK_ADD; 592 _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(edi); 593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 594 MEM32(ebp + 0x20) = MEM32(ebp + 0x20) - edi; /* 0x4600E3B6: sub dword ptr [ebp + 0x20], edi */ 595 _flag_k = FK_CMP; 596 esi = MEM32(ebp + (-0x28)); /* 0x4600E3B9: mov esi, dword ptr [ebp - 0x28] */ 597 ebx = MEM32(ebp + (-0x24)); /* 0x4600E3BC: mov ebx, dword ptr [ebp - 0x24] */ 598 RECOMP_BACKEDGE(); 599 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_4600E2B2; /* 0x4600E3BF: je 0x4600e2b2 */ 600 L_4600E3C5: 601 /* cmp MEM16(ebp + (-0x20)), 0 */ /* 0x4600E3C5: cmp word ptr [ebp - 0x20], 0 */ 602 _flag_a = (uint32_t)(MEM16(ebp + (-0x20))) << 16; _flag_b = (uint32_t)(0) << 16; 603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 604 _flag_k = FK_NARROW(FK_CMP, 16); 605 if (CMP_EQ(_flag_a, _flag_b)) goto L_4600E3E3; /* 0x4600E3CA: je 0x4600e3e3 */ 606 L_4600E3CC: 607 PUSH32(esp, MEM32(ebp + (-0x20))); /* 0x4600E3CC: push dword ptr [ebp - 0x20] */ 608 ecx = ebp + (-0x1C); /* 0x4600E3CF: lea ecx, [ebp - 0x1c] */ 609 MEM32(ebp + (-0x1C)) = esi; /* 0x4600E3D2: mov dword ptr [ebp - 0x1c], esi */ 610 MEM32(ebp + (-0x18)) = ebx; /* 0x4600E3D5: mov dword ptr [ebp - 0x18], ebx */ 611 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E3D8: call 0x4601c3a2 */ /* not lifted */ 612 RECOMP_FLAGS_IN(); 613 esi = MEM32(ebp + (-0x1C)); /* 0x4600E3DD: mov esi, dword ptr [ebp - 0x1c] */ 614 ebx = MEM32(ebp + (-0x18)); /* 0x4600E3E0: mov ebx, dword ptr [ebp - 0x18] */ 615 L_4600E3E3: 616 _flag_a = (uint32_t)(MEM32(ebp + 0x1C)); _flag_b = (uint32_t)(1); 617 MEM32(ebp + 0x1C) = MEM32(ebp + 0x1C) + 1; /* 0x4600E3E3: inc dword ptr [ebp + 0x1c] */ 618 _flag_k = FK_INC; 619 _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(1); 620 MEM32(ebp + 0x20) = MEM32(ebp + 0x20) - 1; /* 0x4600E3E6: dec dword ptr [ebp + 0x20] */ 621 _flag_k = FK_DEC; 622 RECOMP_BACKEDGE(); 623 goto L_4600E373; /* 0x4600E3E9: jmp 0x4600e373 */ 624 { RECOMP_REGS_OUT(); return; } /* end of function */ 625 RECOMP_REGS_OUT(); 626 } 627 628 void sub_4600E2B2(void) { 629 int _fpu_cmp = 0; 630 uint32_t _cf = 0; 631 int _df = 1; 632 uint32_t _flag_k = FK_NONE; 633 uint32_t _flag_a = 0, _flag_b = 0; 634 uint32_t _itail_tgt = 0; 635 RECOMP_REGS_LOCALS 636 RECOMP_ENTER(0x4600E2B2u); 637 638 L_4600E2B2: 639 eax = MEM32(ebp + 0x14); /* 0x4600E2B2: mov eax, dword ptr [ebp + 0x14] */ 640 MEM32(ebp + 0xC) = esi; /* 0x4600E2B5: mov dword ptr [ebp + 0xc], esi */ 641 esi = MEM32(ebp + (-0x14)); /* 0x4600E2B8: mov esi, dword ptr [ebp - 0x14] */ 642 MEM32(ebp + 0x10) = ebx; /* 0x4600E2BB: mov dword ptr [ebp + 0x10], ebx */ 643 _flag_a = (uint32_t)(MEM32(eax + 0x14)); _flag_b = (uint32_t)(0); 644 MEM32(eax + 0x14) = MEM32(eax + 0x14) & 0; /* 0x4600E2BE: and dword ptr [eax + 0x14], 0 */ 645 _cf = 0; 646 _flag_k = FK_TEST; 647 /* test esi, esi */ /* 0x4600E2C2: test esi, esi */ 648 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 649 _cf = 0; 650 _flag_k = FK_TEST; 651 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E2D4; /* 0x4600E2C4: jbe 0x4600e2d4 */ 652 L_4600E2C6: 653 PUSH32(esp, MEM32(ebp + 0x18)); /* 0x4600E2C6: push dword ptr [ebp + 0x18] */ 654 ecx = ebp + 0xC; /* 0x4600E2C9: lea ecx, [ebp + 0xc] */ 655 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E2CC: call 0x4601c3a2 */ /* not lifted */ 656 RECOMP_FLAGS_IN(); 657 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 658 esi = esi - 1; /* 0x4600E2D1: dec esi */ 659 _flag_k = FK_DEC; 660 RECOMP_BACKEDGE(); 661 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E2C6; /* 0x4600E2D2: jne 0x4600e2c6 */ 662 L_4600E2D4: 663 esi = MEM32(ebp + 0x8); /* 0x4600E2D4: mov esi, dword ptr [ebp + 8] */ 664 eax = MEM32(ebp + 0xC); /* 0x4600E2D7: mov eax, dword ptr [ebp + 0xc] */ 665 PUSH32(esp, 1); /* 0x4600E2DA: push 1 */ 666 ecx = ebp + (-0x38); /* 0x4600E2DC: lea ecx, [ebp - 0x38] */ 667 MEM32(esi) = eax; /* 0x4600E2DF: mov dword ptr [esi], eax */ 668 eax = MEM32(ebp + 0x10); /* 0x4600E2E1: mov eax, dword ptr [ebp + 0x10] */ 669 MEM32(esi + 0x4) = eax; /* 0x4600E2E4: mov dword ptr [esi + 4], eax */ 670 RECOMP_ICALL(0x46001A60u); /* 0x4600E2E7: call 0x46001a60 */ /* not lifted */ 671 RECOMP_FLAGS_IN(); 672 ecx = MEM32(ebp + (-0xC)); /* 0x4600E2EC: mov ecx, dword ptr [ebp - 0xc] */ 673 eax = esi; /* 0x4600E2EF: mov eax, esi */ 674 edi = POP32_VAL(esp); /* 0x4600E2F1: pop edi */ 675 esi = POP32_VAL(esp); /* 0x4600E2F2: pop esi */ 676 ebx = POP32_VAL(esp); /* 0x4600E2F3: pop ebx */ 677 MEM32(FS_BASE + (0)) = ecx; /* 0x4600E2F4: mov dword ptr fs:[0], ecx */ 678 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E2FB: leave */ 679 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E2FC: ret */ 680 RECOMP_REGS_OUT(); 681 } 682 683 void sub_4600E373(void) { 684 int _fpu_cmp = 0; 685 uint32_t _cf = 0; 686 int _df = 1; 687 uint32_t _flag_k = FK_NONE; 688 uint32_t _flag_a = 0, _flag_b = 0; 689 uint32_t _itail_tgt = 0; 690 RECOMP_REGS_LOCALS 691 RECOMP_ENTER(0x4600E373u); 692 693 goto L_4600E373; 694 L_4600E2B2: 695 eax = MEM32(ebp + 0x14); /* 0x4600E2B2: mov eax, dword ptr [ebp + 0x14] */ 696 MEM32(ebp + 0xC) = esi; /* 0x4600E2B5: mov dword ptr [ebp + 0xc], esi */ 697 esi = MEM32(ebp + (-0x14)); /* 0x4600E2B8: mov esi, dword ptr [ebp - 0x14] */ 698 MEM32(ebp + 0x10) = ebx; /* 0x4600E2BB: mov dword ptr [ebp + 0x10], ebx */ 699 _flag_a = (uint32_t)(MEM32(eax + 0x14)); _flag_b = (uint32_t)(0); 700 MEM32(eax + 0x14) = MEM32(eax + 0x14) & 0; /* 0x4600E2BE: and dword ptr [eax + 0x14], 0 */ 701 _cf = 0; 702 _flag_k = FK_TEST; 703 /* test esi, esi */ /* 0x4600E2C2: test esi, esi */ 704 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 705 _cf = 0; 706 _flag_k = FK_TEST; 707 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E2D4; /* 0x4600E2C4: jbe 0x4600e2d4 */ 708 L_4600E2C6: 709 PUSH32(esp, MEM32(ebp + 0x18)); /* 0x4600E2C6: push dword ptr [ebp + 0x18] */ 710 ecx = ebp + 0xC; /* 0x4600E2C9: lea ecx, [ebp + 0xc] */ 711 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E2CC: call 0x4601c3a2 */ /* not lifted */ 712 RECOMP_FLAGS_IN(); 713 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 714 esi = esi - 1; /* 0x4600E2D1: dec esi */ 715 _flag_k = FK_DEC; 716 RECOMP_BACKEDGE(); 717 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E2C6; /* 0x4600E2D2: jne 0x4600e2c6 */ 718 L_4600E2D4: 719 esi = MEM32(ebp + 0x8); /* 0x4600E2D4: mov esi, dword ptr [ebp + 8] */ 720 eax = MEM32(ebp + 0xC); /* 0x4600E2D7: mov eax, dword ptr [ebp + 0xc] */ 721 PUSH32(esp, 1); /* 0x4600E2DA: push 1 */ 722 ecx = ebp + (-0x38); /* 0x4600E2DC: lea ecx, [ebp - 0x38] */ 723 MEM32(esi) = eax; /* 0x4600E2DF: mov dword ptr [esi], eax */ 724 eax = MEM32(ebp + 0x10); /* 0x4600E2E1: mov eax, dword ptr [ebp + 0x10] */ 725 MEM32(esi + 0x4) = eax; /* 0x4600E2E4: mov dword ptr [esi + 4], eax */ 726 RECOMP_ICALL(0x46001A60u); /* 0x4600E2E7: call 0x46001a60 */ /* not lifted */ 727 RECOMP_FLAGS_IN(); 728 ecx = MEM32(ebp + (-0xC)); /* 0x4600E2EC: mov ecx, dword ptr [ebp - 0xc] */ 729 eax = esi; /* 0x4600E2EF: mov eax, esi */ 730 edi = POP32_VAL(esp); /* 0x4600E2F1: pop edi */ 731 esi = POP32_VAL(esp); /* 0x4600E2F2: pop esi */ 732 ebx = POP32_VAL(esp); /* 0x4600E2F3: pop ebx */ 733 MEM32(FS_BASE + (0)) = ecx; /* 0x4600E2F4: mov dword ptr fs:[0], ecx */ 734 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E2FB: leave */ 735 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E2FC: ret */ 736 L_4600E373: 737 PUSH32(esp, 0x4602BC94u); /* 0x4600E373: push 0x4602bc94 */ 738 PUSH32(esp, MEM32(ebp + 0x1C)); /* 0x4600E378: push dword ptr [ebp + 0x1c] */ 739 RECOMP_ICALL(MEM32(0x4602B058)); /* 0x4600E37B: call dword ptr [0x4602b058] */ 740 RECOMP_FLAGS_IN(); 741 edi = eax; /* 0x4600E381: mov edi, eax */ 742 eax = MEM32(ebp + 0x1C); /* 0x4600E383: mov eax, dword ptr [ebp + 0x1c] */ 743 ecx = POP32_VAL(esp); /* 0x4600E386: pop ecx */ 744 MEM32(ebp + 0x10) = eax; /* 0x4600E387: mov dword ptr [ebp + 0x10], eax */ 745 /* test edi, edi */ /* 0x4600E38A: test edi, edi */ 746 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 747 _cf = 0; 748 _flag_k = FK_TEST; 749 ecx = POP32_VAL(esp); /* 0x4600E38C: pop ecx */ 750 MEM32(ebp + (-0x28)) = esi; /* 0x4600E38D: mov dword ptr [ebp - 0x28], esi */ 751 MEM32(ebp + (-0x24)) = ebx; /* 0x4600E390: mov dword ptr [ebp - 0x24], ebx */ 752 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E3B3; /* 0x4600E393: jbe 0x4600e3b3 */ 753 L_4600E395: 754 esi = edi; /* 0x4600E395: mov esi, edi */ 755 L_4600E397: 756 eax = MEM32(ebp + 0x10); /* 0x4600E397: mov eax, dword ptr [ebp + 0x10] */ 757 eax = (int32_t)(int8_t)MEM8(eax); /* 0x4600E39A: movsx eax, byte ptr [eax] */ 758 PUSH32(esp, eax); /* 0x4600E39D: push eax */ 759 RECOMP_ICALL(0x460021A2u); /* 0x4600E39E: call 0x460021a2 */ /* not lifted */ 760 RECOMP_FLAGS_IN(); 761 ecx = POP32_VAL(esp); /* 0x4600E3A3: pop ecx */ 762 PUSH32(esp, eax); /* 0x4600E3A4: push eax */ 763 ecx = ebp + (-0x28); /* 0x4600E3A5: lea ecx, [ebp - 0x28] */ 764 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E3A8: call 0x4601c3a2 */ /* not lifted */ 765 RECOMP_FLAGS_IN(); 766 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1); 767 MEM32(ebp + 0x10) = MEM32(ebp + 0x10) + 1; /* 0x4600E3AD: inc dword ptr [ebp + 0x10] */ 768 _flag_k = FK_INC; 769 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 770 esi = esi - 1; /* 0x4600E3B0: dec esi */ 771 _flag_k = FK_DEC; 772 RECOMP_BACKEDGE(); 773 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E397; /* 0x4600E3B1: jne 0x4600e397 */ 774 L_4600E3B3: 775 _flag_a = (uint32_t)(MEM32(ebp + 0x1C)); _flag_b = (uint32_t)(edi); 776 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 777 MEM32(ebp + 0x1C) = MEM32(ebp + 0x1C) + edi; /* 0x4600E3B3: add dword ptr [ebp + 0x1c], edi */ 778 _flag_k = FK_ADD; 779 _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(edi); 780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 781 MEM32(ebp + 0x20) = MEM32(ebp + 0x20) - edi; /* 0x4600E3B6: sub dword ptr [ebp + 0x20], edi */ 782 _flag_k = FK_CMP; 783 esi = MEM32(ebp + (-0x28)); /* 0x4600E3B9: mov esi, dword ptr [ebp - 0x28] */ 784 ebx = MEM32(ebp + (-0x24)); /* 0x4600E3BC: mov ebx, dword ptr [ebp - 0x24] */ 785 RECOMP_BACKEDGE(); 786 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_4600E2B2; /* 0x4600E3BF: je 0x4600e2b2 */ 787 L_4600E3C5: 788 /* cmp MEM16(ebp + (-0x20)), 0 */ /* 0x4600E3C5: cmp word ptr [ebp - 0x20], 0 */ 789 _flag_a = (uint32_t)(MEM16(ebp + (-0x20))) << 16; _flag_b = (uint32_t)(0) << 16; 790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 791 _flag_k = FK_NARROW(FK_CMP, 16); 792 if (CMP_EQ(_flag_a, _flag_b)) goto L_4600E3E3; /* 0x4600E3CA: je 0x4600e3e3 */ 793 L_4600E3CC: 794 PUSH32(esp, MEM32(ebp + (-0x20))); /* 0x4600E3CC: push dword ptr [ebp - 0x20] */ 795 ecx = ebp + (-0x1C); /* 0x4600E3CF: lea ecx, [ebp - 0x1c] */ 796 MEM32(ebp + (-0x1C)) = esi; /* 0x4600E3D2: mov dword ptr [ebp - 0x1c], esi */ 797 MEM32(ebp + (-0x18)) = ebx; /* 0x4600E3D5: mov dword ptr [ebp - 0x18], ebx */ 798 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E3D8: call 0x4601c3a2 */ /* not lifted */ 799 RECOMP_FLAGS_IN(); 800 esi = MEM32(ebp + (-0x1C)); /* 0x4600E3DD: mov esi, dword ptr [ebp - 0x1c] */ 801 ebx = MEM32(ebp + (-0x18)); /* 0x4600E3E0: mov ebx, dword ptr [ebp - 0x18] */ 802 L_4600E3E3: 803 _flag_a = (uint32_t)(MEM32(ebp + 0x1C)); _flag_b = (uint32_t)(1); 804 MEM32(ebp + 0x1C) = MEM32(ebp + 0x1C) + 1; /* 0x4600E3E3: inc dword ptr [ebp + 0x1c] */ 805 _flag_k = FK_INC; 806 _flag_a = (uint32_t)(MEM32(ebp + 0x20)); _flag_b = (uint32_t)(1); 807 MEM32(ebp + 0x20) = MEM32(ebp + 0x20) - 1; /* 0x4600E3E6: dec dword ptr [ebp + 0x20] */ 808 _flag_k = FK_DEC; 809 RECOMP_BACKEDGE(); 810 goto L_4600E373; /* 0x4600E3E9: jmp 0x4600e373 */ 811 { RECOMP_REGS_OUT(); return; } /* end of function */ 812 RECOMP_REGS_OUT(); 813 } 814 815 void sub_4600E3EB(void) { 816 int _fpu_cmp = 0; 817 uint32_t _cf = 0; 818 int _df = 1; 819 uint32_t _flag_k = FK_NONE; 820 uint32_t _flag_a = 0, _flag_b = 0; 821 uint32_t _itail_tgt = 0; 822 RECOMP_REGS_LOCALS 823 RECOMP_ENTER(0x4600E3EBu); 824 825 L_4600E3EB: 826 PUSH32(esp, ebp); /* 0x4600E3EB: push ebp */ 827 ebp = esp; /* 0x4600E3EC: mov ebp, esp */ 828 PUSH32(esp, edi); /* 0x4600E3EE: push edi */ 829 edi = MEM32(ebp + 0x18); /* 0x4600E3EF: mov edi, dword ptr [ebp + 0x18] */ 830 /* test edi, edi */ /* 0x4600E3F2: test edi, edi */ 831 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 832 _cf = 0; 833 _flag_k = FK_TEST; 834 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E40C; /* 0x4600E3F4: jbe 0x4600e40c */ 835 L_4600E3F6: 836 PUSH32(esp, esi); /* 0x4600E3F6: push esi */ 837 esi = MEM32(ebp + 0x14); /* 0x4600E3F7: mov esi, dword ptr [ebp + 0x14] */ 838 L_4600E3FA: 839 SET_LO16(eax, MEM16(esi)); /* 0x4600E3FA: mov ax, word ptr [esi] */ 840 ecx = ebp + 0xC; /* 0x4600E3FD: lea ecx, [ebp + 0xc] */ 841 PUSH32(esp, eax); /* 0x4600E400: push eax */ 842 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E401: call 0x4601c3a2 */ /* not lifted */ 843 RECOMP_FLAGS_IN(); 844 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 845 esi = esi + 1; /* 0x4600E406: inc esi */ 846 _flag_k = FK_INC; 847 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 848 esi = esi + 1; /* 0x4600E407: inc esi */ 849 _flag_k = FK_INC; 850 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 851 edi = edi - 1; /* 0x4600E408: dec edi */ 852 _flag_k = FK_DEC; 853 RECOMP_BACKEDGE(); 854 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E3FA; /* 0x4600E409: jne 0x4600e3fa */ 855 L_4600E40B: 856 esi = POP32_VAL(esp); /* 0x4600E40B: pop esi */ 857 L_4600E40C: 858 eax = MEM32(ebp + 0x8); /* 0x4600E40C: mov eax, dword ptr [ebp + 8] */ 859 ecx = MEM32(ebp + 0xC); /* 0x4600E40F: mov ecx, dword ptr [ebp + 0xc] */ 860 edi = POP32_VAL(esp); /* 0x4600E412: pop edi */ 861 MEM32(eax) = ecx; /* 0x4600E413: mov dword ptr [eax], ecx */ 862 ecx = MEM32(ebp + 0x10); /* 0x4600E415: mov ecx, dword ptr [ebp + 0x10] */ 863 MEM32(eax + 0x4) = ecx; /* 0x4600E418: mov dword ptr [eax + 4], ecx */ 864 ebp = POP32_VAL(esp); /* 0x4600E41B: pop ebp */ 865 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E41C: ret */ 866 RECOMP_REGS_OUT(); 867 } 868 869 void sub_4600E41D(void) { 870 int _fpu_cmp = 0; 871 uint32_t _cf = 0; 872 int _df = 1; 873 uint32_t _flag_k = FK_NONE; 874 uint32_t _flag_a = 0, _flag_b = 0; 875 uint32_t _itail_tgt = 0; 876 RECOMP_REGS_LOCALS 877 RECOMP_ENTER(0x4600E41Du); 878 879 L_4600E41D: 880 PUSH32(esp, ebp); /* 0x4600E41D: push ebp */ 881 ebp = esp; /* 0x4600E41E: mov ebp, esp */ 882 PUSH32(esp, edi); /* 0x4600E420: push edi */ 883 edi = MEM32(ebp + 0x18); /* 0x4600E421: mov edi, dword ptr [ebp + 0x18] */ 884 /* test edi, edi */ /* 0x4600E424: test edi, edi */ 885 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 886 _cf = 0; 887 _flag_k = FK_TEST; 888 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E444; /* 0x4600E426: jbe 0x4600e444 */ 889 L_4600E428: 890 PUSH32(esp, esi); /* 0x4600E428: push esi */ 891 esi = MEM32(ebp + 0x14); /* 0x4600E429: mov esi, dword ptr [ebp + 0x14] */ 892 L_4600E42C: 893 eax = (int32_t)(int8_t)MEM8(esi); /* 0x4600E42C: movsx eax, byte ptr [esi] */ 894 PUSH32(esp, eax); /* 0x4600E42F: push eax */ 895 RECOMP_ICALL(0x460021A2u); /* 0x4600E430: call 0x460021a2 */ /* not lifted */ 896 RECOMP_FLAGS_IN(); 897 ecx = POP32_VAL(esp); /* 0x4600E435: pop ecx */ 898 PUSH32(esp, eax); /* 0x4600E436: push eax */ 899 ecx = ebp + 0xC; /* 0x4600E437: lea ecx, [ebp + 0xc] */ 900 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E43A: call 0x4601c3a2 */ /* not lifted */ 901 RECOMP_FLAGS_IN(); 902 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 903 esi = esi + 1; /* 0x4600E43F: inc esi */ 904 _flag_k = FK_INC; 905 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 906 edi = edi - 1; /* 0x4600E440: dec edi */ 907 _flag_k = FK_DEC; 908 RECOMP_BACKEDGE(); 909 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E42C; /* 0x4600E441: jne 0x4600e42c */ 910 L_4600E443: 911 esi = POP32_VAL(esp); /* 0x4600E443: pop esi */ 912 L_4600E444: 913 eax = MEM32(ebp + 0x8); /* 0x4600E444: mov eax, dword ptr [ebp + 8] */ 914 ecx = MEM32(ebp + 0xC); /* 0x4600E447: mov ecx, dword ptr [ebp + 0xc] */ 915 edi = POP32_VAL(esp); /* 0x4600E44A: pop edi */ 916 MEM32(eax) = ecx; /* 0x4600E44B: mov dword ptr [eax], ecx */ 917 ecx = MEM32(ebp + 0x10); /* 0x4600E44D: mov ecx, dword ptr [ebp + 0x10] */ 918 MEM32(eax + 0x4) = ecx; /* 0x4600E450: mov dword ptr [eax + 4], ecx */ 919 ebp = POP32_VAL(esp); /* 0x4600E453: pop ebp */ 920 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E454: ret */ 921 RECOMP_REGS_OUT(); 922 } 923 924 void sub_4600E455(void) { 925 int _fpu_cmp = 0; 926 uint32_t _cf = 0; 927 int _df = 1; 928 uint32_t _flag_k = FK_NONE; 929 uint32_t _flag_a = 0, _flag_b = 0; 930 uint32_t _itail_tgt = 0; 931 RECOMP_REGS_LOCALS 932 RECOMP_ENTER(0x4600E455u); 933 934 L_4600E455: 935 PUSH32(esp, ebp); /* 0x4600E455: push ebp */ 936 ebp = esp; /* 0x4600E456: mov ebp, esp */ 937 PUSH32(esp, esi); /* 0x4600E458: push esi */ 938 esi = MEM32(ebp + 0x18); /* 0x4600E459: mov esi, dword ptr [ebp + 0x18] */ 939 /* test esi, esi */ /* 0x4600E45C: test esi, esi */ 940 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 941 _cf = 0; 942 _flag_k = FK_TEST; 943 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E46E; /* 0x4600E45E: jbe 0x4600e46e */ 944 L_4600E460: 945 PUSH32(esp, MEM32(ebp + 0x14)); /* 0x4600E460: push dword ptr [ebp + 0x14] */ 946 ecx = ebp + 0xC; /* 0x4600E463: lea ecx, [ebp + 0xc] */ 947 RECOMP_ICALL(0x4601C3A2u); /* 0x4600E466: call 0x4601c3a2 */ /* not lifted */ 948 RECOMP_FLAGS_IN(); 949 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 950 esi = esi - 1; /* 0x4600E46B: dec esi */ 951 _flag_k = FK_DEC; 952 RECOMP_BACKEDGE(); 953 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600E460; /* 0x4600E46C: jne 0x4600e460 */ 954 L_4600E46E: 955 eax = MEM32(ebp + 0x8); /* 0x4600E46E: mov eax, dword ptr [ebp + 8] */ 956 ecx = MEM32(ebp + 0xC); /* 0x4600E471: mov ecx, dword ptr [ebp + 0xc] */ 957 esi = POP32_VAL(esp); /* 0x4600E474: pop esi */ 958 MEM32(eax) = ecx; /* 0x4600E475: mov dword ptr [eax], ecx */ 959 ecx = MEM32(ebp + 0x10); /* 0x4600E477: mov ecx, dword ptr [ebp + 0x10] */ 960 MEM32(eax + 0x4) = ecx; /* 0x4600E47A: mov dword ptr [eax + 4], ecx */ 961 ebp = POP32_VAL(esp); /* 0x4600E47D: pop ebp */ 962 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E47E: ret */ 963 RECOMP_REGS_OUT(); 964 } 965 966 void sub_4600E47F(void) { 967 int _fpu_cmp = 0; 968 uint32_t _cf = 0; 969 int _df = 1; 970 uint32_t _flag_k = FK_NONE; 971 uint32_t _flag_a = 0, _flag_b = 0; 972 uint32_t _itail_tgt = 0; 973 RECOMP_REGS_LOCALS 974 RECOMP_ENTER(0x4600E47Fu); 975 976 L_4600E47F: 977 eax = 0x46028A80u; /* 0x4600E47F: mov eax, 0x46028a80 */ 978 RECOMP_ICALL(0x46001535u); /* 0x4600E484: call 0x46001535 */ /* not lifted */ 979 RECOMP_FLAGS_IN(); 980 PUSH32(esp, ecx); /* 0x4600E489: push ecx */ 981 PUSH32(esp, esi); /* 0x4600E48A: push esi */ 982 esi = ecx; /* 0x4600E48B: mov esi, ecx */ 983 MEM32(ebp + (-0x10)) = esi; /* 0x4600E48D: mov dword ptr [ebp - 0x10], esi */ 984 ecx = esi + 0x34; /* 0x4600E490: lea ecx, [esi + 0x34] */ 985 RECOMP_ICALL(0x460018EBu); /* 0x4600E493: call 0x460018eb */ /* not lifted */ 986 RECOMP_FLAGS_IN(); 987 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 988 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x4600E498: and dword ptr [ebp - 4], 0 */ 989 _cf = 0; 990 _flag_k = FK_TEST; 991 ecx = esi; /* 0x4600E49C: mov ecx, esi */ 992 MEM32(esi) = 0x4602B3B8u; /* 0x4600E49E: mov dword ptr [esi], 0x4602b3b8 */ 993 RECOMP_ICALL(0x46001BE5u); /* 0x4600E4A4: call 0x46001be5 */ /* not lifted */ 994 RECOMP_FLAGS_IN(); 995 ecx = MEM32(ebp + (-0xC)); /* 0x4600E4A9: mov ecx, dword ptr [ebp - 0xc] */ 996 eax = esi; /* 0x4600E4AC: mov eax, esi */ 997 esi = POP32_VAL(esp); /* 0x4600E4AE: pop esi */ 998 MEM32(FS_BASE + (0)) = ecx; /* 0x4600E4AF: mov dword ptr fs:[0], ecx */ 999 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E4B6: leave */ 1000 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E4B7: ret */ 1001 RECOMP_REGS_OUT(); 1002 } 1003 1004 void sub_4600E4B8(void) { 1005 int _fpu_cmp = 0; 1006 uint32_t _cf = 0; 1007 int _df = 1; 1008 uint32_t _flag_k = FK_NONE; 1009 uint32_t _flag_a = 0, _flag_b = 0; 1010 uint32_t _itail_tgt = 0; 1011 RECOMP_REGS_LOCALS 1012 RECOMP_ENTER(0x4600E4B8u); 1013 1014 L_4600E4B8: 1015 eax = ecx; /* 0x4600E4B8: mov eax, ecx */ 1016 MEM32(eax) = 0x4602B3B8u; /* 0x4600E4BA: mov dword ptr [eax], 0x4602b3b8 */ 1017 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600E4C0: ret 4 */ 1018 RECOMP_REGS_OUT(); 1019 } 1020 1021 void sub_4600E4C3(void) { 1022 int _fpu_cmp = 0; 1023 uint32_t _cf = 0; 1024 int _df = 1; 1025 uint32_t _flag_k = FK_NONE; 1026 uint32_t _flag_a = 0, _flag_b = 0; 1027 uint32_t _itail_tgt = 0; 1028 RECOMP_REGS_LOCALS 1029 RECOMP_ENTER(0x4600E4C3u); 1030 1031 L_4600E4C3: 1032 PUSH32(esp, ebp); /* 0x4600E4C3: push ebp */ 1033 ebp = esp; /* 0x4600E4C4: mov ebp, esp */ 1034 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1036 esp = esp - 0x18u; /* 0x4600E4C6: sub esp, 0x18 */ 1037 _flag_k = FK_CMP; 1038 PUSH32(esp, esi); /* 0x4600E4C9: push esi */ 1039 PUSH32(esp, edi); /* 0x4600E4CA: push edi */ 1040 PUSH32(esp, MEM32(ebp + 0x14)); /* 0x4600E4CB: push dword ptr [ebp + 0x14] */ 1041 eax = MEM32(ecx); /* 0x4600E4CE: mov eax, dword ptr [ecx] */ 1042 edx = ebp + (-0x18); /* 0x4600E4D0: lea edx, [ebp - 0x18] */ 1043 PUSH32(esp, MEM32(ebp + 0x10)); /* 0x4600E4D3: push dword ptr [ebp + 0x10] */ 1044 PUSH32(esp, MEM32(ebp + 0xC)); /* 0x4600E4D6: push dword ptr [ebp + 0xc] */ 1045 PUSH32(esp, edx); /* 0x4600E4D9: push edx */ 1046 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x4600E4DA: call dword ptr [eax + 0x20] */ 1047 RECOMP_FLAGS_IN(); 1048 esi = eax; /* 0x4600E4DD: mov esi, eax */ 1049 eax = MEM32(ebp + 0x8); /* 0x4600E4DF: mov eax, dword ptr [ebp + 8] */ 1050 PUSH32(esp, 6); /* 0x4600E4E2: push 6 */ 1051 edi = eax; /* 0x4600E4E4: mov edi, eax */ 1052 ecx = POP32_VAL(esp); /* 0x4600E4E6: pop ecx */ 1053 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600E4E7: 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; } 1054 edi = POP32_VAL(esp); /* 0x4600E4E9: pop edi */ 1055 esi = POP32_VAL(esp); /* 0x4600E4EA: pop esi */ 1056 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E4EB: leave */ 1057 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4600E4EC: ret 0x10 */ 1058 RECOMP_REGS_OUT(); 1059 } 1060 1061 void sub_4600E4EF(void) { 1062 int _fpu_cmp = 0; 1063 uint32_t _cf = 0; 1064 int _df = 1; 1065 uint32_t _flag_k = FK_NONE; 1066 uint32_t _flag_a = 0, _flag_b = 0; 1067 uint32_t _itail_tgt = 0; 1068 RECOMP_REGS_LOCALS 1069 RECOMP_ENTER(0x4600E4EFu); 1070 1071 L_4600E4EF: 1072 PUSH32(esp, ebp); /* 0x4600E4EF: push ebp */ 1073 ebp = esp; /* 0x4600E4F0: mov ebp, esp */ 1074 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1076 esp = esp - 0x18u; /* 0x4600E4F2: sub esp, 0x18 */ 1077 _flag_k = FK_CMP; 1078 edx = (int32_t)(int16_t)MEM16(ebp + 0x14); /* 0x4600E4F5: movsx edx, word ptr [ebp + 0x14] */ 1079 PUSH32(esp, esi); /* 0x4600E4F9: push esi */ 1080 PUSH32(esp, edi); /* 0x4600E4FA: push edi */ 1081 PUSH32(esp, edx); /* 0x4600E4FB: push edx */ 1082 eax = MEM32(ecx); /* 0x4600E4FC: mov eax, dword ptr [ecx] */ 1083 edx = (int32_t)(int16_t)MEM16(ebp + 0x10); /* 0x4600E4FE: movsx edx, word ptr [ebp + 0x10] */ 1084 PUSH32(esp, edx); /* 0x4600E502: push edx */ 1085 edx = ebp + (-0x18); /* 0x4600E503: lea edx, [ebp - 0x18] */ 1086 PUSH32(esp, MEM32(ebp + 0xC)); /* 0x4600E506: push dword ptr [ebp + 0xc] */ 1087 PUSH32(esp, edx); /* 0x4600E509: push edx */ 1088 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x4600E50A: call dword ptr [eax + 0x20] */ 1089 RECOMP_FLAGS_IN(); 1090 esi = eax; /* 0x4600E50D: mov esi, eax */ 1091 eax = MEM32(ebp + 0x8); /* 0x4600E50F: mov eax, dword ptr [ebp + 8] */ 1092 PUSH32(esp, 6); /* 0x4600E512: push 6 */ 1093 edi = eax; /* 0x4600E514: mov edi, eax */ 1094 ecx = POP32_VAL(esp); /* 0x4600E516: pop ecx */ 1095 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600E517: 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; } 1096 edi = POP32_VAL(esp); /* 0x4600E519: pop edi */ 1097 esi = POP32_VAL(esp); /* 0x4600E51A: pop esi */ 1098 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E51B: leave */ 1099 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4600E51C: ret 0x10 */ 1100 RECOMP_REGS_OUT(); 1101 } 1102 1103 void sub_4600E51F(void) { 1104 int _fpu_cmp = 0; 1105 uint32_t _cf = 0; 1106 int _df = 1; 1107 uint32_t _flag_k = FK_NONE; 1108 uint32_t _flag_a = 0, _flag_b = 0; 1109 uint32_t _itail_tgt = 0; 1110 RECOMP_REGS_LOCALS 1111 RECOMP_ENTER(0x4600E51Fu); 1112 1113 L_4600E51F: 1114 PUSH32(esp, ebp); /* 0x4600E51F: push ebp */ 1115 ebp = esp; /* 0x4600E520: mov ebp, esp */ 1116 PUSH32(esp, esi); /* 0x4600E522: push esi */ 1117 PUSH32(esp, edi); /* 0x4600E523: push edi */ 1118 PUSH32(esp, MEM32(ebp + 0x24)); /* 0x4600E524: push dword ptr [ebp + 0x24] */ 1119 eax = ecx; /* 0x4600E527: mov eax, ecx */ 1120 esi = ebp + 0xC; /* 0x4600E529: lea esi, [ebp + 0xc] */ 1121 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1123 esp = esp - 0x18u; /* 0x4600E52C: sub esp, 0x18 */ 1124 _flag_k = FK_CMP; 1125 edx = MEM32(eax); /* 0x4600E52F: mov edx, dword ptr [eax] */ 1126 PUSH32(esp, 6); /* 0x4600E531: push 6 */ 1127 ecx = POP32_VAL(esp); /* 0x4600E533: pop ecx */ 1128 edi = esp; /* 0x4600E534: mov edi, esp */ 1129 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600E536: 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; } 1130 ecx = ebp + 0xC; /* 0x4600E538: lea ecx, [ebp + 0xc] */ 1131 PUSH32(esp, ecx); /* 0x4600E53B: push ecx */ 1132 ecx = eax; /* 0x4600E53C: mov ecx, eax */ 1133 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x4600E53E: call dword ptr [edx + 0x24] */ 1134 RECOMP_FLAGS_IN(); 1135 esi = eax; /* 0x4600E541: mov esi, eax */ 1136 eax = MEM32(ebp + 0x8); /* 0x4600E543: mov eax, dword ptr [ebp + 8] */ 1137 PUSH32(esp, 6); /* 0x4600E546: push 6 */ 1138 edi = eax; /* 0x4600E548: mov edi, eax */ 1139 ecx = POP32_VAL(esp); /* 0x4600E54A: pop ecx */ 1140 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600E54B: 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; } 1141 edi = POP32_VAL(esp); /* 0x4600E54D: pop edi */ 1142 esi = POP32_VAL(esp); /* 0x4600E54E: pop esi */ 1143 ebp = POP32_VAL(esp); /* 0x4600E54F: pop ebp */ 1144 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x4600E550: ret 0x20 */ 1145 RECOMP_REGS_OUT(); 1146 } 1147 1148 void sub_4600E553(void) { 1149 int _fpu_cmp = 0; 1150 uint32_t _cf = 0; 1151 int _df = 1; 1152 uint32_t _flag_k = FK_NONE; 1153 uint32_t _flag_a = 0, _flag_b = 0; 1154 uint32_t _itail_tgt = 0; 1155 RECOMP_REGS_LOCALS 1156 RECOMP_ENTER(0x4600E553u); 1157 1158 L_4600E553: 1159 PUSH32(esp, ebp); /* 0x4600E553: push ebp */ 1160 ebp = esp; /* 0x4600E554: mov ebp, esp */ 1161 eax = ecx; /* 0x4600E556: mov eax, ecx */ 1162 PUSH32(esp, esi); /* 0x4600E558: push esi */ 1163 ecx = (int32_t)(int16_t)MEM16(ebp + 0x24); /* 0x4600E559: movsx ecx, word ptr [ebp + 0x24] */ 1164 PUSH32(esp, edi); /* 0x4600E55D: push edi */ 1165 PUSH32(esp, ecx); /* 0x4600E55E: push ecx */ 1166 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1168 esp = esp - 0x18u; /* 0x4600E55F: sub esp, 0x18 */ 1169 _flag_k = FK_CMP; 1170 edx = MEM32(eax); /* 0x4600E562: mov edx, dword ptr [eax] */ 1171 esi = ebp + 0xC; /* 0x4600E564: lea esi, [ebp + 0xc] */ 1172 PUSH32(esp, 6); /* 0x4600E567: push 6 */ 1173 ecx = POP32_VAL(esp); /* 0x4600E569: pop ecx */ 1174 edi = esp; /* 0x4600E56A: mov edi, esp */ 1175 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600E56C: 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; } 1176 ecx = ebp + 0xC; /* 0x4600E56E: lea ecx, [ebp + 0xc] */ 1177 PUSH32(esp, ecx); /* 0x4600E571: push ecx */ 1178 ecx = eax; /* 0x4600E572: mov ecx, eax */ 1179 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x4600E574: call dword ptr [edx + 0x24] */ 1180 RECOMP_FLAGS_IN(); 1181 esi = eax; /* 0x4600E577: mov esi, eax */ 1182 eax = MEM32(ebp + 0x8); /* 0x4600E579: mov eax, dword ptr [ebp + 8] */ 1183 PUSH32(esp, 6); /* 0x4600E57C: push 6 */ 1184 edi = eax; /* 0x4600E57E: mov edi, eax */ 1185 ecx = POP32_VAL(esp); /* 0x4600E580: pop ecx */ 1186 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600E581: 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; } 1187 edi = POP32_VAL(esp); /* 0x4600E583: pop edi */ 1188 esi = POP32_VAL(esp); /* 0x4600E584: pop esi */ 1189 ebp = POP32_VAL(esp); /* 0x4600E585: pop ebp */ 1190 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x4600E586: ret 0x20 */ 1191 RECOMP_REGS_OUT(); 1192 } 1193 1194 void sub_4600E589(void) { 1195 int _fpu_cmp = 0; 1196 uint32_t _cf = 0; 1197 int _df = 1; 1198 uint32_t _flag_k = FK_NONE; 1199 uint32_t _flag_a = 0, _flag_b = 0; 1200 uint32_t _itail_tgt = 0; 1201 RECOMP_REGS_LOCALS 1202 RECOMP_ENTER(0x4600E589u); 1203 1204 L_4600E589: 1205 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600E589: push dword ptr [esp + 8] */ 1206 eax = MEM32(ecx); /* 0x4600E58D: mov eax, dword ptr [ecx] */ 1207 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600E58F: push dword ptr [esp + 8] */ 1208 RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x4600E593: call dword ptr [eax + 0x28] */ 1209 RECOMP_FLAGS_IN(); 1210 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600E596: ret 8 */ 1211 RECOMP_REGS_OUT(); 1212 } 1213 1214 void sub_4600E599(void) { 1215 int _fpu_cmp = 0; 1216 uint32_t _cf = 0; 1217 int _df = 1; 1218 uint32_t _flag_k = FK_NONE; 1219 uint32_t _flag_a = 0, _flag_b = 0; 1220 uint32_t _itail_tgt = 0; 1221 RECOMP_REGS_LOCALS 1222 RECOMP_ENTER(0x4600E599u); 1223 1224 L_4600E599: 1225 eax = 0x46028A92u; /* 0x4600E599: mov eax, 0x46028a92 */ 1226 RECOMP_ICALL(0x46001535u); /* 0x4600E59E: call 0x46001535 */ /* not lifted */ 1227 RECOMP_FLAGS_IN(); 1228 PUSH32(esp, ecx); /* 0x4600E5A3: push ecx */ 1229 PUSH32(esp, esi); /* 0x4600E5A4: push esi */ 1230 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0); 1231 MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) & 0; /* 0x4600E5A5: and dword ptr [ebp - 0x10], 0 */ 1232 _cf = 0; 1233 _flag_k = FK_TEST; 1234 esi = ecx; /* 0x4600E5A9: mov esi, ecx */ 1235 PUSH32(esp, edi); /* 0x4600E5AB: push edi */ 1236 ecx = MEM32(esi + 0x34); /* 0x4600E5AC: mov ecx, dword ptr [esi + 0x34] */ 1237 edi = esi + 0x34; /* 0x4600E5AF: lea edi, [esi + 0x34] */ 1238 MEM32(ebp + (-0x10)) = ecx; /* 0x4600E5B2: mov dword ptr [ebp - 0x10], ecx */ 1239 RECOMP_ICALL(0x46001BBFu); /* 0x4600E5B5: call 0x46001bbf */ /* not lifted */ 1240 RECOMP_FLAGS_IN(); 1241 eax = MEM32(esi); /* 0x4600E5BA: mov eax, dword ptr [esi] */ 1242 PUSH32(esp, MEM32(ebp + 0xC)); /* 0x4600E5BC: push dword ptr [ebp + 0xc] */ 1243 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 1244 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x4600E5BF: and dword ptr [ebp - 4], 0 */ 1245 _cf = 0; 1246 _flag_k = FK_TEST; 1247 ecx = esi; /* 0x4600E5C3: mov ecx, esi */ 1248 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x4600E5C5: call dword ptr [eax + 0x30] */ 1249 RECOMP_FLAGS_IN(); 1250 PUSH32(esp, MEM32(ebp + 0xC)); /* 0x4600E5C8: push dword ptr [ebp + 0xc] */ 1251 ecx = edi; /* 0x4600E5CB: mov ecx, edi */ 1252 RECOMP_ICALL(0x46004566u); /* 0x4600E5CD: call 0x46004566 */ /* not lifted */ 1253 RECOMP_FLAGS_IN(); 1254 esi = MEM32(ebp + 0x8); /* 0x4600E5D2: mov esi, dword ptr [ebp + 8] */ 1255 ecx = MEM32(ebp + (-0x10)); /* 0x4600E5D5: mov ecx, dword ptr [ebp - 0x10] */ 1256 MEM32(esi) = ecx; /* 0x4600E5D8: mov dword ptr [esi], ecx */ 1257 RECOMP_ICALL(0x46001BBFu); /* 0x4600E5DA: call 0x46001bbf */ /* not lifted */ 1258 RECOMP_FLAGS_IN(); 1259 ecx = ebp + (-0x10); /* 0x4600E5DF: lea ecx, [ebp - 0x10] */ 1260 RECOMP_ICALL(0x46001CAEu); /* 0x4600E5E2: call 0x46001cae */ /* not lifted */ 1261 RECOMP_FLAGS_IN(); 1262 ecx = MEM32(ebp + (-0xC)); /* 0x4600E5E7: mov ecx, dword ptr [ebp - 0xc] */ 1263 eax = esi; /* 0x4600E5EA: mov eax, esi */ 1264 edi = POP32_VAL(esp); /* 0x4600E5EC: pop edi */ 1265 esi = POP32_VAL(esp); /* 0x4600E5ED: pop esi */ 1266 MEM32(FS_BASE + (0)) = ecx; /* 0x4600E5EE: mov dword ptr fs:[0], ecx */ 1267 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E5F5: leave */ 1268 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600E5F6: ret 8 */ 1269 RECOMP_REGS_OUT(); 1270 } 1271 1272 void sub_4600E5F9(void) { 1273 int _fpu_cmp = 0; 1274 uint32_t _cf = 0; 1275 int _df = 1; 1276 uint32_t _flag_k = FK_NONE; 1277 uint32_t _flag_a = 0, _flag_b = 0; 1278 uint32_t _itail_tgt = 0; 1279 RECOMP_REGS_LOCALS 1280 RECOMP_ENTER(0x4600E5F9u); 1281 1282 L_4600E5F9: 1283 PUSH32(esp, ebp); /* 0x4600E5F9: push ebp */ 1284 ebp = esp; /* 0x4600E5FA: mov ebp, esp */ 1285 PUSH32(esp, ecx); /* 0x4600E5FC: push ecx */ 1286 ecx = MEM32(ecx + 0x34); /* 0x4600E5FD: mov ecx, dword ptr [ecx + 0x34] */ 1287 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 1288 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x4600E600: and dword ptr [ebp - 4], 0 */ 1289 _cf = 0; 1290 _flag_k = FK_TEST; 1291 PUSH32(esp, esi); /* 0x4600E604: push esi */ 1292 esi = MEM32(ebp + 0x8); /* 0x4600E605: mov esi, dword ptr [ebp + 8] */ 1293 MEM32(esi) = ecx; /* 0x4600E608: mov dword ptr [esi], ecx */ 1294 RECOMP_ICALL(0x46001BBFu); /* 0x4600E60A: call 0x46001bbf */ /* not lifted */ 1295 RECOMP_FLAGS_IN(); 1296 eax = esi; /* 0x4600E60F: mov eax, esi */ 1297 esi = POP32_VAL(esp); /* 0x4600E611: pop esi */ 1298 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E612: leave */ 1299 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600E613: ret 4 */ 1300 RECOMP_REGS_OUT(); 1301 } 1302 1303 void sub_4600E616(void) { 1304 int _fpu_cmp = 0; 1305 uint32_t _cf = 0; 1306 int _df = 1; 1307 uint32_t _flag_k = FK_NONE; 1308 uint32_t _flag_a = 0, _flag_b = 0; 1309 uint32_t _itail_tgt = 0; 1310 RECOMP_REGS_LOCALS 1311 RECOMP_ENTER(0x4600E616u); 1312 1313 L_4600E616: 1314 eax = MEM32(ecx + 0x1C); /* 0x4600E616: mov eax, dword ptr [ecx + 0x1c] */ 1315 eax = MEM32(eax); /* 0x4600E619: mov eax, dword ptr [eax] */ 1316 /* test eax, eax */ /* 0x4600E61B: test eax, eax */ 1317 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1318 _cf = 0; 1319 _flag_k = FK_TEST; 1320 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E630; /* 0x4600E61D: je 0x4600e630 */ 1321 L_4600E61F: 1322 edx = MEM32(ecx + 0x2C); /* 0x4600E61F: mov edx, dword ptr [ecx + 0x2c] */ 1323 PUSH32(esp, esi); /* 0x4600E622: push esi */ 1324 edx = MEM32(edx); /* 0x4600E623: mov edx, dword ptr [edx] */ 1325 esi = edx + eax; /* 0x4600E625: lea esi, [edx + eax] */ 1326 /* cmp eax, esi */ /* 0x4600E628: cmp eax, esi */ 1327 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1329 _flag_k = FK_CMP; 1330 esi = POP32_VAL(esp); /* 0x4600E62A: pop esi */ 1331 if (CMP_AE(_flag_a, _flag_b)) goto L_4600E630; /* 0x4600E62B: jae 0x4600e630 */ 1332 L_4600E62D: 1333 eax = edx; /* 0x4600E62D: mov eax, edx */ 1334 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E62F: ret */ 1335 L_4600E630: 1336 eax = MEM32(ecx); /* 0x4600E630: mov eax, dword ptr [ecx] */ 1337 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4600E632: call dword ptr [eax + 0xc] */ 1338 RECOMP_FLAGS_IN(); 1339 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E635: ret */ 1340 RECOMP_REGS_OUT(); 1341 } 1342 1343 void sub_4600E636(void) { 1344 int _fpu_cmp = 0; 1345 uint32_t _cf = 0; 1346 int _df = 1; 1347 uint32_t _flag_k = FK_NONE; 1348 uint32_t _flag_a = 0, _flag_b = 0; 1349 uint32_t _itail_tgt = 0; 1350 RECOMP_REGS_LOCALS 1351 RECOMP_ENTER(0x4600E636u); 1352 1353 L_4600E636: 1354 eax = MEM32(ecx); /* 0x4600E636: mov eax, dword ptr [ecx] */ 1355 L_4600E638: 1356 { _itail_tgt = (uint32_t)(MEM32(eax + 0x2C)); goto _ljump; } 1357 { RECOMP_REGS_OUT(); return; } /* end of function */ 1358 _ljump: 1359 switch (_itail_tgt) { 1360 case 0x4600E636u: goto L_4600E636; 1361 case 0x4600E638u: goto L_4600E638; 1362 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1363 } 1364 RECOMP_REGS_OUT(); 1365 } 1366 1367 void sub_4600E63B(void) { 1368 int _fpu_cmp = 0; 1369 uint32_t _cf = 0; 1370 int _df = 1; 1371 uint32_t _flag_k = FK_NONE; 1372 uint32_t _flag_a = 0, _flag_b = 0; 1373 uint32_t _itail_tgt = 0; 1374 RECOMP_REGS_LOCALS 1375 RECOMP_ENTER(0x4600E63Bu); 1376 1377 L_4600E63B: 1378 eax = MEM32(ecx + 0x1C); /* 0x4600E63B: mov eax, dword ptr [ecx + 0x1c] */ 1379 eax = MEM32(eax); /* 0x4600E63E: mov eax, dword ptr [eax] */ 1380 /* test eax, eax */ /* 0x4600E640: test eax, eax */ 1381 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1382 _cf = 0; 1383 _flag_k = FK_TEST; 1384 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E658; /* 0x4600E642: je 0x4600e658 */ 1385 L_4600E644: 1386 edx = MEM32(ecx + 0x2C); /* 0x4600E644: mov edx, dword ptr [ecx + 0x2c] */ 1387 edx = MEM32(edx); /* 0x4600E647: mov edx, dword ptr [edx] */ 1388 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1389 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1390 edx = edx + eax; /* 0x4600E649: add edx, eax */ 1391 _flag_k = FK_ADD; 1392 /* cmp eax, edx */ /* 0x4600E64B: cmp eax, edx */ 1393 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1395 _flag_k = FK_CMP; 1396 if (CMP_AE(_flag_a, _flag_b)) goto L_4600E658; /* 0x4600E64D: jae 0x4600e658 */ 1397 L_4600E64F: 1398 RECOMP_ICALL(0x4600E6EBu); /* 0x4600E64F: call 0x4600e6eb */ /* not lifted */ 1399 RECOMP_FLAGS_IN(); 1400 eax = (uint32_t)MEM8(eax); /* 0x4600E654: movzx eax, byte ptr [eax] */ 1401 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E657: ret */ 1402 L_4600E658: 1403 eax = MEM32(ecx); /* 0x4600E658: mov eax, dword ptr [ecx] */ 1404 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x4600E65A: call dword ptr [eax + 0x14] */ 1405 RECOMP_FLAGS_IN(); 1406 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E65D: ret */ 1407 RECOMP_REGS_OUT(); 1408 } 1409 1410 void sub_4600E65E(void) { 1411 int _fpu_cmp = 0; 1412 uint32_t _cf = 0; 1413 int _df = 1; 1414 uint32_t _flag_k = FK_NONE; 1415 uint32_t _flag_a = 0, _flag_b = 0; 1416 uint32_t _itail_tgt = 0; 1417 RECOMP_REGS_LOCALS 1418 RECOMP_ENTER(0x4600E65Eu); 1419 1420 L_4600E65E: 1421 eax = MEM32(ecx + 0x1C); /* 0x4600E65E: mov eax, dword ptr [ecx + 0x1c] */ 1422 eax = MEM32(eax); /* 0x4600E661: mov eax, dword ptr [eax] */ 1423 /* test eax, eax */ /* 0x4600E663: test eax, eax */ 1424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1425 _cf = 0; 1426 _flag_k = FK_TEST; 1427 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E676; /* 0x4600E665: je 0x4600e676 */ 1428 L_4600E667: 1429 edx = MEM32(ecx + 0x2C); /* 0x4600E667: mov edx, dword ptr [ecx + 0x2c] */ 1430 edx = MEM32(edx); /* 0x4600E66A: mov edx, dword ptr [edx] */ 1431 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1433 edx = edx + eax; /* 0x4600E66C: add edx, eax */ 1434 _flag_k = FK_ADD; 1435 /* cmp eax, edx */ /* 0x4600E66E: cmp eax, edx */ 1436 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1438 _flag_k = FK_CMP; 1439 if (CMP_AE(_flag_a, _flag_b)) goto L_4600E676; /* 0x4600E670: jae 0x4600e676 */ 1440 L_4600E672: 1441 eax = (uint32_t)MEM8(eax); /* 0x4600E672: movzx eax, byte ptr [eax] */ 1442 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E675: ret */ 1443 L_4600E676: 1444 eax = MEM32(ecx); /* 0x4600E676: mov eax, dword ptr [ecx] */ 1445 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x4600E678: call dword ptr [eax + 0x10] */ 1446 RECOMP_FLAGS_IN(); 1447 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E67B: ret */ 1448 RECOMP_REGS_OUT(); 1449 } 1450 1451 void sub_4600E67C(void) { 1452 int _fpu_cmp = 0; 1453 uint32_t _cf = 0; 1454 int _df = 1; 1455 uint32_t _flag_k = FK_NONE; 1456 uint32_t _flag_a = 0, _flag_b = 0; 1457 uint32_t _itail_tgt = 0; 1458 RECOMP_REGS_LOCALS 1459 RECOMP_ENTER(0x4600E67Cu); 1460 1461 L_4600E67C: 1462 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600E67C: push dword ptr [esp + 8] */ 1463 eax = MEM32(ecx); /* 0x4600E680: mov eax, dword ptr [ecx] */ 1464 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600E682: push dword ptr [esp + 8] */ 1465 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x4600E686: call dword ptr [eax + 0x18] */ 1466 RECOMP_FLAGS_IN(); 1467 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600E689: ret 8 */ 1468 RECOMP_REGS_OUT(); 1469 } 1470 1471 void sub_4600E68C(void) { 1472 int _fpu_cmp = 0; 1473 uint32_t _cf = 0; 1474 int _df = 1; 1475 uint32_t _flag_k = FK_NONE; 1476 uint32_t _flag_a = 0, _flag_b = 0; 1477 uint32_t _itail_tgt = 0; 1478 RECOMP_REGS_LOCALS 1479 RECOMP_ENTER(0x4600E68Cu); 1480 1481 L_4600E68C: 1482 PUSH32(esp, esi); /* 0x4600E68C: push esi */ 1483 esi = ecx; /* 0x4600E68D: mov esi, ecx */ 1484 RECOMP_ICALL(0x4600E63Bu); /* 0x4600E68F: call 0x4600e63b */ /* not lifted */ 1485 RECOMP_FLAGS_IN(); 1486 /* cmp eax, 0xFFFFFFFFu */ /* 0x4600E694: cmp eax, -1 */ 1487 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1489 _flag_k = FK_CMP; 1490 if (CMP_NE(_flag_a, _flag_b)) goto L_4600E69D; /* 0x4600E697: jne 0x4600e69d */ 1491 L_4600E699: 1492 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 1493 eax = eax | eax; /* 0x4600E699: or eax, eax */ 1494 _cf = 0; 1495 _flag_k = FK_TEST; 1496 esi = POP32_VAL(esp); /* 0x4600E69B: pop esi */ 1497 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E69C: ret */ 1498 L_4600E69D: 1499 ecx = esi; /* 0x4600E69D: mov ecx, esi */ 1500 RECOMP_ICALL(0x4600E65Eu); /* 0x4600E69F: call 0x4600e65e */ /* not lifted */ 1501 RECOMP_FLAGS_IN(); 1502 esi = POP32_VAL(esp); /* 0x4600E6A4: pop esi */ 1503 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E6A5: ret */ 1504 RECOMP_REGS_OUT(); 1505 } 1506 1507 void sub_4600E6A6(void) { 1508 int _fpu_cmp = 0; 1509 uint32_t _cf = 0; 1510 int _df = 1; 1511 uint32_t _flag_k = FK_NONE; 1512 uint32_t _flag_a = 0, _flag_b = 0; 1513 uint32_t _itail_tgt = 0; 1514 RECOMP_REGS_LOCALS 1515 RECOMP_ENTER(0x4600E6A6u); 1516 1517 L_4600E6A6: 1518 eax = MEM32(ecx + 0x1C); /* 0x4600E6A6: mov eax, dword ptr [ecx + 0x1c] */ 1519 SET_LO8(edx, MEM8(esp + 0x4)); /* 0x4600E6A9: mov dl, byte ptr [esp + 4] */ 1520 eax = MEM32(eax); /* 0x4600E6AD: mov eax, dword ptr [eax] */ 1521 /* test eax, eax */ /* 0x4600E6AF: test eax, eax */ 1522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1523 _cf = 0; 1524 _flag_k = FK_TEST; 1525 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E6CC; /* 0x4600E6B1: je 0x4600e6cc */ 1526 L_4600E6B3: 1527 PUSH32(esp, esi); /* 0x4600E6B3: push esi */ 1528 esi = MEM32(ecx + 0xC); /* 0x4600E6B4: mov esi, dword ptr [ecx + 0xc] */ 1529 /* cmp MEM32(esi), eax */ /* 0x4600E6B7: cmp dword ptr [esi], eax */ 1530 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(eax); 1531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1532 _flag_k = FK_CMP; 1533 esi = POP32_VAL(esp); /* 0x4600E6B9: pop esi */ 1534 if (CMP_AE(_flag_a, _flag_b)) goto L_4600E6CC; /* 0x4600E6BA: jae 0x4600e6cc */ 1535 L_4600E6BC: 1536 /* cmp LO8(edx), MEM8(eax + (-0x1)) */ /* 0x4600E6BC: cmp dl, byte ptr [eax - 1] */ 1537 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(eax + (-0x1))) << 24; 1538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1539 _flag_k = FK_NARROW(FK_CMP, 24); 1540 if (CMP_NE(_flag_a, _flag_b)) goto L_4600E6CC; /* 0x4600E6BF: jne 0x4600e6cc */ 1541 L_4600E6C1: 1542 RECOMP_ICALL(0x4600E7A0u); /* 0x4600E6C1: call 0x4600e7a0 */ /* not lifted */ 1543 RECOMP_FLAGS_IN(); 1544 eax = (uint32_t)MEM8(eax); /* 0x4600E6C6: movzx eax, byte ptr [eax] */ 1545 L_4600E6C9: 1546 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600E6C9: ret 4 */ 1547 L_4600E6CC: 1548 eax = MEM32(ecx); /* 0x4600E6CC: mov eax, dword ptr [ecx] */ 1549 edx = (uint32_t)LO8(edx); /* 0x4600E6CE: movzx edx, dl */ 1550 PUSH32(esp, edx); /* 0x4600E6D1: push edx */ 1551 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x4600E6D2: call dword ptr [eax + 8] */ 1552 RECOMP_FLAGS_IN(); 1553 RECOMP_BACKEDGE(); 1554 goto L_4600E6C9; /* 0x4600E6D5: jmp 0x4600e6c9 */ 1555 { RECOMP_REGS_OUT(); return; } /* end of function */ 1556 RECOMP_REGS_OUT(); 1557 } 1558 1559 void sub_4600E6D7(void) { 1560 int _fpu_cmp = 0; 1561 uint32_t _cf = 0; 1562 int _df = 1; 1563 uint32_t _flag_k = FK_NONE; 1564 uint32_t _flag_a = 0, _flag_b = 0; 1565 uint32_t _itail_tgt = 0; 1566 RECOMP_REGS_LOCALS 1567 RECOMP_ENTER(0x4600E6D7u); 1568 1569 L_4600E6D7: 1570 eax = MEM32(ecx + 0x1C); /* 0x4600E6D7: mov eax, dword ptr [ecx + 0x1c] */ 1571 L_4600E6DA: 1572 eax = MEM32(eax); /* 0x4600E6DA: mov eax, dword ptr [eax] */ 1573 L_4600E6DC: 1574 /* test eax, eax */ /* 0x4600E6DC: test eax, eax */ 1575 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1576 _cf = 0; 1577 _flag_k = FK_TEST; 1578 L_4600E6DE: 1579 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4600E6FB; /* 0x4600E6DE: je 0x4600e6fb */ 1580 L_4600E6E0: 1581 edx = MEM32(ecx + 0x2C); /* 0x4600E6E0: mov edx, dword ptr [ecx + 0x2c] */ 1582 L_4600E6E3: 1583 edx = MEM32(edx); /* 0x4600E6E3: mov edx, dword ptr [edx] */ 1584 L_4600E6E5: 1585 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1587 edx = edx + eax; /* 0x4600E6E5: add edx, eax */ 1588 _flag_k = FK_ADD; 1589 L_4600E6E7: 1590 /* cmp eax, edx */ /* 0x4600E6E7: cmp eax, edx */ 1591 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1593 _flag_k = FK_CMP; 1594 L_4600E6E9: 1595 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_AE, _cf)) goto L_4600E6FB; /* 0x4600E6E9: jae 0x4600e6fb */ 1596 L_4600E6EB: 1597 eax = MEM32(ecx + 0x2C); /* 0x4600E6EB: mov eax, dword ptr [ecx + 0x2c] */ 1598 L_4600E6EE: 1599 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1); 1600 MEM32(eax) = MEM32(eax) - 1; /* 0x4600E6EE: dec dword ptr [eax] */ 1601 _flag_k = FK_DEC; 1602 L_4600E6F0: 1603 ecx = MEM32(ecx + 0x1C); /* 0x4600E6F0: mov ecx, dword ptr [ecx + 0x1c] */ 1604 L_4600E6F3: 1605 eax = MEM32(ecx); /* 0x4600E6F3: mov eax, dword ptr [ecx] */ 1606 L_4600E6F5: 1607 edx = eax + 0x1; /* 0x4600E6F5: lea edx, [eax + 1] */ 1608 L_4600E6F8: 1609 MEM32(ecx) = edx; /* 0x4600E6F8: mov dword ptr [ecx], edx */ 1610 L_4600E6FA: 1611 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E6FA: ret */ 1612 L_4600E6FB: 1613 eax = MEM32(ecx); /* 0x4600E6FB: mov eax, dword ptr [ecx] */ 1614 L_4600E6FD: 1615 { _itail_tgt = (uint32_t)(MEM32(eax + 0x14)); goto _ljump; } 1616 { RECOMP_REGS_OUT(); return; } /* end of function */ 1617 _ljump: 1618 switch (_itail_tgt) { 1619 case 0x4600E6D7u: goto L_4600E6D7; 1620 case 0x4600E6DAu: goto L_4600E6DA; 1621 case 0x4600E6DCu: goto L_4600E6DC; 1622 case 0x4600E6DEu: goto L_4600E6DE; 1623 case 0x4600E6E0u: goto L_4600E6E0; 1624 case 0x4600E6E3u: goto L_4600E6E3; 1625 case 0x4600E6E5u: goto L_4600E6E5; 1626 case 0x4600E6E7u: goto L_4600E6E7; 1627 case 0x4600E6E9u: goto L_4600E6E9; 1628 case 0x4600E6EBu: goto L_4600E6EB; 1629 case 0x4600E6EEu: goto L_4600E6EE; 1630 case 0x4600E6F0u: goto L_4600E6F0; 1631 case 0x4600E6F3u: goto L_4600E6F3; 1632 case 0x4600E6F5u: goto L_4600E6F5; 1633 case 0x4600E6F8u: goto L_4600E6F8; 1634 case 0x4600E6FAu: goto L_4600E6FA; 1635 case 0x4600E6FBu: goto L_4600E6FB; 1636 case 0x4600E6FDu: goto L_4600E6FD; 1637 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1638 } 1639 RECOMP_REGS_OUT(); 1640 } 1641 1642 void sub_4600E6EB(void) { 1643 int _fpu_cmp = 0; 1644 uint32_t _cf = 0; 1645 int _df = 1; 1646 uint32_t _flag_k = FK_NONE; 1647 uint32_t _flag_a = 0, _flag_b = 0; 1648 uint32_t _itail_tgt = 0; 1649 RECOMP_REGS_LOCALS 1650 RECOMP_ENTER(0x4600E6EBu); 1651 1652 L_4600E6EB: 1653 eax = MEM32(ecx + 0x2C); /* 0x4600E6EB: mov eax, dword ptr [ecx + 0x2c] */ 1654 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1); 1655 MEM32(eax) = MEM32(eax) - 1; /* 0x4600E6EE: dec dword ptr [eax] */ 1656 _flag_k = FK_DEC; 1657 ecx = MEM32(ecx + 0x1C); /* 0x4600E6F0: mov ecx, dword ptr [ecx + 0x1c] */ 1658 eax = MEM32(ecx); /* 0x4600E6F3: mov eax, dword ptr [ecx] */ 1659 edx = eax + 0x1; /* 0x4600E6F5: lea edx, [eax + 1] */ 1660 MEM32(ecx) = edx; /* 0x4600E6F8: mov dword ptr [ecx], edx */ 1661 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E6FA: ret */ 1662 RECOMP_REGS_OUT(); 1663 } 1664 1665 void sub_4600E6FB(void) { 1666 int _fpu_cmp = 0; 1667 uint32_t _cf = 0; 1668 int _df = 1; 1669 uint32_t _flag_k = FK_NONE; 1670 uint32_t _flag_a = 0, _flag_b = 0; 1671 uint32_t _itail_tgt = 0; 1672 RECOMP_REGS_LOCALS 1673 RECOMP_ENTER(0x4600E6FBu); 1674 1675 L_4600E6FB: 1676 eax = MEM32(ecx); /* 0x4600E6FB: mov eax, dword ptr [ecx] */ 1677 L_4600E6FD: 1678 { _itail_tgt = (uint32_t)(MEM32(eax + 0x14)); goto _ljump; } 1679 { RECOMP_REGS_OUT(); return; } /* end of function */ 1680 _ljump: 1681 switch (_itail_tgt) { 1682 case 0x4600E6FBu: goto L_4600E6FB; 1683 case 0x4600E6FDu: goto L_4600E6FD; 1684 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1685 } 1686 RECOMP_REGS_OUT(); 1687 } 1688 1689 void sub_4600E700(void) { 1690 int _fpu_cmp = 0; 1691 uint32_t _cf = 0; 1692 int _df = 1; 1693 uint32_t _flag_k = FK_NONE; 1694 uint32_t _flag_a = 0, _flag_b = 0; 1695 uint32_t _itail_tgt = 0; 1696 RECOMP_REGS_LOCALS 1697 RECOMP_ENTER(0x4600E700u); 1698 1699 L_4600E700: 1700 eax = MEM32(ecx + 0x1C); /* 0x4600E700: mov eax, dword ptr [ecx + 0x1c] */ 1701 eax = MEM32(eax); /* 0x4600E703: mov eax, dword ptr [eax] */ 1702 /* test eax, eax */ /* 0x4600E705: test eax, eax */ 1703 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1704 _cf = 0; 1705 _flag_k = FK_TEST; 1706 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E719; /* 0x4600E707: je 0x4600e719 */ 1707 L_4600E709: 1708 edx = MEM32(ecx + 0xC); /* 0x4600E709: mov edx, dword ptr [ecx + 0xc] */ 1709 /* cmp MEM32(edx), eax */ /* 0x4600E70C: cmp dword ptr [edx], eax */ 1710 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(eax); 1711 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1712 _flag_k = FK_CMP; 1713 if (CMP_AE(_flag_a, _flag_b)) goto L_4600E719; /* 0x4600E70E: jae 0x4600e719 */ 1714 L_4600E710: 1715 RECOMP_ICALL(0x4600E7A0u); /* 0x4600E710: call 0x4600e7a0 */ /* not lifted */ 1716 RECOMP_FLAGS_IN(); 1717 eax = (uint32_t)MEM8(eax); /* 0x4600E715: movzx eax, byte ptr [eax] */ 1718 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E718: ret */ 1719 L_4600E719: 1720 eax = MEM32(ecx); /* 0x4600E719: mov eax, dword ptr [ecx] */ 1721 PUSH32(esp, 0xFFFFFFFFu); /* 0x4600E71B: push -1 */ 1722 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x4600E71D: call dword ptr [eax + 8] */ 1723 RECOMP_FLAGS_IN(); 1724 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E720: ret */ 1725 RECOMP_REGS_OUT(); 1726 } 1727 1728 void sub_4600E721(void) { 1729 int _fpu_cmp = 0; 1730 uint32_t _cf = 0; 1731 int _df = 1; 1732 uint32_t _flag_k = FK_NONE; 1733 uint32_t _flag_a = 0, _flag_b = 0; 1734 uint32_t _itail_tgt = 0; 1735 RECOMP_REGS_LOCALS 1736 RECOMP_ENTER(0x4600E721u); 1737 1738 goto L_4600E721; 1739 L_46002979: 1740 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46002979: ret 4 */ 1741 L_4600E721: 1742 edx = (uint32_t)MEM8(esp + 0x4); /* 0x4600E721: movzx edx, byte ptr [esp + 4] */ 1743 eax = MEM32(ecx); /* 0x4600E726: mov eax, dword ptr [ecx] */ 1744 PUSH32(esp, edx); /* 0x4600E728: push edx */ 1745 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4600E729: call dword ptr [eax + 4] */ 1746 RECOMP_FLAGS_IN(); 1747 RECOMP_BACKEDGE(); 1748 goto L_46002979; /* 0x4600E72C: jmp 0x46002979 */ 1749 { RECOMP_REGS_OUT(); return; } /* end of function */ 1750 RECOMP_REGS_OUT(); 1751 } 1752 1753 void sub_4600E731(void) { 1754 int _fpu_cmp = 0; 1755 uint32_t _cf = 0; 1756 int _df = 1; 1757 uint32_t _flag_k = FK_NONE; 1758 uint32_t _flag_a = 0, _flag_b = 0; 1759 uint32_t _itail_tgt = 0; 1760 RECOMP_REGS_LOCALS 1761 RECOMP_ENTER(0x4600E731u); 1762 1763 L_4600E731: 1764 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600E731: push dword ptr [esp + 8] */ 1765 eax = MEM32(ecx); /* 0x4600E735: mov eax, dword ptr [ecx] */ 1766 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600E737: push dword ptr [esp + 8] */ 1767 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x4600E73B: call dword ptr [eax + 0x1c] */ 1768 RECOMP_FLAGS_IN(); 1769 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600E73E: ret 8 */ 1770 RECOMP_REGS_OUT(); 1771 } 1772 1773 void sub_4600E741(void) { 1774 int _fpu_cmp = 0; 1775 uint32_t _cf = 0; 1776 int _df = 1; 1777 uint32_t _flag_k = FK_NONE; 1778 uint32_t _flag_a = 0, _flag_b = 0; 1779 uint32_t _itail_tgt = 0; 1780 RECOMP_REGS_LOCALS 1781 RECOMP_ENTER(0x4600E741u); 1782 1783 L_4600E741: 1784 eax = MEM32(ecx + 0xC); /* 0x4600E741: mov eax, dword ptr [ecx + 0xc] */ 1785 eax = MEM32(eax); /* 0x4600E744: mov eax, dword ptr [eax] */ 1786 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E746: ret */ 1787 RECOMP_REGS_OUT(); 1788 } 1789 1790 void sub_4600E747(void) { 1791 int _fpu_cmp = 0; 1792 uint32_t _cf = 0; 1793 int _df = 1; 1794 uint32_t _flag_k = FK_NONE; 1795 uint32_t _flag_a = 0, _flag_b = 0; 1796 uint32_t _itail_tgt = 0; 1797 RECOMP_REGS_LOCALS 1798 RECOMP_ENTER(0x4600E747u); 1799 1800 L_4600E747: 1801 eax = MEM32(ecx + 0x1C); /* 0x4600E747: mov eax, dword ptr [ecx + 0x1c] */ 1802 eax = MEM32(eax); /* 0x4600E74A: mov eax, dword ptr [eax] */ 1803 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E74C: ret */ 1804 RECOMP_REGS_OUT(); 1805 } 1806 1807 void sub_4600E74D(void) { 1808 int _fpu_cmp = 0; 1809 uint32_t _cf = 0; 1810 int _df = 1; 1811 uint32_t _flag_k = FK_NONE; 1812 uint32_t _flag_a = 0, _flag_b = 0; 1813 uint32_t _itail_tgt = 0; 1814 RECOMP_REGS_LOCALS 1815 RECOMP_ENTER(0x4600E74Du); 1816 1817 L_4600E74D: 1818 eax = MEM32(ecx + 0x10); /* 0x4600E74D: mov eax, dword ptr [ecx + 0x10] */ 1819 eax = MEM32(eax); /* 0x4600E750: mov eax, dword ptr [eax] */ 1820 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E752: ret */ 1821 RECOMP_REGS_OUT(); 1822 } 1823 1824 void sub_4600E753(void) { 1825 int _fpu_cmp = 0; 1826 uint32_t _cf = 0; 1827 int _df = 1; 1828 uint32_t _flag_k = FK_NONE; 1829 uint32_t _flag_a = 0, _flag_b = 0; 1830 uint32_t _itail_tgt = 0; 1831 RECOMP_REGS_LOCALS 1832 RECOMP_ENTER(0x4600E753u); 1833 1834 L_4600E753: 1835 eax = MEM32(ecx + 0x20); /* 0x4600E753: mov eax, dword ptr [ecx + 0x20] */ 1836 eax = MEM32(eax); /* 0x4600E756: mov eax, dword ptr [eax] */ 1837 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E758: ret */ 1838 RECOMP_REGS_OUT(); 1839 } 1840 1841 void sub_4600E759(void) { 1842 int _fpu_cmp = 0; 1843 uint32_t _cf = 0; 1844 int _df = 1; 1845 uint32_t _flag_k = FK_NONE; 1846 uint32_t _flag_a = 0, _flag_b = 0; 1847 uint32_t _itail_tgt = 0; 1848 RECOMP_REGS_LOCALS 1849 RECOMP_ENTER(0x4600E759u); 1850 1851 L_4600E759: 1852 eax = MEM32(ecx + 0x2C); /* 0x4600E759: mov eax, dword ptr [ecx + 0x2c] */ 1853 ecx = MEM32(ecx + 0x1C); /* 0x4600E75C: mov ecx, dword ptr [ecx + 0x1c] */ 1854 eax = MEM32(eax); /* 0x4600E75F: mov eax, dword ptr [eax] */ 1855 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1856 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1857 eax = eax + MEM32(ecx); /* 0x4600E761: add eax, dword ptr [ecx] */ 1858 _flag_k = FK_ADD; 1859 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E763: ret */ 1860 RECOMP_REGS_OUT(); 1861 } 1862 1863 void sub_4600E764(void) { 1864 int _fpu_cmp = 0; 1865 uint32_t _cf = 0; 1866 int _df = 1; 1867 uint32_t _flag_k = FK_NONE; 1868 uint32_t _flag_a = 0, _flag_b = 0; 1869 uint32_t _itail_tgt = 0; 1870 RECOMP_REGS_LOCALS 1871 RECOMP_ENTER(0x4600E764u); 1872 1873 L_4600E764: 1874 eax = MEM32(ecx + 0x2C); /* 0x4600E764: mov eax, dword ptr [ecx + 0x2c] */ 1875 edx = MEM32(esp + 0x4); /* 0x4600E767: mov edx, dword ptr [esp + 4] */ 1876 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edx); 1877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1878 MEM32(eax) = MEM32(eax) - edx; /* 0x4600E76B: sub dword ptr [eax], edx */ 1879 _flag_k = FK_CMP; 1880 eax = MEM32(ecx + 0x1C); /* 0x4600E76D: mov eax, dword ptr [ecx + 0x1c] */ 1881 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edx); 1882 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1883 MEM32(eax) = MEM32(eax) + edx; /* 0x4600E770: add dword ptr [eax], edx */ 1884 _flag_k = FK_ADD; 1885 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600E772: ret 4 */ 1886 RECOMP_REGS_OUT(); 1887 } 1888 1889 void sub_4600E775(void) { 1890 int _fpu_cmp = 0; 1891 uint32_t _cf = 0; 1892 int _df = 1; 1893 uint32_t _flag_k = FK_NONE; 1894 uint32_t _flag_a = 0, _flag_b = 0; 1895 uint32_t _itail_tgt = 0; 1896 RECOMP_REGS_LOCALS 1897 RECOMP_ENTER(0x4600E775u); 1898 1899 L_4600E775: 1900 eax = MEM32(ecx + 0xC); /* 0x4600E775: mov eax, dword ptr [ecx + 0xc] */ 1901 edx = MEM32(esp + 0x4); /* 0x4600E778: mov edx, dword ptr [esp + 4] */ 1902 MEM32(eax) = edx; /* 0x4600E77C: mov dword ptr [eax], edx */ 1903 edx = MEM32(ecx + 0x1C); /* 0x4600E77E: mov edx, dword ptr [ecx + 0x1c] */ 1904 eax = MEM32(esp + 0x8); /* 0x4600E781: mov eax, dword ptr [esp + 8] */ 1905 MEM32(edx) = eax; /* 0x4600E785: mov dword ptr [edx], eax */ 1906 edx = MEM32(esp + 0xC); /* 0x4600E787: mov edx, dword ptr [esp + 0xc] */ 1907 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1909 edx = edx - eax; /* 0x4600E78B: sub edx, eax */ 1910 _flag_k = FK_CMP; 1911 eax = MEM32(ecx + 0x2C); /* 0x4600E78D: mov eax, dword ptr [ecx + 0x2c] */ 1912 MEM32(eax) = edx; /* 0x4600E790: mov dword ptr [eax], edx */ 1913 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4600E792: ret 0xc */ 1914 RECOMP_REGS_OUT(); 1915 } 1916 1917 void sub_4600E795(void) { 1918 int _fpu_cmp = 0; 1919 uint32_t _cf = 0; 1920 int _df = 1; 1921 uint32_t _flag_k = FK_NONE; 1922 uint32_t _flag_a = 0, _flag_b = 0; 1923 uint32_t _itail_tgt = 0; 1924 RECOMP_REGS_LOCALS 1925 RECOMP_ENTER(0x4600E795u); 1926 1927 L_4600E795: 1928 eax = MEM32(ecx + 0x30); /* 0x4600E795: mov eax, dword ptr [ecx + 0x30] */ 1929 ecx = MEM32(ecx + 0x20); /* 0x4600E798: mov ecx, dword ptr [ecx + 0x20] */ 1930 eax = MEM32(eax); /* 0x4600E79B: mov eax, dword ptr [eax] */ 1931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1932 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1933 eax = eax + MEM32(ecx); /* 0x4600E79D: add eax, dword ptr [ecx] */ 1934 _flag_k = FK_ADD; 1935 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E79F: ret */ 1936 RECOMP_REGS_OUT(); 1937 } 1938 1939 void sub_4600E7A0(void) { 1940 int _fpu_cmp = 0; 1941 uint32_t _cf = 0; 1942 int _df = 1; 1943 uint32_t _flag_k = FK_NONE; 1944 uint32_t _flag_a = 0, _flag_b = 0; 1945 uint32_t _itail_tgt = 0; 1946 RECOMP_REGS_LOCALS 1947 RECOMP_ENTER(0x4600E7A0u); 1948 1949 L_4600E7A0: 1950 eax = MEM32(ecx + 0x2C); /* 0x4600E7A0: mov eax, dword ptr [ecx + 0x2c] */ 1951 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1); 1952 MEM32(eax) = MEM32(eax) + 1; /* 0x4600E7A3: inc dword ptr [eax] */ 1953 _flag_k = FK_INC; 1954 eax = MEM32(ecx + 0x1C); /* 0x4600E7A5: mov eax, dword ptr [ecx + 0x1c] */ 1955 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1); 1956 MEM32(eax) = MEM32(eax) - 1; /* 0x4600E7A8: dec dword ptr [eax] */ 1957 _flag_k = FK_DEC; 1958 eax = MEM32(ecx + 0x1C); /* 0x4600E7AA: mov eax, dword ptr [ecx + 0x1c] */ 1959 eax = MEM32(eax); /* 0x4600E7AD: mov eax, dword ptr [eax] */ 1960 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E7AF: ret */ 1961 RECOMP_REGS_OUT(); 1962 } 1963 1964 void sub_4600E7B0(void) { 1965 int _fpu_cmp = 0; 1966 uint32_t _cf = 0; 1967 int _df = 1; 1968 uint32_t _flag_k = FK_NONE; 1969 uint32_t _flag_a = 0, _flag_b = 0; 1970 uint32_t _itail_tgt = 0; 1971 RECOMP_REGS_LOCALS 1972 RECOMP_ENTER(0x4600E7B0u); 1973 1974 L_4600E7B0: 1975 eax = MEM32(ecx + 0x30); /* 0x4600E7B0: mov eax, dword ptr [ecx + 0x30] */ 1976 edx = MEM32(esp + 0x4); /* 0x4600E7B3: mov edx, dword ptr [esp + 4] */ 1977 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edx); 1978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1979 MEM32(eax) = MEM32(eax) - edx; /* 0x4600E7B7: sub dword ptr [eax], edx */ 1980 _flag_k = FK_CMP; 1981 eax = MEM32(ecx + 0x20); /* 0x4600E7B9: mov eax, dword ptr [ecx + 0x20] */ 1982 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edx); 1983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1984 MEM32(eax) = MEM32(eax) + edx; /* 0x4600E7BC: add dword ptr [eax], edx */ 1985 _flag_k = FK_ADD; 1986 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600E7BE: ret 4 */ 1987 RECOMP_REGS_OUT(); 1988 } 1989 1990 void sub_4600E7C1(void) { 1991 int _fpu_cmp = 0; 1992 uint32_t _cf = 0; 1993 int _df = 1; 1994 uint32_t _flag_k = FK_NONE; 1995 uint32_t _flag_a = 0, _flag_b = 0; 1996 uint32_t _itail_tgt = 0; 1997 RECOMP_REGS_LOCALS 1998 RECOMP_ENTER(0x4600E7C1u); 1999 2000 L_4600E7C1: 2001 edx = MEM32(ecx + 0x10); /* 0x4600E7C1: mov edx, dword ptr [ecx + 0x10] */ 2002 eax = MEM32(esp + 0x4); /* 0x4600E7C4: mov eax, dword ptr [esp + 4] */ 2003 MEM32(edx) = eax; /* 0x4600E7C8: mov dword ptr [edx], eax */ 2004 edx = MEM32(ecx + 0x20); /* 0x4600E7CA: mov edx, dword ptr [ecx + 0x20] */ 2005 MEM32(edx) = eax; /* 0x4600E7CD: mov dword ptr [edx], eax */ 2006 edx = MEM32(esp + 0x8); /* 0x4600E7CF: mov edx, dword ptr [esp + 8] */ 2007 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2009 edx = edx - eax; /* 0x4600E7D3: sub edx, eax */ 2010 _flag_k = FK_CMP; 2011 eax = MEM32(ecx + 0x30); /* 0x4600E7D5: mov eax, dword ptr [ecx + 0x30] */ 2012 MEM32(eax) = edx; /* 0x4600E7D8: mov dword ptr [eax], edx */ 2013 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600E7DA: ret 8 */ 2014 RECOMP_REGS_OUT(); 2015 } 2016 2017 void sub_4600E7DD(void) { 2018 int _fpu_cmp = 0; 2019 uint32_t _cf = 0; 2020 int _df = 1; 2021 uint32_t _flag_k = FK_NONE; 2022 uint32_t _flag_a = 0, _flag_b = 0; 2023 uint32_t _itail_tgt = 0; 2024 RECOMP_REGS_LOCALS 2025 RECOMP_ENTER(0x4600E7DDu); 2026 2027 L_4600E7DD: 2028 eax = MEM32(ecx + 0x10); /* 0x4600E7DD: mov eax, dword ptr [ecx + 0x10] */ 2029 edx = MEM32(esp + 0x4); /* 0x4600E7E0: mov edx, dword ptr [esp + 4] */ 2030 MEM32(eax) = edx; /* 0x4600E7E4: mov dword ptr [eax], edx */ 2031 edx = MEM32(ecx + 0x20); /* 0x4600E7E6: mov edx, dword ptr [ecx + 0x20] */ 2032 eax = MEM32(esp + 0x8); /* 0x4600E7E9: mov eax, dword ptr [esp + 8] */ 2033 MEM32(edx) = eax; /* 0x4600E7ED: mov dword ptr [edx], eax */ 2034 edx = MEM32(esp + 0xC); /* 0x4600E7EF: mov edx, dword ptr [esp + 0xc] */ 2035 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2037 edx = edx - eax; /* 0x4600E7F3: sub edx, eax */ 2038 _flag_k = FK_CMP; 2039 eax = MEM32(ecx + 0x30); /* 0x4600E7F5: mov eax, dword ptr [ecx + 0x30] */ 2040 MEM32(eax) = edx; /* 0x4600E7F8: mov dword ptr [eax], edx */ 2041 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4600E7FA: ret 0xc */ 2042 RECOMP_REGS_OUT(); 2043 } 2044 2045 void sub_4600E7FD(void) { 2046 int _fpu_cmp = 0; 2047 uint32_t _cf = 0; 2048 int _df = 1; 2049 uint32_t _flag_k = FK_NONE; 2050 uint32_t _flag_a = 0, _flag_b = 0; 2051 uint32_t _itail_tgt = 0; 2052 RECOMP_REGS_LOCALS 2053 RECOMP_ENTER(0x4600E7FDu); 2054 2055 L_4600E7FD: 2056 PUSH32(esp, ebp); /* 0x4600E7FD: push ebp */ 2057 ebp = esp; /* 0x4600E7FE: mov ebp, esp */ 2058 eax = MEM32(ebp + 0x8); /* 0x4600E800: mov eax, dword ptr [ebp + 8] */ 2059 MEM32(ecx + 0xC) = eax; /* 0x4600E803: mov dword ptr [ecx + 0xc], eax */ 2060 eax = MEM32(ebp + 0x14); /* 0x4600E806: mov eax, dword ptr [ebp + 0x14] */ 2061 MEM32(ecx + 0x10) = eax; /* 0x4600E809: mov dword ptr [ecx + 0x10], eax */ 2062 eax = MEM32(ebp + 0xC); /* 0x4600E80C: mov eax, dword ptr [ebp + 0xc] */ 2063 MEM32(ecx + 0x1C) = eax; /* 0x4600E80F: mov dword ptr [ecx + 0x1c], eax */ 2064 eax = MEM32(ebp + 0x18); /* 0x4600E812: mov eax, dword ptr [ebp + 0x18] */ 2065 MEM32(ecx + 0x20) = eax; /* 0x4600E815: mov dword ptr [ecx + 0x20], eax */ 2066 eax = MEM32(ebp + 0x10); /* 0x4600E818: mov eax, dword ptr [ebp + 0x10] */ 2067 MEM32(ecx + 0x2C) = eax; /* 0x4600E81B: mov dword ptr [ecx + 0x2c], eax */ 2068 eax = MEM32(ebp + 0x1C); /* 0x4600E81E: mov eax, dword ptr [ebp + 0x1c] */ 2069 MEM32(ecx + 0x30) = eax; /* 0x4600E821: mov dword ptr [ecx + 0x30], eax */ 2070 ebp = POP32_VAL(esp); /* 0x4600E824: pop ebp */ 2071 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x4600E825: ret 0x18 */ 2072 RECOMP_REGS_OUT(); 2073 } 2074 2075 void sub_4600E828(void) { 2076 int _fpu_cmp = 0; 2077 uint32_t _cf = 0; 2078 int _df = 1; 2079 uint32_t _flag_k = FK_NONE; 2080 uint32_t _flag_a = 0, _flag_b = 0; 2081 uint32_t _itail_tgt = 0; 2082 RECOMP_REGS_LOCALS 2083 RECOMP_ENTER(0x4600E828u); 2084 2085 L_4600E828: 2086 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2087 eax = eax | 0xFFFFFFFFu; /* 0x4600E828: or eax, 0xffffffff */ 2088 _cf = 0; 2089 _flag_k = FK_TEST; 2090 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600E82B: ret 4 */ 2091 RECOMP_REGS_OUT(); 2092 } 2093 2094 void sub_4600E82E(void) { 2095 int _fpu_cmp = 0; 2096 uint32_t _cf = 0; 2097 int _df = 1; 2098 uint32_t _flag_k = FK_NONE; 2099 uint32_t _flag_a = 0, _flag_b = 0; 2100 uint32_t _itail_tgt = 0; 2101 RECOMP_REGS_LOCALS 2102 RECOMP_ENTER(0x4600E82Eu); 2103 2104 L_4600E82E: 2105 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2106 eax = eax | 0xFFFFFFFFu; /* 0x4600E82E: or eax, 0xffffffff */ 2107 _cf = 0; 2108 _flag_k = FK_TEST; 2109 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600E831: ret 4 */ 2110 RECOMP_REGS_OUT(); 2111 } 2112 2113 void sub_4600E834(void) { 2114 int _fpu_cmp = 0; 2115 uint32_t _cf = 0; 2116 int _df = 1; 2117 uint32_t _flag_k = FK_NONE; 2118 uint32_t _flag_a = 0, _flag_b = 0; 2119 uint32_t _itail_tgt = 0; 2120 RECOMP_REGS_LOCALS 2121 RECOMP_ENTER(0x4600E834u); 2122 2123 L_4600E834: 2124 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2125 eax = 0; /* 0x4600E834: xor eax, eax */ 2126 _cf = 0; 2127 _flag_k = FK_TEST; 2128 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E836: ret */ 2129 RECOMP_REGS_OUT(); 2130 } 2131 2132 void sub_4600E837(void) { 2133 int _fpu_cmp = 0; 2134 uint32_t _cf = 0; 2135 int _df = 1; 2136 uint32_t _flag_k = FK_NONE; 2137 uint32_t _flag_a = 0, _flag_b = 0; 2138 uint32_t _itail_tgt = 0; 2139 RECOMP_REGS_LOCALS 2140 RECOMP_ENTER(0x4600E837u); 2141 2142 L_4600E837: 2143 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2144 eax = eax | 0xFFFFFFFFu; /* 0x4600E837: or eax, 0xffffffff */ 2145 _cf = 0; 2146 _flag_k = FK_TEST; 2147 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E83A: ret */ 2148 RECOMP_REGS_OUT(); 2149 } 2150 2151 void sub_4600E83B(void) { 2152 int _fpu_cmp = 0; 2153 uint32_t _cf = 0; 2154 int _df = 1; 2155 uint32_t _flag_k = FK_NONE; 2156 uint32_t _flag_a = 0, _flag_b = 0; 2157 uint32_t _itail_tgt = 0; 2158 RECOMP_REGS_LOCALS 2159 RECOMP_ENTER(0x4600E83Bu); 2160 2161 L_4600E83B: 2162 PUSH32(esp, esi); /* 0x4600E83B: push esi */ 2163 esi = ecx; /* 0x4600E83C: mov esi, ecx */ 2164 eax = MEM32(esi); /* 0x4600E83E: mov eax, dword ptr [esi] */ 2165 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x4600E840: call dword ptr [eax + 0x10] */ 2166 RECOMP_FLAGS_IN(); 2167 /* cmp eax, 0xFFFFFFFFu */ /* 0x4600E843: cmp eax, -1 */ 2168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2170 _flag_k = FK_CMP; 2171 if (CMP_NE(_flag_a, _flag_b)) goto L_4600E84C; /* 0x4600E846: jne 0x4600e84c */ 2172 L_4600E848: 2173 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 2174 eax = eax | eax; /* 0x4600E848: or eax, eax */ 2175 _cf = 0; 2176 _flag_k = FK_TEST; 2177 esi = POP32_VAL(esp); /* 0x4600E84A: pop esi */ 2178 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E84B: ret */ 2179 L_4600E84C: 2180 ecx = esi; /* 0x4600E84C: mov ecx, esi */ 2181 RECOMP_ICALL(0x4600E6EBu); /* 0x4600E84E: call 0x4600e6eb */ /* not lifted */ 2182 RECOMP_FLAGS_IN(); 2183 eax = (uint32_t)MEM8(eax); /* 0x4600E853: movzx eax, byte ptr [eax] */ 2184 esi = POP32_VAL(esp); /* 0x4600E856: pop esi */ 2185 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E857: ret */ 2186 RECOMP_REGS_OUT(); 2187 } 2188 2189 void sub_4600E858(void) { 2190 int _fpu_cmp = 0; 2191 uint32_t _cf = 0; 2192 int _df = 1; 2193 uint32_t _flag_k = FK_NONE; 2194 uint32_t _flag_a = 0, _flag_b = 0; 2195 uint32_t _itail_tgt = 0; 2196 RECOMP_REGS_LOCALS 2197 RECOMP_ENTER(0x4600E858u); 2198 2199 L_4600E858: 2200 PUSH32(esp, ebp); /* 0x4600E858: push ebp */ 2201 ebp = esp; /* 0x4600E859: mov ebp, esp */ 2202 PUSH32(esp, ecx); /* 0x4600E85B: push ecx */ 2203 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2204 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x4600E85C: and dword ptr [ebp - 4], 0 */ 2205 _cf = 0; 2206 _flag_k = FK_TEST; 2207 /* cmp MEM32(ebp + 0xC), 0 */ /* 0x4600E860: cmp dword ptr [ebp + 0xc], 0 */ 2208 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(0); 2209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2210 _flag_k = FK_CMP; 2211 PUSH32(esp, edi); /* 0x4600E864: push edi */ 2212 edi = ecx; /* 0x4600E865: mov edi, ecx */ 2213 if (CMP_LE(_flag_a, _flag_b)) goto L_4600E8AD; /* 0x4600E867: jle 0x4600e8ad */ 2214 L_4600E869: 2215 PUSH32(esp, ebx); /* 0x4600E869: push ebx */ 2216 ebx = MEM32(ebp + 0x8); /* 0x4600E86A: mov ebx, dword ptr [ebp + 8] */ 2217 PUSH32(esp, esi); /* 0x4600E86D: push esi */ 2218 L_4600E86E: 2219 eax = MEM32(edi + 0x1C); /* 0x4600E86E: mov eax, dword ptr [edi + 0x1c] */ 2220 eax = MEM32(eax); /* 0x4600E871: mov eax, dword ptr [eax] */ 2221 /* test eax, eax */ /* 0x4600E873: test eax, eax */ 2222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2223 _cf = 0; 2224 _flag_k = FK_TEST; 2225 if (TEST_Z(_flag_a, _flag_b)) goto L_4600E8B5; /* 0x4600E875: je 0x4600e8b5 */ 2226 L_4600E877: 2227 ecx = MEM32(edi + 0x2C); /* 0x4600E877: mov ecx, dword ptr [edi + 0x2c] */ 2228 esi = MEM32(ecx); /* 0x4600E87A: mov esi, dword ptr [ecx] */ 2229 /* test esi, esi */ /* 0x4600E87C: test esi, esi */ 2230 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2231 _cf = 0; 2232 _flag_k = FK_TEST; 2233 if (TEST_LE(_flag_a, _flag_b)) goto L_4600E8B5; /* 0x4600E87E: jle 0x4600e8b5 */ 2234 L_4600E880: 2235 /* cmp MEM32(ebp + 0xC), esi */ /* 0x4600E880: cmp dword ptr [ebp + 0xc], esi */ 2236 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(esi); 2237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2238 _flag_k = FK_CMP; 2239 if (CMP_GE(_flag_a, _flag_b)) goto L_4600E888; /* 0x4600E883: jge 0x4600e888 */ 2240 L_4600E885: 2241 esi = MEM32(ebp + 0xC); /* 0x4600E885: mov esi, dword ptr [ebp + 0xc] */ 2242 L_4600E888: 2243 PUSH32(esp, esi); /* 0x4600E888: push esi */ 2244 PUSH32(esp, eax); /* 0x4600E889: push eax */ 2245 PUSH32(esp, ebx); /* 0x4600E88A: push ebx */ 2246 RECOMP_ICALL(0x46001BB9u); /* 0x4600E88B: call 0x46001bb9 */ /* not lifted */ 2247 RECOMP_FLAGS_IN(); 2248 eax = MEM32(edi + 0x2C); /* 0x4600E890: mov eax, dword ptr [edi + 0x2c] */ 2249 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(esi); 2250 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2251 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + esi; /* 0x4600E893: add dword ptr [ebp - 4], esi */ 2252 _flag_k = FK_ADD; 2253 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(esi); 2254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2255 MEM32(ebp + 0xC) = MEM32(ebp + 0xC) - esi; /* 0x4600E896: sub dword ptr [ebp + 0xc], esi */ 2256 _flag_k = FK_CMP; 2257 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2259 esp = esp + 0xCu; /* 0x4600E899: add esp, 0xc */ 2260 _flag_k = FK_ADD; 2261 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(esi); 2262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2263 MEM32(eax) = MEM32(eax) - esi; /* 0x4600E89C: sub dword ptr [eax], esi */ 2264 _flag_k = FK_CMP; 2265 eax = MEM32(edi + 0x1C); /* 0x4600E89E: mov eax, dword ptr [edi + 0x1c] */ 2266 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 2267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2268 ebx = ebx + esi; /* 0x4600E8A1: add ebx, esi */ 2269 _flag_k = FK_ADD; 2270 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(esi); 2271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2272 MEM32(eax) = MEM32(eax) + esi; /* 0x4600E8A3: add dword ptr [eax], esi */ 2273 _flag_k = FK_ADD; 2274 L_4600E8A5: 2275 /* cmp MEM32(ebp + 0xC), 0 */ /* 0x4600E8A5: cmp dword ptr [ebp + 0xc], 0 */ 2276 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(0); 2277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2278 _flag_k = FK_CMP; 2279 RECOMP_BACKEDGE(); 2280 if (CMP_G(_flag_a, _flag_b)) goto L_4600E86E; /* 0x4600E8A9: jg 0x4600e86e */ 2281 L_4600E8AB: 2282 esi = POP32_VAL(esp); /* 0x4600E8AB: pop esi */ 2283 ebx = POP32_VAL(esp); /* 0x4600E8AC: pop ebx */ 2284 L_4600E8AD: 2285 eax = MEM32(ebp + (-0x4)); /* 0x4600E8AD: mov eax, dword ptr [ebp - 4] */ 2286 edi = POP32_VAL(esp); /* 0x4600E8B0: pop edi */ 2287 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E8B1: leave */ 2288 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600E8B2: ret 8 */ 2289 L_4600E8B5: 2290 eax = MEM32(edi); /* 0x4600E8B5: mov eax, dword ptr [edi] */ 2291 ecx = edi; /* 0x4600E8B7: mov ecx, edi */ 2292 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x4600E8B9: call dword ptr [eax + 0x14] */ 2293 RECOMP_FLAGS_IN(); 2294 /* cmp eax, 0xFFFFFFFFu */ /* 0x4600E8BC: cmp eax, -1 */ 2295 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2297 _flag_k = FK_CMP; 2298 RECOMP_BACKEDGE(); 2299 if (CMP_EQ(_flag_a, _flag_b)) goto L_4600E8AB; /* 0x4600E8BF: je 0x4600e8ab */ 2300 L_4600E8C1: 2301 MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x4600E8C1: mov byte ptr [ebx], al */ 2302 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 2303 ebx = ebx + 1; /* 0x4600E8C3: inc ebx */ 2304 _flag_k = FK_INC; 2305 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(1); 2306 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 1; /* 0x4600E8C4: inc dword ptr [ebp - 4] */ 2307 _flag_k = FK_INC; 2308 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(1); 2309 MEM32(ebp + 0xC) = MEM32(ebp + 0xC) - 1; /* 0x4600E8C7: dec dword ptr [ebp + 0xc] */ 2310 _flag_k = FK_DEC; 2311 RECOMP_BACKEDGE(); 2312 goto L_4600E8A5; /* 0x4600E8CA: jmp 0x4600e8a5 */ 2313 { RECOMP_REGS_OUT(); return; } /* end of function */ 2314 RECOMP_REGS_OUT(); 2315 } 2316 2317 void sub_4600E8CC(void) { 2318 int _fpu_cmp = 0; 2319 uint32_t _cf = 0; 2320 int _df = 1; 2321 uint32_t _flag_k = FK_NONE; 2322 uint32_t _flag_a = 0, _flag_b = 0; 2323 uint32_t _itail_tgt = 0; 2324 RECOMP_REGS_LOCALS 2325 RECOMP_ENTER(0x4600E8CCu); 2326 2327 L_4600E8CC: 2328 PUSH32(esp, ebp); /* 0x4600E8CC: push ebp */ 2329 ebp = esp; /* 0x4600E8CD: mov ebp, esp */ 2330 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 2331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2332 esp = esp - 0x18u; /* 0x4600E8CF: sub esp, 0x18 */ 2333 _flag_k = FK_CMP; 2334 PUSH32(esp, esi); /* 0x4600E8D2: push esi */ 2335 PUSH32(esp, edi); /* 0x4600E8D3: push edi */ 2336 PUSH32(esp, 0xFFFFFFFFu); /* 0x4600E8D4: push -1 */ 2337 ecx = ebp + (-0x18); /* 0x4600E8D6: lea ecx, [ebp - 0x18] */ 2338 RECOMP_ICALL(0x4601C3C4u); /* 0x4600E8D9: call 0x4601c3c4 */ /* not lifted */ 2339 RECOMP_FLAGS_IN(); 2340 esi = eax; /* 0x4600E8DE: mov esi, eax */ 2341 eax = MEM32(ebp + 0x8); /* 0x4600E8E0: mov eax, dword ptr [ebp + 8] */ 2342 PUSH32(esp, 6); /* 0x4600E8E3: push 6 */ 2343 edi = eax; /* 0x4600E8E5: mov edi, eax */ 2344 ecx = POP32_VAL(esp); /* 0x4600E8E7: pop ecx */ 2345 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600E8E8: 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; } 2346 edi = POP32_VAL(esp); /* 0x4600E8EA: pop edi */ 2347 esi = POP32_VAL(esp); /* 0x4600E8EB: pop esi */ 2348 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E8EC: leave */ 2349 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4600E8ED: ret 0x10 */ 2350 RECOMP_REGS_OUT(); 2351 } 2352 2353 void sub_4600E8F0(void) { 2354 int _fpu_cmp = 0; 2355 uint32_t _cf = 0; 2356 int _df = 1; 2357 uint32_t _flag_k = FK_NONE; 2358 uint32_t _flag_a = 0, _flag_b = 0; 2359 uint32_t _itail_tgt = 0; 2360 RECOMP_REGS_LOCALS 2361 RECOMP_ENTER(0x4600E8F0u); 2362 2363 L_4600E8F0: 2364 PUSH32(esp, ebp); /* 0x4600E8F0: push ebp */ 2365 ebp = esp; /* 0x4600E8F1: mov ebp, esp */ 2366 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 2367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2368 esp = esp - 0x18u; /* 0x4600E8F3: sub esp, 0x18 */ 2369 _flag_k = FK_CMP; 2370 PUSH32(esp, esi); /* 0x4600E8F6: push esi */ 2371 PUSH32(esp, edi); /* 0x4600E8F7: push edi */ 2372 PUSH32(esp, 0xFFFFFFFFu); /* 0x4600E8F8: push -1 */ 2373 ecx = ebp + (-0x18); /* 0x4600E8FA: lea ecx, [ebp - 0x18] */ 2374 RECOMP_ICALL(0x4601C3C4u); /* 0x4600E8FD: call 0x4601c3c4 */ /* not lifted */ 2375 RECOMP_FLAGS_IN(); 2376 esi = eax; /* 0x4600E902: mov esi, eax */ 2377 eax = MEM32(ebp + 0x8); /* 0x4600E904: mov eax, dword ptr [ebp + 8] */ 2378 PUSH32(esp, 6); /* 0x4600E907: push 6 */ 2379 edi = eax; /* 0x4600E909: mov edi, eax */ 2380 ecx = POP32_VAL(esp); /* 0x4600E90B: pop ecx */ 2381 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600E90C: 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; } 2382 edi = POP32_VAL(esp); /* 0x4600E90E: pop edi */ 2383 esi = POP32_VAL(esp); /* 0x4600E90F: pop esi */ 2384 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E910: leave */ 2385 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x4600E911: ret 0x20 */ 2386 RECOMP_REGS_OUT(); 2387 } 2388 2389 void sub_4600E914(void) { 2390 int _fpu_cmp = 0; 2391 uint32_t _cf = 0; 2392 int _df = 1; 2393 uint32_t _flag_k = FK_NONE; 2394 uint32_t _flag_a = 0, _flag_b = 0; 2395 uint32_t _itail_tgt = 0; 2396 RECOMP_REGS_LOCALS 2397 RECOMP_ENTER(0x4600E914u); 2398 2399 L_4600E914: 2400 eax = ecx; /* 0x4600E914: mov eax, ecx */ 2401 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600E916: ret 8 */ 2402 RECOMP_REGS_OUT(); 2403 } 2404 2405 void sub_4600E919(void) { 2406 int _fpu_cmp = 0; 2407 uint32_t _cf = 0; 2408 int _df = 1; 2409 uint32_t _flag_k = FK_NONE; 2410 uint32_t _flag_a = 0, _flag_b = 0; 2411 uint32_t _itail_tgt = 0; 2412 RECOMP_REGS_LOCALS 2413 RECOMP_ENTER(0x4600E919u); 2414 2415 L_4600E919: 2416 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2417 eax = 0; /* 0x4600E919: xor eax, eax */ 2418 _cf = 0; 2419 _flag_k = FK_TEST; 2420 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E91B: ret */ 2421 RECOMP_REGS_OUT(); 2422 } 2423 2424 void sub_4600E91C(void) { 2425 int _fpu_cmp = 0; 2426 uint32_t _cf = 0; 2427 int _df = 1; 2428 uint32_t _flag_k = FK_NONE; 2429 uint32_t _flag_a = 0, _flag_b = 0; 2430 uint32_t _itail_tgt = 0; 2431 RECOMP_REGS_LOCALS 2432 RECOMP_ENTER(0x4600E91Cu); 2433 2434 L_4600E91C: 2435 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600E91C: ret 4 */ 2436 RECOMP_REGS_OUT(); 2437 } 2438 2439 void sub_4600E91F(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(0x4600E91Fu); 2448 2449 L_4600E91F: 2450 eax = 0x46028AA7u; /* 0x4600E91F: mov eax, 0x46028aa7 */ 2451 RECOMP_ICALL(0x46001535u); /* 0x4600E924: call 0x46001535 */ /* not lifted */ 2452 RECOMP_FLAGS_IN(); 2453 PUSH32(esp, ecx); /* 0x4600E929: push ecx */ 2454 PUSH32(esp, esi); /* 0x4600E92A: push esi */ 2455 esi = ecx; /* 0x4600E92B: mov esi, ecx */ 2456 MEM32(ebp + (-0x10)) = esi; /* 0x4600E92D: mov dword ptr [ebp - 0x10], esi */ 2457 ecx = esi + 0x34; /* 0x4600E930: lea ecx, [esi + 0x34] */ 2458 RECOMP_ICALL(0x460018EBu); /* 0x4600E933: call 0x460018eb */ /* not lifted */ 2459 RECOMP_FLAGS_IN(); 2460 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2461 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x4600E938: and dword ptr [ebp - 4], 0 */ 2462 _cf = 0; 2463 _flag_k = FK_TEST; 2464 ecx = esi; /* 0x4600E93C: mov ecx, esi */ 2465 MEM32(esi) = 0x4602B4D0u; /* 0x4600E93E: mov dword ptr [esi], 0x4602b4d0 */ 2466 RECOMP_ICALL(0x46002065u); /* 0x4600E944: call 0x46002065 */ /* not lifted */ 2467 RECOMP_FLAGS_IN(); 2468 ecx = MEM32(ebp + (-0xC)); /* 0x4600E949: mov ecx, dword ptr [ebp - 0xc] */ 2469 eax = esi; /* 0x4600E94C: mov eax, esi */ 2470 esi = POP32_VAL(esp); /* 0x4600E94E: pop esi */ 2471 MEM32(FS_BASE + (0)) = ecx; /* 0x4600E94F: mov dword ptr fs:[0], ecx */ 2472 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E956: leave */ 2473 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600E957: ret */ 2474 RECOMP_REGS_OUT(); 2475 } 2476 2477 void sub_4600E958(void) { 2478 int _fpu_cmp = 0; 2479 uint32_t _cf = 0; 2480 int _df = 1; 2481 uint32_t _flag_k = FK_NONE; 2482 uint32_t _flag_a = 0, _flag_b = 0; 2483 uint32_t _itail_tgt = 0; 2484 RECOMP_REGS_LOCALS 2485 RECOMP_ENTER(0x4600E958u); 2486 2487 L_4600E958: 2488 eax = ecx; /* 0x4600E958: mov eax, ecx */ 2489 MEM32(eax) = 0x4602B4D0u; /* 0x4600E95A: mov dword ptr [eax], 0x4602b4d0 */ 2490 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600E960: ret 4 */ 2491 RECOMP_REGS_OUT(); 2492 } 2493 2494 void sub_4600E963(void) { 2495 int _fpu_cmp = 0; 2496 uint32_t _cf = 0; 2497 int _df = 1; 2498 uint32_t _flag_k = FK_NONE; 2499 uint32_t _flag_a = 0, _flag_b = 0; 2500 uint32_t _itail_tgt = 0; 2501 RECOMP_REGS_LOCALS 2502 RECOMP_ENTER(0x4600E963u); 2503 2504 L_4600E963: 2505 PUSH32(esp, ebp); /* 0x4600E963: push ebp */ 2506 ebp = esp; /* 0x4600E964: mov ebp, esp */ 2507 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 2508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2509 esp = esp - 0x18u; /* 0x4600E966: sub esp, 0x18 */ 2510 _flag_k = FK_CMP; 2511 PUSH32(esp, esi); /* 0x4600E969: push esi */ 2512 PUSH32(esp, edi); /* 0x4600E96A: push edi */ 2513 PUSH32(esp, MEM32(ebp + 0x14)); /* 0x4600E96B: push dword ptr [ebp + 0x14] */ 2514 eax = MEM32(ecx); /* 0x4600E96E: mov eax, dword ptr [ecx] */ 2515 edx = ebp + (-0x18); /* 0x4600E970: lea edx, [ebp - 0x18] */ 2516 PUSH32(esp, MEM32(ebp + 0x10)); /* 0x4600E973: push dword ptr [ebp + 0x10] */ 2517 PUSH32(esp, MEM32(ebp + 0xC)); /* 0x4600E976: push dword ptr [ebp + 0xc] */ 2518 PUSH32(esp, edx); /* 0x4600E979: push edx */ 2519 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x4600E97A: call dword ptr [eax + 0x20] */ 2520 RECOMP_FLAGS_IN(); 2521 esi = eax; /* 0x4600E97D: mov esi, eax */ 2522 eax = MEM32(ebp + 0x8); /* 0x4600E97F: mov eax, dword ptr [ebp + 8] */ 2523 PUSH32(esp, 6); /* 0x4600E982: push 6 */ 2524 edi = eax; /* 0x4600E984: mov edi, eax */ 2525 ecx = POP32_VAL(esp); /* 0x4600E986: pop ecx */ 2526 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600E987: 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; } 2527 edi = POP32_VAL(esp); /* 0x4600E989: pop edi */ 2528 esi = POP32_VAL(esp); /* 0x4600E98A: pop esi */ 2529 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E98B: leave */ 2530 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4600E98C: ret 0x10 */ 2531 RECOMP_REGS_OUT(); 2532 } 2533 2534 void sub_4600E98F(void) { 2535 int _fpu_cmp = 0; 2536 uint32_t _cf = 0; 2537 int _df = 1; 2538 uint32_t _flag_k = FK_NONE; 2539 uint32_t _flag_a = 0, _flag_b = 0; 2540 uint32_t _itail_tgt = 0; 2541 RECOMP_REGS_LOCALS 2542 RECOMP_ENTER(0x4600E98Fu); 2543 2544 L_4600E98F: 2545 PUSH32(esp, ebp); /* 0x4600E98F: push ebp */ 2546 ebp = esp; /* 0x4600E990: mov ebp, esp */ 2547 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 2548 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2549 esp = esp - 0x18u; /* 0x4600E992: sub esp, 0x18 */ 2550 _flag_k = FK_CMP; 2551 edx = (int32_t)(int16_t)MEM16(ebp + 0x14); /* 0x4600E995: movsx edx, word ptr [ebp + 0x14] */ 2552 PUSH32(esp, esi); /* 0x4600E999: push esi */ 2553 PUSH32(esp, edi); /* 0x4600E99A: push edi */ 2554 PUSH32(esp, edx); /* 0x4600E99B: push edx */ 2555 eax = MEM32(ecx); /* 0x4600E99C: mov eax, dword ptr [ecx] */ 2556 edx = (int32_t)(int16_t)MEM16(ebp + 0x10); /* 0x4600E99E: movsx edx, word ptr [ebp + 0x10] */ 2557 PUSH32(esp, edx); /* 0x4600E9A2: push edx */ 2558 edx = ebp + (-0x18); /* 0x4600E9A3: lea edx, [ebp - 0x18] */ 2559 PUSH32(esp, MEM32(ebp + 0xC)); /* 0x4600E9A6: push dword ptr [ebp + 0xc] */ 2560 PUSH32(esp, edx); /* 0x4600E9A9: push edx */ 2561 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x4600E9AA: call dword ptr [eax + 0x20] */ 2562 RECOMP_FLAGS_IN(); 2563 esi = eax; /* 0x4600E9AD: mov esi, eax */ 2564 eax = MEM32(ebp + 0x8); /* 0x4600E9AF: mov eax, dword ptr [ebp + 8] */ 2565 PUSH32(esp, 6); /* 0x4600E9B2: push 6 */ 2566 edi = eax; /* 0x4600E9B4: mov edi, eax */ 2567 ecx = POP32_VAL(esp); /* 0x4600E9B6: pop ecx */ 2568 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600E9B7: 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; } 2569 edi = POP32_VAL(esp); /* 0x4600E9B9: pop edi */ 2570 esi = POP32_VAL(esp); /* 0x4600E9BA: pop esi */ 2571 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600E9BB: leave */ 2572 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4600E9BC: ret 0x10 */ 2573 RECOMP_REGS_OUT(); 2574 } 2575 2576 void sub_4600E9BF(void) { 2577 int _fpu_cmp = 0; 2578 uint32_t _cf = 0; 2579 int _df = 1; 2580 uint32_t _flag_k = FK_NONE; 2581 uint32_t _flag_a = 0, _flag_b = 0; 2582 uint32_t _itail_tgt = 0; 2583 RECOMP_REGS_LOCALS 2584 RECOMP_ENTER(0x4600E9BFu); 2585 2586 L_4600E9BF: 2587 PUSH32(esp, ebp); /* 0x4600E9BF: push ebp */ 2588 ebp = esp; /* 0x4600E9C0: mov ebp, esp */ 2589 PUSH32(esp, esi); /* 0x4600E9C2: push esi */ 2590 PUSH32(esp, edi); /* 0x4600E9C3: push edi */ 2591 PUSH32(esp, MEM32(ebp + 0x24)); /* 0x4600E9C4: push dword ptr [ebp + 0x24] */ 2592 eax = ecx; /* 0x4600E9C7: mov eax, ecx */ 2593 esi = ebp + 0xC; /* 0x4600E9C9: lea esi, [ebp + 0xc] */ 2594 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 2595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2596 esp = esp - 0x18u; /* 0x4600E9CC: sub esp, 0x18 */ 2597 _flag_k = FK_CMP; 2598 edx = MEM32(eax); /* 0x4600E9CF: mov edx, dword ptr [eax] */ 2599 PUSH32(esp, 6); /* 0x4600E9D1: push 6 */ 2600 ecx = POP32_VAL(esp); /* 0x4600E9D3: pop ecx */ 2601 edi = esp; /* 0x4600E9D4: mov edi, esp */ 2602 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600E9D6: 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; } 2603 ecx = ebp + 0xC; /* 0x4600E9D8: lea ecx, [ebp + 0xc] */ 2604 PUSH32(esp, ecx); /* 0x4600E9DB: push ecx */ 2605 ecx = eax; /* 0x4600E9DC: mov ecx, eax */ 2606 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x4600E9DE: call dword ptr [edx + 0x24] */ 2607 RECOMP_FLAGS_IN(); 2608 esi = eax; /* 0x4600E9E1: mov esi, eax */ 2609 eax = MEM32(ebp + 0x8); /* 0x4600E9E3: mov eax, dword ptr [ebp + 8] */ 2610 PUSH32(esp, 6); /* 0x4600E9E6: push 6 */ 2611 edi = eax; /* 0x4600E9E8: mov edi, eax */ 2612 ecx = POP32_VAL(esp); /* 0x4600E9EA: pop ecx */ 2613 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600E9EB: 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; } 2614 edi = POP32_VAL(esp); /* 0x4600E9ED: pop edi */ 2615 esi = POP32_VAL(esp); /* 0x4600E9EE: pop esi */ 2616 ebp = POP32_VAL(esp); /* 0x4600E9EF: pop ebp */ 2617 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x4600E9F0: ret 0x20 */ 2618 RECOMP_REGS_OUT(); 2619 } 2620 2621 void sub_4600E9F3(void) { 2622 int _fpu_cmp = 0; 2623 uint32_t _cf = 0; 2624 int _df = 1; 2625 uint32_t _flag_k = FK_NONE; 2626 uint32_t _flag_a = 0, _flag_b = 0; 2627 uint32_t _itail_tgt = 0; 2628 RECOMP_REGS_LOCALS 2629 RECOMP_ENTER(0x4600E9F3u); 2630 2631 L_4600E9F3: 2632 PUSH32(esp, ebp); /* 0x4600E9F3: push ebp */ 2633 ebp = esp; /* 0x4600E9F4: mov ebp, esp */ 2634 eax = ecx; /* 0x4600E9F6: mov eax, ecx */ 2635 PUSH32(esp, esi); /* 0x4600E9F8: push esi */ 2636 ecx = (int32_t)(int16_t)MEM16(ebp + 0x24); /* 0x4600E9F9: movsx ecx, word ptr [ebp + 0x24] */ 2637 PUSH32(esp, edi); /* 0x4600E9FD: push edi */ 2638 PUSH32(esp, ecx); /* 0x4600E9FE: push ecx */ 2639 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 2640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2641 esp = esp - 0x18u; /* 0x4600E9FF: sub esp, 0x18 */ 2642 _flag_k = FK_CMP; 2643 edx = MEM32(eax); /* 0x4600EA02: mov edx, dword ptr [eax] */ 2644 esi = ebp + 0xC; /* 0x4600EA04: lea esi, [ebp + 0xc] */ 2645 PUSH32(esp, 6); /* 0x4600EA07: push 6 */ 2646 ecx = POP32_VAL(esp); /* 0x4600EA09: pop ecx */ 2647 edi = esp; /* 0x4600EA0A: mov edi, esp */ 2648 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600EA0C: 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; } 2649 ecx = ebp + 0xC; /* 0x4600EA0E: lea ecx, [ebp + 0xc] */ 2650 PUSH32(esp, ecx); /* 0x4600EA11: push ecx */ 2651 ecx = eax; /* 0x4600EA12: mov ecx, eax */ 2652 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x4600EA14: call dword ptr [edx + 0x24] */ 2653 RECOMP_FLAGS_IN(); 2654 esi = eax; /* 0x4600EA17: mov esi, eax */ 2655 eax = MEM32(ebp + 0x8); /* 0x4600EA19: mov eax, dword ptr [ebp + 8] */ 2656 PUSH32(esp, 6); /* 0x4600EA1C: push 6 */ 2657 edi = eax; /* 0x4600EA1E: mov edi, eax */ 2658 ecx = POP32_VAL(esp); /* 0x4600EA20: pop ecx */ 2659 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600EA21: 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; } 2660 edi = POP32_VAL(esp); /* 0x4600EA23: pop edi */ 2661 esi = POP32_VAL(esp); /* 0x4600EA24: pop esi */ 2662 ebp = POP32_VAL(esp); /* 0x4600EA25: pop ebp */ 2663 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x4600EA26: ret 0x20 */ 2664 RECOMP_REGS_OUT(); 2665 } 2666 2667 void sub_4600EA29(void) { 2668 int _fpu_cmp = 0; 2669 uint32_t _cf = 0; 2670 int _df = 1; 2671 uint32_t _flag_k = FK_NONE; 2672 uint32_t _flag_a = 0, _flag_b = 0; 2673 uint32_t _itail_tgt = 0; 2674 RECOMP_REGS_LOCALS 2675 RECOMP_ENTER(0x4600EA29u); 2676 2677 L_4600EA29: 2678 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600EA29: push dword ptr [esp + 8] */ 2679 eax = MEM32(ecx); /* 0x4600EA2D: mov eax, dword ptr [ecx] */ 2680 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600EA2F: push dword ptr [esp + 8] */ 2681 RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x4600EA33: call dword ptr [eax + 0x28] */ 2682 RECOMP_FLAGS_IN(); 2683 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600EA36: ret 8 */ 2684 RECOMP_REGS_OUT(); 2685 } 2686 2687 void sub_4600EA39(void) { 2688 int _fpu_cmp = 0; 2689 uint32_t _cf = 0; 2690 int _df = 1; 2691 uint32_t _flag_k = FK_NONE; 2692 uint32_t _flag_a = 0, _flag_b = 0; 2693 uint32_t _itail_tgt = 0; 2694 RECOMP_REGS_LOCALS 2695 RECOMP_ENTER(0x4600EA39u); 2696 2697 L_4600EA39: 2698 eax = 0x46028AB9u; /* 0x4600EA39: mov eax, 0x46028ab9 */ 2699 RECOMP_ICALL(0x46001535u); /* 0x4600EA3E: call 0x46001535 */ /* not lifted */ 2700 RECOMP_FLAGS_IN(); 2701 PUSH32(esp, ecx); /* 0x4600EA43: push ecx */ 2702 PUSH32(esp, esi); /* 0x4600EA44: push esi */ 2703 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(0); 2704 MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) & 0; /* 0x4600EA45: and dword ptr [ebp - 0x10], 0 */ 2705 _cf = 0; 2706 _flag_k = FK_TEST; 2707 esi = ecx; /* 0x4600EA49: mov esi, ecx */ 2708 PUSH32(esp, edi); /* 0x4600EA4B: push edi */ 2709 ecx = MEM32(esi + 0x34); /* 0x4600EA4C: mov ecx, dword ptr [esi + 0x34] */ 2710 edi = esi + 0x34; /* 0x4600EA4F: lea edi, [esi + 0x34] */ 2711 MEM32(ebp + (-0x10)) = ecx; /* 0x4600EA52: mov dword ptr [ebp - 0x10], ecx */ 2712 RECOMP_ICALL(0x46001BBFu); /* 0x4600EA55: call 0x46001bbf */ /* not lifted */ 2713 RECOMP_FLAGS_IN(); 2714 eax = MEM32(esi); /* 0x4600EA5A: mov eax, dword ptr [esi] */ 2715 PUSH32(esp, MEM32(ebp + 0xC)); /* 0x4600EA5C: push dword ptr [ebp + 0xc] */ 2716 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2717 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x4600EA5F: and dword ptr [ebp - 4], 0 */ 2718 _cf = 0; 2719 _flag_k = FK_TEST; 2720 ecx = esi; /* 0x4600EA63: mov ecx, esi */ 2721 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x4600EA65: call dword ptr [eax + 0x30] */ 2722 RECOMP_FLAGS_IN(); 2723 PUSH32(esp, MEM32(ebp + 0xC)); /* 0x4600EA68: push dword ptr [ebp + 0xc] */ 2724 ecx = edi; /* 0x4600EA6B: mov ecx, edi */ 2725 RECOMP_ICALL(0x46004566u); /* 0x4600EA6D: call 0x46004566 */ /* not lifted */ 2726 RECOMP_FLAGS_IN(); 2727 esi = MEM32(ebp + 0x8); /* 0x4600EA72: mov esi, dword ptr [ebp + 8] */ 2728 ecx = MEM32(ebp + (-0x10)); /* 0x4600EA75: mov ecx, dword ptr [ebp - 0x10] */ 2729 MEM32(esi) = ecx; /* 0x4600EA78: mov dword ptr [esi], ecx */ 2730 RECOMP_ICALL(0x46001BBFu); /* 0x4600EA7A: call 0x46001bbf */ /* not lifted */ 2731 RECOMP_FLAGS_IN(); 2732 ecx = ebp + (-0x10); /* 0x4600EA7F: lea ecx, [ebp - 0x10] */ 2733 RECOMP_ICALL(0x46001CAEu); /* 0x4600EA82: call 0x46001cae */ /* not lifted */ 2734 RECOMP_FLAGS_IN(); 2735 ecx = MEM32(ebp + (-0xC)); /* 0x4600EA87: mov ecx, dword ptr [ebp - 0xc] */ 2736 eax = esi; /* 0x4600EA8A: mov eax, esi */ 2737 edi = POP32_VAL(esp); /* 0x4600EA8C: pop edi */ 2738 esi = POP32_VAL(esp); /* 0x4600EA8D: pop esi */ 2739 MEM32(FS_BASE + (0)) = ecx; /* 0x4600EA8E: mov dword ptr fs:[0], ecx */ 2740 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600EA95: leave */ 2741 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600EA96: ret 8 */ 2742 RECOMP_REGS_OUT(); 2743 } 2744 2745 void sub_4600EA99(void) { 2746 int _fpu_cmp = 0; 2747 uint32_t _cf = 0; 2748 int _df = 1; 2749 uint32_t _flag_k = FK_NONE; 2750 uint32_t _flag_a = 0, _flag_b = 0; 2751 uint32_t _itail_tgt = 0; 2752 RECOMP_REGS_LOCALS 2753 RECOMP_ENTER(0x4600EA99u); 2754 2755 L_4600EA99: 2756 PUSH32(esp, ebp); /* 0x4600EA99: push ebp */ 2757 ebp = esp; /* 0x4600EA9A: mov ebp, esp */ 2758 PUSH32(esp, ecx); /* 0x4600EA9C: push ecx */ 2759 ecx = MEM32(ecx + 0x34); /* 0x4600EA9D: mov ecx, dword ptr [ecx + 0x34] */ 2760 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2761 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x4600EAA0: and dword ptr [ebp - 4], 0 */ 2762 _cf = 0; 2763 _flag_k = FK_TEST; 2764 PUSH32(esp, esi); /* 0x4600EAA4: push esi */ 2765 esi = MEM32(ebp + 0x8); /* 0x4600EAA5: mov esi, dword ptr [ebp + 8] */ 2766 MEM32(esi) = ecx; /* 0x4600EAA8: mov dword ptr [esi], ecx */ 2767 RECOMP_ICALL(0x46001BBFu); /* 0x4600EAAA: call 0x46001bbf */ /* not lifted */ 2768 RECOMP_FLAGS_IN(); 2769 eax = esi; /* 0x4600EAAF: mov eax, esi */ 2770 esi = POP32_VAL(esp); /* 0x4600EAB1: pop esi */ 2771 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600EAB2: leave */ 2772 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600EAB3: ret 4 */ 2773 RECOMP_REGS_OUT(); 2774 } 2775 2776 void sub_4600EAB6(void) { 2777 int _fpu_cmp = 0; 2778 uint32_t _cf = 0; 2779 int _df = 1; 2780 uint32_t _flag_k = FK_NONE; 2781 uint32_t _flag_a = 0, _flag_b = 0; 2782 uint32_t _itail_tgt = 0; 2783 RECOMP_REGS_LOCALS 2784 RECOMP_ENTER(0x4600EAB6u); 2785 2786 L_4600EAB6: 2787 eax = MEM32(ecx + 0x1C); /* 0x4600EAB6: mov eax, dword ptr [ecx + 0x1c] */ 2788 edx = MEM32(eax); /* 0x4600EAB9: mov edx, dword ptr [eax] */ 2789 /* test edx, edx */ /* 0x4600EABB: test edx, edx */ 2790 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2791 _cf = 0; 2792 _flag_k = FK_TEST; 2793 if (TEST_Z(_flag_a, _flag_b)) goto L_4600EAD2; /* 0x4600EABD: je 0x4600ead2 */ 2794 L_4600EABF: 2795 eax = MEM32(ecx + 0x2C); /* 0x4600EABF: mov eax, dword ptr [ecx + 0x2c] */ 2796 PUSH32(esp, esi); /* 0x4600EAC2: push esi */ 2797 eax = MEM32(eax); /* 0x4600EAC3: mov eax, dword ptr [eax] */ 2798 if (1u) _cf = (((eax) >> 31) & 1u); /* 0x4600EAC5: shl eax, 1 */ 2799 if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2800 eax = eax << 1u; /* 0x4600EAC5: shl eax, 1 */ 2801 esi = eax + edx; /* 0x4600EAC7: lea esi, [eax + edx] */ 2802 /* cmp edx, esi */ /* 0x4600EACA: cmp edx, esi */ 2803 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 2804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2805 _flag_k = FK_CMP; 2806 esi = POP32_VAL(esp); /* 0x4600EACC: pop esi */ 2807 if (CMP_AE(_flag_a, _flag_b)) goto L_4600EAD2; /* 0x4600EACD: jae 0x4600ead2 */ 2808 L_4600EACF: 2809 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4600EACF: sar eax, 1 */ 2810 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2811 eax = (uint32_t)((int32_t)eax >> 1u); 2812 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EAD1: ret */ 2813 L_4600EAD2: 2814 eax = MEM32(ecx); /* 0x4600EAD2: mov eax, dword ptr [ecx] */ 2815 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4600EAD4: call dword ptr [eax + 0xc] */ 2816 RECOMP_FLAGS_IN(); 2817 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EAD7: ret */ 2818 RECOMP_REGS_OUT(); 2819 } 2820 2821 void sub_4600EAD8(void) { 2822 int _fpu_cmp = 0; 2823 uint32_t _cf = 0; 2824 int _df = 1; 2825 uint32_t _flag_k = FK_NONE; 2826 uint32_t _flag_a = 0, _flag_b = 0; 2827 uint32_t _itail_tgt = 0; 2828 RECOMP_REGS_LOCALS 2829 RECOMP_ENTER(0x4600EAD8u); 2830 2831 L_4600EAD8: 2832 eax = MEM32(ecx); /* 0x4600EAD8: mov eax, dword ptr [ecx] */ 2833 L_4600EADA: 2834 { _itail_tgt = (uint32_t)(MEM32(eax + 0x2C)); goto _ljump; } 2835 { RECOMP_REGS_OUT(); return; } /* end of function */ 2836 _ljump: 2837 switch (_itail_tgt) { 2838 case 0x4600EAD8u: goto L_4600EAD8; 2839 case 0x4600EADAu: goto L_4600EADA; 2840 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2841 } 2842 RECOMP_REGS_OUT(); 2843 } 2844 2845 void sub_4600EADD(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(0x4600EADDu); 2854 2855 L_4600EADD: 2856 eax = MEM32(ecx + 0x1C); /* 0x4600EADD: mov eax, dword ptr [ecx + 0x1c] */ 2857 eax = MEM32(eax); /* 0x4600EAE0: mov eax, dword ptr [eax] */ 2858 /* test eax, eax */ /* 0x4600EAE2: test eax, eax */ 2859 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2860 _cf = 0; 2861 _flag_k = FK_TEST; 2862 if (TEST_Z(_flag_a, _flag_b)) goto L_4600EAFB; /* 0x4600EAE4: je 0x4600eafb */ 2863 L_4600EAE6: 2864 edx = MEM32(ecx + 0x2C); /* 0x4600EAE6: mov edx, dword ptr [ecx + 0x2c] */ 2865 edx = MEM32(edx); /* 0x4600EAE9: mov edx, dword ptr [edx] */ 2866 edx = eax + edx * 2; /* 0x4600EAEB: lea edx, [eax + edx*2] */ 2867 /* cmp eax, edx */ /* 0x4600EAEE: cmp eax, edx */ 2868 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2870 _flag_k = FK_CMP; 2871 if (CMP_AE(_flag_a, _flag_b)) goto L_4600EAFB; /* 0x4600EAF0: jae 0x4600eafb */ 2872 L_4600EAF2: 2873 RECOMP_ICALL(0x4600EB92u); /* 0x4600EAF2: call 0x4600eb92 */ /* not lifted */ 2874 RECOMP_FLAGS_IN(); 2875 SET_LO16(eax, MEM16(eax)); /* 0x4600EAF7: mov ax, word ptr [eax] */ 2876 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EAFA: ret */ 2877 L_4600EAFB: 2878 eax = MEM32(ecx); /* 0x4600EAFB: mov eax, dword ptr [ecx] */ 2879 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x4600EAFD: call dword ptr [eax + 0x14] */ 2880 RECOMP_FLAGS_IN(); 2881 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EB00: ret */ 2882 RECOMP_REGS_OUT(); 2883 } 2884 2885 void sub_4600EB01(void) { 2886 int _fpu_cmp = 0; 2887 uint32_t _cf = 0; 2888 int _df = 1; 2889 uint32_t _flag_k = FK_NONE; 2890 uint32_t _flag_a = 0, _flag_b = 0; 2891 uint32_t _itail_tgt = 0; 2892 RECOMP_REGS_LOCALS 2893 RECOMP_ENTER(0x4600EB01u); 2894 2895 L_4600EB01: 2896 eax = MEM32(ecx + 0x1C); /* 0x4600EB01: mov eax, dword ptr [ecx + 0x1c] */ 2897 eax = MEM32(eax); /* 0x4600EB04: mov eax, dword ptr [eax] */ 2898 /* test eax, eax */ /* 0x4600EB06: test eax, eax */ 2899 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2900 _cf = 0; 2901 _flag_k = FK_TEST; 2902 if (TEST_Z(_flag_a, _flag_b)) goto L_4600EB1A; /* 0x4600EB08: je 0x4600eb1a */ 2903 L_4600EB0A: 2904 edx = MEM32(ecx + 0x2C); /* 0x4600EB0A: mov edx, dword ptr [ecx + 0x2c] */ 2905 edx = MEM32(edx); /* 0x4600EB0D: mov edx, dword ptr [edx] */ 2906 edx = eax + edx * 2; /* 0x4600EB0F: lea edx, [eax + edx*2] */ 2907 /* cmp eax, edx */ /* 0x4600EB12: cmp eax, edx */ 2908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2910 _flag_k = FK_CMP; 2911 if (CMP_AE(_flag_a, _flag_b)) goto L_4600EB1A; /* 0x4600EB14: jae 0x4600eb1a */ 2912 L_4600EB16: 2913 SET_LO16(eax, MEM16(eax)); /* 0x4600EB16: mov ax, word ptr [eax] */ 2914 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EB19: ret */ 2915 L_4600EB1A: 2916 eax = MEM32(ecx); /* 0x4600EB1A: mov eax, dword ptr [ecx] */ 2917 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x4600EB1C: call dword ptr [eax + 0x10] */ 2918 RECOMP_FLAGS_IN(); 2919 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EB1F: ret */ 2920 RECOMP_REGS_OUT(); 2921 } 2922 2923 void sub_4600EB20(void) { 2924 int _fpu_cmp = 0; 2925 uint32_t _cf = 0; 2926 int _df = 1; 2927 uint32_t _flag_k = FK_NONE; 2928 uint32_t _flag_a = 0, _flag_b = 0; 2929 uint32_t _itail_tgt = 0; 2930 RECOMP_REGS_LOCALS 2931 RECOMP_ENTER(0x4600EB20u); 2932 2933 L_4600EB20: 2934 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600EB20: push dword ptr [esp + 8] */ 2935 eax = MEM32(ecx); /* 0x4600EB24: mov eax, dword ptr [ecx] */ 2936 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600EB26: push dword ptr [esp + 8] */ 2937 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x4600EB2A: call dword ptr [eax + 0x18] */ 2938 RECOMP_FLAGS_IN(); 2939 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600EB2D: ret 8 */ 2940 RECOMP_REGS_OUT(); 2941 } 2942 2943 void sub_4600EB30(void) { 2944 int _fpu_cmp = 0; 2945 uint32_t _cf = 0; 2946 int _df = 1; 2947 uint32_t _flag_k = FK_NONE; 2948 uint32_t _flag_a = 0, _flag_b = 0; 2949 uint32_t _itail_tgt = 0; 2950 RECOMP_REGS_LOCALS 2951 RECOMP_ENTER(0x4600EB30u); 2952 2953 L_4600EB30: 2954 PUSH32(esp, esi); /* 0x4600EB30: push esi */ 2955 esi = ecx; /* 0x4600EB31: mov esi, ecx */ 2956 RECOMP_ICALL(0x4600EADDu); /* 0x4600EB33: call 0x4600eadd */ /* not lifted */ 2957 RECOMP_FLAGS_IN(); 2958 /* cmp LO16(eax), 0xFFFFu */ /* 0x4600EB38: cmp ax, 0xffff */ 2959 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0xFFFFu) << 16; 2960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2961 _flag_k = FK_NARROW(FK_CMP, 16); 2962 if (CMP_NE(_flag_a, _flag_b)) goto L_4600EB45; /* 0x4600EB3C: jne 0x4600eb45 */ 2963 L_4600EB3E: 2964 eax = 0xFFFFu; /* 0x4600EB3E: mov eax, 0xffff */ 2965 esi = POP32_VAL(esp); /* 0x4600EB43: pop esi */ 2966 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EB44: ret */ 2967 L_4600EB45: 2968 ecx = esi; /* 0x4600EB45: mov ecx, esi */ 2969 RECOMP_ICALL(0x4600EB01u); /* 0x4600EB47: call 0x4600eb01 */ /* not lifted */ 2970 RECOMP_FLAGS_IN(); 2971 esi = POP32_VAL(esp); /* 0x4600EB4C: pop esi */ 2972 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EB4D: ret */ 2973 RECOMP_REGS_OUT(); 2974 } 2975 2976 void sub_4600EB4E(void) { 2977 int _fpu_cmp = 0; 2978 uint32_t _cf = 0; 2979 int _df = 1; 2980 uint32_t _flag_k = FK_NONE; 2981 uint32_t _flag_a = 0, _flag_b = 0; 2982 uint32_t _itail_tgt = 0; 2983 RECOMP_REGS_LOCALS 2984 RECOMP_ENTER(0x4600EB4Eu); 2985 2986 L_4600EB4E: 2987 eax = MEM32(ecx + 0x1C); /* 0x4600EB4E: mov eax, dword ptr [ecx + 0x1c] */ 2988 edx = MEM32(esp + 0x4); /* 0x4600EB51: mov edx, dword ptr [esp + 4] */ 2989 eax = MEM32(eax); /* 0x4600EB55: mov eax, dword ptr [eax] */ 2990 /* test eax, eax */ /* 0x4600EB57: test eax, eax */ 2991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2992 _cf = 0; 2993 _flag_k = FK_TEST; 2994 if (TEST_Z(_flag_a, _flag_b)) goto L_4600EB75; /* 0x4600EB59: je 0x4600eb75 */ 2995 L_4600EB5B: 2996 PUSH32(esp, esi); /* 0x4600EB5B: push esi */ 2997 esi = MEM32(ecx + 0xC); /* 0x4600EB5C: mov esi, dword ptr [ecx + 0xc] */ 2998 /* cmp MEM32(esi), eax */ /* 0x4600EB5F: cmp dword ptr [esi], eax */ 2999 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(eax); 3000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3001 _flag_k = FK_CMP; 3002 esi = POP32_VAL(esp); /* 0x4600EB61: pop esi */ 3003 if (CMP_AE(_flag_a, _flag_b)) goto L_4600EB75; /* 0x4600EB62: jae 0x4600eb75 */ 3004 L_4600EB64: 3005 /* cmp LO16(edx), MEM16(eax + (-0x2)) */ /* 0x4600EB64: cmp dx, word ptr [eax - 2] */ 3006 _flag_a = (uint32_t)(LO16(edx)) << 16; _flag_b = (uint32_t)(MEM16(eax + (-0x2))) << 16; 3007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3008 _flag_k = FK_NARROW(FK_CMP, 16); 3009 if (CMP_NE(_flag_a, _flag_b)) goto L_4600EB75; /* 0x4600EB68: jne 0x4600eb75 */ 3010 L_4600EB6A: 3011 RECOMP_ICALL(0x4600EC68u); /* 0x4600EB6A: call 0x4600ec68 */ /* not lifted */ 3012 RECOMP_FLAGS_IN(); 3013 SET_LO16(eax, MEM16(eax)); /* 0x4600EB6F: mov ax, word ptr [eax] */ 3014 L_4600EB72: 3015 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600EB72: ret 4 */ 3016 L_4600EB75: 3017 eax = MEM32(ecx); /* 0x4600EB75: mov eax, dword ptr [ecx] */ 3018 PUSH32(esp, edx); /* 0x4600EB77: push edx */ 3019 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x4600EB78: call dword ptr [eax + 8] */ 3020 RECOMP_FLAGS_IN(); 3021 RECOMP_BACKEDGE(); 3022 goto L_4600EB72; /* 0x4600EB7B: jmp 0x4600eb72 */ 3023 { RECOMP_REGS_OUT(); return; } /* end of function */ 3024 RECOMP_REGS_OUT(); 3025 } 3026 3027 void sub_4600EB7D(void) { 3028 int _fpu_cmp = 0; 3029 uint32_t _cf = 0; 3030 int _df = 1; 3031 uint32_t _flag_k = FK_NONE; 3032 uint32_t _flag_a = 0, _flag_b = 0; 3033 uint32_t _itail_tgt = 0; 3034 RECOMP_REGS_LOCALS 3035 RECOMP_ENTER(0x4600EB7Du); 3036 3037 L_4600EB7D: 3038 eax = MEM32(ecx + 0x1C); /* 0x4600EB7D: mov eax, dword ptr [ecx + 0x1c] */ 3039 L_4600EB80: 3040 eax = MEM32(eax); /* 0x4600EB80: mov eax, dword ptr [eax] */ 3041 L_4600EB82: 3042 /* test eax, eax */ /* 0x4600EB82: test eax, eax */ 3043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3044 _cf = 0; 3045 _flag_k = FK_TEST; 3046 L_4600EB84: 3047 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4600EBA2; /* 0x4600EB84: je 0x4600eba2 */ 3048 L_4600EB86: 3049 edx = MEM32(ecx + 0x2C); /* 0x4600EB86: mov edx, dword ptr [ecx + 0x2c] */ 3050 L_4600EB89: 3051 edx = MEM32(edx); /* 0x4600EB89: mov edx, dword ptr [edx] */ 3052 L_4600EB8B: 3053 edx = eax + edx * 2; /* 0x4600EB8B: lea edx, [eax + edx*2] */ 3054 L_4600EB8E: 3055 /* cmp eax, edx */ /* 0x4600EB8E: cmp eax, edx */ 3056 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3058 _flag_k = FK_CMP; 3059 L_4600EB90: 3060 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_AE, _cf)) goto L_4600EBA2; /* 0x4600EB90: jae 0x4600eba2 */ 3061 L_4600EB92: 3062 eax = MEM32(ecx + 0x2C); /* 0x4600EB92: mov eax, dword ptr [ecx + 0x2c] */ 3063 L_4600EB95: 3064 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1); 3065 MEM32(eax) = MEM32(eax) - 1; /* 0x4600EB95: dec dword ptr [eax] */ 3066 _flag_k = FK_DEC; 3067 L_4600EB97: 3068 ecx = MEM32(ecx + 0x1C); /* 0x4600EB97: mov ecx, dword ptr [ecx + 0x1c] */ 3069 L_4600EB9A: 3070 eax = MEM32(ecx); /* 0x4600EB9A: mov eax, dword ptr [ecx] */ 3071 L_4600EB9C: 3072 edx = eax + 0x2; /* 0x4600EB9C: lea edx, [eax + 2] */ 3073 L_4600EB9F: 3074 MEM32(ecx) = edx; /* 0x4600EB9F: mov dword ptr [ecx], edx */ 3075 L_4600EBA1: 3076 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EBA1: ret */ 3077 L_4600EBA2: 3078 eax = MEM32(ecx); /* 0x4600EBA2: mov eax, dword ptr [ecx] */ 3079 L_4600EBA4: 3080 { _itail_tgt = (uint32_t)(MEM32(eax + 0x14)); goto _ljump; } 3081 { RECOMP_REGS_OUT(); return; } /* end of function */ 3082 _ljump: 3083 switch (_itail_tgt) { 3084 case 0x4600EB7Du: goto L_4600EB7D; 3085 case 0x4600EB80u: goto L_4600EB80; 3086 case 0x4600EB82u: goto L_4600EB82; 3087 case 0x4600EB84u: goto L_4600EB84; 3088 case 0x4600EB86u: goto L_4600EB86; 3089 case 0x4600EB89u: goto L_4600EB89; 3090 case 0x4600EB8Bu: goto L_4600EB8B; 3091 case 0x4600EB8Eu: goto L_4600EB8E; 3092 case 0x4600EB90u: goto L_4600EB90; 3093 case 0x4600EB92u: goto L_4600EB92; 3094 case 0x4600EB95u: goto L_4600EB95; 3095 case 0x4600EB97u: goto L_4600EB97; 3096 case 0x4600EB9Au: goto L_4600EB9A; 3097 case 0x4600EB9Cu: goto L_4600EB9C; 3098 case 0x4600EB9Fu: goto L_4600EB9F; 3099 case 0x4600EBA1u: goto L_4600EBA1; 3100 case 0x4600EBA2u: goto L_4600EBA2; 3101 case 0x4600EBA4u: goto L_4600EBA4; 3102 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3103 } 3104 RECOMP_REGS_OUT(); 3105 } 3106 3107 void sub_4600EB92(void) { 3108 int _fpu_cmp = 0; 3109 uint32_t _cf = 0; 3110 int _df = 1; 3111 uint32_t _flag_k = FK_NONE; 3112 uint32_t _flag_a = 0, _flag_b = 0; 3113 uint32_t _itail_tgt = 0; 3114 RECOMP_REGS_LOCALS 3115 RECOMP_ENTER(0x4600EB92u); 3116 3117 L_4600EB92: 3118 eax = MEM32(ecx + 0x2C); /* 0x4600EB92: mov eax, dword ptr [ecx + 0x2c] */ 3119 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1); 3120 MEM32(eax) = MEM32(eax) - 1; /* 0x4600EB95: dec dword ptr [eax] */ 3121 _flag_k = FK_DEC; 3122 ecx = MEM32(ecx + 0x1C); /* 0x4600EB97: mov ecx, dword ptr [ecx + 0x1c] */ 3123 eax = MEM32(ecx); /* 0x4600EB9A: mov eax, dword ptr [ecx] */ 3124 edx = eax + 0x2; /* 0x4600EB9C: lea edx, [eax + 2] */ 3125 MEM32(ecx) = edx; /* 0x4600EB9F: mov dword ptr [ecx], edx */ 3126 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EBA1: ret */ 3127 RECOMP_REGS_OUT(); 3128 } 3129 3130 void sub_4600EBA2(void) { 3131 int _fpu_cmp = 0; 3132 uint32_t _cf = 0; 3133 int _df = 1; 3134 uint32_t _flag_k = FK_NONE; 3135 uint32_t _flag_a = 0, _flag_b = 0; 3136 uint32_t _itail_tgt = 0; 3137 RECOMP_REGS_LOCALS 3138 RECOMP_ENTER(0x4600EBA2u); 3139 3140 L_4600EBA2: 3141 eax = MEM32(ecx); /* 0x4600EBA2: mov eax, dword ptr [ecx] */ 3142 L_4600EBA4: 3143 { _itail_tgt = (uint32_t)(MEM32(eax + 0x14)); goto _ljump; } 3144 { RECOMP_REGS_OUT(); return; } /* end of function */ 3145 _ljump: 3146 switch (_itail_tgt) { 3147 case 0x4600EBA2u: goto L_4600EBA2; 3148 case 0x4600EBA4u: goto L_4600EBA4; 3149 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3150 } 3151 RECOMP_REGS_OUT(); 3152 } 3153 3154 void sub_4600EBA7(void) { 3155 int _fpu_cmp = 0; 3156 uint32_t _cf = 0; 3157 int _df = 1; 3158 uint32_t _flag_k = FK_NONE; 3159 uint32_t _flag_a = 0, _flag_b = 0; 3160 uint32_t _itail_tgt = 0; 3161 RECOMP_REGS_LOCALS 3162 RECOMP_ENTER(0x4600EBA7u); 3163 3164 L_4600EBA7: 3165 eax = MEM32(ecx + 0x1C); /* 0x4600EBA7: mov eax, dword ptr [ecx + 0x1c] */ 3166 eax = MEM32(eax); /* 0x4600EBAA: mov eax, dword ptr [eax] */ 3167 /* test eax, eax */ /* 0x4600EBAC: test eax, eax */ 3168 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3169 _cf = 0; 3170 _flag_k = FK_TEST; 3171 if (TEST_Z(_flag_a, _flag_b)) goto L_4600EBC0; /* 0x4600EBAE: je 0x4600ebc0 */ 3172 L_4600EBB0: 3173 edx = MEM32(ecx + 0xC); /* 0x4600EBB0: mov edx, dword ptr [ecx + 0xc] */ 3174 /* cmp MEM32(edx), eax */ /* 0x4600EBB3: cmp dword ptr [edx], eax */ 3175 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(eax); 3176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3177 _flag_k = FK_CMP; 3178 if (CMP_AE(_flag_a, _flag_b)) goto L_4600EBC0; /* 0x4600EBB5: jae 0x4600ebc0 */ 3179 L_4600EBB7: 3180 RECOMP_ICALL(0x4600EC68u); /* 0x4600EBB7: call 0x4600ec68 */ /* not lifted */ 3181 RECOMP_FLAGS_IN(); 3182 SET_LO16(eax, MEM16(eax)); /* 0x4600EBBC: mov ax, word ptr [eax] */ 3183 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EBBF: ret */ 3184 L_4600EBC0: 3185 eax = MEM32(ecx); /* 0x4600EBC0: mov eax, dword ptr [ecx] */ 3186 PUSH32(esp, 0xFFFFu); /* 0x4600EBC2: push 0xffff */ 3187 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x4600EBC7: call dword ptr [eax + 8] */ 3188 RECOMP_FLAGS_IN(); 3189 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EBCA: ret */ 3190 RECOMP_REGS_OUT(); 3191 } 3192 3193 void sub_4600EBCB(void) { 3194 int _fpu_cmp = 0; 3195 uint32_t _cf = 0; 3196 int _df = 1; 3197 uint32_t _flag_k = FK_NONE; 3198 uint32_t _flag_a = 0, _flag_b = 0; 3199 uint32_t _itail_tgt = 0; 3200 RECOMP_REGS_LOCALS 3201 RECOMP_ENTER(0x4600EBCBu); 3202 3203 goto L_4600EBCB; 3204 L_46002C7C: 3205 eax = MEM32(ecx); /* 0x46002C7C: mov eax, dword ptr [ecx] */ 3206 PUSH32(esp, MEM32(esp + 0x4)); /* 0x46002C7E: push dword ptr [esp + 4] */ 3207 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x46002C82: call dword ptr [eax + 4] */ 3208 RECOMP_FLAGS_IN(); 3209 L_46002C85: 3210 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46002C85: ret 4 */ 3211 L_4600EBCB: 3212 edx = MEM32(ecx + 0x30); /* 0x4600EBCB: mov edx, dword ptr [ecx + 0x30] */ 3213 edx = MEM32(edx); /* 0x4600EBCE: mov edx, dword ptr [edx] */ 3214 edx = eax + edx * 2; /* 0x4600EBD0: lea edx, [eax + edx*2] */ 3215 /* cmp eax, edx */ /* 0x4600EBD3: cmp eax, edx */ 3216 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3217 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3218 _flag_k = FK_CMP; 3219 RECOMP_BACKEDGE(); 3220 if (CMP_AE(_flag_a, _flag_b)) goto L_46002C7C; /* 0x4600EBD5: jae 0x46002c7c */ 3221 L_4600EBDB: 3222 RECOMP_ICALL(0x4600ECCDu); /* 0x4600EBDB: call 0x4600eccd */ /* not lifted */ 3223 RECOMP_FLAGS_IN(); 3224 ecx = MEM32(esp + 0x4); /* 0x4600EBE0: mov ecx, dword ptr [esp + 4] */ 3225 MEM16(eax) = (uint16_t)(LO16(ecx)); /* 0x4600EBE4: mov word ptr [eax], cx */ 3226 eax = ecx; /* 0x4600EBE7: mov eax, ecx */ 3227 RECOMP_BACKEDGE(); 3228 goto L_46002C85; /* 0x4600EBE9: jmp 0x46002c85 */ 3229 { RECOMP_REGS_OUT(); return; } /* end of function */ 3230 RECOMP_REGS_OUT(); 3231 } 3232 3233 void sub_4600EBEE(void) { 3234 int _fpu_cmp = 0; 3235 uint32_t _cf = 0; 3236 int _df = 1; 3237 uint32_t _flag_k = FK_NONE; 3238 uint32_t _flag_a = 0, _flag_b = 0; 3239 uint32_t _itail_tgt = 0; 3240 RECOMP_REGS_LOCALS 3241 RECOMP_ENTER(0x4600EBEEu); 3242 3243 L_4600EBEE: 3244 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600EBEE: push dword ptr [esp + 8] */ 3245 eax = MEM32(ecx); /* 0x4600EBF2: mov eax, dword ptr [ecx] */ 3246 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600EBF4: push dword ptr [esp + 8] */ 3247 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x4600EBF8: call dword ptr [eax + 0x1c] */ 3248 RECOMP_FLAGS_IN(); 3249 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600EBFB: ret 8 */ 3250 RECOMP_REGS_OUT(); 3251 } 3252 3253 void sub_4600EBFE(void) { 3254 int _fpu_cmp = 0; 3255 uint32_t _cf = 0; 3256 int _df = 1; 3257 uint32_t _flag_k = FK_NONE; 3258 uint32_t _flag_a = 0, _flag_b = 0; 3259 uint32_t _itail_tgt = 0; 3260 RECOMP_REGS_LOCALS 3261 RECOMP_ENTER(0x4600EBFEu); 3262 3263 L_4600EBFE: 3264 eax = MEM32(ecx + 0xC); /* 0x4600EBFE: mov eax, dword ptr [ecx + 0xc] */ 3265 eax = MEM32(eax); /* 0x4600EC01: mov eax, dword ptr [eax] */ 3266 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EC03: ret */ 3267 RECOMP_REGS_OUT(); 3268 } 3269 3270 void sub_4600EC04(void) { 3271 int _fpu_cmp = 0; 3272 uint32_t _cf = 0; 3273 int _df = 1; 3274 uint32_t _flag_k = FK_NONE; 3275 uint32_t _flag_a = 0, _flag_b = 0; 3276 uint32_t _itail_tgt = 0; 3277 RECOMP_REGS_LOCALS 3278 RECOMP_ENTER(0x4600EC04u); 3279 3280 L_4600EC04: 3281 eax = MEM32(ecx + 0x1C); /* 0x4600EC04: mov eax, dword ptr [ecx + 0x1c] */ 3282 eax = MEM32(eax); /* 0x4600EC07: mov eax, dword ptr [eax] */ 3283 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EC09: ret */ 3284 RECOMP_REGS_OUT(); 3285 } 3286 3287 void sub_4600EC0A(void) { 3288 int _fpu_cmp = 0; 3289 uint32_t _cf = 0; 3290 int _df = 1; 3291 uint32_t _flag_k = FK_NONE; 3292 uint32_t _flag_a = 0, _flag_b = 0; 3293 uint32_t _itail_tgt = 0; 3294 RECOMP_REGS_LOCALS 3295 RECOMP_ENTER(0x4600EC0Au); 3296 3297 L_4600EC0A: 3298 eax = MEM32(ecx + 0x10); /* 0x4600EC0A: mov eax, dword ptr [ecx + 0x10] */ 3299 eax = MEM32(eax); /* 0x4600EC0D: mov eax, dword ptr [eax] */ 3300 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EC0F: ret */ 3301 RECOMP_REGS_OUT(); 3302 } 3303 3304 void sub_4600EC10(void) { 3305 int _fpu_cmp = 0; 3306 uint32_t _cf = 0; 3307 int _df = 1; 3308 uint32_t _flag_k = FK_NONE; 3309 uint32_t _flag_a = 0, _flag_b = 0; 3310 uint32_t _itail_tgt = 0; 3311 RECOMP_REGS_LOCALS 3312 RECOMP_ENTER(0x4600EC10u); 3313 3314 L_4600EC10: 3315 eax = MEM32(ecx + 0x20); /* 0x4600EC10: mov eax, dword ptr [ecx + 0x20] */ 3316 eax = MEM32(eax); /* 0x4600EC13: mov eax, dword ptr [eax] */ 3317 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EC15: ret */ 3318 RECOMP_REGS_OUT(); 3319 } 3320 3321 void sub_4600EC16(void) { 3322 int _fpu_cmp = 0; 3323 uint32_t _cf = 0; 3324 int _df = 1; 3325 uint32_t _flag_k = FK_NONE; 3326 uint32_t _flag_a = 0, _flag_b = 0; 3327 uint32_t _itail_tgt = 0; 3328 RECOMP_REGS_LOCALS 3329 RECOMP_ENTER(0x4600EC16u); 3330 3331 L_4600EC16: 3332 eax = MEM32(ecx + 0x2C); /* 0x4600EC16: mov eax, dword ptr [ecx + 0x2c] */ 3333 ecx = MEM32(ecx + 0x1C); /* 0x4600EC19: mov ecx, dword ptr [ecx + 0x1c] */ 3334 eax = MEM32(eax); /* 0x4600EC1C: mov eax, dword ptr [eax] */ 3335 ecx = MEM32(ecx); /* 0x4600EC1E: mov ecx, dword ptr [ecx] */ 3336 eax = ecx + eax * 2; /* 0x4600EC20: lea eax, [ecx + eax*2] */ 3337 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EC23: ret */ 3338 RECOMP_REGS_OUT(); 3339 } 3340 3341 void sub_4600EC24(void) { 3342 int _fpu_cmp = 0; 3343 uint32_t _cf = 0; 3344 int _df = 1; 3345 uint32_t _flag_k = FK_NONE; 3346 uint32_t _flag_a = 0, _flag_b = 0; 3347 uint32_t _itail_tgt = 0; 3348 RECOMP_REGS_LOCALS 3349 RECOMP_ENTER(0x4600EC24u); 3350 3351 L_4600EC24: 3352 eax = MEM32(ecx + 0x2C); /* 0x4600EC24: mov eax, dword ptr [ecx + 0x2c] */ 3353 edx = MEM32(esp + 0x4); /* 0x4600EC27: mov edx, dword ptr [esp + 4] */ 3354 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edx); 3355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3356 MEM32(eax) = MEM32(eax) - edx; /* 0x4600EC2B: sub dword ptr [eax], edx */ 3357 _flag_k = FK_CMP; 3358 eax = MEM32(ecx + 0x1C); /* 0x4600EC2D: mov eax, dword ptr [ecx + 0x1c] */ 3359 ecx = edx + edx; /* 0x4600EC30: lea ecx, [edx + edx] */ 3360 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ecx); 3361 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3362 MEM32(eax) = MEM32(eax) + ecx; /* 0x4600EC33: add dword ptr [eax], ecx */ 3363 _flag_k = FK_ADD; 3364 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600EC35: ret 4 */ 3365 RECOMP_REGS_OUT(); 3366 } 3367 3368 void sub_4600EC38(void) { 3369 int _fpu_cmp = 0; 3370 uint32_t _cf = 0; 3371 int _df = 1; 3372 uint32_t _flag_k = FK_NONE; 3373 uint32_t _flag_a = 0, _flag_b = 0; 3374 uint32_t _itail_tgt = 0; 3375 RECOMP_REGS_LOCALS 3376 RECOMP_ENTER(0x4600EC38u); 3377 3378 L_4600EC38: 3379 eax = MEM32(ecx + 0xC); /* 0x4600EC38: mov eax, dword ptr [ecx + 0xc] */ 3380 edx = MEM32(esp + 0x4); /* 0x4600EC3B: mov edx, dword ptr [esp + 4] */ 3381 MEM32(eax) = edx; /* 0x4600EC3F: mov dword ptr [eax], edx */ 3382 edx = MEM32(ecx + 0x1C); /* 0x4600EC41: mov edx, dword ptr [ecx + 0x1c] */ 3383 eax = MEM32(esp + 0x8); /* 0x4600EC44: mov eax, dword ptr [esp + 8] */ 3384 MEM32(edx) = eax; /* 0x4600EC48: mov dword ptr [edx], eax */ 3385 edx = MEM32(esp + 0xC); /* 0x4600EC4A: mov edx, dword ptr [esp + 0xc] */ 3386 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3388 edx = edx - eax; /* 0x4600EC4E: sub edx, eax */ 3389 _flag_k = FK_CMP; 3390 eax = MEM32(ecx + 0x2C); /* 0x4600EC50: mov eax, dword ptr [ecx + 0x2c] */ 3391 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x4600EC53: sar edx, 1 */ 3392 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3393 edx = (uint32_t)((int32_t)edx >> 1u); 3394 MEM32(eax) = edx; /* 0x4600EC55: mov dword ptr [eax], edx */ 3395 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4600EC57: ret 0xc */ 3396 RECOMP_REGS_OUT(); 3397 } 3398 3399 void sub_4600EC5A(void) { 3400 int _fpu_cmp = 0; 3401 uint32_t _cf = 0; 3402 int _df = 1; 3403 uint32_t _flag_k = FK_NONE; 3404 uint32_t _flag_a = 0, _flag_b = 0; 3405 uint32_t _itail_tgt = 0; 3406 RECOMP_REGS_LOCALS 3407 RECOMP_ENTER(0x4600EC5Au); 3408 3409 L_4600EC5A: 3410 eax = MEM32(ecx + 0x30); /* 0x4600EC5A: mov eax, dword ptr [ecx + 0x30] */ 3411 ecx = MEM32(ecx + 0x20); /* 0x4600EC5D: mov ecx, dword ptr [ecx + 0x20] */ 3412 eax = MEM32(eax); /* 0x4600EC60: mov eax, dword ptr [eax] */ 3413 ecx = MEM32(ecx); /* 0x4600EC62: mov ecx, dword ptr [ecx] */ 3414 eax = ecx + eax * 2; /* 0x4600EC64: lea eax, [ecx + eax*2] */ 3415 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EC67: ret */ 3416 RECOMP_REGS_OUT(); 3417 } 3418 3419 void sub_4600EC68(void) { 3420 int _fpu_cmp = 0; 3421 uint32_t _cf = 0; 3422 int _df = 1; 3423 uint32_t _flag_k = FK_NONE; 3424 uint32_t _flag_a = 0, _flag_b = 0; 3425 uint32_t _itail_tgt = 0; 3426 RECOMP_REGS_LOCALS 3427 RECOMP_ENTER(0x4600EC68u); 3428 3429 L_4600EC68: 3430 eax = MEM32(ecx + 0x2C); /* 0x4600EC68: mov eax, dword ptr [ecx + 0x2c] */ 3431 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1); 3432 MEM32(eax) = MEM32(eax) + 1; /* 0x4600EC6B: inc dword ptr [eax] */ 3433 _flag_k = FK_INC; 3434 eax = MEM32(ecx + 0x1C); /* 0x4600EC6D: mov eax, dword ptr [ecx + 0x1c] */ 3435 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xFFFFFFFEu); 3436 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3437 MEM32(eax) = MEM32(eax) + 0xFFFFFFFEu; /* 0x4600EC70: add dword ptr [eax], -2 */ 3438 _flag_k = FK_ADD; 3439 eax = MEM32(ecx + 0x1C); /* 0x4600EC73: mov eax, dword ptr [ecx + 0x1c] */ 3440 eax = MEM32(eax); /* 0x4600EC76: mov eax, dword ptr [eax] */ 3441 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600EC78: ret */ 3442 RECOMP_REGS_OUT(); 3443 } 3444 3445 void sub_4600EC79(void) { 3446 int _fpu_cmp = 0; 3447 uint32_t _cf = 0; 3448 int _df = 1; 3449 uint32_t _flag_k = FK_NONE; 3450 uint32_t _flag_a = 0, _flag_b = 0; 3451 uint32_t _itail_tgt = 0; 3452 RECOMP_REGS_LOCALS 3453 RECOMP_ENTER(0x4600EC79u); 3454 3455 L_4600EC79: 3456 eax = MEM32(ecx + 0x30); /* 0x4600EC79: mov eax, dword ptr [ecx + 0x30] */ 3457 edx = MEM32(esp + 0x4); /* 0x4600EC7C: mov edx, dword ptr [esp + 4] */ 3458 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edx); 3459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3460 MEM32(eax) = MEM32(eax) - edx; /* 0x4600EC80: sub dword ptr [eax], edx */ 3461 _flag_k = FK_CMP; 3462 eax = MEM32(ecx + 0x20); /* 0x4600EC82: mov eax, dword ptr [ecx + 0x20] */ 3463 ecx = edx + edx; /* 0x4600EC85: lea ecx, [edx + edx] */ 3464 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ecx); 3465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3466 MEM32(eax) = MEM32(eax) + ecx; /* 0x4600EC88: add dword ptr [eax], ecx */ 3467 _flag_k = FK_ADD; 3468 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600EC8A: ret 4 */ 3469 RECOMP_REGS_OUT(); 3470 } 3471 3472 void sub_4600EC8D(void) { 3473 int _fpu_cmp = 0; 3474 uint32_t _cf = 0; 3475 int _df = 1; 3476 uint32_t _flag_k = FK_NONE; 3477 uint32_t _flag_a = 0, _flag_b = 0; 3478 uint32_t _itail_tgt = 0; 3479 RECOMP_REGS_LOCALS 3480 RECOMP_ENTER(0x4600EC8Du); 3481 3482 L_4600EC8D: 3483 edx = MEM32(ecx + 0x10); /* 0x4600EC8D: mov edx, dword ptr [ecx + 0x10] */ 3484 eax = MEM32(esp + 0x4); /* 0x4600EC90: mov eax, dword ptr [esp + 4] */ 3485 MEM32(edx) = eax; /* 0x4600EC94: mov dword ptr [edx], eax */ 3486 edx = MEM32(ecx + 0x20); /* 0x4600EC96: mov edx, dword ptr [ecx + 0x20] */ 3487 MEM32(edx) = eax; /* 0x4600EC99: mov dword ptr [edx], eax */ 3488 edx = MEM32(esp + 0x8); /* 0x4600EC9B: mov edx, dword ptr [esp + 8] */ 3489 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3491 edx = edx - eax; /* 0x4600EC9F: sub edx, eax */ 3492 _flag_k = FK_CMP; 3493 eax = MEM32(ecx + 0x30); /* 0x4600ECA1: mov eax, dword ptr [ecx + 0x30] */ 3494 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x4600ECA4: sar edx, 1 */ 3495 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3496 edx = (uint32_t)((int32_t)edx >> 1u); 3497 MEM32(eax) = edx; /* 0x4600ECA6: mov dword ptr [eax], edx */ 3498 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600ECA8: ret 8 */ 3499 RECOMP_REGS_OUT(); 3500 } 3501 3502 void sub_4600ECAB(void) { 3503 int _fpu_cmp = 0; 3504 uint32_t _cf = 0; 3505 int _df = 1; 3506 uint32_t _flag_k = FK_NONE; 3507 uint32_t _flag_a = 0, _flag_b = 0; 3508 uint32_t _itail_tgt = 0; 3509 RECOMP_REGS_LOCALS 3510 RECOMP_ENTER(0x4600ECABu); 3511 3512 L_4600ECAB: 3513 eax = MEM32(ecx + 0x10); /* 0x4600ECAB: mov eax, dword ptr [ecx + 0x10] */ 3514 edx = MEM32(esp + 0x4); /* 0x4600ECAE: mov edx, dword ptr [esp + 4] */ 3515 MEM32(eax) = edx; /* 0x4600ECB2: mov dword ptr [eax], edx */ 3516 edx = MEM32(ecx + 0x20); /* 0x4600ECB4: mov edx, dword ptr [ecx + 0x20] */ 3517 eax = MEM32(esp + 0x8); /* 0x4600ECB7: mov eax, dword ptr [esp + 8] */ 3518 MEM32(edx) = eax; /* 0x4600ECBB: mov dword ptr [edx], eax */ 3519 edx = MEM32(esp + 0xC); /* 0x4600ECBD: mov edx, dword ptr [esp + 0xc] */ 3520 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3522 edx = edx - eax; /* 0x4600ECC1: sub edx, eax */ 3523 _flag_k = FK_CMP; 3524 eax = MEM32(ecx + 0x30); /* 0x4600ECC3: mov eax, dword ptr [ecx + 0x30] */ 3525 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x4600ECC6: sar edx, 1 */ 3526 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3527 edx = (uint32_t)((int32_t)edx >> 1u); 3528 MEM32(eax) = edx; /* 0x4600ECC8: mov dword ptr [eax], edx */ 3529 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4600ECCA: ret 0xc */ 3530 RECOMP_REGS_OUT(); 3531 } 3532 3533 void sub_4600ECCD(void) { 3534 int _fpu_cmp = 0; 3535 uint32_t _cf = 0; 3536 int _df = 1; 3537 uint32_t _flag_k = FK_NONE; 3538 uint32_t _flag_a = 0, _flag_b = 0; 3539 uint32_t _itail_tgt = 0; 3540 RECOMP_REGS_LOCALS 3541 RECOMP_ENTER(0x4600ECCDu); 3542 3543 L_4600ECCD: 3544 eax = MEM32(ecx + 0x30); /* 0x4600ECCD: mov eax, dword ptr [ecx + 0x30] */ 3545 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(1); 3546 MEM32(eax) = MEM32(eax) - 1; /* 0x4600ECD0: dec dword ptr [eax] */ 3547 _flag_k = FK_DEC; 3548 ecx = MEM32(ecx + 0x20); /* 0x4600ECD2: mov ecx, dword ptr [ecx + 0x20] */ 3549 eax = MEM32(ecx); /* 0x4600ECD5: mov eax, dword ptr [ecx] */ 3550 edx = eax + 0x2; /* 0x4600ECD7: lea edx, [eax + 2] */ 3551 MEM32(ecx) = edx; /* 0x4600ECDA: mov dword ptr [ecx], edx */ 3552 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600ECDC: ret */ 3553 RECOMP_REGS_OUT(); 3554 } 3555 3556 void sub_4600ECDD(void) { 3557 int _fpu_cmp = 0; 3558 uint32_t _cf = 0; 3559 int _df = 1; 3560 uint32_t _flag_k = FK_NONE; 3561 uint32_t _flag_a = 0, _flag_b = 0; 3562 uint32_t _itail_tgt = 0; 3563 RECOMP_REGS_LOCALS 3564 RECOMP_ENTER(0x4600ECDDu); 3565 3566 L_4600ECDD: 3567 PUSH32(esp, ebp); /* 0x4600ECDD: push ebp */ 3568 ebp = esp; /* 0x4600ECDE: mov ebp, esp */ 3569 eax = MEM32(ebp + 0x8); /* 0x4600ECE0: mov eax, dword ptr [ebp + 8] */ 3570 MEM32(ecx + 0xC) = eax; /* 0x4600ECE3: mov dword ptr [ecx + 0xc], eax */ 3571 eax = MEM32(ebp + 0x14); /* 0x4600ECE6: mov eax, dword ptr [ebp + 0x14] */ 3572 MEM32(ecx + 0x10) = eax; /* 0x4600ECE9: mov dword ptr [ecx + 0x10], eax */ 3573 eax = MEM32(ebp + 0xC); /* 0x4600ECEC: mov eax, dword ptr [ebp + 0xc] */ 3574 MEM32(ecx + 0x1C) = eax; /* 0x4600ECEF: mov dword ptr [ecx + 0x1c], eax */ 3575 eax = MEM32(ebp + 0x18); /* 0x4600ECF2: mov eax, dword ptr [ebp + 0x18] */ 3576 MEM32(ecx + 0x20) = eax; /* 0x4600ECF5: mov dword ptr [ecx + 0x20], eax */ 3577 eax = MEM32(ebp + 0x10); /* 0x4600ECF8: mov eax, dword ptr [ebp + 0x10] */ 3578 MEM32(ecx + 0x2C) = eax; /* 0x4600ECFB: mov dword ptr [ecx + 0x2c], eax */ 3579 eax = MEM32(ebp + 0x1C); /* 0x4600ECFE: mov eax, dword ptr [ebp + 0x1c] */ 3580 MEM32(ecx + 0x30) = eax; /* 0x4600ED01: mov dword ptr [ecx + 0x30], eax */ 3581 ebp = POP32_VAL(esp); /* 0x4600ED04: pop ebp */ 3582 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x4600ED05: ret 0x18 */ 3583 RECOMP_REGS_OUT(); 3584 } 3585 3586 void sub_4600ED08(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(0x4600ED08u); 3595 3596 L_4600ED08: 3597 _flag_a = (uint32_t)((LO16(eax) | 0xFFFFu)) << 16; _flag_b = (uint32_t)((LO16(eax) | 0xFFFFu)) << 16; 3598 SET_LO16(eax, LO16(eax) | 0xFFFFu); /* 0x4600ED08: or ax, 0xffff */ 3599 _cf = 0; 3600 _flag_k = FK_NARROW(FK_TEST, 16); 3601 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600ED0C: ret 4 */ 3602 RECOMP_REGS_OUT(); 3603 } 3604 3605 void sub_4600ED0F(void) { 3606 int _fpu_cmp = 0; 3607 uint32_t _cf = 0; 3608 int _df = 1; 3609 uint32_t _flag_k = FK_NONE; 3610 uint32_t _flag_a = 0, _flag_b = 0; 3611 uint32_t _itail_tgt = 0; 3612 RECOMP_REGS_LOCALS 3613 RECOMP_ENTER(0x4600ED0Fu); 3614 3615 L_4600ED0F: 3616 _flag_a = (uint32_t)((LO16(eax) | 0xFFFFu)) << 16; _flag_b = (uint32_t)((LO16(eax) | 0xFFFFu)) << 16; 3617 SET_LO16(eax, LO16(eax) | 0xFFFFu); /* 0x4600ED0F: or ax, 0xffff */ 3618 _cf = 0; 3619 _flag_k = FK_NARROW(FK_TEST, 16); 3620 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600ED13: ret 4 */ 3621 RECOMP_REGS_OUT(); 3622 } 3623 3624 void sub_4600ED16(void) { 3625 int _fpu_cmp = 0; 3626 uint32_t _cf = 0; 3627 int _df = 1; 3628 uint32_t _flag_k = FK_NONE; 3629 uint32_t _flag_a = 0, _flag_b = 0; 3630 uint32_t _itail_tgt = 0; 3631 RECOMP_REGS_LOCALS 3632 RECOMP_ENTER(0x4600ED16u); 3633 3634 L_4600ED16: 3635 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3636 eax = 0; /* 0x4600ED16: xor eax, eax */ 3637 _cf = 0; 3638 _flag_k = FK_TEST; 3639 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600ED18: ret */ 3640 RECOMP_REGS_OUT(); 3641 } 3642 3643 void sub_4600ED19(void) { 3644 int _fpu_cmp = 0; 3645 uint32_t _cf = 0; 3646 int _df = 1; 3647 uint32_t _flag_k = FK_NONE; 3648 uint32_t _flag_a = 0, _flag_b = 0; 3649 uint32_t _itail_tgt = 0; 3650 RECOMP_REGS_LOCALS 3651 RECOMP_ENTER(0x4600ED19u); 3652 3653 L_4600ED19: 3654 _flag_a = (uint32_t)((LO16(eax) | 0xFFFFu)) << 16; _flag_b = (uint32_t)((LO16(eax) | 0xFFFFu)) << 16; 3655 SET_LO16(eax, LO16(eax) | 0xFFFFu); /* 0x4600ED19: or ax, 0xffff */ 3656 _cf = 0; 3657 _flag_k = FK_NARROW(FK_TEST, 16); 3658 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600ED1D: ret */ 3659 RECOMP_REGS_OUT(); 3660 } 3661 3662 void sub_4600ED1E(void) { 3663 int _fpu_cmp = 0; 3664 uint32_t _cf = 0; 3665 int _df = 1; 3666 uint32_t _flag_k = FK_NONE; 3667 uint32_t _flag_a = 0, _flag_b = 0; 3668 uint32_t _itail_tgt = 0; 3669 RECOMP_REGS_LOCALS 3670 RECOMP_ENTER(0x4600ED1Eu); 3671 3672 L_4600ED1E: 3673 PUSH32(esp, esi); /* 0x4600ED1E: push esi */ 3674 esi = ecx; /* 0x4600ED1F: mov esi, ecx */ 3675 eax = MEM32(esi); /* 0x4600ED21: mov eax, dword ptr [esi] */ 3676 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x4600ED23: call dword ptr [eax + 0x10] */ 3677 RECOMP_FLAGS_IN(); 3678 /* cmp LO16(eax), 0xFFFFu */ /* 0x4600ED26: cmp ax, 0xffff */ 3679 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0xFFFFu) << 16; 3680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3681 _flag_k = FK_NARROW(FK_CMP, 16); 3682 if (CMP_NE(_flag_a, _flag_b)) goto L_4600ED33; /* 0x4600ED2A: jne 0x4600ed33 */ 3683 L_4600ED2C: 3684 eax = 0xFFFFu; /* 0x4600ED2C: mov eax, 0xffff */ 3685 esi = POP32_VAL(esp); /* 0x4600ED31: pop esi */ 3686 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600ED32: ret */ 3687 L_4600ED33: 3688 ecx = esi; /* 0x4600ED33: mov ecx, esi */ 3689 RECOMP_ICALL(0x4600EB92u); /* 0x4600ED35: call 0x4600eb92 */ /* not lifted */ 3690 RECOMP_FLAGS_IN(); 3691 SET_LO16(eax, MEM16(eax)); /* 0x4600ED3A: mov ax, word ptr [eax] */ 3692 esi = POP32_VAL(esp); /* 0x4600ED3D: pop esi */ 3693 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600ED3E: ret */ 3694 RECOMP_REGS_OUT(); 3695 } 3696 3697 void sub_4600ED3F(void) { 3698 int _fpu_cmp = 0; 3699 uint32_t _cf = 0; 3700 int _df = 1; 3701 uint32_t _flag_k = FK_NONE; 3702 uint32_t _flag_a = 0, _flag_b = 0; 3703 uint32_t _itail_tgt = 0; 3704 RECOMP_REGS_LOCALS 3705 RECOMP_ENTER(0x4600ED3Fu); 3706 3707 L_4600ED3F: 3708 PUSH32(esp, ebp); /* 0x4600ED3F: push ebp */ 3709 ebp = esp; /* 0x4600ED40: mov ebp, esp */ 3710 PUSH32(esp, ecx); /* 0x4600ED42: push ecx */ 3711 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 3712 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x4600ED43: and dword ptr [ebp - 4], 0 */ 3713 _cf = 0; 3714 _flag_k = FK_TEST; 3715 /* cmp MEM32(ebp + 0xC), 0 */ /* 0x4600ED47: cmp dword ptr [ebp + 0xc], 0 */ 3716 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(0); 3717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3718 _flag_k = FK_CMP; 3719 PUSH32(esp, ebx); /* 0x4600ED4B: push ebx */ 3720 PUSH32(esp, esi); /* 0x4600ED4C: push esi */ 3721 PUSH32(esp, edi); /* 0x4600ED4D: push edi */ 3722 edi = ecx; /* 0x4600ED4E: mov edi, ecx */ 3723 if (CMP_LE(_flag_a, _flag_b)) goto L_4600EDA2; /* 0x4600ED50: jle 0x4600eda2 */ 3724 L_4600ED52: 3725 esi = MEM32(ebp + 0x8); /* 0x4600ED52: mov esi, dword ptr [ebp + 8] */ 3726 L_4600ED55: 3727 eax = MEM32(edi + 0x1C); /* 0x4600ED55: mov eax, dword ptr [edi + 0x1c] */ 3728 edx = MEM32(eax); /* 0x4600ED58: mov edx, dword ptr [eax] */ 3729 /* test edx, edx */ /* 0x4600ED5A: test edx, edx */ 3730 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3731 _cf = 0; 3732 _flag_k = FK_TEST; 3733 if (TEST_Z(_flag_a, _flag_b)) goto L_4600EDAC; /* 0x4600ED5C: je 0x4600edac */ 3734 L_4600ED5E: 3735 eax = MEM32(edi + 0x2C); /* 0x4600ED5E: mov eax, dword ptr [edi + 0x2c] */ 3736 eax = MEM32(eax); /* 0x4600ED61: mov eax, dword ptr [eax] */ 3737 if (1u) _cf = (((eax) >> 31) & 1u); /* 0x4600ED63: shl eax, 1 */ 3738 if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3739 eax = eax << 1u; /* 0x4600ED63: shl eax, 1 */ 3740 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4600ED65: sar eax, 1 */ 3741 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3742 eax = (uint32_t)((int32_t)eax >> 1u); 3743 /* test eax, eax */ /* 0x4600ED67: test eax, eax */ 3744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3745 _cf = 0; 3746 _flag_k = FK_TEST; 3747 if (TEST_LE(_flag_a, _flag_b)) goto L_4600EDAC; /* 0x4600ED69: jle 0x4600edac */ 3748 L_4600ED6B: 3749 /* cmp MEM32(ebp + 0xC), eax */ /* 0x4600ED6B: cmp dword ptr [ebp + 0xc], eax */ 3750 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(eax); 3751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3752 _flag_k = FK_CMP; 3753 if (CMP_GE(_flag_a, _flag_b)) goto L_4600ED73; /* 0x4600ED6E: jge 0x4600ed73 */ 3754 L_4600ED70: 3755 eax = MEM32(ebp + 0xC); /* 0x4600ED70: mov eax, dword ptr [ebp + 0xc] */ 3756 L_4600ED73: 3757 /* test eax, eax */ /* 0x4600ED73: test eax, eax */ 3758 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3759 _cf = 0; 3760 _flag_k = FK_TEST; 3761 ecx = esi; /* 0x4600ED75: mov ecx, esi */ 3762 if (TEST_Z(_flag_a, _flag_b)) goto L_4600ED8B; /* 0x4600ED77: jbe 0x4600ed8b */ 3763 L_4600ED79: 3764 MEM32(ebp + 0x8) = eax; /* 0x4600ED79: mov dword ptr [ebp + 8], eax */ 3765 L_4600ED7C: 3766 SET_LO16(ebx, MEM16(edx)); /* 0x4600ED7C: mov bx, word ptr [edx] */ 3767 MEM16(ecx) = (uint16_t)(LO16(ebx)); /* 0x4600ED7F: mov word ptr [ecx], bx */ 3768 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3769 ecx = ecx + 1; /* 0x4600ED82: inc ecx */ 3770 _flag_k = FK_INC; 3771 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3772 ecx = ecx + 1; /* 0x4600ED83: inc ecx */ 3773 _flag_k = FK_INC; 3774 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3775 edx = edx + 1; /* 0x4600ED84: inc edx */ 3776 _flag_k = FK_INC; 3777 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3778 edx = edx + 1; /* 0x4600ED85: inc edx */ 3779 _flag_k = FK_INC; 3780 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(1); 3781 MEM32(ebp + 0x8) = MEM32(ebp + 0x8) - 1; /* 0x4600ED86: dec dword ptr [ebp + 8] */ 3782 _flag_k = FK_DEC; 3783 RECOMP_BACKEDGE(); 3784 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600ED7C; /* 0x4600ED89: jne 0x4600ed7c */ 3785 L_4600ED8B: 3786 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(eax); 3787 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3788 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + eax; /* 0x4600ED8B: add dword ptr [ebp - 4], eax */ 3789 _flag_k = FK_ADD; 3790 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(eax); 3791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3792 MEM32(ebp + 0xC) = MEM32(ebp + 0xC) - eax; /* 0x4600ED8E: sub dword ptr [ebp + 0xc], eax */ 3793 _flag_k = FK_CMP; 3794 PUSH32(esp, eax); /* 0x4600ED91: push eax */ 3795 ecx = edi; /* 0x4600ED92: mov ecx, edi */ 3796 esi = esi + eax * 2; /* 0x4600ED94: lea esi, [esi + eax*2] */ 3797 RECOMP_ICALL(0x4600EC24u); /* 0x4600ED97: call 0x4600ec24 */ /* not lifted */ 3798 RECOMP_FLAGS_IN(); 3799 L_4600ED9C: 3800 /* cmp MEM32(ebp + 0xC), 0 */ /* 0x4600ED9C: cmp dword ptr [ebp + 0xc], 0 */ 3801 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(0); 3802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3803 _flag_k = FK_CMP; 3804 RECOMP_BACKEDGE(); 3805 if (CMP_G(_flag_a, _flag_b)) goto L_4600ED55; /* 0x4600EDA0: jg 0x4600ed55 */ 3806 L_4600EDA2: 3807 eax = MEM32(ebp + (-0x4)); /* 0x4600EDA2: mov eax, dword ptr [ebp - 4] */ 3808 edi = POP32_VAL(esp); /* 0x4600EDA5: pop edi */ 3809 esi = POP32_VAL(esp); /* 0x4600EDA6: pop esi */ 3810 ebx = POP32_VAL(esp); /* 0x4600EDA7: pop ebx */ 3811 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600EDA8: leave */ 3812 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600EDA9: ret 8 */ 3813 L_4600EDAC: 3814 eax = MEM32(edi); /* 0x4600EDAC: mov eax, dword ptr [edi] */ 3815 ecx = edi; /* 0x4600EDAE: mov ecx, edi */ 3816 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x4600EDB0: call dword ptr [eax + 0x14] */ 3817 RECOMP_FLAGS_IN(); 3818 /* cmp LO16(eax), 0xFFFFu */ /* 0x4600EDB3: cmp ax, 0xffff */ 3819 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0xFFFFu) << 16; 3820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3821 _flag_k = FK_NARROW(FK_CMP, 16); 3822 RECOMP_BACKEDGE(); 3823 if (CMP_EQ(_flag_a, _flag_b)) goto L_4600EDA2; /* 0x4600EDB7: je 0x4600eda2 */ 3824 L_4600EDB9: 3825 MEM16(esi) = (uint16_t)(LO16(eax)); /* 0x4600EDB9: mov word ptr [esi], ax */ 3826 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3827 esi = esi + 1; /* 0x4600EDBC: inc esi */ 3828 _flag_k = FK_INC; 3829 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3830 esi = esi + 1; /* 0x4600EDBD: inc esi */ 3831 _flag_k = FK_INC; 3832 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(1); 3833 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 1; /* 0x4600EDBE: inc dword ptr [ebp - 4] */ 3834 _flag_k = FK_INC; 3835 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(1); 3836 MEM32(ebp + 0xC) = MEM32(ebp + 0xC) - 1; /* 0x4600EDC1: dec dword ptr [ebp + 0xc] */ 3837 _flag_k = FK_DEC; 3838 RECOMP_BACKEDGE(); 3839 goto L_4600ED9C; /* 0x4600EDC4: jmp 0x4600ed9c */ 3840 { RECOMP_REGS_OUT(); return; } /* end of function */ 3841 RECOMP_REGS_OUT(); 3842 } 3843 3844 void sub_4600EDC6(void) { 3845 int _fpu_cmp = 0; 3846 uint32_t _cf = 0; 3847 int _df = 1; 3848 uint32_t _flag_k = FK_NONE; 3849 uint32_t _flag_a = 0, _flag_b = 0; 3850 uint32_t _itail_tgt = 0; 3851 RECOMP_REGS_LOCALS 3852 RECOMP_ENTER(0x4600EDC6u); 3853 3854 goto L_4600EDC6; 3855 L_46002B19: 3856 eax = MEM32(edi + 0x20); /* 0x46002B19: mov eax, dword ptr [edi + 0x20] */ 3857 ecx = MEM32(eax); /* 0x46002B1C: mov ecx, dword ptr [eax] */ 3858 /* test ecx, ecx */ /* 0x46002B1E: test ecx, ecx */ 3859 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3860 _cf = 0; 3861 _flag_k = FK_TEST; 3862 if (TEST_NZ(_flag_a, _flag_b)) goto L_4600EDC6; /* 0x46002B20: jne 0x4600edc6 */ 3863 L_46002B26: 3864 SET_LO16(eax, MEM16(esi)); /* 0x46002B26: mov ax, word ptr [esi] */ 3865 edx = MEM32(edi); /* 0x46002B29: mov edx, dword ptr [edi] */ 3866 PUSH32(esp, eax); /* 0x46002B2B: push eax */ 3867 ecx = edi; /* 0x46002B2C: mov ecx, edi */ 3868 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x46002B2E: call dword ptr [edx + 4] */ 3869 RECOMP_FLAGS_IN(); 3870 /* cmp LO16(eax), 0xFFFFu */ /* 0x46002B31: cmp ax, 0xffff */ 3871 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0xFFFFu) << 16; 3872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3873 _flag_k = FK_NARROW(FK_CMP, 16); 3874 if (CMP_EQ(_flag_a, _flag_b)) goto L_46002B45; /* 0x46002B35: je 0x46002b45 */ 3875 L_46002B37: 3876 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3877 esi = esi + 1; /* 0x46002B37: inc esi */ 3878 _flag_k = FK_INC; 3879 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3880 esi = esi + 1; /* 0x46002B38: inc esi */ 3881 _flag_k = FK_INC; 3882 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(1); 3883 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 1; /* 0x46002B39: inc dword ptr [ebp - 4] */ 3884 _flag_k = FK_INC; 3885 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(1); 3886 MEM32(ebp + 0xC) = MEM32(ebp + 0xC) - 1; /* 0x46002B3C: dec dword ptr [ebp + 0xc] */ 3887 _flag_k = FK_DEC; 3888 L_46002B3F: 3889 /* cmp MEM32(ebp + 0xC), 0 */ /* 0x46002B3F: cmp dword ptr [ebp + 0xc], 0 */ 3890 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(0); 3891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3892 _flag_k = FK_CMP; 3893 RECOMP_BACKEDGE(); 3894 if (CMP_G(_flag_a, _flag_b)) goto L_46002B19; /* 0x46002B43: jg 0x46002b19 */ 3895 L_46002B45: 3896 eax = MEM32(ebp + (-0x4)); /* 0x46002B45: mov eax, dword ptr [ebp - 4] */ 3897 edi = POP32_VAL(esp); /* 0x46002B48: pop edi */ 3898 esi = POP32_VAL(esp); /* 0x46002B49: pop esi */ 3899 ebx = POP32_VAL(esp); /* 0x46002B4A: pop ebx */ 3900 esp = ebp; ebp = POP32_VAL(esp); /* 0x46002B4B: leave */ 3901 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x46002B4C: ret 8 */ 3902 L_4600EDC6: 3903 eax = MEM32(edi + 0x30); /* 0x4600EDC6: mov eax, dword ptr [edi + 0x30] */ 3904 eax = MEM32(eax); /* 0x4600EDC9: mov eax, dword ptr [eax] */ 3905 if (1u) _cf = (((eax) >> 31) & 1u); /* 0x4600EDCB: shl eax, 1 */ 3906 if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3907 eax = eax << 1u; /* 0x4600EDCB: shl eax, 1 */ 3908 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4600EDCD: sar eax, 1 */ 3909 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3910 eax = (uint32_t)((int32_t)eax >> 1u); 3911 /* test eax, eax */ /* 0x4600EDCF: test eax, eax */ 3912 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3913 _cf = 0; 3914 _flag_k = FK_TEST; 3915 RECOMP_BACKEDGE(); 3916 if (TEST_LE(_flag_a, _flag_b)) goto L_46002B26; /* 0x4600EDD1: jle 0x46002b26 */ 3917 L_4600EDD7: 3918 /* cmp MEM32(ebp + 0xC), eax */ /* 0x4600EDD7: cmp dword ptr [ebp + 0xc], eax */ 3919 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(eax); 3920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3921 _flag_k = FK_CMP; 3922 if (CMP_GE(_flag_a, _flag_b)) goto L_4600EDDF; /* 0x4600EDDA: jge 0x4600eddf */ 3923 L_4600EDDC: 3924 eax = MEM32(ebp + 0xC); /* 0x4600EDDC: mov eax, dword ptr [ebp + 0xc] */ 3925 L_4600EDDF: 3926 /* test eax, eax */ /* 0x4600EDDF: test eax, eax */ 3927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3928 _cf = 0; 3929 _flag_k = FK_TEST; 3930 edx = esi; /* 0x4600EDE1: mov edx, esi */ 3931 if (TEST_Z(_flag_a, _flag_b)) goto L_4600EDF7; /* 0x4600EDE3: jbe 0x4600edf7 */ 3932 L_4600EDE5: 3933 MEM32(ebp + 0x8) = eax; /* 0x4600EDE5: mov dword ptr [ebp + 8], eax */ 3934 L_4600EDE8: 3935 SET_LO16(ebx, MEM16(edx)); /* 0x4600EDE8: mov bx, word ptr [edx] */ 3936 MEM16(ecx) = (uint16_t)(LO16(ebx)); /* 0x4600EDEB: mov word ptr [ecx], bx */ 3937 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3938 ecx = ecx + 1; /* 0x4600EDEE: inc ecx */ 3939 _flag_k = FK_INC; 3940 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3941 ecx = ecx + 1; /* 0x4600EDEF: inc ecx */ 3942 _flag_k = FK_INC; 3943 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3944 edx = edx + 1; /* 0x4600EDF0: inc edx */ 3945 _flag_k = FK_INC; 3946 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3947 edx = edx + 1; /* 0x4600EDF1: inc edx */ 3948 _flag_k = FK_INC; 3949 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(1); 3950 MEM32(ebp + 0x8) = MEM32(ebp + 0x8) - 1; /* 0x4600EDF2: dec dword ptr [ebp + 8] */ 3951 _flag_k = FK_DEC; 3952 RECOMP_BACKEDGE(); 3953 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_4600EDE8; /* 0x4600EDF5: jne 0x4600ede8 */ 3954 L_4600EDF7: 3955 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(eax); 3956 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3957 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + eax; /* 0x4600EDF7: add dword ptr [ebp - 4], eax */ 3958 _flag_k = FK_ADD; 3959 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(eax); 3960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3961 MEM32(ebp + 0xC) = MEM32(ebp + 0xC) - eax; /* 0x4600EDFA: sub dword ptr [ebp + 0xc], eax */ 3962 _flag_k = FK_CMP; 3963 PUSH32(esp, eax); /* 0x4600EDFD: push eax */ 3964 ecx = edi; /* 0x4600EDFE: mov ecx, edi */ 3965 esi = esi + eax * 2; /* 0x4600EE00: lea esi, [esi + eax*2] */ 3966 RECOMP_ICALL(0x4600EC79u); /* 0x4600EE03: call 0x4600ec79 */ /* not lifted */ 3967 RECOMP_FLAGS_IN(); 3968 RECOMP_BACKEDGE(); 3969 goto L_46002B3F; /* 0x4600EE08: jmp 0x46002b3f */ 3970 { RECOMP_REGS_OUT(); return; } /* end of function */ 3971 RECOMP_REGS_OUT(); 3972 } 3973 3974 void sub_4600EE0D(void) { 3975 int _fpu_cmp = 0; 3976 uint32_t _cf = 0; 3977 int _df = 1; 3978 uint32_t _flag_k = FK_NONE; 3979 uint32_t _flag_a = 0, _flag_b = 0; 3980 uint32_t _itail_tgt = 0; 3981 RECOMP_REGS_LOCALS 3982 RECOMP_ENTER(0x4600EE0Du); 3983 3984 L_4600EE0D: 3985 PUSH32(esp, ebp); /* 0x4600EE0D: push ebp */ 3986 ebp = esp; /* 0x4600EE0E: mov ebp, esp */ 3987 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 3988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3989 esp = esp - 0x18u; /* 0x4600EE10: sub esp, 0x18 */ 3990 _flag_k = FK_CMP; 3991 PUSH32(esp, esi); /* 0x4600EE13: push esi */ 3992 PUSH32(esp, edi); /* 0x4600EE14: push edi */ 3993 PUSH32(esp, 0xFFFFFFFFu); /* 0x4600EE15: push -1 */ 3994 ecx = ebp + (-0x18); /* 0x4600EE17: lea ecx, [ebp - 0x18] */ 3995 RECOMP_ICALL(0x4601C3C4u); /* 0x4600EE1A: call 0x4601c3c4 */ /* not lifted */ 3996 RECOMP_FLAGS_IN(); 3997 esi = eax; /* 0x4600EE1F: mov esi, eax */ 3998 eax = MEM32(ebp + 0x8); /* 0x4600EE21: mov eax, dword ptr [ebp + 8] */ 3999 PUSH32(esp, 6); /* 0x4600EE24: push 6 */ 4000 edi = eax; /* 0x4600EE26: mov edi, eax */ 4001 ecx = POP32_VAL(esp); /* 0x4600EE28: pop ecx */ 4002 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600EE29: 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; } 4003 edi = POP32_VAL(esp); /* 0x4600EE2B: pop edi */ 4004 esi = POP32_VAL(esp); /* 0x4600EE2C: pop esi */ 4005 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600EE2D: leave */ 4006 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4600EE2E: ret 0x10 */ 4007 RECOMP_REGS_OUT(); 4008 } 4009 4010 void sub_4600EE31(void) { 4011 int _fpu_cmp = 0; 4012 uint32_t _cf = 0; 4013 int _df = 1; 4014 uint32_t _flag_k = FK_NONE; 4015 uint32_t _flag_a = 0, _flag_b = 0; 4016 uint32_t _itail_tgt = 0; 4017 RECOMP_REGS_LOCALS 4018 RECOMP_ENTER(0x4600EE31u); 4019 4020 L_4600EE31: 4021 PUSH32(esp, ebp); /* 0x4600EE31: push ebp */ 4022 ebp = esp; /* 0x4600EE32: mov ebp, esp */ 4023 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4025 esp = esp - 0x18u; /* 0x4600EE34: sub esp, 0x18 */ 4026 _flag_k = FK_CMP; 4027 PUSH32(esp, esi); /* 0x4600EE37: push esi */ 4028 PUSH32(esp, edi); /* 0x4600EE38: push edi */ 4029 PUSH32(esp, 0xFFFFFFFFu); /* 0x4600EE39: push -1 */ 4030 ecx = ebp + (-0x18); /* 0x4600EE3B: lea ecx, [ebp - 0x18] */ 4031 RECOMP_ICALL(0x4601C3C4u); /* 0x4600EE3E: call 0x4601c3c4 */ /* not lifted */ 4032 RECOMP_FLAGS_IN(); 4033 esi = eax; /* 0x4600EE43: mov esi, eax */ 4034 eax = MEM32(ebp + 0x8); /* 0x4600EE45: mov eax, dword ptr [ebp + 8] */ 4035 PUSH32(esp, 6); /* 0x4600EE48: push 6 */ 4036 edi = eax; /* 0x4600EE4A: mov edi, eax */ 4037 ecx = POP32_VAL(esp); /* 0x4600EE4C: pop ecx */ 4038 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4600EE4D: 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; } 4039 edi = POP32_VAL(esp); /* 0x4600EE4F: pop edi */ 4040 esi = POP32_VAL(esp); /* 0x4600EE50: pop esi */ 4041 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600EE51: leave */ 4042 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x4600EE52: ret 0x20 */ 4043 RECOMP_REGS_OUT(); 4044 } 4045 4046 void sub_4600EE55(void) { 4047 int _fpu_cmp = 0; 4048 uint32_t _cf = 0; 4049 int _df = 1; 4050 uint32_t _flag_k = FK_NONE; 4051 uint32_t _flag_a = 0, _flag_b = 0; 4052 uint32_t _itail_tgt = 0; 4053 RECOMP_REGS_LOCALS 4054 RECOMP_ENTER(0x4600EE55u); 4055 4056 L_4600EE55: 4057 eax = ecx; /* 0x4600EE55: mov eax, ecx */ 4058 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4600EE57: ret 8 */ 4059 RECOMP_REGS_OUT(); 4060 }