client/game/kkr.dll/lifted-0027.c (1075850B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #include <math.h> 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 void sub_360568EB(void) { 9 int _fpu_cmp = 0; 10 uint32_t _cf = 0; 11 int _df = 1; 12 uint32_t _flag_k = FK_NONE; 13 uint32_t _flag_a = 0, _flag_b = 0; 14 uint32_t _itail_tgt = 0; 15 RECOMP_REGS_LOCALS 16 RECOMP_ENTER(0x360568EBu); 17 18 goto L_360568EB; 19 L_360567E9: 20 ecx = MEM32(ebp + (-0x10)); /* 0x360567E9: mov ecx, dword ptr [ebp - 0x10] */ 21 eax = ecx + 0x8; /* 0x360567EC: lea eax, [ecx + 8] */ 22 ecx = ebp + (-0x2C); /* 0x360567EF: lea ecx, [ebp - 0x2c] */ 23 /* cmp ecx, eax */ /* 0x360567F2: cmp ecx, eax */ 24 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 25 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26 _flag_k = FK_CMP; 27 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056801; /* 0x360567F4: je 0x36056801 */ 28 L_360567F6: 29 edx = MEM32(eax); /* 0x360567F6: mov edx, dword ptr [eax] */ 30 MEM32(ebp + (-0x2C)) = edx; /* 0x360567F8: mov dword ptr [ebp - 0x2c], edx */ 31 eax = MEM32(eax + 0x4); /* 0x360567FB: mov eax, dword ptr [eax + 4] */ 32 MEM32(ebp + (-0x28)) = eax; /* 0x360567FE: mov dword ptr [ebp - 0x28], eax */ 33 L_36056801: 34 PUSH32(esp, 0); /* 0x36056801: push 0 */ 35 PUSH32(esp, 0x361B5C10u); /* 0x36056803: push 0x361b5c10 */ 36 PUSH32(esp, 0x361B2CC0u); /* 0x36056808: push 0x361b2cc0 */ 37 ecx = ebp + (-0x2C); /* 0x3605680D: lea ecx, [ebp - 0x2c] */ 38 PUSH32(esp, 0); /* 0x36056810: push 0 */ 39 PUSH32(esp, ecx); /* 0x36056812: push ecx */ 40 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056813: call dword ptr [0x3616ff70] */ 41 RECOMP_FLAGS_IN(); 42 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 43 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 44 esp = esp + 4; /* 0x36056819: add esp, 4 */ 45 _flag_k = FK_ADD; 46 PUSH32(esp, eax); /* 0x3605681C: push eax */ 47 RECOMP_ICALL(0x3615FD86u); /* 0x3605681D: call 0x3615fd86 */ /* not lifted */ 48 RECOMP_FLAGS_IN(); 49 edi = eax; /* 0x36056822: mov edi, eax */ 50 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 51 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 52 esp = esp + 0x14u; /* 0x36056824: add esp, 0x14 */ 53 _flag_k = FK_ADD; 54 /* test edi, edi */ /* 0x36056827: test edi, edi */ 55 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 56 _cf = 0; 57 _flag_k = FK_TEST; 58 if (TEST_Z(_flag_a, _flag_b)) goto L_360568FD; /* 0x36056829: je 0x360568fd */ 59 L_3605682F: 60 eax = MEM32(esi + 0x10); /* 0x3605682F: mov eax, dword ptr [esi + 0x10] */ 61 edx = MEM32(edi + 0x11C); /* 0x36056832: mov edx, dword ptr [edi + 0x11c] */ 62 ecx = MEM32(eax + 0x8); /* 0x36056838: mov ecx, dword ptr [eax + 8] */ 63 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 64 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 65 eax = eax + 4; /* 0x3605683B: add eax, 4 */ 66 _flag_k = FK_ADD; 67 /* cmp edx, ecx */ /* 0x3605683E: cmp edx, ecx */ 68 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 69 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 70 _flag_k = FK_CMP; 71 if (CMP_NE(_flag_a, _flag_b)) goto L_36056850; /* 0x36056840: jne 0x36056850 */ 72 L_36056842: 73 ecx = MEM32(edi + 0x118); /* 0x36056842: mov ecx, dword ptr [edi + 0x118] */ 74 /* cmp ecx, MEM32(eax) */ /* 0x36056848: cmp ecx, dword ptr [eax] */ 75 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 76 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 77 _flag_k = FK_CMP; 78 if (CMP_EQ(_flag_a, _flag_b)) goto L_360568FD; /* 0x3605684A: je 0x360568fd */ 79 L_36056850: 80 ebx = MEM32(0x3616FFB0); /* 0x36056850: mov ebx, dword ptr [0x3616ffb0] */ 81 ecx = edi + 0x8C; /* 0x36056856: lea ecx, [edi + 0x8c] */ 82 RECOMP_ICALL(ebx); /* 0x3605685C: call ebx */ 83 RECOMP_FLAGS_IN(); 84 ecx = MEM32(esi + 0x10); /* 0x3605685E: mov ecx, dword ptr [esi + 0x10] */ 85 MEM32(ebp + (-0x14)) = eax; /* 0x36056861: mov dword ptr [ebp - 0x14], eax */ 86 RECOMP_ICALL(ebx); /* 0x36056864: call ebx */ 87 RECOMP_FLAGS_IN(); 88 edx = MEM32(eax); /* 0x36056866: mov edx, dword ptr [eax] */ 89 ecx = MEM32(eax + 0x4); /* 0x36056868: mov ecx, dword ptr [eax + 4] */ 90 MEM32(ebp + (-0x38)) = edx; /* 0x3605686B: mov dword ptr [ebp - 0x38], edx */ 91 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3605686E: fld dword ptr [ebp - 0x38] */ 92 edx = MEM32(eax + 0x8); /* 0x36056871: mov edx, dword ptr [eax + 8] */ 93 eax = MEM32(ebp + (-0x14)); /* 0x36056874: mov eax, dword ptr [ebp - 0x14] */ 94 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36056877: fsub dword ptr [eax] */ 95 MEM32(ebp + (-0x34)) = ecx; /* 0x36056879: mov dword ptr [ebp - 0x34], ecx */ 96 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3605687C: fld dword ptr [ebp - 0x34] */ 97 MEM32(ebp + (-0x30)) = edx; /* 0x3605687F: mov dword ptr [ebp - 0x30], edx */ 98 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x36056882: fsub dword ptr [eax + 4] */ 99 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36056885: fld dword ptr [ebp - 0x30] */ 100 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x36056888: fsub dword ptr [eax + 8] */ 101 fp_push(_st[0]); /* 0x3605688B: fld st(0) */ 102 _st[0] *= _st[1]; /* 0x3605688D: fmul st(1) */ 103 fp_push(_st[2]); /* 0x3605688F: fld st(2) */ 104 _st[0] *= _st[3]; /* 0x36056891: fmul st(3) */ 105 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056893: faddp st(1) */ 106 fp_push(_st[3]); /* 0x36056895: fld st(3) */ 107 _st[0] *= _st[4]; /* 0x36056897: fmul st(4) */ 108 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056899: faddp st(1) */ 109 _st[0] = sqrt(_st[0]); /* 0x3605689B: fsqrt */ 110 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605689D: fstp st(3) */ 111 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605689F: fstp st(0) */ 112 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360568A1: fstp st(0) */ 113 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x360568A3: fcomp qword ptr [0x36170808] */ 114 fp_pop(); 115 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360568A9: fnstsw ax */ 116 /* test HI8(eax), 0x41u */ /* 0x360568AB: test ah, 0x41 */ 117 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 118 _cf = 0; 119 _flag_k = FK_NARROW(FK_TEST, 24); 120 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056903; /* 0x360568AE: jne 0x36056903 */ 121 L_360568B0: 122 PUSH32(esp, 0x34u); /* 0x360568B0: push 0x34 */ 123 RECOMP_ICALL(0x3615FD6Au); /* 0x360568B2: call 0x3615fd6a */ /* not lifted */ 124 RECOMP_FLAGS_IN(); 125 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 126 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 127 esp = esp + 4; /* 0x360568B7: add esp, 4 */ 128 _flag_k = FK_ADD; 129 MEM32(ebp + (-0x14)) = eax; /* 0x360568BA: mov dword ptr [ebp - 0x14], eax */ 130 /* test eax, eax */ /* 0x360568BD: test eax, eax */ 131 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 132 _cf = 0; 133 _flag_k = FK_TEST; 134 MEM32(ebp + (-0x4)) = 0; /* 0x360568BF: mov dword ptr [ebp - 4], 0 */ 135 if (TEST_Z(_flag_a, _flag_b)) goto L_360568E9; /* 0x360568C6: je 0x360568e9 */ 136 L_360568C8: 137 ecx = MEM32(esi + 0x10); /* 0x360568C8: mov ecx, dword ptr [esi + 0x10] */ 138 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x90u); 139 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 140 edi = edi + 0x90u; /* 0x360568CB: add edi, 0x90 */ 141 _flag_k = FK_ADD; 142 PUSH32(esp, edi); /* 0x360568D1: push edi */ 143 PUSH32(esp, 0x8Eu); /* 0x360568D2: push 0x8e */ 144 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 145 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 146 ecx = ecx + 4; /* 0x360568D7: add ecx, 4 */ 147 _flag_k = FK_ADD; 148 PUSH32(esp, 0x362EA510u); /* 0x360568DA: push 0x362ea510 */ 149 PUSH32(esp, ecx); /* 0x360568DF: push ecx */ 150 ecx = eax; /* 0x360568E0: mov ecx, eax */ 151 RECOMP_ICALL(0x3607D4B0u); /* 0x360568E2: call 0x3607d4b0 */ /* not lifted */ 152 RECOMP_FLAGS_IN(); 153 goto L_360568EB; /* 0x360568E7: jmp 0x360568eb */ 154 L_360568E9: 155 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 156 eax = 0; /* 0x360568E9: xor eax, eax */ 157 _cf = 0; 158 _flag_k = FK_TEST; 159 L_360568EB: 160 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360568EB: mov dword ptr [ebp - 4], 0xffffffff */ 161 MEM32(ebp + (-0x18)) = eax; /* 0x360568F2: mov dword ptr [ebp - 0x18], eax */ 162 edx = ebp + (-0x18); /* 0x360568F5: lea edx, [ebp - 0x18] */ 163 goto L_36056BDE; /* 0x360568F8: jmp 0x36056bde */ 164 L_360568FD: 165 ebx = MEM32(0x3616FFB0); /* 0x360568FD: mov ebx, dword ptr [0x3616ffb0] */ 166 L_36056903: 167 /* cmp MEM32(ebp + (-0x2C)), 0xC350u */ /* 0x36056903: cmp dword ptr [ebp - 0x2c], 0xc350 */ 168 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xC350u); 169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 170 _flag_k = FK_CMP; 171 if (CMP_NE(_flag_a, _flag_b)) goto L_360569B4; /* 0x3605690A: jne 0x360569b4 */ 172 L_36056910: 173 PUSH32(esp, 0); /* 0x36056910: push 0 */ 174 PUSH32(esp, 0x361B2CD8u); /* 0x36056912: push 0x361b2cd8 */ 175 PUSH32(esp, 0x361B2CC0u); /* 0x36056917: push 0x361b2cc0 */ 176 ecx = ebp + (-0x2C); /* 0x3605691C: lea ecx, [ebp - 0x2c] */ 177 PUSH32(esp, 0); /* 0x3605691F: push 0 */ 178 PUSH32(esp, ecx); /* 0x36056921: push ecx */ 179 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056922: call dword ptr [0x3616ff70] */ 180 RECOMP_FLAGS_IN(); 181 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 183 esp = esp + 4; /* 0x36056928: add esp, 4 */ 184 _flag_k = FK_ADD; 185 PUSH32(esp, eax); /* 0x3605692B: push eax */ 186 RECOMP_ICALL(0x3615FD86u); /* 0x3605692C: call 0x3615fd86 */ /* not lifted */ 187 RECOMP_FLAGS_IN(); 188 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 190 esp = esp + 0x14u; /* 0x36056931: add esp, 0x14 */ 191 _flag_k = FK_ADD; 192 /* test eax, eax */ /* 0x36056934: test eax, eax */ 193 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 194 _cf = 0; 195 _flag_k = FK_TEST; 196 MEM32(ebp + (-0x14)) = eax; /* 0x36056936: mov dword ptr [ebp - 0x14], eax */ 197 if (TEST_Z(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056939: je 0x360569b4 */ 198 L_3605693B: 199 ecx = eax; /* 0x3605693B: mov ecx, eax */ 200 RECOMP_ICALL(ebx); /* 0x3605693D: call ebx */ 201 RECOMP_FLAGS_IN(); 202 ecx = MEM32(esi + 0x10); /* 0x3605693F: mov ecx, dword ptr [esi + 0x10] */ 203 edi = eax; /* 0x36056942: mov edi, eax */ 204 RECOMP_ICALL(ebx); /* 0x36056944: call ebx */ 205 RECOMP_FLAGS_IN(); 206 edx = MEM32(eax); /* 0x36056946: mov edx, dword ptr [eax] */ 207 ecx = MEM32(eax + 0x4); /* 0x36056948: mov ecx, dword ptr [eax + 4] */ 208 MEM32(ebp + (-0x44)) = edx; /* 0x3605694B: mov dword ptr [ebp - 0x44], edx */ 209 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3605694E: fld dword ptr [ebp - 0x44] */ 210 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056951: fsub dword ptr [edi] */ 211 edx = MEM32(eax + 0x8); /* 0x36056953: mov edx, dword ptr [eax + 8] */ 212 MEM32(ebp + (-0x40)) = ecx; /* 0x36056956: mov dword ptr [ebp - 0x40], ecx */ 213 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36056959: fld dword ptr [ebp - 0x40] */ 214 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3605695C: fsub dword ptr [edi + 4] */ 215 MEM32(ebp + (-0x3C)) = edx; /* 0x3605695F: mov dword ptr [ebp - 0x3c], edx */ 216 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36056962: fld dword ptr [ebp - 0x3c] */ 217 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056965: fsub dword ptr [edi + 8] */ 218 fp_push(_st[0]); /* 0x36056968: fld st(0) */ 219 _st[0] *= _st[1]; /* 0x3605696A: fmul st(1) */ 220 fp_push(_st[2]); /* 0x3605696C: fld st(2) */ 221 _st[0] *= _st[3]; /* 0x3605696E: fmul st(3) */ 222 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056970: faddp st(1) */ 223 fp_push(_st[3]); /* 0x36056972: fld st(3) */ 224 _st[0] *= _st[4]; /* 0x36056974: fmul st(4) */ 225 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056976: faddp st(1) */ 226 _st[0] = sqrt(_st[0]); /* 0x36056978: fsqrt */ 227 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605697A: fstp st(3) */ 228 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697C: fstp st(0) */ 229 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697E: fstp st(0) */ 230 RECOMP_ICALL(0x3615FD8Cu); /* 0x36056980: call 0x3615fd8c */ /* not lifted */ 231 RECOMP_FLAGS_IN(); 232 /* cmp eax, 2 */ /* 0x36056985: cmp eax, 2 */ 233 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 235 _flag_k = FK_CMP; 236 if (CMP_G(_flag_a, _flag_b)) goto L_36056996; /* 0x36056988: jg 0x36056996 */ 237 L_3605698A: 238 eax = MEM32(ebp + (-0x14)); /* 0x3605698A: mov eax, dword ptr [ebp - 0x14] */ 239 /* test MEM8(eax + 0x11C), 0x10u */ /* 0x3605698D: test byte ptr [eax + 0x11c], 0x10 */ 240 _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 241 _cf = 0; 242 _flag_k = FK_NARROW(FK_TEST, 24); 243 if (TEST_NZ(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056994: jne 0x360569b4 */ 244 L_36056996: 245 ecx = ebp + (-0x2C); /* 0x36056996: lea ecx, [ebp - 0x2c] */ 246 PUSH32(esp, ecx); /* 0x36056999: push ecx */ 247 ecx = esi; /* 0x3605699A: mov ecx, esi */ 248 RECOMP_ICALL(0x36053160u); /* 0x3605699C: call 0x36053160 */ /* not lifted */ 249 RECOMP_FLAGS_IN(); 250 edx = MEM32(esi + 0x8C); /* 0x360569A1: mov edx, dword ptr [esi + 0x8c] */ 251 eax = MEM32(edx + 0x4); /* 0x360569A7: mov eax, dword ptr [edx + 4] */ 252 ecx = MEM32(eax); /* 0x360569AA: mov ecx, dword ptr [eax] */ 253 MEM32(ebp + (-0x10)) = ecx; /* 0x360569AC: mov dword ptr [ebp - 0x10], ecx */ 254 goto L_36056C0B; /* 0x360569AF: jmp 0x36056c0b */ 255 L_360569B4: 256 /* cmp MEM32(ebp + (-0x2C)), 0xDEADu */ /* 0x360569B4: cmp dword ptr [ebp - 0x2c], 0xdead */ 257 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEADu); 258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 259 _flag_k = FK_CMP; 260 if (CMP_NE(_flag_a, _flag_b)) goto L_36056A5F; /* 0x360569BB: jne 0x36056a5f */ 261 L_360569C1: 262 ecx = MEM32(esi + 0x10); /* 0x360569C1: mov ecx, dword ptr [esi + 0x10] */ 263 RECOMP_ICALL(ebx); /* 0x360569C4: call ebx */ 264 RECOMP_FLAGS_IN(); 265 edx = MEM32(eax); /* 0x360569C6: mov edx, dword ptr [eax] */ 266 ecx = MEM32(eax + 0x4); /* 0x360569C8: mov ecx, dword ptr [eax + 4] */ 267 MEM32(ebp + (-0x50)) = edx; /* 0x360569CB: mov dword ptr [ebp - 0x50], edx */ 268 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x360569CE: fld dword ptr [ebp - 0x50] */ 269 _st[0] -= (double)*(float*)ADDR(esi + 0x9C); /* 0x360569D1: fsub dword ptr [esi + 0x9c] */ 270 edx = MEM32(eax + 0x8); /* 0x360569D7: mov edx, dword ptr [eax + 8] */ 271 MEM32(ebp + (-0x4C)) = ecx; /* 0x360569DA: mov dword ptr [ebp - 0x4c], ecx */ 272 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x360569DD: fld dword ptr [ebp - 0x4c] */ 273 _st[0] -= (double)*(float*)ADDR(esi + 0xA0); /* 0x360569E0: fsub dword ptr [esi + 0xa0] */ 274 MEM32(ebp + (-0x48)) = edx; /* 0x360569E6: mov dword ptr [ebp - 0x48], edx */ 275 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x360569E9: fld dword ptr [ebp - 0x48] */ 276 _st[0] -= (double)*(float*)ADDR(esi + 0xA4); /* 0x360569EC: fsub dword ptr [esi + 0xa4] */ 277 fp_push(_st[0]); /* 0x360569F2: fld st(0) */ 278 _st[0] *= _st[1]; /* 0x360569F4: fmul st(1) */ 279 fp_push(_st[2]); /* 0x360569F6: fld st(2) */ 280 _st[0] *= _st[3]; /* 0x360569F8: fmul st(3) */ 281 { double _v = fp_pop(); _st[0] += _v; } /* 0x360569FA: faddp st(1) */ 282 fp_push(_st[3]); /* 0x360569FC: fld st(3) */ 283 _st[0] *= _st[4]; /* 0x360569FE: fmul st(4) */ 284 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056A00: faddp st(1) */ 285 _st[0] = sqrt(_st[0]); /* 0x36056A02: fsqrt */ 286 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056A04: fstp st(3) */ 287 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A06: fstp st(0) */ 288 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A08: fstp st(0) */ 289 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056A0A: fcomp qword ptr [0x36170808] */ 290 fp_pop(); 291 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056A10: fnstsw ax */ 292 /* test HI8(eax), 0x41u */ /* 0x36056A12: test ah, 0x41 */ 293 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 294 _cf = 0; 295 _flag_k = FK_NARROW(FK_TEST, 24); 296 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056A5F; /* 0x36056A15: jne 0x36056a5f */ 297 L_36056A17: 298 PUSH32(esp, 0x34u); /* 0x36056A17: push 0x34 */ 299 RECOMP_ICALL(0x3615FD6Au); /* 0x36056A19: call 0x3615fd6a */ /* not lifted */ 300 RECOMP_FLAGS_IN(); 301 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 302 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 303 esp = esp + 4; /* 0x36056A1E: add esp, 4 */ 304 _flag_k = FK_ADD; 305 MEM32(ebp + (-0x14)) = eax; /* 0x36056A21: mov dword ptr [ebp - 0x14], eax */ 306 /* test eax, eax */ /* 0x36056A24: test eax, eax */ 307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 308 _cf = 0; 309 _flag_k = FK_TEST; 310 MEM32(ebp + (-0x4)) = 1; /* 0x36056A26: mov dword ptr [ebp - 4], 1 */ 311 if (TEST_Z(_flag_a, _flag_b)) goto L_36056A4B; /* 0x36056A2D: je 0x36056a4b */ 312 L_36056A2F: 313 ecx = MEM32(esi + 0x10); /* 0x36056A2F: mov ecx, dword ptr [esi + 0x10] */ 314 PUSH32(esp, 0x362EA510u); /* 0x36056A32: push 0x362ea510 */ 315 PUSH32(esp, 0x6Au); /* 0x36056A37: push 0x6a */ 316 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 317 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 318 ecx = ecx + 4; /* 0x36056A39: add ecx, 4 */ 319 _flag_k = FK_ADD; 320 PUSH32(esp, 0x362EA510u); /* 0x36056A3C: push 0x362ea510 */ 321 PUSH32(esp, ecx); /* 0x36056A41: push ecx */ 322 ecx = eax; /* 0x36056A42: mov ecx, eax */ 323 RECOMP_ICALL(0x3607D4B0u); /* 0x36056A44: call 0x3607d4b0 */ /* not lifted */ 324 RECOMP_FLAGS_IN(); 325 goto L_36056A4D; /* 0x36056A49: jmp 0x36056a4d */ 326 L_36056A4B: 327 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 328 eax = 0; /* 0x36056A4B: xor eax, eax */ 329 _cf = 0; 330 _flag_k = FK_TEST; 331 L_36056A4D: 332 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056A4D: mov dword ptr [ebp - 4], 0xffffffff */ 333 MEM32(ebp + (-0x1C)) = eax; /* 0x36056A54: mov dword ptr [ebp - 0x1c], eax */ 334 edx = ebp + (-0x1C); /* 0x36056A57: lea edx, [ebp - 0x1c] */ 335 goto L_36056BDE; /* 0x36056A5A: jmp 0x36056bde */ 336 L_36056A5F: 337 /* cmp MEM32(ebp + (-0x2C)), 0xDEAEu */ /* 0x36056A5F: cmp dword ptr [ebp - 0x2c], 0xdeae */ 338 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEAEu); 339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 340 _flag_k = FK_CMP; 341 if (CMP_NE(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056A66: jne 0x36056c03 */ 342 L_36056A6C: 343 edi = MEM32(0x3616FF70); /* 0x36056A6C: mov edi, dword ptr [0x3616ff70] */ 344 ecx = esi + 0x78; /* 0x36056A72: lea ecx, [esi + 0x78] */ 345 PUSH32(esp, ecx); /* 0x36056A75: push ecx */ 346 RECOMP_ICALL(edi); /* 0x36056A76: call edi */ 347 RECOMP_FLAGS_IN(); 348 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 349 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 350 esp = esp + 4; /* 0x36056A78: add esp, 4 */ 351 _flag_k = FK_ADD; 352 /* test eax, eax */ /* 0x36056A7B: test eax, eax */ 353 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 354 _cf = 0; 355 _flag_k = FK_TEST; 356 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B21; /* 0x36056A7D: je 0x36056b21 */ 357 L_36056A83: 358 ecx = eax; /* 0x36056A83: mov ecx, eax */ 359 RECOMP_ICALL(ebx); /* 0x36056A85: call ebx */ 360 RECOMP_FLAGS_IN(); 361 ecx = MEM32(esi + 0x10); /* 0x36056A87: mov ecx, dword ptr [esi + 0x10] */ 362 edi = eax; /* 0x36056A8A: mov edi, eax */ 363 RECOMP_ICALL(ebx); /* 0x36056A8C: call ebx */ 364 RECOMP_FLAGS_IN(); 365 edx = MEM32(eax); /* 0x36056A8E: mov edx, dword ptr [eax] */ 366 ecx = MEM32(eax + 0x4); /* 0x36056A90: mov ecx, dword ptr [eax + 4] */ 367 MEM32(ebp + (-0x5C)) = edx; /* 0x36056A93: mov dword ptr [ebp - 0x5c], edx */ 368 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36056A96: fld dword ptr [ebp - 0x5c] */ 369 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056A99: fsub dword ptr [edi] */ 370 edx = MEM32(eax + 0x8); /* 0x36056A9B: mov edx, dword ptr [eax + 8] */ 371 MEM32(ebp + (-0x58)) = ecx; /* 0x36056A9E: mov dword ptr [ebp - 0x58], ecx */ 372 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36056AA1: fld dword ptr [ebp - 0x58] */ 373 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056AA4: fsub dword ptr [edi + 4] */ 374 MEM32(ebp + (-0x54)) = edx; /* 0x36056AA7: mov dword ptr [ebp - 0x54], edx */ 375 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36056AAA: fld dword ptr [ebp - 0x54] */ 376 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056AAD: fsub dword ptr [edi + 8] */ 377 fp_push(_st[0]); /* 0x36056AB0: fld st(0) */ 378 _st[0] *= _st[1]; /* 0x36056AB2: fmul st(1) */ 379 fp_push(_st[2]); /* 0x36056AB4: fld st(2) */ 380 _st[0] *= _st[3]; /* 0x36056AB6: fmul st(3) */ 381 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056AB8: faddp st(1) */ 382 fp_push(_st[3]); /* 0x36056ABA: fld st(3) */ 383 _st[0] *= _st[4]; /* 0x36056ABC: fmul st(4) */ 384 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056ABE: faddp st(1) */ 385 _st[0] = sqrt(_st[0]); /* 0x36056AC0: fsqrt */ 386 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056AC2: fstp st(3) */ 387 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC4: fstp st(0) */ 388 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC6: fstp st(0) */ 389 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056AC8: fcomp qword ptr [0x36170808] */ 390 fp_pop(); 391 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056ACE: fnstsw ax */ 392 /* test HI8(eax), 0x41u */ /* 0x36056AD0: test ah, 0x41 */ 393 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 394 _cf = 0; 395 _flag_k = FK_NARROW(FK_TEST, 24); 396 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056AD3: jne 0x36056c03 */ 397 L_36056AD9: 398 PUSH32(esp, 0x34u); /* 0x36056AD9: push 0x34 */ 399 RECOMP_ICALL(0x3615FD6Au); /* 0x36056ADB: call 0x3615fd6a */ /* not lifted */ 400 RECOMP_FLAGS_IN(); 401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 402 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 403 esp = esp + 4; /* 0x36056AE0: add esp, 4 */ 404 _flag_k = FK_ADD; 405 MEM32(ebp + (-0x14)) = eax; /* 0x36056AE3: mov dword ptr [ebp - 0x14], eax */ 406 /* test eax, eax */ /* 0x36056AE6: test eax, eax */ 407 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 408 _cf = 0; 409 _flag_k = FK_TEST; 410 MEM32(ebp + (-0x4)) = 2; /* 0x36056AE8: mov dword ptr [ebp - 4], 2 */ 411 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B0D; /* 0x36056AEF: je 0x36056b0d */ 412 L_36056AF1: 413 ecx = MEM32(esi + 0x10); /* 0x36056AF1: mov ecx, dword ptr [esi + 0x10] */ 414 PUSH32(esp, 0x362EA510u); /* 0x36056AF4: push 0x362ea510 */ 415 PUSH32(esp, 0x6Eu); /* 0x36056AF9: push 0x6e */ 416 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 418 ecx = ecx + 4; /* 0x36056AFB: add ecx, 4 */ 419 _flag_k = FK_ADD; 420 PUSH32(esp, 0x362EA510u); /* 0x36056AFE: push 0x362ea510 */ 421 PUSH32(esp, ecx); /* 0x36056B03: push ecx */ 422 ecx = eax; /* 0x36056B04: mov ecx, eax */ 423 RECOMP_ICALL(0x3607D4B0u); /* 0x36056B06: call 0x3607d4b0 */ /* not lifted */ 424 RECOMP_FLAGS_IN(); 425 goto L_36056B0F; /* 0x36056B0B: jmp 0x36056b0f */ 426 L_36056B0D: 427 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 428 eax = 0; /* 0x36056B0D: xor eax, eax */ 429 _cf = 0; 430 _flag_k = FK_TEST; 431 L_36056B0F: 432 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056B0F: mov dword ptr [ebp - 4], 0xffffffff */ 433 MEM32(ebp + (-0x20)) = eax; /* 0x36056B16: mov dword ptr [ebp - 0x20], eax */ 434 edx = ebp + (-0x20); /* 0x36056B19: lea edx, [ebp - 0x20] */ 435 goto L_36056BDE; /* 0x36056B1C: jmp 0x36056bde */ 436 L_36056B21: 437 ecx = MEM32(esi + 0x10); /* 0x36056B21: mov ecx, dword ptr [esi + 0x10] */ 438 eax = MEM32(ecx + 0x150); /* 0x36056B24: mov eax, dword ptr [ecx + 0x150] */ 439 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 440 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 441 eax = eax + 0xE4u; /* 0x36056B2A: add eax, 0xe4 */ 442 _flag_k = FK_ADD; 443 PUSH32(esp, eax); /* 0x36056B2F: push eax */ 444 RECOMP_ICALL(edi); /* 0x36056B30: call edi */ 445 RECOMP_FLAGS_IN(); 446 ebx = eax; /* 0x36056B32: mov ebx, eax */ 447 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 449 esp = esp + 4; /* 0x36056B34: add esp, 4 */ 450 _flag_k = FK_ADD; 451 /* test ebx, ebx */ /* 0x36056B37: test ebx, ebx */ 452 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 453 _cf = 0; 454 _flag_k = FK_TEST; 455 if (TEST_Z(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B39: je 0x36056c03 */ 456 L_36056B3F: 457 ecx = ebx; /* 0x36056B3F: mov ecx, ebx */ 458 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B41: call dword ptr [0x3616ffb0] */ 459 RECOMP_FLAGS_IN(); 460 ecx = MEM32(esi + 0x10); /* 0x36056B47: mov ecx, dword ptr [esi + 0x10] */ 461 edi = eax; /* 0x36056B4A: mov edi, eax */ 462 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B4C: call dword ptr [0x3616ffb0] */ 463 RECOMP_FLAGS_IN(); 464 edx = MEM32(eax); /* 0x36056B52: mov edx, dword ptr [eax] */ 465 ecx = MEM32(eax + 0x4); /* 0x36056B54: mov ecx, dword ptr [eax + 4] */ 466 MEM32(ebp + (-0x68)) = edx; /* 0x36056B57: mov dword ptr [ebp - 0x68], edx */ 467 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36056B5A: fld dword ptr [ebp - 0x68] */ 468 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056B5D: fsub dword ptr [edi] */ 469 edx = MEM32(eax + 0x8); /* 0x36056B5F: mov edx, dword ptr [eax + 8] */ 470 MEM32(ebp + (-0x64)) = ecx; /* 0x36056B62: mov dword ptr [ebp - 0x64], ecx */ 471 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36056B65: fld dword ptr [ebp - 0x64] */ 472 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056B68: fsub dword ptr [edi + 4] */ 473 MEM32(ebp + (-0x60)) = edx; /* 0x36056B6B: mov dword ptr [ebp - 0x60], edx */ 474 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36056B6E: fld dword ptr [ebp - 0x60] */ 475 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056B71: fsub dword ptr [edi + 8] */ 476 fp_push(_st[0]); /* 0x36056B74: fld st(0) */ 477 _st[0] *= _st[1]; /* 0x36056B76: fmul st(1) */ 478 fp_push(_st[2]); /* 0x36056B78: fld st(2) */ 479 _st[0] *= _st[3]; /* 0x36056B7A: fmul st(3) */ 480 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B7C: faddp st(1) */ 481 fp_push(_st[3]); /* 0x36056B7E: fld st(3) */ 482 _st[0] *= _st[4]; /* 0x36056B80: fmul st(4) */ 483 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B82: faddp st(1) */ 484 _st[0] = sqrt(_st[0]); /* 0x36056B84: fsqrt */ 485 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056B86: fstp st(3) */ 486 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B88: fstp st(0) */ 487 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B8A: fstp st(0) */ 488 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056B8C: fcomp qword ptr [0x36170808] */ 489 fp_pop(); 490 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056B92: fnstsw ax */ 491 /* test HI8(eax), 0x41u */ /* 0x36056B94: test ah, 0x41 */ 492 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 493 _cf = 0; 494 _flag_k = FK_NARROW(FK_TEST, 24); 495 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B97: jne 0x36056c03 */ 496 L_36056B99: 497 PUSH32(esp, 0x34u); /* 0x36056B99: push 0x34 */ 498 RECOMP_ICALL(0x3615FD6Au); /* 0x36056B9B: call 0x3615fd6a */ /* not lifted */ 499 RECOMP_FLAGS_IN(); 500 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 501 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 502 esp = esp + 4; /* 0x36056BA0: add esp, 4 */ 503 _flag_k = FK_ADD; 504 MEM32(ebp + (-0x14)) = eax; /* 0x36056BA3: mov dword ptr [ebp - 0x14], eax */ 505 /* test eax, eax */ /* 0x36056BA6: test eax, eax */ 506 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 507 _cf = 0; 508 _flag_k = FK_TEST; 509 MEM32(ebp + (-0x4)) = 3; /* 0x36056BA8: mov dword ptr [ebp - 4], 3 */ 510 if (TEST_Z(_flag_a, _flag_b)) goto L_36056BCF; /* 0x36056BAF: je 0x36056bcf */ 511 L_36056BB1: 512 ecx = MEM32(esi + 0x10); /* 0x36056BB1: mov ecx, dword ptr [esi + 0x10] */ 513 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 514 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 515 ebx = ebx + 4; /* 0x36056BB4: add ebx, 4 */ 516 _flag_k = FK_ADD; 517 PUSH32(esp, ebx); /* 0x36056BB7: push ebx */ 518 PUSH32(esp, 0x8Eu); /* 0x36056BB8: push 0x8e */ 519 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 520 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 521 ecx = ecx + 4; /* 0x36056BBD: add ecx, 4 */ 522 _flag_k = FK_ADD; 523 PUSH32(esp, 0x362EA510u); /* 0x36056BC0: push 0x362ea510 */ 524 PUSH32(esp, ecx); /* 0x36056BC5: push ecx */ 525 ecx = eax; /* 0x36056BC6: mov ecx, eax */ 526 RECOMP_ICALL(0x3607D4B0u); /* 0x36056BC8: call 0x3607d4b0 */ /* not lifted */ 527 RECOMP_FLAGS_IN(); 528 goto L_36056BD1; /* 0x36056BCD: jmp 0x36056bd1 */ 529 L_36056BCF: 530 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 531 eax = 0; /* 0x36056BCF: xor eax, eax */ 532 _cf = 0; 533 _flag_k = FK_TEST; 534 L_36056BD1: 535 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056BD1: mov dword ptr [ebp - 4], 0xffffffff */ 536 MEM32(ebp + (-0x24)) = eax; /* 0x36056BD8: mov dword ptr [ebp - 0x24], eax */ 537 edx = ebp + (-0x24); /* 0x36056BDB: lea edx, [ebp - 0x24] */ 538 L_36056BDE: 539 ecx = MEM32(esi + 0x10); /* 0x36056BDE: mov ecx, dword ptr [esi + 0x10] */ 540 PUSH32(esp, edx); /* 0x36056BE1: push edx */ 541 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36056BE2: call dword ptr [0x3617004c] */ 542 RECOMP_FLAGS_IN(); 543 eax = ebp + (-0x2C); /* 0x36056BE8: lea eax, [ebp - 0x2c] */ 544 PUSH32(esp, eax); /* 0x36056BEB: push eax */ 545 ecx = esi; /* 0x36056BEC: mov ecx, esi */ 546 RECOMP_ICALL(0x36053160u); /* 0x36056BEE: call 0x36053160 */ /* not lifted */ 547 RECOMP_FLAGS_IN(); 548 ecx = MEM32(esi + 0x8C); /* 0x36056BF3: mov ecx, dword ptr [esi + 0x8c] */ 549 edx = MEM32(ecx + 0x4); /* 0x36056BF9: mov edx, dword ptr [ecx + 4] */ 550 eax = MEM32(edx); /* 0x36056BFC: mov eax, dword ptr [edx] */ 551 MEM32(ebp + (-0x10)) = eax; /* 0x36056BFE: mov dword ptr [ebp - 0x10], eax */ 552 goto L_36056C0B; /* 0x36056C01: jmp 0x36056c0b */ 553 L_36056C03: 554 ecx = MEM32(ebp + (-0x10)); /* 0x36056C03: mov ecx, dword ptr [ebp - 0x10] */ 555 edx = MEM32(ecx); /* 0x36056C06: mov edx, dword ptr [ecx] */ 556 MEM32(ebp + (-0x10)) = edx; /* 0x36056C08: mov dword ptr [ebp - 0x10], edx */ 557 L_36056C0B: 558 eax = MEM32(esi + 0x8C); /* 0x36056C0B: mov eax, dword ptr [esi + 0x8c] */ 559 ecx = MEM32(ebp + (-0x10)); /* 0x36056C11: mov ecx, dword ptr [ebp - 0x10] */ 560 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x36056C14: cmp ecx, dword ptr [eax + 4] */ 561 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 563 _flag_k = FK_CMP; 564 RECOMP_BACKEDGE(); 565 if (CMP_NE(_flag_a, _flag_b)) goto L_360567E9; /* 0x36056C17: jne 0x360567e9 */ 566 L_36056C1D: 567 edi = POP32_VAL(esp); /* 0x36056C1D: pop edi */ 568 ebx = POP32_VAL(esp); /* 0x36056C1E: pop ebx */ 569 ecx = MEM32(ebp + (-0xC)); /* 0x36056C1F: mov ecx, dword ptr [ebp - 0xc] */ 570 esi = POP32_VAL(esp); /* 0x36056C22: pop esi */ 571 MEM32(FS_BASE + (0)) = ecx; /* 0x36056C23: mov dword ptr fs:[0], ecx */ 572 esp = ebp; /* 0x36056C2A: mov esp, ebp */ 573 ebp = POP32_VAL(esp); /* 0x36056C2C: pop ebp */ 574 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36056C2D: ret */ 575 RECOMP_REGS_OUT(); 576 } 577 578 void sub_360568FD(void) { 579 int _fpu_cmp = 0; 580 uint32_t _cf = 0; 581 int _df = 1; 582 uint32_t _flag_k = FK_NONE; 583 uint32_t _flag_a = 0, _flag_b = 0; 584 uint32_t _itail_tgt = 0; 585 RECOMP_REGS_LOCALS 586 RECOMP_ENTER(0x360568FDu); 587 588 goto L_360568FD; 589 L_360567E9: 590 ecx = MEM32(ebp + (-0x10)); /* 0x360567E9: mov ecx, dword ptr [ebp - 0x10] */ 591 eax = ecx + 0x8; /* 0x360567EC: lea eax, [ecx + 8] */ 592 ecx = ebp + (-0x2C); /* 0x360567EF: lea ecx, [ebp - 0x2c] */ 593 /* cmp ecx, eax */ /* 0x360567F2: cmp ecx, eax */ 594 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 596 _flag_k = FK_CMP; 597 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056801; /* 0x360567F4: je 0x36056801 */ 598 L_360567F6: 599 edx = MEM32(eax); /* 0x360567F6: mov edx, dword ptr [eax] */ 600 MEM32(ebp + (-0x2C)) = edx; /* 0x360567F8: mov dword ptr [ebp - 0x2c], edx */ 601 eax = MEM32(eax + 0x4); /* 0x360567FB: mov eax, dword ptr [eax + 4] */ 602 MEM32(ebp + (-0x28)) = eax; /* 0x360567FE: mov dword ptr [ebp - 0x28], eax */ 603 L_36056801: 604 PUSH32(esp, 0); /* 0x36056801: push 0 */ 605 PUSH32(esp, 0x361B5C10u); /* 0x36056803: push 0x361b5c10 */ 606 PUSH32(esp, 0x361B2CC0u); /* 0x36056808: push 0x361b2cc0 */ 607 ecx = ebp + (-0x2C); /* 0x3605680D: lea ecx, [ebp - 0x2c] */ 608 PUSH32(esp, 0); /* 0x36056810: push 0 */ 609 PUSH32(esp, ecx); /* 0x36056812: push ecx */ 610 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056813: call dword ptr [0x3616ff70] */ 611 RECOMP_FLAGS_IN(); 612 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 614 esp = esp + 4; /* 0x36056819: add esp, 4 */ 615 _flag_k = FK_ADD; 616 PUSH32(esp, eax); /* 0x3605681C: push eax */ 617 RECOMP_ICALL(0x3615FD86u); /* 0x3605681D: call 0x3615fd86 */ /* not lifted */ 618 RECOMP_FLAGS_IN(); 619 edi = eax; /* 0x36056822: mov edi, eax */ 620 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 622 esp = esp + 0x14u; /* 0x36056824: add esp, 0x14 */ 623 _flag_k = FK_ADD; 624 /* test edi, edi */ /* 0x36056827: test edi, edi */ 625 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 626 _cf = 0; 627 _flag_k = FK_TEST; 628 if (TEST_Z(_flag_a, _flag_b)) goto L_360568FD; /* 0x36056829: je 0x360568fd */ 629 L_3605682F: 630 eax = MEM32(esi + 0x10); /* 0x3605682F: mov eax, dword ptr [esi + 0x10] */ 631 edx = MEM32(edi + 0x11C); /* 0x36056832: mov edx, dword ptr [edi + 0x11c] */ 632 ecx = MEM32(eax + 0x8); /* 0x36056838: mov ecx, dword ptr [eax + 8] */ 633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 634 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 635 eax = eax + 4; /* 0x3605683B: add eax, 4 */ 636 _flag_k = FK_ADD; 637 /* cmp edx, ecx */ /* 0x3605683E: cmp edx, ecx */ 638 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 640 _flag_k = FK_CMP; 641 if (CMP_NE(_flag_a, _flag_b)) goto L_36056850; /* 0x36056840: jne 0x36056850 */ 642 L_36056842: 643 ecx = MEM32(edi + 0x118); /* 0x36056842: mov ecx, dword ptr [edi + 0x118] */ 644 /* cmp ecx, MEM32(eax) */ /* 0x36056848: cmp ecx, dword ptr [eax] */ 645 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 647 _flag_k = FK_CMP; 648 if (CMP_EQ(_flag_a, _flag_b)) goto L_360568FD; /* 0x3605684A: je 0x360568fd */ 649 L_36056850: 650 ebx = MEM32(0x3616FFB0); /* 0x36056850: mov ebx, dword ptr [0x3616ffb0] */ 651 ecx = edi + 0x8C; /* 0x36056856: lea ecx, [edi + 0x8c] */ 652 RECOMP_ICALL(ebx); /* 0x3605685C: call ebx */ 653 RECOMP_FLAGS_IN(); 654 ecx = MEM32(esi + 0x10); /* 0x3605685E: mov ecx, dword ptr [esi + 0x10] */ 655 MEM32(ebp + (-0x14)) = eax; /* 0x36056861: mov dword ptr [ebp - 0x14], eax */ 656 RECOMP_ICALL(ebx); /* 0x36056864: call ebx */ 657 RECOMP_FLAGS_IN(); 658 edx = MEM32(eax); /* 0x36056866: mov edx, dword ptr [eax] */ 659 ecx = MEM32(eax + 0x4); /* 0x36056868: mov ecx, dword ptr [eax + 4] */ 660 MEM32(ebp + (-0x38)) = edx; /* 0x3605686B: mov dword ptr [ebp - 0x38], edx */ 661 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3605686E: fld dword ptr [ebp - 0x38] */ 662 edx = MEM32(eax + 0x8); /* 0x36056871: mov edx, dword ptr [eax + 8] */ 663 eax = MEM32(ebp + (-0x14)); /* 0x36056874: mov eax, dword ptr [ebp - 0x14] */ 664 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36056877: fsub dword ptr [eax] */ 665 MEM32(ebp + (-0x34)) = ecx; /* 0x36056879: mov dword ptr [ebp - 0x34], ecx */ 666 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3605687C: fld dword ptr [ebp - 0x34] */ 667 MEM32(ebp + (-0x30)) = edx; /* 0x3605687F: mov dword ptr [ebp - 0x30], edx */ 668 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x36056882: fsub dword ptr [eax + 4] */ 669 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36056885: fld dword ptr [ebp - 0x30] */ 670 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x36056888: fsub dword ptr [eax + 8] */ 671 fp_push(_st[0]); /* 0x3605688B: fld st(0) */ 672 _st[0] *= _st[1]; /* 0x3605688D: fmul st(1) */ 673 fp_push(_st[2]); /* 0x3605688F: fld st(2) */ 674 _st[0] *= _st[3]; /* 0x36056891: fmul st(3) */ 675 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056893: faddp st(1) */ 676 fp_push(_st[3]); /* 0x36056895: fld st(3) */ 677 _st[0] *= _st[4]; /* 0x36056897: fmul st(4) */ 678 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056899: faddp st(1) */ 679 _st[0] = sqrt(_st[0]); /* 0x3605689B: fsqrt */ 680 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605689D: fstp st(3) */ 681 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605689F: fstp st(0) */ 682 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360568A1: fstp st(0) */ 683 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x360568A3: fcomp qword ptr [0x36170808] */ 684 fp_pop(); 685 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360568A9: fnstsw ax */ 686 /* test HI8(eax), 0x41u */ /* 0x360568AB: test ah, 0x41 */ 687 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 688 _cf = 0; 689 _flag_k = FK_NARROW(FK_TEST, 24); 690 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056903; /* 0x360568AE: jne 0x36056903 */ 691 L_360568B0: 692 PUSH32(esp, 0x34u); /* 0x360568B0: push 0x34 */ 693 RECOMP_ICALL(0x3615FD6Au); /* 0x360568B2: call 0x3615fd6a */ /* not lifted */ 694 RECOMP_FLAGS_IN(); 695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 697 esp = esp + 4; /* 0x360568B7: add esp, 4 */ 698 _flag_k = FK_ADD; 699 MEM32(ebp + (-0x14)) = eax; /* 0x360568BA: mov dword ptr [ebp - 0x14], eax */ 700 /* test eax, eax */ /* 0x360568BD: test eax, eax */ 701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 702 _cf = 0; 703 _flag_k = FK_TEST; 704 MEM32(ebp + (-0x4)) = 0; /* 0x360568BF: mov dword ptr [ebp - 4], 0 */ 705 if (TEST_Z(_flag_a, _flag_b)) goto L_360568E9; /* 0x360568C6: je 0x360568e9 */ 706 L_360568C8: 707 ecx = MEM32(esi + 0x10); /* 0x360568C8: mov ecx, dword ptr [esi + 0x10] */ 708 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x90u); 709 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 710 edi = edi + 0x90u; /* 0x360568CB: add edi, 0x90 */ 711 _flag_k = FK_ADD; 712 PUSH32(esp, edi); /* 0x360568D1: push edi */ 713 PUSH32(esp, 0x8Eu); /* 0x360568D2: push 0x8e */ 714 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 715 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 716 ecx = ecx + 4; /* 0x360568D7: add ecx, 4 */ 717 _flag_k = FK_ADD; 718 PUSH32(esp, 0x362EA510u); /* 0x360568DA: push 0x362ea510 */ 719 PUSH32(esp, ecx); /* 0x360568DF: push ecx */ 720 ecx = eax; /* 0x360568E0: mov ecx, eax */ 721 RECOMP_ICALL(0x3607D4B0u); /* 0x360568E2: call 0x3607d4b0 */ /* not lifted */ 722 RECOMP_FLAGS_IN(); 723 goto L_360568EB; /* 0x360568E7: jmp 0x360568eb */ 724 L_360568E9: 725 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 726 eax = 0; /* 0x360568E9: xor eax, eax */ 727 _cf = 0; 728 _flag_k = FK_TEST; 729 L_360568EB: 730 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360568EB: mov dword ptr [ebp - 4], 0xffffffff */ 731 MEM32(ebp + (-0x18)) = eax; /* 0x360568F2: mov dword ptr [ebp - 0x18], eax */ 732 edx = ebp + (-0x18); /* 0x360568F5: lea edx, [ebp - 0x18] */ 733 goto L_36056BDE; /* 0x360568F8: jmp 0x36056bde */ 734 L_360568FD: 735 ebx = MEM32(0x3616FFB0); /* 0x360568FD: mov ebx, dword ptr [0x3616ffb0] */ 736 L_36056903: 737 /* cmp MEM32(ebp + (-0x2C)), 0xC350u */ /* 0x36056903: cmp dword ptr [ebp - 0x2c], 0xc350 */ 738 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xC350u); 739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 740 _flag_k = FK_CMP; 741 if (CMP_NE(_flag_a, _flag_b)) goto L_360569B4; /* 0x3605690A: jne 0x360569b4 */ 742 L_36056910: 743 PUSH32(esp, 0); /* 0x36056910: push 0 */ 744 PUSH32(esp, 0x361B2CD8u); /* 0x36056912: push 0x361b2cd8 */ 745 PUSH32(esp, 0x361B2CC0u); /* 0x36056917: push 0x361b2cc0 */ 746 ecx = ebp + (-0x2C); /* 0x3605691C: lea ecx, [ebp - 0x2c] */ 747 PUSH32(esp, 0); /* 0x3605691F: push 0 */ 748 PUSH32(esp, ecx); /* 0x36056921: push ecx */ 749 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056922: call dword ptr [0x3616ff70] */ 750 RECOMP_FLAGS_IN(); 751 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 753 esp = esp + 4; /* 0x36056928: add esp, 4 */ 754 _flag_k = FK_ADD; 755 PUSH32(esp, eax); /* 0x3605692B: push eax */ 756 RECOMP_ICALL(0x3615FD86u); /* 0x3605692C: call 0x3615fd86 */ /* not lifted */ 757 RECOMP_FLAGS_IN(); 758 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 759 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 760 esp = esp + 0x14u; /* 0x36056931: add esp, 0x14 */ 761 _flag_k = FK_ADD; 762 /* test eax, eax */ /* 0x36056934: test eax, eax */ 763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 764 _cf = 0; 765 _flag_k = FK_TEST; 766 MEM32(ebp + (-0x14)) = eax; /* 0x36056936: mov dword ptr [ebp - 0x14], eax */ 767 if (TEST_Z(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056939: je 0x360569b4 */ 768 L_3605693B: 769 ecx = eax; /* 0x3605693B: mov ecx, eax */ 770 RECOMP_ICALL(ebx); /* 0x3605693D: call ebx */ 771 RECOMP_FLAGS_IN(); 772 ecx = MEM32(esi + 0x10); /* 0x3605693F: mov ecx, dword ptr [esi + 0x10] */ 773 edi = eax; /* 0x36056942: mov edi, eax */ 774 RECOMP_ICALL(ebx); /* 0x36056944: call ebx */ 775 RECOMP_FLAGS_IN(); 776 edx = MEM32(eax); /* 0x36056946: mov edx, dword ptr [eax] */ 777 ecx = MEM32(eax + 0x4); /* 0x36056948: mov ecx, dword ptr [eax + 4] */ 778 MEM32(ebp + (-0x44)) = edx; /* 0x3605694B: mov dword ptr [ebp - 0x44], edx */ 779 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3605694E: fld dword ptr [ebp - 0x44] */ 780 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056951: fsub dword ptr [edi] */ 781 edx = MEM32(eax + 0x8); /* 0x36056953: mov edx, dword ptr [eax + 8] */ 782 MEM32(ebp + (-0x40)) = ecx; /* 0x36056956: mov dword ptr [ebp - 0x40], ecx */ 783 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36056959: fld dword ptr [ebp - 0x40] */ 784 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3605695C: fsub dword ptr [edi + 4] */ 785 MEM32(ebp + (-0x3C)) = edx; /* 0x3605695F: mov dword ptr [ebp - 0x3c], edx */ 786 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36056962: fld dword ptr [ebp - 0x3c] */ 787 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056965: fsub dword ptr [edi + 8] */ 788 fp_push(_st[0]); /* 0x36056968: fld st(0) */ 789 _st[0] *= _st[1]; /* 0x3605696A: fmul st(1) */ 790 fp_push(_st[2]); /* 0x3605696C: fld st(2) */ 791 _st[0] *= _st[3]; /* 0x3605696E: fmul st(3) */ 792 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056970: faddp st(1) */ 793 fp_push(_st[3]); /* 0x36056972: fld st(3) */ 794 _st[0] *= _st[4]; /* 0x36056974: fmul st(4) */ 795 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056976: faddp st(1) */ 796 _st[0] = sqrt(_st[0]); /* 0x36056978: fsqrt */ 797 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605697A: fstp st(3) */ 798 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697C: fstp st(0) */ 799 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697E: fstp st(0) */ 800 RECOMP_ICALL(0x3615FD8Cu); /* 0x36056980: call 0x3615fd8c */ /* not lifted */ 801 RECOMP_FLAGS_IN(); 802 /* cmp eax, 2 */ /* 0x36056985: cmp eax, 2 */ 803 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 805 _flag_k = FK_CMP; 806 if (CMP_G(_flag_a, _flag_b)) goto L_36056996; /* 0x36056988: jg 0x36056996 */ 807 L_3605698A: 808 eax = MEM32(ebp + (-0x14)); /* 0x3605698A: mov eax, dword ptr [ebp - 0x14] */ 809 /* test MEM8(eax + 0x11C), 0x10u */ /* 0x3605698D: test byte ptr [eax + 0x11c], 0x10 */ 810 _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 811 _cf = 0; 812 _flag_k = FK_NARROW(FK_TEST, 24); 813 if (TEST_NZ(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056994: jne 0x360569b4 */ 814 L_36056996: 815 ecx = ebp + (-0x2C); /* 0x36056996: lea ecx, [ebp - 0x2c] */ 816 PUSH32(esp, ecx); /* 0x36056999: push ecx */ 817 ecx = esi; /* 0x3605699A: mov ecx, esi */ 818 RECOMP_ICALL(0x36053160u); /* 0x3605699C: call 0x36053160 */ /* not lifted */ 819 RECOMP_FLAGS_IN(); 820 edx = MEM32(esi + 0x8C); /* 0x360569A1: mov edx, dword ptr [esi + 0x8c] */ 821 eax = MEM32(edx + 0x4); /* 0x360569A7: mov eax, dword ptr [edx + 4] */ 822 ecx = MEM32(eax); /* 0x360569AA: mov ecx, dword ptr [eax] */ 823 MEM32(ebp + (-0x10)) = ecx; /* 0x360569AC: mov dword ptr [ebp - 0x10], ecx */ 824 goto L_36056C0B; /* 0x360569AF: jmp 0x36056c0b */ 825 L_360569B4: 826 /* cmp MEM32(ebp + (-0x2C)), 0xDEADu */ /* 0x360569B4: cmp dword ptr [ebp - 0x2c], 0xdead */ 827 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEADu); 828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 829 _flag_k = FK_CMP; 830 if (CMP_NE(_flag_a, _flag_b)) goto L_36056A5F; /* 0x360569BB: jne 0x36056a5f */ 831 L_360569C1: 832 ecx = MEM32(esi + 0x10); /* 0x360569C1: mov ecx, dword ptr [esi + 0x10] */ 833 RECOMP_ICALL(ebx); /* 0x360569C4: call ebx */ 834 RECOMP_FLAGS_IN(); 835 edx = MEM32(eax); /* 0x360569C6: mov edx, dword ptr [eax] */ 836 ecx = MEM32(eax + 0x4); /* 0x360569C8: mov ecx, dword ptr [eax + 4] */ 837 MEM32(ebp + (-0x50)) = edx; /* 0x360569CB: mov dword ptr [ebp - 0x50], edx */ 838 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x360569CE: fld dword ptr [ebp - 0x50] */ 839 _st[0] -= (double)*(float*)ADDR(esi + 0x9C); /* 0x360569D1: fsub dword ptr [esi + 0x9c] */ 840 edx = MEM32(eax + 0x8); /* 0x360569D7: mov edx, dword ptr [eax + 8] */ 841 MEM32(ebp + (-0x4C)) = ecx; /* 0x360569DA: mov dword ptr [ebp - 0x4c], ecx */ 842 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x360569DD: fld dword ptr [ebp - 0x4c] */ 843 _st[0] -= (double)*(float*)ADDR(esi + 0xA0); /* 0x360569E0: fsub dword ptr [esi + 0xa0] */ 844 MEM32(ebp + (-0x48)) = edx; /* 0x360569E6: mov dword ptr [ebp - 0x48], edx */ 845 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x360569E9: fld dword ptr [ebp - 0x48] */ 846 _st[0] -= (double)*(float*)ADDR(esi + 0xA4); /* 0x360569EC: fsub dword ptr [esi + 0xa4] */ 847 fp_push(_st[0]); /* 0x360569F2: fld st(0) */ 848 _st[0] *= _st[1]; /* 0x360569F4: fmul st(1) */ 849 fp_push(_st[2]); /* 0x360569F6: fld st(2) */ 850 _st[0] *= _st[3]; /* 0x360569F8: fmul st(3) */ 851 { double _v = fp_pop(); _st[0] += _v; } /* 0x360569FA: faddp st(1) */ 852 fp_push(_st[3]); /* 0x360569FC: fld st(3) */ 853 _st[0] *= _st[4]; /* 0x360569FE: fmul st(4) */ 854 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056A00: faddp st(1) */ 855 _st[0] = sqrt(_st[0]); /* 0x36056A02: fsqrt */ 856 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056A04: fstp st(3) */ 857 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A06: fstp st(0) */ 858 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A08: fstp st(0) */ 859 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056A0A: fcomp qword ptr [0x36170808] */ 860 fp_pop(); 861 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056A10: fnstsw ax */ 862 /* test HI8(eax), 0x41u */ /* 0x36056A12: test ah, 0x41 */ 863 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 864 _cf = 0; 865 _flag_k = FK_NARROW(FK_TEST, 24); 866 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056A5F; /* 0x36056A15: jne 0x36056a5f */ 867 L_36056A17: 868 PUSH32(esp, 0x34u); /* 0x36056A17: push 0x34 */ 869 RECOMP_ICALL(0x3615FD6Au); /* 0x36056A19: call 0x3615fd6a */ /* not lifted */ 870 RECOMP_FLAGS_IN(); 871 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 873 esp = esp + 4; /* 0x36056A1E: add esp, 4 */ 874 _flag_k = FK_ADD; 875 MEM32(ebp + (-0x14)) = eax; /* 0x36056A21: mov dword ptr [ebp - 0x14], eax */ 876 /* test eax, eax */ /* 0x36056A24: test eax, eax */ 877 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 878 _cf = 0; 879 _flag_k = FK_TEST; 880 MEM32(ebp + (-0x4)) = 1; /* 0x36056A26: mov dword ptr [ebp - 4], 1 */ 881 if (TEST_Z(_flag_a, _flag_b)) goto L_36056A4B; /* 0x36056A2D: je 0x36056a4b */ 882 L_36056A2F: 883 ecx = MEM32(esi + 0x10); /* 0x36056A2F: mov ecx, dword ptr [esi + 0x10] */ 884 PUSH32(esp, 0x362EA510u); /* 0x36056A32: push 0x362ea510 */ 885 PUSH32(esp, 0x6Au); /* 0x36056A37: push 0x6a */ 886 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 888 ecx = ecx + 4; /* 0x36056A39: add ecx, 4 */ 889 _flag_k = FK_ADD; 890 PUSH32(esp, 0x362EA510u); /* 0x36056A3C: push 0x362ea510 */ 891 PUSH32(esp, ecx); /* 0x36056A41: push ecx */ 892 ecx = eax; /* 0x36056A42: mov ecx, eax */ 893 RECOMP_ICALL(0x3607D4B0u); /* 0x36056A44: call 0x3607d4b0 */ /* not lifted */ 894 RECOMP_FLAGS_IN(); 895 goto L_36056A4D; /* 0x36056A49: jmp 0x36056a4d */ 896 L_36056A4B: 897 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 898 eax = 0; /* 0x36056A4B: xor eax, eax */ 899 _cf = 0; 900 _flag_k = FK_TEST; 901 L_36056A4D: 902 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056A4D: mov dword ptr [ebp - 4], 0xffffffff */ 903 MEM32(ebp + (-0x1C)) = eax; /* 0x36056A54: mov dword ptr [ebp - 0x1c], eax */ 904 edx = ebp + (-0x1C); /* 0x36056A57: lea edx, [ebp - 0x1c] */ 905 goto L_36056BDE; /* 0x36056A5A: jmp 0x36056bde */ 906 L_36056A5F: 907 /* cmp MEM32(ebp + (-0x2C)), 0xDEAEu */ /* 0x36056A5F: cmp dword ptr [ebp - 0x2c], 0xdeae */ 908 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEAEu); 909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 910 _flag_k = FK_CMP; 911 if (CMP_NE(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056A66: jne 0x36056c03 */ 912 L_36056A6C: 913 edi = MEM32(0x3616FF70); /* 0x36056A6C: mov edi, dword ptr [0x3616ff70] */ 914 ecx = esi + 0x78; /* 0x36056A72: lea ecx, [esi + 0x78] */ 915 PUSH32(esp, ecx); /* 0x36056A75: push ecx */ 916 RECOMP_ICALL(edi); /* 0x36056A76: call edi */ 917 RECOMP_FLAGS_IN(); 918 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 919 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 920 esp = esp + 4; /* 0x36056A78: add esp, 4 */ 921 _flag_k = FK_ADD; 922 /* test eax, eax */ /* 0x36056A7B: test eax, eax */ 923 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 924 _cf = 0; 925 _flag_k = FK_TEST; 926 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B21; /* 0x36056A7D: je 0x36056b21 */ 927 L_36056A83: 928 ecx = eax; /* 0x36056A83: mov ecx, eax */ 929 RECOMP_ICALL(ebx); /* 0x36056A85: call ebx */ 930 RECOMP_FLAGS_IN(); 931 ecx = MEM32(esi + 0x10); /* 0x36056A87: mov ecx, dword ptr [esi + 0x10] */ 932 edi = eax; /* 0x36056A8A: mov edi, eax */ 933 RECOMP_ICALL(ebx); /* 0x36056A8C: call ebx */ 934 RECOMP_FLAGS_IN(); 935 edx = MEM32(eax); /* 0x36056A8E: mov edx, dword ptr [eax] */ 936 ecx = MEM32(eax + 0x4); /* 0x36056A90: mov ecx, dword ptr [eax + 4] */ 937 MEM32(ebp + (-0x5C)) = edx; /* 0x36056A93: mov dword ptr [ebp - 0x5c], edx */ 938 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36056A96: fld dword ptr [ebp - 0x5c] */ 939 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056A99: fsub dword ptr [edi] */ 940 edx = MEM32(eax + 0x8); /* 0x36056A9B: mov edx, dword ptr [eax + 8] */ 941 MEM32(ebp + (-0x58)) = ecx; /* 0x36056A9E: mov dword ptr [ebp - 0x58], ecx */ 942 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36056AA1: fld dword ptr [ebp - 0x58] */ 943 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056AA4: fsub dword ptr [edi + 4] */ 944 MEM32(ebp + (-0x54)) = edx; /* 0x36056AA7: mov dword ptr [ebp - 0x54], edx */ 945 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36056AAA: fld dword ptr [ebp - 0x54] */ 946 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056AAD: fsub dword ptr [edi + 8] */ 947 fp_push(_st[0]); /* 0x36056AB0: fld st(0) */ 948 _st[0] *= _st[1]; /* 0x36056AB2: fmul st(1) */ 949 fp_push(_st[2]); /* 0x36056AB4: fld st(2) */ 950 _st[0] *= _st[3]; /* 0x36056AB6: fmul st(3) */ 951 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056AB8: faddp st(1) */ 952 fp_push(_st[3]); /* 0x36056ABA: fld st(3) */ 953 _st[0] *= _st[4]; /* 0x36056ABC: fmul st(4) */ 954 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056ABE: faddp st(1) */ 955 _st[0] = sqrt(_st[0]); /* 0x36056AC0: fsqrt */ 956 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056AC2: fstp st(3) */ 957 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC4: fstp st(0) */ 958 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC6: fstp st(0) */ 959 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056AC8: fcomp qword ptr [0x36170808] */ 960 fp_pop(); 961 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056ACE: fnstsw ax */ 962 /* test HI8(eax), 0x41u */ /* 0x36056AD0: test ah, 0x41 */ 963 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 964 _cf = 0; 965 _flag_k = FK_NARROW(FK_TEST, 24); 966 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056AD3: jne 0x36056c03 */ 967 L_36056AD9: 968 PUSH32(esp, 0x34u); /* 0x36056AD9: push 0x34 */ 969 RECOMP_ICALL(0x3615FD6Au); /* 0x36056ADB: call 0x3615fd6a */ /* not lifted */ 970 RECOMP_FLAGS_IN(); 971 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 973 esp = esp + 4; /* 0x36056AE0: add esp, 4 */ 974 _flag_k = FK_ADD; 975 MEM32(ebp + (-0x14)) = eax; /* 0x36056AE3: mov dword ptr [ebp - 0x14], eax */ 976 /* test eax, eax */ /* 0x36056AE6: test eax, eax */ 977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 978 _cf = 0; 979 _flag_k = FK_TEST; 980 MEM32(ebp + (-0x4)) = 2; /* 0x36056AE8: mov dword ptr [ebp - 4], 2 */ 981 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B0D; /* 0x36056AEF: je 0x36056b0d */ 982 L_36056AF1: 983 ecx = MEM32(esi + 0x10); /* 0x36056AF1: mov ecx, dword ptr [esi + 0x10] */ 984 PUSH32(esp, 0x362EA510u); /* 0x36056AF4: push 0x362ea510 */ 985 PUSH32(esp, 0x6Eu); /* 0x36056AF9: push 0x6e */ 986 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 988 ecx = ecx + 4; /* 0x36056AFB: add ecx, 4 */ 989 _flag_k = FK_ADD; 990 PUSH32(esp, 0x362EA510u); /* 0x36056AFE: push 0x362ea510 */ 991 PUSH32(esp, ecx); /* 0x36056B03: push ecx */ 992 ecx = eax; /* 0x36056B04: mov ecx, eax */ 993 RECOMP_ICALL(0x3607D4B0u); /* 0x36056B06: call 0x3607d4b0 */ /* not lifted */ 994 RECOMP_FLAGS_IN(); 995 goto L_36056B0F; /* 0x36056B0B: jmp 0x36056b0f */ 996 L_36056B0D: 997 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 998 eax = 0; /* 0x36056B0D: xor eax, eax */ 999 _cf = 0; 1000 _flag_k = FK_TEST; 1001 L_36056B0F: 1002 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056B0F: mov dword ptr [ebp - 4], 0xffffffff */ 1003 MEM32(ebp + (-0x20)) = eax; /* 0x36056B16: mov dword ptr [ebp - 0x20], eax */ 1004 edx = ebp + (-0x20); /* 0x36056B19: lea edx, [ebp - 0x20] */ 1005 goto L_36056BDE; /* 0x36056B1C: jmp 0x36056bde */ 1006 L_36056B21: 1007 ecx = MEM32(esi + 0x10); /* 0x36056B21: mov ecx, dword ptr [esi + 0x10] */ 1008 eax = MEM32(ecx + 0x150); /* 0x36056B24: mov eax, dword ptr [ecx + 0x150] */ 1009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 1010 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1011 eax = eax + 0xE4u; /* 0x36056B2A: add eax, 0xe4 */ 1012 _flag_k = FK_ADD; 1013 PUSH32(esp, eax); /* 0x36056B2F: push eax */ 1014 RECOMP_ICALL(edi); /* 0x36056B30: call edi */ 1015 RECOMP_FLAGS_IN(); 1016 ebx = eax; /* 0x36056B32: mov ebx, eax */ 1017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1019 esp = esp + 4; /* 0x36056B34: add esp, 4 */ 1020 _flag_k = FK_ADD; 1021 /* test ebx, ebx */ /* 0x36056B37: test ebx, ebx */ 1022 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1023 _cf = 0; 1024 _flag_k = FK_TEST; 1025 if (TEST_Z(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B39: je 0x36056c03 */ 1026 L_36056B3F: 1027 ecx = ebx; /* 0x36056B3F: mov ecx, ebx */ 1028 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B41: call dword ptr [0x3616ffb0] */ 1029 RECOMP_FLAGS_IN(); 1030 ecx = MEM32(esi + 0x10); /* 0x36056B47: mov ecx, dword ptr [esi + 0x10] */ 1031 edi = eax; /* 0x36056B4A: mov edi, eax */ 1032 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B4C: call dword ptr [0x3616ffb0] */ 1033 RECOMP_FLAGS_IN(); 1034 edx = MEM32(eax); /* 0x36056B52: mov edx, dword ptr [eax] */ 1035 ecx = MEM32(eax + 0x4); /* 0x36056B54: mov ecx, dword ptr [eax + 4] */ 1036 MEM32(ebp + (-0x68)) = edx; /* 0x36056B57: mov dword ptr [ebp - 0x68], edx */ 1037 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36056B5A: fld dword ptr [ebp - 0x68] */ 1038 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056B5D: fsub dword ptr [edi] */ 1039 edx = MEM32(eax + 0x8); /* 0x36056B5F: mov edx, dword ptr [eax + 8] */ 1040 MEM32(ebp + (-0x64)) = ecx; /* 0x36056B62: mov dword ptr [ebp - 0x64], ecx */ 1041 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36056B65: fld dword ptr [ebp - 0x64] */ 1042 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056B68: fsub dword ptr [edi + 4] */ 1043 MEM32(ebp + (-0x60)) = edx; /* 0x36056B6B: mov dword ptr [ebp - 0x60], edx */ 1044 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36056B6E: fld dword ptr [ebp - 0x60] */ 1045 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056B71: fsub dword ptr [edi + 8] */ 1046 fp_push(_st[0]); /* 0x36056B74: fld st(0) */ 1047 _st[0] *= _st[1]; /* 0x36056B76: fmul st(1) */ 1048 fp_push(_st[2]); /* 0x36056B78: fld st(2) */ 1049 _st[0] *= _st[3]; /* 0x36056B7A: fmul st(3) */ 1050 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B7C: faddp st(1) */ 1051 fp_push(_st[3]); /* 0x36056B7E: fld st(3) */ 1052 _st[0] *= _st[4]; /* 0x36056B80: fmul st(4) */ 1053 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B82: faddp st(1) */ 1054 _st[0] = sqrt(_st[0]); /* 0x36056B84: fsqrt */ 1055 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056B86: fstp st(3) */ 1056 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B88: fstp st(0) */ 1057 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B8A: fstp st(0) */ 1058 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056B8C: fcomp qword ptr [0x36170808] */ 1059 fp_pop(); 1060 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056B92: fnstsw ax */ 1061 /* test HI8(eax), 0x41u */ /* 0x36056B94: test ah, 0x41 */ 1062 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1063 _cf = 0; 1064 _flag_k = FK_NARROW(FK_TEST, 24); 1065 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B97: jne 0x36056c03 */ 1066 L_36056B99: 1067 PUSH32(esp, 0x34u); /* 0x36056B99: push 0x34 */ 1068 RECOMP_ICALL(0x3615FD6Au); /* 0x36056B9B: call 0x3615fd6a */ /* not lifted */ 1069 RECOMP_FLAGS_IN(); 1070 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1071 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1072 esp = esp + 4; /* 0x36056BA0: add esp, 4 */ 1073 _flag_k = FK_ADD; 1074 MEM32(ebp + (-0x14)) = eax; /* 0x36056BA3: mov dword ptr [ebp - 0x14], eax */ 1075 /* test eax, eax */ /* 0x36056BA6: test eax, eax */ 1076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1077 _cf = 0; 1078 _flag_k = FK_TEST; 1079 MEM32(ebp + (-0x4)) = 3; /* 0x36056BA8: mov dword ptr [ebp - 4], 3 */ 1080 if (TEST_Z(_flag_a, _flag_b)) goto L_36056BCF; /* 0x36056BAF: je 0x36056bcf */ 1081 L_36056BB1: 1082 ecx = MEM32(esi + 0x10); /* 0x36056BB1: mov ecx, dword ptr [esi + 0x10] */ 1083 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 1084 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1085 ebx = ebx + 4; /* 0x36056BB4: add ebx, 4 */ 1086 _flag_k = FK_ADD; 1087 PUSH32(esp, ebx); /* 0x36056BB7: push ebx */ 1088 PUSH32(esp, 0x8Eu); /* 0x36056BB8: push 0x8e */ 1089 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1090 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1091 ecx = ecx + 4; /* 0x36056BBD: add ecx, 4 */ 1092 _flag_k = FK_ADD; 1093 PUSH32(esp, 0x362EA510u); /* 0x36056BC0: push 0x362ea510 */ 1094 PUSH32(esp, ecx); /* 0x36056BC5: push ecx */ 1095 ecx = eax; /* 0x36056BC6: mov ecx, eax */ 1096 RECOMP_ICALL(0x3607D4B0u); /* 0x36056BC8: call 0x3607d4b0 */ /* not lifted */ 1097 RECOMP_FLAGS_IN(); 1098 goto L_36056BD1; /* 0x36056BCD: jmp 0x36056bd1 */ 1099 L_36056BCF: 1100 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1101 eax = 0; /* 0x36056BCF: xor eax, eax */ 1102 _cf = 0; 1103 _flag_k = FK_TEST; 1104 L_36056BD1: 1105 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056BD1: mov dword ptr [ebp - 4], 0xffffffff */ 1106 MEM32(ebp + (-0x24)) = eax; /* 0x36056BD8: mov dword ptr [ebp - 0x24], eax */ 1107 edx = ebp + (-0x24); /* 0x36056BDB: lea edx, [ebp - 0x24] */ 1108 L_36056BDE: 1109 ecx = MEM32(esi + 0x10); /* 0x36056BDE: mov ecx, dword ptr [esi + 0x10] */ 1110 PUSH32(esp, edx); /* 0x36056BE1: push edx */ 1111 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36056BE2: call dword ptr [0x3617004c] */ 1112 RECOMP_FLAGS_IN(); 1113 eax = ebp + (-0x2C); /* 0x36056BE8: lea eax, [ebp - 0x2c] */ 1114 PUSH32(esp, eax); /* 0x36056BEB: push eax */ 1115 ecx = esi; /* 0x36056BEC: mov ecx, esi */ 1116 RECOMP_ICALL(0x36053160u); /* 0x36056BEE: call 0x36053160 */ /* not lifted */ 1117 RECOMP_FLAGS_IN(); 1118 ecx = MEM32(esi + 0x8C); /* 0x36056BF3: mov ecx, dword ptr [esi + 0x8c] */ 1119 edx = MEM32(ecx + 0x4); /* 0x36056BF9: mov edx, dword ptr [ecx + 4] */ 1120 eax = MEM32(edx); /* 0x36056BFC: mov eax, dword ptr [edx] */ 1121 MEM32(ebp + (-0x10)) = eax; /* 0x36056BFE: mov dword ptr [ebp - 0x10], eax */ 1122 goto L_36056C0B; /* 0x36056C01: jmp 0x36056c0b */ 1123 L_36056C03: 1124 ecx = MEM32(ebp + (-0x10)); /* 0x36056C03: mov ecx, dword ptr [ebp - 0x10] */ 1125 edx = MEM32(ecx); /* 0x36056C06: mov edx, dword ptr [ecx] */ 1126 MEM32(ebp + (-0x10)) = edx; /* 0x36056C08: mov dword ptr [ebp - 0x10], edx */ 1127 L_36056C0B: 1128 eax = MEM32(esi + 0x8C); /* 0x36056C0B: mov eax, dword ptr [esi + 0x8c] */ 1129 ecx = MEM32(ebp + (-0x10)); /* 0x36056C11: mov ecx, dword ptr [ebp - 0x10] */ 1130 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x36056C14: cmp ecx, dword ptr [eax + 4] */ 1131 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 1132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1133 _flag_k = FK_CMP; 1134 RECOMP_BACKEDGE(); 1135 if (CMP_NE(_flag_a, _flag_b)) goto L_360567E9; /* 0x36056C17: jne 0x360567e9 */ 1136 L_36056C1D: 1137 edi = POP32_VAL(esp); /* 0x36056C1D: pop edi */ 1138 ebx = POP32_VAL(esp); /* 0x36056C1E: pop ebx */ 1139 ecx = MEM32(ebp + (-0xC)); /* 0x36056C1F: mov ecx, dword ptr [ebp - 0xc] */ 1140 esi = POP32_VAL(esp); /* 0x36056C22: pop esi */ 1141 MEM32(FS_BASE + (0)) = ecx; /* 0x36056C23: mov dword ptr fs:[0], ecx */ 1142 esp = ebp; /* 0x36056C2A: mov esp, ebp */ 1143 ebp = POP32_VAL(esp); /* 0x36056C2C: pop ebp */ 1144 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36056C2D: ret */ 1145 RECOMP_REGS_OUT(); 1146 } 1147 1148 void sub_36056903(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(0x36056903u); 1157 1158 goto L_36056903; 1159 L_360567E9: 1160 ecx = MEM32(ebp + (-0x10)); /* 0x360567E9: mov ecx, dword ptr [ebp - 0x10] */ 1161 eax = ecx + 0x8; /* 0x360567EC: lea eax, [ecx + 8] */ 1162 ecx = ebp + (-0x2C); /* 0x360567EF: lea ecx, [ebp - 0x2c] */ 1163 /* cmp ecx, eax */ /* 0x360567F2: cmp ecx, eax */ 1164 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1166 _flag_k = FK_CMP; 1167 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056801; /* 0x360567F4: je 0x36056801 */ 1168 L_360567F6: 1169 edx = MEM32(eax); /* 0x360567F6: mov edx, dword ptr [eax] */ 1170 MEM32(ebp + (-0x2C)) = edx; /* 0x360567F8: mov dword ptr [ebp - 0x2c], edx */ 1171 eax = MEM32(eax + 0x4); /* 0x360567FB: mov eax, dword ptr [eax + 4] */ 1172 MEM32(ebp + (-0x28)) = eax; /* 0x360567FE: mov dword ptr [ebp - 0x28], eax */ 1173 L_36056801: 1174 PUSH32(esp, 0); /* 0x36056801: push 0 */ 1175 PUSH32(esp, 0x361B5C10u); /* 0x36056803: push 0x361b5c10 */ 1176 PUSH32(esp, 0x361B2CC0u); /* 0x36056808: push 0x361b2cc0 */ 1177 ecx = ebp + (-0x2C); /* 0x3605680D: lea ecx, [ebp - 0x2c] */ 1178 PUSH32(esp, 0); /* 0x36056810: push 0 */ 1179 PUSH32(esp, ecx); /* 0x36056812: push ecx */ 1180 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056813: call dword ptr [0x3616ff70] */ 1181 RECOMP_FLAGS_IN(); 1182 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1184 esp = esp + 4; /* 0x36056819: add esp, 4 */ 1185 _flag_k = FK_ADD; 1186 PUSH32(esp, eax); /* 0x3605681C: push eax */ 1187 RECOMP_ICALL(0x3615FD86u); /* 0x3605681D: call 0x3615fd86 */ /* not lifted */ 1188 RECOMP_FLAGS_IN(); 1189 edi = eax; /* 0x36056822: mov edi, eax */ 1190 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1191 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1192 esp = esp + 0x14u; /* 0x36056824: add esp, 0x14 */ 1193 _flag_k = FK_ADD; 1194 /* test edi, edi */ /* 0x36056827: test edi, edi */ 1195 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1196 _cf = 0; 1197 _flag_k = FK_TEST; 1198 if (TEST_Z(_flag_a, _flag_b)) goto L_360568FD; /* 0x36056829: je 0x360568fd */ 1199 L_3605682F: 1200 eax = MEM32(esi + 0x10); /* 0x3605682F: mov eax, dword ptr [esi + 0x10] */ 1201 edx = MEM32(edi + 0x11C); /* 0x36056832: mov edx, dword ptr [edi + 0x11c] */ 1202 ecx = MEM32(eax + 0x8); /* 0x36056838: mov ecx, dword ptr [eax + 8] */ 1203 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1204 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1205 eax = eax + 4; /* 0x3605683B: add eax, 4 */ 1206 _flag_k = FK_ADD; 1207 /* cmp edx, ecx */ /* 0x3605683E: cmp edx, ecx */ 1208 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1210 _flag_k = FK_CMP; 1211 if (CMP_NE(_flag_a, _flag_b)) goto L_36056850; /* 0x36056840: jne 0x36056850 */ 1212 L_36056842: 1213 ecx = MEM32(edi + 0x118); /* 0x36056842: mov ecx, dword ptr [edi + 0x118] */ 1214 /* cmp ecx, MEM32(eax) */ /* 0x36056848: cmp ecx, dword ptr [eax] */ 1215 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 1216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1217 _flag_k = FK_CMP; 1218 if (CMP_EQ(_flag_a, _flag_b)) goto L_360568FD; /* 0x3605684A: je 0x360568fd */ 1219 L_36056850: 1220 ebx = MEM32(0x3616FFB0); /* 0x36056850: mov ebx, dword ptr [0x3616ffb0] */ 1221 ecx = edi + 0x8C; /* 0x36056856: lea ecx, [edi + 0x8c] */ 1222 RECOMP_ICALL(ebx); /* 0x3605685C: call ebx */ 1223 RECOMP_FLAGS_IN(); 1224 ecx = MEM32(esi + 0x10); /* 0x3605685E: mov ecx, dword ptr [esi + 0x10] */ 1225 MEM32(ebp + (-0x14)) = eax; /* 0x36056861: mov dword ptr [ebp - 0x14], eax */ 1226 RECOMP_ICALL(ebx); /* 0x36056864: call ebx */ 1227 RECOMP_FLAGS_IN(); 1228 edx = MEM32(eax); /* 0x36056866: mov edx, dword ptr [eax] */ 1229 ecx = MEM32(eax + 0x4); /* 0x36056868: mov ecx, dword ptr [eax + 4] */ 1230 MEM32(ebp + (-0x38)) = edx; /* 0x3605686B: mov dword ptr [ebp - 0x38], edx */ 1231 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3605686E: fld dword ptr [ebp - 0x38] */ 1232 edx = MEM32(eax + 0x8); /* 0x36056871: mov edx, dword ptr [eax + 8] */ 1233 eax = MEM32(ebp + (-0x14)); /* 0x36056874: mov eax, dword ptr [ebp - 0x14] */ 1234 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36056877: fsub dword ptr [eax] */ 1235 MEM32(ebp + (-0x34)) = ecx; /* 0x36056879: mov dword ptr [ebp - 0x34], ecx */ 1236 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3605687C: fld dword ptr [ebp - 0x34] */ 1237 MEM32(ebp + (-0x30)) = edx; /* 0x3605687F: mov dword ptr [ebp - 0x30], edx */ 1238 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x36056882: fsub dword ptr [eax + 4] */ 1239 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36056885: fld dword ptr [ebp - 0x30] */ 1240 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x36056888: fsub dword ptr [eax + 8] */ 1241 fp_push(_st[0]); /* 0x3605688B: fld st(0) */ 1242 _st[0] *= _st[1]; /* 0x3605688D: fmul st(1) */ 1243 fp_push(_st[2]); /* 0x3605688F: fld st(2) */ 1244 _st[0] *= _st[3]; /* 0x36056891: fmul st(3) */ 1245 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056893: faddp st(1) */ 1246 fp_push(_st[3]); /* 0x36056895: fld st(3) */ 1247 _st[0] *= _st[4]; /* 0x36056897: fmul st(4) */ 1248 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056899: faddp st(1) */ 1249 _st[0] = sqrt(_st[0]); /* 0x3605689B: fsqrt */ 1250 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605689D: fstp st(3) */ 1251 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605689F: fstp st(0) */ 1252 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360568A1: fstp st(0) */ 1253 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x360568A3: fcomp qword ptr [0x36170808] */ 1254 fp_pop(); 1255 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360568A9: fnstsw ax */ 1256 /* test HI8(eax), 0x41u */ /* 0x360568AB: test ah, 0x41 */ 1257 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1258 _cf = 0; 1259 _flag_k = FK_NARROW(FK_TEST, 24); 1260 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056903; /* 0x360568AE: jne 0x36056903 */ 1261 L_360568B0: 1262 PUSH32(esp, 0x34u); /* 0x360568B0: push 0x34 */ 1263 RECOMP_ICALL(0x3615FD6Au); /* 0x360568B2: call 0x3615fd6a */ /* not lifted */ 1264 RECOMP_FLAGS_IN(); 1265 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1267 esp = esp + 4; /* 0x360568B7: add esp, 4 */ 1268 _flag_k = FK_ADD; 1269 MEM32(ebp + (-0x14)) = eax; /* 0x360568BA: mov dword ptr [ebp - 0x14], eax */ 1270 /* test eax, eax */ /* 0x360568BD: test eax, eax */ 1271 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1272 _cf = 0; 1273 _flag_k = FK_TEST; 1274 MEM32(ebp + (-0x4)) = 0; /* 0x360568BF: mov dword ptr [ebp - 4], 0 */ 1275 if (TEST_Z(_flag_a, _flag_b)) goto L_360568E9; /* 0x360568C6: je 0x360568e9 */ 1276 L_360568C8: 1277 ecx = MEM32(esi + 0x10); /* 0x360568C8: mov ecx, dword ptr [esi + 0x10] */ 1278 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x90u); 1279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1280 edi = edi + 0x90u; /* 0x360568CB: add edi, 0x90 */ 1281 _flag_k = FK_ADD; 1282 PUSH32(esp, edi); /* 0x360568D1: push edi */ 1283 PUSH32(esp, 0x8Eu); /* 0x360568D2: push 0x8e */ 1284 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1285 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1286 ecx = ecx + 4; /* 0x360568D7: add ecx, 4 */ 1287 _flag_k = FK_ADD; 1288 PUSH32(esp, 0x362EA510u); /* 0x360568DA: push 0x362ea510 */ 1289 PUSH32(esp, ecx); /* 0x360568DF: push ecx */ 1290 ecx = eax; /* 0x360568E0: mov ecx, eax */ 1291 RECOMP_ICALL(0x3607D4B0u); /* 0x360568E2: call 0x3607d4b0 */ /* not lifted */ 1292 RECOMP_FLAGS_IN(); 1293 goto L_360568EB; /* 0x360568E7: jmp 0x360568eb */ 1294 L_360568E9: 1295 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1296 eax = 0; /* 0x360568E9: xor eax, eax */ 1297 _cf = 0; 1298 _flag_k = FK_TEST; 1299 L_360568EB: 1300 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360568EB: mov dword ptr [ebp - 4], 0xffffffff */ 1301 MEM32(ebp + (-0x18)) = eax; /* 0x360568F2: mov dword ptr [ebp - 0x18], eax */ 1302 edx = ebp + (-0x18); /* 0x360568F5: lea edx, [ebp - 0x18] */ 1303 goto L_36056BDE; /* 0x360568F8: jmp 0x36056bde */ 1304 L_360568FD: 1305 ebx = MEM32(0x3616FFB0); /* 0x360568FD: mov ebx, dword ptr [0x3616ffb0] */ 1306 L_36056903: 1307 /* cmp MEM32(ebp + (-0x2C)), 0xC350u */ /* 0x36056903: cmp dword ptr [ebp - 0x2c], 0xc350 */ 1308 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xC350u); 1309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1310 _flag_k = FK_CMP; 1311 if (CMP_NE(_flag_a, _flag_b)) goto L_360569B4; /* 0x3605690A: jne 0x360569b4 */ 1312 L_36056910: 1313 PUSH32(esp, 0); /* 0x36056910: push 0 */ 1314 PUSH32(esp, 0x361B2CD8u); /* 0x36056912: push 0x361b2cd8 */ 1315 PUSH32(esp, 0x361B2CC0u); /* 0x36056917: push 0x361b2cc0 */ 1316 ecx = ebp + (-0x2C); /* 0x3605691C: lea ecx, [ebp - 0x2c] */ 1317 PUSH32(esp, 0); /* 0x3605691F: push 0 */ 1318 PUSH32(esp, ecx); /* 0x36056921: push ecx */ 1319 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056922: call dword ptr [0x3616ff70] */ 1320 RECOMP_FLAGS_IN(); 1321 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1323 esp = esp + 4; /* 0x36056928: add esp, 4 */ 1324 _flag_k = FK_ADD; 1325 PUSH32(esp, eax); /* 0x3605692B: push eax */ 1326 RECOMP_ICALL(0x3615FD86u); /* 0x3605692C: call 0x3615fd86 */ /* not lifted */ 1327 RECOMP_FLAGS_IN(); 1328 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1330 esp = esp + 0x14u; /* 0x36056931: add esp, 0x14 */ 1331 _flag_k = FK_ADD; 1332 /* test eax, eax */ /* 0x36056934: test eax, eax */ 1333 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1334 _cf = 0; 1335 _flag_k = FK_TEST; 1336 MEM32(ebp + (-0x14)) = eax; /* 0x36056936: mov dword ptr [ebp - 0x14], eax */ 1337 if (TEST_Z(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056939: je 0x360569b4 */ 1338 L_3605693B: 1339 ecx = eax; /* 0x3605693B: mov ecx, eax */ 1340 RECOMP_ICALL(ebx); /* 0x3605693D: call ebx */ 1341 RECOMP_FLAGS_IN(); 1342 ecx = MEM32(esi + 0x10); /* 0x3605693F: mov ecx, dword ptr [esi + 0x10] */ 1343 edi = eax; /* 0x36056942: mov edi, eax */ 1344 RECOMP_ICALL(ebx); /* 0x36056944: call ebx */ 1345 RECOMP_FLAGS_IN(); 1346 edx = MEM32(eax); /* 0x36056946: mov edx, dword ptr [eax] */ 1347 ecx = MEM32(eax + 0x4); /* 0x36056948: mov ecx, dword ptr [eax + 4] */ 1348 MEM32(ebp + (-0x44)) = edx; /* 0x3605694B: mov dword ptr [ebp - 0x44], edx */ 1349 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3605694E: fld dword ptr [ebp - 0x44] */ 1350 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056951: fsub dword ptr [edi] */ 1351 edx = MEM32(eax + 0x8); /* 0x36056953: mov edx, dword ptr [eax + 8] */ 1352 MEM32(ebp + (-0x40)) = ecx; /* 0x36056956: mov dword ptr [ebp - 0x40], ecx */ 1353 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36056959: fld dword ptr [ebp - 0x40] */ 1354 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3605695C: fsub dword ptr [edi + 4] */ 1355 MEM32(ebp + (-0x3C)) = edx; /* 0x3605695F: mov dword ptr [ebp - 0x3c], edx */ 1356 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36056962: fld dword ptr [ebp - 0x3c] */ 1357 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056965: fsub dword ptr [edi + 8] */ 1358 fp_push(_st[0]); /* 0x36056968: fld st(0) */ 1359 _st[0] *= _st[1]; /* 0x3605696A: fmul st(1) */ 1360 fp_push(_st[2]); /* 0x3605696C: fld st(2) */ 1361 _st[0] *= _st[3]; /* 0x3605696E: fmul st(3) */ 1362 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056970: faddp st(1) */ 1363 fp_push(_st[3]); /* 0x36056972: fld st(3) */ 1364 _st[0] *= _st[4]; /* 0x36056974: fmul st(4) */ 1365 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056976: faddp st(1) */ 1366 _st[0] = sqrt(_st[0]); /* 0x36056978: fsqrt */ 1367 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605697A: fstp st(3) */ 1368 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697C: fstp st(0) */ 1369 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697E: fstp st(0) */ 1370 RECOMP_ICALL(0x3615FD8Cu); /* 0x36056980: call 0x3615fd8c */ /* not lifted */ 1371 RECOMP_FLAGS_IN(); 1372 /* cmp eax, 2 */ /* 0x36056985: cmp eax, 2 */ 1373 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 1374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1375 _flag_k = FK_CMP; 1376 if (CMP_G(_flag_a, _flag_b)) goto L_36056996; /* 0x36056988: jg 0x36056996 */ 1377 L_3605698A: 1378 eax = MEM32(ebp + (-0x14)); /* 0x3605698A: mov eax, dword ptr [ebp - 0x14] */ 1379 /* test MEM8(eax + 0x11C), 0x10u */ /* 0x3605698D: test byte ptr [eax + 0x11c], 0x10 */ 1380 _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 1381 _cf = 0; 1382 _flag_k = FK_NARROW(FK_TEST, 24); 1383 if (TEST_NZ(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056994: jne 0x360569b4 */ 1384 L_36056996: 1385 ecx = ebp + (-0x2C); /* 0x36056996: lea ecx, [ebp - 0x2c] */ 1386 PUSH32(esp, ecx); /* 0x36056999: push ecx */ 1387 ecx = esi; /* 0x3605699A: mov ecx, esi */ 1388 RECOMP_ICALL(0x36053160u); /* 0x3605699C: call 0x36053160 */ /* not lifted */ 1389 RECOMP_FLAGS_IN(); 1390 edx = MEM32(esi + 0x8C); /* 0x360569A1: mov edx, dword ptr [esi + 0x8c] */ 1391 eax = MEM32(edx + 0x4); /* 0x360569A7: mov eax, dword ptr [edx + 4] */ 1392 ecx = MEM32(eax); /* 0x360569AA: mov ecx, dword ptr [eax] */ 1393 MEM32(ebp + (-0x10)) = ecx; /* 0x360569AC: mov dword ptr [ebp - 0x10], ecx */ 1394 goto L_36056C0B; /* 0x360569AF: jmp 0x36056c0b */ 1395 L_360569B4: 1396 /* cmp MEM32(ebp + (-0x2C)), 0xDEADu */ /* 0x360569B4: cmp dword ptr [ebp - 0x2c], 0xdead */ 1397 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEADu); 1398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1399 _flag_k = FK_CMP; 1400 if (CMP_NE(_flag_a, _flag_b)) goto L_36056A5F; /* 0x360569BB: jne 0x36056a5f */ 1401 L_360569C1: 1402 ecx = MEM32(esi + 0x10); /* 0x360569C1: mov ecx, dword ptr [esi + 0x10] */ 1403 RECOMP_ICALL(ebx); /* 0x360569C4: call ebx */ 1404 RECOMP_FLAGS_IN(); 1405 edx = MEM32(eax); /* 0x360569C6: mov edx, dword ptr [eax] */ 1406 ecx = MEM32(eax + 0x4); /* 0x360569C8: mov ecx, dword ptr [eax + 4] */ 1407 MEM32(ebp + (-0x50)) = edx; /* 0x360569CB: mov dword ptr [ebp - 0x50], edx */ 1408 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x360569CE: fld dword ptr [ebp - 0x50] */ 1409 _st[0] -= (double)*(float*)ADDR(esi + 0x9C); /* 0x360569D1: fsub dword ptr [esi + 0x9c] */ 1410 edx = MEM32(eax + 0x8); /* 0x360569D7: mov edx, dword ptr [eax + 8] */ 1411 MEM32(ebp + (-0x4C)) = ecx; /* 0x360569DA: mov dword ptr [ebp - 0x4c], ecx */ 1412 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x360569DD: fld dword ptr [ebp - 0x4c] */ 1413 _st[0] -= (double)*(float*)ADDR(esi + 0xA0); /* 0x360569E0: fsub dword ptr [esi + 0xa0] */ 1414 MEM32(ebp + (-0x48)) = edx; /* 0x360569E6: mov dword ptr [ebp - 0x48], edx */ 1415 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x360569E9: fld dword ptr [ebp - 0x48] */ 1416 _st[0] -= (double)*(float*)ADDR(esi + 0xA4); /* 0x360569EC: fsub dword ptr [esi + 0xa4] */ 1417 fp_push(_st[0]); /* 0x360569F2: fld st(0) */ 1418 _st[0] *= _st[1]; /* 0x360569F4: fmul st(1) */ 1419 fp_push(_st[2]); /* 0x360569F6: fld st(2) */ 1420 _st[0] *= _st[3]; /* 0x360569F8: fmul st(3) */ 1421 { double _v = fp_pop(); _st[0] += _v; } /* 0x360569FA: faddp st(1) */ 1422 fp_push(_st[3]); /* 0x360569FC: fld st(3) */ 1423 _st[0] *= _st[4]; /* 0x360569FE: fmul st(4) */ 1424 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056A00: faddp st(1) */ 1425 _st[0] = sqrt(_st[0]); /* 0x36056A02: fsqrt */ 1426 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056A04: fstp st(3) */ 1427 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A06: fstp st(0) */ 1428 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A08: fstp st(0) */ 1429 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056A0A: fcomp qword ptr [0x36170808] */ 1430 fp_pop(); 1431 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056A10: fnstsw ax */ 1432 /* test HI8(eax), 0x41u */ /* 0x36056A12: test ah, 0x41 */ 1433 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1434 _cf = 0; 1435 _flag_k = FK_NARROW(FK_TEST, 24); 1436 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056A5F; /* 0x36056A15: jne 0x36056a5f */ 1437 L_36056A17: 1438 PUSH32(esp, 0x34u); /* 0x36056A17: push 0x34 */ 1439 RECOMP_ICALL(0x3615FD6Au); /* 0x36056A19: call 0x3615fd6a */ /* not lifted */ 1440 RECOMP_FLAGS_IN(); 1441 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1443 esp = esp + 4; /* 0x36056A1E: add esp, 4 */ 1444 _flag_k = FK_ADD; 1445 MEM32(ebp + (-0x14)) = eax; /* 0x36056A21: mov dword ptr [ebp - 0x14], eax */ 1446 /* test eax, eax */ /* 0x36056A24: test eax, eax */ 1447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1448 _cf = 0; 1449 _flag_k = FK_TEST; 1450 MEM32(ebp + (-0x4)) = 1; /* 0x36056A26: mov dword ptr [ebp - 4], 1 */ 1451 if (TEST_Z(_flag_a, _flag_b)) goto L_36056A4B; /* 0x36056A2D: je 0x36056a4b */ 1452 L_36056A2F: 1453 ecx = MEM32(esi + 0x10); /* 0x36056A2F: mov ecx, dword ptr [esi + 0x10] */ 1454 PUSH32(esp, 0x362EA510u); /* 0x36056A32: push 0x362ea510 */ 1455 PUSH32(esp, 0x6Au); /* 0x36056A37: push 0x6a */ 1456 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1458 ecx = ecx + 4; /* 0x36056A39: add ecx, 4 */ 1459 _flag_k = FK_ADD; 1460 PUSH32(esp, 0x362EA510u); /* 0x36056A3C: push 0x362ea510 */ 1461 PUSH32(esp, ecx); /* 0x36056A41: push ecx */ 1462 ecx = eax; /* 0x36056A42: mov ecx, eax */ 1463 RECOMP_ICALL(0x3607D4B0u); /* 0x36056A44: call 0x3607d4b0 */ /* not lifted */ 1464 RECOMP_FLAGS_IN(); 1465 goto L_36056A4D; /* 0x36056A49: jmp 0x36056a4d */ 1466 L_36056A4B: 1467 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1468 eax = 0; /* 0x36056A4B: xor eax, eax */ 1469 _cf = 0; 1470 _flag_k = FK_TEST; 1471 L_36056A4D: 1472 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056A4D: mov dword ptr [ebp - 4], 0xffffffff */ 1473 MEM32(ebp + (-0x1C)) = eax; /* 0x36056A54: mov dword ptr [ebp - 0x1c], eax */ 1474 edx = ebp + (-0x1C); /* 0x36056A57: lea edx, [ebp - 0x1c] */ 1475 goto L_36056BDE; /* 0x36056A5A: jmp 0x36056bde */ 1476 L_36056A5F: 1477 /* cmp MEM32(ebp + (-0x2C)), 0xDEAEu */ /* 0x36056A5F: cmp dword ptr [ebp - 0x2c], 0xdeae */ 1478 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEAEu); 1479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1480 _flag_k = FK_CMP; 1481 if (CMP_NE(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056A66: jne 0x36056c03 */ 1482 L_36056A6C: 1483 edi = MEM32(0x3616FF70); /* 0x36056A6C: mov edi, dword ptr [0x3616ff70] */ 1484 ecx = esi + 0x78; /* 0x36056A72: lea ecx, [esi + 0x78] */ 1485 PUSH32(esp, ecx); /* 0x36056A75: push ecx */ 1486 RECOMP_ICALL(edi); /* 0x36056A76: call edi */ 1487 RECOMP_FLAGS_IN(); 1488 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1489 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1490 esp = esp + 4; /* 0x36056A78: add esp, 4 */ 1491 _flag_k = FK_ADD; 1492 /* test eax, eax */ /* 0x36056A7B: test eax, eax */ 1493 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1494 _cf = 0; 1495 _flag_k = FK_TEST; 1496 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B21; /* 0x36056A7D: je 0x36056b21 */ 1497 L_36056A83: 1498 ecx = eax; /* 0x36056A83: mov ecx, eax */ 1499 RECOMP_ICALL(ebx); /* 0x36056A85: call ebx */ 1500 RECOMP_FLAGS_IN(); 1501 ecx = MEM32(esi + 0x10); /* 0x36056A87: mov ecx, dword ptr [esi + 0x10] */ 1502 edi = eax; /* 0x36056A8A: mov edi, eax */ 1503 RECOMP_ICALL(ebx); /* 0x36056A8C: call ebx */ 1504 RECOMP_FLAGS_IN(); 1505 edx = MEM32(eax); /* 0x36056A8E: mov edx, dword ptr [eax] */ 1506 ecx = MEM32(eax + 0x4); /* 0x36056A90: mov ecx, dword ptr [eax + 4] */ 1507 MEM32(ebp + (-0x5C)) = edx; /* 0x36056A93: mov dword ptr [ebp - 0x5c], edx */ 1508 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36056A96: fld dword ptr [ebp - 0x5c] */ 1509 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056A99: fsub dword ptr [edi] */ 1510 edx = MEM32(eax + 0x8); /* 0x36056A9B: mov edx, dword ptr [eax + 8] */ 1511 MEM32(ebp + (-0x58)) = ecx; /* 0x36056A9E: mov dword ptr [ebp - 0x58], ecx */ 1512 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36056AA1: fld dword ptr [ebp - 0x58] */ 1513 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056AA4: fsub dword ptr [edi + 4] */ 1514 MEM32(ebp + (-0x54)) = edx; /* 0x36056AA7: mov dword ptr [ebp - 0x54], edx */ 1515 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36056AAA: fld dword ptr [ebp - 0x54] */ 1516 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056AAD: fsub dword ptr [edi + 8] */ 1517 fp_push(_st[0]); /* 0x36056AB0: fld st(0) */ 1518 _st[0] *= _st[1]; /* 0x36056AB2: fmul st(1) */ 1519 fp_push(_st[2]); /* 0x36056AB4: fld st(2) */ 1520 _st[0] *= _st[3]; /* 0x36056AB6: fmul st(3) */ 1521 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056AB8: faddp st(1) */ 1522 fp_push(_st[3]); /* 0x36056ABA: fld st(3) */ 1523 _st[0] *= _st[4]; /* 0x36056ABC: fmul st(4) */ 1524 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056ABE: faddp st(1) */ 1525 _st[0] = sqrt(_st[0]); /* 0x36056AC0: fsqrt */ 1526 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056AC2: fstp st(3) */ 1527 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC4: fstp st(0) */ 1528 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC6: fstp st(0) */ 1529 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056AC8: fcomp qword ptr [0x36170808] */ 1530 fp_pop(); 1531 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056ACE: fnstsw ax */ 1532 /* test HI8(eax), 0x41u */ /* 0x36056AD0: test ah, 0x41 */ 1533 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1534 _cf = 0; 1535 _flag_k = FK_NARROW(FK_TEST, 24); 1536 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056AD3: jne 0x36056c03 */ 1537 L_36056AD9: 1538 PUSH32(esp, 0x34u); /* 0x36056AD9: push 0x34 */ 1539 RECOMP_ICALL(0x3615FD6Au); /* 0x36056ADB: call 0x3615fd6a */ /* not lifted */ 1540 RECOMP_FLAGS_IN(); 1541 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1543 esp = esp + 4; /* 0x36056AE0: add esp, 4 */ 1544 _flag_k = FK_ADD; 1545 MEM32(ebp + (-0x14)) = eax; /* 0x36056AE3: mov dword ptr [ebp - 0x14], eax */ 1546 /* test eax, eax */ /* 0x36056AE6: test eax, eax */ 1547 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1548 _cf = 0; 1549 _flag_k = FK_TEST; 1550 MEM32(ebp + (-0x4)) = 2; /* 0x36056AE8: mov dword ptr [ebp - 4], 2 */ 1551 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B0D; /* 0x36056AEF: je 0x36056b0d */ 1552 L_36056AF1: 1553 ecx = MEM32(esi + 0x10); /* 0x36056AF1: mov ecx, dword ptr [esi + 0x10] */ 1554 PUSH32(esp, 0x362EA510u); /* 0x36056AF4: push 0x362ea510 */ 1555 PUSH32(esp, 0x6Eu); /* 0x36056AF9: push 0x6e */ 1556 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1557 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1558 ecx = ecx + 4; /* 0x36056AFB: add ecx, 4 */ 1559 _flag_k = FK_ADD; 1560 PUSH32(esp, 0x362EA510u); /* 0x36056AFE: push 0x362ea510 */ 1561 PUSH32(esp, ecx); /* 0x36056B03: push ecx */ 1562 ecx = eax; /* 0x36056B04: mov ecx, eax */ 1563 RECOMP_ICALL(0x3607D4B0u); /* 0x36056B06: call 0x3607d4b0 */ /* not lifted */ 1564 RECOMP_FLAGS_IN(); 1565 goto L_36056B0F; /* 0x36056B0B: jmp 0x36056b0f */ 1566 L_36056B0D: 1567 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1568 eax = 0; /* 0x36056B0D: xor eax, eax */ 1569 _cf = 0; 1570 _flag_k = FK_TEST; 1571 L_36056B0F: 1572 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056B0F: mov dword ptr [ebp - 4], 0xffffffff */ 1573 MEM32(ebp + (-0x20)) = eax; /* 0x36056B16: mov dword ptr [ebp - 0x20], eax */ 1574 edx = ebp + (-0x20); /* 0x36056B19: lea edx, [ebp - 0x20] */ 1575 goto L_36056BDE; /* 0x36056B1C: jmp 0x36056bde */ 1576 L_36056B21: 1577 ecx = MEM32(esi + 0x10); /* 0x36056B21: mov ecx, dword ptr [esi + 0x10] */ 1578 eax = MEM32(ecx + 0x150); /* 0x36056B24: mov eax, dword ptr [ecx + 0x150] */ 1579 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 1580 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1581 eax = eax + 0xE4u; /* 0x36056B2A: add eax, 0xe4 */ 1582 _flag_k = FK_ADD; 1583 PUSH32(esp, eax); /* 0x36056B2F: push eax */ 1584 RECOMP_ICALL(edi); /* 0x36056B30: call edi */ 1585 RECOMP_FLAGS_IN(); 1586 ebx = eax; /* 0x36056B32: mov ebx, eax */ 1587 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1589 esp = esp + 4; /* 0x36056B34: add esp, 4 */ 1590 _flag_k = FK_ADD; 1591 /* test ebx, ebx */ /* 0x36056B37: test ebx, ebx */ 1592 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1593 _cf = 0; 1594 _flag_k = FK_TEST; 1595 if (TEST_Z(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B39: je 0x36056c03 */ 1596 L_36056B3F: 1597 ecx = ebx; /* 0x36056B3F: mov ecx, ebx */ 1598 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B41: call dword ptr [0x3616ffb0] */ 1599 RECOMP_FLAGS_IN(); 1600 ecx = MEM32(esi + 0x10); /* 0x36056B47: mov ecx, dword ptr [esi + 0x10] */ 1601 edi = eax; /* 0x36056B4A: mov edi, eax */ 1602 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B4C: call dword ptr [0x3616ffb0] */ 1603 RECOMP_FLAGS_IN(); 1604 edx = MEM32(eax); /* 0x36056B52: mov edx, dword ptr [eax] */ 1605 ecx = MEM32(eax + 0x4); /* 0x36056B54: mov ecx, dword ptr [eax + 4] */ 1606 MEM32(ebp + (-0x68)) = edx; /* 0x36056B57: mov dword ptr [ebp - 0x68], edx */ 1607 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36056B5A: fld dword ptr [ebp - 0x68] */ 1608 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056B5D: fsub dword ptr [edi] */ 1609 edx = MEM32(eax + 0x8); /* 0x36056B5F: mov edx, dword ptr [eax + 8] */ 1610 MEM32(ebp + (-0x64)) = ecx; /* 0x36056B62: mov dword ptr [ebp - 0x64], ecx */ 1611 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36056B65: fld dword ptr [ebp - 0x64] */ 1612 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056B68: fsub dword ptr [edi + 4] */ 1613 MEM32(ebp + (-0x60)) = edx; /* 0x36056B6B: mov dword ptr [ebp - 0x60], edx */ 1614 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36056B6E: fld dword ptr [ebp - 0x60] */ 1615 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056B71: fsub dword ptr [edi + 8] */ 1616 fp_push(_st[0]); /* 0x36056B74: fld st(0) */ 1617 _st[0] *= _st[1]; /* 0x36056B76: fmul st(1) */ 1618 fp_push(_st[2]); /* 0x36056B78: fld st(2) */ 1619 _st[0] *= _st[3]; /* 0x36056B7A: fmul st(3) */ 1620 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B7C: faddp st(1) */ 1621 fp_push(_st[3]); /* 0x36056B7E: fld st(3) */ 1622 _st[0] *= _st[4]; /* 0x36056B80: fmul st(4) */ 1623 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B82: faddp st(1) */ 1624 _st[0] = sqrt(_st[0]); /* 0x36056B84: fsqrt */ 1625 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056B86: fstp st(3) */ 1626 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B88: fstp st(0) */ 1627 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B8A: fstp st(0) */ 1628 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056B8C: fcomp qword ptr [0x36170808] */ 1629 fp_pop(); 1630 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056B92: fnstsw ax */ 1631 /* test HI8(eax), 0x41u */ /* 0x36056B94: test ah, 0x41 */ 1632 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1633 _cf = 0; 1634 _flag_k = FK_NARROW(FK_TEST, 24); 1635 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B97: jne 0x36056c03 */ 1636 L_36056B99: 1637 PUSH32(esp, 0x34u); /* 0x36056B99: push 0x34 */ 1638 RECOMP_ICALL(0x3615FD6Au); /* 0x36056B9B: call 0x3615fd6a */ /* not lifted */ 1639 RECOMP_FLAGS_IN(); 1640 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1641 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1642 esp = esp + 4; /* 0x36056BA0: add esp, 4 */ 1643 _flag_k = FK_ADD; 1644 MEM32(ebp + (-0x14)) = eax; /* 0x36056BA3: mov dword ptr [ebp - 0x14], eax */ 1645 /* test eax, eax */ /* 0x36056BA6: test eax, eax */ 1646 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1647 _cf = 0; 1648 _flag_k = FK_TEST; 1649 MEM32(ebp + (-0x4)) = 3; /* 0x36056BA8: mov dword ptr [ebp - 4], 3 */ 1650 if (TEST_Z(_flag_a, _flag_b)) goto L_36056BCF; /* 0x36056BAF: je 0x36056bcf */ 1651 L_36056BB1: 1652 ecx = MEM32(esi + 0x10); /* 0x36056BB1: mov ecx, dword ptr [esi + 0x10] */ 1653 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 1654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1655 ebx = ebx + 4; /* 0x36056BB4: add ebx, 4 */ 1656 _flag_k = FK_ADD; 1657 PUSH32(esp, ebx); /* 0x36056BB7: push ebx */ 1658 PUSH32(esp, 0x8Eu); /* 0x36056BB8: push 0x8e */ 1659 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1660 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1661 ecx = ecx + 4; /* 0x36056BBD: add ecx, 4 */ 1662 _flag_k = FK_ADD; 1663 PUSH32(esp, 0x362EA510u); /* 0x36056BC0: push 0x362ea510 */ 1664 PUSH32(esp, ecx); /* 0x36056BC5: push ecx */ 1665 ecx = eax; /* 0x36056BC6: mov ecx, eax */ 1666 RECOMP_ICALL(0x3607D4B0u); /* 0x36056BC8: call 0x3607d4b0 */ /* not lifted */ 1667 RECOMP_FLAGS_IN(); 1668 goto L_36056BD1; /* 0x36056BCD: jmp 0x36056bd1 */ 1669 L_36056BCF: 1670 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1671 eax = 0; /* 0x36056BCF: xor eax, eax */ 1672 _cf = 0; 1673 _flag_k = FK_TEST; 1674 L_36056BD1: 1675 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056BD1: mov dword ptr [ebp - 4], 0xffffffff */ 1676 MEM32(ebp + (-0x24)) = eax; /* 0x36056BD8: mov dword ptr [ebp - 0x24], eax */ 1677 edx = ebp + (-0x24); /* 0x36056BDB: lea edx, [ebp - 0x24] */ 1678 L_36056BDE: 1679 ecx = MEM32(esi + 0x10); /* 0x36056BDE: mov ecx, dword ptr [esi + 0x10] */ 1680 PUSH32(esp, edx); /* 0x36056BE1: push edx */ 1681 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36056BE2: call dword ptr [0x3617004c] */ 1682 RECOMP_FLAGS_IN(); 1683 eax = ebp + (-0x2C); /* 0x36056BE8: lea eax, [ebp - 0x2c] */ 1684 PUSH32(esp, eax); /* 0x36056BEB: push eax */ 1685 ecx = esi; /* 0x36056BEC: mov ecx, esi */ 1686 RECOMP_ICALL(0x36053160u); /* 0x36056BEE: call 0x36053160 */ /* not lifted */ 1687 RECOMP_FLAGS_IN(); 1688 ecx = MEM32(esi + 0x8C); /* 0x36056BF3: mov ecx, dword ptr [esi + 0x8c] */ 1689 edx = MEM32(ecx + 0x4); /* 0x36056BF9: mov edx, dword ptr [ecx + 4] */ 1690 eax = MEM32(edx); /* 0x36056BFC: mov eax, dword ptr [edx] */ 1691 MEM32(ebp + (-0x10)) = eax; /* 0x36056BFE: mov dword ptr [ebp - 0x10], eax */ 1692 goto L_36056C0B; /* 0x36056C01: jmp 0x36056c0b */ 1693 L_36056C03: 1694 ecx = MEM32(ebp + (-0x10)); /* 0x36056C03: mov ecx, dword ptr [ebp - 0x10] */ 1695 edx = MEM32(ecx); /* 0x36056C06: mov edx, dword ptr [ecx] */ 1696 MEM32(ebp + (-0x10)) = edx; /* 0x36056C08: mov dword ptr [ebp - 0x10], edx */ 1697 L_36056C0B: 1698 eax = MEM32(esi + 0x8C); /* 0x36056C0B: mov eax, dword ptr [esi + 0x8c] */ 1699 ecx = MEM32(ebp + (-0x10)); /* 0x36056C11: mov ecx, dword ptr [ebp - 0x10] */ 1700 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x36056C14: cmp ecx, dword ptr [eax + 4] */ 1701 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 1702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1703 _flag_k = FK_CMP; 1704 RECOMP_BACKEDGE(); 1705 if (CMP_NE(_flag_a, _flag_b)) goto L_360567E9; /* 0x36056C17: jne 0x360567e9 */ 1706 L_36056C1D: 1707 edi = POP32_VAL(esp); /* 0x36056C1D: pop edi */ 1708 ebx = POP32_VAL(esp); /* 0x36056C1E: pop ebx */ 1709 ecx = MEM32(ebp + (-0xC)); /* 0x36056C1F: mov ecx, dword ptr [ebp - 0xc] */ 1710 esi = POP32_VAL(esp); /* 0x36056C22: pop esi */ 1711 MEM32(FS_BASE + (0)) = ecx; /* 0x36056C23: mov dword ptr fs:[0], ecx */ 1712 esp = ebp; /* 0x36056C2A: mov esp, ebp */ 1713 ebp = POP32_VAL(esp); /* 0x36056C2C: pop ebp */ 1714 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36056C2D: ret */ 1715 RECOMP_REGS_OUT(); 1716 } 1717 1718 void sub_36056A4D(void) { 1719 int _fpu_cmp = 0; 1720 uint32_t _cf = 0; 1721 int _df = 1; 1722 uint32_t _flag_k = FK_NONE; 1723 uint32_t _flag_a = 0, _flag_b = 0; 1724 uint32_t _itail_tgt = 0; 1725 RECOMP_REGS_LOCALS 1726 RECOMP_ENTER(0x36056A4Du); 1727 1728 goto L_36056A4D; 1729 L_360567E9: 1730 ecx = MEM32(ebp + (-0x10)); /* 0x360567E9: mov ecx, dword ptr [ebp - 0x10] */ 1731 eax = ecx + 0x8; /* 0x360567EC: lea eax, [ecx + 8] */ 1732 ecx = ebp + (-0x2C); /* 0x360567EF: lea ecx, [ebp - 0x2c] */ 1733 /* cmp ecx, eax */ /* 0x360567F2: cmp ecx, eax */ 1734 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1736 _flag_k = FK_CMP; 1737 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056801; /* 0x360567F4: je 0x36056801 */ 1738 L_360567F6: 1739 edx = MEM32(eax); /* 0x360567F6: mov edx, dword ptr [eax] */ 1740 MEM32(ebp + (-0x2C)) = edx; /* 0x360567F8: mov dword ptr [ebp - 0x2c], edx */ 1741 eax = MEM32(eax + 0x4); /* 0x360567FB: mov eax, dword ptr [eax + 4] */ 1742 MEM32(ebp + (-0x28)) = eax; /* 0x360567FE: mov dword ptr [ebp - 0x28], eax */ 1743 L_36056801: 1744 PUSH32(esp, 0); /* 0x36056801: push 0 */ 1745 PUSH32(esp, 0x361B5C10u); /* 0x36056803: push 0x361b5c10 */ 1746 PUSH32(esp, 0x361B2CC0u); /* 0x36056808: push 0x361b2cc0 */ 1747 ecx = ebp + (-0x2C); /* 0x3605680D: lea ecx, [ebp - 0x2c] */ 1748 PUSH32(esp, 0); /* 0x36056810: push 0 */ 1749 PUSH32(esp, ecx); /* 0x36056812: push ecx */ 1750 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056813: call dword ptr [0x3616ff70] */ 1751 RECOMP_FLAGS_IN(); 1752 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1753 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1754 esp = esp + 4; /* 0x36056819: add esp, 4 */ 1755 _flag_k = FK_ADD; 1756 PUSH32(esp, eax); /* 0x3605681C: push eax */ 1757 RECOMP_ICALL(0x3615FD86u); /* 0x3605681D: call 0x3615fd86 */ /* not lifted */ 1758 RECOMP_FLAGS_IN(); 1759 edi = eax; /* 0x36056822: mov edi, eax */ 1760 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1761 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1762 esp = esp + 0x14u; /* 0x36056824: add esp, 0x14 */ 1763 _flag_k = FK_ADD; 1764 /* test edi, edi */ /* 0x36056827: test edi, edi */ 1765 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1766 _cf = 0; 1767 _flag_k = FK_TEST; 1768 if (TEST_Z(_flag_a, _flag_b)) goto L_360568FD; /* 0x36056829: je 0x360568fd */ 1769 L_3605682F: 1770 eax = MEM32(esi + 0x10); /* 0x3605682F: mov eax, dword ptr [esi + 0x10] */ 1771 edx = MEM32(edi + 0x11C); /* 0x36056832: mov edx, dword ptr [edi + 0x11c] */ 1772 ecx = MEM32(eax + 0x8); /* 0x36056838: mov ecx, dword ptr [eax + 8] */ 1773 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1774 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1775 eax = eax + 4; /* 0x3605683B: add eax, 4 */ 1776 _flag_k = FK_ADD; 1777 /* cmp edx, ecx */ /* 0x3605683E: cmp edx, ecx */ 1778 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1780 _flag_k = FK_CMP; 1781 if (CMP_NE(_flag_a, _flag_b)) goto L_36056850; /* 0x36056840: jne 0x36056850 */ 1782 L_36056842: 1783 ecx = MEM32(edi + 0x118); /* 0x36056842: mov ecx, dword ptr [edi + 0x118] */ 1784 /* cmp ecx, MEM32(eax) */ /* 0x36056848: cmp ecx, dword ptr [eax] */ 1785 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 1786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1787 _flag_k = FK_CMP; 1788 if (CMP_EQ(_flag_a, _flag_b)) goto L_360568FD; /* 0x3605684A: je 0x360568fd */ 1789 L_36056850: 1790 ebx = MEM32(0x3616FFB0); /* 0x36056850: mov ebx, dword ptr [0x3616ffb0] */ 1791 ecx = edi + 0x8C; /* 0x36056856: lea ecx, [edi + 0x8c] */ 1792 RECOMP_ICALL(ebx); /* 0x3605685C: call ebx */ 1793 RECOMP_FLAGS_IN(); 1794 ecx = MEM32(esi + 0x10); /* 0x3605685E: mov ecx, dword ptr [esi + 0x10] */ 1795 MEM32(ebp + (-0x14)) = eax; /* 0x36056861: mov dword ptr [ebp - 0x14], eax */ 1796 RECOMP_ICALL(ebx); /* 0x36056864: call ebx */ 1797 RECOMP_FLAGS_IN(); 1798 edx = MEM32(eax); /* 0x36056866: mov edx, dword ptr [eax] */ 1799 ecx = MEM32(eax + 0x4); /* 0x36056868: mov ecx, dword ptr [eax + 4] */ 1800 MEM32(ebp + (-0x38)) = edx; /* 0x3605686B: mov dword ptr [ebp - 0x38], edx */ 1801 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3605686E: fld dword ptr [ebp - 0x38] */ 1802 edx = MEM32(eax + 0x8); /* 0x36056871: mov edx, dword ptr [eax + 8] */ 1803 eax = MEM32(ebp + (-0x14)); /* 0x36056874: mov eax, dword ptr [ebp - 0x14] */ 1804 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36056877: fsub dword ptr [eax] */ 1805 MEM32(ebp + (-0x34)) = ecx; /* 0x36056879: mov dword ptr [ebp - 0x34], ecx */ 1806 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3605687C: fld dword ptr [ebp - 0x34] */ 1807 MEM32(ebp + (-0x30)) = edx; /* 0x3605687F: mov dword ptr [ebp - 0x30], edx */ 1808 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x36056882: fsub dword ptr [eax + 4] */ 1809 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36056885: fld dword ptr [ebp - 0x30] */ 1810 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x36056888: fsub dword ptr [eax + 8] */ 1811 fp_push(_st[0]); /* 0x3605688B: fld st(0) */ 1812 _st[0] *= _st[1]; /* 0x3605688D: fmul st(1) */ 1813 fp_push(_st[2]); /* 0x3605688F: fld st(2) */ 1814 _st[0] *= _st[3]; /* 0x36056891: fmul st(3) */ 1815 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056893: faddp st(1) */ 1816 fp_push(_st[3]); /* 0x36056895: fld st(3) */ 1817 _st[0] *= _st[4]; /* 0x36056897: fmul st(4) */ 1818 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056899: faddp st(1) */ 1819 _st[0] = sqrt(_st[0]); /* 0x3605689B: fsqrt */ 1820 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605689D: fstp st(3) */ 1821 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605689F: fstp st(0) */ 1822 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360568A1: fstp st(0) */ 1823 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x360568A3: fcomp qword ptr [0x36170808] */ 1824 fp_pop(); 1825 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360568A9: fnstsw ax */ 1826 /* test HI8(eax), 0x41u */ /* 0x360568AB: test ah, 0x41 */ 1827 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1828 _cf = 0; 1829 _flag_k = FK_NARROW(FK_TEST, 24); 1830 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056903; /* 0x360568AE: jne 0x36056903 */ 1831 L_360568B0: 1832 PUSH32(esp, 0x34u); /* 0x360568B0: push 0x34 */ 1833 RECOMP_ICALL(0x3615FD6Au); /* 0x360568B2: call 0x3615fd6a */ /* not lifted */ 1834 RECOMP_FLAGS_IN(); 1835 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1836 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1837 esp = esp + 4; /* 0x360568B7: add esp, 4 */ 1838 _flag_k = FK_ADD; 1839 MEM32(ebp + (-0x14)) = eax; /* 0x360568BA: mov dword ptr [ebp - 0x14], eax */ 1840 /* test eax, eax */ /* 0x360568BD: test eax, eax */ 1841 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1842 _cf = 0; 1843 _flag_k = FK_TEST; 1844 MEM32(ebp + (-0x4)) = 0; /* 0x360568BF: mov dword ptr [ebp - 4], 0 */ 1845 if (TEST_Z(_flag_a, _flag_b)) goto L_360568E9; /* 0x360568C6: je 0x360568e9 */ 1846 L_360568C8: 1847 ecx = MEM32(esi + 0x10); /* 0x360568C8: mov ecx, dword ptr [esi + 0x10] */ 1848 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x90u); 1849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1850 edi = edi + 0x90u; /* 0x360568CB: add edi, 0x90 */ 1851 _flag_k = FK_ADD; 1852 PUSH32(esp, edi); /* 0x360568D1: push edi */ 1853 PUSH32(esp, 0x8Eu); /* 0x360568D2: push 0x8e */ 1854 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1855 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1856 ecx = ecx + 4; /* 0x360568D7: add ecx, 4 */ 1857 _flag_k = FK_ADD; 1858 PUSH32(esp, 0x362EA510u); /* 0x360568DA: push 0x362ea510 */ 1859 PUSH32(esp, ecx); /* 0x360568DF: push ecx */ 1860 ecx = eax; /* 0x360568E0: mov ecx, eax */ 1861 RECOMP_ICALL(0x3607D4B0u); /* 0x360568E2: call 0x3607d4b0 */ /* not lifted */ 1862 RECOMP_FLAGS_IN(); 1863 goto L_360568EB; /* 0x360568E7: jmp 0x360568eb */ 1864 L_360568E9: 1865 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1866 eax = 0; /* 0x360568E9: xor eax, eax */ 1867 _cf = 0; 1868 _flag_k = FK_TEST; 1869 L_360568EB: 1870 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360568EB: mov dword ptr [ebp - 4], 0xffffffff */ 1871 MEM32(ebp + (-0x18)) = eax; /* 0x360568F2: mov dword ptr [ebp - 0x18], eax */ 1872 edx = ebp + (-0x18); /* 0x360568F5: lea edx, [ebp - 0x18] */ 1873 goto L_36056BDE; /* 0x360568F8: jmp 0x36056bde */ 1874 L_360568FD: 1875 ebx = MEM32(0x3616FFB0); /* 0x360568FD: mov ebx, dword ptr [0x3616ffb0] */ 1876 L_36056903: 1877 /* cmp MEM32(ebp + (-0x2C)), 0xC350u */ /* 0x36056903: cmp dword ptr [ebp - 0x2c], 0xc350 */ 1878 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xC350u); 1879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1880 _flag_k = FK_CMP; 1881 if (CMP_NE(_flag_a, _flag_b)) goto L_360569B4; /* 0x3605690A: jne 0x360569b4 */ 1882 L_36056910: 1883 PUSH32(esp, 0); /* 0x36056910: push 0 */ 1884 PUSH32(esp, 0x361B2CD8u); /* 0x36056912: push 0x361b2cd8 */ 1885 PUSH32(esp, 0x361B2CC0u); /* 0x36056917: push 0x361b2cc0 */ 1886 ecx = ebp + (-0x2C); /* 0x3605691C: lea ecx, [ebp - 0x2c] */ 1887 PUSH32(esp, 0); /* 0x3605691F: push 0 */ 1888 PUSH32(esp, ecx); /* 0x36056921: push ecx */ 1889 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056922: call dword ptr [0x3616ff70] */ 1890 RECOMP_FLAGS_IN(); 1891 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1892 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1893 esp = esp + 4; /* 0x36056928: add esp, 4 */ 1894 _flag_k = FK_ADD; 1895 PUSH32(esp, eax); /* 0x3605692B: push eax */ 1896 RECOMP_ICALL(0x3615FD86u); /* 0x3605692C: call 0x3615fd86 */ /* not lifted */ 1897 RECOMP_FLAGS_IN(); 1898 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1899 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1900 esp = esp + 0x14u; /* 0x36056931: add esp, 0x14 */ 1901 _flag_k = FK_ADD; 1902 /* test eax, eax */ /* 0x36056934: test eax, eax */ 1903 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1904 _cf = 0; 1905 _flag_k = FK_TEST; 1906 MEM32(ebp + (-0x14)) = eax; /* 0x36056936: mov dword ptr [ebp - 0x14], eax */ 1907 if (TEST_Z(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056939: je 0x360569b4 */ 1908 L_3605693B: 1909 ecx = eax; /* 0x3605693B: mov ecx, eax */ 1910 RECOMP_ICALL(ebx); /* 0x3605693D: call ebx */ 1911 RECOMP_FLAGS_IN(); 1912 ecx = MEM32(esi + 0x10); /* 0x3605693F: mov ecx, dword ptr [esi + 0x10] */ 1913 edi = eax; /* 0x36056942: mov edi, eax */ 1914 RECOMP_ICALL(ebx); /* 0x36056944: call ebx */ 1915 RECOMP_FLAGS_IN(); 1916 edx = MEM32(eax); /* 0x36056946: mov edx, dword ptr [eax] */ 1917 ecx = MEM32(eax + 0x4); /* 0x36056948: mov ecx, dword ptr [eax + 4] */ 1918 MEM32(ebp + (-0x44)) = edx; /* 0x3605694B: mov dword ptr [ebp - 0x44], edx */ 1919 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3605694E: fld dword ptr [ebp - 0x44] */ 1920 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056951: fsub dword ptr [edi] */ 1921 edx = MEM32(eax + 0x8); /* 0x36056953: mov edx, dword ptr [eax + 8] */ 1922 MEM32(ebp + (-0x40)) = ecx; /* 0x36056956: mov dword ptr [ebp - 0x40], ecx */ 1923 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36056959: fld dword ptr [ebp - 0x40] */ 1924 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3605695C: fsub dword ptr [edi + 4] */ 1925 MEM32(ebp + (-0x3C)) = edx; /* 0x3605695F: mov dword ptr [ebp - 0x3c], edx */ 1926 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36056962: fld dword ptr [ebp - 0x3c] */ 1927 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056965: fsub dword ptr [edi + 8] */ 1928 fp_push(_st[0]); /* 0x36056968: fld st(0) */ 1929 _st[0] *= _st[1]; /* 0x3605696A: fmul st(1) */ 1930 fp_push(_st[2]); /* 0x3605696C: fld st(2) */ 1931 _st[0] *= _st[3]; /* 0x3605696E: fmul st(3) */ 1932 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056970: faddp st(1) */ 1933 fp_push(_st[3]); /* 0x36056972: fld st(3) */ 1934 _st[0] *= _st[4]; /* 0x36056974: fmul st(4) */ 1935 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056976: faddp st(1) */ 1936 _st[0] = sqrt(_st[0]); /* 0x36056978: fsqrt */ 1937 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605697A: fstp st(3) */ 1938 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697C: fstp st(0) */ 1939 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697E: fstp st(0) */ 1940 RECOMP_ICALL(0x3615FD8Cu); /* 0x36056980: call 0x3615fd8c */ /* not lifted */ 1941 RECOMP_FLAGS_IN(); 1942 /* cmp eax, 2 */ /* 0x36056985: cmp eax, 2 */ 1943 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 1944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1945 _flag_k = FK_CMP; 1946 if (CMP_G(_flag_a, _flag_b)) goto L_36056996; /* 0x36056988: jg 0x36056996 */ 1947 L_3605698A: 1948 eax = MEM32(ebp + (-0x14)); /* 0x3605698A: mov eax, dword ptr [ebp - 0x14] */ 1949 /* test MEM8(eax + 0x11C), 0x10u */ /* 0x3605698D: test byte ptr [eax + 0x11c], 0x10 */ 1950 _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 1951 _cf = 0; 1952 _flag_k = FK_NARROW(FK_TEST, 24); 1953 if (TEST_NZ(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056994: jne 0x360569b4 */ 1954 L_36056996: 1955 ecx = ebp + (-0x2C); /* 0x36056996: lea ecx, [ebp - 0x2c] */ 1956 PUSH32(esp, ecx); /* 0x36056999: push ecx */ 1957 ecx = esi; /* 0x3605699A: mov ecx, esi */ 1958 RECOMP_ICALL(0x36053160u); /* 0x3605699C: call 0x36053160 */ /* not lifted */ 1959 RECOMP_FLAGS_IN(); 1960 edx = MEM32(esi + 0x8C); /* 0x360569A1: mov edx, dword ptr [esi + 0x8c] */ 1961 eax = MEM32(edx + 0x4); /* 0x360569A7: mov eax, dword ptr [edx + 4] */ 1962 ecx = MEM32(eax); /* 0x360569AA: mov ecx, dword ptr [eax] */ 1963 MEM32(ebp + (-0x10)) = ecx; /* 0x360569AC: mov dword ptr [ebp - 0x10], ecx */ 1964 goto L_36056C0B; /* 0x360569AF: jmp 0x36056c0b */ 1965 L_360569B4: 1966 /* cmp MEM32(ebp + (-0x2C)), 0xDEADu */ /* 0x360569B4: cmp dword ptr [ebp - 0x2c], 0xdead */ 1967 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEADu); 1968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1969 _flag_k = FK_CMP; 1970 if (CMP_NE(_flag_a, _flag_b)) goto L_36056A5F; /* 0x360569BB: jne 0x36056a5f */ 1971 L_360569C1: 1972 ecx = MEM32(esi + 0x10); /* 0x360569C1: mov ecx, dword ptr [esi + 0x10] */ 1973 RECOMP_ICALL(ebx); /* 0x360569C4: call ebx */ 1974 RECOMP_FLAGS_IN(); 1975 edx = MEM32(eax); /* 0x360569C6: mov edx, dword ptr [eax] */ 1976 ecx = MEM32(eax + 0x4); /* 0x360569C8: mov ecx, dword ptr [eax + 4] */ 1977 MEM32(ebp + (-0x50)) = edx; /* 0x360569CB: mov dword ptr [ebp - 0x50], edx */ 1978 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x360569CE: fld dword ptr [ebp - 0x50] */ 1979 _st[0] -= (double)*(float*)ADDR(esi + 0x9C); /* 0x360569D1: fsub dword ptr [esi + 0x9c] */ 1980 edx = MEM32(eax + 0x8); /* 0x360569D7: mov edx, dword ptr [eax + 8] */ 1981 MEM32(ebp + (-0x4C)) = ecx; /* 0x360569DA: mov dword ptr [ebp - 0x4c], ecx */ 1982 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x360569DD: fld dword ptr [ebp - 0x4c] */ 1983 _st[0] -= (double)*(float*)ADDR(esi + 0xA0); /* 0x360569E0: fsub dword ptr [esi + 0xa0] */ 1984 MEM32(ebp + (-0x48)) = edx; /* 0x360569E6: mov dword ptr [ebp - 0x48], edx */ 1985 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x360569E9: fld dword ptr [ebp - 0x48] */ 1986 _st[0] -= (double)*(float*)ADDR(esi + 0xA4); /* 0x360569EC: fsub dword ptr [esi + 0xa4] */ 1987 fp_push(_st[0]); /* 0x360569F2: fld st(0) */ 1988 _st[0] *= _st[1]; /* 0x360569F4: fmul st(1) */ 1989 fp_push(_st[2]); /* 0x360569F6: fld st(2) */ 1990 _st[0] *= _st[3]; /* 0x360569F8: fmul st(3) */ 1991 { double _v = fp_pop(); _st[0] += _v; } /* 0x360569FA: faddp st(1) */ 1992 fp_push(_st[3]); /* 0x360569FC: fld st(3) */ 1993 _st[0] *= _st[4]; /* 0x360569FE: fmul st(4) */ 1994 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056A00: faddp st(1) */ 1995 _st[0] = sqrt(_st[0]); /* 0x36056A02: fsqrt */ 1996 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056A04: fstp st(3) */ 1997 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A06: fstp st(0) */ 1998 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A08: fstp st(0) */ 1999 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056A0A: fcomp qword ptr [0x36170808] */ 2000 fp_pop(); 2001 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056A10: fnstsw ax */ 2002 /* test HI8(eax), 0x41u */ /* 0x36056A12: test ah, 0x41 */ 2003 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2004 _cf = 0; 2005 _flag_k = FK_NARROW(FK_TEST, 24); 2006 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056A5F; /* 0x36056A15: jne 0x36056a5f */ 2007 L_36056A17: 2008 PUSH32(esp, 0x34u); /* 0x36056A17: push 0x34 */ 2009 RECOMP_ICALL(0x3615FD6Au); /* 0x36056A19: call 0x3615fd6a */ /* not lifted */ 2010 RECOMP_FLAGS_IN(); 2011 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2012 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2013 esp = esp + 4; /* 0x36056A1E: add esp, 4 */ 2014 _flag_k = FK_ADD; 2015 MEM32(ebp + (-0x14)) = eax; /* 0x36056A21: mov dword ptr [ebp - 0x14], eax */ 2016 /* test eax, eax */ /* 0x36056A24: test eax, eax */ 2017 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2018 _cf = 0; 2019 _flag_k = FK_TEST; 2020 MEM32(ebp + (-0x4)) = 1; /* 0x36056A26: mov dword ptr [ebp - 4], 1 */ 2021 if (TEST_Z(_flag_a, _flag_b)) goto L_36056A4B; /* 0x36056A2D: je 0x36056a4b */ 2022 L_36056A2F: 2023 ecx = MEM32(esi + 0x10); /* 0x36056A2F: mov ecx, dword ptr [esi + 0x10] */ 2024 PUSH32(esp, 0x362EA510u); /* 0x36056A32: push 0x362ea510 */ 2025 PUSH32(esp, 0x6Au); /* 0x36056A37: push 0x6a */ 2026 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2028 ecx = ecx + 4; /* 0x36056A39: add ecx, 4 */ 2029 _flag_k = FK_ADD; 2030 PUSH32(esp, 0x362EA510u); /* 0x36056A3C: push 0x362ea510 */ 2031 PUSH32(esp, ecx); /* 0x36056A41: push ecx */ 2032 ecx = eax; /* 0x36056A42: mov ecx, eax */ 2033 RECOMP_ICALL(0x3607D4B0u); /* 0x36056A44: call 0x3607d4b0 */ /* not lifted */ 2034 RECOMP_FLAGS_IN(); 2035 goto L_36056A4D; /* 0x36056A49: jmp 0x36056a4d */ 2036 L_36056A4B: 2037 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2038 eax = 0; /* 0x36056A4B: xor eax, eax */ 2039 _cf = 0; 2040 _flag_k = FK_TEST; 2041 L_36056A4D: 2042 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056A4D: mov dword ptr [ebp - 4], 0xffffffff */ 2043 MEM32(ebp + (-0x1C)) = eax; /* 0x36056A54: mov dword ptr [ebp - 0x1c], eax */ 2044 edx = ebp + (-0x1C); /* 0x36056A57: lea edx, [ebp - 0x1c] */ 2045 goto L_36056BDE; /* 0x36056A5A: jmp 0x36056bde */ 2046 L_36056A5F: 2047 /* cmp MEM32(ebp + (-0x2C)), 0xDEAEu */ /* 0x36056A5F: cmp dword ptr [ebp - 0x2c], 0xdeae */ 2048 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEAEu); 2049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2050 _flag_k = FK_CMP; 2051 if (CMP_NE(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056A66: jne 0x36056c03 */ 2052 L_36056A6C: 2053 edi = MEM32(0x3616FF70); /* 0x36056A6C: mov edi, dword ptr [0x3616ff70] */ 2054 ecx = esi + 0x78; /* 0x36056A72: lea ecx, [esi + 0x78] */ 2055 PUSH32(esp, ecx); /* 0x36056A75: push ecx */ 2056 RECOMP_ICALL(edi); /* 0x36056A76: call edi */ 2057 RECOMP_FLAGS_IN(); 2058 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2059 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2060 esp = esp + 4; /* 0x36056A78: add esp, 4 */ 2061 _flag_k = FK_ADD; 2062 /* test eax, eax */ /* 0x36056A7B: test eax, eax */ 2063 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2064 _cf = 0; 2065 _flag_k = FK_TEST; 2066 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B21; /* 0x36056A7D: je 0x36056b21 */ 2067 L_36056A83: 2068 ecx = eax; /* 0x36056A83: mov ecx, eax */ 2069 RECOMP_ICALL(ebx); /* 0x36056A85: call ebx */ 2070 RECOMP_FLAGS_IN(); 2071 ecx = MEM32(esi + 0x10); /* 0x36056A87: mov ecx, dword ptr [esi + 0x10] */ 2072 edi = eax; /* 0x36056A8A: mov edi, eax */ 2073 RECOMP_ICALL(ebx); /* 0x36056A8C: call ebx */ 2074 RECOMP_FLAGS_IN(); 2075 edx = MEM32(eax); /* 0x36056A8E: mov edx, dword ptr [eax] */ 2076 ecx = MEM32(eax + 0x4); /* 0x36056A90: mov ecx, dword ptr [eax + 4] */ 2077 MEM32(ebp + (-0x5C)) = edx; /* 0x36056A93: mov dword ptr [ebp - 0x5c], edx */ 2078 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36056A96: fld dword ptr [ebp - 0x5c] */ 2079 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056A99: fsub dword ptr [edi] */ 2080 edx = MEM32(eax + 0x8); /* 0x36056A9B: mov edx, dword ptr [eax + 8] */ 2081 MEM32(ebp + (-0x58)) = ecx; /* 0x36056A9E: mov dword ptr [ebp - 0x58], ecx */ 2082 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36056AA1: fld dword ptr [ebp - 0x58] */ 2083 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056AA4: fsub dword ptr [edi + 4] */ 2084 MEM32(ebp + (-0x54)) = edx; /* 0x36056AA7: mov dword ptr [ebp - 0x54], edx */ 2085 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36056AAA: fld dword ptr [ebp - 0x54] */ 2086 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056AAD: fsub dword ptr [edi + 8] */ 2087 fp_push(_st[0]); /* 0x36056AB0: fld st(0) */ 2088 _st[0] *= _st[1]; /* 0x36056AB2: fmul st(1) */ 2089 fp_push(_st[2]); /* 0x36056AB4: fld st(2) */ 2090 _st[0] *= _st[3]; /* 0x36056AB6: fmul st(3) */ 2091 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056AB8: faddp st(1) */ 2092 fp_push(_st[3]); /* 0x36056ABA: fld st(3) */ 2093 _st[0] *= _st[4]; /* 0x36056ABC: fmul st(4) */ 2094 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056ABE: faddp st(1) */ 2095 _st[0] = sqrt(_st[0]); /* 0x36056AC0: fsqrt */ 2096 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056AC2: fstp st(3) */ 2097 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC4: fstp st(0) */ 2098 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC6: fstp st(0) */ 2099 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056AC8: fcomp qword ptr [0x36170808] */ 2100 fp_pop(); 2101 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056ACE: fnstsw ax */ 2102 /* test HI8(eax), 0x41u */ /* 0x36056AD0: test ah, 0x41 */ 2103 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2104 _cf = 0; 2105 _flag_k = FK_NARROW(FK_TEST, 24); 2106 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056AD3: jne 0x36056c03 */ 2107 L_36056AD9: 2108 PUSH32(esp, 0x34u); /* 0x36056AD9: push 0x34 */ 2109 RECOMP_ICALL(0x3615FD6Au); /* 0x36056ADB: call 0x3615fd6a */ /* not lifted */ 2110 RECOMP_FLAGS_IN(); 2111 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2112 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2113 esp = esp + 4; /* 0x36056AE0: add esp, 4 */ 2114 _flag_k = FK_ADD; 2115 MEM32(ebp + (-0x14)) = eax; /* 0x36056AE3: mov dword ptr [ebp - 0x14], eax */ 2116 /* test eax, eax */ /* 0x36056AE6: test eax, eax */ 2117 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2118 _cf = 0; 2119 _flag_k = FK_TEST; 2120 MEM32(ebp + (-0x4)) = 2; /* 0x36056AE8: mov dword ptr [ebp - 4], 2 */ 2121 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B0D; /* 0x36056AEF: je 0x36056b0d */ 2122 L_36056AF1: 2123 ecx = MEM32(esi + 0x10); /* 0x36056AF1: mov ecx, dword ptr [esi + 0x10] */ 2124 PUSH32(esp, 0x362EA510u); /* 0x36056AF4: push 0x362ea510 */ 2125 PUSH32(esp, 0x6Eu); /* 0x36056AF9: push 0x6e */ 2126 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2127 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2128 ecx = ecx + 4; /* 0x36056AFB: add ecx, 4 */ 2129 _flag_k = FK_ADD; 2130 PUSH32(esp, 0x362EA510u); /* 0x36056AFE: push 0x362ea510 */ 2131 PUSH32(esp, ecx); /* 0x36056B03: push ecx */ 2132 ecx = eax; /* 0x36056B04: mov ecx, eax */ 2133 RECOMP_ICALL(0x3607D4B0u); /* 0x36056B06: call 0x3607d4b0 */ /* not lifted */ 2134 RECOMP_FLAGS_IN(); 2135 goto L_36056B0F; /* 0x36056B0B: jmp 0x36056b0f */ 2136 L_36056B0D: 2137 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2138 eax = 0; /* 0x36056B0D: xor eax, eax */ 2139 _cf = 0; 2140 _flag_k = FK_TEST; 2141 L_36056B0F: 2142 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056B0F: mov dword ptr [ebp - 4], 0xffffffff */ 2143 MEM32(ebp + (-0x20)) = eax; /* 0x36056B16: mov dword ptr [ebp - 0x20], eax */ 2144 edx = ebp + (-0x20); /* 0x36056B19: lea edx, [ebp - 0x20] */ 2145 goto L_36056BDE; /* 0x36056B1C: jmp 0x36056bde */ 2146 L_36056B21: 2147 ecx = MEM32(esi + 0x10); /* 0x36056B21: mov ecx, dword ptr [esi + 0x10] */ 2148 eax = MEM32(ecx + 0x150); /* 0x36056B24: mov eax, dword ptr [ecx + 0x150] */ 2149 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 2150 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2151 eax = eax + 0xE4u; /* 0x36056B2A: add eax, 0xe4 */ 2152 _flag_k = FK_ADD; 2153 PUSH32(esp, eax); /* 0x36056B2F: push eax */ 2154 RECOMP_ICALL(edi); /* 0x36056B30: call edi */ 2155 RECOMP_FLAGS_IN(); 2156 ebx = eax; /* 0x36056B32: mov ebx, eax */ 2157 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2158 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2159 esp = esp + 4; /* 0x36056B34: add esp, 4 */ 2160 _flag_k = FK_ADD; 2161 /* test ebx, ebx */ /* 0x36056B37: test ebx, ebx */ 2162 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2163 _cf = 0; 2164 _flag_k = FK_TEST; 2165 if (TEST_Z(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B39: je 0x36056c03 */ 2166 L_36056B3F: 2167 ecx = ebx; /* 0x36056B3F: mov ecx, ebx */ 2168 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B41: call dword ptr [0x3616ffb0] */ 2169 RECOMP_FLAGS_IN(); 2170 ecx = MEM32(esi + 0x10); /* 0x36056B47: mov ecx, dword ptr [esi + 0x10] */ 2171 edi = eax; /* 0x36056B4A: mov edi, eax */ 2172 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B4C: call dword ptr [0x3616ffb0] */ 2173 RECOMP_FLAGS_IN(); 2174 edx = MEM32(eax); /* 0x36056B52: mov edx, dword ptr [eax] */ 2175 ecx = MEM32(eax + 0x4); /* 0x36056B54: mov ecx, dword ptr [eax + 4] */ 2176 MEM32(ebp + (-0x68)) = edx; /* 0x36056B57: mov dword ptr [ebp - 0x68], edx */ 2177 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36056B5A: fld dword ptr [ebp - 0x68] */ 2178 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056B5D: fsub dword ptr [edi] */ 2179 edx = MEM32(eax + 0x8); /* 0x36056B5F: mov edx, dword ptr [eax + 8] */ 2180 MEM32(ebp + (-0x64)) = ecx; /* 0x36056B62: mov dword ptr [ebp - 0x64], ecx */ 2181 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36056B65: fld dword ptr [ebp - 0x64] */ 2182 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056B68: fsub dword ptr [edi + 4] */ 2183 MEM32(ebp + (-0x60)) = edx; /* 0x36056B6B: mov dword ptr [ebp - 0x60], edx */ 2184 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36056B6E: fld dword ptr [ebp - 0x60] */ 2185 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056B71: fsub dword ptr [edi + 8] */ 2186 fp_push(_st[0]); /* 0x36056B74: fld st(0) */ 2187 _st[0] *= _st[1]; /* 0x36056B76: fmul st(1) */ 2188 fp_push(_st[2]); /* 0x36056B78: fld st(2) */ 2189 _st[0] *= _st[3]; /* 0x36056B7A: fmul st(3) */ 2190 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B7C: faddp st(1) */ 2191 fp_push(_st[3]); /* 0x36056B7E: fld st(3) */ 2192 _st[0] *= _st[4]; /* 0x36056B80: fmul st(4) */ 2193 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B82: faddp st(1) */ 2194 _st[0] = sqrt(_st[0]); /* 0x36056B84: fsqrt */ 2195 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056B86: fstp st(3) */ 2196 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B88: fstp st(0) */ 2197 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B8A: fstp st(0) */ 2198 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056B8C: fcomp qword ptr [0x36170808] */ 2199 fp_pop(); 2200 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056B92: fnstsw ax */ 2201 /* test HI8(eax), 0x41u */ /* 0x36056B94: test ah, 0x41 */ 2202 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2203 _cf = 0; 2204 _flag_k = FK_NARROW(FK_TEST, 24); 2205 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B97: jne 0x36056c03 */ 2206 L_36056B99: 2207 PUSH32(esp, 0x34u); /* 0x36056B99: push 0x34 */ 2208 RECOMP_ICALL(0x3615FD6Au); /* 0x36056B9B: call 0x3615fd6a */ /* not lifted */ 2209 RECOMP_FLAGS_IN(); 2210 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2212 esp = esp + 4; /* 0x36056BA0: add esp, 4 */ 2213 _flag_k = FK_ADD; 2214 MEM32(ebp + (-0x14)) = eax; /* 0x36056BA3: mov dword ptr [ebp - 0x14], eax */ 2215 /* test eax, eax */ /* 0x36056BA6: test eax, eax */ 2216 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2217 _cf = 0; 2218 _flag_k = FK_TEST; 2219 MEM32(ebp + (-0x4)) = 3; /* 0x36056BA8: mov dword ptr [ebp - 4], 3 */ 2220 if (TEST_Z(_flag_a, _flag_b)) goto L_36056BCF; /* 0x36056BAF: je 0x36056bcf */ 2221 L_36056BB1: 2222 ecx = MEM32(esi + 0x10); /* 0x36056BB1: mov ecx, dword ptr [esi + 0x10] */ 2223 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 2224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2225 ebx = ebx + 4; /* 0x36056BB4: add ebx, 4 */ 2226 _flag_k = FK_ADD; 2227 PUSH32(esp, ebx); /* 0x36056BB7: push ebx */ 2228 PUSH32(esp, 0x8Eu); /* 0x36056BB8: push 0x8e */ 2229 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2230 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2231 ecx = ecx + 4; /* 0x36056BBD: add ecx, 4 */ 2232 _flag_k = FK_ADD; 2233 PUSH32(esp, 0x362EA510u); /* 0x36056BC0: push 0x362ea510 */ 2234 PUSH32(esp, ecx); /* 0x36056BC5: push ecx */ 2235 ecx = eax; /* 0x36056BC6: mov ecx, eax */ 2236 RECOMP_ICALL(0x3607D4B0u); /* 0x36056BC8: call 0x3607d4b0 */ /* not lifted */ 2237 RECOMP_FLAGS_IN(); 2238 goto L_36056BD1; /* 0x36056BCD: jmp 0x36056bd1 */ 2239 L_36056BCF: 2240 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2241 eax = 0; /* 0x36056BCF: xor eax, eax */ 2242 _cf = 0; 2243 _flag_k = FK_TEST; 2244 L_36056BD1: 2245 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056BD1: mov dword ptr [ebp - 4], 0xffffffff */ 2246 MEM32(ebp + (-0x24)) = eax; /* 0x36056BD8: mov dword ptr [ebp - 0x24], eax */ 2247 edx = ebp + (-0x24); /* 0x36056BDB: lea edx, [ebp - 0x24] */ 2248 L_36056BDE: 2249 ecx = MEM32(esi + 0x10); /* 0x36056BDE: mov ecx, dword ptr [esi + 0x10] */ 2250 PUSH32(esp, edx); /* 0x36056BE1: push edx */ 2251 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36056BE2: call dword ptr [0x3617004c] */ 2252 RECOMP_FLAGS_IN(); 2253 eax = ebp + (-0x2C); /* 0x36056BE8: lea eax, [ebp - 0x2c] */ 2254 PUSH32(esp, eax); /* 0x36056BEB: push eax */ 2255 ecx = esi; /* 0x36056BEC: mov ecx, esi */ 2256 RECOMP_ICALL(0x36053160u); /* 0x36056BEE: call 0x36053160 */ /* not lifted */ 2257 RECOMP_FLAGS_IN(); 2258 ecx = MEM32(esi + 0x8C); /* 0x36056BF3: mov ecx, dword ptr [esi + 0x8c] */ 2259 edx = MEM32(ecx + 0x4); /* 0x36056BF9: mov edx, dword ptr [ecx + 4] */ 2260 eax = MEM32(edx); /* 0x36056BFC: mov eax, dword ptr [edx] */ 2261 MEM32(ebp + (-0x10)) = eax; /* 0x36056BFE: mov dword ptr [ebp - 0x10], eax */ 2262 goto L_36056C0B; /* 0x36056C01: jmp 0x36056c0b */ 2263 L_36056C03: 2264 ecx = MEM32(ebp + (-0x10)); /* 0x36056C03: mov ecx, dword ptr [ebp - 0x10] */ 2265 edx = MEM32(ecx); /* 0x36056C06: mov edx, dword ptr [ecx] */ 2266 MEM32(ebp + (-0x10)) = edx; /* 0x36056C08: mov dword ptr [ebp - 0x10], edx */ 2267 L_36056C0B: 2268 eax = MEM32(esi + 0x8C); /* 0x36056C0B: mov eax, dword ptr [esi + 0x8c] */ 2269 ecx = MEM32(ebp + (-0x10)); /* 0x36056C11: mov ecx, dword ptr [ebp - 0x10] */ 2270 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x36056C14: cmp ecx, dword ptr [eax + 4] */ 2271 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 2272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2273 _flag_k = FK_CMP; 2274 RECOMP_BACKEDGE(); 2275 if (CMP_NE(_flag_a, _flag_b)) goto L_360567E9; /* 0x36056C17: jne 0x360567e9 */ 2276 L_36056C1D: 2277 edi = POP32_VAL(esp); /* 0x36056C1D: pop edi */ 2278 ebx = POP32_VAL(esp); /* 0x36056C1E: pop ebx */ 2279 ecx = MEM32(ebp + (-0xC)); /* 0x36056C1F: mov ecx, dword ptr [ebp - 0xc] */ 2280 esi = POP32_VAL(esp); /* 0x36056C22: pop esi */ 2281 MEM32(FS_BASE + (0)) = ecx; /* 0x36056C23: mov dword ptr fs:[0], ecx */ 2282 esp = ebp; /* 0x36056C2A: mov esp, ebp */ 2283 ebp = POP32_VAL(esp); /* 0x36056C2C: pop ebp */ 2284 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36056C2D: ret */ 2285 RECOMP_REGS_OUT(); 2286 } 2287 2288 void sub_36056A5F(void) { 2289 int _fpu_cmp = 0; 2290 uint32_t _cf = 0; 2291 int _df = 1; 2292 uint32_t _flag_k = FK_NONE; 2293 uint32_t _flag_a = 0, _flag_b = 0; 2294 uint32_t _itail_tgt = 0; 2295 RECOMP_REGS_LOCALS 2296 RECOMP_ENTER(0x36056A5Fu); 2297 2298 goto L_36056A5F; 2299 L_360567E9: 2300 ecx = MEM32(ebp + (-0x10)); /* 0x360567E9: mov ecx, dword ptr [ebp - 0x10] */ 2301 eax = ecx + 0x8; /* 0x360567EC: lea eax, [ecx + 8] */ 2302 ecx = ebp + (-0x2C); /* 0x360567EF: lea ecx, [ebp - 0x2c] */ 2303 /* cmp ecx, eax */ /* 0x360567F2: cmp ecx, eax */ 2304 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2306 _flag_k = FK_CMP; 2307 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056801; /* 0x360567F4: je 0x36056801 */ 2308 L_360567F6: 2309 edx = MEM32(eax); /* 0x360567F6: mov edx, dword ptr [eax] */ 2310 MEM32(ebp + (-0x2C)) = edx; /* 0x360567F8: mov dword ptr [ebp - 0x2c], edx */ 2311 eax = MEM32(eax + 0x4); /* 0x360567FB: mov eax, dword ptr [eax + 4] */ 2312 MEM32(ebp + (-0x28)) = eax; /* 0x360567FE: mov dword ptr [ebp - 0x28], eax */ 2313 L_36056801: 2314 PUSH32(esp, 0); /* 0x36056801: push 0 */ 2315 PUSH32(esp, 0x361B5C10u); /* 0x36056803: push 0x361b5c10 */ 2316 PUSH32(esp, 0x361B2CC0u); /* 0x36056808: push 0x361b2cc0 */ 2317 ecx = ebp + (-0x2C); /* 0x3605680D: lea ecx, [ebp - 0x2c] */ 2318 PUSH32(esp, 0); /* 0x36056810: push 0 */ 2319 PUSH32(esp, ecx); /* 0x36056812: push ecx */ 2320 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056813: call dword ptr [0x3616ff70] */ 2321 RECOMP_FLAGS_IN(); 2322 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2324 esp = esp + 4; /* 0x36056819: add esp, 4 */ 2325 _flag_k = FK_ADD; 2326 PUSH32(esp, eax); /* 0x3605681C: push eax */ 2327 RECOMP_ICALL(0x3615FD86u); /* 0x3605681D: call 0x3615fd86 */ /* not lifted */ 2328 RECOMP_FLAGS_IN(); 2329 edi = eax; /* 0x36056822: mov edi, eax */ 2330 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2331 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2332 esp = esp + 0x14u; /* 0x36056824: add esp, 0x14 */ 2333 _flag_k = FK_ADD; 2334 /* test edi, edi */ /* 0x36056827: test edi, edi */ 2335 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2336 _cf = 0; 2337 _flag_k = FK_TEST; 2338 if (TEST_Z(_flag_a, _flag_b)) goto L_360568FD; /* 0x36056829: je 0x360568fd */ 2339 L_3605682F: 2340 eax = MEM32(esi + 0x10); /* 0x3605682F: mov eax, dword ptr [esi + 0x10] */ 2341 edx = MEM32(edi + 0x11C); /* 0x36056832: mov edx, dword ptr [edi + 0x11c] */ 2342 ecx = MEM32(eax + 0x8); /* 0x36056838: mov ecx, dword ptr [eax + 8] */ 2343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2345 eax = eax + 4; /* 0x3605683B: add eax, 4 */ 2346 _flag_k = FK_ADD; 2347 /* cmp edx, ecx */ /* 0x3605683E: cmp edx, ecx */ 2348 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2350 _flag_k = FK_CMP; 2351 if (CMP_NE(_flag_a, _flag_b)) goto L_36056850; /* 0x36056840: jne 0x36056850 */ 2352 L_36056842: 2353 ecx = MEM32(edi + 0x118); /* 0x36056842: mov ecx, dword ptr [edi + 0x118] */ 2354 /* cmp ecx, MEM32(eax) */ /* 0x36056848: cmp ecx, dword ptr [eax] */ 2355 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 2356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2357 _flag_k = FK_CMP; 2358 if (CMP_EQ(_flag_a, _flag_b)) goto L_360568FD; /* 0x3605684A: je 0x360568fd */ 2359 L_36056850: 2360 ebx = MEM32(0x3616FFB0); /* 0x36056850: mov ebx, dword ptr [0x3616ffb0] */ 2361 ecx = edi + 0x8C; /* 0x36056856: lea ecx, [edi + 0x8c] */ 2362 RECOMP_ICALL(ebx); /* 0x3605685C: call ebx */ 2363 RECOMP_FLAGS_IN(); 2364 ecx = MEM32(esi + 0x10); /* 0x3605685E: mov ecx, dword ptr [esi + 0x10] */ 2365 MEM32(ebp + (-0x14)) = eax; /* 0x36056861: mov dword ptr [ebp - 0x14], eax */ 2366 RECOMP_ICALL(ebx); /* 0x36056864: call ebx */ 2367 RECOMP_FLAGS_IN(); 2368 edx = MEM32(eax); /* 0x36056866: mov edx, dword ptr [eax] */ 2369 ecx = MEM32(eax + 0x4); /* 0x36056868: mov ecx, dword ptr [eax + 4] */ 2370 MEM32(ebp + (-0x38)) = edx; /* 0x3605686B: mov dword ptr [ebp - 0x38], edx */ 2371 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3605686E: fld dword ptr [ebp - 0x38] */ 2372 edx = MEM32(eax + 0x8); /* 0x36056871: mov edx, dword ptr [eax + 8] */ 2373 eax = MEM32(ebp + (-0x14)); /* 0x36056874: mov eax, dword ptr [ebp - 0x14] */ 2374 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36056877: fsub dword ptr [eax] */ 2375 MEM32(ebp + (-0x34)) = ecx; /* 0x36056879: mov dword ptr [ebp - 0x34], ecx */ 2376 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3605687C: fld dword ptr [ebp - 0x34] */ 2377 MEM32(ebp + (-0x30)) = edx; /* 0x3605687F: mov dword ptr [ebp - 0x30], edx */ 2378 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x36056882: fsub dword ptr [eax + 4] */ 2379 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36056885: fld dword ptr [ebp - 0x30] */ 2380 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x36056888: fsub dword ptr [eax + 8] */ 2381 fp_push(_st[0]); /* 0x3605688B: fld st(0) */ 2382 _st[0] *= _st[1]; /* 0x3605688D: fmul st(1) */ 2383 fp_push(_st[2]); /* 0x3605688F: fld st(2) */ 2384 _st[0] *= _st[3]; /* 0x36056891: fmul st(3) */ 2385 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056893: faddp st(1) */ 2386 fp_push(_st[3]); /* 0x36056895: fld st(3) */ 2387 _st[0] *= _st[4]; /* 0x36056897: fmul st(4) */ 2388 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056899: faddp st(1) */ 2389 _st[0] = sqrt(_st[0]); /* 0x3605689B: fsqrt */ 2390 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605689D: fstp st(3) */ 2391 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605689F: fstp st(0) */ 2392 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360568A1: fstp st(0) */ 2393 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x360568A3: fcomp qword ptr [0x36170808] */ 2394 fp_pop(); 2395 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360568A9: fnstsw ax */ 2396 /* test HI8(eax), 0x41u */ /* 0x360568AB: test ah, 0x41 */ 2397 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2398 _cf = 0; 2399 _flag_k = FK_NARROW(FK_TEST, 24); 2400 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056903; /* 0x360568AE: jne 0x36056903 */ 2401 L_360568B0: 2402 PUSH32(esp, 0x34u); /* 0x360568B0: push 0x34 */ 2403 RECOMP_ICALL(0x3615FD6Au); /* 0x360568B2: call 0x3615fd6a */ /* not lifted */ 2404 RECOMP_FLAGS_IN(); 2405 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2407 esp = esp + 4; /* 0x360568B7: add esp, 4 */ 2408 _flag_k = FK_ADD; 2409 MEM32(ebp + (-0x14)) = eax; /* 0x360568BA: mov dword ptr [ebp - 0x14], eax */ 2410 /* test eax, eax */ /* 0x360568BD: test eax, eax */ 2411 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2412 _cf = 0; 2413 _flag_k = FK_TEST; 2414 MEM32(ebp + (-0x4)) = 0; /* 0x360568BF: mov dword ptr [ebp - 4], 0 */ 2415 if (TEST_Z(_flag_a, _flag_b)) goto L_360568E9; /* 0x360568C6: je 0x360568e9 */ 2416 L_360568C8: 2417 ecx = MEM32(esi + 0x10); /* 0x360568C8: mov ecx, dword ptr [esi + 0x10] */ 2418 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x90u); 2419 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2420 edi = edi + 0x90u; /* 0x360568CB: add edi, 0x90 */ 2421 _flag_k = FK_ADD; 2422 PUSH32(esp, edi); /* 0x360568D1: push edi */ 2423 PUSH32(esp, 0x8Eu); /* 0x360568D2: push 0x8e */ 2424 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2425 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2426 ecx = ecx + 4; /* 0x360568D7: add ecx, 4 */ 2427 _flag_k = FK_ADD; 2428 PUSH32(esp, 0x362EA510u); /* 0x360568DA: push 0x362ea510 */ 2429 PUSH32(esp, ecx); /* 0x360568DF: push ecx */ 2430 ecx = eax; /* 0x360568E0: mov ecx, eax */ 2431 RECOMP_ICALL(0x3607D4B0u); /* 0x360568E2: call 0x3607d4b0 */ /* not lifted */ 2432 RECOMP_FLAGS_IN(); 2433 goto L_360568EB; /* 0x360568E7: jmp 0x360568eb */ 2434 L_360568E9: 2435 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2436 eax = 0; /* 0x360568E9: xor eax, eax */ 2437 _cf = 0; 2438 _flag_k = FK_TEST; 2439 L_360568EB: 2440 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360568EB: mov dword ptr [ebp - 4], 0xffffffff */ 2441 MEM32(ebp + (-0x18)) = eax; /* 0x360568F2: mov dword ptr [ebp - 0x18], eax */ 2442 edx = ebp + (-0x18); /* 0x360568F5: lea edx, [ebp - 0x18] */ 2443 goto L_36056BDE; /* 0x360568F8: jmp 0x36056bde */ 2444 L_360568FD: 2445 ebx = MEM32(0x3616FFB0); /* 0x360568FD: mov ebx, dword ptr [0x3616ffb0] */ 2446 L_36056903: 2447 /* cmp MEM32(ebp + (-0x2C)), 0xC350u */ /* 0x36056903: cmp dword ptr [ebp - 0x2c], 0xc350 */ 2448 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xC350u); 2449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2450 _flag_k = FK_CMP; 2451 if (CMP_NE(_flag_a, _flag_b)) goto L_360569B4; /* 0x3605690A: jne 0x360569b4 */ 2452 L_36056910: 2453 PUSH32(esp, 0); /* 0x36056910: push 0 */ 2454 PUSH32(esp, 0x361B2CD8u); /* 0x36056912: push 0x361b2cd8 */ 2455 PUSH32(esp, 0x361B2CC0u); /* 0x36056917: push 0x361b2cc0 */ 2456 ecx = ebp + (-0x2C); /* 0x3605691C: lea ecx, [ebp - 0x2c] */ 2457 PUSH32(esp, 0); /* 0x3605691F: push 0 */ 2458 PUSH32(esp, ecx); /* 0x36056921: push ecx */ 2459 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056922: call dword ptr [0x3616ff70] */ 2460 RECOMP_FLAGS_IN(); 2461 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2462 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2463 esp = esp + 4; /* 0x36056928: add esp, 4 */ 2464 _flag_k = FK_ADD; 2465 PUSH32(esp, eax); /* 0x3605692B: push eax */ 2466 RECOMP_ICALL(0x3615FD86u); /* 0x3605692C: call 0x3615fd86 */ /* not lifted */ 2467 RECOMP_FLAGS_IN(); 2468 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2469 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2470 esp = esp + 0x14u; /* 0x36056931: add esp, 0x14 */ 2471 _flag_k = FK_ADD; 2472 /* test eax, eax */ /* 0x36056934: test eax, eax */ 2473 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2474 _cf = 0; 2475 _flag_k = FK_TEST; 2476 MEM32(ebp + (-0x14)) = eax; /* 0x36056936: mov dword ptr [ebp - 0x14], eax */ 2477 if (TEST_Z(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056939: je 0x360569b4 */ 2478 L_3605693B: 2479 ecx = eax; /* 0x3605693B: mov ecx, eax */ 2480 RECOMP_ICALL(ebx); /* 0x3605693D: call ebx */ 2481 RECOMP_FLAGS_IN(); 2482 ecx = MEM32(esi + 0x10); /* 0x3605693F: mov ecx, dword ptr [esi + 0x10] */ 2483 edi = eax; /* 0x36056942: mov edi, eax */ 2484 RECOMP_ICALL(ebx); /* 0x36056944: call ebx */ 2485 RECOMP_FLAGS_IN(); 2486 edx = MEM32(eax); /* 0x36056946: mov edx, dword ptr [eax] */ 2487 ecx = MEM32(eax + 0x4); /* 0x36056948: mov ecx, dword ptr [eax + 4] */ 2488 MEM32(ebp + (-0x44)) = edx; /* 0x3605694B: mov dword ptr [ebp - 0x44], edx */ 2489 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3605694E: fld dword ptr [ebp - 0x44] */ 2490 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056951: fsub dword ptr [edi] */ 2491 edx = MEM32(eax + 0x8); /* 0x36056953: mov edx, dword ptr [eax + 8] */ 2492 MEM32(ebp + (-0x40)) = ecx; /* 0x36056956: mov dword ptr [ebp - 0x40], ecx */ 2493 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36056959: fld dword ptr [ebp - 0x40] */ 2494 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3605695C: fsub dword ptr [edi + 4] */ 2495 MEM32(ebp + (-0x3C)) = edx; /* 0x3605695F: mov dword ptr [ebp - 0x3c], edx */ 2496 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36056962: fld dword ptr [ebp - 0x3c] */ 2497 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056965: fsub dword ptr [edi + 8] */ 2498 fp_push(_st[0]); /* 0x36056968: fld st(0) */ 2499 _st[0] *= _st[1]; /* 0x3605696A: fmul st(1) */ 2500 fp_push(_st[2]); /* 0x3605696C: fld st(2) */ 2501 _st[0] *= _st[3]; /* 0x3605696E: fmul st(3) */ 2502 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056970: faddp st(1) */ 2503 fp_push(_st[3]); /* 0x36056972: fld st(3) */ 2504 _st[0] *= _st[4]; /* 0x36056974: fmul st(4) */ 2505 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056976: faddp st(1) */ 2506 _st[0] = sqrt(_st[0]); /* 0x36056978: fsqrt */ 2507 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605697A: fstp st(3) */ 2508 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697C: fstp st(0) */ 2509 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697E: fstp st(0) */ 2510 RECOMP_ICALL(0x3615FD8Cu); /* 0x36056980: call 0x3615fd8c */ /* not lifted */ 2511 RECOMP_FLAGS_IN(); 2512 /* cmp eax, 2 */ /* 0x36056985: cmp eax, 2 */ 2513 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2515 _flag_k = FK_CMP; 2516 if (CMP_G(_flag_a, _flag_b)) goto L_36056996; /* 0x36056988: jg 0x36056996 */ 2517 L_3605698A: 2518 eax = MEM32(ebp + (-0x14)); /* 0x3605698A: mov eax, dword ptr [ebp - 0x14] */ 2519 /* test MEM8(eax + 0x11C), 0x10u */ /* 0x3605698D: test byte ptr [eax + 0x11c], 0x10 */ 2520 _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 2521 _cf = 0; 2522 _flag_k = FK_NARROW(FK_TEST, 24); 2523 if (TEST_NZ(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056994: jne 0x360569b4 */ 2524 L_36056996: 2525 ecx = ebp + (-0x2C); /* 0x36056996: lea ecx, [ebp - 0x2c] */ 2526 PUSH32(esp, ecx); /* 0x36056999: push ecx */ 2527 ecx = esi; /* 0x3605699A: mov ecx, esi */ 2528 RECOMP_ICALL(0x36053160u); /* 0x3605699C: call 0x36053160 */ /* not lifted */ 2529 RECOMP_FLAGS_IN(); 2530 edx = MEM32(esi + 0x8C); /* 0x360569A1: mov edx, dword ptr [esi + 0x8c] */ 2531 eax = MEM32(edx + 0x4); /* 0x360569A7: mov eax, dword ptr [edx + 4] */ 2532 ecx = MEM32(eax); /* 0x360569AA: mov ecx, dword ptr [eax] */ 2533 MEM32(ebp + (-0x10)) = ecx; /* 0x360569AC: mov dword ptr [ebp - 0x10], ecx */ 2534 goto L_36056C0B; /* 0x360569AF: jmp 0x36056c0b */ 2535 L_360569B4: 2536 /* cmp MEM32(ebp + (-0x2C)), 0xDEADu */ /* 0x360569B4: cmp dword ptr [ebp - 0x2c], 0xdead */ 2537 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEADu); 2538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2539 _flag_k = FK_CMP; 2540 if (CMP_NE(_flag_a, _flag_b)) goto L_36056A5F; /* 0x360569BB: jne 0x36056a5f */ 2541 L_360569C1: 2542 ecx = MEM32(esi + 0x10); /* 0x360569C1: mov ecx, dword ptr [esi + 0x10] */ 2543 RECOMP_ICALL(ebx); /* 0x360569C4: call ebx */ 2544 RECOMP_FLAGS_IN(); 2545 edx = MEM32(eax); /* 0x360569C6: mov edx, dword ptr [eax] */ 2546 ecx = MEM32(eax + 0x4); /* 0x360569C8: mov ecx, dword ptr [eax + 4] */ 2547 MEM32(ebp + (-0x50)) = edx; /* 0x360569CB: mov dword ptr [ebp - 0x50], edx */ 2548 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x360569CE: fld dword ptr [ebp - 0x50] */ 2549 _st[0] -= (double)*(float*)ADDR(esi + 0x9C); /* 0x360569D1: fsub dword ptr [esi + 0x9c] */ 2550 edx = MEM32(eax + 0x8); /* 0x360569D7: mov edx, dword ptr [eax + 8] */ 2551 MEM32(ebp + (-0x4C)) = ecx; /* 0x360569DA: mov dword ptr [ebp - 0x4c], ecx */ 2552 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x360569DD: fld dword ptr [ebp - 0x4c] */ 2553 _st[0] -= (double)*(float*)ADDR(esi + 0xA0); /* 0x360569E0: fsub dword ptr [esi + 0xa0] */ 2554 MEM32(ebp + (-0x48)) = edx; /* 0x360569E6: mov dword ptr [ebp - 0x48], edx */ 2555 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x360569E9: fld dword ptr [ebp - 0x48] */ 2556 _st[0] -= (double)*(float*)ADDR(esi + 0xA4); /* 0x360569EC: fsub dword ptr [esi + 0xa4] */ 2557 fp_push(_st[0]); /* 0x360569F2: fld st(0) */ 2558 _st[0] *= _st[1]; /* 0x360569F4: fmul st(1) */ 2559 fp_push(_st[2]); /* 0x360569F6: fld st(2) */ 2560 _st[0] *= _st[3]; /* 0x360569F8: fmul st(3) */ 2561 { double _v = fp_pop(); _st[0] += _v; } /* 0x360569FA: faddp st(1) */ 2562 fp_push(_st[3]); /* 0x360569FC: fld st(3) */ 2563 _st[0] *= _st[4]; /* 0x360569FE: fmul st(4) */ 2564 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056A00: faddp st(1) */ 2565 _st[0] = sqrt(_st[0]); /* 0x36056A02: fsqrt */ 2566 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056A04: fstp st(3) */ 2567 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A06: fstp st(0) */ 2568 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A08: fstp st(0) */ 2569 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056A0A: fcomp qword ptr [0x36170808] */ 2570 fp_pop(); 2571 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056A10: fnstsw ax */ 2572 /* test HI8(eax), 0x41u */ /* 0x36056A12: test ah, 0x41 */ 2573 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2574 _cf = 0; 2575 _flag_k = FK_NARROW(FK_TEST, 24); 2576 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056A5F; /* 0x36056A15: jne 0x36056a5f */ 2577 L_36056A17: 2578 PUSH32(esp, 0x34u); /* 0x36056A17: push 0x34 */ 2579 RECOMP_ICALL(0x3615FD6Au); /* 0x36056A19: call 0x3615fd6a */ /* not lifted */ 2580 RECOMP_FLAGS_IN(); 2581 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2582 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2583 esp = esp + 4; /* 0x36056A1E: add esp, 4 */ 2584 _flag_k = FK_ADD; 2585 MEM32(ebp + (-0x14)) = eax; /* 0x36056A21: mov dword ptr [ebp - 0x14], eax */ 2586 /* test eax, eax */ /* 0x36056A24: test eax, eax */ 2587 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2588 _cf = 0; 2589 _flag_k = FK_TEST; 2590 MEM32(ebp + (-0x4)) = 1; /* 0x36056A26: mov dword ptr [ebp - 4], 1 */ 2591 if (TEST_Z(_flag_a, _flag_b)) goto L_36056A4B; /* 0x36056A2D: je 0x36056a4b */ 2592 L_36056A2F: 2593 ecx = MEM32(esi + 0x10); /* 0x36056A2F: mov ecx, dword ptr [esi + 0x10] */ 2594 PUSH32(esp, 0x362EA510u); /* 0x36056A32: push 0x362ea510 */ 2595 PUSH32(esp, 0x6Au); /* 0x36056A37: push 0x6a */ 2596 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2597 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2598 ecx = ecx + 4; /* 0x36056A39: add ecx, 4 */ 2599 _flag_k = FK_ADD; 2600 PUSH32(esp, 0x362EA510u); /* 0x36056A3C: push 0x362ea510 */ 2601 PUSH32(esp, ecx); /* 0x36056A41: push ecx */ 2602 ecx = eax; /* 0x36056A42: mov ecx, eax */ 2603 RECOMP_ICALL(0x3607D4B0u); /* 0x36056A44: call 0x3607d4b0 */ /* not lifted */ 2604 RECOMP_FLAGS_IN(); 2605 goto L_36056A4D; /* 0x36056A49: jmp 0x36056a4d */ 2606 L_36056A4B: 2607 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2608 eax = 0; /* 0x36056A4B: xor eax, eax */ 2609 _cf = 0; 2610 _flag_k = FK_TEST; 2611 L_36056A4D: 2612 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056A4D: mov dword ptr [ebp - 4], 0xffffffff */ 2613 MEM32(ebp + (-0x1C)) = eax; /* 0x36056A54: mov dword ptr [ebp - 0x1c], eax */ 2614 edx = ebp + (-0x1C); /* 0x36056A57: lea edx, [ebp - 0x1c] */ 2615 goto L_36056BDE; /* 0x36056A5A: jmp 0x36056bde */ 2616 L_36056A5F: 2617 /* cmp MEM32(ebp + (-0x2C)), 0xDEAEu */ /* 0x36056A5F: cmp dword ptr [ebp - 0x2c], 0xdeae */ 2618 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEAEu); 2619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2620 _flag_k = FK_CMP; 2621 if (CMP_NE(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056A66: jne 0x36056c03 */ 2622 L_36056A6C: 2623 edi = MEM32(0x3616FF70); /* 0x36056A6C: mov edi, dword ptr [0x3616ff70] */ 2624 ecx = esi + 0x78; /* 0x36056A72: lea ecx, [esi + 0x78] */ 2625 PUSH32(esp, ecx); /* 0x36056A75: push ecx */ 2626 RECOMP_ICALL(edi); /* 0x36056A76: call edi */ 2627 RECOMP_FLAGS_IN(); 2628 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2629 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2630 esp = esp + 4; /* 0x36056A78: add esp, 4 */ 2631 _flag_k = FK_ADD; 2632 /* test eax, eax */ /* 0x36056A7B: test eax, eax */ 2633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2634 _cf = 0; 2635 _flag_k = FK_TEST; 2636 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B21; /* 0x36056A7D: je 0x36056b21 */ 2637 L_36056A83: 2638 ecx = eax; /* 0x36056A83: mov ecx, eax */ 2639 RECOMP_ICALL(ebx); /* 0x36056A85: call ebx */ 2640 RECOMP_FLAGS_IN(); 2641 ecx = MEM32(esi + 0x10); /* 0x36056A87: mov ecx, dword ptr [esi + 0x10] */ 2642 edi = eax; /* 0x36056A8A: mov edi, eax */ 2643 RECOMP_ICALL(ebx); /* 0x36056A8C: call ebx */ 2644 RECOMP_FLAGS_IN(); 2645 edx = MEM32(eax); /* 0x36056A8E: mov edx, dword ptr [eax] */ 2646 ecx = MEM32(eax + 0x4); /* 0x36056A90: mov ecx, dword ptr [eax + 4] */ 2647 MEM32(ebp + (-0x5C)) = edx; /* 0x36056A93: mov dword ptr [ebp - 0x5c], edx */ 2648 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36056A96: fld dword ptr [ebp - 0x5c] */ 2649 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056A99: fsub dword ptr [edi] */ 2650 edx = MEM32(eax + 0x8); /* 0x36056A9B: mov edx, dword ptr [eax + 8] */ 2651 MEM32(ebp + (-0x58)) = ecx; /* 0x36056A9E: mov dword ptr [ebp - 0x58], ecx */ 2652 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36056AA1: fld dword ptr [ebp - 0x58] */ 2653 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056AA4: fsub dword ptr [edi + 4] */ 2654 MEM32(ebp + (-0x54)) = edx; /* 0x36056AA7: mov dword ptr [ebp - 0x54], edx */ 2655 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36056AAA: fld dword ptr [ebp - 0x54] */ 2656 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056AAD: fsub dword ptr [edi + 8] */ 2657 fp_push(_st[0]); /* 0x36056AB0: fld st(0) */ 2658 _st[0] *= _st[1]; /* 0x36056AB2: fmul st(1) */ 2659 fp_push(_st[2]); /* 0x36056AB4: fld st(2) */ 2660 _st[0] *= _st[3]; /* 0x36056AB6: fmul st(3) */ 2661 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056AB8: faddp st(1) */ 2662 fp_push(_st[3]); /* 0x36056ABA: fld st(3) */ 2663 _st[0] *= _st[4]; /* 0x36056ABC: fmul st(4) */ 2664 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056ABE: faddp st(1) */ 2665 _st[0] = sqrt(_st[0]); /* 0x36056AC0: fsqrt */ 2666 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056AC2: fstp st(3) */ 2667 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC4: fstp st(0) */ 2668 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC6: fstp st(0) */ 2669 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056AC8: fcomp qword ptr [0x36170808] */ 2670 fp_pop(); 2671 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056ACE: fnstsw ax */ 2672 /* test HI8(eax), 0x41u */ /* 0x36056AD0: test ah, 0x41 */ 2673 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2674 _cf = 0; 2675 _flag_k = FK_NARROW(FK_TEST, 24); 2676 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056AD3: jne 0x36056c03 */ 2677 L_36056AD9: 2678 PUSH32(esp, 0x34u); /* 0x36056AD9: push 0x34 */ 2679 RECOMP_ICALL(0x3615FD6Au); /* 0x36056ADB: call 0x3615fd6a */ /* not lifted */ 2680 RECOMP_FLAGS_IN(); 2681 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2682 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2683 esp = esp + 4; /* 0x36056AE0: add esp, 4 */ 2684 _flag_k = FK_ADD; 2685 MEM32(ebp + (-0x14)) = eax; /* 0x36056AE3: mov dword ptr [ebp - 0x14], eax */ 2686 /* test eax, eax */ /* 0x36056AE6: test eax, eax */ 2687 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2688 _cf = 0; 2689 _flag_k = FK_TEST; 2690 MEM32(ebp + (-0x4)) = 2; /* 0x36056AE8: mov dword ptr [ebp - 4], 2 */ 2691 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B0D; /* 0x36056AEF: je 0x36056b0d */ 2692 L_36056AF1: 2693 ecx = MEM32(esi + 0x10); /* 0x36056AF1: mov ecx, dword ptr [esi + 0x10] */ 2694 PUSH32(esp, 0x362EA510u); /* 0x36056AF4: push 0x362ea510 */ 2695 PUSH32(esp, 0x6Eu); /* 0x36056AF9: push 0x6e */ 2696 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2697 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2698 ecx = ecx + 4; /* 0x36056AFB: add ecx, 4 */ 2699 _flag_k = FK_ADD; 2700 PUSH32(esp, 0x362EA510u); /* 0x36056AFE: push 0x362ea510 */ 2701 PUSH32(esp, ecx); /* 0x36056B03: push ecx */ 2702 ecx = eax; /* 0x36056B04: mov ecx, eax */ 2703 RECOMP_ICALL(0x3607D4B0u); /* 0x36056B06: call 0x3607d4b0 */ /* not lifted */ 2704 RECOMP_FLAGS_IN(); 2705 goto L_36056B0F; /* 0x36056B0B: jmp 0x36056b0f */ 2706 L_36056B0D: 2707 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2708 eax = 0; /* 0x36056B0D: xor eax, eax */ 2709 _cf = 0; 2710 _flag_k = FK_TEST; 2711 L_36056B0F: 2712 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056B0F: mov dword ptr [ebp - 4], 0xffffffff */ 2713 MEM32(ebp + (-0x20)) = eax; /* 0x36056B16: mov dword ptr [ebp - 0x20], eax */ 2714 edx = ebp + (-0x20); /* 0x36056B19: lea edx, [ebp - 0x20] */ 2715 goto L_36056BDE; /* 0x36056B1C: jmp 0x36056bde */ 2716 L_36056B21: 2717 ecx = MEM32(esi + 0x10); /* 0x36056B21: mov ecx, dword ptr [esi + 0x10] */ 2718 eax = MEM32(ecx + 0x150); /* 0x36056B24: mov eax, dword ptr [ecx + 0x150] */ 2719 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 2720 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2721 eax = eax + 0xE4u; /* 0x36056B2A: add eax, 0xe4 */ 2722 _flag_k = FK_ADD; 2723 PUSH32(esp, eax); /* 0x36056B2F: push eax */ 2724 RECOMP_ICALL(edi); /* 0x36056B30: call edi */ 2725 RECOMP_FLAGS_IN(); 2726 ebx = eax; /* 0x36056B32: mov ebx, eax */ 2727 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2728 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2729 esp = esp + 4; /* 0x36056B34: add esp, 4 */ 2730 _flag_k = FK_ADD; 2731 /* test ebx, ebx */ /* 0x36056B37: test ebx, ebx */ 2732 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2733 _cf = 0; 2734 _flag_k = FK_TEST; 2735 if (TEST_Z(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B39: je 0x36056c03 */ 2736 L_36056B3F: 2737 ecx = ebx; /* 0x36056B3F: mov ecx, ebx */ 2738 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B41: call dword ptr [0x3616ffb0] */ 2739 RECOMP_FLAGS_IN(); 2740 ecx = MEM32(esi + 0x10); /* 0x36056B47: mov ecx, dword ptr [esi + 0x10] */ 2741 edi = eax; /* 0x36056B4A: mov edi, eax */ 2742 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B4C: call dword ptr [0x3616ffb0] */ 2743 RECOMP_FLAGS_IN(); 2744 edx = MEM32(eax); /* 0x36056B52: mov edx, dword ptr [eax] */ 2745 ecx = MEM32(eax + 0x4); /* 0x36056B54: mov ecx, dword ptr [eax + 4] */ 2746 MEM32(ebp + (-0x68)) = edx; /* 0x36056B57: mov dword ptr [ebp - 0x68], edx */ 2747 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36056B5A: fld dword ptr [ebp - 0x68] */ 2748 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056B5D: fsub dword ptr [edi] */ 2749 edx = MEM32(eax + 0x8); /* 0x36056B5F: mov edx, dword ptr [eax + 8] */ 2750 MEM32(ebp + (-0x64)) = ecx; /* 0x36056B62: mov dword ptr [ebp - 0x64], ecx */ 2751 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36056B65: fld dword ptr [ebp - 0x64] */ 2752 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056B68: fsub dword ptr [edi + 4] */ 2753 MEM32(ebp + (-0x60)) = edx; /* 0x36056B6B: mov dword ptr [ebp - 0x60], edx */ 2754 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36056B6E: fld dword ptr [ebp - 0x60] */ 2755 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056B71: fsub dword ptr [edi + 8] */ 2756 fp_push(_st[0]); /* 0x36056B74: fld st(0) */ 2757 _st[0] *= _st[1]; /* 0x36056B76: fmul st(1) */ 2758 fp_push(_st[2]); /* 0x36056B78: fld st(2) */ 2759 _st[0] *= _st[3]; /* 0x36056B7A: fmul st(3) */ 2760 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B7C: faddp st(1) */ 2761 fp_push(_st[3]); /* 0x36056B7E: fld st(3) */ 2762 _st[0] *= _st[4]; /* 0x36056B80: fmul st(4) */ 2763 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B82: faddp st(1) */ 2764 _st[0] = sqrt(_st[0]); /* 0x36056B84: fsqrt */ 2765 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056B86: fstp st(3) */ 2766 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B88: fstp st(0) */ 2767 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B8A: fstp st(0) */ 2768 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056B8C: fcomp qword ptr [0x36170808] */ 2769 fp_pop(); 2770 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056B92: fnstsw ax */ 2771 /* test HI8(eax), 0x41u */ /* 0x36056B94: test ah, 0x41 */ 2772 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2773 _cf = 0; 2774 _flag_k = FK_NARROW(FK_TEST, 24); 2775 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B97: jne 0x36056c03 */ 2776 L_36056B99: 2777 PUSH32(esp, 0x34u); /* 0x36056B99: push 0x34 */ 2778 RECOMP_ICALL(0x3615FD6Au); /* 0x36056B9B: call 0x3615fd6a */ /* not lifted */ 2779 RECOMP_FLAGS_IN(); 2780 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2782 esp = esp + 4; /* 0x36056BA0: add esp, 4 */ 2783 _flag_k = FK_ADD; 2784 MEM32(ebp + (-0x14)) = eax; /* 0x36056BA3: mov dword ptr [ebp - 0x14], eax */ 2785 /* test eax, eax */ /* 0x36056BA6: test eax, eax */ 2786 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2787 _cf = 0; 2788 _flag_k = FK_TEST; 2789 MEM32(ebp + (-0x4)) = 3; /* 0x36056BA8: mov dword ptr [ebp - 4], 3 */ 2790 if (TEST_Z(_flag_a, _flag_b)) goto L_36056BCF; /* 0x36056BAF: je 0x36056bcf */ 2791 L_36056BB1: 2792 ecx = MEM32(esi + 0x10); /* 0x36056BB1: mov ecx, dword ptr [esi + 0x10] */ 2793 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 2794 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2795 ebx = ebx + 4; /* 0x36056BB4: add ebx, 4 */ 2796 _flag_k = FK_ADD; 2797 PUSH32(esp, ebx); /* 0x36056BB7: push ebx */ 2798 PUSH32(esp, 0x8Eu); /* 0x36056BB8: push 0x8e */ 2799 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2800 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2801 ecx = ecx + 4; /* 0x36056BBD: add ecx, 4 */ 2802 _flag_k = FK_ADD; 2803 PUSH32(esp, 0x362EA510u); /* 0x36056BC0: push 0x362ea510 */ 2804 PUSH32(esp, ecx); /* 0x36056BC5: push ecx */ 2805 ecx = eax; /* 0x36056BC6: mov ecx, eax */ 2806 RECOMP_ICALL(0x3607D4B0u); /* 0x36056BC8: call 0x3607d4b0 */ /* not lifted */ 2807 RECOMP_FLAGS_IN(); 2808 goto L_36056BD1; /* 0x36056BCD: jmp 0x36056bd1 */ 2809 L_36056BCF: 2810 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2811 eax = 0; /* 0x36056BCF: xor eax, eax */ 2812 _cf = 0; 2813 _flag_k = FK_TEST; 2814 L_36056BD1: 2815 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056BD1: mov dword ptr [ebp - 4], 0xffffffff */ 2816 MEM32(ebp + (-0x24)) = eax; /* 0x36056BD8: mov dword ptr [ebp - 0x24], eax */ 2817 edx = ebp + (-0x24); /* 0x36056BDB: lea edx, [ebp - 0x24] */ 2818 L_36056BDE: 2819 ecx = MEM32(esi + 0x10); /* 0x36056BDE: mov ecx, dword ptr [esi + 0x10] */ 2820 PUSH32(esp, edx); /* 0x36056BE1: push edx */ 2821 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36056BE2: call dword ptr [0x3617004c] */ 2822 RECOMP_FLAGS_IN(); 2823 eax = ebp + (-0x2C); /* 0x36056BE8: lea eax, [ebp - 0x2c] */ 2824 PUSH32(esp, eax); /* 0x36056BEB: push eax */ 2825 ecx = esi; /* 0x36056BEC: mov ecx, esi */ 2826 RECOMP_ICALL(0x36053160u); /* 0x36056BEE: call 0x36053160 */ /* not lifted */ 2827 RECOMP_FLAGS_IN(); 2828 ecx = MEM32(esi + 0x8C); /* 0x36056BF3: mov ecx, dword ptr [esi + 0x8c] */ 2829 edx = MEM32(ecx + 0x4); /* 0x36056BF9: mov edx, dword ptr [ecx + 4] */ 2830 eax = MEM32(edx); /* 0x36056BFC: mov eax, dword ptr [edx] */ 2831 MEM32(ebp + (-0x10)) = eax; /* 0x36056BFE: mov dword ptr [ebp - 0x10], eax */ 2832 goto L_36056C0B; /* 0x36056C01: jmp 0x36056c0b */ 2833 L_36056C03: 2834 ecx = MEM32(ebp + (-0x10)); /* 0x36056C03: mov ecx, dword ptr [ebp - 0x10] */ 2835 edx = MEM32(ecx); /* 0x36056C06: mov edx, dword ptr [ecx] */ 2836 MEM32(ebp + (-0x10)) = edx; /* 0x36056C08: mov dword ptr [ebp - 0x10], edx */ 2837 L_36056C0B: 2838 eax = MEM32(esi + 0x8C); /* 0x36056C0B: mov eax, dword ptr [esi + 0x8c] */ 2839 ecx = MEM32(ebp + (-0x10)); /* 0x36056C11: mov ecx, dword ptr [ebp - 0x10] */ 2840 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x36056C14: cmp ecx, dword ptr [eax + 4] */ 2841 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 2842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2843 _flag_k = FK_CMP; 2844 RECOMP_BACKEDGE(); 2845 if (CMP_NE(_flag_a, _flag_b)) goto L_360567E9; /* 0x36056C17: jne 0x360567e9 */ 2846 L_36056C1D: 2847 edi = POP32_VAL(esp); /* 0x36056C1D: pop edi */ 2848 ebx = POP32_VAL(esp); /* 0x36056C1E: pop ebx */ 2849 ecx = MEM32(ebp + (-0xC)); /* 0x36056C1F: mov ecx, dword ptr [ebp - 0xc] */ 2850 esi = POP32_VAL(esp); /* 0x36056C22: pop esi */ 2851 MEM32(FS_BASE + (0)) = ecx; /* 0x36056C23: mov dword ptr fs:[0], ecx */ 2852 esp = ebp; /* 0x36056C2A: mov esp, ebp */ 2853 ebp = POP32_VAL(esp); /* 0x36056C2C: pop ebp */ 2854 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36056C2D: ret */ 2855 RECOMP_REGS_OUT(); 2856 } 2857 2858 void sub_36056B0F(void) { 2859 int _fpu_cmp = 0; 2860 uint32_t _cf = 0; 2861 int _df = 1; 2862 uint32_t _flag_k = FK_NONE; 2863 uint32_t _flag_a = 0, _flag_b = 0; 2864 uint32_t _itail_tgt = 0; 2865 RECOMP_REGS_LOCALS 2866 RECOMP_ENTER(0x36056B0Fu); 2867 2868 goto L_36056B0F; 2869 L_360567E9: 2870 ecx = MEM32(ebp + (-0x10)); /* 0x360567E9: mov ecx, dword ptr [ebp - 0x10] */ 2871 eax = ecx + 0x8; /* 0x360567EC: lea eax, [ecx + 8] */ 2872 ecx = ebp + (-0x2C); /* 0x360567EF: lea ecx, [ebp - 0x2c] */ 2873 /* cmp ecx, eax */ /* 0x360567F2: cmp ecx, eax */ 2874 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2876 _flag_k = FK_CMP; 2877 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056801; /* 0x360567F4: je 0x36056801 */ 2878 L_360567F6: 2879 edx = MEM32(eax); /* 0x360567F6: mov edx, dword ptr [eax] */ 2880 MEM32(ebp + (-0x2C)) = edx; /* 0x360567F8: mov dword ptr [ebp - 0x2c], edx */ 2881 eax = MEM32(eax + 0x4); /* 0x360567FB: mov eax, dword ptr [eax + 4] */ 2882 MEM32(ebp + (-0x28)) = eax; /* 0x360567FE: mov dword ptr [ebp - 0x28], eax */ 2883 L_36056801: 2884 PUSH32(esp, 0); /* 0x36056801: push 0 */ 2885 PUSH32(esp, 0x361B5C10u); /* 0x36056803: push 0x361b5c10 */ 2886 PUSH32(esp, 0x361B2CC0u); /* 0x36056808: push 0x361b2cc0 */ 2887 ecx = ebp + (-0x2C); /* 0x3605680D: lea ecx, [ebp - 0x2c] */ 2888 PUSH32(esp, 0); /* 0x36056810: push 0 */ 2889 PUSH32(esp, ecx); /* 0x36056812: push ecx */ 2890 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056813: call dword ptr [0x3616ff70] */ 2891 RECOMP_FLAGS_IN(); 2892 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2893 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2894 esp = esp + 4; /* 0x36056819: add esp, 4 */ 2895 _flag_k = FK_ADD; 2896 PUSH32(esp, eax); /* 0x3605681C: push eax */ 2897 RECOMP_ICALL(0x3615FD86u); /* 0x3605681D: call 0x3615fd86 */ /* not lifted */ 2898 RECOMP_FLAGS_IN(); 2899 edi = eax; /* 0x36056822: mov edi, eax */ 2900 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2901 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2902 esp = esp + 0x14u; /* 0x36056824: add esp, 0x14 */ 2903 _flag_k = FK_ADD; 2904 /* test edi, edi */ /* 0x36056827: test edi, edi */ 2905 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2906 _cf = 0; 2907 _flag_k = FK_TEST; 2908 if (TEST_Z(_flag_a, _flag_b)) goto L_360568FD; /* 0x36056829: je 0x360568fd */ 2909 L_3605682F: 2910 eax = MEM32(esi + 0x10); /* 0x3605682F: mov eax, dword ptr [esi + 0x10] */ 2911 edx = MEM32(edi + 0x11C); /* 0x36056832: mov edx, dword ptr [edi + 0x11c] */ 2912 ecx = MEM32(eax + 0x8); /* 0x36056838: mov ecx, dword ptr [eax + 8] */ 2913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2914 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2915 eax = eax + 4; /* 0x3605683B: add eax, 4 */ 2916 _flag_k = FK_ADD; 2917 /* cmp edx, ecx */ /* 0x3605683E: cmp edx, ecx */ 2918 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2920 _flag_k = FK_CMP; 2921 if (CMP_NE(_flag_a, _flag_b)) goto L_36056850; /* 0x36056840: jne 0x36056850 */ 2922 L_36056842: 2923 ecx = MEM32(edi + 0x118); /* 0x36056842: mov ecx, dword ptr [edi + 0x118] */ 2924 /* cmp ecx, MEM32(eax) */ /* 0x36056848: cmp ecx, dword ptr [eax] */ 2925 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 2926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2927 _flag_k = FK_CMP; 2928 if (CMP_EQ(_flag_a, _flag_b)) goto L_360568FD; /* 0x3605684A: je 0x360568fd */ 2929 L_36056850: 2930 ebx = MEM32(0x3616FFB0); /* 0x36056850: mov ebx, dword ptr [0x3616ffb0] */ 2931 ecx = edi + 0x8C; /* 0x36056856: lea ecx, [edi + 0x8c] */ 2932 RECOMP_ICALL(ebx); /* 0x3605685C: call ebx */ 2933 RECOMP_FLAGS_IN(); 2934 ecx = MEM32(esi + 0x10); /* 0x3605685E: mov ecx, dword ptr [esi + 0x10] */ 2935 MEM32(ebp + (-0x14)) = eax; /* 0x36056861: mov dword ptr [ebp - 0x14], eax */ 2936 RECOMP_ICALL(ebx); /* 0x36056864: call ebx */ 2937 RECOMP_FLAGS_IN(); 2938 edx = MEM32(eax); /* 0x36056866: mov edx, dword ptr [eax] */ 2939 ecx = MEM32(eax + 0x4); /* 0x36056868: mov ecx, dword ptr [eax + 4] */ 2940 MEM32(ebp + (-0x38)) = edx; /* 0x3605686B: mov dword ptr [ebp - 0x38], edx */ 2941 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3605686E: fld dword ptr [ebp - 0x38] */ 2942 edx = MEM32(eax + 0x8); /* 0x36056871: mov edx, dword ptr [eax + 8] */ 2943 eax = MEM32(ebp + (-0x14)); /* 0x36056874: mov eax, dword ptr [ebp - 0x14] */ 2944 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36056877: fsub dword ptr [eax] */ 2945 MEM32(ebp + (-0x34)) = ecx; /* 0x36056879: mov dword ptr [ebp - 0x34], ecx */ 2946 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3605687C: fld dword ptr [ebp - 0x34] */ 2947 MEM32(ebp + (-0x30)) = edx; /* 0x3605687F: mov dword ptr [ebp - 0x30], edx */ 2948 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x36056882: fsub dword ptr [eax + 4] */ 2949 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36056885: fld dword ptr [ebp - 0x30] */ 2950 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x36056888: fsub dword ptr [eax + 8] */ 2951 fp_push(_st[0]); /* 0x3605688B: fld st(0) */ 2952 _st[0] *= _st[1]; /* 0x3605688D: fmul st(1) */ 2953 fp_push(_st[2]); /* 0x3605688F: fld st(2) */ 2954 _st[0] *= _st[3]; /* 0x36056891: fmul st(3) */ 2955 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056893: faddp st(1) */ 2956 fp_push(_st[3]); /* 0x36056895: fld st(3) */ 2957 _st[0] *= _st[4]; /* 0x36056897: fmul st(4) */ 2958 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056899: faddp st(1) */ 2959 _st[0] = sqrt(_st[0]); /* 0x3605689B: fsqrt */ 2960 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605689D: fstp st(3) */ 2961 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605689F: fstp st(0) */ 2962 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360568A1: fstp st(0) */ 2963 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x360568A3: fcomp qword ptr [0x36170808] */ 2964 fp_pop(); 2965 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360568A9: fnstsw ax */ 2966 /* test HI8(eax), 0x41u */ /* 0x360568AB: test ah, 0x41 */ 2967 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2968 _cf = 0; 2969 _flag_k = FK_NARROW(FK_TEST, 24); 2970 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056903; /* 0x360568AE: jne 0x36056903 */ 2971 L_360568B0: 2972 PUSH32(esp, 0x34u); /* 0x360568B0: push 0x34 */ 2973 RECOMP_ICALL(0x3615FD6Au); /* 0x360568B2: call 0x3615fd6a */ /* not lifted */ 2974 RECOMP_FLAGS_IN(); 2975 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2976 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2977 esp = esp + 4; /* 0x360568B7: add esp, 4 */ 2978 _flag_k = FK_ADD; 2979 MEM32(ebp + (-0x14)) = eax; /* 0x360568BA: mov dword ptr [ebp - 0x14], eax */ 2980 /* test eax, eax */ /* 0x360568BD: test eax, eax */ 2981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2982 _cf = 0; 2983 _flag_k = FK_TEST; 2984 MEM32(ebp + (-0x4)) = 0; /* 0x360568BF: mov dword ptr [ebp - 4], 0 */ 2985 if (TEST_Z(_flag_a, _flag_b)) goto L_360568E9; /* 0x360568C6: je 0x360568e9 */ 2986 L_360568C8: 2987 ecx = MEM32(esi + 0x10); /* 0x360568C8: mov ecx, dword ptr [esi + 0x10] */ 2988 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x90u); 2989 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2990 edi = edi + 0x90u; /* 0x360568CB: add edi, 0x90 */ 2991 _flag_k = FK_ADD; 2992 PUSH32(esp, edi); /* 0x360568D1: push edi */ 2993 PUSH32(esp, 0x8Eu); /* 0x360568D2: push 0x8e */ 2994 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2995 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2996 ecx = ecx + 4; /* 0x360568D7: add ecx, 4 */ 2997 _flag_k = FK_ADD; 2998 PUSH32(esp, 0x362EA510u); /* 0x360568DA: push 0x362ea510 */ 2999 PUSH32(esp, ecx); /* 0x360568DF: push ecx */ 3000 ecx = eax; /* 0x360568E0: mov ecx, eax */ 3001 RECOMP_ICALL(0x3607D4B0u); /* 0x360568E2: call 0x3607d4b0 */ /* not lifted */ 3002 RECOMP_FLAGS_IN(); 3003 goto L_360568EB; /* 0x360568E7: jmp 0x360568eb */ 3004 L_360568E9: 3005 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3006 eax = 0; /* 0x360568E9: xor eax, eax */ 3007 _cf = 0; 3008 _flag_k = FK_TEST; 3009 L_360568EB: 3010 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360568EB: mov dword ptr [ebp - 4], 0xffffffff */ 3011 MEM32(ebp + (-0x18)) = eax; /* 0x360568F2: mov dword ptr [ebp - 0x18], eax */ 3012 edx = ebp + (-0x18); /* 0x360568F5: lea edx, [ebp - 0x18] */ 3013 goto L_36056BDE; /* 0x360568F8: jmp 0x36056bde */ 3014 L_360568FD: 3015 ebx = MEM32(0x3616FFB0); /* 0x360568FD: mov ebx, dword ptr [0x3616ffb0] */ 3016 L_36056903: 3017 /* cmp MEM32(ebp + (-0x2C)), 0xC350u */ /* 0x36056903: cmp dword ptr [ebp - 0x2c], 0xc350 */ 3018 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xC350u); 3019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3020 _flag_k = FK_CMP; 3021 if (CMP_NE(_flag_a, _flag_b)) goto L_360569B4; /* 0x3605690A: jne 0x360569b4 */ 3022 L_36056910: 3023 PUSH32(esp, 0); /* 0x36056910: push 0 */ 3024 PUSH32(esp, 0x361B2CD8u); /* 0x36056912: push 0x361b2cd8 */ 3025 PUSH32(esp, 0x361B2CC0u); /* 0x36056917: push 0x361b2cc0 */ 3026 ecx = ebp + (-0x2C); /* 0x3605691C: lea ecx, [ebp - 0x2c] */ 3027 PUSH32(esp, 0); /* 0x3605691F: push 0 */ 3028 PUSH32(esp, ecx); /* 0x36056921: push ecx */ 3029 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056922: call dword ptr [0x3616ff70] */ 3030 RECOMP_FLAGS_IN(); 3031 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3032 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3033 esp = esp + 4; /* 0x36056928: add esp, 4 */ 3034 _flag_k = FK_ADD; 3035 PUSH32(esp, eax); /* 0x3605692B: push eax */ 3036 RECOMP_ICALL(0x3615FD86u); /* 0x3605692C: call 0x3615fd86 */ /* not lifted */ 3037 RECOMP_FLAGS_IN(); 3038 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3039 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3040 esp = esp + 0x14u; /* 0x36056931: add esp, 0x14 */ 3041 _flag_k = FK_ADD; 3042 /* test eax, eax */ /* 0x36056934: test eax, eax */ 3043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3044 _cf = 0; 3045 _flag_k = FK_TEST; 3046 MEM32(ebp + (-0x14)) = eax; /* 0x36056936: mov dword ptr [ebp - 0x14], eax */ 3047 if (TEST_Z(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056939: je 0x360569b4 */ 3048 L_3605693B: 3049 ecx = eax; /* 0x3605693B: mov ecx, eax */ 3050 RECOMP_ICALL(ebx); /* 0x3605693D: call ebx */ 3051 RECOMP_FLAGS_IN(); 3052 ecx = MEM32(esi + 0x10); /* 0x3605693F: mov ecx, dword ptr [esi + 0x10] */ 3053 edi = eax; /* 0x36056942: mov edi, eax */ 3054 RECOMP_ICALL(ebx); /* 0x36056944: call ebx */ 3055 RECOMP_FLAGS_IN(); 3056 edx = MEM32(eax); /* 0x36056946: mov edx, dword ptr [eax] */ 3057 ecx = MEM32(eax + 0x4); /* 0x36056948: mov ecx, dword ptr [eax + 4] */ 3058 MEM32(ebp + (-0x44)) = edx; /* 0x3605694B: mov dword ptr [ebp - 0x44], edx */ 3059 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3605694E: fld dword ptr [ebp - 0x44] */ 3060 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056951: fsub dword ptr [edi] */ 3061 edx = MEM32(eax + 0x8); /* 0x36056953: mov edx, dword ptr [eax + 8] */ 3062 MEM32(ebp + (-0x40)) = ecx; /* 0x36056956: mov dword ptr [ebp - 0x40], ecx */ 3063 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36056959: fld dword ptr [ebp - 0x40] */ 3064 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3605695C: fsub dword ptr [edi + 4] */ 3065 MEM32(ebp + (-0x3C)) = edx; /* 0x3605695F: mov dword ptr [ebp - 0x3c], edx */ 3066 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36056962: fld dword ptr [ebp - 0x3c] */ 3067 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056965: fsub dword ptr [edi + 8] */ 3068 fp_push(_st[0]); /* 0x36056968: fld st(0) */ 3069 _st[0] *= _st[1]; /* 0x3605696A: fmul st(1) */ 3070 fp_push(_st[2]); /* 0x3605696C: fld st(2) */ 3071 _st[0] *= _st[3]; /* 0x3605696E: fmul st(3) */ 3072 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056970: faddp st(1) */ 3073 fp_push(_st[3]); /* 0x36056972: fld st(3) */ 3074 _st[0] *= _st[4]; /* 0x36056974: fmul st(4) */ 3075 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056976: faddp st(1) */ 3076 _st[0] = sqrt(_st[0]); /* 0x36056978: fsqrt */ 3077 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605697A: fstp st(3) */ 3078 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697C: fstp st(0) */ 3079 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697E: fstp st(0) */ 3080 RECOMP_ICALL(0x3615FD8Cu); /* 0x36056980: call 0x3615fd8c */ /* not lifted */ 3081 RECOMP_FLAGS_IN(); 3082 /* cmp eax, 2 */ /* 0x36056985: cmp eax, 2 */ 3083 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 3084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3085 _flag_k = FK_CMP; 3086 if (CMP_G(_flag_a, _flag_b)) goto L_36056996; /* 0x36056988: jg 0x36056996 */ 3087 L_3605698A: 3088 eax = MEM32(ebp + (-0x14)); /* 0x3605698A: mov eax, dword ptr [ebp - 0x14] */ 3089 /* test MEM8(eax + 0x11C), 0x10u */ /* 0x3605698D: test byte ptr [eax + 0x11c], 0x10 */ 3090 _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 3091 _cf = 0; 3092 _flag_k = FK_NARROW(FK_TEST, 24); 3093 if (TEST_NZ(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056994: jne 0x360569b4 */ 3094 L_36056996: 3095 ecx = ebp + (-0x2C); /* 0x36056996: lea ecx, [ebp - 0x2c] */ 3096 PUSH32(esp, ecx); /* 0x36056999: push ecx */ 3097 ecx = esi; /* 0x3605699A: mov ecx, esi */ 3098 RECOMP_ICALL(0x36053160u); /* 0x3605699C: call 0x36053160 */ /* not lifted */ 3099 RECOMP_FLAGS_IN(); 3100 edx = MEM32(esi + 0x8C); /* 0x360569A1: mov edx, dword ptr [esi + 0x8c] */ 3101 eax = MEM32(edx + 0x4); /* 0x360569A7: mov eax, dword ptr [edx + 4] */ 3102 ecx = MEM32(eax); /* 0x360569AA: mov ecx, dword ptr [eax] */ 3103 MEM32(ebp + (-0x10)) = ecx; /* 0x360569AC: mov dword ptr [ebp - 0x10], ecx */ 3104 goto L_36056C0B; /* 0x360569AF: jmp 0x36056c0b */ 3105 L_360569B4: 3106 /* cmp MEM32(ebp + (-0x2C)), 0xDEADu */ /* 0x360569B4: cmp dword ptr [ebp - 0x2c], 0xdead */ 3107 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEADu); 3108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3109 _flag_k = FK_CMP; 3110 if (CMP_NE(_flag_a, _flag_b)) goto L_36056A5F; /* 0x360569BB: jne 0x36056a5f */ 3111 L_360569C1: 3112 ecx = MEM32(esi + 0x10); /* 0x360569C1: mov ecx, dword ptr [esi + 0x10] */ 3113 RECOMP_ICALL(ebx); /* 0x360569C4: call ebx */ 3114 RECOMP_FLAGS_IN(); 3115 edx = MEM32(eax); /* 0x360569C6: mov edx, dword ptr [eax] */ 3116 ecx = MEM32(eax + 0x4); /* 0x360569C8: mov ecx, dword ptr [eax + 4] */ 3117 MEM32(ebp + (-0x50)) = edx; /* 0x360569CB: mov dword ptr [ebp - 0x50], edx */ 3118 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x360569CE: fld dword ptr [ebp - 0x50] */ 3119 _st[0] -= (double)*(float*)ADDR(esi + 0x9C); /* 0x360569D1: fsub dword ptr [esi + 0x9c] */ 3120 edx = MEM32(eax + 0x8); /* 0x360569D7: mov edx, dword ptr [eax + 8] */ 3121 MEM32(ebp + (-0x4C)) = ecx; /* 0x360569DA: mov dword ptr [ebp - 0x4c], ecx */ 3122 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x360569DD: fld dword ptr [ebp - 0x4c] */ 3123 _st[0] -= (double)*(float*)ADDR(esi + 0xA0); /* 0x360569E0: fsub dword ptr [esi + 0xa0] */ 3124 MEM32(ebp + (-0x48)) = edx; /* 0x360569E6: mov dword ptr [ebp - 0x48], edx */ 3125 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x360569E9: fld dword ptr [ebp - 0x48] */ 3126 _st[0] -= (double)*(float*)ADDR(esi + 0xA4); /* 0x360569EC: fsub dword ptr [esi + 0xa4] */ 3127 fp_push(_st[0]); /* 0x360569F2: fld st(0) */ 3128 _st[0] *= _st[1]; /* 0x360569F4: fmul st(1) */ 3129 fp_push(_st[2]); /* 0x360569F6: fld st(2) */ 3130 _st[0] *= _st[3]; /* 0x360569F8: fmul st(3) */ 3131 { double _v = fp_pop(); _st[0] += _v; } /* 0x360569FA: faddp st(1) */ 3132 fp_push(_st[3]); /* 0x360569FC: fld st(3) */ 3133 _st[0] *= _st[4]; /* 0x360569FE: fmul st(4) */ 3134 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056A00: faddp st(1) */ 3135 _st[0] = sqrt(_st[0]); /* 0x36056A02: fsqrt */ 3136 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056A04: fstp st(3) */ 3137 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A06: fstp st(0) */ 3138 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A08: fstp st(0) */ 3139 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056A0A: fcomp qword ptr [0x36170808] */ 3140 fp_pop(); 3141 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056A10: fnstsw ax */ 3142 /* test HI8(eax), 0x41u */ /* 0x36056A12: test ah, 0x41 */ 3143 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3144 _cf = 0; 3145 _flag_k = FK_NARROW(FK_TEST, 24); 3146 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056A5F; /* 0x36056A15: jne 0x36056a5f */ 3147 L_36056A17: 3148 PUSH32(esp, 0x34u); /* 0x36056A17: push 0x34 */ 3149 RECOMP_ICALL(0x3615FD6Au); /* 0x36056A19: call 0x3615fd6a */ /* not lifted */ 3150 RECOMP_FLAGS_IN(); 3151 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3152 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3153 esp = esp + 4; /* 0x36056A1E: add esp, 4 */ 3154 _flag_k = FK_ADD; 3155 MEM32(ebp + (-0x14)) = eax; /* 0x36056A21: mov dword ptr [ebp - 0x14], eax */ 3156 /* test eax, eax */ /* 0x36056A24: test eax, eax */ 3157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3158 _cf = 0; 3159 _flag_k = FK_TEST; 3160 MEM32(ebp + (-0x4)) = 1; /* 0x36056A26: mov dword ptr [ebp - 4], 1 */ 3161 if (TEST_Z(_flag_a, _flag_b)) goto L_36056A4B; /* 0x36056A2D: je 0x36056a4b */ 3162 L_36056A2F: 3163 ecx = MEM32(esi + 0x10); /* 0x36056A2F: mov ecx, dword ptr [esi + 0x10] */ 3164 PUSH32(esp, 0x362EA510u); /* 0x36056A32: push 0x362ea510 */ 3165 PUSH32(esp, 0x6Au); /* 0x36056A37: push 0x6a */ 3166 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3167 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3168 ecx = ecx + 4; /* 0x36056A39: add ecx, 4 */ 3169 _flag_k = FK_ADD; 3170 PUSH32(esp, 0x362EA510u); /* 0x36056A3C: push 0x362ea510 */ 3171 PUSH32(esp, ecx); /* 0x36056A41: push ecx */ 3172 ecx = eax; /* 0x36056A42: mov ecx, eax */ 3173 RECOMP_ICALL(0x3607D4B0u); /* 0x36056A44: call 0x3607d4b0 */ /* not lifted */ 3174 RECOMP_FLAGS_IN(); 3175 goto L_36056A4D; /* 0x36056A49: jmp 0x36056a4d */ 3176 L_36056A4B: 3177 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3178 eax = 0; /* 0x36056A4B: xor eax, eax */ 3179 _cf = 0; 3180 _flag_k = FK_TEST; 3181 L_36056A4D: 3182 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056A4D: mov dword ptr [ebp - 4], 0xffffffff */ 3183 MEM32(ebp + (-0x1C)) = eax; /* 0x36056A54: mov dword ptr [ebp - 0x1c], eax */ 3184 edx = ebp + (-0x1C); /* 0x36056A57: lea edx, [ebp - 0x1c] */ 3185 goto L_36056BDE; /* 0x36056A5A: jmp 0x36056bde */ 3186 L_36056A5F: 3187 /* cmp MEM32(ebp + (-0x2C)), 0xDEAEu */ /* 0x36056A5F: cmp dword ptr [ebp - 0x2c], 0xdeae */ 3188 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEAEu); 3189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3190 _flag_k = FK_CMP; 3191 if (CMP_NE(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056A66: jne 0x36056c03 */ 3192 L_36056A6C: 3193 edi = MEM32(0x3616FF70); /* 0x36056A6C: mov edi, dword ptr [0x3616ff70] */ 3194 ecx = esi + 0x78; /* 0x36056A72: lea ecx, [esi + 0x78] */ 3195 PUSH32(esp, ecx); /* 0x36056A75: push ecx */ 3196 RECOMP_ICALL(edi); /* 0x36056A76: call edi */ 3197 RECOMP_FLAGS_IN(); 3198 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3200 esp = esp + 4; /* 0x36056A78: add esp, 4 */ 3201 _flag_k = FK_ADD; 3202 /* test eax, eax */ /* 0x36056A7B: test eax, eax */ 3203 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3204 _cf = 0; 3205 _flag_k = FK_TEST; 3206 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B21; /* 0x36056A7D: je 0x36056b21 */ 3207 L_36056A83: 3208 ecx = eax; /* 0x36056A83: mov ecx, eax */ 3209 RECOMP_ICALL(ebx); /* 0x36056A85: call ebx */ 3210 RECOMP_FLAGS_IN(); 3211 ecx = MEM32(esi + 0x10); /* 0x36056A87: mov ecx, dword ptr [esi + 0x10] */ 3212 edi = eax; /* 0x36056A8A: mov edi, eax */ 3213 RECOMP_ICALL(ebx); /* 0x36056A8C: call ebx */ 3214 RECOMP_FLAGS_IN(); 3215 edx = MEM32(eax); /* 0x36056A8E: mov edx, dword ptr [eax] */ 3216 ecx = MEM32(eax + 0x4); /* 0x36056A90: mov ecx, dword ptr [eax + 4] */ 3217 MEM32(ebp + (-0x5C)) = edx; /* 0x36056A93: mov dword ptr [ebp - 0x5c], edx */ 3218 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36056A96: fld dword ptr [ebp - 0x5c] */ 3219 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056A99: fsub dword ptr [edi] */ 3220 edx = MEM32(eax + 0x8); /* 0x36056A9B: mov edx, dword ptr [eax + 8] */ 3221 MEM32(ebp + (-0x58)) = ecx; /* 0x36056A9E: mov dword ptr [ebp - 0x58], ecx */ 3222 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36056AA1: fld dword ptr [ebp - 0x58] */ 3223 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056AA4: fsub dword ptr [edi + 4] */ 3224 MEM32(ebp + (-0x54)) = edx; /* 0x36056AA7: mov dword ptr [ebp - 0x54], edx */ 3225 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36056AAA: fld dword ptr [ebp - 0x54] */ 3226 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056AAD: fsub dword ptr [edi + 8] */ 3227 fp_push(_st[0]); /* 0x36056AB0: fld st(0) */ 3228 _st[0] *= _st[1]; /* 0x36056AB2: fmul st(1) */ 3229 fp_push(_st[2]); /* 0x36056AB4: fld st(2) */ 3230 _st[0] *= _st[3]; /* 0x36056AB6: fmul st(3) */ 3231 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056AB8: faddp st(1) */ 3232 fp_push(_st[3]); /* 0x36056ABA: fld st(3) */ 3233 _st[0] *= _st[4]; /* 0x36056ABC: fmul st(4) */ 3234 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056ABE: faddp st(1) */ 3235 _st[0] = sqrt(_st[0]); /* 0x36056AC0: fsqrt */ 3236 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056AC2: fstp st(3) */ 3237 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC4: fstp st(0) */ 3238 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC6: fstp st(0) */ 3239 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056AC8: fcomp qword ptr [0x36170808] */ 3240 fp_pop(); 3241 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056ACE: fnstsw ax */ 3242 /* test HI8(eax), 0x41u */ /* 0x36056AD0: test ah, 0x41 */ 3243 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3244 _cf = 0; 3245 _flag_k = FK_NARROW(FK_TEST, 24); 3246 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056AD3: jne 0x36056c03 */ 3247 L_36056AD9: 3248 PUSH32(esp, 0x34u); /* 0x36056AD9: push 0x34 */ 3249 RECOMP_ICALL(0x3615FD6Au); /* 0x36056ADB: call 0x3615fd6a */ /* not lifted */ 3250 RECOMP_FLAGS_IN(); 3251 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3252 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3253 esp = esp + 4; /* 0x36056AE0: add esp, 4 */ 3254 _flag_k = FK_ADD; 3255 MEM32(ebp + (-0x14)) = eax; /* 0x36056AE3: mov dword ptr [ebp - 0x14], eax */ 3256 /* test eax, eax */ /* 0x36056AE6: test eax, eax */ 3257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3258 _cf = 0; 3259 _flag_k = FK_TEST; 3260 MEM32(ebp + (-0x4)) = 2; /* 0x36056AE8: mov dword ptr [ebp - 4], 2 */ 3261 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B0D; /* 0x36056AEF: je 0x36056b0d */ 3262 L_36056AF1: 3263 ecx = MEM32(esi + 0x10); /* 0x36056AF1: mov ecx, dword ptr [esi + 0x10] */ 3264 PUSH32(esp, 0x362EA510u); /* 0x36056AF4: push 0x362ea510 */ 3265 PUSH32(esp, 0x6Eu); /* 0x36056AF9: push 0x6e */ 3266 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3268 ecx = ecx + 4; /* 0x36056AFB: add ecx, 4 */ 3269 _flag_k = FK_ADD; 3270 PUSH32(esp, 0x362EA510u); /* 0x36056AFE: push 0x362ea510 */ 3271 PUSH32(esp, ecx); /* 0x36056B03: push ecx */ 3272 ecx = eax; /* 0x36056B04: mov ecx, eax */ 3273 RECOMP_ICALL(0x3607D4B0u); /* 0x36056B06: call 0x3607d4b0 */ /* not lifted */ 3274 RECOMP_FLAGS_IN(); 3275 goto L_36056B0F; /* 0x36056B0B: jmp 0x36056b0f */ 3276 L_36056B0D: 3277 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3278 eax = 0; /* 0x36056B0D: xor eax, eax */ 3279 _cf = 0; 3280 _flag_k = FK_TEST; 3281 L_36056B0F: 3282 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056B0F: mov dword ptr [ebp - 4], 0xffffffff */ 3283 MEM32(ebp + (-0x20)) = eax; /* 0x36056B16: mov dword ptr [ebp - 0x20], eax */ 3284 edx = ebp + (-0x20); /* 0x36056B19: lea edx, [ebp - 0x20] */ 3285 goto L_36056BDE; /* 0x36056B1C: jmp 0x36056bde */ 3286 L_36056B21: 3287 ecx = MEM32(esi + 0x10); /* 0x36056B21: mov ecx, dword ptr [esi + 0x10] */ 3288 eax = MEM32(ecx + 0x150); /* 0x36056B24: mov eax, dword ptr [ecx + 0x150] */ 3289 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 3290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3291 eax = eax + 0xE4u; /* 0x36056B2A: add eax, 0xe4 */ 3292 _flag_k = FK_ADD; 3293 PUSH32(esp, eax); /* 0x36056B2F: push eax */ 3294 RECOMP_ICALL(edi); /* 0x36056B30: call edi */ 3295 RECOMP_FLAGS_IN(); 3296 ebx = eax; /* 0x36056B32: mov ebx, eax */ 3297 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3298 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3299 esp = esp + 4; /* 0x36056B34: add esp, 4 */ 3300 _flag_k = FK_ADD; 3301 /* test ebx, ebx */ /* 0x36056B37: test ebx, ebx */ 3302 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3303 _cf = 0; 3304 _flag_k = FK_TEST; 3305 if (TEST_Z(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B39: je 0x36056c03 */ 3306 L_36056B3F: 3307 ecx = ebx; /* 0x36056B3F: mov ecx, ebx */ 3308 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B41: call dword ptr [0x3616ffb0] */ 3309 RECOMP_FLAGS_IN(); 3310 ecx = MEM32(esi + 0x10); /* 0x36056B47: mov ecx, dword ptr [esi + 0x10] */ 3311 edi = eax; /* 0x36056B4A: mov edi, eax */ 3312 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B4C: call dword ptr [0x3616ffb0] */ 3313 RECOMP_FLAGS_IN(); 3314 edx = MEM32(eax); /* 0x36056B52: mov edx, dword ptr [eax] */ 3315 ecx = MEM32(eax + 0x4); /* 0x36056B54: mov ecx, dword ptr [eax + 4] */ 3316 MEM32(ebp + (-0x68)) = edx; /* 0x36056B57: mov dword ptr [ebp - 0x68], edx */ 3317 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36056B5A: fld dword ptr [ebp - 0x68] */ 3318 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056B5D: fsub dword ptr [edi] */ 3319 edx = MEM32(eax + 0x8); /* 0x36056B5F: mov edx, dword ptr [eax + 8] */ 3320 MEM32(ebp + (-0x64)) = ecx; /* 0x36056B62: mov dword ptr [ebp - 0x64], ecx */ 3321 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36056B65: fld dword ptr [ebp - 0x64] */ 3322 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056B68: fsub dword ptr [edi + 4] */ 3323 MEM32(ebp + (-0x60)) = edx; /* 0x36056B6B: mov dword ptr [ebp - 0x60], edx */ 3324 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36056B6E: fld dword ptr [ebp - 0x60] */ 3325 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056B71: fsub dword ptr [edi + 8] */ 3326 fp_push(_st[0]); /* 0x36056B74: fld st(0) */ 3327 _st[0] *= _st[1]; /* 0x36056B76: fmul st(1) */ 3328 fp_push(_st[2]); /* 0x36056B78: fld st(2) */ 3329 _st[0] *= _st[3]; /* 0x36056B7A: fmul st(3) */ 3330 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B7C: faddp st(1) */ 3331 fp_push(_st[3]); /* 0x36056B7E: fld st(3) */ 3332 _st[0] *= _st[4]; /* 0x36056B80: fmul st(4) */ 3333 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B82: faddp st(1) */ 3334 _st[0] = sqrt(_st[0]); /* 0x36056B84: fsqrt */ 3335 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056B86: fstp st(3) */ 3336 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B88: fstp st(0) */ 3337 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B8A: fstp st(0) */ 3338 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056B8C: fcomp qword ptr [0x36170808] */ 3339 fp_pop(); 3340 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056B92: fnstsw ax */ 3341 /* test HI8(eax), 0x41u */ /* 0x36056B94: test ah, 0x41 */ 3342 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3343 _cf = 0; 3344 _flag_k = FK_NARROW(FK_TEST, 24); 3345 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B97: jne 0x36056c03 */ 3346 L_36056B99: 3347 PUSH32(esp, 0x34u); /* 0x36056B99: push 0x34 */ 3348 RECOMP_ICALL(0x3615FD6Au); /* 0x36056B9B: call 0x3615fd6a */ /* not lifted */ 3349 RECOMP_FLAGS_IN(); 3350 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3352 esp = esp + 4; /* 0x36056BA0: add esp, 4 */ 3353 _flag_k = FK_ADD; 3354 MEM32(ebp + (-0x14)) = eax; /* 0x36056BA3: mov dword ptr [ebp - 0x14], eax */ 3355 /* test eax, eax */ /* 0x36056BA6: test eax, eax */ 3356 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3357 _cf = 0; 3358 _flag_k = FK_TEST; 3359 MEM32(ebp + (-0x4)) = 3; /* 0x36056BA8: mov dword ptr [ebp - 4], 3 */ 3360 if (TEST_Z(_flag_a, _flag_b)) goto L_36056BCF; /* 0x36056BAF: je 0x36056bcf */ 3361 L_36056BB1: 3362 ecx = MEM32(esi + 0x10); /* 0x36056BB1: mov ecx, dword ptr [esi + 0x10] */ 3363 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 3364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3365 ebx = ebx + 4; /* 0x36056BB4: add ebx, 4 */ 3366 _flag_k = FK_ADD; 3367 PUSH32(esp, ebx); /* 0x36056BB7: push ebx */ 3368 PUSH32(esp, 0x8Eu); /* 0x36056BB8: push 0x8e */ 3369 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3371 ecx = ecx + 4; /* 0x36056BBD: add ecx, 4 */ 3372 _flag_k = FK_ADD; 3373 PUSH32(esp, 0x362EA510u); /* 0x36056BC0: push 0x362ea510 */ 3374 PUSH32(esp, ecx); /* 0x36056BC5: push ecx */ 3375 ecx = eax; /* 0x36056BC6: mov ecx, eax */ 3376 RECOMP_ICALL(0x3607D4B0u); /* 0x36056BC8: call 0x3607d4b0 */ /* not lifted */ 3377 RECOMP_FLAGS_IN(); 3378 goto L_36056BD1; /* 0x36056BCD: jmp 0x36056bd1 */ 3379 L_36056BCF: 3380 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3381 eax = 0; /* 0x36056BCF: xor eax, eax */ 3382 _cf = 0; 3383 _flag_k = FK_TEST; 3384 L_36056BD1: 3385 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056BD1: mov dword ptr [ebp - 4], 0xffffffff */ 3386 MEM32(ebp + (-0x24)) = eax; /* 0x36056BD8: mov dword ptr [ebp - 0x24], eax */ 3387 edx = ebp + (-0x24); /* 0x36056BDB: lea edx, [ebp - 0x24] */ 3388 L_36056BDE: 3389 ecx = MEM32(esi + 0x10); /* 0x36056BDE: mov ecx, dword ptr [esi + 0x10] */ 3390 PUSH32(esp, edx); /* 0x36056BE1: push edx */ 3391 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36056BE2: call dword ptr [0x3617004c] */ 3392 RECOMP_FLAGS_IN(); 3393 eax = ebp + (-0x2C); /* 0x36056BE8: lea eax, [ebp - 0x2c] */ 3394 PUSH32(esp, eax); /* 0x36056BEB: push eax */ 3395 ecx = esi; /* 0x36056BEC: mov ecx, esi */ 3396 RECOMP_ICALL(0x36053160u); /* 0x36056BEE: call 0x36053160 */ /* not lifted */ 3397 RECOMP_FLAGS_IN(); 3398 ecx = MEM32(esi + 0x8C); /* 0x36056BF3: mov ecx, dword ptr [esi + 0x8c] */ 3399 edx = MEM32(ecx + 0x4); /* 0x36056BF9: mov edx, dword ptr [ecx + 4] */ 3400 eax = MEM32(edx); /* 0x36056BFC: mov eax, dword ptr [edx] */ 3401 MEM32(ebp + (-0x10)) = eax; /* 0x36056BFE: mov dword ptr [ebp - 0x10], eax */ 3402 goto L_36056C0B; /* 0x36056C01: jmp 0x36056c0b */ 3403 L_36056C03: 3404 ecx = MEM32(ebp + (-0x10)); /* 0x36056C03: mov ecx, dword ptr [ebp - 0x10] */ 3405 edx = MEM32(ecx); /* 0x36056C06: mov edx, dword ptr [ecx] */ 3406 MEM32(ebp + (-0x10)) = edx; /* 0x36056C08: mov dword ptr [ebp - 0x10], edx */ 3407 L_36056C0B: 3408 eax = MEM32(esi + 0x8C); /* 0x36056C0B: mov eax, dword ptr [esi + 0x8c] */ 3409 ecx = MEM32(ebp + (-0x10)); /* 0x36056C11: mov ecx, dword ptr [ebp - 0x10] */ 3410 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x36056C14: cmp ecx, dword ptr [eax + 4] */ 3411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 3412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3413 _flag_k = FK_CMP; 3414 RECOMP_BACKEDGE(); 3415 if (CMP_NE(_flag_a, _flag_b)) goto L_360567E9; /* 0x36056C17: jne 0x360567e9 */ 3416 L_36056C1D: 3417 edi = POP32_VAL(esp); /* 0x36056C1D: pop edi */ 3418 ebx = POP32_VAL(esp); /* 0x36056C1E: pop ebx */ 3419 ecx = MEM32(ebp + (-0xC)); /* 0x36056C1F: mov ecx, dword ptr [ebp - 0xc] */ 3420 esi = POP32_VAL(esp); /* 0x36056C22: pop esi */ 3421 MEM32(FS_BASE + (0)) = ecx; /* 0x36056C23: mov dword ptr fs:[0], ecx */ 3422 esp = ebp; /* 0x36056C2A: mov esp, ebp */ 3423 ebp = POP32_VAL(esp); /* 0x36056C2C: pop ebp */ 3424 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36056C2D: ret */ 3425 RECOMP_REGS_OUT(); 3426 } 3427 3428 void sub_36056BD1(void) { 3429 int _fpu_cmp = 0; 3430 uint32_t _cf = 0; 3431 int _df = 1; 3432 uint32_t _flag_k = FK_NONE; 3433 uint32_t _flag_a = 0, _flag_b = 0; 3434 uint32_t _itail_tgt = 0; 3435 RECOMP_REGS_LOCALS 3436 RECOMP_ENTER(0x36056BD1u); 3437 3438 goto L_36056BD1; 3439 L_360567E9: 3440 ecx = MEM32(ebp + (-0x10)); /* 0x360567E9: mov ecx, dword ptr [ebp - 0x10] */ 3441 eax = ecx + 0x8; /* 0x360567EC: lea eax, [ecx + 8] */ 3442 ecx = ebp + (-0x2C); /* 0x360567EF: lea ecx, [ebp - 0x2c] */ 3443 /* cmp ecx, eax */ /* 0x360567F2: cmp ecx, eax */ 3444 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3446 _flag_k = FK_CMP; 3447 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056801; /* 0x360567F4: je 0x36056801 */ 3448 L_360567F6: 3449 edx = MEM32(eax); /* 0x360567F6: mov edx, dword ptr [eax] */ 3450 MEM32(ebp + (-0x2C)) = edx; /* 0x360567F8: mov dword ptr [ebp - 0x2c], edx */ 3451 eax = MEM32(eax + 0x4); /* 0x360567FB: mov eax, dword ptr [eax + 4] */ 3452 MEM32(ebp + (-0x28)) = eax; /* 0x360567FE: mov dword ptr [ebp - 0x28], eax */ 3453 L_36056801: 3454 PUSH32(esp, 0); /* 0x36056801: push 0 */ 3455 PUSH32(esp, 0x361B5C10u); /* 0x36056803: push 0x361b5c10 */ 3456 PUSH32(esp, 0x361B2CC0u); /* 0x36056808: push 0x361b2cc0 */ 3457 ecx = ebp + (-0x2C); /* 0x3605680D: lea ecx, [ebp - 0x2c] */ 3458 PUSH32(esp, 0); /* 0x36056810: push 0 */ 3459 PUSH32(esp, ecx); /* 0x36056812: push ecx */ 3460 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056813: call dword ptr [0x3616ff70] */ 3461 RECOMP_FLAGS_IN(); 3462 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3463 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3464 esp = esp + 4; /* 0x36056819: add esp, 4 */ 3465 _flag_k = FK_ADD; 3466 PUSH32(esp, eax); /* 0x3605681C: push eax */ 3467 RECOMP_ICALL(0x3615FD86u); /* 0x3605681D: call 0x3615fd86 */ /* not lifted */ 3468 RECOMP_FLAGS_IN(); 3469 edi = eax; /* 0x36056822: mov edi, eax */ 3470 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3471 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3472 esp = esp + 0x14u; /* 0x36056824: add esp, 0x14 */ 3473 _flag_k = FK_ADD; 3474 /* test edi, edi */ /* 0x36056827: test edi, edi */ 3475 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3476 _cf = 0; 3477 _flag_k = FK_TEST; 3478 if (TEST_Z(_flag_a, _flag_b)) goto L_360568FD; /* 0x36056829: je 0x360568fd */ 3479 L_3605682F: 3480 eax = MEM32(esi + 0x10); /* 0x3605682F: mov eax, dword ptr [esi + 0x10] */ 3481 edx = MEM32(edi + 0x11C); /* 0x36056832: mov edx, dword ptr [edi + 0x11c] */ 3482 ecx = MEM32(eax + 0x8); /* 0x36056838: mov ecx, dword ptr [eax + 8] */ 3483 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3484 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3485 eax = eax + 4; /* 0x3605683B: add eax, 4 */ 3486 _flag_k = FK_ADD; 3487 /* cmp edx, ecx */ /* 0x3605683E: cmp edx, ecx */ 3488 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3490 _flag_k = FK_CMP; 3491 if (CMP_NE(_flag_a, _flag_b)) goto L_36056850; /* 0x36056840: jne 0x36056850 */ 3492 L_36056842: 3493 ecx = MEM32(edi + 0x118); /* 0x36056842: mov ecx, dword ptr [edi + 0x118] */ 3494 /* cmp ecx, MEM32(eax) */ /* 0x36056848: cmp ecx, dword ptr [eax] */ 3495 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 3496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3497 _flag_k = FK_CMP; 3498 if (CMP_EQ(_flag_a, _flag_b)) goto L_360568FD; /* 0x3605684A: je 0x360568fd */ 3499 L_36056850: 3500 ebx = MEM32(0x3616FFB0); /* 0x36056850: mov ebx, dword ptr [0x3616ffb0] */ 3501 ecx = edi + 0x8C; /* 0x36056856: lea ecx, [edi + 0x8c] */ 3502 RECOMP_ICALL(ebx); /* 0x3605685C: call ebx */ 3503 RECOMP_FLAGS_IN(); 3504 ecx = MEM32(esi + 0x10); /* 0x3605685E: mov ecx, dword ptr [esi + 0x10] */ 3505 MEM32(ebp + (-0x14)) = eax; /* 0x36056861: mov dword ptr [ebp - 0x14], eax */ 3506 RECOMP_ICALL(ebx); /* 0x36056864: call ebx */ 3507 RECOMP_FLAGS_IN(); 3508 edx = MEM32(eax); /* 0x36056866: mov edx, dword ptr [eax] */ 3509 ecx = MEM32(eax + 0x4); /* 0x36056868: mov ecx, dword ptr [eax + 4] */ 3510 MEM32(ebp + (-0x38)) = edx; /* 0x3605686B: mov dword ptr [ebp - 0x38], edx */ 3511 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3605686E: fld dword ptr [ebp - 0x38] */ 3512 edx = MEM32(eax + 0x8); /* 0x36056871: mov edx, dword ptr [eax + 8] */ 3513 eax = MEM32(ebp + (-0x14)); /* 0x36056874: mov eax, dword ptr [ebp - 0x14] */ 3514 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36056877: fsub dword ptr [eax] */ 3515 MEM32(ebp + (-0x34)) = ecx; /* 0x36056879: mov dword ptr [ebp - 0x34], ecx */ 3516 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3605687C: fld dword ptr [ebp - 0x34] */ 3517 MEM32(ebp + (-0x30)) = edx; /* 0x3605687F: mov dword ptr [ebp - 0x30], edx */ 3518 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x36056882: fsub dword ptr [eax + 4] */ 3519 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36056885: fld dword ptr [ebp - 0x30] */ 3520 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x36056888: fsub dword ptr [eax + 8] */ 3521 fp_push(_st[0]); /* 0x3605688B: fld st(0) */ 3522 _st[0] *= _st[1]; /* 0x3605688D: fmul st(1) */ 3523 fp_push(_st[2]); /* 0x3605688F: fld st(2) */ 3524 _st[0] *= _st[3]; /* 0x36056891: fmul st(3) */ 3525 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056893: faddp st(1) */ 3526 fp_push(_st[3]); /* 0x36056895: fld st(3) */ 3527 _st[0] *= _st[4]; /* 0x36056897: fmul st(4) */ 3528 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056899: faddp st(1) */ 3529 _st[0] = sqrt(_st[0]); /* 0x3605689B: fsqrt */ 3530 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605689D: fstp st(3) */ 3531 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605689F: fstp st(0) */ 3532 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360568A1: fstp st(0) */ 3533 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x360568A3: fcomp qword ptr [0x36170808] */ 3534 fp_pop(); 3535 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360568A9: fnstsw ax */ 3536 /* test HI8(eax), 0x41u */ /* 0x360568AB: test ah, 0x41 */ 3537 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3538 _cf = 0; 3539 _flag_k = FK_NARROW(FK_TEST, 24); 3540 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056903; /* 0x360568AE: jne 0x36056903 */ 3541 L_360568B0: 3542 PUSH32(esp, 0x34u); /* 0x360568B0: push 0x34 */ 3543 RECOMP_ICALL(0x3615FD6Au); /* 0x360568B2: call 0x3615fd6a */ /* not lifted */ 3544 RECOMP_FLAGS_IN(); 3545 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3547 esp = esp + 4; /* 0x360568B7: add esp, 4 */ 3548 _flag_k = FK_ADD; 3549 MEM32(ebp + (-0x14)) = eax; /* 0x360568BA: mov dword ptr [ebp - 0x14], eax */ 3550 /* test eax, eax */ /* 0x360568BD: test eax, eax */ 3551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3552 _cf = 0; 3553 _flag_k = FK_TEST; 3554 MEM32(ebp + (-0x4)) = 0; /* 0x360568BF: mov dword ptr [ebp - 4], 0 */ 3555 if (TEST_Z(_flag_a, _flag_b)) goto L_360568E9; /* 0x360568C6: je 0x360568e9 */ 3556 L_360568C8: 3557 ecx = MEM32(esi + 0x10); /* 0x360568C8: mov ecx, dword ptr [esi + 0x10] */ 3558 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x90u); 3559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3560 edi = edi + 0x90u; /* 0x360568CB: add edi, 0x90 */ 3561 _flag_k = FK_ADD; 3562 PUSH32(esp, edi); /* 0x360568D1: push edi */ 3563 PUSH32(esp, 0x8Eu); /* 0x360568D2: push 0x8e */ 3564 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3565 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3566 ecx = ecx + 4; /* 0x360568D7: add ecx, 4 */ 3567 _flag_k = FK_ADD; 3568 PUSH32(esp, 0x362EA510u); /* 0x360568DA: push 0x362ea510 */ 3569 PUSH32(esp, ecx); /* 0x360568DF: push ecx */ 3570 ecx = eax; /* 0x360568E0: mov ecx, eax */ 3571 RECOMP_ICALL(0x3607D4B0u); /* 0x360568E2: call 0x3607d4b0 */ /* not lifted */ 3572 RECOMP_FLAGS_IN(); 3573 goto L_360568EB; /* 0x360568E7: jmp 0x360568eb */ 3574 L_360568E9: 3575 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3576 eax = 0; /* 0x360568E9: xor eax, eax */ 3577 _cf = 0; 3578 _flag_k = FK_TEST; 3579 L_360568EB: 3580 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360568EB: mov dword ptr [ebp - 4], 0xffffffff */ 3581 MEM32(ebp + (-0x18)) = eax; /* 0x360568F2: mov dword ptr [ebp - 0x18], eax */ 3582 edx = ebp + (-0x18); /* 0x360568F5: lea edx, [ebp - 0x18] */ 3583 goto L_36056BDE; /* 0x360568F8: jmp 0x36056bde */ 3584 L_360568FD: 3585 ebx = MEM32(0x3616FFB0); /* 0x360568FD: mov ebx, dword ptr [0x3616ffb0] */ 3586 L_36056903: 3587 /* cmp MEM32(ebp + (-0x2C)), 0xC350u */ /* 0x36056903: cmp dword ptr [ebp - 0x2c], 0xc350 */ 3588 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xC350u); 3589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3590 _flag_k = FK_CMP; 3591 if (CMP_NE(_flag_a, _flag_b)) goto L_360569B4; /* 0x3605690A: jne 0x360569b4 */ 3592 L_36056910: 3593 PUSH32(esp, 0); /* 0x36056910: push 0 */ 3594 PUSH32(esp, 0x361B2CD8u); /* 0x36056912: push 0x361b2cd8 */ 3595 PUSH32(esp, 0x361B2CC0u); /* 0x36056917: push 0x361b2cc0 */ 3596 ecx = ebp + (-0x2C); /* 0x3605691C: lea ecx, [ebp - 0x2c] */ 3597 PUSH32(esp, 0); /* 0x3605691F: push 0 */ 3598 PUSH32(esp, ecx); /* 0x36056921: push ecx */ 3599 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056922: call dword ptr [0x3616ff70] */ 3600 RECOMP_FLAGS_IN(); 3601 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3602 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3603 esp = esp + 4; /* 0x36056928: add esp, 4 */ 3604 _flag_k = FK_ADD; 3605 PUSH32(esp, eax); /* 0x3605692B: push eax */ 3606 RECOMP_ICALL(0x3615FD86u); /* 0x3605692C: call 0x3615fd86 */ /* not lifted */ 3607 RECOMP_FLAGS_IN(); 3608 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3609 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3610 esp = esp + 0x14u; /* 0x36056931: add esp, 0x14 */ 3611 _flag_k = FK_ADD; 3612 /* test eax, eax */ /* 0x36056934: test eax, eax */ 3613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3614 _cf = 0; 3615 _flag_k = FK_TEST; 3616 MEM32(ebp + (-0x14)) = eax; /* 0x36056936: mov dword ptr [ebp - 0x14], eax */ 3617 if (TEST_Z(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056939: je 0x360569b4 */ 3618 L_3605693B: 3619 ecx = eax; /* 0x3605693B: mov ecx, eax */ 3620 RECOMP_ICALL(ebx); /* 0x3605693D: call ebx */ 3621 RECOMP_FLAGS_IN(); 3622 ecx = MEM32(esi + 0x10); /* 0x3605693F: mov ecx, dword ptr [esi + 0x10] */ 3623 edi = eax; /* 0x36056942: mov edi, eax */ 3624 RECOMP_ICALL(ebx); /* 0x36056944: call ebx */ 3625 RECOMP_FLAGS_IN(); 3626 edx = MEM32(eax); /* 0x36056946: mov edx, dword ptr [eax] */ 3627 ecx = MEM32(eax + 0x4); /* 0x36056948: mov ecx, dword ptr [eax + 4] */ 3628 MEM32(ebp + (-0x44)) = edx; /* 0x3605694B: mov dword ptr [ebp - 0x44], edx */ 3629 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3605694E: fld dword ptr [ebp - 0x44] */ 3630 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056951: fsub dword ptr [edi] */ 3631 edx = MEM32(eax + 0x8); /* 0x36056953: mov edx, dword ptr [eax + 8] */ 3632 MEM32(ebp + (-0x40)) = ecx; /* 0x36056956: mov dword ptr [ebp - 0x40], ecx */ 3633 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36056959: fld dword ptr [ebp - 0x40] */ 3634 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3605695C: fsub dword ptr [edi + 4] */ 3635 MEM32(ebp + (-0x3C)) = edx; /* 0x3605695F: mov dword ptr [ebp - 0x3c], edx */ 3636 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36056962: fld dword ptr [ebp - 0x3c] */ 3637 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056965: fsub dword ptr [edi + 8] */ 3638 fp_push(_st[0]); /* 0x36056968: fld st(0) */ 3639 _st[0] *= _st[1]; /* 0x3605696A: fmul st(1) */ 3640 fp_push(_st[2]); /* 0x3605696C: fld st(2) */ 3641 _st[0] *= _st[3]; /* 0x3605696E: fmul st(3) */ 3642 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056970: faddp st(1) */ 3643 fp_push(_st[3]); /* 0x36056972: fld st(3) */ 3644 _st[0] *= _st[4]; /* 0x36056974: fmul st(4) */ 3645 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056976: faddp st(1) */ 3646 _st[0] = sqrt(_st[0]); /* 0x36056978: fsqrt */ 3647 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605697A: fstp st(3) */ 3648 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697C: fstp st(0) */ 3649 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697E: fstp st(0) */ 3650 RECOMP_ICALL(0x3615FD8Cu); /* 0x36056980: call 0x3615fd8c */ /* not lifted */ 3651 RECOMP_FLAGS_IN(); 3652 /* cmp eax, 2 */ /* 0x36056985: cmp eax, 2 */ 3653 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 3654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3655 _flag_k = FK_CMP; 3656 if (CMP_G(_flag_a, _flag_b)) goto L_36056996; /* 0x36056988: jg 0x36056996 */ 3657 L_3605698A: 3658 eax = MEM32(ebp + (-0x14)); /* 0x3605698A: mov eax, dword ptr [ebp - 0x14] */ 3659 /* test MEM8(eax + 0x11C), 0x10u */ /* 0x3605698D: test byte ptr [eax + 0x11c], 0x10 */ 3660 _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 3661 _cf = 0; 3662 _flag_k = FK_NARROW(FK_TEST, 24); 3663 if (TEST_NZ(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056994: jne 0x360569b4 */ 3664 L_36056996: 3665 ecx = ebp + (-0x2C); /* 0x36056996: lea ecx, [ebp - 0x2c] */ 3666 PUSH32(esp, ecx); /* 0x36056999: push ecx */ 3667 ecx = esi; /* 0x3605699A: mov ecx, esi */ 3668 RECOMP_ICALL(0x36053160u); /* 0x3605699C: call 0x36053160 */ /* not lifted */ 3669 RECOMP_FLAGS_IN(); 3670 edx = MEM32(esi + 0x8C); /* 0x360569A1: mov edx, dword ptr [esi + 0x8c] */ 3671 eax = MEM32(edx + 0x4); /* 0x360569A7: mov eax, dword ptr [edx + 4] */ 3672 ecx = MEM32(eax); /* 0x360569AA: mov ecx, dword ptr [eax] */ 3673 MEM32(ebp + (-0x10)) = ecx; /* 0x360569AC: mov dword ptr [ebp - 0x10], ecx */ 3674 goto L_36056C0B; /* 0x360569AF: jmp 0x36056c0b */ 3675 L_360569B4: 3676 /* cmp MEM32(ebp + (-0x2C)), 0xDEADu */ /* 0x360569B4: cmp dword ptr [ebp - 0x2c], 0xdead */ 3677 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEADu); 3678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3679 _flag_k = FK_CMP; 3680 if (CMP_NE(_flag_a, _flag_b)) goto L_36056A5F; /* 0x360569BB: jne 0x36056a5f */ 3681 L_360569C1: 3682 ecx = MEM32(esi + 0x10); /* 0x360569C1: mov ecx, dword ptr [esi + 0x10] */ 3683 RECOMP_ICALL(ebx); /* 0x360569C4: call ebx */ 3684 RECOMP_FLAGS_IN(); 3685 edx = MEM32(eax); /* 0x360569C6: mov edx, dword ptr [eax] */ 3686 ecx = MEM32(eax + 0x4); /* 0x360569C8: mov ecx, dword ptr [eax + 4] */ 3687 MEM32(ebp + (-0x50)) = edx; /* 0x360569CB: mov dword ptr [ebp - 0x50], edx */ 3688 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x360569CE: fld dword ptr [ebp - 0x50] */ 3689 _st[0] -= (double)*(float*)ADDR(esi + 0x9C); /* 0x360569D1: fsub dword ptr [esi + 0x9c] */ 3690 edx = MEM32(eax + 0x8); /* 0x360569D7: mov edx, dword ptr [eax + 8] */ 3691 MEM32(ebp + (-0x4C)) = ecx; /* 0x360569DA: mov dword ptr [ebp - 0x4c], ecx */ 3692 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x360569DD: fld dword ptr [ebp - 0x4c] */ 3693 _st[0] -= (double)*(float*)ADDR(esi + 0xA0); /* 0x360569E0: fsub dword ptr [esi + 0xa0] */ 3694 MEM32(ebp + (-0x48)) = edx; /* 0x360569E6: mov dword ptr [ebp - 0x48], edx */ 3695 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x360569E9: fld dword ptr [ebp - 0x48] */ 3696 _st[0] -= (double)*(float*)ADDR(esi + 0xA4); /* 0x360569EC: fsub dword ptr [esi + 0xa4] */ 3697 fp_push(_st[0]); /* 0x360569F2: fld st(0) */ 3698 _st[0] *= _st[1]; /* 0x360569F4: fmul st(1) */ 3699 fp_push(_st[2]); /* 0x360569F6: fld st(2) */ 3700 _st[0] *= _st[3]; /* 0x360569F8: fmul st(3) */ 3701 { double _v = fp_pop(); _st[0] += _v; } /* 0x360569FA: faddp st(1) */ 3702 fp_push(_st[3]); /* 0x360569FC: fld st(3) */ 3703 _st[0] *= _st[4]; /* 0x360569FE: fmul st(4) */ 3704 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056A00: faddp st(1) */ 3705 _st[0] = sqrt(_st[0]); /* 0x36056A02: fsqrt */ 3706 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056A04: fstp st(3) */ 3707 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A06: fstp st(0) */ 3708 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A08: fstp st(0) */ 3709 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056A0A: fcomp qword ptr [0x36170808] */ 3710 fp_pop(); 3711 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056A10: fnstsw ax */ 3712 /* test HI8(eax), 0x41u */ /* 0x36056A12: test ah, 0x41 */ 3713 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3714 _cf = 0; 3715 _flag_k = FK_NARROW(FK_TEST, 24); 3716 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056A5F; /* 0x36056A15: jne 0x36056a5f */ 3717 L_36056A17: 3718 PUSH32(esp, 0x34u); /* 0x36056A17: push 0x34 */ 3719 RECOMP_ICALL(0x3615FD6Au); /* 0x36056A19: call 0x3615fd6a */ /* not lifted */ 3720 RECOMP_FLAGS_IN(); 3721 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3722 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3723 esp = esp + 4; /* 0x36056A1E: add esp, 4 */ 3724 _flag_k = FK_ADD; 3725 MEM32(ebp + (-0x14)) = eax; /* 0x36056A21: mov dword ptr [ebp - 0x14], eax */ 3726 /* test eax, eax */ /* 0x36056A24: test eax, eax */ 3727 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3728 _cf = 0; 3729 _flag_k = FK_TEST; 3730 MEM32(ebp + (-0x4)) = 1; /* 0x36056A26: mov dword ptr [ebp - 4], 1 */ 3731 if (TEST_Z(_flag_a, _flag_b)) goto L_36056A4B; /* 0x36056A2D: je 0x36056a4b */ 3732 L_36056A2F: 3733 ecx = MEM32(esi + 0x10); /* 0x36056A2F: mov ecx, dword ptr [esi + 0x10] */ 3734 PUSH32(esp, 0x362EA510u); /* 0x36056A32: push 0x362ea510 */ 3735 PUSH32(esp, 0x6Au); /* 0x36056A37: push 0x6a */ 3736 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3738 ecx = ecx + 4; /* 0x36056A39: add ecx, 4 */ 3739 _flag_k = FK_ADD; 3740 PUSH32(esp, 0x362EA510u); /* 0x36056A3C: push 0x362ea510 */ 3741 PUSH32(esp, ecx); /* 0x36056A41: push ecx */ 3742 ecx = eax; /* 0x36056A42: mov ecx, eax */ 3743 RECOMP_ICALL(0x3607D4B0u); /* 0x36056A44: call 0x3607d4b0 */ /* not lifted */ 3744 RECOMP_FLAGS_IN(); 3745 goto L_36056A4D; /* 0x36056A49: jmp 0x36056a4d */ 3746 L_36056A4B: 3747 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3748 eax = 0; /* 0x36056A4B: xor eax, eax */ 3749 _cf = 0; 3750 _flag_k = FK_TEST; 3751 L_36056A4D: 3752 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056A4D: mov dword ptr [ebp - 4], 0xffffffff */ 3753 MEM32(ebp + (-0x1C)) = eax; /* 0x36056A54: mov dword ptr [ebp - 0x1c], eax */ 3754 edx = ebp + (-0x1C); /* 0x36056A57: lea edx, [ebp - 0x1c] */ 3755 goto L_36056BDE; /* 0x36056A5A: jmp 0x36056bde */ 3756 L_36056A5F: 3757 /* cmp MEM32(ebp + (-0x2C)), 0xDEAEu */ /* 0x36056A5F: cmp dword ptr [ebp - 0x2c], 0xdeae */ 3758 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEAEu); 3759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3760 _flag_k = FK_CMP; 3761 if (CMP_NE(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056A66: jne 0x36056c03 */ 3762 L_36056A6C: 3763 edi = MEM32(0x3616FF70); /* 0x36056A6C: mov edi, dword ptr [0x3616ff70] */ 3764 ecx = esi + 0x78; /* 0x36056A72: lea ecx, [esi + 0x78] */ 3765 PUSH32(esp, ecx); /* 0x36056A75: push ecx */ 3766 RECOMP_ICALL(edi); /* 0x36056A76: call edi */ 3767 RECOMP_FLAGS_IN(); 3768 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3769 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3770 esp = esp + 4; /* 0x36056A78: add esp, 4 */ 3771 _flag_k = FK_ADD; 3772 /* test eax, eax */ /* 0x36056A7B: test eax, eax */ 3773 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3774 _cf = 0; 3775 _flag_k = FK_TEST; 3776 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B21; /* 0x36056A7D: je 0x36056b21 */ 3777 L_36056A83: 3778 ecx = eax; /* 0x36056A83: mov ecx, eax */ 3779 RECOMP_ICALL(ebx); /* 0x36056A85: call ebx */ 3780 RECOMP_FLAGS_IN(); 3781 ecx = MEM32(esi + 0x10); /* 0x36056A87: mov ecx, dword ptr [esi + 0x10] */ 3782 edi = eax; /* 0x36056A8A: mov edi, eax */ 3783 RECOMP_ICALL(ebx); /* 0x36056A8C: call ebx */ 3784 RECOMP_FLAGS_IN(); 3785 edx = MEM32(eax); /* 0x36056A8E: mov edx, dword ptr [eax] */ 3786 ecx = MEM32(eax + 0x4); /* 0x36056A90: mov ecx, dword ptr [eax + 4] */ 3787 MEM32(ebp + (-0x5C)) = edx; /* 0x36056A93: mov dword ptr [ebp - 0x5c], edx */ 3788 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36056A96: fld dword ptr [ebp - 0x5c] */ 3789 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056A99: fsub dword ptr [edi] */ 3790 edx = MEM32(eax + 0x8); /* 0x36056A9B: mov edx, dword ptr [eax + 8] */ 3791 MEM32(ebp + (-0x58)) = ecx; /* 0x36056A9E: mov dword ptr [ebp - 0x58], ecx */ 3792 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36056AA1: fld dword ptr [ebp - 0x58] */ 3793 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056AA4: fsub dword ptr [edi + 4] */ 3794 MEM32(ebp + (-0x54)) = edx; /* 0x36056AA7: mov dword ptr [ebp - 0x54], edx */ 3795 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36056AAA: fld dword ptr [ebp - 0x54] */ 3796 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056AAD: fsub dword ptr [edi + 8] */ 3797 fp_push(_st[0]); /* 0x36056AB0: fld st(0) */ 3798 _st[0] *= _st[1]; /* 0x36056AB2: fmul st(1) */ 3799 fp_push(_st[2]); /* 0x36056AB4: fld st(2) */ 3800 _st[0] *= _st[3]; /* 0x36056AB6: fmul st(3) */ 3801 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056AB8: faddp st(1) */ 3802 fp_push(_st[3]); /* 0x36056ABA: fld st(3) */ 3803 _st[0] *= _st[4]; /* 0x36056ABC: fmul st(4) */ 3804 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056ABE: faddp st(1) */ 3805 _st[0] = sqrt(_st[0]); /* 0x36056AC0: fsqrt */ 3806 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056AC2: fstp st(3) */ 3807 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC4: fstp st(0) */ 3808 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC6: fstp st(0) */ 3809 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056AC8: fcomp qword ptr [0x36170808] */ 3810 fp_pop(); 3811 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056ACE: fnstsw ax */ 3812 /* test HI8(eax), 0x41u */ /* 0x36056AD0: test ah, 0x41 */ 3813 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3814 _cf = 0; 3815 _flag_k = FK_NARROW(FK_TEST, 24); 3816 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056AD3: jne 0x36056c03 */ 3817 L_36056AD9: 3818 PUSH32(esp, 0x34u); /* 0x36056AD9: push 0x34 */ 3819 RECOMP_ICALL(0x3615FD6Au); /* 0x36056ADB: call 0x3615fd6a */ /* not lifted */ 3820 RECOMP_FLAGS_IN(); 3821 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3823 esp = esp + 4; /* 0x36056AE0: add esp, 4 */ 3824 _flag_k = FK_ADD; 3825 MEM32(ebp + (-0x14)) = eax; /* 0x36056AE3: mov dword ptr [ebp - 0x14], eax */ 3826 /* test eax, eax */ /* 0x36056AE6: test eax, eax */ 3827 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3828 _cf = 0; 3829 _flag_k = FK_TEST; 3830 MEM32(ebp + (-0x4)) = 2; /* 0x36056AE8: mov dword ptr [ebp - 4], 2 */ 3831 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B0D; /* 0x36056AEF: je 0x36056b0d */ 3832 L_36056AF1: 3833 ecx = MEM32(esi + 0x10); /* 0x36056AF1: mov ecx, dword ptr [esi + 0x10] */ 3834 PUSH32(esp, 0x362EA510u); /* 0x36056AF4: push 0x362ea510 */ 3835 PUSH32(esp, 0x6Eu); /* 0x36056AF9: push 0x6e */ 3836 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3838 ecx = ecx + 4; /* 0x36056AFB: add ecx, 4 */ 3839 _flag_k = FK_ADD; 3840 PUSH32(esp, 0x362EA510u); /* 0x36056AFE: push 0x362ea510 */ 3841 PUSH32(esp, ecx); /* 0x36056B03: push ecx */ 3842 ecx = eax; /* 0x36056B04: mov ecx, eax */ 3843 RECOMP_ICALL(0x3607D4B0u); /* 0x36056B06: call 0x3607d4b0 */ /* not lifted */ 3844 RECOMP_FLAGS_IN(); 3845 goto L_36056B0F; /* 0x36056B0B: jmp 0x36056b0f */ 3846 L_36056B0D: 3847 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3848 eax = 0; /* 0x36056B0D: xor eax, eax */ 3849 _cf = 0; 3850 _flag_k = FK_TEST; 3851 L_36056B0F: 3852 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056B0F: mov dword ptr [ebp - 4], 0xffffffff */ 3853 MEM32(ebp + (-0x20)) = eax; /* 0x36056B16: mov dword ptr [ebp - 0x20], eax */ 3854 edx = ebp + (-0x20); /* 0x36056B19: lea edx, [ebp - 0x20] */ 3855 goto L_36056BDE; /* 0x36056B1C: jmp 0x36056bde */ 3856 L_36056B21: 3857 ecx = MEM32(esi + 0x10); /* 0x36056B21: mov ecx, dword ptr [esi + 0x10] */ 3858 eax = MEM32(ecx + 0x150); /* 0x36056B24: mov eax, dword ptr [ecx + 0x150] */ 3859 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 3860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3861 eax = eax + 0xE4u; /* 0x36056B2A: add eax, 0xe4 */ 3862 _flag_k = FK_ADD; 3863 PUSH32(esp, eax); /* 0x36056B2F: push eax */ 3864 RECOMP_ICALL(edi); /* 0x36056B30: call edi */ 3865 RECOMP_FLAGS_IN(); 3866 ebx = eax; /* 0x36056B32: mov ebx, eax */ 3867 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3868 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3869 esp = esp + 4; /* 0x36056B34: add esp, 4 */ 3870 _flag_k = FK_ADD; 3871 /* test ebx, ebx */ /* 0x36056B37: test ebx, ebx */ 3872 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3873 _cf = 0; 3874 _flag_k = FK_TEST; 3875 if (TEST_Z(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B39: je 0x36056c03 */ 3876 L_36056B3F: 3877 ecx = ebx; /* 0x36056B3F: mov ecx, ebx */ 3878 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B41: call dword ptr [0x3616ffb0] */ 3879 RECOMP_FLAGS_IN(); 3880 ecx = MEM32(esi + 0x10); /* 0x36056B47: mov ecx, dword ptr [esi + 0x10] */ 3881 edi = eax; /* 0x36056B4A: mov edi, eax */ 3882 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B4C: call dword ptr [0x3616ffb0] */ 3883 RECOMP_FLAGS_IN(); 3884 edx = MEM32(eax); /* 0x36056B52: mov edx, dword ptr [eax] */ 3885 ecx = MEM32(eax + 0x4); /* 0x36056B54: mov ecx, dword ptr [eax + 4] */ 3886 MEM32(ebp + (-0x68)) = edx; /* 0x36056B57: mov dword ptr [ebp - 0x68], edx */ 3887 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36056B5A: fld dword ptr [ebp - 0x68] */ 3888 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056B5D: fsub dword ptr [edi] */ 3889 edx = MEM32(eax + 0x8); /* 0x36056B5F: mov edx, dword ptr [eax + 8] */ 3890 MEM32(ebp + (-0x64)) = ecx; /* 0x36056B62: mov dword ptr [ebp - 0x64], ecx */ 3891 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36056B65: fld dword ptr [ebp - 0x64] */ 3892 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056B68: fsub dword ptr [edi + 4] */ 3893 MEM32(ebp + (-0x60)) = edx; /* 0x36056B6B: mov dword ptr [ebp - 0x60], edx */ 3894 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36056B6E: fld dword ptr [ebp - 0x60] */ 3895 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056B71: fsub dword ptr [edi + 8] */ 3896 fp_push(_st[0]); /* 0x36056B74: fld st(0) */ 3897 _st[0] *= _st[1]; /* 0x36056B76: fmul st(1) */ 3898 fp_push(_st[2]); /* 0x36056B78: fld st(2) */ 3899 _st[0] *= _st[3]; /* 0x36056B7A: fmul st(3) */ 3900 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B7C: faddp st(1) */ 3901 fp_push(_st[3]); /* 0x36056B7E: fld st(3) */ 3902 _st[0] *= _st[4]; /* 0x36056B80: fmul st(4) */ 3903 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B82: faddp st(1) */ 3904 _st[0] = sqrt(_st[0]); /* 0x36056B84: fsqrt */ 3905 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056B86: fstp st(3) */ 3906 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B88: fstp st(0) */ 3907 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B8A: fstp st(0) */ 3908 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056B8C: fcomp qword ptr [0x36170808] */ 3909 fp_pop(); 3910 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056B92: fnstsw ax */ 3911 /* test HI8(eax), 0x41u */ /* 0x36056B94: test ah, 0x41 */ 3912 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 3913 _cf = 0; 3914 _flag_k = FK_NARROW(FK_TEST, 24); 3915 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B97: jne 0x36056c03 */ 3916 L_36056B99: 3917 PUSH32(esp, 0x34u); /* 0x36056B99: push 0x34 */ 3918 RECOMP_ICALL(0x3615FD6Au); /* 0x36056B9B: call 0x3615fd6a */ /* not lifted */ 3919 RECOMP_FLAGS_IN(); 3920 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3921 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3922 esp = esp + 4; /* 0x36056BA0: add esp, 4 */ 3923 _flag_k = FK_ADD; 3924 MEM32(ebp + (-0x14)) = eax; /* 0x36056BA3: mov dword ptr [ebp - 0x14], eax */ 3925 /* test eax, eax */ /* 0x36056BA6: test eax, eax */ 3926 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3927 _cf = 0; 3928 _flag_k = FK_TEST; 3929 MEM32(ebp + (-0x4)) = 3; /* 0x36056BA8: mov dword ptr [ebp - 4], 3 */ 3930 if (TEST_Z(_flag_a, _flag_b)) goto L_36056BCF; /* 0x36056BAF: je 0x36056bcf */ 3931 L_36056BB1: 3932 ecx = MEM32(esi + 0x10); /* 0x36056BB1: mov ecx, dword ptr [esi + 0x10] */ 3933 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 3934 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3935 ebx = ebx + 4; /* 0x36056BB4: add ebx, 4 */ 3936 _flag_k = FK_ADD; 3937 PUSH32(esp, ebx); /* 0x36056BB7: push ebx */ 3938 PUSH32(esp, 0x8Eu); /* 0x36056BB8: push 0x8e */ 3939 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3940 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3941 ecx = ecx + 4; /* 0x36056BBD: add ecx, 4 */ 3942 _flag_k = FK_ADD; 3943 PUSH32(esp, 0x362EA510u); /* 0x36056BC0: push 0x362ea510 */ 3944 PUSH32(esp, ecx); /* 0x36056BC5: push ecx */ 3945 ecx = eax; /* 0x36056BC6: mov ecx, eax */ 3946 RECOMP_ICALL(0x3607D4B0u); /* 0x36056BC8: call 0x3607d4b0 */ /* not lifted */ 3947 RECOMP_FLAGS_IN(); 3948 goto L_36056BD1; /* 0x36056BCD: jmp 0x36056bd1 */ 3949 L_36056BCF: 3950 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3951 eax = 0; /* 0x36056BCF: xor eax, eax */ 3952 _cf = 0; 3953 _flag_k = FK_TEST; 3954 L_36056BD1: 3955 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056BD1: mov dword ptr [ebp - 4], 0xffffffff */ 3956 MEM32(ebp + (-0x24)) = eax; /* 0x36056BD8: mov dword ptr [ebp - 0x24], eax */ 3957 edx = ebp + (-0x24); /* 0x36056BDB: lea edx, [ebp - 0x24] */ 3958 L_36056BDE: 3959 ecx = MEM32(esi + 0x10); /* 0x36056BDE: mov ecx, dword ptr [esi + 0x10] */ 3960 PUSH32(esp, edx); /* 0x36056BE1: push edx */ 3961 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36056BE2: call dword ptr [0x3617004c] */ 3962 RECOMP_FLAGS_IN(); 3963 eax = ebp + (-0x2C); /* 0x36056BE8: lea eax, [ebp - 0x2c] */ 3964 PUSH32(esp, eax); /* 0x36056BEB: push eax */ 3965 ecx = esi; /* 0x36056BEC: mov ecx, esi */ 3966 RECOMP_ICALL(0x36053160u); /* 0x36056BEE: call 0x36053160 */ /* not lifted */ 3967 RECOMP_FLAGS_IN(); 3968 ecx = MEM32(esi + 0x8C); /* 0x36056BF3: mov ecx, dword ptr [esi + 0x8c] */ 3969 edx = MEM32(ecx + 0x4); /* 0x36056BF9: mov edx, dword ptr [ecx + 4] */ 3970 eax = MEM32(edx); /* 0x36056BFC: mov eax, dword ptr [edx] */ 3971 MEM32(ebp + (-0x10)) = eax; /* 0x36056BFE: mov dword ptr [ebp - 0x10], eax */ 3972 goto L_36056C0B; /* 0x36056C01: jmp 0x36056c0b */ 3973 L_36056C03: 3974 ecx = MEM32(ebp + (-0x10)); /* 0x36056C03: mov ecx, dword ptr [ebp - 0x10] */ 3975 edx = MEM32(ecx); /* 0x36056C06: mov edx, dword ptr [ecx] */ 3976 MEM32(ebp + (-0x10)) = edx; /* 0x36056C08: mov dword ptr [ebp - 0x10], edx */ 3977 L_36056C0B: 3978 eax = MEM32(esi + 0x8C); /* 0x36056C0B: mov eax, dword ptr [esi + 0x8c] */ 3979 ecx = MEM32(ebp + (-0x10)); /* 0x36056C11: mov ecx, dword ptr [ebp - 0x10] */ 3980 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x36056C14: cmp ecx, dword ptr [eax + 4] */ 3981 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 3982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3983 _flag_k = FK_CMP; 3984 RECOMP_BACKEDGE(); 3985 if (CMP_NE(_flag_a, _flag_b)) goto L_360567E9; /* 0x36056C17: jne 0x360567e9 */ 3986 L_36056C1D: 3987 edi = POP32_VAL(esp); /* 0x36056C1D: pop edi */ 3988 ebx = POP32_VAL(esp); /* 0x36056C1E: pop ebx */ 3989 ecx = MEM32(ebp + (-0xC)); /* 0x36056C1F: mov ecx, dword ptr [ebp - 0xc] */ 3990 esi = POP32_VAL(esp); /* 0x36056C22: pop esi */ 3991 MEM32(FS_BASE + (0)) = ecx; /* 0x36056C23: mov dword ptr fs:[0], ecx */ 3992 esp = ebp; /* 0x36056C2A: mov esp, ebp */ 3993 ebp = POP32_VAL(esp); /* 0x36056C2C: pop ebp */ 3994 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36056C2D: ret */ 3995 RECOMP_REGS_OUT(); 3996 } 3997 3998 void sub_36056BDE(void) { 3999 int _fpu_cmp = 0; 4000 uint32_t _cf = 0; 4001 int _df = 1; 4002 uint32_t _flag_k = FK_NONE; 4003 uint32_t _flag_a = 0, _flag_b = 0; 4004 uint32_t _itail_tgt = 0; 4005 RECOMP_REGS_LOCALS 4006 RECOMP_ENTER(0x36056BDEu); 4007 4008 goto L_36056BDE; 4009 L_360567E9: 4010 ecx = MEM32(ebp + (-0x10)); /* 0x360567E9: mov ecx, dword ptr [ebp - 0x10] */ 4011 eax = ecx + 0x8; /* 0x360567EC: lea eax, [ecx + 8] */ 4012 ecx = ebp + (-0x2C); /* 0x360567EF: lea ecx, [ebp - 0x2c] */ 4013 /* cmp ecx, eax */ /* 0x360567F2: cmp ecx, eax */ 4014 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4016 _flag_k = FK_CMP; 4017 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056801; /* 0x360567F4: je 0x36056801 */ 4018 L_360567F6: 4019 edx = MEM32(eax); /* 0x360567F6: mov edx, dword ptr [eax] */ 4020 MEM32(ebp + (-0x2C)) = edx; /* 0x360567F8: mov dword ptr [ebp - 0x2c], edx */ 4021 eax = MEM32(eax + 0x4); /* 0x360567FB: mov eax, dword ptr [eax + 4] */ 4022 MEM32(ebp + (-0x28)) = eax; /* 0x360567FE: mov dword ptr [ebp - 0x28], eax */ 4023 L_36056801: 4024 PUSH32(esp, 0); /* 0x36056801: push 0 */ 4025 PUSH32(esp, 0x361B5C10u); /* 0x36056803: push 0x361b5c10 */ 4026 PUSH32(esp, 0x361B2CC0u); /* 0x36056808: push 0x361b2cc0 */ 4027 ecx = ebp + (-0x2C); /* 0x3605680D: lea ecx, [ebp - 0x2c] */ 4028 PUSH32(esp, 0); /* 0x36056810: push 0 */ 4029 PUSH32(esp, ecx); /* 0x36056812: push ecx */ 4030 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056813: call dword ptr [0x3616ff70] */ 4031 RECOMP_FLAGS_IN(); 4032 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4033 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4034 esp = esp + 4; /* 0x36056819: add esp, 4 */ 4035 _flag_k = FK_ADD; 4036 PUSH32(esp, eax); /* 0x3605681C: push eax */ 4037 RECOMP_ICALL(0x3615FD86u); /* 0x3605681D: call 0x3615fd86 */ /* not lifted */ 4038 RECOMP_FLAGS_IN(); 4039 edi = eax; /* 0x36056822: mov edi, eax */ 4040 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4041 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4042 esp = esp + 0x14u; /* 0x36056824: add esp, 0x14 */ 4043 _flag_k = FK_ADD; 4044 /* test edi, edi */ /* 0x36056827: test edi, edi */ 4045 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4046 _cf = 0; 4047 _flag_k = FK_TEST; 4048 if (TEST_Z(_flag_a, _flag_b)) goto L_360568FD; /* 0x36056829: je 0x360568fd */ 4049 L_3605682F: 4050 eax = MEM32(esi + 0x10); /* 0x3605682F: mov eax, dword ptr [esi + 0x10] */ 4051 edx = MEM32(edi + 0x11C); /* 0x36056832: mov edx, dword ptr [edi + 0x11c] */ 4052 ecx = MEM32(eax + 0x8); /* 0x36056838: mov ecx, dword ptr [eax + 8] */ 4053 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4054 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4055 eax = eax + 4; /* 0x3605683B: add eax, 4 */ 4056 _flag_k = FK_ADD; 4057 /* cmp edx, ecx */ /* 0x3605683E: cmp edx, ecx */ 4058 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4060 _flag_k = FK_CMP; 4061 if (CMP_NE(_flag_a, _flag_b)) goto L_36056850; /* 0x36056840: jne 0x36056850 */ 4062 L_36056842: 4063 ecx = MEM32(edi + 0x118); /* 0x36056842: mov ecx, dword ptr [edi + 0x118] */ 4064 /* cmp ecx, MEM32(eax) */ /* 0x36056848: cmp ecx, dword ptr [eax] */ 4065 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 4066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4067 _flag_k = FK_CMP; 4068 if (CMP_EQ(_flag_a, _flag_b)) goto L_360568FD; /* 0x3605684A: je 0x360568fd */ 4069 L_36056850: 4070 ebx = MEM32(0x3616FFB0); /* 0x36056850: mov ebx, dword ptr [0x3616ffb0] */ 4071 ecx = edi + 0x8C; /* 0x36056856: lea ecx, [edi + 0x8c] */ 4072 RECOMP_ICALL(ebx); /* 0x3605685C: call ebx */ 4073 RECOMP_FLAGS_IN(); 4074 ecx = MEM32(esi + 0x10); /* 0x3605685E: mov ecx, dword ptr [esi + 0x10] */ 4075 MEM32(ebp + (-0x14)) = eax; /* 0x36056861: mov dword ptr [ebp - 0x14], eax */ 4076 RECOMP_ICALL(ebx); /* 0x36056864: call ebx */ 4077 RECOMP_FLAGS_IN(); 4078 edx = MEM32(eax); /* 0x36056866: mov edx, dword ptr [eax] */ 4079 ecx = MEM32(eax + 0x4); /* 0x36056868: mov ecx, dword ptr [eax + 4] */ 4080 MEM32(ebp + (-0x38)) = edx; /* 0x3605686B: mov dword ptr [ebp - 0x38], edx */ 4081 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3605686E: fld dword ptr [ebp - 0x38] */ 4082 edx = MEM32(eax + 0x8); /* 0x36056871: mov edx, dword ptr [eax + 8] */ 4083 eax = MEM32(ebp + (-0x14)); /* 0x36056874: mov eax, dword ptr [ebp - 0x14] */ 4084 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36056877: fsub dword ptr [eax] */ 4085 MEM32(ebp + (-0x34)) = ecx; /* 0x36056879: mov dword ptr [ebp - 0x34], ecx */ 4086 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3605687C: fld dword ptr [ebp - 0x34] */ 4087 MEM32(ebp + (-0x30)) = edx; /* 0x3605687F: mov dword ptr [ebp - 0x30], edx */ 4088 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x36056882: fsub dword ptr [eax + 4] */ 4089 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36056885: fld dword ptr [ebp - 0x30] */ 4090 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x36056888: fsub dword ptr [eax + 8] */ 4091 fp_push(_st[0]); /* 0x3605688B: fld st(0) */ 4092 _st[0] *= _st[1]; /* 0x3605688D: fmul st(1) */ 4093 fp_push(_st[2]); /* 0x3605688F: fld st(2) */ 4094 _st[0] *= _st[3]; /* 0x36056891: fmul st(3) */ 4095 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056893: faddp st(1) */ 4096 fp_push(_st[3]); /* 0x36056895: fld st(3) */ 4097 _st[0] *= _st[4]; /* 0x36056897: fmul st(4) */ 4098 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056899: faddp st(1) */ 4099 _st[0] = sqrt(_st[0]); /* 0x3605689B: fsqrt */ 4100 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605689D: fstp st(3) */ 4101 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605689F: fstp st(0) */ 4102 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360568A1: fstp st(0) */ 4103 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x360568A3: fcomp qword ptr [0x36170808] */ 4104 fp_pop(); 4105 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360568A9: fnstsw ax */ 4106 /* test HI8(eax), 0x41u */ /* 0x360568AB: test ah, 0x41 */ 4107 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4108 _cf = 0; 4109 _flag_k = FK_NARROW(FK_TEST, 24); 4110 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056903; /* 0x360568AE: jne 0x36056903 */ 4111 L_360568B0: 4112 PUSH32(esp, 0x34u); /* 0x360568B0: push 0x34 */ 4113 RECOMP_ICALL(0x3615FD6Au); /* 0x360568B2: call 0x3615fd6a */ /* not lifted */ 4114 RECOMP_FLAGS_IN(); 4115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4117 esp = esp + 4; /* 0x360568B7: add esp, 4 */ 4118 _flag_k = FK_ADD; 4119 MEM32(ebp + (-0x14)) = eax; /* 0x360568BA: mov dword ptr [ebp - 0x14], eax */ 4120 /* test eax, eax */ /* 0x360568BD: test eax, eax */ 4121 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4122 _cf = 0; 4123 _flag_k = FK_TEST; 4124 MEM32(ebp + (-0x4)) = 0; /* 0x360568BF: mov dword ptr [ebp - 4], 0 */ 4125 if (TEST_Z(_flag_a, _flag_b)) goto L_360568E9; /* 0x360568C6: je 0x360568e9 */ 4126 L_360568C8: 4127 ecx = MEM32(esi + 0x10); /* 0x360568C8: mov ecx, dword ptr [esi + 0x10] */ 4128 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x90u); 4129 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4130 edi = edi + 0x90u; /* 0x360568CB: add edi, 0x90 */ 4131 _flag_k = FK_ADD; 4132 PUSH32(esp, edi); /* 0x360568D1: push edi */ 4133 PUSH32(esp, 0x8Eu); /* 0x360568D2: push 0x8e */ 4134 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4135 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4136 ecx = ecx + 4; /* 0x360568D7: add ecx, 4 */ 4137 _flag_k = FK_ADD; 4138 PUSH32(esp, 0x362EA510u); /* 0x360568DA: push 0x362ea510 */ 4139 PUSH32(esp, ecx); /* 0x360568DF: push ecx */ 4140 ecx = eax; /* 0x360568E0: mov ecx, eax */ 4141 RECOMP_ICALL(0x3607D4B0u); /* 0x360568E2: call 0x3607d4b0 */ /* not lifted */ 4142 RECOMP_FLAGS_IN(); 4143 goto L_360568EB; /* 0x360568E7: jmp 0x360568eb */ 4144 L_360568E9: 4145 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4146 eax = 0; /* 0x360568E9: xor eax, eax */ 4147 _cf = 0; 4148 _flag_k = FK_TEST; 4149 L_360568EB: 4150 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360568EB: mov dword ptr [ebp - 4], 0xffffffff */ 4151 MEM32(ebp + (-0x18)) = eax; /* 0x360568F2: mov dword ptr [ebp - 0x18], eax */ 4152 edx = ebp + (-0x18); /* 0x360568F5: lea edx, [ebp - 0x18] */ 4153 goto L_36056BDE; /* 0x360568F8: jmp 0x36056bde */ 4154 L_360568FD: 4155 ebx = MEM32(0x3616FFB0); /* 0x360568FD: mov ebx, dword ptr [0x3616ffb0] */ 4156 L_36056903: 4157 /* cmp MEM32(ebp + (-0x2C)), 0xC350u */ /* 0x36056903: cmp dword ptr [ebp - 0x2c], 0xc350 */ 4158 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xC350u); 4159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4160 _flag_k = FK_CMP; 4161 if (CMP_NE(_flag_a, _flag_b)) goto L_360569B4; /* 0x3605690A: jne 0x360569b4 */ 4162 L_36056910: 4163 PUSH32(esp, 0); /* 0x36056910: push 0 */ 4164 PUSH32(esp, 0x361B2CD8u); /* 0x36056912: push 0x361b2cd8 */ 4165 PUSH32(esp, 0x361B2CC0u); /* 0x36056917: push 0x361b2cc0 */ 4166 ecx = ebp + (-0x2C); /* 0x3605691C: lea ecx, [ebp - 0x2c] */ 4167 PUSH32(esp, 0); /* 0x3605691F: push 0 */ 4168 PUSH32(esp, ecx); /* 0x36056921: push ecx */ 4169 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056922: call dword ptr [0x3616ff70] */ 4170 RECOMP_FLAGS_IN(); 4171 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4173 esp = esp + 4; /* 0x36056928: add esp, 4 */ 4174 _flag_k = FK_ADD; 4175 PUSH32(esp, eax); /* 0x3605692B: push eax */ 4176 RECOMP_ICALL(0x3615FD86u); /* 0x3605692C: call 0x3615fd86 */ /* not lifted */ 4177 RECOMP_FLAGS_IN(); 4178 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4180 esp = esp + 0x14u; /* 0x36056931: add esp, 0x14 */ 4181 _flag_k = FK_ADD; 4182 /* test eax, eax */ /* 0x36056934: test eax, eax */ 4183 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4184 _cf = 0; 4185 _flag_k = FK_TEST; 4186 MEM32(ebp + (-0x14)) = eax; /* 0x36056936: mov dword ptr [ebp - 0x14], eax */ 4187 if (TEST_Z(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056939: je 0x360569b4 */ 4188 L_3605693B: 4189 ecx = eax; /* 0x3605693B: mov ecx, eax */ 4190 RECOMP_ICALL(ebx); /* 0x3605693D: call ebx */ 4191 RECOMP_FLAGS_IN(); 4192 ecx = MEM32(esi + 0x10); /* 0x3605693F: mov ecx, dword ptr [esi + 0x10] */ 4193 edi = eax; /* 0x36056942: mov edi, eax */ 4194 RECOMP_ICALL(ebx); /* 0x36056944: call ebx */ 4195 RECOMP_FLAGS_IN(); 4196 edx = MEM32(eax); /* 0x36056946: mov edx, dword ptr [eax] */ 4197 ecx = MEM32(eax + 0x4); /* 0x36056948: mov ecx, dword ptr [eax + 4] */ 4198 MEM32(ebp + (-0x44)) = edx; /* 0x3605694B: mov dword ptr [ebp - 0x44], edx */ 4199 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3605694E: fld dword ptr [ebp - 0x44] */ 4200 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056951: fsub dword ptr [edi] */ 4201 edx = MEM32(eax + 0x8); /* 0x36056953: mov edx, dword ptr [eax + 8] */ 4202 MEM32(ebp + (-0x40)) = ecx; /* 0x36056956: mov dword ptr [ebp - 0x40], ecx */ 4203 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36056959: fld dword ptr [ebp - 0x40] */ 4204 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3605695C: fsub dword ptr [edi + 4] */ 4205 MEM32(ebp + (-0x3C)) = edx; /* 0x3605695F: mov dword ptr [ebp - 0x3c], edx */ 4206 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36056962: fld dword ptr [ebp - 0x3c] */ 4207 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056965: fsub dword ptr [edi + 8] */ 4208 fp_push(_st[0]); /* 0x36056968: fld st(0) */ 4209 _st[0] *= _st[1]; /* 0x3605696A: fmul st(1) */ 4210 fp_push(_st[2]); /* 0x3605696C: fld st(2) */ 4211 _st[0] *= _st[3]; /* 0x3605696E: fmul st(3) */ 4212 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056970: faddp st(1) */ 4213 fp_push(_st[3]); /* 0x36056972: fld st(3) */ 4214 _st[0] *= _st[4]; /* 0x36056974: fmul st(4) */ 4215 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056976: faddp st(1) */ 4216 _st[0] = sqrt(_st[0]); /* 0x36056978: fsqrt */ 4217 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605697A: fstp st(3) */ 4218 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697C: fstp st(0) */ 4219 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697E: fstp st(0) */ 4220 RECOMP_ICALL(0x3615FD8Cu); /* 0x36056980: call 0x3615fd8c */ /* not lifted */ 4221 RECOMP_FLAGS_IN(); 4222 /* cmp eax, 2 */ /* 0x36056985: cmp eax, 2 */ 4223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4225 _flag_k = FK_CMP; 4226 if (CMP_G(_flag_a, _flag_b)) goto L_36056996; /* 0x36056988: jg 0x36056996 */ 4227 L_3605698A: 4228 eax = MEM32(ebp + (-0x14)); /* 0x3605698A: mov eax, dword ptr [ebp - 0x14] */ 4229 /* test MEM8(eax + 0x11C), 0x10u */ /* 0x3605698D: test byte ptr [eax + 0x11c], 0x10 */ 4230 _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 4231 _cf = 0; 4232 _flag_k = FK_NARROW(FK_TEST, 24); 4233 if (TEST_NZ(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056994: jne 0x360569b4 */ 4234 L_36056996: 4235 ecx = ebp + (-0x2C); /* 0x36056996: lea ecx, [ebp - 0x2c] */ 4236 PUSH32(esp, ecx); /* 0x36056999: push ecx */ 4237 ecx = esi; /* 0x3605699A: mov ecx, esi */ 4238 RECOMP_ICALL(0x36053160u); /* 0x3605699C: call 0x36053160 */ /* not lifted */ 4239 RECOMP_FLAGS_IN(); 4240 edx = MEM32(esi + 0x8C); /* 0x360569A1: mov edx, dword ptr [esi + 0x8c] */ 4241 eax = MEM32(edx + 0x4); /* 0x360569A7: mov eax, dword ptr [edx + 4] */ 4242 ecx = MEM32(eax); /* 0x360569AA: mov ecx, dword ptr [eax] */ 4243 MEM32(ebp + (-0x10)) = ecx; /* 0x360569AC: mov dword ptr [ebp - 0x10], ecx */ 4244 goto L_36056C0B; /* 0x360569AF: jmp 0x36056c0b */ 4245 L_360569B4: 4246 /* cmp MEM32(ebp + (-0x2C)), 0xDEADu */ /* 0x360569B4: cmp dword ptr [ebp - 0x2c], 0xdead */ 4247 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEADu); 4248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4249 _flag_k = FK_CMP; 4250 if (CMP_NE(_flag_a, _flag_b)) goto L_36056A5F; /* 0x360569BB: jne 0x36056a5f */ 4251 L_360569C1: 4252 ecx = MEM32(esi + 0x10); /* 0x360569C1: mov ecx, dword ptr [esi + 0x10] */ 4253 RECOMP_ICALL(ebx); /* 0x360569C4: call ebx */ 4254 RECOMP_FLAGS_IN(); 4255 edx = MEM32(eax); /* 0x360569C6: mov edx, dword ptr [eax] */ 4256 ecx = MEM32(eax + 0x4); /* 0x360569C8: mov ecx, dword ptr [eax + 4] */ 4257 MEM32(ebp + (-0x50)) = edx; /* 0x360569CB: mov dword ptr [ebp - 0x50], edx */ 4258 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x360569CE: fld dword ptr [ebp - 0x50] */ 4259 _st[0] -= (double)*(float*)ADDR(esi + 0x9C); /* 0x360569D1: fsub dword ptr [esi + 0x9c] */ 4260 edx = MEM32(eax + 0x8); /* 0x360569D7: mov edx, dword ptr [eax + 8] */ 4261 MEM32(ebp + (-0x4C)) = ecx; /* 0x360569DA: mov dword ptr [ebp - 0x4c], ecx */ 4262 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x360569DD: fld dword ptr [ebp - 0x4c] */ 4263 _st[0] -= (double)*(float*)ADDR(esi + 0xA0); /* 0x360569E0: fsub dword ptr [esi + 0xa0] */ 4264 MEM32(ebp + (-0x48)) = edx; /* 0x360569E6: mov dword ptr [ebp - 0x48], edx */ 4265 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x360569E9: fld dword ptr [ebp - 0x48] */ 4266 _st[0] -= (double)*(float*)ADDR(esi + 0xA4); /* 0x360569EC: fsub dword ptr [esi + 0xa4] */ 4267 fp_push(_st[0]); /* 0x360569F2: fld st(0) */ 4268 _st[0] *= _st[1]; /* 0x360569F4: fmul st(1) */ 4269 fp_push(_st[2]); /* 0x360569F6: fld st(2) */ 4270 _st[0] *= _st[3]; /* 0x360569F8: fmul st(3) */ 4271 { double _v = fp_pop(); _st[0] += _v; } /* 0x360569FA: faddp st(1) */ 4272 fp_push(_st[3]); /* 0x360569FC: fld st(3) */ 4273 _st[0] *= _st[4]; /* 0x360569FE: fmul st(4) */ 4274 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056A00: faddp st(1) */ 4275 _st[0] = sqrt(_st[0]); /* 0x36056A02: fsqrt */ 4276 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056A04: fstp st(3) */ 4277 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A06: fstp st(0) */ 4278 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A08: fstp st(0) */ 4279 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056A0A: fcomp qword ptr [0x36170808] */ 4280 fp_pop(); 4281 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056A10: fnstsw ax */ 4282 /* test HI8(eax), 0x41u */ /* 0x36056A12: test ah, 0x41 */ 4283 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4284 _cf = 0; 4285 _flag_k = FK_NARROW(FK_TEST, 24); 4286 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056A5F; /* 0x36056A15: jne 0x36056a5f */ 4287 L_36056A17: 4288 PUSH32(esp, 0x34u); /* 0x36056A17: push 0x34 */ 4289 RECOMP_ICALL(0x3615FD6Au); /* 0x36056A19: call 0x3615fd6a */ /* not lifted */ 4290 RECOMP_FLAGS_IN(); 4291 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4292 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4293 esp = esp + 4; /* 0x36056A1E: add esp, 4 */ 4294 _flag_k = FK_ADD; 4295 MEM32(ebp + (-0x14)) = eax; /* 0x36056A21: mov dword ptr [ebp - 0x14], eax */ 4296 /* test eax, eax */ /* 0x36056A24: test eax, eax */ 4297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4298 _cf = 0; 4299 _flag_k = FK_TEST; 4300 MEM32(ebp + (-0x4)) = 1; /* 0x36056A26: mov dword ptr [ebp - 4], 1 */ 4301 if (TEST_Z(_flag_a, _flag_b)) goto L_36056A4B; /* 0x36056A2D: je 0x36056a4b */ 4302 L_36056A2F: 4303 ecx = MEM32(esi + 0x10); /* 0x36056A2F: mov ecx, dword ptr [esi + 0x10] */ 4304 PUSH32(esp, 0x362EA510u); /* 0x36056A32: push 0x362ea510 */ 4305 PUSH32(esp, 0x6Au); /* 0x36056A37: push 0x6a */ 4306 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4308 ecx = ecx + 4; /* 0x36056A39: add ecx, 4 */ 4309 _flag_k = FK_ADD; 4310 PUSH32(esp, 0x362EA510u); /* 0x36056A3C: push 0x362ea510 */ 4311 PUSH32(esp, ecx); /* 0x36056A41: push ecx */ 4312 ecx = eax; /* 0x36056A42: mov ecx, eax */ 4313 RECOMP_ICALL(0x3607D4B0u); /* 0x36056A44: call 0x3607d4b0 */ /* not lifted */ 4314 RECOMP_FLAGS_IN(); 4315 goto L_36056A4D; /* 0x36056A49: jmp 0x36056a4d */ 4316 L_36056A4B: 4317 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4318 eax = 0; /* 0x36056A4B: xor eax, eax */ 4319 _cf = 0; 4320 _flag_k = FK_TEST; 4321 L_36056A4D: 4322 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056A4D: mov dword ptr [ebp - 4], 0xffffffff */ 4323 MEM32(ebp + (-0x1C)) = eax; /* 0x36056A54: mov dword ptr [ebp - 0x1c], eax */ 4324 edx = ebp + (-0x1C); /* 0x36056A57: lea edx, [ebp - 0x1c] */ 4325 goto L_36056BDE; /* 0x36056A5A: jmp 0x36056bde */ 4326 L_36056A5F: 4327 /* cmp MEM32(ebp + (-0x2C)), 0xDEAEu */ /* 0x36056A5F: cmp dword ptr [ebp - 0x2c], 0xdeae */ 4328 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEAEu); 4329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4330 _flag_k = FK_CMP; 4331 if (CMP_NE(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056A66: jne 0x36056c03 */ 4332 L_36056A6C: 4333 edi = MEM32(0x3616FF70); /* 0x36056A6C: mov edi, dword ptr [0x3616ff70] */ 4334 ecx = esi + 0x78; /* 0x36056A72: lea ecx, [esi + 0x78] */ 4335 PUSH32(esp, ecx); /* 0x36056A75: push ecx */ 4336 RECOMP_ICALL(edi); /* 0x36056A76: call edi */ 4337 RECOMP_FLAGS_IN(); 4338 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4340 esp = esp + 4; /* 0x36056A78: add esp, 4 */ 4341 _flag_k = FK_ADD; 4342 /* test eax, eax */ /* 0x36056A7B: test eax, eax */ 4343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4344 _cf = 0; 4345 _flag_k = FK_TEST; 4346 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B21; /* 0x36056A7D: je 0x36056b21 */ 4347 L_36056A83: 4348 ecx = eax; /* 0x36056A83: mov ecx, eax */ 4349 RECOMP_ICALL(ebx); /* 0x36056A85: call ebx */ 4350 RECOMP_FLAGS_IN(); 4351 ecx = MEM32(esi + 0x10); /* 0x36056A87: mov ecx, dword ptr [esi + 0x10] */ 4352 edi = eax; /* 0x36056A8A: mov edi, eax */ 4353 RECOMP_ICALL(ebx); /* 0x36056A8C: call ebx */ 4354 RECOMP_FLAGS_IN(); 4355 edx = MEM32(eax); /* 0x36056A8E: mov edx, dword ptr [eax] */ 4356 ecx = MEM32(eax + 0x4); /* 0x36056A90: mov ecx, dword ptr [eax + 4] */ 4357 MEM32(ebp + (-0x5C)) = edx; /* 0x36056A93: mov dword ptr [ebp - 0x5c], edx */ 4358 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36056A96: fld dword ptr [ebp - 0x5c] */ 4359 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056A99: fsub dword ptr [edi] */ 4360 edx = MEM32(eax + 0x8); /* 0x36056A9B: mov edx, dword ptr [eax + 8] */ 4361 MEM32(ebp + (-0x58)) = ecx; /* 0x36056A9E: mov dword ptr [ebp - 0x58], ecx */ 4362 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36056AA1: fld dword ptr [ebp - 0x58] */ 4363 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056AA4: fsub dword ptr [edi + 4] */ 4364 MEM32(ebp + (-0x54)) = edx; /* 0x36056AA7: mov dword ptr [ebp - 0x54], edx */ 4365 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36056AAA: fld dword ptr [ebp - 0x54] */ 4366 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056AAD: fsub dword ptr [edi + 8] */ 4367 fp_push(_st[0]); /* 0x36056AB0: fld st(0) */ 4368 _st[0] *= _st[1]; /* 0x36056AB2: fmul st(1) */ 4369 fp_push(_st[2]); /* 0x36056AB4: fld st(2) */ 4370 _st[0] *= _st[3]; /* 0x36056AB6: fmul st(3) */ 4371 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056AB8: faddp st(1) */ 4372 fp_push(_st[3]); /* 0x36056ABA: fld st(3) */ 4373 _st[0] *= _st[4]; /* 0x36056ABC: fmul st(4) */ 4374 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056ABE: faddp st(1) */ 4375 _st[0] = sqrt(_st[0]); /* 0x36056AC0: fsqrt */ 4376 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056AC2: fstp st(3) */ 4377 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC4: fstp st(0) */ 4378 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC6: fstp st(0) */ 4379 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056AC8: fcomp qword ptr [0x36170808] */ 4380 fp_pop(); 4381 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056ACE: fnstsw ax */ 4382 /* test HI8(eax), 0x41u */ /* 0x36056AD0: test ah, 0x41 */ 4383 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4384 _cf = 0; 4385 _flag_k = FK_NARROW(FK_TEST, 24); 4386 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056AD3: jne 0x36056c03 */ 4387 L_36056AD9: 4388 PUSH32(esp, 0x34u); /* 0x36056AD9: push 0x34 */ 4389 RECOMP_ICALL(0x3615FD6Au); /* 0x36056ADB: call 0x3615fd6a */ /* not lifted */ 4390 RECOMP_FLAGS_IN(); 4391 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4392 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4393 esp = esp + 4; /* 0x36056AE0: add esp, 4 */ 4394 _flag_k = FK_ADD; 4395 MEM32(ebp + (-0x14)) = eax; /* 0x36056AE3: mov dword ptr [ebp - 0x14], eax */ 4396 /* test eax, eax */ /* 0x36056AE6: test eax, eax */ 4397 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4398 _cf = 0; 4399 _flag_k = FK_TEST; 4400 MEM32(ebp + (-0x4)) = 2; /* 0x36056AE8: mov dword ptr [ebp - 4], 2 */ 4401 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B0D; /* 0x36056AEF: je 0x36056b0d */ 4402 L_36056AF1: 4403 ecx = MEM32(esi + 0x10); /* 0x36056AF1: mov ecx, dword ptr [esi + 0x10] */ 4404 PUSH32(esp, 0x362EA510u); /* 0x36056AF4: push 0x362ea510 */ 4405 PUSH32(esp, 0x6Eu); /* 0x36056AF9: push 0x6e */ 4406 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4408 ecx = ecx + 4; /* 0x36056AFB: add ecx, 4 */ 4409 _flag_k = FK_ADD; 4410 PUSH32(esp, 0x362EA510u); /* 0x36056AFE: push 0x362ea510 */ 4411 PUSH32(esp, ecx); /* 0x36056B03: push ecx */ 4412 ecx = eax; /* 0x36056B04: mov ecx, eax */ 4413 RECOMP_ICALL(0x3607D4B0u); /* 0x36056B06: call 0x3607d4b0 */ /* not lifted */ 4414 RECOMP_FLAGS_IN(); 4415 goto L_36056B0F; /* 0x36056B0B: jmp 0x36056b0f */ 4416 L_36056B0D: 4417 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4418 eax = 0; /* 0x36056B0D: xor eax, eax */ 4419 _cf = 0; 4420 _flag_k = FK_TEST; 4421 L_36056B0F: 4422 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056B0F: mov dword ptr [ebp - 4], 0xffffffff */ 4423 MEM32(ebp + (-0x20)) = eax; /* 0x36056B16: mov dword ptr [ebp - 0x20], eax */ 4424 edx = ebp + (-0x20); /* 0x36056B19: lea edx, [ebp - 0x20] */ 4425 goto L_36056BDE; /* 0x36056B1C: jmp 0x36056bde */ 4426 L_36056B21: 4427 ecx = MEM32(esi + 0x10); /* 0x36056B21: mov ecx, dword ptr [esi + 0x10] */ 4428 eax = MEM32(ecx + 0x150); /* 0x36056B24: mov eax, dword ptr [ecx + 0x150] */ 4429 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 4430 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4431 eax = eax + 0xE4u; /* 0x36056B2A: add eax, 0xe4 */ 4432 _flag_k = FK_ADD; 4433 PUSH32(esp, eax); /* 0x36056B2F: push eax */ 4434 RECOMP_ICALL(edi); /* 0x36056B30: call edi */ 4435 RECOMP_FLAGS_IN(); 4436 ebx = eax; /* 0x36056B32: mov ebx, eax */ 4437 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4438 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4439 esp = esp + 4; /* 0x36056B34: add esp, 4 */ 4440 _flag_k = FK_ADD; 4441 /* test ebx, ebx */ /* 0x36056B37: test ebx, ebx */ 4442 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4443 _cf = 0; 4444 _flag_k = FK_TEST; 4445 if (TEST_Z(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B39: je 0x36056c03 */ 4446 L_36056B3F: 4447 ecx = ebx; /* 0x36056B3F: mov ecx, ebx */ 4448 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B41: call dword ptr [0x3616ffb0] */ 4449 RECOMP_FLAGS_IN(); 4450 ecx = MEM32(esi + 0x10); /* 0x36056B47: mov ecx, dword ptr [esi + 0x10] */ 4451 edi = eax; /* 0x36056B4A: mov edi, eax */ 4452 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B4C: call dword ptr [0x3616ffb0] */ 4453 RECOMP_FLAGS_IN(); 4454 edx = MEM32(eax); /* 0x36056B52: mov edx, dword ptr [eax] */ 4455 ecx = MEM32(eax + 0x4); /* 0x36056B54: mov ecx, dword ptr [eax + 4] */ 4456 MEM32(ebp + (-0x68)) = edx; /* 0x36056B57: mov dword ptr [ebp - 0x68], edx */ 4457 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36056B5A: fld dword ptr [ebp - 0x68] */ 4458 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056B5D: fsub dword ptr [edi] */ 4459 edx = MEM32(eax + 0x8); /* 0x36056B5F: mov edx, dword ptr [eax + 8] */ 4460 MEM32(ebp + (-0x64)) = ecx; /* 0x36056B62: mov dword ptr [ebp - 0x64], ecx */ 4461 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36056B65: fld dword ptr [ebp - 0x64] */ 4462 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056B68: fsub dword ptr [edi + 4] */ 4463 MEM32(ebp + (-0x60)) = edx; /* 0x36056B6B: mov dword ptr [ebp - 0x60], edx */ 4464 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36056B6E: fld dword ptr [ebp - 0x60] */ 4465 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056B71: fsub dword ptr [edi + 8] */ 4466 fp_push(_st[0]); /* 0x36056B74: fld st(0) */ 4467 _st[0] *= _st[1]; /* 0x36056B76: fmul st(1) */ 4468 fp_push(_st[2]); /* 0x36056B78: fld st(2) */ 4469 _st[0] *= _st[3]; /* 0x36056B7A: fmul st(3) */ 4470 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B7C: faddp st(1) */ 4471 fp_push(_st[3]); /* 0x36056B7E: fld st(3) */ 4472 _st[0] *= _st[4]; /* 0x36056B80: fmul st(4) */ 4473 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B82: faddp st(1) */ 4474 _st[0] = sqrt(_st[0]); /* 0x36056B84: fsqrt */ 4475 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056B86: fstp st(3) */ 4476 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B88: fstp st(0) */ 4477 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B8A: fstp st(0) */ 4478 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056B8C: fcomp qword ptr [0x36170808] */ 4479 fp_pop(); 4480 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056B92: fnstsw ax */ 4481 /* test HI8(eax), 0x41u */ /* 0x36056B94: test ah, 0x41 */ 4482 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4483 _cf = 0; 4484 _flag_k = FK_NARROW(FK_TEST, 24); 4485 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B97: jne 0x36056c03 */ 4486 L_36056B99: 4487 PUSH32(esp, 0x34u); /* 0x36056B99: push 0x34 */ 4488 RECOMP_ICALL(0x3615FD6Au); /* 0x36056B9B: call 0x3615fd6a */ /* not lifted */ 4489 RECOMP_FLAGS_IN(); 4490 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4492 esp = esp + 4; /* 0x36056BA0: add esp, 4 */ 4493 _flag_k = FK_ADD; 4494 MEM32(ebp + (-0x14)) = eax; /* 0x36056BA3: mov dword ptr [ebp - 0x14], eax */ 4495 /* test eax, eax */ /* 0x36056BA6: test eax, eax */ 4496 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4497 _cf = 0; 4498 _flag_k = FK_TEST; 4499 MEM32(ebp + (-0x4)) = 3; /* 0x36056BA8: mov dword ptr [ebp - 4], 3 */ 4500 if (TEST_Z(_flag_a, _flag_b)) goto L_36056BCF; /* 0x36056BAF: je 0x36056bcf */ 4501 L_36056BB1: 4502 ecx = MEM32(esi + 0x10); /* 0x36056BB1: mov ecx, dword ptr [esi + 0x10] */ 4503 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 4504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4505 ebx = ebx + 4; /* 0x36056BB4: add ebx, 4 */ 4506 _flag_k = FK_ADD; 4507 PUSH32(esp, ebx); /* 0x36056BB7: push ebx */ 4508 PUSH32(esp, 0x8Eu); /* 0x36056BB8: push 0x8e */ 4509 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4510 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4511 ecx = ecx + 4; /* 0x36056BBD: add ecx, 4 */ 4512 _flag_k = FK_ADD; 4513 PUSH32(esp, 0x362EA510u); /* 0x36056BC0: push 0x362ea510 */ 4514 PUSH32(esp, ecx); /* 0x36056BC5: push ecx */ 4515 ecx = eax; /* 0x36056BC6: mov ecx, eax */ 4516 RECOMP_ICALL(0x3607D4B0u); /* 0x36056BC8: call 0x3607d4b0 */ /* not lifted */ 4517 RECOMP_FLAGS_IN(); 4518 goto L_36056BD1; /* 0x36056BCD: jmp 0x36056bd1 */ 4519 L_36056BCF: 4520 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4521 eax = 0; /* 0x36056BCF: xor eax, eax */ 4522 _cf = 0; 4523 _flag_k = FK_TEST; 4524 L_36056BD1: 4525 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056BD1: mov dword ptr [ebp - 4], 0xffffffff */ 4526 MEM32(ebp + (-0x24)) = eax; /* 0x36056BD8: mov dword ptr [ebp - 0x24], eax */ 4527 edx = ebp + (-0x24); /* 0x36056BDB: lea edx, [ebp - 0x24] */ 4528 L_36056BDE: 4529 ecx = MEM32(esi + 0x10); /* 0x36056BDE: mov ecx, dword ptr [esi + 0x10] */ 4530 PUSH32(esp, edx); /* 0x36056BE1: push edx */ 4531 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36056BE2: call dword ptr [0x3617004c] */ 4532 RECOMP_FLAGS_IN(); 4533 eax = ebp + (-0x2C); /* 0x36056BE8: lea eax, [ebp - 0x2c] */ 4534 PUSH32(esp, eax); /* 0x36056BEB: push eax */ 4535 ecx = esi; /* 0x36056BEC: mov ecx, esi */ 4536 RECOMP_ICALL(0x36053160u); /* 0x36056BEE: call 0x36053160 */ /* not lifted */ 4537 RECOMP_FLAGS_IN(); 4538 ecx = MEM32(esi + 0x8C); /* 0x36056BF3: mov ecx, dword ptr [esi + 0x8c] */ 4539 edx = MEM32(ecx + 0x4); /* 0x36056BF9: mov edx, dword ptr [ecx + 4] */ 4540 eax = MEM32(edx); /* 0x36056BFC: mov eax, dword ptr [edx] */ 4541 MEM32(ebp + (-0x10)) = eax; /* 0x36056BFE: mov dword ptr [ebp - 0x10], eax */ 4542 goto L_36056C0B; /* 0x36056C01: jmp 0x36056c0b */ 4543 L_36056C03: 4544 ecx = MEM32(ebp + (-0x10)); /* 0x36056C03: mov ecx, dword ptr [ebp - 0x10] */ 4545 edx = MEM32(ecx); /* 0x36056C06: mov edx, dword ptr [ecx] */ 4546 MEM32(ebp + (-0x10)) = edx; /* 0x36056C08: mov dword ptr [ebp - 0x10], edx */ 4547 L_36056C0B: 4548 eax = MEM32(esi + 0x8C); /* 0x36056C0B: mov eax, dword ptr [esi + 0x8c] */ 4549 ecx = MEM32(ebp + (-0x10)); /* 0x36056C11: mov ecx, dword ptr [ebp - 0x10] */ 4550 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x36056C14: cmp ecx, dword ptr [eax + 4] */ 4551 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 4552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4553 _flag_k = FK_CMP; 4554 RECOMP_BACKEDGE(); 4555 if (CMP_NE(_flag_a, _flag_b)) goto L_360567E9; /* 0x36056C17: jne 0x360567e9 */ 4556 L_36056C1D: 4557 edi = POP32_VAL(esp); /* 0x36056C1D: pop edi */ 4558 ebx = POP32_VAL(esp); /* 0x36056C1E: pop ebx */ 4559 ecx = MEM32(ebp + (-0xC)); /* 0x36056C1F: mov ecx, dword ptr [ebp - 0xc] */ 4560 esi = POP32_VAL(esp); /* 0x36056C22: pop esi */ 4561 MEM32(FS_BASE + (0)) = ecx; /* 0x36056C23: mov dword ptr fs:[0], ecx */ 4562 esp = ebp; /* 0x36056C2A: mov esp, ebp */ 4563 ebp = POP32_VAL(esp); /* 0x36056C2C: pop ebp */ 4564 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36056C2D: ret */ 4565 RECOMP_REGS_OUT(); 4566 } 4567 4568 void sub_36056C0B(void) { 4569 int _fpu_cmp = 0; 4570 uint32_t _cf = 0; 4571 int _df = 1; 4572 uint32_t _flag_k = FK_NONE; 4573 uint32_t _flag_a = 0, _flag_b = 0; 4574 uint32_t _itail_tgt = 0; 4575 RECOMP_REGS_LOCALS 4576 RECOMP_ENTER(0x36056C0Bu); 4577 4578 goto L_36056C0B; 4579 L_360567E9: 4580 ecx = MEM32(ebp + (-0x10)); /* 0x360567E9: mov ecx, dword ptr [ebp - 0x10] */ 4581 eax = ecx + 0x8; /* 0x360567EC: lea eax, [ecx + 8] */ 4582 ecx = ebp + (-0x2C); /* 0x360567EF: lea ecx, [ebp - 0x2c] */ 4583 /* cmp ecx, eax */ /* 0x360567F2: cmp ecx, eax */ 4584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4586 _flag_k = FK_CMP; 4587 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056801; /* 0x360567F4: je 0x36056801 */ 4588 L_360567F6: 4589 edx = MEM32(eax); /* 0x360567F6: mov edx, dword ptr [eax] */ 4590 MEM32(ebp + (-0x2C)) = edx; /* 0x360567F8: mov dword ptr [ebp - 0x2c], edx */ 4591 eax = MEM32(eax + 0x4); /* 0x360567FB: mov eax, dword ptr [eax + 4] */ 4592 MEM32(ebp + (-0x28)) = eax; /* 0x360567FE: mov dword ptr [ebp - 0x28], eax */ 4593 L_36056801: 4594 PUSH32(esp, 0); /* 0x36056801: push 0 */ 4595 PUSH32(esp, 0x361B5C10u); /* 0x36056803: push 0x361b5c10 */ 4596 PUSH32(esp, 0x361B2CC0u); /* 0x36056808: push 0x361b2cc0 */ 4597 ecx = ebp + (-0x2C); /* 0x3605680D: lea ecx, [ebp - 0x2c] */ 4598 PUSH32(esp, 0); /* 0x36056810: push 0 */ 4599 PUSH32(esp, ecx); /* 0x36056812: push ecx */ 4600 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056813: call dword ptr [0x3616ff70] */ 4601 RECOMP_FLAGS_IN(); 4602 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4603 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4604 esp = esp + 4; /* 0x36056819: add esp, 4 */ 4605 _flag_k = FK_ADD; 4606 PUSH32(esp, eax); /* 0x3605681C: push eax */ 4607 RECOMP_ICALL(0x3615FD86u); /* 0x3605681D: call 0x3615fd86 */ /* not lifted */ 4608 RECOMP_FLAGS_IN(); 4609 edi = eax; /* 0x36056822: mov edi, eax */ 4610 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4611 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4612 esp = esp + 0x14u; /* 0x36056824: add esp, 0x14 */ 4613 _flag_k = FK_ADD; 4614 /* test edi, edi */ /* 0x36056827: test edi, edi */ 4615 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4616 _cf = 0; 4617 _flag_k = FK_TEST; 4618 if (TEST_Z(_flag_a, _flag_b)) goto L_360568FD; /* 0x36056829: je 0x360568fd */ 4619 L_3605682F: 4620 eax = MEM32(esi + 0x10); /* 0x3605682F: mov eax, dword ptr [esi + 0x10] */ 4621 edx = MEM32(edi + 0x11C); /* 0x36056832: mov edx, dword ptr [edi + 0x11c] */ 4622 ecx = MEM32(eax + 0x8); /* 0x36056838: mov ecx, dword ptr [eax + 8] */ 4623 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4624 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4625 eax = eax + 4; /* 0x3605683B: add eax, 4 */ 4626 _flag_k = FK_ADD; 4627 /* cmp edx, ecx */ /* 0x3605683E: cmp edx, ecx */ 4628 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4630 _flag_k = FK_CMP; 4631 if (CMP_NE(_flag_a, _flag_b)) goto L_36056850; /* 0x36056840: jne 0x36056850 */ 4632 L_36056842: 4633 ecx = MEM32(edi + 0x118); /* 0x36056842: mov ecx, dword ptr [edi + 0x118] */ 4634 /* cmp ecx, MEM32(eax) */ /* 0x36056848: cmp ecx, dword ptr [eax] */ 4635 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 4636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4637 _flag_k = FK_CMP; 4638 if (CMP_EQ(_flag_a, _flag_b)) goto L_360568FD; /* 0x3605684A: je 0x360568fd */ 4639 L_36056850: 4640 ebx = MEM32(0x3616FFB0); /* 0x36056850: mov ebx, dword ptr [0x3616ffb0] */ 4641 ecx = edi + 0x8C; /* 0x36056856: lea ecx, [edi + 0x8c] */ 4642 RECOMP_ICALL(ebx); /* 0x3605685C: call ebx */ 4643 RECOMP_FLAGS_IN(); 4644 ecx = MEM32(esi + 0x10); /* 0x3605685E: mov ecx, dword ptr [esi + 0x10] */ 4645 MEM32(ebp + (-0x14)) = eax; /* 0x36056861: mov dword ptr [ebp - 0x14], eax */ 4646 RECOMP_ICALL(ebx); /* 0x36056864: call ebx */ 4647 RECOMP_FLAGS_IN(); 4648 edx = MEM32(eax); /* 0x36056866: mov edx, dword ptr [eax] */ 4649 ecx = MEM32(eax + 0x4); /* 0x36056868: mov ecx, dword ptr [eax + 4] */ 4650 MEM32(ebp + (-0x38)) = edx; /* 0x3605686B: mov dword ptr [ebp - 0x38], edx */ 4651 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3605686E: fld dword ptr [ebp - 0x38] */ 4652 edx = MEM32(eax + 0x8); /* 0x36056871: mov edx, dword ptr [eax + 8] */ 4653 eax = MEM32(ebp + (-0x14)); /* 0x36056874: mov eax, dword ptr [ebp - 0x14] */ 4654 _st[0] -= (double)*(float*)ADDR(eax); /* 0x36056877: fsub dword ptr [eax] */ 4655 MEM32(ebp + (-0x34)) = ecx; /* 0x36056879: mov dword ptr [ebp - 0x34], ecx */ 4656 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3605687C: fld dword ptr [ebp - 0x34] */ 4657 MEM32(ebp + (-0x30)) = edx; /* 0x3605687F: mov dword ptr [ebp - 0x30], edx */ 4658 _st[0] -= (double)*(float*)ADDR(eax + 0x4); /* 0x36056882: fsub dword ptr [eax + 4] */ 4659 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36056885: fld dword ptr [ebp - 0x30] */ 4660 _st[0] -= (double)*(float*)ADDR(eax + 0x8); /* 0x36056888: fsub dword ptr [eax + 8] */ 4661 fp_push(_st[0]); /* 0x3605688B: fld st(0) */ 4662 _st[0] *= _st[1]; /* 0x3605688D: fmul st(1) */ 4663 fp_push(_st[2]); /* 0x3605688F: fld st(2) */ 4664 _st[0] *= _st[3]; /* 0x36056891: fmul st(3) */ 4665 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056893: faddp st(1) */ 4666 fp_push(_st[3]); /* 0x36056895: fld st(3) */ 4667 _st[0] *= _st[4]; /* 0x36056897: fmul st(4) */ 4668 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056899: faddp st(1) */ 4669 _st[0] = sqrt(_st[0]); /* 0x3605689B: fsqrt */ 4670 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605689D: fstp st(3) */ 4671 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605689F: fstp st(0) */ 4672 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360568A1: fstp st(0) */ 4673 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x360568A3: fcomp qword ptr [0x36170808] */ 4674 fp_pop(); 4675 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360568A9: fnstsw ax */ 4676 /* test HI8(eax), 0x41u */ /* 0x360568AB: test ah, 0x41 */ 4677 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4678 _cf = 0; 4679 _flag_k = FK_NARROW(FK_TEST, 24); 4680 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056903; /* 0x360568AE: jne 0x36056903 */ 4681 L_360568B0: 4682 PUSH32(esp, 0x34u); /* 0x360568B0: push 0x34 */ 4683 RECOMP_ICALL(0x3615FD6Au); /* 0x360568B2: call 0x3615fd6a */ /* not lifted */ 4684 RECOMP_FLAGS_IN(); 4685 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4686 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4687 esp = esp + 4; /* 0x360568B7: add esp, 4 */ 4688 _flag_k = FK_ADD; 4689 MEM32(ebp + (-0x14)) = eax; /* 0x360568BA: mov dword ptr [ebp - 0x14], eax */ 4690 /* test eax, eax */ /* 0x360568BD: test eax, eax */ 4691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4692 _cf = 0; 4693 _flag_k = FK_TEST; 4694 MEM32(ebp + (-0x4)) = 0; /* 0x360568BF: mov dword ptr [ebp - 4], 0 */ 4695 if (TEST_Z(_flag_a, _flag_b)) goto L_360568E9; /* 0x360568C6: je 0x360568e9 */ 4696 L_360568C8: 4697 ecx = MEM32(esi + 0x10); /* 0x360568C8: mov ecx, dword ptr [esi + 0x10] */ 4698 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x90u); 4699 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4700 edi = edi + 0x90u; /* 0x360568CB: add edi, 0x90 */ 4701 _flag_k = FK_ADD; 4702 PUSH32(esp, edi); /* 0x360568D1: push edi */ 4703 PUSH32(esp, 0x8Eu); /* 0x360568D2: push 0x8e */ 4704 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4705 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4706 ecx = ecx + 4; /* 0x360568D7: add ecx, 4 */ 4707 _flag_k = FK_ADD; 4708 PUSH32(esp, 0x362EA510u); /* 0x360568DA: push 0x362ea510 */ 4709 PUSH32(esp, ecx); /* 0x360568DF: push ecx */ 4710 ecx = eax; /* 0x360568E0: mov ecx, eax */ 4711 RECOMP_ICALL(0x3607D4B0u); /* 0x360568E2: call 0x3607d4b0 */ /* not lifted */ 4712 RECOMP_FLAGS_IN(); 4713 goto L_360568EB; /* 0x360568E7: jmp 0x360568eb */ 4714 L_360568E9: 4715 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4716 eax = 0; /* 0x360568E9: xor eax, eax */ 4717 _cf = 0; 4718 _flag_k = FK_TEST; 4719 L_360568EB: 4720 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360568EB: mov dword ptr [ebp - 4], 0xffffffff */ 4721 MEM32(ebp + (-0x18)) = eax; /* 0x360568F2: mov dword ptr [ebp - 0x18], eax */ 4722 edx = ebp + (-0x18); /* 0x360568F5: lea edx, [ebp - 0x18] */ 4723 goto L_36056BDE; /* 0x360568F8: jmp 0x36056bde */ 4724 L_360568FD: 4725 ebx = MEM32(0x3616FFB0); /* 0x360568FD: mov ebx, dword ptr [0x3616ffb0] */ 4726 L_36056903: 4727 /* cmp MEM32(ebp + (-0x2C)), 0xC350u */ /* 0x36056903: cmp dword ptr [ebp - 0x2c], 0xc350 */ 4728 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xC350u); 4729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4730 _flag_k = FK_CMP; 4731 if (CMP_NE(_flag_a, _flag_b)) goto L_360569B4; /* 0x3605690A: jne 0x360569b4 */ 4732 L_36056910: 4733 PUSH32(esp, 0); /* 0x36056910: push 0 */ 4734 PUSH32(esp, 0x361B2CD8u); /* 0x36056912: push 0x361b2cd8 */ 4735 PUSH32(esp, 0x361B2CC0u); /* 0x36056917: push 0x361b2cc0 */ 4736 ecx = ebp + (-0x2C); /* 0x3605691C: lea ecx, [ebp - 0x2c] */ 4737 PUSH32(esp, 0); /* 0x3605691F: push 0 */ 4738 PUSH32(esp, ecx); /* 0x36056921: push ecx */ 4739 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36056922: call dword ptr [0x3616ff70] */ 4740 RECOMP_FLAGS_IN(); 4741 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4743 esp = esp + 4; /* 0x36056928: add esp, 4 */ 4744 _flag_k = FK_ADD; 4745 PUSH32(esp, eax); /* 0x3605692B: push eax */ 4746 RECOMP_ICALL(0x3615FD86u); /* 0x3605692C: call 0x3615fd86 */ /* not lifted */ 4747 RECOMP_FLAGS_IN(); 4748 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4749 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4750 esp = esp + 0x14u; /* 0x36056931: add esp, 0x14 */ 4751 _flag_k = FK_ADD; 4752 /* test eax, eax */ /* 0x36056934: test eax, eax */ 4753 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4754 _cf = 0; 4755 _flag_k = FK_TEST; 4756 MEM32(ebp + (-0x14)) = eax; /* 0x36056936: mov dword ptr [ebp - 0x14], eax */ 4757 if (TEST_Z(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056939: je 0x360569b4 */ 4758 L_3605693B: 4759 ecx = eax; /* 0x3605693B: mov ecx, eax */ 4760 RECOMP_ICALL(ebx); /* 0x3605693D: call ebx */ 4761 RECOMP_FLAGS_IN(); 4762 ecx = MEM32(esi + 0x10); /* 0x3605693F: mov ecx, dword ptr [esi + 0x10] */ 4763 edi = eax; /* 0x36056942: mov edi, eax */ 4764 RECOMP_ICALL(ebx); /* 0x36056944: call ebx */ 4765 RECOMP_FLAGS_IN(); 4766 edx = MEM32(eax); /* 0x36056946: mov edx, dword ptr [eax] */ 4767 ecx = MEM32(eax + 0x4); /* 0x36056948: mov ecx, dword ptr [eax + 4] */ 4768 MEM32(ebp + (-0x44)) = edx; /* 0x3605694B: mov dword ptr [ebp - 0x44], edx */ 4769 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3605694E: fld dword ptr [ebp - 0x44] */ 4770 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056951: fsub dword ptr [edi] */ 4771 edx = MEM32(eax + 0x8); /* 0x36056953: mov edx, dword ptr [eax + 8] */ 4772 MEM32(ebp + (-0x40)) = ecx; /* 0x36056956: mov dword ptr [ebp - 0x40], ecx */ 4773 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x36056959: fld dword ptr [ebp - 0x40] */ 4774 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x3605695C: fsub dword ptr [edi + 4] */ 4775 MEM32(ebp + (-0x3C)) = edx; /* 0x3605695F: mov dword ptr [ebp - 0x3c], edx */ 4776 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36056962: fld dword ptr [ebp - 0x3c] */ 4777 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056965: fsub dword ptr [edi + 8] */ 4778 fp_push(_st[0]); /* 0x36056968: fld st(0) */ 4779 _st[0] *= _st[1]; /* 0x3605696A: fmul st(1) */ 4780 fp_push(_st[2]); /* 0x3605696C: fld st(2) */ 4781 _st[0] *= _st[3]; /* 0x3605696E: fmul st(3) */ 4782 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056970: faddp st(1) */ 4783 fp_push(_st[3]); /* 0x36056972: fld st(3) */ 4784 _st[0] *= _st[4]; /* 0x36056974: fmul st(4) */ 4785 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056976: faddp st(1) */ 4786 _st[0] = sqrt(_st[0]); /* 0x36056978: fsqrt */ 4787 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3605697A: fstp st(3) */ 4788 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697C: fstp st(0) */ 4789 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3605697E: fstp st(0) */ 4790 RECOMP_ICALL(0x3615FD8Cu); /* 0x36056980: call 0x3615fd8c */ /* not lifted */ 4791 RECOMP_FLAGS_IN(); 4792 /* cmp eax, 2 */ /* 0x36056985: cmp eax, 2 */ 4793 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4795 _flag_k = FK_CMP; 4796 if (CMP_G(_flag_a, _flag_b)) goto L_36056996; /* 0x36056988: jg 0x36056996 */ 4797 L_3605698A: 4798 eax = MEM32(ebp + (-0x14)); /* 0x3605698A: mov eax, dword ptr [ebp - 0x14] */ 4799 /* test MEM8(eax + 0x11C), 0x10u */ /* 0x3605698D: test byte ptr [eax + 0x11c], 0x10 */ 4800 _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 4801 _cf = 0; 4802 _flag_k = FK_NARROW(FK_TEST, 24); 4803 if (TEST_NZ(_flag_a, _flag_b)) goto L_360569B4; /* 0x36056994: jne 0x360569b4 */ 4804 L_36056996: 4805 ecx = ebp + (-0x2C); /* 0x36056996: lea ecx, [ebp - 0x2c] */ 4806 PUSH32(esp, ecx); /* 0x36056999: push ecx */ 4807 ecx = esi; /* 0x3605699A: mov ecx, esi */ 4808 RECOMP_ICALL(0x36053160u); /* 0x3605699C: call 0x36053160 */ /* not lifted */ 4809 RECOMP_FLAGS_IN(); 4810 edx = MEM32(esi + 0x8C); /* 0x360569A1: mov edx, dword ptr [esi + 0x8c] */ 4811 eax = MEM32(edx + 0x4); /* 0x360569A7: mov eax, dword ptr [edx + 4] */ 4812 ecx = MEM32(eax); /* 0x360569AA: mov ecx, dword ptr [eax] */ 4813 MEM32(ebp + (-0x10)) = ecx; /* 0x360569AC: mov dword ptr [ebp - 0x10], ecx */ 4814 goto L_36056C0B; /* 0x360569AF: jmp 0x36056c0b */ 4815 L_360569B4: 4816 /* cmp MEM32(ebp + (-0x2C)), 0xDEADu */ /* 0x360569B4: cmp dword ptr [ebp - 0x2c], 0xdead */ 4817 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEADu); 4818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4819 _flag_k = FK_CMP; 4820 if (CMP_NE(_flag_a, _flag_b)) goto L_36056A5F; /* 0x360569BB: jne 0x36056a5f */ 4821 L_360569C1: 4822 ecx = MEM32(esi + 0x10); /* 0x360569C1: mov ecx, dword ptr [esi + 0x10] */ 4823 RECOMP_ICALL(ebx); /* 0x360569C4: call ebx */ 4824 RECOMP_FLAGS_IN(); 4825 edx = MEM32(eax); /* 0x360569C6: mov edx, dword ptr [eax] */ 4826 ecx = MEM32(eax + 0x4); /* 0x360569C8: mov ecx, dword ptr [eax + 4] */ 4827 MEM32(ebp + (-0x50)) = edx; /* 0x360569CB: mov dword ptr [ebp - 0x50], edx */ 4828 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x360569CE: fld dword ptr [ebp - 0x50] */ 4829 _st[0] -= (double)*(float*)ADDR(esi + 0x9C); /* 0x360569D1: fsub dword ptr [esi + 0x9c] */ 4830 edx = MEM32(eax + 0x8); /* 0x360569D7: mov edx, dword ptr [eax + 8] */ 4831 MEM32(ebp + (-0x4C)) = ecx; /* 0x360569DA: mov dword ptr [ebp - 0x4c], ecx */ 4832 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x360569DD: fld dword ptr [ebp - 0x4c] */ 4833 _st[0] -= (double)*(float*)ADDR(esi + 0xA0); /* 0x360569E0: fsub dword ptr [esi + 0xa0] */ 4834 MEM32(ebp + (-0x48)) = edx; /* 0x360569E6: mov dword ptr [ebp - 0x48], edx */ 4835 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x360569E9: fld dword ptr [ebp - 0x48] */ 4836 _st[0] -= (double)*(float*)ADDR(esi + 0xA4); /* 0x360569EC: fsub dword ptr [esi + 0xa4] */ 4837 fp_push(_st[0]); /* 0x360569F2: fld st(0) */ 4838 _st[0] *= _st[1]; /* 0x360569F4: fmul st(1) */ 4839 fp_push(_st[2]); /* 0x360569F6: fld st(2) */ 4840 _st[0] *= _st[3]; /* 0x360569F8: fmul st(3) */ 4841 { double _v = fp_pop(); _st[0] += _v; } /* 0x360569FA: faddp st(1) */ 4842 fp_push(_st[3]); /* 0x360569FC: fld st(3) */ 4843 _st[0] *= _st[4]; /* 0x360569FE: fmul st(4) */ 4844 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056A00: faddp st(1) */ 4845 _st[0] = sqrt(_st[0]); /* 0x36056A02: fsqrt */ 4846 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056A04: fstp st(3) */ 4847 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A06: fstp st(0) */ 4848 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056A08: fstp st(0) */ 4849 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056A0A: fcomp qword ptr [0x36170808] */ 4850 fp_pop(); 4851 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056A10: fnstsw ax */ 4852 /* test HI8(eax), 0x41u */ /* 0x36056A12: test ah, 0x41 */ 4853 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4854 _cf = 0; 4855 _flag_k = FK_NARROW(FK_TEST, 24); 4856 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056A5F; /* 0x36056A15: jne 0x36056a5f */ 4857 L_36056A17: 4858 PUSH32(esp, 0x34u); /* 0x36056A17: push 0x34 */ 4859 RECOMP_ICALL(0x3615FD6Au); /* 0x36056A19: call 0x3615fd6a */ /* not lifted */ 4860 RECOMP_FLAGS_IN(); 4861 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4862 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4863 esp = esp + 4; /* 0x36056A1E: add esp, 4 */ 4864 _flag_k = FK_ADD; 4865 MEM32(ebp + (-0x14)) = eax; /* 0x36056A21: mov dword ptr [ebp - 0x14], eax */ 4866 /* test eax, eax */ /* 0x36056A24: test eax, eax */ 4867 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4868 _cf = 0; 4869 _flag_k = FK_TEST; 4870 MEM32(ebp + (-0x4)) = 1; /* 0x36056A26: mov dword ptr [ebp - 4], 1 */ 4871 if (TEST_Z(_flag_a, _flag_b)) goto L_36056A4B; /* 0x36056A2D: je 0x36056a4b */ 4872 L_36056A2F: 4873 ecx = MEM32(esi + 0x10); /* 0x36056A2F: mov ecx, dword ptr [esi + 0x10] */ 4874 PUSH32(esp, 0x362EA510u); /* 0x36056A32: push 0x362ea510 */ 4875 PUSH32(esp, 0x6Au); /* 0x36056A37: push 0x6a */ 4876 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4877 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4878 ecx = ecx + 4; /* 0x36056A39: add ecx, 4 */ 4879 _flag_k = FK_ADD; 4880 PUSH32(esp, 0x362EA510u); /* 0x36056A3C: push 0x362ea510 */ 4881 PUSH32(esp, ecx); /* 0x36056A41: push ecx */ 4882 ecx = eax; /* 0x36056A42: mov ecx, eax */ 4883 RECOMP_ICALL(0x3607D4B0u); /* 0x36056A44: call 0x3607d4b0 */ /* not lifted */ 4884 RECOMP_FLAGS_IN(); 4885 goto L_36056A4D; /* 0x36056A49: jmp 0x36056a4d */ 4886 L_36056A4B: 4887 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4888 eax = 0; /* 0x36056A4B: xor eax, eax */ 4889 _cf = 0; 4890 _flag_k = FK_TEST; 4891 L_36056A4D: 4892 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056A4D: mov dword ptr [ebp - 4], 0xffffffff */ 4893 MEM32(ebp + (-0x1C)) = eax; /* 0x36056A54: mov dword ptr [ebp - 0x1c], eax */ 4894 edx = ebp + (-0x1C); /* 0x36056A57: lea edx, [ebp - 0x1c] */ 4895 goto L_36056BDE; /* 0x36056A5A: jmp 0x36056bde */ 4896 L_36056A5F: 4897 /* cmp MEM32(ebp + (-0x2C)), 0xDEAEu */ /* 0x36056A5F: cmp dword ptr [ebp - 0x2c], 0xdeae */ 4898 _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(0xDEAEu); 4899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4900 _flag_k = FK_CMP; 4901 if (CMP_NE(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056A66: jne 0x36056c03 */ 4902 L_36056A6C: 4903 edi = MEM32(0x3616FF70); /* 0x36056A6C: mov edi, dword ptr [0x3616ff70] */ 4904 ecx = esi + 0x78; /* 0x36056A72: lea ecx, [esi + 0x78] */ 4905 PUSH32(esp, ecx); /* 0x36056A75: push ecx */ 4906 RECOMP_ICALL(edi); /* 0x36056A76: call edi */ 4907 RECOMP_FLAGS_IN(); 4908 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4910 esp = esp + 4; /* 0x36056A78: add esp, 4 */ 4911 _flag_k = FK_ADD; 4912 /* test eax, eax */ /* 0x36056A7B: test eax, eax */ 4913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4914 _cf = 0; 4915 _flag_k = FK_TEST; 4916 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B21; /* 0x36056A7D: je 0x36056b21 */ 4917 L_36056A83: 4918 ecx = eax; /* 0x36056A83: mov ecx, eax */ 4919 RECOMP_ICALL(ebx); /* 0x36056A85: call ebx */ 4920 RECOMP_FLAGS_IN(); 4921 ecx = MEM32(esi + 0x10); /* 0x36056A87: mov ecx, dword ptr [esi + 0x10] */ 4922 edi = eax; /* 0x36056A8A: mov edi, eax */ 4923 RECOMP_ICALL(ebx); /* 0x36056A8C: call ebx */ 4924 RECOMP_FLAGS_IN(); 4925 edx = MEM32(eax); /* 0x36056A8E: mov edx, dword ptr [eax] */ 4926 ecx = MEM32(eax + 0x4); /* 0x36056A90: mov ecx, dword ptr [eax + 4] */ 4927 MEM32(ebp + (-0x5C)) = edx; /* 0x36056A93: mov dword ptr [ebp - 0x5c], edx */ 4928 fp_push(*(float*)&MEM32(ebp + (-0x5C))); /* 0x36056A96: fld dword ptr [ebp - 0x5c] */ 4929 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056A99: fsub dword ptr [edi] */ 4930 edx = MEM32(eax + 0x8); /* 0x36056A9B: mov edx, dword ptr [eax + 8] */ 4931 MEM32(ebp + (-0x58)) = ecx; /* 0x36056A9E: mov dword ptr [ebp - 0x58], ecx */ 4932 fp_push(*(float*)&MEM32(ebp + (-0x58))); /* 0x36056AA1: fld dword ptr [ebp - 0x58] */ 4933 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056AA4: fsub dword ptr [edi + 4] */ 4934 MEM32(ebp + (-0x54)) = edx; /* 0x36056AA7: mov dword ptr [ebp - 0x54], edx */ 4935 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x36056AAA: fld dword ptr [ebp - 0x54] */ 4936 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056AAD: fsub dword ptr [edi + 8] */ 4937 fp_push(_st[0]); /* 0x36056AB0: fld st(0) */ 4938 _st[0] *= _st[1]; /* 0x36056AB2: fmul st(1) */ 4939 fp_push(_st[2]); /* 0x36056AB4: fld st(2) */ 4940 _st[0] *= _st[3]; /* 0x36056AB6: fmul st(3) */ 4941 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056AB8: faddp st(1) */ 4942 fp_push(_st[3]); /* 0x36056ABA: fld st(3) */ 4943 _st[0] *= _st[4]; /* 0x36056ABC: fmul st(4) */ 4944 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056ABE: faddp st(1) */ 4945 _st[0] = sqrt(_st[0]); /* 0x36056AC0: fsqrt */ 4946 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056AC2: fstp st(3) */ 4947 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC4: fstp st(0) */ 4948 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056AC6: fstp st(0) */ 4949 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056AC8: fcomp qword ptr [0x36170808] */ 4950 fp_pop(); 4951 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056ACE: fnstsw ax */ 4952 /* test HI8(eax), 0x41u */ /* 0x36056AD0: test ah, 0x41 */ 4953 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4954 _cf = 0; 4955 _flag_k = FK_NARROW(FK_TEST, 24); 4956 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056AD3: jne 0x36056c03 */ 4957 L_36056AD9: 4958 PUSH32(esp, 0x34u); /* 0x36056AD9: push 0x34 */ 4959 RECOMP_ICALL(0x3615FD6Au); /* 0x36056ADB: call 0x3615fd6a */ /* not lifted */ 4960 RECOMP_FLAGS_IN(); 4961 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4962 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4963 esp = esp + 4; /* 0x36056AE0: add esp, 4 */ 4964 _flag_k = FK_ADD; 4965 MEM32(ebp + (-0x14)) = eax; /* 0x36056AE3: mov dword ptr [ebp - 0x14], eax */ 4966 /* test eax, eax */ /* 0x36056AE6: test eax, eax */ 4967 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4968 _cf = 0; 4969 _flag_k = FK_TEST; 4970 MEM32(ebp + (-0x4)) = 2; /* 0x36056AE8: mov dword ptr [ebp - 4], 2 */ 4971 if (TEST_Z(_flag_a, _flag_b)) goto L_36056B0D; /* 0x36056AEF: je 0x36056b0d */ 4972 L_36056AF1: 4973 ecx = MEM32(esi + 0x10); /* 0x36056AF1: mov ecx, dword ptr [esi + 0x10] */ 4974 PUSH32(esp, 0x362EA510u); /* 0x36056AF4: push 0x362ea510 */ 4975 PUSH32(esp, 0x6Eu); /* 0x36056AF9: push 0x6e */ 4976 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4978 ecx = ecx + 4; /* 0x36056AFB: add ecx, 4 */ 4979 _flag_k = FK_ADD; 4980 PUSH32(esp, 0x362EA510u); /* 0x36056AFE: push 0x362ea510 */ 4981 PUSH32(esp, ecx); /* 0x36056B03: push ecx */ 4982 ecx = eax; /* 0x36056B04: mov ecx, eax */ 4983 RECOMP_ICALL(0x3607D4B0u); /* 0x36056B06: call 0x3607d4b0 */ /* not lifted */ 4984 RECOMP_FLAGS_IN(); 4985 goto L_36056B0F; /* 0x36056B0B: jmp 0x36056b0f */ 4986 L_36056B0D: 4987 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4988 eax = 0; /* 0x36056B0D: xor eax, eax */ 4989 _cf = 0; 4990 _flag_k = FK_TEST; 4991 L_36056B0F: 4992 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056B0F: mov dword ptr [ebp - 4], 0xffffffff */ 4993 MEM32(ebp + (-0x20)) = eax; /* 0x36056B16: mov dword ptr [ebp - 0x20], eax */ 4994 edx = ebp + (-0x20); /* 0x36056B19: lea edx, [ebp - 0x20] */ 4995 goto L_36056BDE; /* 0x36056B1C: jmp 0x36056bde */ 4996 L_36056B21: 4997 ecx = MEM32(esi + 0x10); /* 0x36056B21: mov ecx, dword ptr [esi + 0x10] */ 4998 eax = MEM32(ecx + 0x150); /* 0x36056B24: mov eax, dword ptr [ecx + 0x150] */ 4999 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 5000 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5001 eax = eax + 0xE4u; /* 0x36056B2A: add eax, 0xe4 */ 5002 _flag_k = FK_ADD; 5003 PUSH32(esp, eax); /* 0x36056B2F: push eax */ 5004 RECOMP_ICALL(edi); /* 0x36056B30: call edi */ 5005 RECOMP_FLAGS_IN(); 5006 ebx = eax; /* 0x36056B32: mov ebx, eax */ 5007 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5008 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5009 esp = esp + 4; /* 0x36056B34: add esp, 4 */ 5010 _flag_k = FK_ADD; 5011 /* test ebx, ebx */ /* 0x36056B37: test ebx, ebx */ 5012 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5013 _cf = 0; 5014 _flag_k = FK_TEST; 5015 if (TEST_Z(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B39: je 0x36056c03 */ 5016 L_36056B3F: 5017 ecx = ebx; /* 0x36056B3F: mov ecx, ebx */ 5018 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B41: call dword ptr [0x3616ffb0] */ 5019 RECOMP_FLAGS_IN(); 5020 ecx = MEM32(esi + 0x10); /* 0x36056B47: mov ecx, dword ptr [esi + 0x10] */ 5021 edi = eax; /* 0x36056B4A: mov edi, eax */ 5022 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36056B4C: call dword ptr [0x3616ffb0] */ 5023 RECOMP_FLAGS_IN(); 5024 edx = MEM32(eax); /* 0x36056B52: mov edx, dword ptr [eax] */ 5025 ecx = MEM32(eax + 0x4); /* 0x36056B54: mov ecx, dword ptr [eax + 4] */ 5026 MEM32(ebp + (-0x68)) = edx; /* 0x36056B57: mov dword ptr [ebp - 0x68], edx */ 5027 fp_push(*(float*)&MEM32(ebp + (-0x68))); /* 0x36056B5A: fld dword ptr [ebp - 0x68] */ 5028 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36056B5D: fsub dword ptr [edi] */ 5029 edx = MEM32(eax + 0x8); /* 0x36056B5F: mov edx, dword ptr [eax + 8] */ 5030 MEM32(ebp + (-0x64)) = ecx; /* 0x36056B62: mov dword ptr [ebp - 0x64], ecx */ 5031 fp_push(*(float*)&MEM32(ebp + (-0x64))); /* 0x36056B65: fld dword ptr [ebp - 0x64] */ 5032 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36056B68: fsub dword ptr [edi + 4] */ 5033 MEM32(ebp + (-0x60)) = edx; /* 0x36056B6B: mov dword ptr [ebp - 0x60], edx */ 5034 fp_push(*(float*)&MEM32(ebp + (-0x60))); /* 0x36056B6E: fld dword ptr [ebp - 0x60] */ 5035 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36056B71: fsub dword ptr [edi + 8] */ 5036 fp_push(_st[0]); /* 0x36056B74: fld st(0) */ 5037 _st[0] *= _st[1]; /* 0x36056B76: fmul st(1) */ 5038 fp_push(_st[2]); /* 0x36056B78: fld st(2) */ 5039 _st[0] *= _st[3]; /* 0x36056B7A: fmul st(3) */ 5040 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B7C: faddp st(1) */ 5041 fp_push(_st[3]); /* 0x36056B7E: fld st(3) */ 5042 _st[0] *= _st[4]; /* 0x36056B80: fmul st(4) */ 5043 { double _v = fp_pop(); _st[0] += _v; } /* 0x36056B82: faddp st(1) */ 5044 _st[0] = sqrt(_st[0]); /* 0x36056B84: fsqrt */ 5045 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36056B86: fstp st(3) */ 5046 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B88: fstp st(0) */ 5047 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36056B8A: fstp st(0) */ 5048 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36056B8C: fcomp qword ptr [0x36170808] */ 5049 fp_pop(); 5050 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36056B92: fnstsw ax */ 5051 /* test HI8(eax), 0x41u */ /* 0x36056B94: test ah, 0x41 */ 5052 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5053 _cf = 0; 5054 _flag_k = FK_NARROW(FK_TEST, 24); 5055 if (TEST_NZ(_flag_a, _flag_b)) goto L_36056C03; /* 0x36056B97: jne 0x36056c03 */ 5056 L_36056B99: 5057 PUSH32(esp, 0x34u); /* 0x36056B99: push 0x34 */ 5058 RECOMP_ICALL(0x3615FD6Au); /* 0x36056B9B: call 0x3615fd6a */ /* not lifted */ 5059 RECOMP_FLAGS_IN(); 5060 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5061 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5062 esp = esp + 4; /* 0x36056BA0: add esp, 4 */ 5063 _flag_k = FK_ADD; 5064 MEM32(ebp + (-0x14)) = eax; /* 0x36056BA3: mov dword ptr [ebp - 0x14], eax */ 5065 /* test eax, eax */ /* 0x36056BA6: test eax, eax */ 5066 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5067 _cf = 0; 5068 _flag_k = FK_TEST; 5069 MEM32(ebp + (-0x4)) = 3; /* 0x36056BA8: mov dword ptr [ebp - 4], 3 */ 5070 if (TEST_Z(_flag_a, _flag_b)) goto L_36056BCF; /* 0x36056BAF: je 0x36056bcf */ 5071 L_36056BB1: 5072 ecx = MEM32(esi + 0x10); /* 0x36056BB1: mov ecx, dword ptr [esi + 0x10] */ 5073 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 5074 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5075 ebx = ebx + 4; /* 0x36056BB4: add ebx, 4 */ 5076 _flag_k = FK_ADD; 5077 PUSH32(esp, ebx); /* 0x36056BB7: push ebx */ 5078 PUSH32(esp, 0x8Eu); /* 0x36056BB8: push 0x8e */ 5079 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 5080 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5081 ecx = ecx + 4; /* 0x36056BBD: add ecx, 4 */ 5082 _flag_k = FK_ADD; 5083 PUSH32(esp, 0x362EA510u); /* 0x36056BC0: push 0x362ea510 */ 5084 PUSH32(esp, ecx); /* 0x36056BC5: push ecx */ 5085 ecx = eax; /* 0x36056BC6: mov ecx, eax */ 5086 RECOMP_ICALL(0x3607D4B0u); /* 0x36056BC8: call 0x3607d4b0 */ /* not lifted */ 5087 RECOMP_FLAGS_IN(); 5088 goto L_36056BD1; /* 0x36056BCD: jmp 0x36056bd1 */ 5089 L_36056BCF: 5090 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5091 eax = 0; /* 0x36056BCF: xor eax, eax */ 5092 _cf = 0; 5093 _flag_k = FK_TEST; 5094 L_36056BD1: 5095 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056BD1: mov dword ptr [ebp - 4], 0xffffffff */ 5096 MEM32(ebp + (-0x24)) = eax; /* 0x36056BD8: mov dword ptr [ebp - 0x24], eax */ 5097 edx = ebp + (-0x24); /* 0x36056BDB: lea edx, [ebp - 0x24] */ 5098 L_36056BDE: 5099 ecx = MEM32(esi + 0x10); /* 0x36056BDE: mov ecx, dword ptr [esi + 0x10] */ 5100 PUSH32(esp, edx); /* 0x36056BE1: push edx */ 5101 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36056BE2: call dword ptr [0x3617004c] */ 5102 RECOMP_FLAGS_IN(); 5103 eax = ebp + (-0x2C); /* 0x36056BE8: lea eax, [ebp - 0x2c] */ 5104 PUSH32(esp, eax); /* 0x36056BEB: push eax */ 5105 ecx = esi; /* 0x36056BEC: mov ecx, esi */ 5106 RECOMP_ICALL(0x36053160u); /* 0x36056BEE: call 0x36053160 */ /* not lifted */ 5107 RECOMP_FLAGS_IN(); 5108 ecx = MEM32(esi + 0x8C); /* 0x36056BF3: mov ecx, dword ptr [esi + 0x8c] */ 5109 edx = MEM32(ecx + 0x4); /* 0x36056BF9: mov edx, dword ptr [ecx + 4] */ 5110 eax = MEM32(edx); /* 0x36056BFC: mov eax, dword ptr [edx] */ 5111 MEM32(ebp + (-0x10)) = eax; /* 0x36056BFE: mov dword ptr [ebp - 0x10], eax */ 5112 goto L_36056C0B; /* 0x36056C01: jmp 0x36056c0b */ 5113 L_36056C03: 5114 ecx = MEM32(ebp + (-0x10)); /* 0x36056C03: mov ecx, dword ptr [ebp - 0x10] */ 5115 edx = MEM32(ecx); /* 0x36056C06: mov edx, dword ptr [ecx] */ 5116 MEM32(ebp + (-0x10)) = edx; /* 0x36056C08: mov dword ptr [ebp - 0x10], edx */ 5117 L_36056C0B: 5118 eax = MEM32(esi + 0x8C); /* 0x36056C0B: mov eax, dword ptr [esi + 0x8c] */ 5119 ecx = MEM32(ebp + (-0x10)); /* 0x36056C11: mov ecx, dword ptr [ebp - 0x10] */ 5120 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x36056C14: cmp ecx, dword ptr [eax + 4] */ 5121 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 5122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5123 _flag_k = FK_CMP; 5124 RECOMP_BACKEDGE(); 5125 if (CMP_NE(_flag_a, _flag_b)) goto L_360567E9; /* 0x36056C17: jne 0x360567e9 */ 5126 L_36056C1D: 5127 edi = POP32_VAL(esp); /* 0x36056C1D: pop edi */ 5128 ebx = POP32_VAL(esp); /* 0x36056C1E: pop ebx */ 5129 ecx = MEM32(ebp + (-0xC)); /* 0x36056C1F: mov ecx, dword ptr [ebp - 0xc] */ 5130 esi = POP32_VAL(esp); /* 0x36056C22: pop esi */ 5131 MEM32(FS_BASE + (0)) = ecx; /* 0x36056C23: mov dword ptr fs:[0], ecx */ 5132 esp = ebp; /* 0x36056C2A: mov esp, ebp */ 5133 ebp = POP32_VAL(esp); /* 0x36056C2C: pop ebp */ 5134 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36056C2D: ret */ 5135 RECOMP_REGS_OUT(); 5136 } 5137 5138 void sub_36056C30(void) { 5139 int _fpu_cmp = 0; 5140 uint32_t _cf = 0; 5141 int _df = 1; 5142 uint32_t _flag_k = FK_NONE; 5143 uint32_t _flag_a = 0, _flag_b = 0; 5144 uint32_t _itail_tgt = 0; 5145 RECOMP_REGS_LOCALS 5146 RECOMP_ENTER(0x36056C30u); 5147 5148 L_36056C30: 5149 eax = MEM32(ecx + 0x8C); /* 0x36056C30: mov eax, dword ptr [ecx + 0x8c] */ 5150 edx = MEM32(eax + 0x8); /* 0x36056C36: mov edx, dword ptr [eax + 8] */ 5151 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5152 ecx = 0; /* 0x36056C39: xor ecx, ecx */ 5153 _cf = 0; 5154 _flag_k = FK_TEST; 5155 /* test edx, edx */ /* 0x36056C3B: test edx, edx */ 5156 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 5157 _cf = 0; 5158 _flag_k = FK_TEST; 5159 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36056C3D: setne cl */ 5160 SET_LO8(eax, LO8(ecx)); /* 0x36056C40: mov al, cl */ 5161 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36056C42: ret */ 5162 RECOMP_REGS_OUT(); 5163 } 5164 5165 void sub_36056C50(void) { 5166 int _fpu_cmp = 0; 5167 uint32_t _cf = 0; 5168 int _df = 1; 5169 uint32_t _flag_k = FK_NONE; 5170 uint32_t _flag_a = 0, _flag_b = 0; 5171 uint32_t _itail_tgt = 0; 5172 RECOMP_REGS_LOCALS 5173 RECOMP_ENTER(0x36056C50u); 5174 5175 L_36056C50: 5176 PUSH32(esp, ebp); /* 0x36056C50: push ebp */ 5177 ebp = esp; /* 0x36056C51: mov ebp, esp */ 5178 eax = MEM32(ecx + 0x8C); /* 0x36056C53: mov eax, dword ptr [ecx + 0x8c] */ 5179 ecx = MEM32(eax + 0x4); /* 0x36056C59: mov ecx, dword ptr [eax + 4] */ 5180 eax = MEM32(ecx); /* 0x36056C5C: mov eax, dword ptr [ecx] */ 5181 /* cmp eax, ecx */ /* 0x36056C5E: cmp eax, ecx */ 5182 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5184 _flag_k = FK_CMP; 5185 PUSH32(esp, esi); /* 0x36056C60: push esi */ 5186 PUSH32(esp, edi); /* 0x36056C61: push edi */ 5187 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056C7C; /* 0x36056C62: je 0x36056c7c */ 5188 L_36056C64: 5189 edx = MEM32(ebp + 0x8); /* 0x36056C64: mov edx, dword ptr [ebp + 8] */ 5190 esi = MEM32(edx + 0x4); /* 0x36056C67: mov esi, dword ptr [edx + 4] */ 5191 L_36056C6A: 5192 /* cmp MEM32(eax + 0xC), esi */ /* 0x36056C6A: cmp dword ptr [eax + 0xc], esi */ 5193 _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(esi); 5194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5195 _flag_k = FK_CMP; 5196 if (CMP_NE(_flag_a, _flag_b)) goto L_36056C76; /* 0x36056C6D: jne 0x36056c76 */ 5197 L_36056C6F: 5198 edi = MEM32(eax + 0x8); /* 0x36056C6F: mov edi, dword ptr [eax + 8] */ 5199 /* cmp edi, MEM32(edx) */ /* 0x36056C72: cmp edi, dword ptr [edx] */ 5200 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx)); 5201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5202 _flag_k = FK_CMP; 5203 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056C7C; /* 0x36056C74: je 0x36056c7c */ 5204 L_36056C76: 5205 eax = MEM32(eax); /* 0x36056C76: mov eax, dword ptr [eax] */ 5206 /* cmp eax, ecx */ /* 0x36056C78: cmp eax, ecx */ 5207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5209 _flag_k = FK_CMP; 5210 RECOMP_BACKEDGE(); 5211 if (CMP_NE(_flag_a, _flag_b)) goto L_36056C6A; /* 0x36056C7A: jne 0x36056c6a */ 5212 L_36056C7C: 5213 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5214 edx = 0; /* 0x36056C7C: xor edx, edx */ 5215 _cf = 0; 5216 _flag_k = FK_TEST; 5217 /* cmp eax, ecx */ /* 0x36056C7E: cmp eax, ecx */ 5218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5220 _flag_k = FK_CMP; 5221 edi = POP32_VAL(esp); /* 0x36056C80: pop edi */ 5222 SET_LO8(edx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x36056C81: setne dl */ 5223 esi = POP32_VAL(esp); /* 0x36056C84: pop esi */ 5224 SET_LO8(eax, LO8(edx)); /* 0x36056C85: mov al, dl */ 5225 ebp = POP32_VAL(esp); /* 0x36056C87: pop ebp */ 5226 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36056C88: ret 4 */ 5227 RECOMP_REGS_OUT(); 5228 } 5229 5230 void sub_36056C90(void) { 5231 int _fpu_cmp = 0; 5232 uint32_t _cf = 0; 5233 int _df = 1; 5234 uint32_t _flag_k = FK_NONE; 5235 uint32_t _flag_a = 0, _flag_b = 0; 5236 uint32_t _itail_tgt = 0; 5237 RECOMP_REGS_LOCALS 5238 RECOMP_ENTER(0x36056C90u); 5239 5240 L_36056C90: 5241 PUSH32(esp, ebp); /* 0x36056C90: push ebp */ 5242 ebp = esp; /* 0x36056C91: mov ebp, esp */ 5243 eax = MEM32(ecx + 0x8C); /* 0x36056C93: mov eax, dword ptr [ecx + 0x8c] */ 5244 ecx = MEM32(eax + 0x4); /* 0x36056C99: mov ecx, dword ptr [eax + 4] */ 5245 eax = MEM32(ecx); /* 0x36056C9C: mov eax, dword ptr [ecx] */ 5246 /* cmp eax, ecx */ /* 0x36056C9E: cmp eax, ecx */ 5247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5249 _flag_k = FK_CMP; 5250 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056CB0; /* 0x36056CA0: je 0x36056cb0 */ 5251 L_36056CA2: 5252 edx = MEM32(ebp + 0x8); /* 0x36056CA2: mov edx, dword ptr [ebp + 8] */ 5253 L_36056CA5: 5254 /* cmp MEM32(eax + 0x8), edx */ /* 0x36056CA5: cmp dword ptr [eax + 8], edx */ 5255 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(edx); 5256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5257 _flag_k = FK_CMP; 5258 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056CB6; /* 0x36056CA8: je 0x36056cb6 */ 5259 L_36056CAA: 5260 eax = MEM32(eax); /* 0x36056CAA: mov eax, dword ptr [eax] */ 5261 /* cmp eax, ecx */ /* 0x36056CAC: cmp eax, ecx */ 5262 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5264 _flag_k = FK_CMP; 5265 RECOMP_BACKEDGE(); 5266 if (CMP_NE(_flag_a, _flag_b)) goto L_36056CA5; /* 0x36056CAE: jne 0x36056ca5 */ 5267 L_36056CB0: 5268 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 5269 SET_LO8(eax, 0); /* 0x36056CB0: xor al, al */ 5270 _cf = 0; 5271 _flag_k = FK_NARROW(FK_TEST, 24); 5272 ebp = POP32_VAL(esp); /* 0x36056CB2: pop ebp */ 5273 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36056CB3: ret 4 */ 5274 L_36056CB6: 5275 SET_LO8(eax, 1); /* 0x36056CB6: mov al, 1 */ 5276 ebp = POP32_VAL(esp); /* 0x36056CB8: pop ebp */ 5277 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36056CB9: ret 4 */ 5278 RECOMP_REGS_OUT(); 5279 } 5280 5281 void sub_36056CC0(void) { 5282 int _fpu_cmp = 0; 5283 uint32_t _cf = 0; 5284 int _df = 1; 5285 uint32_t _flag_k = FK_NONE; 5286 uint32_t _flag_a = 0, _flag_b = 0; 5287 uint32_t _itail_tgt = 0; 5288 RECOMP_REGS_LOCALS 5289 RECOMP_ENTER(0x36056CC0u); 5290 5291 L_36056CC0: 5292 PUSH32(esp, esi); /* 0x36056CC0: push esi */ 5293 esi = ecx; /* 0x36056CC1: mov esi, ecx */ 5294 eax = MEM32(esi + 0x8C); /* 0x36056CC3: mov eax, dword ptr [esi + 0x8c] */ 5295 ecx = MEM32(eax + 0x4); /* 0x36056CC9: mov ecx, dword ptr [eax + 4] */ 5296 eax = MEM32(ecx); /* 0x36056CCC: mov eax, dword ptr [ecx] */ 5297 /* cmp eax, ecx */ /* 0x36056CCE: cmp eax, ecx */ 5298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5300 _flag_k = FK_CMP; 5301 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056CEC; /* 0x36056CD0: je 0x36056cec */ 5302 L_36056CD2: 5303 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 5304 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5305 eax = eax + 8; /* 0x36056CD2: add eax, 8 */ 5306 _flag_k = FK_ADD; 5307 PUSH32(esp, eax); /* 0x36056CD5: push eax */ 5308 ecx = esi; /* 0x36056CD6: mov ecx, esi */ 5309 RECOMP_ICALL(0x36053160u); /* 0x36056CD8: call 0x36053160 */ /* not lifted */ 5310 RECOMP_FLAGS_IN(); 5311 ecx = MEM32(esi + 0x8C); /* 0x36056CDD: mov ecx, dword ptr [esi + 0x8c] */ 5312 ecx = MEM32(ecx + 0x4); /* 0x36056CE3: mov ecx, dword ptr [ecx + 4] */ 5313 eax = MEM32(ecx); /* 0x36056CE6: mov eax, dword ptr [ecx] */ 5314 /* cmp eax, ecx */ /* 0x36056CE8: cmp eax, ecx */ 5315 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5317 _flag_k = FK_CMP; 5318 RECOMP_BACKEDGE(); 5319 if (CMP_NE(_flag_a, _flag_b)) goto L_36056CD2; /* 0x36056CEA: jne 0x36056cd2 */ 5320 L_36056CEC: 5321 esi = POP32_VAL(esp); /* 0x36056CEC: pop esi */ 5322 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36056CED: ret */ 5323 RECOMP_REGS_OUT(); 5324 } 5325 5326 void sub_36056CF0(void) { 5327 int _fpu_cmp = 0; 5328 uint32_t _cf = 0; 5329 int _df = 1; 5330 uint32_t _flag_k = FK_NONE; 5331 uint32_t _flag_a = 0, _flag_b = 0; 5332 uint32_t _itail_tgt = 0; 5333 RECOMP_REGS_LOCALS 5334 RECOMP_ENTER(0x36056CF0u); 5335 5336 L_36056CF0: 5337 PUSH32(esp, ebp); /* 0x36056CF0: push ebp */ 5338 ebp = esp; /* 0x36056CF1: mov ebp, esp */ 5339 PUSH32(esp, 0xFFFFFFFFu); /* 0x36056CF3: push -1 */ 5340 PUSH32(esp, 0x36164776u); /* 0x36056CF5: push 0x36164776 */ 5341 eax = MEM32(FS_BASE + (0)); /* 0x36056CFA: mov eax, dword ptr fs:[0] */ 5342 PUSH32(esp, eax); /* 0x36056D00: push eax */ 5343 MEM32(FS_BASE + (0)) = esp; /* 0x36056D01: mov dword ptr fs:[0], esp */ 5344 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 5345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5346 esp = esp - 0x2Cu; /* 0x36056D08: sub esp, 0x2c */ 5347 _flag_k = FK_CMP; 5348 PUSH32(esp, ebx); /* 0x36056D0B: push ebx */ 5349 PUSH32(esp, esi); /* 0x36056D0C: push esi */ 5350 esi = ecx; /* 0x36056D0D: mov esi, ecx */ 5351 eax = MEM32(esi + 0x10); /* 0x36056D0F: mov eax, dword ptr [esi + 0x10] */ 5352 SET_LO8(eax, MEM8(eax + 0x128)); /* 0x36056D12: mov al, byte ptr [eax + 0x128] */ 5353 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5354 ebx = 0; /* 0x36056D18: xor ebx, ebx */ 5355 _cf = 0; 5356 _flag_k = FK_TEST; 5357 /* cmp LO8(eax), LO8(ebx) */ /* 0x36056D1A: cmp al, bl */ 5358 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5360 _flag_k = FK_NARROW(FK_CMP, 24); 5361 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057256; /* 0x36056D1C: je 0x36057256 */ 5362 L_36056D22: 5363 PUSH32(esp, edi); /* 0x36056D22: push edi */ 5364 PUSH32(esp, 0x14u); /* 0x36056D23: push 0x14 */ 5365 RECOMP_ICALL(0x3615FD6Au); /* 0x36056D25: call 0x3615fd6a */ /* not lifted */ 5366 RECOMP_FLAGS_IN(); 5367 edi = eax; /* 0x36056D2A: mov edi, eax */ 5368 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5370 esp = esp + 4; /* 0x36056D2C: add esp, 4 */ 5371 _flag_k = FK_ADD; 5372 MEM32(ebp + (-0x1C)) = edi; /* 0x36056D2F: mov dword ptr [ebp - 0x1c], edi */ 5373 /* cmp edi, ebx */ /* 0x36056D32: cmp edi, ebx */ 5374 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5376 _flag_k = FK_CMP; 5377 MEM32(ebp + (-0x4)) = ebx; /* 0x36056D34: mov dword ptr [ebp - 4], ebx */ 5378 if (CMP_EQ(_flag_a, _flag_b)) goto L_36056D4D; /* 0x36056D37: je 0x36056d4d */ 5379 L_36056D39: 5380 ecx = ebp + (-0xD); /* 0x36056D39: lea ecx, [ebp - 0xd] */ 5381 PUSH32(esp, ecx); /* 0x36056D3C: push ecx */ 5382 PUSH32(esp, ebx); /* 0x36056D3D: push ebx */ 5383 edx = ebp + (-0xE); /* 0x36056D3E: lea edx, [ebp - 0xe] */ 5384 PUSH32(esp, edx); /* 0x36056D41: push edx */ 5385 ecx = edi; /* 0x36056D42: mov ecx, edi */ 5386 RECOMP_ICALL(0x360E0A20u); /* 0x36056D44: call 0x360e0a20 */ /* not lifted */ 5387 RECOMP_FLAGS_IN(); 5388 ecx = edi; /* 0x36056D49: mov ecx, edi */ 5389 goto L_36056D4F; /* 0x36056D4B: jmp 0x36056d4f */ 5390 L_36056D4D: 5391 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5392 ecx = 0; /* 0x36056D4D: xor ecx, ecx */ 5393 _cf = 0; 5394 _flag_k = FK_TEST; 5395 L_36056D4F: 5396 eax = ebp + (-0x20); /* 0x36056D4F: lea eax, [ebp - 0x20] */ 5397 PUSH32(esp, eax); /* 0x36056D52: push eax */ 5398 edx = ebp + (-0x18); /* 0x36056D53: lea edx, [ebp - 0x18] */ 5399 PUSH32(esp, edx); /* 0x36056D56: push edx */ 5400 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36056D57: mov dword ptr [ebp - 4], 0xffffffff */ 5401 MEM32(esi + 0x94) = ecx; /* 0x36056D5E: mov dword ptr [esi + 0x94], ecx */ 5402 MEM32(ebp + (-0x20)) = 1; /* 0x36056D64: mov dword ptr [ebp - 0x20], 1 */ 5403 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056D6B: mov dword ptr [ebp - 0x1c], ebx */ 5404 RECOMP_ICALL(0x360E2B30u); /* 0x36056D6E: call 0x360e2b30 */ /* not lifted */ 5405 RECOMP_FLAGS_IN(); 5406 eax = MEM32(eax); /* 0x36056D73: mov eax, dword ptr [eax] */ 5407 MEM32(eax + 0x10) = 0xC1AAu; /* 0x36056D75: mov dword ptr [eax + 0x10], 0xc1aa */ 5408 ecx = MEM32(esi + 0x94); /* 0x36056D7C: mov ecx, dword ptr [esi + 0x94] */ 5409 eax = ebp + (-0x20); /* 0x36056D82: lea eax, [ebp - 0x20] */ 5410 PUSH32(esp, eax); /* 0x36056D85: push eax */ 5411 edx = ebp + (-0x18); /* 0x36056D86: lea edx, [ebp - 0x18] */ 5412 PUSH32(esp, edx); /* 0x36056D89: push edx */ 5413 MEM32(ebp + (-0x20)) = 3; /* 0x36056D8A: mov dword ptr [ebp - 0x20], 3 */ 5414 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056D91: mov dword ptr [ebp - 0x1c], ebx */ 5415 RECOMP_ICALL(0x360E2B30u); /* 0x36056D94: call 0x360e2b30 */ /* not lifted */ 5416 RECOMP_FLAGS_IN(); 5417 eax = MEM32(eax); /* 0x36056D99: mov eax, dword ptr [eax] */ 5418 MEM32(eax + 0x10) = 0xC1A3u; /* 0x36056D9B: mov dword ptr [eax + 0x10], 0xc1a3 */ 5419 ecx = MEM32(esi + 0x94); /* 0x36056DA2: mov ecx, dword ptr [esi + 0x94] */ 5420 eax = ebp + (-0x20); /* 0x36056DA8: lea eax, [ebp - 0x20] */ 5421 PUSH32(esp, eax); /* 0x36056DAB: push eax */ 5422 edx = ebp + (-0x18); /* 0x36056DAC: lea edx, [ebp - 0x18] */ 5423 PUSH32(esp, edx); /* 0x36056DAF: push edx */ 5424 MEM32(ebp + (-0x20)) = 0xBu; /* 0x36056DB0: mov dword ptr [ebp - 0x20], 0xb */ 5425 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056DB7: mov dword ptr [ebp - 0x1c], ebx */ 5426 RECOMP_ICALL(0x360E2B30u); /* 0x36056DBA: call 0x360e2b30 */ /* not lifted */ 5427 RECOMP_FLAGS_IN(); 5428 eax = MEM32(eax); /* 0x36056DBF: mov eax, dword ptr [eax] */ 5429 MEM32(eax + 0x10) = 0xC1A5u; /* 0x36056DC1: mov dword ptr [eax + 0x10], 0xc1a5 */ 5430 ecx = MEM32(esi + 0x94); /* 0x36056DC8: mov ecx, dword ptr [esi + 0x94] */ 5431 eax = ebp + (-0x20); /* 0x36056DCE: lea eax, [ebp - 0x20] */ 5432 PUSH32(esp, eax); /* 0x36056DD1: push eax */ 5433 edx = ebp + (-0x18); /* 0x36056DD2: lea edx, [ebp - 0x18] */ 5434 PUSH32(esp, edx); /* 0x36056DD5: push edx */ 5435 MEM32(ebp + (-0x20)) = 0x4Eu; /* 0x36056DD6: mov dword ptr [ebp - 0x20], 0x4e */ 5436 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056DDD: mov dword ptr [ebp - 0x1c], ebx */ 5437 RECOMP_ICALL(0x360E2B30u); /* 0x36056DE0: call 0x360e2b30 */ /* not lifted */ 5438 RECOMP_FLAGS_IN(); 5439 eax = MEM32(eax); /* 0x36056DE5: mov eax, dword ptr [eax] */ 5440 MEM32(eax + 0x10) = 0xC1ABu; /* 0x36056DE7: mov dword ptr [eax + 0x10], 0xc1ab */ 5441 ecx = MEM32(esi + 0x94); /* 0x36056DEE: mov ecx, dword ptr [esi + 0x94] */ 5442 eax = ebp + (-0x20); /* 0x36056DF4: lea eax, [ebp - 0x20] */ 5443 PUSH32(esp, eax); /* 0x36056DF7: push eax */ 5444 edx = ebp + (-0x18); /* 0x36056DF8: lea edx, [ebp - 0x18] */ 5445 PUSH32(esp, edx); /* 0x36056DFB: push edx */ 5446 MEM32(ebp + (-0x20)) = 0x11u; /* 0x36056DFC: mov dword ptr [ebp - 0x20], 0x11 */ 5447 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056E03: mov dword ptr [ebp - 0x1c], ebx */ 5448 RECOMP_ICALL(0x360E2B30u); /* 0x36056E06: call 0x360e2b30 */ /* not lifted */ 5449 RECOMP_FLAGS_IN(); 5450 eax = MEM32(eax); /* 0x36056E0B: mov eax, dword ptr [eax] */ 5451 MEM32(eax + 0x10) = 0xC1A2u; /* 0x36056E0D: mov dword ptr [eax + 0x10], 0xc1a2 */ 5452 ecx = MEM32(esi + 0x94); /* 0x36056E14: mov ecx, dword ptr [esi + 0x94] */ 5453 eax = ebp + (-0x20); /* 0x36056E1A: lea eax, [ebp - 0x20] */ 5454 PUSH32(esp, eax); /* 0x36056E1D: push eax */ 5455 edx = ebp + (-0x18); /* 0x36056E1E: lea edx, [ebp - 0x18] */ 5456 PUSH32(esp, edx); /* 0x36056E21: push edx */ 5457 MEM32(ebp + (-0x20)) = 0x12u; /* 0x36056E22: mov dword ptr [ebp - 0x20], 0x12 */ 5458 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056E29: mov dword ptr [ebp - 0x1c], ebx */ 5459 RECOMP_ICALL(0x360E2B30u); /* 0x36056E2C: call 0x360e2b30 */ /* not lifted */ 5460 RECOMP_FLAGS_IN(); 5461 eax = MEM32(eax); /* 0x36056E31: mov eax, dword ptr [eax] */ 5462 MEM32(eax + 0x10) = 0xC1A9u; /* 0x36056E33: mov dword ptr [eax + 0x10], 0xc1a9 */ 5463 ecx = MEM32(esi + 0x94); /* 0x36056E3A: mov ecx, dword ptr [esi + 0x94] */ 5464 eax = ebp + (-0x20); /* 0x36056E40: lea eax, [ebp - 0x20] */ 5465 PUSH32(esp, eax); /* 0x36056E43: push eax */ 5466 edx = ebp + (-0x18); /* 0x36056E44: lea edx, [ebp - 0x18] */ 5467 PUSH32(esp, edx); /* 0x36056E47: push edx */ 5468 MEM32(ebp + (-0x20)) = 0x13u; /* 0x36056E48: mov dword ptr [ebp - 0x20], 0x13 */ 5469 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056E4F: mov dword ptr [ebp - 0x1c], ebx */ 5470 RECOMP_ICALL(0x360E2B30u); /* 0x36056E52: call 0x360e2b30 */ /* not lifted */ 5471 RECOMP_FLAGS_IN(); 5472 eax = MEM32(eax); /* 0x36056E57: mov eax, dword ptr [eax] */ 5473 MEM32(eax + 0x10) = 0xC1A7u; /* 0x36056E59: mov dword ptr [eax + 0x10], 0xc1a7 */ 5474 edi = MEM32(esi + 0x94); /* 0x36056E60: mov edi, dword ptr [esi + 0x94] */ 5475 eax = ebp + (-0x14); /* 0x36056E66: lea eax, [ebp - 0x14] */ 5476 PUSH32(esp, eax); /* 0x36056E69: push eax */ 5477 ecx = ebp + (-0x1C); /* 0x36056E6A: lea ecx, [ebp - 0x1c] */ 5478 PUSH32(esp, ecx); /* 0x36056E6D: push ecx */ 5479 ecx = ebp + (-0x30); /* 0x36056E6E: lea ecx, [ebp - 0x30] */ 5480 MEM32(ebp + (-0x1C)) = 0x4Fu; /* 0x36056E71: mov dword ptr [ebp - 0x1c], 0x4f */ 5481 MEM32(ebp + (-0x14)) = ebx; /* 0x36056E78: mov dword ptr [ebp - 0x14], ebx */ 5482 RECOMP_ICALL(0x3603E680u); /* 0x36056E7B: call 0x3603e680 */ /* not lifted */ 5483 RECOMP_FLAGS_IN(); 5484 PUSH32(esp, eax); /* 0x36056E80: push eax */ 5485 edx = ebp + (-0x38); /* 0x36056E81: lea edx, [ebp - 0x38] */ 5486 PUSH32(esp, edx); /* 0x36056E84: push edx */ 5487 ecx = edi; /* 0x36056E85: mov ecx, edi */ 5488 RECOMP_ICALL(0x360E2B30u); /* 0x36056E87: call 0x360e2b30 */ /* not lifted */ 5489 RECOMP_FLAGS_IN(); 5490 eax = MEM32(eax); /* 0x36056E8C: mov eax, dword ptr [eax] */ 5491 MEM32(eax + 0x10) = 0x0001412Cu; /* 0x36056E8E: mov dword ptr [eax + 0x10], 0x1412c */ 5492 edi = MEM32(esi + 0x94); /* 0x36056E95: mov edi, dword ptr [esi + 0x94] */ 5493 eax = ebp + (-0x1C); /* 0x36056E9B: lea eax, [ebp - 0x1c] */ 5494 PUSH32(esp, eax); /* 0x36056E9E: push eax */ 5495 ecx = ebp + (-0x14); /* 0x36056E9F: lea ecx, [ebp - 0x14] */ 5496 PUSH32(esp, ecx); /* 0x36056EA2: push ecx */ 5497 ecx = ebp + (-0x38); /* 0x36056EA3: lea ecx, [ebp - 0x38] */ 5498 MEM32(ebp + (-0x14)) = 0x4Cu; /* 0x36056EA6: mov dword ptr [ebp - 0x14], 0x4c */ 5499 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056EAD: mov dword ptr [ebp - 0x1c], ebx */ 5500 RECOMP_ICALL(0x3603E680u); /* 0x36056EB0: call 0x3603e680 */ /* not lifted */ 5501 RECOMP_FLAGS_IN(); 5502 PUSH32(esp, eax); /* 0x36056EB5: push eax */ 5503 edx = ebp + (-0x30); /* 0x36056EB6: lea edx, [ebp - 0x30] */ 5504 PUSH32(esp, edx); /* 0x36056EB9: push edx */ 5505 ecx = edi; /* 0x36056EBA: mov ecx, edi */ 5506 RECOMP_ICALL(0x360E2B30u); /* 0x36056EBC: call 0x360e2b30 */ /* not lifted */ 5507 RECOMP_FLAGS_IN(); 5508 eax = MEM32(eax); /* 0x36056EC1: mov eax, dword ptr [eax] */ 5509 MEM32(eax + 0x10) = 0xC1A8u; /* 0x36056EC3: mov dword ptr [eax + 0x10], 0xc1a8 */ 5510 edi = MEM32(esi + 0x94); /* 0x36056ECA: mov edi, dword ptr [esi + 0x94] */ 5511 eax = ebp + (-0x1C); /* 0x36056ED0: lea eax, [ebp - 0x1c] */ 5512 PUSH32(esp, eax); /* 0x36056ED3: push eax */ 5513 ecx = ebp + (-0x14); /* 0x36056ED4: lea ecx, [ebp - 0x14] */ 5514 PUSH32(esp, ecx); /* 0x36056ED7: push ecx */ 5515 ecx = ebp + (-0x38); /* 0x36056ED8: lea ecx, [ebp - 0x38] */ 5516 MEM32(ebp + (-0x14)) = 0x4Du; /* 0x36056EDB: mov dword ptr [ebp - 0x14], 0x4d */ 5517 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056EE2: mov dword ptr [ebp - 0x1c], ebx */ 5518 RECOMP_ICALL(0x3603E680u); /* 0x36056EE5: call 0x3603e680 */ /* not lifted */ 5519 RECOMP_FLAGS_IN(); 5520 PUSH32(esp, eax); /* 0x36056EEA: push eax */ 5521 edx = ebp + (-0x30); /* 0x36056EEB: lea edx, [ebp - 0x30] */ 5522 PUSH32(esp, edx); /* 0x36056EEE: push edx */ 5523 ecx = edi; /* 0x36056EEF: mov ecx, edi */ 5524 RECOMP_ICALL(0x360E2B30u); /* 0x36056EF1: call 0x360e2b30 */ /* not lifted */ 5525 RECOMP_FLAGS_IN(); 5526 eax = MEM32(eax); /* 0x36056EF6: mov eax, dword ptr [eax] */ 5527 MEM32(eax + 0x10) = 0xC1A6u; /* 0x36056EF8: mov dword ptr [eax + 0x10], 0xc1a6 */ 5528 edi = MEM32(esi + 0x94); /* 0x36056EFF: mov edi, dword ptr [esi + 0x94] */ 5529 eax = ebp + (-0x1C); /* 0x36056F05: lea eax, [ebp - 0x1c] */ 5530 PUSH32(esp, eax); /* 0x36056F08: push eax */ 5531 ecx = ebp + (-0x14); /* 0x36056F09: lea ecx, [ebp - 0x14] */ 5532 PUSH32(esp, ecx); /* 0x36056F0C: push ecx */ 5533 ecx = ebp + (-0x38); /* 0x36056F0D: lea ecx, [ebp - 0x38] */ 5534 MEM32(ebp + (-0x14)) = 0x51u; /* 0x36056F10: mov dword ptr [ebp - 0x14], 0x51 */ 5535 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056F17: mov dword ptr [ebp - 0x1c], ebx */ 5536 RECOMP_ICALL(0x3603E680u); /* 0x36056F1A: call 0x3603e680 */ /* not lifted */ 5537 RECOMP_FLAGS_IN(); 5538 PUSH32(esp, eax); /* 0x36056F1F: push eax */ 5539 edx = ebp + (-0x30); /* 0x36056F20: lea edx, [ebp - 0x30] */ 5540 PUSH32(esp, edx); /* 0x36056F23: push edx */ 5541 ecx = edi; /* 0x36056F24: mov ecx, edi */ 5542 RECOMP_ICALL(0x360E2B30u); /* 0x36056F26: call 0x360e2b30 */ /* not lifted */ 5543 RECOMP_FLAGS_IN(); 5544 eax = MEM32(eax); /* 0x36056F2B: mov eax, dword ptr [eax] */ 5545 MEM32(eax + 0x10) = 0x00014124u; /* 0x36056F2D: mov dword ptr [eax + 0x10], 0x14124 */ 5546 edi = MEM32(esi + 0x94); /* 0x36056F34: mov edi, dword ptr [esi + 0x94] */ 5547 eax = ebp + (-0x1C); /* 0x36056F3A: lea eax, [ebp - 0x1c] */ 5548 PUSH32(esp, eax); /* 0x36056F3D: push eax */ 5549 ecx = ebp + (-0x14); /* 0x36056F3E: lea ecx, [ebp - 0x14] */ 5550 PUSH32(esp, ecx); /* 0x36056F41: push ecx */ 5551 ecx = ebp + (-0x38); /* 0x36056F42: lea ecx, [ebp - 0x38] */ 5552 MEM32(ebp + (-0x14)) = 0x52u; /* 0x36056F45: mov dword ptr [ebp - 0x14], 0x52 */ 5553 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056F4C: mov dword ptr [ebp - 0x1c], ebx */ 5554 RECOMP_ICALL(0x3603E680u); /* 0x36056F4F: call 0x3603e680 */ /* not lifted */ 5555 RECOMP_FLAGS_IN(); 5556 PUSH32(esp, eax); /* 0x36056F54: push eax */ 5557 edx = ebp + (-0x30); /* 0x36056F55: lea edx, [ebp - 0x30] */ 5558 PUSH32(esp, edx); /* 0x36056F58: push edx */ 5559 ecx = edi; /* 0x36056F59: mov ecx, edi */ 5560 RECOMP_ICALL(0x360E2B30u); /* 0x36056F5B: call 0x360e2b30 */ /* not lifted */ 5561 RECOMP_FLAGS_IN(); 5562 eax = MEM32(eax); /* 0x36056F60: mov eax, dword ptr [eax] */ 5563 MEM32(eax + 0x10) = 0x0001412Bu; /* 0x36056F62: mov dword ptr [eax + 0x10], 0x1412b */ 5564 edi = MEM32(esi + 0x94); /* 0x36056F69: mov edi, dword ptr [esi + 0x94] */ 5565 eax = ebp + (-0x1C); /* 0x36056F6F: lea eax, [ebp - 0x1c] */ 5566 PUSH32(esp, eax); /* 0x36056F72: push eax */ 5567 ecx = ebp + (-0x14); /* 0x36056F73: lea ecx, [ebp - 0x14] */ 5568 PUSH32(esp, ecx); /* 0x36056F76: push ecx */ 5569 ecx = ebp + (-0x38); /* 0x36056F77: lea ecx, [ebp - 0x38] */ 5570 MEM32(ebp + (-0x14)) = 0x86u; /* 0x36056F7A: mov dword ptr [ebp - 0x14], 0x86 */ 5571 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056F81: mov dword ptr [ebp - 0x1c], ebx */ 5572 RECOMP_ICALL(0x3603E680u); /* 0x36056F84: call 0x3603e680 */ /* not lifted */ 5573 RECOMP_FLAGS_IN(); 5574 PUSH32(esp, eax); /* 0x36056F89: push eax */ 5575 edx = ebp + (-0x30); /* 0x36056F8A: lea edx, [ebp - 0x30] */ 5576 PUSH32(esp, edx); /* 0x36056F8D: push edx */ 5577 ecx = edi; /* 0x36056F8E: mov ecx, edi */ 5578 RECOMP_ICALL(0x360E2B30u); /* 0x36056F90: call 0x360e2b30 */ /* not lifted */ 5579 RECOMP_FLAGS_IN(); 5580 eax = MEM32(eax); /* 0x36056F95: mov eax, dword ptr [eax] */ 5581 MEM32(eax + 0x10) = 0x0001D9D7u; /* 0x36056F97: mov dword ptr [eax + 0x10], 0x1d9d7 */ 5582 edi = MEM32(esi + 0x94); /* 0x36056F9E: mov edi, dword ptr [esi + 0x94] */ 5583 eax = ebp + (-0x1C); /* 0x36056FA4: lea eax, [ebp - 0x1c] */ 5584 PUSH32(esp, eax); /* 0x36056FA7: push eax */ 5585 ecx = ebp + (-0x14); /* 0x36056FA8: lea ecx, [ebp - 0x14] */ 5586 PUSH32(esp, ecx); /* 0x36056FAB: push ecx */ 5587 ecx = ebp + (-0x38); /* 0x36056FAC: lea ecx, [ebp - 0x38] */ 5588 MEM32(ebp + (-0x14)) = 0x97u; /* 0x36056FAF: mov dword ptr [ebp - 0x14], 0x97 */ 5589 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056FB6: mov dword ptr [ebp - 0x1c], ebx */ 5590 RECOMP_ICALL(0x3603E680u); /* 0x36056FB9: call 0x3603e680 */ /* not lifted */ 5591 RECOMP_FLAGS_IN(); 5592 PUSH32(esp, eax); /* 0x36056FBE: push eax */ 5593 edx = ebp + (-0x30); /* 0x36056FBF: lea edx, [ebp - 0x30] */ 5594 PUSH32(esp, edx); /* 0x36056FC2: push edx */ 5595 ecx = edi; /* 0x36056FC3: mov ecx, edi */ 5596 RECOMP_ICALL(0x360E2B30u); /* 0x36056FC5: call 0x360e2b30 */ /* not lifted */ 5597 RECOMP_FLAGS_IN(); 5598 eax = MEM32(eax); /* 0x36056FCA: mov eax, dword ptr [eax] */ 5599 MEM32(eax + 0x10) = 0x00014127u; /* 0x36056FCC: mov dword ptr [eax + 0x10], 0x14127 */ 5600 edi = MEM32(esi + 0x94); /* 0x36056FD3: mov edi, dword ptr [esi + 0x94] */ 5601 eax = ebp + (-0x1C); /* 0x36056FD9: lea eax, [ebp - 0x1c] */ 5602 PUSH32(esp, eax); /* 0x36056FDC: push eax */ 5603 ecx = ebp + (-0x14); /* 0x36056FDD: lea ecx, [ebp - 0x14] */ 5604 PUSH32(esp, ecx); /* 0x36056FE0: push ecx */ 5605 ecx = ebp + (-0x38); /* 0x36056FE1: lea ecx, [ebp - 0x38] */ 5606 MEM32(ebp + (-0x14)) = 0x94u; /* 0x36056FE4: mov dword ptr [ebp - 0x14], 0x94 */ 5607 MEM32(ebp + (-0x1C)) = ebx; /* 0x36056FEB: mov dword ptr [ebp - 0x1c], ebx */ 5608 RECOMP_ICALL(0x3603E680u); /* 0x36056FEE: call 0x3603e680 */ /* not lifted */ 5609 RECOMP_FLAGS_IN(); 5610 PUSH32(esp, eax); /* 0x36056FF3: push eax */ 5611 edx = ebp + (-0x30); /* 0x36056FF4: lea edx, [ebp - 0x30] */ 5612 PUSH32(esp, edx); /* 0x36056FF7: push edx */ 5613 ecx = edi; /* 0x36056FF8: mov ecx, edi */ 5614 RECOMP_ICALL(0x360E2B30u); /* 0x36056FFA: call 0x360e2b30 */ /* not lifted */ 5615 RECOMP_FLAGS_IN(); 5616 eax = MEM32(eax); /* 0x36056FFF: mov eax, dword ptr [eax] */ 5617 MEM32(eax + 0x10) = 0x00014123u; /* 0x36057001: mov dword ptr [eax + 0x10], 0x14123 */ 5618 edi = MEM32(esi + 0x94); /* 0x36057008: mov edi, dword ptr [esi + 0x94] */ 5619 eax = ebp + (-0x1C); /* 0x3605700E: lea eax, [ebp - 0x1c] */ 5620 PUSH32(esp, eax); /* 0x36057011: push eax */ 5621 ecx = ebp + (-0x14); /* 0x36057012: lea ecx, [ebp - 0x14] */ 5622 PUSH32(esp, ecx); /* 0x36057015: push ecx */ 5623 ecx = ebp + (-0x38); /* 0x36057016: lea ecx, [ebp - 0x38] */ 5624 MEM32(ebp + (-0x14)) = 0xA7u; /* 0x36057019: mov dword ptr [ebp - 0x14], 0xa7 */ 5625 MEM32(ebp + (-0x1C)) = ebx; /* 0x36057020: mov dword ptr [ebp - 0x1c], ebx */ 5626 RECOMP_ICALL(0x3603E680u); /* 0x36057023: call 0x3603e680 */ /* not lifted */ 5627 RECOMP_FLAGS_IN(); 5628 PUSH32(esp, eax); /* 0x36057028: push eax */ 5629 edx = ebp + (-0x30); /* 0x36057029: lea edx, [ebp - 0x30] */ 5630 PUSH32(esp, edx); /* 0x3605702C: push edx */ 5631 ecx = edi; /* 0x3605702D: mov ecx, edi */ 5632 RECOMP_ICALL(0x360E2B30u); /* 0x3605702F: call 0x360e2b30 */ /* not lifted */ 5633 RECOMP_FLAGS_IN(); 5634 eax = MEM32(eax); /* 0x36057034: mov eax, dword ptr [eax] */ 5635 MEM32(eax + 0x10) = 0x00014121u; /* 0x36057036: mov dword ptr [eax + 0x10], 0x14121 */ 5636 edi = MEM32(esi + 0x94); /* 0x3605703D: mov edi, dword ptr [esi + 0x94] */ 5637 eax = ebp + (-0x1C); /* 0x36057043: lea eax, [ebp - 0x1c] */ 5638 PUSH32(esp, eax); /* 0x36057046: push eax */ 5639 ecx = ebp + (-0x14); /* 0x36057047: lea ecx, [ebp - 0x14] */ 5640 PUSH32(esp, ecx); /* 0x3605704A: push ecx */ 5641 ecx = ebp + (-0x38); /* 0x3605704B: lea ecx, [ebp - 0x38] */ 5642 MEM32(ebp + (-0x14)) = 0x96u; /* 0x3605704E: mov dword ptr [ebp - 0x14], 0x96 */ 5643 MEM32(ebp + (-0x1C)) = ebx; /* 0x36057055: mov dword ptr [ebp - 0x1c], ebx */ 5644 RECOMP_ICALL(0x3603E680u); /* 0x36057058: call 0x3603e680 */ /* not lifted */ 5645 RECOMP_FLAGS_IN(); 5646 PUSH32(esp, eax); /* 0x3605705D: push eax */ 5647 edx = ebp + (-0x30); /* 0x3605705E: lea edx, [ebp - 0x30] */ 5648 PUSH32(esp, edx); /* 0x36057061: push edx */ 5649 ecx = edi; /* 0x36057062: mov ecx, edi */ 5650 RECOMP_ICALL(0x360E2B30u); /* 0x36057064: call 0x360e2b30 */ /* not lifted */ 5651 RECOMP_FLAGS_IN(); 5652 eax = MEM32(eax); /* 0x36057069: mov eax, dword ptr [eax] */ 5653 MEM32(eax + 0x10) = 0x00014120u; /* 0x3605706B: mov dword ptr [eax + 0x10], 0x14120 */ 5654 edi = MEM32(esi + 0x94); /* 0x36057072: mov edi, dword ptr [esi + 0x94] */ 5655 eax = ebp + (-0x1C); /* 0x36057078: lea eax, [ebp - 0x1c] */ 5656 PUSH32(esp, eax); /* 0x3605707B: push eax */ 5657 ecx = ebp + (-0x14); /* 0x3605707C: lea ecx, [ebp - 0x14] */ 5658 PUSH32(esp, ecx); /* 0x3605707F: push ecx */ 5659 ecx = ebp + (-0x38); /* 0x36057080: lea ecx, [ebp - 0x38] */ 5660 MEM32(ebp + (-0x14)) = 0x8Eu; /* 0x36057083: mov dword ptr [ebp - 0x14], 0x8e */ 5661 MEM32(ebp + (-0x1C)) = ebx; /* 0x3605708A: mov dword ptr [ebp - 0x1c], ebx */ 5662 RECOMP_ICALL(0x3603E680u); /* 0x3605708D: call 0x3603e680 */ /* not lifted */ 5663 RECOMP_FLAGS_IN(); 5664 PUSH32(esp, eax); /* 0x36057092: push eax */ 5665 edx = ebp + (-0x30); /* 0x36057093: lea edx, [ebp - 0x30] */ 5666 PUSH32(esp, edx); /* 0x36057096: push edx */ 5667 ecx = edi; /* 0x36057097: mov ecx, edi */ 5668 RECOMP_ICALL(0x360E2B30u); /* 0x36057099: call 0x360e2b30 */ /* not lifted */ 5669 RECOMP_FLAGS_IN(); 5670 eax = MEM32(eax); /* 0x3605709E: mov eax, dword ptr [eax] */ 5671 MEM32(eax + 0x10) = 0x00014122u; /* 0x360570A0: mov dword ptr [eax + 0x10], 0x14122 */ 5672 edi = MEM32(esi + 0x94); /* 0x360570A7: mov edi, dword ptr [esi + 0x94] */ 5673 eax = ebp + (-0x1C); /* 0x360570AD: lea eax, [ebp - 0x1c] */ 5674 PUSH32(esp, eax); /* 0x360570B0: push eax */ 5675 ecx = ebp + (-0x14); /* 0x360570B1: lea ecx, [ebp - 0x14] */ 5676 PUSH32(esp, ecx); /* 0x360570B4: push ecx */ 5677 ecx = ebp + (-0x38); /* 0x360570B5: lea ecx, [ebp - 0x38] */ 5678 MEM32(ebp + (-0x14)) = 0x90u; /* 0x360570B8: mov dword ptr [ebp - 0x14], 0x90 */ 5679 MEM32(ebp + (-0x1C)) = ebx; /* 0x360570BF: mov dword ptr [ebp - 0x1c], ebx */ 5680 RECOMP_ICALL(0x3603E680u); /* 0x360570C2: call 0x3603e680 */ /* not lifted */ 5681 RECOMP_FLAGS_IN(); 5682 PUSH32(esp, eax); /* 0x360570C7: push eax */ 5683 edx = ebp + (-0x30); /* 0x360570C8: lea edx, [ebp - 0x30] */ 5684 PUSH32(esp, edx); /* 0x360570CB: push edx */ 5685 ecx = edi; /* 0x360570CC: mov ecx, edi */ 5686 RECOMP_ICALL(0x360E2B30u); /* 0x360570CE: call 0x360e2b30 */ /* not lifted */ 5687 RECOMP_FLAGS_IN(); 5688 eax = MEM32(eax); /* 0x360570D3: mov eax, dword ptr [eax] */ 5689 MEM32(eax + 0x10) = 0x00014125u; /* 0x360570D5: mov dword ptr [eax + 0x10], 0x14125 */ 5690 edi = MEM32(esi + 0x94); /* 0x360570DC: mov edi, dword ptr [esi + 0x94] */ 5691 eax = ebp + (-0x1C); /* 0x360570E2: lea eax, [ebp - 0x1c] */ 5692 PUSH32(esp, eax); /* 0x360570E5: push eax */ 5693 ecx = ebp + (-0x14); /* 0x360570E6: lea ecx, [ebp - 0x14] */ 5694 PUSH32(esp, ecx); /* 0x360570E9: push ecx */ 5695 ecx = ebp + (-0x38); /* 0x360570EA: lea ecx, [ebp - 0x38] */ 5696 MEM32(ebp + (-0x14)) = 0x93u; /* 0x360570ED: mov dword ptr [ebp - 0x14], 0x93 */ 5697 MEM32(ebp + (-0x1C)) = ebx; /* 0x360570F4: mov dword ptr [ebp - 0x1c], ebx */ 5698 RECOMP_ICALL(0x3603E680u); /* 0x360570F7: call 0x3603e680 */ /* not lifted */ 5699 RECOMP_FLAGS_IN(); 5700 PUSH32(esp, eax); /* 0x360570FC: push eax */ 5701 edx = ebp + (-0x30); /* 0x360570FD: lea edx, [ebp - 0x30] */ 5702 PUSH32(esp, edx); /* 0x36057100: push edx */ 5703 ecx = edi; /* 0x36057101: mov ecx, edi */ 5704 RECOMP_ICALL(0x360E2B30u); /* 0x36057103: call 0x360e2b30 */ /* not lifted */ 5705 RECOMP_FLAGS_IN(); 5706 eax = MEM32(eax); /* 0x36057108: mov eax, dword ptr [eax] */ 5707 MEM32(eax + 0x10) = 0x00014126u; /* 0x3605710A: mov dword ptr [eax + 0x10], 0x14126 */ 5708 ecx = MEM32(esi + 0x94); /* 0x36057111: mov ecx, dword ptr [esi + 0x94] */ 5709 eax = ebp + (-0x1C); /* 0x36057117: lea eax, [ebp - 0x1c] */ 5710 PUSH32(esp, eax); /* 0x3605711A: push eax */ 5711 MEM32(ebp + (-0x1C)) = 0x8Fu; /* 0x3605711B: mov dword ptr [ebp - 0x1c], 0x8f */ 5712 RECOMP_ICALL(0x360BFC80u); /* 0x36057122: call 0x360bfc80 */ /* not lifted */ 5713 RECOMP_FLAGS_IN(); 5714 ecx = ebp + (-0x1C); /* 0x36057127: lea ecx, [ebp - 0x1c] */ 5715 MEM32(eax) = 0x00014129u; /* 0x3605712A: mov dword ptr [eax], 0x14129 */ 5716 PUSH32(esp, ecx); /* 0x36057130: push ecx */ 5717 ecx = MEM32(esi + 0x94); /* 0x36057131: mov ecx, dword ptr [esi + 0x94] */ 5718 MEM32(ebp + (-0x1C)) = 0x79u; /* 0x36057137: mov dword ptr [ebp - 0x1c], 0x79 */ 5719 RECOMP_ICALL(0x360BFC80u); /* 0x3605713E: call 0x360bfc80 */ /* not lifted */ 5720 RECOMP_FLAGS_IN(); 5721 MEM32(eax) = 0x0001E159u; /* 0x36057143: mov dword ptr [eax], 0x1e159 */ 5722 ecx = MEM32(esi + 0x94); /* 0x36057149: mov ecx, dword ptr [esi + 0x94] */ 5723 edx = ebp + (-0x1C); /* 0x3605714F: lea edx, [ebp - 0x1c] */ 5724 PUSH32(esp, edx); /* 0x36057152: push edx */ 5725 MEM32(ebp + (-0x1C)) = 0x92u; /* 0x36057153: mov dword ptr [ebp - 0x1c], 0x92 */ 5726 RECOMP_ICALL(0x360BFC80u); /* 0x3605715A: call 0x360bfc80 */ /* not lifted */ 5727 RECOMP_FLAGS_IN(); 5728 MEM32(eax) = 0x0001F83Au; /* 0x3605715F: mov dword ptr [eax], 0x1f83a */ 5729 eax = MEM32(esi + 0x10); /* 0x36057165: mov eax, dword ptr [esi + 0x10] */ 5730 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 5731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5732 eax = eax + 4; /* 0x36057168: add eax, 4 */ 5733 _flag_k = FK_ADD; 5734 PUSH32(esp, eax); /* 0x3605716B: push eax */ 5735 ecx = ebp + (-0x28); /* 0x3605716C: lea ecx, [ebp - 0x28] */ 5736 RECOMP_ICALL(0x360056C0u); /* 0x3605716F: call 0x360056c0 */ /* not lifted */ 5737 RECOMP_FLAGS_IN(); 5738 PUSH32(esp, ebx); /* 0x36057174: push ebx */ 5739 ecx = ebp + (-0x28); /* 0x36057175: lea ecx, [ebp - 0x28] */ 5740 PUSH32(esp, ecx); /* 0x36057178: push ecx */ 5741 PUSH32(esp, 3); /* 0x36057179: push 3 */ 5742 ecx = esi; /* 0x3605717B: mov ecx, esi */ 5743 RECOMP_ICALL(0x36057370u); /* 0x3605717D: call 0x36057370 */ /* not lifted */ 5744 RECOMP_FLAGS_IN(); 5745 PUSH32(esp, ebx); /* 0x36057182: push ebx */ 5746 edx = ebp + (-0x28); /* 0x36057183: lea edx, [ebp - 0x28] */ 5747 PUSH32(esp, edx); /* 0x36057186: push edx */ 5748 PUSH32(esp, 1); /* 0x36057187: push 1 */ 5749 ecx = esi; /* 0x36057189: mov ecx, esi */ 5750 RECOMP_ICALL(0x36057370u); /* 0x3605718B: call 0x36057370 */ /* not lifted */ 5751 RECOMP_FLAGS_IN(); 5752 PUSH32(esp, 0x4Eu); /* 0x36057190: push 0x4e */ 5753 eax = ebp + (-0x28); /* 0x36057192: lea eax, [ebp - 0x28] */ 5754 PUSH32(esp, eax); /* 0x36057195: push eax */ 5755 PUSH32(esp, 0xBu); /* 0x36057196: push 0xb */ 5756 ecx = esi; /* 0x36057198: mov ecx, esi */ 5757 RECOMP_ICALL(0x36057370u); /* 0x3605719A: call 0x36057370 */ /* not lifted */ 5758 RECOMP_FLAGS_IN(); 5759 PUSH32(esp, 0x4Du); /* 0x3605719F: push 0x4d */ 5760 ecx = ebp + (-0x28); /* 0x360571A1: lea ecx, [ebp - 0x28] */ 5761 PUSH32(esp, ecx); /* 0x360571A4: push ecx */ 5762 PUSH32(esp, 0x4Cu); /* 0x360571A5: push 0x4c */ 5763 ecx = esi; /* 0x360571A7: mov ecx, esi */ 5764 RECOMP_ICALL(0x36057370u); /* 0x360571A9: call 0x36057370 */ /* not lifted */ 5765 RECOMP_FLAGS_IN(); 5766 PUSH32(esp, 0x12u); /* 0x360571AE: push 0x12 */ 5767 edx = ebp + (-0x28); /* 0x360571B0: lea edx, [ebp - 0x28] */ 5768 PUSH32(esp, edx); /* 0x360571B3: push edx */ 5769 PUSH32(esp, 0x11u); /* 0x360571B4: push 0x11 */ 5770 ecx = esi; /* 0x360571B6: mov ecx, esi */ 5771 RECOMP_ICALL(0x36057370u); /* 0x360571B8: call 0x36057370 */ /* not lifted */ 5772 RECOMP_FLAGS_IN(); 5773 PUSH32(esp, 0x4Fu); /* 0x360571BD: push 0x4f */ 5774 eax = ebp + (-0x28); /* 0x360571BF: lea eax, [ebp - 0x28] */ 5775 PUSH32(esp, eax); /* 0x360571C2: push eax */ 5776 PUSH32(esp, 0x13u); /* 0x360571C3: push 0x13 */ 5777 ecx = esi; /* 0x360571C5: mov ecx, esi */ 5778 RECOMP_ICALL(0x36057370u); /* 0x360571C7: call 0x36057370 */ /* not lifted */ 5779 RECOMP_FLAGS_IN(); 5780 PUSH32(esp, 0x52u); /* 0x360571CC: push 0x52 */ 5781 ecx = ebp + (-0x28); /* 0x360571CE: lea ecx, [ebp - 0x28] */ 5782 PUSH32(esp, ecx); /* 0x360571D1: push ecx */ 5783 PUSH32(esp, 0x51u); /* 0x360571D2: push 0x51 */ 5784 ecx = esi; /* 0x360571D4: mov ecx, esi */ 5785 RECOMP_ICALL(0x36057370u); /* 0x360571D6: call 0x36057370 */ /* not lifted */ 5786 RECOMP_FLAGS_IN(); 5787 PUSH32(esp, 0x86u); /* 0x360571DB: push 0x86 */ 5788 edx = ebp + (-0x28); /* 0x360571E0: lea edx, [ebp - 0x28] */ 5789 PUSH32(esp, edx); /* 0x360571E3: push edx */ 5790 PUSH32(esp, 0x86u); /* 0x360571E4: push 0x86 */ 5791 ecx = esi; /* 0x360571E9: mov ecx, esi */ 5792 RECOMP_ICALL(0x36057370u); /* 0x360571EB: call 0x36057370 */ /* not lifted */ 5793 RECOMP_FLAGS_IN(); 5794 PUSH32(esp, 0x14u); /* 0x360571F0: push 0x14 */ 5795 RECOMP_ICALL(0x3615FD6Au); /* 0x360571F2: call 0x3615fd6a */ /* not lifted */ 5796 RECOMP_FLAGS_IN(); 5797 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5799 esp = esp + 4; /* 0x360571F7: add esp, 4 */ 5800 _flag_k = FK_ADD; 5801 MEM32(ebp + (-0x1C)) = eax; /* 0x360571FA: mov dword ptr [ebp - 0x1c], eax */ 5802 /* cmp eax, ebx */ /* 0x360571FD: cmp eax, ebx */ 5803 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5805 _flag_k = FK_CMP; 5806 MEM32(ebp + (-0x4)) = 1; /* 0x360571FF: mov dword ptr [ebp - 4], 1 */ 5807 edi = POP32_VAL(esp); /* 0x36057206: pop edi */ 5808 if (CMP_EQ(_flag_a, _flag_b)) goto L_3605721A; /* 0x36057207: je 0x3605721a */ 5809 L_36057209: 5810 ecx = ebp + (-0xF); /* 0x36057209: lea ecx, [ebp - 0xf] */ 5811 PUSH32(esp, ecx); /* 0x3605720C: push ecx */ 5812 edx = ebp + (-0x10); /* 0x3605720D: lea edx, [ebp - 0x10] */ 5813 PUSH32(esp, edx); /* 0x36057210: push edx */ 5814 ecx = eax; /* 0x36057211: mov ecx, eax */ 5815 RECOMP_ICALL(0x36096250u); /* 0x36057213: call 0x36096250 */ /* not lifted */ 5816 RECOMP_FLAGS_IN(); 5817 goto L_3605721C; /* 0x36057218: jmp 0x3605721c */ 5818 L_3605721A: 5819 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5820 eax = 0; /* 0x3605721A: xor eax, eax */ 5821 _cf = 0; 5822 _flag_k = FK_TEST; 5823 L_3605721C: 5824 PUSH32(esp, 0x4Eu); /* 0x3605721C: push 0x4e */ 5825 ecx = esi; /* 0x3605721E: mov ecx, esi */ 5826 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36057220: mov dword ptr [ebp - 4], 0xffffffff */ 5827 MEM32(esi + 0x98) = eax; /* 0x36057227: mov dword ptr [esi + 0x98], eax */ 5828 RECOMP_ICALL(0x36057990u); /* 0x3605722D: call 0x36057990 */ /* not lifted */ 5829 RECOMP_FLAGS_IN(); 5830 PUSH32(esp, 0x4Du); /* 0x36057232: push 0x4d */ 5831 ecx = esi; /* 0x36057234: mov ecx, esi */ 5832 RECOMP_ICALL(0x36057990u); /* 0x36057236: call 0x36057990 */ /* not lifted */ 5833 RECOMP_FLAGS_IN(); 5834 PUSH32(esp, 0x12u); /* 0x3605723B: push 0x12 */ 5835 ecx = esi; /* 0x3605723D: mov ecx, esi */ 5836 RECOMP_ICALL(0x36057990u); /* 0x3605723F: call 0x36057990 */ /* not lifted */ 5837 RECOMP_FLAGS_IN(); 5838 PUSH32(esp, 0x4Fu); /* 0x36057244: push 0x4f */ 5839 ecx = esi; /* 0x36057246: mov ecx, esi */ 5840 RECOMP_ICALL(0x36057990u); /* 0x36057248: call 0x36057990 */ /* not lifted */ 5841 RECOMP_FLAGS_IN(); 5842 PUSH32(esp, 0x52u); /* 0x3605724D: push 0x52 */ 5843 ecx = esi; /* 0x3605724F: mov ecx, esi */ 5844 RECOMP_ICALL(0x36057990u); /* 0x36057251: call 0x36057990 */ /* not lifted */ 5845 RECOMP_FLAGS_IN(); 5846 L_36057256: 5847 ecx = MEM32(ebp + (-0xC)); /* 0x36057256: mov ecx, dword ptr [ebp - 0xc] */ 5848 esi = POP32_VAL(esp); /* 0x36057259: pop esi */ 5849 ebx = POP32_VAL(esp); /* 0x3605725A: pop ebx */ 5850 MEM32(FS_BASE + (0)) = ecx; /* 0x3605725B: mov dword ptr fs:[0], ecx */ 5851 esp = ebp; /* 0x36057262: mov esp, ebp */ 5852 ebp = POP32_VAL(esp); /* 0x36057264: pop ebp */ 5853 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36057265: ret */ 5854 RECOMP_REGS_OUT(); 5855 } 5856 5857 void sub_36057270(void) { 5858 int _fpu_cmp = 0; 5859 uint32_t _cf = 0; 5860 int _df = 1; 5861 uint32_t _flag_k = FK_NONE; 5862 uint32_t _flag_a = 0, _flag_b = 0; 5863 uint32_t _itail_tgt = 0; 5864 RECOMP_REGS_LOCALS 5865 RECOMP_ENTER(0x36057270u); 5866 5867 L_36057270: 5868 PUSH32(esp, ebp); /* 0x36057270: push ebp */ 5869 ebp = esp; /* 0x36057271: mov ebp, esp */ 5870 eax = MEM32(ebp + 0x8); /* 0x36057273: mov eax, dword ptr [ebp + 8] */ 5871 PUSH32(esp, esi); /* 0x36057276: push esi */ 5872 esi = ecx; /* 0x36057277: mov esi, ecx */ 5873 PUSH32(esp, eax); /* 0x36057279: push eax */ 5874 RECOMP_ICALL(0x36057570u); /* 0x3605727A: call 0x36057570 */ /* not lifted */ 5875 RECOMP_FLAGS_IN(); 5876 /* test eax, eax */ /* 0x3605727F: test eax, eax */ 5877 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5878 _cf = 0; 5879 _flag_k = FK_TEST; 5880 if (TEST_Z(_flag_a, _flag_b)) goto L_360572A1; /* 0x36057281: je 0x360572a1 */ 5881 L_36057283: 5882 _flag_a = (uint32_t)(MEM32(eax + 0x1C)); _flag_b = (uint32_t)(0xFFFFFFFEu); 5883 MEM32(eax + 0x1C) = MEM32(eax + 0x1C) & 0xFFFFFFFEu; /* 0x36057283: and dword ptr [eax + 0x1c], 0xfffffffe */ 5884 _cf = 0; 5885 _flag_k = FK_TEST; 5886 ecx = MEM32(esi + 0x10); /* 0x36057287: mov ecx, dword ptr [esi + 0x10] */ 5887 SET_LO8(edx, MEM8(ecx + 0x128)); /* 0x3605728A: mov dl, byte ptr [ecx + 0x128] */ 5888 /* test LO8(edx), LO8(edx) */ /* 0x36057290: test dl, dl */ 5889 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5890 _cf = 0; 5891 _flag_k = FK_NARROW(FK_TEST, 24); 5892 if (TEST_Z(_flag_a, _flag_b)) goto L_360572A1; /* 0x36057292: je 0x360572a1 */ 5893 L_36057294: 5894 PUSH32(esp, eax); /* 0x36057294: push eax */ 5895 RECOMP_ICALL(0x3601C590u); /* 0x36057295: call 0x3601c590 */ /* not lifted */ 5896 RECOMP_FLAGS_IN(); 5897 ecx = eax; /* 0x3605729A: mov ecx, eax */ 5898 RECOMP_ICALL(0x3601DA70u); /* 0x3605729C: call 0x3601da70 */ /* not lifted */ 5899 RECOMP_FLAGS_IN(); 5900 L_360572A1: 5901 esi = POP32_VAL(esp); /* 0x360572A1: pop esi */ 5902 ebp = POP32_VAL(esp); /* 0x360572A2: pop ebp */ 5903 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360572A3: ret 4 */ 5904 RECOMP_REGS_OUT(); 5905 } 5906 5907 void sub_360572B0(void) { 5908 int _fpu_cmp = 0; 5909 uint32_t _cf = 0; 5910 int _df = 1; 5911 uint32_t _flag_k = FK_NONE; 5912 uint32_t _flag_a = 0, _flag_b = 0; 5913 uint32_t _itail_tgt = 0; 5914 RECOMP_REGS_LOCALS 5915 RECOMP_ENTER(0x360572B0u); 5916 5917 L_360572B0: 5918 PUSH32(esp, ebp); /* 0x360572B0: push ebp */ 5919 ebp = esp; /* 0x360572B1: mov ebp, esp */ 5920 eax = MEM32(ebp + 0x8); /* 0x360572B3: mov eax, dword ptr [ebp + 8] */ 5921 PUSH32(esp, esi); /* 0x360572B6: push esi */ 5922 esi = ecx; /* 0x360572B7: mov esi, ecx */ 5923 PUSH32(esp, eax); /* 0x360572B9: push eax */ 5924 RECOMP_ICALL(0x36057570u); /* 0x360572BA: call 0x36057570 */ /* not lifted */ 5925 RECOMP_FLAGS_IN(); 5926 /* test eax, eax */ /* 0x360572BF: test eax, eax */ 5927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5928 _cf = 0; 5929 _flag_k = FK_TEST; 5930 if (TEST_Z(_flag_a, _flag_b)) goto L_360572E1; /* 0x360572C1: je 0x360572e1 */ 5931 L_360572C3: 5932 _flag_a = (uint32_t)((MEM32(eax + 0x1C) | 1)); _flag_b = (uint32_t)((MEM32(eax + 0x1C) | 1)); 5933 MEM32(eax + 0x1C) = MEM32(eax + 0x1C) | 1; /* 0x360572C3: or dword ptr [eax + 0x1c], 1 */ 5934 _cf = 0; 5935 _flag_k = FK_TEST; 5936 ecx = MEM32(esi + 0x10); /* 0x360572C7: mov ecx, dword ptr [esi + 0x10] */ 5937 SET_LO8(edx, MEM8(ecx + 0x128)); /* 0x360572CA: mov dl, byte ptr [ecx + 0x128] */ 5938 /* test LO8(edx), LO8(edx) */ /* 0x360572D0: test dl, dl */ 5939 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5940 _cf = 0; 5941 _flag_k = FK_NARROW(FK_TEST, 24); 5942 if (TEST_Z(_flag_a, _flag_b)) goto L_360572E1; /* 0x360572D2: je 0x360572e1 */ 5943 L_360572D4: 5944 PUSH32(esp, eax); /* 0x360572D4: push eax */ 5945 RECOMP_ICALL(0x3601C590u); /* 0x360572D5: call 0x3601c590 */ /* not lifted */ 5946 RECOMP_FLAGS_IN(); 5947 ecx = eax; /* 0x360572DA: mov ecx, eax */ 5948 RECOMP_ICALL(0x3601DA90u); /* 0x360572DC: call 0x3601da90 */ /* not lifted */ 5949 RECOMP_FLAGS_IN(); 5950 L_360572E1: 5951 esi = POP32_VAL(esp); /* 0x360572E1: pop esi */ 5952 ebp = POP32_VAL(esp); /* 0x360572E2: pop ebp */ 5953 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360572E3: ret 4 */ 5954 RECOMP_REGS_OUT(); 5955 } 5956 5957 void sub_360572F0(void) { 5958 int _fpu_cmp = 0; 5959 uint32_t _cf = 0; 5960 int _df = 1; 5961 uint32_t _flag_k = FK_NONE; 5962 uint32_t _flag_a = 0, _flag_b = 0; 5963 uint32_t _itail_tgt = 0; 5964 RECOMP_REGS_LOCALS 5965 RECOMP_ENTER(0x360572F0u); 5966 5967 L_360572F0: 5968 PUSH32(esp, ebp); /* 0x360572F0: push ebp */ 5969 ebp = esp; /* 0x360572F1: mov ebp, esp */ 5970 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 5971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5972 esp = esp - 0x20u; /* 0x360572F3: sub esp, 0x20 */ 5973 _flag_k = FK_CMP; 5974 PUSH32(esp, esi); /* 0x360572F6: push esi */ 5975 esi = MEM32(ebp + 0x8); /* 0x360572F7: mov esi, dword ptr [ebp + 8] */ 5976 eax = ebp + (-0x8); /* 0x360572FA: lea eax, [ebp - 8] */ 5977 /* cmp eax, esi */ /* 0x360572FD: cmp eax, esi */ 5978 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5980 _flag_k = FK_CMP; 5981 PUSH32(esp, edi); /* 0x360572FF: push edi */ 5982 edi = ecx; /* 0x36057300: mov edi, ecx */ 5983 if (CMP_EQ(_flag_a, _flag_b)) goto L_3605730F; /* 0x36057302: je 0x3605730f */ 5984 L_36057304: 5985 ecx = MEM32(esi); /* 0x36057304: mov ecx, dword ptr [esi] */ 5986 edx = MEM32(esi + 0x4); /* 0x36057306: mov edx, dword ptr [esi + 4] */ 5987 MEM32(ebp + (-0x8)) = ecx; /* 0x36057309: mov dword ptr [ebp - 8], ecx */ 5988 MEM32(ebp + (-0x4)) = edx; /* 0x3605730C: mov dword ptr [ebp - 4], edx */ 5989 L_3605730F: 5990 eax = MEM32(ebp + 0xC); /* 0x3605730F: mov eax, dword ptr [ebp + 0xc] */ 5991 MEM32(esi + 0x10) = eax; /* 0x36057312: mov dword ptr [esi + 0x10], eax */ 5992 ecx = MEM32(edi + 0x94); /* 0x36057315: mov ecx, dword ptr [edi + 0x94] */ 5993 MEM32(ebp + (-0x10)) = eax; /* 0x3605731B: mov dword ptr [ebp - 0x10], eax */ 5994 eax = ebp + (-0x10); /* 0x3605731E: lea eax, [ebp - 0x10] */ 5995 PUSH32(esp, eax); /* 0x36057321: push eax */ 5996 edx = ebp + (-0x18); /* 0x36057322: lea edx, [ebp - 0x18] */ 5997 PUSH32(esp, edx); /* 0x36057325: push edx */ 5998 MEM32(ebp + (-0xC)) = 0; /* 0x36057326: mov dword ptr [ebp - 0xc], 0 */ 5999 RECOMP_ICALL(0x3603E790u); /* 0x3605732D: call 0x3603e790 */ /* not lifted */ 6000 RECOMP_FLAGS_IN(); 6001 ecx = eax; /* 0x36057332: mov ecx, eax */ 6002 eax = MEM32(ecx); /* 0x36057334: mov eax, dword ptr [ecx] */ 6003 edx = MEM32(ecx + 0x4); /* 0x36057336: mov edx, dword ptr [ecx + 4] */ 6004 eax = MEM32(eax + 0x10); /* 0x36057339: mov eax, dword ptr [eax + 0x10] */ 6005 ecx = 0xDEB0u; /* 0x3605733C: mov ecx, 0xdeb0 */ 6006 MEM32(esi) = ecx; /* 0x36057341: mov dword ptr [esi], ecx */ 6007 MEM32(esi + 0x4) = eax; /* 0x36057343: mov dword ptr [esi + 4], eax */ 6008 eax = MEM32(edi + 0x10); /* 0x36057346: mov eax, dword ptr [edi + 0x10] */ 6009 SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36057349: mov cl, byte ptr [eax + 0x128] */ 6010 /* test LO8(ecx), LO8(ecx) */ /* 0x3605734F: test cl, cl */ 6011 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6012 _cf = 0; 6013 _flag_k = FK_NARROW(FK_TEST, 24); 6014 MEM32(ebp + (-0x1C)) = edx; /* 0x36057351: mov dword ptr [ebp - 0x1c], edx */ 6015 if (TEST_Z(_flag_a, _flag_b)) goto L_36057367; /* 0x36057354: je 0x36057367 */ 6016 L_36057356: 6017 ecx = ebp + (-0x8); /* 0x36057356: lea ecx, [ebp - 8] */ 6018 PUSH32(esp, esi); /* 0x36057359: push esi */ 6019 PUSH32(esp, ecx); /* 0x3605735A: push ecx */ 6020 RECOMP_ICALL(0x3601C590u); /* 0x3605735B: call 0x3601c590 */ /* not lifted */ 6021 RECOMP_FLAGS_IN(); 6022 ecx = eax; /* 0x36057360: mov ecx, eax */ 6023 RECOMP_ICALL(0x3601DAB0u); /* 0x36057362: call 0x3601dab0 */ /* not lifted */ 6024 RECOMP_FLAGS_IN(); 6025 L_36057367: 6026 edi = POP32_VAL(esp); /* 0x36057367: pop edi */ 6027 esi = POP32_VAL(esp); /* 0x36057368: pop esi */ 6028 esp = ebp; /* 0x36057369: mov esp, ebp */ 6029 ebp = POP32_VAL(esp); /* 0x3605736B: pop ebp */ 6030 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3605736C: ret 8 */ 6031 RECOMP_REGS_OUT(); 6032 } 6033 6034 void sub_36057370(void) { 6035 int _fpu_cmp = 0; 6036 uint32_t _cf = 0; 6037 int _df = 1; 6038 uint32_t _flag_k = FK_NONE; 6039 uint32_t _flag_a = 0, _flag_b = 0; 6040 uint32_t _itail_tgt = 0; 6041 RECOMP_REGS_LOCALS 6042 RECOMP_ENTER(0x36057370u); 6043 6044 L_36057370: 6045 PUSH32(esp, ebp); /* 0x36057370: push ebp */ 6046 ebp = esp; /* 0x36057371: mov ebp, esp */ 6047 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 6048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6049 esp = esp - 0x38u; /* 0x36057373: sub esp, 0x38 */ 6050 _flag_k = FK_CMP; 6051 PUSH32(esp, ebx); /* 0x36057376: push ebx */ 6052 ebx = ecx; /* 0x36057377: mov ebx, ecx */ 6053 eax = MEM32(ebx + 0x10); /* 0x36057379: mov eax, dword ptr [ebx + 0x10] */ 6054 SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x3605737C: mov cl, byte ptr [eax + 0x128] */ 6055 /* test LO8(ecx), LO8(ecx) */ /* 0x36057382: test cl, cl */ 6056 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6057 _cf = 0; 6058 _flag_k = FK_NARROW(FK_TEST, 24); 6059 if (TEST_Z(_flag_a, _flag_b)) goto L_360574A5; /* 0x36057384: je 0x360574a5 */ 6060 L_3605738A: 6061 ecx = MEM32(ebp + 0x8); /* 0x3605738A: mov ecx, dword ptr [ebp + 8] */ 6062 PUSH32(esp, ecx); /* 0x3605738D: push ecx */ 6063 ecx = ebx; /* 0x3605738E: mov ecx, ebx */ 6064 RECOMP_ICALL(0x36057570u); /* 0x36057390: call 0x36057570 */ /* not lifted */ 6065 RECOMP_FLAGS_IN(); 6066 /* test eax, eax */ /* 0x36057395: test eax, eax */ 6067 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6068 _cf = 0; 6069 _flag_k = FK_TEST; 6070 if (TEST_NZ(_flag_a, _flag_b)) goto L_360574A5; /* 0x36057397: jne 0x360574a5 */ 6071 L_3605739D: 6072 ecx = MEM32(ebx + 0x94); /* 0x3605739D: mov ecx, dword ptr [ebx + 0x94] */ 6073 edx = ebp + 0x8; /* 0x360573A3: lea edx, [ebp + 8] */ 6074 PUSH32(esp, edx); /* 0x360573A6: push edx */ 6075 eax = ebp + (-0x4); /* 0x360573A7: lea eax, [ebp - 4] */ 6076 PUSH32(esp, eax); /* 0x360573AA: push eax */ 6077 RECOMP_ICALL(0x36052340u); /* 0x360573AB: call 0x36052340 */ /* not lifted */ 6078 RECOMP_FLAGS_IN(); 6079 ecx = MEM32(ebx + 0x94); /* 0x360573B0: mov ecx, dword ptr [ebx + 0x94] */ 6080 eax = MEM32(eax); /* 0x360573B6: mov eax, dword ptr [eax] */ 6081 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360573B8: cmp eax, dword ptr [ecx + 4] */ 6082 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6084 _flag_k = FK_CMP; 6085 if (CMP_EQ(_flag_a, _flag_b)) goto L_360574A5; /* 0x360573BB: je 0x360574a5 */ 6086 L_360573C1: 6087 eax = MEM32(ebp + 0xC); /* 0x360573C1: mov eax, dword ptr [ebp + 0xc] */ 6088 PUSH32(esp, esi); /* 0x360573C4: push esi */ 6089 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6090 edx = 0; /* 0x360573C5: xor edx, edx */ 6091 _cf = 0; 6092 _flag_k = FK_TEST; 6093 esi = ebp + (-0x30); /* 0x360573C7: lea esi, [ebp - 0x30] */ 6094 /* cmp esi, eax */ /* 0x360573CA: cmp esi, eax */ 6095 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6097 _flag_k = FK_CMP; 6098 PUSH32(esp, edi); /* 0x360573CC: push edi */ 6099 MEM32(ebp + (-0x38)) = edx; /* 0x360573CD: mov dword ptr [ebp - 0x38], edx */ 6100 MEM32(ebp + (-0x34)) = edx; /* 0x360573D0: mov dword ptr [ebp - 0x34], edx */ 6101 if (CMP_EQ(_flag_a, _flag_b)) goto L_360573E0; /* 0x360573D3: je 0x360573e0 */ 6102 L_360573D5: 6103 esi = MEM32(eax); /* 0x360573D5: mov esi, dword ptr [eax] */ 6104 eax = MEM32(eax + 0x4); /* 0x360573D7: mov eax, dword ptr [eax + 4] */ 6105 MEM32(ebp + (-0x30)) = esi; /* 0x360573DA: mov dword ptr [ebp - 0x30], esi */ 6106 MEM32(ebp + (-0x2C)) = eax; /* 0x360573DD: mov dword ptr [ebp - 0x2c], eax */ 6107 L_360573E0: 6108 eax = MEM32(ebp + 0x8); /* 0x360573E0: mov eax, dword ptr [ebp + 8] */ 6109 esi = MEM32(ebp + 0x10); /* 0x360573E3: mov esi, dword ptr [ebp + 0x10] */ 6110 MEM32(ebp + (-0x1C)) = edx; /* 0x360573E6: mov dword ptr [ebp - 0x1c], edx */ 6111 MEM32(ebp + (-0x4)) = edx; /* 0x360573E9: mov dword ptr [ebp - 4], edx */ 6112 edx = ebp + (-0x8); /* 0x360573EC: lea edx, [ebp - 8] */ 6113 MEM32(ebp + (-0x28)) = eax; /* 0x360573EF: mov dword ptr [ebp - 0x28], eax */ 6114 MEM32(ebp + (-0x24)) = eax; /* 0x360573F2: mov dword ptr [ebp - 0x24], eax */ 6115 MEM32(ebp + (-0x8)) = eax; /* 0x360573F5: mov dword ptr [ebp - 8], eax */ 6116 PUSH32(esp, edx); /* 0x360573F8: push edx */ 6117 eax = ebp + (-0x10); /* 0x360573F9: lea eax, [ebp - 0x10] */ 6118 PUSH32(esp, eax); /* 0x360573FC: push eax */ 6119 MEM32(ebp + (-0x20)) = esi; /* 0x360573FD: mov dword ptr [ebp - 0x20], esi */ 6120 RECOMP_ICALL(0x3603E790u); /* 0x36057400: call 0x3603e790 */ /* not lifted */ 6121 RECOMP_FLAGS_IN(); 6122 edi = MEM32(ebx + 0x90); /* 0x36057405: mov edi, dword ptr [ebx + 0x90] */ 6123 ecx = eax; /* 0x3605740B: mov ecx, eax */ 6124 eax = MEM32(ecx); /* 0x3605740D: mov eax, dword ptr [ecx] */ 6125 edx = MEM32(ecx + 0x4); /* 0x3605740F: mov edx, dword ptr [ecx + 4] */ 6126 eax = MEM32(eax + 0x10); /* 0x36057412: mov eax, dword ptr [eax + 0x10] */ 6127 ecx = 0xDEB0u; /* 0x36057415: mov ecx, 0xdeb0 */ 6128 MEM32(ebp + (-0x38)) = ecx; /* 0x3605741A: mov dword ptr [ebp - 0x38], ecx */ 6129 MEM32(ebp + (-0x34)) = eax; /* 0x3605741D: mov dword ptr [ebp - 0x34], eax */ 6130 esi = MEM32(edi + 0x4); /* 0x36057420: mov esi, dword ptr [edi + 4] */ 6131 eax = MEM32(esi + 0x4); /* 0x36057423: mov eax, dword ptr [esi + 4] */ 6132 PUSH32(esp, 0x28u); /* 0x36057426: push 0x28 */ 6133 MEM32(ebp + (-0x14)) = edx; /* 0x36057428: mov dword ptr [ebp - 0x14], edx */ 6134 MEM32(ebp + 0xC) = eax; /* 0x3605742B: mov dword ptr [ebp + 0xc], eax */ 6135 RECOMP_ICALL(0x3615FD6Au); /* 0x3605742E: call 0x3615fd6a */ /* not lifted */ 6136 RECOMP_FLAGS_IN(); 6137 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6138 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6139 esp = esp + 4; /* 0x36057433: add esp, 4 */ 6140 _flag_k = FK_ADD; 6141 /* test esi, esi */ /* 0x36057436: test esi, esi */ 6142 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6143 _cf = 0; 6144 _flag_k = FK_TEST; 6145 ecx = esi; /* 0x36057438: mov ecx, esi */ 6146 if (TEST_NZ(_flag_a, _flag_b)) goto L_3605743E; /* 0x3605743A: jne 0x3605743e */ 6147 L_3605743C: 6148 ecx = eax; /* 0x3605743C: mov ecx, eax */ 6149 L_3605743E: 6150 MEM32(eax) = ecx; /* 0x3605743E: mov dword ptr [eax], ecx */ 6151 ecx = MEM32(ebp + 0xC); /* 0x36057440: mov ecx, dword ptr [ebp + 0xc] */ 6152 /* test ecx, ecx */ /* 0x36057443: test ecx, ecx */ 6153 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6154 _cf = 0; 6155 _flag_k = FK_TEST; 6156 if (TEST_NZ(_flag_a, _flag_b)) goto L_36057449; /* 0x36057445: jne 0x36057449 */ 6157 L_36057447: 6158 ecx = eax; /* 0x36057447: mov ecx, eax */ 6159 L_36057449: 6160 MEM32(eax + 0x4) = ecx; /* 0x36057449: mov dword ptr [eax + 4], ecx */ 6161 MEM32(esi + 0x4) = eax; /* 0x3605744C: mov dword ptr [esi + 4], eax */ 6162 ecx = MEM32(eax + 0x4); /* 0x3605744F: mov ecx, dword ptr [eax + 4] */ 6163 edx = ebp + (-0x38); /* 0x36057452: lea edx, [ebp - 0x38] */ 6164 MEM32(ecx) = eax; /* 0x36057455: mov dword ptr [ecx], eax */ 6165 PUSH32(esp, edx); /* 0x36057457: push edx */ 6166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 6167 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6168 eax = eax + 8; /* 0x36057458: add eax, 8 */ 6169 _flag_k = FK_ADD; 6170 PUSH32(esp, eax); /* 0x3605745B: push eax */ 6171 RECOMP_ICALL(0x36058CE0u); /* 0x3605745C: call 0x36058ce0 */ /* not lifted */ 6172 RECOMP_FLAGS_IN(); 6173 esi = MEM32(edi + 0x8); /* 0x36057461: mov esi, dword ptr [edi + 8] */ 6174 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6175 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6176 esp = esp + 8; /* 0x36057464: add esp, 8 */ 6177 _flag_k = FK_ADD; 6178 eax = ebp + (-0x38); /* 0x36057467: lea eax, [ebp - 0x38] */ 6179 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 6180 esi = esi + 1; /* 0x3605746A: inc esi */ 6181 _flag_k = FK_INC; 6182 PUSH32(esp, eax); /* 0x3605746B: push eax */ 6183 MEM32(edi + 0x8) = esi; /* 0x3605746C: mov dword ptr [edi + 8], esi */ 6184 RECOMP_ICALL(0x3601C590u); /* 0x3605746F: call 0x3601c590 */ /* not lifted */ 6185 RECOMP_FLAGS_IN(); 6186 ecx = eax; /* 0x36057474: mov ecx, eax */ 6187 RECOMP_ICALL(0x3601DAE0u); /* 0x36057476: call 0x3601dae0 */ /* not lifted */ 6188 RECOMP_FLAGS_IN(); 6189 eax = MEM32(ebp + 0x8); /* 0x3605747B: mov eax, dword ptr [ebp + 8] */ 6190 /* cmp eax, 0x8Eu */ /* 0x3605747E: cmp eax, 0x8e */ 6191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8Eu); 6192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6193 _flag_k = FK_CMP; 6194 edi = POP32_VAL(esp); /* 0x36057483: pop edi */ 6195 esi = POP32_VAL(esp); /* 0x36057484: pop esi */ 6196 if (CMP_L(_flag_a, _flag_b)) goto L_360574A5; /* 0x36057485: jl 0x360574a5 */ 6197 L_36057487: 6198 ecx = MEM32(ebx + 0x10); /* 0x36057487: mov ecx, dword ptr [ebx + 0x10] */ 6199 ecx = MEM32(ecx + 0x154); /* 0x3605748A: mov ecx, dword ptr [ecx + 0x154] */ 6200 PUSH32(esp, eax); /* 0x36057490: push eax */ 6201 RECOMP_ICALL(0x360738E0u); /* 0x36057491: call 0x360738e0 */ /* not lifted */ 6202 RECOMP_FLAGS_IN(); 6203 /* test LO8(eax), LO8(eax) */ /* 0x36057496: test al, al */ 6204 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6205 _cf = 0; 6206 _flag_k = FK_NARROW(FK_TEST, 24); 6207 if (TEST_Z(_flag_a, _flag_b)) goto L_360574A5; /* 0x36057498: je 0x360574a5 */ 6208 L_3605749A: 6209 edx = MEM32(ebp + 0x8); /* 0x3605749A: mov edx, dword ptr [ebp + 8] */ 6210 PUSH32(esp, edx); /* 0x3605749D: push edx */ 6211 ecx = ebx; /* 0x3605749E: mov ecx, ebx */ 6212 RECOMP_ICALL(0x360572B0u); /* 0x360574A0: call 0x360572b0 */ /* not lifted */ 6213 RECOMP_FLAGS_IN(); 6214 L_360574A5: 6215 ebx = POP32_VAL(esp); /* 0x360574A5: pop ebx */ 6216 esp = ebp; /* 0x360574A6: mov esp, ebp */ 6217 ebp = POP32_VAL(esp); /* 0x360574A8: pop ebp */ 6218 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360574A9: ret 0xc */ 6219 RECOMP_REGS_OUT(); 6220 } 6221 6222 void sub_360574B0(void) { 6223 int _fpu_cmp = 0; 6224 uint32_t _cf = 0; 6225 int _df = 1; 6226 uint32_t _flag_k = FK_NONE; 6227 uint32_t _flag_a = 0, _flag_b = 0; 6228 uint32_t _itail_tgt = 0; 6229 RECOMP_REGS_LOCALS 6230 RECOMP_ENTER(0x360574B0u); 6231 6232 L_360574B0: 6233 PUSH32(esp, ebp); /* 0x360574B0: push ebp */ 6234 ebp = esp; /* 0x360574B1: mov ebp, esp */ 6235 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 6236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6237 esp = esp - 0x24u; /* 0x360574B3: sub esp, 0x24 */ 6238 _flag_k = FK_CMP; 6239 PUSH32(esp, ebx); /* 0x360574B6: push ebx */ 6240 PUSH32(esp, esi); /* 0x360574B7: push esi */ 6241 PUSH32(esp, edi); /* 0x360574B8: push edi */ 6242 edi = MEM32(ecx + 0x90); /* 0x360574B9: mov edi, dword ptr [ecx + 0x90] */ 6243 esi = MEM32(edi + 0x4); /* 0x360574BF: mov esi, dword ptr [edi + 4] */ 6244 MEM32(ebp + (-0x4)) = ecx; /* 0x360574C2: mov dword ptr [ebp - 4], ecx */ 6245 ecx = MEM32(esi); /* 0x360574C5: mov ecx, dword ptr [esi] */ 6246 /* cmp ecx, esi */ /* 0x360574C7: cmp ecx, esi */ 6247 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 6248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6249 _flag_k = FK_CMP; 6250 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057564; /* 0x360574C9: je 0x36057564 */ 6251 L_360574CF: 6252 eax = ecx + 0x8; /* 0x360574CF: lea eax, [ecx + 8] */ 6253 edx = ebp + (-0x24); /* 0x360574D2: lea edx, [ebp - 0x24] */ 6254 /* cmp edx, eax */ /* 0x360574D5: cmp edx, eax */ 6255 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6257 _flag_k = FK_CMP; 6258 if (CMP_EQ(_flag_a, _flag_b)) goto L_360574E4; /* 0x360574D7: je 0x360574e4 */ 6259 L_360574D9: 6260 edx = MEM32(eax); /* 0x360574D9: mov edx, dword ptr [eax] */ 6261 MEM32(ebp + (-0x24)) = edx; /* 0x360574DB: mov dword ptr [ebp - 0x24], edx */ 6262 edx = MEM32(eax + 0x4); /* 0x360574DE: mov edx, dword ptr [eax + 4] */ 6263 MEM32(ebp + (-0x20)) = edx; /* 0x360574E1: mov dword ptr [ebp - 0x20], edx */ 6264 L_360574E4: 6265 edx = eax + 0x8; /* 0x360574E4: lea edx, [eax + 8] */ 6266 ebx = ebp + (-0x1C); /* 0x360574E7: lea ebx, [ebp - 0x1c] */ 6267 /* cmp ebx, edx */ /* 0x360574EA: cmp ebx, edx */ 6268 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 6269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6270 _flag_k = FK_CMP; 6271 if (CMP_EQ(_flag_a, _flag_b)) goto L_360574F9; /* 0x360574EC: je 0x360574f9 */ 6272 L_360574EE: 6273 ebx = MEM32(edx); /* 0x360574EE: mov ebx, dword ptr [edx] */ 6274 edx = MEM32(edx + 0x4); /* 0x360574F0: mov edx, dword ptr [edx + 4] */ 6275 MEM32(ebp + (-0x1C)) = ebx; /* 0x360574F3: mov dword ptr [ebp - 0x1c], ebx */ 6276 MEM32(ebp + (-0x18)) = edx; /* 0x360574F6: mov dword ptr [ebp - 0x18], edx */ 6277 L_360574F9: 6278 ebx = MEM32(eax + 0x14); /* 0x360574F9: mov ebx, dword ptr [eax + 0x14] */ 6279 edx = MEM32(eax + 0x10); /* 0x360574FC: mov edx, dword ptr [eax + 0x10] */ 6280 MEM32(ebp + (-0x10)) = ebx; /* 0x360574FF: mov dword ptr [ebp - 0x10], ebx */ 6281 ebx = MEM32(eax + 0x18); /* 0x36057502: mov ebx, dword ptr [eax + 0x18] */ 6282 eax = MEM32(eax + 0x1C); /* 0x36057505: mov eax, dword ptr [eax + 0x1c] */ 6283 MEM32(ebp + (-0x8)) = eax; /* 0x36057508: mov dword ptr [ebp - 8], eax */ 6284 /* cmp edx, MEM32(ebp + 0x8) */ /* 0x3605750B: cmp edx, dword ptr [ebp + 8] */ 6285 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 6286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6287 _flag_k = FK_CMP; 6288 MEM32(ebp + (-0x14)) = edx; /* 0x3605750E: mov dword ptr [ebp - 0x14], edx */ 6289 MEM32(ebp + (-0xC)) = ebx; /* 0x36057511: mov dword ptr [ebp - 0xc], ebx */ 6290 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057525; /* 0x36057514: je 0x36057525 */ 6291 L_36057516: 6292 ecx = MEM32(ecx); /* 0x36057516: mov ecx, dword ptr [ecx] */ 6293 /* cmp ecx, esi */ /* 0x36057518: cmp ecx, esi */ 6294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 6295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6296 _flag_k = FK_CMP; 6297 RECOMP_BACKEDGE(); 6298 if (CMP_NE(_flag_a, _flag_b)) goto L_360574CF; /* 0x3605751A: jne 0x360574cf */ 6299 L_3605751C: 6300 edi = POP32_VAL(esp); /* 0x3605751C: pop edi */ 6301 esi = POP32_VAL(esp); /* 0x3605751D: pop esi */ 6302 ebx = POP32_VAL(esp); /* 0x3605751E: pop ebx */ 6303 esp = ebp; /* 0x3605751F: mov esp, ebp */ 6304 ebp = POP32_VAL(esp); /* 0x36057521: pop ebp */ 6305 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36057522: ret 4 */ 6306 L_36057525: 6307 edx = MEM32(ecx + 0x4); /* 0x36057525: mov edx, dword ptr [ecx + 4] */ 6308 eax = MEM32(ecx); /* 0x36057528: mov eax, dword ptr [ecx] */ 6309 MEM32(edx) = eax; /* 0x3605752A: mov dword ptr [edx], eax */ 6310 edx = MEM32(ecx); /* 0x3605752C: mov edx, dword ptr [ecx] */ 6311 eax = MEM32(ecx + 0x4); /* 0x3605752E: mov eax, dword ptr [ecx + 4] */ 6312 PUSH32(esp, ecx); /* 0x36057531: push ecx */ 6313 MEM32(edx + 0x4) = eax; /* 0x36057532: mov dword ptr [edx + 4], eax */ 6314 RECOMP_ICALL(0x3615FCC4u); /* 0x36057535: call 0x3615fcc4 */ /* not lifted */ 6315 RECOMP_FLAGS_IN(); 6316 ecx = MEM32(edi + 0x8); /* 0x3605753A: mov ecx, dword ptr [edi + 8] */ 6317 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6319 esp = esp + 4; /* 0x3605753D: add esp, 4 */ 6320 _flag_k = FK_ADD; 6321 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6322 ecx = ecx - 1; /* 0x36057540: dec ecx */ 6323 _flag_k = FK_DEC; 6324 MEM32(edi + 0x8) = ecx; /* 0x36057541: mov dword ptr [edi + 8], ecx */ 6325 ecx = MEM32(ebp + (-0x4)); /* 0x36057544: mov ecx, dword ptr [ebp - 4] */ 6326 edx = MEM32(ecx + 0x10); /* 0x36057547: mov edx, dword ptr [ecx + 0x10] */ 6327 SET_LO8(eax, MEM8(edx + 0x128)); /* 0x3605754A: mov al, byte ptr [edx + 0x128] */ 6328 /* test LO8(eax), LO8(eax) */ /* 0x36057550: test al, al */ 6329 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6330 _cf = 0; 6331 _flag_k = FK_NARROW(FK_TEST, 24); 6332 if (TEST_Z(_flag_a, _flag_b)) goto L_36057564; /* 0x36057552: je 0x36057564 */ 6333 L_36057554: 6334 eax = ebp + (-0x24); /* 0x36057554: lea eax, [ebp - 0x24] */ 6335 PUSH32(esp, eax); /* 0x36057557: push eax */ 6336 RECOMP_ICALL(0x3601C590u); /* 0x36057558: call 0x3601c590 */ /* not lifted */ 6337 RECOMP_FLAGS_IN(); 6338 ecx = eax; /* 0x3605755D: mov ecx, eax */ 6339 RECOMP_ICALL(0x3601DB00u); /* 0x3605755F: call 0x3601db00 */ /* not lifted */ 6340 RECOMP_FLAGS_IN(); 6341 L_36057564: 6342 edi = POP32_VAL(esp); /* 0x36057564: pop edi */ 6343 esi = POP32_VAL(esp); /* 0x36057565: pop esi */ 6344 ebx = POP32_VAL(esp); /* 0x36057566: pop ebx */ 6345 esp = ebp; /* 0x36057567: mov esp, ebp */ 6346 ebp = POP32_VAL(esp); /* 0x36057569: pop ebp */ 6347 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3605756A: ret 4 */ 6348 RECOMP_REGS_OUT(); 6349 } 6350 6351 void sub_36057570(void) { 6352 int _fpu_cmp = 0; 6353 uint32_t _cf = 0; 6354 int _df = 1; 6355 uint32_t _flag_k = FK_NONE; 6356 uint32_t _flag_a = 0, _flag_b = 0; 6357 uint32_t _itail_tgt = 0; 6358 RECOMP_REGS_LOCALS 6359 RECOMP_ENTER(0x36057570u); 6360 6361 L_36057570: 6362 PUSH32(esp, ebp); /* 0x36057570: push ebp */ 6363 ebp = esp; /* 0x36057571: mov ebp, esp */ 6364 eax = MEM32(ecx + 0x90); /* 0x36057573: mov eax, dword ptr [ecx + 0x90] */ 6365 edx = MEM32(eax + 0x4); /* 0x36057579: mov edx, dword ptr [eax + 4] */ 6366 ecx = MEM32(edx); /* 0x3605757C: mov ecx, dword ptr [edx] */ 6367 /* cmp ecx, edx */ /* 0x3605757E: cmp ecx, edx */ 6368 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6370 _flag_k = FK_CMP; 6371 PUSH32(esp, esi); /* 0x36057580: push esi */ 6372 PUSH32(esp, edi); /* 0x36057581: push edi */ 6373 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057597; /* 0x36057582: je 0x36057597 */ 6374 L_36057584: 6375 esi = MEM32(ebp + 0x8); /* 0x36057584: mov esi, dword ptr [ebp + 8] */ 6376 L_36057587: 6377 edi = MEM32(ecx + 0x18); /* 0x36057587: mov edi, dword ptr [ecx + 0x18] */ 6378 /* cmp edi, esi */ /* 0x3605758A: cmp edi, esi */ 6379 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 6380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6381 _flag_k = FK_CMP; 6382 eax = ecx + 0x8; /* 0x3605758C: lea eax, [ecx + 8] */ 6383 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057599; /* 0x3605758F: je 0x36057599 */ 6384 L_36057591: 6385 ecx = MEM32(ecx); /* 0x36057591: mov ecx, dword ptr [ecx] */ 6386 /* cmp ecx, edx */ /* 0x36057593: cmp ecx, edx */ 6387 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6389 _flag_k = FK_CMP; 6390 RECOMP_BACKEDGE(); 6391 if (CMP_NE(_flag_a, _flag_b)) goto L_36057587; /* 0x36057595: jne 0x36057587 */ 6392 L_36057597: 6393 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6394 eax = 0; /* 0x36057597: xor eax, eax */ 6395 _cf = 0; 6396 _flag_k = FK_TEST; 6397 L_36057599: 6398 edi = POP32_VAL(esp); /* 0x36057599: pop edi */ 6399 esi = POP32_VAL(esp); /* 0x3605759A: pop esi */ 6400 ebp = POP32_VAL(esp); /* 0x3605759B: pop ebp */ 6401 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3605759C: ret 4 */ 6402 RECOMP_REGS_OUT(); 6403 } 6404 6405 void sub_360575A0(void) { 6406 int _fpu_cmp = 0; 6407 uint32_t _cf = 0; 6408 int _df = 1; 6409 uint32_t _flag_k = FK_NONE; 6410 uint32_t _flag_a = 0, _flag_b = 0; 6411 uint32_t _itail_tgt = 0; 6412 RECOMP_REGS_LOCALS 6413 RECOMP_ENTER(0x360575A0u); 6414 6415 L_360575A0: 6416 PUSH32(esp, ebp); /* 0x360575A0: push ebp */ 6417 ebp = esp; /* 0x360575A1: mov ebp, esp */ 6418 eax = MEM32(ecx + 0x90); /* 0x360575A3: mov eax, dword ptr [ecx + 0x90] */ 6419 edx = MEM32(eax + 0x4); /* 0x360575A9: mov edx, dword ptr [eax + 4] */ 6420 ecx = MEM32(edx); /* 0x360575AC: mov ecx, dword ptr [edx] */ 6421 /* cmp ecx, edx */ /* 0x360575AE: cmp ecx, edx */ 6422 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6424 _flag_k = FK_CMP; 6425 PUSH32(esp, ebx); /* 0x360575B0: push ebx */ 6426 PUSH32(esp, esi); /* 0x360575B1: push esi */ 6427 PUSH32(esp, edi); /* 0x360575B2: push edi */ 6428 if (CMP_EQ(_flag_a, _flag_b)) goto L_360575D1; /* 0x360575B3: je 0x360575d1 */ 6429 L_360575B5: 6430 edi = MEM32(ebp + 0x8); /* 0x360575B5: mov edi, dword ptr [ebp + 8] */ 6431 esi = MEM32(edi + 0x4); /* 0x360575B8: mov esi, dword ptr [edi + 4] */ 6432 L_360575BB: 6433 ebx = MEM32(ecx + 0xC); /* 0x360575BB: mov ebx, dword ptr [ecx + 0xc] */ 6434 /* cmp ebx, esi */ /* 0x360575BE: cmp ebx, esi */ 6435 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 6436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6437 _flag_k = FK_CMP; 6438 eax = ecx + 0x8; /* 0x360575C0: lea eax, [ecx + 8] */ 6439 if (CMP_NE(_flag_a, _flag_b)) goto L_360575CB; /* 0x360575C3: jne 0x360575cb */ 6440 L_360575C5: 6441 ebx = MEM32(eax); /* 0x360575C5: mov ebx, dword ptr [eax] */ 6442 /* cmp ebx, MEM32(edi) */ /* 0x360575C7: cmp ebx, dword ptr [edi] */ 6443 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi)); 6444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6445 _flag_k = FK_CMP; 6446 if (CMP_EQ(_flag_a, _flag_b)) goto L_360575D3; /* 0x360575C9: je 0x360575d3 */ 6447 L_360575CB: 6448 ecx = MEM32(ecx); /* 0x360575CB: mov ecx, dword ptr [ecx] */ 6449 /* cmp ecx, edx */ /* 0x360575CD: cmp ecx, edx */ 6450 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6452 _flag_k = FK_CMP; 6453 RECOMP_BACKEDGE(); 6454 if (CMP_NE(_flag_a, _flag_b)) goto L_360575BB; /* 0x360575CF: jne 0x360575bb */ 6455 L_360575D1: 6456 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6457 eax = 0; /* 0x360575D1: xor eax, eax */ 6458 _cf = 0; 6459 _flag_k = FK_TEST; 6460 L_360575D3: 6461 edi = POP32_VAL(esp); /* 0x360575D3: pop edi */ 6462 esi = POP32_VAL(esp); /* 0x360575D4: pop esi */ 6463 ebx = POP32_VAL(esp); /* 0x360575D5: pop ebx */ 6464 ebp = POP32_VAL(esp); /* 0x360575D6: pop ebp */ 6465 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360575D7: ret 4 */ 6466 RECOMP_REGS_OUT(); 6467 } 6468 6469 void sub_360575E0(void) { 6470 int _fpu_cmp = 0; 6471 uint32_t _cf = 0; 6472 int _df = 1; 6473 uint32_t _flag_k = FK_NONE; 6474 uint32_t _flag_a = 0, _flag_b = 0; 6475 uint32_t _itail_tgt = 0; 6476 RECOMP_REGS_LOCALS 6477 RECOMP_ENTER(0x360575E0u); 6478 6479 L_360575E0: 6480 PUSH32(esp, ebp); /* 0x360575E0: push ebp */ 6481 ebp = esp; /* 0x360575E1: mov ebp, esp */ 6482 eax = MEM32(ebp + 0x8); /* 0x360575E3: mov eax, dword ptr [ebp + 8] */ 6483 PUSH32(esp, esi); /* 0x360575E6: push esi */ 6484 esi = ecx; /* 0x360575E7: mov esi, ecx */ 6485 PUSH32(esp, eax); /* 0x360575E9: push eax */ 6486 RECOMP_ICALL(0x360575A0u); /* 0x360575EA: call 0x360575a0 */ /* not lifted */ 6487 RECOMP_FLAGS_IN(); 6488 /* test eax, eax */ /* 0x360575EF: test eax, eax */ 6489 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6490 _cf = 0; 6491 _flag_k = FK_TEST; 6492 if (TEST_Z(_flag_a, _flag_b)) goto L_3605761D; /* 0x360575F1: je 0x3605761d */ 6493 L_360575F3: 6494 edx = MEM32(eax + 0x10); /* 0x360575F3: mov edx, dword ptr [eax + 0x10] */ 6495 /* cmp edx, 0x8Eu */ /* 0x360575F6: cmp edx, 0x8e */ 6496 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x8Eu); 6497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6498 _flag_k = FK_CMP; 6499 if (CMP_L(_flag_a, _flag_b)) goto L_36057615; /* 0x360575FC: jl 0x36057615 */ 6500 L_360575FE: 6501 ecx = MEM32(esi + 0x10); /* 0x360575FE: mov ecx, dword ptr [esi + 0x10] */ 6502 ecx = MEM32(ecx + 0x154); /* 0x36057601: mov ecx, dword ptr [ecx + 0x154] */ 6503 PUSH32(esp, edx); /* 0x36057607: push edx */ 6504 RECOMP_ICALL(0x360738E0u); /* 0x36057608: call 0x360738e0 */ /* not lifted */ 6505 RECOMP_FLAGS_IN(); 6506 esi = POP32_VAL(esp); /* 0x3605760D: pop esi */ 6507 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6508 eax = eax & 1; /* 0x3605760E: and eax, 1 */ 6509 _cf = 0; 6510 _flag_k = FK_TEST; 6511 ebp = POP32_VAL(esp); /* 0x36057611: pop ebp */ 6512 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36057612: ret 4 */ 6513 L_36057615: 6514 eax = MEM32(eax + 0x1C); /* 0x36057615: mov eax, dword ptr [eax + 0x1c] */ 6515 esi = POP32_VAL(esp); /* 0x36057618: pop esi */ 6516 ebp = POP32_VAL(esp); /* 0x36057619: pop ebp */ 6517 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3605761A: ret 4 */ 6518 L_3605761D: 6519 eax = 1; /* 0x3605761D: mov eax, 1 */ 6520 esi = POP32_VAL(esp); /* 0x36057622: pop esi */ 6521 ebp = POP32_VAL(esp); /* 0x36057623: pop ebp */ 6522 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36057624: ret 4 */ 6523 RECOMP_REGS_OUT(); 6524 } 6525 6526 void sub_36057630(void) { 6527 int _fpu_cmp = 0; 6528 uint32_t _cf = 0; 6529 int _df = 1; 6530 uint32_t _flag_k = FK_NONE; 6531 uint32_t _flag_a = 0, _flag_b = 0; 6532 uint32_t _itail_tgt = 0; 6533 RECOMP_REGS_LOCALS 6534 RECOMP_ENTER(0x36057630u); 6535 6536 L_36057630: 6537 PUSH32(esp, ebp); /* 0x36057630: push ebp */ 6538 ebp = esp; /* 0x36057631: mov ebp, esp */ 6539 eax = MEM32(ecx + 0x90); /* 0x36057633: mov eax, dword ptr [ecx + 0x90] */ 6540 edx = MEM32(eax + 0x4); /* 0x36057639: mov edx, dword ptr [eax + 4] */ 6541 eax = MEM32(edx); /* 0x3605763C: mov eax, dword ptr [edx] */ 6542 /* cmp eax, edx */ /* 0x3605763E: cmp eax, edx */ 6543 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6545 _flag_k = FK_CMP; 6546 PUSH32(esp, esi); /* 0x36057640: push esi */ 6547 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057656; /* 0x36057641: je 0x36057656 */ 6548 L_36057643: 6549 esi = MEM32(ebp + 0x8); /* 0x36057643: mov esi, dword ptr [ebp + 8] */ 6550 L_36057646: 6551 /* cmp MEM32(eax + 0x1C), esi */ /* 0x36057646: cmp dword ptr [eax + 0x1c], esi */ 6552 _flag_a = (uint32_t)(MEM32(eax + 0x1C)); _flag_b = (uint32_t)(esi); 6553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6554 _flag_k = FK_CMP; 6555 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057670; /* 0x36057649: je 0x36057670 */ 6556 L_3605764B: 6557 /* cmp MEM32(eax + 0x20), esi */ /* 0x3605764B: cmp dword ptr [eax + 0x20], esi */ 6558 _flag_a = (uint32_t)(MEM32(eax + 0x20)); _flag_b = (uint32_t)(esi); 6559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6560 _flag_k = FK_CMP; 6561 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057670; /* 0x3605764E: je 0x36057670 */ 6562 L_36057650: 6563 eax = MEM32(eax); /* 0x36057650: mov eax, dword ptr [eax] */ 6564 /* cmp eax, edx */ /* 0x36057652: cmp eax, edx */ 6565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6567 _flag_k = FK_CMP; 6568 RECOMP_BACKEDGE(); 6569 if (CMP_NE(_flag_a, _flag_b)) goto L_36057646; /* 0x36057654: jne 0x36057646 */ 6570 L_36057656: 6571 PUSH32(esp, 0); /* 0x36057656: push 0 */ 6572 PUSH32(esp, 0x361C24BCu); /* 0x36057658: push 0x361c24bc */ 6573 RECOMP_ICALL(0x3601C590u); /* 0x3605765D: call 0x3601c590 */ /* not lifted */ 6574 RECOMP_FLAGS_IN(); 6575 ecx = eax; /* 0x36057662: mov ecx, eax */ 6576 RECOMP_ICALL(0x3601C8C0u); /* 0x36057664: call 0x3601c8c0 */ /* not lifted */ 6577 RECOMP_FLAGS_IN(); 6578 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 6579 SET_LO8(eax, 0); /* 0x36057669: xor al, al */ 6580 _cf = 0; 6581 _flag_k = FK_NARROW(FK_TEST, 24); 6582 esi = POP32_VAL(esp); /* 0x3605766B: pop esi */ 6583 ebp = POP32_VAL(esp); /* 0x3605766C: pop ebp */ 6584 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3605766D: ret 4 */ 6585 L_36057670: 6586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 6587 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6588 eax = eax + 8; /* 0x36057670: add eax, 8 */ 6589 _flag_k = FK_ADD; 6590 PUSH32(esp, eax); /* 0x36057673: push eax */ 6591 RECOMP_ICALL(0x36057680u); /* 0x36057674: call 0x36057680 */ /* not lifted */ 6592 RECOMP_FLAGS_IN(); 6593 esi = POP32_VAL(esp); /* 0x36057679: pop esi */ 6594 ebp = POP32_VAL(esp); /* 0x3605767A: pop ebp */ 6595 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3605767B: ret 4 */ 6596 RECOMP_REGS_OUT(); 6597 } 6598 6599 void sub_36057680(void) { 6600 int _fpu_cmp = 0; 6601 uint32_t _cf = 0; 6602 int _df = 1; 6603 uint32_t _flag_k = FK_NONE; 6604 uint32_t _flag_a = 0, _flag_b = 0; 6605 uint32_t _itail_tgt = 0; 6606 RECOMP_REGS_LOCALS 6607 RECOMP_ENTER(0x36057680u); 6608 6609 L_36057680: 6610 PUSH32(esp, ebp); /* 0x36057680: push ebp */ 6611 L_36057681: 6612 ebp = esp; /* 0x36057681: mov ebp, esp */ 6613 L_36057683: 6614 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6616 esp = esp - 0x10u; /* 0x36057683: sub esp, 0x10 */ 6617 _flag_k = FK_CMP; 6618 L_36057686: 6619 eax = MEM32(ebp + 0x8); /* 0x36057686: mov eax, dword ptr [ebp + 8] */ 6620 L_36057689: 6621 PUSH32(esp, esi); /* 0x36057689: push esi */ 6622 L_3605768A: 6623 PUSH32(esp, edi); /* 0x3605768A: push edi */ 6624 L_3605768B: 6625 edi = ecx; /* 0x3605768B: mov edi, ecx */ 6626 L_3605768D: 6627 PUSH32(esp, eax); /* 0x3605768D: push eax */ 6628 L_3605768E: 6629 RECOMP_ICALL(0x360575A0u); /* 0x3605768E: call 0x360575a0 */ /* not lifted */ 6630 RECOMP_FLAGS_IN(); 6631 L_36057693: 6632 esi = eax; /* 0x36057693: mov esi, eax */ 6633 L_36057695: 6634 /* test esi, esi */ /* 0x36057695: test esi, esi */ 6635 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6636 _cf = 0; 6637 _flag_k = FK_TEST; 6638 L_36057697: 6639 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_360576A3; /* 0x36057697: jne 0x360576a3 */ 6640 L_36057699: 6641 edi = POP32_VAL(esp); /* 0x36057699: pop edi */ 6642 L_3605769A: 6643 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 6644 SET_LO8(eax, 0); /* 0x3605769A: xor al, al */ 6645 _cf = 0; 6646 _flag_k = FK_NARROW(FK_TEST, 24); 6647 L_3605769C: 6648 esi = POP32_VAL(esp); /* 0x3605769C: pop esi */ 6649 L_3605769D: 6650 esp = ebp; /* 0x3605769D: mov esp, ebp */ 6651 L_3605769F: 6652 ebp = POP32_VAL(esp); /* 0x3605769F: pop ebp */ 6653 L_360576A0: 6654 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360576A0: ret 4 */ 6655 L_360576A3: 6656 /* test MEM8(esi + 0x1C), 1 */ /* 0x360576A3: test byte ptr [esi + 0x1c], 1 */ 6657 _flag_a = (uint32_t)(MEM8(esi + 0x1C)) << 24; _flag_b = (uint32_t)(1) << 24; 6658 _cf = 0; 6659 _flag_k = FK_NARROW(FK_TEST, 24); 6660 L_360576A7: 6661 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_360576C6; /* 0x360576A7: je 0x360576c6 */ 6662 L_360576A9: 6663 PUSH32(esp, 0); /* 0x360576A9: push 0 */ 6664 L_360576AB: 6665 PUSH32(esp, 0x361C24D4u); /* 0x360576AB: push 0x361c24d4 */ 6666 L_360576B0: 6667 RECOMP_ICALL(0x3601C590u); /* 0x360576B0: call 0x3601c590 */ /* not lifted */ 6668 RECOMP_FLAGS_IN(); 6669 L_360576B5: 6670 ecx = eax; /* 0x360576B5: mov ecx, eax */ 6671 L_360576B7: 6672 RECOMP_ICALL(0x3601C8C0u); /* 0x360576B7: call 0x3601c8c0 */ /* not lifted */ 6673 RECOMP_FLAGS_IN(); 6674 L_360576BC: 6675 edi = POP32_VAL(esp); /* 0x360576BC: pop edi */ 6676 L_360576BD: 6677 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 6678 SET_LO8(eax, 0); /* 0x360576BD: xor al, al */ 6679 _cf = 0; 6680 _flag_k = FK_NARROW(FK_TEST, 24); 6681 L_360576BF: 6682 esi = POP32_VAL(esp); /* 0x360576BF: pop esi */ 6683 L_360576C0: 6684 esp = ebp; /* 0x360576C0: mov esp, ebp */ 6685 L_360576C2: 6686 ebp = POP32_VAL(esp); /* 0x360576C2: pop ebp */ 6687 L_360576C3: 6688 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360576C3: ret 4 */ 6689 L_360576C6: 6690 eax = edi + 0x70; /* 0x360576C6: lea eax, [edi + 0x70] */ 6691 L_360576C9: 6692 ecx = ebp + (-0x10); /* 0x360576C9: lea ecx, [ebp - 0x10] */ 6693 L_360576CC: 6694 /* cmp ecx, eax */ /* 0x360576CC: cmp ecx, eax */ 6695 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6697 _flag_k = FK_CMP; 6698 L_360576CE: 6699 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_360576DB; /* 0x360576CE: je 0x360576db */ 6700 L_360576D0: 6701 edx = MEM32(eax); /* 0x360576D0: mov edx, dword ptr [eax] */ 6702 L_360576D2: 6703 eax = MEM32(eax + 0x4); /* 0x360576D2: mov eax, dword ptr [eax + 4] */ 6704 L_360576D5: 6705 MEM32(ebp + (-0x10)) = edx; /* 0x360576D5: mov dword ptr [ebp - 0x10], edx */ 6706 L_360576D8: 6707 MEM32(ebp + (-0xC)) = eax; /* 0x360576D8: mov dword ptr [ebp - 0xc], eax */ 6708 L_360576DB: 6709 ecx = MEM32(0x3616FF74); /* 0x360576DB: mov ecx, dword ptr [0x3616ff74] */ 6710 L_360576E1: 6711 eax = MEM32(ecx); /* 0x360576E1: mov eax, dword ptr [ecx] */ 6712 L_360576E3: 6713 PUSH32(esp, ebx); /* 0x360576E3: push ebx */ 6714 L_360576E4: 6715 PUSH32(esp, 0); /* 0x360576E4: push 0 */ 6716 L_360576E6: 6717 PUSH32(esp, 0x361B5A48u); /* 0x360576E6: push 0x361b5a48 */ 6718 L_360576EB: 6719 PUSH32(esp, 0x361B2D38u); /* 0x360576EB: push 0x361b2d38 */ 6720 L_360576F0: 6721 PUSH32(esp, 0); /* 0x360576F0: push 0 */ 6722 L_360576F2: 6723 PUSH32(esp, eax); /* 0x360576F2: push eax */ 6724 L_360576F3: 6725 RECOMP_ICALL(0x3615FD86u); /* 0x360576F3: call 0x3615fd86 */ /* not lifted */ 6726 RECOMP_FLAGS_IN(); 6727 L_360576F8: 6728 edx = MEM32(edi + 0x10); /* 0x360576F8: mov edx, dword ptr [edi + 0x10] */ 6729 L_360576FB: 6730 ebx = MEM32(edx + 0x8); /* 0x360576FB: mov ebx, dword ptr [edx + 8] */ 6731 L_360576FE: 6732 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 6733 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6734 edx = edx + 4; /* 0x360576FE: add edx, 4 */ 6735 _flag_k = FK_ADD; 6736 L_36057701: 6737 ecx = eax; /* 0x36057701: mov ecx, eax */ 6738 L_36057703: 6739 eax = MEM32(esi + 0xC); /* 0x36057703: mov eax, dword ptr [esi + 0xc] */ 6740 L_36057706: 6741 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6743 esp = esp + 0x14u; /* 0x36057706: add esp, 0x14 */ 6744 _flag_k = FK_ADD; 6745 L_36057709: 6746 /* cmp eax, ebx */ /* 0x36057709: cmp eax, ebx */ 6747 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6749 _flag_k = FK_CMP; 6750 L_3605770B: 6751 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36057853; /* 0x3605770B: jne 0x36057853 */ 6752 L_36057711: 6753 eax = MEM32(esi + 0x8); /* 0x36057711: mov eax, dword ptr [esi + 8] */ 6754 L_36057714: 6755 /* cmp eax, MEM32(edx) */ /* 0x36057714: cmp eax, dword ptr [edx] */ 6756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 6757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6758 _flag_k = FK_CMP; 6759 L_36057716: 6760 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36057853; /* 0x36057716: jne 0x36057853 */ 6761 L_3605771C: 6762 esi = MEM32(esi + 0x10); /* 0x3605771C: mov esi, dword ptr [esi + 0x10] */ 6763 L_3605771F: 6764 eax = esi + (-0x1); /* 0x3605771F: lea eax, [esi - 1] */ 6765 L_36057722: 6766 /* cmp eax, 0x8Fu */ /* 0x36057722: cmp eax, 0x8f */ 6767 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8Fu); 6768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6769 _flag_k = FK_CMP; 6770 L_36057727: 6771 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36057877; /* 0x36057727: ja 0x36057877 */ 6772 L_3605772D: 6773 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6774 edx = 0; /* 0x3605772D: xor edx, edx */ 6775 _cf = 0; 6776 _flag_k = FK_TEST; 6777 L_3605772F: 6778 SET_LO8(edx, MEM8(eax + 0x360578BC)); /* 0x3605772F: mov dl, byte ptr [eax + 0x360578bc] */ 6779 L_36057735: 6780 { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x36057884)); goto _ljump; } 6781 L_3605773C: 6782 PUSH32(esp, 0); /* 0x3605773C: push 0 */ 6783 L_3605773E: 6784 eax = ebp + (-0x10); /* 0x3605773E: lea eax, [ebp - 0x10] */ 6785 L_36057741: 6786 PUSH32(esp, eax); /* 0x36057741: push eax */ 6787 L_36057742: 6788 RECOMP_ICALL(0x3602ACD0u); /* 0x36057742: call 0x3602acd0 */ /* not lifted */ 6789 RECOMP_FLAGS_IN(); 6790 L_36057747: 6791 ebx = POP32_VAL(esp); /* 0x36057747: pop ebx */ 6792 L_36057748: 6793 edi = POP32_VAL(esp); /* 0x36057748: pop edi */ 6794 L_36057749: 6795 SET_LO8(eax, 1); /* 0x36057749: mov al, 1 */ 6796 L_3605774B: 6797 esi = POP32_VAL(esp); /* 0x3605774B: pop esi */ 6798 L_3605774C: 6799 esp = ebp; /* 0x3605774C: mov esp, ebp */ 6800 L_3605774E: 6801 ebp = POP32_VAL(esp); /* 0x3605774E: pop ebp */ 6802 L_3605774F: 6803 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3605774F: ret 4 */ 6804 L_36057752: 6805 ecx = edi; /* 0x36057752: mov ecx, edi */ 6806 L_36057754: 6807 RECOMP_ICALL(0x36057B80u); /* 0x36057754: call 0x36057b80 */ /* not lifted */ 6808 RECOMP_FLAGS_IN(); 6809 L_36057759: 6810 ecx = edi; /* 0x36057759: mov ecx, edi */ 6811 L_3605775B: 6812 RECOMP_ICALL(0x36058650u); /* 0x3605775B: call 0x36058650 */ /* not lifted */ 6813 RECOMP_FLAGS_IN(); 6814 L_36057760: 6815 ebx = POP32_VAL(esp); /* 0x36057760: pop ebx */ 6816 L_36057761: 6817 edi = POP32_VAL(esp); /* 0x36057761: pop edi */ 6818 L_36057762: 6819 SET_LO8(eax, 1); /* 0x36057762: mov al, 1 */ 6820 L_36057764: 6821 esi = POP32_VAL(esp); /* 0x36057764: pop esi */ 6822 L_36057765: 6823 esp = ebp; /* 0x36057765: mov esp, ebp */ 6824 L_36057767: 6825 ebp = POP32_VAL(esp); /* 0x36057767: pop ebp */ 6826 L_36057768: 6827 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36057768: ret 4 */ 6828 L_3605776B: 6829 edx = ebp + (-0x10); /* 0x3605776B: lea edx, [ebp - 0x10] */ 6830 L_3605776E: 6831 PUSH32(esp, edx); /* 0x3605776E: push edx */ 6832 L_3605776F: 6833 RECOMP_ICALL(0x3602A400u); /* 0x3605776F: call 0x3602a400 */ /* not lifted */ 6834 RECOMP_FLAGS_IN(); 6835 L_36057774: 6836 ebx = POP32_VAL(esp); /* 0x36057774: pop ebx */ 6837 L_36057775: 6838 edi = POP32_VAL(esp); /* 0x36057775: pop edi */ 6839 L_36057776: 6840 SET_LO8(eax, 1); /* 0x36057776: mov al, 1 */ 6841 L_36057778: 6842 esi = POP32_VAL(esp); /* 0x36057778: pop esi */ 6843 L_36057779: 6844 esp = ebp; /* 0x36057779: mov esp, ebp */ 6845 L_3605777B: 6846 ebp = POP32_VAL(esp); /* 0x3605777B: pop ebp */ 6847 L_3605777C: 6848 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3605777C: ret 4 */ 6849 L_3605777F: 6850 eax = ebp + (-0x10); /* 0x3605777F: lea eax, [ebp - 0x10] */ 6851 L_36057782: 6852 PUSH32(esp, eax); /* 0x36057782: push eax */ 6853 L_36057783: 6854 RECOMP_ICALL(0x3602B2B0u); /* 0x36057783: call 0x3602b2b0 */ /* not lifted */ 6855 RECOMP_FLAGS_IN(); 6856 L_36057788: 6857 ebx = POP32_VAL(esp); /* 0x36057788: pop ebx */ 6858 L_36057789: 6859 edi = POP32_VAL(esp); /* 0x36057789: pop edi */ 6860 L_3605778A: 6861 SET_LO8(eax, 1); /* 0x3605778A: mov al, 1 */ 6862 L_3605778C: 6863 esi = POP32_VAL(esp); /* 0x3605778C: pop esi */ 6864 L_3605778D: 6865 esp = ebp; /* 0x3605778D: mov esp, ebp */ 6866 L_3605778F: 6867 ebp = POP32_VAL(esp); /* 0x3605778F: pop ebp */ 6868 L_36057790: 6869 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36057790: ret 4 */ 6870 L_36057793: 6871 edx = ebp + (-0x10); /* 0x36057793: lea edx, [ebp - 0x10] */ 6872 L_36057796: 6873 PUSH32(esp, edx); /* 0x36057796: push edx */ 6874 L_36057797: 6875 RECOMP_ICALL(0x3602B2B0u); /* 0x36057797: call 0x3602b2b0 */ /* not lifted */ 6876 RECOMP_FLAGS_IN(); 6877 L_3605779C: 6878 ebx = POP32_VAL(esp); /* 0x3605779C: pop ebx */ 6879 L_3605779D: 6880 edi = POP32_VAL(esp); /* 0x3605779D: pop edi */ 6881 L_3605779E: 6882 SET_LO8(eax, 1); /* 0x3605779E: mov al, 1 */ 6883 L_360577A0: 6884 esi = POP32_VAL(esp); /* 0x360577A0: pop esi */ 6885 L_360577A1: 6886 esp = ebp; /* 0x360577A1: mov esp, ebp */ 6887 L_360577A3: 6888 ebp = POP32_VAL(esp); /* 0x360577A3: pop ebp */ 6889 L_360577A4: 6890 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360577A4: ret 4 */ 6891 L_360577A7: 6892 RECOMP_ICALL(0x3602BA60u); /* 0x360577A7: call 0x3602ba60 */ /* not lifted */ 6893 RECOMP_FLAGS_IN(); 6894 L_360577AC: 6895 ebx = POP32_VAL(esp); /* 0x360577AC: pop ebx */ 6896 L_360577AD: 6897 edi = POP32_VAL(esp); /* 0x360577AD: pop edi */ 6898 L_360577AE: 6899 SET_LO8(eax, 1); /* 0x360577AE: mov al, 1 */ 6900 L_360577B0: 6901 esi = POP32_VAL(esp); /* 0x360577B0: pop esi */ 6902 L_360577B1: 6903 esp = ebp; /* 0x360577B1: mov esp, ebp */ 6904 L_360577B3: 6905 ebp = POP32_VAL(esp); /* 0x360577B3: pop ebp */ 6906 L_360577B4: 6907 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360577B4: ret 4 */ 6908 L_360577B7: 6909 RECOMP_ICALL(0x360278C0u); /* 0x360577B7: call 0x360278c0 */ /* not lifted */ 6910 RECOMP_FLAGS_IN(); 6911 L_360577BC: 6912 ebx = POP32_VAL(esp); /* 0x360577BC: pop ebx */ 6913 L_360577BD: 6914 edi = POP32_VAL(esp); /* 0x360577BD: pop edi */ 6915 L_360577BE: 6916 SET_LO8(eax, 1); /* 0x360577BE: mov al, 1 */ 6917 L_360577C0: 6918 esi = POP32_VAL(esp); /* 0x360577C0: pop esi */ 6919 L_360577C1: 6920 esp = ebp; /* 0x360577C1: mov esp, ebp */ 6921 L_360577C3: 6922 ebp = POP32_VAL(esp); /* 0x360577C3: pop ebp */ 6923 L_360577C4: 6924 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360577C4: ret 4 */ 6925 L_360577C7: 6926 RECOMP_ICALL(0x36027A00u); /* 0x360577C7: call 0x36027a00 */ /* not lifted */ 6927 RECOMP_FLAGS_IN(); 6928 L_360577CC: 6929 ebx = POP32_VAL(esp); /* 0x360577CC: pop ebx */ 6930 L_360577CD: 6931 edi = POP32_VAL(esp); /* 0x360577CD: pop edi */ 6932 L_360577CE: 6933 SET_LO8(eax, 1); /* 0x360577CE: mov al, 1 */ 6934 L_360577D0: 6935 esi = POP32_VAL(esp); /* 0x360577D0: pop esi */ 6936 L_360577D1: 6937 esp = ebp; /* 0x360577D1: mov esp, ebp */ 6938 L_360577D3: 6939 ebp = POP32_VAL(esp); /* 0x360577D3: pop ebp */ 6940 L_360577D4: 6941 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360577D4: ret 4 */ 6942 L_360577D7: 6943 RECOMP_ICALL(0x3602CE50u); /* 0x360577D7: call 0x3602ce50 */ /* not lifted */ 6944 RECOMP_FLAGS_IN(); 6945 L_360577DC: 6946 ebx = POP32_VAL(esp); /* 0x360577DC: pop ebx */ 6947 L_360577DD: 6948 edi = POP32_VAL(esp); /* 0x360577DD: pop edi */ 6949 L_360577DE: 6950 SET_LO8(eax, 1); /* 0x360577DE: mov al, 1 */ 6951 L_360577E0: 6952 esi = POP32_VAL(esp); /* 0x360577E0: pop esi */ 6953 L_360577E1: 6954 esp = ebp; /* 0x360577E1: mov esp, ebp */ 6955 L_360577E3: 6956 ebp = POP32_VAL(esp); /* 0x360577E3: pop ebp */ 6957 L_360577E4: 6958 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360577E4: ret 4 */ 6959 L_360577E7: 6960 eax = ebp + 0x8; /* 0x360577E7: lea eax, [ebp + 8] */ 6961 L_360577EA: 6962 PUSH32(esp, eax); /* 0x360577EA: push eax */ 6963 L_360577EB: 6964 PUSH32(esp, 0x20u); /* 0x360577EB: push 0x20 */ 6965 L_360577ED: 6966 MEM32(ebp + 0x8) = 0; /* 0x360577ED: mov dword ptr [ebp + 8], 0 */ 6967 L_360577F4: 6968 RECOMP_ICALL(0x36022FC0u); /* 0x360577F4: call 0x36022fc0 */ /* not lifted */ 6969 RECOMP_FLAGS_IN(); 6970 L_360577F9: 6971 ebx = POP32_VAL(esp); /* 0x360577F9: pop ebx */ 6972 L_360577FA: 6973 edi = POP32_VAL(esp); /* 0x360577FA: pop edi */ 6974 L_360577FB: 6975 SET_LO8(eax, 1); /* 0x360577FB: mov al, 1 */ 6976 L_360577FD: 6977 esi = POP32_VAL(esp); /* 0x360577FD: pop esi */ 6978 L_360577FE: 6979 esp = ebp; /* 0x360577FE: mov esp, ebp */ 6980 L_36057800: 6981 ebp = POP32_VAL(esp); /* 0x36057800: pop ebp */ 6982 L_36057801: 6983 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36057801: ret 4 */ 6984 L_36057804: 6985 edx = ebp + (-0x4); /* 0x36057804: lea edx, [ebp - 4] */ 6986 L_36057807: 6987 PUSH32(esp, edx); /* 0x36057807: push edx */ 6988 L_36057808: 6989 PUSH32(esp, 0x16u); /* 0x36057808: push 0x16 */ 6990 L_3605780A: 6991 MEM32(ebp + (-0x4)) = 0; /* 0x3605780A: mov dword ptr [ebp - 4], 0 */ 6992 L_36057811: 6993 RECOMP_ICALL(0x36022FC0u); /* 0x36057811: call 0x36022fc0 */ /* not lifted */ 6994 RECOMP_FLAGS_IN(); 6995 L_36057816: 6996 ebx = POP32_VAL(esp); /* 0x36057816: pop ebx */ 6997 L_36057817: 6998 edi = POP32_VAL(esp); /* 0x36057817: pop edi */ 6999 L_36057818: 7000 SET_LO8(eax, 1); /* 0x36057818: mov al, 1 */ 7001 L_3605781A: 7002 esi = POP32_VAL(esp); /* 0x3605781A: pop esi */ 7003 L_3605781B: 7004 esp = ebp; /* 0x3605781B: mov esp, ebp */ 7005 L_3605781D: 7006 ebp = POP32_VAL(esp); /* 0x3605781D: pop ebp */ 7007 L_3605781E: 7008 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3605781E: ret 4 */ 7009 L_36057821: 7010 eax = ebp + (-0x8); /* 0x36057821: lea eax, [ebp - 8] */ 7011 L_36057824: 7012 PUSH32(esp, eax); /* 0x36057824: push eax */ 7013 L_36057825: 7014 PUSH32(esp, 0x17u); /* 0x36057825: push 0x17 */ 7015 L_36057827: 7016 MEM32(ebp + (-0x8)) = 0; /* 0x36057827: mov dword ptr [ebp - 8], 0 */ 7017 L_3605782E: 7018 RECOMP_ICALL(0x36022FC0u); /* 0x3605782E: call 0x36022fc0 */ /* not lifted */ 7019 RECOMP_FLAGS_IN(); 7020 L_36057833: 7021 ebx = POP32_VAL(esp); /* 0x36057833: pop ebx */ 7022 L_36057834: 7023 edi = POP32_VAL(esp); /* 0x36057834: pop edi */ 7024 L_36057835: 7025 SET_LO8(eax, 1); /* 0x36057835: mov al, 1 */ 7026 L_36057837: 7027 esi = POP32_VAL(esp); /* 0x36057837: pop esi */ 7028 L_36057838: 7029 esp = ebp; /* 0x36057838: mov esp, ebp */ 7030 L_3605783A: 7031 ebp = POP32_VAL(esp); /* 0x3605783A: pop ebp */ 7032 L_3605783B: 7033 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3605783B: ret 4 */ 7034 L_3605783E: 7035 PUSH32(esp, esi); /* 0x3605783E: push esi */ 7036 L_3605783F: 7037 edx = ebp + (-0x10); /* 0x3605783F: lea edx, [ebp - 0x10] */ 7038 L_36057842: 7039 PUSH32(esp, edx); /* 0x36057842: push edx */ 7040 L_36057843: 7041 RECOMP_ICALL(0x3602C090u); /* 0x36057843: call 0x3602c090 */ /* not lifted */ 7042 RECOMP_FLAGS_IN(); 7043 L_36057848: 7044 ebx = POP32_VAL(esp); /* 0x36057848: pop ebx */ 7045 L_36057849: 7046 edi = POP32_VAL(esp); /* 0x36057849: pop edi */ 7047 L_3605784A: 7048 SET_LO8(eax, 1); /* 0x3605784A: mov al, 1 */ 7049 L_3605784C: 7050 esi = POP32_VAL(esp); /* 0x3605784C: pop esi */ 7051 L_3605784D: 7052 esp = ebp; /* 0x3605784D: mov esp, ebp */ 7053 L_3605784F: 7054 ebp = POP32_VAL(esp); /* 0x3605784F: pop ebp */ 7055 L_36057850: 7056 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36057850: ret 4 */ 7057 L_36057853: 7058 esi = MEM32(esi + 0x10); /* 0x36057853: mov esi, dword ptr [esi + 0x10] */ 7059 L_36057856: 7060 eax = esi + (-0x79); /* 0x36057856: lea eax, [esi - 0x79] */ 7061 L_36057859: 7062 /* cmp eax, 0x2Eu */ /* 0x36057859: cmp eax, 0x2e */ 7063 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2Eu); 7064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7065 _flag_k = FK_CMP; 7066 L_3605785C: 7067 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36057877; /* 0x3605785C: ja 0x36057877 */ 7068 L_3605785E: 7069 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7070 edx = 0; /* 0x3605785E: xor edx, edx */ 7071 _cf = 0; 7072 _flag_k = FK_TEST; 7073 L_36057860: 7074 SET_LO8(edx, MEM8(eax + 0x36057954)); /* 0x36057860: mov dl, byte ptr [eax + 0x36057954] */ 7075 L_36057866: 7076 { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x3605794C)); goto _ljump; } 7077 L_3605786D: 7078 PUSH32(esp, esi); /* 0x3605786D: push esi */ 7079 L_3605786E: 7080 eax = ebp + (-0x10); /* 0x3605786E: lea eax, [ebp - 0x10] */ 7081 L_36057871: 7082 PUSH32(esp, eax); /* 0x36057871: push eax */ 7083 L_36057872: 7084 RECOMP_ICALL(0x3602C090u); /* 0x36057872: call 0x3602c090 */ /* not lifted */ 7085 RECOMP_FLAGS_IN(); 7086 L_36057877: 7087 ebx = POP32_VAL(esp); /* 0x36057877: pop ebx */ 7088 L_36057878: 7089 edi = POP32_VAL(esp); /* 0x36057878: pop edi */ 7090 L_36057879: 7091 SET_LO8(eax, 1); /* 0x36057879: mov al, 1 */ 7092 L_3605787B: 7093 esi = POP32_VAL(esp); /* 0x3605787B: pop esi */ 7094 L_3605787C: 7095 esp = ebp; /* 0x3605787C: mov esp, ebp */ 7096 L_3605787E: 7097 ebp = POP32_VAL(esp); /* 0x3605787E: pop ebp */ 7098 L_3605787F: 7099 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3605787F: ret 4 */ 7100 _ljump: 7101 switch (_itail_tgt) { 7102 case 0x36057680u: goto L_36057680; 7103 case 0x36057681u: goto L_36057681; 7104 case 0x36057683u: goto L_36057683; 7105 case 0x36057686u: goto L_36057686; 7106 case 0x36057689u: goto L_36057689; 7107 case 0x3605768Au: goto L_3605768A; 7108 case 0x3605768Bu: goto L_3605768B; 7109 case 0x3605768Du: goto L_3605768D; 7110 case 0x3605768Eu: goto L_3605768E; 7111 case 0x36057693u: goto L_36057693; 7112 case 0x36057695u: goto L_36057695; 7113 case 0x36057697u: goto L_36057697; 7114 case 0x36057699u: goto L_36057699; 7115 case 0x3605769Au: goto L_3605769A; 7116 case 0x3605769Cu: goto L_3605769C; 7117 case 0x3605769Du: goto L_3605769D; 7118 case 0x3605769Fu: goto L_3605769F; 7119 case 0x360576A0u: goto L_360576A0; 7120 case 0x360576A3u: goto L_360576A3; 7121 case 0x360576A7u: goto L_360576A7; 7122 case 0x360576A9u: goto L_360576A9; 7123 case 0x360576ABu: goto L_360576AB; 7124 case 0x360576B0u: goto L_360576B0; 7125 case 0x360576B5u: goto L_360576B5; 7126 case 0x360576B7u: goto L_360576B7; 7127 case 0x360576BCu: goto L_360576BC; 7128 case 0x360576BDu: goto L_360576BD; 7129 case 0x360576BFu: goto L_360576BF; 7130 case 0x360576C0u: goto L_360576C0; 7131 case 0x360576C2u: goto L_360576C2; 7132 case 0x360576C3u: goto L_360576C3; 7133 case 0x360576C6u: goto L_360576C6; 7134 case 0x360576C9u: goto L_360576C9; 7135 case 0x360576CCu: goto L_360576CC; 7136 case 0x360576CEu: goto L_360576CE; 7137 case 0x360576D0u: goto L_360576D0; 7138 case 0x360576D2u: goto L_360576D2; 7139 case 0x360576D5u: goto L_360576D5; 7140 case 0x360576D8u: goto L_360576D8; 7141 case 0x360576DBu: goto L_360576DB; 7142 case 0x360576E1u: goto L_360576E1; 7143 case 0x360576E3u: goto L_360576E3; 7144 case 0x360576E4u: goto L_360576E4; 7145 case 0x360576E6u: goto L_360576E6; 7146 case 0x360576EBu: goto L_360576EB; 7147 case 0x360576F0u: goto L_360576F0; 7148 case 0x360576F2u: goto L_360576F2; 7149 case 0x360576F3u: goto L_360576F3; 7150 case 0x360576F8u: goto L_360576F8; 7151 case 0x360576FBu: goto L_360576FB; 7152 case 0x360576FEu: goto L_360576FE; 7153 case 0x36057701u: goto L_36057701; 7154 case 0x36057703u: goto L_36057703; 7155 case 0x36057706u: goto L_36057706; 7156 case 0x36057709u: goto L_36057709; 7157 case 0x3605770Bu: goto L_3605770B; 7158 case 0x36057711u: goto L_36057711; 7159 case 0x36057714u: goto L_36057714; 7160 case 0x36057716u: goto L_36057716; 7161 case 0x3605771Cu: goto L_3605771C; 7162 case 0x3605771Fu: goto L_3605771F; 7163 case 0x36057722u: goto L_36057722; 7164 case 0x36057727u: goto L_36057727; 7165 case 0x3605772Du: goto L_3605772D; 7166 case 0x3605772Fu: goto L_3605772F; 7167 case 0x36057735u: goto L_36057735; 7168 case 0x3605773Cu: goto L_3605773C; 7169 case 0x3605773Eu: goto L_3605773E; 7170 case 0x36057741u: goto L_36057741; 7171 case 0x36057742u: goto L_36057742; 7172 case 0x36057747u: goto L_36057747; 7173 case 0x36057748u: goto L_36057748; 7174 case 0x36057749u: goto L_36057749; 7175 case 0x3605774Bu: goto L_3605774B; 7176 case 0x3605774Cu: goto L_3605774C; 7177 case 0x3605774Eu: goto L_3605774E; 7178 case 0x3605774Fu: goto L_3605774F; 7179 case 0x36057752u: goto L_36057752; 7180 case 0x36057754u: goto L_36057754; 7181 case 0x36057759u: goto L_36057759; 7182 case 0x3605775Bu: goto L_3605775B; 7183 case 0x36057760u: goto L_36057760; 7184 case 0x36057761u: goto L_36057761; 7185 case 0x36057762u: goto L_36057762; 7186 case 0x36057764u: goto L_36057764; 7187 case 0x36057765u: goto L_36057765; 7188 case 0x36057767u: goto L_36057767; 7189 case 0x36057768u: goto L_36057768; 7190 case 0x3605776Bu: goto L_3605776B; 7191 case 0x3605776Eu: goto L_3605776E; 7192 case 0x3605776Fu: goto L_3605776F; 7193 case 0x36057774u: goto L_36057774; 7194 case 0x36057775u: goto L_36057775; 7195 case 0x36057776u: goto L_36057776; 7196 case 0x36057778u: goto L_36057778; 7197 case 0x36057779u: goto L_36057779; 7198 case 0x3605777Bu: goto L_3605777B; 7199 case 0x3605777Cu: goto L_3605777C; 7200 case 0x3605777Fu: goto L_3605777F; 7201 case 0x36057782u: goto L_36057782; 7202 case 0x36057783u: goto L_36057783; 7203 case 0x36057788u: goto L_36057788; 7204 case 0x36057789u: goto L_36057789; 7205 case 0x3605778Au: goto L_3605778A; 7206 case 0x3605778Cu: goto L_3605778C; 7207 case 0x3605778Du: goto L_3605778D; 7208 case 0x3605778Fu: goto L_3605778F; 7209 case 0x36057790u: goto L_36057790; 7210 case 0x36057793u: goto L_36057793; 7211 case 0x36057796u: goto L_36057796; 7212 case 0x36057797u: goto L_36057797; 7213 case 0x3605779Cu: goto L_3605779C; 7214 case 0x3605779Du: goto L_3605779D; 7215 case 0x3605779Eu: goto L_3605779E; 7216 case 0x360577A0u: goto L_360577A0; 7217 case 0x360577A1u: goto L_360577A1; 7218 case 0x360577A3u: goto L_360577A3; 7219 case 0x360577A4u: goto L_360577A4; 7220 case 0x360577A7u: goto L_360577A7; 7221 case 0x360577ACu: goto L_360577AC; 7222 case 0x360577ADu: goto L_360577AD; 7223 case 0x360577AEu: goto L_360577AE; 7224 case 0x360577B0u: goto L_360577B0; 7225 case 0x360577B1u: goto L_360577B1; 7226 case 0x360577B3u: goto L_360577B3; 7227 case 0x360577B4u: goto L_360577B4; 7228 case 0x360577B7u: goto L_360577B7; 7229 case 0x360577BCu: goto L_360577BC; 7230 case 0x360577BDu: goto L_360577BD; 7231 case 0x360577BEu: goto L_360577BE; 7232 case 0x360577C0u: goto L_360577C0; 7233 case 0x360577C1u: goto L_360577C1; 7234 case 0x360577C3u: goto L_360577C3; 7235 case 0x360577C4u: goto L_360577C4; 7236 case 0x360577C7u: goto L_360577C7; 7237 case 0x360577CCu: goto L_360577CC; 7238 case 0x360577CDu: goto L_360577CD; 7239 case 0x360577CEu: goto L_360577CE; 7240 case 0x360577D0u: goto L_360577D0; 7241 case 0x360577D1u: goto L_360577D1; 7242 case 0x360577D3u: goto L_360577D3; 7243 case 0x360577D4u: goto L_360577D4; 7244 case 0x360577D7u: goto L_360577D7; 7245 case 0x360577DCu: goto L_360577DC; 7246 case 0x360577DDu: goto L_360577DD; 7247 case 0x360577DEu: goto L_360577DE; 7248 case 0x360577E0u: goto L_360577E0; 7249 case 0x360577E1u: goto L_360577E1; 7250 case 0x360577E3u: goto L_360577E3; 7251 case 0x360577E4u: goto L_360577E4; 7252 case 0x360577E7u: goto L_360577E7; 7253 case 0x360577EAu: goto L_360577EA; 7254 case 0x360577EBu: goto L_360577EB; 7255 case 0x360577EDu: goto L_360577ED; 7256 case 0x360577F4u: goto L_360577F4; 7257 case 0x360577F9u: goto L_360577F9; 7258 case 0x360577FAu: goto L_360577FA; 7259 case 0x360577FBu: goto L_360577FB; 7260 case 0x360577FDu: goto L_360577FD; 7261 case 0x360577FEu: goto L_360577FE; 7262 case 0x36057800u: goto L_36057800; 7263 case 0x36057801u: goto L_36057801; 7264 case 0x36057804u: goto L_36057804; 7265 case 0x36057807u: goto L_36057807; 7266 case 0x36057808u: goto L_36057808; 7267 case 0x3605780Au: goto L_3605780A; 7268 case 0x36057811u: goto L_36057811; 7269 case 0x36057816u: goto L_36057816; 7270 case 0x36057817u: goto L_36057817; 7271 case 0x36057818u: goto L_36057818; 7272 case 0x3605781Au: goto L_3605781A; 7273 case 0x3605781Bu: goto L_3605781B; 7274 case 0x3605781Du: goto L_3605781D; 7275 case 0x3605781Eu: goto L_3605781E; 7276 case 0x36057821u: goto L_36057821; 7277 case 0x36057824u: goto L_36057824; 7278 case 0x36057825u: goto L_36057825; 7279 case 0x36057827u: goto L_36057827; 7280 case 0x3605782Eu: goto L_3605782E; 7281 case 0x36057833u: goto L_36057833; 7282 case 0x36057834u: goto L_36057834; 7283 case 0x36057835u: goto L_36057835; 7284 case 0x36057837u: goto L_36057837; 7285 case 0x36057838u: goto L_36057838; 7286 case 0x3605783Au: goto L_3605783A; 7287 case 0x3605783Bu: goto L_3605783B; 7288 case 0x3605783Eu: goto L_3605783E; 7289 case 0x3605783Fu: goto L_3605783F; 7290 case 0x36057842u: goto L_36057842; 7291 case 0x36057843u: goto L_36057843; 7292 case 0x36057848u: goto L_36057848; 7293 case 0x36057849u: goto L_36057849; 7294 case 0x3605784Au: goto L_3605784A; 7295 case 0x3605784Cu: goto L_3605784C; 7296 case 0x3605784Du: goto L_3605784D; 7297 case 0x3605784Fu: goto L_3605784F; 7298 case 0x36057850u: goto L_36057850; 7299 case 0x36057853u: goto L_36057853; 7300 case 0x36057856u: goto L_36057856; 7301 case 0x36057859u: goto L_36057859; 7302 case 0x3605785Cu: goto L_3605785C; 7303 case 0x3605785Eu: goto L_3605785E; 7304 case 0x36057860u: goto L_36057860; 7305 case 0x36057866u: goto L_36057866; 7306 case 0x3605786Du: goto L_3605786D; 7307 case 0x3605786Eu: goto L_3605786E; 7308 case 0x36057871u: goto L_36057871; 7309 case 0x36057872u: goto L_36057872; 7310 case 0x36057877u: goto L_36057877; 7311 case 0x36057878u: goto L_36057878; 7312 case 0x36057879u: goto L_36057879; 7313 case 0x3605787Bu: goto L_3605787B; 7314 case 0x3605787Cu: goto L_3605787C; 7315 case 0x3605787Eu: goto L_3605787E; 7316 case 0x3605787Fu: goto L_3605787F; 7317 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 7318 } 7319 RECOMP_REGS_OUT(); 7320 } 7321 7322 void sub_36057990(void) { 7323 int _fpu_cmp = 0; 7324 uint32_t _cf = 0; 7325 int _df = 1; 7326 uint32_t _flag_k = FK_NONE; 7327 uint32_t _flag_a = 0, _flag_b = 0; 7328 uint32_t _itail_tgt = 0; 7329 RECOMP_REGS_LOCALS 7330 RECOMP_ENTER(0x36057990u); 7331 7332 L_36057990: 7333 PUSH32(esp, ebp); /* 0x36057990: push ebp */ 7334 ebp = esp; /* 0x36057991: mov ebp, esp */ 7335 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 7336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7337 esp = esp - 0x18u; /* 0x36057993: sub esp, 0x18 */ 7338 _flag_k = FK_CMP; 7339 PUSH32(esp, ebx); /* 0x36057996: push ebx */ 7340 PUSH32(esp, esi); /* 0x36057997: push esi */ 7341 esi = ecx; /* 0x36057998: mov esi, ecx */ 7342 eax = MEM32(esi + 0x90); /* 0x3605799A: mov eax, dword ptr [esi + 0x90] */ 7343 edx = MEM32(eax + 0x4); /* 0x360579A0: mov edx, dword ptr [eax + 4] */ 7344 eax = MEM32(edx); /* 0x360579A3: mov eax, dword ptr [edx] */ 7345 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7346 ecx = 0; /* 0x360579A5: xor ecx, ecx */ 7347 _cf = 0; 7348 _flag_k = FK_TEST; 7349 /* cmp eax, edx */ /* 0x360579A7: cmp eax, edx */ 7350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7352 _flag_k = FK_CMP; 7353 PUSH32(esp, edi); /* 0x360579A9: push edi */ 7354 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057A29; /* 0x360579AA: je 0x36057a29 */ 7355 L_360579AC: 7356 ebx = MEM32(ebp + 0x8); /* 0x360579AC: mov ebx, dword ptr [ebp + 8] */ 7357 L_360579AF: 7358 /* cmp MEM32(eax + 0x1C), ebx */ /* 0x360579AF: cmp dword ptr [eax + 0x1c], ebx */ 7359 _flag_a = (uint32_t)(MEM32(eax + 0x1C)); _flag_b = (uint32_t)(ebx); 7360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7361 _flag_k = FK_CMP; 7362 if (CMP_EQ(_flag_a, _flag_b)) goto L_360579B9; /* 0x360579B2: je 0x360579b9 */ 7363 L_360579B4: 7364 /* cmp MEM32(eax + 0x20), ebx */ /* 0x360579B4: cmp dword ptr [eax + 0x20], ebx */ 7365 _flag_a = (uint32_t)(MEM32(eax + 0x20)); _flag_b = (uint32_t)(ebx); 7366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7367 _flag_k = FK_CMP; 7368 if (CMP_NE(_flag_a, _flag_b)) goto L_360579BC; /* 0x360579B7: jne 0x360579bc */ 7369 L_360579B9: 7370 ecx = eax + 0x8; /* 0x360579B9: lea ecx, [eax + 8] */ 7371 L_360579BC: 7372 eax = MEM32(eax); /* 0x360579BC: mov eax, dword ptr [eax] */ 7373 /* cmp eax, edx */ /* 0x360579BE: cmp eax, edx */ 7374 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7376 _flag_k = FK_CMP; 7377 RECOMP_BACKEDGE(); 7378 if (CMP_NE(_flag_a, _flag_b)) goto L_360579AF; /* 0x360579C0: jne 0x360579af */ 7379 L_360579C2: 7380 /* test ecx, ecx */ /* 0x360579C2: test ecx, ecx */ 7381 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7382 _cf = 0; 7383 _flag_k = FK_TEST; 7384 if (TEST_Z(_flag_a, _flag_b)) goto L_36057A29; /* 0x360579C4: je 0x36057a29 */ 7385 L_360579C6: 7386 edi = MEM32(ecx + 0x14); /* 0x360579C6: mov edi, dword ptr [ecx + 0x14] */ 7387 /* cmp edi, ebx */ /* 0x360579C9: cmp edi, ebx */ 7388 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 7389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7390 _flag_k = FK_CMP; 7391 if (CMP_NE(_flag_a, _flag_b)) goto L_360579D0; /* 0x360579CB: jne 0x360579d0 */ 7392 L_360579CD: 7393 edi = MEM32(ecx + 0x18); /* 0x360579CD: mov edi, dword ptr [ecx + 0x18] */ 7394 L_360579D0: 7395 PUSH32(esp, edi); /* 0x360579D0: push edi */ 7396 PUSH32(esp, ecx); /* 0x360579D1: push ecx */ 7397 ecx = esi; /* 0x360579D2: mov ecx, esi */ 7398 RECOMP_ICALL(0x360572F0u); /* 0x360579D4: call 0x360572f0 */ /* not lifted */ 7399 RECOMP_FLAGS_IN(); 7400 ecx = MEM32(esi + 0x98); /* 0x360579D9: mov ecx, dword ptr [esi + 0x98] */ 7401 edx = ebp + (-0x8); /* 0x360579DF: lea edx, [ebp - 8] */ 7402 PUSH32(esp, edx); /* 0x360579E2: push edx */ 7403 eax = ebp + (-0x10); /* 0x360579E3: lea eax, [ebp - 0x10] */ 7404 PUSH32(esp, eax); /* 0x360579E6: push eax */ 7405 MEM32(ebp + (-0x8)) = edi; /* 0x360579E7: mov dword ptr [ebp - 8], edi */ 7406 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x360579EA: mov byte ptr [ebp - 4], 0 */ 7407 RECOMP_ICALL(0x3603E790u); /* 0x360579EE: call 0x3603e790 */ /* not lifted */ 7408 RECOMP_FLAGS_IN(); 7409 ecx = eax; /* 0x360579F3: mov ecx, eax */ 7410 eax = MEM32(ecx); /* 0x360579F5: mov eax, dword ptr [ecx] */ 7411 edx = MEM32(ecx + 0x4); /* 0x360579F7: mov edx, dword ptr [ecx + 4] */ 7412 MEM8(eax + 0x10) = (uint8_t)(0); /* 0x360579FA: mov byte ptr [eax + 0x10], 0 */ 7413 ecx = MEM32(esi + 0x98); /* 0x360579FE: mov ecx, dword ptr [esi + 0x98] */ 7414 eax = ebp + (-0x8); /* 0x36057A04: lea eax, [ebp - 8] */ 7415 MEM32(ebp + (-0x14)) = edx; /* 0x36057A07: mov dword ptr [ebp - 0x14], edx */ 7416 PUSH32(esp, eax); /* 0x36057A0A: push eax */ 7417 edx = ebp + (-0x18); /* 0x36057A0B: lea edx, [ebp - 0x18] */ 7418 PUSH32(esp, edx); /* 0x36057A0E: push edx */ 7419 MEM32(ebp + (-0x8)) = ebx; /* 0x36057A0F: mov dword ptr [ebp - 8], ebx */ 7420 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36057A12: mov byte ptr [ebp - 4], 0 */ 7421 RECOMP_ICALL(0x3603E790u); /* 0x36057A16: call 0x3603e790 */ /* not lifted */ 7422 RECOMP_FLAGS_IN(); 7423 ecx = eax; /* 0x36057A1B: mov ecx, eax */ 7424 eax = MEM32(ecx); /* 0x36057A1D: mov eax, dword ptr [ecx] */ 7425 edx = MEM32(ecx + 0x4); /* 0x36057A1F: mov edx, dword ptr [ecx + 4] */ 7426 MEM32(ebp + (-0xC)) = edx; /* 0x36057A22: mov dword ptr [ebp - 0xc], edx */ 7427 MEM8(eax + 0x10) = (uint8_t)(1); /* 0x36057A25: mov byte ptr [eax + 0x10], 1 */ 7428 L_36057A29: 7429 edi = POP32_VAL(esp); /* 0x36057A29: pop edi */ 7430 esi = POP32_VAL(esp); /* 0x36057A2A: pop esi */ 7431 ebx = POP32_VAL(esp); /* 0x36057A2B: pop ebx */ 7432 esp = ebp; /* 0x36057A2C: mov esp, ebp */ 7433 ebp = POP32_VAL(esp); /* 0x36057A2E: pop ebp */ 7434 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36057A2F: ret 4 */ 7435 RECOMP_REGS_OUT(); 7436 } 7437 7438 void sub_36057A40(void) { 7439 int _fpu_cmp = 0; 7440 uint32_t _cf = 0; 7441 int _df = 1; 7442 uint32_t _flag_k = FK_NONE; 7443 uint32_t _flag_a = 0, _flag_b = 0; 7444 uint32_t _itail_tgt = 0; 7445 RECOMP_REGS_LOCALS 7446 RECOMP_ENTER(0x36057A40u); 7447 7448 L_36057A40: 7449 PUSH32(esp, ebp); /* 0x36057A40: push ebp */ 7450 ebp = esp; /* 0x36057A41: mov ebp, esp */ 7451 PUSH32(esp, ecx); /* 0x36057A43: push ecx */ 7452 PUSH32(esp, ebx); /* 0x36057A44: push ebx */ 7453 ebx = MEM32(ebp + 0x8); /* 0x36057A45: mov ebx, dword ptr [ebp + 8] */ 7454 PUSH32(esp, esi); /* 0x36057A48: push esi */ 7455 esi = ecx; /* 0x36057A49: mov esi, ecx */ 7456 eax = MEM32(esi + 0x94); /* 0x36057A4B: mov eax, dword ptr [esi + 0x94] */ 7457 ecx = MEM32(eax + 0x4); /* 0x36057A51: mov ecx, dword ptr [eax + 4] */ 7458 eax = MEM32(ecx); /* 0x36057A54: mov eax, dword ptr [ecx] */ 7459 PUSH32(esp, edi); /* 0x36057A56: push edi */ 7460 MEM32(ebp + (-0x4)) = eax; /* 0x36057A57: mov dword ptr [ebp - 4], eax */ 7461 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 7462 edi = edi | 0xFFFFFFFFu; /* 0x36057A5A: or edi, 0xffffffff */ 7463 _cf = 0; 7464 _flag_k = FK_TEST; 7465 L_36057A5D: 7466 edx = MEM32(esi + 0x94); /* 0x36057A5D: mov edx, dword ptr [esi + 0x94] */ 7467 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36057A63: cmp eax, dword ptr [edx + 4] */ 7468 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7470 _flag_k = FK_CMP; 7471 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057A80; /* 0x36057A66: je 0x36057a80 */ 7472 L_36057A68: 7473 ecx = MEM32(eax + 0x10); /* 0x36057A68: mov ecx, dword ptr [eax + 0x10] */ 7474 /* cmp ecx, MEM32(ebx + 0x4) */ /* 0x36057A6B: cmp ecx, dword ptr [ebx + 4] */ 7475 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 7476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7477 _flag_k = FK_CMP; 7478 if (CMP_NE(_flag_a, _flag_b)) goto L_36057A73; /* 0x36057A6E: jne 0x36057a73 */ 7479 L_36057A70: 7480 edi = MEM32(eax + 0xC); /* 0x36057A70: mov edi, dword ptr [eax + 0xc] */ 7481 L_36057A73: 7482 ecx = ebp + (-0x4); /* 0x36057A73: lea ecx, [ebp - 4] */ 7483 RECOMP_ICALL(0x36064140u); /* 0x36057A76: call 0x36064140 */ /* not lifted */ 7484 RECOMP_FLAGS_IN(); 7485 eax = MEM32(ebp + (-0x4)); /* 0x36057A7B: mov eax, dword ptr [ebp - 4] */ 7486 RECOMP_BACKEDGE(); 7487 goto L_36057A5D; /* 0x36057A7E: jmp 0x36057a5d */ 7488 L_36057A80: 7489 /* cmp edi, 0xFFFFFFFFu */ /* 0x36057A80: cmp edi, -1 */ 7490 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 7491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7492 _flag_k = FK_CMP; 7493 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057AB6; /* 0x36057A83: je 0x36057ab6 */ 7494 L_36057A85: 7495 edx = MEM32(esi + 0x90); /* 0x36057A85: mov edx, dword ptr [esi + 0x90] */ 7496 ecx = MEM32(edx + 0x4); /* 0x36057A8B: mov ecx, dword ptr [edx + 4] */ 7497 eax = MEM32(ecx); /* 0x36057A8E: mov eax, dword ptr [ecx] */ 7498 /* cmp eax, ecx */ /* 0x36057A90: cmp eax, ecx */ 7499 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7501 _flag_k = FK_CMP; 7502 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057AB6; /* 0x36057A92: je 0x36057ab6 */ 7503 L_36057A94: 7504 /* cmp MEM32(eax + 0x1C), edi */ /* 0x36057A94: cmp dword ptr [eax + 0x1c], edi */ 7505 _flag_a = (uint32_t)(MEM32(eax + 0x1C)); _flag_b = (uint32_t)(edi); 7506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7507 _flag_k = FK_CMP; 7508 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057A9E; /* 0x36057A97: je 0x36057a9e */ 7509 L_36057A99: 7510 /* cmp MEM32(eax + 0x20), edi */ /* 0x36057A99: cmp dword ptr [eax + 0x20], edi */ 7511 _flag_a = (uint32_t)(MEM32(eax + 0x20)); _flag_b = (uint32_t)(edi); 7512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7513 _flag_k = FK_CMP; 7514 if (CMP_NE(_flag_a, _flag_b)) goto L_36057AA9; /* 0x36057A9C: jne 0x36057aa9 */ 7515 L_36057A9E: 7516 ecx = MEM32(eax + 0x8); /* 0x36057A9E: mov ecx, dword ptr [eax + 8] */ 7517 MEM32(ebx) = ecx; /* 0x36057AA1: mov dword ptr [ebx], ecx */ 7518 edx = MEM32(eax + 0xC); /* 0x36057AA3: mov edx, dword ptr [eax + 0xc] */ 7519 MEM32(ebx + 0x4) = edx; /* 0x36057AA6: mov dword ptr [ebx + 4], edx */ 7520 L_36057AA9: 7521 ecx = MEM32(esi + 0x90); /* 0x36057AA9: mov ecx, dword ptr [esi + 0x90] */ 7522 eax = MEM32(eax); /* 0x36057AAF: mov eax, dword ptr [eax] */ 7523 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36057AB1: cmp eax, dword ptr [ecx + 4] */ 7524 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7526 _flag_k = FK_CMP; 7527 RECOMP_BACKEDGE(); 7528 if (CMP_NE(_flag_a, _flag_b)) goto L_36057A94; /* 0x36057AB4: jne 0x36057a94 */ 7529 L_36057AB6: 7530 edi = POP32_VAL(esp); /* 0x36057AB6: pop edi */ 7531 esi = POP32_VAL(esp); /* 0x36057AB7: pop esi */ 7532 ebx = POP32_VAL(esp); /* 0x36057AB8: pop ebx */ 7533 esp = ebp; /* 0x36057AB9: mov esp, ebp */ 7534 ebp = POP32_VAL(esp); /* 0x36057ABB: pop ebp */ 7535 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36057ABC: ret 4 */ 7536 RECOMP_REGS_OUT(); 7537 } 7538 7539 void sub_36057AC0(void) { 7540 int _fpu_cmp = 0; 7541 uint32_t _cf = 0; 7542 int _df = 1; 7543 uint32_t _flag_k = FK_NONE; 7544 uint32_t _flag_a = 0, _flag_b = 0; 7545 uint32_t _itail_tgt = 0; 7546 RECOMP_REGS_LOCALS 7547 RECOMP_ENTER(0x36057AC0u); 7548 7549 L_36057AC0: 7550 eax = MEM32(ecx + 0x90); /* 0x36057AC0: mov eax, dword ptr [ecx + 0x90] */ 7551 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36057AC6: ret */ 7552 RECOMP_REGS_OUT(); 7553 } 7554 7555 void sub_36057AD0(void) { 7556 int _fpu_cmp = 0; 7557 uint32_t _cf = 0; 7558 int _df = 1; 7559 uint32_t _flag_k = FK_NONE; 7560 uint32_t _flag_a = 0, _flag_b = 0; 7561 uint32_t _itail_tgt = 0; 7562 RECOMP_REGS_LOCALS 7563 RECOMP_ENTER(0x36057AD0u); 7564 7565 L_36057AD0: 7566 PUSH32(esp, ebp); /* 0x36057AD0: push ebp */ 7567 ebp = esp; /* 0x36057AD1: mov ebp, esp */ 7568 edx = MEM32(ebp + 0xC); /* 0x36057AD3: mov edx, dword ptr [ebp + 0xc] */ 7569 PUSH32(esp, esi); /* 0x36057AD6: push esi */ 7570 esi = ecx; /* 0x36057AD7: mov esi, ecx */ 7571 eax = MEM32(esi + 0x10); /* 0x36057AD9: mov eax, dword ptr [esi + 0x10] */ 7572 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 7573 edx = edx & 0xFFu; /* 0x36057ADC: and edx, 0xff */ 7574 _cf = 0; 7575 _flag_k = FK_TEST; 7576 ecx = eax + 0xE4; /* 0x36057AE2: lea ecx, [eax + 0xe4] */ 7577 eax = MEM32(ecx); /* 0x36057AE8: mov eax, dword ptr [ecx] */ 7578 PUSH32(esp, edx); /* 0x36057AEA: push edx */ 7579 PUSH32(esp, 0x59u); /* 0x36057AEB: push 0x59 */ 7580 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36057AED: call dword ptr [eax + 8] */ 7581 RECOMP_FLAGS_IN(); 7582 eax = MEM32(esi + 0x10); /* 0x36057AF0: mov eax, dword ptr [esi + 0x10] */ 7583 edx = MEM32(ebp + 0x10); /* 0x36057AF3: mov edx, dword ptr [ebp + 0x10] */ 7584 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 7585 edx = edx & 0xFFu; /* 0x36057AF6: and edx, 0xff */ 7586 _cf = 0; 7587 _flag_k = FK_TEST; 7588 ecx = eax + 0xE4; /* 0x36057AFC: lea ecx, [eax + 0xe4] */ 7589 eax = MEM32(ecx); /* 0x36057B02: mov eax, dword ptr [ecx] */ 7590 PUSH32(esp, edx); /* 0x36057B04: push edx */ 7591 PUSH32(esp, 4); /* 0x36057B05: push 4 */ 7592 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36057B07: call dword ptr [eax + 8] */ 7593 RECOMP_FLAGS_IN(); 7594 eax = MEM32(esi + 0x10); /* 0x36057B0A: mov eax, dword ptr [esi + 0x10] */ 7595 edx = MEM32(ebp + 0x14); /* 0x36057B0D: mov edx, dword ptr [ebp + 0x14] */ 7596 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 7597 edx = edx & 0xFFu; /* 0x36057B10: and edx, 0xff */ 7598 _cf = 0; 7599 _flag_k = FK_TEST; 7600 ecx = eax + 0xE4; /* 0x36057B16: lea ecx, [eax + 0xe4] */ 7601 eax = MEM32(ecx); /* 0x36057B1C: mov eax, dword ptr [ecx] */ 7602 PUSH32(esp, edx); /* 0x36057B1E: push edx */ 7603 PUSH32(esp, 0x3Bu); /* 0x36057B1F: push 0x3b */ 7604 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36057B21: call dword ptr [eax + 8] */ 7605 RECOMP_FLAGS_IN(); 7606 eax = MEM32(esi + 0x10); /* 0x36057B24: mov eax, dword ptr [esi + 0x10] */ 7607 edx = MEM32(ebp + 0x8); /* 0x36057B27: mov edx, dword ptr [ebp + 8] */ 7608 ecx = eax + 0xE4; /* 0x36057B2A: lea ecx, [eax + 0xe4] */ 7609 eax = MEM32(ecx); /* 0x36057B30: mov eax, dword ptr [ecx] */ 7610 PUSH32(esp, edx); /* 0x36057B32: push edx */ 7611 PUSH32(esp, 0x40u); /* 0x36057B33: push 0x40 */ 7612 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36057B35: call dword ptr [eax + 8] */ 7613 RECOMP_FLAGS_IN(); 7614 PUSH32(esp, 1); /* 0x36057B38: push 1 */ 7615 ecx = esi; /* 0x36057B3A: mov ecx, esi */ 7616 RECOMP_ICALL(0x36053700u); /* 0x36057B3C: call 0x36053700 */ /* not lifted */ 7617 RECOMP_FLAGS_IN(); 7618 eax = MEM32(esi + 0x10); /* 0x36057B41: mov eax, dword ptr [esi + 0x10] */ 7619 ecx = eax + 0xE4; /* 0x36057B44: lea ecx, [eax + 0xe4] */ 7620 eax = MEM32(ecx); /* 0x36057B4A: mov eax, dword ptr [ecx] */ 7621 PUSH32(esp, 3); /* 0x36057B4C: push 3 */ 7622 PUSH32(esp, 0x168u); /* 0x36057B4E: push 0x168 */ 7623 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36057B53: call dword ptr [eax + 4] */ 7624 RECOMP_FLAGS_IN(); 7625 MEM32(ebp + 0xC) = eax; /* 0x36057B56: mov dword ptr [ebp + 0xc], eax */ 7626 fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x36057B59: fild dword ptr [ebp + 0xc] */ 7627 PUSH32(esp, ecx); /* 0x36057B5C: push ecx */ 7628 ecx = MEM32(esi + 0x10); /* 0x36057B5D: mov ecx, dword ptr [esi + 0x10] */ 7629 _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x36057B60: fmul dword ptr [0x36170894] */ 7630 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36057B66: fstp dword ptr [esp] */ 7631 RECOMP_ICALL(MEM32(0x3616FC80)); /* 0x36057B69: call dword ptr [0x3616fc80] */ 7632 RECOMP_FLAGS_IN(); 7633 esi = POP32_VAL(esp); /* 0x36057B6F: pop esi */ 7634 ebp = POP32_VAL(esp); /* 0x36057B70: pop ebp */ 7635 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36057B71: ret 0x10 */ 7636 RECOMP_REGS_OUT(); 7637 } 7638 7639 void sub_36057B80(void) { 7640 int _fpu_cmp = 0; 7641 uint32_t _cf = 0; 7642 int _df = 1; 7643 uint32_t _flag_k = FK_NONE; 7644 uint32_t _flag_a = 0, _flag_b = 0; 7645 uint32_t _itail_tgt = 0; 7646 RECOMP_REGS_LOCALS 7647 RECOMP_ENTER(0x36057B80u); 7648 7649 L_36057B80: 7650 PUSH32(esp, ebp); /* 0x36057B80: push ebp */ 7651 ebp = esp; /* 0x36057B81: mov ebp, esp */ 7652 PUSH32(esp, 0xFFFFFFFFu); /* 0x36057B83: push -1 */ 7653 PUSH32(esp, 0x3616478Bu); /* 0x36057B85: push 0x3616478b */ 7654 eax = MEM32(FS_BASE + (0)); /* 0x36057B8A: mov eax, dword ptr fs:[0] */ 7655 PUSH32(esp, eax); /* 0x36057B90: push eax */ 7656 MEM32(FS_BASE + (0)) = esp; /* 0x36057B91: mov dword ptr fs:[0], esp */ 7657 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 7658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7659 esp = esp - 0x18u; /* 0x36057B98: sub esp, 0x18 */ 7660 _flag_k = FK_CMP; 7661 PUSH32(esp, esi); /* 0x36057B9B: push esi */ 7662 PUSH32(esp, edi); /* 0x36057B9C: push edi */ 7663 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7664 edi = 0; /* 0x36057B9D: xor edi, edi */ 7665 _cf = 0; 7666 _flag_k = FK_TEST; 7667 PUSH32(esp, edi); /* 0x36057B9F: push edi */ 7668 PUSH32(esp, 0x361C24F0u); /* 0x36057BA0: push 0x361c24f0 */ 7669 esi = ecx; /* 0x36057BA5: mov esi, ecx */ 7670 RECOMP_ICALL(0x3601C590u); /* 0x36057BA7: call 0x3601c590 */ /* not lifted */ 7671 RECOMP_FLAGS_IN(); 7672 ecx = eax; /* 0x36057BAC: mov ecx, eax */ 7673 RECOMP_ICALL(0x3601C8C0u); /* 0x36057BAE: call 0x3601c8c0 */ /* not lifted */ 7674 RECOMP_FLAGS_IN(); 7675 eax = MEM32(esi + 0x10); /* 0x36057BB3: mov eax, dword ptr [esi + 0x10] */ 7676 PUSH32(esp, edi); /* 0x36057BB6: push edi */ 7677 PUSH32(esp, eax); /* 0x36057BB7: push eax */ 7678 PUSH32(esp, 0xB01Cu); /* 0x36057BB8: push 0xb01c */ 7679 RECOMP_ICALL(0x360F7B00u); /* 0x36057BBD: call 0x360f7b00 */ /* not lifted */ 7680 RECOMP_FLAGS_IN(); 7681 ecx = eax; /* 0x36057BC2: mov ecx, eax */ 7682 RECOMP_ICALL(0x360F81E0u); /* 0x36057BC4: call 0x360f81e0 */ /* not lifted */ 7683 RECOMP_FLAGS_IN(); 7684 PUSH32(esp, 0x40000000u); /* 0x36057BC9: push 0x40000000 */ 7685 PUSH32(esp, eax); /* 0x36057BCE: push eax */ 7686 RECOMP_ICALL(0x360F7B00u); /* 0x36057BCF: call 0x360f7b00 */ /* not lifted */ 7687 RECOMP_FLAGS_IN(); 7688 ecx = eax; /* 0x36057BD4: mov ecx, eax */ 7689 RECOMP_ICALL(0x360FB600u); /* 0x36057BD6: call 0x360fb600 */ /* not lifted */ 7690 RECOMP_FLAGS_IN(); 7691 PUSH32(esp, 0x34u); /* 0x36057BDB: push 0x34 */ 7692 RECOMP_ICALL(0x3615FD6Au); /* 0x36057BDD: call 0x3615fd6a */ /* not lifted */ 7693 RECOMP_FLAGS_IN(); 7694 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7695 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7696 esp = esp + 4; /* 0x36057BE2: add esp, 4 */ 7697 _flag_k = FK_ADD; 7698 MEM32(ebp + (-0x14)) = eax; /* 0x36057BE5: mov dword ptr [ebp - 0x14], eax */ 7699 /* cmp eax, edi */ /* 0x36057BE8: cmp eax, edi */ 7700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7702 _flag_k = FK_CMP; 7703 MEM32(ebp + (-0x4)) = edi; /* 0x36057BEA: mov dword ptr [ebp - 4], edi */ 7704 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057C15; /* 0x36057BED: je 0x36057c15 */ 7705 L_36057BEF: 7706 ecx = ebp + (-0x1C); /* 0x36057BEF: lea ecx, [ebp - 0x1c] */ 7707 PUSH32(esp, ecx); /* 0x36057BF2: push ecx */ 7708 ecx = MEM32(esi + 0x10); /* 0x36057BF3: mov ecx, dword ptr [esi + 0x10] */ 7709 PUSH32(esp, 0x42u); /* 0x36057BF6: push 0x42 */ 7710 edx = ebp + (-0x24); /* 0x36057BF8: lea edx, [ebp - 0x24] */ 7711 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 7712 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7713 ecx = ecx + 4; /* 0x36057BFB: add ecx, 4 */ 7714 _flag_k = FK_ADD; 7715 PUSH32(esp, edx); /* 0x36057BFE: push edx */ 7716 PUSH32(esp, ecx); /* 0x36057BFF: push ecx */ 7717 ecx = eax; /* 0x36057C00: mov ecx, eax */ 7718 MEM32(ebp + (-0x1C)) = edi; /* 0x36057C02: mov dword ptr [ebp - 0x1c], edi */ 7719 MEM32(ebp + (-0x18)) = edi; /* 0x36057C05: mov dword ptr [ebp - 0x18], edi */ 7720 MEM32(ebp + (-0x24)) = edi; /* 0x36057C08: mov dword ptr [ebp - 0x24], edi */ 7721 MEM32(ebp + (-0x20)) = edi; /* 0x36057C0B: mov dword ptr [ebp - 0x20], edi */ 7722 RECOMP_ICALL(0x3607D4B0u); /* 0x36057C0E: call 0x3607d4b0 */ /* not lifted */ 7723 RECOMP_FLAGS_IN(); 7724 goto L_36057C17; /* 0x36057C13: jmp 0x36057c17 */ 7725 L_36057C15: 7726 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7727 eax = 0; /* 0x36057C15: xor eax, eax */ 7728 _cf = 0; 7729 _flag_k = FK_TEST; 7730 L_36057C17: 7731 ecx = MEM32(esi + 0x10); /* 0x36057C17: mov ecx, dword ptr [esi + 0x10] */ 7732 edx = ebp + (-0x10); /* 0x36057C1A: lea edx, [ebp - 0x10] */ 7733 PUSH32(esp, edx); /* 0x36057C1D: push edx */ 7734 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36057C1E: mov dword ptr [ebp - 4], 0xffffffff */ 7735 MEM32(ebp + (-0x10)) = eax; /* 0x36057C25: mov dword ptr [ebp - 0x10], eax */ 7736 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36057C28: call dword ptr [0x3617004c] */ 7737 RECOMP_FLAGS_IN(); 7738 ecx = MEM32(ebp + (-0xC)); /* 0x36057C2E: mov ecx, dword ptr [ebp - 0xc] */ 7739 edi = POP32_VAL(esp); /* 0x36057C31: pop edi */ 7740 esi = POP32_VAL(esp); /* 0x36057C32: pop esi */ 7741 MEM32(FS_BASE + (0)) = ecx; /* 0x36057C33: mov dword ptr fs:[0], ecx */ 7742 esp = ebp; /* 0x36057C3A: mov esp, ebp */ 7743 ebp = POP32_VAL(esp); /* 0x36057C3C: pop ebp */ 7744 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36057C3D: ret */ 7745 RECOMP_REGS_OUT(); 7746 } 7747 7748 void sub_36057C40(void) { 7749 int _fpu_cmp = 0; 7750 uint32_t _cf = 0; 7751 int _df = 1; 7752 uint32_t _flag_k = FK_NONE; 7753 uint32_t _flag_a = 0, _flag_b = 0; 7754 uint32_t _itail_tgt = 0; 7755 RECOMP_REGS_LOCALS 7756 RECOMP_ENTER(0x36057C40u); 7757 7758 L_36057C40: 7759 PUSH32(esp, ebp); /* 0x36057C40: push ebp */ 7760 ebp = esp; /* 0x36057C41: mov ebp, esp */ 7761 PUSH32(esp, ecx); /* 0x36057C43: push ecx */ 7762 eax = MEM32(ecx + 0x10); /* 0x36057C44: mov eax, dword ptr [ecx + 0x10] */ 7763 ecx = MEM32(eax + 0x188); /* 0x36057C47: mov ecx, dword ptr [eax + 0x188] */ 7764 PUSH32(esp, 0x80u); /* 0x36057C4D: push 0x80 */ 7765 RECOMP_ICALL(0x36059BA0u); /* 0x36057C52: call 0x36059ba0 */ /* not lifted */ 7766 RECOMP_FLAGS_IN(); 7767 /* test LO8(eax), LO8(eax) */ /* 0x36057C57: test al, al */ 7768 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7769 _cf = 0; 7770 _flag_k = FK_NARROW(FK_TEST, 24); 7771 if (TEST_Z(_flag_a, _flag_b)) goto L_36057C8E; /* 0x36057C59: je 0x36057c8e */ 7772 L_36057C5B: 7773 ecx = MEM32(0x3616FF74); /* 0x36057C5B: mov ecx, dword ptr [0x3616ff74] */ 7774 eax = MEM32(ecx); /* 0x36057C61: mov eax, dword ptr [ecx] */ 7775 PUSH32(esp, 0); /* 0x36057C63: push 0 */ 7776 PUSH32(esp, 0x361B5A48u); /* 0x36057C65: push 0x361b5a48 */ 7777 PUSH32(esp, 0x361B2D38u); /* 0x36057C6A: push 0x361b2d38 */ 7778 PUSH32(esp, 0); /* 0x36057C6F: push 0 */ 7779 PUSH32(esp, eax); /* 0x36057C71: push eax */ 7780 RECOMP_ICALL(0x3615FD86u); /* 0x36057C72: call 0x3615fd86 */ /* not lifted */ 7781 RECOMP_FLAGS_IN(); 7782 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7784 esp = esp + 0x14u; /* 0x36057C77: add esp, 0x14 */ 7785 _flag_k = FK_ADD; 7786 edx = ebp + (-0x4); /* 0x36057C7A: lea edx, [ebp - 4] */ 7787 PUSH32(esp, edx); /* 0x36057C7D: push edx */ 7788 PUSH32(esp, 0x20u); /* 0x36057C7E: push 0x20 */ 7789 ecx = eax; /* 0x36057C80: mov ecx, eax */ 7790 MEM32(ebp + (-0x4)) = 0; /* 0x36057C82: mov dword ptr [ebp - 4], 0 */ 7791 RECOMP_ICALL(0x36022FC0u); /* 0x36057C89: call 0x36022fc0 */ /* not lifted */ 7792 RECOMP_FLAGS_IN(); 7793 L_36057C8E: 7794 esp = ebp; /* 0x36057C8E: mov esp, ebp */ 7795 ebp = POP32_VAL(esp); /* 0x36057C90: pop ebp */ 7796 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36057C91: ret */ 7797 RECOMP_REGS_OUT(); 7798 } 7799 7800 void sub_36057CA0(void) { 7801 int _fpu_cmp = 0; 7802 uint32_t _cf = 0; 7803 int _df = 1; 7804 uint32_t _flag_k = FK_NONE; 7805 uint32_t _flag_a = 0, _flag_b = 0; 7806 uint32_t _itail_tgt = 0; 7807 RECOMP_REGS_LOCALS 7808 RECOMP_ENTER(0x36057CA0u); 7809 7810 L_36057CA0: 7811 PUSH32(esp, ebp); /* 0x36057CA0: push ebp */ 7812 L_36057CA1: 7813 ebp = esp; /* 0x36057CA1: mov ebp, esp */ 7814 L_36057CA3: 7815 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 7816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7817 esp = esp - 0x64u; /* 0x36057CA3: sub esp, 0x64 */ 7818 _flag_k = FK_CMP; 7819 L_36057CA6: 7820 PUSH32(esp, esi); /* 0x36057CA6: push esi */ 7821 L_36057CA7: 7822 esi = MEM32(ebp + 0xC); /* 0x36057CA7: mov esi, dword ptr [ebp + 0xc] */ 7823 L_36057CAA: 7824 PUSH32(esp, edi); /* 0x36057CAA: push edi */ 7825 L_36057CAB: 7826 edi = ecx; /* 0x36057CAB: mov edi, ecx */ 7827 L_36057CAD: 7828 eax = MEM32(edi + 0x10); /* 0x36057CAD: mov eax, dword ptr [edi + 0x10] */ 7829 L_36057CB0: 7830 SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36057CB0: mov cl, byte ptr [eax + 0x128] */ 7831 L_36057CB6: 7832 /* test LO8(ecx), LO8(ecx) */ /* 0x36057CB6: test cl, cl */ 7833 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7834 _cf = 0; 7835 _flag_k = FK_NARROW(FK_TEST, 24); 7836 L_36057CB8: 7837 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36057D2E; /* 0x36057CB8: je 0x36057d2e */ 7838 L_36057CBA: 7839 /* cmp esi, 4 */ /* 0x36057CBA: cmp esi, 4 */ 7840 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 7841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7842 _flag_k = FK_CMP; 7843 L_36057CBD: 7844 MEM8(ebp + (-0x64)) = (uint8_t)(0); /* 0x36057CBD: mov byte ptr [ebp - 0x64], 0 */ 7845 L_36057CC1: 7846 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36057D0B; /* 0x36057CC1: ja 0x36057d0b */ 7847 L_36057CC3: 7848 { _itail_tgt = (uint32_t)(MEM32(esi * 4 + 0x36057D80)); goto _ljump; } 7849 L_36057CCA: 7850 PUSH32(esp, 0x361C25FCu); /* 0x36057CCA: push 0x361c25fc */ 7851 L_36057CCF: 7852 PUSH32(esp, 0x64u); /* 0x36057CCF: push 0x64 */ 7853 L_36057CD1: 7854 ecx = ebp + (-0x64); /* 0x36057CD1: lea ecx, [ebp - 0x64] */ 7855 L_36057CD4: 7856 PUSH32(esp, ecx); /* 0x36057CD4: push ecx */ 7857 L_36057CD5: 7858 goto L_36057D03; /* 0x36057CD5: jmp 0x36057d03 */ 7859 L_36057CD7: 7860 PUSH32(esp, 0x361C25C8u); /* 0x36057CD7: push 0x361c25c8 */ 7861 L_36057CDC: 7862 goto L_36057CFD; /* 0x36057CDC: jmp 0x36057cfd */ 7863 L_36057CDE: 7864 PUSH32(esp, 0x361C258Cu); /* 0x36057CDE: push 0x361c258c */ 7865 L_36057CE3: 7866 PUSH32(esp, 0x64u); /* 0x36057CE3: push 0x64 */ 7867 L_36057CE5: 7868 eax = ebp + (-0x64); /* 0x36057CE5: lea eax, [ebp - 0x64] */ 7869 L_36057CE8: 7870 PUSH32(esp, eax); /* 0x36057CE8: push eax */ 7871 L_36057CE9: 7872 goto L_36057D03; /* 0x36057CE9: jmp 0x36057d03 */ 7873 L_36057CEB: 7874 PUSH32(esp, 0x361C2540u); /* 0x36057CEB: push 0x361c2540 */ 7875 L_36057CF0: 7876 PUSH32(esp, 0x64u); /* 0x36057CF0: push 0x64 */ 7877 L_36057CF2: 7878 ecx = ebp + (-0x64); /* 0x36057CF2: lea ecx, [ebp - 0x64] */ 7879 L_36057CF5: 7880 PUSH32(esp, ecx); /* 0x36057CF5: push ecx */ 7881 L_36057CF6: 7882 goto L_36057D03; /* 0x36057CF6: jmp 0x36057d03 */ 7883 L_36057CF8: 7884 PUSH32(esp, 0x361C2510u); /* 0x36057CF8: push 0x361c2510 */ 7885 L_36057CFD: 7886 PUSH32(esp, 0x64u); /* 0x36057CFD: push 0x64 */ 7887 L_36057CFF: 7888 edx = ebp + (-0x64); /* 0x36057CFF: lea edx, [ebp - 0x64] */ 7889 L_36057D02: 7890 PUSH32(esp, edx); /* 0x36057D02: push edx */ 7891 L_36057D03: 7892 RECOMP_ICALL(0x360085B0u); /* 0x36057D03: call 0x360085b0 */ /* not lifted */ 7893 RECOMP_FLAGS_IN(); 7894 L_36057D08: 7895 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7897 esp = esp + 0xCu; /* 0x36057D08: add esp, 0xc */ 7898 _flag_k = FK_ADD; 7899 L_36057D0B: 7900 PUSH32(esp, 0x3F000000u); /* 0x36057D0B: push 0x3f000000 */ 7901 L_36057D10: 7902 PUSH32(esp, 0x3F000000u); /* 0x36057D10: push 0x3f000000 */ 7903 L_36057D15: 7904 PUSH32(esp, 0x40A00000u); /* 0x36057D15: push 0x40a00000 */ 7905 L_36057D1A: 7906 PUSH32(esp, 0xFu); /* 0x36057D1A: push 0xf */ 7907 L_36057D1C: 7908 eax = ebp + (-0x64); /* 0x36057D1C: lea eax, [ebp - 0x64] */ 7909 L_36057D1F: 7910 PUSH32(esp, 0); /* 0x36057D1F: push 0 */ 7911 L_36057D21: 7912 PUSH32(esp, eax); /* 0x36057D21: push eax */ 7913 L_36057D22: 7914 RECOMP_ICALL(0x3601C590u); /* 0x36057D22: call 0x3601c590 */ /* not lifted */ 7915 RECOMP_FLAGS_IN(); 7916 L_36057D27: 7917 ecx = eax; /* 0x36057D27: mov ecx, eax */ 7918 L_36057D29: 7919 RECOMP_ICALL(0x3601DC80u); /* 0x36057D29: call 0x3601dc80 */ /* not lifted */ 7920 RECOMP_FLAGS_IN(); 7921 L_36057D2E: 7922 eax = MEM32(ebp + 0x8); /* 0x36057D2E: mov eax, dword ptr [ebp + 8] */ 7923 L_36057D31: 7924 /* cmp eax, 0xFFFFFFFFu */ /* 0x36057D31: cmp eax, -1 */ 7925 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7927 _flag_k = FK_CMP; 7928 L_36057D34: 7929 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36057D5C; /* 0x36057D34: jl 0x36057d5c */ 7930 L_36057D36: 7931 /* cmp eax, 1 */ /* 0x36057D36: cmp eax, 1 */ 7932 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7934 _flag_k = FK_CMP; 7935 L_36057D39: 7936 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_G, _cf)) goto L_36057D5C; /* 0x36057D39: jg 0x36057d5c */ 7937 L_36057D3B: 7938 /* test esi, esi */ /* 0x36057D3B: test esi, esi */ 7939 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7940 _cf = 0; 7941 _flag_k = FK_TEST; 7942 L_36057D3D: 7943 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36057D44; /* 0x36057D3D: jl 0x36057d44 */ 7944 L_36057D3F: 7945 /* cmp esi, 1 */ /* 0x36057D3F: cmp esi, 1 */ 7946 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 7947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7948 _flag_k = FK_CMP; 7949 L_36057D42: 7950 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_LE, _cf)) goto L_36057D75; /* 0x36057D42: jle 0x36057d75 */ 7951 L_36057D44: 7952 ecx = edi; /* 0x36057D44: mov ecx, edi */ 7953 L_36057D46: 7954 RECOMP_ICALL(0x36057DA0u); /* 0x36057D46: call 0x36057da0 */ /* not lifted */ 7955 RECOMP_FLAGS_IN(); 7956 L_36057D4B: 7957 PUSH32(esp, 0); /* 0x36057D4B: push 0 */ 7958 L_36057D4D: 7959 ecx = edi; /* 0x36057D4D: mov ecx, edi */ 7960 L_36057D4F: 7961 RECOMP_ICALL(0x36058080u); /* 0x36057D4F: call 0x36058080 */ /* not lifted */ 7962 RECOMP_FLAGS_IN(); 7963 L_36057D54: 7964 edi = POP32_VAL(esp); /* 0x36057D54: pop edi */ 7965 L_36057D55: 7966 esi = POP32_VAL(esp); /* 0x36057D55: pop esi */ 7967 L_36057D56: 7968 esp = ebp; /* 0x36057D56: mov esp, ebp */ 7969 L_36057D58: 7970 ebp = POP32_VAL(esp); /* 0x36057D58: pop ebp */ 7971 L_36057D59: 7972 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36057D59: ret 8 */ 7973 L_36057D5C: 7974 /* test esi, esi */ /* 0x36057D5C: test esi, esi */ 7975 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7976 _cf = 0; 7977 _flag_k = FK_TEST; 7978 L_36057D5E: 7979 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36057D75; /* 0x36057D5E: jl 0x36057d75 */ 7980 L_36057D60: 7981 /* cmp esi, 1 */ /* 0x36057D60: cmp esi, 1 */ 7982 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 7983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7984 _flag_k = FK_CMP; 7985 L_36057D63: 7986 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_G, _cf)) goto L_36057D75; /* 0x36057D63: jg 0x36057d75 */ 7987 L_36057D65: 7988 ecx = edi; /* 0x36057D65: mov ecx, edi */ 7989 L_36057D67: 7990 RECOMP_ICALL(0x36057FB0u); /* 0x36057D67: call 0x36057fb0 */ /* not lifted */ 7991 RECOMP_FLAGS_IN(); 7992 L_36057D6C: 7993 PUSH32(esp, 0); /* 0x36057D6C: push 0 */ 7994 L_36057D6E: 7995 ecx = edi; /* 0x36057D6E: mov ecx, edi */ 7996 L_36057D70: 7997 RECOMP_ICALL(0x36057EF0u); /* 0x36057D70: call 0x36057ef0 */ /* not lifted */ 7998 RECOMP_FLAGS_IN(); 7999 L_36057D75: 8000 edi = POP32_VAL(esp); /* 0x36057D75: pop edi */ 8001 L_36057D76: 8002 esi = POP32_VAL(esp); /* 0x36057D76: pop esi */ 8003 L_36057D77: 8004 esp = ebp; /* 0x36057D77: mov esp, ebp */ 8005 L_36057D79: 8006 ebp = POP32_VAL(esp); /* 0x36057D79: pop ebp */ 8007 L_36057D7A: 8008 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36057D7A: ret 8 */ 8009 _ljump: 8010 switch (_itail_tgt) { 8011 case 0x36057CA0u: goto L_36057CA0; 8012 case 0x36057CA1u: goto L_36057CA1; 8013 case 0x36057CA3u: goto L_36057CA3; 8014 case 0x36057CA6u: goto L_36057CA6; 8015 case 0x36057CA7u: goto L_36057CA7; 8016 case 0x36057CAAu: goto L_36057CAA; 8017 case 0x36057CABu: goto L_36057CAB; 8018 case 0x36057CADu: goto L_36057CAD; 8019 case 0x36057CB0u: goto L_36057CB0; 8020 case 0x36057CB6u: goto L_36057CB6; 8021 case 0x36057CB8u: goto L_36057CB8; 8022 case 0x36057CBAu: goto L_36057CBA; 8023 case 0x36057CBDu: goto L_36057CBD; 8024 case 0x36057CC1u: goto L_36057CC1; 8025 case 0x36057CC3u: goto L_36057CC3; 8026 case 0x36057CCAu: goto L_36057CCA; 8027 case 0x36057CCFu: goto L_36057CCF; 8028 case 0x36057CD1u: goto L_36057CD1; 8029 case 0x36057CD4u: goto L_36057CD4; 8030 case 0x36057CD5u: goto L_36057CD5; 8031 case 0x36057CD7u: goto L_36057CD7; 8032 case 0x36057CDCu: goto L_36057CDC; 8033 case 0x36057CDEu: goto L_36057CDE; 8034 case 0x36057CE3u: goto L_36057CE3; 8035 case 0x36057CE5u: goto L_36057CE5; 8036 case 0x36057CE8u: goto L_36057CE8; 8037 case 0x36057CE9u: goto L_36057CE9; 8038 case 0x36057CEBu: goto L_36057CEB; 8039 case 0x36057CF0u: goto L_36057CF0; 8040 case 0x36057CF2u: goto L_36057CF2; 8041 case 0x36057CF5u: goto L_36057CF5; 8042 case 0x36057CF6u: goto L_36057CF6; 8043 case 0x36057CF8u: goto L_36057CF8; 8044 case 0x36057CFDu: goto L_36057CFD; 8045 case 0x36057CFFu: goto L_36057CFF; 8046 case 0x36057D02u: goto L_36057D02; 8047 case 0x36057D03u: goto L_36057D03; 8048 case 0x36057D08u: goto L_36057D08; 8049 case 0x36057D0Bu: goto L_36057D0B; 8050 case 0x36057D10u: goto L_36057D10; 8051 case 0x36057D15u: goto L_36057D15; 8052 case 0x36057D1Au: goto L_36057D1A; 8053 case 0x36057D1Cu: goto L_36057D1C; 8054 case 0x36057D1Fu: goto L_36057D1F; 8055 case 0x36057D21u: goto L_36057D21; 8056 case 0x36057D22u: goto L_36057D22; 8057 case 0x36057D27u: goto L_36057D27; 8058 case 0x36057D29u: goto L_36057D29; 8059 case 0x36057D2Eu: goto L_36057D2E; 8060 case 0x36057D31u: goto L_36057D31; 8061 case 0x36057D34u: goto L_36057D34; 8062 case 0x36057D36u: goto L_36057D36; 8063 case 0x36057D39u: goto L_36057D39; 8064 case 0x36057D3Bu: goto L_36057D3B; 8065 case 0x36057D3Du: goto L_36057D3D; 8066 case 0x36057D3Fu: goto L_36057D3F; 8067 case 0x36057D42u: goto L_36057D42; 8068 case 0x36057D44u: goto L_36057D44; 8069 case 0x36057D46u: goto L_36057D46; 8070 case 0x36057D4Bu: goto L_36057D4B; 8071 case 0x36057D4Du: goto L_36057D4D; 8072 case 0x36057D4Fu: goto L_36057D4F; 8073 case 0x36057D54u: goto L_36057D54; 8074 case 0x36057D55u: goto L_36057D55; 8075 case 0x36057D56u: goto L_36057D56; 8076 case 0x36057D58u: goto L_36057D58; 8077 case 0x36057D59u: goto L_36057D59; 8078 case 0x36057D5Cu: goto L_36057D5C; 8079 case 0x36057D5Eu: goto L_36057D5E; 8080 case 0x36057D60u: goto L_36057D60; 8081 case 0x36057D63u: goto L_36057D63; 8082 case 0x36057D65u: goto L_36057D65; 8083 case 0x36057D67u: goto L_36057D67; 8084 case 0x36057D6Cu: goto L_36057D6C; 8085 case 0x36057D6Eu: goto L_36057D6E; 8086 case 0x36057D70u: goto L_36057D70; 8087 case 0x36057D75u: goto L_36057D75; 8088 case 0x36057D76u: goto L_36057D76; 8089 case 0x36057D77u: goto L_36057D77; 8090 case 0x36057D79u: goto L_36057D79; 8091 case 0x36057D7Au: goto L_36057D7A; 8092 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8093 } 8094 RECOMP_REGS_OUT(); 8095 } 8096 8097 void sub_36057DA0(void) { 8098 int _fpu_cmp = 0; 8099 uint32_t _cf = 0; 8100 int _df = 1; 8101 uint32_t _flag_k = FK_NONE; 8102 uint32_t _flag_a = 0, _flag_b = 0; 8103 uint32_t _itail_tgt = 0; 8104 RECOMP_REGS_LOCALS 8105 RECOMP_ENTER(0x36057DA0u); 8106 8107 L_36057DA0: 8108 PUSH32(esp, ebp); /* 0x36057DA0: push ebp */ 8109 ebp = esp; /* 0x36057DA1: mov ebp, esp */ 8110 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8112 esp = esp - 8; /* 0x36057DA3: sub esp, 8 */ 8113 _flag_k = FK_CMP; 8114 PUSH32(esp, esi); /* 0x36057DA6: push esi */ 8115 esi = ecx; /* 0x36057DA7: mov esi, ecx */ 8116 eax = MEM32(esi + 0x10); /* 0x36057DA9: mov eax, dword ptr [esi + 0x10] */ 8117 /* test MEM32(eax + 0x11C), 0x00010000u */ /* 0x36057DAC: test dword ptr [eax + 0x11c], 0x10000 */ 8118 _flag_a = (uint32_t)(MEM32(eax + 0x11C)); _flag_b = (uint32_t)(0x00010000u); 8119 _cf = 0; 8120 _flag_k = FK_TEST; 8121 if (TEST_NZ(_flag_a, _flag_b)) goto L_36057EEB; /* 0x36057DB6: jne 0x36057eeb */ 8122 L_36057DBC: 8123 ecx = MEM32(eax + 0x16C); /* 0x36057DBC: mov ecx, dword ptr [eax + 0x16c] */ 8124 /* cmp MEM32(ecx + 0x50), 1 */ /* 0x36057DC2: cmp dword ptr [ecx + 0x50], 1 */ 8125 _flag_a = (uint32_t)(MEM32(ecx + 0x50)); _flag_b = (uint32_t)(1); 8126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8127 _flag_k = FK_CMP; 8128 if (CMP_EQ(_flag_a, _flag_b)) goto L_36057DEE; /* 0x36057DC6: je 0x36057dee */ 8129 L_36057DC8: 8130 SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36057DC8: mov cl, byte ptr [eax + 0x128] */ 8131 /* test LO8(ecx), LO8(ecx) */ /* 0x36057DCE: test cl, cl */ 8132 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 8133 _cf = 0; 8134 _flag_k = FK_NARROW(FK_TEST, 24); 8135 if (TEST_Z(_flag_a, _flag_b)) goto L_36057EEB; /* 0x36057DD0: je 0x36057eeb */ 8136 L_36057DD6: 8137 PUSH32(esp, 0); /* 0x36057DD6: push 0 */ 8138 PUSH32(esp, 0x361C2630u); /* 0x36057DD8: push 0x361c2630 */ 8139 RECOMP_ICALL(0x3601C590u); /* 0x36057DDD: call 0x3601c590 */ /* not lifted */ 8140 RECOMP_FLAGS_IN(); 8141 ecx = eax; /* 0x36057DE2: mov ecx, eax */ 8142 RECOMP_ICALL(0x3601C8C0u); /* 0x36057DE4: call 0x3601c8c0 */ /* not lifted */ 8143 RECOMP_FLAGS_IN(); 8144 esi = POP32_VAL(esp); /* 0x36057DE9: pop esi */ 8145 esp = ebp; /* 0x36057DEA: mov esp, ebp */ 8146 ebp = POP32_VAL(esp); /* 0x36057DEC: pop ebp */ 8147 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36057DED: ret */ 8148 L_36057DEE: 8149 edx = MEM32(eax + 0xE4); /* 0x36057DEE: mov edx, dword ptr [eax + 0xe4] */ 8150 ecx = eax + 0xE4; /* 0x36057DF4: lea ecx, [eax + 0xe4] */ 8151 PUSH32(esp, 2); /* 0x36057DFA: push 2 */ 8152 PUSH32(esp, 0xC2u); /* 0x36057DFC: push 0xc2 */ 8153 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36057E01: call dword ptr [edx + 4] */ 8154 RECOMP_FLAGS_IN(); 8155 /* test eax, eax */ /* 0x36057E04: test eax, eax */ 8156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8157 _cf = 0; 8158 _flag_k = FK_TEST; 8159 if (TEST_NZ(_flag_a, _flag_b)) goto L_36057E21; /* 0x36057E06: jne 0x36057e21 */ 8160 L_36057E08: 8161 esi = MEM32(esi + 0x10); /* 0x36057E08: mov esi, dword ptr [esi + 0x10] */ 8162 eax = MEM32(esi + 0xE4); /* 0x36057E0B: mov eax, dword ptr [esi + 0xe4] */ 8163 ecx = esi + 0xE4; /* 0x36057E11: lea ecx, [esi + 0xe4] */ 8164 PUSH32(esp, 4); /* 0x36057E17: push 4 */ 8165 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x36057E19: call dword ptr [eax + 0x20] */ 8166 RECOMP_FLAGS_IN(); 8167 esi = POP32_VAL(esp); /* 0x36057E1C: pop esi */ 8168 esp = ebp; /* 0x36057E1D: mov esp, ebp */ 8169 ebp = POP32_VAL(esp); /* 0x36057E1F: pop ebp */ 8170 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36057E20: ret */ 8171 L_36057E21: 8172 eax = MEM32(esi + 0x10); /* 0x36057E21: mov eax, dword ptr [esi + 0x10] */ 8173 edx = MEM32(eax + 0xE4); /* 0x36057E24: mov edx, dword ptr [eax + 0xe4] */ 8174 PUSH32(esp, edi); /* 0x36057E2A: push edi */ 8175 ecx = eax + 0xE4; /* 0x36057E2B: lea ecx, [eax + 0xe4] */ 8176 PUSH32(esp, 4); /* 0x36057E31: push 4 */ 8177 RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x36057E33: call dword ptr [edx + 0x20] */ 8178 RECOMP_FLAGS_IN(); 8179 ecx = MEM32(esi + 0x10); /* 0x36057E36: mov ecx, dword ptr [esi + 0x10] */ 8180 PUSH32(esp, 0x40000000u); /* 0x36057E39: push 0x40000000 */ 8181 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xECu); 8182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8183 ecx = ecx + 0xECu; /* 0x36057E3E: add ecx, 0xec */ 8184 _flag_k = FK_ADD; 8185 RECOMP_ICALL(0x3602F130u); /* 0x36057E44: call 0x3602f130 */ /* not lifted */ 8186 RECOMP_FLAGS_IN(); 8187 eax = MEM32(esi + 0x10); /* 0x36057E49: mov eax, dword ptr [esi + 0x10] */ 8188 eax = MEM32(eax + 0x78); /* 0x36057E4C: mov eax, dword ptr [eax + 0x78] */ 8189 PUSH32(esp, eax); /* 0x36057E4F: push eax */ 8190 RECOMP_ICALL(MEM32(0x36170044)); /* 0x36057E50: call dword ptr [0x36170044] */ 8191 RECOMP_FLAGS_IN(); 8192 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8194 esp = esp + 4; /* 0x36057E56: add esp, 4 */ 8195 _flag_k = FK_ADD; 8196 /* test eax, eax */ /* 0x36057E59: test eax, eax */ 8197 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8198 _cf = 0; 8199 _flag_k = FK_TEST; 8200 if (TEST_Z(_flag_a, _flag_b)) goto L_36057E99; /* 0x36057E5B: je 0x36057e99 */ 8201 L_36057E5D: 8202 ecx = eax; /* 0x36057E5D: mov ecx, eax */ 8203 RECOMP_ICALL(0x3614CE70u); /* 0x36057E5F: call 0x3614ce70 */ /* not lifted */ 8204 RECOMP_FLAGS_IN(); 8205 edi = eax; /* 0x36057E64: mov edi, eax */ 8206 /* test edi, edi */ /* 0x36057E66: test edi, edi */ 8207 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8208 _cf = 0; 8209 _flag_k = FK_TEST; 8210 if (TEST_Z(_flag_a, _flag_b)) goto L_36057E99; /* 0x36057E68: je 0x36057e99 */ 8211 L_36057E6A: 8212 ecx = MEM32(esi + 0x10); /* 0x36057E6A: mov ecx, dword ptr [esi + 0x10] */ 8213 RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36057E6D: call dword ptr [0x361700b4] */ 8214 RECOMP_FLAGS_IN(); 8215 PUSH32(esp, eax); /* 0x36057E73: push eax */ 8216 ecx = edi; /* 0x36057E74: mov ecx, edi */ 8217 RECOMP_ICALL(0x3614ECB0u); /* 0x36057E76: call 0x3614ecb0 */ /* not lifted */ 8218 RECOMP_FLAGS_IN(); 8219 /* test eax, eax */ /* 0x36057E7B: test eax, eax */ 8220 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8221 _cf = 0; 8222 _flag_k = FK_TEST; 8223 if (TEST_Z(_flag_a, _flag_b)) goto L_36057E99; /* 0x36057E7D: je 0x36057e99 */ 8224 L_36057E7F: 8225 eax = MEM32(eax + 0x4); /* 0x36057E7F: mov eax, dword ptr [eax + 4] */ 8226 /* test eax, eax */ /* 0x36057E82: test eax, eax */ 8227 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8228 _cf = 0; 8229 _flag_k = FK_TEST; 8230 if (TEST_Z(_flag_a, _flag_b)) goto L_36057E99; /* 0x36057E84: je 0x36057e99 */ 8231 L_36057E86: 8232 ecx = MEM32(eax + 0x40); /* 0x36057E86: mov ecx, dword ptr [eax + 0x40] */ 8233 /* test ecx, ecx */ /* 0x36057E89: test ecx, ecx */ 8234 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8235 _cf = 0; 8236 _flag_k = FK_TEST; 8237 if (TEST_Z(_flag_a, _flag_b)) goto L_36057E99; /* 0x36057E8B: je 0x36057e99 */ 8238 L_36057E8D: 8239 ecx = MEM32(eax + 0x3C); /* 0x36057E8D: mov ecx, dword ptr [eax + 0x3c] */ 8240 /* test ecx, ecx */ /* 0x36057E90: test ecx, ecx */ 8241 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8242 _cf = 0; 8243 _flag_k = FK_TEST; 8244 edx = 0x3Cu; /* 0x36057E92: mov edx, 0x3c */ 8245 if (TEST_NZ(_flag_a, _flag_b)) goto L_36057E9E; /* 0x36057E97: jne 0x36057e9e */ 8246 L_36057E99: 8247 edx = 0xFu; /* 0x36057E99: mov edx, 0xf */ 8248 L_36057E9E: 8249 eax = MEM32(esi + 0x10); /* 0x36057E9E: mov eax, dword ptr [esi + 0x10] */ 8250 edi = ebp + (-0x8); /* 0x36057EA1: lea edi, [ebp - 8] */ 8251 PUSH32(esp, edi); /* 0x36057EA4: push edi */ 8252 ecx = eax + 0x4; /* 0x36057EA5: lea ecx, [eax + 4] */ 8253 PUSH32(esp, edx); /* 0x36057EA8: push edx */ 8254 PUSH32(esp, ecx); /* 0x36057EA9: push ecx */ 8255 PUSH32(esp, 0x40000000u); /* 0x36057EAA: push 0x40000000 */ 8256 PUSH32(esp, ecx); /* 0x36057EAF: push ecx */ 8257 ecx = eax + 0xEC; /* 0x36057EB0: lea ecx, [eax + 0xec] */ 8258 MEM32(ebp + (-0x8)) = 0; /* 0x36057EB6: mov dword ptr [ebp - 8], 0 */ 8259 MEM32(ebp + (-0x4)) = 0; /* 0x36057EBD: mov dword ptr [ebp - 4], 0 */ 8260 RECOMP_ICALL(0x3602EE20u); /* 0x36057EC4: call 0x3602ee20 */ /* not lifted */ 8261 RECOMP_FLAGS_IN(); 8262 esi = MEM32(esi + 0x10); /* 0x36057EC9: mov esi, dword ptr [esi + 0x10] */ 8263 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x36057ECC: mov al, byte ptr [esi + 0x128] */ 8264 /* test LO8(eax), LO8(eax) */ /* 0x36057ED2: test al, al */ 8265 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8266 _cf = 0; 8267 _flag_k = FK_NARROW(FK_TEST, 24); 8268 edi = POP32_VAL(esp); /* 0x36057ED4: pop edi */ 8269 if (TEST_Z(_flag_a, _flag_b)) goto L_36057EEB; /* 0x36057ED5: je 0x36057eeb */ 8270 L_36057ED7: 8271 PUSH32(esp, 0); /* 0x36057ED7: push 0 */ 8272 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 8273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8274 esi = esi + 4; /* 0x36057ED9: add esi, 4 */ 8275 _flag_k = FK_ADD; 8276 PUSH32(esp, esi); /* 0x36057EDC: push esi */ 8277 PUSH32(esp, 0x36u); /* 0x36057EDD: push 0x36 */ 8278 RECOMP_ICALL(0x3601C590u); /* 0x36057EDF: call 0x3601c590 */ /* not lifted */ 8279 RECOMP_FLAGS_IN(); 8280 ecx = eax; /* 0x36057EE4: mov ecx, eax */ 8281 RECOMP_ICALL(0x3601D080u); /* 0x36057EE6: call 0x3601d080 */ /* not lifted */ 8282 RECOMP_FLAGS_IN(); 8283 L_36057EEB: 8284 esi = POP32_VAL(esp); /* 0x36057EEB: pop esi */ 8285 esp = ebp; /* 0x36057EEC: mov esp, ebp */ 8286 ebp = POP32_VAL(esp); /* 0x36057EEE: pop ebp */ 8287 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36057EEF: ret */ 8288 RECOMP_REGS_OUT(); 8289 } 8290 8291 void sub_36057EF0(void) { 8292 int _fpu_cmp = 0; 8293 uint32_t _cf = 0; 8294 int _df = 1; 8295 uint32_t _flag_k = FK_NONE; 8296 uint32_t _flag_a = 0, _flag_b = 0; 8297 uint32_t _itail_tgt = 0; 8298 RECOMP_REGS_LOCALS 8299 RECOMP_ENTER(0x36057EF0u); 8300 8301 L_36057EF0: 8302 PUSH32(esp, ebp); /* 0x36057EF0: push ebp */ 8303 ebp = esp; /* 0x36057EF1: mov ebp, esp */ 8304 PUSH32(esp, esi); /* 0x36057EF3: push esi */ 8305 esi = ecx; /* 0x36057EF4: mov esi, ecx */ 8306 eax = MEM32(esi + 0x10); /* 0x36057EF6: mov eax, dword ptr [esi + 0x10] */ 8307 /* test MEM8(eax + 0x11C), 4 */ /* 0x36057EF9: test byte ptr [eax + 0x11c], 4 */ 8308 _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(4) << 24; 8309 _cf = 0; 8310 _flag_k = FK_NARROW(FK_TEST, 24); 8311 if (TEST_Z(_flag_a, _flag_b)) goto L_36057F43; /* 0x36057F00: je 0x36057f43 */ 8312 L_36057F02: 8313 _flag_a = (uint32_t)(MEM32(eax + 0x11C)); _flag_b = (uint32_t)(0xFFFFFFFBu); 8314 MEM32(eax + 0x11C) = MEM32(eax + 0x11C) & 0xFFFFFFFBu; /* 0x36057F02: and dword ptr [eax + 0x11c], 0xfffffffb */ 8315 _cf = 0; 8316 _flag_k = FK_TEST; 8317 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x36057F09: mov al, byte ptr [ebp + 8] */ 8318 /* test LO8(eax), LO8(eax) */ /* 0x36057F0C: test al, al */ 8319 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8320 _cf = 0; 8321 _flag_k = FK_NARROW(FK_TEST, 24); 8322 if (TEST_NZ(_flag_a, _flag_b)) goto L_36057F23; /* 0x36057F0E: jne 0x36057f23 */ 8323 L_36057F10: 8324 ecx = MEM32(esi + 0x10); /* 0x36057F10: mov ecx, dword ptr [esi + 0x10] */ 8325 PUSH32(esp, 0x40000000u); /* 0x36057F13: push 0x40000000 */ 8326 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xECu); 8327 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8328 ecx = ecx + 0xECu; /* 0x36057F18: add ecx, 0xec */ 8329 _flag_k = FK_ADD; 8330 RECOMP_ICALL(0x3602F130u); /* 0x36057F1E: call 0x3602f130 */ /* not lifted */ 8331 RECOMP_FLAGS_IN(); 8332 L_36057F23: 8333 eax = MEM32(esi + 0x10); /* 0x36057F23: mov eax, dword ptr [esi + 0x10] */ 8334 SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36057F26: mov cl, byte ptr [eax + 0x128] */ 8335 /* test LO8(ecx), LO8(ecx) */ /* 0x36057F2C: test cl, cl */ 8336 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 8337 _cf = 0; 8338 _flag_k = FK_NARROW(FK_TEST, 24); 8339 if (TEST_Z(_flag_a, _flag_b)) goto L_36057F43; /* 0x36057F2E: je 0x36057f43 */ 8340 L_36057F30: 8341 PUSH32(esp, 0); /* 0x36057F30: push 0 */ 8342 PUSH32(esp, 0x361C2668u); /* 0x36057F32: push 0x361c2668 */ 8343 RECOMP_ICALL(0x3601C590u); /* 0x36057F37: call 0x3601c590 */ /* not lifted */ 8344 RECOMP_FLAGS_IN(); 8345 ecx = eax; /* 0x36057F3C: mov ecx, eax */ 8346 RECOMP_ICALL(0x3601C8C0u); /* 0x36057F3E: call 0x3601c8c0 */ /* not lifted */ 8347 RECOMP_FLAGS_IN(); 8348 L_36057F43: 8349 esi = POP32_VAL(esp); /* 0x36057F43: pop esi */ 8350 ebp = POP32_VAL(esp); /* 0x36057F44: pop ebp */ 8351 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36057F45: ret 4 */ 8352 RECOMP_REGS_OUT(); 8353 } 8354 8355 void sub_36057F50(void) { 8356 int _fpu_cmp = 0; 8357 uint32_t _cf = 0; 8358 int _df = 1; 8359 uint32_t _flag_k = FK_NONE; 8360 uint32_t _flag_a = 0, _flag_b = 0; 8361 uint32_t _itail_tgt = 0; 8362 RECOMP_REGS_LOCALS 8363 RECOMP_ENTER(0x36057F50u); 8364 8365 L_36057F50: 8366 PUSH32(esp, ebp); /* 0x36057F50: push ebp */ 8367 ebp = esp; /* 0x36057F51: mov ebp, esp */ 8368 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 8369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8370 esp = esp - 0x34u; /* 0x36057F53: sub esp, 0x34 */ 8371 _flag_k = FK_CMP; 8372 ecx = MEM32(ecx + 0x10); /* 0x36057F56: mov ecx, dword ptr [ecx + 0x10] */ 8373 PUSH32(esp, 0x40000000u); /* 0x36057F59: push 0x40000000 */ 8374 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xECu); 8375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8376 ecx = ecx + 0xECu; /* 0x36057F5E: add ecx, 0xec */ 8377 _flag_k = FK_ADD; 8378 RECOMP_ICALL(0x3602F220u); /* 0x36057F64: call 0x3602f220 */ /* not lifted */ 8379 RECOMP_FLAGS_IN(); 8380 /* test eax, eax */ /* 0x36057F69: test eax, eax */ 8381 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8382 _cf = 0; 8383 _flag_k = FK_TEST; 8384 if (TEST_S(_flag_a, _flag_b)) goto L_36057FA4; /* 0x36057F6B: jl 0x36057fa4 */ 8385 L_36057F6D: 8386 PUSH32(esp, eax); /* 0x36057F6D: push eax */ 8387 PUSH32(esp, 0x361C2684u); /* 0x36057F6E: push 0x361c2684 */ 8388 eax = ebp + (-0x34); /* 0x36057F73: lea eax, [ebp - 0x34] */ 8389 PUSH32(esp, 0x32u); /* 0x36057F76: push 0x32 */ 8390 PUSH32(esp, eax); /* 0x36057F78: push eax */ 8391 RECOMP_ICALL(0x360085B0u); /* 0x36057F79: call 0x360085b0 */ /* not lifted */ 8392 RECOMP_FLAGS_IN(); 8393 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8395 esp = esp + 0x10u; /* 0x36057F7E: add esp, 0x10 */ 8396 _flag_k = FK_ADD; 8397 PUSH32(esp, 0x3F333333u); /* 0x36057F81: push 0x3f333333 */ 8398 PUSH32(esp, 0x3F000000u); /* 0x36057F86: push 0x3f000000 */ 8399 PUSH32(esp, 0x3FC00000u); /* 0x36057F8B: push 0x3fc00000 */ 8400 PUSH32(esp, 0xDu); /* 0x36057F90: push 0xd */ 8401 ecx = ebp + (-0x34); /* 0x36057F92: lea ecx, [ebp - 0x34] */ 8402 PUSH32(esp, 0); /* 0x36057F95: push 0 */ 8403 PUSH32(esp, ecx); /* 0x36057F97: push ecx */ 8404 RECOMP_ICALL(0x3601C590u); /* 0x36057F98: call 0x3601c590 */ /* not lifted */ 8405 RECOMP_FLAGS_IN(); 8406 ecx = eax; /* 0x36057F9D: mov ecx, eax */ 8407 RECOMP_ICALL(0x3601DC80u); /* 0x36057F9F: call 0x3601dc80 */ /* not lifted */ 8408 RECOMP_FLAGS_IN(); 8409 L_36057FA4: 8410 esp = ebp; /* 0x36057FA4: mov esp, ebp */ 8411 ebp = POP32_VAL(esp); /* 0x36057FA6: pop ebp */ 8412 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36057FA7: ret */ 8413 RECOMP_REGS_OUT(); 8414 } 8415 8416 void sub_36057FB0(void) { 8417 int _fpu_cmp = 0; 8418 uint32_t _cf = 0; 8419 int _df = 1; 8420 uint32_t _flag_k = FK_NONE; 8421 uint32_t _flag_a = 0, _flag_b = 0; 8422 uint32_t _itail_tgt = 0; 8423 RECOMP_REGS_LOCALS 8424 RECOMP_ENTER(0x36057FB0u); 8425 8426 L_36057FB0: 8427 PUSH32(esp, ebp); /* 0x36057FB0: push ebp */ 8428 ebp = esp; /* 0x36057FB1: mov ebp, esp */ 8429 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8431 esp = esp - 8; /* 0x36057FB3: sub esp, 8 */ 8432 _flag_k = FK_CMP; 8433 PUSH32(esp, esi); /* 0x36057FB6: push esi */ 8434 esi = ecx; /* 0x36057FB7: mov esi, ecx */ 8435 eax = MEM32(esi + 0x10); /* 0x36057FB9: mov eax, dword ptr [esi + 0x10] */ 8436 /* test MEM8(eax + 0x11C), 4 */ /* 0x36057FBC: test byte ptr [eax + 0x11c], 4 */ 8437 _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(4) << 24; 8438 _cf = 0; 8439 _flag_k = FK_NARROW(FK_TEST, 24); 8440 if (TEST_NZ(_flag_a, _flag_b)) goto L_3605806C; /* 0x36057FC3: jne 0x3605806c */ 8441 L_36057FC9: 8442 ecx = eax + 0xE4; /* 0x36057FC9: lea ecx, [eax + 0xe4] */ 8443 eax = MEM32(ecx); /* 0x36057FCF: mov eax, dword ptr [ecx] */ 8444 PUSH32(esp, 0x00010000u); /* 0x36057FD1: push 0x10000 */ 8445 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x36057FD6: call dword ptr [eax + 0x20] */ 8446 RECOMP_FLAGS_IN(); 8447 ecx = MEM32(esi + 0x10); /* 0x36057FD9: mov ecx, dword ptr [esi + 0x10] */ 8448 PUSH32(esp, 1); /* 0x36057FDC: push 1 */ 8449 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xECu); 8450 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8451 ecx = ecx + 0xECu; /* 0x36057FDE: add ecx, 0xec */ 8452 _flag_k = FK_ADD; 8453 RECOMP_ICALL(0x3602F130u); /* 0x36057FE4: call 0x3602f130 */ /* not lifted */ 8454 RECOMP_FLAGS_IN(); 8455 eax = MEM32(esi + 0x10); /* 0x36057FE9: mov eax, dword ptr [esi + 0x10] */ 8456 edx = ebp + (-0x8); /* 0x36057FEC: lea edx, [ebp - 8] */ 8457 PUSH32(esp, edx); /* 0x36057FEF: push edx */ 8458 ecx = eax + 0x4; /* 0x36057FF0: lea ecx, [eax + 4] */ 8459 PUSH32(esp, 0x3Cu); /* 0x36057FF3: push 0x3c */ 8460 PUSH32(esp, ecx); /* 0x36057FF5: push ecx */ 8461 PUSH32(esp, 1); /* 0x36057FF6: push 1 */ 8462 PUSH32(esp, ecx); /* 0x36057FF8: push ecx */ 8463 ecx = eax + 0xEC; /* 0x36057FF9: lea ecx, [eax + 0xec] */ 8464 MEM32(ebp + (-0x8)) = 0; /* 0x36057FFF: mov dword ptr [ebp - 8], 0 */ 8465 MEM32(ebp + (-0x4)) = 0; /* 0x36058006: mov dword ptr [ebp - 4], 0 */ 8466 RECOMP_ICALL(0x3602EE20u); /* 0x3605800D: call 0x3602ee20 */ /* not lifted */ 8467 RECOMP_FLAGS_IN(); 8468 eax = MEM32(esi + 0x80); /* 0x36058012: mov eax, dword ptr [esi + 0x80] */ 8469 /* test eax, eax */ /* 0x36058018: test eax, eax */ 8470 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8471 _cf = 0; 8472 _flag_k = FK_TEST; 8473 if (TEST_Z(_flag_a, _flag_b)) goto L_3605804B; /* 0x3605801A: je 0x3605804b */ 8474 L_3605801C: 8475 eax = MEM32(esi + 0x10); /* 0x3605801C: mov eax, dword ptr [esi + 0x10] */ 8476 eax = MEM32(eax + 0x78); /* 0x3605801F: mov eax, dword ptr [eax + 0x78] */ 8477 PUSH32(esp, eax); /* 0x36058022: push eax */ 8478 RECOMP_ICALL(MEM32(0x36170044)); /* 0x36058023: call dword ptr [0x36170044] */ 8479 RECOMP_FLAGS_IN(); 8480 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8481 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8482 esp = esp + 4; /* 0x36058029: add esp, 4 */ 8483 _flag_k = FK_ADD; 8484 ecx = eax; /* 0x3605802C: mov ecx, eax */ 8485 RECOMP_ICALL(0x3614CEE0u); /* 0x3605802E: call 0x3614cee0 */ /* not lifted */ 8486 RECOMP_FLAGS_IN(); 8487 /* test eax, eax */ /* 0x36058033: test eax, eax */ 8488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8489 _cf = 0; 8490 _flag_k = FK_TEST; 8491 if (TEST_Z(_flag_a, _flag_b)) goto L_3605804B; /* 0x36058035: je 0x3605804b */ 8492 L_36058037: 8493 ecx = MEM32(esi + 0x80); /* 0x36058037: mov ecx, dword ptr [esi + 0x80] */ 8494 PUSH32(esp, ecx); /* 0x3605803D: push ecx */ 8495 ecx = eax; /* 0x3605803E: mov ecx, eax */ 8496 RECOMP_ICALL(0x3614AC00u); /* 0x36058040: call 0x3614ac00 */ /* not lifted */ 8497 RECOMP_FLAGS_IN(); 8498 MEM32(esi + 0xD0) = eax; /* 0x36058045: mov dword ptr [esi + 0xd0], eax */ 8499 L_3605804B: 8500 esi = MEM32(esi + 0x10); /* 0x3605804B: mov esi, dword ptr [esi + 0x10] */ 8501 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x3605804E: mov al, byte ptr [esi + 0x128] */ 8502 /* test LO8(eax), LO8(eax) */ /* 0x36058054: test al, al */ 8503 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8504 _cf = 0; 8505 _flag_k = FK_NARROW(FK_TEST, 24); 8506 if (TEST_Z(_flag_a, _flag_b)) goto L_3605806C; /* 0x36058056: je 0x3605806c */ 8507 L_36058058: 8508 PUSH32(esp, 0); /* 0x36058058: push 0 */ 8509 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 8510 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8511 esi = esi + 4; /* 0x3605805A: add esi, 4 */ 8512 _flag_k = FK_ADD; 8513 PUSH32(esp, esi); /* 0x3605805D: push esi */ 8514 PUSH32(esp, 0x36u); /* 0x3605805E: push 0x36 */ 8515 RECOMP_ICALL(0x3601C590u); /* 0x36058060: call 0x3601c590 */ /* not lifted */ 8516 RECOMP_FLAGS_IN(); 8517 ecx = eax; /* 0x36058065: mov ecx, eax */ 8518 RECOMP_ICALL(0x3601D080u); /* 0x36058067: call 0x3601d080 */ /* not lifted */ 8519 RECOMP_FLAGS_IN(); 8520 L_3605806C: 8521 esi = POP32_VAL(esp); /* 0x3605806C: pop esi */ 8522 esp = ebp; /* 0x3605806D: mov esp, ebp */ 8523 ebp = POP32_VAL(esp); /* 0x3605806F: pop ebp */ 8524 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36058070: ret */ 8525 RECOMP_REGS_OUT(); 8526 } 8527 8528 void sub_36058080(void) { 8529 int _fpu_cmp = 0; 8530 uint32_t _cf = 0; 8531 int _df = 1; 8532 uint32_t _flag_k = FK_NONE; 8533 uint32_t _flag_a = 0, _flag_b = 0; 8534 uint32_t _itail_tgt = 0; 8535 RECOMP_REGS_LOCALS 8536 RECOMP_ENTER(0x36058080u); 8537 8538 L_36058080: 8539 PUSH32(esp, ebp); /* 0x36058080: push ebp */ 8540 ebp = esp; /* 0x36058081: mov ebp, esp */ 8541 PUSH32(esp, esi); /* 0x36058083: push esi */ 8542 esi = ecx; /* 0x36058084: mov esi, ecx */ 8543 eax = MEM32(esi + 0x10); /* 0x36058086: mov eax, dword ptr [esi + 0x10] */ 8544 ecx = MEM32(eax + 0x11C); /* 0x36058089: mov ecx, dword ptr [eax + 0x11c] */ 8545 /* test ecx, 0x00010000u */ /* 0x3605808F: test ecx, 0x10000 */ 8546 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x00010000u); 8547 _cf = 0; 8548 _flag_k = FK_TEST; 8549 if (TEST_Z(_flag_a, _flag_b)) goto L_360580DA; /* 0x36058095: je 0x360580da */ 8550 L_36058097: 8551 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFEFFFFu); 8552 ecx = ecx & 0xFFFEFFFFu; /* 0x36058097: and ecx, 0xfffeffff */ 8553 _cf = 0; 8554 _flag_k = FK_TEST; 8555 MEM32(eax + 0x11C) = ecx; /* 0x3605809D: mov dword ptr [eax + 0x11c], ecx */ 8556 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x360580A3: mov al, byte ptr [ebp + 8] */ 8557 /* test LO8(eax), LO8(eax) */ /* 0x360580A6: test al, al */ 8558 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8559 _cf = 0; 8560 _flag_k = FK_NARROW(FK_TEST, 24); 8561 if (TEST_NZ(_flag_a, _flag_b)) goto L_360580BA; /* 0x360580A8: jne 0x360580ba */ 8562 L_360580AA: 8563 ecx = MEM32(esi + 0x10); /* 0x360580AA: mov ecx, dword ptr [esi + 0x10] */ 8564 PUSH32(esp, 1); /* 0x360580AD: push 1 */ 8565 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xECu); 8566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8567 ecx = ecx + 0xECu; /* 0x360580AF: add ecx, 0xec */ 8568 _flag_k = FK_ADD; 8569 RECOMP_ICALL(0x3602F130u); /* 0x360580B5: call 0x3602f130 */ /* not lifted */ 8570 RECOMP_FLAGS_IN(); 8571 L_360580BA: 8572 eax = MEM32(esi + 0x10); /* 0x360580BA: mov eax, dword ptr [esi + 0x10] */ 8573 SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x360580BD: mov cl, byte ptr [eax + 0x128] */ 8574 /* test LO8(ecx), LO8(ecx) */ /* 0x360580C3: test cl, cl */ 8575 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 8576 _cf = 0; 8577 _flag_k = FK_NARROW(FK_TEST, 24); 8578 if (TEST_Z(_flag_a, _flag_b)) goto L_360580DA; /* 0x360580C5: je 0x360580da */ 8579 L_360580C7: 8580 PUSH32(esp, 0); /* 0x360580C7: push 0 */ 8581 PUSH32(esp, 0x361C26B0u); /* 0x360580C9: push 0x361c26b0 */ 8582 RECOMP_ICALL(0x3601C590u); /* 0x360580CE: call 0x3601c590 */ /* not lifted */ 8583 RECOMP_FLAGS_IN(); 8584 ecx = eax; /* 0x360580D3: mov ecx, eax */ 8585 RECOMP_ICALL(0x3601C8C0u); /* 0x360580D5: call 0x3601c8c0 */ /* not lifted */ 8586 RECOMP_FLAGS_IN(); 8587 L_360580DA: 8588 esi = POP32_VAL(esp); /* 0x360580DA: pop esi */ 8589 ebp = POP32_VAL(esp); /* 0x360580DB: pop ebp */ 8590 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360580DC: ret 4 */ 8591 RECOMP_REGS_OUT(); 8592 } 8593 8594 void sub_360580E0(void) { 8595 int _fpu_cmp = 0; 8596 uint32_t _cf = 0; 8597 int _df = 1; 8598 uint32_t _flag_k = FK_NONE; 8599 uint32_t _flag_a = 0, _flag_b = 0; 8600 uint32_t _itail_tgt = 0; 8601 RECOMP_REGS_LOCALS 8602 RECOMP_ENTER(0x360580E0u); 8603 8604 L_360580E0: 8605 PUSH32(esp, ebp); /* 0x360580E0: push ebp */ 8606 ebp = esp; /* 0x360580E1: mov ebp, esp */ 8607 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 8608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8609 esp = esp - 0x34u; /* 0x360580E3: sub esp, 0x34 */ 8610 _flag_k = FK_CMP; 8611 ecx = MEM32(ecx + 0x10); /* 0x360580E6: mov ecx, dword ptr [ecx + 0x10] */ 8612 PUSH32(esp, 1); /* 0x360580E9: push 1 */ 8613 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xECu); 8614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8615 ecx = ecx + 0xECu; /* 0x360580EB: add ecx, 0xec */ 8616 _flag_k = FK_ADD; 8617 RECOMP_ICALL(0x3602F220u); /* 0x360580F1: call 0x3602f220 */ /* not lifted */ 8618 RECOMP_FLAGS_IN(); 8619 /* test eax, eax */ /* 0x360580F6: test eax, eax */ 8620 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8621 _cf = 0; 8622 _flag_k = FK_TEST; 8623 if (TEST_S(_flag_a, _flag_b)) goto L_36058131; /* 0x360580F8: jl 0x36058131 */ 8624 L_360580FA: 8625 PUSH32(esp, eax); /* 0x360580FA: push eax */ 8626 PUSH32(esp, 0x361C26D0u); /* 0x360580FB: push 0x361c26d0 */ 8627 eax = ebp + (-0x34); /* 0x36058100: lea eax, [ebp - 0x34] */ 8628 PUSH32(esp, 0x32u); /* 0x36058103: push 0x32 */ 8629 PUSH32(esp, eax); /* 0x36058105: push eax */ 8630 RECOMP_ICALL(0x360085B0u); /* 0x36058106: call 0x360085b0 */ /* not lifted */ 8631 RECOMP_FLAGS_IN(); 8632 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8634 esp = esp + 0x10u; /* 0x3605810B: add esp, 0x10 */ 8635 _flag_k = FK_ADD; 8636 PUSH32(esp, 0x3F333333u); /* 0x3605810E: push 0x3f333333 */ 8637 PUSH32(esp, 0x3F000000u); /* 0x36058113: push 0x3f000000 */ 8638 PUSH32(esp, 0x3FC00000u); /* 0x36058118: push 0x3fc00000 */ 8639 PUSH32(esp, 0x10u); /* 0x3605811D: push 0x10 */ 8640 ecx = ebp + (-0x34); /* 0x3605811F: lea ecx, [ebp - 0x34] */ 8641 PUSH32(esp, 0); /* 0x36058122: push 0 */ 8642 PUSH32(esp, ecx); /* 0x36058124: push ecx */ 8643 RECOMP_ICALL(0x3601C590u); /* 0x36058125: call 0x3601c590 */ /* not lifted */ 8644 RECOMP_FLAGS_IN(); 8645 ecx = eax; /* 0x3605812A: mov ecx, eax */ 8646 RECOMP_ICALL(0x3601DC80u); /* 0x3605812C: call 0x3601dc80 */ /* not lifted */ 8647 RECOMP_FLAGS_IN(); 8648 L_36058131: 8649 esp = ebp; /* 0x36058131: mov esp, ebp */ 8650 ebp = POP32_VAL(esp); /* 0x36058133: pop ebp */ 8651 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36058134: ret */ 8652 RECOMP_REGS_OUT(); 8653 } 8654 8655 void sub_36058140(void) { 8656 int _fpu_cmp = 0; 8657 uint32_t _cf = 0; 8658 int _df = 1; 8659 uint32_t _flag_k = FK_NONE; 8660 uint32_t _flag_a = 0, _flag_b = 0; 8661 uint32_t _itail_tgt = 0; 8662 RECOMP_REGS_LOCALS 8663 RECOMP_ENTER(0x36058140u); 8664 8665 L_36058140: 8666 PUSH32(esp, ebp); /* 0x36058140: push ebp */ 8667 ebp = esp; /* 0x36058141: mov ebp, esp */ 8668 PUSH32(esp, ecx); /* 0x36058143: push ecx */ 8669 PUSH32(esp, ebx); /* 0x36058144: push ebx */ 8670 PUSH32(esp, esi); /* 0x36058145: push esi */ 8671 esi = ecx; /* 0x36058146: mov esi, ecx */ 8672 eax = MEM32(esi + 0x10); /* 0x36058148: mov eax, dword ptr [esi + 0x10] */ 8673 eax = MEM32(eax + 0x78); /* 0x3605814B: mov eax, dword ptr [eax + 0x78] */ 8674 PUSH32(esp, edi); /* 0x3605814E: push edi */ 8675 PUSH32(esp, eax); /* 0x3605814F: push eax */ 8676 RECOMP_ICALL(MEM32(0x36170044)); /* 0x36058150: call dword ptr [0x36170044] */ 8677 RECOMP_FLAGS_IN(); 8678 edi = eax; /* 0x36058156: mov edi, eax */ 8679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8680 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8681 esp = esp + 4; /* 0x36058158: add esp, 4 */ 8682 _flag_k = FK_ADD; 8683 ecx = edi; /* 0x3605815B: mov ecx, edi */ 8684 RECOMP_ICALL(0x3614CEE0u); /* 0x3605815D: call 0x3614cee0 */ /* not lifted */ 8685 RECOMP_FLAGS_IN(); 8686 ecx = edi; /* 0x36058162: mov ecx, edi */ 8687 MEM32(ebp + (-0x4)) = eax; /* 0x36058164: mov dword ptr [ebp - 4], eax */ 8688 RECOMP_ICALL(0x3614CE70u); /* 0x36058167: call 0x3614ce70 */ /* not lifted */ 8689 RECOMP_FLAGS_IN(); 8690 ebx = eax; /* 0x3605816C: mov ebx, eax */ 8691 /* test ebx, ebx */ /* 0x3605816E: test ebx, ebx */ 8692 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 8693 _cf = 0; 8694 _flag_k = FK_TEST; 8695 if (TEST_Z(_flag_a, _flag_b)) goto L_3605819F; /* 0x36058170: je 0x3605819f */ 8696 L_36058172: 8697 eax = MEM32(ebp + (-0x4)); /* 0x36058172: mov eax, dword ptr [ebp - 4] */ 8698 /* test eax, eax */ /* 0x36058175: test eax, eax */ 8699 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8700 _cf = 0; 8701 _flag_k = FK_TEST; 8702 if (TEST_Z(_flag_a, _flag_b)) goto L_3605819F; /* 0x36058177: je 0x3605819f */ 8703 L_36058179: 8704 ecx = MEM32(esi + 0x10); /* 0x36058179: mov ecx, dword ptr [esi + 0x10] */ 8705 RECOMP_ICALL(MEM32(0x361700B4)); /* 0x3605817C: call dword ptr [0x361700b4] */ 8706 RECOMP_FLAGS_IN(); 8707 PUSH32(esp, eax); /* 0x36058182: push eax */ 8708 ecx = ebx; /* 0x36058183: mov ecx, ebx */ 8709 RECOMP_ICALL(0x3614ECB0u); /* 0x36058185: call 0x3614ecb0 */ /* not lifted */ 8710 RECOMP_FLAGS_IN(); 8711 /* cmp eax, MEM32(esi + 0x80) */ /* 0x3605818A: cmp eax, dword ptr [esi + 0x80] */ 8712 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x80)); 8713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8714 _flag_k = FK_CMP; 8715 if (CMP_EQ(_flag_a, _flag_b)) goto L_3605819F; /* 0x36058190: je 0x3605819f */ 8716 L_36058192: 8717 ecx = MEM32(ebp + (-0x4)); /* 0x36058192: mov ecx, dword ptr [ebp - 4] */ 8718 PUSH32(esp, ecx); /* 0x36058195: push ecx */ 8719 PUSH32(esp, edi); /* 0x36058196: push edi */ 8720 PUSH32(esp, eax); /* 0x36058197: push eax */ 8721 ecx = esi; /* 0x36058198: mov ecx, esi */ 8722 RECOMP_ICALL(0x360581E0u); /* 0x3605819A: call 0x360581e0 */ /* not lifted */ 8723 RECOMP_FLAGS_IN(); 8724 L_3605819F: 8725 ecx = edi; /* 0x3605819F: mov ecx, edi */ 8726 RECOMP_ICALL(0x3614CE30u); /* 0x360581A1: call 0x3614ce30 */ /* not lifted */ 8727 RECOMP_FLAGS_IN(); 8728 ebx = eax; /* 0x360581A6: mov ebx, eax */ 8729 /* test ebx, ebx */ /* 0x360581A8: test ebx, ebx */ 8730 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 8731 _cf = 0; 8732 _flag_k = FK_TEST; 8733 if (TEST_Z(_flag_a, _flag_b)) goto L_360581CE; /* 0x360581AA: je 0x360581ce */ 8734 L_360581AC: 8735 ecx = MEM32(esi + 0x10); /* 0x360581AC: mov ecx, dword ptr [esi + 0x10] */ 8736 RECOMP_ICALL(MEM32(0x361700B4)); /* 0x360581AF: call dword ptr [0x361700b4] */ 8737 RECOMP_FLAGS_IN(); 8738 PUSH32(esp, eax); /* 0x360581B5: push eax */ 8739 ecx = ebx; /* 0x360581B6: mov ecx, ebx */ 8740 RECOMP_ICALL(0x3614ECB0u); /* 0x360581B8: call 0x3614ecb0 */ /* not lifted */ 8741 RECOMP_FLAGS_IN(); 8742 /* cmp eax, MEM32(esi + 0x84) */ /* 0x360581BD: cmp eax, dword ptr [esi + 0x84] */ 8743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x84)); 8744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8745 _flag_k = FK_CMP; 8746 if (CMP_EQ(_flag_a, _flag_b)) goto L_360581CE; /* 0x360581C3: je 0x360581ce */ 8747 L_360581C5: 8748 PUSH32(esp, edi); /* 0x360581C5: push edi */ 8749 PUSH32(esp, eax); /* 0x360581C6: push eax */ 8750 ecx = esi; /* 0x360581C7: mov ecx, esi */ 8751 RECOMP_ICALL(0x36058240u); /* 0x360581C9: call 0x36058240 */ /* not lifted */ 8752 RECOMP_FLAGS_IN(); 8753 L_360581CE: 8754 edi = POP32_VAL(esp); /* 0x360581CE: pop edi */ 8755 esi = POP32_VAL(esp); /* 0x360581CF: pop esi */ 8756 ebx = POP32_VAL(esp); /* 0x360581D0: pop ebx */ 8757 esp = ebp; /* 0x360581D1: mov esp, ebp */ 8758 ebp = POP32_VAL(esp); /* 0x360581D3: pop ebp */ 8759 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360581D4: ret */ 8760 RECOMP_REGS_OUT(); 8761 } 8762 8763 void sub_360581E0(void) { 8764 int _fpu_cmp = 0; 8765 uint32_t _cf = 0; 8766 int _df = 1; 8767 uint32_t _flag_k = FK_NONE; 8768 uint32_t _flag_a = 0, _flag_b = 0; 8769 uint32_t _itail_tgt = 0; 8770 RECOMP_REGS_LOCALS 8771 RECOMP_ENTER(0x360581E0u); 8772 8773 L_360581E0: 8774 PUSH32(esp, ebp); /* 0x360581E0: push ebp */ 8775 ebp = esp; /* 0x360581E1: mov ebp, esp */ 8776 PUSH32(esp, ebx); /* 0x360581E3: push ebx */ 8777 PUSH32(esp, esi); /* 0x360581E4: push esi */ 8778 esi = ecx; /* 0x360581E5: mov esi, ecx */ 8779 eax = MEM32(esi + 0x80); /* 0x360581E7: mov eax, dword ptr [esi + 0x80] */ 8780 PUSH32(esp, edi); /* 0x360581ED: push edi */ 8781 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 8782 ebx = ebx | 0xFFFFFFFFu; /* 0x360581EE: or ebx, 0xffffffff */ 8783 _cf = 0; 8784 _flag_k = FK_TEST; 8785 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 8786 edi = edi | 0xFFFFFFFFu; /* 0x360581F1: or edi, 0xffffffff */ 8787 _cf = 0; 8788 _flag_k = FK_TEST; 8789 /* test eax, eax */ /* 0x360581F4: test eax, eax */ 8790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8791 _cf = 0; 8792 _flag_k = FK_TEST; 8793 if (TEST_Z(_flag_a, _flag_b)) goto L_36058203; /* 0x360581F6: je 0x36058203 */ 8794 L_360581F8: 8795 ecx = MEM32(ebp + 0x10); /* 0x360581F8: mov ecx, dword ptr [ebp + 0x10] */ 8796 PUSH32(esp, eax); /* 0x360581FB: push eax */ 8797 RECOMP_ICALL(0x3614AC00u); /* 0x360581FC: call 0x3614ac00 */ /* not lifted */ 8798 RECOMP_FLAGS_IN(); 8799 ebx = eax; /* 0x36058201: mov ebx, eax */ 8800 L_36058203: 8801 eax = MEM32(ebp + 0x8); /* 0x36058203: mov eax, dword ptr [ebp + 8] */ 8802 /* test eax, eax */ /* 0x36058206: test eax, eax */ 8803 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8804 _cf = 0; 8805 _flag_k = FK_TEST; 8806 if (TEST_Z(_flag_a, _flag_b)) goto L_36058218; /* 0x36058208: je 0x36058218 */ 8807 L_3605820A: 8808 ecx = MEM32(ebp + 0x10); /* 0x3605820A: mov ecx, dword ptr [ebp + 0x10] */ 8809 PUSH32(esp, eax); /* 0x3605820D: push eax */ 8810 RECOMP_ICALL(0x3614AC00u); /* 0x3605820E: call 0x3614ac00 */ /* not lifted */ 8811 RECOMP_FLAGS_IN(); 8812 edi = eax; /* 0x36058213: mov edi, eax */ 8813 eax = MEM32(ebp + 0x8); /* 0x36058215: mov eax, dword ptr [ebp + 8] */ 8814 L_36058218: 8815 /* cmp ebx, edi */ /* 0x36058218: cmp ebx, edi */ 8816 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 8817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8818 _flag_k = FK_CMP; 8819 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058228; /* 0x3605821A: je 0x36058228 */ 8820 L_3605821C: 8821 PUSH32(esp, edi); /* 0x3605821C: push edi */ 8822 PUSH32(esp, ebx); /* 0x3605821D: push ebx */ 8823 ecx = esi; /* 0x3605821E: mov ecx, esi */ 8824 RECOMP_ICALL(0x36057CA0u); /* 0x36058220: call 0x36057ca0 */ /* not lifted */ 8825 RECOMP_FLAGS_IN(); 8826 eax = MEM32(ebp + 0x8); /* 0x36058225: mov eax, dword ptr [ebp + 8] */ 8827 L_36058228: 8828 edi = POP32_VAL(esp); /* 0x36058228: pop edi */ 8829 MEM32(esi + 0x80) = eax; /* 0x36058229: mov dword ptr [esi + 0x80], eax */ 8830 esi = POP32_VAL(esp); /* 0x3605822F: pop esi */ 8831 ebx = POP32_VAL(esp); /* 0x36058230: pop ebx */ 8832 ebp = POP32_VAL(esp); /* 0x36058231: pop ebp */ 8833 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36058232: ret 0xc */ 8834 RECOMP_REGS_OUT(); 8835 } 8836 8837 void sub_36058240(void) { 8838 int _fpu_cmp = 0; 8839 uint32_t _cf = 0; 8840 int _df = 1; 8841 uint32_t _flag_k = FK_NONE; 8842 uint32_t _flag_a = 0, _flag_b = 0; 8843 uint32_t _itail_tgt = 0; 8844 RECOMP_REGS_LOCALS 8845 RECOMP_ENTER(0x36058240u); 8846 8847 L_36058240: 8848 PUSH32(esp, ebp); /* 0x36058240: push ebp */ 8849 ebp = esp; /* 0x36058241: mov ebp, esp */ 8850 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x64u); 8851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8852 esp = esp - 0x64u; /* 0x36058243: sub esp, 0x64 */ 8853 _flag_k = FK_CMP; 8854 PUSH32(esp, edi); /* 0x36058246: push edi */ 8855 edi = ecx; /* 0x36058247: mov edi, ecx */ 8856 eax = MEM32(edi + 0x10); /* 0x36058249: mov eax, dword ptr [edi + 0x10] */ 8857 SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x3605824C: mov cl, byte ptr [eax + 0x128] */ 8858 /* test LO8(ecx), LO8(ecx) */ /* 0x36058252: test cl, cl */ 8859 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 8860 _cf = 0; 8861 _flag_k = FK_NARROW(FK_TEST, 24); 8862 if (TEST_Z(_flag_a, _flag_b)) goto L_360582CC; /* 0x36058254: je 0x360582cc */ 8863 L_36058256: 8864 ecx = MEM32(ebp + 0xC); /* 0x36058256: mov ecx, dword ptr [ebp + 0xc] */ 8865 RECOMP_ICALL(MEM32(0x3617002C)); /* 0x36058259: call dword ptr [0x3617002c] */ 8866 RECOMP_FLAGS_IN(); 8867 /* test LO8(eax), LO8(eax) */ /* 0x3605825F: test al, al */ 8868 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8869 _cf = 0; 8870 _flag_k = FK_NARROW(FK_TEST, 24); 8871 if (TEST_Z(_flag_a, _flag_b)) goto L_360582DC; /* 0x36058261: je 0x360582dc */ 8872 L_36058263: 8873 PUSH32(esp, esi); /* 0x36058263: push esi */ 8874 esi = MEM32(ebp + 0x8); /* 0x36058264: mov esi, dword ptr [ebp + 8] */ 8875 ecx = esi; /* 0x36058267: mov ecx, esi */ 8876 RECOMP_ICALL(0x3609C020u); /* 0x36058269: call 0x3609c020 */ /* not lifted */ 8877 RECOMP_FLAGS_IN(); 8878 eax = MEM32(eax + 0x4); /* 0x3605826E: mov eax, dword ptr [eax + 4] */ 8879 /* test eax, eax */ /* 0x36058271: test eax, eax */ 8880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8881 _cf = 0; 8882 _flag_k = FK_TEST; 8883 if (TEST_NZ(_flag_a, _flag_b)) goto L_3605827A; /* 0x36058273: jne 0x3605827a */ 8884 L_36058275: 8885 eax = MEM32(0x3616F10C); /* 0x36058275: mov eax, dword ptr [0x3616f10c] */ 8886 L_3605827A: 8887 /* test eax, eax */ /* 0x3605827A: test eax, eax */ 8888 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8889 _cf = 0; 8890 _flag_k = FK_TEST; 8891 MEM8(ebp + (-0x64)) = (uint8_t)(0); /* 0x3605827C: mov byte ptr [ebp - 0x64], 0 */ 8892 if (TEST_Z(_flag_a, _flag_b)) goto L_3605829B; /* 0x36058280: je 0x3605829b */ 8893 L_36058282: 8894 /* cmp MEM8(eax), 0 */ /* 0x36058282: cmp byte ptr [eax], 0 */ 8895 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24; 8896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8897 _flag_k = FK_NARROW(FK_CMP, 24); 8898 if (CMP_EQ(_flag_a, _flag_b)) goto L_3605829B; /* 0x36058285: je 0x3605829b */ 8899 L_36058287: 8900 PUSH32(esp, eax); /* 0x36058287: push eax */ 8901 PUSH32(esp, 0x361C2700u); /* 0x36058288: push 0x361c2700 */ 8902 ecx = ebp + (-0x64); /* 0x3605828D: lea ecx, [ebp - 0x64] */ 8903 PUSH32(esp, 0x64u); /* 0x36058290: push 0x64 */ 8904 PUSH32(esp, ecx); /* 0x36058292: push ecx */ 8905 RECOMP_ICALL(0x360085B0u); /* 0x36058293: call 0x360085b0 */ /* not lifted */ 8906 RECOMP_FLAGS_IN(); 8907 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8908 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8909 esp = esp + 0x10u; /* 0x36058298: add esp, 0x10 */ 8910 _flag_k = FK_ADD; 8911 L_3605829B: 8912 PUSH32(esp, 0x3F0CCCCDu); /* 0x3605829B: push 0x3f0ccccd */ 8913 PUSH32(esp, 0x3F000000u); /* 0x360582A0: push 0x3f000000 */ 8914 PUSH32(esp, 0x40A00000u); /* 0x360582A5: push 0x40a00000 */ 8915 PUSH32(esp, 0xFu); /* 0x360582AA: push 0xf */ 8916 edx = ebp + (-0x64); /* 0x360582AC: lea edx, [ebp - 0x64] */ 8917 PUSH32(esp, 0); /* 0x360582AF: push 0 */ 8918 PUSH32(esp, edx); /* 0x360582B1: push edx */ 8919 RECOMP_ICALL(0x3601C590u); /* 0x360582B2: call 0x3601c590 */ /* not lifted */ 8920 RECOMP_FLAGS_IN(); 8921 ecx = eax; /* 0x360582B7: mov ecx, eax */ 8922 RECOMP_ICALL(0x3601DC80u); /* 0x360582B9: call 0x3601dc80 */ /* not lifted */ 8923 RECOMP_FLAGS_IN(); 8924 MEM32(edi + 0x84) = esi; /* 0x360582BE: mov dword ptr [edi + 0x84], esi */ 8925 esi = POP32_VAL(esp); /* 0x360582C4: pop esi */ 8926 edi = POP32_VAL(esp); /* 0x360582C5: pop edi */ 8927 esp = ebp; /* 0x360582C6: mov esp, ebp */ 8928 ebp = POP32_VAL(esp); /* 0x360582C8: pop ebp */ 8929 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360582C9: ret 8 */ 8930 L_360582CC: 8931 eax = MEM32(ebp + 0x8); /* 0x360582CC: mov eax, dword ptr [ebp + 8] */ 8932 MEM32(edi + 0x84) = eax; /* 0x360582CF: mov dword ptr [edi + 0x84], eax */ 8933 edi = POP32_VAL(esp); /* 0x360582D5: pop edi */ 8934 esp = ebp; /* 0x360582D6: mov esp, ebp */ 8935 ebp = POP32_VAL(esp); /* 0x360582D8: pop ebp */ 8936 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360582D9: ret 8 */ 8937 L_360582DC: 8938 ecx = MEM32(ebp + 0x8); /* 0x360582DC: mov ecx, dword ptr [ebp + 8] */ 8939 MEM32(edi + 0x84) = ecx; /* 0x360582DF: mov dword ptr [edi + 0x84], ecx */ 8940 edi = POP32_VAL(esp); /* 0x360582E5: pop edi */ 8941 esp = ebp; /* 0x360582E6: mov esp, ebp */ 8942 ebp = POP32_VAL(esp); /* 0x360582E8: pop ebp */ 8943 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360582E9: ret 8 */ 8944 RECOMP_REGS_OUT(); 8945 } 8946 8947 void sub_360582F0(void) { 8948 int _fpu_cmp = 0; 8949 uint32_t _cf = 0; 8950 int _df = 1; 8951 uint32_t _flag_k = FK_NONE; 8952 uint32_t _flag_a = 0, _flag_b = 0; 8953 uint32_t _itail_tgt = 0; 8954 RECOMP_REGS_LOCALS 8955 RECOMP_ENTER(0x360582F0u); 8956 8957 L_360582F0: 8958 PUSH32(esp, esi); /* 0x360582F0: push esi */ 8959 esi = ecx; /* 0x360582F1: mov esi, ecx */ 8960 RECOMP_ICALL(0x360F7B00u); /* 0x360582F3: call 0x360f7b00 */ /* not lifted */ 8961 RECOMP_FLAGS_IN(); 8962 /* test eax, eax */ /* 0x360582F8: test eax, eax */ 8963 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8964 _cf = 0; 8965 _flag_k = FK_TEST; 8966 if (TEST_Z(_flag_a, _flag_b)) goto L_36058318; /* 0x360582FA: je 0x36058318 */ 8967 L_360582FC: 8968 edx = MEM32(esi + 0xA8); /* 0x360582FC: mov edx, dword ptr [esi + 0xa8] */ 8969 /* test edx, edx */ /* 0x36058302: test edx, edx */ 8970 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 8971 _cf = 0; 8972 _flag_k = FK_TEST; 8973 if (TEST_Z(_flag_a, _flag_b)) goto L_36058318; /* 0x36058304: je 0x36058318 */ 8974 L_36058306: 8975 PUSH32(esp, edx); /* 0x36058306: push edx */ 8976 ecx = eax; /* 0x36058307: mov ecx, eax */ 8977 RECOMP_ICALL(0x360FB530u); /* 0x36058309: call 0x360fb530 */ /* not lifted */ 8978 RECOMP_FLAGS_IN(); 8979 MEM32(esi + 0xA8) = 0; /* 0x3605830E: mov dword ptr [esi + 0xa8], 0 */ 8980 L_36058318: 8981 esi = POP32_VAL(esp); /* 0x36058318: pop esi */ 8982 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36058319: ret */ 8983 RECOMP_REGS_OUT(); 8984 } 8985 8986 void sub_36058320(void) { 8987 int _fpu_cmp = 0; 8988 uint32_t _cf = 0; 8989 int _df = 1; 8990 uint32_t _flag_k = FK_NONE; 8991 uint32_t _flag_a = 0, _flag_b = 0; 8992 uint32_t _itail_tgt = 0; 8993 RECOMP_REGS_LOCALS 8994 RECOMP_ENTER(0x36058320u); 8995 8996 L_36058320: 8997 PUSH32(esp, ebp); /* 0x36058320: push ebp */ 8998 ebp = esp; /* 0x36058321: mov ebp, esp */ 8999 PUSH32(esp, 0xFFFFFFFFu); /* 0x36058323: push -1 */ 9000 PUSH32(esp, 0x361647A8u); /* 0x36058325: push 0x361647a8 */ 9001 eax = MEM32(FS_BASE + (0)); /* 0x3605832A: mov eax, dword ptr fs:[0] */ 9002 PUSH32(esp, eax); /* 0x36058330: push eax */ 9003 MEM32(FS_BASE + (0)) = esp; /* 0x36058331: mov dword ptr fs:[0], esp */ 9004 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu); 9005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9006 esp = esp - 0x3Cu; /* 0x36058338: sub esp, 0x3c */ 9007 _flag_k = FK_CMP; 9008 PUSH32(esp, esi); /* 0x3605833B: push esi */ 9009 esi = ecx; /* 0x3605833C: mov esi, ecx */ 9010 eax = MEM32(esi + 0xB4); /* 0x3605833E: mov eax, dword ptr [esi + 0xb4] */ 9011 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9012 eax = eax + 1; /* 0x36058344: inc eax */ 9013 _flag_k = FK_INC; 9014 PUSH32(esp, edi); /* 0x36058345: push edi */ 9015 MEM32(esi + 0xB4) = eax; /* 0x36058346: mov dword ptr [esi + 0xb4], eax */ 9016 eax = MEM32(esi + 0x10); /* 0x3605834C: mov eax, dword ptr [esi + 0x10] */ 9017 ecx = eax + 0xE4; /* 0x3605834F: lea ecx, [eax + 0xe4] */ 9018 eax = MEM32(ecx); /* 0x36058355: mov eax, dword ptr [ecx] */ 9019 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9020 edi = 0; /* 0x36058357: xor edi, edi */ 9021 _cf = 0; 9022 _flag_k = FK_TEST; 9023 PUSH32(esp, edi); /* 0x36058359: push edi */ 9024 PUSH32(esp, 0x88u); /* 0x3605835A: push 0x88 */ 9025 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3605835F: call dword ptr [eax + 4] */ 9026 RECOMP_FLAGS_IN(); 9027 MEM32(ebp + (-0x14)) = eax; /* 0x36058362: mov dword ptr [ebp - 0x14], eax */ 9028 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x36058365: fild dword ptr [ebp - 0x14] */ 9029 _st[0] *= (double)*(float*)ADDR(0x3617114C); /* 0x36058368: fmul dword ptr [0x3617114c] */ 9030 _st[0] = (double)*(float*)ADDR(0x36171148) - _st[0]; /* 0x3605836E: fsubr dword ptr [0x36171148] */ 9031 RECOMP_ICALL(0x3615FD8Cu); /* 0x36058374: call 0x3615fd8c */ /* not lifted */ 9032 RECOMP_FLAGS_IN(); 9033 /* cmp MEM32(esi + 0xB4), eax */ /* 0x36058379: cmp dword ptr [esi + 0xb4], eax */ 9034 _flag_a = (uint32_t)(MEM32(esi + 0xB4)); _flag_b = (uint32_t)(eax); 9035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9036 _flag_k = FK_CMP; 9037 if (CMP_L(_flag_a, _flag_b)) goto L_36058506; /* 0x3605837F: jl 0x36058506 */ 9038 L_36058385: 9039 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x36058385: mov cl, byte ptr [ebp - 0xd] */ 9040 PUSH32(esp, ebx); /* 0x36058388: push ebx */ 9041 MEM32(esi + 0xB4) = edi; /* 0x36058389: mov dword ptr [esi + 0xb4], edi */ 9042 MEM8(ebp + (-0x48)) = (uint8_t)(LO8(ecx)); /* 0x3605838F: mov byte ptr [ebp - 0x48], cl */ 9043 MEM32(ebp + (-0x44)) = edi; /* 0x36058392: mov dword ptr [ebp - 0x44], edi */ 9044 MEM32(ebp + (-0x40)) = edi; /* 0x36058395: mov dword ptr [ebp - 0x40], edi */ 9045 MEM32(ebp + (-0x3C)) = edi; /* 0x36058398: mov dword ptr [ebp - 0x3c], edi */ 9046 edx = MEM32(esi + 0x10); /* 0x3605839B: mov edx, dword ptr [esi + 0x10] */ 9047 eax = MEM32(edx + 0x78); /* 0x3605839E: mov eax, dword ptr [edx + 0x78] */ 9048 PUSH32(esp, eax); /* 0x360583A1: push eax */ 9049 MEM32(ebp + (-0x4)) = edi; /* 0x360583A2: mov dword ptr [ebp - 4], edi */ 9050 RECOMP_ICALL(MEM32(0x36170044)); /* 0x360583A5: call dword ptr [0x36170044] */ 9051 RECOMP_FLAGS_IN(); 9052 ecx = MEM32(esi + 0x10); /* 0x360583AB: mov ecx, dword ptr [esi + 0x10] */ 9053 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9054 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9055 esp = esp + 4; /* 0x360583AE: add esp, 4 */ 9056 _flag_k = FK_ADD; 9057 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 9058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9059 ecx = ecx + 0xE4u; /* 0x360583B1: add ecx, 0xe4 */ 9060 _flag_k = FK_ADD; 9061 PUSH32(esp, edi); /* 0x360583B7: push edi */ 9062 ebx = eax; /* 0x360583B8: mov ebx, eax */ 9063 eax = MEM32(ecx); /* 0x360583BA: mov eax, dword ptr [ecx] */ 9064 PUSH32(esp, 0x88u); /* 0x360583BC: push 0x88 */ 9065 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360583C1: call dword ptr [eax + 4] */ 9066 RECOMP_FLAGS_IN(); 9067 edi = MEM32(0x3616FFB0); /* 0x360583C4: mov edi, dword ptr [0x3616ffb0] */ 9068 MEM32(ebp + (-0x14)) = eax; /* 0x360583CA: mov dword ptr [ebp - 0x14], eax */ 9069 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x360583CD: fild dword ptr [ebp - 0x14] */ 9070 _st[0] *= (double)*(float*)ADDR(0x36171144); /* 0x360583D0: fmul dword ptr [0x36171144] */ 9071 _st[0] += (double)*(float*)ADDR(0x361709C0); /* 0x360583D6: fadd dword ptr [0x361709c0] */ 9072 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x360583DC: fstp dword ptr [ebp - 0x14] */ 9073 ecx = MEM32(ebp + (-0x14)); /* 0x360583DF: mov ecx, dword ptr [ebp - 0x14] */ 9074 PUSH32(esp, ecx); /* 0x360583E2: push ecx */ 9075 ecx = MEM32(esi + 0x10); /* 0x360583E3: mov ecx, dword ptr [esi + 0x10] */ 9076 RECOMP_ICALL(edi); /* 0x360583E6: call edi */ 9077 RECOMP_FLAGS_IN(); 9078 PUSH32(esp, eax); /* 0x360583E8: push eax */ 9079 edx = ebp + (-0x48); /* 0x360583E9: lea edx, [ebp - 0x48] */ 9080 PUSH32(esp, edx); /* 0x360583EC: push edx */ 9081 ecx = ebx; /* 0x360583ED: mov ecx, ebx */ 9082 RECOMP_ICALL(MEM32(0x361700B8)); /* 0x360583EF: call dword ptr [0x361700b8] */ 9083 RECOMP_FLAGS_IN(); 9084 ecx = MEM32(esi + 0x10); /* 0x360583F5: mov ecx, dword ptr [esi + 0x10] */ 9085 RECOMP_ICALL(edi); /* 0x360583F8: call edi */ 9086 RECOMP_FLAGS_IN(); 9087 edx = MEM32(eax + 0x4); /* 0x360583FA: mov edx, dword ptr [eax + 4] */ 9088 ecx = MEM32(eax); /* 0x360583FD: mov ecx, dword ptr [eax] */ 9089 eax = MEM32(eax + 0x8); /* 0x360583FF: mov eax, dword ptr [eax + 8] */ 9090 MEM32(ebp + (-0x1C)) = edx; /* 0x36058402: mov dword ptr [ebp - 0x1c], edx */ 9091 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36058405: fld dword ptr [ebp - 0x1c] */ 9092 _st[0] += (double)*(float*)ADDR(0x36170840); /* 0x36058408: fadd dword ptr [0x36170840] */ 9093 edx = eax; /* 0x3605840E: mov edx, eax */ 9094 MEM32(ebp + (-0x20)) = ecx; /* 0x36058410: mov dword ptr [ebp - 0x20], ecx */ 9095 MEM32(ebp + (-0x18)) = eax; /* 0x36058413: mov dword ptr [ebp - 0x18], eax */ 9096 eax = ecx; /* 0x36058416: mov eax, ecx */ 9097 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36058418: fstp dword ptr [ebp - 0x1c] */ 9098 MEM32(ebp + (-0x20)) = ecx; /* 0x3605841B: mov dword ptr [ebp - 0x20], ecx */ 9099 ecx = MEM32(ebp + (-0x1C)); /* 0x3605841E: mov ecx, dword ptr [ebp - 0x1c] */ 9100 MEM32(ebp + (-0x38)) = eax; /* 0x36058421: mov dword ptr [ebp - 0x38], eax */ 9101 eax = MEM32(ebp + (-0x44)); /* 0x36058424: mov eax, dword ptr [ebp - 0x44] */ 9102 MEM32(ebp + (-0x34)) = ecx; /* 0x36058427: mov dword ptr [ebp - 0x34], ecx */ 9103 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x3605842A: cmp eax, dword ptr [ebp - 0x40] */ 9104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 9105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9106 _flag_k = FK_CMP; 9107 MEM32(ebp + (-0x18)) = edx; /* 0x3605842D: mov dword ptr [ebp - 0x18], edx */ 9108 MEM32(ebp + (-0x30)) = edx; /* 0x36058430: mov dword ptr [ebp - 0x30], edx */ 9109 MEM32(ebp + (-0x14)) = eax; /* 0x36058433: mov dword ptr [ebp - 0x14], eax */ 9110 if (CMP_EQ(_flag_a, _flag_b)) goto L_360584FC; /* 0x36058436: je 0x360584fc */ 9111 L_3605843C: 9112 eax = MEM32(ebp + (-0x14)); /* 0x3605843C: mov eax, dword ptr [ebp - 0x14] */ 9113 PUSH32(esp, eax); /* 0x3605843F: push eax */ 9114 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36058440: call dword ptr [0x3616ff70] */ 9115 RECOMP_FLAGS_IN(); 9116 edi = eax; /* 0x36058446: mov edi, eax */ 9117 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9119 esp = esp + 4; /* 0x36058448: add esp, 4 */ 9120 _flag_k = FK_ADD; 9121 ecx = edi; /* 0x3605844B: mov ecx, edi */ 9122 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3605844D: call dword ptr [0x3616ffb0] */ 9123 RECOMP_FLAGS_IN(); 9124 edx = MEM32(eax + 0x4); /* 0x36058453: mov edx, dword ptr [eax + 4] */ 9125 ecx = MEM32(eax); /* 0x36058456: mov ecx, dword ptr [eax] */ 9126 eax = MEM32(eax + 0x8); /* 0x36058458: mov eax, dword ptr [eax + 8] */ 9127 MEM32(ebp + (-0x1C)) = edx; /* 0x3605845B: mov dword ptr [ebp - 0x1c], edx */ 9128 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3605845E: fld dword ptr [ebp - 0x1c] */ 9129 _st[0] += (double)*(float*)ADDR(0x36170840); /* 0x36058461: fadd dword ptr [0x36170840] */ 9130 MEM32(ebp + (-0x20)) = ecx; /* 0x36058467: mov dword ptr [ebp - 0x20], ecx */ 9131 edx = eax; /* 0x3605846A: mov edx, eax */ 9132 MEM32(ebp + (-0x18)) = eax; /* 0x3605846C: mov dword ptr [ebp - 0x18], eax */ 9133 eax = ecx; /* 0x3605846F: mov eax, ecx */ 9134 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36058471: fstp dword ptr [ebp - 0x1c] */ 9135 MEM32(ebp + (-0x20)) = ecx; /* 0x36058474: mov dword ptr [ebp - 0x20], ecx */ 9136 ecx = MEM32(ebp + (-0x1C)); /* 0x36058477: mov ecx, dword ptr [ebp - 0x1c] */ 9137 MEM32(ebp + (-0x28)) = ecx; /* 0x3605847A: mov dword ptr [ebp - 0x28], ecx */ 9138 ecx = ebx; /* 0x3605847D: mov ecx, ebx */ 9139 MEM32(ebp + (-0x18)) = edx; /* 0x3605847F: mov dword ptr [ebp - 0x18], edx */ 9140 MEM32(ebp + (-0x2C)) = eax; /* 0x36058482: mov dword ptr [ebp - 0x2c], eax */ 9141 MEM32(ebp + (-0x24)) = edx; /* 0x36058485: mov dword ptr [ebp - 0x24], edx */ 9142 RECOMP_ICALL(MEM32(0x361700D8)); /* 0x36058488: call dword ptr [0x361700d8] */ 9143 RECOMP_FLAGS_IN(); 9144 /* test LO8(eax), LO8(eax) */ /* 0x3605848E: test al, al */ 9145 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9146 _cf = 0; 9147 _flag_k = FK_NARROW(FK_TEST, 24); 9148 if (TEST_Z(_flag_a, _flag_b)) goto L_360584B0; /* 0x36058490: je 0x360584b0 */ 9149 L_36058492: 9150 ecx = MEM32(esi + 0x10); /* 0x36058492: mov ecx, dword ptr [esi + 0x10] */ 9151 RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36058495: call dword ptr [0x361700b4] */ 9152 RECOMP_FLAGS_IN(); 9153 PUSH32(esp, eax); /* 0x3605849B: push eax */ 9154 eax = ebp + (-0x2C); /* 0x3605849C: lea eax, [ebp - 0x2c] */ 9155 PUSH32(esp, eax); /* 0x3605849F: push eax */ 9156 ecx = ebp + (-0x38); /* 0x360584A0: lea ecx, [ebp - 0x38] */ 9157 PUSH32(esp, ecx); /* 0x360584A3: push ecx */ 9158 ecx = ebx; /* 0x360584A4: mov ecx, ebx */ 9159 RECOMP_ICALL(MEM32(0x361700C4)); /* 0x360584A6: call dword ptr [0x361700c4] */ 9160 RECOMP_FLAGS_IN(); 9161 /* test LO8(eax), LO8(eax) */ /* 0x360584AC: test al, al */ 9162 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9163 _cf = 0; 9164 _flag_k = FK_NARROW(FK_TEST, 24); 9165 if (TEST_Z(_flag_a, _flag_b)) goto L_360584E5; /* 0x360584AE: je 0x360584e5 */ 9166 L_360584B0: 9167 PUSH32(esp, 0); /* 0x360584B0: push 0 */ 9168 PUSH32(esp, 0x361B2CD8u); /* 0x360584B2: push 0x361b2cd8 */ 9169 PUSH32(esp, 0x361B2CC0u); /* 0x360584B7: push 0x361b2cc0 */ 9170 PUSH32(esp, 0); /* 0x360584BC: push 0 */ 9171 PUSH32(esp, edi); /* 0x360584BE: push edi */ 9172 RECOMP_ICALL(0x3615FD86u); /* 0x360584BF: call 0x3615fd86 */ /* not lifted */ 9173 RECOMP_FLAGS_IN(); 9174 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9175 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9176 esp = esp + 0x14u; /* 0x360584C4: add esp, 0x14 */ 9177 _flag_k = FK_ADD; 9178 /* test eax, eax */ /* 0x360584C7: test eax, eax */ 9179 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9180 _cf = 0; 9181 _flag_k = FK_TEST; 9182 if (TEST_Z(_flag_a, _flag_b)) goto L_360584E5; /* 0x360584C9: je 0x360584e5 */ 9183 L_360584CB: 9184 ecx = MEM32(eax + 0x11C); /* 0x360584CB: mov ecx, dword ptr [eax + 0x11c] */ 9185 /* test HI8(ecx), 1 */ /* 0x360584D1: test ch, 1 */ 9186 _flag_a = (uint32_t)(HI8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 9187 _cf = 0; 9188 _flag_k = FK_NARROW(FK_TEST, 24); 9189 if (TEST_Z(_flag_a, _flag_b)) goto L_360584E5; /* 0x360584D4: je 0x360584e5 */ 9190 L_360584D6: 9191 edx = MEM32(esi + 0x10); /* 0x360584D6: mov edx, dword ptr [esi + 0x10] */ 9192 ecx = MEM32(edx + 0x188); /* 0x360584D9: mov ecx, dword ptr [edx + 0x188] */ 9193 PUSH32(esp, eax); /* 0x360584DF: push eax */ 9194 RECOMP_ICALL(0x3605A8D0u); /* 0x360584E0: call 0x3605a8d0 */ /* not lifted */ 9195 RECOMP_FLAGS_IN(); 9196 L_360584E5: 9197 eax = MEM32(ebp + (-0x14)); /* 0x360584E5: mov eax, dword ptr [ebp - 0x14] */ 9198 ecx = MEM32(ebp + (-0x40)); /* 0x360584E8: mov ecx, dword ptr [ebp - 0x40] */ 9199 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 9200 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9201 eax = eax + 8; /* 0x360584EB: add eax, 8 */ 9202 _flag_k = FK_ADD; 9203 /* cmp eax, ecx */ /* 0x360584EE: cmp eax, ecx */ 9204 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9206 _flag_k = FK_CMP; 9207 MEM32(ebp + (-0x14)) = eax; /* 0x360584F0: mov dword ptr [ebp - 0x14], eax */ 9208 RECOMP_BACKEDGE(); 9209 if (CMP_NE(_flag_a, _flag_b)) goto L_3605843C; /* 0x360584F3: jne 0x3605843c */ 9210 L_360584F9: 9211 eax = MEM32(ebp + (-0x44)); /* 0x360584F9: mov eax, dword ptr [ebp - 0x44] */ 9212 L_360584FC: 9213 PUSH32(esp, eax); /* 0x360584FC: push eax */ 9214 RECOMP_ICALL(0x3615FCC4u); /* 0x360584FD: call 0x3615fcc4 */ /* not lifted */ 9215 RECOMP_FLAGS_IN(); 9216 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9217 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9218 esp = esp + 4; /* 0x36058502: add esp, 4 */ 9219 _flag_k = FK_ADD; 9220 ebx = POP32_VAL(esp); /* 0x36058505: pop ebx */ 9221 L_36058506: 9222 ecx = MEM32(ebp + (-0xC)); /* 0x36058506: mov ecx, dword ptr [ebp - 0xc] */ 9223 edi = POP32_VAL(esp); /* 0x36058509: pop edi */ 9224 esi = POP32_VAL(esp); /* 0x3605850A: pop esi */ 9225 MEM32(FS_BASE + (0)) = ecx; /* 0x3605850B: mov dword ptr fs:[0], ecx */ 9226 esp = ebp; /* 0x36058512: mov esp, ebp */ 9227 ebp = POP32_VAL(esp); /* 0x36058514: pop ebp */ 9228 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36058515: ret */ 9229 RECOMP_REGS_OUT(); 9230 } 9231 9232 void sub_36058520(void) { 9233 int _fpu_cmp = 0; 9234 uint32_t _cf = 0; 9235 int _df = 1; 9236 uint32_t _flag_k = FK_NONE; 9237 uint32_t _flag_a = 0, _flag_b = 0; 9238 uint32_t _itail_tgt = 0; 9239 RECOMP_REGS_LOCALS 9240 RECOMP_ENTER(0x36058520u); 9241 9242 L_36058520: 9243 PUSH32(esp, ebp); /* 0x36058520: push ebp */ 9244 ebp = esp; /* 0x36058521: mov ebp, esp */ 9245 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9247 esp = esp - 0xCu; /* 0x36058523: sub esp, 0xc */ 9248 _flag_k = FK_CMP; 9249 PUSH32(esp, ebx); /* 0x36058526: push ebx */ 9250 PUSH32(esp, esi); /* 0x36058527: push esi */ 9251 PUSH32(esp, edi); /* 0x36058528: push edi */ 9252 edi = ecx; /* 0x36058529: mov edi, ecx */ 9253 RECOMP_ICALL(0x36157B10u); /* 0x3605852B: call 0x36157b10 */ /* not lifted */ 9254 RECOMP_FLAGS_IN(); 9255 ecx = MEM32(ebp + 0x8); /* 0x36058530: mov ecx, dword ptr [ebp + 8] */ 9256 esi = eax; /* 0x36058533: mov esi, eax */ 9257 ebx = MEM32(esi); /* 0x36058535: mov ebx, dword ptr [esi] */ 9258 eax = ebp + (-0xC); /* 0x36058537: lea eax, [ebp - 0xc] */ 9259 PUSH32(esp, eax); /* 0x3605853A: push eax */ 9260 RECOMP_ICALL(0x36090EB0u); /* 0x3605853B: call 0x36090eb0 */ /* not lifted */ 9261 RECOMP_FLAGS_IN(); 9262 ecx = MEM32(edi + 0x10); /* 0x36058540: mov ecx, dword ptr [edi + 0x10] */ 9263 PUSH32(esp, eax); /* 0x36058543: push eax */ 9264 PUSH32(esp, ecx); /* 0x36058544: push ecx */ 9265 ecx = esi; /* 0x36058545: mov ecx, esi */ 9266 RECOMP_ICALL(MEM32(ebx + 0xC)); /* 0x36058547: call dword ptr [ebx + 0xc] */ 9267 RECOMP_FLAGS_IN(); 9268 edi = POP32_VAL(esp); /* 0x3605854A: pop edi */ 9269 esi = POP32_VAL(esp); /* 0x3605854B: pop esi */ 9270 ebx = POP32_VAL(esp); /* 0x3605854C: pop ebx */ 9271 esp = ebp; /* 0x3605854D: mov esp, ebp */ 9272 ebp = POP32_VAL(esp); /* 0x3605854F: pop ebp */ 9273 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36058550: ret 4 */ 9274 RECOMP_REGS_OUT(); 9275 } 9276 9277 void sub_36058560(void) { 9278 int _fpu_cmp = 0; 9279 uint32_t _cf = 0; 9280 int _df = 1; 9281 uint32_t _flag_k = FK_NONE; 9282 uint32_t _flag_a = 0, _flag_b = 0; 9283 uint32_t _itail_tgt = 0; 9284 RECOMP_REGS_LOCALS 9285 RECOMP_ENTER(0x36058560u); 9286 9287 L_36058560: 9288 PUSH32(esp, ebp); /* 0x36058560: push ebp */ 9289 ebp = esp; /* 0x36058561: mov ebp, esp */ 9290 PUSH32(esp, 0xFFFFFFFFu); /* 0x36058563: push -1 */ 9291 PUSH32(esp, 0x361647CBu); /* 0x36058565: push 0x361647cb */ 9292 eax = MEM32(FS_BASE + (0)); /* 0x3605856A: mov eax, dword ptr fs:[0] */ 9293 PUSH32(esp, eax); /* 0x36058570: push eax */ 9294 MEM32(FS_BASE + (0)) = esp; /* 0x36058571: mov dword ptr fs:[0], esp */ 9295 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9297 esp = esp - 0xCu; /* 0x36058578: sub esp, 0xc */ 9298 _flag_k = FK_CMP; 9299 PUSH32(esp, ebx); /* 0x3605857B: push ebx */ 9300 PUSH32(esp, esi); /* 0x3605857C: push esi */ 9301 PUSH32(esp, edi); /* 0x3605857D: push edi */ 9302 edi = ecx; /* 0x3605857E: mov edi, ecx */ 9303 esi = MEM32(edi + 0xAC); /* 0x36058580: mov esi, dword ptr [edi + 0xac] */ 9304 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9305 ebx = 0; /* 0x36058586: xor ebx, ebx */ 9306 _cf = 0; 9307 _flag_k = FK_TEST; 9308 /* cmp esi, ebx */ /* 0x36058588: cmp esi, ebx */ 9309 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9311 _flag_k = FK_CMP; 9312 if (CMP_EQ(_flag_a, _flag_b)) goto L_360585C1; /* 0x3605858A: je 0x360585c1 */ 9313 L_3605858C: 9314 eax = MEM32(esi + 0x4); /* 0x3605858C: mov eax, dword ptr [esi + 4] */ 9315 /* cmp eax, ebx */ /* 0x3605858F: cmp eax, ebx */ 9316 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9318 _flag_k = FK_CMP; 9319 if (CMP_EQ(_flag_a, _flag_b)) goto L_360585AF; /* 0x36058591: je 0x360585af */ 9320 L_36058593: 9321 ecx = eax + (-0x1); /* 0x36058593: lea ecx, [eax - 1] */ 9322 SET_LO8(eax, MEM8(ecx)); /* 0x36058596: mov al, byte ptr [ecx] */ 9323 /* cmp LO8(eax), LO8(ebx) */ /* 0x36058598: cmp al, bl */ 9324 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9326 _flag_k = FK_NARROW(FK_CMP, 24); 9327 if (CMP_EQ(_flag_a, _flag_b)) goto L_360585A6; /* 0x3605859A: je 0x360585a6 */ 9328 L_3605859C: 9329 /* cmp LO8(eax), 0xFFu */ /* 0x3605859C: cmp al, 0xff */ 9330 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 9331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9332 _flag_k = FK_NARROW(FK_CMP, 24); 9333 if (CMP_EQ(_flag_a, _flag_b)) goto L_360585A6; /* 0x3605859E: je 0x360585a6 */ 9334 L_360585A0: 9335 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9336 SET_LO8(eax, LO8(eax) - 1); /* 0x360585A0: dec al */ 9337 _flag_k = FK_NARROW(FK_DEC, 24); 9338 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x360585A2: mov byte ptr [ecx], al */ 9339 goto L_360585AF; /* 0x360585A4: jmp 0x360585af */ 9340 L_360585A6: 9341 PUSH32(esp, ecx); /* 0x360585A6: push ecx */ 9342 RECOMP_ICALL(0x3615FCC4u); /* 0x360585A7: call 0x3615fcc4 */ /* not lifted */ 9343 RECOMP_FLAGS_IN(); 9344 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9345 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9346 esp = esp + 4; /* 0x360585AC: add esp, 4 */ 9347 _flag_k = FK_ADD; 9348 L_360585AF: 9349 PUSH32(esp, esi); /* 0x360585AF: push esi */ 9350 MEM32(esi + 0x4) = ebx; /* 0x360585B0: mov dword ptr [esi + 4], ebx */ 9351 MEM32(esi + 0x8) = ebx; /* 0x360585B3: mov dword ptr [esi + 8], ebx */ 9352 MEM32(esi + 0xC) = ebx; /* 0x360585B6: mov dword ptr [esi + 0xc], ebx */ 9353 RECOMP_ICALL(0x3615FCC4u); /* 0x360585B9: call 0x3615fcc4 */ /* not lifted */ 9354 RECOMP_FLAGS_IN(); 9355 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9356 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9357 esp = esp + 4; /* 0x360585BE: add esp, 4 */ 9358 _flag_k = FK_ADD; 9359 L_360585C1: 9360 PUSH32(esp, 0x10u); /* 0x360585C1: push 0x10 */ 9361 RECOMP_ICALL(0x3615FD6Au); /* 0x360585C3: call 0x3615fd6a */ /* not lifted */ 9362 RECOMP_FLAGS_IN(); 9363 esi = eax; /* 0x360585C8: mov esi, eax */ 9364 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9366 esp = esp + 4; /* 0x360585CA: add esp, 4 */ 9367 _flag_k = FK_ADD; 9368 MEM32(ebp + (-0x10)) = esi; /* 0x360585CD: mov dword ptr [ebp - 0x10], esi */ 9369 /* cmp esi, ebx */ /* 0x360585D0: cmp esi, ebx */ 9370 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9372 _flag_k = FK_CMP; 9373 MEM32(ebp + (-0x4)) = ebx; /* 0x360585D2: mov dword ptr [ebp - 4], ebx */ 9374 if (CMP_EQ(_flag_a, _flag_b)) goto L_360585FC; /* 0x360585D5: je 0x360585fc */ 9375 L_360585D7: 9376 eax = MEM32(ebp + 0x8); /* 0x360585D7: mov eax, dword ptr [ebp + 8] */ 9377 SET_LO8(ecx, MEM8(eax)); /* 0x360585DA: mov cl, byte ptr [eax] */ 9378 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x360585DC: mov byte ptr [esi], cl */ 9379 MEM32(esi + 0x4) = ebx; /* 0x360585DE: mov dword ptr [esi + 4], ebx */ 9380 MEM32(esi + 0x8) = ebx; /* 0x360585E1: mov dword ptr [esi + 8], ebx */ 9381 MEM32(esi + 0xC) = ebx; /* 0x360585E4: mov dword ptr [esi + 0xc], ebx */ 9382 edx = MEM32(0x3616F010); /* 0x360585E7: mov edx, dword ptr [0x3616f010] */ 9383 ecx = MEM32(edx); /* 0x360585ED: mov ecx, dword ptr [edx] */ 9384 PUSH32(esp, ecx); /* 0x360585EF: push ecx */ 9385 PUSH32(esp, ebx); /* 0x360585F0: push ebx */ 9386 PUSH32(esp, eax); /* 0x360585F1: push eax */ 9387 ecx = esi; /* 0x360585F2: mov ecx, esi */ 9388 RECOMP_ICALL(MEM32(0x3616F024)); /* 0x360585F4: call dword ptr [0x3616f024] */ 9389 RECOMP_FLAGS_IN(); 9390 goto L_360585FE; /* 0x360585FA: jmp 0x360585fe */ 9391 L_360585FC: 9392 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9393 esi = 0; /* 0x360585FC: xor esi, esi */ 9394 _cf = 0; 9395 _flag_k = FK_TEST; 9396 L_360585FE: 9397 eax = MEM32(edi + 0x10); /* 0x360585FE: mov eax, dword ptr [edi + 0x10] */ 9398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 9399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9400 eax = eax + 4; /* 0x36058601: add eax, 4 */ 9401 _flag_k = FK_ADD; 9402 edx = ebp + (-0x18); /* 0x36058604: lea edx, [ebp - 0x18] */ 9403 /* cmp edx, eax */ /* 0x36058607: cmp edx, eax */ 9404 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9406 _flag_k = FK_CMP; 9407 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36058609: mov dword ptr [ebp - 4], 0xffffffff */ 9408 MEM32(edi + 0xAC) = esi; /* 0x36058610: mov dword ptr [edi + 0xac], esi */ 9409 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058623; /* 0x36058616: je 0x36058623 */ 9410 L_36058618: 9411 ecx = MEM32(eax); /* 0x36058618: mov ecx, dword ptr [eax] */ 9412 MEM32(ebp + (-0x18)) = ecx; /* 0x3605861A: mov dword ptr [ebp - 0x18], ecx */ 9413 edx = MEM32(eax + 0x4); /* 0x3605861D: mov edx, dword ptr [eax + 4] */ 9414 MEM32(ebp + (-0x14)) = edx; /* 0x36058620: mov dword ptr [ebp - 0x14], edx */ 9415 L_36058623: 9416 PUSH32(esp, ebx); /* 0x36058623: push ebx */ 9417 eax = ebp + (-0x18); /* 0x36058624: lea eax, [ebp - 0x18] */ 9418 PUSH32(esp, eax); /* 0x36058627: push eax */ 9419 PUSH32(esp, 0x42u); /* 0x36058628: push 0x42 */ 9420 RECOMP_ICALL(0x3601C590u); /* 0x3605862A: call 0x3601c590 */ /* not lifted */ 9421 RECOMP_FLAGS_IN(); 9422 ecx = eax; /* 0x3605862F: mov ecx, eax */ 9423 RECOMP_ICALL(0x3601D080u); /* 0x36058631: call 0x3601d080 */ /* not lifted */ 9424 RECOMP_FLAGS_IN(); 9425 ecx = MEM32(ebp + (-0xC)); /* 0x36058636: mov ecx, dword ptr [ebp - 0xc] */ 9426 edi = POP32_VAL(esp); /* 0x36058639: pop edi */ 9427 esi = POP32_VAL(esp); /* 0x3605863A: pop esi */ 9428 ebx = POP32_VAL(esp); /* 0x3605863B: pop ebx */ 9429 MEM32(FS_BASE + (0)) = ecx; /* 0x3605863C: mov dword ptr fs:[0], ecx */ 9430 esp = ebp; /* 0x36058643: mov esp, ebp */ 9431 ebp = POP32_VAL(esp); /* 0x36058645: pop ebp */ 9432 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36058646: ret 4 */ 9433 RECOMP_REGS_OUT(); 9434 } 9435 9436 void sub_36058650(void) { 9437 int _fpu_cmp = 0; 9438 uint32_t _cf = 0; 9439 int _df = 1; 9440 uint32_t _flag_k = FK_NONE; 9441 uint32_t _flag_a = 0, _flag_b = 0; 9442 uint32_t _itail_tgt = 0; 9443 RECOMP_REGS_LOCALS 9444 RECOMP_ENTER(0x36058650u); 9445 9446 L_36058650: 9447 PUSH32(esp, ebp); /* 0x36058650: push ebp */ 9448 ebp = esp; /* 0x36058651: mov ebp, esp */ 9449 PUSH32(esp, 0xFFFFFFFFu); /* 0x36058653: push -1 */ 9450 PUSH32(esp, 0x361647E8u); /* 0x36058655: push 0x361647e8 */ 9451 eax = MEM32(FS_BASE + (0)); /* 0x3605865A: mov eax, dword ptr fs:[0] */ 9452 PUSH32(esp, eax); /* 0x36058660: push eax */ 9453 MEM32(FS_BASE + (0)) = esp; /* 0x36058661: mov dword ptr fs:[0], esp */ 9454 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu); 9455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9456 esp = esp - 0x3Cu; /* 0x36058668: sub esp, 0x3c */ 9457 _flag_k = FK_CMP; 9458 PUSH32(esp, esi); /* 0x3605866B: push esi */ 9459 esi = ecx; /* 0x3605866C: mov esi, ecx */ 9460 eax = MEM32(esi + 0x10); /* 0x3605866E: mov eax, dword ptr [esi + 0x10] */ 9461 ecx = MEM32(eax + 0x154); /* 0x36058671: mov ecx, dword ptr [eax + 0x154] */ 9462 PUSH32(esp, edi); /* 0x36058677: push edi */ 9463 PUSH32(esp, 0x88u); /* 0x36058678: push 0x88 */ 9464 RECOMP_ICALL(0x36073AB0u); /* 0x3605867D: call 0x36073ab0 */ /* not lifted */ 9465 RECOMP_FLAGS_IN(); 9466 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9467 edi = 0; /* 0x36058682: xor edi, edi */ 9468 _cf = 0; 9469 _flag_k = FK_TEST; 9470 /* cmp eax, edi */ /* 0x36058684: cmp eax, edi */ 9471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9473 _flag_k = FK_CMP; 9474 if (CMP_LE(_flag_a, _flag_b)) goto L_360586A7; /* 0x36058686: jle 0x360586a7 */ 9475 L_36058688: 9476 ecx = MEM32(esi + 0x10); /* 0x36058688: mov ecx, dword ptr [esi + 0x10] */ 9477 ecx = MEM32(ecx + 0x154); /* 0x3605868B: mov ecx, dword ptr [ecx + 0x154] */ 9478 PUSH32(esp, eax); /* 0x36058691: push eax */ 9479 RECOMP_ICALL(0x36073910u); /* 0x36058692: call 0x36073910 */ /* not lifted */ 9480 RECOMP_FLAGS_IN(); 9481 edi = POP32_VAL(esp); /* 0x36058697: pop edi */ 9482 esi = POP32_VAL(esp); /* 0x36058698: pop esi */ 9483 ecx = MEM32(ebp + (-0xC)); /* 0x36058699: mov ecx, dword ptr [ebp - 0xc] */ 9484 MEM32(FS_BASE + (0)) = ecx; /* 0x3605869C: mov dword ptr fs:[0], ecx */ 9485 esp = ebp; /* 0x360586A3: mov esp, ebp */ 9486 ebp = POP32_VAL(esp); /* 0x360586A5: pop ebp */ 9487 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360586A6: ret */ 9488 L_360586A7: 9489 edx = MEM32(esi + 0x10); /* 0x360586A7: mov edx, dword ptr [esi + 0x10] */ 9490 ecx = MEM32(edx + 0x154); /* 0x360586AA: mov ecx, dword ptr [edx + 0x154] */ 9491 PUSH32(esp, ebx); /* 0x360586B0: push ebx */ 9492 PUSH32(esp, 5); /* 0x360586B1: push 5 */ 9493 PUSH32(esp, 0x88u); /* 0x360586B3: push 0x88 */ 9494 RECOMP_ICALL(0x36073AE0u); /* 0x360586B8: call 0x36073ae0 */ /* not lifted */ 9495 RECOMP_FLAGS_IN(); 9496 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x360586BD: mov al, byte ptr [ebp - 0xd] */ 9497 MEM8(ebp + (-0x48)) = (uint8_t)(LO8(eax)); /* 0x360586C0: mov byte ptr [ebp - 0x48], al */ 9498 MEM32(ebp + (-0x44)) = edi; /* 0x360586C3: mov dword ptr [ebp - 0x44], edi */ 9499 MEM32(ebp + (-0x40)) = edi; /* 0x360586C6: mov dword ptr [ebp - 0x40], edi */ 9500 MEM32(ebp + (-0x3C)) = edi; /* 0x360586C9: mov dword ptr [ebp - 0x3c], edi */ 9501 ecx = MEM32(esi + 0x10); /* 0x360586CC: mov ecx, dword ptr [esi + 0x10] */ 9502 eax = MEM32(ecx + 0x78); /* 0x360586CF: mov eax, dword ptr [ecx + 0x78] */ 9503 PUSH32(esp, eax); /* 0x360586D2: push eax */ 9504 MEM32(ebp + (-0x4)) = edi; /* 0x360586D3: mov dword ptr [ebp - 4], edi */ 9505 RECOMP_ICALL(MEM32(0x36170044)); /* 0x360586D6: call dword ptr [0x36170044] */ 9506 RECOMP_FLAGS_IN(); 9507 ecx = MEM32(esi + 0x10); /* 0x360586DC: mov ecx, dword ptr [esi + 0x10] */ 9508 edx = MEM32(ecx + 0xE4); /* 0x360586DF: mov edx, dword ptr [ecx + 0xe4] */ 9509 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9510 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9511 esp = esp + 4; /* 0x360586E5: add esp, 4 */ 9512 _flag_k = FK_ADD; 9513 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 9514 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9515 ecx = ecx + 0xE4u; /* 0x360586E8: add ecx, 0xe4 */ 9516 _flag_k = FK_ADD; 9517 PUSH32(esp, edi); /* 0x360586EE: push edi */ 9518 PUSH32(esp, 0x88u); /* 0x360586EF: push 0x88 */ 9519 ebx = eax; /* 0x360586F4: mov ebx, eax */ 9520 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360586F6: call dword ptr [edx + 4] */ 9521 RECOMP_FLAGS_IN(); 9522 ecx = MEM32(esi + 0x10); /* 0x360586F9: mov ecx, dword ptr [esi + 0x10] */ 9523 edi = MEM32(0x3616FFB0); /* 0x360586FC: mov edi, dword ptr [0x3616ffb0] */ 9524 MEM32(ebp + (-0x14)) = eax; /* 0x36058702: mov dword ptr [ebp - 0x14], eax */ 9525 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x36058705: fild dword ptr [ebp - 0x14] */ 9526 _st[0] *= (double)*(float*)ADDR(0x36171144); /* 0x36058708: fmul dword ptr [0x36171144] */ 9527 _st[0] += (double)*(float*)ADDR(0x361709C0); /* 0x3605870E: fadd dword ptr [0x361709c0] */ 9528 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36058714: fstp dword ptr [ebp - 0x14] */ 9529 eax = MEM32(ebp + (-0x14)); /* 0x36058717: mov eax, dword ptr [ebp - 0x14] */ 9530 PUSH32(esp, eax); /* 0x3605871A: push eax */ 9531 RECOMP_ICALL(edi); /* 0x3605871B: call edi */ 9532 RECOMP_FLAGS_IN(); 9533 PUSH32(esp, eax); /* 0x3605871D: push eax */ 9534 ecx = ebp + (-0x48); /* 0x3605871E: lea ecx, [ebp - 0x48] */ 9535 PUSH32(esp, ecx); /* 0x36058721: push ecx */ 9536 ecx = ebx; /* 0x36058722: mov ecx, ebx */ 9537 RECOMP_ICALL(MEM32(0x361700B8)); /* 0x36058724: call dword ptr [0x361700b8] */ 9538 RECOMP_FLAGS_IN(); 9539 ecx = MEM32(esi + 0x10); /* 0x3605872A: mov ecx, dword ptr [esi + 0x10] */ 9540 RECOMP_ICALL(edi); /* 0x3605872D: call edi */ 9541 RECOMP_FLAGS_IN(); 9542 ecx = MEM32(eax + 0x4); /* 0x3605872F: mov ecx, dword ptr [eax + 4] */ 9543 edx = MEM32(eax); /* 0x36058732: mov edx, dword ptr [eax] */ 9544 MEM32(ebp + (-0x1C)) = ecx; /* 0x36058734: mov dword ptr [ebp - 0x1c], ecx */ 9545 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36058737: fld dword ptr [ebp - 0x1c] */ 9546 _st[0] += (double)*(float*)ADDR(0x36170840); /* 0x3605873A: fadd dword ptr [0x36170840] */ 9547 MEM32(ebp + (-0x20)) = edx; /* 0x36058740: mov dword ptr [ebp - 0x20], edx */ 9548 edx = MEM32(eax + 0x8); /* 0x36058743: mov edx, dword ptr [eax + 8] */ 9549 eax = MEM32(ebp + (-0x20)); /* 0x36058746: mov eax, dword ptr [ebp - 0x20] */ 9550 ecx = edx; /* 0x36058749: mov ecx, edx */ 9551 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3605874B: fstp dword ptr [ebp - 0x1c] */ 9552 MEM32(ebp + (-0x18)) = edx; /* 0x3605874E: mov dword ptr [ebp - 0x18], edx */ 9553 edx = eax; /* 0x36058751: mov edx, eax */ 9554 MEM32(ebp + (-0x20)) = eax; /* 0x36058753: mov dword ptr [ebp - 0x20], eax */ 9555 eax = MEM32(ebp + (-0x1C)); /* 0x36058756: mov eax, dword ptr [ebp - 0x1c] */ 9556 MEM32(ebp + (-0x18)) = ecx; /* 0x36058759: mov dword ptr [ebp - 0x18], ecx */ 9557 MEM32(ebp + (-0x34)) = eax; /* 0x3605875C: mov dword ptr [ebp - 0x34], eax */ 9558 eax = MEM32(ebp + (-0x44)); /* 0x3605875F: mov eax, dword ptr [ebp - 0x44] */ 9559 MEM32(ebp + (-0x30)) = ecx; /* 0x36058762: mov dword ptr [ebp - 0x30], ecx */ 9560 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x36058765: cmp eax, dword ptr [ebp - 0x40] */ 9561 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 9562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9563 _flag_k = FK_CMP; 9564 MEM32(ebp + (-0x38)) = edx; /* 0x36058768: mov dword ptr [ebp - 0x38], edx */ 9565 MEM32(ebp + (-0x14)) = eax; /* 0x3605876B: mov dword ptr [ebp - 0x14], eax */ 9566 if (CMP_EQ(_flag_a, _flag_b)) goto L_3605883C; /* 0x3605876E: je 0x3605883c */ 9567 L_36058774: 9568 edx = MEM32(ebp + (-0x14)); /* 0x36058774: mov edx, dword ptr [ebp - 0x14] */ 9569 PUSH32(esp, edx); /* 0x36058777: push edx */ 9570 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36058778: call dword ptr [0x3616ff70] */ 9571 RECOMP_FLAGS_IN(); 9572 PUSH32(esp, 0); /* 0x3605877E: push 0 */ 9573 PUSH32(esp, 0x361B2CF8u); /* 0x36058780: push 0x361b2cf8 */ 9574 PUSH32(esp, 0x361B2CC0u); /* 0x36058785: push 0x361b2cc0 */ 9575 edi = eax; /* 0x3605878A: mov edi, eax */ 9576 PUSH32(esp, 0); /* 0x3605878C: push 0 */ 9577 PUSH32(esp, edi); /* 0x3605878E: push edi */ 9578 RECOMP_ICALL(0x3615FD86u); /* 0x3605878F: call 0x3615fd86 */ /* not lifted */ 9579 RECOMP_FLAGS_IN(); 9580 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 9581 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9582 esp = esp + 0x18u; /* 0x36058794: add esp, 0x18 */ 9583 _flag_k = FK_ADD; 9584 ecx = edi; /* 0x36058797: mov ecx, edi */ 9585 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36058799: call dword ptr [0x3616ffb0] */ 9586 RECOMP_FLAGS_IN(); 9587 edx = MEM32(eax + 0x4); /* 0x3605879F: mov edx, dword ptr [eax + 4] */ 9588 ecx = MEM32(eax); /* 0x360587A2: mov ecx, dword ptr [eax] */ 9589 eax = MEM32(eax + 0x8); /* 0x360587A4: mov eax, dword ptr [eax + 8] */ 9590 MEM32(ebp + (-0x1C)) = edx; /* 0x360587A7: mov dword ptr [ebp - 0x1c], edx */ 9591 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x360587AA: fld dword ptr [ebp - 0x1c] */ 9592 _st[0] += (double)*(float*)ADDR(0x36170840); /* 0x360587AD: fadd dword ptr [0x36170840] */ 9593 MEM32(ebp + (-0x20)) = ecx; /* 0x360587B3: mov dword ptr [ebp - 0x20], ecx */ 9594 edx = eax; /* 0x360587B6: mov edx, eax */ 9595 MEM32(ebp + (-0x18)) = eax; /* 0x360587B8: mov dword ptr [ebp - 0x18], eax */ 9596 eax = ecx; /* 0x360587BB: mov eax, ecx */ 9597 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x360587BD: fstp dword ptr [ebp - 0x1c] */ 9598 MEM32(ebp + (-0x20)) = ecx; /* 0x360587C0: mov dword ptr [ebp - 0x20], ecx */ 9599 ecx = MEM32(ebp + (-0x1C)); /* 0x360587C3: mov ecx, dword ptr [ebp - 0x1c] */ 9600 MEM32(ebp + (-0x28)) = ecx; /* 0x360587C6: mov dword ptr [ebp - 0x28], ecx */ 9601 ecx = MEM32(esi + 0x10); /* 0x360587C9: mov ecx, dword ptr [esi + 0x10] */ 9602 MEM32(ebp + (-0x18)) = edx; /* 0x360587CC: mov dword ptr [ebp - 0x18], edx */ 9603 MEM32(ebp + (-0x2C)) = eax; /* 0x360587CF: mov dword ptr [ebp - 0x2c], eax */ 9604 MEM32(ebp + (-0x24)) = edx; /* 0x360587D2: mov dword ptr [ebp - 0x24], edx */ 9605 RECOMP_ICALL(MEM32(0x361700B4)); /* 0x360587D5: call dword ptr [0x361700b4] */ 9606 RECOMP_FLAGS_IN(); 9607 PUSH32(esp, eax); /* 0x360587DB: push eax */ 9608 eax = ebp + (-0x2C); /* 0x360587DC: lea eax, [ebp - 0x2c] */ 9609 PUSH32(esp, eax); /* 0x360587DF: push eax */ 9610 ecx = ebp + (-0x38); /* 0x360587E0: lea ecx, [ebp - 0x38] */ 9611 PUSH32(esp, ecx); /* 0x360587E3: push ecx */ 9612 ecx = ebx; /* 0x360587E4: mov ecx, ebx */ 9613 RECOMP_ICALL(MEM32(0x361700C4)); /* 0x360587E6: call dword ptr [0x361700c4] */ 9614 RECOMP_FLAGS_IN(); 9615 /* test LO8(eax), LO8(eax) */ /* 0x360587EC: test al, al */ 9616 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9617 _cf = 0; 9618 _flag_k = FK_NARROW(FK_TEST, 24); 9619 if (TEST_Z(_flag_a, _flag_b)) goto L_36058825; /* 0x360587EE: je 0x36058825 */ 9620 L_360587F0: 9621 PUSH32(esp, 0); /* 0x360587F0: push 0 */ 9622 PUSH32(esp, 0x361B2CD8u); /* 0x360587F2: push 0x361b2cd8 */ 9623 PUSH32(esp, 0x361B2CC0u); /* 0x360587F7: push 0x361b2cc0 */ 9624 PUSH32(esp, 0); /* 0x360587FC: push 0 */ 9625 PUSH32(esp, edi); /* 0x360587FE: push edi */ 9626 RECOMP_ICALL(0x3615FD86u); /* 0x360587FF: call 0x3615fd86 */ /* not lifted */ 9627 RECOMP_FLAGS_IN(); 9628 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9629 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9630 esp = esp + 0x14u; /* 0x36058804: add esp, 0x14 */ 9631 _flag_k = FK_ADD; 9632 /* test eax, eax */ /* 0x36058807: test eax, eax */ 9633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9634 _cf = 0; 9635 _flag_k = FK_TEST; 9636 if (TEST_Z(_flag_a, _flag_b)) goto L_36058825; /* 0x36058809: je 0x36058825 */ 9637 L_3605880B: 9638 ecx = MEM32(eax + 0x11C); /* 0x3605880B: mov ecx, dword ptr [eax + 0x11c] */ 9639 /* test HI8(ecx), 1 */ /* 0x36058811: test ch, 1 */ 9640 _flag_a = (uint32_t)(HI8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 9641 _cf = 0; 9642 _flag_k = FK_NARROW(FK_TEST, 24); 9643 if (TEST_Z(_flag_a, _flag_b)) goto L_36058825; /* 0x36058814: je 0x36058825 */ 9644 L_36058816: 9645 edx = MEM32(esi + 0x10); /* 0x36058816: mov edx, dword ptr [esi + 0x10] */ 9646 ecx = MEM32(edx + 0x188); /* 0x36058819: mov ecx, dword ptr [edx + 0x188] */ 9647 PUSH32(esp, eax); /* 0x3605881F: push eax */ 9648 RECOMP_ICALL(0x3605A8D0u); /* 0x36058820: call 0x3605a8d0 */ /* not lifted */ 9649 RECOMP_FLAGS_IN(); 9650 L_36058825: 9651 eax = MEM32(ebp + (-0x14)); /* 0x36058825: mov eax, dword ptr [ebp - 0x14] */ 9652 ecx = MEM32(ebp + (-0x40)); /* 0x36058828: mov ecx, dword ptr [ebp - 0x40] */ 9653 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 9654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9655 eax = eax + 8; /* 0x3605882B: add eax, 8 */ 9656 _flag_k = FK_ADD; 9657 /* cmp eax, ecx */ /* 0x3605882E: cmp eax, ecx */ 9658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9660 _flag_k = FK_CMP; 9661 MEM32(ebp + (-0x14)) = eax; /* 0x36058830: mov dword ptr [ebp - 0x14], eax */ 9662 RECOMP_BACKEDGE(); 9663 if (CMP_NE(_flag_a, _flag_b)) goto L_36058774; /* 0x36058833: jne 0x36058774 */ 9664 L_36058839: 9665 eax = MEM32(ebp + (-0x44)); /* 0x36058839: mov eax, dword ptr [ebp - 0x44] */ 9666 L_3605883C: 9667 PUSH32(esp, eax); /* 0x3605883C: push eax */ 9668 RECOMP_ICALL(0x3615FCC4u); /* 0x3605883D: call 0x3615fcc4 */ /* not lifted */ 9669 RECOMP_FLAGS_IN(); 9670 ecx = MEM32(ebp + (-0xC)); /* 0x36058842: mov ecx, dword ptr [ebp - 0xc] */ 9671 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9672 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9673 esp = esp + 4; /* 0x36058845: add esp, 4 */ 9674 _flag_k = FK_ADD; 9675 ebx = POP32_VAL(esp); /* 0x36058848: pop ebx */ 9676 edi = POP32_VAL(esp); /* 0x36058849: pop edi */ 9677 esi = POP32_VAL(esp); /* 0x3605884A: pop esi */ 9678 MEM32(FS_BASE + (0)) = ecx; /* 0x3605884B: mov dword ptr fs:[0], ecx */ 9679 esp = ebp; /* 0x36058852: mov esp, ebp */ 9680 ebp = POP32_VAL(esp); /* 0x36058854: pop ebp */ 9681 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36058855: ret */ 9682 RECOMP_REGS_OUT(); 9683 } 9684 9685 void sub_36058860(void) { 9686 int _fpu_cmp = 0; 9687 uint32_t _cf = 0; 9688 int _df = 1; 9689 uint32_t _flag_k = FK_NONE; 9690 uint32_t _flag_a = 0, _flag_b = 0; 9691 uint32_t _itail_tgt = 0; 9692 RECOMP_REGS_LOCALS 9693 RECOMP_ENTER(0x36058860u); 9694 9695 L_36058860: 9696 PUSH32(esp, ebp); /* 0x36058860: push ebp */ 9697 ebp = esp; /* 0x36058861: mov ebp, esp */ 9698 eax = MEM32(ebp + 0x8); /* 0x36058863: mov eax, dword ptr [ebp + 8] */ 9699 PUSH32(esp, esi); /* 0x36058866: push esi */ 9700 esi = ecx; /* 0x36058867: mov esi, ecx */ 9701 MEM32(esi) = eax; /* 0x36058869: mov dword ptr [esi], eax */ 9702 ecx = MEM32(0x3616F088); /* 0x3605886B: mov ecx, dword ptr [0x3616f088] */ 9703 edx = MEM32(ecx); /* 0x36058871: mov edx, dword ptr [ecx] */ 9704 MEM32(esi + 0x8) = edx; /* 0x36058873: mov dword ptr [esi + 8], edx */ 9705 eax = MEM32(ecx + 0x4); /* 0x36058876: mov eax, dword ptr [ecx + 4] */ 9706 ecx = ebp + 0x8; /* 0x36058879: lea ecx, [ebp + 8] */ 9707 MEM32(esi + 0xC) = eax; /* 0x3605887C: mov dword ptr [esi + 0xc], eax */ 9708 RECOMP_ICALL(MEM32(0x3616F098)); /* 0x3605887F: call dword ptr [0x3616f098] */ 9709 RECOMP_FLAGS_IN(); 9710 ecx = MEM32(0x3630DFB0); /* 0x36058885: mov ecx, dword ptr [0x3630dfb0] */ 9711 MEM32(esi + 0x10) = ecx; /* 0x3605888B: mov dword ptr [esi + 0x10], ecx */ 9712 ecx = ebp + 0x8; /* 0x3605888E: lea ecx, [ebp + 8] */ 9713 RECOMP_ICALL(MEM32(0x3616F0A0)); /* 0x36058891: call dword ptr [0x3616f0a0] */ 9714 RECOMP_FLAGS_IN(); 9715 eax = esi; /* 0x36058897: mov eax, esi */ 9716 esi = POP32_VAL(esp); /* 0x36058899: pop esi */ 9717 ebp = POP32_VAL(esp); /* 0x3605889A: pop ebp */ 9718 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3605889B: ret 4 */ 9719 RECOMP_REGS_OUT(); 9720 } 9721 9722 void sub_360588A0(void) { 9723 int _fpu_cmp = 0; 9724 uint32_t _cf = 0; 9725 int _df = 1; 9726 uint32_t _flag_k = FK_NONE; 9727 uint32_t _flag_a = 0, _flag_b = 0; 9728 uint32_t _itail_tgt = 0; 9729 RECOMP_REGS_LOCALS 9730 RECOMP_ENTER(0x360588A0u); 9731 9732 L_360588A0: 9733 PUSH32(esp, ebp); /* 0x360588A0: push ebp */ 9734 ebp = esp; /* 0x360588A1: mov ebp, esp */ 9735 PUSH32(esp, ebx); /* 0x360588A3: push ebx */ 9736 PUSH32(esp, esi); /* 0x360588A4: push esi */ 9737 ebx = ecx; /* 0x360588A5: mov ebx, ecx */ 9738 eax = MEM32(ebx + 0x8); /* 0x360588A7: mov eax, dword ptr [ebx + 8] */ 9739 PUSH32(esp, edi); /* 0x360588AA: push edi */ 9740 edi = MEM32(ebp + 0x8); /* 0x360588AB: mov edi, dword ptr [ebp + 8] */ 9741 /* cmp edi, eax */ /* 0x360588AE: cmp edi, eax */ 9742 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9744 _flag_k = FK_CMP; 9745 esi = edi; /* 0x360588B0: mov esi, edi */ 9746 if (CMP_EQ(_flag_a, _flag_b)) goto L_360588D3; /* 0x360588B2: je 0x360588d3 */ 9747 L_360588B4: 9748 eax = MEM32(esi + 0x8); /* 0x360588B4: mov eax, dword ptr [esi + 8] */ 9749 PUSH32(esp, eax); /* 0x360588B7: push eax */ 9750 ecx = ebx; /* 0x360588B8: mov ecx, ebx */ 9751 RECOMP_ICALL(0x360588A0u); /* 0x360588BA: call 0x360588a0 */ /* not lifted */ 9752 RECOMP_FLAGS_IN(); 9753 esi = MEM32(esi); /* 0x360588BF: mov esi, dword ptr [esi] */ 9754 PUSH32(esp, edi); /* 0x360588C1: push edi */ 9755 RECOMP_ICALL(0x3615FCC4u); /* 0x360588C2: call 0x3615fcc4 */ /* not lifted */ 9756 RECOMP_FLAGS_IN(); 9757 eax = MEM32(ebx + 0x8); /* 0x360588C7: mov eax, dword ptr [ebx + 8] */ 9758 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9759 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9760 esp = esp + 4; /* 0x360588CA: add esp, 4 */ 9761 _flag_k = FK_ADD; 9762 /* cmp esi, eax */ /* 0x360588CD: cmp esi, eax */ 9763 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9765 _flag_k = FK_CMP; 9766 edi = esi; /* 0x360588CF: mov edi, esi */ 9767 RECOMP_BACKEDGE(); 9768 if (CMP_NE(_flag_a, _flag_b)) goto L_360588B4; /* 0x360588D1: jne 0x360588b4 */ 9769 L_360588D3: 9770 edi = POP32_VAL(esp); /* 0x360588D3: pop edi */ 9771 esi = POP32_VAL(esp); /* 0x360588D4: pop esi */ 9772 ebx = POP32_VAL(esp); /* 0x360588D5: pop ebx */ 9773 ebp = POP32_VAL(esp); /* 0x360588D6: pop ebp */ 9774 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360588D7: ret 4 */ 9775 RECOMP_REGS_OUT(); 9776 } 9777 9778 void sub_360588E0(void) { 9779 int _fpu_cmp = 0; 9780 uint32_t _cf = 0; 9781 int _df = 1; 9782 uint32_t _flag_k = FK_NONE; 9783 uint32_t _flag_a = 0, _flag_b = 0; 9784 uint32_t _itail_tgt = 0; 9785 RECOMP_REGS_LOCALS 9786 RECOMP_ENTER(0x360588E0u); 9787 9788 L_360588E0: 9789 PUSH32(esp, ebp); /* 0x360588E0: push ebp */ 9790 ebp = esp; /* 0x360588E1: mov ebp, esp */ 9791 PUSH32(esp, ecx); /* 0x360588E3: push ecx */ 9792 PUSH32(esp, ebx); /* 0x360588E4: push ebx */ 9793 PUSH32(esp, esi); /* 0x360588E5: push esi */ 9794 esi = MEM32(ebp + 0xC); /* 0x360588E6: mov esi, dword ptr [ebp + 0xc] */ 9795 PUSH32(esp, edi); /* 0x360588E9: push edi */ 9796 edi = ecx; /* 0x360588EA: mov edi, ecx */ 9797 ecx = ebp + 0xC; /* 0x360588EC: lea ecx, [ebp + 0xc] */ 9798 RECOMP_ICALL(0x36064140u); /* 0x360588EF: call 0x36064140 */ /* not lifted */ 9799 RECOMP_FLAGS_IN(); 9800 edx = MEM32(esi); /* 0x360588F4: mov edx, dword ptr [esi] */ 9801 eax = MEM32(edi + 0x8); /* 0x360588F6: mov eax, dword ptr [edi + 8] */ 9802 /* cmp edx, eax */ /* 0x360588F9: cmp edx, eax */ 9803 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9805 _flag_k = FK_CMP; 9806 MEM32(ebp + (-0x4)) = esi; /* 0x360588FB: mov dword ptr [ebp - 4], esi */ 9807 if (CMP_NE(_flag_a, _flag_b)) goto L_36058920; /* 0x360588FE: jne 0x36058920 */ 9808 L_36058900: 9809 eax = MEM32(esi + 0x8); /* 0x36058900: mov eax, dword ptr [esi + 8] */ 9810 L_36058903: 9811 ecx = MEM32(ebp + (-0x4)); /* 0x36058903: mov ecx, dword ptr [ebp - 4] */ 9812 edx = MEM32(ecx + 0x4); /* 0x36058906: mov edx, dword ptr [ecx + 4] */ 9813 MEM32(eax + 0x4) = edx; /* 0x36058909: mov dword ptr [eax + 4], edx */ 9814 ecx = MEM32(edi + 0x4); /* 0x3605890C: mov ecx, dword ptr [edi + 4] */ 9815 /* cmp MEM32(ecx + 0x4), esi */ /* 0x3605890F: cmp dword ptr [ecx + 4], esi */ 9816 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 9817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9818 _flag_k = FK_CMP; 9819 if (CMP_NE(_flag_a, _flag_b)) goto L_360589A3; /* 0x36058912: jne 0x360589a3 */ 9820 L_36058918: 9821 MEM32(ecx + 0x4) = eax; /* 0x36058918: mov dword ptr [ecx + 4], eax */ 9822 goto L_360589B1; /* 0x3605891B: jmp 0x360589b1 */ 9823 L_36058920: 9824 ecx = MEM32(esi + 0x8); /* 0x36058920: mov ecx, dword ptr [esi + 8] */ 9825 /* cmp ecx, eax */ /* 0x36058923: cmp ecx, eax */ 9826 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9828 _flag_k = FK_CMP; 9829 if (CMP_NE(_flag_a, _flag_b)) goto L_3605892B; /* 0x36058925: jne 0x3605892b */ 9830 L_36058927: 9831 eax = edx; /* 0x36058927: mov eax, edx */ 9832 RECOMP_BACKEDGE(); 9833 goto L_36058903; /* 0x36058929: jmp 0x36058903 */ 9834 L_3605892B: 9835 eax = MEM32(ecx); /* 0x3605892B: mov eax, dword ptr [ecx] */ 9836 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3605892D: mov bl, byte ptr [eax + 0x15] */ 9837 /* test LO8(ebx), LO8(ebx) */ /* 0x36058930: test bl, bl */ 9838 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9839 _cf = 0; 9840 _flag_k = FK_NARROW(FK_TEST, 24); 9841 if (TEST_NZ(_flag_a, _flag_b)) goto L_3605893F; /* 0x36058932: jne 0x3605893f */ 9842 L_36058934: 9843 ecx = eax; /* 0x36058934: mov ecx, eax */ 9844 eax = MEM32(ecx); /* 0x36058936: mov eax, dword ptr [ecx] */ 9845 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x36058938: mov bl, byte ptr [eax + 0x15] */ 9846 /* test LO8(ebx), LO8(ebx) */ /* 0x3605893B: test bl, bl */ 9847 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9848 _cf = 0; 9849 _flag_k = FK_NARROW(FK_TEST, 24); 9850 RECOMP_BACKEDGE(); 9851 if (TEST_Z(_flag_a, _flag_b)) goto L_36058934; /* 0x3605893D: je 0x36058934 */ 9852 L_3605893F: 9853 /* cmp ecx, esi */ /* 0x3605893F: cmp ecx, esi */ 9854 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 9855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9856 _flag_k = FK_CMP; 9857 eax = MEM32(ecx + 0x8); /* 0x36058941: mov eax, dword ptr [ecx + 8] */ 9858 MEM32(ebp + (-0x4)) = ecx; /* 0x36058944: mov dword ptr [ebp - 4], ecx */ 9859 RECOMP_BACKEDGE(); 9860 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058903; /* 0x36058947: je 0x36058903 */ 9861 L_36058949: 9862 MEM32(edx + 0x4) = ecx; /* 0x36058949: mov dword ptr [edx + 4], ecx */ 9863 edx = MEM32(esi); /* 0x3605894C: mov edx, dword ptr [esi] */ 9864 MEM32(ecx) = edx; /* 0x3605894E: mov dword ptr [ecx], edx */ 9865 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058950: cmp ecx, dword ptr [esi + 8] */ 9866 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9868 _flag_k = FK_CMP; 9869 if (CMP_NE(_flag_a, _flag_b)) goto L_3605895A; /* 0x36058953: jne 0x3605895a */ 9870 L_36058955: 9871 MEM32(eax + 0x4) = ecx; /* 0x36058955: mov dword ptr [eax + 4], ecx */ 9872 goto L_36058971; /* 0x36058958: jmp 0x36058971 */ 9873 L_3605895A: 9874 edx = MEM32(ecx + 0x4); /* 0x3605895A: mov edx, dword ptr [ecx + 4] */ 9875 MEM32(eax + 0x4) = edx; /* 0x3605895D: mov dword ptr [eax + 4], edx */ 9876 edx = MEM32(ecx + 0x4); /* 0x36058960: mov edx, dword ptr [ecx + 4] */ 9877 MEM32(edx) = eax; /* 0x36058963: mov dword ptr [edx], eax */ 9878 edx = MEM32(esi + 0x8); /* 0x36058965: mov edx, dword ptr [esi + 8] */ 9879 MEM32(ecx + 0x8) = edx; /* 0x36058968: mov dword ptr [ecx + 8], edx */ 9880 edx = MEM32(esi + 0x8); /* 0x3605896B: mov edx, dword ptr [esi + 8] */ 9881 MEM32(edx + 0x4) = ecx; /* 0x3605896E: mov dword ptr [edx + 4], ecx */ 9882 L_36058971: 9883 edx = MEM32(edi + 0x4); /* 0x36058971: mov edx, dword ptr [edi + 4] */ 9884 /* cmp MEM32(edx + 0x4), esi */ /* 0x36058974: cmp dword ptr [edx + 4], esi */ 9885 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 9886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9887 _flag_k = FK_CMP; 9888 if (CMP_NE(_flag_a, _flag_b)) goto L_3605897E; /* 0x36058977: jne 0x3605897e */ 9889 L_36058979: 9890 MEM32(edx + 0x4) = ecx; /* 0x36058979: mov dword ptr [edx + 4], ecx */ 9891 goto L_3605898C; /* 0x3605897C: jmp 0x3605898c */ 9892 L_3605897E: 9893 edx = MEM32(esi + 0x4); /* 0x3605897E: mov edx, dword ptr [esi + 4] */ 9894 /* cmp MEM32(edx), esi */ /* 0x36058981: cmp dword ptr [edx], esi */ 9895 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 9896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9897 _flag_k = FK_CMP; 9898 if (CMP_NE(_flag_a, _flag_b)) goto L_36058989; /* 0x36058983: jne 0x36058989 */ 9899 L_36058985: 9900 MEM32(edx) = ecx; /* 0x36058985: mov dword ptr [edx], ecx */ 9901 goto L_3605898C; /* 0x36058987: jmp 0x3605898c */ 9902 L_36058989: 9903 MEM32(edx + 0x8) = ecx; /* 0x36058989: mov dword ptr [edx + 8], ecx */ 9904 L_3605898C: 9905 edx = MEM32(esi + 0x4); /* 0x3605898C: mov edx, dword ptr [esi + 4] */ 9906 MEM32(ecx + 0x4) = edx; /* 0x3605898F: mov dword ptr [ecx + 4], edx */ 9907 SET_LO8(ebx, MEM8(esi + 0x14)); /* 0x36058992: mov bl, byte ptr [esi + 0x14] */ 9908 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058995: mov dl, byte ptr [ecx + 0x14] */ 9909 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058998: mov byte ptr [ecx + 0x14], bl */ 9910 MEM8(esi + 0x14) = (uint8_t)(LO8(edx)); /* 0x3605899B: mov byte ptr [esi + 0x14], dl */ 9911 MEM32(ebp + (-0x4)) = esi; /* 0x3605899E: mov dword ptr [ebp - 4], esi */ 9912 goto L_36058A08; /* 0x360589A1: jmp 0x36058a08 */ 9913 L_360589A3: 9914 ecx = MEM32(esi + 0x4); /* 0x360589A3: mov ecx, dword ptr [esi + 4] */ 9915 /* cmp MEM32(ecx), esi */ /* 0x360589A6: cmp dword ptr [ecx], esi */ 9916 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 9917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9918 _flag_k = FK_CMP; 9919 if (CMP_NE(_flag_a, _flag_b)) goto L_360589AE; /* 0x360589A8: jne 0x360589ae */ 9920 L_360589AA: 9921 MEM32(ecx) = eax; /* 0x360589AA: mov dword ptr [ecx], eax */ 9922 goto L_360589B1; /* 0x360589AC: jmp 0x360589b1 */ 9923 L_360589AE: 9924 MEM32(ecx + 0x8) = eax; /* 0x360589AE: mov dword ptr [ecx + 8], eax */ 9925 L_360589B1: 9926 ebx = MEM32(edi + 0x4); /* 0x360589B1: mov ebx, dword ptr [edi + 4] */ 9927 /* cmp MEM32(ebx), esi */ /* 0x360589B4: cmp dword ptr [ebx], esi */ 9928 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 9929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9930 _flag_k = FK_CMP; 9931 if (CMP_NE(_flag_a, _flag_b)) goto L_360589DB; /* 0x360589B6: jne 0x360589db */ 9932 L_360589B8: 9933 ecx = MEM32(esi + 0x8); /* 0x360589B8: mov ecx, dword ptr [esi + 8] */ 9934 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360589BB: cmp ecx, dword ptr [edi + 8] */ 9935 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9937 _flag_k = FK_CMP; 9938 if (CMP_NE(_flag_a, _flag_b)) goto L_360589C5; /* 0x360589BE: jne 0x360589c5 */ 9939 L_360589C0: 9940 edx = MEM32(esi + 0x4); /* 0x360589C0: mov edx, dword ptr [esi + 4] */ 9941 goto L_360589D9; /* 0x360589C3: jmp 0x360589d9 */ 9942 L_360589C5: 9943 ecx = MEM32(eax); /* 0x360589C5: mov ecx, dword ptr [eax] */ 9944 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x360589C7: cmp byte ptr [ecx + 0x15], 0 */ 9945 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 9946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9947 _flag_k = FK_NARROW(FK_CMP, 24); 9948 edx = eax; /* 0x360589CB: mov edx, eax */ 9949 if (CMP_NE(_flag_a, _flag_b)) goto L_360589D9; /* 0x360589CD: jne 0x360589d9 */ 9950 L_360589CF: 9951 edx = ecx; /* 0x360589CF: mov edx, ecx */ 9952 ecx = MEM32(edx); /* 0x360589D1: mov ecx, dword ptr [edx] */ 9953 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x360589D3: cmp byte ptr [ecx + 0x15], 0 */ 9954 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 9955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9956 _flag_k = FK_NARROW(FK_CMP, 24); 9957 RECOMP_BACKEDGE(); 9958 if (CMP_EQ(_flag_a, _flag_b)) goto L_360589CF; /* 0x360589D7: je 0x360589cf */ 9959 L_360589D9: 9960 MEM32(ebx) = edx; /* 0x360589D9: mov dword ptr [ebx], edx */ 9961 L_360589DB: 9962 ebx = MEM32(edi + 0x4); /* 0x360589DB: mov ebx, dword ptr [edi + 4] */ 9963 /* cmp MEM32(ebx + 0x8), esi */ /* 0x360589DE: cmp dword ptr [ebx + 8], esi */ 9964 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 9965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9966 _flag_k = FK_CMP; 9967 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A08; /* 0x360589E1: jne 0x36058a08 */ 9968 L_360589E3: 9969 ecx = MEM32(esi); /* 0x360589E3: mov ecx, dword ptr [esi] */ 9970 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360589E5: cmp ecx, dword ptr [edi + 8] */ 9971 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9973 _flag_k = FK_CMP; 9974 if (CMP_NE(_flag_a, _flag_b)) goto L_360589EF; /* 0x360589E8: jne 0x360589ef */ 9975 L_360589EA: 9976 edx = MEM32(esi + 0x4); /* 0x360589EA: mov edx, dword ptr [esi + 4] */ 9977 goto L_36058A05; /* 0x360589ED: jmp 0x36058a05 */ 9978 L_360589EF: 9979 ecx = MEM32(eax + 0x8); /* 0x360589EF: mov ecx, dword ptr [eax + 8] */ 9980 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x360589F2: cmp byte ptr [ecx + 0x15], 0 */ 9981 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 9982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9983 _flag_k = FK_NARROW(FK_CMP, 24); 9984 edx = eax; /* 0x360589F6: mov edx, eax */ 9985 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A05; /* 0x360589F8: jne 0x36058a05 */ 9986 L_360589FA: 9987 edx = ecx; /* 0x360589FA: mov edx, ecx */ 9988 ecx = MEM32(edx + 0x8); /* 0x360589FC: mov ecx, dword ptr [edx + 8] */ 9989 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x360589FF: cmp byte ptr [ecx + 0x15], 0 */ 9990 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 9991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9992 _flag_k = FK_NARROW(FK_CMP, 24); 9993 RECOMP_BACKEDGE(); 9994 if (CMP_EQ(_flag_a, _flag_b)) goto L_360589FA; /* 0x36058A03: je 0x360589fa */ 9995 L_36058A05: 9996 MEM32(ebx + 0x8) = edx; /* 0x36058A05: mov dword ptr [ebx + 8], edx */ 9997 L_36058A08: 9998 ecx = MEM32(ebp + (-0x4)); /* 0x36058A08: mov ecx, dword ptr [ebp - 4] */ 9999 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A0B: mov dl, byte ptr [ecx + 0x14] */ 10000 SET_LO8(ebx, 1); /* 0x36058A0E: mov bl, 1 */ 10001 /* cmp LO8(edx), LO8(ebx) */ /* 0x36058A10: cmp dl, bl */ 10002 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10004 _flag_k = FK_NARROW(FK_CMP, 24); 10005 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C75; /* 0x36058A12: jne 0x36058c75 */ 10006 L_36058A18: 10007 edx = MEM32(edi + 0x4); /* 0x36058A18: mov edx, dword ptr [edi + 4] */ 10008 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36058A1B: cmp eax, dword ptr [edx + 4] */ 10009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10011 _flag_k = FK_CMP; 10012 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A1E: je 0x36058c72 */ 10013 L_36058A24: 10014 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x36058A24: cmp byte ptr [eax + 0x14], bl */ 10015 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10017 _flag_k = FK_NARROW(FK_CMP, 24); 10018 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A27: jne 0x36058c72 */ 10019 L_36058A2D: 10020 edx = MEM32(eax + 0x4); /* 0x36058A2D: mov edx, dword ptr [eax + 4] */ 10021 ecx = MEM32(edx); /* 0x36058A30: mov ecx, dword ptr [edx] */ 10022 /* cmp eax, ecx */ /* 0x36058A32: cmp eax, ecx */ 10023 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10025 _flag_k = FK_CMP; 10026 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AA4; /* 0x36058A34: jne 0x36058aa4 */ 10027 L_36058A36: 10028 ecx = MEM32(edx + 0x8); /* 0x36058A36: mov ecx, dword ptr [edx + 8] */ 10029 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A39: mov dl, byte ptr [ecx + 0x14] */ 10030 /* test LO8(edx), LO8(edx) */ /* 0x36058A3C: test dl, dl */ 10031 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10032 _cf = 0; 10033 _flag_k = FK_NARROW(FK_TEST, 24); 10034 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058A8B; /* 0x36058A3E: jne 0x36058a8b */ 10035 L_36058A40: 10036 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058A40: mov byte ptr [ecx + 0x14], bl */ 10037 ecx = MEM32(eax + 0x4); /* 0x36058A43: mov ecx, dword ptr [eax + 4] */ 10038 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058A46: mov byte ptr [ecx + 0x14], 0 */ 10039 ecx = MEM32(eax + 0x4); /* 0x36058A4A: mov ecx, dword ptr [eax + 4] */ 10040 edx = MEM32(ecx + 0x8); /* 0x36058A4D: mov edx, dword ptr [ecx + 8] */ 10041 esi = MEM32(edx); /* 0x36058A50: mov esi, dword ptr [edx] */ 10042 MEM32(ecx + 0x8) = esi; /* 0x36058A52: mov dword ptr [ecx + 8], esi */ 10043 esi = MEM32(edx); /* 0x36058A55: mov esi, dword ptr [edx] */ 10044 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058A57: cmp esi, dword ptr [edi + 8] */ 10045 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10047 _flag_k = FK_CMP; 10048 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058A5F; /* 0x36058A5A: je 0x36058a5f */ 10049 L_36058A5C: 10050 MEM32(esi + 0x4) = ecx; /* 0x36058A5C: mov dword ptr [esi + 4], ecx */ 10051 L_36058A5F: 10052 esi = MEM32(ecx + 0x4); /* 0x36058A5F: mov esi, dword ptr [ecx + 4] */ 10053 MEM32(edx + 0x4) = esi; /* 0x36058A62: mov dword ptr [edx + 4], esi */ 10054 esi = MEM32(edi + 0x4); /* 0x36058A65: mov esi, dword ptr [edi + 4] */ 10055 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058A68: cmp ecx, dword ptr [esi + 4] */ 10056 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10058 _flag_k = FK_CMP; 10059 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A72; /* 0x36058A6B: jne 0x36058a72 */ 10060 L_36058A6D: 10061 MEM32(esi + 0x4) = edx; /* 0x36058A6D: mov dword ptr [esi + 4], edx */ 10062 goto L_36058A80; /* 0x36058A70: jmp 0x36058a80 */ 10063 L_36058A72: 10064 esi = MEM32(ecx + 0x4); /* 0x36058A72: mov esi, dword ptr [ecx + 4] */ 10065 /* cmp ecx, MEM32(esi) */ /* 0x36058A75: cmp ecx, dword ptr [esi] */ 10066 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10068 _flag_k = FK_CMP; 10069 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A7D; /* 0x36058A77: jne 0x36058a7d */ 10070 L_36058A79: 10071 MEM32(esi) = edx; /* 0x36058A79: mov dword ptr [esi], edx */ 10072 goto L_36058A80; /* 0x36058A7B: jmp 0x36058a80 */ 10073 L_36058A7D: 10074 MEM32(esi + 0x8) = edx; /* 0x36058A7D: mov dword ptr [esi + 8], edx */ 10075 L_36058A80: 10076 MEM32(edx) = ecx; /* 0x36058A80: mov dword ptr [edx], ecx */ 10077 MEM32(ecx + 0x4) = edx; /* 0x36058A82: mov dword ptr [ecx + 4], edx */ 10078 edx = MEM32(eax + 0x4); /* 0x36058A85: mov edx, dword ptr [eax + 4] */ 10079 ecx = MEM32(edx + 0x8); /* 0x36058A88: mov ecx, dword ptr [edx + 8] */ 10080 L_36058A8B: 10081 edx = MEM32(ecx); /* 0x36058A8B: mov edx, dword ptr [ecx] */ 10082 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A8D: cmp byte ptr [edx + 0x14], bl */ 10083 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10085 _flag_k = FK_NARROW(FK_CMP, 24); 10086 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A90: jne 0x36058b26 */ 10087 L_36058A96: 10088 edx = MEM32(ecx + 0x8); /* 0x36058A96: mov edx, dword ptr [ecx + 8] */ 10089 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A99: cmp byte ptr [edx + 0x14], bl */ 10090 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10092 _flag_k = FK_NARROW(FK_CMP, 24); 10093 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A9C: jne 0x36058b26 */ 10094 L_36058AA2: 10095 goto L_36058B0E; /* 0x36058AA2: jmp 0x36058b0e */ 10096 L_36058AA4: 10097 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058AA4: mov dl, byte ptr [ecx + 0x14] */ 10098 /* test LO8(edx), LO8(edx) */ /* 0x36058AA7: test dl, dl */ 10099 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10100 _cf = 0; 10101 _flag_k = FK_NARROW(FK_TEST, 24); 10102 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058AF7; /* 0x36058AA9: jne 0x36058af7 */ 10103 L_36058AAB: 10104 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058AAB: mov byte ptr [ecx + 0x14], bl */ 10105 ecx = MEM32(eax + 0x4); /* 0x36058AAE: mov ecx, dword ptr [eax + 4] */ 10106 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058AB1: mov byte ptr [ecx + 0x14], 0 */ 10107 ecx = MEM32(eax + 0x4); /* 0x36058AB5: mov ecx, dword ptr [eax + 4] */ 10108 edx = MEM32(ecx); /* 0x36058AB8: mov edx, dword ptr [ecx] */ 10109 esi = MEM32(edx + 0x8); /* 0x36058ABA: mov esi, dword ptr [edx + 8] */ 10110 MEM32(ecx) = esi; /* 0x36058ABD: mov dword ptr [ecx], esi */ 10111 esi = MEM32(edx + 0x8); /* 0x36058ABF: mov esi, dword ptr [edx + 8] */ 10112 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058AC2: cmp esi, dword ptr [edi + 8] */ 10113 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10115 _flag_k = FK_CMP; 10116 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058ACA; /* 0x36058AC5: je 0x36058aca */ 10117 L_36058AC7: 10118 MEM32(esi + 0x4) = ecx; /* 0x36058AC7: mov dword ptr [esi + 4], ecx */ 10119 L_36058ACA: 10120 esi = MEM32(ecx + 0x4); /* 0x36058ACA: mov esi, dword ptr [ecx + 4] */ 10121 MEM32(edx + 0x4) = esi; /* 0x36058ACD: mov dword ptr [edx + 4], esi */ 10122 esi = MEM32(edi + 0x4); /* 0x36058AD0: mov esi, dword ptr [edi + 4] */ 10123 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058AD3: cmp ecx, dword ptr [esi + 4] */ 10124 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10126 _flag_k = FK_CMP; 10127 if (CMP_NE(_flag_a, _flag_b)) goto L_36058ADD; /* 0x36058AD6: jne 0x36058add */ 10128 L_36058AD8: 10129 MEM32(esi + 0x4) = edx; /* 0x36058AD8: mov dword ptr [esi + 4], edx */ 10130 goto L_36058AEC; /* 0x36058ADB: jmp 0x36058aec */ 10131 L_36058ADD: 10132 esi = MEM32(ecx + 0x4); /* 0x36058ADD: mov esi, dword ptr [ecx + 4] */ 10133 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058AE0: cmp ecx, dword ptr [esi + 8] */ 10134 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10136 _flag_k = FK_CMP; 10137 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AEA; /* 0x36058AE3: jne 0x36058aea */ 10138 L_36058AE5: 10139 MEM32(esi + 0x8) = edx; /* 0x36058AE5: mov dword ptr [esi + 8], edx */ 10140 goto L_36058AEC; /* 0x36058AE8: jmp 0x36058aec */ 10141 L_36058AEA: 10142 MEM32(esi) = edx; /* 0x36058AEA: mov dword ptr [esi], edx */ 10143 L_36058AEC: 10144 MEM32(edx + 0x8) = ecx; /* 0x36058AEC: mov dword ptr [edx + 8], ecx */ 10145 MEM32(ecx + 0x4) = edx; /* 0x36058AEF: mov dword ptr [ecx + 4], edx */ 10146 edx = MEM32(eax + 0x4); /* 0x36058AF2: mov edx, dword ptr [eax + 4] */ 10147 ecx = MEM32(edx); /* 0x36058AF5: mov ecx, dword ptr [edx] */ 10148 L_36058AF7: 10149 edx = MEM32(ecx + 0x8); /* 0x36058AF7: mov edx, dword ptr [ecx + 8] */ 10150 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058AFA: cmp byte ptr [edx + 0x14], bl */ 10151 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10153 _flag_k = FK_NARROW(FK_CMP, 24); 10154 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058AFD: jne 0x36058bd3 */ 10155 L_36058B03: 10156 edx = MEM32(ecx); /* 0x36058B03: mov edx, dword ptr [ecx] */ 10157 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B05: cmp byte ptr [edx + 0x14], bl */ 10158 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10160 _flag_k = FK_NARROW(FK_CMP, 24); 10161 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058B08: jne 0x36058bd3 */ 10162 L_36058B0E: 10163 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B0E: mov byte ptr [ecx + 0x14], 0 */ 10164 ecx = MEM32(edi + 0x4); /* 0x36058B12: mov ecx, dword ptr [edi + 4] */ 10165 eax = MEM32(eax + 0x4); /* 0x36058B15: mov eax, dword ptr [eax + 4] */ 10166 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36058B18: cmp eax, dword ptr [ecx + 4] */ 10167 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10169 _flag_k = FK_CMP; 10170 RECOMP_BACKEDGE(); 10171 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A24; /* 0x36058B1B: jne 0x36058a24 */ 10172 L_36058B21: 10173 goto L_36058C72; /* 0x36058B21: jmp 0x36058c72 */ 10174 L_36058B26: 10175 edx = MEM32(ecx + 0x8); /* 0x36058B26: mov edx, dword ptr [ecx + 8] */ 10176 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B29: cmp byte ptr [edx + 0x14], bl */ 10177 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10179 _flag_k = FK_NARROW(FK_CMP, 24); 10180 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B77; /* 0x36058B2C: jne 0x36058b77 */ 10181 L_36058B2E: 10182 edx = MEM32(ecx); /* 0x36058B2E: mov edx, dword ptr [ecx] */ 10183 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B30: mov byte ptr [edx + 0x14], bl */ 10184 edx = MEM32(ecx); /* 0x36058B33: mov edx, dword ptr [ecx] */ 10185 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B35: mov byte ptr [ecx + 0x14], 0 */ 10186 esi = MEM32(edx + 0x8); /* 0x36058B39: mov esi, dword ptr [edx + 8] */ 10187 MEM32(ecx) = esi; /* 0x36058B3C: mov dword ptr [ecx], esi */ 10188 esi = MEM32(edx + 0x8); /* 0x36058B3E: mov esi, dword ptr [edx + 8] */ 10189 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B41: cmp esi, dword ptr [edi + 8] */ 10190 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10192 _flag_k = FK_CMP; 10193 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058B49; /* 0x36058B44: je 0x36058b49 */ 10194 L_36058B46: 10195 MEM32(esi + 0x4) = ecx; /* 0x36058B46: mov dword ptr [esi + 4], ecx */ 10196 L_36058B49: 10197 esi = MEM32(ecx + 0x4); /* 0x36058B49: mov esi, dword ptr [ecx + 4] */ 10198 MEM32(edx + 0x4) = esi; /* 0x36058B4C: mov dword ptr [edx + 4], esi */ 10199 esi = MEM32(edi + 0x4); /* 0x36058B4F: mov esi, dword ptr [edi + 4] */ 10200 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058B52: cmp ecx, dword ptr [esi + 4] */ 10201 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10203 _flag_k = FK_CMP; 10204 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B5C; /* 0x36058B55: jne 0x36058b5c */ 10205 L_36058B57: 10206 MEM32(esi + 0x4) = edx; /* 0x36058B57: mov dword ptr [esi + 4], edx */ 10207 goto L_36058B6B; /* 0x36058B5A: jmp 0x36058b6b */ 10208 L_36058B5C: 10209 esi = MEM32(ecx + 0x4); /* 0x36058B5C: mov esi, dword ptr [ecx + 4] */ 10210 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058B5F: cmp ecx, dword ptr [esi + 8] */ 10211 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10213 _flag_k = FK_CMP; 10214 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B69; /* 0x36058B62: jne 0x36058b69 */ 10215 L_36058B64: 10216 MEM32(esi + 0x8) = edx; /* 0x36058B64: mov dword ptr [esi + 8], edx */ 10217 goto L_36058B6B; /* 0x36058B67: jmp 0x36058b6b */ 10218 L_36058B69: 10219 MEM32(esi) = edx; /* 0x36058B69: mov dword ptr [esi], edx */ 10220 L_36058B6B: 10221 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 10222 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 10223 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 10224 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 10225 L_36058B77: 10226 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 10227 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 10228 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 10229 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 10230 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 10231 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 10232 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 10233 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 10234 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 10235 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 10236 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 10237 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 10238 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 10239 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10241 _flag_k = FK_CMP; 10242 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 10243 L_36058B9E: 10244 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 10245 L_36058BA1: 10246 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 10247 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 10248 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 10249 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 10250 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10252 _flag_k = FK_CMP; 10253 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 10254 L_36058BAF: 10255 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 10256 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 10257 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 10258 L_36058BB9: 10259 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 10260 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 10261 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10263 _flag_k = FK_CMP; 10264 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 10265 L_36058BC0: 10266 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 10267 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 10268 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 10269 L_36058BC9: 10270 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 10271 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 10272 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 10273 L_36058BD3: 10274 edx = MEM32(ecx); /* 0x36058BD3: mov edx, dword ptr [ecx] */ 10275 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058BD5: cmp byte ptr [edx + 0x14], bl */ 10276 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10278 _flag_k = FK_NARROW(FK_CMP, 24); 10279 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C21; /* 0x36058BD8: jne 0x36058c21 */ 10280 L_36058BDA: 10281 edx = MEM32(ecx + 0x8); /* 0x36058BDA: mov edx, dword ptr [ecx + 8] */ 10282 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058BDD: mov byte ptr [edx + 0x14], bl */ 10283 edx = MEM32(ecx + 0x8); /* 0x36058BE0: mov edx, dword ptr [ecx + 8] */ 10284 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058BE3: mov byte ptr [ecx + 0x14], 0 */ 10285 esi = MEM32(edx); /* 0x36058BE7: mov esi, dword ptr [edx] */ 10286 MEM32(ecx + 0x8) = esi; /* 0x36058BE9: mov dword ptr [ecx + 8], esi */ 10287 esi = MEM32(edx); /* 0x36058BEC: mov esi, dword ptr [edx] */ 10288 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058BEE: cmp esi, dword ptr [edi + 8] */ 10289 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10291 _flag_k = FK_CMP; 10292 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BF6; /* 0x36058BF1: je 0x36058bf6 */ 10293 L_36058BF3: 10294 MEM32(esi + 0x4) = ecx; /* 0x36058BF3: mov dword ptr [esi + 4], ecx */ 10295 L_36058BF6: 10296 esi = MEM32(ecx + 0x4); /* 0x36058BF6: mov esi, dword ptr [ecx + 4] */ 10297 MEM32(edx + 0x4) = esi; /* 0x36058BF9: mov dword ptr [edx + 4], esi */ 10298 esi = MEM32(edi + 0x4); /* 0x36058BFC: mov esi, dword ptr [edi + 4] */ 10299 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BFF: cmp ecx, dword ptr [esi + 4] */ 10300 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10302 _flag_k = FK_CMP; 10303 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C09; /* 0x36058C02: jne 0x36058c09 */ 10304 L_36058C04: 10305 MEM32(esi + 0x4) = edx; /* 0x36058C04: mov dword ptr [esi + 4], edx */ 10306 goto L_36058C17; /* 0x36058C07: jmp 0x36058c17 */ 10307 L_36058C09: 10308 esi = MEM32(ecx + 0x4); /* 0x36058C09: mov esi, dword ptr [ecx + 4] */ 10309 /* cmp ecx, MEM32(esi) */ /* 0x36058C0C: cmp ecx, dword ptr [esi] */ 10310 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10312 _flag_k = FK_CMP; 10313 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C14; /* 0x36058C0E: jne 0x36058c14 */ 10314 L_36058C10: 10315 MEM32(esi) = edx; /* 0x36058C10: mov dword ptr [esi], edx */ 10316 goto L_36058C17; /* 0x36058C12: jmp 0x36058c17 */ 10317 L_36058C14: 10318 MEM32(esi + 0x8) = edx; /* 0x36058C14: mov dword ptr [esi + 8], edx */ 10319 L_36058C17: 10320 MEM32(edx) = ecx; /* 0x36058C17: mov dword ptr [edx], ecx */ 10321 MEM32(ecx + 0x4) = edx; /* 0x36058C19: mov dword ptr [ecx + 4], edx */ 10322 ecx = MEM32(eax + 0x4); /* 0x36058C1C: mov ecx, dword ptr [eax + 4] */ 10323 ecx = MEM32(ecx); /* 0x36058C1F: mov ecx, dword ptr [ecx] */ 10324 L_36058C21: 10325 edx = MEM32(eax + 0x4); /* 0x36058C21: mov edx, dword ptr [eax + 4] */ 10326 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058C24: mov dl, byte ptr [edx + 0x14] */ 10327 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058C27: mov byte ptr [ecx + 0x14], dl */ 10328 edx = MEM32(eax + 0x4); /* 0x36058C2A: mov edx, dword ptr [eax + 4] */ 10329 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C2D: mov byte ptr [edx + 0x14], bl */ 10330 ecx = MEM32(ecx); /* 0x36058C30: mov ecx, dword ptr [ecx] */ 10331 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C32: mov byte ptr [ecx + 0x14], bl */ 10332 ecx = MEM32(eax + 0x4); /* 0x36058C35: mov ecx, dword ptr [eax + 4] */ 10333 edx = MEM32(ecx); /* 0x36058C38: mov edx, dword ptr [ecx] */ 10334 esi = MEM32(edx + 0x8); /* 0x36058C3A: mov esi, dword ptr [edx + 8] */ 10335 MEM32(ecx) = esi; /* 0x36058C3D: mov dword ptr [ecx], esi */ 10336 esi = MEM32(edx + 0x8); /* 0x36058C3F: mov esi, dword ptr [edx + 8] */ 10337 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058C42: cmp esi, dword ptr [edi + 8] */ 10338 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10340 _flag_k = FK_CMP; 10341 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C4A; /* 0x36058C45: je 0x36058c4a */ 10342 L_36058C47: 10343 MEM32(esi + 0x4) = ecx; /* 0x36058C47: mov dword ptr [esi + 4], ecx */ 10344 L_36058C4A: 10345 esi = MEM32(ecx + 0x4); /* 0x36058C4A: mov esi, dword ptr [ecx + 4] */ 10346 MEM32(edx + 0x4) = esi; /* 0x36058C4D: mov dword ptr [edx + 4], esi */ 10347 esi = MEM32(edi + 0x4); /* 0x36058C50: mov esi, dword ptr [edi + 4] */ 10348 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058C53: cmp ecx, dword ptr [esi + 4] */ 10349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10351 _flag_k = FK_CMP; 10352 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C5D; /* 0x36058C56: jne 0x36058c5d */ 10353 L_36058C58: 10354 MEM32(esi + 0x4) = edx; /* 0x36058C58: mov dword ptr [esi + 4], edx */ 10355 goto L_36058C6C; /* 0x36058C5B: jmp 0x36058c6c */ 10356 L_36058C5D: 10357 esi = MEM32(ecx + 0x4); /* 0x36058C5D: mov esi, dword ptr [ecx + 4] */ 10358 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058C60: cmp ecx, dword ptr [esi + 8] */ 10359 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10361 _flag_k = FK_CMP; 10362 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C6A; /* 0x36058C63: jne 0x36058c6a */ 10363 L_36058C65: 10364 MEM32(esi + 0x8) = edx; /* 0x36058C65: mov dword ptr [esi + 8], edx */ 10365 goto L_36058C6C; /* 0x36058C68: jmp 0x36058c6c */ 10366 L_36058C6A: 10367 MEM32(esi) = edx; /* 0x36058C6A: mov dword ptr [esi], edx */ 10368 L_36058C6C: 10369 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 10370 L_36058C6F: 10371 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 10372 L_36058C72: 10373 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 10374 L_36058C75: 10375 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 10376 PUSH32(esp, edx); /* 0x36058C78: push edx */ 10377 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 10378 RECOMP_FLAGS_IN(); 10379 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 10380 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 10381 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10382 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10383 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 10384 _flag_k = FK_ADD; 10385 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10386 eax = eax - 1; /* 0x36058C87: dec eax */ 10387 _flag_k = FK_DEC; 10388 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 10389 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 10390 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 10391 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 10392 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 10393 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 10394 esp = ebp; /* 0x36058C93: mov esp, ebp */ 10395 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 10396 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 10397 RECOMP_REGS_OUT(); 10398 } 10399 10400 void sub_360589B1(void) { 10401 int _fpu_cmp = 0; 10402 uint32_t _cf = 0; 10403 int _df = 1; 10404 uint32_t _flag_k = FK_NONE; 10405 uint32_t _flag_a = 0, _flag_b = 0; 10406 uint32_t _itail_tgt = 0; 10407 RECOMP_REGS_LOCALS 10408 RECOMP_ENTER(0x360589B1u); 10409 10410 L_360589B1: 10411 ebx = MEM32(edi + 0x4); /* 0x360589B1: mov ebx, dword ptr [edi + 4] */ 10412 /* cmp MEM32(ebx), esi */ /* 0x360589B4: cmp dword ptr [ebx], esi */ 10413 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 10414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10415 _flag_k = FK_CMP; 10416 if (CMP_NE(_flag_a, _flag_b)) goto L_360589DB; /* 0x360589B6: jne 0x360589db */ 10417 L_360589B8: 10418 ecx = MEM32(esi + 0x8); /* 0x360589B8: mov ecx, dword ptr [esi + 8] */ 10419 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360589BB: cmp ecx, dword ptr [edi + 8] */ 10420 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10422 _flag_k = FK_CMP; 10423 if (CMP_NE(_flag_a, _flag_b)) goto L_360589C5; /* 0x360589BE: jne 0x360589c5 */ 10424 L_360589C0: 10425 edx = MEM32(esi + 0x4); /* 0x360589C0: mov edx, dword ptr [esi + 4] */ 10426 goto L_360589D9; /* 0x360589C3: jmp 0x360589d9 */ 10427 L_360589C5: 10428 ecx = MEM32(eax); /* 0x360589C5: mov ecx, dword ptr [eax] */ 10429 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x360589C7: cmp byte ptr [ecx + 0x15], 0 */ 10430 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 10431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10432 _flag_k = FK_NARROW(FK_CMP, 24); 10433 edx = eax; /* 0x360589CB: mov edx, eax */ 10434 if (CMP_NE(_flag_a, _flag_b)) goto L_360589D9; /* 0x360589CD: jne 0x360589d9 */ 10435 L_360589CF: 10436 edx = ecx; /* 0x360589CF: mov edx, ecx */ 10437 ecx = MEM32(edx); /* 0x360589D1: mov ecx, dword ptr [edx] */ 10438 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x360589D3: cmp byte ptr [ecx + 0x15], 0 */ 10439 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 10440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10441 _flag_k = FK_NARROW(FK_CMP, 24); 10442 RECOMP_BACKEDGE(); 10443 if (CMP_EQ(_flag_a, _flag_b)) goto L_360589CF; /* 0x360589D7: je 0x360589cf */ 10444 L_360589D9: 10445 MEM32(ebx) = edx; /* 0x360589D9: mov dword ptr [ebx], edx */ 10446 L_360589DB: 10447 ebx = MEM32(edi + 0x4); /* 0x360589DB: mov ebx, dword ptr [edi + 4] */ 10448 /* cmp MEM32(ebx + 0x8), esi */ /* 0x360589DE: cmp dword ptr [ebx + 8], esi */ 10449 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 10450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10451 _flag_k = FK_CMP; 10452 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A08; /* 0x360589E1: jne 0x36058a08 */ 10453 L_360589E3: 10454 ecx = MEM32(esi); /* 0x360589E3: mov ecx, dword ptr [esi] */ 10455 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360589E5: cmp ecx, dword ptr [edi + 8] */ 10456 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10458 _flag_k = FK_CMP; 10459 if (CMP_NE(_flag_a, _flag_b)) goto L_360589EF; /* 0x360589E8: jne 0x360589ef */ 10460 L_360589EA: 10461 edx = MEM32(esi + 0x4); /* 0x360589EA: mov edx, dword ptr [esi + 4] */ 10462 goto L_36058A05; /* 0x360589ED: jmp 0x36058a05 */ 10463 L_360589EF: 10464 ecx = MEM32(eax + 0x8); /* 0x360589EF: mov ecx, dword ptr [eax + 8] */ 10465 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x360589F2: cmp byte ptr [ecx + 0x15], 0 */ 10466 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 10467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10468 _flag_k = FK_NARROW(FK_CMP, 24); 10469 edx = eax; /* 0x360589F6: mov edx, eax */ 10470 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A05; /* 0x360589F8: jne 0x36058a05 */ 10471 L_360589FA: 10472 edx = ecx; /* 0x360589FA: mov edx, ecx */ 10473 ecx = MEM32(edx + 0x8); /* 0x360589FC: mov ecx, dword ptr [edx + 8] */ 10474 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x360589FF: cmp byte ptr [ecx + 0x15], 0 */ 10475 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 10476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10477 _flag_k = FK_NARROW(FK_CMP, 24); 10478 RECOMP_BACKEDGE(); 10479 if (CMP_EQ(_flag_a, _flag_b)) goto L_360589FA; /* 0x36058A03: je 0x360589fa */ 10480 L_36058A05: 10481 MEM32(ebx + 0x8) = edx; /* 0x36058A05: mov dword ptr [ebx + 8], edx */ 10482 L_36058A08: 10483 ecx = MEM32(ebp + (-0x4)); /* 0x36058A08: mov ecx, dword ptr [ebp - 4] */ 10484 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A0B: mov dl, byte ptr [ecx + 0x14] */ 10485 SET_LO8(ebx, 1); /* 0x36058A0E: mov bl, 1 */ 10486 /* cmp LO8(edx), LO8(ebx) */ /* 0x36058A10: cmp dl, bl */ 10487 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10489 _flag_k = FK_NARROW(FK_CMP, 24); 10490 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C75; /* 0x36058A12: jne 0x36058c75 */ 10491 L_36058A18: 10492 edx = MEM32(edi + 0x4); /* 0x36058A18: mov edx, dword ptr [edi + 4] */ 10493 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36058A1B: cmp eax, dword ptr [edx + 4] */ 10494 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10496 _flag_k = FK_CMP; 10497 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A1E: je 0x36058c72 */ 10498 L_36058A24: 10499 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x36058A24: cmp byte ptr [eax + 0x14], bl */ 10500 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10502 _flag_k = FK_NARROW(FK_CMP, 24); 10503 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A27: jne 0x36058c72 */ 10504 L_36058A2D: 10505 edx = MEM32(eax + 0x4); /* 0x36058A2D: mov edx, dword ptr [eax + 4] */ 10506 ecx = MEM32(edx); /* 0x36058A30: mov ecx, dword ptr [edx] */ 10507 /* cmp eax, ecx */ /* 0x36058A32: cmp eax, ecx */ 10508 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10510 _flag_k = FK_CMP; 10511 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AA4; /* 0x36058A34: jne 0x36058aa4 */ 10512 L_36058A36: 10513 ecx = MEM32(edx + 0x8); /* 0x36058A36: mov ecx, dword ptr [edx + 8] */ 10514 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A39: mov dl, byte ptr [ecx + 0x14] */ 10515 /* test LO8(edx), LO8(edx) */ /* 0x36058A3C: test dl, dl */ 10516 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10517 _cf = 0; 10518 _flag_k = FK_NARROW(FK_TEST, 24); 10519 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058A8B; /* 0x36058A3E: jne 0x36058a8b */ 10520 L_36058A40: 10521 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058A40: mov byte ptr [ecx + 0x14], bl */ 10522 ecx = MEM32(eax + 0x4); /* 0x36058A43: mov ecx, dword ptr [eax + 4] */ 10523 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058A46: mov byte ptr [ecx + 0x14], 0 */ 10524 ecx = MEM32(eax + 0x4); /* 0x36058A4A: mov ecx, dword ptr [eax + 4] */ 10525 edx = MEM32(ecx + 0x8); /* 0x36058A4D: mov edx, dword ptr [ecx + 8] */ 10526 esi = MEM32(edx); /* 0x36058A50: mov esi, dword ptr [edx] */ 10527 MEM32(ecx + 0x8) = esi; /* 0x36058A52: mov dword ptr [ecx + 8], esi */ 10528 esi = MEM32(edx); /* 0x36058A55: mov esi, dword ptr [edx] */ 10529 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058A57: cmp esi, dword ptr [edi + 8] */ 10530 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10532 _flag_k = FK_CMP; 10533 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058A5F; /* 0x36058A5A: je 0x36058a5f */ 10534 L_36058A5C: 10535 MEM32(esi + 0x4) = ecx; /* 0x36058A5C: mov dword ptr [esi + 4], ecx */ 10536 L_36058A5F: 10537 esi = MEM32(ecx + 0x4); /* 0x36058A5F: mov esi, dword ptr [ecx + 4] */ 10538 MEM32(edx + 0x4) = esi; /* 0x36058A62: mov dword ptr [edx + 4], esi */ 10539 esi = MEM32(edi + 0x4); /* 0x36058A65: mov esi, dword ptr [edi + 4] */ 10540 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058A68: cmp ecx, dword ptr [esi + 4] */ 10541 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10543 _flag_k = FK_CMP; 10544 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A72; /* 0x36058A6B: jne 0x36058a72 */ 10545 L_36058A6D: 10546 MEM32(esi + 0x4) = edx; /* 0x36058A6D: mov dword ptr [esi + 4], edx */ 10547 goto L_36058A80; /* 0x36058A70: jmp 0x36058a80 */ 10548 L_36058A72: 10549 esi = MEM32(ecx + 0x4); /* 0x36058A72: mov esi, dword ptr [ecx + 4] */ 10550 /* cmp ecx, MEM32(esi) */ /* 0x36058A75: cmp ecx, dword ptr [esi] */ 10551 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10553 _flag_k = FK_CMP; 10554 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A7D; /* 0x36058A77: jne 0x36058a7d */ 10555 L_36058A79: 10556 MEM32(esi) = edx; /* 0x36058A79: mov dword ptr [esi], edx */ 10557 goto L_36058A80; /* 0x36058A7B: jmp 0x36058a80 */ 10558 L_36058A7D: 10559 MEM32(esi + 0x8) = edx; /* 0x36058A7D: mov dword ptr [esi + 8], edx */ 10560 L_36058A80: 10561 MEM32(edx) = ecx; /* 0x36058A80: mov dword ptr [edx], ecx */ 10562 MEM32(ecx + 0x4) = edx; /* 0x36058A82: mov dword ptr [ecx + 4], edx */ 10563 edx = MEM32(eax + 0x4); /* 0x36058A85: mov edx, dword ptr [eax + 4] */ 10564 ecx = MEM32(edx + 0x8); /* 0x36058A88: mov ecx, dword ptr [edx + 8] */ 10565 L_36058A8B: 10566 edx = MEM32(ecx); /* 0x36058A8B: mov edx, dword ptr [ecx] */ 10567 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A8D: cmp byte ptr [edx + 0x14], bl */ 10568 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10570 _flag_k = FK_NARROW(FK_CMP, 24); 10571 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A90: jne 0x36058b26 */ 10572 L_36058A96: 10573 edx = MEM32(ecx + 0x8); /* 0x36058A96: mov edx, dword ptr [ecx + 8] */ 10574 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A99: cmp byte ptr [edx + 0x14], bl */ 10575 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10577 _flag_k = FK_NARROW(FK_CMP, 24); 10578 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A9C: jne 0x36058b26 */ 10579 L_36058AA2: 10580 goto L_36058B0E; /* 0x36058AA2: jmp 0x36058b0e */ 10581 L_36058AA4: 10582 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058AA4: mov dl, byte ptr [ecx + 0x14] */ 10583 /* test LO8(edx), LO8(edx) */ /* 0x36058AA7: test dl, dl */ 10584 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10585 _cf = 0; 10586 _flag_k = FK_NARROW(FK_TEST, 24); 10587 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058AF7; /* 0x36058AA9: jne 0x36058af7 */ 10588 L_36058AAB: 10589 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058AAB: mov byte ptr [ecx + 0x14], bl */ 10590 ecx = MEM32(eax + 0x4); /* 0x36058AAE: mov ecx, dword ptr [eax + 4] */ 10591 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058AB1: mov byte ptr [ecx + 0x14], 0 */ 10592 ecx = MEM32(eax + 0x4); /* 0x36058AB5: mov ecx, dword ptr [eax + 4] */ 10593 edx = MEM32(ecx); /* 0x36058AB8: mov edx, dword ptr [ecx] */ 10594 esi = MEM32(edx + 0x8); /* 0x36058ABA: mov esi, dword ptr [edx + 8] */ 10595 MEM32(ecx) = esi; /* 0x36058ABD: mov dword ptr [ecx], esi */ 10596 esi = MEM32(edx + 0x8); /* 0x36058ABF: mov esi, dword ptr [edx + 8] */ 10597 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058AC2: cmp esi, dword ptr [edi + 8] */ 10598 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10600 _flag_k = FK_CMP; 10601 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058ACA; /* 0x36058AC5: je 0x36058aca */ 10602 L_36058AC7: 10603 MEM32(esi + 0x4) = ecx; /* 0x36058AC7: mov dword ptr [esi + 4], ecx */ 10604 L_36058ACA: 10605 esi = MEM32(ecx + 0x4); /* 0x36058ACA: mov esi, dword ptr [ecx + 4] */ 10606 MEM32(edx + 0x4) = esi; /* 0x36058ACD: mov dword ptr [edx + 4], esi */ 10607 esi = MEM32(edi + 0x4); /* 0x36058AD0: mov esi, dword ptr [edi + 4] */ 10608 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058AD3: cmp ecx, dword ptr [esi + 4] */ 10609 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10611 _flag_k = FK_CMP; 10612 if (CMP_NE(_flag_a, _flag_b)) goto L_36058ADD; /* 0x36058AD6: jne 0x36058add */ 10613 L_36058AD8: 10614 MEM32(esi + 0x4) = edx; /* 0x36058AD8: mov dword ptr [esi + 4], edx */ 10615 goto L_36058AEC; /* 0x36058ADB: jmp 0x36058aec */ 10616 L_36058ADD: 10617 esi = MEM32(ecx + 0x4); /* 0x36058ADD: mov esi, dword ptr [ecx + 4] */ 10618 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058AE0: cmp ecx, dword ptr [esi + 8] */ 10619 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10620 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10621 _flag_k = FK_CMP; 10622 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AEA; /* 0x36058AE3: jne 0x36058aea */ 10623 L_36058AE5: 10624 MEM32(esi + 0x8) = edx; /* 0x36058AE5: mov dword ptr [esi + 8], edx */ 10625 goto L_36058AEC; /* 0x36058AE8: jmp 0x36058aec */ 10626 L_36058AEA: 10627 MEM32(esi) = edx; /* 0x36058AEA: mov dword ptr [esi], edx */ 10628 L_36058AEC: 10629 MEM32(edx + 0x8) = ecx; /* 0x36058AEC: mov dword ptr [edx + 8], ecx */ 10630 MEM32(ecx + 0x4) = edx; /* 0x36058AEF: mov dword ptr [ecx + 4], edx */ 10631 edx = MEM32(eax + 0x4); /* 0x36058AF2: mov edx, dword ptr [eax + 4] */ 10632 ecx = MEM32(edx); /* 0x36058AF5: mov ecx, dword ptr [edx] */ 10633 L_36058AF7: 10634 edx = MEM32(ecx + 0x8); /* 0x36058AF7: mov edx, dword ptr [ecx + 8] */ 10635 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058AFA: cmp byte ptr [edx + 0x14], bl */ 10636 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10637 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10638 _flag_k = FK_NARROW(FK_CMP, 24); 10639 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058AFD: jne 0x36058bd3 */ 10640 L_36058B03: 10641 edx = MEM32(ecx); /* 0x36058B03: mov edx, dword ptr [ecx] */ 10642 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B05: cmp byte ptr [edx + 0x14], bl */ 10643 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10645 _flag_k = FK_NARROW(FK_CMP, 24); 10646 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058B08: jne 0x36058bd3 */ 10647 L_36058B0E: 10648 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B0E: mov byte ptr [ecx + 0x14], 0 */ 10649 ecx = MEM32(edi + 0x4); /* 0x36058B12: mov ecx, dword ptr [edi + 4] */ 10650 eax = MEM32(eax + 0x4); /* 0x36058B15: mov eax, dword ptr [eax + 4] */ 10651 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36058B18: cmp eax, dword ptr [ecx + 4] */ 10652 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10654 _flag_k = FK_CMP; 10655 RECOMP_BACKEDGE(); 10656 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A24; /* 0x36058B1B: jne 0x36058a24 */ 10657 L_36058B21: 10658 goto L_36058C72; /* 0x36058B21: jmp 0x36058c72 */ 10659 L_36058B26: 10660 edx = MEM32(ecx + 0x8); /* 0x36058B26: mov edx, dword ptr [ecx + 8] */ 10661 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B29: cmp byte ptr [edx + 0x14], bl */ 10662 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10664 _flag_k = FK_NARROW(FK_CMP, 24); 10665 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B77; /* 0x36058B2C: jne 0x36058b77 */ 10666 L_36058B2E: 10667 edx = MEM32(ecx); /* 0x36058B2E: mov edx, dword ptr [ecx] */ 10668 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B30: mov byte ptr [edx + 0x14], bl */ 10669 edx = MEM32(ecx); /* 0x36058B33: mov edx, dword ptr [ecx] */ 10670 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B35: mov byte ptr [ecx + 0x14], 0 */ 10671 esi = MEM32(edx + 0x8); /* 0x36058B39: mov esi, dword ptr [edx + 8] */ 10672 MEM32(ecx) = esi; /* 0x36058B3C: mov dword ptr [ecx], esi */ 10673 esi = MEM32(edx + 0x8); /* 0x36058B3E: mov esi, dword ptr [edx + 8] */ 10674 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B41: cmp esi, dword ptr [edi + 8] */ 10675 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10677 _flag_k = FK_CMP; 10678 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058B49; /* 0x36058B44: je 0x36058b49 */ 10679 L_36058B46: 10680 MEM32(esi + 0x4) = ecx; /* 0x36058B46: mov dword ptr [esi + 4], ecx */ 10681 L_36058B49: 10682 esi = MEM32(ecx + 0x4); /* 0x36058B49: mov esi, dword ptr [ecx + 4] */ 10683 MEM32(edx + 0x4) = esi; /* 0x36058B4C: mov dword ptr [edx + 4], esi */ 10684 esi = MEM32(edi + 0x4); /* 0x36058B4F: mov esi, dword ptr [edi + 4] */ 10685 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058B52: cmp ecx, dword ptr [esi + 4] */ 10686 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10688 _flag_k = FK_CMP; 10689 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B5C; /* 0x36058B55: jne 0x36058b5c */ 10690 L_36058B57: 10691 MEM32(esi + 0x4) = edx; /* 0x36058B57: mov dword ptr [esi + 4], edx */ 10692 goto L_36058B6B; /* 0x36058B5A: jmp 0x36058b6b */ 10693 L_36058B5C: 10694 esi = MEM32(ecx + 0x4); /* 0x36058B5C: mov esi, dword ptr [ecx + 4] */ 10695 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058B5F: cmp ecx, dword ptr [esi + 8] */ 10696 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10698 _flag_k = FK_CMP; 10699 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B69; /* 0x36058B62: jne 0x36058b69 */ 10700 L_36058B64: 10701 MEM32(esi + 0x8) = edx; /* 0x36058B64: mov dword ptr [esi + 8], edx */ 10702 goto L_36058B6B; /* 0x36058B67: jmp 0x36058b6b */ 10703 L_36058B69: 10704 MEM32(esi) = edx; /* 0x36058B69: mov dword ptr [esi], edx */ 10705 L_36058B6B: 10706 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 10707 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 10708 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 10709 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 10710 L_36058B77: 10711 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 10712 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 10713 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 10714 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 10715 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 10716 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 10717 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 10718 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 10719 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 10720 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 10721 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 10722 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 10723 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 10724 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10726 _flag_k = FK_CMP; 10727 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 10728 L_36058B9E: 10729 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 10730 L_36058BA1: 10731 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 10732 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 10733 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 10734 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 10735 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10737 _flag_k = FK_CMP; 10738 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 10739 L_36058BAF: 10740 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 10741 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 10742 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 10743 L_36058BB9: 10744 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 10745 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 10746 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10748 _flag_k = FK_CMP; 10749 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 10750 L_36058BC0: 10751 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 10752 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 10753 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 10754 L_36058BC9: 10755 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 10756 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 10757 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 10758 L_36058BD3: 10759 edx = MEM32(ecx); /* 0x36058BD3: mov edx, dword ptr [ecx] */ 10760 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058BD5: cmp byte ptr [edx + 0x14], bl */ 10761 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10763 _flag_k = FK_NARROW(FK_CMP, 24); 10764 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C21; /* 0x36058BD8: jne 0x36058c21 */ 10765 L_36058BDA: 10766 edx = MEM32(ecx + 0x8); /* 0x36058BDA: mov edx, dword ptr [ecx + 8] */ 10767 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058BDD: mov byte ptr [edx + 0x14], bl */ 10768 edx = MEM32(ecx + 0x8); /* 0x36058BE0: mov edx, dword ptr [ecx + 8] */ 10769 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058BE3: mov byte ptr [ecx + 0x14], 0 */ 10770 esi = MEM32(edx); /* 0x36058BE7: mov esi, dword ptr [edx] */ 10771 MEM32(ecx + 0x8) = esi; /* 0x36058BE9: mov dword ptr [ecx + 8], esi */ 10772 esi = MEM32(edx); /* 0x36058BEC: mov esi, dword ptr [edx] */ 10773 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058BEE: cmp esi, dword ptr [edi + 8] */ 10774 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10776 _flag_k = FK_CMP; 10777 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BF6; /* 0x36058BF1: je 0x36058bf6 */ 10778 L_36058BF3: 10779 MEM32(esi + 0x4) = ecx; /* 0x36058BF3: mov dword ptr [esi + 4], ecx */ 10780 L_36058BF6: 10781 esi = MEM32(ecx + 0x4); /* 0x36058BF6: mov esi, dword ptr [ecx + 4] */ 10782 MEM32(edx + 0x4) = esi; /* 0x36058BF9: mov dword ptr [edx + 4], esi */ 10783 esi = MEM32(edi + 0x4); /* 0x36058BFC: mov esi, dword ptr [edi + 4] */ 10784 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BFF: cmp ecx, dword ptr [esi + 4] */ 10785 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10787 _flag_k = FK_CMP; 10788 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C09; /* 0x36058C02: jne 0x36058c09 */ 10789 L_36058C04: 10790 MEM32(esi + 0x4) = edx; /* 0x36058C04: mov dword ptr [esi + 4], edx */ 10791 goto L_36058C17; /* 0x36058C07: jmp 0x36058c17 */ 10792 L_36058C09: 10793 esi = MEM32(ecx + 0x4); /* 0x36058C09: mov esi, dword ptr [ecx + 4] */ 10794 /* cmp ecx, MEM32(esi) */ /* 0x36058C0C: cmp ecx, dword ptr [esi] */ 10795 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 10796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10797 _flag_k = FK_CMP; 10798 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C14; /* 0x36058C0E: jne 0x36058c14 */ 10799 L_36058C10: 10800 MEM32(esi) = edx; /* 0x36058C10: mov dword ptr [esi], edx */ 10801 goto L_36058C17; /* 0x36058C12: jmp 0x36058c17 */ 10802 L_36058C14: 10803 MEM32(esi + 0x8) = edx; /* 0x36058C14: mov dword ptr [esi + 8], edx */ 10804 L_36058C17: 10805 MEM32(edx) = ecx; /* 0x36058C17: mov dword ptr [edx], ecx */ 10806 MEM32(ecx + 0x4) = edx; /* 0x36058C19: mov dword ptr [ecx + 4], edx */ 10807 ecx = MEM32(eax + 0x4); /* 0x36058C1C: mov ecx, dword ptr [eax + 4] */ 10808 ecx = MEM32(ecx); /* 0x36058C1F: mov ecx, dword ptr [ecx] */ 10809 L_36058C21: 10810 edx = MEM32(eax + 0x4); /* 0x36058C21: mov edx, dword ptr [eax + 4] */ 10811 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058C24: mov dl, byte ptr [edx + 0x14] */ 10812 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058C27: mov byte ptr [ecx + 0x14], dl */ 10813 edx = MEM32(eax + 0x4); /* 0x36058C2A: mov edx, dword ptr [eax + 4] */ 10814 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C2D: mov byte ptr [edx + 0x14], bl */ 10815 ecx = MEM32(ecx); /* 0x36058C30: mov ecx, dword ptr [ecx] */ 10816 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C32: mov byte ptr [ecx + 0x14], bl */ 10817 ecx = MEM32(eax + 0x4); /* 0x36058C35: mov ecx, dword ptr [eax + 4] */ 10818 edx = MEM32(ecx); /* 0x36058C38: mov edx, dword ptr [ecx] */ 10819 esi = MEM32(edx + 0x8); /* 0x36058C3A: mov esi, dword ptr [edx + 8] */ 10820 MEM32(ecx) = esi; /* 0x36058C3D: mov dword ptr [ecx], esi */ 10821 esi = MEM32(edx + 0x8); /* 0x36058C3F: mov esi, dword ptr [edx + 8] */ 10822 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058C42: cmp esi, dword ptr [edi + 8] */ 10823 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10825 _flag_k = FK_CMP; 10826 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C4A; /* 0x36058C45: je 0x36058c4a */ 10827 L_36058C47: 10828 MEM32(esi + 0x4) = ecx; /* 0x36058C47: mov dword ptr [esi + 4], ecx */ 10829 L_36058C4A: 10830 esi = MEM32(ecx + 0x4); /* 0x36058C4A: mov esi, dword ptr [ecx + 4] */ 10831 MEM32(edx + 0x4) = esi; /* 0x36058C4D: mov dword ptr [edx + 4], esi */ 10832 esi = MEM32(edi + 0x4); /* 0x36058C50: mov esi, dword ptr [edi + 4] */ 10833 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058C53: cmp ecx, dword ptr [esi + 4] */ 10834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10836 _flag_k = FK_CMP; 10837 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C5D; /* 0x36058C56: jne 0x36058c5d */ 10838 L_36058C58: 10839 MEM32(esi + 0x4) = edx; /* 0x36058C58: mov dword ptr [esi + 4], edx */ 10840 goto L_36058C6C; /* 0x36058C5B: jmp 0x36058c6c */ 10841 L_36058C5D: 10842 esi = MEM32(ecx + 0x4); /* 0x36058C5D: mov esi, dword ptr [ecx + 4] */ 10843 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058C60: cmp ecx, dword ptr [esi + 8] */ 10844 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10846 _flag_k = FK_CMP; 10847 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C6A; /* 0x36058C63: jne 0x36058c6a */ 10848 L_36058C65: 10849 MEM32(esi + 0x8) = edx; /* 0x36058C65: mov dword ptr [esi + 8], edx */ 10850 goto L_36058C6C; /* 0x36058C68: jmp 0x36058c6c */ 10851 L_36058C6A: 10852 MEM32(esi) = edx; /* 0x36058C6A: mov dword ptr [esi], edx */ 10853 L_36058C6C: 10854 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 10855 L_36058C6F: 10856 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 10857 L_36058C72: 10858 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 10859 L_36058C75: 10860 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 10861 PUSH32(esp, edx); /* 0x36058C78: push edx */ 10862 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 10863 RECOMP_FLAGS_IN(); 10864 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 10865 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 10866 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10868 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 10869 _flag_k = FK_ADD; 10870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10871 eax = eax - 1; /* 0x36058C87: dec eax */ 10872 _flag_k = FK_DEC; 10873 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 10874 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 10875 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 10876 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 10877 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 10878 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 10879 esp = ebp; /* 0x36058C93: mov esp, ebp */ 10880 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 10881 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 10882 RECOMP_REGS_OUT(); 10883 } 10884 10885 void sub_360589D9(void) { 10886 int _fpu_cmp = 0; 10887 uint32_t _cf = 0; 10888 int _df = 1; 10889 uint32_t _flag_k = FK_NONE; 10890 uint32_t _flag_a = 0, _flag_b = 0; 10891 uint32_t _itail_tgt = 0; 10892 RECOMP_REGS_LOCALS 10893 RECOMP_ENTER(0x360589D9u); 10894 10895 L_360589D9: 10896 MEM32(ebx) = edx; /* 0x360589D9: mov dword ptr [ebx], edx */ 10897 ebx = MEM32(edi + 0x4); /* 0x360589DB: mov ebx, dword ptr [edi + 4] */ 10898 /* cmp MEM32(ebx + 0x8), esi */ /* 0x360589DE: cmp dword ptr [ebx + 8], esi */ 10899 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 10900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10901 _flag_k = FK_CMP; 10902 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A08; /* 0x360589E1: jne 0x36058a08 */ 10903 L_360589E3: 10904 ecx = MEM32(esi); /* 0x360589E3: mov ecx, dword ptr [esi] */ 10905 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360589E5: cmp ecx, dword ptr [edi + 8] */ 10906 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10908 _flag_k = FK_CMP; 10909 if (CMP_NE(_flag_a, _flag_b)) goto L_360589EF; /* 0x360589E8: jne 0x360589ef */ 10910 L_360589EA: 10911 edx = MEM32(esi + 0x4); /* 0x360589EA: mov edx, dword ptr [esi + 4] */ 10912 goto L_36058A05; /* 0x360589ED: jmp 0x36058a05 */ 10913 L_360589EF: 10914 ecx = MEM32(eax + 0x8); /* 0x360589EF: mov ecx, dword ptr [eax + 8] */ 10915 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x360589F2: cmp byte ptr [ecx + 0x15], 0 */ 10916 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 10917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10918 _flag_k = FK_NARROW(FK_CMP, 24); 10919 edx = eax; /* 0x360589F6: mov edx, eax */ 10920 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A05; /* 0x360589F8: jne 0x36058a05 */ 10921 L_360589FA: 10922 edx = ecx; /* 0x360589FA: mov edx, ecx */ 10923 ecx = MEM32(edx + 0x8); /* 0x360589FC: mov ecx, dword ptr [edx + 8] */ 10924 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x360589FF: cmp byte ptr [ecx + 0x15], 0 */ 10925 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 10926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10927 _flag_k = FK_NARROW(FK_CMP, 24); 10928 RECOMP_BACKEDGE(); 10929 if (CMP_EQ(_flag_a, _flag_b)) goto L_360589FA; /* 0x36058A03: je 0x360589fa */ 10930 L_36058A05: 10931 MEM32(ebx + 0x8) = edx; /* 0x36058A05: mov dword ptr [ebx + 8], edx */ 10932 L_36058A08: 10933 ecx = MEM32(ebp + (-0x4)); /* 0x36058A08: mov ecx, dword ptr [ebp - 4] */ 10934 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A0B: mov dl, byte ptr [ecx + 0x14] */ 10935 SET_LO8(ebx, 1); /* 0x36058A0E: mov bl, 1 */ 10936 /* cmp LO8(edx), LO8(ebx) */ /* 0x36058A10: cmp dl, bl */ 10937 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10939 _flag_k = FK_NARROW(FK_CMP, 24); 10940 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C75; /* 0x36058A12: jne 0x36058c75 */ 10941 L_36058A18: 10942 edx = MEM32(edi + 0x4); /* 0x36058A18: mov edx, dword ptr [edi + 4] */ 10943 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36058A1B: cmp eax, dword ptr [edx + 4] */ 10944 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10946 _flag_k = FK_CMP; 10947 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A1E: je 0x36058c72 */ 10948 L_36058A24: 10949 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x36058A24: cmp byte ptr [eax + 0x14], bl */ 10950 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10952 _flag_k = FK_NARROW(FK_CMP, 24); 10953 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A27: jne 0x36058c72 */ 10954 L_36058A2D: 10955 edx = MEM32(eax + 0x4); /* 0x36058A2D: mov edx, dword ptr [eax + 4] */ 10956 ecx = MEM32(edx); /* 0x36058A30: mov ecx, dword ptr [edx] */ 10957 /* cmp eax, ecx */ /* 0x36058A32: cmp eax, ecx */ 10958 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10960 _flag_k = FK_CMP; 10961 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AA4; /* 0x36058A34: jne 0x36058aa4 */ 10962 L_36058A36: 10963 ecx = MEM32(edx + 0x8); /* 0x36058A36: mov ecx, dword ptr [edx + 8] */ 10964 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A39: mov dl, byte ptr [ecx + 0x14] */ 10965 /* test LO8(edx), LO8(edx) */ /* 0x36058A3C: test dl, dl */ 10966 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10967 _cf = 0; 10968 _flag_k = FK_NARROW(FK_TEST, 24); 10969 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058A8B; /* 0x36058A3E: jne 0x36058a8b */ 10970 L_36058A40: 10971 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058A40: mov byte ptr [ecx + 0x14], bl */ 10972 ecx = MEM32(eax + 0x4); /* 0x36058A43: mov ecx, dword ptr [eax + 4] */ 10973 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058A46: mov byte ptr [ecx + 0x14], 0 */ 10974 ecx = MEM32(eax + 0x4); /* 0x36058A4A: mov ecx, dword ptr [eax + 4] */ 10975 edx = MEM32(ecx + 0x8); /* 0x36058A4D: mov edx, dword ptr [ecx + 8] */ 10976 esi = MEM32(edx); /* 0x36058A50: mov esi, dword ptr [edx] */ 10977 MEM32(ecx + 0x8) = esi; /* 0x36058A52: mov dword ptr [ecx + 8], esi */ 10978 esi = MEM32(edx); /* 0x36058A55: mov esi, dword ptr [edx] */ 10979 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058A57: cmp esi, dword ptr [edi + 8] */ 10980 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10982 _flag_k = FK_CMP; 10983 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058A5F; /* 0x36058A5A: je 0x36058a5f */ 10984 L_36058A5C: 10985 MEM32(esi + 0x4) = ecx; /* 0x36058A5C: mov dword ptr [esi + 4], ecx */ 10986 L_36058A5F: 10987 esi = MEM32(ecx + 0x4); /* 0x36058A5F: mov esi, dword ptr [ecx + 4] */ 10988 MEM32(edx + 0x4) = esi; /* 0x36058A62: mov dword ptr [edx + 4], esi */ 10989 esi = MEM32(edi + 0x4); /* 0x36058A65: mov esi, dword ptr [edi + 4] */ 10990 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058A68: cmp ecx, dword ptr [esi + 4] */ 10991 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 10992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10993 _flag_k = FK_CMP; 10994 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A72; /* 0x36058A6B: jne 0x36058a72 */ 10995 L_36058A6D: 10996 MEM32(esi + 0x4) = edx; /* 0x36058A6D: mov dword ptr [esi + 4], edx */ 10997 goto L_36058A80; /* 0x36058A70: jmp 0x36058a80 */ 10998 L_36058A72: 10999 esi = MEM32(ecx + 0x4); /* 0x36058A72: mov esi, dword ptr [ecx + 4] */ 11000 /* cmp ecx, MEM32(esi) */ /* 0x36058A75: cmp ecx, dword ptr [esi] */ 11001 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11003 _flag_k = FK_CMP; 11004 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A7D; /* 0x36058A77: jne 0x36058a7d */ 11005 L_36058A79: 11006 MEM32(esi) = edx; /* 0x36058A79: mov dword ptr [esi], edx */ 11007 goto L_36058A80; /* 0x36058A7B: jmp 0x36058a80 */ 11008 L_36058A7D: 11009 MEM32(esi + 0x8) = edx; /* 0x36058A7D: mov dword ptr [esi + 8], edx */ 11010 L_36058A80: 11011 MEM32(edx) = ecx; /* 0x36058A80: mov dword ptr [edx], ecx */ 11012 MEM32(ecx + 0x4) = edx; /* 0x36058A82: mov dword ptr [ecx + 4], edx */ 11013 edx = MEM32(eax + 0x4); /* 0x36058A85: mov edx, dword ptr [eax + 4] */ 11014 ecx = MEM32(edx + 0x8); /* 0x36058A88: mov ecx, dword ptr [edx + 8] */ 11015 L_36058A8B: 11016 edx = MEM32(ecx); /* 0x36058A8B: mov edx, dword ptr [ecx] */ 11017 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A8D: cmp byte ptr [edx + 0x14], bl */ 11018 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11020 _flag_k = FK_NARROW(FK_CMP, 24); 11021 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A90: jne 0x36058b26 */ 11022 L_36058A96: 11023 edx = MEM32(ecx + 0x8); /* 0x36058A96: mov edx, dword ptr [ecx + 8] */ 11024 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A99: cmp byte ptr [edx + 0x14], bl */ 11025 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11027 _flag_k = FK_NARROW(FK_CMP, 24); 11028 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A9C: jne 0x36058b26 */ 11029 L_36058AA2: 11030 goto L_36058B0E; /* 0x36058AA2: jmp 0x36058b0e */ 11031 L_36058AA4: 11032 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058AA4: mov dl, byte ptr [ecx + 0x14] */ 11033 /* test LO8(edx), LO8(edx) */ /* 0x36058AA7: test dl, dl */ 11034 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11035 _cf = 0; 11036 _flag_k = FK_NARROW(FK_TEST, 24); 11037 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058AF7; /* 0x36058AA9: jne 0x36058af7 */ 11038 L_36058AAB: 11039 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058AAB: mov byte ptr [ecx + 0x14], bl */ 11040 ecx = MEM32(eax + 0x4); /* 0x36058AAE: mov ecx, dword ptr [eax + 4] */ 11041 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058AB1: mov byte ptr [ecx + 0x14], 0 */ 11042 ecx = MEM32(eax + 0x4); /* 0x36058AB5: mov ecx, dword ptr [eax + 4] */ 11043 edx = MEM32(ecx); /* 0x36058AB8: mov edx, dword ptr [ecx] */ 11044 esi = MEM32(edx + 0x8); /* 0x36058ABA: mov esi, dword ptr [edx + 8] */ 11045 MEM32(ecx) = esi; /* 0x36058ABD: mov dword ptr [ecx], esi */ 11046 esi = MEM32(edx + 0x8); /* 0x36058ABF: mov esi, dword ptr [edx + 8] */ 11047 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058AC2: cmp esi, dword ptr [edi + 8] */ 11048 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11050 _flag_k = FK_CMP; 11051 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058ACA; /* 0x36058AC5: je 0x36058aca */ 11052 L_36058AC7: 11053 MEM32(esi + 0x4) = ecx; /* 0x36058AC7: mov dword ptr [esi + 4], ecx */ 11054 L_36058ACA: 11055 esi = MEM32(ecx + 0x4); /* 0x36058ACA: mov esi, dword ptr [ecx + 4] */ 11056 MEM32(edx + 0x4) = esi; /* 0x36058ACD: mov dword ptr [edx + 4], esi */ 11057 esi = MEM32(edi + 0x4); /* 0x36058AD0: mov esi, dword ptr [edi + 4] */ 11058 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058AD3: cmp ecx, dword ptr [esi + 4] */ 11059 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11061 _flag_k = FK_CMP; 11062 if (CMP_NE(_flag_a, _flag_b)) goto L_36058ADD; /* 0x36058AD6: jne 0x36058add */ 11063 L_36058AD8: 11064 MEM32(esi + 0x4) = edx; /* 0x36058AD8: mov dword ptr [esi + 4], edx */ 11065 goto L_36058AEC; /* 0x36058ADB: jmp 0x36058aec */ 11066 L_36058ADD: 11067 esi = MEM32(ecx + 0x4); /* 0x36058ADD: mov esi, dword ptr [ecx + 4] */ 11068 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058AE0: cmp ecx, dword ptr [esi + 8] */ 11069 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11071 _flag_k = FK_CMP; 11072 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AEA; /* 0x36058AE3: jne 0x36058aea */ 11073 L_36058AE5: 11074 MEM32(esi + 0x8) = edx; /* 0x36058AE5: mov dword ptr [esi + 8], edx */ 11075 goto L_36058AEC; /* 0x36058AE8: jmp 0x36058aec */ 11076 L_36058AEA: 11077 MEM32(esi) = edx; /* 0x36058AEA: mov dword ptr [esi], edx */ 11078 L_36058AEC: 11079 MEM32(edx + 0x8) = ecx; /* 0x36058AEC: mov dword ptr [edx + 8], ecx */ 11080 MEM32(ecx + 0x4) = edx; /* 0x36058AEF: mov dword ptr [ecx + 4], edx */ 11081 edx = MEM32(eax + 0x4); /* 0x36058AF2: mov edx, dword ptr [eax + 4] */ 11082 ecx = MEM32(edx); /* 0x36058AF5: mov ecx, dword ptr [edx] */ 11083 L_36058AF7: 11084 edx = MEM32(ecx + 0x8); /* 0x36058AF7: mov edx, dword ptr [ecx + 8] */ 11085 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058AFA: cmp byte ptr [edx + 0x14], bl */ 11086 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11088 _flag_k = FK_NARROW(FK_CMP, 24); 11089 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058AFD: jne 0x36058bd3 */ 11090 L_36058B03: 11091 edx = MEM32(ecx); /* 0x36058B03: mov edx, dword ptr [ecx] */ 11092 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B05: cmp byte ptr [edx + 0x14], bl */ 11093 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11095 _flag_k = FK_NARROW(FK_CMP, 24); 11096 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058B08: jne 0x36058bd3 */ 11097 L_36058B0E: 11098 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B0E: mov byte ptr [ecx + 0x14], 0 */ 11099 ecx = MEM32(edi + 0x4); /* 0x36058B12: mov ecx, dword ptr [edi + 4] */ 11100 eax = MEM32(eax + 0x4); /* 0x36058B15: mov eax, dword ptr [eax + 4] */ 11101 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36058B18: cmp eax, dword ptr [ecx + 4] */ 11102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11104 _flag_k = FK_CMP; 11105 RECOMP_BACKEDGE(); 11106 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A24; /* 0x36058B1B: jne 0x36058a24 */ 11107 L_36058B21: 11108 goto L_36058C72; /* 0x36058B21: jmp 0x36058c72 */ 11109 L_36058B26: 11110 edx = MEM32(ecx + 0x8); /* 0x36058B26: mov edx, dword ptr [ecx + 8] */ 11111 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B29: cmp byte ptr [edx + 0x14], bl */ 11112 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11114 _flag_k = FK_NARROW(FK_CMP, 24); 11115 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B77; /* 0x36058B2C: jne 0x36058b77 */ 11116 L_36058B2E: 11117 edx = MEM32(ecx); /* 0x36058B2E: mov edx, dword ptr [ecx] */ 11118 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B30: mov byte ptr [edx + 0x14], bl */ 11119 edx = MEM32(ecx); /* 0x36058B33: mov edx, dword ptr [ecx] */ 11120 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B35: mov byte ptr [ecx + 0x14], 0 */ 11121 esi = MEM32(edx + 0x8); /* 0x36058B39: mov esi, dword ptr [edx + 8] */ 11122 MEM32(ecx) = esi; /* 0x36058B3C: mov dword ptr [ecx], esi */ 11123 esi = MEM32(edx + 0x8); /* 0x36058B3E: mov esi, dword ptr [edx + 8] */ 11124 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B41: cmp esi, dword ptr [edi + 8] */ 11125 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11127 _flag_k = FK_CMP; 11128 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058B49; /* 0x36058B44: je 0x36058b49 */ 11129 L_36058B46: 11130 MEM32(esi + 0x4) = ecx; /* 0x36058B46: mov dword ptr [esi + 4], ecx */ 11131 L_36058B49: 11132 esi = MEM32(ecx + 0x4); /* 0x36058B49: mov esi, dword ptr [ecx + 4] */ 11133 MEM32(edx + 0x4) = esi; /* 0x36058B4C: mov dword ptr [edx + 4], esi */ 11134 esi = MEM32(edi + 0x4); /* 0x36058B4F: mov esi, dword ptr [edi + 4] */ 11135 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058B52: cmp ecx, dword ptr [esi + 4] */ 11136 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11138 _flag_k = FK_CMP; 11139 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B5C; /* 0x36058B55: jne 0x36058b5c */ 11140 L_36058B57: 11141 MEM32(esi + 0x4) = edx; /* 0x36058B57: mov dword ptr [esi + 4], edx */ 11142 goto L_36058B6B; /* 0x36058B5A: jmp 0x36058b6b */ 11143 L_36058B5C: 11144 esi = MEM32(ecx + 0x4); /* 0x36058B5C: mov esi, dword ptr [ecx + 4] */ 11145 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058B5F: cmp ecx, dword ptr [esi + 8] */ 11146 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11148 _flag_k = FK_CMP; 11149 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B69; /* 0x36058B62: jne 0x36058b69 */ 11150 L_36058B64: 11151 MEM32(esi + 0x8) = edx; /* 0x36058B64: mov dword ptr [esi + 8], edx */ 11152 goto L_36058B6B; /* 0x36058B67: jmp 0x36058b6b */ 11153 L_36058B69: 11154 MEM32(esi) = edx; /* 0x36058B69: mov dword ptr [esi], edx */ 11155 L_36058B6B: 11156 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 11157 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 11158 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 11159 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 11160 L_36058B77: 11161 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 11162 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 11163 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 11164 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 11165 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 11166 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 11167 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 11168 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 11169 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 11170 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 11171 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 11172 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 11173 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 11174 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11176 _flag_k = FK_CMP; 11177 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 11178 L_36058B9E: 11179 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 11180 L_36058BA1: 11181 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 11182 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 11183 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 11184 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 11185 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11187 _flag_k = FK_CMP; 11188 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 11189 L_36058BAF: 11190 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 11191 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 11192 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 11193 L_36058BB9: 11194 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 11195 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 11196 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11198 _flag_k = FK_CMP; 11199 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 11200 L_36058BC0: 11201 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 11202 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 11203 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 11204 L_36058BC9: 11205 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 11206 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 11207 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 11208 L_36058BD3: 11209 edx = MEM32(ecx); /* 0x36058BD3: mov edx, dword ptr [ecx] */ 11210 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058BD5: cmp byte ptr [edx + 0x14], bl */ 11211 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11213 _flag_k = FK_NARROW(FK_CMP, 24); 11214 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C21; /* 0x36058BD8: jne 0x36058c21 */ 11215 L_36058BDA: 11216 edx = MEM32(ecx + 0x8); /* 0x36058BDA: mov edx, dword ptr [ecx + 8] */ 11217 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058BDD: mov byte ptr [edx + 0x14], bl */ 11218 edx = MEM32(ecx + 0x8); /* 0x36058BE0: mov edx, dword ptr [ecx + 8] */ 11219 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058BE3: mov byte ptr [ecx + 0x14], 0 */ 11220 esi = MEM32(edx); /* 0x36058BE7: mov esi, dword ptr [edx] */ 11221 MEM32(ecx + 0x8) = esi; /* 0x36058BE9: mov dword ptr [ecx + 8], esi */ 11222 esi = MEM32(edx); /* 0x36058BEC: mov esi, dword ptr [edx] */ 11223 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058BEE: cmp esi, dword ptr [edi + 8] */ 11224 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11226 _flag_k = FK_CMP; 11227 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BF6; /* 0x36058BF1: je 0x36058bf6 */ 11228 L_36058BF3: 11229 MEM32(esi + 0x4) = ecx; /* 0x36058BF3: mov dword ptr [esi + 4], ecx */ 11230 L_36058BF6: 11231 esi = MEM32(ecx + 0x4); /* 0x36058BF6: mov esi, dword ptr [ecx + 4] */ 11232 MEM32(edx + 0x4) = esi; /* 0x36058BF9: mov dword ptr [edx + 4], esi */ 11233 esi = MEM32(edi + 0x4); /* 0x36058BFC: mov esi, dword ptr [edi + 4] */ 11234 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BFF: cmp ecx, dword ptr [esi + 4] */ 11235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11237 _flag_k = FK_CMP; 11238 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C09; /* 0x36058C02: jne 0x36058c09 */ 11239 L_36058C04: 11240 MEM32(esi + 0x4) = edx; /* 0x36058C04: mov dword ptr [esi + 4], edx */ 11241 goto L_36058C17; /* 0x36058C07: jmp 0x36058c17 */ 11242 L_36058C09: 11243 esi = MEM32(ecx + 0x4); /* 0x36058C09: mov esi, dword ptr [ecx + 4] */ 11244 /* cmp ecx, MEM32(esi) */ /* 0x36058C0C: cmp ecx, dword ptr [esi] */ 11245 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11247 _flag_k = FK_CMP; 11248 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C14; /* 0x36058C0E: jne 0x36058c14 */ 11249 L_36058C10: 11250 MEM32(esi) = edx; /* 0x36058C10: mov dword ptr [esi], edx */ 11251 goto L_36058C17; /* 0x36058C12: jmp 0x36058c17 */ 11252 L_36058C14: 11253 MEM32(esi + 0x8) = edx; /* 0x36058C14: mov dword ptr [esi + 8], edx */ 11254 L_36058C17: 11255 MEM32(edx) = ecx; /* 0x36058C17: mov dword ptr [edx], ecx */ 11256 MEM32(ecx + 0x4) = edx; /* 0x36058C19: mov dword ptr [ecx + 4], edx */ 11257 ecx = MEM32(eax + 0x4); /* 0x36058C1C: mov ecx, dword ptr [eax + 4] */ 11258 ecx = MEM32(ecx); /* 0x36058C1F: mov ecx, dword ptr [ecx] */ 11259 L_36058C21: 11260 edx = MEM32(eax + 0x4); /* 0x36058C21: mov edx, dword ptr [eax + 4] */ 11261 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058C24: mov dl, byte ptr [edx + 0x14] */ 11262 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058C27: mov byte ptr [ecx + 0x14], dl */ 11263 edx = MEM32(eax + 0x4); /* 0x36058C2A: mov edx, dword ptr [eax + 4] */ 11264 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C2D: mov byte ptr [edx + 0x14], bl */ 11265 ecx = MEM32(ecx); /* 0x36058C30: mov ecx, dword ptr [ecx] */ 11266 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C32: mov byte ptr [ecx + 0x14], bl */ 11267 ecx = MEM32(eax + 0x4); /* 0x36058C35: mov ecx, dword ptr [eax + 4] */ 11268 edx = MEM32(ecx); /* 0x36058C38: mov edx, dword ptr [ecx] */ 11269 esi = MEM32(edx + 0x8); /* 0x36058C3A: mov esi, dword ptr [edx + 8] */ 11270 MEM32(ecx) = esi; /* 0x36058C3D: mov dword ptr [ecx], esi */ 11271 esi = MEM32(edx + 0x8); /* 0x36058C3F: mov esi, dword ptr [edx + 8] */ 11272 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058C42: cmp esi, dword ptr [edi + 8] */ 11273 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11275 _flag_k = FK_CMP; 11276 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C4A; /* 0x36058C45: je 0x36058c4a */ 11277 L_36058C47: 11278 MEM32(esi + 0x4) = ecx; /* 0x36058C47: mov dword ptr [esi + 4], ecx */ 11279 L_36058C4A: 11280 esi = MEM32(ecx + 0x4); /* 0x36058C4A: mov esi, dword ptr [ecx + 4] */ 11281 MEM32(edx + 0x4) = esi; /* 0x36058C4D: mov dword ptr [edx + 4], esi */ 11282 esi = MEM32(edi + 0x4); /* 0x36058C50: mov esi, dword ptr [edi + 4] */ 11283 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058C53: cmp ecx, dword ptr [esi + 4] */ 11284 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11286 _flag_k = FK_CMP; 11287 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C5D; /* 0x36058C56: jne 0x36058c5d */ 11288 L_36058C58: 11289 MEM32(esi + 0x4) = edx; /* 0x36058C58: mov dword ptr [esi + 4], edx */ 11290 goto L_36058C6C; /* 0x36058C5B: jmp 0x36058c6c */ 11291 L_36058C5D: 11292 esi = MEM32(ecx + 0x4); /* 0x36058C5D: mov esi, dword ptr [ecx + 4] */ 11293 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058C60: cmp ecx, dword ptr [esi + 8] */ 11294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11296 _flag_k = FK_CMP; 11297 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C6A; /* 0x36058C63: jne 0x36058c6a */ 11298 L_36058C65: 11299 MEM32(esi + 0x8) = edx; /* 0x36058C65: mov dword ptr [esi + 8], edx */ 11300 goto L_36058C6C; /* 0x36058C68: jmp 0x36058c6c */ 11301 L_36058C6A: 11302 MEM32(esi) = edx; /* 0x36058C6A: mov dword ptr [esi], edx */ 11303 L_36058C6C: 11304 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 11305 L_36058C6F: 11306 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 11307 L_36058C72: 11308 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 11309 L_36058C75: 11310 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 11311 PUSH32(esp, edx); /* 0x36058C78: push edx */ 11312 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 11313 RECOMP_FLAGS_IN(); 11314 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 11315 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 11316 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11317 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11318 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 11319 _flag_k = FK_ADD; 11320 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11321 eax = eax - 1; /* 0x36058C87: dec eax */ 11322 _flag_k = FK_DEC; 11323 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 11324 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 11325 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 11326 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 11327 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 11328 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 11329 esp = ebp; /* 0x36058C93: mov esp, ebp */ 11330 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 11331 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 11332 RECOMP_REGS_OUT(); 11333 } 11334 11335 void sub_36058A05(void) { 11336 int _fpu_cmp = 0; 11337 uint32_t _cf = 0; 11338 int _df = 1; 11339 uint32_t _flag_k = FK_NONE; 11340 uint32_t _flag_a = 0, _flag_b = 0; 11341 uint32_t _itail_tgt = 0; 11342 RECOMP_REGS_LOCALS 11343 RECOMP_ENTER(0x36058A05u); 11344 11345 L_36058A05: 11346 MEM32(ebx + 0x8) = edx; /* 0x36058A05: mov dword ptr [ebx + 8], edx */ 11347 ecx = MEM32(ebp + (-0x4)); /* 0x36058A08: mov ecx, dword ptr [ebp - 4] */ 11348 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A0B: mov dl, byte ptr [ecx + 0x14] */ 11349 SET_LO8(ebx, 1); /* 0x36058A0E: mov bl, 1 */ 11350 /* cmp LO8(edx), LO8(ebx) */ /* 0x36058A10: cmp dl, bl */ 11351 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11353 _flag_k = FK_NARROW(FK_CMP, 24); 11354 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C75; /* 0x36058A12: jne 0x36058c75 */ 11355 L_36058A18: 11356 edx = MEM32(edi + 0x4); /* 0x36058A18: mov edx, dword ptr [edi + 4] */ 11357 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36058A1B: cmp eax, dword ptr [edx + 4] */ 11358 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 11359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11360 _flag_k = FK_CMP; 11361 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A1E: je 0x36058c72 */ 11362 L_36058A24: 11363 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x36058A24: cmp byte ptr [eax + 0x14], bl */ 11364 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11366 _flag_k = FK_NARROW(FK_CMP, 24); 11367 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A27: jne 0x36058c72 */ 11368 L_36058A2D: 11369 edx = MEM32(eax + 0x4); /* 0x36058A2D: mov edx, dword ptr [eax + 4] */ 11370 ecx = MEM32(edx); /* 0x36058A30: mov ecx, dword ptr [edx] */ 11371 /* cmp eax, ecx */ /* 0x36058A32: cmp eax, ecx */ 11372 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11374 _flag_k = FK_CMP; 11375 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AA4; /* 0x36058A34: jne 0x36058aa4 */ 11376 L_36058A36: 11377 ecx = MEM32(edx + 0x8); /* 0x36058A36: mov ecx, dword ptr [edx + 8] */ 11378 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A39: mov dl, byte ptr [ecx + 0x14] */ 11379 /* test LO8(edx), LO8(edx) */ /* 0x36058A3C: test dl, dl */ 11380 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11381 _cf = 0; 11382 _flag_k = FK_NARROW(FK_TEST, 24); 11383 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058A8B; /* 0x36058A3E: jne 0x36058a8b */ 11384 L_36058A40: 11385 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058A40: mov byte ptr [ecx + 0x14], bl */ 11386 ecx = MEM32(eax + 0x4); /* 0x36058A43: mov ecx, dword ptr [eax + 4] */ 11387 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058A46: mov byte ptr [ecx + 0x14], 0 */ 11388 ecx = MEM32(eax + 0x4); /* 0x36058A4A: mov ecx, dword ptr [eax + 4] */ 11389 edx = MEM32(ecx + 0x8); /* 0x36058A4D: mov edx, dword ptr [ecx + 8] */ 11390 esi = MEM32(edx); /* 0x36058A50: mov esi, dword ptr [edx] */ 11391 MEM32(ecx + 0x8) = esi; /* 0x36058A52: mov dword ptr [ecx + 8], esi */ 11392 esi = MEM32(edx); /* 0x36058A55: mov esi, dword ptr [edx] */ 11393 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058A57: cmp esi, dword ptr [edi + 8] */ 11394 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11396 _flag_k = FK_CMP; 11397 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058A5F; /* 0x36058A5A: je 0x36058a5f */ 11398 L_36058A5C: 11399 MEM32(esi + 0x4) = ecx; /* 0x36058A5C: mov dword ptr [esi + 4], ecx */ 11400 L_36058A5F: 11401 esi = MEM32(ecx + 0x4); /* 0x36058A5F: mov esi, dword ptr [ecx + 4] */ 11402 MEM32(edx + 0x4) = esi; /* 0x36058A62: mov dword ptr [edx + 4], esi */ 11403 esi = MEM32(edi + 0x4); /* 0x36058A65: mov esi, dword ptr [edi + 4] */ 11404 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058A68: cmp ecx, dword ptr [esi + 4] */ 11405 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11407 _flag_k = FK_CMP; 11408 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A72; /* 0x36058A6B: jne 0x36058a72 */ 11409 L_36058A6D: 11410 MEM32(esi + 0x4) = edx; /* 0x36058A6D: mov dword ptr [esi + 4], edx */ 11411 goto L_36058A80; /* 0x36058A70: jmp 0x36058a80 */ 11412 L_36058A72: 11413 esi = MEM32(ecx + 0x4); /* 0x36058A72: mov esi, dword ptr [ecx + 4] */ 11414 /* cmp ecx, MEM32(esi) */ /* 0x36058A75: cmp ecx, dword ptr [esi] */ 11415 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11417 _flag_k = FK_CMP; 11418 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A7D; /* 0x36058A77: jne 0x36058a7d */ 11419 L_36058A79: 11420 MEM32(esi) = edx; /* 0x36058A79: mov dword ptr [esi], edx */ 11421 goto L_36058A80; /* 0x36058A7B: jmp 0x36058a80 */ 11422 L_36058A7D: 11423 MEM32(esi + 0x8) = edx; /* 0x36058A7D: mov dword ptr [esi + 8], edx */ 11424 L_36058A80: 11425 MEM32(edx) = ecx; /* 0x36058A80: mov dword ptr [edx], ecx */ 11426 MEM32(ecx + 0x4) = edx; /* 0x36058A82: mov dword ptr [ecx + 4], edx */ 11427 edx = MEM32(eax + 0x4); /* 0x36058A85: mov edx, dword ptr [eax + 4] */ 11428 ecx = MEM32(edx + 0x8); /* 0x36058A88: mov ecx, dword ptr [edx + 8] */ 11429 L_36058A8B: 11430 edx = MEM32(ecx); /* 0x36058A8B: mov edx, dword ptr [ecx] */ 11431 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A8D: cmp byte ptr [edx + 0x14], bl */ 11432 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11434 _flag_k = FK_NARROW(FK_CMP, 24); 11435 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A90: jne 0x36058b26 */ 11436 L_36058A96: 11437 edx = MEM32(ecx + 0x8); /* 0x36058A96: mov edx, dword ptr [ecx + 8] */ 11438 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A99: cmp byte ptr [edx + 0x14], bl */ 11439 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11441 _flag_k = FK_NARROW(FK_CMP, 24); 11442 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A9C: jne 0x36058b26 */ 11443 L_36058AA2: 11444 goto L_36058B0E; /* 0x36058AA2: jmp 0x36058b0e */ 11445 L_36058AA4: 11446 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058AA4: mov dl, byte ptr [ecx + 0x14] */ 11447 /* test LO8(edx), LO8(edx) */ /* 0x36058AA7: test dl, dl */ 11448 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11449 _cf = 0; 11450 _flag_k = FK_NARROW(FK_TEST, 24); 11451 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058AF7; /* 0x36058AA9: jne 0x36058af7 */ 11452 L_36058AAB: 11453 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058AAB: mov byte ptr [ecx + 0x14], bl */ 11454 ecx = MEM32(eax + 0x4); /* 0x36058AAE: mov ecx, dword ptr [eax + 4] */ 11455 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058AB1: mov byte ptr [ecx + 0x14], 0 */ 11456 ecx = MEM32(eax + 0x4); /* 0x36058AB5: mov ecx, dword ptr [eax + 4] */ 11457 edx = MEM32(ecx); /* 0x36058AB8: mov edx, dword ptr [ecx] */ 11458 esi = MEM32(edx + 0x8); /* 0x36058ABA: mov esi, dword ptr [edx + 8] */ 11459 MEM32(ecx) = esi; /* 0x36058ABD: mov dword ptr [ecx], esi */ 11460 esi = MEM32(edx + 0x8); /* 0x36058ABF: mov esi, dword ptr [edx + 8] */ 11461 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058AC2: cmp esi, dword ptr [edi + 8] */ 11462 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11464 _flag_k = FK_CMP; 11465 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058ACA; /* 0x36058AC5: je 0x36058aca */ 11466 L_36058AC7: 11467 MEM32(esi + 0x4) = ecx; /* 0x36058AC7: mov dword ptr [esi + 4], ecx */ 11468 L_36058ACA: 11469 esi = MEM32(ecx + 0x4); /* 0x36058ACA: mov esi, dword ptr [ecx + 4] */ 11470 MEM32(edx + 0x4) = esi; /* 0x36058ACD: mov dword ptr [edx + 4], esi */ 11471 esi = MEM32(edi + 0x4); /* 0x36058AD0: mov esi, dword ptr [edi + 4] */ 11472 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058AD3: cmp ecx, dword ptr [esi + 4] */ 11473 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11475 _flag_k = FK_CMP; 11476 if (CMP_NE(_flag_a, _flag_b)) goto L_36058ADD; /* 0x36058AD6: jne 0x36058add */ 11477 L_36058AD8: 11478 MEM32(esi + 0x4) = edx; /* 0x36058AD8: mov dword ptr [esi + 4], edx */ 11479 goto L_36058AEC; /* 0x36058ADB: jmp 0x36058aec */ 11480 L_36058ADD: 11481 esi = MEM32(ecx + 0x4); /* 0x36058ADD: mov esi, dword ptr [ecx + 4] */ 11482 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058AE0: cmp ecx, dword ptr [esi + 8] */ 11483 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11485 _flag_k = FK_CMP; 11486 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AEA; /* 0x36058AE3: jne 0x36058aea */ 11487 L_36058AE5: 11488 MEM32(esi + 0x8) = edx; /* 0x36058AE5: mov dword ptr [esi + 8], edx */ 11489 goto L_36058AEC; /* 0x36058AE8: jmp 0x36058aec */ 11490 L_36058AEA: 11491 MEM32(esi) = edx; /* 0x36058AEA: mov dword ptr [esi], edx */ 11492 L_36058AEC: 11493 MEM32(edx + 0x8) = ecx; /* 0x36058AEC: mov dword ptr [edx + 8], ecx */ 11494 MEM32(ecx + 0x4) = edx; /* 0x36058AEF: mov dword ptr [ecx + 4], edx */ 11495 edx = MEM32(eax + 0x4); /* 0x36058AF2: mov edx, dword ptr [eax + 4] */ 11496 ecx = MEM32(edx); /* 0x36058AF5: mov ecx, dword ptr [edx] */ 11497 L_36058AF7: 11498 edx = MEM32(ecx + 0x8); /* 0x36058AF7: mov edx, dword ptr [ecx + 8] */ 11499 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058AFA: cmp byte ptr [edx + 0x14], bl */ 11500 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11502 _flag_k = FK_NARROW(FK_CMP, 24); 11503 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058AFD: jne 0x36058bd3 */ 11504 L_36058B03: 11505 edx = MEM32(ecx); /* 0x36058B03: mov edx, dword ptr [ecx] */ 11506 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B05: cmp byte ptr [edx + 0x14], bl */ 11507 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11509 _flag_k = FK_NARROW(FK_CMP, 24); 11510 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058B08: jne 0x36058bd3 */ 11511 L_36058B0E: 11512 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B0E: mov byte ptr [ecx + 0x14], 0 */ 11513 ecx = MEM32(edi + 0x4); /* 0x36058B12: mov ecx, dword ptr [edi + 4] */ 11514 eax = MEM32(eax + 0x4); /* 0x36058B15: mov eax, dword ptr [eax + 4] */ 11515 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36058B18: cmp eax, dword ptr [ecx + 4] */ 11516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11518 _flag_k = FK_CMP; 11519 RECOMP_BACKEDGE(); 11520 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A24; /* 0x36058B1B: jne 0x36058a24 */ 11521 L_36058B21: 11522 goto L_36058C72; /* 0x36058B21: jmp 0x36058c72 */ 11523 L_36058B26: 11524 edx = MEM32(ecx + 0x8); /* 0x36058B26: mov edx, dword ptr [ecx + 8] */ 11525 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B29: cmp byte ptr [edx + 0x14], bl */ 11526 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11528 _flag_k = FK_NARROW(FK_CMP, 24); 11529 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B77; /* 0x36058B2C: jne 0x36058b77 */ 11530 L_36058B2E: 11531 edx = MEM32(ecx); /* 0x36058B2E: mov edx, dword ptr [ecx] */ 11532 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B30: mov byte ptr [edx + 0x14], bl */ 11533 edx = MEM32(ecx); /* 0x36058B33: mov edx, dword ptr [ecx] */ 11534 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B35: mov byte ptr [ecx + 0x14], 0 */ 11535 esi = MEM32(edx + 0x8); /* 0x36058B39: mov esi, dword ptr [edx + 8] */ 11536 MEM32(ecx) = esi; /* 0x36058B3C: mov dword ptr [ecx], esi */ 11537 esi = MEM32(edx + 0x8); /* 0x36058B3E: mov esi, dword ptr [edx + 8] */ 11538 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B41: cmp esi, dword ptr [edi + 8] */ 11539 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11540 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11541 _flag_k = FK_CMP; 11542 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058B49; /* 0x36058B44: je 0x36058b49 */ 11543 L_36058B46: 11544 MEM32(esi + 0x4) = ecx; /* 0x36058B46: mov dword ptr [esi + 4], ecx */ 11545 L_36058B49: 11546 esi = MEM32(ecx + 0x4); /* 0x36058B49: mov esi, dword ptr [ecx + 4] */ 11547 MEM32(edx + 0x4) = esi; /* 0x36058B4C: mov dword ptr [edx + 4], esi */ 11548 esi = MEM32(edi + 0x4); /* 0x36058B4F: mov esi, dword ptr [edi + 4] */ 11549 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058B52: cmp ecx, dword ptr [esi + 4] */ 11550 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11552 _flag_k = FK_CMP; 11553 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B5C; /* 0x36058B55: jne 0x36058b5c */ 11554 L_36058B57: 11555 MEM32(esi + 0x4) = edx; /* 0x36058B57: mov dword ptr [esi + 4], edx */ 11556 goto L_36058B6B; /* 0x36058B5A: jmp 0x36058b6b */ 11557 L_36058B5C: 11558 esi = MEM32(ecx + 0x4); /* 0x36058B5C: mov esi, dword ptr [ecx + 4] */ 11559 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058B5F: cmp ecx, dword ptr [esi + 8] */ 11560 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11562 _flag_k = FK_CMP; 11563 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B69; /* 0x36058B62: jne 0x36058b69 */ 11564 L_36058B64: 11565 MEM32(esi + 0x8) = edx; /* 0x36058B64: mov dword ptr [esi + 8], edx */ 11566 goto L_36058B6B; /* 0x36058B67: jmp 0x36058b6b */ 11567 L_36058B69: 11568 MEM32(esi) = edx; /* 0x36058B69: mov dword ptr [esi], edx */ 11569 L_36058B6B: 11570 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 11571 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 11572 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 11573 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 11574 L_36058B77: 11575 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 11576 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 11577 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 11578 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 11579 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 11580 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 11581 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 11582 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 11583 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 11584 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 11585 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 11586 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 11587 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 11588 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11590 _flag_k = FK_CMP; 11591 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 11592 L_36058B9E: 11593 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 11594 L_36058BA1: 11595 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 11596 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 11597 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 11598 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 11599 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11600 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11601 _flag_k = FK_CMP; 11602 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 11603 L_36058BAF: 11604 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 11605 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 11606 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 11607 L_36058BB9: 11608 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 11609 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 11610 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11612 _flag_k = FK_CMP; 11613 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 11614 L_36058BC0: 11615 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 11616 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 11617 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 11618 L_36058BC9: 11619 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 11620 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 11621 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 11622 L_36058BD3: 11623 edx = MEM32(ecx); /* 0x36058BD3: mov edx, dword ptr [ecx] */ 11624 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058BD5: cmp byte ptr [edx + 0x14], bl */ 11625 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11627 _flag_k = FK_NARROW(FK_CMP, 24); 11628 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C21; /* 0x36058BD8: jne 0x36058c21 */ 11629 L_36058BDA: 11630 edx = MEM32(ecx + 0x8); /* 0x36058BDA: mov edx, dword ptr [ecx + 8] */ 11631 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058BDD: mov byte ptr [edx + 0x14], bl */ 11632 edx = MEM32(ecx + 0x8); /* 0x36058BE0: mov edx, dword ptr [ecx + 8] */ 11633 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058BE3: mov byte ptr [ecx + 0x14], 0 */ 11634 esi = MEM32(edx); /* 0x36058BE7: mov esi, dword ptr [edx] */ 11635 MEM32(ecx + 0x8) = esi; /* 0x36058BE9: mov dword ptr [ecx + 8], esi */ 11636 esi = MEM32(edx); /* 0x36058BEC: mov esi, dword ptr [edx] */ 11637 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058BEE: cmp esi, dword ptr [edi + 8] */ 11638 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11640 _flag_k = FK_CMP; 11641 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BF6; /* 0x36058BF1: je 0x36058bf6 */ 11642 L_36058BF3: 11643 MEM32(esi + 0x4) = ecx; /* 0x36058BF3: mov dword ptr [esi + 4], ecx */ 11644 L_36058BF6: 11645 esi = MEM32(ecx + 0x4); /* 0x36058BF6: mov esi, dword ptr [ecx + 4] */ 11646 MEM32(edx + 0x4) = esi; /* 0x36058BF9: mov dword ptr [edx + 4], esi */ 11647 esi = MEM32(edi + 0x4); /* 0x36058BFC: mov esi, dword ptr [edi + 4] */ 11648 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BFF: cmp ecx, dword ptr [esi + 4] */ 11649 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11651 _flag_k = FK_CMP; 11652 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C09; /* 0x36058C02: jne 0x36058c09 */ 11653 L_36058C04: 11654 MEM32(esi + 0x4) = edx; /* 0x36058C04: mov dword ptr [esi + 4], edx */ 11655 goto L_36058C17; /* 0x36058C07: jmp 0x36058c17 */ 11656 L_36058C09: 11657 esi = MEM32(ecx + 0x4); /* 0x36058C09: mov esi, dword ptr [ecx + 4] */ 11658 /* cmp ecx, MEM32(esi) */ /* 0x36058C0C: cmp ecx, dword ptr [esi] */ 11659 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11661 _flag_k = FK_CMP; 11662 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C14; /* 0x36058C0E: jne 0x36058c14 */ 11663 L_36058C10: 11664 MEM32(esi) = edx; /* 0x36058C10: mov dword ptr [esi], edx */ 11665 goto L_36058C17; /* 0x36058C12: jmp 0x36058c17 */ 11666 L_36058C14: 11667 MEM32(esi + 0x8) = edx; /* 0x36058C14: mov dword ptr [esi + 8], edx */ 11668 L_36058C17: 11669 MEM32(edx) = ecx; /* 0x36058C17: mov dword ptr [edx], ecx */ 11670 MEM32(ecx + 0x4) = edx; /* 0x36058C19: mov dword ptr [ecx + 4], edx */ 11671 ecx = MEM32(eax + 0x4); /* 0x36058C1C: mov ecx, dword ptr [eax + 4] */ 11672 ecx = MEM32(ecx); /* 0x36058C1F: mov ecx, dword ptr [ecx] */ 11673 L_36058C21: 11674 edx = MEM32(eax + 0x4); /* 0x36058C21: mov edx, dword ptr [eax + 4] */ 11675 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058C24: mov dl, byte ptr [edx + 0x14] */ 11676 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058C27: mov byte ptr [ecx + 0x14], dl */ 11677 edx = MEM32(eax + 0x4); /* 0x36058C2A: mov edx, dword ptr [eax + 4] */ 11678 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C2D: mov byte ptr [edx + 0x14], bl */ 11679 ecx = MEM32(ecx); /* 0x36058C30: mov ecx, dword ptr [ecx] */ 11680 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C32: mov byte ptr [ecx + 0x14], bl */ 11681 ecx = MEM32(eax + 0x4); /* 0x36058C35: mov ecx, dword ptr [eax + 4] */ 11682 edx = MEM32(ecx); /* 0x36058C38: mov edx, dword ptr [ecx] */ 11683 esi = MEM32(edx + 0x8); /* 0x36058C3A: mov esi, dword ptr [edx + 8] */ 11684 MEM32(ecx) = esi; /* 0x36058C3D: mov dword ptr [ecx], esi */ 11685 esi = MEM32(edx + 0x8); /* 0x36058C3F: mov esi, dword ptr [edx + 8] */ 11686 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058C42: cmp esi, dword ptr [edi + 8] */ 11687 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11689 _flag_k = FK_CMP; 11690 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C4A; /* 0x36058C45: je 0x36058c4a */ 11691 L_36058C47: 11692 MEM32(esi + 0x4) = ecx; /* 0x36058C47: mov dword ptr [esi + 4], ecx */ 11693 L_36058C4A: 11694 esi = MEM32(ecx + 0x4); /* 0x36058C4A: mov esi, dword ptr [ecx + 4] */ 11695 MEM32(edx + 0x4) = esi; /* 0x36058C4D: mov dword ptr [edx + 4], esi */ 11696 esi = MEM32(edi + 0x4); /* 0x36058C50: mov esi, dword ptr [edi + 4] */ 11697 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058C53: cmp ecx, dword ptr [esi + 4] */ 11698 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11700 _flag_k = FK_CMP; 11701 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C5D; /* 0x36058C56: jne 0x36058c5d */ 11702 L_36058C58: 11703 MEM32(esi + 0x4) = edx; /* 0x36058C58: mov dword ptr [esi + 4], edx */ 11704 goto L_36058C6C; /* 0x36058C5B: jmp 0x36058c6c */ 11705 L_36058C5D: 11706 esi = MEM32(ecx + 0x4); /* 0x36058C5D: mov esi, dword ptr [ecx + 4] */ 11707 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058C60: cmp ecx, dword ptr [esi + 8] */ 11708 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11710 _flag_k = FK_CMP; 11711 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C6A; /* 0x36058C63: jne 0x36058c6a */ 11712 L_36058C65: 11713 MEM32(esi + 0x8) = edx; /* 0x36058C65: mov dword ptr [esi + 8], edx */ 11714 goto L_36058C6C; /* 0x36058C68: jmp 0x36058c6c */ 11715 L_36058C6A: 11716 MEM32(esi) = edx; /* 0x36058C6A: mov dword ptr [esi], edx */ 11717 L_36058C6C: 11718 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 11719 L_36058C6F: 11720 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 11721 L_36058C72: 11722 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 11723 L_36058C75: 11724 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 11725 PUSH32(esp, edx); /* 0x36058C78: push edx */ 11726 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 11727 RECOMP_FLAGS_IN(); 11728 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 11729 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 11730 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11732 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 11733 _flag_k = FK_ADD; 11734 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11735 eax = eax - 1; /* 0x36058C87: dec eax */ 11736 _flag_k = FK_DEC; 11737 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 11738 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 11739 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 11740 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 11741 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 11742 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 11743 esp = ebp; /* 0x36058C93: mov esp, ebp */ 11744 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 11745 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 11746 RECOMP_REGS_OUT(); 11747 } 11748 11749 void sub_36058A24(void) { 11750 int _fpu_cmp = 0; 11751 uint32_t _cf = 0; 11752 int _df = 1; 11753 uint32_t _flag_k = FK_NONE; 11754 uint32_t _flag_a = 0, _flag_b = 0; 11755 uint32_t _itail_tgt = 0; 11756 RECOMP_REGS_LOCALS 11757 RECOMP_ENTER(0x36058A24u); 11758 11759 L_36058A24: 11760 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x36058A24: cmp byte ptr [eax + 0x14], bl */ 11761 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11763 _flag_k = FK_NARROW(FK_CMP, 24); 11764 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A27: jne 0x36058c72 */ 11765 L_36058A2D: 11766 edx = MEM32(eax + 0x4); /* 0x36058A2D: mov edx, dword ptr [eax + 4] */ 11767 ecx = MEM32(edx); /* 0x36058A30: mov ecx, dword ptr [edx] */ 11768 /* cmp eax, ecx */ /* 0x36058A32: cmp eax, ecx */ 11769 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11771 _flag_k = FK_CMP; 11772 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AA4; /* 0x36058A34: jne 0x36058aa4 */ 11773 L_36058A36: 11774 ecx = MEM32(edx + 0x8); /* 0x36058A36: mov ecx, dword ptr [edx + 8] */ 11775 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A39: mov dl, byte ptr [ecx + 0x14] */ 11776 /* test LO8(edx), LO8(edx) */ /* 0x36058A3C: test dl, dl */ 11777 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11778 _cf = 0; 11779 _flag_k = FK_NARROW(FK_TEST, 24); 11780 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058A8B; /* 0x36058A3E: jne 0x36058a8b */ 11781 L_36058A40: 11782 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058A40: mov byte ptr [ecx + 0x14], bl */ 11783 ecx = MEM32(eax + 0x4); /* 0x36058A43: mov ecx, dword ptr [eax + 4] */ 11784 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058A46: mov byte ptr [ecx + 0x14], 0 */ 11785 ecx = MEM32(eax + 0x4); /* 0x36058A4A: mov ecx, dword ptr [eax + 4] */ 11786 edx = MEM32(ecx + 0x8); /* 0x36058A4D: mov edx, dword ptr [ecx + 8] */ 11787 esi = MEM32(edx); /* 0x36058A50: mov esi, dword ptr [edx] */ 11788 MEM32(ecx + 0x8) = esi; /* 0x36058A52: mov dword ptr [ecx + 8], esi */ 11789 esi = MEM32(edx); /* 0x36058A55: mov esi, dword ptr [edx] */ 11790 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058A57: cmp esi, dword ptr [edi + 8] */ 11791 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11793 _flag_k = FK_CMP; 11794 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058A5F; /* 0x36058A5A: je 0x36058a5f */ 11795 L_36058A5C: 11796 MEM32(esi + 0x4) = ecx; /* 0x36058A5C: mov dword ptr [esi + 4], ecx */ 11797 L_36058A5F: 11798 esi = MEM32(ecx + 0x4); /* 0x36058A5F: mov esi, dword ptr [ecx + 4] */ 11799 MEM32(edx + 0x4) = esi; /* 0x36058A62: mov dword ptr [edx + 4], esi */ 11800 esi = MEM32(edi + 0x4); /* 0x36058A65: mov esi, dword ptr [edi + 4] */ 11801 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058A68: cmp ecx, dword ptr [esi + 4] */ 11802 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11804 _flag_k = FK_CMP; 11805 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A72; /* 0x36058A6B: jne 0x36058a72 */ 11806 L_36058A6D: 11807 MEM32(esi + 0x4) = edx; /* 0x36058A6D: mov dword ptr [esi + 4], edx */ 11808 goto L_36058A80; /* 0x36058A70: jmp 0x36058a80 */ 11809 L_36058A72: 11810 esi = MEM32(ecx + 0x4); /* 0x36058A72: mov esi, dword ptr [ecx + 4] */ 11811 /* cmp ecx, MEM32(esi) */ /* 0x36058A75: cmp ecx, dword ptr [esi] */ 11812 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 11813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11814 _flag_k = FK_CMP; 11815 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A7D; /* 0x36058A77: jne 0x36058a7d */ 11816 L_36058A79: 11817 MEM32(esi) = edx; /* 0x36058A79: mov dword ptr [esi], edx */ 11818 goto L_36058A80; /* 0x36058A7B: jmp 0x36058a80 */ 11819 L_36058A7D: 11820 MEM32(esi + 0x8) = edx; /* 0x36058A7D: mov dword ptr [esi + 8], edx */ 11821 L_36058A80: 11822 MEM32(edx) = ecx; /* 0x36058A80: mov dword ptr [edx], ecx */ 11823 MEM32(ecx + 0x4) = edx; /* 0x36058A82: mov dword ptr [ecx + 4], edx */ 11824 edx = MEM32(eax + 0x4); /* 0x36058A85: mov edx, dword ptr [eax + 4] */ 11825 ecx = MEM32(edx + 0x8); /* 0x36058A88: mov ecx, dword ptr [edx + 8] */ 11826 L_36058A8B: 11827 edx = MEM32(ecx); /* 0x36058A8B: mov edx, dword ptr [ecx] */ 11828 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A8D: cmp byte ptr [edx + 0x14], bl */ 11829 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11831 _flag_k = FK_NARROW(FK_CMP, 24); 11832 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A90: jne 0x36058b26 */ 11833 L_36058A96: 11834 edx = MEM32(ecx + 0x8); /* 0x36058A96: mov edx, dword ptr [ecx + 8] */ 11835 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A99: cmp byte ptr [edx + 0x14], bl */ 11836 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11838 _flag_k = FK_NARROW(FK_CMP, 24); 11839 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A9C: jne 0x36058b26 */ 11840 L_36058AA2: 11841 goto L_36058B0E; /* 0x36058AA2: jmp 0x36058b0e */ 11842 L_36058AA4: 11843 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058AA4: mov dl, byte ptr [ecx + 0x14] */ 11844 /* test LO8(edx), LO8(edx) */ /* 0x36058AA7: test dl, dl */ 11845 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 11846 _cf = 0; 11847 _flag_k = FK_NARROW(FK_TEST, 24); 11848 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058AF7; /* 0x36058AA9: jne 0x36058af7 */ 11849 L_36058AAB: 11850 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058AAB: mov byte ptr [ecx + 0x14], bl */ 11851 ecx = MEM32(eax + 0x4); /* 0x36058AAE: mov ecx, dword ptr [eax + 4] */ 11852 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058AB1: mov byte ptr [ecx + 0x14], 0 */ 11853 ecx = MEM32(eax + 0x4); /* 0x36058AB5: mov ecx, dword ptr [eax + 4] */ 11854 edx = MEM32(ecx); /* 0x36058AB8: mov edx, dword ptr [ecx] */ 11855 esi = MEM32(edx + 0x8); /* 0x36058ABA: mov esi, dword ptr [edx + 8] */ 11856 MEM32(ecx) = esi; /* 0x36058ABD: mov dword ptr [ecx], esi */ 11857 esi = MEM32(edx + 0x8); /* 0x36058ABF: mov esi, dword ptr [edx + 8] */ 11858 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058AC2: cmp esi, dword ptr [edi + 8] */ 11859 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11861 _flag_k = FK_CMP; 11862 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058ACA; /* 0x36058AC5: je 0x36058aca */ 11863 L_36058AC7: 11864 MEM32(esi + 0x4) = ecx; /* 0x36058AC7: mov dword ptr [esi + 4], ecx */ 11865 L_36058ACA: 11866 esi = MEM32(ecx + 0x4); /* 0x36058ACA: mov esi, dword ptr [ecx + 4] */ 11867 MEM32(edx + 0x4) = esi; /* 0x36058ACD: mov dword ptr [edx + 4], esi */ 11868 esi = MEM32(edi + 0x4); /* 0x36058AD0: mov esi, dword ptr [edi + 4] */ 11869 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058AD3: cmp ecx, dword ptr [esi + 4] */ 11870 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11872 _flag_k = FK_CMP; 11873 if (CMP_NE(_flag_a, _flag_b)) goto L_36058ADD; /* 0x36058AD6: jne 0x36058add */ 11874 L_36058AD8: 11875 MEM32(esi + 0x4) = edx; /* 0x36058AD8: mov dword ptr [esi + 4], edx */ 11876 goto L_36058AEC; /* 0x36058ADB: jmp 0x36058aec */ 11877 L_36058ADD: 11878 esi = MEM32(ecx + 0x4); /* 0x36058ADD: mov esi, dword ptr [ecx + 4] */ 11879 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058AE0: cmp ecx, dword ptr [esi + 8] */ 11880 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11882 _flag_k = FK_CMP; 11883 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AEA; /* 0x36058AE3: jne 0x36058aea */ 11884 L_36058AE5: 11885 MEM32(esi + 0x8) = edx; /* 0x36058AE5: mov dword ptr [esi + 8], edx */ 11886 goto L_36058AEC; /* 0x36058AE8: jmp 0x36058aec */ 11887 L_36058AEA: 11888 MEM32(esi) = edx; /* 0x36058AEA: mov dword ptr [esi], edx */ 11889 L_36058AEC: 11890 MEM32(edx + 0x8) = ecx; /* 0x36058AEC: mov dword ptr [edx + 8], ecx */ 11891 MEM32(ecx + 0x4) = edx; /* 0x36058AEF: mov dword ptr [ecx + 4], edx */ 11892 edx = MEM32(eax + 0x4); /* 0x36058AF2: mov edx, dword ptr [eax + 4] */ 11893 ecx = MEM32(edx); /* 0x36058AF5: mov ecx, dword ptr [edx] */ 11894 L_36058AF7: 11895 edx = MEM32(ecx + 0x8); /* 0x36058AF7: mov edx, dword ptr [ecx + 8] */ 11896 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058AFA: cmp byte ptr [edx + 0x14], bl */ 11897 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11899 _flag_k = FK_NARROW(FK_CMP, 24); 11900 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058AFD: jne 0x36058bd3 */ 11901 L_36058B03: 11902 edx = MEM32(ecx); /* 0x36058B03: mov edx, dword ptr [ecx] */ 11903 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B05: cmp byte ptr [edx + 0x14], bl */ 11904 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11906 _flag_k = FK_NARROW(FK_CMP, 24); 11907 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058B08: jne 0x36058bd3 */ 11908 L_36058B0E: 11909 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B0E: mov byte ptr [ecx + 0x14], 0 */ 11910 ecx = MEM32(edi + 0x4); /* 0x36058B12: mov ecx, dword ptr [edi + 4] */ 11911 eax = MEM32(eax + 0x4); /* 0x36058B15: mov eax, dword ptr [eax + 4] */ 11912 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36058B18: cmp eax, dword ptr [ecx + 4] */ 11913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 11914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11915 _flag_k = FK_CMP; 11916 RECOMP_BACKEDGE(); 11917 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A24; /* 0x36058B1B: jne 0x36058a24 */ 11918 L_36058B21: 11919 goto L_36058C72; /* 0x36058B21: jmp 0x36058c72 */ 11920 L_36058B26: 11921 edx = MEM32(ecx + 0x8); /* 0x36058B26: mov edx, dword ptr [ecx + 8] */ 11922 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B29: cmp byte ptr [edx + 0x14], bl */ 11923 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11925 _flag_k = FK_NARROW(FK_CMP, 24); 11926 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B77; /* 0x36058B2C: jne 0x36058b77 */ 11927 L_36058B2E: 11928 edx = MEM32(ecx); /* 0x36058B2E: mov edx, dword ptr [ecx] */ 11929 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B30: mov byte ptr [edx + 0x14], bl */ 11930 edx = MEM32(ecx); /* 0x36058B33: mov edx, dword ptr [ecx] */ 11931 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B35: mov byte ptr [ecx + 0x14], 0 */ 11932 esi = MEM32(edx + 0x8); /* 0x36058B39: mov esi, dword ptr [edx + 8] */ 11933 MEM32(ecx) = esi; /* 0x36058B3C: mov dword ptr [ecx], esi */ 11934 esi = MEM32(edx + 0x8); /* 0x36058B3E: mov esi, dword ptr [edx + 8] */ 11935 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B41: cmp esi, dword ptr [edi + 8] */ 11936 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11938 _flag_k = FK_CMP; 11939 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058B49; /* 0x36058B44: je 0x36058b49 */ 11940 L_36058B46: 11941 MEM32(esi + 0x4) = ecx; /* 0x36058B46: mov dword ptr [esi + 4], ecx */ 11942 L_36058B49: 11943 esi = MEM32(ecx + 0x4); /* 0x36058B49: mov esi, dword ptr [ecx + 4] */ 11944 MEM32(edx + 0x4) = esi; /* 0x36058B4C: mov dword ptr [edx + 4], esi */ 11945 esi = MEM32(edi + 0x4); /* 0x36058B4F: mov esi, dword ptr [edi + 4] */ 11946 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058B52: cmp ecx, dword ptr [esi + 4] */ 11947 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11949 _flag_k = FK_CMP; 11950 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B5C; /* 0x36058B55: jne 0x36058b5c */ 11951 L_36058B57: 11952 MEM32(esi + 0x4) = edx; /* 0x36058B57: mov dword ptr [esi + 4], edx */ 11953 goto L_36058B6B; /* 0x36058B5A: jmp 0x36058b6b */ 11954 L_36058B5C: 11955 esi = MEM32(ecx + 0x4); /* 0x36058B5C: mov esi, dword ptr [ecx + 4] */ 11956 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058B5F: cmp ecx, dword ptr [esi + 8] */ 11957 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11959 _flag_k = FK_CMP; 11960 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B69; /* 0x36058B62: jne 0x36058b69 */ 11961 L_36058B64: 11962 MEM32(esi + 0x8) = edx; /* 0x36058B64: mov dword ptr [esi + 8], edx */ 11963 goto L_36058B6B; /* 0x36058B67: jmp 0x36058b6b */ 11964 L_36058B69: 11965 MEM32(esi) = edx; /* 0x36058B69: mov dword ptr [esi], edx */ 11966 L_36058B6B: 11967 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 11968 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 11969 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 11970 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 11971 L_36058B77: 11972 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 11973 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 11974 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 11975 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 11976 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 11977 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 11978 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 11979 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 11980 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 11981 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 11982 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 11983 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 11984 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 11985 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 11986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11987 _flag_k = FK_CMP; 11988 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 11989 L_36058B9E: 11990 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 11991 L_36058BA1: 11992 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 11993 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 11994 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 11995 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 11996 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 11997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11998 _flag_k = FK_CMP; 11999 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 12000 L_36058BAF: 12001 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 12002 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 12003 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 12004 L_36058BB9: 12005 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 12006 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 12007 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12009 _flag_k = FK_CMP; 12010 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 12011 L_36058BC0: 12012 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 12013 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 12014 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 12015 L_36058BC9: 12016 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 12017 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 12018 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 12019 L_36058BD3: 12020 edx = MEM32(ecx); /* 0x36058BD3: mov edx, dword ptr [ecx] */ 12021 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058BD5: cmp byte ptr [edx + 0x14], bl */ 12022 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12024 _flag_k = FK_NARROW(FK_CMP, 24); 12025 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C21; /* 0x36058BD8: jne 0x36058c21 */ 12026 L_36058BDA: 12027 edx = MEM32(ecx + 0x8); /* 0x36058BDA: mov edx, dword ptr [ecx + 8] */ 12028 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058BDD: mov byte ptr [edx + 0x14], bl */ 12029 edx = MEM32(ecx + 0x8); /* 0x36058BE0: mov edx, dword ptr [ecx + 8] */ 12030 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058BE3: mov byte ptr [ecx + 0x14], 0 */ 12031 esi = MEM32(edx); /* 0x36058BE7: mov esi, dword ptr [edx] */ 12032 MEM32(ecx + 0x8) = esi; /* 0x36058BE9: mov dword ptr [ecx + 8], esi */ 12033 esi = MEM32(edx); /* 0x36058BEC: mov esi, dword ptr [edx] */ 12034 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058BEE: cmp esi, dword ptr [edi + 8] */ 12035 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12037 _flag_k = FK_CMP; 12038 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BF6; /* 0x36058BF1: je 0x36058bf6 */ 12039 L_36058BF3: 12040 MEM32(esi + 0x4) = ecx; /* 0x36058BF3: mov dword ptr [esi + 4], ecx */ 12041 L_36058BF6: 12042 esi = MEM32(ecx + 0x4); /* 0x36058BF6: mov esi, dword ptr [ecx + 4] */ 12043 MEM32(edx + 0x4) = esi; /* 0x36058BF9: mov dword ptr [edx + 4], esi */ 12044 esi = MEM32(edi + 0x4); /* 0x36058BFC: mov esi, dword ptr [edi + 4] */ 12045 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BFF: cmp ecx, dword ptr [esi + 4] */ 12046 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12048 _flag_k = FK_CMP; 12049 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C09; /* 0x36058C02: jne 0x36058c09 */ 12050 L_36058C04: 12051 MEM32(esi + 0x4) = edx; /* 0x36058C04: mov dword ptr [esi + 4], edx */ 12052 goto L_36058C17; /* 0x36058C07: jmp 0x36058c17 */ 12053 L_36058C09: 12054 esi = MEM32(ecx + 0x4); /* 0x36058C09: mov esi, dword ptr [ecx + 4] */ 12055 /* cmp ecx, MEM32(esi) */ /* 0x36058C0C: cmp ecx, dword ptr [esi] */ 12056 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12058 _flag_k = FK_CMP; 12059 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C14; /* 0x36058C0E: jne 0x36058c14 */ 12060 L_36058C10: 12061 MEM32(esi) = edx; /* 0x36058C10: mov dword ptr [esi], edx */ 12062 goto L_36058C17; /* 0x36058C12: jmp 0x36058c17 */ 12063 L_36058C14: 12064 MEM32(esi + 0x8) = edx; /* 0x36058C14: mov dword ptr [esi + 8], edx */ 12065 L_36058C17: 12066 MEM32(edx) = ecx; /* 0x36058C17: mov dword ptr [edx], ecx */ 12067 MEM32(ecx + 0x4) = edx; /* 0x36058C19: mov dword ptr [ecx + 4], edx */ 12068 ecx = MEM32(eax + 0x4); /* 0x36058C1C: mov ecx, dword ptr [eax + 4] */ 12069 ecx = MEM32(ecx); /* 0x36058C1F: mov ecx, dword ptr [ecx] */ 12070 L_36058C21: 12071 edx = MEM32(eax + 0x4); /* 0x36058C21: mov edx, dword ptr [eax + 4] */ 12072 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058C24: mov dl, byte ptr [edx + 0x14] */ 12073 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058C27: mov byte ptr [ecx + 0x14], dl */ 12074 edx = MEM32(eax + 0x4); /* 0x36058C2A: mov edx, dword ptr [eax + 4] */ 12075 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C2D: mov byte ptr [edx + 0x14], bl */ 12076 ecx = MEM32(ecx); /* 0x36058C30: mov ecx, dword ptr [ecx] */ 12077 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C32: mov byte ptr [ecx + 0x14], bl */ 12078 ecx = MEM32(eax + 0x4); /* 0x36058C35: mov ecx, dword ptr [eax + 4] */ 12079 edx = MEM32(ecx); /* 0x36058C38: mov edx, dword ptr [ecx] */ 12080 esi = MEM32(edx + 0x8); /* 0x36058C3A: mov esi, dword ptr [edx + 8] */ 12081 MEM32(ecx) = esi; /* 0x36058C3D: mov dword ptr [ecx], esi */ 12082 esi = MEM32(edx + 0x8); /* 0x36058C3F: mov esi, dword ptr [edx + 8] */ 12083 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058C42: cmp esi, dword ptr [edi + 8] */ 12084 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12086 _flag_k = FK_CMP; 12087 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C4A; /* 0x36058C45: je 0x36058c4a */ 12088 L_36058C47: 12089 MEM32(esi + 0x4) = ecx; /* 0x36058C47: mov dword ptr [esi + 4], ecx */ 12090 L_36058C4A: 12091 esi = MEM32(ecx + 0x4); /* 0x36058C4A: mov esi, dword ptr [ecx + 4] */ 12092 MEM32(edx + 0x4) = esi; /* 0x36058C4D: mov dword ptr [edx + 4], esi */ 12093 esi = MEM32(edi + 0x4); /* 0x36058C50: mov esi, dword ptr [edi + 4] */ 12094 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058C53: cmp ecx, dword ptr [esi + 4] */ 12095 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12097 _flag_k = FK_CMP; 12098 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C5D; /* 0x36058C56: jne 0x36058c5d */ 12099 L_36058C58: 12100 MEM32(esi + 0x4) = edx; /* 0x36058C58: mov dword ptr [esi + 4], edx */ 12101 goto L_36058C6C; /* 0x36058C5B: jmp 0x36058c6c */ 12102 L_36058C5D: 12103 esi = MEM32(ecx + 0x4); /* 0x36058C5D: mov esi, dword ptr [ecx + 4] */ 12104 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058C60: cmp ecx, dword ptr [esi + 8] */ 12105 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12107 _flag_k = FK_CMP; 12108 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C6A; /* 0x36058C63: jne 0x36058c6a */ 12109 L_36058C65: 12110 MEM32(esi + 0x8) = edx; /* 0x36058C65: mov dword ptr [esi + 8], edx */ 12111 goto L_36058C6C; /* 0x36058C68: jmp 0x36058c6c */ 12112 L_36058C6A: 12113 MEM32(esi) = edx; /* 0x36058C6A: mov dword ptr [esi], edx */ 12114 L_36058C6C: 12115 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 12116 L_36058C6F: 12117 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 12118 L_36058C72: 12119 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 12120 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 12121 PUSH32(esp, edx); /* 0x36058C78: push edx */ 12122 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 12123 RECOMP_FLAGS_IN(); 12124 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 12125 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 12126 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12127 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12128 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 12129 _flag_k = FK_ADD; 12130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12131 eax = eax - 1; /* 0x36058C87: dec eax */ 12132 _flag_k = FK_DEC; 12133 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 12134 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 12135 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 12136 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 12137 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 12138 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 12139 esp = ebp; /* 0x36058C93: mov esp, ebp */ 12140 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 12141 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 12142 RECOMP_REGS_OUT(); 12143 } 12144 12145 void sub_36058A80(void) { 12146 int _fpu_cmp = 0; 12147 uint32_t _cf = 0; 12148 int _df = 1; 12149 uint32_t _flag_k = FK_NONE; 12150 uint32_t _flag_a = 0, _flag_b = 0; 12151 uint32_t _itail_tgt = 0; 12152 RECOMP_REGS_LOCALS 12153 RECOMP_ENTER(0x36058A80u); 12154 12155 goto L_36058A80; 12156 L_36058A24: 12157 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x36058A24: cmp byte ptr [eax + 0x14], bl */ 12158 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12160 _flag_k = FK_NARROW(FK_CMP, 24); 12161 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A27: jne 0x36058c72 */ 12162 L_36058A2D: 12163 edx = MEM32(eax + 0x4); /* 0x36058A2D: mov edx, dword ptr [eax + 4] */ 12164 ecx = MEM32(edx); /* 0x36058A30: mov ecx, dword ptr [edx] */ 12165 /* cmp eax, ecx */ /* 0x36058A32: cmp eax, ecx */ 12166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12168 _flag_k = FK_CMP; 12169 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AA4; /* 0x36058A34: jne 0x36058aa4 */ 12170 L_36058A36: 12171 ecx = MEM32(edx + 0x8); /* 0x36058A36: mov ecx, dword ptr [edx + 8] */ 12172 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A39: mov dl, byte ptr [ecx + 0x14] */ 12173 /* test LO8(edx), LO8(edx) */ /* 0x36058A3C: test dl, dl */ 12174 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12175 _cf = 0; 12176 _flag_k = FK_NARROW(FK_TEST, 24); 12177 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058A8B; /* 0x36058A3E: jne 0x36058a8b */ 12178 L_36058A40: 12179 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058A40: mov byte ptr [ecx + 0x14], bl */ 12180 ecx = MEM32(eax + 0x4); /* 0x36058A43: mov ecx, dword ptr [eax + 4] */ 12181 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058A46: mov byte ptr [ecx + 0x14], 0 */ 12182 ecx = MEM32(eax + 0x4); /* 0x36058A4A: mov ecx, dword ptr [eax + 4] */ 12183 edx = MEM32(ecx + 0x8); /* 0x36058A4D: mov edx, dword ptr [ecx + 8] */ 12184 esi = MEM32(edx); /* 0x36058A50: mov esi, dword ptr [edx] */ 12185 MEM32(ecx + 0x8) = esi; /* 0x36058A52: mov dword ptr [ecx + 8], esi */ 12186 esi = MEM32(edx); /* 0x36058A55: mov esi, dword ptr [edx] */ 12187 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058A57: cmp esi, dword ptr [edi + 8] */ 12188 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12190 _flag_k = FK_CMP; 12191 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058A5F; /* 0x36058A5A: je 0x36058a5f */ 12192 L_36058A5C: 12193 MEM32(esi + 0x4) = ecx; /* 0x36058A5C: mov dword ptr [esi + 4], ecx */ 12194 L_36058A5F: 12195 esi = MEM32(ecx + 0x4); /* 0x36058A5F: mov esi, dword ptr [ecx + 4] */ 12196 MEM32(edx + 0x4) = esi; /* 0x36058A62: mov dword ptr [edx + 4], esi */ 12197 esi = MEM32(edi + 0x4); /* 0x36058A65: mov esi, dword ptr [edi + 4] */ 12198 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058A68: cmp ecx, dword ptr [esi + 4] */ 12199 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12201 _flag_k = FK_CMP; 12202 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A72; /* 0x36058A6B: jne 0x36058a72 */ 12203 L_36058A6D: 12204 MEM32(esi + 0x4) = edx; /* 0x36058A6D: mov dword ptr [esi + 4], edx */ 12205 goto L_36058A80; /* 0x36058A70: jmp 0x36058a80 */ 12206 L_36058A72: 12207 esi = MEM32(ecx + 0x4); /* 0x36058A72: mov esi, dword ptr [ecx + 4] */ 12208 /* cmp ecx, MEM32(esi) */ /* 0x36058A75: cmp ecx, dword ptr [esi] */ 12209 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12211 _flag_k = FK_CMP; 12212 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A7D; /* 0x36058A77: jne 0x36058a7d */ 12213 L_36058A79: 12214 MEM32(esi) = edx; /* 0x36058A79: mov dword ptr [esi], edx */ 12215 goto L_36058A80; /* 0x36058A7B: jmp 0x36058a80 */ 12216 L_36058A7D: 12217 MEM32(esi + 0x8) = edx; /* 0x36058A7D: mov dword ptr [esi + 8], edx */ 12218 L_36058A80: 12219 MEM32(edx) = ecx; /* 0x36058A80: mov dword ptr [edx], ecx */ 12220 MEM32(ecx + 0x4) = edx; /* 0x36058A82: mov dword ptr [ecx + 4], edx */ 12221 edx = MEM32(eax + 0x4); /* 0x36058A85: mov edx, dword ptr [eax + 4] */ 12222 ecx = MEM32(edx + 0x8); /* 0x36058A88: mov ecx, dword ptr [edx + 8] */ 12223 L_36058A8B: 12224 edx = MEM32(ecx); /* 0x36058A8B: mov edx, dword ptr [ecx] */ 12225 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A8D: cmp byte ptr [edx + 0x14], bl */ 12226 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12228 _flag_k = FK_NARROW(FK_CMP, 24); 12229 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A90: jne 0x36058b26 */ 12230 L_36058A96: 12231 edx = MEM32(ecx + 0x8); /* 0x36058A96: mov edx, dword ptr [ecx + 8] */ 12232 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A99: cmp byte ptr [edx + 0x14], bl */ 12233 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12235 _flag_k = FK_NARROW(FK_CMP, 24); 12236 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A9C: jne 0x36058b26 */ 12237 L_36058AA2: 12238 goto L_36058B0E; /* 0x36058AA2: jmp 0x36058b0e */ 12239 L_36058AA4: 12240 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058AA4: mov dl, byte ptr [ecx + 0x14] */ 12241 /* test LO8(edx), LO8(edx) */ /* 0x36058AA7: test dl, dl */ 12242 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12243 _cf = 0; 12244 _flag_k = FK_NARROW(FK_TEST, 24); 12245 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058AF7; /* 0x36058AA9: jne 0x36058af7 */ 12246 L_36058AAB: 12247 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058AAB: mov byte ptr [ecx + 0x14], bl */ 12248 ecx = MEM32(eax + 0x4); /* 0x36058AAE: mov ecx, dword ptr [eax + 4] */ 12249 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058AB1: mov byte ptr [ecx + 0x14], 0 */ 12250 ecx = MEM32(eax + 0x4); /* 0x36058AB5: mov ecx, dword ptr [eax + 4] */ 12251 edx = MEM32(ecx); /* 0x36058AB8: mov edx, dword ptr [ecx] */ 12252 esi = MEM32(edx + 0x8); /* 0x36058ABA: mov esi, dword ptr [edx + 8] */ 12253 MEM32(ecx) = esi; /* 0x36058ABD: mov dword ptr [ecx], esi */ 12254 esi = MEM32(edx + 0x8); /* 0x36058ABF: mov esi, dword ptr [edx + 8] */ 12255 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058AC2: cmp esi, dword ptr [edi + 8] */ 12256 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12258 _flag_k = FK_CMP; 12259 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058ACA; /* 0x36058AC5: je 0x36058aca */ 12260 L_36058AC7: 12261 MEM32(esi + 0x4) = ecx; /* 0x36058AC7: mov dword ptr [esi + 4], ecx */ 12262 L_36058ACA: 12263 esi = MEM32(ecx + 0x4); /* 0x36058ACA: mov esi, dword ptr [ecx + 4] */ 12264 MEM32(edx + 0x4) = esi; /* 0x36058ACD: mov dword ptr [edx + 4], esi */ 12265 esi = MEM32(edi + 0x4); /* 0x36058AD0: mov esi, dword ptr [edi + 4] */ 12266 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058AD3: cmp ecx, dword ptr [esi + 4] */ 12267 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12269 _flag_k = FK_CMP; 12270 if (CMP_NE(_flag_a, _flag_b)) goto L_36058ADD; /* 0x36058AD6: jne 0x36058add */ 12271 L_36058AD8: 12272 MEM32(esi + 0x4) = edx; /* 0x36058AD8: mov dword ptr [esi + 4], edx */ 12273 goto L_36058AEC; /* 0x36058ADB: jmp 0x36058aec */ 12274 L_36058ADD: 12275 esi = MEM32(ecx + 0x4); /* 0x36058ADD: mov esi, dword ptr [ecx + 4] */ 12276 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058AE0: cmp ecx, dword ptr [esi + 8] */ 12277 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12279 _flag_k = FK_CMP; 12280 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AEA; /* 0x36058AE3: jne 0x36058aea */ 12281 L_36058AE5: 12282 MEM32(esi + 0x8) = edx; /* 0x36058AE5: mov dword ptr [esi + 8], edx */ 12283 goto L_36058AEC; /* 0x36058AE8: jmp 0x36058aec */ 12284 L_36058AEA: 12285 MEM32(esi) = edx; /* 0x36058AEA: mov dword ptr [esi], edx */ 12286 L_36058AEC: 12287 MEM32(edx + 0x8) = ecx; /* 0x36058AEC: mov dword ptr [edx + 8], ecx */ 12288 MEM32(ecx + 0x4) = edx; /* 0x36058AEF: mov dword ptr [ecx + 4], edx */ 12289 edx = MEM32(eax + 0x4); /* 0x36058AF2: mov edx, dword ptr [eax + 4] */ 12290 ecx = MEM32(edx); /* 0x36058AF5: mov ecx, dword ptr [edx] */ 12291 L_36058AF7: 12292 edx = MEM32(ecx + 0x8); /* 0x36058AF7: mov edx, dword ptr [ecx + 8] */ 12293 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058AFA: cmp byte ptr [edx + 0x14], bl */ 12294 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12296 _flag_k = FK_NARROW(FK_CMP, 24); 12297 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058AFD: jne 0x36058bd3 */ 12298 L_36058B03: 12299 edx = MEM32(ecx); /* 0x36058B03: mov edx, dword ptr [ecx] */ 12300 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B05: cmp byte ptr [edx + 0x14], bl */ 12301 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12303 _flag_k = FK_NARROW(FK_CMP, 24); 12304 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058B08: jne 0x36058bd3 */ 12305 L_36058B0E: 12306 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B0E: mov byte ptr [ecx + 0x14], 0 */ 12307 ecx = MEM32(edi + 0x4); /* 0x36058B12: mov ecx, dword ptr [edi + 4] */ 12308 eax = MEM32(eax + 0x4); /* 0x36058B15: mov eax, dword ptr [eax + 4] */ 12309 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36058B18: cmp eax, dword ptr [ecx + 4] */ 12310 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12312 _flag_k = FK_CMP; 12313 RECOMP_BACKEDGE(); 12314 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A24; /* 0x36058B1B: jne 0x36058a24 */ 12315 L_36058B21: 12316 goto L_36058C72; /* 0x36058B21: jmp 0x36058c72 */ 12317 L_36058B26: 12318 edx = MEM32(ecx + 0x8); /* 0x36058B26: mov edx, dword ptr [ecx + 8] */ 12319 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B29: cmp byte ptr [edx + 0x14], bl */ 12320 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12322 _flag_k = FK_NARROW(FK_CMP, 24); 12323 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B77; /* 0x36058B2C: jne 0x36058b77 */ 12324 L_36058B2E: 12325 edx = MEM32(ecx); /* 0x36058B2E: mov edx, dword ptr [ecx] */ 12326 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B30: mov byte ptr [edx + 0x14], bl */ 12327 edx = MEM32(ecx); /* 0x36058B33: mov edx, dword ptr [ecx] */ 12328 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B35: mov byte ptr [ecx + 0x14], 0 */ 12329 esi = MEM32(edx + 0x8); /* 0x36058B39: mov esi, dword ptr [edx + 8] */ 12330 MEM32(ecx) = esi; /* 0x36058B3C: mov dword ptr [ecx], esi */ 12331 esi = MEM32(edx + 0x8); /* 0x36058B3E: mov esi, dword ptr [edx + 8] */ 12332 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B41: cmp esi, dword ptr [edi + 8] */ 12333 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12335 _flag_k = FK_CMP; 12336 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058B49; /* 0x36058B44: je 0x36058b49 */ 12337 L_36058B46: 12338 MEM32(esi + 0x4) = ecx; /* 0x36058B46: mov dword ptr [esi + 4], ecx */ 12339 L_36058B49: 12340 esi = MEM32(ecx + 0x4); /* 0x36058B49: mov esi, dword ptr [ecx + 4] */ 12341 MEM32(edx + 0x4) = esi; /* 0x36058B4C: mov dword ptr [edx + 4], esi */ 12342 esi = MEM32(edi + 0x4); /* 0x36058B4F: mov esi, dword ptr [edi + 4] */ 12343 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058B52: cmp ecx, dword ptr [esi + 4] */ 12344 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12346 _flag_k = FK_CMP; 12347 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B5C; /* 0x36058B55: jne 0x36058b5c */ 12348 L_36058B57: 12349 MEM32(esi + 0x4) = edx; /* 0x36058B57: mov dword ptr [esi + 4], edx */ 12350 goto L_36058B6B; /* 0x36058B5A: jmp 0x36058b6b */ 12351 L_36058B5C: 12352 esi = MEM32(ecx + 0x4); /* 0x36058B5C: mov esi, dword ptr [ecx + 4] */ 12353 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058B5F: cmp ecx, dword ptr [esi + 8] */ 12354 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12356 _flag_k = FK_CMP; 12357 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B69; /* 0x36058B62: jne 0x36058b69 */ 12358 L_36058B64: 12359 MEM32(esi + 0x8) = edx; /* 0x36058B64: mov dword ptr [esi + 8], edx */ 12360 goto L_36058B6B; /* 0x36058B67: jmp 0x36058b6b */ 12361 L_36058B69: 12362 MEM32(esi) = edx; /* 0x36058B69: mov dword ptr [esi], edx */ 12363 L_36058B6B: 12364 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 12365 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 12366 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 12367 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 12368 L_36058B77: 12369 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 12370 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 12371 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 12372 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 12373 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 12374 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 12375 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 12376 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 12377 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 12378 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 12379 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 12380 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 12381 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 12382 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12384 _flag_k = FK_CMP; 12385 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 12386 L_36058B9E: 12387 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 12388 L_36058BA1: 12389 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 12390 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 12391 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 12392 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 12393 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12395 _flag_k = FK_CMP; 12396 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 12397 L_36058BAF: 12398 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 12399 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 12400 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 12401 L_36058BB9: 12402 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 12403 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 12404 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12406 _flag_k = FK_CMP; 12407 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 12408 L_36058BC0: 12409 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 12410 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 12411 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 12412 L_36058BC9: 12413 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 12414 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 12415 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 12416 L_36058BD3: 12417 edx = MEM32(ecx); /* 0x36058BD3: mov edx, dword ptr [ecx] */ 12418 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058BD5: cmp byte ptr [edx + 0x14], bl */ 12419 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12421 _flag_k = FK_NARROW(FK_CMP, 24); 12422 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C21; /* 0x36058BD8: jne 0x36058c21 */ 12423 L_36058BDA: 12424 edx = MEM32(ecx + 0x8); /* 0x36058BDA: mov edx, dword ptr [ecx + 8] */ 12425 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058BDD: mov byte ptr [edx + 0x14], bl */ 12426 edx = MEM32(ecx + 0x8); /* 0x36058BE0: mov edx, dword ptr [ecx + 8] */ 12427 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058BE3: mov byte ptr [ecx + 0x14], 0 */ 12428 esi = MEM32(edx); /* 0x36058BE7: mov esi, dword ptr [edx] */ 12429 MEM32(ecx + 0x8) = esi; /* 0x36058BE9: mov dword ptr [ecx + 8], esi */ 12430 esi = MEM32(edx); /* 0x36058BEC: mov esi, dword ptr [edx] */ 12431 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058BEE: cmp esi, dword ptr [edi + 8] */ 12432 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12434 _flag_k = FK_CMP; 12435 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BF6; /* 0x36058BF1: je 0x36058bf6 */ 12436 L_36058BF3: 12437 MEM32(esi + 0x4) = ecx; /* 0x36058BF3: mov dword ptr [esi + 4], ecx */ 12438 L_36058BF6: 12439 esi = MEM32(ecx + 0x4); /* 0x36058BF6: mov esi, dword ptr [ecx + 4] */ 12440 MEM32(edx + 0x4) = esi; /* 0x36058BF9: mov dword ptr [edx + 4], esi */ 12441 esi = MEM32(edi + 0x4); /* 0x36058BFC: mov esi, dword ptr [edi + 4] */ 12442 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BFF: cmp ecx, dword ptr [esi + 4] */ 12443 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12445 _flag_k = FK_CMP; 12446 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C09; /* 0x36058C02: jne 0x36058c09 */ 12447 L_36058C04: 12448 MEM32(esi + 0x4) = edx; /* 0x36058C04: mov dword ptr [esi + 4], edx */ 12449 goto L_36058C17; /* 0x36058C07: jmp 0x36058c17 */ 12450 L_36058C09: 12451 esi = MEM32(ecx + 0x4); /* 0x36058C09: mov esi, dword ptr [ecx + 4] */ 12452 /* cmp ecx, MEM32(esi) */ /* 0x36058C0C: cmp ecx, dword ptr [esi] */ 12453 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12455 _flag_k = FK_CMP; 12456 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C14; /* 0x36058C0E: jne 0x36058c14 */ 12457 L_36058C10: 12458 MEM32(esi) = edx; /* 0x36058C10: mov dword ptr [esi], edx */ 12459 goto L_36058C17; /* 0x36058C12: jmp 0x36058c17 */ 12460 L_36058C14: 12461 MEM32(esi + 0x8) = edx; /* 0x36058C14: mov dword ptr [esi + 8], edx */ 12462 L_36058C17: 12463 MEM32(edx) = ecx; /* 0x36058C17: mov dword ptr [edx], ecx */ 12464 MEM32(ecx + 0x4) = edx; /* 0x36058C19: mov dword ptr [ecx + 4], edx */ 12465 ecx = MEM32(eax + 0x4); /* 0x36058C1C: mov ecx, dword ptr [eax + 4] */ 12466 ecx = MEM32(ecx); /* 0x36058C1F: mov ecx, dword ptr [ecx] */ 12467 L_36058C21: 12468 edx = MEM32(eax + 0x4); /* 0x36058C21: mov edx, dword ptr [eax + 4] */ 12469 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058C24: mov dl, byte ptr [edx + 0x14] */ 12470 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058C27: mov byte ptr [ecx + 0x14], dl */ 12471 edx = MEM32(eax + 0x4); /* 0x36058C2A: mov edx, dword ptr [eax + 4] */ 12472 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C2D: mov byte ptr [edx + 0x14], bl */ 12473 ecx = MEM32(ecx); /* 0x36058C30: mov ecx, dword ptr [ecx] */ 12474 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C32: mov byte ptr [ecx + 0x14], bl */ 12475 ecx = MEM32(eax + 0x4); /* 0x36058C35: mov ecx, dword ptr [eax + 4] */ 12476 edx = MEM32(ecx); /* 0x36058C38: mov edx, dword ptr [ecx] */ 12477 esi = MEM32(edx + 0x8); /* 0x36058C3A: mov esi, dword ptr [edx + 8] */ 12478 MEM32(ecx) = esi; /* 0x36058C3D: mov dword ptr [ecx], esi */ 12479 esi = MEM32(edx + 0x8); /* 0x36058C3F: mov esi, dword ptr [edx + 8] */ 12480 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058C42: cmp esi, dword ptr [edi + 8] */ 12481 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12483 _flag_k = FK_CMP; 12484 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C4A; /* 0x36058C45: je 0x36058c4a */ 12485 L_36058C47: 12486 MEM32(esi + 0x4) = ecx; /* 0x36058C47: mov dword ptr [esi + 4], ecx */ 12487 L_36058C4A: 12488 esi = MEM32(ecx + 0x4); /* 0x36058C4A: mov esi, dword ptr [ecx + 4] */ 12489 MEM32(edx + 0x4) = esi; /* 0x36058C4D: mov dword ptr [edx + 4], esi */ 12490 esi = MEM32(edi + 0x4); /* 0x36058C50: mov esi, dword ptr [edi + 4] */ 12491 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058C53: cmp ecx, dword ptr [esi + 4] */ 12492 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12494 _flag_k = FK_CMP; 12495 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C5D; /* 0x36058C56: jne 0x36058c5d */ 12496 L_36058C58: 12497 MEM32(esi + 0x4) = edx; /* 0x36058C58: mov dword ptr [esi + 4], edx */ 12498 goto L_36058C6C; /* 0x36058C5B: jmp 0x36058c6c */ 12499 L_36058C5D: 12500 esi = MEM32(ecx + 0x4); /* 0x36058C5D: mov esi, dword ptr [ecx + 4] */ 12501 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058C60: cmp ecx, dword ptr [esi + 8] */ 12502 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12504 _flag_k = FK_CMP; 12505 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C6A; /* 0x36058C63: jne 0x36058c6a */ 12506 L_36058C65: 12507 MEM32(esi + 0x8) = edx; /* 0x36058C65: mov dword ptr [esi + 8], edx */ 12508 goto L_36058C6C; /* 0x36058C68: jmp 0x36058c6c */ 12509 L_36058C6A: 12510 MEM32(esi) = edx; /* 0x36058C6A: mov dword ptr [esi], edx */ 12511 L_36058C6C: 12512 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 12513 L_36058C6F: 12514 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 12515 L_36058C72: 12516 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 12517 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 12518 PUSH32(esp, edx); /* 0x36058C78: push edx */ 12519 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 12520 RECOMP_FLAGS_IN(); 12521 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 12522 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 12523 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12524 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12525 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 12526 _flag_k = FK_ADD; 12527 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12528 eax = eax - 1; /* 0x36058C87: dec eax */ 12529 _flag_k = FK_DEC; 12530 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 12531 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 12532 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 12533 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 12534 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 12535 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 12536 esp = ebp; /* 0x36058C93: mov esp, ebp */ 12537 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 12538 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 12539 RECOMP_REGS_OUT(); 12540 } 12541 12542 void sub_36058A8B(void) { 12543 int _fpu_cmp = 0; 12544 uint32_t _cf = 0; 12545 int _df = 1; 12546 uint32_t _flag_k = FK_NONE; 12547 uint32_t _flag_a = 0, _flag_b = 0; 12548 uint32_t _itail_tgt = 0; 12549 RECOMP_REGS_LOCALS 12550 RECOMP_ENTER(0x36058A8Bu); 12551 12552 goto L_36058A8B; 12553 L_36058A24: 12554 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x36058A24: cmp byte ptr [eax + 0x14], bl */ 12555 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12557 _flag_k = FK_NARROW(FK_CMP, 24); 12558 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A27: jne 0x36058c72 */ 12559 L_36058A2D: 12560 edx = MEM32(eax + 0x4); /* 0x36058A2D: mov edx, dword ptr [eax + 4] */ 12561 ecx = MEM32(edx); /* 0x36058A30: mov ecx, dword ptr [edx] */ 12562 /* cmp eax, ecx */ /* 0x36058A32: cmp eax, ecx */ 12563 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12565 _flag_k = FK_CMP; 12566 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AA4; /* 0x36058A34: jne 0x36058aa4 */ 12567 L_36058A36: 12568 ecx = MEM32(edx + 0x8); /* 0x36058A36: mov ecx, dword ptr [edx + 8] */ 12569 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A39: mov dl, byte ptr [ecx + 0x14] */ 12570 /* test LO8(edx), LO8(edx) */ /* 0x36058A3C: test dl, dl */ 12571 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12572 _cf = 0; 12573 _flag_k = FK_NARROW(FK_TEST, 24); 12574 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058A8B; /* 0x36058A3E: jne 0x36058a8b */ 12575 L_36058A40: 12576 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058A40: mov byte ptr [ecx + 0x14], bl */ 12577 ecx = MEM32(eax + 0x4); /* 0x36058A43: mov ecx, dword ptr [eax + 4] */ 12578 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058A46: mov byte ptr [ecx + 0x14], 0 */ 12579 ecx = MEM32(eax + 0x4); /* 0x36058A4A: mov ecx, dword ptr [eax + 4] */ 12580 edx = MEM32(ecx + 0x8); /* 0x36058A4D: mov edx, dword ptr [ecx + 8] */ 12581 esi = MEM32(edx); /* 0x36058A50: mov esi, dword ptr [edx] */ 12582 MEM32(ecx + 0x8) = esi; /* 0x36058A52: mov dword ptr [ecx + 8], esi */ 12583 esi = MEM32(edx); /* 0x36058A55: mov esi, dword ptr [edx] */ 12584 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058A57: cmp esi, dword ptr [edi + 8] */ 12585 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12587 _flag_k = FK_CMP; 12588 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058A5F; /* 0x36058A5A: je 0x36058a5f */ 12589 L_36058A5C: 12590 MEM32(esi + 0x4) = ecx; /* 0x36058A5C: mov dword ptr [esi + 4], ecx */ 12591 L_36058A5F: 12592 esi = MEM32(ecx + 0x4); /* 0x36058A5F: mov esi, dword ptr [ecx + 4] */ 12593 MEM32(edx + 0x4) = esi; /* 0x36058A62: mov dword ptr [edx + 4], esi */ 12594 esi = MEM32(edi + 0x4); /* 0x36058A65: mov esi, dword ptr [edi + 4] */ 12595 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058A68: cmp ecx, dword ptr [esi + 4] */ 12596 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12598 _flag_k = FK_CMP; 12599 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A72; /* 0x36058A6B: jne 0x36058a72 */ 12600 L_36058A6D: 12601 MEM32(esi + 0x4) = edx; /* 0x36058A6D: mov dword ptr [esi + 4], edx */ 12602 goto L_36058A80; /* 0x36058A70: jmp 0x36058a80 */ 12603 L_36058A72: 12604 esi = MEM32(ecx + 0x4); /* 0x36058A72: mov esi, dword ptr [ecx + 4] */ 12605 /* cmp ecx, MEM32(esi) */ /* 0x36058A75: cmp ecx, dword ptr [esi] */ 12606 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12608 _flag_k = FK_CMP; 12609 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A7D; /* 0x36058A77: jne 0x36058a7d */ 12610 L_36058A79: 12611 MEM32(esi) = edx; /* 0x36058A79: mov dword ptr [esi], edx */ 12612 goto L_36058A80; /* 0x36058A7B: jmp 0x36058a80 */ 12613 L_36058A7D: 12614 MEM32(esi + 0x8) = edx; /* 0x36058A7D: mov dword ptr [esi + 8], edx */ 12615 L_36058A80: 12616 MEM32(edx) = ecx; /* 0x36058A80: mov dword ptr [edx], ecx */ 12617 MEM32(ecx + 0x4) = edx; /* 0x36058A82: mov dword ptr [ecx + 4], edx */ 12618 edx = MEM32(eax + 0x4); /* 0x36058A85: mov edx, dword ptr [eax + 4] */ 12619 ecx = MEM32(edx + 0x8); /* 0x36058A88: mov ecx, dword ptr [edx + 8] */ 12620 L_36058A8B: 12621 edx = MEM32(ecx); /* 0x36058A8B: mov edx, dword ptr [ecx] */ 12622 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A8D: cmp byte ptr [edx + 0x14], bl */ 12623 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12625 _flag_k = FK_NARROW(FK_CMP, 24); 12626 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A90: jne 0x36058b26 */ 12627 L_36058A96: 12628 edx = MEM32(ecx + 0x8); /* 0x36058A96: mov edx, dword ptr [ecx + 8] */ 12629 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A99: cmp byte ptr [edx + 0x14], bl */ 12630 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12632 _flag_k = FK_NARROW(FK_CMP, 24); 12633 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A9C: jne 0x36058b26 */ 12634 L_36058AA2: 12635 goto L_36058B0E; /* 0x36058AA2: jmp 0x36058b0e */ 12636 L_36058AA4: 12637 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058AA4: mov dl, byte ptr [ecx + 0x14] */ 12638 /* test LO8(edx), LO8(edx) */ /* 0x36058AA7: test dl, dl */ 12639 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12640 _cf = 0; 12641 _flag_k = FK_NARROW(FK_TEST, 24); 12642 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058AF7; /* 0x36058AA9: jne 0x36058af7 */ 12643 L_36058AAB: 12644 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058AAB: mov byte ptr [ecx + 0x14], bl */ 12645 ecx = MEM32(eax + 0x4); /* 0x36058AAE: mov ecx, dword ptr [eax + 4] */ 12646 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058AB1: mov byte ptr [ecx + 0x14], 0 */ 12647 ecx = MEM32(eax + 0x4); /* 0x36058AB5: mov ecx, dword ptr [eax + 4] */ 12648 edx = MEM32(ecx); /* 0x36058AB8: mov edx, dword ptr [ecx] */ 12649 esi = MEM32(edx + 0x8); /* 0x36058ABA: mov esi, dword ptr [edx + 8] */ 12650 MEM32(ecx) = esi; /* 0x36058ABD: mov dword ptr [ecx], esi */ 12651 esi = MEM32(edx + 0x8); /* 0x36058ABF: mov esi, dword ptr [edx + 8] */ 12652 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058AC2: cmp esi, dword ptr [edi + 8] */ 12653 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12655 _flag_k = FK_CMP; 12656 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058ACA; /* 0x36058AC5: je 0x36058aca */ 12657 L_36058AC7: 12658 MEM32(esi + 0x4) = ecx; /* 0x36058AC7: mov dword ptr [esi + 4], ecx */ 12659 L_36058ACA: 12660 esi = MEM32(ecx + 0x4); /* 0x36058ACA: mov esi, dword ptr [ecx + 4] */ 12661 MEM32(edx + 0x4) = esi; /* 0x36058ACD: mov dword ptr [edx + 4], esi */ 12662 esi = MEM32(edi + 0x4); /* 0x36058AD0: mov esi, dword ptr [edi + 4] */ 12663 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058AD3: cmp ecx, dword ptr [esi + 4] */ 12664 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12666 _flag_k = FK_CMP; 12667 if (CMP_NE(_flag_a, _flag_b)) goto L_36058ADD; /* 0x36058AD6: jne 0x36058add */ 12668 L_36058AD8: 12669 MEM32(esi + 0x4) = edx; /* 0x36058AD8: mov dword ptr [esi + 4], edx */ 12670 goto L_36058AEC; /* 0x36058ADB: jmp 0x36058aec */ 12671 L_36058ADD: 12672 esi = MEM32(ecx + 0x4); /* 0x36058ADD: mov esi, dword ptr [ecx + 4] */ 12673 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058AE0: cmp ecx, dword ptr [esi + 8] */ 12674 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12676 _flag_k = FK_CMP; 12677 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AEA; /* 0x36058AE3: jne 0x36058aea */ 12678 L_36058AE5: 12679 MEM32(esi + 0x8) = edx; /* 0x36058AE5: mov dword ptr [esi + 8], edx */ 12680 goto L_36058AEC; /* 0x36058AE8: jmp 0x36058aec */ 12681 L_36058AEA: 12682 MEM32(esi) = edx; /* 0x36058AEA: mov dword ptr [esi], edx */ 12683 L_36058AEC: 12684 MEM32(edx + 0x8) = ecx; /* 0x36058AEC: mov dword ptr [edx + 8], ecx */ 12685 MEM32(ecx + 0x4) = edx; /* 0x36058AEF: mov dword ptr [ecx + 4], edx */ 12686 edx = MEM32(eax + 0x4); /* 0x36058AF2: mov edx, dword ptr [eax + 4] */ 12687 ecx = MEM32(edx); /* 0x36058AF5: mov ecx, dword ptr [edx] */ 12688 L_36058AF7: 12689 edx = MEM32(ecx + 0x8); /* 0x36058AF7: mov edx, dword ptr [ecx + 8] */ 12690 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058AFA: cmp byte ptr [edx + 0x14], bl */ 12691 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12693 _flag_k = FK_NARROW(FK_CMP, 24); 12694 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058AFD: jne 0x36058bd3 */ 12695 L_36058B03: 12696 edx = MEM32(ecx); /* 0x36058B03: mov edx, dword ptr [ecx] */ 12697 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B05: cmp byte ptr [edx + 0x14], bl */ 12698 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12700 _flag_k = FK_NARROW(FK_CMP, 24); 12701 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058B08: jne 0x36058bd3 */ 12702 L_36058B0E: 12703 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B0E: mov byte ptr [ecx + 0x14], 0 */ 12704 ecx = MEM32(edi + 0x4); /* 0x36058B12: mov ecx, dword ptr [edi + 4] */ 12705 eax = MEM32(eax + 0x4); /* 0x36058B15: mov eax, dword ptr [eax + 4] */ 12706 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36058B18: cmp eax, dword ptr [ecx + 4] */ 12707 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12708 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12709 _flag_k = FK_CMP; 12710 RECOMP_BACKEDGE(); 12711 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A24; /* 0x36058B1B: jne 0x36058a24 */ 12712 L_36058B21: 12713 goto L_36058C72; /* 0x36058B21: jmp 0x36058c72 */ 12714 L_36058B26: 12715 edx = MEM32(ecx + 0x8); /* 0x36058B26: mov edx, dword ptr [ecx + 8] */ 12716 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B29: cmp byte ptr [edx + 0x14], bl */ 12717 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12719 _flag_k = FK_NARROW(FK_CMP, 24); 12720 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B77; /* 0x36058B2C: jne 0x36058b77 */ 12721 L_36058B2E: 12722 edx = MEM32(ecx); /* 0x36058B2E: mov edx, dword ptr [ecx] */ 12723 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B30: mov byte ptr [edx + 0x14], bl */ 12724 edx = MEM32(ecx); /* 0x36058B33: mov edx, dword ptr [ecx] */ 12725 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B35: mov byte ptr [ecx + 0x14], 0 */ 12726 esi = MEM32(edx + 0x8); /* 0x36058B39: mov esi, dword ptr [edx + 8] */ 12727 MEM32(ecx) = esi; /* 0x36058B3C: mov dword ptr [ecx], esi */ 12728 esi = MEM32(edx + 0x8); /* 0x36058B3E: mov esi, dword ptr [edx + 8] */ 12729 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B41: cmp esi, dword ptr [edi + 8] */ 12730 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12732 _flag_k = FK_CMP; 12733 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058B49; /* 0x36058B44: je 0x36058b49 */ 12734 L_36058B46: 12735 MEM32(esi + 0x4) = ecx; /* 0x36058B46: mov dword ptr [esi + 4], ecx */ 12736 L_36058B49: 12737 esi = MEM32(ecx + 0x4); /* 0x36058B49: mov esi, dword ptr [ecx + 4] */ 12738 MEM32(edx + 0x4) = esi; /* 0x36058B4C: mov dword ptr [edx + 4], esi */ 12739 esi = MEM32(edi + 0x4); /* 0x36058B4F: mov esi, dword ptr [edi + 4] */ 12740 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058B52: cmp ecx, dword ptr [esi + 4] */ 12741 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12743 _flag_k = FK_CMP; 12744 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B5C; /* 0x36058B55: jne 0x36058b5c */ 12745 L_36058B57: 12746 MEM32(esi + 0x4) = edx; /* 0x36058B57: mov dword ptr [esi + 4], edx */ 12747 goto L_36058B6B; /* 0x36058B5A: jmp 0x36058b6b */ 12748 L_36058B5C: 12749 esi = MEM32(ecx + 0x4); /* 0x36058B5C: mov esi, dword ptr [ecx + 4] */ 12750 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058B5F: cmp ecx, dword ptr [esi + 8] */ 12751 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12753 _flag_k = FK_CMP; 12754 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B69; /* 0x36058B62: jne 0x36058b69 */ 12755 L_36058B64: 12756 MEM32(esi + 0x8) = edx; /* 0x36058B64: mov dword ptr [esi + 8], edx */ 12757 goto L_36058B6B; /* 0x36058B67: jmp 0x36058b6b */ 12758 L_36058B69: 12759 MEM32(esi) = edx; /* 0x36058B69: mov dword ptr [esi], edx */ 12760 L_36058B6B: 12761 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 12762 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 12763 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 12764 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 12765 L_36058B77: 12766 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 12767 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 12768 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 12769 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 12770 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 12771 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 12772 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 12773 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 12774 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 12775 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 12776 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 12777 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 12778 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 12779 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12781 _flag_k = FK_CMP; 12782 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 12783 L_36058B9E: 12784 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 12785 L_36058BA1: 12786 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 12787 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 12788 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 12789 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 12790 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12792 _flag_k = FK_CMP; 12793 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 12794 L_36058BAF: 12795 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 12796 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 12797 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 12798 L_36058BB9: 12799 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 12800 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 12801 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12803 _flag_k = FK_CMP; 12804 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 12805 L_36058BC0: 12806 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 12807 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 12808 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 12809 L_36058BC9: 12810 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 12811 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 12812 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 12813 L_36058BD3: 12814 edx = MEM32(ecx); /* 0x36058BD3: mov edx, dword ptr [ecx] */ 12815 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058BD5: cmp byte ptr [edx + 0x14], bl */ 12816 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12818 _flag_k = FK_NARROW(FK_CMP, 24); 12819 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C21; /* 0x36058BD8: jne 0x36058c21 */ 12820 L_36058BDA: 12821 edx = MEM32(ecx + 0x8); /* 0x36058BDA: mov edx, dword ptr [ecx + 8] */ 12822 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058BDD: mov byte ptr [edx + 0x14], bl */ 12823 edx = MEM32(ecx + 0x8); /* 0x36058BE0: mov edx, dword ptr [ecx + 8] */ 12824 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058BE3: mov byte ptr [ecx + 0x14], 0 */ 12825 esi = MEM32(edx); /* 0x36058BE7: mov esi, dword ptr [edx] */ 12826 MEM32(ecx + 0x8) = esi; /* 0x36058BE9: mov dword ptr [ecx + 8], esi */ 12827 esi = MEM32(edx); /* 0x36058BEC: mov esi, dword ptr [edx] */ 12828 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058BEE: cmp esi, dword ptr [edi + 8] */ 12829 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12831 _flag_k = FK_CMP; 12832 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BF6; /* 0x36058BF1: je 0x36058bf6 */ 12833 L_36058BF3: 12834 MEM32(esi + 0x4) = ecx; /* 0x36058BF3: mov dword ptr [esi + 4], ecx */ 12835 L_36058BF6: 12836 esi = MEM32(ecx + 0x4); /* 0x36058BF6: mov esi, dword ptr [ecx + 4] */ 12837 MEM32(edx + 0x4) = esi; /* 0x36058BF9: mov dword ptr [edx + 4], esi */ 12838 esi = MEM32(edi + 0x4); /* 0x36058BFC: mov esi, dword ptr [edi + 4] */ 12839 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BFF: cmp ecx, dword ptr [esi + 4] */ 12840 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12842 _flag_k = FK_CMP; 12843 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C09; /* 0x36058C02: jne 0x36058c09 */ 12844 L_36058C04: 12845 MEM32(esi + 0x4) = edx; /* 0x36058C04: mov dword ptr [esi + 4], edx */ 12846 goto L_36058C17; /* 0x36058C07: jmp 0x36058c17 */ 12847 L_36058C09: 12848 esi = MEM32(ecx + 0x4); /* 0x36058C09: mov esi, dword ptr [ecx + 4] */ 12849 /* cmp ecx, MEM32(esi) */ /* 0x36058C0C: cmp ecx, dword ptr [esi] */ 12850 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 12851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12852 _flag_k = FK_CMP; 12853 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C14; /* 0x36058C0E: jne 0x36058c14 */ 12854 L_36058C10: 12855 MEM32(esi) = edx; /* 0x36058C10: mov dword ptr [esi], edx */ 12856 goto L_36058C17; /* 0x36058C12: jmp 0x36058c17 */ 12857 L_36058C14: 12858 MEM32(esi + 0x8) = edx; /* 0x36058C14: mov dword ptr [esi + 8], edx */ 12859 L_36058C17: 12860 MEM32(edx) = ecx; /* 0x36058C17: mov dword ptr [edx], ecx */ 12861 MEM32(ecx + 0x4) = edx; /* 0x36058C19: mov dword ptr [ecx + 4], edx */ 12862 ecx = MEM32(eax + 0x4); /* 0x36058C1C: mov ecx, dword ptr [eax + 4] */ 12863 ecx = MEM32(ecx); /* 0x36058C1F: mov ecx, dword ptr [ecx] */ 12864 L_36058C21: 12865 edx = MEM32(eax + 0x4); /* 0x36058C21: mov edx, dword ptr [eax + 4] */ 12866 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058C24: mov dl, byte ptr [edx + 0x14] */ 12867 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058C27: mov byte ptr [ecx + 0x14], dl */ 12868 edx = MEM32(eax + 0x4); /* 0x36058C2A: mov edx, dword ptr [eax + 4] */ 12869 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C2D: mov byte ptr [edx + 0x14], bl */ 12870 ecx = MEM32(ecx); /* 0x36058C30: mov ecx, dword ptr [ecx] */ 12871 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C32: mov byte ptr [ecx + 0x14], bl */ 12872 ecx = MEM32(eax + 0x4); /* 0x36058C35: mov ecx, dword ptr [eax + 4] */ 12873 edx = MEM32(ecx); /* 0x36058C38: mov edx, dword ptr [ecx] */ 12874 esi = MEM32(edx + 0x8); /* 0x36058C3A: mov esi, dword ptr [edx + 8] */ 12875 MEM32(ecx) = esi; /* 0x36058C3D: mov dword ptr [ecx], esi */ 12876 esi = MEM32(edx + 0x8); /* 0x36058C3F: mov esi, dword ptr [edx + 8] */ 12877 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058C42: cmp esi, dword ptr [edi + 8] */ 12878 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12880 _flag_k = FK_CMP; 12881 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C4A; /* 0x36058C45: je 0x36058c4a */ 12882 L_36058C47: 12883 MEM32(esi + 0x4) = ecx; /* 0x36058C47: mov dword ptr [esi + 4], ecx */ 12884 L_36058C4A: 12885 esi = MEM32(ecx + 0x4); /* 0x36058C4A: mov esi, dword ptr [ecx + 4] */ 12886 MEM32(edx + 0x4) = esi; /* 0x36058C4D: mov dword ptr [edx + 4], esi */ 12887 esi = MEM32(edi + 0x4); /* 0x36058C50: mov esi, dword ptr [edi + 4] */ 12888 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058C53: cmp ecx, dword ptr [esi + 4] */ 12889 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12891 _flag_k = FK_CMP; 12892 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C5D; /* 0x36058C56: jne 0x36058c5d */ 12893 L_36058C58: 12894 MEM32(esi + 0x4) = edx; /* 0x36058C58: mov dword ptr [esi + 4], edx */ 12895 goto L_36058C6C; /* 0x36058C5B: jmp 0x36058c6c */ 12896 L_36058C5D: 12897 esi = MEM32(ecx + 0x4); /* 0x36058C5D: mov esi, dword ptr [ecx + 4] */ 12898 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058C60: cmp ecx, dword ptr [esi + 8] */ 12899 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12901 _flag_k = FK_CMP; 12902 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C6A; /* 0x36058C63: jne 0x36058c6a */ 12903 L_36058C65: 12904 MEM32(esi + 0x8) = edx; /* 0x36058C65: mov dword ptr [esi + 8], edx */ 12905 goto L_36058C6C; /* 0x36058C68: jmp 0x36058c6c */ 12906 L_36058C6A: 12907 MEM32(esi) = edx; /* 0x36058C6A: mov dword ptr [esi], edx */ 12908 L_36058C6C: 12909 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 12910 L_36058C6F: 12911 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 12912 L_36058C72: 12913 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 12914 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 12915 PUSH32(esp, edx); /* 0x36058C78: push edx */ 12916 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 12917 RECOMP_FLAGS_IN(); 12918 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 12919 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 12920 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12921 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12922 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 12923 _flag_k = FK_ADD; 12924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12925 eax = eax - 1; /* 0x36058C87: dec eax */ 12926 _flag_k = FK_DEC; 12927 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 12928 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 12929 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 12930 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 12931 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 12932 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 12933 esp = ebp; /* 0x36058C93: mov esp, ebp */ 12934 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 12935 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 12936 RECOMP_REGS_OUT(); 12937 } 12938 12939 void sub_36058AA4(void) { 12940 int _fpu_cmp = 0; 12941 uint32_t _cf = 0; 12942 int _df = 1; 12943 uint32_t _flag_k = FK_NONE; 12944 uint32_t _flag_a = 0, _flag_b = 0; 12945 uint32_t _itail_tgt = 0; 12946 RECOMP_REGS_LOCALS 12947 RECOMP_ENTER(0x36058AA4u); 12948 12949 goto L_36058AA4; 12950 L_36058A24: 12951 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x36058A24: cmp byte ptr [eax + 0x14], bl */ 12952 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12954 _flag_k = FK_NARROW(FK_CMP, 24); 12955 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A27: jne 0x36058c72 */ 12956 L_36058A2D: 12957 edx = MEM32(eax + 0x4); /* 0x36058A2D: mov edx, dword ptr [eax + 4] */ 12958 ecx = MEM32(edx); /* 0x36058A30: mov ecx, dword ptr [edx] */ 12959 /* cmp eax, ecx */ /* 0x36058A32: cmp eax, ecx */ 12960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12962 _flag_k = FK_CMP; 12963 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AA4; /* 0x36058A34: jne 0x36058aa4 */ 12964 L_36058A36: 12965 ecx = MEM32(edx + 0x8); /* 0x36058A36: mov ecx, dword ptr [edx + 8] */ 12966 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A39: mov dl, byte ptr [ecx + 0x14] */ 12967 /* test LO8(edx), LO8(edx) */ /* 0x36058A3C: test dl, dl */ 12968 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 12969 _cf = 0; 12970 _flag_k = FK_NARROW(FK_TEST, 24); 12971 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058A8B; /* 0x36058A3E: jne 0x36058a8b */ 12972 L_36058A40: 12973 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058A40: mov byte ptr [ecx + 0x14], bl */ 12974 ecx = MEM32(eax + 0x4); /* 0x36058A43: mov ecx, dword ptr [eax + 4] */ 12975 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058A46: mov byte ptr [ecx + 0x14], 0 */ 12976 ecx = MEM32(eax + 0x4); /* 0x36058A4A: mov ecx, dword ptr [eax + 4] */ 12977 edx = MEM32(ecx + 0x8); /* 0x36058A4D: mov edx, dword ptr [ecx + 8] */ 12978 esi = MEM32(edx); /* 0x36058A50: mov esi, dword ptr [edx] */ 12979 MEM32(ecx + 0x8) = esi; /* 0x36058A52: mov dword ptr [ecx + 8], esi */ 12980 esi = MEM32(edx); /* 0x36058A55: mov esi, dword ptr [edx] */ 12981 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058A57: cmp esi, dword ptr [edi + 8] */ 12982 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 12983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12984 _flag_k = FK_CMP; 12985 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058A5F; /* 0x36058A5A: je 0x36058a5f */ 12986 L_36058A5C: 12987 MEM32(esi + 0x4) = ecx; /* 0x36058A5C: mov dword ptr [esi + 4], ecx */ 12988 L_36058A5F: 12989 esi = MEM32(ecx + 0x4); /* 0x36058A5F: mov esi, dword ptr [ecx + 4] */ 12990 MEM32(edx + 0x4) = esi; /* 0x36058A62: mov dword ptr [edx + 4], esi */ 12991 esi = MEM32(edi + 0x4); /* 0x36058A65: mov esi, dword ptr [edi + 4] */ 12992 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058A68: cmp ecx, dword ptr [esi + 4] */ 12993 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12995 _flag_k = FK_CMP; 12996 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A72; /* 0x36058A6B: jne 0x36058a72 */ 12997 L_36058A6D: 12998 MEM32(esi + 0x4) = edx; /* 0x36058A6D: mov dword ptr [esi + 4], edx */ 12999 goto L_36058A80; /* 0x36058A70: jmp 0x36058a80 */ 13000 L_36058A72: 13001 esi = MEM32(ecx + 0x4); /* 0x36058A72: mov esi, dword ptr [ecx + 4] */ 13002 /* cmp ecx, MEM32(esi) */ /* 0x36058A75: cmp ecx, dword ptr [esi] */ 13003 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13005 _flag_k = FK_CMP; 13006 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A7D; /* 0x36058A77: jne 0x36058a7d */ 13007 L_36058A79: 13008 MEM32(esi) = edx; /* 0x36058A79: mov dword ptr [esi], edx */ 13009 goto L_36058A80; /* 0x36058A7B: jmp 0x36058a80 */ 13010 L_36058A7D: 13011 MEM32(esi + 0x8) = edx; /* 0x36058A7D: mov dword ptr [esi + 8], edx */ 13012 L_36058A80: 13013 MEM32(edx) = ecx; /* 0x36058A80: mov dword ptr [edx], ecx */ 13014 MEM32(ecx + 0x4) = edx; /* 0x36058A82: mov dword ptr [ecx + 4], edx */ 13015 edx = MEM32(eax + 0x4); /* 0x36058A85: mov edx, dword ptr [eax + 4] */ 13016 ecx = MEM32(edx + 0x8); /* 0x36058A88: mov ecx, dword ptr [edx + 8] */ 13017 L_36058A8B: 13018 edx = MEM32(ecx); /* 0x36058A8B: mov edx, dword ptr [ecx] */ 13019 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A8D: cmp byte ptr [edx + 0x14], bl */ 13020 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13022 _flag_k = FK_NARROW(FK_CMP, 24); 13023 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A90: jne 0x36058b26 */ 13024 L_36058A96: 13025 edx = MEM32(ecx + 0x8); /* 0x36058A96: mov edx, dword ptr [ecx + 8] */ 13026 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A99: cmp byte ptr [edx + 0x14], bl */ 13027 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13029 _flag_k = FK_NARROW(FK_CMP, 24); 13030 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A9C: jne 0x36058b26 */ 13031 L_36058AA2: 13032 goto L_36058B0E; /* 0x36058AA2: jmp 0x36058b0e */ 13033 L_36058AA4: 13034 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058AA4: mov dl, byte ptr [ecx + 0x14] */ 13035 /* test LO8(edx), LO8(edx) */ /* 0x36058AA7: test dl, dl */ 13036 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13037 _cf = 0; 13038 _flag_k = FK_NARROW(FK_TEST, 24); 13039 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058AF7; /* 0x36058AA9: jne 0x36058af7 */ 13040 L_36058AAB: 13041 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058AAB: mov byte ptr [ecx + 0x14], bl */ 13042 ecx = MEM32(eax + 0x4); /* 0x36058AAE: mov ecx, dword ptr [eax + 4] */ 13043 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058AB1: mov byte ptr [ecx + 0x14], 0 */ 13044 ecx = MEM32(eax + 0x4); /* 0x36058AB5: mov ecx, dword ptr [eax + 4] */ 13045 edx = MEM32(ecx); /* 0x36058AB8: mov edx, dword ptr [ecx] */ 13046 esi = MEM32(edx + 0x8); /* 0x36058ABA: mov esi, dword ptr [edx + 8] */ 13047 MEM32(ecx) = esi; /* 0x36058ABD: mov dword ptr [ecx], esi */ 13048 esi = MEM32(edx + 0x8); /* 0x36058ABF: mov esi, dword ptr [edx + 8] */ 13049 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058AC2: cmp esi, dword ptr [edi + 8] */ 13050 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13052 _flag_k = FK_CMP; 13053 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058ACA; /* 0x36058AC5: je 0x36058aca */ 13054 L_36058AC7: 13055 MEM32(esi + 0x4) = ecx; /* 0x36058AC7: mov dword ptr [esi + 4], ecx */ 13056 L_36058ACA: 13057 esi = MEM32(ecx + 0x4); /* 0x36058ACA: mov esi, dword ptr [ecx + 4] */ 13058 MEM32(edx + 0x4) = esi; /* 0x36058ACD: mov dword ptr [edx + 4], esi */ 13059 esi = MEM32(edi + 0x4); /* 0x36058AD0: mov esi, dword ptr [edi + 4] */ 13060 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058AD3: cmp ecx, dword ptr [esi + 4] */ 13061 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13063 _flag_k = FK_CMP; 13064 if (CMP_NE(_flag_a, _flag_b)) goto L_36058ADD; /* 0x36058AD6: jne 0x36058add */ 13065 L_36058AD8: 13066 MEM32(esi + 0x4) = edx; /* 0x36058AD8: mov dword ptr [esi + 4], edx */ 13067 goto L_36058AEC; /* 0x36058ADB: jmp 0x36058aec */ 13068 L_36058ADD: 13069 esi = MEM32(ecx + 0x4); /* 0x36058ADD: mov esi, dword ptr [ecx + 4] */ 13070 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058AE0: cmp ecx, dword ptr [esi + 8] */ 13071 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13073 _flag_k = FK_CMP; 13074 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AEA; /* 0x36058AE3: jne 0x36058aea */ 13075 L_36058AE5: 13076 MEM32(esi + 0x8) = edx; /* 0x36058AE5: mov dword ptr [esi + 8], edx */ 13077 goto L_36058AEC; /* 0x36058AE8: jmp 0x36058aec */ 13078 L_36058AEA: 13079 MEM32(esi) = edx; /* 0x36058AEA: mov dword ptr [esi], edx */ 13080 L_36058AEC: 13081 MEM32(edx + 0x8) = ecx; /* 0x36058AEC: mov dword ptr [edx + 8], ecx */ 13082 MEM32(ecx + 0x4) = edx; /* 0x36058AEF: mov dword ptr [ecx + 4], edx */ 13083 edx = MEM32(eax + 0x4); /* 0x36058AF2: mov edx, dword ptr [eax + 4] */ 13084 ecx = MEM32(edx); /* 0x36058AF5: mov ecx, dword ptr [edx] */ 13085 L_36058AF7: 13086 edx = MEM32(ecx + 0x8); /* 0x36058AF7: mov edx, dword ptr [ecx + 8] */ 13087 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058AFA: cmp byte ptr [edx + 0x14], bl */ 13088 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13090 _flag_k = FK_NARROW(FK_CMP, 24); 13091 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058AFD: jne 0x36058bd3 */ 13092 L_36058B03: 13093 edx = MEM32(ecx); /* 0x36058B03: mov edx, dword ptr [ecx] */ 13094 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B05: cmp byte ptr [edx + 0x14], bl */ 13095 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13097 _flag_k = FK_NARROW(FK_CMP, 24); 13098 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058B08: jne 0x36058bd3 */ 13099 L_36058B0E: 13100 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B0E: mov byte ptr [ecx + 0x14], 0 */ 13101 ecx = MEM32(edi + 0x4); /* 0x36058B12: mov ecx, dword ptr [edi + 4] */ 13102 eax = MEM32(eax + 0x4); /* 0x36058B15: mov eax, dword ptr [eax + 4] */ 13103 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36058B18: cmp eax, dword ptr [ecx + 4] */ 13104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13106 _flag_k = FK_CMP; 13107 RECOMP_BACKEDGE(); 13108 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A24; /* 0x36058B1B: jne 0x36058a24 */ 13109 L_36058B21: 13110 goto L_36058C72; /* 0x36058B21: jmp 0x36058c72 */ 13111 L_36058B26: 13112 edx = MEM32(ecx + 0x8); /* 0x36058B26: mov edx, dword ptr [ecx + 8] */ 13113 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B29: cmp byte ptr [edx + 0x14], bl */ 13114 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13116 _flag_k = FK_NARROW(FK_CMP, 24); 13117 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B77; /* 0x36058B2C: jne 0x36058b77 */ 13118 L_36058B2E: 13119 edx = MEM32(ecx); /* 0x36058B2E: mov edx, dword ptr [ecx] */ 13120 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B30: mov byte ptr [edx + 0x14], bl */ 13121 edx = MEM32(ecx); /* 0x36058B33: mov edx, dword ptr [ecx] */ 13122 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B35: mov byte ptr [ecx + 0x14], 0 */ 13123 esi = MEM32(edx + 0x8); /* 0x36058B39: mov esi, dword ptr [edx + 8] */ 13124 MEM32(ecx) = esi; /* 0x36058B3C: mov dword ptr [ecx], esi */ 13125 esi = MEM32(edx + 0x8); /* 0x36058B3E: mov esi, dword ptr [edx + 8] */ 13126 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B41: cmp esi, dword ptr [edi + 8] */ 13127 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13129 _flag_k = FK_CMP; 13130 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058B49; /* 0x36058B44: je 0x36058b49 */ 13131 L_36058B46: 13132 MEM32(esi + 0x4) = ecx; /* 0x36058B46: mov dword ptr [esi + 4], ecx */ 13133 L_36058B49: 13134 esi = MEM32(ecx + 0x4); /* 0x36058B49: mov esi, dword ptr [ecx + 4] */ 13135 MEM32(edx + 0x4) = esi; /* 0x36058B4C: mov dword ptr [edx + 4], esi */ 13136 esi = MEM32(edi + 0x4); /* 0x36058B4F: mov esi, dword ptr [edi + 4] */ 13137 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058B52: cmp ecx, dword ptr [esi + 4] */ 13138 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13140 _flag_k = FK_CMP; 13141 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B5C; /* 0x36058B55: jne 0x36058b5c */ 13142 L_36058B57: 13143 MEM32(esi + 0x4) = edx; /* 0x36058B57: mov dword ptr [esi + 4], edx */ 13144 goto L_36058B6B; /* 0x36058B5A: jmp 0x36058b6b */ 13145 L_36058B5C: 13146 esi = MEM32(ecx + 0x4); /* 0x36058B5C: mov esi, dword ptr [ecx + 4] */ 13147 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058B5F: cmp ecx, dword ptr [esi + 8] */ 13148 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13150 _flag_k = FK_CMP; 13151 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B69; /* 0x36058B62: jne 0x36058b69 */ 13152 L_36058B64: 13153 MEM32(esi + 0x8) = edx; /* 0x36058B64: mov dword ptr [esi + 8], edx */ 13154 goto L_36058B6B; /* 0x36058B67: jmp 0x36058b6b */ 13155 L_36058B69: 13156 MEM32(esi) = edx; /* 0x36058B69: mov dword ptr [esi], edx */ 13157 L_36058B6B: 13158 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 13159 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 13160 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 13161 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 13162 L_36058B77: 13163 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 13164 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 13165 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 13166 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 13167 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 13168 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 13169 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 13170 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 13171 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 13172 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 13173 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 13174 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 13175 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 13176 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13178 _flag_k = FK_CMP; 13179 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 13180 L_36058B9E: 13181 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 13182 L_36058BA1: 13183 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 13184 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 13185 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 13186 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 13187 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13189 _flag_k = FK_CMP; 13190 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 13191 L_36058BAF: 13192 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 13193 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 13194 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 13195 L_36058BB9: 13196 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 13197 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 13198 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13200 _flag_k = FK_CMP; 13201 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 13202 L_36058BC0: 13203 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 13204 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 13205 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 13206 L_36058BC9: 13207 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 13208 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 13209 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 13210 L_36058BD3: 13211 edx = MEM32(ecx); /* 0x36058BD3: mov edx, dword ptr [ecx] */ 13212 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058BD5: cmp byte ptr [edx + 0x14], bl */ 13213 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13215 _flag_k = FK_NARROW(FK_CMP, 24); 13216 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C21; /* 0x36058BD8: jne 0x36058c21 */ 13217 L_36058BDA: 13218 edx = MEM32(ecx + 0x8); /* 0x36058BDA: mov edx, dword ptr [ecx + 8] */ 13219 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058BDD: mov byte ptr [edx + 0x14], bl */ 13220 edx = MEM32(ecx + 0x8); /* 0x36058BE0: mov edx, dword ptr [ecx + 8] */ 13221 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058BE3: mov byte ptr [ecx + 0x14], 0 */ 13222 esi = MEM32(edx); /* 0x36058BE7: mov esi, dword ptr [edx] */ 13223 MEM32(ecx + 0x8) = esi; /* 0x36058BE9: mov dword ptr [ecx + 8], esi */ 13224 esi = MEM32(edx); /* 0x36058BEC: mov esi, dword ptr [edx] */ 13225 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058BEE: cmp esi, dword ptr [edi + 8] */ 13226 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13228 _flag_k = FK_CMP; 13229 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BF6; /* 0x36058BF1: je 0x36058bf6 */ 13230 L_36058BF3: 13231 MEM32(esi + 0x4) = ecx; /* 0x36058BF3: mov dword ptr [esi + 4], ecx */ 13232 L_36058BF6: 13233 esi = MEM32(ecx + 0x4); /* 0x36058BF6: mov esi, dword ptr [ecx + 4] */ 13234 MEM32(edx + 0x4) = esi; /* 0x36058BF9: mov dword ptr [edx + 4], esi */ 13235 esi = MEM32(edi + 0x4); /* 0x36058BFC: mov esi, dword ptr [edi + 4] */ 13236 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BFF: cmp ecx, dword ptr [esi + 4] */ 13237 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13239 _flag_k = FK_CMP; 13240 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C09; /* 0x36058C02: jne 0x36058c09 */ 13241 L_36058C04: 13242 MEM32(esi + 0x4) = edx; /* 0x36058C04: mov dword ptr [esi + 4], edx */ 13243 goto L_36058C17; /* 0x36058C07: jmp 0x36058c17 */ 13244 L_36058C09: 13245 esi = MEM32(ecx + 0x4); /* 0x36058C09: mov esi, dword ptr [ecx + 4] */ 13246 /* cmp ecx, MEM32(esi) */ /* 0x36058C0C: cmp ecx, dword ptr [esi] */ 13247 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13249 _flag_k = FK_CMP; 13250 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C14; /* 0x36058C0E: jne 0x36058c14 */ 13251 L_36058C10: 13252 MEM32(esi) = edx; /* 0x36058C10: mov dword ptr [esi], edx */ 13253 goto L_36058C17; /* 0x36058C12: jmp 0x36058c17 */ 13254 L_36058C14: 13255 MEM32(esi + 0x8) = edx; /* 0x36058C14: mov dword ptr [esi + 8], edx */ 13256 L_36058C17: 13257 MEM32(edx) = ecx; /* 0x36058C17: mov dword ptr [edx], ecx */ 13258 MEM32(ecx + 0x4) = edx; /* 0x36058C19: mov dword ptr [ecx + 4], edx */ 13259 ecx = MEM32(eax + 0x4); /* 0x36058C1C: mov ecx, dword ptr [eax + 4] */ 13260 ecx = MEM32(ecx); /* 0x36058C1F: mov ecx, dword ptr [ecx] */ 13261 L_36058C21: 13262 edx = MEM32(eax + 0x4); /* 0x36058C21: mov edx, dword ptr [eax + 4] */ 13263 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058C24: mov dl, byte ptr [edx + 0x14] */ 13264 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058C27: mov byte ptr [ecx + 0x14], dl */ 13265 edx = MEM32(eax + 0x4); /* 0x36058C2A: mov edx, dword ptr [eax + 4] */ 13266 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C2D: mov byte ptr [edx + 0x14], bl */ 13267 ecx = MEM32(ecx); /* 0x36058C30: mov ecx, dword ptr [ecx] */ 13268 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C32: mov byte ptr [ecx + 0x14], bl */ 13269 ecx = MEM32(eax + 0x4); /* 0x36058C35: mov ecx, dword ptr [eax + 4] */ 13270 edx = MEM32(ecx); /* 0x36058C38: mov edx, dword ptr [ecx] */ 13271 esi = MEM32(edx + 0x8); /* 0x36058C3A: mov esi, dword ptr [edx + 8] */ 13272 MEM32(ecx) = esi; /* 0x36058C3D: mov dword ptr [ecx], esi */ 13273 esi = MEM32(edx + 0x8); /* 0x36058C3F: mov esi, dword ptr [edx + 8] */ 13274 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058C42: cmp esi, dword ptr [edi + 8] */ 13275 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13277 _flag_k = FK_CMP; 13278 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C4A; /* 0x36058C45: je 0x36058c4a */ 13279 L_36058C47: 13280 MEM32(esi + 0x4) = ecx; /* 0x36058C47: mov dword ptr [esi + 4], ecx */ 13281 L_36058C4A: 13282 esi = MEM32(ecx + 0x4); /* 0x36058C4A: mov esi, dword ptr [ecx + 4] */ 13283 MEM32(edx + 0x4) = esi; /* 0x36058C4D: mov dword ptr [edx + 4], esi */ 13284 esi = MEM32(edi + 0x4); /* 0x36058C50: mov esi, dword ptr [edi + 4] */ 13285 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058C53: cmp ecx, dword ptr [esi + 4] */ 13286 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13288 _flag_k = FK_CMP; 13289 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C5D; /* 0x36058C56: jne 0x36058c5d */ 13290 L_36058C58: 13291 MEM32(esi + 0x4) = edx; /* 0x36058C58: mov dword ptr [esi + 4], edx */ 13292 goto L_36058C6C; /* 0x36058C5B: jmp 0x36058c6c */ 13293 L_36058C5D: 13294 esi = MEM32(ecx + 0x4); /* 0x36058C5D: mov esi, dword ptr [ecx + 4] */ 13295 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058C60: cmp ecx, dword ptr [esi + 8] */ 13296 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13298 _flag_k = FK_CMP; 13299 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C6A; /* 0x36058C63: jne 0x36058c6a */ 13300 L_36058C65: 13301 MEM32(esi + 0x8) = edx; /* 0x36058C65: mov dword ptr [esi + 8], edx */ 13302 goto L_36058C6C; /* 0x36058C68: jmp 0x36058c6c */ 13303 L_36058C6A: 13304 MEM32(esi) = edx; /* 0x36058C6A: mov dword ptr [esi], edx */ 13305 L_36058C6C: 13306 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 13307 L_36058C6F: 13308 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 13309 L_36058C72: 13310 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 13311 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 13312 PUSH32(esp, edx); /* 0x36058C78: push edx */ 13313 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 13314 RECOMP_FLAGS_IN(); 13315 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 13316 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 13317 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13319 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 13320 _flag_k = FK_ADD; 13321 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13322 eax = eax - 1; /* 0x36058C87: dec eax */ 13323 _flag_k = FK_DEC; 13324 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 13325 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 13326 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 13327 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 13328 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 13329 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 13330 esp = ebp; /* 0x36058C93: mov esp, ebp */ 13331 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 13332 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 13333 RECOMP_REGS_OUT(); 13334 } 13335 13336 void sub_36058AEC(void) { 13337 int _fpu_cmp = 0; 13338 uint32_t _cf = 0; 13339 int _df = 1; 13340 uint32_t _flag_k = FK_NONE; 13341 uint32_t _flag_a = 0, _flag_b = 0; 13342 uint32_t _itail_tgt = 0; 13343 RECOMP_REGS_LOCALS 13344 RECOMP_ENTER(0x36058AECu); 13345 13346 goto L_36058AEC; 13347 L_36058A24: 13348 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x36058A24: cmp byte ptr [eax + 0x14], bl */ 13349 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13351 _flag_k = FK_NARROW(FK_CMP, 24); 13352 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A27: jne 0x36058c72 */ 13353 L_36058A2D: 13354 edx = MEM32(eax + 0x4); /* 0x36058A2D: mov edx, dword ptr [eax + 4] */ 13355 ecx = MEM32(edx); /* 0x36058A30: mov ecx, dword ptr [edx] */ 13356 /* cmp eax, ecx */ /* 0x36058A32: cmp eax, ecx */ 13357 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13359 _flag_k = FK_CMP; 13360 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AA4; /* 0x36058A34: jne 0x36058aa4 */ 13361 L_36058A36: 13362 ecx = MEM32(edx + 0x8); /* 0x36058A36: mov ecx, dword ptr [edx + 8] */ 13363 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A39: mov dl, byte ptr [ecx + 0x14] */ 13364 /* test LO8(edx), LO8(edx) */ /* 0x36058A3C: test dl, dl */ 13365 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13366 _cf = 0; 13367 _flag_k = FK_NARROW(FK_TEST, 24); 13368 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058A8B; /* 0x36058A3E: jne 0x36058a8b */ 13369 L_36058A40: 13370 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058A40: mov byte ptr [ecx + 0x14], bl */ 13371 ecx = MEM32(eax + 0x4); /* 0x36058A43: mov ecx, dword ptr [eax + 4] */ 13372 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058A46: mov byte ptr [ecx + 0x14], 0 */ 13373 ecx = MEM32(eax + 0x4); /* 0x36058A4A: mov ecx, dword ptr [eax + 4] */ 13374 edx = MEM32(ecx + 0x8); /* 0x36058A4D: mov edx, dword ptr [ecx + 8] */ 13375 esi = MEM32(edx); /* 0x36058A50: mov esi, dword ptr [edx] */ 13376 MEM32(ecx + 0x8) = esi; /* 0x36058A52: mov dword ptr [ecx + 8], esi */ 13377 esi = MEM32(edx); /* 0x36058A55: mov esi, dword ptr [edx] */ 13378 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058A57: cmp esi, dword ptr [edi + 8] */ 13379 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13381 _flag_k = FK_CMP; 13382 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058A5F; /* 0x36058A5A: je 0x36058a5f */ 13383 L_36058A5C: 13384 MEM32(esi + 0x4) = ecx; /* 0x36058A5C: mov dword ptr [esi + 4], ecx */ 13385 L_36058A5F: 13386 esi = MEM32(ecx + 0x4); /* 0x36058A5F: mov esi, dword ptr [ecx + 4] */ 13387 MEM32(edx + 0x4) = esi; /* 0x36058A62: mov dword ptr [edx + 4], esi */ 13388 esi = MEM32(edi + 0x4); /* 0x36058A65: mov esi, dword ptr [edi + 4] */ 13389 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058A68: cmp ecx, dword ptr [esi + 4] */ 13390 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13392 _flag_k = FK_CMP; 13393 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A72; /* 0x36058A6B: jne 0x36058a72 */ 13394 L_36058A6D: 13395 MEM32(esi + 0x4) = edx; /* 0x36058A6D: mov dword ptr [esi + 4], edx */ 13396 goto L_36058A80; /* 0x36058A70: jmp 0x36058a80 */ 13397 L_36058A72: 13398 esi = MEM32(ecx + 0x4); /* 0x36058A72: mov esi, dword ptr [ecx + 4] */ 13399 /* cmp ecx, MEM32(esi) */ /* 0x36058A75: cmp ecx, dword ptr [esi] */ 13400 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13402 _flag_k = FK_CMP; 13403 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A7D; /* 0x36058A77: jne 0x36058a7d */ 13404 L_36058A79: 13405 MEM32(esi) = edx; /* 0x36058A79: mov dword ptr [esi], edx */ 13406 goto L_36058A80; /* 0x36058A7B: jmp 0x36058a80 */ 13407 L_36058A7D: 13408 MEM32(esi + 0x8) = edx; /* 0x36058A7D: mov dword ptr [esi + 8], edx */ 13409 L_36058A80: 13410 MEM32(edx) = ecx; /* 0x36058A80: mov dword ptr [edx], ecx */ 13411 MEM32(ecx + 0x4) = edx; /* 0x36058A82: mov dword ptr [ecx + 4], edx */ 13412 edx = MEM32(eax + 0x4); /* 0x36058A85: mov edx, dword ptr [eax + 4] */ 13413 ecx = MEM32(edx + 0x8); /* 0x36058A88: mov ecx, dword ptr [edx + 8] */ 13414 L_36058A8B: 13415 edx = MEM32(ecx); /* 0x36058A8B: mov edx, dword ptr [ecx] */ 13416 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A8D: cmp byte ptr [edx + 0x14], bl */ 13417 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13419 _flag_k = FK_NARROW(FK_CMP, 24); 13420 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A90: jne 0x36058b26 */ 13421 L_36058A96: 13422 edx = MEM32(ecx + 0x8); /* 0x36058A96: mov edx, dword ptr [ecx + 8] */ 13423 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A99: cmp byte ptr [edx + 0x14], bl */ 13424 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13426 _flag_k = FK_NARROW(FK_CMP, 24); 13427 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A9C: jne 0x36058b26 */ 13428 L_36058AA2: 13429 goto L_36058B0E; /* 0x36058AA2: jmp 0x36058b0e */ 13430 L_36058AA4: 13431 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058AA4: mov dl, byte ptr [ecx + 0x14] */ 13432 /* test LO8(edx), LO8(edx) */ /* 0x36058AA7: test dl, dl */ 13433 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13434 _cf = 0; 13435 _flag_k = FK_NARROW(FK_TEST, 24); 13436 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058AF7; /* 0x36058AA9: jne 0x36058af7 */ 13437 L_36058AAB: 13438 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058AAB: mov byte ptr [ecx + 0x14], bl */ 13439 ecx = MEM32(eax + 0x4); /* 0x36058AAE: mov ecx, dword ptr [eax + 4] */ 13440 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058AB1: mov byte ptr [ecx + 0x14], 0 */ 13441 ecx = MEM32(eax + 0x4); /* 0x36058AB5: mov ecx, dword ptr [eax + 4] */ 13442 edx = MEM32(ecx); /* 0x36058AB8: mov edx, dword ptr [ecx] */ 13443 esi = MEM32(edx + 0x8); /* 0x36058ABA: mov esi, dword ptr [edx + 8] */ 13444 MEM32(ecx) = esi; /* 0x36058ABD: mov dword ptr [ecx], esi */ 13445 esi = MEM32(edx + 0x8); /* 0x36058ABF: mov esi, dword ptr [edx + 8] */ 13446 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058AC2: cmp esi, dword ptr [edi + 8] */ 13447 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13449 _flag_k = FK_CMP; 13450 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058ACA; /* 0x36058AC5: je 0x36058aca */ 13451 L_36058AC7: 13452 MEM32(esi + 0x4) = ecx; /* 0x36058AC7: mov dword ptr [esi + 4], ecx */ 13453 L_36058ACA: 13454 esi = MEM32(ecx + 0x4); /* 0x36058ACA: mov esi, dword ptr [ecx + 4] */ 13455 MEM32(edx + 0x4) = esi; /* 0x36058ACD: mov dword ptr [edx + 4], esi */ 13456 esi = MEM32(edi + 0x4); /* 0x36058AD0: mov esi, dword ptr [edi + 4] */ 13457 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058AD3: cmp ecx, dword ptr [esi + 4] */ 13458 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13460 _flag_k = FK_CMP; 13461 if (CMP_NE(_flag_a, _flag_b)) goto L_36058ADD; /* 0x36058AD6: jne 0x36058add */ 13462 L_36058AD8: 13463 MEM32(esi + 0x4) = edx; /* 0x36058AD8: mov dword ptr [esi + 4], edx */ 13464 goto L_36058AEC; /* 0x36058ADB: jmp 0x36058aec */ 13465 L_36058ADD: 13466 esi = MEM32(ecx + 0x4); /* 0x36058ADD: mov esi, dword ptr [ecx + 4] */ 13467 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058AE0: cmp ecx, dword ptr [esi + 8] */ 13468 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13470 _flag_k = FK_CMP; 13471 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AEA; /* 0x36058AE3: jne 0x36058aea */ 13472 L_36058AE5: 13473 MEM32(esi + 0x8) = edx; /* 0x36058AE5: mov dword ptr [esi + 8], edx */ 13474 goto L_36058AEC; /* 0x36058AE8: jmp 0x36058aec */ 13475 L_36058AEA: 13476 MEM32(esi) = edx; /* 0x36058AEA: mov dword ptr [esi], edx */ 13477 L_36058AEC: 13478 MEM32(edx + 0x8) = ecx; /* 0x36058AEC: mov dword ptr [edx + 8], ecx */ 13479 MEM32(ecx + 0x4) = edx; /* 0x36058AEF: mov dword ptr [ecx + 4], edx */ 13480 edx = MEM32(eax + 0x4); /* 0x36058AF2: mov edx, dword ptr [eax + 4] */ 13481 ecx = MEM32(edx); /* 0x36058AF5: mov ecx, dword ptr [edx] */ 13482 L_36058AF7: 13483 edx = MEM32(ecx + 0x8); /* 0x36058AF7: mov edx, dword ptr [ecx + 8] */ 13484 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058AFA: cmp byte ptr [edx + 0x14], bl */ 13485 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13486 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13487 _flag_k = FK_NARROW(FK_CMP, 24); 13488 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058AFD: jne 0x36058bd3 */ 13489 L_36058B03: 13490 edx = MEM32(ecx); /* 0x36058B03: mov edx, dword ptr [ecx] */ 13491 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B05: cmp byte ptr [edx + 0x14], bl */ 13492 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13494 _flag_k = FK_NARROW(FK_CMP, 24); 13495 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058B08: jne 0x36058bd3 */ 13496 L_36058B0E: 13497 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B0E: mov byte ptr [ecx + 0x14], 0 */ 13498 ecx = MEM32(edi + 0x4); /* 0x36058B12: mov ecx, dword ptr [edi + 4] */ 13499 eax = MEM32(eax + 0x4); /* 0x36058B15: mov eax, dword ptr [eax + 4] */ 13500 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36058B18: cmp eax, dword ptr [ecx + 4] */ 13501 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13503 _flag_k = FK_CMP; 13504 RECOMP_BACKEDGE(); 13505 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A24; /* 0x36058B1B: jne 0x36058a24 */ 13506 L_36058B21: 13507 goto L_36058C72; /* 0x36058B21: jmp 0x36058c72 */ 13508 L_36058B26: 13509 edx = MEM32(ecx + 0x8); /* 0x36058B26: mov edx, dword ptr [ecx + 8] */ 13510 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B29: cmp byte ptr [edx + 0x14], bl */ 13511 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13513 _flag_k = FK_NARROW(FK_CMP, 24); 13514 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B77; /* 0x36058B2C: jne 0x36058b77 */ 13515 L_36058B2E: 13516 edx = MEM32(ecx); /* 0x36058B2E: mov edx, dword ptr [ecx] */ 13517 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B30: mov byte ptr [edx + 0x14], bl */ 13518 edx = MEM32(ecx); /* 0x36058B33: mov edx, dword ptr [ecx] */ 13519 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B35: mov byte ptr [ecx + 0x14], 0 */ 13520 esi = MEM32(edx + 0x8); /* 0x36058B39: mov esi, dword ptr [edx + 8] */ 13521 MEM32(ecx) = esi; /* 0x36058B3C: mov dword ptr [ecx], esi */ 13522 esi = MEM32(edx + 0x8); /* 0x36058B3E: mov esi, dword ptr [edx + 8] */ 13523 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B41: cmp esi, dword ptr [edi + 8] */ 13524 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13526 _flag_k = FK_CMP; 13527 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058B49; /* 0x36058B44: je 0x36058b49 */ 13528 L_36058B46: 13529 MEM32(esi + 0x4) = ecx; /* 0x36058B46: mov dword ptr [esi + 4], ecx */ 13530 L_36058B49: 13531 esi = MEM32(ecx + 0x4); /* 0x36058B49: mov esi, dword ptr [ecx + 4] */ 13532 MEM32(edx + 0x4) = esi; /* 0x36058B4C: mov dword ptr [edx + 4], esi */ 13533 esi = MEM32(edi + 0x4); /* 0x36058B4F: mov esi, dword ptr [edi + 4] */ 13534 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058B52: cmp ecx, dword ptr [esi + 4] */ 13535 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13537 _flag_k = FK_CMP; 13538 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B5C; /* 0x36058B55: jne 0x36058b5c */ 13539 L_36058B57: 13540 MEM32(esi + 0x4) = edx; /* 0x36058B57: mov dword ptr [esi + 4], edx */ 13541 goto L_36058B6B; /* 0x36058B5A: jmp 0x36058b6b */ 13542 L_36058B5C: 13543 esi = MEM32(ecx + 0x4); /* 0x36058B5C: mov esi, dword ptr [ecx + 4] */ 13544 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058B5F: cmp ecx, dword ptr [esi + 8] */ 13545 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13547 _flag_k = FK_CMP; 13548 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B69; /* 0x36058B62: jne 0x36058b69 */ 13549 L_36058B64: 13550 MEM32(esi + 0x8) = edx; /* 0x36058B64: mov dword ptr [esi + 8], edx */ 13551 goto L_36058B6B; /* 0x36058B67: jmp 0x36058b6b */ 13552 L_36058B69: 13553 MEM32(esi) = edx; /* 0x36058B69: mov dword ptr [esi], edx */ 13554 L_36058B6B: 13555 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 13556 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 13557 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 13558 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 13559 L_36058B77: 13560 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 13561 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 13562 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 13563 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 13564 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 13565 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 13566 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 13567 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 13568 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 13569 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 13570 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 13571 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 13572 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 13573 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13575 _flag_k = FK_CMP; 13576 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 13577 L_36058B9E: 13578 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 13579 L_36058BA1: 13580 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 13581 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 13582 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 13583 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 13584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13586 _flag_k = FK_CMP; 13587 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 13588 L_36058BAF: 13589 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 13590 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 13591 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 13592 L_36058BB9: 13593 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 13594 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 13595 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13597 _flag_k = FK_CMP; 13598 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 13599 L_36058BC0: 13600 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 13601 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 13602 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 13603 L_36058BC9: 13604 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 13605 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 13606 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 13607 L_36058BD3: 13608 edx = MEM32(ecx); /* 0x36058BD3: mov edx, dword ptr [ecx] */ 13609 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058BD5: cmp byte ptr [edx + 0x14], bl */ 13610 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13612 _flag_k = FK_NARROW(FK_CMP, 24); 13613 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C21; /* 0x36058BD8: jne 0x36058c21 */ 13614 L_36058BDA: 13615 edx = MEM32(ecx + 0x8); /* 0x36058BDA: mov edx, dword ptr [ecx + 8] */ 13616 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058BDD: mov byte ptr [edx + 0x14], bl */ 13617 edx = MEM32(ecx + 0x8); /* 0x36058BE0: mov edx, dword ptr [ecx + 8] */ 13618 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058BE3: mov byte ptr [ecx + 0x14], 0 */ 13619 esi = MEM32(edx); /* 0x36058BE7: mov esi, dword ptr [edx] */ 13620 MEM32(ecx + 0x8) = esi; /* 0x36058BE9: mov dword ptr [ecx + 8], esi */ 13621 esi = MEM32(edx); /* 0x36058BEC: mov esi, dword ptr [edx] */ 13622 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058BEE: cmp esi, dword ptr [edi + 8] */ 13623 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13625 _flag_k = FK_CMP; 13626 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BF6; /* 0x36058BF1: je 0x36058bf6 */ 13627 L_36058BF3: 13628 MEM32(esi + 0x4) = ecx; /* 0x36058BF3: mov dword ptr [esi + 4], ecx */ 13629 L_36058BF6: 13630 esi = MEM32(ecx + 0x4); /* 0x36058BF6: mov esi, dword ptr [ecx + 4] */ 13631 MEM32(edx + 0x4) = esi; /* 0x36058BF9: mov dword ptr [edx + 4], esi */ 13632 esi = MEM32(edi + 0x4); /* 0x36058BFC: mov esi, dword ptr [edi + 4] */ 13633 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BFF: cmp ecx, dword ptr [esi + 4] */ 13634 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13636 _flag_k = FK_CMP; 13637 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C09; /* 0x36058C02: jne 0x36058c09 */ 13638 L_36058C04: 13639 MEM32(esi + 0x4) = edx; /* 0x36058C04: mov dword ptr [esi + 4], edx */ 13640 goto L_36058C17; /* 0x36058C07: jmp 0x36058c17 */ 13641 L_36058C09: 13642 esi = MEM32(ecx + 0x4); /* 0x36058C09: mov esi, dword ptr [ecx + 4] */ 13643 /* cmp ecx, MEM32(esi) */ /* 0x36058C0C: cmp ecx, dword ptr [esi] */ 13644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13646 _flag_k = FK_CMP; 13647 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C14; /* 0x36058C0E: jne 0x36058c14 */ 13648 L_36058C10: 13649 MEM32(esi) = edx; /* 0x36058C10: mov dword ptr [esi], edx */ 13650 goto L_36058C17; /* 0x36058C12: jmp 0x36058c17 */ 13651 L_36058C14: 13652 MEM32(esi + 0x8) = edx; /* 0x36058C14: mov dword ptr [esi + 8], edx */ 13653 L_36058C17: 13654 MEM32(edx) = ecx; /* 0x36058C17: mov dword ptr [edx], ecx */ 13655 MEM32(ecx + 0x4) = edx; /* 0x36058C19: mov dword ptr [ecx + 4], edx */ 13656 ecx = MEM32(eax + 0x4); /* 0x36058C1C: mov ecx, dword ptr [eax + 4] */ 13657 ecx = MEM32(ecx); /* 0x36058C1F: mov ecx, dword ptr [ecx] */ 13658 L_36058C21: 13659 edx = MEM32(eax + 0x4); /* 0x36058C21: mov edx, dword ptr [eax + 4] */ 13660 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058C24: mov dl, byte ptr [edx + 0x14] */ 13661 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058C27: mov byte ptr [ecx + 0x14], dl */ 13662 edx = MEM32(eax + 0x4); /* 0x36058C2A: mov edx, dword ptr [eax + 4] */ 13663 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C2D: mov byte ptr [edx + 0x14], bl */ 13664 ecx = MEM32(ecx); /* 0x36058C30: mov ecx, dword ptr [ecx] */ 13665 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C32: mov byte ptr [ecx + 0x14], bl */ 13666 ecx = MEM32(eax + 0x4); /* 0x36058C35: mov ecx, dword ptr [eax + 4] */ 13667 edx = MEM32(ecx); /* 0x36058C38: mov edx, dword ptr [ecx] */ 13668 esi = MEM32(edx + 0x8); /* 0x36058C3A: mov esi, dword ptr [edx + 8] */ 13669 MEM32(ecx) = esi; /* 0x36058C3D: mov dword ptr [ecx], esi */ 13670 esi = MEM32(edx + 0x8); /* 0x36058C3F: mov esi, dword ptr [edx + 8] */ 13671 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058C42: cmp esi, dword ptr [edi + 8] */ 13672 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13674 _flag_k = FK_CMP; 13675 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C4A; /* 0x36058C45: je 0x36058c4a */ 13676 L_36058C47: 13677 MEM32(esi + 0x4) = ecx; /* 0x36058C47: mov dword ptr [esi + 4], ecx */ 13678 L_36058C4A: 13679 esi = MEM32(ecx + 0x4); /* 0x36058C4A: mov esi, dword ptr [ecx + 4] */ 13680 MEM32(edx + 0x4) = esi; /* 0x36058C4D: mov dword ptr [edx + 4], esi */ 13681 esi = MEM32(edi + 0x4); /* 0x36058C50: mov esi, dword ptr [edi + 4] */ 13682 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058C53: cmp ecx, dword ptr [esi + 4] */ 13683 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13685 _flag_k = FK_CMP; 13686 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C5D; /* 0x36058C56: jne 0x36058c5d */ 13687 L_36058C58: 13688 MEM32(esi + 0x4) = edx; /* 0x36058C58: mov dword ptr [esi + 4], edx */ 13689 goto L_36058C6C; /* 0x36058C5B: jmp 0x36058c6c */ 13690 L_36058C5D: 13691 esi = MEM32(ecx + 0x4); /* 0x36058C5D: mov esi, dword ptr [ecx + 4] */ 13692 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058C60: cmp ecx, dword ptr [esi + 8] */ 13693 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13695 _flag_k = FK_CMP; 13696 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C6A; /* 0x36058C63: jne 0x36058c6a */ 13697 L_36058C65: 13698 MEM32(esi + 0x8) = edx; /* 0x36058C65: mov dword ptr [esi + 8], edx */ 13699 goto L_36058C6C; /* 0x36058C68: jmp 0x36058c6c */ 13700 L_36058C6A: 13701 MEM32(esi) = edx; /* 0x36058C6A: mov dword ptr [esi], edx */ 13702 L_36058C6C: 13703 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 13704 L_36058C6F: 13705 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 13706 L_36058C72: 13707 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 13708 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 13709 PUSH32(esp, edx); /* 0x36058C78: push edx */ 13710 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 13711 RECOMP_FLAGS_IN(); 13712 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 13713 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 13714 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13715 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13716 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 13717 _flag_k = FK_ADD; 13718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13719 eax = eax - 1; /* 0x36058C87: dec eax */ 13720 _flag_k = FK_DEC; 13721 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 13722 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 13723 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 13724 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 13725 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 13726 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 13727 esp = ebp; /* 0x36058C93: mov esp, ebp */ 13728 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 13729 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 13730 RECOMP_REGS_OUT(); 13731 } 13732 13733 void sub_36058AF7(void) { 13734 int _fpu_cmp = 0; 13735 uint32_t _cf = 0; 13736 int _df = 1; 13737 uint32_t _flag_k = FK_NONE; 13738 uint32_t _flag_a = 0, _flag_b = 0; 13739 uint32_t _itail_tgt = 0; 13740 RECOMP_REGS_LOCALS 13741 RECOMP_ENTER(0x36058AF7u); 13742 13743 goto L_36058AF7; 13744 L_36058A24: 13745 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x36058A24: cmp byte ptr [eax + 0x14], bl */ 13746 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13748 _flag_k = FK_NARROW(FK_CMP, 24); 13749 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A27: jne 0x36058c72 */ 13750 L_36058A2D: 13751 edx = MEM32(eax + 0x4); /* 0x36058A2D: mov edx, dword ptr [eax + 4] */ 13752 ecx = MEM32(edx); /* 0x36058A30: mov ecx, dword ptr [edx] */ 13753 /* cmp eax, ecx */ /* 0x36058A32: cmp eax, ecx */ 13754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13756 _flag_k = FK_CMP; 13757 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AA4; /* 0x36058A34: jne 0x36058aa4 */ 13758 L_36058A36: 13759 ecx = MEM32(edx + 0x8); /* 0x36058A36: mov ecx, dword ptr [edx + 8] */ 13760 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A39: mov dl, byte ptr [ecx + 0x14] */ 13761 /* test LO8(edx), LO8(edx) */ /* 0x36058A3C: test dl, dl */ 13762 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13763 _cf = 0; 13764 _flag_k = FK_NARROW(FK_TEST, 24); 13765 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058A8B; /* 0x36058A3E: jne 0x36058a8b */ 13766 L_36058A40: 13767 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058A40: mov byte ptr [ecx + 0x14], bl */ 13768 ecx = MEM32(eax + 0x4); /* 0x36058A43: mov ecx, dword ptr [eax + 4] */ 13769 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058A46: mov byte ptr [ecx + 0x14], 0 */ 13770 ecx = MEM32(eax + 0x4); /* 0x36058A4A: mov ecx, dword ptr [eax + 4] */ 13771 edx = MEM32(ecx + 0x8); /* 0x36058A4D: mov edx, dword ptr [ecx + 8] */ 13772 esi = MEM32(edx); /* 0x36058A50: mov esi, dword ptr [edx] */ 13773 MEM32(ecx + 0x8) = esi; /* 0x36058A52: mov dword ptr [ecx + 8], esi */ 13774 esi = MEM32(edx); /* 0x36058A55: mov esi, dword ptr [edx] */ 13775 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058A57: cmp esi, dword ptr [edi + 8] */ 13776 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13778 _flag_k = FK_CMP; 13779 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058A5F; /* 0x36058A5A: je 0x36058a5f */ 13780 L_36058A5C: 13781 MEM32(esi + 0x4) = ecx; /* 0x36058A5C: mov dword ptr [esi + 4], ecx */ 13782 L_36058A5F: 13783 esi = MEM32(ecx + 0x4); /* 0x36058A5F: mov esi, dword ptr [ecx + 4] */ 13784 MEM32(edx + 0x4) = esi; /* 0x36058A62: mov dword ptr [edx + 4], esi */ 13785 esi = MEM32(edi + 0x4); /* 0x36058A65: mov esi, dword ptr [edi + 4] */ 13786 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058A68: cmp ecx, dword ptr [esi + 4] */ 13787 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13789 _flag_k = FK_CMP; 13790 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A72; /* 0x36058A6B: jne 0x36058a72 */ 13791 L_36058A6D: 13792 MEM32(esi + 0x4) = edx; /* 0x36058A6D: mov dword ptr [esi + 4], edx */ 13793 goto L_36058A80; /* 0x36058A70: jmp 0x36058a80 */ 13794 L_36058A72: 13795 esi = MEM32(ecx + 0x4); /* 0x36058A72: mov esi, dword ptr [ecx + 4] */ 13796 /* cmp ecx, MEM32(esi) */ /* 0x36058A75: cmp ecx, dword ptr [esi] */ 13797 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13799 _flag_k = FK_CMP; 13800 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A7D; /* 0x36058A77: jne 0x36058a7d */ 13801 L_36058A79: 13802 MEM32(esi) = edx; /* 0x36058A79: mov dword ptr [esi], edx */ 13803 goto L_36058A80; /* 0x36058A7B: jmp 0x36058a80 */ 13804 L_36058A7D: 13805 MEM32(esi + 0x8) = edx; /* 0x36058A7D: mov dword ptr [esi + 8], edx */ 13806 L_36058A80: 13807 MEM32(edx) = ecx; /* 0x36058A80: mov dword ptr [edx], ecx */ 13808 MEM32(ecx + 0x4) = edx; /* 0x36058A82: mov dword ptr [ecx + 4], edx */ 13809 edx = MEM32(eax + 0x4); /* 0x36058A85: mov edx, dword ptr [eax + 4] */ 13810 ecx = MEM32(edx + 0x8); /* 0x36058A88: mov ecx, dword ptr [edx + 8] */ 13811 L_36058A8B: 13812 edx = MEM32(ecx); /* 0x36058A8B: mov edx, dword ptr [ecx] */ 13813 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A8D: cmp byte ptr [edx + 0x14], bl */ 13814 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13816 _flag_k = FK_NARROW(FK_CMP, 24); 13817 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A90: jne 0x36058b26 */ 13818 L_36058A96: 13819 edx = MEM32(ecx + 0x8); /* 0x36058A96: mov edx, dword ptr [ecx + 8] */ 13820 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A99: cmp byte ptr [edx + 0x14], bl */ 13821 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13823 _flag_k = FK_NARROW(FK_CMP, 24); 13824 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A9C: jne 0x36058b26 */ 13825 L_36058AA2: 13826 goto L_36058B0E; /* 0x36058AA2: jmp 0x36058b0e */ 13827 L_36058AA4: 13828 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058AA4: mov dl, byte ptr [ecx + 0x14] */ 13829 /* test LO8(edx), LO8(edx) */ /* 0x36058AA7: test dl, dl */ 13830 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13831 _cf = 0; 13832 _flag_k = FK_NARROW(FK_TEST, 24); 13833 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058AF7; /* 0x36058AA9: jne 0x36058af7 */ 13834 L_36058AAB: 13835 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058AAB: mov byte ptr [ecx + 0x14], bl */ 13836 ecx = MEM32(eax + 0x4); /* 0x36058AAE: mov ecx, dword ptr [eax + 4] */ 13837 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058AB1: mov byte ptr [ecx + 0x14], 0 */ 13838 ecx = MEM32(eax + 0x4); /* 0x36058AB5: mov ecx, dword ptr [eax + 4] */ 13839 edx = MEM32(ecx); /* 0x36058AB8: mov edx, dword ptr [ecx] */ 13840 esi = MEM32(edx + 0x8); /* 0x36058ABA: mov esi, dword ptr [edx + 8] */ 13841 MEM32(ecx) = esi; /* 0x36058ABD: mov dword ptr [ecx], esi */ 13842 esi = MEM32(edx + 0x8); /* 0x36058ABF: mov esi, dword ptr [edx + 8] */ 13843 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058AC2: cmp esi, dword ptr [edi + 8] */ 13844 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13846 _flag_k = FK_CMP; 13847 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058ACA; /* 0x36058AC5: je 0x36058aca */ 13848 L_36058AC7: 13849 MEM32(esi + 0x4) = ecx; /* 0x36058AC7: mov dword ptr [esi + 4], ecx */ 13850 L_36058ACA: 13851 esi = MEM32(ecx + 0x4); /* 0x36058ACA: mov esi, dword ptr [ecx + 4] */ 13852 MEM32(edx + 0x4) = esi; /* 0x36058ACD: mov dword ptr [edx + 4], esi */ 13853 esi = MEM32(edi + 0x4); /* 0x36058AD0: mov esi, dword ptr [edi + 4] */ 13854 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058AD3: cmp ecx, dword ptr [esi + 4] */ 13855 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13857 _flag_k = FK_CMP; 13858 if (CMP_NE(_flag_a, _flag_b)) goto L_36058ADD; /* 0x36058AD6: jne 0x36058add */ 13859 L_36058AD8: 13860 MEM32(esi + 0x4) = edx; /* 0x36058AD8: mov dword ptr [esi + 4], edx */ 13861 goto L_36058AEC; /* 0x36058ADB: jmp 0x36058aec */ 13862 L_36058ADD: 13863 esi = MEM32(ecx + 0x4); /* 0x36058ADD: mov esi, dword ptr [ecx + 4] */ 13864 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058AE0: cmp ecx, dword ptr [esi + 8] */ 13865 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13867 _flag_k = FK_CMP; 13868 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AEA; /* 0x36058AE3: jne 0x36058aea */ 13869 L_36058AE5: 13870 MEM32(esi + 0x8) = edx; /* 0x36058AE5: mov dword ptr [esi + 8], edx */ 13871 goto L_36058AEC; /* 0x36058AE8: jmp 0x36058aec */ 13872 L_36058AEA: 13873 MEM32(esi) = edx; /* 0x36058AEA: mov dword ptr [esi], edx */ 13874 L_36058AEC: 13875 MEM32(edx + 0x8) = ecx; /* 0x36058AEC: mov dword ptr [edx + 8], ecx */ 13876 MEM32(ecx + 0x4) = edx; /* 0x36058AEF: mov dword ptr [ecx + 4], edx */ 13877 edx = MEM32(eax + 0x4); /* 0x36058AF2: mov edx, dword ptr [eax + 4] */ 13878 ecx = MEM32(edx); /* 0x36058AF5: mov ecx, dword ptr [edx] */ 13879 L_36058AF7: 13880 edx = MEM32(ecx + 0x8); /* 0x36058AF7: mov edx, dword ptr [ecx + 8] */ 13881 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058AFA: cmp byte ptr [edx + 0x14], bl */ 13882 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13884 _flag_k = FK_NARROW(FK_CMP, 24); 13885 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058AFD: jne 0x36058bd3 */ 13886 L_36058B03: 13887 edx = MEM32(ecx); /* 0x36058B03: mov edx, dword ptr [ecx] */ 13888 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B05: cmp byte ptr [edx + 0x14], bl */ 13889 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13891 _flag_k = FK_NARROW(FK_CMP, 24); 13892 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058B08: jne 0x36058bd3 */ 13893 L_36058B0E: 13894 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B0E: mov byte ptr [ecx + 0x14], 0 */ 13895 ecx = MEM32(edi + 0x4); /* 0x36058B12: mov ecx, dword ptr [edi + 4] */ 13896 eax = MEM32(eax + 0x4); /* 0x36058B15: mov eax, dword ptr [eax + 4] */ 13897 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36058B18: cmp eax, dword ptr [ecx + 4] */ 13898 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13900 _flag_k = FK_CMP; 13901 RECOMP_BACKEDGE(); 13902 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A24; /* 0x36058B1B: jne 0x36058a24 */ 13903 L_36058B21: 13904 goto L_36058C72; /* 0x36058B21: jmp 0x36058c72 */ 13905 L_36058B26: 13906 edx = MEM32(ecx + 0x8); /* 0x36058B26: mov edx, dword ptr [ecx + 8] */ 13907 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B29: cmp byte ptr [edx + 0x14], bl */ 13908 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 13909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13910 _flag_k = FK_NARROW(FK_CMP, 24); 13911 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B77; /* 0x36058B2C: jne 0x36058b77 */ 13912 L_36058B2E: 13913 edx = MEM32(ecx); /* 0x36058B2E: mov edx, dword ptr [ecx] */ 13914 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B30: mov byte ptr [edx + 0x14], bl */ 13915 edx = MEM32(ecx); /* 0x36058B33: mov edx, dword ptr [ecx] */ 13916 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B35: mov byte ptr [ecx + 0x14], 0 */ 13917 esi = MEM32(edx + 0x8); /* 0x36058B39: mov esi, dword ptr [edx + 8] */ 13918 MEM32(ecx) = esi; /* 0x36058B3C: mov dword ptr [ecx], esi */ 13919 esi = MEM32(edx + 0x8); /* 0x36058B3E: mov esi, dword ptr [edx + 8] */ 13920 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B41: cmp esi, dword ptr [edi + 8] */ 13921 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13923 _flag_k = FK_CMP; 13924 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058B49; /* 0x36058B44: je 0x36058b49 */ 13925 L_36058B46: 13926 MEM32(esi + 0x4) = ecx; /* 0x36058B46: mov dword ptr [esi + 4], ecx */ 13927 L_36058B49: 13928 esi = MEM32(ecx + 0x4); /* 0x36058B49: mov esi, dword ptr [ecx + 4] */ 13929 MEM32(edx + 0x4) = esi; /* 0x36058B4C: mov dword ptr [edx + 4], esi */ 13930 esi = MEM32(edi + 0x4); /* 0x36058B4F: mov esi, dword ptr [edi + 4] */ 13931 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058B52: cmp ecx, dword ptr [esi + 4] */ 13932 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13934 _flag_k = FK_CMP; 13935 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B5C; /* 0x36058B55: jne 0x36058b5c */ 13936 L_36058B57: 13937 MEM32(esi + 0x4) = edx; /* 0x36058B57: mov dword ptr [esi + 4], edx */ 13938 goto L_36058B6B; /* 0x36058B5A: jmp 0x36058b6b */ 13939 L_36058B5C: 13940 esi = MEM32(ecx + 0x4); /* 0x36058B5C: mov esi, dword ptr [ecx + 4] */ 13941 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058B5F: cmp ecx, dword ptr [esi + 8] */ 13942 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13944 _flag_k = FK_CMP; 13945 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B69; /* 0x36058B62: jne 0x36058b69 */ 13946 L_36058B64: 13947 MEM32(esi + 0x8) = edx; /* 0x36058B64: mov dword ptr [esi + 8], edx */ 13948 goto L_36058B6B; /* 0x36058B67: jmp 0x36058b6b */ 13949 L_36058B69: 13950 MEM32(esi) = edx; /* 0x36058B69: mov dword ptr [esi], edx */ 13951 L_36058B6B: 13952 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 13953 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 13954 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 13955 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 13956 L_36058B77: 13957 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 13958 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 13959 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 13960 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 13961 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 13962 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 13963 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 13964 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 13965 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 13966 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 13967 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 13968 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 13969 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 13970 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13972 _flag_k = FK_CMP; 13973 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 13974 L_36058B9E: 13975 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 13976 L_36058BA1: 13977 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 13978 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 13979 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 13980 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 13981 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 13982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13983 _flag_k = FK_CMP; 13984 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 13985 L_36058BAF: 13986 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 13987 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 13988 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 13989 L_36058BB9: 13990 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 13991 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 13992 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 13993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13994 _flag_k = FK_CMP; 13995 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 13996 L_36058BC0: 13997 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 13998 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 13999 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 14000 L_36058BC9: 14001 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 14002 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 14003 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 14004 L_36058BD3: 14005 edx = MEM32(ecx); /* 0x36058BD3: mov edx, dword ptr [ecx] */ 14006 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058BD5: cmp byte ptr [edx + 0x14], bl */ 14007 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14009 _flag_k = FK_NARROW(FK_CMP, 24); 14010 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C21; /* 0x36058BD8: jne 0x36058c21 */ 14011 L_36058BDA: 14012 edx = MEM32(ecx + 0x8); /* 0x36058BDA: mov edx, dword ptr [ecx + 8] */ 14013 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058BDD: mov byte ptr [edx + 0x14], bl */ 14014 edx = MEM32(ecx + 0x8); /* 0x36058BE0: mov edx, dword ptr [ecx + 8] */ 14015 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058BE3: mov byte ptr [ecx + 0x14], 0 */ 14016 esi = MEM32(edx); /* 0x36058BE7: mov esi, dword ptr [edx] */ 14017 MEM32(ecx + 0x8) = esi; /* 0x36058BE9: mov dword ptr [ecx + 8], esi */ 14018 esi = MEM32(edx); /* 0x36058BEC: mov esi, dword ptr [edx] */ 14019 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058BEE: cmp esi, dword ptr [edi + 8] */ 14020 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14022 _flag_k = FK_CMP; 14023 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BF6; /* 0x36058BF1: je 0x36058bf6 */ 14024 L_36058BF3: 14025 MEM32(esi + 0x4) = ecx; /* 0x36058BF3: mov dword ptr [esi + 4], ecx */ 14026 L_36058BF6: 14027 esi = MEM32(ecx + 0x4); /* 0x36058BF6: mov esi, dword ptr [ecx + 4] */ 14028 MEM32(edx + 0x4) = esi; /* 0x36058BF9: mov dword ptr [edx + 4], esi */ 14029 esi = MEM32(edi + 0x4); /* 0x36058BFC: mov esi, dword ptr [edi + 4] */ 14030 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BFF: cmp ecx, dword ptr [esi + 4] */ 14031 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14033 _flag_k = FK_CMP; 14034 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C09; /* 0x36058C02: jne 0x36058c09 */ 14035 L_36058C04: 14036 MEM32(esi + 0x4) = edx; /* 0x36058C04: mov dword ptr [esi + 4], edx */ 14037 goto L_36058C17; /* 0x36058C07: jmp 0x36058c17 */ 14038 L_36058C09: 14039 esi = MEM32(ecx + 0x4); /* 0x36058C09: mov esi, dword ptr [ecx + 4] */ 14040 /* cmp ecx, MEM32(esi) */ /* 0x36058C0C: cmp ecx, dword ptr [esi] */ 14041 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14043 _flag_k = FK_CMP; 14044 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C14; /* 0x36058C0E: jne 0x36058c14 */ 14045 L_36058C10: 14046 MEM32(esi) = edx; /* 0x36058C10: mov dword ptr [esi], edx */ 14047 goto L_36058C17; /* 0x36058C12: jmp 0x36058c17 */ 14048 L_36058C14: 14049 MEM32(esi + 0x8) = edx; /* 0x36058C14: mov dword ptr [esi + 8], edx */ 14050 L_36058C17: 14051 MEM32(edx) = ecx; /* 0x36058C17: mov dword ptr [edx], ecx */ 14052 MEM32(ecx + 0x4) = edx; /* 0x36058C19: mov dword ptr [ecx + 4], edx */ 14053 ecx = MEM32(eax + 0x4); /* 0x36058C1C: mov ecx, dword ptr [eax + 4] */ 14054 ecx = MEM32(ecx); /* 0x36058C1F: mov ecx, dword ptr [ecx] */ 14055 L_36058C21: 14056 edx = MEM32(eax + 0x4); /* 0x36058C21: mov edx, dword ptr [eax + 4] */ 14057 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058C24: mov dl, byte ptr [edx + 0x14] */ 14058 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058C27: mov byte ptr [ecx + 0x14], dl */ 14059 edx = MEM32(eax + 0x4); /* 0x36058C2A: mov edx, dword ptr [eax + 4] */ 14060 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C2D: mov byte ptr [edx + 0x14], bl */ 14061 ecx = MEM32(ecx); /* 0x36058C30: mov ecx, dword ptr [ecx] */ 14062 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C32: mov byte ptr [ecx + 0x14], bl */ 14063 ecx = MEM32(eax + 0x4); /* 0x36058C35: mov ecx, dword ptr [eax + 4] */ 14064 edx = MEM32(ecx); /* 0x36058C38: mov edx, dword ptr [ecx] */ 14065 esi = MEM32(edx + 0x8); /* 0x36058C3A: mov esi, dword ptr [edx + 8] */ 14066 MEM32(ecx) = esi; /* 0x36058C3D: mov dword ptr [ecx], esi */ 14067 esi = MEM32(edx + 0x8); /* 0x36058C3F: mov esi, dword ptr [edx + 8] */ 14068 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058C42: cmp esi, dword ptr [edi + 8] */ 14069 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14071 _flag_k = FK_CMP; 14072 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C4A; /* 0x36058C45: je 0x36058c4a */ 14073 L_36058C47: 14074 MEM32(esi + 0x4) = ecx; /* 0x36058C47: mov dword ptr [esi + 4], ecx */ 14075 L_36058C4A: 14076 esi = MEM32(ecx + 0x4); /* 0x36058C4A: mov esi, dword ptr [ecx + 4] */ 14077 MEM32(edx + 0x4) = esi; /* 0x36058C4D: mov dword ptr [edx + 4], esi */ 14078 esi = MEM32(edi + 0x4); /* 0x36058C50: mov esi, dword ptr [edi + 4] */ 14079 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058C53: cmp ecx, dword ptr [esi + 4] */ 14080 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14081 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14082 _flag_k = FK_CMP; 14083 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C5D; /* 0x36058C56: jne 0x36058c5d */ 14084 L_36058C58: 14085 MEM32(esi + 0x4) = edx; /* 0x36058C58: mov dword ptr [esi + 4], edx */ 14086 goto L_36058C6C; /* 0x36058C5B: jmp 0x36058c6c */ 14087 L_36058C5D: 14088 esi = MEM32(ecx + 0x4); /* 0x36058C5D: mov esi, dword ptr [ecx + 4] */ 14089 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058C60: cmp ecx, dword ptr [esi + 8] */ 14090 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14092 _flag_k = FK_CMP; 14093 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C6A; /* 0x36058C63: jne 0x36058c6a */ 14094 L_36058C65: 14095 MEM32(esi + 0x8) = edx; /* 0x36058C65: mov dword ptr [esi + 8], edx */ 14096 goto L_36058C6C; /* 0x36058C68: jmp 0x36058c6c */ 14097 L_36058C6A: 14098 MEM32(esi) = edx; /* 0x36058C6A: mov dword ptr [esi], edx */ 14099 L_36058C6C: 14100 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 14101 L_36058C6F: 14102 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 14103 L_36058C72: 14104 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 14105 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 14106 PUSH32(esp, edx); /* 0x36058C78: push edx */ 14107 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 14108 RECOMP_FLAGS_IN(); 14109 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 14110 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 14111 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14112 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14113 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 14114 _flag_k = FK_ADD; 14115 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14116 eax = eax - 1; /* 0x36058C87: dec eax */ 14117 _flag_k = FK_DEC; 14118 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 14119 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 14120 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 14121 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 14122 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 14123 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 14124 esp = ebp; /* 0x36058C93: mov esp, ebp */ 14125 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 14126 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 14127 RECOMP_REGS_OUT(); 14128 } 14129 14130 void sub_36058B0E(void) { 14131 int _fpu_cmp = 0; 14132 uint32_t _cf = 0; 14133 int _df = 1; 14134 uint32_t _flag_k = FK_NONE; 14135 uint32_t _flag_a = 0, _flag_b = 0; 14136 uint32_t _itail_tgt = 0; 14137 RECOMP_REGS_LOCALS 14138 RECOMP_ENTER(0x36058B0Eu); 14139 14140 goto L_36058B0E; 14141 L_36058A24: 14142 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x36058A24: cmp byte ptr [eax + 0x14], bl */ 14143 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14145 _flag_k = FK_NARROW(FK_CMP, 24); 14146 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C72; /* 0x36058A27: jne 0x36058c72 */ 14147 L_36058A2D: 14148 edx = MEM32(eax + 0x4); /* 0x36058A2D: mov edx, dword ptr [eax + 4] */ 14149 ecx = MEM32(edx); /* 0x36058A30: mov ecx, dword ptr [edx] */ 14150 /* cmp eax, ecx */ /* 0x36058A32: cmp eax, ecx */ 14151 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 14152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14153 _flag_k = FK_CMP; 14154 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AA4; /* 0x36058A34: jne 0x36058aa4 */ 14155 L_36058A36: 14156 ecx = MEM32(edx + 0x8); /* 0x36058A36: mov ecx, dword ptr [edx + 8] */ 14157 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058A39: mov dl, byte ptr [ecx + 0x14] */ 14158 /* test LO8(edx), LO8(edx) */ /* 0x36058A3C: test dl, dl */ 14159 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14160 _cf = 0; 14161 _flag_k = FK_NARROW(FK_TEST, 24); 14162 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058A8B; /* 0x36058A3E: jne 0x36058a8b */ 14163 L_36058A40: 14164 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058A40: mov byte ptr [ecx + 0x14], bl */ 14165 ecx = MEM32(eax + 0x4); /* 0x36058A43: mov ecx, dword ptr [eax + 4] */ 14166 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058A46: mov byte ptr [ecx + 0x14], 0 */ 14167 ecx = MEM32(eax + 0x4); /* 0x36058A4A: mov ecx, dword ptr [eax + 4] */ 14168 edx = MEM32(ecx + 0x8); /* 0x36058A4D: mov edx, dword ptr [ecx + 8] */ 14169 esi = MEM32(edx); /* 0x36058A50: mov esi, dword ptr [edx] */ 14170 MEM32(ecx + 0x8) = esi; /* 0x36058A52: mov dword ptr [ecx + 8], esi */ 14171 esi = MEM32(edx); /* 0x36058A55: mov esi, dword ptr [edx] */ 14172 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058A57: cmp esi, dword ptr [edi + 8] */ 14173 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14175 _flag_k = FK_CMP; 14176 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058A5F; /* 0x36058A5A: je 0x36058a5f */ 14177 L_36058A5C: 14178 MEM32(esi + 0x4) = ecx; /* 0x36058A5C: mov dword ptr [esi + 4], ecx */ 14179 L_36058A5F: 14180 esi = MEM32(ecx + 0x4); /* 0x36058A5F: mov esi, dword ptr [ecx + 4] */ 14181 MEM32(edx + 0x4) = esi; /* 0x36058A62: mov dword ptr [edx + 4], esi */ 14182 esi = MEM32(edi + 0x4); /* 0x36058A65: mov esi, dword ptr [edi + 4] */ 14183 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058A68: cmp ecx, dword ptr [esi + 4] */ 14184 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14186 _flag_k = FK_CMP; 14187 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A72; /* 0x36058A6B: jne 0x36058a72 */ 14188 L_36058A6D: 14189 MEM32(esi + 0x4) = edx; /* 0x36058A6D: mov dword ptr [esi + 4], edx */ 14190 goto L_36058A80; /* 0x36058A70: jmp 0x36058a80 */ 14191 L_36058A72: 14192 esi = MEM32(ecx + 0x4); /* 0x36058A72: mov esi, dword ptr [ecx + 4] */ 14193 /* cmp ecx, MEM32(esi) */ /* 0x36058A75: cmp ecx, dword ptr [esi] */ 14194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14196 _flag_k = FK_CMP; 14197 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A7D; /* 0x36058A77: jne 0x36058a7d */ 14198 L_36058A79: 14199 MEM32(esi) = edx; /* 0x36058A79: mov dword ptr [esi], edx */ 14200 goto L_36058A80; /* 0x36058A7B: jmp 0x36058a80 */ 14201 L_36058A7D: 14202 MEM32(esi + 0x8) = edx; /* 0x36058A7D: mov dword ptr [esi + 8], edx */ 14203 L_36058A80: 14204 MEM32(edx) = ecx; /* 0x36058A80: mov dword ptr [edx], ecx */ 14205 MEM32(ecx + 0x4) = edx; /* 0x36058A82: mov dword ptr [ecx + 4], edx */ 14206 edx = MEM32(eax + 0x4); /* 0x36058A85: mov edx, dword ptr [eax + 4] */ 14207 ecx = MEM32(edx + 0x8); /* 0x36058A88: mov ecx, dword ptr [edx + 8] */ 14208 L_36058A8B: 14209 edx = MEM32(ecx); /* 0x36058A8B: mov edx, dword ptr [ecx] */ 14210 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A8D: cmp byte ptr [edx + 0x14], bl */ 14211 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14213 _flag_k = FK_NARROW(FK_CMP, 24); 14214 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A90: jne 0x36058b26 */ 14215 L_36058A96: 14216 edx = MEM32(ecx + 0x8); /* 0x36058A96: mov edx, dword ptr [ecx + 8] */ 14217 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058A99: cmp byte ptr [edx + 0x14], bl */ 14218 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14220 _flag_k = FK_NARROW(FK_CMP, 24); 14221 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B26; /* 0x36058A9C: jne 0x36058b26 */ 14222 L_36058AA2: 14223 goto L_36058B0E; /* 0x36058AA2: jmp 0x36058b0e */ 14224 L_36058AA4: 14225 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36058AA4: mov dl, byte ptr [ecx + 0x14] */ 14226 /* test LO8(edx), LO8(edx) */ /* 0x36058AA7: test dl, dl */ 14227 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14228 _cf = 0; 14229 _flag_k = FK_NARROW(FK_TEST, 24); 14230 if (TEST_NZ(_flag_a, _flag_b)) goto L_36058AF7; /* 0x36058AA9: jne 0x36058af7 */ 14231 L_36058AAB: 14232 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058AAB: mov byte ptr [ecx + 0x14], bl */ 14233 ecx = MEM32(eax + 0x4); /* 0x36058AAE: mov ecx, dword ptr [eax + 4] */ 14234 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058AB1: mov byte ptr [ecx + 0x14], 0 */ 14235 ecx = MEM32(eax + 0x4); /* 0x36058AB5: mov ecx, dword ptr [eax + 4] */ 14236 edx = MEM32(ecx); /* 0x36058AB8: mov edx, dword ptr [ecx] */ 14237 esi = MEM32(edx + 0x8); /* 0x36058ABA: mov esi, dword ptr [edx + 8] */ 14238 MEM32(ecx) = esi; /* 0x36058ABD: mov dword ptr [ecx], esi */ 14239 esi = MEM32(edx + 0x8); /* 0x36058ABF: mov esi, dword ptr [edx + 8] */ 14240 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058AC2: cmp esi, dword ptr [edi + 8] */ 14241 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14243 _flag_k = FK_CMP; 14244 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058ACA; /* 0x36058AC5: je 0x36058aca */ 14245 L_36058AC7: 14246 MEM32(esi + 0x4) = ecx; /* 0x36058AC7: mov dword ptr [esi + 4], ecx */ 14247 L_36058ACA: 14248 esi = MEM32(ecx + 0x4); /* 0x36058ACA: mov esi, dword ptr [ecx + 4] */ 14249 MEM32(edx + 0x4) = esi; /* 0x36058ACD: mov dword ptr [edx + 4], esi */ 14250 esi = MEM32(edi + 0x4); /* 0x36058AD0: mov esi, dword ptr [edi + 4] */ 14251 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058AD3: cmp ecx, dword ptr [esi + 4] */ 14252 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14254 _flag_k = FK_CMP; 14255 if (CMP_NE(_flag_a, _flag_b)) goto L_36058ADD; /* 0x36058AD6: jne 0x36058add */ 14256 L_36058AD8: 14257 MEM32(esi + 0x4) = edx; /* 0x36058AD8: mov dword ptr [esi + 4], edx */ 14258 goto L_36058AEC; /* 0x36058ADB: jmp 0x36058aec */ 14259 L_36058ADD: 14260 esi = MEM32(ecx + 0x4); /* 0x36058ADD: mov esi, dword ptr [ecx + 4] */ 14261 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058AE0: cmp ecx, dword ptr [esi + 8] */ 14262 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14264 _flag_k = FK_CMP; 14265 if (CMP_NE(_flag_a, _flag_b)) goto L_36058AEA; /* 0x36058AE3: jne 0x36058aea */ 14266 L_36058AE5: 14267 MEM32(esi + 0x8) = edx; /* 0x36058AE5: mov dword ptr [esi + 8], edx */ 14268 goto L_36058AEC; /* 0x36058AE8: jmp 0x36058aec */ 14269 L_36058AEA: 14270 MEM32(esi) = edx; /* 0x36058AEA: mov dword ptr [esi], edx */ 14271 L_36058AEC: 14272 MEM32(edx + 0x8) = ecx; /* 0x36058AEC: mov dword ptr [edx + 8], ecx */ 14273 MEM32(ecx + 0x4) = edx; /* 0x36058AEF: mov dword ptr [ecx + 4], edx */ 14274 edx = MEM32(eax + 0x4); /* 0x36058AF2: mov edx, dword ptr [eax + 4] */ 14275 ecx = MEM32(edx); /* 0x36058AF5: mov ecx, dword ptr [edx] */ 14276 L_36058AF7: 14277 edx = MEM32(ecx + 0x8); /* 0x36058AF7: mov edx, dword ptr [ecx + 8] */ 14278 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058AFA: cmp byte ptr [edx + 0x14], bl */ 14279 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14281 _flag_k = FK_NARROW(FK_CMP, 24); 14282 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058AFD: jne 0x36058bd3 */ 14283 L_36058B03: 14284 edx = MEM32(ecx); /* 0x36058B03: mov edx, dword ptr [ecx] */ 14285 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B05: cmp byte ptr [edx + 0x14], bl */ 14286 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14288 _flag_k = FK_NARROW(FK_CMP, 24); 14289 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BD3; /* 0x36058B08: jne 0x36058bd3 */ 14290 L_36058B0E: 14291 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B0E: mov byte ptr [ecx + 0x14], 0 */ 14292 ecx = MEM32(edi + 0x4); /* 0x36058B12: mov ecx, dword ptr [edi + 4] */ 14293 eax = MEM32(eax + 0x4); /* 0x36058B15: mov eax, dword ptr [eax + 4] */ 14294 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36058B18: cmp eax, dword ptr [ecx + 4] */ 14295 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 14296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14297 _flag_k = FK_CMP; 14298 RECOMP_BACKEDGE(); 14299 if (CMP_NE(_flag_a, _flag_b)) goto L_36058A24; /* 0x36058B1B: jne 0x36058a24 */ 14300 L_36058B21: 14301 goto L_36058C72; /* 0x36058B21: jmp 0x36058c72 */ 14302 L_36058B26: 14303 edx = MEM32(ecx + 0x8); /* 0x36058B26: mov edx, dword ptr [ecx + 8] */ 14304 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B29: cmp byte ptr [edx + 0x14], bl */ 14305 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14307 _flag_k = FK_NARROW(FK_CMP, 24); 14308 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B77; /* 0x36058B2C: jne 0x36058b77 */ 14309 L_36058B2E: 14310 edx = MEM32(ecx); /* 0x36058B2E: mov edx, dword ptr [ecx] */ 14311 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B30: mov byte ptr [edx + 0x14], bl */ 14312 edx = MEM32(ecx); /* 0x36058B33: mov edx, dword ptr [ecx] */ 14313 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B35: mov byte ptr [ecx + 0x14], 0 */ 14314 esi = MEM32(edx + 0x8); /* 0x36058B39: mov esi, dword ptr [edx + 8] */ 14315 MEM32(ecx) = esi; /* 0x36058B3C: mov dword ptr [ecx], esi */ 14316 esi = MEM32(edx + 0x8); /* 0x36058B3E: mov esi, dword ptr [edx + 8] */ 14317 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B41: cmp esi, dword ptr [edi + 8] */ 14318 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14320 _flag_k = FK_CMP; 14321 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058B49; /* 0x36058B44: je 0x36058b49 */ 14322 L_36058B46: 14323 MEM32(esi + 0x4) = ecx; /* 0x36058B46: mov dword ptr [esi + 4], ecx */ 14324 L_36058B49: 14325 esi = MEM32(ecx + 0x4); /* 0x36058B49: mov esi, dword ptr [ecx + 4] */ 14326 MEM32(edx + 0x4) = esi; /* 0x36058B4C: mov dword ptr [edx + 4], esi */ 14327 esi = MEM32(edi + 0x4); /* 0x36058B4F: mov esi, dword ptr [edi + 4] */ 14328 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058B52: cmp ecx, dword ptr [esi + 4] */ 14329 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14331 _flag_k = FK_CMP; 14332 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B5C; /* 0x36058B55: jne 0x36058b5c */ 14333 L_36058B57: 14334 MEM32(esi + 0x4) = edx; /* 0x36058B57: mov dword ptr [esi + 4], edx */ 14335 goto L_36058B6B; /* 0x36058B5A: jmp 0x36058b6b */ 14336 L_36058B5C: 14337 esi = MEM32(ecx + 0x4); /* 0x36058B5C: mov esi, dword ptr [ecx + 4] */ 14338 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058B5F: cmp ecx, dword ptr [esi + 8] */ 14339 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14341 _flag_k = FK_CMP; 14342 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B69; /* 0x36058B62: jne 0x36058b69 */ 14343 L_36058B64: 14344 MEM32(esi + 0x8) = edx; /* 0x36058B64: mov dword ptr [esi + 8], edx */ 14345 goto L_36058B6B; /* 0x36058B67: jmp 0x36058b6b */ 14346 L_36058B69: 14347 MEM32(esi) = edx; /* 0x36058B69: mov dword ptr [esi], edx */ 14348 L_36058B6B: 14349 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 14350 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 14351 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 14352 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 14353 L_36058B77: 14354 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 14355 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 14356 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 14357 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 14358 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 14359 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 14360 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 14361 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 14362 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 14363 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 14364 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 14365 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 14366 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 14367 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14369 _flag_k = FK_CMP; 14370 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 14371 L_36058B9E: 14372 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 14373 L_36058BA1: 14374 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 14375 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 14376 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 14377 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 14378 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14380 _flag_k = FK_CMP; 14381 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 14382 L_36058BAF: 14383 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 14384 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 14385 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 14386 L_36058BB9: 14387 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 14388 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 14389 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14391 _flag_k = FK_CMP; 14392 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 14393 L_36058BC0: 14394 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 14395 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 14396 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 14397 L_36058BC9: 14398 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 14399 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 14400 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 14401 L_36058BD3: 14402 edx = MEM32(ecx); /* 0x36058BD3: mov edx, dword ptr [ecx] */ 14403 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058BD5: cmp byte ptr [edx + 0x14], bl */ 14404 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14406 _flag_k = FK_NARROW(FK_CMP, 24); 14407 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C21; /* 0x36058BD8: jne 0x36058c21 */ 14408 L_36058BDA: 14409 edx = MEM32(ecx + 0x8); /* 0x36058BDA: mov edx, dword ptr [ecx + 8] */ 14410 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058BDD: mov byte ptr [edx + 0x14], bl */ 14411 edx = MEM32(ecx + 0x8); /* 0x36058BE0: mov edx, dword ptr [ecx + 8] */ 14412 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058BE3: mov byte ptr [ecx + 0x14], 0 */ 14413 esi = MEM32(edx); /* 0x36058BE7: mov esi, dword ptr [edx] */ 14414 MEM32(ecx + 0x8) = esi; /* 0x36058BE9: mov dword ptr [ecx + 8], esi */ 14415 esi = MEM32(edx); /* 0x36058BEC: mov esi, dword ptr [edx] */ 14416 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058BEE: cmp esi, dword ptr [edi + 8] */ 14417 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14419 _flag_k = FK_CMP; 14420 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BF6; /* 0x36058BF1: je 0x36058bf6 */ 14421 L_36058BF3: 14422 MEM32(esi + 0x4) = ecx; /* 0x36058BF3: mov dword ptr [esi + 4], ecx */ 14423 L_36058BF6: 14424 esi = MEM32(ecx + 0x4); /* 0x36058BF6: mov esi, dword ptr [ecx + 4] */ 14425 MEM32(edx + 0x4) = esi; /* 0x36058BF9: mov dword ptr [edx + 4], esi */ 14426 esi = MEM32(edi + 0x4); /* 0x36058BFC: mov esi, dword ptr [edi + 4] */ 14427 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BFF: cmp ecx, dword ptr [esi + 4] */ 14428 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14430 _flag_k = FK_CMP; 14431 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C09; /* 0x36058C02: jne 0x36058c09 */ 14432 L_36058C04: 14433 MEM32(esi + 0x4) = edx; /* 0x36058C04: mov dword ptr [esi + 4], edx */ 14434 goto L_36058C17; /* 0x36058C07: jmp 0x36058c17 */ 14435 L_36058C09: 14436 esi = MEM32(ecx + 0x4); /* 0x36058C09: mov esi, dword ptr [ecx + 4] */ 14437 /* cmp ecx, MEM32(esi) */ /* 0x36058C0C: cmp ecx, dword ptr [esi] */ 14438 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14439 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14440 _flag_k = FK_CMP; 14441 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C14; /* 0x36058C0E: jne 0x36058c14 */ 14442 L_36058C10: 14443 MEM32(esi) = edx; /* 0x36058C10: mov dword ptr [esi], edx */ 14444 goto L_36058C17; /* 0x36058C12: jmp 0x36058c17 */ 14445 L_36058C14: 14446 MEM32(esi + 0x8) = edx; /* 0x36058C14: mov dword ptr [esi + 8], edx */ 14447 L_36058C17: 14448 MEM32(edx) = ecx; /* 0x36058C17: mov dword ptr [edx], ecx */ 14449 MEM32(ecx + 0x4) = edx; /* 0x36058C19: mov dword ptr [ecx + 4], edx */ 14450 ecx = MEM32(eax + 0x4); /* 0x36058C1C: mov ecx, dword ptr [eax + 4] */ 14451 ecx = MEM32(ecx); /* 0x36058C1F: mov ecx, dword ptr [ecx] */ 14452 L_36058C21: 14453 edx = MEM32(eax + 0x4); /* 0x36058C21: mov edx, dword ptr [eax + 4] */ 14454 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058C24: mov dl, byte ptr [edx + 0x14] */ 14455 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058C27: mov byte ptr [ecx + 0x14], dl */ 14456 edx = MEM32(eax + 0x4); /* 0x36058C2A: mov edx, dword ptr [eax + 4] */ 14457 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C2D: mov byte ptr [edx + 0x14], bl */ 14458 ecx = MEM32(ecx); /* 0x36058C30: mov ecx, dword ptr [ecx] */ 14459 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C32: mov byte ptr [ecx + 0x14], bl */ 14460 ecx = MEM32(eax + 0x4); /* 0x36058C35: mov ecx, dword ptr [eax + 4] */ 14461 edx = MEM32(ecx); /* 0x36058C38: mov edx, dword ptr [ecx] */ 14462 esi = MEM32(edx + 0x8); /* 0x36058C3A: mov esi, dword ptr [edx + 8] */ 14463 MEM32(ecx) = esi; /* 0x36058C3D: mov dword ptr [ecx], esi */ 14464 esi = MEM32(edx + 0x8); /* 0x36058C3F: mov esi, dword ptr [edx + 8] */ 14465 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058C42: cmp esi, dword ptr [edi + 8] */ 14466 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14468 _flag_k = FK_CMP; 14469 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C4A; /* 0x36058C45: je 0x36058c4a */ 14470 L_36058C47: 14471 MEM32(esi + 0x4) = ecx; /* 0x36058C47: mov dword ptr [esi + 4], ecx */ 14472 L_36058C4A: 14473 esi = MEM32(ecx + 0x4); /* 0x36058C4A: mov esi, dword ptr [ecx + 4] */ 14474 MEM32(edx + 0x4) = esi; /* 0x36058C4D: mov dword ptr [edx + 4], esi */ 14475 esi = MEM32(edi + 0x4); /* 0x36058C50: mov esi, dword ptr [edi + 4] */ 14476 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058C53: cmp ecx, dword ptr [esi + 4] */ 14477 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14479 _flag_k = FK_CMP; 14480 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C5D; /* 0x36058C56: jne 0x36058c5d */ 14481 L_36058C58: 14482 MEM32(esi + 0x4) = edx; /* 0x36058C58: mov dword ptr [esi + 4], edx */ 14483 goto L_36058C6C; /* 0x36058C5B: jmp 0x36058c6c */ 14484 L_36058C5D: 14485 esi = MEM32(ecx + 0x4); /* 0x36058C5D: mov esi, dword ptr [ecx + 4] */ 14486 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058C60: cmp ecx, dword ptr [esi + 8] */ 14487 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14489 _flag_k = FK_CMP; 14490 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C6A; /* 0x36058C63: jne 0x36058c6a */ 14491 L_36058C65: 14492 MEM32(esi + 0x8) = edx; /* 0x36058C65: mov dword ptr [esi + 8], edx */ 14493 goto L_36058C6C; /* 0x36058C68: jmp 0x36058c6c */ 14494 L_36058C6A: 14495 MEM32(esi) = edx; /* 0x36058C6A: mov dword ptr [esi], edx */ 14496 L_36058C6C: 14497 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 14498 L_36058C6F: 14499 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 14500 L_36058C72: 14501 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 14502 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 14503 PUSH32(esp, edx); /* 0x36058C78: push edx */ 14504 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 14505 RECOMP_FLAGS_IN(); 14506 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 14507 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 14508 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14509 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14510 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 14511 _flag_k = FK_ADD; 14512 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14513 eax = eax - 1; /* 0x36058C87: dec eax */ 14514 _flag_k = FK_DEC; 14515 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 14516 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 14517 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 14518 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 14519 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 14520 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 14521 esp = ebp; /* 0x36058C93: mov esp, ebp */ 14522 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 14523 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 14524 RECOMP_REGS_OUT(); 14525 } 14526 14527 void sub_36058B26(void) { 14528 int _fpu_cmp = 0; 14529 uint32_t _cf = 0; 14530 int _df = 1; 14531 uint32_t _flag_k = FK_NONE; 14532 uint32_t _flag_a = 0, _flag_b = 0; 14533 uint32_t _itail_tgt = 0; 14534 RECOMP_REGS_LOCALS 14535 RECOMP_ENTER(0x36058B26u); 14536 14537 L_36058B26: 14538 edx = MEM32(ecx + 0x8); /* 0x36058B26: mov edx, dword ptr [ecx + 8] */ 14539 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x36058B29: cmp byte ptr [edx + 0x14], bl */ 14540 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 14541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14542 _flag_k = FK_NARROW(FK_CMP, 24); 14543 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B77; /* 0x36058B2C: jne 0x36058b77 */ 14544 L_36058B2E: 14545 edx = MEM32(ecx); /* 0x36058B2E: mov edx, dword ptr [ecx] */ 14546 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B30: mov byte ptr [edx + 0x14], bl */ 14547 edx = MEM32(ecx); /* 0x36058B33: mov edx, dword ptr [ecx] */ 14548 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36058B35: mov byte ptr [ecx + 0x14], 0 */ 14549 esi = MEM32(edx + 0x8); /* 0x36058B39: mov esi, dword ptr [edx + 8] */ 14550 MEM32(ecx) = esi; /* 0x36058B3C: mov dword ptr [ecx], esi */ 14551 esi = MEM32(edx + 0x8); /* 0x36058B3E: mov esi, dword ptr [edx + 8] */ 14552 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B41: cmp esi, dword ptr [edi + 8] */ 14553 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14555 _flag_k = FK_CMP; 14556 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058B49; /* 0x36058B44: je 0x36058b49 */ 14557 L_36058B46: 14558 MEM32(esi + 0x4) = ecx; /* 0x36058B46: mov dword ptr [esi + 4], ecx */ 14559 L_36058B49: 14560 esi = MEM32(ecx + 0x4); /* 0x36058B49: mov esi, dword ptr [ecx + 4] */ 14561 MEM32(edx + 0x4) = esi; /* 0x36058B4C: mov dword ptr [edx + 4], esi */ 14562 esi = MEM32(edi + 0x4); /* 0x36058B4F: mov esi, dword ptr [edi + 4] */ 14563 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058B52: cmp ecx, dword ptr [esi + 4] */ 14564 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14566 _flag_k = FK_CMP; 14567 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B5C; /* 0x36058B55: jne 0x36058b5c */ 14568 L_36058B57: 14569 MEM32(esi + 0x4) = edx; /* 0x36058B57: mov dword ptr [esi + 4], edx */ 14570 goto L_36058B6B; /* 0x36058B5A: jmp 0x36058b6b */ 14571 L_36058B5C: 14572 esi = MEM32(ecx + 0x4); /* 0x36058B5C: mov esi, dword ptr [ecx + 4] */ 14573 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058B5F: cmp ecx, dword ptr [esi + 8] */ 14574 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14576 _flag_k = FK_CMP; 14577 if (CMP_NE(_flag_a, _flag_b)) goto L_36058B69; /* 0x36058B62: jne 0x36058b69 */ 14578 L_36058B64: 14579 MEM32(esi + 0x8) = edx; /* 0x36058B64: mov dword ptr [esi + 8], edx */ 14580 goto L_36058B6B; /* 0x36058B67: jmp 0x36058b6b */ 14581 L_36058B69: 14582 MEM32(esi) = edx; /* 0x36058B69: mov dword ptr [esi], edx */ 14583 L_36058B6B: 14584 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 14585 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 14586 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 14587 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 14588 L_36058B77: 14589 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 14590 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 14591 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 14592 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 14593 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 14594 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 14595 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 14596 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 14597 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 14598 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 14599 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 14600 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 14601 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 14602 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14604 _flag_k = FK_CMP; 14605 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 14606 L_36058B9E: 14607 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 14608 L_36058BA1: 14609 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 14610 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 14611 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 14612 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 14613 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14615 _flag_k = FK_CMP; 14616 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 14617 L_36058BAF: 14618 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 14619 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 14620 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 14621 L_36058BB9: 14622 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 14623 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 14624 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14626 _flag_k = FK_CMP; 14627 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 14628 L_36058BC0: 14629 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 14630 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 14631 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 14632 L_36058BC9: 14633 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 14634 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 14635 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 14636 L_36058C6F: 14637 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 14638 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 14639 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 14640 PUSH32(esp, edx); /* 0x36058C78: push edx */ 14641 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 14642 RECOMP_FLAGS_IN(); 14643 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 14644 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 14645 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14647 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 14648 _flag_k = FK_ADD; 14649 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14650 eax = eax - 1; /* 0x36058C87: dec eax */ 14651 _flag_k = FK_DEC; 14652 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 14653 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 14654 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 14655 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 14656 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 14657 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 14658 esp = ebp; /* 0x36058C93: mov esp, ebp */ 14659 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 14660 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 14661 RECOMP_REGS_OUT(); 14662 } 14663 14664 void sub_36058B6B(void) { 14665 int _fpu_cmp = 0; 14666 uint32_t _cf = 0; 14667 int _df = 1; 14668 uint32_t _flag_k = FK_NONE; 14669 uint32_t _flag_a = 0, _flag_b = 0; 14670 uint32_t _itail_tgt = 0; 14671 RECOMP_REGS_LOCALS 14672 RECOMP_ENTER(0x36058B6Bu); 14673 14674 L_36058B6B: 14675 MEM32(edx + 0x8) = ecx; /* 0x36058B6B: mov dword ptr [edx + 8], ecx */ 14676 MEM32(ecx + 0x4) = edx; /* 0x36058B6E: mov dword ptr [ecx + 4], edx */ 14677 ecx = MEM32(eax + 0x4); /* 0x36058B71: mov ecx, dword ptr [eax + 4] */ 14678 ecx = MEM32(ecx + 0x8); /* 0x36058B74: mov ecx, dword ptr [ecx + 8] */ 14679 edx = MEM32(eax + 0x4); /* 0x36058B77: mov edx, dword ptr [eax + 4] */ 14680 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058B7A: mov dl, byte ptr [edx + 0x14] */ 14681 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058B7D: mov byte ptr [ecx + 0x14], dl */ 14682 edx = MEM32(eax + 0x4); /* 0x36058B80: mov edx, dword ptr [eax + 4] */ 14683 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B83: mov byte ptr [edx + 0x14], bl */ 14684 ecx = MEM32(ecx + 0x8); /* 0x36058B86: mov ecx, dword ptr [ecx + 8] */ 14685 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058B89: mov byte ptr [ecx + 0x14], bl */ 14686 ecx = MEM32(eax + 0x4); /* 0x36058B8C: mov ecx, dword ptr [eax + 4] */ 14687 edx = MEM32(ecx + 0x8); /* 0x36058B8F: mov edx, dword ptr [ecx + 8] */ 14688 esi = MEM32(edx); /* 0x36058B92: mov esi, dword ptr [edx] */ 14689 MEM32(ecx + 0x8) = esi; /* 0x36058B94: mov dword ptr [ecx + 8], esi */ 14690 esi = MEM32(edx); /* 0x36058B97: mov esi, dword ptr [edx] */ 14691 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058B99: cmp esi, dword ptr [edi + 8] */ 14692 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14694 _flag_k = FK_CMP; 14695 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058BA1; /* 0x36058B9C: je 0x36058ba1 */ 14696 L_36058B9E: 14697 MEM32(esi + 0x4) = ecx; /* 0x36058B9E: mov dword ptr [esi + 4], ecx */ 14698 L_36058BA1: 14699 esi = MEM32(ecx + 0x4); /* 0x36058BA1: mov esi, dword ptr [ecx + 4] */ 14700 MEM32(edx + 0x4) = esi; /* 0x36058BA4: mov dword ptr [edx + 4], esi */ 14701 esi = MEM32(edi + 0x4); /* 0x36058BA7: mov esi, dword ptr [edi + 4] */ 14702 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058BAA: cmp ecx, dword ptr [esi + 4] */ 14703 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14705 _flag_k = FK_CMP; 14706 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BB9; /* 0x36058BAD: jne 0x36058bb9 */ 14707 L_36058BAF: 14708 MEM32(esi + 0x4) = edx; /* 0x36058BAF: mov dword ptr [esi + 4], edx */ 14709 MEM32(edx) = ecx; /* 0x36058BB2: mov dword ptr [edx], ecx */ 14710 goto L_36058C6F; /* 0x36058BB4: jmp 0x36058c6f */ 14711 L_36058BB9: 14712 esi = MEM32(ecx + 0x4); /* 0x36058BB9: mov esi, dword ptr [ecx + 4] */ 14713 /* cmp ecx, MEM32(esi) */ /* 0x36058BBC: cmp ecx, dword ptr [esi] */ 14714 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 14715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14716 _flag_k = FK_CMP; 14717 if (CMP_NE(_flag_a, _flag_b)) goto L_36058BC9; /* 0x36058BBE: jne 0x36058bc9 */ 14718 L_36058BC0: 14719 MEM32(esi) = edx; /* 0x36058BC0: mov dword ptr [esi], edx */ 14720 MEM32(edx) = ecx; /* 0x36058BC2: mov dword ptr [edx], ecx */ 14721 goto L_36058C6F; /* 0x36058BC4: jmp 0x36058c6f */ 14722 L_36058BC9: 14723 MEM32(esi + 0x8) = edx; /* 0x36058BC9: mov dword ptr [esi + 8], edx */ 14724 MEM32(edx) = ecx; /* 0x36058BCC: mov dword ptr [edx], ecx */ 14725 goto L_36058C6F; /* 0x36058BCE: jmp 0x36058c6f */ 14726 L_36058C6F: 14727 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 14728 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 14729 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 14730 PUSH32(esp, edx); /* 0x36058C78: push edx */ 14731 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 14732 RECOMP_FLAGS_IN(); 14733 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 14734 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 14735 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14736 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14737 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 14738 _flag_k = FK_ADD; 14739 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14740 eax = eax - 1; /* 0x36058C87: dec eax */ 14741 _flag_k = FK_DEC; 14742 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 14743 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 14744 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 14745 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 14746 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 14747 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 14748 esp = ebp; /* 0x36058C93: mov esp, ebp */ 14749 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 14750 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 14751 RECOMP_REGS_OUT(); 14752 } 14753 14754 void sub_36058C17(void) { 14755 int _fpu_cmp = 0; 14756 uint32_t _cf = 0; 14757 int _df = 1; 14758 uint32_t _flag_k = FK_NONE; 14759 uint32_t _flag_a = 0, _flag_b = 0; 14760 uint32_t _itail_tgt = 0; 14761 RECOMP_REGS_LOCALS 14762 RECOMP_ENTER(0x36058C17u); 14763 14764 L_36058C17: 14765 MEM32(edx) = ecx; /* 0x36058C17: mov dword ptr [edx], ecx */ 14766 MEM32(ecx + 0x4) = edx; /* 0x36058C19: mov dword ptr [ecx + 4], edx */ 14767 ecx = MEM32(eax + 0x4); /* 0x36058C1C: mov ecx, dword ptr [eax + 4] */ 14768 ecx = MEM32(ecx); /* 0x36058C1F: mov ecx, dword ptr [ecx] */ 14769 edx = MEM32(eax + 0x4); /* 0x36058C21: mov edx, dword ptr [eax + 4] */ 14770 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x36058C24: mov dl, byte ptr [edx + 0x14] */ 14771 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x36058C27: mov byte ptr [ecx + 0x14], dl */ 14772 edx = MEM32(eax + 0x4); /* 0x36058C2A: mov edx, dword ptr [eax + 4] */ 14773 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C2D: mov byte ptr [edx + 0x14], bl */ 14774 ecx = MEM32(ecx); /* 0x36058C30: mov ecx, dword ptr [ecx] */ 14775 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C32: mov byte ptr [ecx + 0x14], bl */ 14776 ecx = MEM32(eax + 0x4); /* 0x36058C35: mov ecx, dword ptr [eax + 4] */ 14777 edx = MEM32(ecx); /* 0x36058C38: mov edx, dword ptr [ecx] */ 14778 esi = MEM32(edx + 0x8); /* 0x36058C3A: mov esi, dword ptr [edx + 8] */ 14779 MEM32(ecx) = esi; /* 0x36058C3D: mov dword ptr [ecx], esi */ 14780 esi = MEM32(edx + 0x8); /* 0x36058C3F: mov esi, dword ptr [edx + 8] */ 14781 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36058C42: cmp esi, dword ptr [edi + 8] */ 14782 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 14783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14784 _flag_k = FK_CMP; 14785 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058C4A; /* 0x36058C45: je 0x36058c4a */ 14786 L_36058C47: 14787 MEM32(esi + 0x4) = ecx; /* 0x36058C47: mov dword ptr [esi + 4], ecx */ 14788 L_36058C4A: 14789 esi = MEM32(ecx + 0x4); /* 0x36058C4A: mov esi, dword ptr [ecx + 4] */ 14790 MEM32(edx + 0x4) = esi; /* 0x36058C4D: mov dword ptr [edx + 4], esi */ 14791 esi = MEM32(edi + 0x4); /* 0x36058C50: mov esi, dword ptr [edi + 4] */ 14792 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36058C53: cmp ecx, dword ptr [esi + 4] */ 14793 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 14794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14795 _flag_k = FK_CMP; 14796 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C5D; /* 0x36058C56: jne 0x36058c5d */ 14797 L_36058C58: 14798 MEM32(esi + 0x4) = edx; /* 0x36058C58: mov dword ptr [esi + 4], edx */ 14799 goto L_36058C6C; /* 0x36058C5B: jmp 0x36058c6c */ 14800 L_36058C5D: 14801 esi = MEM32(ecx + 0x4); /* 0x36058C5D: mov esi, dword ptr [ecx + 4] */ 14802 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36058C60: cmp ecx, dword ptr [esi + 8] */ 14803 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 14804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14805 _flag_k = FK_CMP; 14806 if (CMP_NE(_flag_a, _flag_b)) goto L_36058C6A; /* 0x36058C63: jne 0x36058c6a */ 14807 L_36058C65: 14808 MEM32(esi + 0x8) = edx; /* 0x36058C65: mov dword ptr [esi + 8], edx */ 14809 goto L_36058C6C; /* 0x36058C68: jmp 0x36058c6c */ 14810 L_36058C6A: 14811 MEM32(esi) = edx; /* 0x36058C6A: mov dword ptr [esi], edx */ 14812 L_36058C6C: 14813 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 14814 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 14815 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 14816 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 14817 PUSH32(esp, edx); /* 0x36058C78: push edx */ 14818 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 14819 RECOMP_FLAGS_IN(); 14820 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 14821 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 14822 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14823 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14824 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 14825 _flag_k = FK_ADD; 14826 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14827 eax = eax - 1; /* 0x36058C87: dec eax */ 14828 _flag_k = FK_DEC; 14829 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 14830 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 14831 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 14832 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 14833 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 14834 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 14835 esp = ebp; /* 0x36058C93: mov esp, ebp */ 14836 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 14837 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 14838 RECOMP_REGS_OUT(); 14839 } 14840 14841 void sub_36058C6C(void) { 14842 int _fpu_cmp = 0; 14843 uint32_t _cf = 0; 14844 int _df = 1; 14845 uint32_t _flag_k = FK_NONE; 14846 uint32_t _flag_a = 0, _flag_b = 0; 14847 uint32_t _itail_tgt = 0; 14848 RECOMP_REGS_LOCALS 14849 RECOMP_ENTER(0x36058C6Cu); 14850 14851 L_36058C6C: 14852 MEM32(edx + 0x8) = ecx; /* 0x36058C6C: mov dword ptr [edx + 8], ecx */ 14853 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 14854 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 14855 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 14856 PUSH32(esp, edx); /* 0x36058C78: push edx */ 14857 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 14858 RECOMP_FLAGS_IN(); 14859 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 14860 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 14861 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14862 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14863 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 14864 _flag_k = FK_ADD; 14865 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14866 eax = eax - 1; /* 0x36058C87: dec eax */ 14867 _flag_k = FK_DEC; 14868 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 14869 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 14870 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 14871 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 14872 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 14873 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 14874 esp = ebp; /* 0x36058C93: mov esp, ebp */ 14875 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 14876 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 14877 RECOMP_REGS_OUT(); 14878 } 14879 14880 void sub_36058C6F(void) { 14881 int _fpu_cmp = 0; 14882 uint32_t _cf = 0; 14883 int _df = 1; 14884 uint32_t _flag_k = FK_NONE; 14885 uint32_t _flag_a = 0, _flag_b = 0; 14886 uint32_t _itail_tgt = 0; 14887 RECOMP_REGS_LOCALS 14888 RECOMP_ENTER(0x36058C6Fu); 14889 14890 L_36058C6F: 14891 MEM32(ecx + 0x4) = edx; /* 0x36058C6F: mov dword ptr [ecx + 4], edx */ 14892 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 14893 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 14894 PUSH32(esp, edx); /* 0x36058C78: push edx */ 14895 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 14896 RECOMP_FLAGS_IN(); 14897 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 14898 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 14899 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14901 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 14902 _flag_k = FK_ADD; 14903 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14904 eax = eax - 1; /* 0x36058C87: dec eax */ 14905 _flag_k = FK_DEC; 14906 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 14907 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 14908 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 14909 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 14910 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 14911 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 14912 esp = ebp; /* 0x36058C93: mov esp, ebp */ 14913 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 14914 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 14915 RECOMP_REGS_OUT(); 14916 } 14917 14918 void sub_36058C72(void) { 14919 int _fpu_cmp = 0; 14920 uint32_t _cf = 0; 14921 int _df = 1; 14922 uint32_t _flag_k = FK_NONE; 14923 uint32_t _flag_a = 0, _flag_b = 0; 14924 uint32_t _itail_tgt = 0; 14925 RECOMP_REGS_LOCALS 14926 RECOMP_ENTER(0x36058C72u); 14927 14928 L_36058C72: 14929 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058C72: mov byte ptr [eax + 0x14], bl */ 14930 edx = MEM32(ebp + (-0x4)); /* 0x36058C75: mov edx, dword ptr [ebp - 4] */ 14931 PUSH32(esp, edx); /* 0x36058C78: push edx */ 14932 RECOMP_ICALL(0x3615FCC4u); /* 0x36058C79: call 0x3615fcc4 */ /* not lifted */ 14933 RECOMP_FLAGS_IN(); 14934 eax = MEM32(edi + 0x10); /* 0x36058C7E: mov eax, dword ptr [edi + 0x10] */ 14935 ecx = MEM32(ebp + 0xC); /* 0x36058C81: mov ecx, dword ptr [ebp + 0xc] */ 14936 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14937 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14938 esp = esp + 4; /* 0x36058C84: add esp, 4 */ 14939 _flag_k = FK_ADD; 14940 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14941 eax = eax - 1; /* 0x36058C87: dec eax */ 14942 _flag_k = FK_DEC; 14943 MEM32(edi + 0x10) = eax; /* 0x36058C88: mov dword ptr [edi + 0x10], eax */ 14944 eax = MEM32(ebp + 0x8); /* 0x36058C8B: mov eax, dword ptr [ebp + 8] */ 14945 edi = POP32_VAL(esp); /* 0x36058C8E: pop edi */ 14946 esi = POP32_VAL(esp); /* 0x36058C8F: pop esi */ 14947 MEM32(eax) = ecx; /* 0x36058C90: mov dword ptr [eax], ecx */ 14948 ebx = POP32_VAL(esp); /* 0x36058C92: pop ebx */ 14949 esp = ebp; /* 0x36058C93: mov esp, ebp */ 14950 ebp = POP32_VAL(esp); /* 0x36058C95: pop ebp */ 14951 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058C96: ret 8 */ 14952 RECOMP_REGS_OUT(); 14953 } 14954 14955 void sub_36058CA0(void) { 14956 int _fpu_cmp = 0; 14957 uint32_t _cf = 0; 14958 int _df = 1; 14959 uint32_t _flag_k = FK_NONE; 14960 uint32_t _flag_a = 0, _flag_b = 0; 14961 uint32_t _itail_tgt = 0; 14962 RECOMP_REGS_LOCALS 14963 RECOMP_ENTER(0x36058CA0u); 14964 14965 L_36058CA0: 14966 PUSH32(esp, ebp); /* 0x36058CA0: push ebp */ 14967 ebp = esp; /* 0x36058CA1: mov ebp, esp */ 14968 PUSH32(esp, ebx); /* 0x36058CA3: push ebx */ 14969 PUSH32(esp, esi); /* 0x36058CA4: push esi */ 14970 ebx = ecx; /* 0x36058CA5: mov ebx, ecx */ 14971 eax = MEM32(ebx + 0x8); /* 0x36058CA7: mov eax, dword ptr [ebx + 8] */ 14972 PUSH32(esp, edi); /* 0x36058CAA: push edi */ 14973 edi = MEM32(ebp + 0x8); /* 0x36058CAB: mov edi, dword ptr [ebp + 8] */ 14974 /* cmp edi, eax */ /* 0x36058CAE: cmp edi, eax */ 14975 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 14976 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14977 _flag_k = FK_CMP; 14978 esi = edi; /* 0x36058CB0: mov esi, edi */ 14979 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058CD3; /* 0x36058CB2: je 0x36058cd3 */ 14980 L_36058CB4: 14981 eax = MEM32(esi + 0x8); /* 0x36058CB4: mov eax, dword ptr [esi + 8] */ 14982 PUSH32(esp, eax); /* 0x36058CB7: push eax */ 14983 ecx = ebx; /* 0x36058CB8: mov ecx, ebx */ 14984 RECOMP_ICALL(0x36058CA0u); /* 0x36058CBA: call 0x36058ca0 */ /* not lifted */ 14985 RECOMP_FLAGS_IN(); 14986 esi = MEM32(esi); /* 0x36058CBF: mov esi, dword ptr [esi] */ 14987 PUSH32(esp, edi); /* 0x36058CC1: push edi */ 14988 RECOMP_ICALL(0x3615FCC4u); /* 0x36058CC2: call 0x3615fcc4 */ /* not lifted */ 14989 RECOMP_FLAGS_IN(); 14990 eax = MEM32(ebx + 0x8); /* 0x36058CC7: mov eax, dword ptr [ebx + 8] */ 14991 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14992 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14993 esp = esp + 4; /* 0x36058CCA: add esp, 4 */ 14994 _flag_k = FK_ADD; 14995 /* cmp esi, eax */ /* 0x36058CCD: cmp esi, eax */ 14996 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 14997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14998 _flag_k = FK_CMP; 14999 edi = esi; /* 0x36058CCF: mov edi, esi */ 15000 RECOMP_BACKEDGE(); 15001 if (CMP_NE(_flag_a, _flag_b)) goto L_36058CB4; /* 0x36058CD1: jne 0x36058cb4 */ 15002 L_36058CD3: 15003 edi = POP32_VAL(esp); /* 0x36058CD3: pop edi */ 15004 esi = POP32_VAL(esp); /* 0x36058CD4: pop esi */ 15005 ebx = POP32_VAL(esp); /* 0x36058CD5: pop ebx */ 15006 ebp = POP32_VAL(esp); /* 0x36058CD6: pop ebp */ 15007 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36058CD7: ret 4 */ 15008 RECOMP_REGS_OUT(); 15009 } 15010 15011 void sub_36058CE0(void) { 15012 int _fpu_cmp = 0; 15013 uint32_t _cf = 0; 15014 int _df = 1; 15015 uint32_t _flag_k = FK_NONE; 15016 uint32_t _flag_a = 0, _flag_b = 0; 15017 uint32_t _itail_tgt = 0; 15018 RECOMP_REGS_LOCALS 15019 RECOMP_ENTER(0x36058CE0u); 15020 15021 L_36058CE0: 15022 PUSH32(esp, ebp); /* 0x36058CE0: push ebp */ 15023 ebp = esp; /* 0x36058CE1: mov ebp, esp */ 15024 eax = MEM32(ebp + 0x8); /* 0x36058CE3: mov eax, dword ptr [ebp + 8] */ 15025 /* test eax, eax */ /* 0x36058CE6: test eax, eax */ 15026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15027 _cf = 0; 15028 _flag_k = FK_TEST; 15029 if (TEST_Z(_flag_a, _flag_b)) goto L_36058D2B; /* 0x36058CE8: je 0x36058d2b */ 15030 L_36058CEA: 15031 ecx = MEM32(ebp + 0xC); /* 0x36058CEA: mov ecx, dword ptr [ebp + 0xc] */ 15032 /* cmp eax, ecx */ /* 0x36058CED: cmp eax, ecx */ 15033 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15035 _flag_k = FK_CMP; 15036 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058CFB; /* 0x36058CEF: je 0x36058cfb */ 15037 L_36058CF1: 15038 edx = MEM32(ecx); /* 0x36058CF1: mov edx, dword ptr [ecx] */ 15039 MEM32(eax) = edx; /* 0x36058CF3: mov dword ptr [eax], edx */ 15040 edx = MEM32(ecx + 0x4); /* 0x36058CF5: mov edx, dword ptr [ecx + 4] */ 15041 MEM32(eax + 0x4) = edx; /* 0x36058CF8: mov dword ptr [eax + 4], edx */ 15042 L_36058CFB: 15043 PUSH32(esp, esi); /* 0x36058CFB: push esi */ 15044 edx = ecx + 0x8; /* 0x36058CFC: lea edx, [ecx + 8] */ 15045 esi = eax + 0x8; /* 0x36058CFF: lea esi, [eax + 8] */ 15046 /* cmp esi, edx */ /* 0x36058D02: cmp esi, edx */ 15047 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 15048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15049 _flag_k = FK_CMP; 15050 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058D12; /* 0x36058D04: je 0x36058d12 */ 15051 L_36058D06: 15052 PUSH32(esp, edi); /* 0x36058D06: push edi */ 15053 edi = MEM32(edx); /* 0x36058D07: mov edi, dword ptr [edx] */ 15054 MEM32(esi) = edi; /* 0x36058D09: mov dword ptr [esi], edi */ 15055 edx = MEM32(edx + 0x4); /* 0x36058D0B: mov edx, dword ptr [edx + 4] */ 15056 MEM32(esi + 0x4) = edx; /* 0x36058D0E: mov dword ptr [esi + 4], edx */ 15057 edi = POP32_VAL(esp); /* 0x36058D11: pop edi */ 15058 L_36058D12: 15059 edx = MEM32(ecx + 0x10); /* 0x36058D12: mov edx, dword ptr [ecx + 0x10] */ 15060 MEM32(eax + 0x10) = edx; /* 0x36058D15: mov dword ptr [eax + 0x10], edx */ 15061 edx = MEM32(ecx + 0x14); /* 0x36058D18: mov edx, dword ptr [ecx + 0x14] */ 15062 MEM32(eax + 0x14) = edx; /* 0x36058D1B: mov dword ptr [eax + 0x14], edx */ 15063 edx = MEM32(ecx + 0x18); /* 0x36058D1E: mov edx, dword ptr [ecx + 0x18] */ 15064 MEM32(eax + 0x18) = edx; /* 0x36058D21: mov dword ptr [eax + 0x18], edx */ 15065 ecx = MEM32(ecx + 0x1C); /* 0x36058D24: mov ecx, dword ptr [ecx + 0x1c] */ 15066 MEM32(eax + 0x1C) = ecx; /* 0x36058D27: mov dword ptr [eax + 0x1c], ecx */ 15067 esi = POP32_VAL(esp); /* 0x36058D2A: pop esi */ 15068 L_36058D2B: 15069 ebp = POP32_VAL(esp); /* 0x36058D2B: pop ebp */ 15070 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36058D2C: ret */ 15071 RECOMP_REGS_OUT(); 15072 } 15073 15074 void sub_36058D30(void) { 15075 int _fpu_cmp = 0; 15076 uint32_t _cf = 0; 15077 int _df = 1; 15078 uint32_t _flag_k = FK_NONE; 15079 uint32_t _flag_a = 0, _flag_b = 0; 15080 uint32_t _itail_tgt = 0; 15081 RECOMP_REGS_LOCALS 15082 RECOMP_ENTER(0x36058D30u); 15083 15084 L_36058D30: 15085 PUSH32(esp, ebp); /* 0x36058D30: push ebp */ 15086 ebp = esp; /* 0x36058D31: mov ebp, esp */ 15087 PUSH32(esp, 0xFFFFFFFFu); /* 0x36058D33: push -1 */ 15088 PUSH32(esp, 0x36164809u); /* 0x36058D35: push 0x36164809 */ 15089 eax = MEM32(FS_BASE + (0)); /* 0x36058D3A: mov eax, dword ptr fs:[0] */ 15090 PUSH32(esp, eax); /* 0x36058D40: push eax */ 15091 MEM32(FS_BASE + (0)) = esp; /* 0x36058D41: mov dword ptr fs:[0], esp */ 15092 PUSH32(esp, ecx); /* 0x36058D48: push ecx */ 15093 eax = MEM32(0x3617021C); /* 0x36058D49: mov eax, dword ptr [0x3617021c] */ 15094 PUSH32(esp, ebx); /* 0x36058D4E: push ebx */ 15095 PUSH32(esp, esi); /* 0x36058D4F: push esi */ 15096 esi = ecx; /* 0x36058D50: mov esi, ecx */ 15097 PUSH32(esp, edi); /* 0x36058D52: push edi */ 15098 MEM32(ebp + (-0x10)) = esi; /* 0x36058D53: mov dword ptr [ebp - 0x10], esi */ 15099 MEM32(esi) = eax; /* 0x36058D56: mov dword ptr [esi], eax */ 15100 ecx = MEM32(ebp + 0x8); /* 0x36058D58: mov ecx, dword ptr [ebp + 8] */ 15101 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15102 ebx = 0; /* 0x36058D5B: xor ebx, ebx */ 15103 _cf = 0; 15104 _flag_k = FK_TEST; 15105 eax = esi + 0x8; /* 0x36058D5D: lea eax, [esi + 8] */ 15106 /* cmp eax, ecx */ /* 0x36058D60: cmp eax, ecx */ 15107 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15109 _flag_k = FK_CMP; 15110 MEM32(ebp + (-0x4)) = ebx; /* 0x36058D62: mov dword ptr [ebp - 4], ebx */ 15111 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058D71; /* 0x36058D65: je 0x36058d71 */ 15112 L_36058D67: 15113 edx = MEM32(ecx); /* 0x36058D67: mov edx, dword ptr [ecx] */ 15114 MEM32(eax) = edx; /* 0x36058D69: mov dword ptr [eax], edx */ 15115 ecx = MEM32(ecx + 0x4); /* 0x36058D6B: mov ecx, dword ptr [ecx + 4] */ 15116 MEM32(eax + 0x4) = ecx; /* 0x36058D6E: mov dword ptr [eax + 4], ecx */ 15117 L_36058D71: 15118 edx = MEM32(ebp + 0xC); /* 0x36058D71: mov edx, dword ptr [ebp + 0xc] */ 15119 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36058D74: mov al, byte ptr [ebp + 0xb] */ 15120 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36058D77: mov cl, byte ptr [ebp + 0xb] */ 15121 MEM32(esi + 0x10) = edx; /* 0x36058D7A: mov dword ptr [esi + 0x10], edx */ 15122 PUSH32(esp, 0x18u); /* 0x36058D7D: push 0x18 */ 15123 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36058D7F: mov byte ptr [esi + 0x14], al */ 15124 MEM8(esi + 0x15) = (uint8_t)(LO8(ecx)); /* 0x36058D82: mov byte ptr [esi + 0x15], cl */ 15125 MEM8(esi + 0x20) = (uint8_t)(LO8(ebx)); /* 0x36058D85: mov byte ptr [esi + 0x20], bl */ 15126 RECOMP_ICALL(0x3615FD6Au); /* 0x36058D88: call 0x3615fd6a */ /* not lifted */ 15127 RECOMP_FLAGS_IN(); 15128 MEM32(eax + 0x4) = ebx; /* 0x36058D8D: mov dword ptr [eax + 4], ebx */ 15129 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x36058D90: mov byte ptr [eax + 0x15], bl */ 15130 SET_LO8(ecx, 1); /* 0x36058D93: mov cl, 1 */ 15131 MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x36058D95: mov byte ptr [eax + 0x14], cl */ 15132 MEM32(esi + 0x1C) = eax; /* 0x36058D98: mov dword ptr [esi + 0x1c], eax */ 15133 MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x36058D9B: mov byte ptr [eax + 0x15], cl */ 15134 edx = MEM32(esi + 0x1C); /* 0x36058D9E: mov edx, dword ptr [esi + 0x1c] */ 15135 MEM32(edx) = ebx; /* 0x36058DA1: mov dword ptr [edx], ebx */ 15136 eax = MEM32(esi + 0x1C); /* 0x36058DA3: mov eax, dword ptr [esi + 0x1c] */ 15137 MEM32(eax + 0x8) = ebx; /* 0x36058DA6: mov dword ptr [eax + 8], ebx */ 15138 edi = MEM32(esi + 0x1C); /* 0x36058DA9: mov edi, dword ptr [esi + 0x1c] */ 15139 PUSH32(esp, 0x18u); /* 0x36058DAC: push 0x18 */ 15140 RECOMP_ICALL(0x3615FD6Au); /* 0x36058DAE: call 0x3615fd6a */ /* not lifted */ 15141 RECOMP_FLAGS_IN(); 15142 ecx = MEM32(ebp + (-0xC)); /* 0x36058DB3: mov ecx, dword ptr [ebp - 0xc] */ 15143 MEM32(eax + 0x4) = edi; /* 0x36058DB6: mov dword ptr [eax + 4], edi */ 15144 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36058DB9: mov byte ptr [eax + 0x14], bl */ 15145 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x36058DBC: mov byte ptr [eax + 0x15], bl */ 15146 MEM32(esi + 0x18) = eax; /* 0x36058DBF: mov dword ptr [esi + 0x18], eax */ 15147 MEM32(eax) = eax; /* 0x36058DC2: mov dword ptr [eax], eax */ 15148 eax = MEM32(esi + 0x18); /* 0x36058DC4: mov eax, dword ptr [esi + 0x18] */ 15149 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15150 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15151 esp = esp + 8; /* 0x36058DC7: add esp, 8 */ 15152 _flag_k = FK_ADD; 15153 MEM32(eax + 0x8) = eax; /* 0x36058DCA: mov dword ptr [eax + 8], eax */ 15154 MEM32(esi + 0x24) = ebx; /* 0x36058DCD: mov dword ptr [esi + 0x24], ebx */ 15155 edi = POP32_VAL(esp); /* 0x36058DD0: pop edi */ 15156 MEM32(esi) = 0x36171154u; /* 0x36058DD1: mov dword ptr [esi], 0x36171154 */ 15157 eax = esi; /* 0x36058DD7: mov eax, esi */ 15158 esi = POP32_VAL(esp); /* 0x36058DD9: pop esi */ 15159 ebx = POP32_VAL(esp); /* 0x36058DDA: pop ebx */ 15160 MEM32(FS_BASE + (0)) = ecx; /* 0x36058DDB: mov dword ptr fs:[0], ecx */ 15161 esp = ebp; /* 0x36058DE2: mov esp, ebp */ 15162 ebp = POP32_VAL(esp); /* 0x36058DE4: pop ebp */ 15163 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36058DE5: ret 8 */ 15164 RECOMP_REGS_OUT(); 15165 } 15166 15167 void sub_36058DF0(void) { 15168 int _fpu_cmp = 0; 15169 uint32_t _cf = 0; 15170 int _df = 1; 15171 uint32_t _flag_k = FK_NONE; 15172 uint32_t _flag_a = 0, _flag_b = 0; 15173 uint32_t _itail_tgt = 0; 15174 RECOMP_REGS_LOCALS 15175 RECOMP_ENTER(0x36058DF0u); 15176 15177 L_36058DF0: 15178 PUSH32(esp, ebp); /* 0x36058DF0: push ebp */ 15179 ebp = esp; /* 0x36058DF1: mov ebp, esp */ 15180 PUSH32(esp, esi); /* 0x36058DF3: push esi */ 15181 esi = ecx; /* 0x36058DF4: mov esi, ecx */ 15182 RECOMP_ICALL(0x36058E20u); /* 0x36058DF6: call 0x36058e20 */ /* not lifted */ 15183 RECOMP_FLAGS_IN(); 15184 /* test MEM8(ebp + 0x8), 1 */ /* 0x36058DFB: test byte ptr [ebp + 8], 1 */ 15185 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 15186 _cf = 0; 15187 _flag_k = FK_NARROW(FK_TEST, 24); 15188 if (TEST_Z(_flag_a, _flag_b)) goto L_36058E0A; /* 0x36058DFF: je 0x36058e0a */ 15189 L_36058E01: 15190 PUSH32(esp, esi); /* 0x36058E01: push esi */ 15191 RECOMP_ICALL(0x3615FCC4u); /* 0x36058E02: call 0x3615fcc4 */ /* not lifted */ 15192 RECOMP_FLAGS_IN(); 15193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15195 esp = esp + 4; /* 0x36058E07: add esp, 4 */ 15196 _flag_k = FK_ADD; 15197 L_36058E0A: 15198 eax = esi; /* 0x36058E0A: mov eax, esi */ 15199 esi = POP32_VAL(esp); /* 0x36058E0C: pop esi */ 15200 ebp = POP32_VAL(esp); /* 0x36058E0D: pop ebp */ 15201 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36058E0E: ret 4 */ 15202 RECOMP_REGS_OUT(); 15203 } 15204 15205 void sub_36058E20(void) { 15206 int _fpu_cmp = 0; 15207 uint32_t _cf = 0; 15208 int _df = 1; 15209 uint32_t _flag_k = FK_NONE; 15210 uint32_t _flag_a = 0, _flag_b = 0; 15211 uint32_t _itail_tgt = 0; 15212 RECOMP_REGS_LOCALS 15213 RECOMP_ENTER(0x36058E20u); 15214 15215 L_36058E20: 15216 PUSH32(esp, ebp); /* 0x36058E20: push ebp */ 15217 ebp = esp; /* 0x36058E21: mov ebp, esp */ 15218 PUSH32(esp, 0xFFFFFFFFu); /* 0x36058E23: push -1 */ 15219 PUSH32(esp, 0x36164834u); /* 0x36058E25: push 0x36164834 */ 15220 eax = MEM32(FS_BASE + (0)); /* 0x36058E2A: mov eax, dword ptr fs:[0] */ 15221 PUSH32(esp, eax); /* 0x36058E30: push eax */ 15222 MEM32(FS_BASE + (0)) = esp; /* 0x36058E31: mov dword ptr fs:[0], esp */ 15223 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 15224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15225 esp = esp - 0x10u; /* 0x36058E38: sub esp, 0x10 */ 15226 _flag_k = FK_CMP; 15227 PUSH32(esp, ebx); /* 0x36058E3B: push ebx */ 15228 PUSH32(esp, esi); /* 0x36058E3C: push esi */ 15229 PUSH32(esp, edi); /* 0x36058E3D: push edi */ 15230 edi = ecx; /* 0x36058E3E: mov edi, ecx */ 15231 MEM32(ebp + (-0x14)) = edi; /* 0x36058E40: mov dword ptr [ebp - 0x14], edi */ 15232 MEM32(edi) = 0x36171154u; /* 0x36058E43: mov dword ptr [edi], 0x36171154 */ 15233 MEM32(ebp + (-0x4)) = 1; /* 0x36058E49: mov dword ptr [ebp - 4], 1 */ 15234 RECOMP_ICALL(0x36059230u); /* 0x36058E50: call 0x36059230 */ /* not lifted */ 15235 RECOMP_FLAGS_IN(); 15236 eax = MEM32(edi + 0x18); /* 0x36058E55: mov eax, dword ptr [edi + 0x18] */ 15237 ecx = MEM32(edi + 0x24); /* 0x36058E58: mov ecx, dword ptr [edi + 0x24] */ 15238 /* test ecx, ecx */ /* 0x36058E5B: test ecx, ecx */ 15239 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 15240 _cf = 0; 15241 _flag_k = FK_TEST; 15242 esi = edi + 0x14; /* 0x36058E5D: lea esi, [edi + 0x14] */ 15243 ebx = eax; /* 0x36058E60: mov ebx, eax */ 15244 eax = MEM32(eax); /* 0x36058E62: mov eax, dword ptr [eax] */ 15245 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36058E64: mov byte ptr [ebp - 4], 0 */ 15246 MEM32(ebp + (-0x10)) = eax; /* 0x36058E68: mov dword ptr [ebp - 0x10], eax */ 15247 if (TEST_Z(_flag_a, _flag_b)) goto L_36058EBB; /* 0x36058E6B: je 0x36058ebb */ 15248 L_36058E6D: 15249 eax = ebp + (-0x18); /* 0x36058E6D: lea eax, [ebp - 0x18] */ 15250 PUSH32(esp, eax); /* 0x36058E70: push eax */ 15251 ecx = esi; /* 0x36058E71: mov ecx, esi */ 15252 RECOMP_ICALL(0x3614FC30u); /* 0x36058E73: call 0x3614fc30 */ /* not lifted */ 15253 RECOMP_FLAGS_IN(); 15254 ecx = eax; /* 0x36058E78: mov ecx, eax */ 15255 eax = MEM32(ebp + (-0x10)); /* 0x36058E7A: mov eax, dword ptr [ebp - 0x10] */ 15256 /* cmp eax, MEM32(ecx) */ /* 0x36058E7D: cmp eax, dword ptr [ecx] */ 15257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 15258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15259 _flag_k = FK_CMP; 15260 if (CMP_NE(_flag_a, _flag_b)) goto L_36058EBB; /* 0x36058E7F: jne 0x36058ebb */ 15261 L_36058E81: 15262 ecx = MEM32(esi + 0x4); /* 0x36058E81: mov ecx, dword ptr [esi + 4] */ 15263 /* cmp ebx, ecx */ /* 0x36058E84: cmp ebx, ecx */ 15264 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 15265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15266 _flag_k = FK_CMP; 15267 if (CMP_NE(_flag_a, _flag_b)) goto L_36058EBB; /* 0x36058E86: jne 0x36058ebb */ 15268 L_36058E88: 15269 edx = MEM32(ecx + 0x4); /* 0x36058E88: mov edx, dword ptr [ecx + 4] */ 15270 PUSH32(esp, edx); /* 0x36058E8B: push edx */ 15271 ecx = esi; /* 0x36058E8C: mov ecx, esi */ 15272 RECOMP_ICALL(0x36059710u); /* 0x36058E8E: call 0x36059710 */ /* not lifted */ 15273 RECOMP_FLAGS_IN(); 15274 eax = MEM32(esi + 0x4); /* 0x36058E93: mov eax, dword ptr [esi + 4] */ 15275 ecx = MEM32(esi + 0x8); /* 0x36058E96: mov ecx, dword ptr [esi + 8] */ 15276 MEM32(eax + 0x4) = ecx; /* 0x36058E99: mov dword ptr [eax + 4], ecx */ 15277 eax = MEM32(esi + 0x4); /* 0x36058E9C: mov eax, dword ptr [esi + 4] */ 15278 MEM32(esi + 0x10) = 0; /* 0x36058E9F: mov dword ptr [esi + 0x10], 0 */ 15279 MEM32(eax) = eax; /* 0x36058EA6: mov dword ptr [eax], eax */ 15280 eax = MEM32(esi + 0x4); /* 0x36058EA8: mov eax, dword ptr [esi + 4] */ 15281 edx = ebp + (-0x18); /* 0x36058EAB: lea edx, [ebp - 0x18] */ 15282 PUSH32(esp, edx); /* 0x36058EAE: push edx */ 15283 ecx = esi; /* 0x36058EAF: mov ecx, esi */ 15284 MEM32(eax + 0x8) = eax; /* 0x36058EB1: mov dword ptr [eax + 8], eax */ 15285 RECOMP_ICALL(0x3614FC30u); /* 0x36058EB4: call 0x3614fc30 */ /* not lifted */ 15286 RECOMP_FLAGS_IN(); 15287 goto L_36058EE0; /* 0x36058EB9: jmp 0x36058ee0 */ 15288 L_36058EBB: 15289 /* cmp eax, ebx */ /* 0x36058EBB: cmp eax, ebx */ 15290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 15291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15292 _flag_k = FK_CMP; 15293 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058EE0; /* 0x36058EBD: je 0x36058ee0 */ 15294 L_36058EBF: 15295 PUSH32(esp, 0); /* 0x36058EBF: push 0 */ 15296 eax = ebp + (-0x18); /* 0x36058EC1: lea eax, [ebp - 0x18] */ 15297 PUSH32(esp, eax); /* 0x36058EC4: push eax */ 15298 ecx = ebp + (-0x10); /* 0x36058EC5: lea ecx, [ebp - 0x10] */ 15299 RECOMP_ICALL(0x3607CC50u); /* 0x36058EC8: call 0x3607cc50 */ /* not lifted */ 15300 RECOMP_FLAGS_IN(); 15301 ecx = MEM32(eax); /* 0x36058ECD: mov ecx, dword ptr [eax] */ 15302 PUSH32(esp, ecx); /* 0x36058ECF: push ecx */ 15303 edx = ebp + (-0x1C); /* 0x36058ED0: lea edx, [ebp - 0x1c] */ 15304 PUSH32(esp, edx); /* 0x36058ED3: push edx */ 15305 ecx = esi; /* 0x36058ED4: mov ecx, esi */ 15306 RECOMP_ICALL(0x360588E0u); /* 0x36058ED6: call 0x360588e0 */ /* not lifted */ 15307 RECOMP_FLAGS_IN(); 15308 /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x36058EDB: cmp dword ptr [ebp - 0x10], ebx */ 15309 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx); 15310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15311 _flag_k = FK_CMP; 15312 RECOMP_BACKEDGE(); 15313 if (CMP_NE(_flag_a, _flag_b)) goto L_36058EBF; /* 0x36058EDE: jne 0x36058ebf */ 15314 L_36058EE0: 15315 eax = MEM32(esi + 0x4); /* 0x36058EE0: mov eax, dword ptr [esi + 4] */ 15316 PUSH32(esp, eax); /* 0x36058EE3: push eax */ 15317 RECOMP_ICALL(0x3615FCC4u); /* 0x36058EE4: call 0x3615fcc4 */ /* not lifted */ 15318 RECOMP_FLAGS_IN(); 15319 ecx = MEM32(esi + 0x8); /* 0x36058EE9: mov ecx, dword ptr [esi + 8] */ 15320 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15321 ebx = 0; /* 0x36058EEC: xor ebx, ebx */ 15322 _cf = 0; 15323 _flag_k = FK_TEST; 15324 PUSH32(esp, ecx); /* 0x36058EEE: push ecx */ 15325 MEM32(esi + 0x4) = ebx; /* 0x36058EEF: mov dword ptr [esi + 4], ebx */ 15326 MEM32(esi + 0x10) = ebx; /* 0x36058EF2: mov dword ptr [esi + 0x10], ebx */ 15327 RECOMP_ICALL(0x3615FCC4u); /* 0x36058EF5: call 0x3615fcc4 */ /* not lifted */ 15328 RECOMP_FLAGS_IN(); 15329 ecx = MEM32(ebp + (-0xC)); /* 0x36058EFA: mov ecx, dword ptr [ebp - 0xc] */ 15330 MEM32(esi + 0x8) = ebx; /* 0x36058EFD: mov dword ptr [esi + 8], ebx */ 15331 edx = MEM32(0x3617021C); /* 0x36058F00: mov edx, dword ptr [0x3617021c] */ 15332 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15333 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15334 esp = esp + 8; /* 0x36058F06: add esp, 8 */ 15335 _flag_k = FK_ADD; 15336 MEM32(edi) = edx; /* 0x36058F09: mov dword ptr [edi], edx */ 15337 edi = POP32_VAL(esp); /* 0x36058F0B: pop edi */ 15338 esi = POP32_VAL(esp); /* 0x36058F0C: pop esi */ 15339 ebx = POP32_VAL(esp); /* 0x36058F0D: pop ebx */ 15340 MEM32(FS_BASE + (0)) = ecx; /* 0x36058F0E: mov dword ptr fs:[0], ecx */ 15341 esp = ebp; /* 0x36058F15: mov esp, ebp */ 15342 ebp = POP32_VAL(esp); /* 0x36058F17: pop ebp */ 15343 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36058F18: ret */ 15344 RECOMP_REGS_OUT(); 15345 } 15346 15347 void sub_36058F20(void) { 15348 int _fpu_cmp = 0; 15349 uint32_t _cf = 0; 15350 int _df = 1; 15351 uint32_t _flag_k = FK_NONE; 15352 uint32_t _flag_a = 0, _flag_b = 0; 15353 uint32_t _itail_tgt = 0; 15354 RECOMP_REGS_LOCALS 15355 RECOMP_ENTER(0x36058F20u); 15356 15357 L_36058F20: 15358 PUSH32(esp, ebp); /* 0x36058F20: push ebp */ 15359 ebp = esp; /* 0x36058F21: mov ebp, esp */ 15360 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15362 esp = esp - 8; /* 0x36058F23: sub esp, 8 */ 15363 _flag_k = FK_CMP; 15364 PUSH32(esp, ebx); /* 0x36058F26: push ebx */ 15365 PUSH32(esp, esi); /* 0x36058F27: push esi */ 15366 esi = ecx; /* 0x36058F28: mov esi, ecx */ 15367 ecx = MEM32(esi + 0x10); /* 0x36058F2A: mov ecx, dword ptr [esi + 0x10] */ 15368 /* test ecx, ecx */ /* 0x36058F2D: test ecx, ecx */ 15369 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 15370 _cf = 0; 15371 _flag_k = FK_TEST; 15372 PUSH32(esp, edi); /* 0x36058F2F: push edi */ 15373 edi = MEM32(esi + 0x4); /* 0x36058F30: mov edi, dword ptr [esi + 4] */ 15374 eax = MEM32(edi); /* 0x36058F33: mov eax, dword ptr [edi] */ 15375 MEM32(ebp + (-0x4)) = eax; /* 0x36058F35: mov dword ptr [ebp - 4], eax */ 15376 if (TEST_Z(_flag_a, _flag_b)) goto L_36058F95; /* 0x36058F38: je 0x36058f95 */ 15377 L_36058F3A: 15378 ecx = eax; /* 0x36058F3A: mov ecx, eax */ 15379 /* cmp eax, ecx */ /* 0x36058F3C: cmp eax, ecx */ 15380 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15382 _flag_k = FK_CMP; 15383 if (CMP_NE(_flag_a, _flag_b)) goto L_36058F95; /* 0x36058F3E: jne 0x36058f95 */ 15384 L_36058F40: 15385 /* cmp edi, edi */ /* 0x36058F40: cmp edi, edi */ 15386 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 15387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15388 _flag_k = FK_CMP; 15389 if (CMP_NE(_flag_a, _flag_b)) goto L_36058F95; /* 0x36058F42: jne 0x36058f95 */ 15390 L_36058F44: 15391 ebx = MEM32(edi + 0x4); /* 0x36058F44: mov ebx, dword ptr [edi + 4] */ 15392 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36058F47: cmp ebx, dword ptr [esi + 8] */ 15393 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 15394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15395 _flag_k = FK_CMP; 15396 edi = ebx; /* 0x36058F4A: mov edi, ebx */ 15397 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058F6D; /* 0x36058F4C: je 0x36058f6d */ 15398 L_36058F4E: 15399 eax = MEM32(edi + 0x8); /* 0x36058F4E: mov eax, dword ptr [edi + 8] */ 15400 PUSH32(esp, eax); /* 0x36058F51: push eax */ 15401 ecx = esi; /* 0x36058F52: mov ecx, esi */ 15402 RECOMP_ICALL(0x36059710u); /* 0x36058F54: call 0x36059710 */ /* not lifted */ 15403 RECOMP_FLAGS_IN(); 15404 edi = MEM32(edi); /* 0x36058F59: mov edi, dword ptr [edi] */ 15405 PUSH32(esp, ebx); /* 0x36058F5B: push ebx */ 15406 RECOMP_ICALL(0x3615FCC4u); /* 0x36058F5C: call 0x3615fcc4 */ /* not lifted */ 15407 RECOMP_FLAGS_IN(); 15408 eax = MEM32(esi + 0x8); /* 0x36058F61: mov eax, dword ptr [esi + 8] */ 15409 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15410 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15411 esp = esp + 4; /* 0x36058F64: add esp, 4 */ 15412 _flag_k = FK_ADD; 15413 /* cmp edi, eax */ /* 0x36058F67: cmp edi, eax */ 15414 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15416 _flag_k = FK_CMP; 15417 ebx = edi; /* 0x36058F69: mov ebx, edi */ 15418 RECOMP_BACKEDGE(); 15419 if (CMP_NE(_flag_a, _flag_b)) goto L_36058F4E; /* 0x36058F6B: jne 0x36058f4e */ 15420 L_36058F6D: 15421 ecx = MEM32(esi + 0x4); /* 0x36058F6D: mov ecx, dword ptr [esi + 4] */ 15422 edx = MEM32(esi + 0x8); /* 0x36058F70: mov edx, dword ptr [esi + 8] */ 15423 MEM32(ecx + 0x4) = edx; /* 0x36058F73: mov dword ptr [ecx + 4], edx */ 15424 eax = MEM32(esi + 0x4); /* 0x36058F76: mov eax, dword ptr [esi + 4] */ 15425 MEM32(esi + 0x10) = 0; /* 0x36058F79: mov dword ptr [esi + 0x10], 0 */ 15426 MEM32(eax) = eax; /* 0x36058F80: mov dword ptr [eax], eax */ 15427 eax = MEM32(esi + 0x4); /* 0x36058F82: mov eax, dword ptr [esi + 4] */ 15428 MEM32(eax + 0x8) = eax; /* 0x36058F85: mov dword ptr [eax + 8], eax */ 15429 eax = ebp + (-0x8); /* 0x36058F88: lea eax, [ebp - 8] */ 15430 PUSH32(esp, eax); /* 0x36058F8B: push eax */ 15431 ecx = esi; /* 0x36058F8C: mov ecx, esi */ 15432 RECOMP_ICALL(0x3614FC30u); /* 0x36058F8E: call 0x3614fc30 */ /* not lifted */ 15433 RECOMP_FLAGS_IN(); 15434 goto L_36058FB6; /* 0x36058F93: jmp 0x36058fb6 */ 15435 L_36058F95: 15436 /* cmp eax, edi */ /* 0x36058F95: cmp eax, edi */ 15437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 15438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15439 _flag_k = FK_CMP; 15440 if (CMP_EQ(_flag_a, _flag_b)) goto L_36058FB6; /* 0x36058F97: je 0x36058fb6 */ 15441 L_36058F99: 15442 ecx = ebp + (-0x4); /* 0x36058F99: lea ecx, [ebp - 4] */ 15443 ebx = eax; /* 0x36058F9C: mov ebx, eax */ 15444 RECOMP_ICALL(0x36064140u); /* 0x36058F9E: call 0x36064140 */ /* not lifted */ 15445 RECOMP_FLAGS_IN(); 15446 PUSH32(esp, ebx); /* 0x36058FA3: push ebx */ 15447 ecx = ebp + (-0x8); /* 0x36058FA4: lea ecx, [ebp - 8] */ 15448 PUSH32(esp, ecx); /* 0x36058FA7: push ecx */ 15449 ecx = esi; /* 0x36058FA8: mov ecx, esi */ 15450 RECOMP_ICALL(0x360588E0u); /* 0x36058FAA: call 0x360588e0 */ /* not lifted */ 15451 RECOMP_FLAGS_IN(); 15452 eax = MEM32(ebp + (-0x4)); /* 0x36058FAF: mov eax, dword ptr [ebp - 4] */ 15453 /* cmp eax, edi */ /* 0x36058FB2: cmp eax, edi */ 15454 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 15455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15456 _flag_k = FK_CMP; 15457 RECOMP_BACKEDGE(); 15458 if (CMP_NE(_flag_a, _flag_b)) goto L_36058F99; /* 0x36058FB4: jne 0x36058f99 */ 15459 L_36058FB6: 15460 edx = MEM32(esi + 0x4); /* 0x36058FB6: mov edx, dword ptr [esi + 4] */ 15461 PUSH32(esp, edx); /* 0x36058FB9: push edx */ 15462 RECOMP_ICALL(0x3615FCC4u); /* 0x36058FBA: call 0x3615fcc4 */ /* not lifted */ 15463 RECOMP_FLAGS_IN(); 15464 eax = MEM32(esi + 0x8); /* 0x36058FBF: mov eax, dword ptr [esi + 8] */ 15465 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15466 edi = 0; /* 0x36058FC2: xor edi, edi */ 15467 _cf = 0; 15468 _flag_k = FK_TEST; 15469 PUSH32(esp, eax); /* 0x36058FC4: push eax */ 15470 MEM32(esi + 0x4) = edi; /* 0x36058FC5: mov dword ptr [esi + 4], edi */ 15471 MEM32(esi + 0x10) = edi; /* 0x36058FC8: mov dword ptr [esi + 0x10], edi */ 15472 RECOMP_ICALL(0x3615FCC4u); /* 0x36058FCB: call 0x3615fcc4 */ /* not lifted */ 15473 RECOMP_FLAGS_IN(); 15474 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15475 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15476 esp = esp + 8; /* 0x36058FD0: add esp, 8 */ 15477 _flag_k = FK_ADD; 15478 MEM32(esi + 0x8) = edi; /* 0x36058FD3: mov dword ptr [esi + 8], edi */ 15479 edi = POP32_VAL(esp); /* 0x36058FD6: pop edi */ 15480 esi = POP32_VAL(esp); /* 0x36058FD7: pop esi */ 15481 ebx = POP32_VAL(esp); /* 0x36058FD8: pop ebx */ 15482 esp = ebp; /* 0x36058FD9: mov esp, ebp */ 15483 ebp = POP32_VAL(esp); /* 0x36058FDB: pop ebp */ 15484 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36058FDC: ret */ 15485 RECOMP_REGS_OUT(); 15486 } 15487 15488 void sub_36058FE0(void) { 15489 int _fpu_cmp = 0; 15490 uint32_t _cf = 0; 15491 int _df = 1; 15492 uint32_t _flag_k = FK_NONE; 15493 uint32_t _flag_a = 0, _flag_b = 0; 15494 uint32_t _itail_tgt = 0; 15495 RECOMP_REGS_LOCALS 15496 RECOMP_ENTER(0x36058FE0u); 15497 15498 L_36058FE0: 15499 PUSH32(esp, ebp); /* 0x36058FE0: push ebp */ 15500 ebp = esp; /* 0x36058FE1: mov ebp, esp */ 15501 PUSH32(esp, 0xFFFFFFFFu); /* 0x36058FE3: push -1 */ 15502 PUSH32(esp, 0x36164848u); /* 0x36058FE5: push 0x36164848 */ 15503 eax = MEM32(FS_BASE + (0)); /* 0x36058FEA: mov eax, dword ptr fs:[0] */ 15504 PUSH32(esp, eax); /* 0x36058FF0: push eax */ 15505 MEM32(FS_BASE + (0)) = esp; /* 0x36058FF1: mov dword ptr fs:[0], esp */ 15506 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 15507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15508 esp = esp - 0x2Cu; /* 0x36058FF8: sub esp, 0x2c */ 15509 _flag_k = FK_CMP; 15510 PUSH32(esp, ebx); /* 0x36058FFB: push ebx */ 15511 PUSH32(esp, esi); /* 0x36058FFC: push esi */ 15512 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15513 ebx = 0; /* 0x36058FFD: xor ebx, ebx */ 15514 _cf = 0; 15515 _flag_k = FK_TEST; 15516 PUSH32(esp, edi); /* 0x36058FFF: push edi */ 15517 edi = ecx; /* 0x36059000: mov edi, ecx */ 15518 MEM32(ebp + (-0x10)) = ebx; /* 0x36059002: mov dword ptr [ebp - 0x10], ebx */ 15519 L_36059005: 15520 esi = MEM32(edi + 0x10); /* 0x36059005: mov esi, dword ptr [edi + 0x10] */ 15521 eax = MEM32(esi + 0x4); /* 0x36059008: mov eax, dword ptr [esi + 4] */ 15522 /* test eax, eax */ /* 0x3605900B: test eax, eax */ 15523 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15524 _cf = 0; 15525 _flag_k = FK_TEST; 15526 if (TEST_Z(_flag_a, _flag_b)) goto L_3605905E; /* 0x3605900D: je 0x3605905e */ 15527 L_3605900F: 15528 ecx = MEM32(esi + 0x8); /* 0x3605900F: mov ecx, dword ptr [esi + 8] */ 15529 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 15530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15531 ecx = ecx - eax; /* 0x36059012: sub ecx, eax */ 15532 _flag_k = FK_CMP; 15533 eax = 0x2AAAAAABu; /* 0x36059014: mov eax, 0x2aaaaaab */ 15534 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36059019: imul ecx */ 15535 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15536 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15537 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3605901B: sar edx, 1 */ 15538 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15539 edx = (uint32_t)((int32_t)edx >> 1u); 15540 eax = edx; /* 0x3605901D: mov eax, edx */ 15541 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3605901F: shr eax, 0x1f */ 15542 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15543 eax = eax >> 31u; /* 0x3605901F: shr eax, 0x1f */ 15544 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 15545 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15546 edx = edx + eax; /* 0x36059022: add edx, eax */ 15547 _flag_k = FK_ADD; 15548 /* cmp ebx, edx */ /* 0x36059024: cmp ebx, edx */ 15549 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 15550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15551 _flag_k = FK_CMP; 15552 if (CMP_AE(_flag_a, _flag_b)) goto L_3605905E; /* 0x36059026: jae 0x3605905e */ 15553 L_36059028: 15554 ecx = MEM32(esi + 0x4); /* 0x36059028: mov ecx, dword ptr [esi + 4] */ 15555 esi = MEM32(ebp + (-0x10)); /* 0x3605902B: mov esi, dword ptr [ebp - 0x10] */ 15556 edx = MEM32(ecx + esi + 0x4); /* 0x3605902E: mov edx, dword ptr [ecx + esi + 4] */ 15557 eax = ebp + (-0x24); /* 0x36059032: lea eax, [ebp - 0x24] */ 15558 PUSH32(esp, eax); /* 0x36059035: push eax */ 15559 ecx = ebp + (-0x1C); /* 0x36059036: lea ecx, [ebp - 0x1c] */ 15560 PUSH32(esp, ecx); /* 0x36059039: push ecx */ 15561 ecx = edi + 0x14; /* 0x3605903A: lea ecx, [edi + 0x14] */ 15562 MEM32(ebp + (-0x24)) = edx; /* 0x3605903D: mov dword ptr [ebp - 0x24], edx */ 15563 MEM32(ebp + (-0x20)) = 0; /* 0x36059040: mov dword ptr [ebp - 0x20], 0 */ 15564 RECOMP_ICALL(0x360595A0u); /* 0x36059047: call 0x360595a0 */ /* not lifted */ 15565 RECOMP_FLAGS_IN(); 15566 eax = MEM32(eax); /* 0x3605904C: mov eax, dword ptr [eax] */ 15567 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 15568 ebx = ebx + 1; /* 0x3605904E: inc ebx */ 15569 _flag_k = FK_INC; 15570 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 15571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15572 esi = esi + 0xCu; /* 0x3605904F: add esi, 0xc */ 15573 _flag_k = FK_ADD; 15574 MEM32(eax + 0x10) = 0; /* 0x36059052: mov dword ptr [eax + 0x10], 0 */ 15575 MEM32(ebp + (-0x10)) = esi; /* 0x36059059: mov dword ptr [ebp - 0x10], esi */ 15576 RECOMP_BACKEDGE(); 15577 goto L_36059005; /* 0x3605905C: jmp 0x36059005 */ 15578 L_3605905E: 15579 edx = edi + 0x14; /* 0x3605905E: lea edx, [edi + 0x14] */ 15580 PUSH32(esp, edx); /* 0x36059061: push edx */ 15581 ecx = ebp + (-0x38); /* 0x36059062: lea ecx, [ebp - 0x38] */ 15582 RECOMP_ICALL(0x36059450u); /* 0x36059065: call 0x36059450 */ /* not lifted */ 15583 RECOMP_FLAGS_IN(); 15584 eax = MEM32(ebp + (-0x34)); /* 0x3605906A: mov eax, dword ptr [ebp - 0x34] */ 15585 esi = MEM32(eax); /* 0x3605906D: mov esi, dword ptr [eax] */ 15586 /* cmp esi, eax */ /* 0x3605906F: cmp esi, eax */ 15587 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 15588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15589 _flag_k = FK_CMP; 15590 MEM32(ebp + (-0x4)) = 0; /* 0x36059071: mov dword ptr [ebp - 4], 0 */ 15591 MEM32(ebp + (-0x10)) = eax; /* 0x36059078: mov dword ptr [ebp - 0x10], eax */ 15592 if (CMP_EQ(_flag_a, _flag_b)) goto L_360590DA; /* 0x3605907B: je 0x360590da */ 15593 L_3605907D: 15594 ebx = MEM32(0x36170224); /* 0x3605907D: mov ebx, dword ptr [0x36170224] */ 15595 L_36059083: 15596 eax = MEM32(esi + 0xC); /* 0x36059083: mov eax, dword ptr [esi + 0xc] */ 15597 MEM32(ebp + (-0x24)) = 0x000F6954u; /* 0x36059086: mov dword ptr [ebp - 0x24], 0xf6954 */ 15598 MEM32(ebp + (-0x20)) = eax; /* 0x3605908D: mov dword ptr [ebp - 0x20], eax */ 15599 RECOMP_ICALL(ebx); /* 0x36059090: call ebx */ 15600 RECOMP_FLAGS_IN(); 15601 edx = MEM32(eax); /* 0x36059092: mov edx, dword ptr [eax] */ 15602 PUSH32(esp, 0); /* 0x36059094: push 0 */ 15603 PUSH32(esp, 3); /* 0x36059096: push 3 */ 15604 PUSH32(esp, 0); /* 0x36059098: push 0 */ 15605 PUSH32(esp, edi); /* 0x3605909A: push edi */ 15606 ecx = ebp + (-0x24); /* 0x3605909B: lea ecx, [ebp - 0x24] */ 15607 PUSH32(esp, ecx); /* 0x3605909E: push ecx */ 15608 ecx = eax; /* 0x3605909F: mov ecx, eax */ 15609 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x360590A1: call dword ptr [edx + 0x10] */ 15610 RECOMP_FLAGS_IN(); 15611 eax = MEM32(esi + 0x8); /* 0x360590A4: mov eax, dword ptr [esi + 8] */ 15612 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x360590A7: mov cl, byte ptr [eax + 0x15] */ 15613 /* test LO8(ecx), LO8(ecx) */ /* 0x360590AA: test cl, cl */ 15614 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 15615 _cf = 0; 15616 _flag_k = FK_NARROW(FK_TEST, 24); 15617 if (TEST_NZ(_flag_a, _flag_b)) goto L_360590B9; /* 0x360590AC: jne 0x360590b9 */ 15618 L_360590AE: 15619 PUSH32(esp, eax); /* 0x360590AE: push eax */ 15620 RECOMP_ICALL(0x3614FC90u); /* 0x360590AF: call 0x3614fc90 */ /* not lifted */ 15621 RECOMP_FLAGS_IN(); 15622 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15623 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15624 esp = esp + 4; /* 0x360590B4: add esp, 4 */ 15625 _flag_k = FK_ADD; 15626 goto L_360590D0; /* 0x360590B7: jmp 0x360590d0 */ 15627 L_360590B9: 15628 eax = MEM32(esi + 0x4); /* 0x360590B9: mov eax, dword ptr [esi + 4] */ 15629 /* cmp esi, MEM32(eax + 0x8) */ /* 0x360590BC: cmp esi, dword ptr [eax + 8] */ 15630 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 15631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15632 _flag_k = FK_CMP; 15633 if (CMP_NE(_flag_a, _flag_b)) goto L_360590CB; /* 0x360590BF: jne 0x360590cb */ 15634 L_360590C1: 15635 esi = eax; /* 0x360590C1: mov esi, eax */ 15636 eax = MEM32(eax + 0x4); /* 0x360590C3: mov eax, dword ptr [eax + 4] */ 15637 /* cmp esi, MEM32(eax + 0x8) */ /* 0x360590C6: cmp esi, dword ptr [eax + 8] */ 15638 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 15639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15640 _flag_k = FK_CMP; 15641 RECOMP_BACKEDGE(); 15642 if (CMP_EQ(_flag_a, _flag_b)) goto L_360590C1; /* 0x360590C9: je 0x360590c1 */ 15643 L_360590CB: 15644 /* cmp MEM32(esi + 0x8), eax */ /* 0x360590CB: cmp dword ptr [esi + 8], eax */ 15645 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 15646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15647 _flag_k = FK_CMP; 15648 if (CMP_EQ(_flag_a, _flag_b)) goto L_360590D2; /* 0x360590CE: je 0x360590d2 */ 15649 L_360590D0: 15650 esi = eax; /* 0x360590D0: mov esi, eax */ 15651 L_360590D2: 15652 /* cmp esi, MEM32(ebp + (-0x10)) */ /* 0x360590D2: cmp esi, dword ptr [ebp - 0x10] */ 15653 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 15654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15655 _flag_k = FK_CMP; 15656 RECOMP_BACKEDGE(); 15657 if (CMP_NE(_flag_a, _flag_b)) goto L_36059083; /* 0x360590D5: jne 0x36059083 */ 15658 L_360590D7: 15659 eax = MEM32(ebp + (-0x34)); /* 0x360590D7: mov eax, dword ptr [ebp - 0x34] */ 15660 L_360590DA: 15661 edx = MEM32(ebp + (-0x28)); /* 0x360590DA: mov edx, dword ptr [ebp - 0x28] */ 15662 /* test edx, edx */ /* 0x360590DD: test edx, edx */ 15663 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 15664 _cf = 0; 15665 _flag_k = FK_TEST; 15666 esi = eax; /* 0x360590DF: mov esi, eax */ 15667 ecx = MEM32(esi); /* 0x360590E1: mov ecx, dword ptr [esi] */ 15668 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360590E3: mov dword ptr [ebp - 4], 0xffffffff */ 15669 MEM32(ebp + (-0x10)) = ecx; /* 0x360590EA: mov dword ptr [ebp - 0x10], ecx */ 15670 if (TEST_Z(_flag_a, _flag_b)) goto L_3605912E; /* 0x360590ED: je 0x3605912e */ 15671 L_360590EF: 15672 edx = ecx; /* 0x360590EF: mov edx, ecx */ 15673 /* cmp ecx, edx */ /* 0x360590F1: cmp ecx, edx */ 15674 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 15675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15676 _flag_k = FK_CMP; 15677 if (CMP_NE(_flag_a, _flag_b)) goto L_3605912E; /* 0x360590F3: jne 0x3605912e */ 15678 L_360590F5: 15679 /* cmp esi, esi */ /* 0x360590F5: cmp esi, esi */ 15680 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 15681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15682 _flag_k = FK_CMP; 15683 if (CMP_NE(_flag_a, _flag_b)) goto L_3605912E; /* 0x360590F7: jne 0x3605912e */ 15684 L_360590F9: 15685 edx = MEM32(eax + 0x4); /* 0x360590F9: mov edx, dword ptr [eax + 4] */ 15686 PUSH32(esp, edx); /* 0x360590FC: push edx */ 15687 ecx = ebp + (-0x38); /* 0x360590FD: lea ecx, [ebp - 0x38] */ 15688 RECOMP_ICALL(0x36059710u); /* 0x36059100: call 0x36059710 */ /* not lifted */ 15689 RECOMP_FLAGS_IN(); 15690 eax = MEM32(ebp + (-0x34)); /* 0x36059105: mov eax, dword ptr [ebp - 0x34] */ 15691 ecx = MEM32(ebp + (-0x30)); /* 0x36059108: mov ecx, dword ptr [ebp - 0x30] */ 15692 MEM32(eax + 0x4) = ecx; /* 0x3605910B: mov dword ptr [eax + 4], ecx */ 15693 eax = MEM32(ebp + (-0x34)); /* 0x3605910E: mov eax, dword ptr [ebp - 0x34] */ 15694 MEM32(ebp + (-0x28)) = 0; /* 0x36059111: mov dword ptr [ebp - 0x28], 0 */ 15695 MEM32(eax) = eax; /* 0x36059118: mov dword ptr [eax], eax */ 15696 eax = MEM32(ebp + (-0x34)); /* 0x3605911A: mov eax, dword ptr [ebp - 0x34] */ 15697 edx = ebp + (-0x14); /* 0x3605911D: lea edx, [ebp - 0x14] */ 15698 PUSH32(esp, edx); /* 0x36059120: push edx */ 15699 ecx = ebp + (-0x38); /* 0x36059121: lea ecx, [ebp - 0x38] */ 15700 MEM32(eax + 0x8) = eax; /* 0x36059124: mov dword ptr [eax + 8], eax */ 15701 RECOMP_ICALL(0x3614FC30u); /* 0x36059127: call 0x3614fc30 */ /* not lifted */ 15702 RECOMP_FLAGS_IN(); 15703 goto L_36059154; /* 0x3605912C: jmp 0x36059154 */ 15704 L_3605912E: 15705 /* cmp ecx, esi */ /* 0x3605912E: cmp ecx, esi */ 15706 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 15707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15708 _flag_k = FK_CMP; 15709 if (CMP_EQ(_flag_a, _flag_b)) goto L_36059157; /* 0x36059130: je 0x36059157 */ 15710 L_36059132: 15711 PUSH32(esp, 0); /* 0x36059132: push 0 */ 15712 eax = ebp + (-0x18); /* 0x36059134: lea eax, [ebp - 0x18] */ 15713 PUSH32(esp, eax); /* 0x36059137: push eax */ 15714 ecx = ebp + (-0x10); /* 0x36059138: lea ecx, [ebp - 0x10] */ 15715 RECOMP_ICALL(0x3607CC50u); /* 0x3605913B: call 0x3607cc50 */ /* not lifted */ 15716 RECOMP_FLAGS_IN(); 15717 ecx = MEM32(eax); /* 0x36059140: mov ecx, dword ptr [eax] */ 15718 PUSH32(esp, ecx); /* 0x36059142: push ecx */ 15719 edx = ebp + (-0x20); /* 0x36059143: lea edx, [ebp - 0x20] */ 15720 PUSH32(esp, edx); /* 0x36059146: push edx */ 15721 ecx = ebp + (-0x38); /* 0x36059147: lea ecx, [ebp - 0x38] */ 15722 RECOMP_ICALL(0x360588E0u); /* 0x3605914A: call 0x360588e0 */ /* not lifted */ 15723 RECOMP_FLAGS_IN(); 15724 /* cmp MEM32(ebp + (-0x10)), esi */ /* 0x3605914F: cmp dword ptr [ebp - 0x10], esi */ 15725 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(esi); 15726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15727 _flag_k = FK_CMP; 15728 RECOMP_BACKEDGE(); 15729 if (CMP_NE(_flag_a, _flag_b)) goto L_36059132; /* 0x36059152: jne 0x36059132 */ 15730 L_36059154: 15731 eax = MEM32(ebp + (-0x34)); /* 0x36059154: mov eax, dword ptr [ebp - 0x34] */ 15732 L_36059157: 15733 PUSH32(esp, eax); /* 0x36059157: push eax */ 15734 RECOMP_ICALL(0x3615FCC4u); /* 0x36059158: call 0x3615fcc4 */ /* not lifted */ 15735 RECOMP_FLAGS_IN(); 15736 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15737 eax = 0; /* 0x3605915D: xor eax, eax */ 15738 _cf = 0; 15739 _flag_k = FK_TEST; 15740 MEM32(ebp + (-0x34)) = eax; /* 0x3605915F: mov dword ptr [ebp - 0x34], eax */ 15741 MEM32(ebp + (-0x28)) = eax; /* 0x36059162: mov dword ptr [ebp - 0x28], eax */ 15742 eax = MEM32(ebp + (-0x30)); /* 0x36059165: mov eax, dword ptr [ebp - 0x30] */ 15743 PUSH32(esp, eax); /* 0x36059168: push eax */ 15744 RECOMP_ICALL(0x3615FCC4u); /* 0x36059169: call 0x3615fcc4 */ /* not lifted */ 15745 RECOMP_FLAGS_IN(); 15746 ecx = MEM32(ebp + (-0xC)); /* 0x3605916E: mov ecx, dword ptr [ebp - 0xc] */ 15747 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15748 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15749 esp = esp + 8; /* 0x36059171: add esp, 8 */ 15750 _flag_k = FK_ADD; 15751 edi = POP32_VAL(esp); /* 0x36059174: pop edi */ 15752 esi = POP32_VAL(esp); /* 0x36059175: pop esi */ 15753 ebx = POP32_VAL(esp); /* 0x36059176: pop ebx */ 15754 MEM32(FS_BASE + (0)) = ecx; /* 0x36059177: mov dword ptr fs:[0], ecx */ 15755 esp = ebp; /* 0x3605917E: mov esp, ebp */ 15756 ebp = POP32_VAL(esp); /* 0x36059180: pop ebp */ 15757 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36059181: ret */ 15758 RECOMP_REGS_OUT(); 15759 } 15760 15761 void sub_36059190(void) { 15762 int _fpu_cmp = 0; 15763 uint32_t _cf = 0; 15764 int _df = 1; 15765 uint32_t _flag_k = FK_NONE; 15766 uint32_t _flag_a = 0, _flag_b = 0; 15767 uint32_t _itail_tgt = 0; 15768 RECOMP_REGS_LOCALS 15769 RECOMP_ENTER(0x36059190u); 15770 15771 L_36059190: 15772 PUSH32(esp, ebp); /* 0x36059190: push ebp */ 15773 ebp = esp; /* 0x36059191: mov ebp, esp */ 15774 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15776 esp = esp - 8; /* 0x36059193: sub esp, 8 */ 15777 _flag_k = FK_CMP; 15778 PUSH32(esp, esi); /* 0x36059196: push esi */ 15779 esi = ecx; /* 0x36059197: mov esi, ecx */ 15780 eax = esi + 0x8; /* 0x36059199: lea eax, [esi + 8] */ 15781 PUSH32(esp, eax); /* 0x3605919C: push eax */ 15782 MEM32(ebp + (-0x4)) = esi; /* 0x3605919D: mov dword ptr [ebp - 4], esi */ 15783 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360591A0: call dword ptr [0x3616ff70] */ 15784 RECOMP_FLAGS_IN(); 15785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15787 esp = esp + 4; /* 0x360591A6: add esp, 4 */ 15788 _flag_k = FK_ADD; 15789 /* test eax, eax */ /* 0x360591A9: test eax, eax */ 15790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15791 _cf = 0; 15792 _flag_k = FK_TEST; 15793 if (TEST_Z(_flag_a, _flag_b)) goto L_36059216; /* 0x360591AB: je 0x36059216 */ 15794 L_360591AD: 15795 PUSH32(esp, ebx); /* 0x360591AD: push ebx */ 15796 PUSH32(esp, edi); /* 0x360591AE: push edi */ 15797 ecx = eax; /* 0x360591AF: mov ecx, eax */ 15798 RECOMP_ICALL(MEM32(0x3616FFE8)); /* 0x360591B1: call dword ptr [0x3616ffe8] */ 15799 RECOMP_FLAGS_IN(); 15800 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15801 edi = 0; /* 0x360591B7: xor edi, edi */ 15802 _cf = 0; 15803 _flag_k = FK_TEST; 15804 MEM32(ebp + (-0x8)) = eax; /* 0x360591B9: mov dword ptr [ebp - 8], eax */ 15805 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15806 ebx = 0; /* 0x360591BC: xor ebx, ebx */ 15807 _cf = 0; 15808 _flag_k = FK_TEST; 15809 L_360591BE: 15810 esi = MEM32(esi + 0x10); /* 0x360591BE: mov esi, dword ptr [esi + 0x10] */ 15811 eax = MEM32(esi + 0x4); /* 0x360591C1: mov eax, dword ptr [esi + 4] */ 15812 /* test eax, eax */ /* 0x360591C4: test eax, eax */ 15813 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15814 _cf = 0; 15815 _flag_k = FK_TEST; 15816 if (TEST_Z(_flag_a, _flag_b)) goto L_36059201; /* 0x360591C6: je 0x36059201 */ 15817 L_360591C8: 15818 ecx = MEM32(esi + 0x8); /* 0x360591C8: mov ecx, dword ptr [esi + 8] */ 15819 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 15820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15821 ecx = ecx - eax; /* 0x360591CB: sub ecx, eax */ 15822 _flag_k = FK_CMP; 15823 eax = 0x2AAAAAABu; /* 0x360591CD: mov eax, 0x2aaaaaab */ 15824 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x360591D2: imul ecx */ 15825 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15826 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15827 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x360591D4: sar edx, 1 */ 15828 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15829 edx = (uint32_t)((int32_t)edx >> 1u); 15830 ecx = edx; /* 0x360591D6: mov ecx, edx */ 15831 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x360591D8: shr ecx, 0x1f */ 15832 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15833 ecx = ecx >> 31u; /* 0x360591D8: shr ecx, 0x1f */ 15834 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 15835 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15836 edx = edx + ecx; /* 0x360591DB: add edx, ecx */ 15837 _flag_k = FK_ADD; 15838 /* cmp edi, edx */ /* 0x360591DD: cmp edi, edx */ 15839 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 15840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15841 _flag_k = FK_CMP; 15842 if (CMP_AE(_flag_a, _flag_b)) goto L_36059201; /* 0x360591DF: jae 0x36059201 */ 15843 L_360591E1: 15844 edx = MEM32(esi + 0x4); /* 0x360591E1: mov edx, dword ptr [esi + 4] */ 15845 ecx = MEM32(edx + ebx + 0x4); /* 0x360591E4: mov ecx, dword ptr [edx + ebx + 4] */ 15846 eax = edx + ebx; /* 0x360591E8: lea eax, [edx + ebx] */ 15847 edx = MEM32(eax); /* 0x360591EB: mov edx, dword ptr [eax] */ 15848 PUSH32(esp, ecx); /* 0x360591ED: push ecx */ 15849 ecx = MEM32(ebp + (-0x8)); /* 0x360591EE: mov ecx, dword ptr [ebp - 8] */ 15850 PUSH32(esp, edx); /* 0x360591F1: push edx */ 15851 RECOMP_ICALL(MEM32(0x3616F654)); /* 0x360591F2: call dword ptr [0x3616f654] */ 15852 RECOMP_FLAGS_IN(); 15853 esi = MEM32(ebp + (-0x4)); /* 0x360591F8: mov esi, dword ptr [ebp - 4] */ 15854 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 15855 edi = edi + 1; /* 0x360591FB: inc edi */ 15856 _flag_k = FK_INC; 15857 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 15858 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15859 ebx = ebx + 0xCu; /* 0x360591FC: add ebx, 0xc */ 15860 _flag_k = FK_ADD; 15861 RECOMP_BACKEDGE(); 15862 goto L_360591BE; /* 0x360591FF: jmp 0x360591be */ 15863 L_36059201: 15864 eax = MEM32(ebp + (-0x4)); /* 0x36059201: mov eax, dword ptr [ebp - 4] */ 15865 ecx = MEM32(eax + 0x10); /* 0x36059204: mov ecx, dword ptr [eax + 0x10] */ 15866 PUSH32(esp, ecx); /* 0x36059207: push ecx */ 15867 ecx = MEM32(ebp + (-0x8)); /* 0x36059208: mov ecx, dword ptr [ebp - 8] */ 15868 RECOMP_ICALL(MEM32(0x3616F650)); /* 0x3605920B: call dword ptr [0x3616f650] */ 15869 RECOMP_FLAGS_IN(); 15870 esi = MEM32(ebp + (-0x4)); /* 0x36059211: mov esi, dword ptr [ebp - 4] */ 15871 edi = POP32_VAL(esp); /* 0x36059214: pop edi */ 15872 ebx = POP32_VAL(esp); /* 0x36059215: pop ebx */ 15873 L_36059216: 15874 ecx = esi; /* 0x36059216: mov ecx, esi */ 15875 RECOMP_ICALL(0x36059230u); /* 0x36059218: call 0x36059230 */ /* not lifted */ 15876 RECOMP_FLAGS_IN(); 15877 esi = POP32_VAL(esp); /* 0x3605921D: pop esi */ 15878 esp = ebp; /* 0x3605921E: mov esp, ebp */ 15879 ebp = POP32_VAL(esp); /* 0x36059220: pop ebp */ 15880 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36059221: ret */ 15881 RECOMP_REGS_OUT(); 15882 } 15883 15884 void sub_36059230(void) { 15885 int _fpu_cmp = 0; 15886 uint32_t _cf = 0; 15887 int _df = 1; 15888 uint32_t _flag_k = FK_NONE; 15889 uint32_t _flag_a = 0, _flag_b = 0; 15890 uint32_t _itail_tgt = 0; 15891 RECOMP_REGS_LOCALS 15892 RECOMP_ENTER(0x36059230u); 15893 15894 L_36059230: 15895 PUSH32(esp, ebp); /* 0x36059230: push ebp */ 15896 ebp = esp; /* 0x36059231: mov ebp, esp */ 15897 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 15898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15899 esp = esp - 0xCu; /* 0x36059233: sub esp, 0xc */ 15900 _flag_k = FK_CMP; 15901 PUSH32(esp, ebx); /* 0x36059236: push ebx */ 15902 PUSH32(esp, esi); /* 0x36059237: push esi */ 15903 ebx = ecx; /* 0x36059238: mov ebx, ecx */ 15904 esi = MEM32(ebx + 0x10); /* 0x3605923A: mov esi, dword ptr [ebx + 0x10] */ 15905 PUSH32(esp, edi); /* 0x3605923D: push edi */ 15906 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15907 edi = 0; /* 0x3605923E: xor edi, edi */ 15908 _cf = 0; 15909 _flag_k = FK_TEST; 15910 /* cmp esi, edi */ /* 0x36059240: cmp esi, edi */ 15911 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 15912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15913 _flag_k = FK_CMP; 15914 MEM32(ebp + (-0x8)) = ebx; /* 0x36059242: mov dword ptr [ebp - 8], ebx */ 15915 if (CMP_EQ(_flag_a, _flag_b)) goto L_36059271; /* 0x36059245: je 0x36059271 */ 15916 L_36059247: 15917 eax = MEM32(esi + 0x8); /* 0x36059247: mov eax, dword ptr [esi + 8] */ 15918 ecx = MEM32(esi + 0x4); /* 0x3605924A: mov ecx, dword ptr [esi + 4] */ 15919 PUSH32(esp, eax); /* 0x3605924D: push eax */ 15920 PUSH32(esp, ecx); /* 0x3605924E: push ecx */ 15921 ecx = esi; /* 0x3605924F: mov ecx, esi */ 15922 RECOMP_ICALL(0x3610ED60u); /* 0x36059251: call 0x3610ed60 */ /* not lifted */ 15923 RECOMP_FLAGS_IN(); 15924 edx = MEM32(esi + 0x4); /* 0x36059256: mov edx, dword ptr [esi + 4] */ 15925 PUSH32(esp, edx); /* 0x36059259: push edx */ 15926 RECOMP_ICALL(0x3615FCC4u); /* 0x3605925A: call 0x3615fcc4 */ /* not lifted */ 15927 RECOMP_FLAGS_IN(); 15928 PUSH32(esp, esi); /* 0x3605925F: push esi */ 15929 MEM32(esi + 0x4) = edi; /* 0x36059260: mov dword ptr [esi + 4], edi */ 15930 MEM32(esi + 0x8) = edi; /* 0x36059263: mov dword ptr [esi + 8], edi */ 15931 MEM32(esi + 0xC) = edi; /* 0x36059266: mov dword ptr [esi + 0xc], edi */ 15932 RECOMP_ICALL(0x3615FCC4u); /* 0x36059269: call 0x3615fcc4 */ /* not lifted */ 15933 RECOMP_FLAGS_IN(); 15934 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15936 esp = esp + 8; /* 0x3605926E: add esp, 8 */ 15937 _flag_k = FK_ADD; 15938 L_36059271: 15939 MEM32(ebx + 0x10) = edi; /* 0x36059271: mov dword ptr [ebx + 0x10], edi */ 15940 edi = MEM32(ebx + 0x18); /* 0x36059274: mov edi, dword ptr [ebx + 0x18] */ 15941 esi = MEM32(edi); /* 0x36059277: mov esi, dword ptr [edi] */ 15942 /* cmp esi, edi */ /* 0x36059279: cmp esi, edi */ 15943 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 15944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15945 _flag_k = FK_CMP; 15946 if (CMP_EQ(_flag_a, _flag_b)) goto L_360592C6; /* 0x3605927B: je 0x360592c6 */ 15947 L_3605927D: 15948 ecx = MEM32(esi + 0x10); /* 0x3605927D: mov ecx, dword ptr [esi + 0x10] */ 15949 eax = MEM32(ecx); /* 0x36059280: mov eax, dword ptr [ecx] */ 15950 PUSH32(esp, 0); /* 0x36059282: push 0 */ 15951 RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x36059284: call dword ptr [eax + 0x28] */ 15952 RECOMP_FLAGS_IN(); 15953 eax = MEM32(esi + 0x8); /* 0x36059287: mov eax, dword ptr [esi + 8] */ 15954 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3605928A: mov cl, byte ptr [eax + 0x15] */ 15955 /* test LO8(ecx), LO8(ecx) */ /* 0x3605928D: test cl, cl */ 15956 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 15957 _cf = 0; 15958 _flag_k = FK_NARROW(FK_TEST, 24); 15959 if (TEST_NZ(_flag_a, _flag_b)) goto L_360592A9; /* 0x3605928F: jne 0x360592a9 */ 15960 L_36059291: 15961 esi = eax; /* 0x36059291: mov esi, eax */ 15962 eax = MEM32(esi); /* 0x36059293: mov eax, dword ptr [esi] */ 15963 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x36059295: mov cl, byte ptr [eax + 0x15] */ 15964 /* test LO8(ecx), LO8(ecx) */ /* 0x36059298: test cl, cl */ 15965 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 15966 _cf = 0; 15967 _flag_k = FK_NARROW(FK_TEST, 24); 15968 if (TEST_NZ(_flag_a, _flag_b)) goto L_360592C2; /* 0x3605929A: jne 0x360592c2 */ 15969 L_3605929C: 15970 esi = eax; /* 0x3605929C: mov esi, eax */ 15971 eax = MEM32(esi); /* 0x3605929E: mov eax, dword ptr [esi] */ 15972 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x360592A0: mov cl, byte ptr [eax + 0x15] */ 15973 /* test LO8(ecx), LO8(ecx) */ /* 0x360592A3: test cl, cl */ 15974 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 15975 _cf = 0; 15976 _flag_k = FK_NARROW(FK_TEST, 24); 15977 RECOMP_BACKEDGE(); 15978 if (TEST_Z(_flag_a, _flag_b)) goto L_3605929C; /* 0x360592A5: je 0x3605929c */ 15979 L_360592A7: 15980 goto L_360592C2; /* 0x360592A7: jmp 0x360592c2 */ 15981 L_360592A9: 15982 eax = MEM32(esi + 0x4); /* 0x360592A9: mov eax, dword ptr [esi + 4] */ 15983 /* cmp esi, MEM32(eax + 0x8) */ /* 0x360592AC: cmp esi, dword ptr [eax + 8] */ 15984 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 15985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15986 _flag_k = FK_CMP; 15987 if (CMP_NE(_flag_a, _flag_b)) goto L_360592BB; /* 0x360592AF: jne 0x360592bb */ 15988 L_360592B1: 15989 esi = eax; /* 0x360592B1: mov esi, eax */ 15990 eax = MEM32(eax + 0x4); /* 0x360592B3: mov eax, dword ptr [eax + 4] */ 15991 /* cmp esi, MEM32(eax + 0x8) */ /* 0x360592B6: cmp esi, dword ptr [eax + 8] */ 15992 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 15993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15994 _flag_k = FK_CMP; 15995 RECOMP_BACKEDGE(); 15996 if (CMP_EQ(_flag_a, _flag_b)) goto L_360592B1; /* 0x360592B9: je 0x360592b1 */ 15997 L_360592BB: 15998 /* cmp MEM32(esi + 0x8), eax */ /* 0x360592BB: cmp dword ptr [esi + 8], eax */ 15999 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 16000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16001 _flag_k = FK_CMP; 16002 if (CMP_EQ(_flag_a, _flag_b)) goto L_360592C2; /* 0x360592BE: je 0x360592c2 */ 16003 L_360592C0: 16004 esi = eax; /* 0x360592C0: mov esi, eax */ 16005 L_360592C2: 16006 /* cmp esi, edi */ /* 0x360592C2: cmp esi, edi */ 16007 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 16008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16009 _flag_k = FK_CMP; 16010 RECOMP_BACKEDGE(); 16011 if (CMP_NE(_flag_a, _flag_b)) goto L_3605927D; /* 0x360592C4: jne 0x3605927d */ 16012 L_360592C6: 16013 edi = MEM32(ebx + 0x18); /* 0x360592C6: mov edi, dword ptr [ebx + 0x18] */ 16014 ecx = MEM32(ebx + 0x24); /* 0x360592C9: mov ecx, dword ptr [ebx + 0x24] */ 16015 /* test ecx, ecx */ /* 0x360592CC: test ecx, ecx */ 16016 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 16017 _cf = 0; 16018 _flag_k = FK_TEST; 16019 eax = MEM32(edi); /* 0x360592CE: mov eax, dword ptr [edi] */ 16020 esi = ebx + 0x14; /* 0x360592D0: lea esi, [ebx + 0x14] */ 16021 MEM32(ebp + (-0x4)) = eax; /* 0x360592D3: mov dword ptr [ebp - 4], eax */ 16022 if (TEST_Z(_flag_a, _flag_b)) goto L_36059328; /* 0x360592D6: je 0x36059328 */ 16023 L_360592D8: 16024 ecx = eax; /* 0x360592D8: mov ecx, eax */ 16025 /* cmp eax, ecx */ /* 0x360592DA: cmp eax, ecx */ 16026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 16027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16028 _flag_k = FK_CMP; 16029 if (CMP_NE(_flag_a, _flag_b)) goto L_36059328; /* 0x360592DC: jne 0x36059328 */ 16030 L_360592DE: 16031 /* cmp edi, edi */ /* 0x360592DE: cmp edi, edi */ 16032 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 16033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16034 _flag_k = FK_CMP; 16035 if (CMP_NE(_flag_a, _flag_b)) goto L_36059328; /* 0x360592E0: jne 0x36059328 */ 16036 L_360592E2: 16037 ebx = MEM32(edi + 0x4); /* 0x360592E2: mov ebx, dword ptr [edi + 4] */ 16038 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x360592E5: cmp ebx, dword ptr [esi + 8] */ 16039 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 16040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16041 _flag_k = FK_CMP; 16042 edi = ebx; /* 0x360592E8: mov edi, ebx */ 16043 if (CMP_EQ(_flag_a, _flag_b)) goto L_3605930B; /* 0x360592EA: je 0x3605930b */ 16044 L_360592EC: 16045 ecx = MEM32(edi + 0x8); /* 0x360592EC: mov ecx, dword ptr [edi + 8] */ 16046 PUSH32(esp, ecx); /* 0x360592EF: push ecx */ 16047 ecx = esi; /* 0x360592F0: mov ecx, esi */ 16048 RECOMP_ICALL(0x36059710u); /* 0x360592F2: call 0x36059710 */ /* not lifted */ 16049 RECOMP_FLAGS_IN(); 16050 edi = MEM32(edi); /* 0x360592F7: mov edi, dword ptr [edi] */ 16051 PUSH32(esp, ebx); /* 0x360592F9: push ebx */ 16052 RECOMP_ICALL(0x3615FCC4u); /* 0x360592FA: call 0x3615fcc4 */ /* not lifted */ 16053 RECOMP_FLAGS_IN(); 16054 eax = MEM32(esi + 0x8); /* 0x360592FF: mov eax, dword ptr [esi + 8] */ 16055 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16056 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16057 esp = esp + 4; /* 0x36059302: add esp, 4 */ 16058 _flag_k = FK_ADD; 16059 /* cmp edi, eax */ /* 0x36059305: cmp edi, eax */ 16060 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 16061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16062 _flag_k = FK_CMP; 16063 ebx = edi; /* 0x36059307: mov ebx, edi */ 16064 RECOMP_BACKEDGE(); 16065 if (CMP_NE(_flag_a, _flag_b)) goto L_360592EC; /* 0x36059309: jne 0x360592ec */ 16066 L_3605930B: 16067 eax = MEM32(esi + 0x8); /* 0x3605930B: mov eax, dword ptr [esi + 8] */ 16068 edx = MEM32(esi + 0x4); /* 0x3605930E: mov edx, dword ptr [esi + 4] */ 16069 MEM32(edx + 0x4) = eax; /* 0x36059311: mov dword ptr [edx + 4], eax */ 16070 eax = MEM32(esi + 0x4); /* 0x36059314: mov eax, dword ptr [esi + 4] */ 16071 MEM32(esi + 0x10) = 0; /* 0x36059317: mov dword ptr [esi + 0x10], 0 */ 16072 MEM32(eax) = eax; /* 0x3605931E: mov dword ptr [eax], eax */ 16073 esi = MEM32(esi + 0x4); /* 0x36059320: mov esi, dword ptr [esi + 4] */ 16074 MEM32(esi + 0x8) = esi; /* 0x36059323: mov dword ptr [esi + 8], esi */ 16075 goto L_36059349; /* 0x36059326: jmp 0x36059349 */ 16076 L_36059328: 16077 /* cmp eax, edi */ /* 0x36059328: cmp eax, edi */ 16078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 16079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16080 _flag_k = FK_CMP; 16081 if (CMP_EQ(_flag_a, _flag_b)) goto L_3605934C; /* 0x3605932A: je 0x3605934c */ 16082 L_3605932C: 16083 ecx = ebp + (-0x4); /* 0x3605932C: lea ecx, [ebp - 4] */ 16084 ebx = eax; /* 0x3605932F: mov ebx, eax */ 16085 RECOMP_ICALL(0x36064140u); /* 0x36059331: call 0x36064140 */ /* not lifted */ 16086 RECOMP_FLAGS_IN(); 16087 PUSH32(esp, ebx); /* 0x36059336: push ebx */ 16088 ecx = ebp + (-0xC); /* 0x36059337: lea ecx, [ebp - 0xc] */ 16089 PUSH32(esp, ecx); /* 0x3605933A: push ecx */ 16090 ecx = esi; /* 0x3605933B: mov ecx, esi */ 16091 RECOMP_ICALL(0x360588E0u); /* 0x3605933D: call 0x360588e0 */ /* not lifted */ 16092 RECOMP_FLAGS_IN(); 16093 eax = MEM32(ebp + (-0x4)); /* 0x36059342: mov eax, dword ptr [ebp - 4] */ 16094 /* cmp eax, edi */ /* 0x36059345: cmp eax, edi */ 16095 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 16096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16097 _flag_k = FK_CMP; 16098 RECOMP_BACKEDGE(); 16099 if (CMP_NE(_flag_a, _flag_b)) goto L_3605932C; /* 0x36059347: jne 0x3605932c */ 16100 L_36059349: 16101 ebx = MEM32(ebp + (-0x8)); /* 0x36059349: mov ebx, dword ptr [ebp - 8] */ 16102 L_3605934C: 16103 RECOMP_ICALL(MEM32(0x36170224)); /* 0x3605934C: call dword ptr [0x36170224] */ 16104 RECOMP_FLAGS_IN(); 16105 edx = MEM32(eax); /* 0x36059352: mov edx, dword ptr [eax] */ 16106 PUSH32(esp, ebx); /* 0x36059354: push ebx */ 16107 ecx = eax; /* 0x36059355: mov ecx, eax */ 16108 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36059357: call dword ptr [edx + 0x14] */ 16109 RECOMP_FLAGS_IN(); 16110 edi = POP32_VAL(esp); /* 0x3605935A: pop edi */ 16111 esi = POP32_VAL(esp); /* 0x3605935B: pop esi */ 16112 ebx = POP32_VAL(esp); /* 0x3605935C: pop ebx */ 16113 esp = ebp; /* 0x3605935D: mov esp, ebp */ 16114 ebp = POP32_VAL(esp); /* 0x3605935F: pop ebp */ 16115 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36059360: ret */ 16116 RECOMP_REGS_OUT(); 16117 } 16118 16119 void sub_36059370(void) { 16120 int _fpu_cmp = 0; 16121 uint32_t _cf = 0; 16122 int _df = 1; 16123 uint32_t _flag_k = FK_NONE; 16124 uint32_t _flag_a = 0, _flag_b = 0; 16125 uint32_t _itail_tgt = 0; 16126 RECOMP_REGS_LOCALS 16127 RECOMP_ENTER(0x36059370u); 16128 16129 L_36059370: 16130 PUSH32(esp, esi); /* 0x36059370: push esi */ 16131 esi = MEM32(ecx + 0x18); /* 0x36059371: mov esi, dword ptr [ecx + 0x18] */ 16132 eax = MEM32(esi); /* 0x36059374: mov eax, dword ptr [esi] */ 16133 /* cmp eax, esi */ /* 0x36059376: cmp eax, esi */ 16134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 16135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16136 _flag_k = FK_CMP; 16137 if (CMP_EQ(_flag_a, _flag_b)) goto L_360593BB; /* 0x36059378: je 0x360593bb */ 16138 L_3605937A: 16139 ecx = MEM32(eax + 0x10); /* 0x3605937A: mov ecx, dword ptr [eax + 0x10] */ 16140 /* test ecx, ecx */ /* 0x3605937D: test ecx, ecx */ 16141 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 16142 _cf = 0; 16143 _flag_k = FK_TEST; 16144 if (TEST_Z(_flag_a, _flag_b)) goto L_360593BF; /* 0x3605937F: je 0x360593bf */ 16145 L_36059381: 16146 edx = MEM32(eax + 0xC); /* 0x36059381: mov edx, dword ptr [eax + 0xc] */ 16147 /* cmp edx, MEM32(ecx + 0x8) */ /* 0x36059384: cmp edx, dword ptr [ecx + 8] */ 16148 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 16149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16150 _flag_k = FK_CMP; 16151 if (CMP_NE(_flag_a, _flag_b)) goto L_360593BF; /* 0x36059387: jne 0x360593bf */ 16152 L_36059389: 16153 ecx = MEM32(eax + 0x8); /* 0x36059389: mov ecx, dword ptr [eax + 8] */ 16154 SET_LO8(edx, MEM8(ecx + 0x15)); /* 0x3605938C: mov dl, byte ptr [ecx + 0x15] */ 16155 /* test LO8(edx), LO8(edx) */ /* 0x3605938F: test dl, dl */ 16156 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16157 _cf = 0; 16158 _flag_k = FK_NARROW(FK_TEST, 24); 16159 if (TEST_NZ(_flag_a, _flag_b)) goto L_3605939E; /* 0x36059391: jne 0x3605939e */ 16160 L_36059393: 16161 PUSH32(esp, ecx); /* 0x36059393: push ecx */ 16162 RECOMP_ICALL(0x3614FC90u); /* 0x36059394: call 0x3614fc90 */ /* not lifted */ 16163 RECOMP_FLAGS_IN(); 16164 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16165 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16166 esp = esp + 4; /* 0x36059399: add esp, 4 */ 16167 _flag_k = FK_ADD; 16168 goto L_360593B7; /* 0x3605939C: jmp 0x360593b7 */ 16169 L_3605939E: 16170 ecx = MEM32(eax + 0x4); /* 0x3605939E: mov ecx, dword ptr [eax + 4] */ 16171 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360593A1: cmp eax, dword ptr [ecx + 8] */ 16172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 16173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16174 _flag_k = FK_CMP; 16175 if (CMP_NE(_flag_a, _flag_b)) goto L_360593B0; /* 0x360593A4: jne 0x360593b0 */ 16176 L_360593A6: 16177 eax = ecx; /* 0x360593A6: mov eax, ecx */ 16178 ecx = MEM32(ecx + 0x4); /* 0x360593A8: mov ecx, dword ptr [ecx + 4] */ 16179 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360593AB: cmp eax, dword ptr [ecx + 8] */ 16180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 16181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16182 _flag_k = FK_CMP; 16183 RECOMP_BACKEDGE(); 16184 if (CMP_EQ(_flag_a, _flag_b)) goto L_360593A6; /* 0x360593AE: je 0x360593a6 */ 16185 L_360593B0: 16186 /* cmp MEM32(eax + 0x8), ecx */ /* 0x360593B0: cmp dword ptr [eax + 8], ecx */ 16187 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 16188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16189 _flag_k = FK_CMP; 16190 if (CMP_EQ(_flag_a, _flag_b)) goto L_360593B7; /* 0x360593B3: je 0x360593b7 */ 16191 L_360593B5: 16192 eax = ecx; /* 0x360593B5: mov eax, ecx */ 16193 L_360593B7: 16194 /* cmp eax, esi */ /* 0x360593B7: cmp eax, esi */ 16195 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 16196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16197 _flag_k = FK_CMP; 16198 RECOMP_BACKEDGE(); 16199 if (CMP_NE(_flag_a, _flag_b)) goto L_3605937A; /* 0x360593B9: jne 0x3605937a */ 16200 L_360593BB: 16201 SET_LO8(eax, 1); /* 0x360593BB: mov al, 1 */ 16202 esi = POP32_VAL(esp); /* 0x360593BD: pop esi */ 16203 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360593BE: ret */ 16204 L_360593BF: 16205 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 16206 SET_LO8(eax, 0); /* 0x360593BF: xor al, al */ 16207 _cf = 0; 16208 _flag_k = FK_NARROW(FK_TEST, 24); 16209 esi = POP32_VAL(esp); /* 0x360593C1: pop esi */ 16210 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360593C2: ret */ 16211 RECOMP_REGS_OUT(); 16212 } 16213 16214 void sub_360593D0(void) { 16215 int _fpu_cmp = 0; 16216 uint32_t _cf = 0; 16217 int _df = 1; 16218 uint32_t _flag_k = FK_NONE; 16219 uint32_t _flag_a = 0, _flag_b = 0; 16220 uint32_t _itail_tgt = 0; 16221 RECOMP_REGS_LOCALS 16222 RECOMP_ENTER(0x360593D0u); 16223 16224 L_360593D0: 16225 PUSH32(esp, ebp); /* 0x360593D0: push ebp */ 16226 ebp = esp; /* 0x360593D1: mov ebp, esp */ 16227 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 16228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16229 esp = esp - 0xCu; /* 0x360593D3: sub esp, 0xc */ 16230 _flag_k = FK_CMP; 16231 eax = MEM32(ebp + 0x8); /* 0x360593D6: mov eax, dword ptr [ebp + 8] */ 16232 PUSH32(esp, esi); /* 0x360593D9: push esi */ 16233 PUSH32(esp, edi); /* 0x360593DA: push edi */ 16234 edi = ecx; /* 0x360593DB: mov edi, ecx */ 16235 ecx = MEM32(eax + 0x4); /* 0x360593DD: mov ecx, dword ptr [eax + 4] */ 16236 edx = ebp + 0x8; /* 0x360593E0: lea edx, [ebp + 8] */ 16237 PUSH32(esp, edx); /* 0x360593E3: push edx */ 16238 eax = ebp + (-0xC); /* 0x360593E4: lea eax, [ebp - 0xc] */ 16239 MEM32(ebp + 0x8) = ecx; /* 0x360593E7: mov dword ptr [ebp + 8], ecx */ 16240 esi = edi + 0x14; /* 0x360593EA: lea esi, [edi + 0x14] */ 16241 PUSH32(esp, eax); /* 0x360593ED: push eax */ 16242 ecx = esi; /* 0x360593EE: mov ecx, esi */ 16243 RECOMP_ICALL(0x360943D0u); /* 0x360593F0: call 0x360943d0 */ /* not lifted */ 16244 RECOMP_FLAGS_IN(); 16245 eax = MEM32(eax); /* 0x360593F5: mov eax, dword ptr [eax] */ 16246 esi = MEM32(esi + 0x4); /* 0x360593F7: mov esi, dword ptr [esi + 4] */ 16247 /* cmp eax, esi */ /* 0x360593FA: cmp eax, esi */ 16248 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 16249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16250 _flag_k = FK_CMP; 16251 MEM32(ebp + (-0x4)) = eax; /* 0x360593FC: mov dword ptr [ebp - 4], eax */ 16252 if (CMP_EQ(_flag_a, _flag_b)) goto L_3605940E; /* 0x360593FF: je 0x3605940e */ 16253 L_36059401: 16254 ecx = MEM32(ebp + 0x8); /* 0x36059401: mov ecx, dword ptr [ebp + 8] */ 16255 /* cmp ecx, MEM32(eax + 0xC) */ /* 0x36059404: cmp ecx, dword ptr [eax + 0xc] */ 16256 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 16257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16258 _flag_k = FK_CMP; 16259 if (CMP_B(_flag_a, _flag_b)) goto L_3605940E; /* 0x36059407: jb 0x3605940e */ 16260 L_36059409: 16261 eax = ebp + (-0x4); /* 0x36059409: lea eax, [ebp - 4] */ 16262 goto L_36059414; /* 0x3605940C: jmp 0x36059414 */ 16263 L_3605940E: 16264 MEM32(ebp + (-0x8)) = esi; /* 0x3605940E: mov dword ptr [ebp - 8], esi */ 16265 eax = ebp + (-0x8); /* 0x36059411: lea eax, [ebp - 8] */ 16266 L_36059414: 16267 esi = MEM32(eax); /* 0x36059414: mov esi, dword ptr [eax] */ 16268 /* cmp esi, MEM32(edi + 0x18) */ /* 0x36059416: cmp esi, dword ptr [edi + 0x18] */ 16269 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x18)); 16270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16271 _flag_k = FK_CMP; 16272 if (CMP_EQ(_flag_a, _flag_b)) goto L_3605942F; /* 0x36059419: je 0x3605942f */ 16273 L_3605941B: 16274 ecx = MEM32(esi + 0x10); /* 0x3605941B: mov ecx, dword ptr [esi + 0x10] */ 16275 /* test ecx, ecx */ /* 0x3605941E: test ecx, ecx */ 16276 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 16277 _cf = 0; 16278 _flag_k = FK_TEST; 16279 if (TEST_Z(_flag_a, _flag_b)) goto L_36059429; /* 0x36059420: je 0x36059429 */ 16280 L_36059422: 16281 edx = MEM32(ecx); /* 0x36059422: mov edx, dword ptr [ecx] */ 16282 PUSH32(esp, 0); /* 0x36059424: push 0 */ 16283 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x36059426: call dword ptr [edx + 0x28] */ 16284 RECOMP_FLAGS_IN(); 16285 L_36059429: 16286 eax = MEM32(ebp + 0xC); /* 0x36059429: mov eax, dword ptr [ebp + 0xc] */ 16287 MEM32(esi + 0x10) = eax; /* 0x3605942C: mov dword ptr [esi + 0x10], eax */ 16288 L_3605942F: 16289 ecx = edi; /* 0x3605942F: mov ecx, edi */ 16290 RECOMP_ICALL(0x36059370u); /* 0x36059431: call 0x36059370 */ /* not lifted */ 16291 RECOMP_FLAGS_IN(); 16292 /* test LO8(eax), LO8(eax) */ /* 0x36059436: test al, al */ 16293 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16294 _cf = 0; 16295 _flag_k = FK_NARROW(FK_TEST, 24); 16296 if (TEST_Z(_flag_a, _flag_b)) goto L_36059441; /* 0x36059438: je 0x36059441 */ 16297 L_3605943A: 16298 ecx = edi; /* 0x3605943A: mov ecx, edi */ 16299 RECOMP_ICALL(0x36059190u); /* 0x3605943C: call 0x36059190 */ /* not lifted */ 16300 RECOMP_FLAGS_IN(); 16301 L_36059441: 16302 edi = POP32_VAL(esp); /* 0x36059441: pop edi */ 16303 esi = POP32_VAL(esp); /* 0x36059442: pop esi */ 16304 esp = ebp; /* 0x36059443: mov esp, ebp */ 16305 ebp = POP32_VAL(esp); /* 0x36059445: pop ebp */ 16306 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36059446: ret 8 */ 16307 RECOMP_REGS_OUT(); 16308 } 16309 16310 void sub_36059450(void) { 16311 int _fpu_cmp = 0; 16312 uint32_t _cf = 0; 16313 int _df = 1; 16314 uint32_t _flag_k = FK_NONE; 16315 uint32_t _flag_a = 0, _flag_b = 0; 16316 uint32_t _itail_tgt = 0; 16317 RECOMP_REGS_LOCALS 16318 RECOMP_ENTER(0x36059450u); 16319 16320 L_36059450: 16321 PUSH32(esp, ebp); /* 0x36059450: push ebp */ 16322 ebp = esp; /* 0x36059451: mov ebp, esp */ 16323 PUSH32(esp, ecx); /* 0x36059453: push ecx */ 16324 PUSH32(esp, ebx); /* 0x36059454: push ebx */ 16325 PUSH32(esp, esi); /* 0x36059455: push esi */ 16326 PUSH32(esp, edi); /* 0x36059456: push edi */ 16327 edi = MEM32(ebp + 0x8); /* 0x36059457: mov edi, dword ptr [ebp + 8] */ 16328 SET_LO8(eax, MEM8(edi)); /* 0x3605945A: mov al, byte ptr [edi] */ 16329 esi = ecx; /* 0x3605945C: mov esi, ecx */ 16330 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3605945E: mov byte ptr [esi], al */ 16331 SET_LO8(ecx, MEM8(edi + 0x1)); /* 0x36059460: mov cl, byte ptr [edi + 1] */ 16332 MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x36059463: mov byte ptr [esi + 1], cl */ 16333 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x36059466: mov dl, byte ptr [edi + 0xc] */ 16334 PUSH32(esp, 0x18u); /* 0x36059469: push 0x18 */ 16335 MEM8(esi + 0xC) = (uint8_t)(LO8(edx)); /* 0x3605946B: mov byte ptr [esi + 0xc], dl */ 16336 RECOMP_ICALL(0x3615FD6Au); /* 0x3605946E: call 0x3615fd6a */ /* not lifted */ 16337 RECOMP_FLAGS_IN(); 16338 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16339 edx = 0; /* 0x36059473: xor edx, edx */ 16340 _cf = 0; 16341 _flag_k = FK_TEST; 16342 MEM32(eax + 0x4) = edx; /* 0x36059475: mov dword ptr [eax + 4], edx */ 16343 MEM8(eax + 0x15) = (uint8_t)(LO8(edx)); /* 0x36059478: mov byte ptr [eax + 0x15], dl */ 16344 SET_LO8(ecx, 1); /* 0x3605947B: mov cl, 1 */ 16345 MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3605947D: mov byte ptr [eax + 0x14], cl */ 16346 MEM32(esi + 0x8) = eax; /* 0x36059480: mov dword ptr [esi + 8], eax */ 16347 MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x36059483: mov byte ptr [eax + 0x15], cl */ 16348 eax = MEM32(esi + 0x8); /* 0x36059486: mov eax, dword ptr [esi + 8] */ 16349 MEM32(eax) = edx; /* 0x36059489: mov dword ptr [eax], edx */ 16350 ecx = MEM32(esi + 0x8); /* 0x3605948B: mov ecx, dword ptr [esi + 8] */ 16351 MEM32(ecx + 0x8) = edx; /* 0x3605948E: mov dword ptr [ecx + 8], edx */ 16352 ebx = MEM32(esi + 0x8); /* 0x36059491: mov ebx, dword ptr [esi + 8] */ 16353 PUSH32(esp, 0x18u); /* 0x36059494: push 0x18 */ 16354 RECOMP_ICALL(0x3615FD6Au); /* 0x36059496: call 0x3615fd6a */ /* not lifted */ 16355 RECOMP_FLAGS_IN(); 16356 MEM32(eax + 0x4) = ebx; /* 0x3605949B: mov dword ptr [eax + 4], ebx */ 16357 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x3605949E: mov byte ptr [eax + 0x14], 0 */ 16358 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x360594A2: mov byte ptr [eax + 0x15], 0 */ 16359 MEM32(esi + 0x4) = eax; /* 0x360594A6: mov dword ptr [esi + 4], eax */ 16360 MEM32(eax) = eax; /* 0x360594A9: mov dword ptr [eax], eax */ 16361 eax = MEM32(esi + 0x4); /* 0x360594AB: mov eax, dword ptr [esi + 4] */ 16362 MEM32(eax + 0x8) = eax; /* 0x360594AE: mov dword ptr [eax + 8], eax */ 16363 ecx = MEM32(esi + 0x8); /* 0x360594B1: mov ecx, dword ptr [esi + 8] */ 16364 eax = MEM32(esi + 0x4); /* 0x360594B4: mov eax, dword ptr [esi + 4] */ 16365 MEM32(esi + 0x10) = 0; /* 0x360594B7: mov dword ptr [esi + 0x10], 0 */ 16366 edx = MEM32(edi + 0x4); /* 0x360594BE: mov edx, dword ptr [edi + 4] */ 16367 ebx = MEM32(edx + 0x4); /* 0x360594C1: mov ebx, dword ptr [edx + 4] */ 16368 MEM32(ebp + (-0x4)) = ecx; /* 0x360594C4: mov dword ptr [ebp - 4], ecx */ 16369 SET_LO8(ecx, MEM8(ebx + 0x15)); /* 0x360594C7: mov cl, byte ptr [ebx + 0x15] */ 16370 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16371 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16372 esp = esp + 8; /* 0x360594CA: add esp, 8 */ 16373 _flag_k = FK_ADD; 16374 /* test LO8(ecx), LO8(ecx) */ /* 0x360594CD: test cl, cl */ 16375 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 16376 _cf = 0; 16377 _flag_k = FK_NARROW(FK_TEST, 24); 16378 if (TEST_NZ(_flag_a, _flag_b)) goto L_3605952F; /* 0x360594CF: jne 0x3605952f */ 16379 L_360594D1: 16380 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16381 edx = 0; /* 0x360594D1: xor edx, edx */ 16382 _cf = 0; 16383 _flag_k = FK_TEST; 16384 SET_LO8(edx, MEM8(ebx + 0x14)); /* 0x360594D3: mov dl, byte ptr [ebx + 0x14] */ 16385 ecx = esi; /* 0x360594D6: mov ecx, esi */ 16386 PUSH32(esp, edx); /* 0x360594D8: push edx */ 16387 PUSH32(esp, eax); /* 0x360594D9: push eax */ 16388 RECOMP_ICALL(0x3608AA20u); /* 0x360594DA: call 0x3608aa20 */ /* not lifted */ 16389 RECOMP_FLAGS_IN(); 16390 ecx = ebx + 0xC; /* 0x360594DF: lea ecx, [ebx + 0xc] */ 16391 MEM32(ebp + 0x8) = eax; /* 0x360594E2: mov dword ptr [ebp + 8], eax */ 16392 PUSH32(esp, ecx); /* 0x360594E5: push ecx */ 16393 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 16394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16395 eax = eax + 0xCu; /* 0x360594E6: add eax, 0xc */ 16396 _flag_k = FK_ADD; 16397 PUSH32(esp, eax); /* 0x360594E9: push eax */ 16398 RECOMP_ICALL(0x36059750u); /* 0x360594EA: call 0x36059750 */ /* not lifted */ 16399 RECOMP_FLAGS_IN(); 16400 edx = MEM32(esi + 0x8); /* 0x360594EF: mov edx, dword ptr [esi + 8] */ 16401 eax = MEM32(ebp + 0x8); /* 0x360594F2: mov eax, dword ptr [ebp + 8] */ 16402 MEM32(eax) = edx; /* 0x360594F5: mov dword ptr [eax], edx */ 16403 ecx = MEM32(esi + 0x8); /* 0x360594F7: mov ecx, dword ptr [esi + 8] */ 16404 edx = MEM32(ebp + (-0x4)); /* 0x360594FA: mov edx, dword ptr [ebp - 4] */ 16405 MEM32(eax + 0x8) = ecx; /* 0x360594FD: mov dword ptr [eax + 8], ecx */ 16406 ecx = MEM32(esi + 0x8); /* 0x36059500: mov ecx, dword ptr [esi + 8] */ 16407 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16408 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16409 esp = esp + 8; /* 0x36059503: add esp, 8 */ 16410 _flag_k = FK_ADD; 16411 /* cmp edx, ecx */ /* 0x36059506: cmp edx, ecx */ 16412 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16414 _flag_k = FK_CMP; 16415 if (CMP_NE(_flag_a, _flag_b)) goto L_3605950D; /* 0x36059508: jne 0x3605950d */ 16416 L_3605950A: 16417 MEM32(ebp + (-0x4)) = eax; /* 0x3605950A: mov dword ptr [ebp - 4], eax */ 16418 L_3605950D: 16419 PUSH32(esp, eax); /* 0x3605950D: push eax */ 16420 eax = MEM32(ebx); /* 0x3605950E: mov eax, dword ptr [ebx] */ 16421 PUSH32(esp, eax); /* 0x36059510: push eax */ 16422 ecx = esi; /* 0x36059511: mov ecx, esi */ 16423 RECOMP_ICALL(0x36059680u); /* 0x36059513: call 0x36059680 */ /* not lifted */ 16424 RECOMP_FLAGS_IN(); 16425 ecx = MEM32(ebp + 0x8); /* 0x36059518: mov ecx, dword ptr [ebp + 8] */ 16426 PUSH32(esp, ecx); /* 0x3605951B: push ecx */ 16427 MEM32(ecx) = eax; /* 0x3605951C: mov dword ptr [ecx], eax */ 16428 ecx = MEM32(ebx + 0x8); /* 0x3605951E: mov ecx, dword ptr [ebx + 8] */ 16429 PUSH32(esp, ecx); /* 0x36059521: push ecx */ 16430 ecx = esi; /* 0x36059522: mov ecx, esi */ 16431 RECOMP_ICALL(0x36059680u); /* 0x36059524: call 0x36059680 */ /* not lifted */ 16432 RECOMP_FLAGS_IN(); 16433 edx = MEM32(ebp + 0x8); /* 0x36059529: mov edx, dword ptr [ebp + 8] */ 16434 MEM32(edx + 0x8) = eax; /* 0x3605952C: mov dword ptr [edx + 8], eax */ 16435 L_3605952F: 16436 eax = MEM32(esi + 0x4); /* 0x3605952F: mov eax, dword ptr [esi + 4] */ 16437 ecx = MEM32(ebp + (-0x4)); /* 0x36059532: mov ecx, dword ptr [ebp - 4] */ 16438 MEM32(eax + 0x4) = ecx; /* 0x36059535: mov dword ptr [eax + 4], ecx */ 16439 edx = MEM32(edi + 0x10); /* 0x36059538: mov edx, dword ptr [edi + 0x10] */ 16440 ecx = MEM32(esi + 0x8); /* 0x3605953B: mov ecx, dword ptr [esi + 8] */ 16441 MEM32(esi + 0x10) = edx; /* 0x3605953E: mov dword ptr [esi + 0x10], edx */ 16442 edx = MEM32(esi + 0x4); /* 0x36059541: mov edx, dword ptr [esi + 4] */ 16443 eax = MEM32(edx + 0x4); /* 0x36059544: mov eax, dword ptr [edx + 4] */ 16444 /* cmp eax, ecx */ /* 0x36059547: cmp eax, ecx */ 16445 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 16446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16447 _flag_k = FK_CMP; 16448 if (CMP_EQ(_flag_a, _flag_b)) goto L_3605958B; /* 0x36059549: je 0x3605958b */ 16449 L_3605954B: 16450 ecx = MEM32(eax); /* 0x3605954B: mov ecx, dword ptr [eax] */ 16451 SET_LO8(ebx, MEM8(ecx + 0x15)); /* 0x3605954D: mov bl, byte ptr [ecx + 0x15] */ 16452 /* test LO8(ebx), LO8(ebx) */ /* 0x36059550: test bl, bl */ 16453 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16454 _cf = 0; 16455 _flag_k = FK_NARROW(FK_TEST, 24); 16456 if (TEST_NZ(_flag_a, _flag_b)) goto L_3605955F; /* 0x36059552: jne 0x3605955f */ 16457 L_36059554: 16458 eax = ecx; /* 0x36059554: mov eax, ecx */ 16459 ecx = MEM32(eax); /* 0x36059556: mov ecx, dword ptr [eax] */ 16460 SET_LO8(ebx, MEM8(ecx + 0x15)); /* 0x36059558: mov bl, byte ptr [ecx + 0x15] */ 16461 /* test LO8(ebx), LO8(ebx) */ /* 0x3605955B: test bl, bl */ 16462 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16463 _cf = 0; 16464 _flag_k = FK_NARROW(FK_TEST, 24); 16465 RECOMP_BACKEDGE(); 16466 if (TEST_Z(_flag_a, _flag_b)) goto L_36059554; /* 0x3605955D: je 0x36059554 */ 16467 L_3605955F: 16468 MEM32(edx) = eax; /* 0x3605955F: mov dword ptr [edx], eax */ 16469 edx = MEM32(esi + 0x4); /* 0x36059561: mov edx, dword ptr [esi + 4] */ 16470 ecx = MEM32(edx + 0x4); /* 0x36059564: mov ecx, dword ptr [edx + 4] */ 16471 eax = MEM32(ecx + 0x8); /* 0x36059567: mov eax, dword ptr [ecx + 8] */ 16472 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3605956A: mov bl, byte ptr [eax + 0x15] */ 16473 /* test LO8(ebx), LO8(ebx) */ /* 0x3605956D: test bl, bl */ 16474 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16475 _cf = 0; 16476 _flag_k = FK_NARROW(FK_TEST, 24); 16477 if (TEST_NZ(_flag_a, _flag_b)) goto L_3605957D; /* 0x3605956F: jne 0x3605957d */ 16478 L_36059571: 16479 ecx = eax; /* 0x36059571: mov ecx, eax */ 16480 eax = MEM32(ecx + 0x8); /* 0x36059573: mov eax, dword ptr [ecx + 8] */ 16481 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x36059576: mov bl, byte ptr [eax + 0x15] */ 16482 /* test LO8(ebx), LO8(ebx) */ /* 0x36059579: test bl, bl */ 16483 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 16484 _cf = 0; 16485 _flag_k = FK_NARROW(FK_TEST, 24); 16486 RECOMP_BACKEDGE(); 16487 if (TEST_Z(_flag_a, _flag_b)) goto L_36059571; /* 0x3605957B: je 0x36059571 */ 16488 L_3605957D: 16489 edi = POP32_VAL(esp); /* 0x3605957D: pop edi */ 16490 eax = esi; /* 0x3605957E: mov eax, esi */ 16491 esi = POP32_VAL(esp); /* 0x36059580: pop esi */ 16492 MEM32(edx + 0x8) = ecx; /* 0x36059581: mov dword ptr [edx + 8], ecx */ 16493 ebx = POP32_VAL(esp); /* 0x36059584: pop ebx */ 16494 esp = ebp; /* 0x36059585: mov esp, ebp */ 16495 ebp = POP32_VAL(esp); /* 0x36059587: pop ebp */ 16496 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36059588: ret 4 */ 16497 L_3605958B: 16498 MEM32(edx) = edx; /* 0x3605958B: mov dword ptr [edx], edx */ 16499 eax = MEM32(esi + 0x4); /* 0x3605958D: mov eax, dword ptr [esi + 4] */ 16500 edi = POP32_VAL(esp); /* 0x36059590: pop edi */ 16501 MEM32(eax + 0x8) = eax; /* 0x36059591: mov dword ptr [eax + 8], eax */ 16502 eax = esi; /* 0x36059594: mov eax, esi */ 16503 esi = POP32_VAL(esp); /* 0x36059596: pop esi */ 16504 ebx = POP32_VAL(esp); /* 0x36059597: pop ebx */ 16505 esp = ebp; /* 0x36059598: mov esp, ebp */ 16506 ebp = POP32_VAL(esp); /* 0x3605959A: pop ebp */ 16507 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3605959B: ret 4 */ 16508 RECOMP_REGS_OUT(); 16509 } 16510 16511 void sub_360595A0(void) { 16512 int _fpu_cmp = 0; 16513 uint32_t _cf = 0; 16514 int _df = 1; 16515 uint32_t _flag_k = FK_NONE; 16516 uint32_t _flag_a = 0, _flag_b = 0; 16517 uint32_t _itail_tgt = 0; 16518 RECOMP_REGS_LOCALS 16519 RECOMP_ENTER(0x360595A0u); 16520 16521 L_360595A0: 16522 PUSH32(esp, ebp); /* 0x360595A0: push ebp */ 16523 ebp = esp; /* 0x360595A1: mov ebp, esp */ 16524 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 16525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16526 esp = esp - 0x10u; /* 0x360595A3: sub esp, 0x10 */ 16527 _flag_k = FK_CMP; 16528 PUSH32(esp, ebx); /* 0x360595A6: push ebx */ 16529 ebx = ecx; /* 0x360595A7: mov ebx, ecx */ 16530 edx = MEM32(ebx + 0x4); /* 0x360595A9: mov edx, dword ptr [ebx + 4] */ 16531 ecx = MEM32(ebx + 0x8); /* 0x360595AC: mov ecx, dword ptr [ebx + 8] */ 16532 PUSH32(esp, esi); /* 0x360595AF: push esi */ 16533 esi = MEM32(edx + 0x4); /* 0x360595B0: mov esi, dword ptr [edx + 4] */ 16534 /* cmp esi, ecx */ /* 0x360595B3: cmp esi, ecx */ 16535 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 16536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16537 _flag_k = FK_CMP; 16538 PUSH32(esp, edi); /* 0x360595B5: push edi */ 16539 edi = edx; /* 0x360595B6: mov edi, edx */ 16540 SET_LO8(eax, 1); /* 0x360595B8: mov al, 1 */ 16541 if (CMP_EQ(_flag_a, _flag_b)) goto L_360595DE; /* 0x360595BA: je 0x360595de */ 16542 L_360595BC: 16543 eax = MEM32(ebp + 0xC); /* 0x360595BC: mov eax, dword ptr [ebp + 0xc] */ 16544 eax = MEM32(eax); /* 0x360595BF: mov eax, dword ptr [eax] */ 16545 MEM32(ebp + (-0x4)) = eax; /* 0x360595C1: mov dword ptr [ebp - 4], eax */ 16546 L_360595C4: 16547 eax = MEM32(ebp + (-0x4)); /* 0x360595C4: mov eax, dword ptr [ebp - 4] */ 16548 /* cmp eax, MEM32(esi + 0xC) */ /* 0x360595C7: cmp eax, dword ptr [esi + 0xc] */ 16549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 16550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16551 _flag_k = FK_CMP; 16552 edi = esi; /* 0x360595CA: mov edi, esi */ 16553 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x360595CC: setb al */ 16554 /* test LO8(eax), LO8(eax) */ /* 0x360595CF: test al, al */ 16555 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16556 _cf = 0; 16557 _flag_k = FK_NARROW(FK_TEST, 24); 16558 if (TEST_Z(_flag_a, _flag_b)) goto L_360595D7; /* 0x360595D1: je 0x360595d7 */ 16559 L_360595D3: 16560 esi = MEM32(esi); /* 0x360595D3: mov esi, dword ptr [esi] */ 16561 goto L_360595DA; /* 0x360595D5: jmp 0x360595da */ 16562 L_360595D7: 16563 esi = MEM32(esi + 0x8); /* 0x360595D7: mov esi, dword ptr [esi + 8] */ 16564 L_360595DA: 16565 /* cmp esi, ecx */ /* 0x360595DA: cmp esi, ecx */ 16566 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 16567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16568 _flag_k = FK_CMP; 16569 RECOMP_BACKEDGE(); 16570 if (CMP_NE(_flag_a, _flag_b)) goto L_360595C4; /* 0x360595DC: jne 0x360595c4 */ 16571 L_360595DE: 16572 SET_LO8(ecx, MEM8(ebx + 0xC)); /* 0x360595DE: mov cl, byte ptr [ebx + 0xc] */ 16573 /* test LO8(ecx), LO8(ecx) */ /* 0x360595E1: test cl, cl */ 16574 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 16575 _cf = 0; 16576 _flag_k = FK_NARROW(FK_TEST, 24); 16577 if (TEST_Z(_flag_a, _flag_b)) goto L_36059603; /* 0x360595E3: je 0x36059603 */ 16578 L_360595E5: 16579 ecx = MEM32(ebp + 0xC); /* 0x360595E5: mov ecx, dword ptr [ebp + 0xc] */ 16580 PUSH32(esp, ecx); /* 0x360595E8: push ecx */ 16581 PUSH32(esp, edi); /* 0x360595E9: push edi */ 16582 PUSH32(esp, esi); /* 0x360595EA: push esi */ 16583 edx = ebp + (-0x8); /* 0x360595EB: lea edx, [ebp - 8] */ 16584 PUSH32(esp, edx); /* 0x360595EE: push edx */ 16585 ecx = ebx; /* 0x360595EF: mov ecx, ebx */ 16586 RECOMP_ICALL(0x360641F0u); /* 0x360595F1: call 0x360641f0 */ /* not lifted */ 16587 RECOMP_FLAGS_IN(); 16588 eax = MEM32(eax); /* 0x360595F6: mov eax, dword ptr [eax] */ 16589 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x360595F8: mov byte ptr [ebp - 0xc], 1 */ 16590 ecx = eax; /* 0x360595FC: mov ecx, eax */ 16591 eax = MEM32(ebp + (-0xC)); /* 0x360595FE: mov eax, dword ptr [ebp - 0xc] */ 16592 goto L_36059665; /* 0x36059601: jmp 0x36059665 */ 16593 L_36059603: 16594 /* test LO8(eax), LO8(eax) */ /* 0x36059603: test al, al */ 16595 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16596 _cf = 0; 16597 _flag_k = FK_NARROW(FK_TEST, 24); 16598 ecx = edi; /* 0x36059605: mov ecx, edi */ 16599 MEM32(ebp + (-0x4)) = ecx; /* 0x36059607: mov dword ptr [ebp - 4], ecx */ 16600 if (TEST_Z(_flag_a, _flag_b)) goto L_36059639; /* 0x3605960A: je 0x36059639 */ 16601 L_3605960C: 16602 /* cmp edi, MEM32(edx) */ /* 0x3605960C: cmp edi, dword ptr [edx] */ 16603 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(edx)); 16604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16605 _flag_k = FK_CMP; 16606 if (CMP_NE(_flag_a, _flag_b)) goto L_3605962E; /* 0x3605960E: jne 0x3605962e */ 16607 L_36059610: 16608 eax = MEM32(ebp + 0xC); /* 0x36059610: mov eax, dword ptr [ebp + 0xc] */ 16609 PUSH32(esp, eax); /* 0x36059613: push eax */ 16610 PUSH32(esp, edi); /* 0x36059614: push edi */ 16611 PUSH32(esp, esi); /* 0x36059615: push esi */ 16612 ecx = ebp + (-0xC); /* 0x36059616: lea ecx, [ebp - 0xc] */ 16613 PUSH32(esp, ecx); /* 0x36059619: push ecx */ 16614 ecx = ebx; /* 0x3605961A: mov ecx, ebx */ 16615 RECOMP_ICALL(0x360641F0u); /* 0x3605961C: call 0x360641f0 */ /* not lifted */ 16616 RECOMP_FLAGS_IN(); 16617 eax = MEM32(eax); /* 0x36059621: mov eax, dword ptr [eax] */ 16618 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x36059623: mov byte ptr [ebp - 0xc], 1 */ 16619 ecx = eax; /* 0x36059627: mov ecx, eax */ 16620 eax = MEM32(ebp + (-0xC)); /* 0x36059629: mov eax, dword ptr [ebp - 0xc] */ 16621 goto L_36059665; /* 0x3605962C: jmp 0x36059665 */ 16622 L_3605962E: 16623 ecx = ebp + (-0x4); /* 0x3605962E: lea ecx, [ebp - 4] */ 16624 RECOMP_ICALL(0x3614FCD0u); /* 0x36059631: call 0x3614fcd0 */ /* not lifted */ 16625 RECOMP_FLAGS_IN(); 16626 ecx = MEM32(ebp + (-0x4)); /* 0x36059636: mov ecx, dword ptr [ebp - 4] */ 16627 L_36059639: 16628 edx = MEM32(ecx + 0xC); /* 0x36059639: mov edx, dword ptr [ecx + 0xc] */ 16629 eax = MEM32(ebp + 0xC); /* 0x3605963C: mov eax, dword ptr [ebp + 0xc] */ 16630 /* cmp edx, MEM32(eax) */ /* 0x3605963F: cmp edx, dword ptr [eax] */ 16631 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 16632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16633 _flag_k = FK_CMP; 16634 if (CMP_AE(_flag_a, _flag_b)) goto L_3605965E; /* 0x36059641: jae 0x3605965e */ 16635 L_36059643: 16636 PUSH32(esp, eax); /* 0x36059643: push eax */ 16637 PUSH32(esp, edi); /* 0x36059644: push edi */ 16638 PUSH32(esp, esi); /* 0x36059645: push esi */ 16639 eax = ebp + 0xC; /* 0x36059646: lea eax, [ebp + 0xc] */ 16640 PUSH32(esp, eax); /* 0x36059649: push eax */ 16641 ecx = ebx; /* 0x3605964A: mov ecx, ebx */ 16642 RECOMP_ICALL(0x360641F0u); /* 0x3605964C: call 0x360641f0 */ /* not lifted */ 16643 RECOMP_FLAGS_IN(); 16644 eax = MEM32(eax); /* 0x36059651: mov eax, dword ptr [eax] */ 16645 MEM8(ebp + (-0xC)) = (uint8_t)(1); /* 0x36059653: mov byte ptr [ebp - 0xc], 1 */ 16646 ecx = eax; /* 0x36059657: mov ecx, eax */ 16647 eax = MEM32(ebp + (-0xC)); /* 0x36059659: mov eax, dword ptr [ebp - 0xc] */ 16648 goto L_36059665; /* 0x3605965C: jmp 0x36059665 */ 16649 L_3605965E: 16650 MEM8(ebp + (-0xC)) = (uint8_t)(0); /* 0x3605965E: mov byte ptr [ebp - 0xc], 0 */ 16651 eax = MEM32(ebp + (-0xC)); /* 0x36059662: mov eax, dword ptr [ebp - 0xc] */ 16652 L_36059665: 16653 MEM8(ebp + (-0xC)) = (uint8_t)(LO8(eax)); /* 0x36059665: mov byte ptr [ebp - 0xc], al */ 16654 eax = MEM32(ebp + 0x8); /* 0x36059668: mov eax, dword ptr [ebp + 8] */ 16655 edi = POP32_VAL(esp); /* 0x3605966B: pop edi */ 16656 MEM32(eax) = ecx; /* 0x3605966C: mov dword ptr [eax], ecx */ 16657 ecx = MEM32(ebp + (-0xC)); /* 0x3605966E: mov ecx, dword ptr [ebp - 0xc] */ 16658 esi = POP32_VAL(esp); /* 0x36059671: pop esi */ 16659 MEM32(eax + 0x4) = ecx; /* 0x36059672: mov dword ptr [eax + 4], ecx */ 16660 ebx = POP32_VAL(esp); /* 0x36059675: pop ebx */ 16661 esp = ebp; /* 0x36059676: mov esp, ebp */ 16662 ebp = POP32_VAL(esp); /* 0x36059678: pop ebp */ 16663 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36059679: ret 8 */ 16664 RECOMP_REGS_OUT(); 16665 } 16666 16667 void sub_36059680(void) { 16668 int _fpu_cmp = 0; 16669 uint32_t _cf = 0; 16670 int _df = 1; 16671 uint32_t _flag_k = FK_NONE; 16672 uint32_t _flag_a = 0, _flag_b = 0; 16673 uint32_t _itail_tgt = 0; 16674 RECOMP_REGS_LOCALS 16675 RECOMP_ENTER(0x36059680u); 16676 16677 L_36059680: 16678 PUSH32(esp, ebp); /* 0x36059680: push ebp */ 16679 ebp = esp; /* 0x36059681: mov ebp, esp */ 16680 PUSH32(esp, ecx); /* 0x36059683: push ecx */ 16681 PUSH32(esp, ebx); /* 0x36059684: push ebx */ 16682 ebx = MEM32(ebp + 0x8); /* 0x36059685: mov ebx, dword ptr [ebp + 8] */ 16683 PUSH32(esp, edi); /* 0x36059688: push edi */ 16684 edi = ecx; /* 0x36059689: mov edi, ecx */ 16685 SET_LO8(ecx, MEM8(ebx + 0x15)); /* 0x3605968B: mov cl, byte ptr [ebx + 0x15] */ 16686 /* test LO8(ecx), LO8(ecx) */ /* 0x3605968E: test cl, cl */ 16687 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 16688 _cf = 0; 16689 _flag_k = FK_NARROW(FK_TEST, 24); 16690 eax = MEM32(edi + 0x8); /* 0x36059690: mov eax, dword ptr [edi + 8] */ 16691 MEM32(ebp + (-0x4)) = eax; /* 0x36059693: mov dword ptr [ebp - 4], eax */ 16692 if (TEST_NZ(_flag_a, _flag_b)) goto L_36059703; /* 0x36059696: jne 0x36059703 */ 16693 L_36059698: 16694 SET_LO8(eax, MEM8(ebx + 0x14)); /* 0x36059698: mov al, byte ptr [ebx + 0x14] */ 16695 PUSH32(esp, esi); /* 0x3605969B: push esi */ 16696 PUSH32(esp, 0x18u); /* 0x3605969C: push 0x18 */ 16697 MEM8(ebp + 0xB) = (uint8_t)(LO8(eax)); /* 0x3605969E: mov byte ptr [ebp + 0xb], al */ 16698 RECOMP_ICALL(0x3615FD6Au); /* 0x360596A1: call 0x3615fd6a */ /* not lifted */ 16699 RECOMP_FLAGS_IN(); 16700 ecx = MEM32(ebp + 0xC); /* 0x360596A6: mov ecx, dword ptr [ebp + 0xc] */ 16701 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x360596A9: mov dl, byte ptr [ebp + 0xb] */ 16702 esi = eax; /* 0x360596AC: mov esi, eax */ 16703 eax = esi + 0xC; /* 0x360596AE: lea eax, [esi + 0xc] */ 16704 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16705 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16706 esp = esp + 4; /* 0x360596B1: add esp, 4 */ 16707 _flag_k = FK_ADD; 16708 /* test eax, eax */ /* 0x360596B4: test eax, eax */ 16709 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16710 _cf = 0; 16711 _flag_k = FK_TEST; 16712 MEM32(esi + 0x4) = ecx; /* 0x360596B6: mov dword ptr [esi + 4], ecx */ 16713 MEM8(esi + 0x14) = (uint8_t)(LO8(edx)); /* 0x360596B9: mov byte ptr [esi + 0x14], dl */ 16714 MEM8(esi + 0x15) = (uint8_t)(0); /* 0x360596BC: mov byte ptr [esi + 0x15], 0 */ 16715 if (TEST_Z(_flag_a, _flag_b)) goto L_360596CD; /* 0x360596C0: je 0x360596cd */ 16716 L_360596C2: 16717 ecx = MEM32(ebx + 0xC); /* 0x360596C2: mov ecx, dword ptr [ebx + 0xc] */ 16718 MEM32(eax) = ecx; /* 0x360596C5: mov dword ptr [eax], ecx */ 16719 edx = MEM32(ebx + 0x10); /* 0x360596C7: mov edx, dword ptr [ebx + 0x10] */ 16720 MEM32(eax + 0x4) = edx; /* 0x360596CA: mov dword ptr [eax + 4], edx */ 16721 L_360596CD: 16722 eax = MEM32(edi + 0x8); /* 0x360596CD: mov eax, dword ptr [edi + 8] */ 16723 edx = MEM32(ebp + (-0x4)); /* 0x360596D0: mov edx, dword ptr [ebp - 4] */ 16724 MEM32(esi) = eax; /* 0x360596D3: mov dword ptr [esi], eax */ 16725 ecx = MEM32(edi + 0x8); /* 0x360596D5: mov ecx, dword ptr [edi + 8] */ 16726 MEM32(esi + 0x8) = ecx; /* 0x360596D8: mov dword ptr [esi + 8], ecx */ 16727 /* cmp edx, MEM32(edi + 0x8) */ /* 0x360596DB: cmp edx, dword ptr [edi + 8] */ 16728 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 16729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16730 _flag_k = FK_CMP; 16731 if (CMP_NE(_flag_a, _flag_b)) goto L_360596E3; /* 0x360596DE: jne 0x360596e3 */ 16732 L_360596E0: 16733 MEM32(ebp + (-0x4)) = esi; /* 0x360596E0: mov dword ptr [ebp - 4], esi */ 16734 L_360596E3: 16735 eax = MEM32(ebx); /* 0x360596E3: mov eax, dword ptr [ebx] */ 16736 PUSH32(esp, esi); /* 0x360596E5: push esi */ 16737 PUSH32(esp, eax); /* 0x360596E6: push eax */ 16738 ecx = edi; /* 0x360596E7: mov ecx, edi */ 16739 RECOMP_ICALL(0x36059680u); /* 0x360596E9: call 0x36059680 */ /* not lifted */ 16740 RECOMP_FLAGS_IN(); 16741 MEM32(esi) = eax; /* 0x360596EE: mov dword ptr [esi], eax */ 16742 ecx = MEM32(ebx + 0x8); /* 0x360596F0: mov ecx, dword ptr [ebx + 8] */ 16743 PUSH32(esp, esi); /* 0x360596F3: push esi */ 16744 PUSH32(esp, ecx); /* 0x360596F4: push ecx */ 16745 ecx = edi; /* 0x360596F5: mov ecx, edi */ 16746 RECOMP_ICALL(0x36059680u); /* 0x360596F7: call 0x36059680 */ /* not lifted */ 16747 RECOMP_FLAGS_IN(); 16748 MEM32(esi + 0x8) = eax; /* 0x360596FC: mov dword ptr [esi + 8], eax */ 16749 eax = MEM32(ebp + (-0x4)); /* 0x360596FF: mov eax, dword ptr [ebp - 4] */ 16750 esi = POP32_VAL(esp); /* 0x36059702: pop esi */ 16751 L_36059703: 16752 edi = POP32_VAL(esp); /* 0x36059703: pop edi */ 16753 ebx = POP32_VAL(esp); /* 0x36059704: pop ebx */ 16754 esp = ebp; /* 0x36059705: mov esp, ebp */ 16755 ebp = POP32_VAL(esp); /* 0x36059707: pop ebp */ 16756 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36059708: ret 8 */ 16757 RECOMP_REGS_OUT(); 16758 } 16759 16760 void sub_36059710(void) { 16761 int _fpu_cmp = 0; 16762 uint32_t _cf = 0; 16763 int _df = 1; 16764 uint32_t _flag_k = FK_NONE; 16765 uint32_t _flag_a = 0, _flag_b = 0; 16766 uint32_t _itail_tgt = 0; 16767 RECOMP_REGS_LOCALS 16768 RECOMP_ENTER(0x36059710u); 16769 16770 L_36059710: 16771 PUSH32(esp, ebp); /* 0x36059710: push ebp */ 16772 ebp = esp; /* 0x36059711: mov ebp, esp */ 16773 PUSH32(esp, ebx); /* 0x36059713: push ebx */ 16774 PUSH32(esp, esi); /* 0x36059714: push esi */ 16775 ebx = ecx; /* 0x36059715: mov ebx, ecx */ 16776 eax = MEM32(ebx + 0x8); /* 0x36059717: mov eax, dword ptr [ebx + 8] */ 16777 PUSH32(esp, edi); /* 0x3605971A: push edi */ 16778 edi = MEM32(ebp + 0x8); /* 0x3605971B: mov edi, dword ptr [ebp + 8] */ 16779 /* cmp edi, eax */ /* 0x3605971E: cmp edi, eax */ 16780 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 16781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16782 _flag_k = FK_CMP; 16783 esi = edi; /* 0x36059720: mov esi, edi */ 16784 if (CMP_EQ(_flag_a, _flag_b)) goto L_36059743; /* 0x36059722: je 0x36059743 */ 16785 L_36059724: 16786 eax = MEM32(esi + 0x8); /* 0x36059724: mov eax, dword ptr [esi + 8] */ 16787 PUSH32(esp, eax); /* 0x36059727: push eax */ 16788 ecx = ebx; /* 0x36059728: mov ecx, ebx */ 16789 RECOMP_ICALL(0x36059710u); /* 0x3605972A: call 0x36059710 */ /* not lifted */ 16790 RECOMP_FLAGS_IN(); 16791 esi = MEM32(esi); /* 0x3605972F: mov esi, dword ptr [esi] */ 16792 PUSH32(esp, edi); /* 0x36059731: push edi */ 16793 RECOMP_ICALL(0x3615FCC4u); /* 0x36059732: call 0x3615fcc4 */ /* not lifted */ 16794 RECOMP_FLAGS_IN(); 16795 eax = MEM32(ebx + 0x8); /* 0x36059737: mov eax, dword ptr [ebx + 8] */ 16796 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16797 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16798 esp = esp + 4; /* 0x3605973A: add esp, 4 */ 16799 _flag_k = FK_ADD; 16800 /* cmp esi, eax */ /* 0x3605973D: cmp esi, eax */ 16801 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 16802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16803 _flag_k = FK_CMP; 16804 edi = esi; /* 0x3605973F: mov edi, esi */ 16805 RECOMP_BACKEDGE(); 16806 if (CMP_NE(_flag_a, _flag_b)) goto L_36059724; /* 0x36059741: jne 0x36059724 */ 16807 L_36059743: 16808 edi = POP32_VAL(esp); /* 0x36059743: pop edi */ 16809 esi = POP32_VAL(esp); /* 0x36059744: pop esi */ 16810 ebx = POP32_VAL(esp); /* 0x36059745: pop ebx */ 16811 ebp = POP32_VAL(esp); /* 0x36059746: pop ebp */ 16812 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36059747: ret 4 */ 16813 RECOMP_REGS_OUT(); 16814 } 16815 16816 void sub_36059750(void) { 16817 int _fpu_cmp = 0; 16818 uint32_t _cf = 0; 16819 int _df = 1; 16820 uint32_t _flag_k = FK_NONE; 16821 uint32_t _flag_a = 0, _flag_b = 0; 16822 uint32_t _itail_tgt = 0; 16823 RECOMP_REGS_LOCALS 16824 RECOMP_ENTER(0x36059750u); 16825 16826 L_36059750: 16827 PUSH32(esp, ebp); /* 0x36059750: push ebp */ 16828 ebp = esp; /* 0x36059751: mov ebp, esp */ 16829 eax = MEM32(ebp + 0x8); /* 0x36059753: mov eax, dword ptr [ebp + 8] */ 16830 /* test eax, eax */ /* 0x36059756: test eax, eax */ 16831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16832 _cf = 0; 16833 _flag_k = FK_TEST; 16834 if (TEST_Z(_flag_a, _flag_b)) goto L_36059767; /* 0x36059758: je 0x36059767 */ 16835 L_3605975A: 16836 ecx = MEM32(ebp + 0xC); /* 0x3605975A: mov ecx, dword ptr [ebp + 0xc] */ 16837 edx = MEM32(ecx); /* 0x3605975D: mov edx, dword ptr [ecx] */ 16838 MEM32(eax) = edx; /* 0x3605975F: mov dword ptr [eax], edx */ 16839 ecx = MEM32(ecx + 0x4); /* 0x36059761: mov ecx, dword ptr [ecx + 4] */ 16840 MEM32(eax + 0x4) = ecx; /* 0x36059764: mov dword ptr [eax + 4], ecx */ 16841 L_36059767: 16842 ebp = POP32_VAL(esp); /* 0x36059767: pop ebp */ 16843 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36059768: ret */ 16844 RECOMP_REGS_OUT(); 16845 } 16846 16847 void sub_36059770(void) { 16848 int _fpu_cmp = 0; 16849 uint32_t _cf = 0; 16850 int _df = 1; 16851 uint32_t _flag_k = FK_NONE; 16852 uint32_t _flag_a = 0, _flag_b = 0; 16853 uint32_t _itail_tgt = 0; 16854 RECOMP_REGS_LOCALS 16855 RECOMP_ENTER(0x36059770u); 16856 16857 L_36059770: 16858 PUSH32(esp, ebp); /* 0x36059770: push ebp */ 16859 ebp = esp; /* 0x36059771: mov ebp, esp */ 16860 eax = MEM32(ebp + 0x8); /* 0x36059773: mov eax, dword ptr [ebp + 8] */ 16861 PUSH32(esp, ebx); /* 0x36059776: push ebx */ 16862 PUSH32(esp, esi); /* 0x36059777: push esi */ 16863 esi = ecx; /* 0x36059778: mov esi, ecx */ 16864 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16865 ebx = 0; /* 0x3605977A: xor ebx, ebx */ 16866 _cf = 0; 16867 _flag_k = FK_TEST; 16868 MEM32(esi + 0x38) = ebx; /* 0x3605977C: mov dword ptr [esi + 0x38], ebx */ 16869 MEM32(esi + 0x3C) = ebx; /* 0x3605977F: mov dword ptr [esi + 0x3c], ebx */ 16870 PUSH32(esp, edi); /* 0x36059782: push edi */ 16871 PUSH32(esp, 0x361C2814u); /* 0x36059783: push 0x361c2814 */ 16872 MEM32(esi + 0x40) = eax; /* 0x36059788: mov dword ptr [esi + 0x40], eax */ 16873 MEM32(esi + 0x64) = ebx; /* 0x3605978B: mov dword ptr [esi + 0x64], ebx */ 16874 MEM32(esi + 0x30) = 0x3F800000u; /* 0x3605978E: mov dword ptr [esi + 0x30], 0x3f800000 */ 16875 MEM32(esi + 0x34) = ebx; /* 0x36059795: mov dword ptr [esi + 0x34], ebx */ 16876 RECOMP_ICALL(0x3601C590u); /* 0x36059798: call 0x3601c590 */ /* not lifted */ 16877 RECOMP_FLAGS_IN(); 16878 ecx = eax; /* 0x3605979D: mov ecx, eax */ 16879 RECOMP_ICALL(0x3601CBC0u); /* 0x3605979F: call 0x3601cbc0 */ /* not lifted */ 16880 RECOMP_FLAGS_IN(); 16881 PUSH32(esp, 0x361C27F8u); /* 0x360597A4: push 0x361c27f8 */ 16882 MEM32(esi) = eax; /* 0x360597A9: mov dword ptr [esi], eax */ 16883 RECOMP_ICALL(0x3601C590u); /* 0x360597AB: call 0x3601c590 */ /* not lifted */ 16884 RECOMP_FLAGS_IN(); 16885 ecx = eax; /* 0x360597B0: mov ecx, eax */ 16886 RECOMP_ICALL(0x3601CBC0u); /* 0x360597B2: call 0x3601cbc0 */ /* not lifted */ 16887 RECOMP_FLAGS_IN(); 16888 PUSH32(esp, 0x361C27DCu); /* 0x360597B7: push 0x361c27dc */ 16889 MEM32(esi + 0x4) = eax; /* 0x360597BC: mov dword ptr [esi + 4], eax */ 16890 RECOMP_ICALL(0x3601C590u); /* 0x360597BF: call 0x3601c590 */ /* not lifted */ 16891 RECOMP_FLAGS_IN(); 16892 ecx = eax; /* 0x360597C4: mov ecx, eax */ 16893 RECOMP_ICALL(0x3601CBC0u); /* 0x360597C6: call 0x3601cbc0 */ /* not lifted */ 16894 RECOMP_FLAGS_IN(); 16895 PUSH32(esp, 0x361C27BCu); /* 0x360597CB: push 0x361c27bc */ 16896 MEM32(esi + 0x8) = eax; /* 0x360597D0: mov dword ptr [esi + 8], eax */ 16897 RECOMP_ICALL(0x3601C590u); /* 0x360597D3: call 0x3601c590 */ /* not lifted */ 16898 RECOMP_FLAGS_IN(); 16899 ecx = eax; /* 0x360597D8: mov ecx, eax */ 16900 RECOMP_ICALL(0x3601CBC0u); /* 0x360597DA: call 0x3601cbc0 */ /* not lifted */ 16901 RECOMP_FLAGS_IN(); 16902 PUSH32(esp, 0x361C27A4u); /* 0x360597DF: push 0x361c27a4 */ 16903 MEM32(esi + 0xC) = eax; /* 0x360597E4: mov dword ptr [esi + 0xc], eax */ 16904 RECOMP_ICALL(0x3601C590u); /* 0x360597E7: call 0x3601c590 */ /* not lifted */ 16905 RECOMP_FLAGS_IN(); 16906 ecx = eax; /* 0x360597EC: mov ecx, eax */ 16907 RECOMP_ICALL(0x3601CBC0u); /* 0x360597EE: call 0x3601cbc0 */ /* not lifted */ 16908 RECOMP_FLAGS_IN(); 16909 PUSH32(esp, 0x361C2790u); /* 0x360597F3: push 0x361c2790 */ 16910 MEM32(esi + 0x10) = eax; /* 0x360597F8: mov dword ptr [esi + 0x10], eax */ 16911 RECOMP_ICALL(0x3601C590u); /* 0x360597FB: call 0x3601c590 */ /* not lifted */ 16912 RECOMP_FLAGS_IN(); 16913 ecx = eax; /* 0x36059800: mov ecx, eax */ 16914 RECOMP_ICALL(0x3601CBC0u); /* 0x36059802: call 0x3601cbc0 */ /* not lifted */ 16915 RECOMP_FLAGS_IN(); 16916 PUSH32(esp, 0x361C277Cu); /* 0x36059807: push 0x361c277c */ 16917 MEM32(esi + 0x14) = eax; /* 0x3605980C: mov dword ptr [esi + 0x14], eax */ 16918 RECOMP_ICALL(0x3601C590u); /* 0x3605980F: call 0x3601c590 */ /* not lifted */ 16919 RECOMP_FLAGS_IN(); 16920 ecx = eax; /* 0x36059814: mov ecx, eax */ 16921 RECOMP_ICALL(0x3601CBC0u); /* 0x36059816: call 0x3601cbc0 */ /* not lifted */ 16922 RECOMP_FLAGS_IN(); 16923 PUSH32(esp, 0x361C2768u); /* 0x3605981B: push 0x361c2768 */ 16924 MEM32(esi + 0x18) = eax; /* 0x36059820: mov dword ptr [esi + 0x18], eax */ 16925 RECOMP_ICALL(0x3601C590u); /* 0x36059823: call 0x3601c590 */ /* not lifted */ 16926 RECOMP_FLAGS_IN(); 16927 ecx = eax; /* 0x36059828: mov ecx, eax */ 16928 RECOMP_ICALL(0x3601CBC0u); /* 0x3605982A: call 0x3601cbc0 */ /* not lifted */ 16929 RECOMP_FLAGS_IN(); 16930 PUSH32(esp, 0x361C274Cu); /* 0x3605982F: push 0x361c274c */ 16931 MEM32(esi + 0x1C) = eax; /* 0x36059834: mov dword ptr [esi + 0x1c], eax */ 16932 RECOMP_ICALL(0x3601C590u); /* 0x36059837: call 0x3601c590 */ /* not lifted */ 16933 RECOMP_FLAGS_IN(); 16934 ecx = eax; /* 0x3605983C: mov ecx, eax */ 16935 RECOMP_ICALL(0x3601CBC0u); /* 0x3605983E: call 0x3601cbc0 */ /* not lifted */ 16936 RECOMP_FLAGS_IN(); 16937 PUSH32(esp, 0x361C272Cu); /* 0x36059843: push 0x361c272c */ 16938 MEM32(esi + 0x20) = eax; /* 0x36059848: mov dword ptr [esi + 0x20], eax */ 16939 RECOMP_ICALL(0x3601C590u); /* 0x3605984B: call 0x3601c590 */ /* not lifted */ 16940 RECOMP_FLAGS_IN(); 16941 ecx = eax; /* 0x36059850: mov ecx, eax */ 16942 RECOMP_ICALL(0x3601CBC0u); /* 0x36059852: call 0x3601cbc0 */ /* not lifted */ 16943 RECOMP_FLAGS_IN(); 16944 MEM32(esi + 0x24) = eax; /* 0x36059857: mov dword ptr [esi + 0x24], eax */ 16945 MEM32(esi + 0x28) = ebx; /* 0x3605985A: mov dword ptr [esi + 0x28], ebx */ 16946 MEM32(esi + 0x2C) = ebx; /* 0x3605985D: mov dword ptr [esi + 0x2c], ebx */ 16947 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16948 eax = 0; /* 0x36059860: xor eax, eax */ 16949 _cf = 0; 16950 _flag_k = FK_TEST; 16951 edi = esi + 0x44; /* 0x36059862: lea edi, [esi + 0x44] */ 16952 ecx = 8; /* 0x36059865: mov ecx, 8 */ 16953 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3605986A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 16954 ecx = MEM32(esi + 0x40); /* 0x3605986C: mov ecx, dword ptr [esi + 0x40] */ 16955 edx = MEM32(ecx + 0xE4); /* 0x3605986F: mov edx, dword ptr [ecx + 0xe4] */ 16956 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 16957 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16958 ecx = ecx + 0xE4u; /* 0x36059875: add ecx, 0xe4 */ 16959 _flag_k = FK_ADD; 16960 PUSH32(esp, 0xE0u); /* 0x3605987B: push 0xe0 */ 16961 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x36059880: call dword ptr [edx + 0x10] */ 16962 RECOMP_FLAGS_IN(); 16963 /* test LO8(eax), LO8(eax) */ /* 0x36059883: test al, al */ 16964 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16965 _cf = 0; 16966 _flag_k = FK_NARROW(FK_TEST, 24); 16967 if (TEST_Z(_flag_a, _flag_b)) goto L_360598B4; /* 0x36059885: je 0x360598b4 */ 16968 L_36059887: 16969 eax = MEM32(esi + 0x40); /* 0x36059887: mov eax, dword ptr [esi + 0x40] */ 16970 ecx = eax + 0xE4; /* 0x3605988A: lea ecx, [eax + 0xe4] */ 16971 eax = MEM32(ecx); /* 0x36059890: mov eax, dword ptr [ecx] */ 16972 PUSH32(esp, 2); /* 0x36059892: push 2 */ 16973 PUSH32(esp, 0xE0u); /* 0x36059894: push 0xe0 */ 16974 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36059899: call dword ptr [eax + 4] */ 16975 RECOMP_FLAGS_IN(); 16976 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16977 ecx = 0; /* 0x3605989C: xor ecx, ecx */ 16978 _cf = 0; 16979 _flag_k = FK_TEST; 16980 L_3605989E: 16981 edx = 1; /* 0x3605989E: mov edx, 1 */ 16982 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x360598A3: shl edx, cl */ 16983 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16984 edx = edx << ((LO8(ecx)) & 31); /* 0x360598A3: shl edx, cl */ 16985 /* test eax, edx */ /* 0x360598A5: test eax, edx */ 16986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 16987 _cf = 0; 16988 _flag_k = FK_TEST; 16989 if (TEST_Z(_flag_a, _flag_b)) goto L_360598AE; /* 0x360598A7: je 0x360598ae */ 16990 L_360598A9: 16991 MEM8(esi + ecx + 0x44) = (uint8_t)(1); /* 0x360598A9: mov byte ptr [esi + ecx + 0x44], 1 */ 16992 L_360598AE: 16993 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 16994 ecx = ecx + 1; /* 0x360598AE: inc ecx */ 16995 _flag_k = FK_INC; 16996 /* cmp ecx, 0x20u */ /* 0x360598AF: cmp ecx, 0x20 */ 16997 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 16998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16999 _flag_k = FK_CMP; 17000 RECOMP_BACKEDGE(); 17001 if (CMP_B(_flag_a, _flag_b)) goto L_3605989E; /* 0x360598B2: jb 0x3605989e */ 17002 L_360598B4: 17003 edi = POP32_VAL(esp); /* 0x360598B4: pop edi */ 17004 eax = esi; /* 0x360598B5: mov eax, esi */ 17005 esi = POP32_VAL(esp); /* 0x360598B7: pop esi */ 17006 ebx = POP32_VAL(esp); /* 0x360598B8: pop ebx */ 17007 ebp = POP32_VAL(esp); /* 0x360598B9: pop ebp */ 17008 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360598BA: ret 4 */ 17009 RECOMP_REGS_OUT(); 17010 } 17011 17012 void sub_360598C0(void) { 17013 int _fpu_cmp = 0; 17014 uint32_t _cf = 0; 17015 int _df = 1; 17016 uint32_t _flag_k = FK_NONE; 17017 uint32_t _flag_a = 0, _flag_b = 0; 17018 uint32_t _itail_tgt = 0; 17019 RECOMP_REGS_LOCALS 17020 RECOMP_ENTER(0x360598C0u); 17021 17022 L_360598C0: 17023 PUSH32(esp, ebx); /* 0x360598C0: push ebx */ 17024 PUSH32(esp, esi); /* 0x360598C1: push esi */ 17025 esi = ecx; /* 0x360598C2: mov esi, ecx */ 17026 eax = MEM32(esi + 0x28); /* 0x360598C4: mov eax, dword ptr [esi + 0x28] */ 17027 PUSH32(esp, eax); /* 0x360598C7: push eax */ 17028 RECOMP_ICALL(0x360F7B00u); /* 0x360598C8: call 0x360f7b00 */ /* not lifted */ 17029 RECOMP_FLAGS_IN(); 17030 ecx = eax; /* 0x360598CD: mov ecx, eax */ 17031 RECOMP_ICALL(0x360FB530u); /* 0x360598CF: call 0x360fb530 */ /* not lifted */ 17032 RECOMP_FLAGS_IN(); 17033 ecx = MEM32(esi + 0x2C); /* 0x360598D4: mov ecx, dword ptr [esi + 0x2c] */ 17034 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17035 ebx = 0; /* 0x360598D7: xor ebx, ebx */ 17036 _cf = 0; 17037 _flag_k = FK_TEST; 17038 PUSH32(esp, ecx); /* 0x360598D9: push ecx */ 17039 MEM32(esi + 0x28) = ebx; /* 0x360598DA: mov dword ptr [esi + 0x28], ebx */ 17040 RECOMP_ICALL(0x360F7B00u); /* 0x360598DD: call 0x360f7b00 */ /* not lifted */ 17041 RECOMP_FLAGS_IN(); 17042 ecx = eax; /* 0x360598E2: mov ecx, eax */ 17043 RECOMP_ICALL(0x360FB530u); /* 0x360598E4: call 0x360fb530 */ /* not lifted */ 17044 RECOMP_FLAGS_IN(); 17045 MEM32(esi + 0x2C) = ebx; /* 0x360598E9: mov dword ptr [esi + 0x2c], ebx */ 17046 esi = MEM32(esi + 0x64); /* 0x360598EC: mov esi, dword ptr [esi + 0x64] */ 17047 /* cmp esi, ebx */ /* 0x360598EF: cmp esi, ebx */ 17048 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 17049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17050 _flag_k = FK_CMP; 17051 if (CMP_EQ(_flag_a, _flag_b)) goto L_36059928; /* 0x360598F1: je 0x36059928 */ 17052 L_360598F3: 17053 eax = MEM32(esi + 0x4); /* 0x360598F3: mov eax, dword ptr [esi + 4] */ 17054 /* cmp eax, ebx */ /* 0x360598F6: cmp eax, ebx */ 17055 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 17056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17057 _flag_k = FK_CMP; 17058 if (CMP_EQ(_flag_a, _flag_b)) goto L_36059916; /* 0x360598F8: je 0x36059916 */ 17059 L_360598FA: 17060 ecx = eax + (-0x1); /* 0x360598FA: lea ecx, [eax - 1] */ 17061 SET_LO8(eax, MEM8(ecx)); /* 0x360598FD: mov al, byte ptr [ecx] */ 17062 /* cmp LO8(eax), LO8(ebx) */ /* 0x360598FF: cmp al, bl */ 17063 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17065 _flag_k = FK_NARROW(FK_CMP, 24); 17066 if (CMP_EQ(_flag_a, _flag_b)) goto L_3605990D; /* 0x36059901: je 0x3605990d */ 17067 L_36059903: 17068 /* cmp LO8(eax), 0xFFu */ /* 0x36059903: cmp al, 0xff */ 17069 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 17070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17071 _flag_k = FK_NARROW(FK_CMP, 24); 17072 if (CMP_EQ(_flag_a, _flag_b)) goto L_3605990D; /* 0x36059905: je 0x3605990d */ 17073 L_36059907: 17074 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 17075 SET_LO8(eax, LO8(eax) - 1); /* 0x36059907: dec al */ 17076 _flag_k = FK_NARROW(FK_DEC, 24); 17077 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36059909: mov byte ptr [ecx], al */ 17078 goto L_36059916; /* 0x3605990B: jmp 0x36059916 */ 17079 L_3605990D: 17080 PUSH32(esp, ecx); /* 0x3605990D: push ecx */ 17081 RECOMP_ICALL(0x3615FCC4u); /* 0x3605990E: call 0x3615fcc4 */ /* not lifted */ 17082 RECOMP_FLAGS_IN(); 17083 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17084 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17085 esp = esp + 4; /* 0x36059913: add esp, 4 */ 17086 _flag_k = FK_ADD; 17087 L_36059916: 17088 PUSH32(esp, esi); /* 0x36059916: push esi */ 17089 MEM32(esi + 0x4) = ebx; /* 0x36059917: mov dword ptr [esi + 4], ebx */ 17090 MEM32(esi + 0x8) = ebx; /* 0x3605991A: mov dword ptr [esi + 8], ebx */ 17091 MEM32(esi + 0xC) = ebx; /* 0x3605991D: mov dword ptr [esi + 0xc], ebx */ 17092 RECOMP_ICALL(0x3615FCC4u); /* 0x36059920: call 0x3615fcc4 */ /* not lifted */ 17093 RECOMP_FLAGS_IN(); 17094 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17095 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17096 esp = esp + 4; /* 0x36059925: add esp, 4 */ 17097 _flag_k = FK_ADD; 17098 L_36059928: 17099 esi = POP32_VAL(esp); /* 0x36059928: pop esi */ 17100 ebx = POP32_VAL(esp); /* 0x36059929: pop ebx */ 17101 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3605992A: ret */ 17102 RECOMP_REGS_OUT(); 17103 } 17104 17105 void sub_36059930(void) { 17106 int _fpu_cmp = 0; 17107 uint32_t _cf = 0; 17108 int _df = 1; 17109 uint32_t _flag_k = FK_NONE; 17110 uint32_t _flag_a = 0, _flag_b = 0; 17111 uint32_t _itail_tgt = 0; 17112 RECOMP_REGS_LOCALS 17113 RECOMP_ENTER(0x36059930u); 17114 17115 L_36059930: 17116 PUSH32(esp, ebp); /* 0x36059930: push ebp */ 17117 ebp = esp; /* 0x36059931: mov ebp, esp */ 17118 PUSH32(esp, ebx); /* 0x36059933: push ebx */ 17119 PUSH32(esp, esi); /* 0x36059934: push esi */ 17120 esi = ecx; /* 0x36059935: mov esi, ecx */ 17121 eax = MEM32(esi + 0x40); /* 0x36059937: mov eax, dword ptr [esi + 0x40] */ 17122 PUSH32(esp, edi); /* 0x3605993A: push edi */ 17123 ecx = eax + 0xE4; /* 0x3605993B: lea ecx, [eax + 0xe4] */ 17124 eax = MEM32(ecx); /* 0x36059941: mov eax, dword ptr [ecx] */ 17125 PUSH32(esp, 2); /* 0x36059943: push 2 */ 17126 PUSH32(esp, 0xE0u); /* 0x36059945: push 0xe0 */ 17127 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3605994A: call dword ptr [eax + 4] */ 17128 RECOMP_FLAGS_IN(); 17129 edi = eax; /* 0x3605994D: mov edi, eax */ 17130 eax = MEM32(ebp + 0x8); /* 0x3605994F: mov eax, dword ptr [ebp + 8] */ 17131 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17132 ecx = 0; /* 0x36059952: xor ecx, ecx */ 17133 _cf = 0; 17134 _flag_k = FK_TEST; 17135 /* test eax, eax */ /* 0x36059954: test eax, eax */ 17136 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17137 _cf = 0; 17138 _flag_k = FK_TEST; 17139 edx = edi; /* 0x36059956: mov edx, edi */ 17140 if (TEST_Z(_flag_a, _flag_b)) goto L_3605997A; /* 0x36059958: je 0x3605997a */ 17141 L_3605995A: 17142 /* test LO8(eax), 1 */ /* 0x3605995A: test al, 1 */ 17143 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 17144 _cf = 0; 17145 _flag_k = FK_NARROW(FK_TEST, 24); 17146 if (TEST_Z(_flag_a, _flag_b)) goto L_36059975; /* 0x3605995C: je 0x36059975 */ 17147 L_3605995E: 17148 SET_LO8(ebx, MEM8(ecx + esi + 0x44)); /* 0x3605995E: mov bl, byte ptr [ecx + esi + 0x44] */ 17149 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 17150 SET_LO8(ebx, LO8(ebx) + 1); /* 0x36059962: inc bl */ 17151 _flag_k = FK_NARROW(FK_INC, 24); 17152 /* test LO8(ebx), LO8(ebx) */ /* 0x36059964: test bl, bl */ 17153 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17154 _cf = 0; 17155 _flag_k = FK_NARROW(FK_TEST, 24); 17156 MEM8(ecx + esi + 0x44) = (uint8_t)(LO8(ebx)); /* 0x36059966: mov byte ptr [ecx + esi + 0x44], bl */ 17157 if (TEST_LE(_flag_a, _flag_b)) goto L_36059975; /* 0x3605996A: jle 0x36059975 */ 17158 L_3605996C: 17159 ebx = 1; /* 0x3605996C: mov ebx, 1 */ 17160 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((ebx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x36059971: shl ebx, cl */ 17161 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((ebx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17162 ebx = ebx << ((LO8(ecx)) & 31); /* 0x36059971: shl ebx, cl */ 17163 _flag_a = (uint32_t)((edx | ebx)); _flag_b = (uint32_t)((edx | ebx)); 17164 edx = edx | ebx; /* 0x36059973: or edx, ebx */ 17165 _cf = 0; 17166 _flag_k = FK_TEST; 17167 L_36059975: 17168 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17169 ecx = ecx + 1; /* 0x36059975: inc ecx */ 17170 _flag_k = FK_INC; 17171 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36059976: shr eax, 1 */ 17172 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17173 eax = eax >> 1u; /* 0x36059976: shr eax, 1 */ 17174 RECOMP_BACKEDGE(); 17175 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3605995A; /* 0x36059978: jne 0x3605995a */ 17176 L_3605997A: 17177 eax = MEM32(esi + 0x40); /* 0x3605997A: mov eax, dword ptr [esi + 0x40] */ 17178 _flag_a = (uint32_t)((edx ^ edi)); _flag_b = (uint32_t)((edx ^ edi)); 17179 edx = edx ^ edi; /* 0x3605997D: xor edx, edi */ 17180 _cf = 0; 17181 _flag_k = FK_TEST; 17182 edi = MEM32(eax + 0xE4); /* 0x3605997F: mov edi, dword ptr [eax + 0xe4] */ 17183 ecx = eax + 0xE4; /* 0x36059985: lea ecx, [eax + 0xe4] */ 17184 PUSH32(esp, 2); /* 0x3605998B: push 2 */ 17185 PUSH32(esp, 0xE0u); /* 0x3605998D: push 0xe0 */ 17186 ebx = edx; /* 0x36059992: mov ebx, edx */ 17187 RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x36059994: call dword ptr [edi + 4] */ 17188 RECOMP_FLAGS_IN(); 17189 ecx = MEM32(esi + 0x40); /* 0x36059997: mov ecx, dword ptr [esi + 0x40] */ 17190 _flag_a = (uint32_t)((eax | ebx)); _flag_b = (uint32_t)((eax | ebx)); 17191 eax = eax | ebx; /* 0x3605999A: or eax, ebx */ 17192 _cf = 0; 17193 _flag_k = FK_TEST; 17194 PUSH32(esp, eax); /* 0x3605999C: push eax */ 17195 PUSH32(esp, 0xE0u); /* 0x3605999D: push 0xe0 */ 17196 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 17197 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17198 ecx = ecx + 0xE4u; /* 0x360599A2: add ecx, 0xe4 */ 17199 _flag_k = FK_ADD; 17200 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x360599A8: call dword ptr [edi + 8] */ 17201 RECOMP_FLAGS_IN(); 17202 eax = MEM32(esi + 0x40); /* 0x360599AB: mov eax, dword ptr [esi + 0x40] */ 17203 edx = MEM32(eax + 0xE4); /* 0x360599AE: mov edx, dword ptr [eax + 0xe4] */ 17204 ecx = eax + 0xE4; /* 0x360599B4: lea ecx, [eax + 0xe4] */ 17205 PUSH32(esp, 0x00020000u); /* 0x360599BA: push 0x20000 */ 17206 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x360599BF: call dword ptr [edx + 0x1c] */ 17207 RECOMP_FLAGS_IN(); 17208 /* test LO8(eax), LO8(eax) */ /* 0x360599C2: test al, al */ 17209 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 17210 _cf = 0; 17211 _flag_k = FK_NARROW(FK_TEST, 24); 17212 if (TEST_NZ(_flag_a, _flag_b)) goto L_360599F7; /* 0x360599C4: jne 0x360599f7 */ 17213 L_360599C6: 17214 /* test LO8(ebx), 4 */ /* 0x360599C6: test bl, 4 */ 17215 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(4) << 24; 17216 _cf = 0; 17217 _flag_k = FK_NARROW(FK_TEST, 24); 17218 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A25; /* 0x360599C9: je 0x36059a25 */ 17219 L_360599CB: 17220 ecx = MEM32(esi + 0x40); /* 0x360599CB: mov ecx, dword ptr [esi + 0x40] */ 17221 RECOMP_ICALL(0x3606D5A0u); /* 0x360599CE: call 0x3606d5a0 */ /* not lifted */ 17222 RECOMP_FLAGS_IN(); 17223 edi = eax; /* 0x360599D3: mov edi, eax */ 17224 /* test edi, edi */ /* 0x360599D5: test edi, edi */ 17225 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 17226 _cf = 0; 17227 _flag_k = FK_TEST; 17228 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A25; /* 0x360599D7: je 0x36059a25 */ 17229 L_360599D9: 17230 PUSH32(esp, 0x22u); /* 0x360599D9: push 0x22 */ 17231 ecx = edi; /* 0x360599DB: mov ecx, edi */ 17232 RECOMP_ICALL(0x36049130u); /* 0x360599DD: call 0x36049130 */ /* not lifted */ 17233 RECOMP_FLAGS_IN(); 17234 SET_LO8(eax, MEM8(edi + 0x124)); /* 0x360599E2: mov al, byte ptr [edi + 0x124] */ 17235 /* test LO8(eax), LO8(eax) */ /* 0x360599E8: test al, al */ 17236 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 17237 _cf = 0; 17238 _flag_k = FK_NARROW(FK_TEST, 24); 17239 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A25; /* 0x360599EA: je 0x36059a25 */ 17240 L_360599EC: 17241 PUSH32(esp, 0x18u); /* 0x360599EC: push 0x18 */ 17242 ecx = edi; /* 0x360599EE: mov ecx, edi */ 17243 RECOMP_ICALL(0x36049130u); /* 0x360599F0: call 0x36049130 */ /* not lifted */ 17244 RECOMP_FLAGS_IN(); 17245 goto L_36059A25; /* 0x360599F5: jmp 0x36059a25 */ 17246 L_360599F7: 17247 ecx = MEM32(esi + 0x40); /* 0x360599F7: mov ecx, dword ptr [esi + 0x40] */ 17248 edi = MEM32(ecx + 0xE4); /* 0x360599FA: mov edi, dword ptr [ecx + 0xe4] */ 17249 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 17250 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17251 ecx = ecx + 0xE4u; /* 0x36059A00: add ecx, 0xe4 */ 17252 _flag_k = FK_ADD; 17253 PUSH32(esp, 2); /* 0x36059A06: push 2 */ 17254 PUSH32(esp, 0xE0u); /* 0x36059A08: push 0xe0 */ 17255 RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x36059A0D: call dword ptr [edi + 4] */ 17256 RECOMP_FLAGS_IN(); 17257 ecx = MEM32(esi + 0x40); /* 0x36059A10: mov ecx, dword ptr [esi + 0x40] */ 17258 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFBu); 17259 eax = eax & 0xFFFFFFFBu; /* 0x36059A13: and eax, 0xfffffffb */ 17260 _cf = 0; 17261 _flag_k = FK_TEST; 17262 PUSH32(esp, eax); /* 0x36059A16: push eax */ 17263 PUSH32(esp, 0xE0u); /* 0x36059A17: push 0xe0 */ 17264 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 17265 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17266 ecx = ecx + 0xE4u; /* 0x36059A1C: add ecx, 0xe4 */ 17267 _flag_k = FK_ADD; 17268 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x36059A22: call dword ptr [edi + 8] */ 17269 RECOMP_FLAGS_IN(); 17270 L_36059A25: 17271 /* test LO8(ebx), 8 */ /* 0x36059A25: test bl, 8 */ 17272 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(8) << 24; 17273 _cf = 0; 17274 _flag_k = FK_NARROW(FK_TEST, 24); 17275 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A3E; /* 0x36059A28: je 0x36059a3e */ 17276 L_36059A2A: 17277 ecx = MEM32(esi + 0x40); /* 0x36059A2A: mov ecx, dword ptr [esi + 0x40] */ 17278 RECOMP_ICALL(0x3606D5A0u); /* 0x36059A2D: call 0x3606d5a0 */ /* not lifted */ 17279 RECOMP_FLAGS_IN(); 17280 /* test eax, eax */ /* 0x36059A32: test eax, eax */ 17281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17282 _cf = 0; 17283 _flag_k = FK_TEST; 17284 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A3E; /* 0x36059A34: je 0x36059a3e */ 17285 L_36059A36: 17286 ecx = eax; /* 0x36059A36: mov ecx, eax */ 17287 RECOMP_ICALL(MEM32(0x3617034C)); /* 0x36059A38: call dword ptr [0x3617034c] */ 17288 RECOMP_FLAGS_IN(); 17289 L_36059A3E: 17290 /* test ebx, 0x02000000u */ /* 0x36059A3E: test ebx, 0x2000000 */ 17291 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x02000000u); 17292 _cf = 0; 17293 _flag_k = FK_TEST; 17294 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A70; /* 0x36059A44: je 0x36059a70 */ 17295 L_36059A46: 17296 ecx = MEM32(esi + 0x40); /* 0x36059A46: mov ecx, dword ptr [esi + 0x40] */ 17297 RECOMP_ICALL(0x3606D5A0u); /* 0x36059A49: call 0x3606d5a0 */ /* not lifted */ 17298 RECOMP_FLAGS_IN(); 17299 esi = eax; /* 0x36059A4E: mov esi, eax */ 17300 /* test esi, esi */ /* 0x36059A50: test esi, esi */ 17301 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 17302 _cf = 0; 17303 _flag_k = FK_TEST; 17304 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A70; /* 0x36059A52: je 0x36059a70 */ 17305 L_36059A54: 17306 ecx = esi; /* 0x36059A54: mov ecx, esi */ 17307 RECOMP_ICALL(0x36047900u); /* 0x36059A56: call 0x36047900 */ /* not lifted */ 17308 RECOMP_FLAGS_IN(); 17309 ecx = eax; /* 0x36059A5B: mov ecx, eax */ 17310 RECOMP_ICALL(0x36008320u); /* 0x36059A5D: call 0x36008320 */ /* not lifted */ 17311 RECOMP_FLAGS_IN(); 17312 /* cmp eax, 7 */ /* 0x36059A62: cmp eax, 7 */ 17313 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 17314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17315 _flag_k = FK_CMP; 17316 if (CMP_NE(_flag_a, _flag_b)) goto L_36059A70; /* 0x36059A65: jne 0x36059a70 */ 17317 L_36059A67: 17318 PUSH32(esp, 0x23u); /* 0x36059A67: push 0x23 */ 17319 ecx = esi; /* 0x36059A69: mov ecx, esi */ 17320 RECOMP_ICALL(0x36049130u); /* 0x36059A6B: call 0x36049130 */ /* not lifted */ 17321 RECOMP_FLAGS_IN(); 17322 L_36059A70: 17323 edi = POP32_VAL(esp); /* 0x36059A70: pop edi */ 17324 esi = POP32_VAL(esp); /* 0x36059A71: pop esi */ 17325 ebx = POP32_VAL(esp); /* 0x36059A72: pop ebx */ 17326 ebp = POP32_VAL(esp); /* 0x36059A73: pop ebp */ 17327 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36059A74: ret 4 */ 17328 RECOMP_REGS_OUT(); 17329 } 17330 17331 void sub_360599A8(void) { 17332 int _fpu_cmp = 0; 17333 uint32_t _cf = 0; 17334 int _df = 1; 17335 uint32_t _flag_k = FK_NONE; 17336 uint32_t _flag_a = 0, _flag_b = 0; 17337 uint32_t _itail_tgt = 0; 17338 RECOMP_REGS_LOCALS 17339 RECOMP_ENTER(0x360599A8u); 17340 17341 L_360599A8: 17342 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x360599A8: call dword ptr [edi + 8] */ 17343 RECOMP_FLAGS_IN(); 17344 eax = MEM32(esi + 0x40); /* 0x360599AB: mov eax, dword ptr [esi + 0x40] */ 17345 edx = MEM32(eax + 0xE4); /* 0x360599AE: mov edx, dword ptr [eax + 0xe4] */ 17346 ecx = eax + 0xE4; /* 0x360599B4: lea ecx, [eax + 0xe4] */ 17347 PUSH32(esp, 0x00020000u); /* 0x360599BA: push 0x20000 */ 17348 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x360599BF: call dword ptr [edx + 0x1c] */ 17349 RECOMP_FLAGS_IN(); 17350 /* test LO8(eax), LO8(eax) */ /* 0x360599C2: test al, al */ 17351 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 17352 _cf = 0; 17353 _flag_k = FK_NARROW(FK_TEST, 24); 17354 if (TEST_NZ(_flag_a, _flag_b)) goto L_360599F7; /* 0x360599C4: jne 0x360599f7 */ 17355 L_360599C6: 17356 /* test LO8(ebx), 4 */ /* 0x360599C6: test bl, 4 */ 17357 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(4) << 24; 17358 _cf = 0; 17359 _flag_k = FK_NARROW(FK_TEST, 24); 17360 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A25; /* 0x360599C9: je 0x36059a25 */ 17361 L_360599CB: 17362 ecx = MEM32(esi + 0x40); /* 0x360599CB: mov ecx, dword ptr [esi + 0x40] */ 17363 RECOMP_ICALL(0x3606D5A0u); /* 0x360599CE: call 0x3606d5a0 */ /* not lifted */ 17364 RECOMP_FLAGS_IN(); 17365 edi = eax; /* 0x360599D3: mov edi, eax */ 17366 /* test edi, edi */ /* 0x360599D5: test edi, edi */ 17367 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 17368 _cf = 0; 17369 _flag_k = FK_TEST; 17370 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A25; /* 0x360599D7: je 0x36059a25 */ 17371 L_360599D9: 17372 PUSH32(esp, 0x22u); /* 0x360599D9: push 0x22 */ 17373 ecx = edi; /* 0x360599DB: mov ecx, edi */ 17374 RECOMP_ICALL(0x36049130u); /* 0x360599DD: call 0x36049130 */ /* not lifted */ 17375 RECOMP_FLAGS_IN(); 17376 SET_LO8(eax, MEM8(edi + 0x124)); /* 0x360599E2: mov al, byte ptr [edi + 0x124] */ 17377 /* test LO8(eax), LO8(eax) */ /* 0x360599E8: test al, al */ 17378 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 17379 _cf = 0; 17380 _flag_k = FK_NARROW(FK_TEST, 24); 17381 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A25; /* 0x360599EA: je 0x36059a25 */ 17382 L_360599EC: 17383 PUSH32(esp, 0x18u); /* 0x360599EC: push 0x18 */ 17384 ecx = edi; /* 0x360599EE: mov ecx, edi */ 17385 RECOMP_ICALL(0x36049130u); /* 0x360599F0: call 0x36049130 */ /* not lifted */ 17386 RECOMP_FLAGS_IN(); 17387 goto L_36059A25; /* 0x360599F5: jmp 0x36059a25 */ 17388 L_360599F7: 17389 ecx = MEM32(esi + 0x40); /* 0x360599F7: mov ecx, dword ptr [esi + 0x40] */ 17390 edi = MEM32(ecx + 0xE4); /* 0x360599FA: mov edi, dword ptr [ecx + 0xe4] */ 17391 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 17392 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17393 ecx = ecx + 0xE4u; /* 0x36059A00: add ecx, 0xe4 */ 17394 _flag_k = FK_ADD; 17395 PUSH32(esp, 2); /* 0x36059A06: push 2 */ 17396 PUSH32(esp, 0xE0u); /* 0x36059A08: push 0xe0 */ 17397 RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x36059A0D: call dword ptr [edi + 4] */ 17398 RECOMP_FLAGS_IN(); 17399 ecx = MEM32(esi + 0x40); /* 0x36059A10: mov ecx, dword ptr [esi + 0x40] */ 17400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFBu); 17401 eax = eax & 0xFFFFFFFBu; /* 0x36059A13: and eax, 0xfffffffb */ 17402 _cf = 0; 17403 _flag_k = FK_TEST; 17404 PUSH32(esp, eax); /* 0x36059A16: push eax */ 17405 PUSH32(esp, 0xE0u); /* 0x36059A17: push 0xe0 */ 17406 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 17407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17408 ecx = ecx + 0xE4u; /* 0x36059A1C: add ecx, 0xe4 */ 17409 _flag_k = FK_ADD; 17410 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x36059A22: call dword ptr [edi + 8] */ 17411 RECOMP_FLAGS_IN(); 17412 L_36059A25: 17413 /* test LO8(ebx), 8 */ /* 0x36059A25: test bl, 8 */ 17414 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(8) << 24; 17415 _cf = 0; 17416 _flag_k = FK_NARROW(FK_TEST, 24); 17417 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A3E; /* 0x36059A28: je 0x36059a3e */ 17418 L_36059A2A: 17419 ecx = MEM32(esi + 0x40); /* 0x36059A2A: mov ecx, dword ptr [esi + 0x40] */ 17420 RECOMP_ICALL(0x3606D5A0u); /* 0x36059A2D: call 0x3606d5a0 */ /* not lifted */ 17421 RECOMP_FLAGS_IN(); 17422 /* test eax, eax */ /* 0x36059A32: test eax, eax */ 17423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17424 _cf = 0; 17425 _flag_k = FK_TEST; 17426 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A3E; /* 0x36059A34: je 0x36059a3e */ 17427 L_36059A36: 17428 ecx = eax; /* 0x36059A36: mov ecx, eax */ 17429 RECOMP_ICALL(MEM32(0x3617034C)); /* 0x36059A38: call dword ptr [0x3617034c] */ 17430 RECOMP_FLAGS_IN(); 17431 L_36059A3E: 17432 /* test ebx, 0x02000000u */ /* 0x36059A3E: test ebx, 0x2000000 */ 17433 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x02000000u); 17434 _cf = 0; 17435 _flag_k = FK_TEST; 17436 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A70; /* 0x36059A44: je 0x36059a70 */ 17437 L_36059A46: 17438 ecx = MEM32(esi + 0x40); /* 0x36059A46: mov ecx, dword ptr [esi + 0x40] */ 17439 RECOMP_ICALL(0x3606D5A0u); /* 0x36059A49: call 0x3606d5a0 */ /* not lifted */ 17440 RECOMP_FLAGS_IN(); 17441 esi = eax; /* 0x36059A4E: mov esi, eax */ 17442 /* test esi, esi */ /* 0x36059A50: test esi, esi */ 17443 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 17444 _cf = 0; 17445 _flag_k = FK_TEST; 17446 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A70; /* 0x36059A52: je 0x36059a70 */ 17447 L_36059A54: 17448 ecx = esi; /* 0x36059A54: mov ecx, esi */ 17449 RECOMP_ICALL(0x36047900u); /* 0x36059A56: call 0x36047900 */ /* not lifted */ 17450 RECOMP_FLAGS_IN(); 17451 ecx = eax; /* 0x36059A5B: mov ecx, eax */ 17452 RECOMP_ICALL(0x36008320u); /* 0x36059A5D: call 0x36008320 */ /* not lifted */ 17453 RECOMP_FLAGS_IN(); 17454 /* cmp eax, 7 */ /* 0x36059A62: cmp eax, 7 */ 17455 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 17456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17457 _flag_k = FK_CMP; 17458 if (CMP_NE(_flag_a, _flag_b)) goto L_36059A70; /* 0x36059A65: jne 0x36059a70 */ 17459 L_36059A67: 17460 PUSH32(esp, 0x23u); /* 0x36059A67: push 0x23 */ 17461 ecx = esi; /* 0x36059A69: mov ecx, esi */ 17462 RECOMP_ICALL(0x36049130u); /* 0x36059A6B: call 0x36049130 */ /* not lifted */ 17463 RECOMP_FLAGS_IN(); 17464 L_36059A70: 17465 edi = POP32_VAL(esp); /* 0x36059A70: pop edi */ 17466 esi = POP32_VAL(esp); /* 0x36059A71: pop esi */ 17467 ebx = POP32_VAL(esp); /* 0x36059A72: pop ebx */ 17468 ebp = POP32_VAL(esp); /* 0x36059A73: pop ebp */ 17469 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36059A74: ret 4 */ 17470 RECOMP_REGS_OUT(); 17471 } 17472 17473 void sub_36059A25(void) { 17474 int _fpu_cmp = 0; 17475 uint32_t _cf = 0; 17476 int _df = 1; 17477 uint32_t _flag_k = FK_NONE; 17478 uint32_t _flag_a = 0, _flag_b = 0; 17479 uint32_t _itail_tgt = 0; 17480 RECOMP_REGS_LOCALS 17481 RECOMP_ENTER(0x36059A25u); 17482 17483 L_36059A25: 17484 /* test LO8(ebx), 8 */ /* 0x36059A25: test bl, 8 */ 17485 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(8) << 24; 17486 _cf = 0; 17487 _flag_k = FK_NARROW(FK_TEST, 24); 17488 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A3E; /* 0x36059A28: je 0x36059a3e */ 17489 L_36059A2A: 17490 ecx = MEM32(esi + 0x40); /* 0x36059A2A: mov ecx, dword ptr [esi + 0x40] */ 17491 RECOMP_ICALL(0x3606D5A0u); /* 0x36059A2D: call 0x3606d5a0 */ /* not lifted */ 17492 RECOMP_FLAGS_IN(); 17493 /* test eax, eax */ /* 0x36059A32: test eax, eax */ 17494 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17495 _cf = 0; 17496 _flag_k = FK_TEST; 17497 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A3E; /* 0x36059A34: je 0x36059a3e */ 17498 L_36059A36: 17499 ecx = eax; /* 0x36059A36: mov ecx, eax */ 17500 RECOMP_ICALL(MEM32(0x3617034C)); /* 0x36059A38: call dword ptr [0x3617034c] */ 17501 RECOMP_FLAGS_IN(); 17502 L_36059A3E: 17503 /* test ebx, 0x02000000u */ /* 0x36059A3E: test ebx, 0x2000000 */ 17504 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x02000000u); 17505 _cf = 0; 17506 _flag_k = FK_TEST; 17507 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A70; /* 0x36059A44: je 0x36059a70 */ 17508 L_36059A46: 17509 ecx = MEM32(esi + 0x40); /* 0x36059A46: mov ecx, dword ptr [esi + 0x40] */ 17510 RECOMP_ICALL(0x3606D5A0u); /* 0x36059A49: call 0x3606d5a0 */ /* not lifted */ 17511 RECOMP_FLAGS_IN(); 17512 esi = eax; /* 0x36059A4E: mov esi, eax */ 17513 /* test esi, esi */ /* 0x36059A50: test esi, esi */ 17514 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 17515 _cf = 0; 17516 _flag_k = FK_TEST; 17517 if (TEST_Z(_flag_a, _flag_b)) goto L_36059A70; /* 0x36059A52: je 0x36059a70 */ 17518 L_36059A54: 17519 ecx = esi; /* 0x36059A54: mov ecx, esi */ 17520 RECOMP_ICALL(0x36047900u); /* 0x36059A56: call 0x36047900 */ /* not lifted */ 17521 RECOMP_FLAGS_IN(); 17522 ecx = eax; /* 0x36059A5B: mov ecx, eax */ 17523 RECOMP_ICALL(0x36008320u); /* 0x36059A5D: call 0x36008320 */ /* not lifted */ 17524 RECOMP_FLAGS_IN(); 17525 /* cmp eax, 7 */ /* 0x36059A62: cmp eax, 7 */ 17526 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 17527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17528 _flag_k = FK_CMP; 17529 if (CMP_NE(_flag_a, _flag_b)) goto L_36059A70; /* 0x36059A65: jne 0x36059a70 */ 17530 L_36059A67: 17531 PUSH32(esp, 0x23u); /* 0x36059A67: push 0x23 */ 17532 ecx = esi; /* 0x36059A69: mov ecx, esi */ 17533 RECOMP_ICALL(0x36049130u); /* 0x36059A6B: call 0x36049130 */ /* not lifted */ 17534 RECOMP_FLAGS_IN(); 17535 L_36059A70: 17536 edi = POP32_VAL(esp); /* 0x36059A70: pop edi */ 17537 esi = POP32_VAL(esp); /* 0x36059A71: pop esi */ 17538 ebx = POP32_VAL(esp); /* 0x36059A72: pop ebx */ 17539 ebp = POP32_VAL(esp); /* 0x36059A73: pop ebp */ 17540 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36059A74: ret 4 */ 17541 RECOMP_REGS_OUT(); 17542 } 17543 17544 void sub_36059A80(void) { 17545 int _fpu_cmp = 0; 17546 uint32_t _cf = 0; 17547 int _df = 1; 17548 uint32_t _flag_k = FK_NONE; 17549 uint32_t _flag_a = 0, _flag_b = 0; 17550 uint32_t _itail_tgt = 0; 17551 RECOMP_REGS_LOCALS 17552 RECOMP_ENTER(0x36059A80u); 17553 17554 L_36059A80: 17555 PUSH32(esp, ebp); /* 0x36059A80: push ebp */ 17556 ebp = esp; /* 0x36059A81: mov ebp, esp */ 17557 PUSH32(esp, ebx); /* 0x36059A83: push ebx */ 17558 PUSH32(esp, esi); /* 0x36059A84: push esi */ 17559 esi = ecx; /* 0x36059A85: mov esi, ecx */ 17560 ecx = MEM32(esi + 0x40); /* 0x36059A87: mov ecx, dword ptr [esi + 0x40] */ 17561 eax = MEM32(ecx + 0xE4); /* 0x36059A8A: mov eax, dword ptr [ecx + 0xe4] */ 17562 PUSH32(esp, edi); /* 0x36059A90: push edi */ 17563 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 17564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17565 ecx = ecx + 0xE4u; /* 0x36059A91: add ecx, 0xe4 */ 17566 _flag_k = FK_ADD; 17567 PUSH32(esp, 2); /* 0x36059A97: push 2 */ 17568 PUSH32(esp, 0xE0u); /* 0x36059A99: push 0xe0 */ 17569 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36059A9E: call dword ptr [eax + 4] */ 17570 RECOMP_FLAGS_IN(); 17571 edi = eax; /* 0x36059AA1: mov edi, eax */ 17572 eax = MEM32(ebp + 0x8); /* 0x36059AA3: mov eax, dword ptr [ebp + 8] */ 17573 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17574 ecx = 0; /* 0x36059AA6: xor ecx, ecx */ 17575 _cf = 0; 17576 _flag_k = FK_TEST; 17577 /* test eax, eax */ /* 0x36059AA8: test eax, eax */ 17578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17579 _cf = 0; 17580 _flag_k = FK_TEST; 17581 edx = edi; /* 0x36059AAA: mov edx, edi */ 17582 if (TEST_Z(_flag_a, _flag_b)) goto L_36059AD0; /* 0x36059AAC: je 0x36059ad0 */ 17583 L_36059AAE: 17584 /* test LO8(eax), 1 */ /* 0x36059AAE: test al, 1 */ 17585 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 17586 _cf = 0; 17587 _flag_k = FK_NARROW(FK_TEST, 24); 17588 if (TEST_Z(_flag_a, _flag_b)) goto L_36059ACB; /* 0x36059AB0: je 0x36059acb */ 17589 L_36059AB2: 17590 SET_LO8(ebx, MEM8(ecx + esi + 0x44)); /* 0x36059AB2: mov bl, byte ptr [ecx + esi + 0x44] */ 17591 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 17592 SET_LO8(ebx, LO8(ebx) - 1); /* 0x36059AB6: dec bl */ 17593 _flag_k = FK_NARROW(FK_DEC, 24); 17594 /* test LO8(ebx), LO8(ebx) */ /* 0x36059AB8: test bl, bl */ 17595 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17596 _cf = 0; 17597 _flag_k = FK_NARROW(FK_TEST, 24); 17598 MEM8(ecx + esi + 0x44) = (uint8_t)(LO8(ebx)); /* 0x36059ABA: mov byte ptr [ecx + esi + 0x44], bl */ 17599 if (TEST_G(_flag_a, _flag_b)) goto L_36059ACB; /* 0x36059ABE: jg 0x36059acb */ 17600 L_36059AC0: 17601 ebx = 1; /* 0x36059AC0: mov ebx, 1 */ 17602 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((ebx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x36059AC5: shl ebx, cl */ 17603 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((ebx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17604 ebx = ebx << ((LO8(ecx)) & 31); /* 0x36059AC5: shl ebx, cl */ 17605 ebx = ~ebx; /* 0x36059AC7: not ebx */ 17606 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 17607 edx = edx & ebx; /* 0x36059AC9: and edx, ebx */ 17608 _cf = 0; 17609 _flag_k = FK_TEST; 17610 L_36059ACB: 17611 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17612 ecx = ecx + 1; /* 0x36059ACB: inc ecx */ 17613 _flag_k = FK_INC; 17614 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36059ACC: shr eax, 1 */ 17615 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17616 eax = eax >> 1u; /* 0x36059ACC: shr eax, 1 */ 17617 RECOMP_BACKEDGE(); 17618 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36059AAE; /* 0x36059ACE: jne 0x36059aae */ 17619 L_36059AD0: 17620 eax = MEM32(esi + 0x40); /* 0x36059AD0: mov eax, dword ptr [esi + 0x40] */ 17621 _flag_a = (uint32_t)((edx ^ edi)); _flag_b = (uint32_t)((edx ^ edi)); 17622 edx = edx ^ edi; /* 0x36059AD3: xor edx, edi */ 17623 _cf = 0; 17624 _flag_k = FK_TEST; 17625 edi = MEM32(eax + 0xE4); /* 0x36059AD5: mov edi, dword ptr [eax + 0xe4] */ 17626 ecx = eax + 0xE4; /* 0x36059ADB: lea ecx, [eax + 0xe4] */ 17627 PUSH32(esp, 2); /* 0x36059AE1: push 2 */ 17628 PUSH32(esp, 0xE0u); /* 0x36059AE3: push 0xe0 */ 17629 ebx = edx; /* 0x36059AE8: mov ebx, edx */ 17630 RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x36059AEA: call dword ptr [edi + 4] */ 17631 RECOMP_FLAGS_IN(); 17632 ecx = ebx; /* 0x36059AED: mov ecx, ebx */ 17633 ecx = ~ecx; /* 0x36059AEF: not ecx */ 17634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 17635 eax = eax & ecx; /* 0x36059AF1: and eax, ecx */ 17636 _cf = 0; 17637 _flag_k = FK_TEST; 17638 ecx = MEM32(esi + 0x40); /* 0x36059AF3: mov ecx, dword ptr [esi + 0x40] */ 17639 PUSH32(esp, eax); /* 0x36059AF6: push eax */ 17640 PUSH32(esp, 0xE0u); /* 0x36059AF7: push 0xe0 */ 17641 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 17642 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17643 ecx = ecx + 0xE4u; /* 0x36059AFC: add ecx, 0xe4 */ 17644 _flag_k = FK_ADD; 17645 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x36059B02: call dword ptr [edi + 8] */ 17646 RECOMP_FLAGS_IN(); 17647 /* test LO8(ebx), 0x80u */ /* 0x36059B05: test bl, 0x80 */ 17648 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(0x80u) << 24; 17649 _cf = 0; 17650 _flag_k = FK_NARROW(FK_TEST, 24); 17651 if (TEST_Z(_flag_a, _flag_b)) goto L_36059B36; /* 0x36059B08: je 0x36059b36 */ 17652 L_36059B0A: 17653 ecx = MEM32(esi + 0x40); /* 0x36059B0A: mov ecx, dword ptr [esi + 0x40] */ 17654 RECOMP_ICALL(0x3606D5A0u); /* 0x36059B0D: call 0x3606d5a0 */ /* not lifted */ 17655 RECOMP_FLAGS_IN(); 17656 ecx = eax; /* 0x36059B12: mov ecx, eax */ 17657 RECOMP_ICALL(0x36047900u); /* 0x36059B14: call 0x36047900 */ /* not lifted */ 17658 RECOMP_FLAGS_IN(); 17659 ecx = eax; /* 0x36059B19: mov ecx, eax */ 17660 RECOMP_ICALL(0x36008320u); /* 0x36059B1B: call 0x36008320 */ /* not lifted */ 17661 RECOMP_FLAGS_IN(); 17662 /* cmp eax, 6 */ /* 0x36059B20: cmp eax, 6 */ 17663 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 17664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17665 _flag_k = FK_CMP; 17666 if (CMP_NE(_flag_a, _flag_b)) goto L_36059B36; /* 0x36059B23: jne 0x36059b36 */ 17667 L_36059B25: 17668 ecx = MEM32(esi + 0x40); /* 0x36059B25: mov ecx, dword ptr [esi + 0x40] */ 17669 PUSH32(esp, 0x20u); /* 0x36059B28: push 0x20 */ 17670 RECOMP_ICALL(0x3606D5A0u); /* 0x36059B2A: call 0x3606d5a0 */ /* not lifted */ 17671 RECOMP_FLAGS_IN(); 17672 ecx = eax; /* 0x36059B2F: mov ecx, eax */ 17673 RECOMP_ICALL(0x36049130u); /* 0x36059B31: call 0x36049130 */ /* not lifted */ 17674 RECOMP_FLAGS_IN(); 17675 L_36059B36: 17676 /* test LO8(ebx), 4 */ /* 0x36059B36: test bl, 4 */ 17677 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(4) << 24; 17678 _cf = 0; 17679 _flag_k = FK_NARROW(FK_TEST, 24); 17680 if (TEST_Z(_flag_a, _flag_b)) goto L_36059B77; /* 0x36059B39: je 0x36059b77 */ 17681 L_36059B3B: 17682 eax = MEM32(esi + 0x40); /* 0x36059B3B: mov eax, dword ptr [esi + 0x40] */ 17683 edx = MEM32(eax + 0xE4); /* 0x36059B3E: mov edx, dword ptr [eax + 0xe4] */ 17684 ecx = eax + 0xE4; /* 0x36059B44: lea ecx, [eax + 0xe4] */ 17685 PUSH32(esp, 0x00020000u); /* 0x36059B4A: push 0x20000 */ 17686 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36059B4F: call dword ptr [edx + 0x1c] */ 17687 RECOMP_FLAGS_IN(); 17688 /* test LO8(eax), LO8(eax) */ /* 0x36059B52: test al, al */ 17689 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 17690 _cf = 0; 17691 _flag_k = FK_NARROW(FK_TEST, 24); 17692 if (TEST_NZ(_flag_a, _flag_b)) goto L_36059B77; /* 0x36059B54: jne 0x36059b77 */ 17693 L_36059B56: 17694 ecx = MEM32(esi + 0x40); /* 0x36059B56: mov ecx, dword ptr [esi + 0x40] */ 17695 RECOMP_ICALL(0x3606D5A0u); /* 0x36059B59: call 0x3606d5a0 */ /* not lifted */ 17696 RECOMP_FLAGS_IN(); 17697 edi = eax; /* 0x36059B5E: mov edi, eax */ 17698 /* test edi, edi */ /* 0x36059B60: test edi, edi */ 17699 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 17700 _cf = 0; 17701 _flag_k = FK_TEST; 17702 if (TEST_Z(_flag_a, _flag_b)) goto L_36059B77; /* 0x36059B62: je 0x36059b77 */ 17703 L_36059B64: 17704 ecx = MEM32(esi + 0x40); /* 0x36059B64: mov ecx, dword ptr [esi + 0x40] */ 17705 PUSH32(esp, 1); /* 0x36059B67: push 1 */ 17706 RECOMP_ICALL(0x36071460u); /* 0x36059B69: call 0x36071460 */ /* not lifted */ 17707 RECOMP_FLAGS_IN(); 17708 PUSH32(esp, 0x15u); /* 0x36059B6E: push 0x15 */ 17709 ecx = edi; /* 0x36059B70: mov ecx, edi */ 17710 RECOMP_ICALL(0x36049130u); /* 0x36059B72: call 0x36049130 */ /* not lifted */ 17711 RECOMP_FLAGS_IN(); 17712 L_36059B77: 17713 /* test LO8(ebx), 8 */ /* 0x36059B77: test bl, 8 */ 17714 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(8) << 24; 17715 _cf = 0; 17716 _flag_k = FK_NARROW(FK_TEST, 24); 17717 if (TEST_Z(_flag_a, _flag_b)) goto L_36059B90; /* 0x36059B7A: je 0x36059b90 */ 17718 L_36059B7C: 17719 ecx = MEM32(esi + 0x40); /* 0x36059B7C: mov ecx, dword ptr [esi + 0x40] */ 17720 RECOMP_ICALL(0x3606D5A0u); /* 0x36059B7F: call 0x3606d5a0 */ /* not lifted */ 17721 RECOMP_FLAGS_IN(); 17722 /* test eax, eax */ /* 0x36059B84: test eax, eax */ 17723 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17724 _cf = 0; 17725 _flag_k = FK_TEST; 17726 if (TEST_Z(_flag_a, _flag_b)) goto L_36059B90; /* 0x36059B86: je 0x36059b90 */ 17727 L_36059B88: 17728 ecx = eax; /* 0x36059B88: mov ecx, eax */ 17729 RECOMP_ICALL(MEM32(0x36170364)); /* 0x36059B8A: call dword ptr [0x36170364] */ 17730 RECOMP_FLAGS_IN(); 17731 L_36059B90: 17732 edi = POP32_VAL(esp); /* 0x36059B90: pop edi */ 17733 esi = POP32_VAL(esp); /* 0x36059B91: pop esi */ 17734 ebx = POP32_VAL(esp); /* 0x36059B92: pop ebx */ 17735 ebp = POP32_VAL(esp); /* 0x36059B93: pop ebp */ 17736 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36059B94: ret 4 */ 17737 RECOMP_REGS_OUT(); 17738 } 17739 17740 void sub_36059AA8(void) { 17741 int _fpu_cmp = 0; 17742 uint32_t _cf = 0; 17743 int _df = 1; 17744 uint32_t _flag_k = FK_NONE; 17745 uint32_t _flag_a = 0, _flag_b = 0; 17746 uint32_t _itail_tgt = 0; 17747 RECOMP_REGS_LOCALS 17748 RECOMP_ENTER(0x36059AA8u); 17749 17750 L_36059AA8: 17751 /* test eax, eax */ /* 0x36059AA8: test eax, eax */ 17752 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17753 _cf = 0; 17754 _flag_k = FK_TEST; 17755 edx = edi; /* 0x36059AAA: mov edx, edi */ 17756 if (TEST_Z(_flag_a, _flag_b)) goto L_36059AD0; /* 0x36059AAC: je 0x36059ad0 */ 17757 L_36059AAE: 17758 /* test LO8(eax), 1 */ /* 0x36059AAE: test al, 1 */ 17759 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 17760 _cf = 0; 17761 _flag_k = FK_NARROW(FK_TEST, 24); 17762 if (TEST_Z(_flag_a, _flag_b)) goto L_36059ACB; /* 0x36059AB0: je 0x36059acb */ 17763 L_36059AB2: 17764 SET_LO8(ebx, MEM8(ecx + esi + 0x44)); /* 0x36059AB2: mov bl, byte ptr [ecx + esi + 0x44] */ 17765 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 17766 SET_LO8(ebx, LO8(ebx) - 1); /* 0x36059AB6: dec bl */ 17767 _flag_k = FK_NARROW(FK_DEC, 24); 17768 /* test LO8(ebx), LO8(ebx) */ /* 0x36059AB8: test bl, bl */ 17769 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 17770 _cf = 0; 17771 _flag_k = FK_NARROW(FK_TEST, 24); 17772 MEM8(ecx + esi + 0x44) = (uint8_t)(LO8(ebx)); /* 0x36059ABA: mov byte ptr [ecx + esi + 0x44], bl */ 17773 if (TEST_G(_flag_a, _flag_b)) goto L_36059ACB; /* 0x36059ABE: jg 0x36059acb */ 17774 L_36059AC0: 17775 ebx = 1; /* 0x36059AC0: mov ebx, 1 */ 17776 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((ebx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x36059AC5: shl ebx, cl */ 17777 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((ebx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17778 ebx = ebx << ((LO8(ecx)) & 31); /* 0x36059AC5: shl ebx, cl */ 17779 ebx = ~ebx; /* 0x36059AC7: not ebx */ 17780 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 17781 edx = edx & ebx; /* 0x36059AC9: and edx, ebx */ 17782 _cf = 0; 17783 _flag_k = FK_TEST; 17784 L_36059ACB: 17785 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17786 ecx = ecx + 1; /* 0x36059ACB: inc ecx */ 17787 _flag_k = FK_INC; 17788 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36059ACC: shr eax, 1 */ 17789 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17790 eax = eax >> 1u; /* 0x36059ACC: shr eax, 1 */ 17791 RECOMP_BACKEDGE(); 17792 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36059AAE; /* 0x36059ACE: jne 0x36059aae */ 17793 L_36059AD0: 17794 eax = MEM32(esi + 0x40); /* 0x36059AD0: mov eax, dword ptr [esi + 0x40] */ 17795 _flag_a = (uint32_t)((edx ^ edi)); _flag_b = (uint32_t)((edx ^ edi)); 17796 edx = edx ^ edi; /* 0x36059AD3: xor edx, edi */ 17797 _cf = 0; 17798 _flag_k = FK_TEST; 17799 edi = MEM32(eax + 0xE4); /* 0x36059AD5: mov edi, dword ptr [eax + 0xe4] */ 17800 ecx = eax + 0xE4; /* 0x36059ADB: lea ecx, [eax + 0xe4] */ 17801 PUSH32(esp, 2); /* 0x36059AE1: push 2 */ 17802 PUSH32(esp, 0xE0u); /* 0x36059AE3: push 0xe0 */ 17803 ebx = edx; /* 0x36059AE8: mov ebx, edx */ 17804 RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x36059AEA: call dword ptr [edi + 4] */ 17805 RECOMP_FLAGS_IN(); 17806 ecx = ebx; /* 0x36059AED: mov ecx, ebx */ 17807 ecx = ~ecx; /* 0x36059AEF: not ecx */ 17808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 17809 eax = eax & ecx; /* 0x36059AF1: and eax, ecx */ 17810 _cf = 0; 17811 _flag_k = FK_TEST; 17812 ecx = MEM32(esi + 0x40); /* 0x36059AF3: mov ecx, dword ptr [esi + 0x40] */ 17813 PUSH32(esp, eax); /* 0x36059AF6: push eax */ 17814 PUSH32(esp, 0xE0u); /* 0x36059AF7: push 0xe0 */ 17815 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 17816 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17817 ecx = ecx + 0xE4u; /* 0x36059AFC: add ecx, 0xe4 */ 17818 _flag_k = FK_ADD; 17819 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x36059B02: call dword ptr [edi + 8] */ 17820 RECOMP_FLAGS_IN(); 17821 /* test LO8(ebx), 0x80u */ /* 0x36059B05: test bl, 0x80 */ 17822 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(0x80u) << 24; 17823 _cf = 0; 17824 _flag_k = FK_NARROW(FK_TEST, 24); 17825 if (TEST_Z(_flag_a, _flag_b)) goto L_36059B36; /* 0x36059B08: je 0x36059b36 */ 17826 L_36059B0A: 17827 ecx = MEM32(esi + 0x40); /* 0x36059B0A: mov ecx, dword ptr [esi + 0x40] */ 17828 RECOMP_ICALL(0x3606D5A0u); /* 0x36059B0D: call 0x3606d5a0 */ /* not lifted */ 17829 RECOMP_FLAGS_IN(); 17830 ecx = eax; /* 0x36059B12: mov ecx, eax */ 17831 RECOMP_ICALL(0x36047900u); /* 0x36059B14: call 0x36047900 */ /* not lifted */ 17832 RECOMP_FLAGS_IN(); 17833 ecx = eax; /* 0x36059B19: mov ecx, eax */ 17834 RECOMP_ICALL(0x36008320u); /* 0x36059B1B: call 0x36008320 */ /* not lifted */ 17835 RECOMP_FLAGS_IN(); 17836 /* cmp eax, 6 */ /* 0x36059B20: cmp eax, 6 */ 17837 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 17838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17839 _flag_k = FK_CMP; 17840 if (CMP_NE(_flag_a, _flag_b)) goto L_36059B36; /* 0x36059B23: jne 0x36059b36 */ 17841 L_36059B25: 17842 ecx = MEM32(esi + 0x40); /* 0x36059B25: mov ecx, dword ptr [esi + 0x40] */ 17843 PUSH32(esp, 0x20u); /* 0x36059B28: push 0x20 */ 17844 RECOMP_ICALL(0x3606D5A0u); /* 0x36059B2A: call 0x3606d5a0 */ /* not lifted */ 17845 RECOMP_FLAGS_IN(); 17846 ecx = eax; /* 0x36059B2F: mov ecx, eax */ 17847 RECOMP_ICALL(0x36049130u); /* 0x36059B31: call 0x36049130 */ /* not lifted */ 17848 RECOMP_FLAGS_IN(); 17849 L_36059B36: 17850 /* test LO8(ebx), 4 */ /* 0x36059B36: test bl, 4 */ 17851 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(4) << 24; 17852 _cf = 0; 17853 _flag_k = FK_NARROW(FK_TEST, 24); 17854 if (TEST_Z(_flag_a, _flag_b)) goto L_36059B77; /* 0x36059B39: je 0x36059b77 */ 17855 L_36059B3B: 17856 eax = MEM32(esi + 0x40); /* 0x36059B3B: mov eax, dword ptr [esi + 0x40] */ 17857 edx = MEM32(eax + 0xE4); /* 0x36059B3E: mov edx, dword ptr [eax + 0xe4] */ 17858 ecx = eax + 0xE4; /* 0x36059B44: lea ecx, [eax + 0xe4] */ 17859 PUSH32(esp, 0x00020000u); /* 0x36059B4A: push 0x20000 */ 17860 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36059B4F: call dword ptr [edx + 0x1c] */ 17861 RECOMP_FLAGS_IN(); 17862 /* test LO8(eax), LO8(eax) */ /* 0x36059B52: test al, al */ 17863 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 17864 _cf = 0; 17865 _flag_k = FK_NARROW(FK_TEST, 24); 17866 if (TEST_NZ(_flag_a, _flag_b)) goto L_36059B77; /* 0x36059B54: jne 0x36059b77 */ 17867 L_36059B56: 17868 ecx = MEM32(esi + 0x40); /* 0x36059B56: mov ecx, dword ptr [esi + 0x40] */ 17869 RECOMP_ICALL(0x3606D5A0u); /* 0x36059B59: call 0x3606d5a0 */ /* not lifted */ 17870 RECOMP_FLAGS_IN(); 17871 edi = eax; /* 0x36059B5E: mov edi, eax */ 17872 /* test edi, edi */ /* 0x36059B60: test edi, edi */ 17873 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 17874 _cf = 0; 17875 _flag_k = FK_TEST; 17876 if (TEST_Z(_flag_a, _flag_b)) goto L_36059B77; /* 0x36059B62: je 0x36059b77 */ 17877 L_36059B64: 17878 ecx = MEM32(esi + 0x40); /* 0x36059B64: mov ecx, dword ptr [esi + 0x40] */ 17879 PUSH32(esp, 1); /* 0x36059B67: push 1 */ 17880 RECOMP_ICALL(0x36071460u); /* 0x36059B69: call 0x36071460 */ /* not lifted */ 17881 RECOMP_FLAGS_IN(); 17882 PUSH32(esp, 0x15u); /* 0x36059B6E: push 0x15 */ 17883 ecx = edi; /* 0x36059B70: mov ecx, edi */ 17884 RECOMP_ICALL(0x36049130u); /* 0x36059B72: call 0x36049130 */ /* not lifted */ 17885 RECOMP_FLAGS_IN(); 17886 L_36059B77: 17887 /* test LO8(ebx), 8 */ /* 0x36059B77: test bl, 8 */ 17888 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(8) << 24; 17889 _cf = 0; 17890 _flag_k = FK_NARROW(FK_TEST, 24); 17891 if (TEST_Z(_flag_a, _flag_b)) goto L_36059B90; /* 0x36059B7A: je 0x36059b90 */ 17892 L_36059B7C: 17893 ecx = MEM32(esi + 0x40); /* 0x36059B7C: mov ecx, dword ptr [esi + 0x40] */ 17894 RECOMP_ICALL(0x3606D5A0u); /* 0x36059B7F: call 0x3606d5a0 */ /* not lifted */ 17895 RECOMP_FLAGS_IN(); 17896 /* test eax, eax */ /* 0x36059B84: test eax, eax */ 17897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17898 _cf = 0; 17899 _flag_k = FK_TEST; 17900 if (TEST_Z(_flag_a, _flag_b)) goto L_36059B90; /* 0x36059B86: je 0x36059b90 */ 17901 L_36059B88: 17902 ecx = eax; /* 0x36059B88: mov ecx, eax */ 17903 RECOMP_ICALL(MEM32(0x36170364)); /* 0x36059B8A: call dword ptr [0x36170364] */ 17904 RECOMP_FLAGS_IN(); 17905 L_36059B90: 17906 edi = POP32_VAL(esp); /* 0x36059B90: pop edi */ 17907 esi = POP32_VAL(esp); /* 0x36059B91: pop esi */ 17908 ebx = POP32_VAL(esp); /* 0x36059B92: pop ebx */ 17909 ebp = POP32_VAL(esp); /* 0x36059B93: pop ebp */ 17910 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36059B94: ret 4 */ 17911 RECOMP_REGS_OUT(); 17912 } 17913 17914 void sub_36059BA0(void) { 17915 int _fpu_cmp = 0; 17916 uint32_t _cf = 0; 17917 int _df = 1; 17918 uint32_t _flag_k = FK_NONE; 17919 uint32_t _flag_a = 0, _flag_b = 0; 17920 uint32_t _itail_tgt = 0; 17921 RECOMP_REGS_LOCALS 17922 RECOMP_ENTER(0x36059BA0u); 17923 17924 L_36059BA0: 17925 PUSH32(esp, ebp); /* 0x36059BA0: push ebp */ 17926 ebp = esp; /* 0x36059BA1: mov ebp, esp */ 17927 ecx = MEM32(ecx + 0x40); /* 0x36059BA3: mov ecx, dword ptr [ecx + 0x40] */ 17928 eax = MEM32(ecx + 0xE4); /* 0x36059BA6: mov eax, dword ptr [ecx + 0xe4] */ 17929 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 17930 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17931 ecx = ecx + 0xE4u; /* 0x36059BAC: add ecx, 0xe4 */ 17932 _flag_k = FK_ADD; 17933 PUSH32(esp, 2); /* 0x36059BB2: push 2 */ 17934 PUSH32(esp, 0xE0u); /* 0x36059BB4: push 0xe0 */ 17935 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36059BB9: call dword ptr [eax + 4] */ 17936 RECOMP_FLAGS_IN(); 17937 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 17938 eax = eax & MEM32(ebp + 0x8); /* 0x36059BBC: and eax, dword ptr [ebp + 8] */ 17939 _cf = 0; 17940 _flag_k = FK_TEST; 17941 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 17942 _cf = (eax) != 0; 17943 eax = (uint32_t)(-(int32_t)eax); /* 0x36059BBF: neg eax */ 17944 _flag_k = FK_CMP; 17945 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36059BC1: sbb eax, eax */ 17946 eax = _sc ? 0xFFFFFFFFu : 0; 17947 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 17948 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 17949 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 17950 _cf = (eax) != 0; 17951 eax = (uint32_t)(-(int32_t)eax); /* 0x36059BC3: neg eax */ 17952 _flag_k = FK_CMP; 17953 ebp = POP32_VAL(esp); /* 0x36059BC5: pop ebp */ 17954 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36059BC6: ret 4 */ 17955 RECOMP_REGS_OUT(); 17956 } 17957 17958 void sub_36059BD0(void) { 17959 int _fpu_cmp = 0; 17960 uint32_t _cf = 0; 17961 int _df = 1; 17962 uint32_t _flag_k = FK_NONE; 17963 uint32_t _flag_a = 0, _flag_b = 0; 17964 uint32_t _itail_tgt = 0; 17965 RECOMP_REGS_LOCALS 17966 RECOMP_ENTER(0x36059BD0u); 17967 17968 L_36059BD0: 17969 PUSH32(esp, ebp); /* 0x36059BD0: push ebp */ 17970 ebp = esp; /* 0x36059BD1: mov ebp, esp */ 17971 PUSH32(esp, esi); /* 0x36059BD3: push esi */ 17972 PUSH32(esp, edi); /* 0x36059BD4: push edi */ 17973 edi = ecx; /* 0x36059BD5: mov edi, ecx */ 17974 eax = MEM32(edi + 0x40); /* 0x36059BD7: mov eax, dword ptr [edi + 0x40] */ 17975 ecx = eax + 0xE4; /* 0x36059BDA: lea ecx, [eax + 0xe4] */ 17976 eax = MEM32(ecx); /* 0x36059BE0: mov eax, dword ptr [ecx] */ 17977 PUSH32(esp, 2); /* 0x36059BE2: push 2 */ 17978 PUSH32(esp, 0xD6u); /* 0x36059BE4: push 0xd6 */ 17979 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36059BE9: call dword ptr [eax + 4] */ 17980 RECOMP_FLAGS_IN(); 17981 esi = eax; /* 0x36059BEC: mov esi, eax */ 17982 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 17983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17984 esi = esi + MEM32(ebp + 0x8); /* 0x36059BEE: add esi, dword ptr [ebp + 8] */ 17985 _flag_k = FK_ADD; 17986 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36059BF5; /* 0x36059BF1: jns 0x36059bf5 */ 17987 L_36059BF3: 17988 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17989 esi = 0; /* 0x36059BF3: xor esi, esi */ 17990 _cf = 0; 17991 _flag_k = FK_TEST; 17992 L_36059BF5: 17993 eax = MEM32(edi + 0x40); /* 0x36059BF5: mov eax, dword ptr [edi + 0x40] */ 17994 edx = MEM32(eax + 0xE4); /* 0x36059BF8: mov edx, dword ptr [eax + 0xe4] */ 17995 ecx = eax + 0xE4; /* 0x36059BFE: lea ecx, [eax + 0xe4] */ 17996 PUSH32(esp, 3); /* 0x36059C04: push 3 */ 17997 PUSH32(esp, 0xDDu); /* 0x36059C06: push 0xdd */ 17998 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36059C0B: call dword ptr [edx + 4] */ 17999 RECOMP_FLAGS_IN(); 18000 /* cmp esi, eax */ /* 0x36059C0E: cmp esi, eax */ 18001 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 18002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18003 _flag_k = FK_CMP; 18004 if (CMP_LE(_flag_a, _flag_b)) goto L_36059C14; /* 0x36059C10: jle 0x36059c14 */ 18005 L_36059C12: 18006 esi = eax; /* 0x36059C12: mov esi, eax */ 18007 L_36059C14: 18008 edi = MEM32(edi + 0x40); /* 0x36059C14: mov edi, dword ptr [edi + 0x40] */ 18009 eax = MEM32(edi + 0xE4); /* 0x36059C17: mov eax, dword ptr [edi + 0xe4] */ 18010 ecx = edi + 0xE4; /* 0x36059C1D: lea ecx, [edi + 0xe4] */ 18011 PUSH32(esp, esi); /* 0x36059C23: push esi */ 18012 PUSH32(esp, 0xD6u); /* 0x36059C24: push 0xd6 */ 18013 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36059C29: call dword ptr [eax + 8] */ 18014 RECOMP_FLAGS_IN(); 18015 edi = POP32_VAL(esp); /* 0x36059C2C: pop edi */ 18016 esi = POP32_VAL(esp); /* 0x36059C2D: pop esi */ 18017 ebp = POP32_VAL(esp); /* 0x36059C2E: pop ebp */ 18018 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36059C2F: ret 4 */ 18019 RECOMP_REGS_OUT(); 18020 } 18021 18022 void sub_36059C40(void) { 18023 int _fpu_cmp = 0; 18024 uint32_t _cf = 0; 18025 int _df = 1; 18026 uint32_t _flag_k = FK_NONE; 18027 uint32_t _flag_a = 0, _flag_b = 0; 18028 uint32_t _itail_tgt = 0; 18029 RECOMP_REGS_LOCALS 18030 RECOMP_ENTER(0x36059C40u); 18031 18032 L_36059C40: 18033 PUSH32(esp, ebp); /* 0x36059C40: push ebp */ 18034 ebp = esp; /* 0x36059C41: mov ebp, esp */ 18035 eax = MEM32(ebp + 0xC); /* 0x36059C43: mov eax, dword ptr [ebp + 0xc] */ 18036 edx = eax; /* 0x36059C46: mov edx, eax */ 18037 if (16u) _cf = (((edx) >> 15) & 1u); /* 0x36059C48: shr edx, 0x10 */ 18038 if (16u) { _flag_a = recomp_flags_pack((edx >> 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18039 edx = edx >> 16u; /* 0x36059C48: shr edx, 0x10 */ 18040 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 18041 eax = eax & 0xFFu; /* 0x36059C4B: and eax, 0xff */ 18042 _cf = 0; 18043 _flag_k = FK_TEST; 18044 PUSH32(esp, edx); /* 0x36059C50: push edx */ 18045 PUSH32(esp, eax); /* 0x36059C51: push eax */ 18046 eax = MEM32(ecx + 0x40); /* 0x36059C52: mov eax, dword ptr [ecx + 0x40] */ 18047 ecx = MEM32(eax + 0x16C); /* 0x36059C55: mov ecx, dword ptr [eax + 0x16c] */ 18048 RECOMP_ICALL(0x3607A2E0u); /* 0x36059C5B: call 0x3607a2e0 */ /* not lifted */ 18049 RECOMP_FLAGS_IN(); 18050 ebp = POP32_VAL(esp); /* 0x36059C60: pop ebp */ 18051 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36059C61: ret 0xc */ 18052 RECOMP_REGS_OUT(); 18053 } 18054 18055 void sub_36059C70(void) { 18056 int _fpu_cmp = 0; 18057 uint32_t _cf = 0; 18058 int _df = 1; 18059 uint32_t _flag_k = FK_NONE; 18060 uint32_t _flag_a = 0, _flag_b = 0; 18061 uint32_t _itail_tgt = 0; 18062 RECOMP_REGS_LOCALS 18063 RECOMP_ENTER(0x36059C70u); 18064 18065 L_36059C70: 18066 PUSH32(esp, ebp); /* 0x36059C70: push ebp */ 18067 L_36059C71: 18068 ebp = esp; /* 0x36059C71: mov ebp, esp */ 18069 L_36059C73: 18070 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 18071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18072 esp = esp - 0x30u; /* 0x36059C73: sub esp, 0x30 */ 18073 _flag_k = FK_CMP; 18074 L_36059C76: 18075 PUSH32(esp, ebx); /* 0x36059C76: push ebx */ 18076 L_36059C77: 18077 ebx = MEM32(0x3616FFB0); /* 0x36059C77: mov ebx, dword ptr [0x3616ffb0] */ 18078 L_36059C7D: 18079 PUSH32(esp, esi); /* 0x36059C7D: push esi */ 18080 L_36059C7E: 18081 esi = ecx; /* 0x36059C7E: mov esi, ecx */ 18082 L_36059C80: 18083 ecx = MEM32(esi + 0x40); /* 0x36059C80: mov ecx, dword ptr [esi + 0x40] */ 18084 L_36059C83: 18085 PUSH32(esp, edi); /* 0x36059C83: push edi */ 18086 L_36059C84: 18087 RECOMP_ICALL(ebx); /* 0x36059C84: call ebx */ 18088 RECOMP_FLAGS_IN(); 18089 L_36059C86: 18090 ecx = MEM32(eax); /* 0x36059C86: mov ecx, dword ptr [eax] */ 18091 L_36059C88: 18092 MEM32(ebp + (-0x24)) = ecx; /* 0x36059C88: mov dword ptr [ebp - 0x24], ecx */ 18093 L_36059C8B: 18094 edx = MEM32(eax + 0x4); /* 0x36059C8B: mov edx, dword ptr [eax + 4] */ 18095 L_36059C8E: 18096 ecx = MEM32(esi + 0x40); /* 0x36059C8E: mov ecx, dword ptr [esi + 0x40] */ 18097 L_36059C91: 18098 MEM32(ebp + (-0x20)) = edx; /* 0x36059C91: mov dword ptr [ebp - 0x20], edx */ 18099 L_36059C94: 18100 eax = MEM32(eax + 0x8); /* 0x36059C94: mov eax, dword ptr [eax + 8] */ 18101 L_36059C97: 18102 MEM32(ebp + (-0x1C)) = eax; /* 0x36059C97: mov dword ptr [ebp - 0x1c], eax */ 18103 L_36059C9A: 18104 RECOMP_ICALL(MEM32(0x3616FFAC)); /* 0x36059C9A: call dword ptr [0x3616ffac] */ 18105 RECOMP_FLAGS_IN(); 18106 L_36059CA0: 18107 /* test eax, eax */ /* 0x36059CA0: test eax, eax */ 18108 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18109 _cf = 0; 18110 _flag_k = FK_TEST; 18111 L_36059CA2: 18112 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x36059CA2: je 0x3605a601 */ 18113 L_36059CA8: 18114 ecx = eax; /* 0x36059CA8: mov ecx, eax */ 18115 L_36059CAA: 18116 RECOMP_ICALL(MEM32(0x3616FF6C)); /* 0x36059CAA: call dword ptr [0x3616ff6c] */ 18117 RECOMP_FLAGS_IN(); 18118 L_36059CB0: 18119 edi = eax; /* 0x36059CB0: mov edi, eax */ 18120 L_36059CB2: 18121 /* test edi, edi */ /* 0x36059CB2: test edi, edi */ 18122 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 18123 _cf = 0; 18124 _flag_k = FK_TEST; 18125 L_36059CB4: 18126 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x36059CB4: je 0x3605a601 */ 18127 L_36059CBA: 18128 eax = MEM32(ebp + 0x10); /* 0x36059CBA: mov eax, dword ptr [ebp + 0x10] */ 18129 L_36059CBD: 18130 /* cmp eax, 0x8Du */ /* 0x36059CBD: cmp eax, 0x8d */ 18131 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8Du); 18132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18133 _flag_k = FK_CMP; 18134 L_36059CC2: 18135 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_LE, _cf)) goto L_36059CF1; /* 0x36059CC2: jle 0x36059cf1 */ 18136 L_36059CC4: 18137 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18139 esp = esp - 0xCu; /* 0x36059CC4: sub esp, 0xc */ 18140 _flag_k = FK_CMP; 18141 L_36059CC7: 18142 MEM32(ebp + (-0x30)) = 0; /* 0x36059CC7: mov dword ptr [ebp - 0x30], 0 */ 18143 L_36059CCE: 18144 edx = MEM32(ebp + (-0x30)); /* 0x36059CCE: mov edx, dword ptr [ebp - 0x30] */ 18145 L_36059CD1: 18146 ecx = esp; /* 0x36059CD1: mov ecx, esp */ 18147 L_36059CD3: 18148 MEM32(ecx) = edx; /* 0x36059CD3: mov dword ptr [ecx], edx */ 18149 L_36059CD5: 18150 MEM32(ebp + (-0x2C)) = 0; /* 0x36059CD5: mov dword ptr [ebp - 0x2c], 0 */ 18151 L_36059CDC: 18152 edx = MEM32(ebp + (-0x2C)); /* 0x36059CDC: mov edx, dword ptr [ebp - 0x2c] */ 18153 L_36059CDF: 18154 MEM32(ebp + (-0x28)) = 0; /* 0x36059CDF: mov dword ptr [ebp - 0x28], 0 */ 18155 L_36059CE6: 18156 MEM32(ecx + 0x4) = edx; /* 0x36059CE6: mov dword ptr [ecx + 4], edx */ 18157 L_36059CE9: 18158 edx = MEM32(ebp + (-0x28)); /* 0x36059CE9: mov edx, dword ptr [ebp - 0x28] */ 18159 L_36059CEC: 18160 goto L_3605A0E9; /* 0x36059CEC: jmp 0x3605a0e9 */ 18161 L_36059CF1: 18162 eax = MEM32(edi + 0xC); /* 0x36059CF1: mov eax, dword ptr [edi + 0xc] */ 18163 L_36059CF4: 18164 fp_push(*(float*)&MEM32(eax + 0x8264)); /* 0x36059CF4: fld dword ptr [eax + 0x8264] */ 18165 L_36059CFA: 18166 ecx = MEM32(esi + 0x40); /* 0x36059CFA: mov ecx, dword ptr [esi + 0x40] */ 18167 L_36059CFD: 18168 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36059CFD: fstp dword ptr [ebp - 8] */ 18169 L_36059D00: 18170 RECOMP_ICALL(ebx); /* 0x36059D00: call ebx */ 18171 RECOMP_FLAGS_IN(); 18172 L_36059D02: 18173 fp_push(*(float*)&MEM32(eax)); /* 0x36059D02: fld dword ptr [eax] */ 18174 L_36059D04: 18175 _st[0] /= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36059D04: fdiv dword ptr [ebp - 8] */ 18176 L_36059D07: 18177 RECOMP_ICALL(0x3615FD8Cu); /* 0x36059D07: call 0x3615fd8c */ /* not lifted */ 18178 RECOMP_FLAGS_IN(); 18179 L_36059D0C: 18180 ecx = MEM32(esi + 0x40); /* 0x36059D0C: mov ecx, dword ptr [esi + 0x40] */ 18181 L_36059D0F: 18182 MEM32(ebp + (-0x10)) = eax; /* 0x36059D0F: mov dword ptr [ebp - 0x10], eax */ 18183 L_36059D12: 18184 RECOMP_ICALL(ebx); /* 0x36059D12: call ebx */ 18185 RECOMP_FLAGS_IN(); 18186 L_36059D14: 18187 fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x36059D14: fld dword ptr [eax + 8] */ 18188 L_36059D17: 18189 _st[0] /= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36059D17: fdiv dword ptr [ebp - 8] */ 18190 L_36059D1A: 18191 RECOMP_ICALL(0x3615FD8Cu); /* 0x36059D1A: call 0x3615fd8c */ /* not lifted */ 18192 RECOMP_FLAGS_IN(); 18193 L_36059D1F: 18194 ecx = MEM32(ebp + 0xC); /* 0x36059D1F: mov ecx, dword ptr [ebp + 0xc] */ 18195 L_36059D22: 18196 MEM32(ebp + (-0xC)) = eax; /* 0x36059D22: mov dword ptr [ebp - 0xc], eax */ 18197 L_36059D25: 18198 eax = ecx; /* 0x36059D25: mov eax, ecx */ 18199 L_36059D27: 18200 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 18201 ecx = ecx & 0xFFu; /* 0x36059D27: and ecx, 0xff */ 18202 _cf = 0; 18203 _flag_k = FK_TEST; 18204 L_36059D2D: 18205 if (16u) _cf = (((eax) >> 15) & 1u); /* 0x36059D2D: shr eax, 0x10 */ 18206 if (16u) { _flag_a = recomp_flags_pack((eax >> 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18207 eax = eax >> 16u; /* 0x36059D2D: shr eax, 0x10 */ 18208 L_36059D30: 18209 MEM32(ebp + 0xC) = ecx; /* 0x36059D30: mov dword ptr [ebp + 0xc], ecx */ 18210 L_36059D33: 18211 ecx = MEM32(esi + 0x40); /* 0x36059D33: mov ecx, dword ptr [esi + 0x40] */ 18212 L_36059D36: 18213 MEM32(ebp + (-0x4)) = 5; /* 0x36059D36: mov dword ptr [ebp - 4], 5 */ 18214 L_36059D3D: 18215 MEM32(ebp + (-0x8)) = 0x3F800000u; /* 0x36059D3D: mov dword ptr [ebp - 8], 0x3f800000 */ 18216 L_36059D44: 18217 MEM32(ebp + (-0x14)) = eax; /* 0x36059D44: mov dword ptr [ebp - 0x14], eax */ 18218 L_36059D47: 18219 RECOMP_ICALL(0x36071AD0u); /* 0x36059D47: call 0x36071ad0 */ /* not lifted */ 18220 RECOMP_FLAGS_IN(); 18221 L_36059D4C: 18222 /* cmp eax, 5 */ /* 0x36059D4C: cmp eax, 5 */ 18223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5); 18224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18225 _flag_k = FK_CMP; 18226 L_36059D4F: 18227 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36059D65; /* 0x36059D4F: jne 0x36059d65 */ 18228 L_36059D51: 18229 /* cmp MEM32(ebp + 0x10), 0x42u */ /* 0x36059D51: cmp dword ptr [ebp + 0x10], 0x42 */ 18230 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(0x42u); 18231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18232 _flag_k = FK_CMP; 18233 L_36059D55: 18234 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36059D65; /* 0x36059D55: jne 0x36059d65 */ 18235 L_36059D57: 18236 ecx = MEM32(esi + 0x40); /* 0x36059D57: mov ecx, dword ptr [esi + 0x40] */ 18237 L_36059D5A: 18238 ecx = MEM32(ecx + 0x158); /* 0x36059D5A: mov ecx, dword ptr [ecx + 0x158] */ 18239 L_36059D60: 18240 RECOMP_ICALL(0x360665E0u); /* 0x36059D60: call 0x360665e0 */ /* not lifted */ 18241 RECOMP_FLAGS_IN(); 18242 L_36059D65: 18243 ecx = edi; /* 0x36059D65: mov ecx, edi */ 18244 L_36059D67: 18245 RECOMP_ICALL(MEM32(0x36170038)); /* 0x36059D67: call dword ptr [0x36170038] */ 18246 RECOMP_FLAGS_IN(); 18247 L_36059D6D: 18248 /* test LO8(eax), LO8(eax) */ /* 0x36059D6D: test al, al */ 18249 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18250 _cf = 0; 18251 _flag_k = FK_NARROW(FK_TEST, 24); 18252 L_36059D6F: 18253 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36059E05; /* 0x36059D6F: je 0x36059e05 */ 18254 L_36059D75: 18255 edx = MEM32(ebp + (-0xC)); /* 0x36059D75: mov edx, dword ptr [ebp - 0xc] */ 18256 L_36059D78: 18257 eax = MEM32(ebp + (-0x10)); /* 0x36059D78: mov eax, dword ptr [ebp - 0x10] */ 18258 L_36059D7B: 18259 PUSH32(esp, edx); /* 0x36059D7B: push edx */ 18260 L_36059D7C: 18261 PUSH32(esp, eax); /* 0x36059D7C: push eax */ 18262 L_36059D7D: 18263 ecx = edi; /* 0x36059D7D: mov ecx, edi */ 18264 L_36059D7F: 18265 RECOMP_ICALL(MEM32(0x3616FC94)); /* 0x36059D7F: call dword ptr [0x3616fc94] */ 18266 RECOMP_FLAGS_IN(); 18267 L_36059D85: 18268 edx = MEM32(ebp + (-0xC)); /* 0x36059D85: mov edx, dword ptr [ebp - 0xc] */ 18269 L_36059D88: 18270 PUSH32(esp, edx); /* 0x36059D88: push edx */ 18271 L_36059D89: 18272 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 18273 eax = eax & 0xFFu; /* 0x36059D89: and eax, 0xff */ 18274 _cf = 0; 18275 _flag_k = FK_TEST; 18276 L_36059D8E: 18277 MEM32(ebp + (-0x18)) = eax; /* 0x36059D8E: mov dword ptr [ebp - 0x18], eax */ 18278 L_36059D91: 18279 eax = MEM32(edi + 0xC); /* 0x36059D91: mov eax, dword ptr [edi + 0xc] */ 18280 L_36059D94: 18281 ecx = MEM32(eax + 0x1C); /* 0x36059D94: mov ecx, dword ptr [eax + 0x1c] */ 18282 L_36059D97: 18283 MEM32(ebp + (-0x4)) = ecx; /* 0x36059D97: mov dword ptr [ebp - 4], ecx */ 18284 L_36059D9A: 18285 ecx = MEM32(ebp + (-0x10)); /* 0x36059D9A: mov ecx, dword ptr [ebp - 0x10] */ 18286 L_36059D9D: 18287 PUSH32(esp, ecx); /* 0x36059D9D: push ecx */ 18288 L_36059D9E: 18289 ecx = MEM32(eax + 0x8258); /* 0x36059D9E: mov ecx, dword ptr [eax + 0x8258] */ 18290 L_36059DA4: 18291 RECOMP_ICALL(MEM32(0x3616F364)); /* 0x36059DA4: call dword ptr [0x3616f364] */ 18292 RECOMP_FLAGS_IN(); 18293 L_36059DAA: 18294 ecx = MEM32(esi + 0x40); /* 0x36059DAA: mov ecx, dword ptr [esi + 0x40] */ 18295 L_36059DAD: 18296 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 18297 eax = eax & 0xFFFFu; /* 0x36059DAD: and eax, 0xffff */ 18298 _cf = 0; 18299 _flag_k = FK_TEST; 18300 L_36059DB2: 18301 MEM32(ebp + (-0x10)) = eax; /* 0x36059DB2: mov dword ptr [ebp - 0x10], eax */ 18302 L_36059DB5: 18303 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x36059DB5: fild dword ptr [ebp - 0x10] */ 18304 L_36059DB8: 18305 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36059DB8: fmul dword ptr [ebp - 4] */ 18306 L_36059DBB: 18307 _st[0] += (double)*(float*)ADDR(0x36170D68); /* 0x36059DBB: fadd dword ptr [0x36170d68] */ 18308 L_36059DC1: 18309 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36059DC1: fstp dword ptr [ebp - 0x10] */ 18310 L_36059DC4: 18311 RECOMP_ICALL(ebx); /* 0x36059DC4: call ebx */ 18312 RECOMP_FLAGS_IN(); 18313 L_36059DC6: 18314 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36059DC6: fld dword ptr [ebp - 0x10] */ 18315 L_36059DC9: 18316 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(eax + 0x4)); /* 0x36059DC9: fcomp dword ptr [eax + 4] */ 18317 fp_pop(); 18318 L_36059DCC: 18319 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36059DCC: fnstsw ax */ 18320 L_36059DCE: 18321 /* test HI8(eax), 1 */ /* 0x36059DCE: test ah, 1 */ 18322 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 18323 _cf = 0; 18324 _flag_k = FK_NARROW(FK_TEST, 24); 18325 L_36059DD1: 18326 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36059DDC; /* 0x36059DD1: je 0x36059ddc */ 18327 L_36059DD3: 18328 MEM32(ebp + (-0x4)) = 5; /* 0x36059DD3: mov dword ptr [ebp - 4], 5 */ 18329 L_36059DDA: 18330 goto L_36059E05; /* 0x36059DDA: jmp 0x36059e05 */ 18331 L_36059DDC: 18332 ecx = edi; /* 0x36059DDC: mov ecx, edi */ 18333 L_36059DDE: 18334 RECOMP_ICALL(MEM32(0x3616FC90)); /* 0x36059DDE: call dword ptr [0x3616fc90] */ 18335 RECOMP_FLAGS_IN(); 18336 L_36059DE4: 18337 ecx = edi; /* 0x36059DE4: mov ecx, edi */ 18338 L_36059DE6: 18339 RECOMP_ICALL(MEM32(0x3616FC8C)); /* 0x36059DE6: call dword ptr [0x3616fc8c] */ 18340 RECOMP_FLAGS_IN(); 18341 L_36059DEC: 18342 edx = MEM32(ebp + (-0x18)); /* 0x36059DEC: mov edx, dword ptr [ebp - 0x18] */ 18343 L_36059DEF: 18344 SET_LO16(eax, MEM16(eax + edx * 2)); /* 0x36059DEF: mov ax, word ptr [eax + edx*2] */ 18345 L_36059DF3: 18346 PUSH32(esp, eax); /* 0x36059DF3: push eax */ 18347 L_36059DF4: 18348 RECOMP_ICALL(MEM32(0x3616FC88)); /* 0x36059DF4: call dword ptr [0x3616fc88] */ 18349 RECOMP_FLAGS_IN(); 18350 L_36059DFA: 18351 ecx = eax; /* 0x36059DFA: mov ecx, eax */ 18352 L_36059DFC: 18353 RECOMP_ICALL(MEM32(0x3616FC84)); /* 0x36059DFC: call dword ptr [0x3616fc84] */ 18354 RECOMP_FLAGS_IN(); 18355 L_36059E02: 18356 MEM32(ebp + (-0x4)) = eax; /* 0x36059E02: mov dword ptr [ebp - 4], eax */ 18357 L_36059E05: 18358 ecx = MEM32(esi + 0x40); /* 0x36059E05: mov ecx, dword ptr [esi + 0x40] */ 18359 L_36059E08: 18360 edx = MEM32(ecx + 0x60); /* 0x36059E08: mov edx, dword ptr [ecx + 0x60] */ 18361 L_36059E0B: 18362 fp_push(*(float*)&MEM32(edx + 0x110)); /* 0x36059E0B: fld dword ptr [edx + 0x110] */ 18363 L_36059E11: 18364 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36059E11: fcomp dword ptr [0x3617040c] */ 18365 fp_pop(); 18366 L_36059E17: 18367 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36059E17: fnstsw ax */ 18368 L_36059E19: 18369 /* test HI8(eax), 0x41u */ /* 0x36059E19: test ah, 0x41 */ 18370 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 18371 _cf = 0; 18372 _flag_k = FK_NARROW(FK_TEST, 24); 18373 L_36059E1C: 18374 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36059E61; /* 0x36059E1C: jne 0x36059e61 */ 18375 L_36059E1E: 18376 eax = MEM32(edx + 0x114); /* 0x36059E1E: mov eax, dword ptr [edx + 0x114] */ 18377 L_36059E24: 18378 /* cmp eax, 2 */ /* 0x36059E24: cmp eax, 2 */ 18379 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 18380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18381 _flag_k = FK_CMP; 18382 L_36059E27: 18383 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36059E32; /* 0x36059E27: jne 0x36059e32 */ 18384 L_36059E29: 18385 MEM32(ebp + (-0x4)) = 0xAu; /* 0x36059E29: mov dword ptr [ebp - 4], 0xa */ 18386 L_36059E30: 18387 goto L_36059E61; /* 0x36059E30: jmp 0x36059e61 */ 18388 L_36059E32: 18389 /* cmp eax, 6 */ /* 0x36059E32: cmp eax, 6 */ 18390 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 18391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18392 _flag_k = FK_CMP; 18393 L_36059E35: 18394 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36059E40; /* 0x36059E35: jne 0x36059e40 */ 18395 L_36059E37: 18396 MEM32(ebp + (-0x4)) = 0xBu; /* 0x36059E37: mov dword ptr [ebp - 4], 0xb */ 18397 L_36059E3E: 18398 goto L_36059E61; /* 0x36059E3E: jmp 0x36059e61 */ 18399 L_36059E40: 18400 fp_push(*(float*)&MEM32(edx + 0x110)); /* 0x36059E40: fld dword ptr [edx + 0x110] */ 18401 L_36059E46: 18402 MEM32(ebp + (-0x4)) = 8; /* 0x36059E46: mov dword ptr [ebp - 4], 8 */ 18403 L_36059E4D: 18404 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36171164)); /* 0x36059E4D: fcomp dword ptr [0x36171164] */ 18405 fp_pop(); 18406 L_36059E53: 18407 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36059E53: fnstsw ax */ 18408 L_36059E55: 18409 /* test HI8(eax), 0x41u */ /* 0x36059E55: test ah, 0x41 */ 18410 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 18411 _cf = 0; 18412 _flag_k = FK_NARROW(FK_TEST, 24); 18413 L_36059E58: 18414 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36059E61; /* 0x36059E58: je 0x36059e61 */ 18415 L_36059E5A: 18416 MEM32(ebp + (-0x4)) = 9; /* 0x36059E5A: mov dword ptr [ebp - 4], 9 */ 18417 L_36059E61: 18418 edi = MEM32(ebp + 0x10); /* 0x36059E61: mov edi, dword ptr [ebp + 0x10] */ 18419 L_36059E64: 18420 eax = edi + (-0xB); /* 0x36059E64: lea eax, [edi - 0xb] */ 18421 L_36059E67: 18422 /* cmp eax, 0x7Au */ /* 0x36059E67: cmp eax, 0x7a */ 18423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7Au); 18424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18425 _flag_k = FK_CMP; 18426 L_36059E6A: 18427 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_3605A5D5; /* 0x36059E6A: ja 0x3605a5d5 */ 18428 L_36059E70: 18429 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18430 ebx = 0; /* 0x36059E70: xor ebx, ebx */ 18431 _cf = 0; 18432 _flag_k = FK_TEST; 18433 L_36059E72: 18434 SET_LO8(ebx, MEM8(eax + 0x3605A630)); /* 0x36059E72: mov bl, byte ptr [eax + 0x3605a630] */ 18435 L_36059E78: 18436 { _itail_tgt = (uint32_t)(MEM32(ebx * 4 + 0x3605A60C)); goto _ljump; } 18437 L_36059E7F: 18438 SET_LO8(eax, MEM8(ecx + 0x1B4)); /* 0x36059E7F: mov al, byte ptr [ecx + 0x1b4] */ 18439 L_36059E85: 18440 /* test LO8(eax), LO8(eax) */ /* 0x36059E85: test al, al */ 18441 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18442 _cf = 0; 18443 _flag_k = FK_NARROW(FK_TEST, 24); 18444 L_36059E87: 18445 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36059ECC; /* 0x36059E87: je 0x36059ecc */ 18446 L_36059E89: 18447 eax = MEM32(ecx + 0x170); /* 0x36059E89: mov eax, dword ptr [ecx + 0x170] */ 18448 L_36059E8F: 18449 eax = MEM32(eax + 0x8); /* 0x36059E8F: mov eax, dword ptr [eax + 8] */ 18450 L_36059E92: 18451 /* test eax, eax */ /* 0x36059E92: test eax, eax */ 18452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18453 _cf = 0; 18454 _flag_k = FK_TEST; 18455 L_36059E94: 18456 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36059ECC; /* 0x36059E94: je 0x36059ecc */ 18457 L_36059E96: 18458 PUSH32(esp, edi); /* 0x36059E96: push edi */ 18459 L_36059E97: 18460 ecx = eax + 0xC; /* 0x36059E97: lea ecx, [eax + 0xc] */ 18461 L_36059E9A: 18462 RECOMP_ICALL(0x3608ABF0u); /* 0x36059E9A: call 0x3608abf0 */ /* not lifted */ 18463 RECOMP_FLAGS_IN(); 18464 L_36059E9F: 18465 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18467 esp = esp - 0xCu; /* 0x36059E9F: sub esp, 0xc */ 18468 _flag_k = FK_CMP; 18469 L_36059EA2: 18470 MEM32(ebp + (-0x30)) = 0; /* 0x36059EA2: mov dword ptr [ebp - 0x30], 0 */ 18471 L_36059EA9: 18472 edx = MEM32(ebp + (-0x30)); /* 0x36059EA9: mov edx, dword ptr [ebp - 0x30] */ 18473 L_36059EAC: 18474 ecx = esp; /* 0x36059EAC: mov ecx, esp */ 18475 L_36059EAE: 18476 MEM32(ecx) = edx; /* 0x36059EAE: mov dword ptr [ecx], edx */ 18477 L_36059EB0: 18478 MEM32(ebp + (-0x2C)) = 0; /* 0x36059EB0: mov dword ptr [ebp - 0x2c], 0 */ 18479 L_36059EB7: 18480 edx = MEM32(ebp + (-0x2C)); /* 0x36059EB7: mov edx, dword ptr [ebp - 0x2c] */ 18481 L_36059EBA: 18482 MEM32(ebp + (-0x28)) = 0; /* 0x36059EBA: mov dword ptr [ebp - 0x28], 0 */ 18483 L_36059EC1: 18484 MEM32(ecx + 0x4) = edx; /* 0x36059EC1: mov dword ptr [ecx + 4], edx */ 18485 L_36059EC4: 18486 edx = MEM32(ebp + (-0x28)); /* 0x36059EC4: mov edx, dword ptr [ebp - 0x28] */ 18487 L_36059EC7: 18488 goto L_3605A0E9; /* 0x36059EC7: jmp 0x3605a0e9 */ 18489 L_36059ECC: 18490 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18492 esp = esp - 0xCu; /* 0x36059ECC: sub esp, 0xc */ 18493 _flag_k = FK_CMP; 18494 L_36059ECF: 18495 eax = esp; /* 0x36059ECF: mov eax, esp */ 18496 L_36059ED1: 18497 PUSH32(esp, 1); /* 0x36059ED1: push 1 */ 18498 L_36059ED3: 18499 PUSH32(esp, 0x64u); /* 0x36059ED3: push 0x64 */ 18500 L_36059ED5: 18501 PUSH32(esp, 0); /* 0x36059ED5: push 0 */ 18502 L_36059ED7: 18503 PUSH32(esp, 0); /* 0x36059ED7: push 0 */ 18504 L_36059ED9: 18505 MEM32(ebp + (-0x30)) = 0; /* 0x36059ED9: mov dword ptr [ebp - 0x30], 0 */ 18506 L_36059EE0: 18507 ecx = MEM32(ebp + (-0x30)); /* 0x36059EE0: mov ecx, dword ptr [ebp - 0x30] */ 18508 L_36059EE3: 18509 MEM32(eax) = ecx; /* 0x36059EE3: mov dword ptr [eax], ecx */ 18510 L_36059EE5: 18511 PUSH32(esp, 0x3F800000u); /* 0x36059EE5: push 0x3f800000 */ 18512 L_36059EEA: 18513 MEM32(ebp + (-0x2C)) = 0; /* 0x36059EEA: mov dword ptr [ebp - 0x2c], 0 */ 18514 L_36059EF1: 18515 edx = MEM32(ebp + (-0x2C)); /* 0x36059EF1: mov edx, dword ptr [ebp - 0x2c] */ 18516 L_36059EF4: 18517 MEM32(eax + 0x4) = edx; /* 0x36059EF4: mov dword ptr [eax + 4], edx */ 18518 L_36059EF7: 18519 PUSH32(esp, 0); /* 0x36059EF7: push 0 */ 18520 L_36059EF9: 18521 MEM32(ebp + (-0x28)) = 0; /* 0x36059EF9: mov dword ptr [ebp - 0x28], 0 */ 18522 L_36059F00: 18523 ecx = MEM32(ebp + (-0x28)); /* 0x36059F00: mov ecx, dword ptr [ebp - 0x28] */ 18524 L_36059F03: 18525 MEM32(eax + 0x8) = ecx; /* 0x36059F03: mov dword ptr [eax + 8], ecx */ 18526 L_36059F06: 18527 eax = MEM32(ebp + (-0x24)); /* 0x36059F06: mov eax, dword ptr [ebp - 0x24] */ 18528 L_36059F09: 18529 ecx = MEM32(ebp + (-0x20)); /* 0x36059F09: mov ecx, dword ptr [ebp - 0x20] */ 18530 L_36059F0C: 18531 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18533 esp = esp - 0xCu; /* 0x36059F0C: sub esp, 0xc */ 18534 _flag_k = FK_CMP; 18535 L_36059F0F: 18536 edx = esp; /* 0x36059F0F: mov edx, esp */ 18537 L_36059F11: 18538 MEM32(edx) = eax; /* 0x36059F11: mov dword ptr [edx], eax */ 18539 L_36059F13: 18540 eax = MEM32(ebp + (-0x1C)); /* 0x36059F13: mov eax, dword ptr [ebp - 0x1c] */ 18541 L_36059F16: 18542 MEM32(edx + 0x4) = ecx; /* 0x36059F16: mov dword ptr [edx + 4], ecx */ 18543 L_36059F19: 18544 ecx = MEM32(esi + 0x10); /* 0x36059F19: mov ecx, dword ptr [esi + 0x10] */ 18545 L_36059F1C: 18546 PUSH32(esp, ecx); /* 0x36059F1C: push ecx */ 18547 L_36059F1D: 18548 MEM32(edx + 0x8) = eax; /* 0x36059F1D: mov dword ptr [edx + 8], eax */ 18549 L_36059F20: 18550 RECOMP_ICALL(0x3601C590u); /* 0x36059F20: call 0x3601c590 */ /* not lifted */ 18551 RECOMP_FLAGS_IN(); 18552 L_36059F25: 18553 ecx = eax; /* 0x36059F25: mov ecx, eax */ 18554 L_36059F27: 18555 RECOMP_ICALL(0x3601CBF0u); /* 0x36059F27: call 0x3601cbf0 */ /* not lifted */ 18556 RECOMP_FLAGS_IN(); 18557 L_36059F2C: 18558 edi = POP32_VAL(esp); /* 0x36059F2C: pop edi */ 18559 L_36059F2D: 18560 esi = POP32_VAL(esp); /* 0x36059F2D: pop esi */ 18561 L_36059F2E: 18562 ebx = POP32_VAL(esp); /* 0x36059F2E: pop ebx */ 18563 L_36059F2F: 18564 esp = ebp; /* 0x36059F2F: mov esp, ebp */ 18565 L_36059F31: 18566 ebp = POP32_VAL(esp); /* 0x36059F31: pop ebp */ 18567 L_36059F32: 18568 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36059F32: ret 0xc */ 18569 L_36059F35: 18570 SET_LO8(eax, MEM8(ecx + 0x1B4)); /* 0x36059F35: mov al, byte ptr [ecx + 0x1b4] */ 18571 L_36059F3B: 18572 /* test LO8(eax), LO8(eax) */ /* 0x36059F3B: test al, al */ 18573 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18574 _cf = 0; 18575 _flag_k = FK_NARROW(FK_TEST, 24); 18576 L_36059F3D: 18577 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36059F82; /* 0x36059F3D: je 0x36059f82 */ 18578 L_36059F3F: 18579 edx = MEM32(ecx + 0x170); /* 0x36059F3F: mov edx, dword ptr [ecx + 0x170] */ 18580 L_36059F45: 18581 eax = MEM32(edx + 0x8); /* 0x36059F45: mov eax, dword ptr [edx + 8] */ 18582 L_36059F48: 18583 /* test eax, eax */ /* 0x36059F48: test eax, eax */ 18584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18585 _cf = 0; 18586 _flag_k = FK_TEST; 18587 L_36059F4A: 18588 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36059F82; /* 0x36059F4A: je 0x36059f82 */ 18589 L_36059F4C: 18590 PUSH32(esp, edi); /* 0x36059F4C: push edi */ 18591 L_36059F4D: 18592 ecx = eax + 0xC; /* 0x36059F4D: lea ecx, [eax + 0xc] */ 18593 L_36059F50: 18594 RECOMP_ICALL(0x3608ABF0u); /* 0x36059F50: call 0x3608abf0 */ /* not lifted */ 18595 RECOMP_FLAGS_IN(); 18596 L_36059F55: 18597 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18599 esp = esp - 0xCu; /* 0x36059F55: sub esp, 0xc */ 18600 _flag_k = FK_CMP; 18601 L_36059F58: 18602 MEM32(ebp + (-0x30)) = 0; /* 0x36059F58: mov dword ptr [ebp - 0x30], 0 */ 18603 L_36059F5F: 18604 edx = MEM32(ebp + (-0x30)); /* 0x36059F5F: mov edx, dword ptr [ebp - 0x30] */ 18605 L_36059F62: 18606 ecx = esp; /* 0x36059F62: mov ecx, esp */ 18607 L_36059F64: 18608 MEM32(ecx) = edx; /* 0x36059F64: mov dword ptr [ecx], edx */ 18609 L_36059F66: 18610 MEM32(ebp + (-0x2C)) = 0; /* 0x36059F66: mov dword ptr [ebp - 0x2c], 0 */ 18611 L_36059F6D: 18612 edx = MEM32(ebp + (-0x2C)); /* 0x36059F6D: mov edx, dword ptr [ebp - 0x2c] */ 18613 L_36059F70: 18614 MEM32(ebp + (-0x28)) = 0; /* 0x36059F70: mov dword ptr [ebp - 0x28], 0 */ 18615 L_36059F77: 18616 MEM32(ecx + 0x4) = edx; /* 0x36059F77: mov dword ptr [ecx + 4], edx */ 18617 L_36059F7A: 18618 edx = MEM32(ebp + (-0x28)); /* 0x36059F7A: mov edx, dword ptr [ebp - 0x28] */ 18619 L_36059F7D: 18620 goto L_3605A0E9; /* 0x36059F7D: jmp 0x3605a0e9 */ 18621 L_36059F82: 18622 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18624 esp = esp - 0xCu; /* 0x36059F82: sub esp, 0xc */ 18625 _flag_k = FK_CMP; 18626 L_36059F85: 18627 eax = esp; /* 0x36059F85: mov eax, esp */ 18628 L_36059F87: 18629 PUSH32(esp, 1); /* 0x36059F87: push 1 */ 18630 L_36059F89: 18631 PUSH32(esp, 0x64u); /* 0x36059F89: push 0x64 */ 18632 L_36059F8B: 18633 PUSH32(esp, 0); /* 0x36059F8B: push 0 */ 18634 L_36059F8D: 18635 PUSH32(esp, 0); /* 0x36059F8D: push 0 */ 18636 L_36059F8F: 18637 MEM32(ebp + (-0x30)) = 0; /* 0x36059F8F: mov dword ptr [ebp - 0x30], 0 */ 18638 L_36059F96: 18639 ecx = MEM32(ebp + (-0x30)); /* 0x36059F96: mov ecx, dword ptr [ebp - 0x30] */ 18640 L_36059F99: 18641 MEM32(eax) = ecx; /* 0x36059F99: mov dword ptr [eax], ecx */ 18642 L_36059F9B: 18643 PUSH32(esp, 0x3F800000u); /* 0x36059F9B: push 0x3f800000 */ 18644 L_36059FA0: 18645 MEM32(ebp + (-0x2C)) = 0; /* 0x36059FA0: mov dword ptr [ebp - 0x2c], 0 */ 18646 L_36059FA7: 18647 edx = MEM32(ebp + (-0x2C)); /* 0x36059FA7: mov edx, dword ptr [ebp - 0x2c] */ 18648 L_36059FAA: 18649 MEM32(eax + 0x4) = edx; /* 0x36059FAA: mov dword ptr [eax + 4], edx */ 18650 L_36059FAD: 18651 PUSH32(esp, 0); /* 0x36059FAD: push 0 */ 18652 L_36059FAF: 18653 MEM32(ebp + (-0x28)) = 0; /* 0x36059FAF: mov dword ptr [ebp - 0x28], 0 */ 18654 L_36059FB6: 18655 ecx = MEM32(ebp + (-0x28)); /* 0x36059FB6: mov ecx, dword ptr [ebp - 0x28] */ 18656 L_36059FB9: 18657 MEM32(eax + 0x8) = ecx; /* 0x36059FB9: mov dword ptr [eax + 8], ecx */ 18658 L_36059FBC: 18659 eax = MEM32(ebp + (-0x24)); /* 0x36059FBC: mov eax, dword ptr [ebp - 0x24] */ 18660 L_36059FBF: 18661 ecx = MEM32(ebp + (-0x20)); /* 0x36059FBF: mov ecx, dword ptr [ebp - 0x20] */ 18662 L_36059FC2: 18663 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18665 esp = esp - 0xCu; /* 0x36059FC2: sub esp, 0xc */ 18666 _flag_k = FK_CMP; 18667 L_36059FC5: 18668 edx = esp; /* 0x36059FC5: mov edx, esp */ 18669 L_36059FC7: 18670 MEM32(edx) = eax; /* 0x36059FC7: mov dword ptr [edx], eax */ 18671 L_36059FC9: 18672 eax = MEM32(ebp + (-0x1C)); /* 0x36059FC9: mov eax, dword ptr [ebp - 0x1c] */ 18673 L_36059FCC: 18674 MEM32(edx + 0x4) = ecx; /* 0x36059FCC: mov dword ptr [edx + 4], ecx */ 18675 L_36059FCF: 18676 ecx = MEM32(esi + 0x14); /* 0x36059FCF: mov ecx, dword ptr [esi + 0x14] */ 18677 L_36059FD2: 18678 PUSH32(esp, ecx); /* 0x36059FD2: push ecx */ 18679 L_36059FD3: 18680 MEM32(edx + 0x8) = eax; /* 0x36059FD3: mov dword ptr [edx + 8], eax */ 18681 L_36059FD6: 18682 RECOMP_ICALL(0x3601C590u); /* 0x36059FD6: call 0x3601c590 */ /* not lifted */ 18683 RECOMP_FLAGS_IN(); 18684 L_36059FDB: 18685 ecx = eax; /* 0x36059FDB: mov ecx, eax */ 18686 L_36059FDD: 18687 RECOMP_ICALL(0x3601CBF0u); /* 0x36059FDD: call 0x3601cbf0 */ /* not lifted */ 18688 RECOMP_FLAGS_IN(); 18689 L_36059FE2: 18690 edi = POP32_VAL(esp); /* 0x36059FE2: pop edi */ 18691 L_36059FE3: 18692 esi = POP32_VAL(esp); /* 0x36059FE3: pop esi */ 18693 L_36059FE4: 18694 ebx = POP32_VAL(esp); /* 0x36059FE4: pop ebx */ 18695 L_36059FE5: 18696 esp = ebp; /* 0x36059FE5: mov esp, ebp */ 18697 L_36059FE7: 18698 ebp = POP32_VAL(esp); /* 0x36059FE7: pop ebp */ 18699 L_36059FE8: 18700 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36059FE8: ret 0xc */ 18701 L_36059FEB: 18702 SET_LO8(eax, MEM8(ecx + 0x1B4)); /* 0x36059FEB: mov al, byte ptr [ecx + 0x1b4] */ 18703 L_36059FF1: 18704 /* test LO8(eax), LO8(eax) */ /* 0x36059FF1: test al, al */ 18705 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18706 _cf = 0; 18707 _flag_k = FK_NARROW(FK_TEST, 24); 18708 L_36059FF3: 18709 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A038; /* 0x36059FF3: je 0x3605a038 */ 18710 L_36059FF5: 18711 edx = MEM32(ecx + 0x170); /* 0x36059FF5: mov edx, dword ptr [ecx + 0x170] */ 18712 L_36059FFB: 18713 eax = MEM32(edx + 0x8); /* 0x36059FFB: mov eax, dword ptr [edx + 8] */ 18714 L_36059FFE: 18715 /* test eax, eax */ /* 0x36059FFE: test eax, eax */ 18716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18717 _cf = 0; 18718 _flag_k = FK_TEST; 18719 L_3605A000: 18720 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A038; /* 0x3605A000: je 0x3605a038 */ 18721 L_3605A002: 18722 PUSH32(esp, edi); /* 0x3605A002: push edi */ 18723 L_3605A003: 18724 ecx = eax + 0xC; /* 0x3605A003: lea ecx, [eax + 0xc] */ 18725 L_3605A006: 18726 RECOMP_ICALL(0x3608ABF0u); /* 0x3605A006: call 0x3608abf0 */ /* not lifted */ 18727 RECOMP_FLAGS_IN(); 18728 L_3605A00B: 18729 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18731 esp = esp - 0xCu; /* 0x3605A00B: sub esp, 0xc */ 18732 _flag_k = FK_CMP; 18733 L_3605A00E: 18734 MEM32(ebp + (-0x30)) = 0; /* 0x3605A00E: mov dword ptr [ebp - 0x30], 0 */ 18735 L_3605A015: 18736 edx = MEM32(ebp + (-0x30)); /* 0x3605A015: mov edx, dword ptr [ebp - 0x30] */ 18737 L_3605A018: 18738 ecx = esp; /* 0x3605A018: mov ecx, esp */ 18739 L_3605A01A: 18740 MEM32(ecx) = edx; /* 0x3605A01A: mov dword ptr [ecx], edx */ 18741 L_3605A01C: 18742 MEM32(ebp + (-0x2C)) = 0; /* 0x3605A01C: mov dword ptr [ebp - 0x2c], 0 */ 18743 L_3605A023: 18744 edx = MEM32(ebp + (-0x2C)); /* 0x3605A023: mov edx, dword ptr [ebp - 0x2c] */ 18745 L_3605A026: 18746 MEM32(ebp + (-0x28)) = 0; /* 0x3605A026: mov dword ptr [ebp - 0x28], 0 */ 18747 L_3605A02D: 18748 MEM32(ecx + 0x4) = edx; /* 0x3605A02D: mov dword ptr [ecx + 4], edx */ 18749 L_3605A030: 18750 edx = MEM32(ebp + (-0x28)); /* 0x3605A030: mov edx, dword ptr [ebp - 0x28] */ 18751 L_3605A033: 18752 goto L_3605A0E9; /* 0x3605A033: jmp 0x3605a0e9 */ 18753 L_3605A038: 18754 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18756 esp = esp - 0xCu; /* 0x3605A038: sub esp, 0xc */ 18757 _flag_k = FK_CMP; 18758 L_3605A03B: 18759 eax = esp; /* 0x3605A03B: mov eax, esp */ 18760 L_3605A03D: 18761 PUSH32(esp, 1); /* 0x3605A03D: push 1 */ 18762 L_3605A03F: 18763 PUSH32(esp, 0x64u); /* 0x3605A03F: push 0x64 */ 18764 L_3605A041: 18765 PUSH32(esp, 0); /* 0x3605A041: push 0 */ 18766 L_3605A043: 18767 PUSH32(esp, 0); /* 0x3605A043: push 0 */ 18768 L_3605A045: 18769 MEM32(ebp + (-0x30)) = 0; /* 0x3605A045: mov dword ptr [ebp - 0x30], 0 */ 18770 L_3605A04C: 18771 ecx = MEM32(ebp + (-0x30)); /* 0x3605A04C: mov ecx, dword ptr [ebp - 0x30] */ 18772 L_3605A04F: 18773 MEM32(eax) = ecx; /* 0x3605A04F: mov dword ptr [eax], ecx */ 18774 L_3605A051: 18775 PUSH32(esp, 0x3F800000u); /* 0x3605A051: push 0x3f800000 */ 18776 L_3605A056: 18777 MEM32(ebp + (-0x2C)) = 0; /* 0x3605A056: mov dword ptr [ebp - 0x2c], 0 */ 18778 L_3605A05D: 18779 edx = MEM32(ebp + (-0x2C)); /* 0x3605A05D: mov edx, dword ptr [ebp - 0x2c] */ 18780 L_3605A060: 18781 MEM32(eax + 0x4) = edx; /* 0x3605A060: mov dword ptr [eax + 4], edx */ 18782 L_3605A063: 18783 PUSH32(esp, 0); /* 0x3605A063: push 0 */ 18784 L_3605A065: 18785 MEM32(ebp + (-0x28)) = 0; /* 0x3605A065: mov dword ptr [ebp - 0x28], 0 */ 18786 L_3605A06C: 18787 ecx = MEM32(ebp + (-0x28)); /* 0x3605A06C: mov ecx, dword ptr [ebp - 0x28] */ 18788 L_3605A06F: 18789 MEM32(eax + 0x8) = ecx; /* 0x3605A06F: mov dword ptr [eax + 8], ecx */ 18790 L_3605A072: 18791 eax = MEM32(ebp + (-0x24)); /* 0x3605A072: mov eax, dword ptr [ebp - 0x24] */ 18792 L_3605A075: 18793 ecx = MEM32(ebp + (-0x20)); /* 0x3605A075: mov ecx, dword ptr [ebp - 0x20] */ 18794 L_3605A078: 18795 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18797 esp = esp - 0xCu; /* 0x3605A078: sub esp, 0xc */ 18798 _flag_k = FK_CMP; 18799 L_3605A07B: 18800 edx = esp; /* 0x3605A07B: mov edx, esp */ 18801 L_3605A07D: 18802 MEM32(edx) = eax; /* 0x3605A07D: mov dword ptr [edx], eax */ 18803 L_3605A07F: 18804 eax = MEM32(ebp + (-0x1C)); /* 0x3605A07F: mov eax, dword ptr [ebp - 0x1c] */ 18805 L_3605A082: 18806 MEM32(edx + 0x4) = ecx; /* 0x3605A082: mov dword ptr [edx + 4], ecx */ 18807 L_3605A085: 18808 ecx = MEM32(esi + 0x18); /* 0x3605A085: mov ecx, dword ptr [esi + 0x18] */ 18809 L_3605A088: 18810 PUSH32(esp, ecx); /* 0x3605A088: push ecx */ 18811 L_3605A089: 18812 MEM32(edx + 0x8) = eax; /* 0x3605A089: mov dword ptr [edx + 8], eax */ 18813 L_3605A08C: 18814 RECOMP_ICALL(0x3601C590u); /* 0x3605A08C: call 0x3601c590 */ /* not lifted */ 18815 RECOMP_FLAGS_IN(); 18816 L_3605A091: 18817 ecx = eax; /* 0x3605A091: mov ecx, eax */ 18818 L_3605A093: 18819 RECOMP_ICALL(0x3601CBF0u); /* 0x3605A093: call 0x3601cbf0 */ /* not lifted */ 18820 RECOMP_FLAGS_IN(); 18821 L_3605A098: 18822 edi = POP32_VAL(esp); /* 0x3605A098: pop edi */ 18823 L_3605A099: 18824 esi = POP32_VAL(esp); /* 0x3605A099: pop esi */ 18825 L_3605A09A: 18826 ebx = POP32_VAL(esp); /* 0x3605A09A: pop ebx */ 18827 L_3605A09B: 18828 esp = ebp; /* 0x3605A09B: mov esp, ebp */ 18829 L_3605A09D: 18830 ebp = POP32_VAL(esp); /* 0x3605A09D: pop ebp */ 18831 L_3605A09E: 18832 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A09E: ret 0xc */ 18833 L_3605A0A1: 18834 SET_LO8(eax, MEM8(ecx + 0x1B4)); /* 0x3605A0A1: mov al, byte ptr [ecx + 0x1b4] */ 18835 L_3605A0A7: 18836 /* test LO8(eax), LO8(eax) */ /* 0x3605A0A7: test al, al */ 18837 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 18838 _cf = 0; 18839 _flag_k = FK_NARROW(FK_TEST, 24); 18840 L_3605A0A9: 18841 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A127; /* 0x3605A0A9: je 0x3605a127 */ 18842 L_3605A0AB: 18843 edx = MEM32(ecx + 0x170); /* 0x3605A0AB: mov edx, dword ptr [ecx + 0x170] */ 18844 L_3605A0B1: 18845 eax = MEM32(edx + 0x8); /* 0x3605A0B1: mov eax, dword ptr [edx + 8] */ 18846 L_3605A0B4: 18847 /* test eax, eax */ /* 0x3605A0B4: test eax, eax */ 18848 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18849 _cf = 0; 18850 _flag_k = FK_TEST; 18851 L_3605A0B6: 18852 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A127; /* 0x3605A0B6: je 0x3605a127 */ 18853 L_3605A0B8: 18854 PUSH32(esp, edi); /* 0x3605A0B8: push edi */ 18855 L_3605A0B9: 18856 ecx = eax + 0xC; /* 0x3605A0B9: lea ecx, [eax + 0xc] */ 18857 L_3605A0BC: 18858 RECOMP_ICALL(0x3608ABF0u); /* 0x3605A0BC: call 0x3608abf0 */ /* not lifted */ 18859 RECOMP_FLAGS_IN(); 18860 L_3605A0C1: 18861 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18863 esp = esp - 0xCu; /* 0x3605A0C1: sub esp, 0xc */ 18864 _flag_k = FK_CMP; 18865 L_3605A0C4: 18866 MEM32(ebp + (-0x30)) = 0; /* 0x3605A0C4: mov dword ptr [ebp - 0x30], 0 */ 18867 L_3605A0CB: 18868 edx = MEM32(ebp + (-0x30)); /* 0x3605A0CB: mov edx, dword ptr [ebp - 0x30] */ 18869 L_3605A0CE: 18870 ecx = esp; /* 0x3605A0CE: mov ecx, esp */ 18871 L_3605A0D0: 18872 MEM32(ecx) = edx; /* 0x3605A0D0: mov dword ptr [ecx], edx */ 18873 L_3605A0D2: 18874 MEM32(ebp + (-0x2C)) = 0; /* 0x3605A0D2: mov dword ptr [ebp - 0x2c], 0 */ 18875 L_3605A0D9: 18876 edx = MEM32(ebp + (-0x2C)); /* 0x3605A0D9: mov edx, dword ptr [ebp - 0x2c] */ 18877 L_3605A0DC: 18878 MEM32(ebp + (-0x28)) = 0; /* 0x3605A0DC: mov dword ptr [ebp - 0x28], 0 */ 18879 L_3605A0E3: 18880 MEM32(ecx + 0x4) = edx; /* 0x3605A0E3: mov dword ptr [ecx + 4], edx */ 18881 L_3605A0E6: 18882 edx = MEM32(ebp + (-0x28)); /* 0x3605A0E6: mov edx, dword ptr [ebp - 0x28] */ 18883 L_3605A0E9: 18884 PUSH32(esp, 1); /* 0x3605A0E9: push 1 */ 18885 L_3605A0EB: 18886 PUSH32(esp, 0x64u); /* 0x3605A0EB: push 0x64 */ 18887 L_3605A0ED: 18888 PUSH32(esp, 0); /* 0x3605A0ED: push 0 */ 18889 L_3605A0EF: 18890 PUSH32(esp, 0); /* 0x3605A0EF: push 0 */ 18891 L_3605A0F1: 18892 MEM32(ecx + 0x8) = edx; /* 0x3605A0F1: mov dword ptr [ecx + 8], edx */ 18893 L_3605A0F4: 18894 edx = MEM32(ebp + (-0x24)); /* 0x3605A0F4: mov edx, dword ptr [ebp - 0x24] */ 18895 L_3605A0F7: 18896 PUSH32(esp, 0x3F800000u); /* 0x3605A0F7: push 0x3f800000 */ 18897 L_3605A0FC: 18898 PUSH32(esp, 0); /* 0x3605A0FC: push 0 */ 18899 L_3605A0FE: 18900 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18902 esp = esp - 0xCu; /* 0x3605A0FE: sub esp, 0xc */ 18903 _flag_k = FK_CMP; 18904 L_3605A101: 18905 ecx = esp; /* 0x3605A101: mov ecx, esp */ 18906 L_3605A103: 18907 MEM32(ecx) = edx; /* 0x3605A103: mov dword ptr [ecx], edx */ 18908 L_3605A105: 18909 edx = MEM32(ebp + (-0x20)); /* 0x3605A105: mov edx, dword ptr [ebp - 0x20] */ 18910 L_3605A108: 18911 MEM32(ecx + 0x4) = edx; /* 0x3605A108: mov dword ptr [ecx + 4], edx */ 18912 L_3605A10B: 18913 edx = MEM32(ebp + (-0x1C)); /* 0x3605A10B: mov edx, dword ptr [ebp - 0x1c] */ 18914 L_3605A10E: 18915 MEM32(ecx + 0x8) = edx; /* 0x3605A10E: mov dword ptr [ecx + 8], edx */ 18916 L_3605A111: 18917 PUSH32(esp, eax); /* 0x3605A111: push eax */ 18918 L_3605A112: 18919 RECOMP_ICALL(0x3601C590u); /* 0x3605A112: call 0x3601c590 */ /* not lifted */ 18920 RECOMP_FLAGS_IN(); 18921 L_3605A117: 18922 ecx = eax; /* 0x3605A117: mov ecx, eax */ 18923 L_3605A119: 18924 RECOMP_ICALL(0x3601CBF0u); /* 0x3605A119: call 0x3601cbf0 */ /* not lifted */ 18925 RECOMP_FLAGS_IN(); 18926 L_3605A11E: 18927 edi = POP32_VAL(esp); /* 0x3605A11E: pop edi */ 18928 L_3605A11F: 18929 esi = POP32_VAL(esp); /* 0x3605A11F: pop esi */ 18930 L_3605A120: 18931 ebx = POP32_VAL(esp); /* 0x3605A120: pop ebx */ 18932 L_3605A121: 18933 esp = ebp; /* 0x3605A121: mov esp, ebp */ 18934 L_3605A123: 18935 ebp = POP32_VAL(esp); /* 0x3605A123: pop ebp */ 18936 L_3605A124: 18937 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A124: ret 0xc */ 18938 L_3605A127: 18939 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18941 esp = esp - 0xCu; /* 0x3605A127: sub esp, 0xc */ 18942 _flag_k = FK_CMP; 18943 L_3605A12A: 18944 eax = esp; /* 0x3605A12A: mov eax, esp */ 18945 L_3605A12C: 18946 PUSH32(esp, 1); /* 0x3605A12C: push 1 */ 18947 L_3605A12E: 18948 PUSH32(esp, 0x64u); /* 0x3605A12E: push 0x64 */ 18949 L_3605A130: 18950 PUSH32(esp, 0); /* 0x3605A130: push 0 */ 18951 L_3605A132: 18952 PUSH32(esp, 0); /* 0x3605A132: push 0 */ 18953 L_3605A134: 18954 MEM32(ebp + (-0x30)) = 0; /* 0x3605A134: mov dword ptr [ebp - 0x30], 0 */ 18955 L_3605A13B: 18956 ecx = MEM32(ebp + (-0x30)); /* 0x3605A13B: mov ecx, dword ptr [ebp - 0x30] */ 18957 L_3605A13E: 18958 MEM32(eax) = ecx; /* 0x3605A13E: mov dword ptr [eax], ecx */ 18959 L_3605A140: 18960 PUSH32(esp, 0x3F800000u); /* 0x3605A140: push 0x3f800000 */ 18961 L_3605A145: 18962 MEM32(ebp + (-0x2C)) = 0; /* 0x3605A145: mov dword ptr [ebp - 0x2c], 0 */ 18963 L_3605A14C: 18964 edx = MEM32(ebp + (-0x2C)); /* 0x3605A14C: mov edx, dword ptr [ebp - 0x2c] */ 18965 L_3605A14F: 18966 MEM32(eax + 0x4) = edx; /* 0x3605A14F: mov dword ptr [eax + 4], edx */ 18967 L_3605A152: 18968 PUSH32(esp, 0); /* 0x3605A152: push 0 */ 18969 L_3605A154: 18970 MEM32(ebp + (-0x28)) = 0; /* 0x3605A154: mov dword ptr [ebp - 0x28], 0 */ 18971 L_3605A15B: 18972 ecx = MEM32(ebp + (-0x28)); /* 0x3605A15B: mov ecx, dword ptr [ebp - 0x28] */ 18973 L_3605A15E: 18974 MEM32(eax + 0x8) = ecx; /* 0x3605A15E: mov dword ptr [eax + 8], ecx */ 18975 L_3605A161: 18976 eax = MEM32(ebp + (-0x24)); /* 0x3605A161: mov eax, dword ptr [ebp - 0x24] */ 18977 L_3605A164: 18978 ecx = MEM32(ebp + (-0x20)); /* 0x3605A164: mov ecx, dword ptr [ebp - 0x20] */ 18979 L_3605A167: 18980 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18982 esp = esp - 0xCu; /* 0x3605A167: sub esp, 0xc */ 18983 _flag_k = FK_CMP; 18984 L_3605A16A: 18985 edx = esp; /* 0x3605A16A: mov edx, esp */ 18986 L_3605A16C: 18987 MEM32(edx) = eax; /* 0x3605A16C: mov dword ptr [edx], eax */ 18988 L_3605A16E: 18989 eax = MEM32(ebp + (-0x1C)); /* 0x3605A16E: mov eax, dword ptr [ebp - 0x1c] */ 18990 L_3605A171: 18991 MEM32(edx + 0x4) = ecx; /* 0x3605A171: mov dword ptr [edx + 4], ecx */ 18992 L_3605A174: 18993 ecx = MEM32(esi + 0x1C); /* 0x3605A174: mov ecx, dword ptr [esi + 0x1c] */ 18994 L_3605A177: 18995 MEM32(edx + 0x8) = eax; /* 0x3605A177: mov dword ptr [edx + 8], eax */ 18996 L_3605A17A: 18997 PUSH32(esp, ecx); /* 0x3605A17A: push ecx */ 18998 L_3605A17B: 18999 RECOMP_BACKEDGE(); 19000 goto L_3605A112; /* 0x3605A17B: jmp 0x3605a112 */ 19001 L_3605A17D: 19002 SET_LO8(eax, MEM8(ecx + 0x1B4)); /* 0x3605A17D: mov al, byte ptr [ecx + 0x1b4] */ 19003 L_3605A183: 19004 /* test LO8(eax), LO8(eax) */ /* 0x3605A183: test al, al */ 19005 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19006 _cf = 0; 19007 _flag_k = FK_NARROW(FK_TEST, 24); 19008 L_3605A185: 19009 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x3605A185: je 0x3605a601 */ 19010 L_3605A18B: 19011 edx = MEM32(ecx + 0x170); /* 0x3605A18B: mov edx, dword ptr [ecx + 0x170] */ 19012 L_3605A191: 19013 eax = MEM32(edx + 0x8); /* 0x3605A191: mov eax, dword ptr [edx + 8] */ 19014 L_3605A194: 19015 /* test eax, eax */ /* 0x3605A194: test eax, eax */ 19016 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19017 _cf = 0; 19018 _flag_k = FK_TEST; 19019 L_3605A196: 19020 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x3605A196: je 0x3605a601 */ 19021 L_3605A19C: 19022 /* test ecx, ecx */ /* 0x3605A19C: test ecx, ecx */ 19023 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 19024 _cf = 0; 19025 _flag_k = FK_TEST; 19026 L_3605A19E: 19027 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x3605A19E: je 0x3605a601 */ 19028 L_3605A1A4: 19029 /* test edx, edx */ /* 0x3605A1A4: test edx, edx */ 19030 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19031 _cf = 0; 19032 _flag_k = FK_TEST; 19033 L_3605A1A6: 19034 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x3605A1A6: je 0x3605a601 */ 19035 L_3605A1AC: 19036 PUSH32(esp, edi); /* 0x3605A1AC: push edi */ 19037 L_3605A1AD: 19038 ecx = eax + 0xC; /* 0x3605A1AD: lea ecx, [eax + 0xc] */ 19039 L_3605A1B0: 19040 RECOMP_ICALL(0x3608ABF0u); /* 0x3605A1B0: call 0x3608abf0 */ /* not lifted */ 19041 RECOMP_FLAGS_IN(); 19042 L_3605A1B5: 19043 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19045 esp = esp - 0xCu; /* 0x3605A1B5: sub esp, 0xc */ 19046 _flag_k = FK_CMP; 19047 L_3605A1B8: 19048 MEM32(ebp + (-0x30)) = 0; /* 0x3605A1B8: mov dword ptr [ebp - 0x30], 0 */ 19049 L_3605A1BF: 19050 ecx = MEM32(ebp + (-0x30)); /* 0x3605A1BF: mov ecx, dword ptr [ebp - 0x30] */ 19051 L_3605A1C2: 19052 edx = esp; /* 0x3605A1C2: mov edx, esp */ 19053 L_3605A1C4: 19054 MEM32(edx) = ecx; /* 0x3605A1C4: mov dword ptr [edx], ecx */ 19055 L_3605A1C6: 19056 MEM32(ebp + (-0x2C)) = 0; /* 0x3605A1C6: mov dword ptr [ebp - 0x2c], 0 */ 19057 L_3605A1CD: 19058 ecx = MEM32(ebp + (-0x2C)); /* 0x3605A1CD: mov ecx, dword ptr [ebp - 0x2c] */ 19059 L_3605A1D0: 19060 MEM32(ebp + (-0x28)) = 0; /* 0x3605A1D0: mov dword ptr [ebp - 0x28], 0 */ 19061 L_3605A1D7: 19062 MEM32(edx + 0x4) = ecx; /* 0x3605A1D7: mov dword ptr [edx + 4], ecx */ 19063 L_3605A1DA: 19064 ecx = MEM32(ebp + (-0x28)); /* 0x3605A1DA: mov ecx, dword ptr [ebp - 0x28] */ 19065 L_3605A1DD: 19066 PUSH32(esp, 1); /* 0x3605A1DD: push 1 */ 19067 L_3605A1DF: 19068 PUSH32(esp, 0x64u); /* 0x3605A1DF: push 0x64 */ 19069 L_3605A1E1: 19070 PUSH32(esp, 0); /* 0x3605A1E1: push 0 */ 19071 L_3605A1E3: 19072 PUSH32(esp, 0); /* 0x3605A1E3: push 0 */ 19073 L_3605A1E5: 19074 MEM32(edx + 0x8) = ecx; /* 0x3605A1E5: mov dword ptr [edx + 8], ecx */ 19075 L_3605A1E8: 19076 ecx = MEM32(ebp + (-0x24)); /* 0x3605A1E8: mov ecx, dword ptr [ebp - 0x24] */ 19077 L_3605A1EB: 19078 PUSH32(esp, 0x3F800000u); /* 0x3605A1EB: push 0x3f800000 */ 19079 L_3605A1F0: 19080 PUSH32(esp, 0); /* 0x3605A1F0: push 0 */ 19081 L_3605A1F2: 19082 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19084 esp = esp - 0xCu; /* 0x3605A1F2: sub esp, 0xc */ 19085 _flag_k = FK_CMP; 19086 L_3605A1F5: 19087 edx = esp; /* 0x3605A1F5: mov edx, esp */ 19088 L_3605A1F7: 19089 MEM32(edx) = ecx; /* 0x3605A1F7: mov dword ptr [edx], ecx */ 19090 L_3605A1F9: 19091 ecx = MEM32(ebp + (-0x20)); /* 0x3605A1F9: mov ecx, dword ptr [ebp - 0x20] */ 19092 L_3605A1FC: 19093 MEM32(edx + 0x4) = ecx; /* 0x3605A1FC: mov dword ptr [edx + 4], ecx */ 19094 L_3605A1FF: 19095 ecx = MEM32(ebp + (-0x1C)); /* 0x3605A1FF: mov ecx, dword ptr [ebp - 0x1c] */ 19096 L_3605A202: 19097 MEM32(edx + 0x8) = ecx; /* 0x3605A202: mov dword ptr [edx + 8], ecx */ 19098 L_3605A205: 19099 RECOMP_BACKEDGE(); 19100 goto L_3605A111; /* 0x3605A205: jmp 0x3605a111 */ 19101 L_3605A20A: 19102 SET_LO8(eax, MEM8(ecx + 0x1B4)); /* 0x3605A20A: mov al, byte ptr [ecx + 0x1b4] */ 19103 L_3605A210: 19104 /* test LO8(eax), LO8(eax) */ /* 0x3605A210: test al, al */ 19105 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19106 _cf = 0; 19107 _flag_k = FK_NARROW(FK_TEST, 24); 19108 L_3605A212: 19109 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x3605A212: je 0x3605a601 */ 19110 L_3605A218: 19111 edx = MEM32(ecx + 0x170); /* 0x3605A218: mov edx, dword ptr [ecx + 0x170] */ 19112 L_3605A21E: 19113 eax = MEM32(edx + 0x8); /* 0x3605A21E: mov eax, dword ptr [edx + 8] */ 19114 L_3605A221: 19115 /* test eax, eax */ /* 0x3605A221: test eax, eax */ 19116 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19117 _cf = 0; 19118 _flag_k = FK_TEST; 19119 L_3605A223: 19120 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x3605A223: je 0x3605a601 */ 19121 L_3605A229: 19122 /* test ecx, ecx */ /* 0x3605A229: test ecx, ecx */ 19123 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 19124 _cf = 0; 19125 _flag_k = FK_TEST; 19126 L_3605A22B: 19127 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x3605A22B: je 0x3605a601 */ 19128 L_3605A231: 19129 /* test edx, edx */ /* 0x3605A231: test edx, edx */ 19130 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19131 _cf = 0; 19132 _flag_k = FK_TEST; 19133 L_3605A233: 19134 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x3605A233: je 0x3605a601 */ 19135 L_3605A239: 19136 PUSH32(esp, edi); /* 0x3605A239: push edi */ 19137 L_3605A23A: 19138 ecx = eax + 0xC; /* 0x3605A23A: lea ecx, [eax + 0xc] */ 19139 L_3605A23D: 19140 RECOMP_ICALL(0x3608ABF0u); /* 0x3605A23D: call 0x3608abf0 */ /* not lifted */ 19141 RECOMP_FLAGS_IN(); 19142 L_3605A242: 19143 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19145 esp = esp - 0xCu; /* 0x3605A242: sub esp, 0xc */ 19146 _flag_k = FK_CMP; 19147 L_3605A245: 19148 MEM32(ebp + (-0x30)) = 0; /* 0x3605A245: mov dword ptr [ebp - 0x30], 0 */ 19149 L_3605A24C: 19150 ecx = MEM32(ebp + (-0x30)); /* 0x3605A24C: mov ecx, dword ptr [ebp - 0x30] */ 19151 L_3605A24F: 19152 edx = esp; /* 0x3605A24F: mov edx, esp */ 19153 L_3605A251: 19154 MEM32(edx) = ecx; /* 0x3605A251: mov dword ptr [edx], ecx */ 19155 L_3605A253: 19156 MEM32(ebp + (-0x2C)) = 0; /* 0x3605A253: mov dword ptr [ebp - 0x2c], 0 */ 19157 L_3605A25A: 19158 ecx = MEM32(ebp + (-0x2C)); /* 0x3605A25A: mov ecx, dword ptr [ebp - 0x2c] */ 19159 L_3605A25D: 19160 MEM32(ebp + (-0x28)) = 0; /* 0x3605A25D: mov dword ptr [ebp - 0x28], 0 */ 19161 L_3605A264: 19162 MEM32(edx + 0x4) = ecx; /* 0x3605A264: mov dword ptr [edx + 4], ecx */ 19163 L_3605A267: 19164 ecx = MEM32(ebp + (-0x28)); /* 0x3605A267: mov ecx, dword ptr [ebp - 0x28] */ 19165 L_3605A26A: 19166 RECOMP_BACKEDGE(); 19167 goto L_3605A1DD; /* 0x3605A26A: jmp 0x3605a1dd */ 19168 L_3605A26F: 19169 edx = MEM32(ebp + (-0x14)); /* 0x3605A26F: mov edx, dword ptr [ebp - 0x14] */ 19170 L_3605A272: 19171 eax = MEM32(ebp + 0xC); /* 0x3605A272: mov eax, dword ptr [ebp + 0xc] */ 19172 L_3605A275: 19173 PUSH32(esp, edx); /* 0x3605A275: push edx */ 19174 L_3605A276: 19175 goto L_3605A5F4; /* 0x3605A276: jmp 0x3605a5f4 */ 19176 L_3605A27B: 19177 SET_LO8(eax, MEM8(edx + 0x4E)); /* 0x3605A27B: mov al, byte ptr [edx + 0x4e] */ 19178 L_3605A27E: 19179 /* test LO8(eax), LO8(eax) */ /* 0x3605A27E: test al, al */ 19180 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19181 _cf = 0; 19182 _flag_k = FK_NARROW(FK_TEST, 24); 19183 L_3605A280: 19184 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3605A601; /* 0x3605A280: jne 0x3605a601 */ 19185 L_3605A286: 19186 SET_LO8(eax, MEM8(ecx + 0x1B4)); /* 0x3605A286: mov al, byte ptr [ecx + 0x1b4] */ 19187 L_3605A28C: 19188 /* test LO8(eax), LO8(eax) */ /* 0x3605A28C: test al, al */ 19189 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 19190 _cf = 0; 19191 _flag_k = FK_NARROW(FK_TEST, 24); 19192 L_3605A28E: 19193 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A326; /* 0x3605A28E: je 0x3605a326 */ 19194 L_3605A294: 19195 edx = MEM32(ecx + 0x170); /* 0x3605A294: mov edx, dword ptr [ecx + 0x170] */ 19196 L_3605A29A: 19197 eax = MEM32(edx + 0x8); /* 0x3605A29A: mov eax, dword ptr [edx + 8] */ 19198 L_3605A29D: 19199 /* test eax, eax */ /* 0x3605A29D: test eax, eax */ 19200 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19201 _cf = 0; 19202 _flag_k = FK_TEST; 19203 L_3605A29F: 19204 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A326; /* 0x3605A29F: je 0x3605a326 */ 19205 L_3605A2A5: 19206 /* test ecx, ecx */ /* 0x3605A2A5: test ecx, ecx */ 19207 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 19208 _cf = 0; 19209 _flag_k = FK_TEST; 19210 L_3605A2A7: 19211 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x3605A2A7: je 0x3605a601 */ 19212 L_3605A2AD: 19213 /* test edx, edx */ /* 0x3605A2AD: test edx, edx */ 19214 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19215 _cf = 0; 19216 _flag_k = FK_TEST; 19217 L_3605A2AF: 19218 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x3605A2AF: je 0x3605a601 */ 19219 L_3605A2B5: 19220 PUSH32(esp, edi); /* 0x3605A2B5: push edi */ 19221 L_3605A2B6: 19222 ecx = eax + 0xC; /* 0x3605A2B6: lea ecx, [eax + 0xc] */ 19223 L_3605A2B9: 19224 RECOMP_ICALL(0x3608ABF0u); /* 0x3605A2B9: call 0x3608abf0 */ /* not lifted */ 19225 RECOMP_FLAGS_IN(); 19226 L_3605A2BE: 19227 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19229 esp = esp - 0xCu; /* 0x3605A2BE: sub esp, 0xc */ 19230 _flag_k = FK_CMP; 19231 L_3605A2C1: 19232 ecx = esp; /* 0x3605A2C1: mov ecx, esp */ 19233 L_3605A2C3: 19234 MEM32(ebp + (-0x30)) = 0; /* 0x3605A2C3: mov dword ptr [ebp - 0x30], 0 */ 19235 L_3605A2CA: 19236 edx = MEM32(ebp + (-0x30)); /* 0x3605A2CA: mov edx, dword ptr [ebp - 0x30] */ 19237 L_3605A2CD: 19238 MEM32(ecx) = edx; /* 0x3605A2CD: mov dword ptr [ecx], edx */ 19239 L_3605A2CF: 19240 PUSH32(esp, 1); /* 0x3605A2CF: push 1 */ 19241 L_3605A2D1: 19242 MEM32(ebp + (-0x2C)) = 0; /* 0x3605A2D1: mov dword ptr [ebp - 0x2c], 0 */ 19243 L_3605A2D8: 19244 edx = MEM32(ebp + (-0x2C)); /* 0x3605A2D8: mov edx, dword ptr [ebp - 0x2c] */ 19245 L_3605A2DB: 19246 MEM32(ecx + 0x4) = edx; /* 0x3605A2DB: mov dword ptr [ecx + 4], edx */ 19247 L_3605A2DE: 19248 PUSH32(esp, 0x64u); /* 0x3605A2DE: push 0x64 */ 19249 L_3605A2E0: 19250 MEM32(ebp + (-0x28)) = 0; /* 0x3605A2E0: mov dword ptr [ebp - 0x28], 0 */ 19251 L_3605A2E7: 19252 edx = MEM32(ebp + (-0x28)); /* 0x3605A2E7: mov edx, dword ptr [ebp - 0x28] */ 19253 L_3605A2EA: 19254 MEM32(ecx + 0x8) = edx; /* 0x3605A2EA: mov dword ptr [ecx + 8], edx */ 19255 L_3605A2ED: 19256 ecx = MEM32(ebp + (-0x4)); /* 0x3605A2ED: mov ecx, dword ptr [ebp - 4] */ 19257 L_3605A2F0: 19258 PUSH32(esp, 0); /* 0x3605A2F0: push 0 */ 19259 L_3605A2F2: 19260 PUSH32(esp, ecx); /* 0x3605A2F2: push ecx */ 19261 L_3605A2F3: 19262 ecx = MEM32(ebp + (-0x24)); /* 0x3605A2F3: mov ecx, dword ptr [ebp - 0x24] */ 19263 L_3605A2F6: 19264 PUSH32(esp, 0x3F800000u); /* 0x3605A2F6: push 0x3f800000 */ 19265 L_3605A2FB: 19266 PUSH32(esp, 0); /* 0x3605A2FB: push 0 */ 19267 L_3605A2FD: 19268 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19270 esp = esp - 0xCu; /* 0x3605A2FD: sub esp, 0xc */ 19271 _flag_k = FK_CMP; 19272 L_3605A300: 19273 edx = esp; /* 0x3605A300: mov edx, esp */ 19274 L_3605A302: 19275 MEM32(edx) = ecx; /* 0x3605A302: mov dword ptr [edx], ecx */ 19276 L_3605A304: 19277 ecx = MEM32(ebp + (-0x20)); /* 0x3605A304: mov ecx, dword ptr [ebp - 0x20] */ 19278 L_3605A307: 19279 MEM32(edx + 0x4) = ecx; /* 0x3605A307: mov dword ptr [edx + 4], ecx */ 19280 L_3605A30A: 19281 ecx = MEM32(ebp + (-0x1C)); /* 0x3605A30A: mov ecx, dword ptr [ebp - 0x1c] */ 19282 L_3605A30D: 19283 PUSH32(esp, eax); /* 0x3605A30D: push eax */ 19284 L_3605A30E: 19285 MEM32(edx + 0x8) = ecx; /* 0x3605A30E: mov dword ptr [edx + 8], ecx */ 19286 L_3605A311: 19287 RECOMP_ICALL(0x3601C590u); /* 0x3605A311: call 0x3601c590 */ /* not lifted */ 19288 RECOMP_FLAGS_IN(); 19289 L_3605A316: 19290 ecx = eax; /* 0x3605A316: mov ecx, eax */ 19291 L_3605A318: 19292 RECOMP_ICALL(0x3601CBF0u); /* 0x3605A318: call 0x3601cbf0 */ /* not lifted */ 19293 RECOMP_FLAGS_IN(); 19294 L_3605A31D: 19295 edi = POP32_VAL(esp); /* 0x3605A31D: pop edi */ 19296 L_3605A31E: 19297 esi = POP32_VAL(esp); /* 0x3605A31E: pop esi */ 19298 L_3605A31F: 19299 ebx = POP32_VAL(esp); /* 0x3605A31F: pop ebx */ 19300 L_3605A320: 19301 esp = ebp; /* 0x3605A320: mov esp, ebp */ 19302 L_3605A322: 19303 ebp = POP32_VAL(esp); /* 0x3605A322: pop ebp */ 19304 L_3605A323: 19305 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A323: ret 0xc */ 19306 L_3605A326: 19307 RECOMP_ICALL(0x3606D5A0u); /* 0x3605A326: call 0x3606d5a0 */ /* not lifted */ 19308 RECOMP_FLAGS_IN(); 19309 L_3605A32B: 19310 /* test eax, eax */ /* 0x3605A32B: test eax, eax */ 19311 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19312 _cf = 0; 19313 _flag_k = FK_TEST; 19314 L_3605A32D: 19315 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A351; /* 0x3605A32D: je 0x3605a351 */ 19316 L_3605A32F: 19317 ecx = MEM32(esi + 0x40); /* 0x3605A32F: mov ecx, dword ptr [esi + 0x40] */ 19318 L_3605A332: 19319 RECOMP_ICALL(0x3606D5A0u); /* 0x3605A332: call 0x3606d5a0 */ /* not lifted */ 19320 RECOMP_FLAGS_IN(); 19321 L_3605A337: 19322 ecx = eax; /* 0x3605A337: mov ecx, eax */ 19323 L_3605A339: 19324 RECOMP_ICALL(0x36047900u); /* 0x3605A339: call 0x36047900 */ /* not lifted */ 19325 RECOMP_FLAGS_IN(); 19326 L_3605A33E: 19327 ecx = eax; /* 0x3605A33E: mov ecx, eax */ 19328 L_3605A340: 19329 RECOMP_ICALL(0x36008320u); /* 0x3605A340: call 0x36008320 */ /* not lifted */ 19330 RECOMP_FLAGS_IN(); 19331 L_3605A345: 19332 /* cmp eax, 6 */ /* 0x3605A345: cmp eax, 6 */ 19333 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 19334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19335 _flag_k = FK_CMP; 19336 L_3605A348: 19337 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3605A351; /* 0x3605A348: jne 0x3605a351 */ 19338 L_3605A34A: 19339 MEM32(ebp + (-0x8)) = 0x3E800000u; /* 0x3605A34A: mov dword ptr [ebp - 8], 0x3e800000 */ 19340 L_3605A351: 19341 eax = edi + (-0x26); /* 0x3605A351: lea eax, [edi - 0x26] */ 19342 L_3605A354: 19343 /* cmp eax, 0x5Fu */ /* 0x3605A354: cmp eax, 0x5f */ 19344 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x5Fu); 19345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19346 _flag_k = FK_CMP; 19347 L_3605A357: 19348 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_3605A601; /* 0x3605A357: ja 0x3605a601 */ 19349 L_3605A35D: 19350 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19351 edx = 0; /* 0x3605A35D: xor edx, edx */ 19352 _cf = 0; 19353 _flag_k = FK_TEST; 19354 L_3605A35F: 19355 SET_LO8(edx, MEM8(eax + 0x3605A6C4)); /* 0x3605A35F: mov dl, byte ptr [eax + 0x3605a6c4] */ 19356 L_3605A365: 19357 { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x3605A6AC)); goto _ljump; } 19358 L_3605A36C: 19359 eax = MEM32(esi + 0x40); /* 0x3605A36C: mov eax, dword ptr [esi + 0x40] */ 19360 L_3605A36F: 19361 ecx = MEM32(eax + 0x60); /* 0x3605A36F: mov ecx, dword ptr [eax + 0x60] */ 19362 L_3605A372: 19363 fp_push(*(float*)&MEM32(ecx + 0x110)); /* 0x3605A372: fld dword ptr [ecx + 0x110] */ 19364 L_3605A378: 19365 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3605A378: fcomp dword ptr [0x3617040c] */ 19366 fp_pop(); 19367 L_3605A37E: 19368 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3605A37E: fnstsw ax */ 19369 L_3605A380: 19370 /* test HI8(eax), 0x41u */ /* 0x3605A380: test ah, 0x41 */ 19371 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 19372 _cf = 0; 19373 _flag_k = FK_NARROW(FK_TEST, 24); 19374 L_3605A383: 19375 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A601; /* 0x3605A383: je 0x3605a601 */ 19376 L_3605A389: 19377 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3605A389: fld dword ptr [ebp - 8] */ 19378 L_3605A38C: 19379 _st[0] += _st[0]; /* 0x3605A38C: fadd st(0), st(0) */ 19380 L_3605A38E: 19381 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3605A38E: fst dword ptr [ebp - 8] */ 19382 L_3605A391: 19383 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x3605A391: fcomp dword ptr [0x36170380] */ 19384 fp_pop(); 19385 L_3605A397: 19386 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3605A397: fnstsw ax */ 19387 L_3605A399: 19388 /* test HI8(eax), 0x41u */ /* 0x3605A399: test ah, 0x41 */ 19389 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 19390 _cf = 0; 19391 _flag_k = FK_NARROW(FK_TEST, 24); 19392 L_3605A39C: 19393 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3605A3A5; /* 0x3605A39C: jne 0x3605a3a5 */ 19394 L_3605A39E: 19395 MEM32(ebp + (-0x8)) = 0x3F800000u; /* 0x3605A39E: mov dword ptr [ebp - 8], 0x3f800000 */ 19396 L_3605A3A5: 19397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19399 esp = esp - 0xCu; /* 0x3605A3A5: sub esp, 0xc */ 19400 _flag_k = FK_CMP; 19401 L_3605A3A8: 19402 edx = esp; /* 0x3605A3A8: mov edx, esp */ 19403 L_3605A3AA: 19404 PUSH32(esp, 1); /* 0x3605A3AA: push 1 */ 19405 L_3605A3AC: 19406 PUSH32(esp, 0x64u); /* 0x3605A3AC: push 0x64 */ 19407 L_3605A3AE: 19408 MEM32(ebp + (-0x30)) = 0; /* 0x3605A3AE: mov dword ptr [ebp - 0x30], 0 */ 19409 L_3605A3B5: 19410 eax = MEM32(ebp + (-0x30)); /* 0x3605A3B5: mov eax, dword ptr [ebp - 0x30] */ 19411 L_3605A3B8: 19412 MEM32(edx) = eax; /* 0x3605A3B8: mov dword ptr [edx], eax */ 19413 L_3605A3BA: 19414 MEM32(ebp + (-0x2C)) = 0; /* 0x3605A3BA: mov dword ptr [ebp - 0x2c], 0 */ 19415 L_3605A3C1: 19416 ecx = MEM32(ebp + (-0x2C)); /* 0x3605A3C1: mov ecx, dword ptr [ebp - 0x2c] */ 19417 L_3605A3C4: 19418 MEM32(edx + 0x4) = ecx; /* 0x3605A3C4: mov dword ptr [edx + 4], ecx */ 19419 L_3605A3C7: 19420 ecx = MEM32(ebp + (-0x4)); /* 0x3605A3C7: mov ecx, dword ptr [ebp - 4] */ 19421 L_3605A3CA: 19422 PUSH32(esp, 0); /* 0x3605A3CA: push 0 */ 19423 L_3605A3CC: 19424 PUSH32(esp, ecx); /* 0x3605A3CC: push ecx */ 19425 L_3605A3CD: 19426 ecx = MEM32(ebp + (-0x24)); /* 0x3605A3CD: mov ecx, dword ptr [ebp - 0x24] */ 19427 L_3605A3D0: 19428 MEM32(ebp + (-0x28)) = 0; /* 0x3605A3D0: mov dword ptr [ebp - 0x28], 0 */ 19429 L_3605A3D7: 19430 eax = MEM32(ebp + (-0x28)); /* 0x3605A3D7: mov eax, dword ptr [ebp - 0x28] */ 19431 L_3605A3DA: 19432 MEM32(edx + 0x8) = eax; /* 0x3605A3DA: mov dword ptr [edx + 8], eax */ 19433 L_3605A3DD: 19434 edx = MEM32(ebp + (-0x8)); /* 0x3605A3DD: mov edx, dword ptr [ebp - 8] */ 19435 L_3605A3E0: 19436 PUSH32(esp, edx); /* 0x3605A3E0: push edx */ 19437 L_3605A3E1: 19438 edx = MEM32(ebp + (-0x20)); /* 0x3605A3E1: mov edx, dword ptr [ebp - 0x20] */ 19439 L_3605A3E4: 19440 PUSH32(esp, 0); /* 0x3605A3E4: push 0 */ 19441 L_3605A3E6: 19442 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19444 esp = esp - 0xCu; /* 0x3605A3E6: sub esp, 0xc */ 19445 _flag_k = FK_CMP; 19446 L_3605A3E9: 19447 eax = esp; /* 0x3605A3E9: mov eax, esp */ 19448 L_3605A3EB: 19449 MEM32(eax) = ecx; /* 0x3605A3EB: mov dword ptr [eax], ecx */ 19450 L_3605A3ED: 19451 ecx = MEM32(ebp + (-0x1C)); /* 0x3605A3ED: mov ecx, dword ptr [ebp - 0x1c] */ 19452 L_3605A3F0: 19453 MEM32(eax + 0x4) = edx; /* 0x3605A3F0: mov dword ptr [eax + 4], edx */ 19454 L_3605A3F3: 19455 edx = MEM32(esi + 0x20); /* 0x3605A3F3: mov edx, dword ptr [esi + 0x20] */ 19456 L_3605A3F6: 19457 PUSH32(esp, edx); /* 0x3605A3F6: push edx */ 19458 L_3605A3F7: 19459 MEM32(eax + 0x8) = ecx; /* 0x3605A3F7: mov dword ptr [eax + 8], ecx */ 19460 L_3605A3FA: 19461 RECOMP_ICALL(0x3601C590u); /* 0x3605A3FA: call 0x3601c590 */ /* not lifted */ 19462 RECOMP_FLAGS_IN(); 19463 L_3605A3FF: 19464 ecx = eax; /* 0x3605A3FF: mov ecx, eax */ 19465 L_3605A401: 19466 RECOMP_ICALL(0x3601CBF0u); /* 0x3605A401: call 0x3601cbf0 */ /* not lifted */ 19467 RECOMP_FLAGS_IN(); 19468 L_3605A406: 19469 eax = ebp + (-0x24); /* 0x3605A406: lea eax, [ebp - 0x24] */ 19470 L_3605A409: 19471 PUSH32(esp, eax); /* 0x3605A409: push eax */ 19472 L_3605A40A: 19473 RECOMP_ICALL(0x360C7410u); /* 0x3605A40A: call 0x360c7410 */ /* not lifted */ 19474 RECOMP_FLAGS_IN(); 19475 L_3605A40F: 19476 ecx = eax; /* 0x3605A40F: mov ecx, eax */ 19477 L_3605A411: 19478 RECOMP_ICALL(0x360C7B60u); /* 0x3605A411: call 0x360c7b60 */ /* not lifted */ 19479 RECOMP_FLAGS_IN(); 19480 L_3605A416: 19481 PUSH32(esp, 0x42A00000u); /* 0x3605A416: push 0x42a00000 */ 19482 L_3605A41B: 19483 RECOMP_ICALL(0x360C7410u); /* 0x3605A41B: call 0x360c7410 */ /* not lifted */ 19484 RECOMP_FLAGS_IN(); 19485 L_3605A420: 19486 ecx = eax; /* 0x3605A420: mov ecx, eax */ 19487 L_3605A422: 19488 RECOMP_ICALL(0x360C7BA0u); /* 0x3605A422: call 0x360c7ba0 */ /* not lifted */ 19489 RECOMP_FLAGS_IN(); 19490 L_3605A427: 19491 PUSH32(esp, 0x25u); /* 0x3605A427: push 0x25 */ 19492 L_3605A429: 19493 RECOMP_ICALL(0x360C7410u); /* 0x3605A429: call 0x360c7410 */ /* not lifted */ 19494 RECOMP_FLAGS_IN(); 19495 L_3605A42E: 19496 ecx = eax; /* 0x3605A42E: mov ecx, eax */ 19497 L_3605A430: 19498 RECOMP_ICALL(0x360C7BE0u); /* 0x3605A430: call 0x360c7be0 */ /* not lifted */ 19499 RECOMP_FLAGS_IN(); 19500 L_3605A435: 19501 edi = POP32_VAL(esp); /* 0x3605A435: pop edi */ 19502 L_3605A436: 19503 esi = POP32_VAL(esp); /* 0x3605A436: pop esi */ 19504 L_3605A437: 19505 ebx = POP32_VAL(esp); /* 0x3605A437: pop ebx */ 19506 L_3605A438: 19507 esp = ebp; /* 0x3605A438: mov esp, ebp */ 19508 L_3605A43A: 19509 ebp = POP32_VAL(esp); /* 0x3605A43A: pop ebp */ 19510 L_3605A43B: 19511 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A43B: ret 0xc */ 19512 L_3605A43E: 19513 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19515 esp = esp - 0xCu; /* 0x3605A43E: sub esp, 0xc */ 19516 _flag_k = FK_CMP; 19517 L_3605A441: 19518 ecx = esp; /* 0x3605A441: mov ecx, esp */ 19519 L_3605A443: 19520 PUSH32(esp, 1); /* 0x3605A443: push 1 */ 19521 L_3605A445: 19522 PUSH32(esp, 0x64u); /* 0x3605A445: push 0x64 */ 19523 L_3605A447: 19524 MEM32(ebp + (-0x30)) = 0; /* 0x3605A447: mov dword ptr [ebp - 0x30], 0 */ 19525 L_3605A44E: 19526 edx = MEM32(ebp + (-0x30)); /* 0x3605A44E: mov edx, dword ptr [ebp - 0x30] */ 19527 L_3605A451: 19528 MEM32(ecx) = edx; /* 0x3605A451: mov dword ptr [ecx], edx */ 19529 L_3605A453: 19530 MEM32(ebp + (-0x2C)) = 0; /* 0x3605A453: mov dword ptr [ebp - 0x2c], 0 */ 19531 L_3605A45A: 19532 eax = MEM32(ebp + (-0x2C)); /* 0x3605A45A: mov eax, dword ptr [ebp - 0x2c] */ 19533 L_3605A45D: 19534 MEM32(ecx + 0x4) = eax; /* 0x3605A45D: mov dword ptr [ecx + 4], eax */ 19535 L_3605A460: 19536 eax = MEM32(ebp + (-0x4)); /* 0x3605A460: mov eax, dword ptr [ebp - 4] */ 19537 L_3605A463: 19538 PUSH32(esp, 0); /* 0x3605A463: push 0 */ 19539 L_3605A465: 19540 PUSH32(esp, eax); /* 0x3605A465: push eax */ 19541 L_3605A466: 19542 eax = MEM32(ebp + (-0x24)); /* 0x3605A466: mov eax, dword ptr [ebp - 0x24] */ 19543 L_3605A469: 19544 MEM32(ebp + (-0x28)) = 0; /* 0x3605A469: mov dword ptr [ebp - 0x28], 0 */ 19545 L_3605A470: 19546 edx = MEM32(ebp + (-0x28)); /* 0x3605A470: mov edx, dword ptr [ebp - 0x28] */ 19547 L_3605A473: 19548 MEM32(ecx + 0x8) = edx; /* 0x3605A473: mov dword ptr [ecx + 8], edx */ 19549 L_3605A476: 19550 ecx = MEM32(ebp + (-0x8)); /* 0x3605A476: mov ecx, dword ptr [ebp - 8] */ 19551 L_3605A479: 19552 PUSH32(esp, ecx); /* 0x3605A479: push ecx */ 19553 L_3605A47A: 19554 ecx = MEM32(ebp + (-0x20)); /* 0x3605A47A: mov ecx, dword ptr [ebp - 0x20] */ 19555 L_3605A47D: 19556 PUSH32(esp, 0); /* 0x3605A47D: push 0 */ 19557 L_3605A47F: 19558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19560 esp = esp - 0xCu; /* 0x3605A47F: sub esp, 0xc */ 19561 _flag_k = FK_CMP; 19562 L_3605A482: 19563 edx = esp; /* 0x3605A482: mov edx, esp */ 19564 L_3605A484: 19565 MEM32(edx) = eax; /* 0x3605A484: mov dword ptr [edx], eax */ 19566 L_3605A486: 19567 eax = MEM32(ebp + (-0x1C)); /* 0x3605A486: mov eax, dword ptr [ebp - 0x1c] */ 19568 L_3605A489: 19569 MEM32(edx + 0x4) = ecx; /* 0x3605A489: mov dword ptr [edx + 4], ecx */ 19570 L_3605A48C: 19571 ecx = MEM32(esi); /* 0x3605A48C: mov ecx, dword ptr [esi] */ 19572 L_3605A48E: 19573 PUSH32(esp, ecx); /* 0x3605A48E: push ecx */ 19574 L_3605A48F: 19575 MEM32(edx + 0x8) = eax; /* 0x3605A48F: mov dword ptr [edx + 8], eax */ 19576 L_3605A492: 19577 RECOMP_ICALL(0x3601C590u); /* 0x3605A492: call 0x3601c590 */ /* not lifted */ 19578 RECOMP_FLAGS_IN(); 19579 L_3605A497: 19580 ecx = eax; /* 0x3605A497: mov ecx, eax */ 19581 L_3605A499: 19582 RECOMP_ICALL(0x3601CBF0u); /* 0x3605A499: call 0x3601cbf0 */ /* not lifted */ 19583 RECOMP_FLAGS_IN(); 19584 L_3605A49E: 19585 edi = POP32_VAL(esp); /* 0x3605A49E: pop edi */ 19586 L_3605A49F: 19587 esi = POP32_VAL(esp); /* 0x3605A49F: pop esi */ 19588 L_3605A4A0: 19589 ebx = POP32_VAL(esp); /* 0x3605A4A0: pop ebx */ 19590 L_3605A4A1: 19591 esp = ebp; /* 0x3605A4A1: mov esp, ebp */ 19592 L_3605A4A3: 19593 ebp = POP32_VAL(esp); /* 0x3605A4A3: pop ebp */ 19594 L_3605A4A4: 19595 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A4A4: ret 0xc */ 19596 L_3605A4A7: 19597 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19599 esp = esp - 0xCu; /* 0x3605A4A7: sub esp, 0xc */ 19600 _flag_k = FK_CMP; 19601 L_3605A4AA: 19602 edx = esp; /* 0x3605A4AA: mov edx, esp */ 19603 L_3605A4AC: 19604 PUSH32(esp, 1); /* 0x3605A4AC: push 1 */ 19605 L_3605A4AE: 19606 PUSH32(esp, 0x64u); /* 0x3605A4AE: push 0x64 */ 19607 L_3605A4B0: 19608 MEM32(ebp + (-0x30)) = 0; /* 0x3605A4B0: mov dword ptr [ebp - 0x30], 0 */ 19609 L_3605A4B7: 19610 eax = MEM32(ebp + (-0x30)); /* 0x3605A4B7: mov eax, dword ptr [ebp - 0x30] */ 19611 L_3605A4BA: 19612 MEM32(edx) = eax; /* 0x3605A4BA: mov dword ptr [edx], eax */ 19613 L_3605A4BC: 19614 MEM32(ebp + (-0x2C)) = 0; /* 0x3605A4BC: mov dword ptr [ebp - 0x2c], 0 */ 19615 L_3605A4C3: 19616 ecx = MEM32(ebp + (-0x2C)); /* 0x3605A4C3: mov ecx, dword ptr [ebp - 0x2c] */ 19617 L_3605A4C6: 19618 MEM32(edx + 0x4) = ecx; /* 0x3605A4C6: mov dword ptr [edx + 4], ecx */ 19619 L_3605A4C9: 19620 ecx = MEM32(ebp + (-0x4)); /* 0x3605A4C9: mov ecx, dword ptr [ebp - 4] */ 19621 L_3605A4CC: 19622 PUSH32(esp, 0); /* 0x3605A4CC: push 0 */ 19623 L_3605A4CE: 19624 PUSH32(esp, ecx); /* 0x3605A4CE: push ecx */ 19625 L_3605A4CF: 19626 ecx = MEM32(ebp + (-0x24)); /* 0x3605A4CF: mov ecx, dword ptr [ebp - 0x24] */ 19627 L_3605A4D2: 19628 MEM32(ebp + (-0x28)) = 0; /* 0x3605A4D2: mov dword ptr [ebp - 0x28], 0 */ 19629 L_3605A4D9: 19630 eax = MEM32(ebp + (-0x28)); /* 0x3605A4D9: mov eax, dword ptr [ebp - 0x28] */ 19631 L_3605A4DC: 19632 MEM32(edx + 0x8) = eax; /* 0x3605A4DC: mov dword ptr [edx + 8], eax */ 19633 L_3605A4DF: 19634 edx = MEM32(ebp + (-0x8)); /* 0x3605A4DF: mov edx, dword ptr [ebp - 8] */ 19635 L_3605A4E2: 19636 PUSH32(esp, edx); /* 0x3605A4E2: push edx */ 19637 L_3605A4E3: 19638 edx = MEM32(ebp + (-0x20)); /* 0x3605A4E3: mov edx, dword ptr [ebp - 0x20] */ 19639 L_3605A4E6: 19640 PUSH32(esp, 0); /* 0x3605A4E6: push 0 */ 19641 L_3605A4E8: 19642 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19644 esp = esp - 0xCu; /* 0x3605A4E8: sub esp, 0xc */ 19645 _flag_k = FK_CMP; 19646 L_3605A4EB: 19647 eax = esp; /* 0x3605A4EB: mov eax, esp */ 19648 L_3605A4ED: 19649 MEM32(eax) = ecx; /* 0x3605A4ED: mov dword ptr [eax], ecx */ 19650 L_3605A4EF: 19651 ecx = MEM32(ebp + (-0x1C)); /* 0x3605A4EF: mov ecx, dword ptr [ebp - 0x1c] */ 19652 L_3605A4F2: 19653 MEM32(eax + 0x4) = edx; /* 0x3605A4F2: mov dword ptr [eax + 4], edx */ 19654 L_3605A4F5: 19655 edx = MEM32(esi + 0x4); /* 0x3605A4F5: mov edx, dword ptr [esi + 4] */ 19656 L_3605A4F8: 19657 PUSH32(esp, edx); /* 0x3605A4F8: push edx */ 19658 L_3605A4F9: 19659 MEM32(eax + 0x8) = ecx; /* 0x3605A4F9: mov dword ptr [eax + 8], ecx */ 19660 L_3605A4FC: 19661 RECOMP_ICALL(0x3601C590u); /* 0x3605A4FC: call 0x3601c590 */ /* not lifted */ 19662 RECOMP_FLAGS_IN(); 19663 L_3605A501: 19664 ecx = eax; /* 0x3605A501: mov ecx, eax */ 19665 L_3605A503: 19666 RECOMP_ICALL(0x3601CBF0u); /* 0x3605A503: call 0x3601cbf0 */ /* not lifted */ 19667 RECOMP_FLAGS_IN(); 19668 L_3605A508: 19669 edi = POP32_VAL(esp); /* 0x3605A508: pop edi */ 19670 L_3605A509: 19671 esi = POP32_VAL(esp); /* 0x3605A509: pop esi */ 19672 L_3605A50A: 19673 ebx = POP32_VAL(esp); /* 0x3605A50A: pop ebx */ 19674 L_3605A50B: 19675 esp = ebp; /* 0x3605A50B: mov esp, ebp */ 19676 L_3605A50D: 19677 ebp = POP32_VAL(esp); /* 0x3605A50D: pop ebp */ 19678 L_3605A50E: 19679 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A50E: ret 0xc */ 19680 L_3605A511: 19681 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19683 esp = esp - 0xCu; /* 0x3605A511: sub esp, 0xc */ 19684 _flag_k = FK_CMP; 19685 L_3605A514: 19686 eax = esp; /* 0x3605A514: mov eax, esp */ 19687 L_3605A516: 19688 PUSH32(esp, 1); /* 0x3605A516: push 1 */ 19689 L_3605A518: 19690 PUSH32(esp, 0x64u); /* 0x3605A518: push 0x64 */ 19691 L_3605A51A: 19692 MEM32(ebp + (-0x30)) = 0; /* 0x3605A51A: mov dword ptr [ebp - 0x30], 0 */ 19693 L_3605A521: 19694 ecx = MEM32(ebp + (-0x30)); /* 0x3605A521: mov ecx, dword ptr [ebp - 0x30] */ 19695 L_3605A524: 19696 MEM32(eax) = ecx; /* 0x3605A524: mov dword ptr [eax], ecx */ 19697 L_3605A526: 19698 MEM32(ebp + (-0x2C)) = 0; /* 0x3605A526: mov dword ptr [ebp - 0x2c], 0 */ 19699 L_3605A52D: 19700 edx = MEM32(ebp + (-0x2C)); /* 0x3605A52D: mov edx, dword ptr [ebp - 0x2c] */ 19701 L_3605A530: 19702 MEM32(eax + 0x4) = edx; /* 0x3605A530: mov dword ptr [eax + 4], edx */ 19703 L_3605A533: 19704 edx = MEM32(ebp + (-0x4)); /* 0x3605A533: mov edx, dword ptr [ebp - 4] */ 19705 L_3605A536: 19706 PUSH32(esp, 0); /* 0x3605A536: push 0 */ 19707 L_3605A538: 19708 PUSH32(esp, edx); /* 0x3605A538: push edx */ 19709 L_3605A539: 19710 edx = MEM32(ebp + (-0x24)); /* 0x3605A539: mov edx, dword ptr [ebp - 0x24] */ 19711 L_3605A53C: 19712 MEM32(ebp + (-0x28)) = 0; /* 0x3605A53C: mov dword ptr [ebp - 0x28], 0 */ 19713 L_3605A543: 19714 ecx = MEM32(ebp + (-0x28)); /* 0x3605A543: mov ecx, dword ptr [ebp - 0x28] */ 19715 L_3605A546: 19716 MEM32(eax + 0x8) = ecx; /* 0x3605A546: mov dword ptr [eax + 8], ecx */ 19717 L_3605A549: 19718 eax = MEM32(ebp + (-0x8)); /* 0x3605A549: mov eax, dword ptr [ebp - 8] */ 19719 L_3605A54C: 19720 PUSH32(esp, eax); /* 0x3605A54C: push eax */ 19721 L_3605A54D: 19722 eax = MEM32(ebp + (-0x20)); /* 0x3605A54D: mov eax, dword ptr [ebp - 0x20] */ 19723 L_3605A550: 19724 PUSH32(esp, 0); /* 0x3605A550: push 0 */ 19725 L_3605A552: 19726 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19728 esp = esp - 0xCu; /* 0x3605A552: sub esp, 0xc */ 19729 _flag_k = FK_CMP; 19730 L_3605A555: 19731 ecx = esp; /* 0x3605A555: mov ecx, esp */ 19732 L_3605A557: 19733 MEM32(ecx) = edx; /* 0x3605A557: mov dword ptr [ecx], edx */ 19734 L_3605A559: 19735 edx = MEM32(ebp + (-0x1C)); /* 0x3605A559: mov edx, dword ptr [ebp - 0x1c] */ 19736 L_3605A55C: 19737 MEM32(ecx + 0x4) = eax; /* 0x3605A55C: mov dword ptr [ecx + 4], eax */ 19738 L_3605A55F: 19739 eax = MEM32(esi + 0x8); /* 0x3605A55F: mov eax, dword ptr [esi + 8] */ 19740 L_3605A562: 19741 PUSH32(esp, eax); /* 0x3605A562: push eax */ 19742 L_3605A563: 19743 MEM32(ecx + 0x8) = edx; /* 0x3605A563: mov dword ptr [ecx + 8], edx */ 19744 L_3605A566: 19745 RECOMP_ICALL(0x3601C590u); /* 0x3605A566: call 0x3601c590 */ /* not lifted */ 19746 RECOMP_FLAGS_IN(); 19747 L_3605A56B: 19748 ecx = eax; /* 0x3605A56B: mov ecx, eax */ 19749 L_3605A56D: 19750 RECOMP_ICALL(0x3601CBF0u); /* 0x3605A56D: call 0x3601cbf0 */ /* not lifted */ 19751 RECOMP_FLAGS_IN(); 19752 L_3605A572: 19753 edi = POP32_VAL(esp); /* 0x3605A572: pop edi */ 19754 L_3605A573: 19755 esi = POP32_VAL(esp); /* 0x3605A573: pop esi */ 19756 L_3605A574: 19757 ebx = POP32_VAL(esp); /* 0x3605A574: pop ebx */ 19758 L_3605A575: 19759 esp = ebp; /* 0x3605A575: mov esp, ebp */ 19760 L_3605A577: 19761 ebp = POP32_VAL(esp); /* 0x3605A577: pop ebp */ 19762 L_3605A578: 19763 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A578: ret 0xc */ 19764 L_3605A57B: 19765 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19767 esp = esp - 0xCu; /* 0x3605A57B: sub esp, 0xc */ 19768 _flag_k = FK_CMP; 19769 L_3605A57E: 19770 ecx = esp; /* 0x3605A57E: mov ecx, esp */ 19771 L_3605A580: 19772 PUSH32(esp, 1); /* 0x3605A580: push 1 */ 19773 L_3605A582: 19774 PUSH32(esp, 0x64u); /* 0x3605A582: push 0x64 */ 19775 L_3605A584: 19776 MEM32(ebp + (-0x30)) = 0; /* 0x3605A584: mov dword ptr [ebp - 0x30], 0 */ 19777 L_3605A58B: 19778 edx = MEM32(ebp + (-0x30)); /* 0x3605A58B: mov edx, dword ptr [ebp - 0x30] */ 19779 L_3605A58E: 19780 MEM32(ecx) = edx; /* 0x3605A58E: mov dword ptr [ecx], edx */ 19781 L_3605A590: 19782 MEM32(ebp + (-0x2C)) = 0; /* 0x3605A590: mov dword ptr [ebp - 0x2c], 0 */ 19783 L_3605A597: 19784 eax = MEM32(ebp + (-0x2C)); /* 0x3605A597: mov eax, dword ptr [ebp - 0x2c] */ 19785 L_3605A59A: 19786 MEM32(ecx + 0x4) = eax; /* 0x3605A59A: mov dword ptr [ecx + 4], eax */ 19787 L_3605A59D: 19788 eax = MEM32(ebp + (-0x4)); /* 0x3605A59D: mov eax, dword ptr [ebp - 4] */ 19789 L_3605A5A0: 19790 PUSH32(esp, 0); /* 0x3605A5A0: push 0 */ 19791 L_3605A5A2: 19792 PUSH32(esp, eax); /* 0x3605A5A2: push eax */ 19793 L_3605A5A3: 19794 eax = MEM32(ebp + (-0x24)); /* 0x3605A5A3: mov eax, dword ptr [ebp - 0x24] */ 19795 L_3605A5A6: 19796 MEM32(ebp + (-0x28)) = 0; /* 0x3605A5A6: mov dword ptr [ebp - 0x28], 0 */ 19797 L_3605A5AD: 19798 edx = MEM32(ebp + (-0x28)); /* 0x3605A5AD: mov edx, dword ptr [ebp - 0x28] */ 19799 L_3605A5B0: 19800 MEM32(ecx + 0x8) = edx; /* 0x3605A5B0: mov dword ptr [ecx + 8], edx */ 19801 L_3605A5B3: 19802 ecx = MEM32(ebp + (-0x8)); /* 0x3605A5B3: mov ecx, dword ptr [ebp - 8] */ 19803 L_3605A5B6: 19804 PUSH32(esp, ecx); /* 0x3605A5B6: push ecx */ 19805 L_3605A5B7: 19806 ecx = MEM32(ebp + (-0x20)); /* 0x3605A5B7: mov ecx, dword ptr [ebp - 0x20] */ 19807 L_3605A5BA: 19808 PUSH32(esp, 0); /* 0x3605A5BA: push 0 */ 19809 L_3605A5BC: 19810 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 19811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19812 esp = esp - 0xCu; /* 0x3605A5BC: sub esp, 0xc */ 19813 _flag_k = FK_CMP; 19814 L_3605A5BF: 19815 edx = esp; /* 0x3605A5BF: mov edx, esp */ 19816 L_3605A5C1: 19817 MEM32(edx) = eax; /* 0x3605A5C1: mov dword ptr [edx], eax */ 19818 L_3605A5C3: 19819 eax = MEM32(ebp + (-0x1C)); /* 0x3605A5C3: mov eax, dword ptr [ebp - 0x1c] */ 19820 L_3605A5C6: 19821 MEM32(edx + 0x4) = ecx; /* 0x3605A5C6: mov dword ptr [edx + 4], ecx */ 19822 L_3605A5C9: 19823 ecx = MEM32(esi + 0xC); /* 0x3605A5C9: mov ecx, dword ptr [esi + 0xc] */ 19824 L_3605A5CC: 19825 MEM32(edx + 0x8) = eax; /* 0x3605A5CC: mov dword ptr [edx + 8], eax */ 19826 L_3605A5CF: 19827 PUSH32(esp, ecx); /* 0x3605A5CF: push ecx */ 19828 L_3605A5D0: 19829 RECOMP_BACKEDGE(); 19830 goto L_3605A112; /* 0x3605A5D0: jmp 0x3605a112 */ 19831 L_3605A5D5: 19832 eax = MEM32(ebp + 0xC); /* 0x3605A5D5: mov eax, dword ptr [ebp + 0xc] */ 19833 L_3605A5D8: 19834 /* cmp eax, 0xBu */ /* 0x3605A5D8: cmp eax, 0xb */ 19835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 19836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19837 _flag_k = FK_CMP; 19838 L_3605A5DB: 19839 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A5F0; /* 0x3605A5DB: je 0x3605a5f0 */ 19840 L_3605A5DD: 19841 edx = MEM32(ebp + 0x8); /* 0x3605A5DD: mov edx, dword ptr [ebp + 8] */ 19842 L_3605A5E0: 19843 /* cmp edx, 0x98u */ /* 0x3605A5E0: cmp edx, 0x98 */ 19844 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x98u); 19845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19846 _flag_k = FK_CMP; 19847 L_3605A5E6: 19848 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3605A5F0; /* 0x3605A5E6: je 0x3605a5f0 */ 19849 L_3605A5E8: 19850 /* cmp edx, 0x99u */ /* 0x3605A5E8: cmp edx, 0x99 */ 19851 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x99u); 19852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19853 _flag_k = FK_CMP; 19854 L_3605A5EE: 19855 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3605A601; /* 0x3605A5EE: jne 0x3605a601 */ 19856 L_3605A5F0: 19857 edx = MEM32(ebp + (-0x14)); /* 0x3605A5F0: mov edx, dword ptr [ebp - 0x14] */ 19858 L_3605A5F3: 19859 PUSH32(esp, edx); /* 0x3605A5F3: push edx */ 19860 L_3605A5F4: 19861 ecx = MEM32(ecx + 0x16C); /* 0x3605A5F4: mov ecx, dword ptr [ecx + 0x16c] */ 19862 L_3605A5FA: 19863 PUSH32(esp, eax); /* 0x3605A5FA: push eax */ 19864 L_3605A5FB: 19865 PUSH32(esp, edi); /* 0x3605A5FB: push edi */ 19866 L_3605A5FC: 19867 RECOMP_ICALL(0x3607A260u); /* 0x3605A5FC: call 0x3607a260 */ /* not lifted */ 19868 RECOMP_FLAGS_IN(); 19869 L_3605A601: 19870 edi = POP32_VAL(esp); /* 0x3605A601: pop edi */ 19871 L_3605A602: 19872 esi = POP32_VAL(esp); /* 0x3605A602: pop esi */ 19873 L_3605A603: 19874 ebx = POP32_VAL(esp); /* 0x3605A603: pop ebx */ 19875 L_3605A604: 19876 esp = ebp; /* 0x3605A604: mov esp, ebp */ 19877 L_3605A606: 19878 ebp = POP32_VAL(esp); /* 0x3605A606: pop ebp */ 19879 L_3605A607: 19880 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A607: ret 0xc */ 19881 _ljump: 19882 switch (_itail_tgt) { 19883 case 0x36059C70u: goto L_36059C70; 19884 case 0x36059C71u: goto L_36059C71; 19885 case 0x36059C73u: goto L_36059C73; 19886 case 0x36059C76u: goto L_36059C76; 19887 case 0x36059C77u: goto L_36059C77; 19888 case 0x36059C7Du: goto L_36059C7D; 19889 case 0x36059C7Eu: goto L_36059C7E; 19890 case 0x36059C80u: goto L_36059C80; 19891 case 0x36059C83u: goto L_36059C83; 19892 case 0x36059C84u: goto L_36059C84; 19893 case 0x36059C86u: goto L_36059C86; 19894 case 0x36059C88u: goto L_36059C88; 19895 case 0x36059C8Bu: goto L_36059C8B; 19896 case 0x36059C8Eu: goto L_36059C8E; 19897 case 0x36059C91u: goto L_36059C91; 19898 case 0x36059C94u: goto L_36059C94; 19899 case 0x36059C97u: goto L_36059C97; 19900 case 0x36059C9Au: goto L_36059C9A; 19901 case 0x36059CA0u: goto L_36059CA0; 19902 case 0x36059CA2u: goto L_36059CA2; 19903 case 0x36059CA8u: goto L_36059CA8; 19904 case 0x36059CAAu: goto L_36059CAA; 19905 case 0x36059CB0u: goto L_36059CB0; 19906 case 0x36059CB2u: goto L_36059CB2; 19907 case 0x36059CB4u: goto L_36059CB4; 19908 case 0x36059CBAu: goto L_36059CBA; 19909 case 0x36059CBDu: goto L_36059CBD; 19910 case 0x36059CC2u: goto L_36059CC2; 19911 case 0x36059CC4u: goto L_36059CC4; 19912 case 0x36059CC7u: goto L_36059CC7; 19913 case 0x36059CCEu: goto L_36059CCE; 19914 case 0x36059CD1u: goto L_36059CD1; 19915 case 0x36059CD3u: goto L_36059CD3; 19916 case 0x36059CD5u: goto L_36059CD5; 19917 case 0x36059CDCu: goto L_36059CDC; 19918 case 0x36059CDFu: goto L_36059CDF; 19919 case 0x36059CE6u: goto L_36059CE6; 19920 case 0x36059CE9u: goto L_36059CE9; 19921 case 0x36059CECu: goto L_36059CEC; 19922 case 0x36059CF1u: goto L_36059CF1; 19923 case 0x36059CF4u: goto L_36059CF4; 19924 case 0x36059CFAu: goto L_36059CFA; 19925 case 0x36059CFDu: goto L_36059CFD; 19926 case 0x36059D00u: goto L_36059D00; 19927 case 0x36059D02u: goto L_36059D02; 19928 case 0x36059D04u: goto L_36059D04; 19929 case 0x36059D07u: goto L_36059D07; 19930 case 0x36059D0Cu: goto L_36059D0C; 19931 case 0x36059D0Fu: goto L_36059D0F; 19932 case 0x36059D12u: goto L_36059D12; 19933 case 0x36059D14u: goto L_36059D14; 19934 case 0x36059D17u: goto L_36059D17; 19935 case 0x36059D1Au: goto L_36059D1A; 19936 case 0x36059D1Fu: goto L_36059D1F; 19937 case 0x36059D22u: goto L_36059D22; 19938 case 0x36059D25u: goto L_36059D25; 19939 case 0x36059D27u: goto L_36059D27; 19940 case 0x36059D2Du: goto L_36059D2D; 19941 case 0x36059D30u: goto L_36059D30; 19942 case 0x36059D33u: goto L_36059D33; 19943 case 0x36059D36u: goto L_36059D36; 19944 case 0x36059D3Du: goto L_36059D3D; 19945 case 0x36059D44u: goto L_36059D44; 19946 case 0x36059D47u: goto L_36059D47; 19947 case 0x36059D4Cu: goto L_36059D4C; 19948 case 0x36059D4Fu: goto L_36059D4F; 19949 case 0x36059D51u: goto L_36059D51; 19950 case 0x36059D55u: goto L_36059D55; 19951 case 0x36059D57u: goto L_36059D57; 19952 case 0x36059D5Au: goto L_36059D5A; 19953 case 0x36059D60u: goto L_36059D60; 19954 case 0x36059D65u: goto L_36059D65; 19955 case 0x36059D67u: goto L_36059D67; 19956 case 0x36059D6Du: goto L_36059D6D; 19957 case 0x36059D6Fu: goto L_36059D6F; 19958 case 0x36059D75u: goto L_36059D75; 19959 case 0x36059D78u: goto L_36059D78; 19960 case 0x36059D7Bu: goto L_36059D7B; 19961 case 0x36059D7Cu: goto L_36059D7C; 19962 case 0x36059D7Du: goto L_36059D7D; 19963 case 0x36059D7Fu: goto L_36059D7F; 19964 case 0x36059D85u: goto L_36059D85; 19965 case 0x36059D88u: goto L_36059D88; 19966 case 0x36059D89u: goto L_36059D89; 19967 case 0x36059D8Eu: goto L_36059D8E; 19968 case 0x36059D91u: goto L_36059D91; 19969 case 0x36059D94u: goto L_36059D94; 19970 case 0x36059D97u: goto L_36059D97; 19971 case 0x36059D9Au: goto L_36059D9A; 19972 case 0x36059D9Du: goto L_36059D9D; 19973 case 0x36059D9Eu: goto L_36059D9E; 19974 case 0x36059DA4u: goto L_36059DA4; 19975 case 0x36059DAAu: goto L_36059DAA; 19976 case 0x36059DADu: goto L_36059DAD; 19977 case 0x36059DB2u: goto L_36059DB2; 19978 case 0x36059DB5u: goto L_36059DB5; 19979 case 0x36059DB8u: goto L_36059DB8; 19980 case 0x36059DBBu: goto L_36059DBB; 19981 case 0x36059DC1u: goto L_36059DC1; 19982 case 0x36059DC4u: goto L_36059DC4; 19983 case 0x36059DC6u: goto L_36059DC6; 19984 case 0x36059DC9u: goto L_36059DC9; 19985 case 0x36059DCCu: goto L_36059DCC; 19986 case 0x36059DCEu: goto L_36059DCE; 19987 case 0x36059DD1u: goto L_36059DD1; 19988 case 0x36059DD3u: goto L_36059DD3; 19989 case 0x36059DDAu: goto L_36059DDA; 19990 case 0x36059DDCu: goto L_36059DDC; 19991 case 0x36059DDEu: goto L_36059DDE; 19992 case 0x36059DE4u: goto L_36059DE4; 19993 case 0x36059DE6u: goto L_36059DE6; 19994 case 0x36059DECu: goto L_36059DEC; 19995 case 0x36059DEFu: goto L_36059DEF; 19996 case 0x36059DF3u: goto L_36059DF3; 19997 case 0x36059DF4u: goto L_36059DF4; 19998 case 0x36059DFAu: goto L_36059DFA; 19999 case 0x36059DFCu: goto L_36059DFC; 20000 case 0x36059E02u: goto L_36059E02; 20001 case 0x36059E05u: goto L_36059E05; 20002 case 0x36059E08u: goto L_36059E08; 20003 case 0x36059E0Bu: goto L_36059E0B; 20004 case 0x36059E11u: goto L_36059E11; 20005 case 0x36059E17u: goto L_36059E17; 20006 case 0x36059E19u: goto L_36059E19; 20007 case 0x36059E1Cu: goto L_36059E1C; 20008 case 0x36059E1Eu: goto L_36059E1E; 20009 case 0x36059E24u: goto L_36059E24; 20010 case 0x36059E27u: goto L_36059E27; 20011 case 0x36059E29u: goto L_36059E29; 20012 case 0x36059E30u: goto L_36059E30; 20013 case 0x36059E32u: goto L_36059E32; 20014 case 0x36059E35u: goto L_36059E35; 20015 case 0x36059E37u: goto L_36059E37; 20016 case 0x36059E3Eu: goto L_36059E3E; 20017 case 0x36059E40u: goto L_36059E40; 20018 case 0x36059E46u: goto L_36059E46; 20019 case 0x36059E4Du: goto L_36059E4D; 20020 case 0x36059E53u: goto L_36059E53; 20021 case 0x36059E55u: goto L_36059E55; 20022 case 0x36059E58u: goto L_36059E58; 20023 case 0x36059E5Au: goto L_36059E5A; 20024 case 0x36059E61u: goto L_36059E61; 20025 case 0x36059E64u: goto L_36059E64; 20026 case 0x36059E67u: goto L_36059E67; 20027 case 0x36059E6Au: goto L_36059E6A; 20028 case 0x36059E70u: goto L_36059E70; 20029 case 0x36059E72u: goto L_36059E72; 20030 case 0x36059E78u: goto L_36059E78; 20031 case 0x36059E7Fu: goto L_36059E7F; 20032 case 0x36059E85u: goto L_36059E85; 20033 case 0x36059E87u: goto L_36059E87; 20034 case 0x36059E89u: goto L_36059E89; 20035 case 0x36059E8Fu: goto L_36059E8F; 20036 case 0x36059E92u: goto L_36059E92; 20037 case 0x36059E94u: goto L_36059E94; 20038 case 0x36059E96u: goto L_36059E96; 20039 case 0x36059E97u: goto L_36059E97; 20040 case 0x36059E9Au: goto L_36059E9A; 20041 case 0x36059E9Fu: goto L_36059E9F; 20042 case 0x36059EA2u: goto L_36059EA2; 20043 case 0x36059EA9u: goto L_36059EA9; 20044 case 0x36059EACu: goto L_36059EAC; 20045 case 0x36059EAEu: goto L_36059EAE; 20046 case 0x36059EB0u: goto L_36059EB0; 20047 case 0x36059EB7u: goto L_36059EB7; 20048 case 0x36059EBAu: goto L_36059EBA; 20049 case 0x36059EC1u: goto L_36059EC1; 20050 case 0x36059EC4u: goto L_36059EC4; 20051 case 0x36059EC7u: goto L_36059EC7; 20052 case 0x36059ECCu: goto L_36059ECC; 20053 case 0x36059ECFu: goto L_36059ECF; 20054 case 0x36059ED1u: goto L_36059ED1; 20055 case 0x36059ED3u: goto L_36059ED3; 20056 case 0x36059ED5u: goto L_36059ED5; 20057 case 0x36059ED7u: goto L_36059ED7; 20058 case 0x36059ED9u: goto L_36059ED9; 20059 case 0x36059EE0u: goto L_36059EE0; 20060 case 0x36059EE3u: goto L_36059EE3; 20061 case 0x36059EE5u: goto L_36059EE5; 20062 case 0x36059EEAu: goto L_36059EEA; 20063 case 0x36059EF1u: goto L_36059EF1; 20064 case 0x36059EF4u: goto L_36059EF4; 20065 case 0x36059EF7u: goto L_36059EF7; 20066 case 0x36059EF9u: goto L_36059EF9; 20067 case 0x36059F00u: goto L_36059F00; 20068 case 0x36059F03u: goto L_36059F03; 20069 case 0x36059F06u: goto L_36059F06; 20070 case 0x36059F09u: goto L_36059F09; 20071 case 0x36059F0Cu: goto L_36059F0C; 20072 case 0x36059F0Fu: goto L_36059F0F; 20073 case 0x36059F11u: goto L_36059F11; 20074 case 0x36059F13u: goto L_36059F13; 20075 case 0x36059F16u: goto L_36059F16; 20076 case 0x36059F19u: goto L_36059F19; 20077 case 0x36059F1Cu: goto L_36059F1C; 20078 case 0x36059F1Du: goto L_36059F1D; 20079 case 0x36059F20u: goto L_36059F20; 20080 case 0x36059F25u: goto L_36059F25; 20081 case 0x36059F27u: goto L_36059F27; 20082 case 0x36059F2Cu: goto L_36059F2C; 20083 case 0x36059F2Du: goto L_36059F2D; 20084 case 0x36059F2Eu: goto L_36059F2E; 20085 case 0x36059F2Fu: goto L_36059F2F; 20086 case 0x36059F31u: goto L_36059F31; 20087 case 0x36059F32u: goto L_36059F32; 20088 case 0x36059F35u: goto L_36059F35; 20089 case 0x36059F3Bu: goto L_36059F3B; 20090 case 0x36059F3Du: goto L_36059F3D; 20091 case 0x36059F3Fu: goto L_36059F3F; 20092 case 0x36059F45u: goto L_36059F45; 20093 case 0x36059F48u: goto L_36059F48; 20094 case 0x36059F4Au: goto L_36059F4A; 20095 case 0x36059F4Cu: goto L_36059F4C; 20096 case 0x36059F4Du: goto L_36059F4D; 20097 case 0x36059F50u: goto L_36059F50; 20098 case 0x36059F55u: goto L_36059F55; 20099 case 0x36059F58u: goto L_36059F58; 20100 case 0x36059F5Fu: goto L_36059F5F; 20101 case 0x36059F62u: goto L_36059F62; 20102 case 0x36059F64u: goto L_36059F64; 20103 case 0x36059F66u: goto L_36059F66; 20104 case 0x36059F6Du: goto L_36059F6D; 20105 case 0x36059F70u: goto L_36059F70; 20106 case 0x36059F77u: goto L_36059F77; 20107 case 0x36059F7Au: goto L_36059F7A; 20108 case 0x36059F7Du: goto L_36059F7D; 20109 case 0x36059F82u: goto L_36059F82; 20110 case 0x36059F85u: goto L_36059F85; 20111 case 0x36059F87u: goto L_36059F87; 20112 case 0x36059F89u: goto L_36059F89; 20113 case 0x36059F8Bu: goto L_36059F8B; 20114 case 0x36059F8Du: goto L_36059F8D; 20115 case 0x36059F8Fu: goto L_36059F8F; 20116 case 0x36059F96u: goto L_36059F96; 20117 case 0x36059F99u: goto L_36059F99; 20118 case 0x36059F9Bu: goto L_36059F9B; 20119 case 0x36059FA0u: goto L_36059FA0; 20120 case 0x36059FA7u: goto L_36059FA7; 20121 case 0x36059FAAu: goto L_36059FAA; 20122 case 0x36059FADu: goto L_36059FAD; 20123 case 0x36059FAFu: goto L_36059FAF; 20124 case 0x36059FB6u: goto L_36059FB6; 20125 case 0x36059FB9u: goto L_36059FB9; 20126 case 0x36059FBCu: goto L_36059FBC; 20127 case 0x36059FBFu: goto L_36059FBF; 20128 case 0x36059FC2u: goto L_36059FC2; 20129 case 0x36059FC5u: goto L_36059FC5; 20130 case 0x36059FC7u: goto L_36059FC7; 20131 case 0x36059FC9u: goto L_36059FC9; 20132 case 0x36059FCCu: goto L_36059FCC; 20133 case 0x36059FCFu: goto L_36059FCF; 20134 case 0x36059FD2u: goto L_36059FD2; 20135 case 0x36059FD3u: goto L_36059FD3; 20136 case 0x36059FD6u: goto L_36059FD6; 20137 case 0x36059FDBu: goto L_36059FDB; 20138 case 0x36059FDDu: goto L_36059FDD; 20139 case 0x36059FE2u: goto L_36059FE2; 20140 case 0x36059FE3u: goto L_36059FE3; 20141 case 0x36059FE4u: goto L_36059FE4; 20142 case 0x36059FE5u: goto L_36059FE5; 20143 case 0x36059FE7u: goto L_36059FE7; 20144 case 0x36059FE8u: goto L_36059FE8; 20145 case 0x36059FEBu: goto L_36059FEB; 20146 case 0x36059FF1u: goto L_36059FF1; 20147 case 0x36059FF3u: goto L_36059FF3; 20148 case 0x36059FF5u: goto L_36059FF5; 20149 case 0x36059FFBu: goto L_36059FFB; 20150 case 0x36059FFEu: goto L_36059FFE; 20151 case 0x3605A000u: goto L_3605A000; 20152 case 0x3605A002u: goto L_3605A002; 20153 case 0x3605A003u: goto L_3605A003; 20154 case 0x3605A006u: goto L_3605A006; 20155 case 0x3605A00Bu: goto L_3605A00B; 20156 case 0x3605A00Eu: goto L_3605A00E; 20157 case 0x3605A015u: goto L_3605A015; 20158 case 0x3605A018u: goto L_3605A018; 20159 case 0x3605A01Au: goto L_3605A01A; 20160 case 0x3605A01Cu: goto L_3605A01C; 20161 case 0x3605A023u: goto L_3605A023; 20162 case 0x3605A026u: goto L_3605A026; 20163 case 0x3605A02Du: goto L_3605A02D; 20164 case 0x3605A030u: goto L_3605A030; 20165 case 0x3605A033u: goto L_3605A033; 20166 case 0x3605A038u: goto L_3605A038; 20167 case 0x3605A03Bu: goto L_3605A03B; 20168 case 0x3605A03Du: goto L_3605A03D; 20169 case 0x3605A03Fu: goto L_3605A03F; 20170 case 0x3605A041u: goto L_3605A041; 20171 case 0x3605A043u: goto L_3605A043; 20172 case 0x3605A045u: goto L_3605A045; 20173 case 0x3605A04Cu: goto L_3605A04C; 20174 case 0x3605A04Fu: goto L_3605A04F; 20175 case 0x3605A051u: goto L_3605A051; 20176 case 0x3605A056u: goto L_3605A056; 20177 case 0x3605A05Du: goto L_3605A05D; 20178 case 0x3605A060u: goto L_3605A060; 20179 case 0x3605A063u: goto L_3605A063; 20180 case 0x3605A065u: goto L_3605A065; 20181 case 0x3605A06Cu: goto L_3605A06C; 20182 case 0x3605A06Fu: goto L_3605A06F; 20183 case 0x3605A072u: goto L_3605A072; 20184 case 0x3605A075u: goto L_3605A075; 20185 case 0x3605A078u: goto L_3605A078; 20186 case 0x3605A07Bu: goto L_3605A07B; 20187 case 0x3605A07Du: goto L_3605A07D; 20188 case 0x3605A07Fu: goto L_3605A07F; 20189 case 0x3605A082u: goto L_3605A082; 20190 case 0x3605A085u: goto L_3605A085; 20191 case 0x3605A088u: goto L_3605A088; 20192 case 0x3605A089u: goto L_3605A089; 20193 case 0x3605A08Cu: goto L_3605A08C; 20194 case 0x3605A091u: goto L_3605A091; 20195 case 0x3605A093u: goto L_3605A093; 20196 case 0x3605A098u: goto L_3605A098; 20197 case 0x3605A099u: goto L_3605A099; 20198 case 0x3605A09Au: goto L_3605A09A; 20199 case 0x3605A09Bu: goto L_3605A09B; 20200 case 0x3605A09Du: goto L_3605A09D; 20201 case 0x3605A09Eu: goto L_3605A09E; 20202 case 0x3605A0A1u: goto L_3605A0A1; 20203 case 0x3605A0A7u: goto L_3605A0A7; 20204 case 0x3605A0A9u: goto L_3605A0A9; 20205 case 0x3605A0ABu: goto L_3605A0AB; 20206 case 0x3605A0B1u: goto L_3605A0B1; 20207 case 0x3605A0B4u: goto L_3605A0B4; 20208 case 0x3605A0B6u: goto L_3605A0B6; 20209 case 0x3605A0B8u: goto L_3605A0B8; 20210 case 0x3605A0B9u: goto L_3605A0B9; 20211 case 0x3605A0BCu: goto L_3605A0BC; 20212 case 0x3605A0C1u: goto L_3605A0C1; 20213 case 0x3605A0C4u: goto L_3605A0C4; 20214 case 0x3605A0CBu: goto L_3605A0CB; 20215 case 0x3605A0CEu: goto L_3605A0CE; 20216 case 0x3605A0D0u: goto L_3605A0D0; 20217 case 0x3605A0D2u: goto L_3605A0D2; 20218 case 0x3605A0D9u: goto L_3605A0D9; 20219 case 0x3605A0DCu: goto L_3605A0DC; 20220 case 0x3605A0E3u: goto L_3605A0E3; 20221 case 0x3605A0E6u: goto L_3605A0E6; 20222 case 0x3605A0E9u: goto L_3605A0E9; 20223 case 0x3605A0EBu: goto L_3605A0EB; 20224 case 0x3605A0EDu: goto L_3605A0ED; 20225 case 0x3605A0EFu: goto L_3605A0EF; 20226 case 0x3605A0F1u: goto L_3605A0F1; 20227 case 0x3605A0F4u: goto L_3605A0F4; 20228 case 0x3605A0F7u: goto L_3605A0F7; 20229 case 0x3605A0FCu: goto L_3605A0FC; 20230 case 0x3605A0FEu: goto L_3605A0FE; 20231 case 0x3605A101u: goto L_3605A101; 20232 case 0x3605A103u: goto L_3605A103; 20233 case 0x3605A105u: goto L_3605A105; 20234 case 0x3605A108u: goto L_3605A108; 20235 case 0x3605A10Bu: goto L_3605A10B; 20236 case 0x3605A10Eu: goto L_3605A10E; 20237 case 0x3605A111u: goto L_3605A111; 20238 case 0x3605A112u: goto L_3605A112; 20239 case 0x3605A117u: goto L_3605A117; 20240 case 0x3605A119u: goto L_3605A119; 20241 case 0x3605A11Eu: goto L_3605A11E; 20242 case 0x3605A11Fu: goto L_3605A11F; 20243 case 0x3605A120u: goto L_3605A120; 20244 case 0x3605A121u: goto L_3605A121; 20245 case 0x3605A123u: goto L_3605A123; 20246 case 0x3605A124u: goto L_3605A124; 20247 case 0x3605A127u: goto L_3605A127; 20248 case 0x3605A12Au: goto L_3605A12A; 20249 case 0x3605A12Cu: goto L_3605A12C; 20250 case 0x3605A12Eu: goto L_3605A12E; 20251 case 0x3605A130u: goto L_3605A130; 20252 case 0x3605A132u: goto L_3605A132; 20253 case 0x3605A134u: goto L_3605A134; 20254 case 0x3605A13Bu: goto L_3605A13B; 20255 case 0x3605A13Eu: goto L_3605A13E; 20256 case 0x3605A140u: goto L_3605A140; 20257 case 0x3605A145u: goto L_3605A145; 20258 case 0x3605A14Cu: goto L_3605A14C; 20259 case 0x3605A14Fu: goto L_3605A14F; 20260 case 0x3605A152u: goto L_3605A152; 20261 case 0x3605A154u: goto L_3605A154; 20262 case 0x3605A15Bu: goto L_3605A15B; 20263 case 0x3605A15Eu: goto L_3605A15E; 20264 case 0x3605A161u: goto L_3605A161; 20265 case 0x3605A164u: goto L_3605A164; 20266 case 0x3605A167u: goto L_3605A167; 20267 case 0x3605A16Au: goto L_3605A16A; 20268 case 0x3605A16Cu: goto L_3605A16C; 20269 case 0x3605A16Eu: goto L_3605A16E; 20270 case 0x3605A171u: goto L_3605A171; 20271 case 0x3605A174u: goto L_3605A174; 20272 case 0x3605A177u: goto L_3605A177; 20273 case 0x3605A17Au: goto L_3605A17A; 20274 case 0x3605A17Bu: goto L_3605A17B; 20275 case 0x3605A17Du: goto L_3605A17D; 20276 case 0x3605A183u: goto L_3605A183; 20277 case 0x3605A185u: goto L_3605A185; 20278 case 0x3605A18Bu: goto L_3605A18B; 20279 case 0x3605A191u: goto L_3605A191; 20280 case 0x3605A194u: goto L_3605A194; 20281 case 0x3605A196u: goto L_3605A196; 20282 case 0x3605A19Cu: goto L_3605A19C; 20283 case 0x3605A19Eu: goto L_3605A19E; 20284 case 0x3605A1A4u: goto L_3605A1A4; 20285 case 0x3605A1A6u: goto L_3605A1A6; 20286 case 0x3605A1ACu: goto L_3605A1AC; 20287 case 0x3605A1ADu: goto L_3605A1AD; 20288 case 0x3605A1B0u: goto L_3605A1B0; 20289 case 0x3605A1B5u: goto L_3605A1B5; 20290 case 0x3605A1B8u: goto L_3605A1B8; 20291 case 0x3605A1BFu: goto L_3605A1BF; 20292 case 0x3605A1C2u: goto L_3605A1C2; 20293 case 0x3605A1C4u: goto L_3605A1C4; 20294 case 0x3605A1C6u: goto L_3605A1C6; 20295 case 0x3605A1CDu: goto L_3605A1CD; 20296 case 0x3605A1D0u: goto L_3605A1D0; 20297 case 0x3605A1D7u: goto L_3605A1D7; 20298 case 0x3605A1DAu: goto L_3605A1DA; 20299 case 0x3605A1DDu: goto L_3605A1DD; 20300 case 0x3605A1DFu: goto L_3605A1DF; 20301 case 0x3605A1E1u: goto L_3605A1E1; 20302 case 0x3605A1E3u: goto L_3605A1E3; 20303 case 0x3605A1E5u: goto L_3605A1E5; 20304 case 0x3605A1E8u: goto L_3605A1E8; 20305 case 0x3605A1EBu: goto L_3605A1EB; 20306 case 0x3605A1F0u: goto L_3605A1F0; 20307 case 0x3605A1F2u: goto L_3605A1F2; 20308 case 0x3605A1F5u: goto L_3605A1F5; 20309 case 0x3605A1F7u: goto L_3605A1F7; 20310 case 0x3605A1F9u: goto L_3605A1F9; 20311 case 0x3605A1FCu: goto L_3605A1FC; 20312 case 0x3605A1FFu: goto L_3605A1FF; 20313 case 0x3605A202u: goto L_3605A202; 20314 case 0x3605A205u: goto L_3605A205; 20315 case 0x3605A20Au: goto L_3605A20A; 20316 case 0x3605A210u: goto L_3605A210; 20317 case 0x3605A212u: goto L_3605A212; 20318 case 0x3605A218u: goto L_3605A218; 20319 case 0x3605A21Eu: goto L_3605A21E; 20320 case 0x3605A221u: goto L_3605A221; 20321 case 0x3605A223u: goto L_3605A223; 20322 case 0x3605A229u: goto L_3605A229; 20323 case 0x3605A22Bu: goto L_3605A22B; 20324 case 0x3605A231u: goto L_3605A231; 20325 case 0x3605A233u: goto L_3605A233; 20326 case 0x3605A239u: goto L_3605A239; 20327 case 0x3605A23Au: goto L_3605A23A; 20328 case 0x3605A23Du: goto L_3605A23D; 20329 case 0x3605A242u: goto L_3605A242; 20330 case 0x3605A245u: goto L_3605A245; 20331 case 0x3605A24Cu: goto L_3605A24C; 20332 case 0x3605A24Fu: goto L_3605A24F; 20333 case 0x3605A251u: goto L_3605A251; 20334 case 0x3605A253u: goto L_3605A253; 20335 case 0x3605A25Au: goto L_3605A25A; 20336 case 0x3605A25Du: goto L_3605A25D; 20337 case 0x3605A264u: goto L_3605A264; 20338 case 0x3605A267u: goto L_3605A267; 20339 case 0x3605A26Au: goto L_3605A26A; 20340 case 0x3605A26Fu: goto L_3605A26F; 20341 case 0x3605A272u: goto L_3605A272; 20342 case 0x3605A275u: goto L_3605A275; 20343 case 0x3605A276u: goto L_3605A276; 20344 case 0x3605A27Bu: goto L_3605A27B; 20345 case 0x3605A27Eu: goto L_3605A27E; 20346 case 0x3605A280u: goto L_3605A280; 20347 case 0x3605A286u: goto L_3605A286; 20348 case 0x3605A28Cu: goto L_3605A28C; 20349 case 0x3605A28Eu: goto L_3605A28E; 20350 case 0x3605A294u: goto L_3605A294; 20351 case 0x3605A29Au: goto L_3605A29A; 20352 case 0x3605A29Du: goto L_3605A29D; 20353 case 0x3605A29Fu: goto L_3605A29F; 20354 case 0x3605A2A5u: goto L_3605A2A5; 20355 case 0x3605A2A7u: goto L_3605A2A7; 20356 case 0x3605A2ADu: goto L_3605A2AD; 20357 case 0x3605A2AFu: goto L_3605A2AF; 20358 case 0x3605A2B5u: goto L_3605A2B5; 20359 case 0x3605A2B6u: goto L_3605A2B6; 20360 case 0x3605A2B9u: goto L_3605A2B9; 20361 case 0x3605A2BEu: goto L_3605A2BE; 20362 case 0x3605A2C1u: goto L_3605A2C1; 20363 case 0x3605A2C3u: goto L_3605A2C3; 20364 case 0x3605A2CAu: goto L_3605A2CA; 20365 case 0x3605A2CDu: goto L_3605A2CD; 20366 case 0x3605A2CFu: goto L_3605A2CF; 20367 case 0x3605A2D1u: goto L_3605A2D1; 20368 case 0x3605A2D8u: goto L_3605A2D8; 20369 case 0x3605A2DBu: goto L_3605A2DB; 20370 case 0x3605A2DEu: goto L_3605A2DE; 20371 case 0x3605A2E0u: goto L_3605A2E0; 20372 case 0x3605A2E7u: goto L_3605A2E7; 20373 case 0x3605A2EAu: goto L_3605A2EA; 20374 case 0x3605A2EDu: goto L_3605A2ED; 20375 case 0x3605A2F0u: goto L_3605A2F0; 20376 case 0x3605A2F2u: goto L_3605A2F2; 20377 case 0x3605A2F3u: goto L_3605A2F3; 20378 case 0x3605A2F6u: goto L_3605A2F6; 20379 case 0x3605A2FBu: goto L_3605A2FB; 20380 case 0x3605A2FDu: goto L_3605A2FD; 20381 case 0x3605A300u: goto L_3605A300; 20382 case 0x3605A302u: goto L_3605A302; 20383 case 0x3605A304u: goto L_3605A304; 20384 case 0x3605A307u: goto L_3605A307; 20385 case 0x3605A30Au: goto L_3605A30A; 20386 case 0x3605A30Du: goto L_3605A30D; 20387 case 0x3605A30Eu: goto L_3605A30E; 20388 case 0x3605A311u: goto L_3605A311; 20389 case 0x3605A316u: goto L_3605A316; 20390 case 0x3605A318u: goto L_3605A318; 20391 case 0x3605A31Du: goto L_3605A31D; 20392 case 0x3605A31Eu: goto L_3605A31E; 20393 case 0x3605A31Fu: goto L_3605A31F; 20394 case 0x3605A320u: goto L_3605A320; 20395 case 0x3605A322u: goto L_3605A322; 20396 case 0x3605A323u: goto L_3605A323; 20397 case 0x3605A326u: goto L_3605A326; 20398 case 0x3605A32Bu: goto L_3605A32B; 20399 case 0x3605A32Du: goto L_3605A32D; 20400 case 0x3605A32Fu: goto L_3605A32F; 20401 case 0x3605A332u: goto L_3605A332; 20402 case 0x3605A337u: goto L_3605A337; 20403 case 0x3605A339u: goto L_3605A339; 20404 case 0x3605A33Eu: goto L_3605A33E; 20405 case 0x3605A340u: goto L_3605A340; 20406 case 0x3605A345u: goto L_3605A345; 20407 case 0x3605A348u: goto L_3605A348; 20408 case 0x3605A34Au: goto L_3605A34A; 20409 case 0x3605A351u: goto L_3605A351; 20410 case 0x3605A354u: goto L_3605A354; 20411 case 0x3605A357u: goto L_3605A357; 20412 case 0x3605A35Du: goto L_3605A35D; 20413 case 0x3605A35Fu: goto L_3605A35F; 20414 case 0x3605A365u: goto L_3605A365; 20415 case 0x3605A36Cu: goto L_3605A36C; 20416 case 0x3605A36Fu: goto L_3605A36F; 20417 case 0x3605A372u: goto L_3605A372; 20418 case 0x3605A378u: goto L_3605A378; 20419 case 0x3605A37Eu: goto L_3605A37E; 20420 case 0x3605A380u: goto L_3605A380; 20421 case 0x3605A383u: goto L_3605A383; 20422 case 0x3605A389u: goto L_3605A389; 20423 case 0x3605A38Cu: goto L_3605A38C; 20424 case 0x3605A38Eu: goto L_3605A38E; 20425 case 0x3605A391u: goto L_3605A391; 20426 case 0x3605A397u: goto L_3605A397; 20427 case 0x3605A399u: goto L_3605A399; 20428 case 0x3605A39Cu: goto L_3605A39C; 20429 case 0x3605A39Eu: goto L_3605A39E; 20430 case 0x3605A3A5u: goto L_3605A3A5; 20431 case 0x3605A3A8u: goto L_3605A3A8; 20432 case 0x3605A3AAu: goto L_3605A3AA; 20433 case 0x3605A3ACu: goto L_3605A3AC; 20434 case 0x3605A3AEu: goto L_3605A3AE; 20435 case 0x3605A3B5u: goto L_3605A3B5; 20436 case 0x3605A3B8u: goto L_3605A3B8; 20437 case 0x3605A3BAu: goto L_3605A3BA; 20438 case 0x3605A3C1u: goto L_3605A3C1; 20439 case 0x3605A3C4u: goto L_3605A3C4; 20440 case 0x3605A3C7u: goto L_3605A3C7; 20441 case 0x3605A3CAu: goto L_3605A3CA; 20442 case 0x3605A3CCu: goto L_3605A3CC; 20443 case 0x3605A3CDu: goto L_3605A3CD; 20444 case 0x3605A3D0u: goto L_3605A3D0; 20445 case 0x3605A3D7u: goto L_3605A3D7; 20446 case 0x3605A3DAu: goto L_3605A3DA; 20447 case 0x3605A3DDu: goto L_3605A3DD; 20448 case 0x3605A3E0u: goto L_3605A3E0; 20449 case 0x3605A3E1u: goto L_3605A3E1; 20450 case 0x3605A3E4u: goto L_3605A3E4; 20451 case 0x3605A3E6u: goto L_3605A3E6; 20452 case 0x3605A3E9u: goto L_3605A3E9; 20453 case 0x3605A3EBu: goto L_3605A3EB; 20454 case 0x3605A3EDu: goto L_3605A3ED; 20455 case 0x3605A3F0u: goto L_3605A3F0; 20456 case 0x3605A3F3u: goto L_3605A3F3; 20457 case 0x3605A3F6u: goto L_3605A3F6; 20458 case 0x3605A3F7u: goto L_3605A3F7; 20459 case 0x3605A3FAu: goto L_3605A3FA; 20460 case 0x3605A3FFu: goto L_3605A3FF; 20461 case 0x3605A401u: goto L_3605A401; 20462 case 0x3605A406u: goto L_3605A406; 20463 case 0x3605A409u: goto L_3605A409; 20464 case 0x3605A40Au: goto L_3605A40A; 20465 case 0x3605A40Fu: goto L_3605A40F; 20466 case 0x3605A411u: goto L_3605A411; 20467 case 0x3605A416u: goto L_3605A416; 20468 case 0x3605A41Bu: goto L_3605A41B; 20469 case 0x3605A420u: goto L_3605A420; 20470 case 0x3605A422u: goto L_3605A422; 20471 case 0x3605A427u: goto L_3605A427; 20472 case 0x3605A429u: goto L_3605A429; 20473 case 0x3605A42Eu: goto L_3605A42E; 20474 case 0x3605A430u: goto L_3605A430; 20475 case 0x3605A435u: goto L_3605A435; 20476 case 0x3605A436u: goto L_3605A436; 20477 case 0x3605A437u: goto L_3605A437; 20478 case 0x3605A438u: goto L_3605A438; 20479 case 0x3605A43Au: goto L_3605A43A; 20480 case 0x3605A43Bu: goto L_3605A43B; 20481 case 0x3605A43Eu: goto L_3605A43E; 20482 case 0x3605A441u: goto L_3605A441; 20483 case 0x3605A443u: goto L_3605A443; 20484 case 0x3605A445u: goto L_3605A445; 20485 case 0x3605A447u: goto L_3605A447; 20486 case 0x3605A44Eu: goto L_3605A44E; 20487 case 0x3605A451u: goto L_3605A451; 20488 case 0x3605A453u: goto L_3605A453; 20489 case 0x3605A45Au: goto L_3605A45A; 20490 case 0x3605A45Du: goto L_3605A45D; 20491 case 0x3605A460u: goto L_3605A460; 20492 case 0x3605A463u: goto L_3605A463; 20493 case 0x3605A465u: goto L_3605A465; 20494 case 0x3605A466u: goto L_3605A466; 20495 case 0x3605A469u: goto L_3605A469; 20496 case 0x3605A470u: goto L_3605A470; 20497 case 0x3605A473u: goto L_3605A473; 20498 case 0x3605A476u: goto L_3605A476; 20499 case 0x3605A479u: goto L_3605A479; 20500 case 0x3605A47Au: goto L_3605A47A; 20501 case 0x3605A47Du: goto L_3605A47D; 20502 case 0x3605A47Fu: goto L_3605A47F; 20503 case 0x3605A482u: goto L_3605A482; 20504 case 0x3605A484u: goto L_3605A484; 20505 case 0x3605A486u: goto L_3605A486; 20506 case 0x3605A489u: goto L_3605A489; 20507 case 0x3605A48Cu: goto L_3605A48C; 20508 case 0x3605A48Eu: goto L_3605A48E; 20509 case 0x3605A48Fu: goto L_3605A48F; 20510 case 0x3605A492u: goto L_3605A492; 20511 case 0x3605A497u: goto L_3605A497; 20512 case 0x3605A499u: goto L_3605A499; 20513 case 0x3605A49Eu: goto L_3605A49E; 20514 case 0x3605A49Fu: goto L_3605A49F; 20515 case 0x3605A4A0u: goto L_3605A4A0; 20516 case 0x3605A4A1u: goto L_3605A4A1; 20517 case 0x3605A4A3u: goto L_3605A4A3; 20518 case 0x3605A4A4u: goto L_3605A4A4; 20519 case 0x3605A4A7u: goto L_3605A4A7; 20520 case 0x3605A4AAu: goto L_3605A4AA; 20521 case 0x3605A4ACu: goto L_3605A4AC; 20522 case 0x3605A4AEu: goto L_3605A4AE; 20523 case 0x3605A4B0u: goto L_3605A4B0; 20524 case 0x3605A4B7u: goto L_3605A4B7; 20525 case 0x3605A4BAu: goto L_3605A4BA; 20526 case 0x3605A4BCu: goto L_3605A4BC; 20527 case 0x3605A4C3u: goto L_3605A4C3; 20528 case 0x3605A4C6u: goto L_3605A4C6; 20529 case 0x3605A4C9u: goto L_3605A4C9; 20530 case 0x3605A4CCu: goto L_3605A4CC; 20531 case 0x3605A4CEu: goto L_3605A4CE; 20532 case 0x3605A4CFu: goto L_3605A4CF; 20533 case 0x3605A4D2u: goto L_3605A4D2; 20534 case 0x3605A4D9u: goto L_3605A4D9; 20535 case 0x3605A4DCu: goto L_3605A4DC; 20536 case 0x3605A4DFu: goto L_3605A4DF; 20537 case 0x3605A4E2u: goto L_3605A4E2; 20538 case 0x3605A4E3u: goto L_3605A4E3; 20539 case 0x3605A4E6u: goto L_3605A4E6; 20540 case 0x3605A4E8u: goto L_3605A4E8; 20541 case 0x3605A4EBu: goto L_3605A4EB; 20542 case 0x3605A4EDu: goto L_3605A4ED; 20543 case 0x3605A4EFu: goto L_3605A4EF; 20544 case 0x3605A4F2u: goto L_3605A4F2; 20545 case 0x3605A4F5u: goto L_3605A4F5; 20546 case 0x3605A4F8u: goto L_3605A4F8; 20547 case 0x3605A4F9u: goto L_3605A4F9; 20548 case 0x3605A4FCu: goto L_3605A4FC; 20549 case 0x3605A501u: goto L_3605A501; 20550 case 0x3605A503u: goto L_3605A503; 20551 case 0x3605A508u: goto L_3605A508; 20552 case 0x3605A509u: goto L_3605A509; 20553 case 0x3605A50Au: goto L_3605A50A; 20554 case 0x3605A50Bu: goto L_3605A50B; 20555 case 0x3605A50Du: goto L_3605A50D; 20556 case 0x3605A50Eu: goto L_3605A50E; 20557 case 0x3605A511u: goto L_3605A511; 20558 case 0x3605A514u: goto L_3605A514; 20559 case 0x3605A516u: goto L_3605A516; 20560 case 0x3605A518u: goto L_3605A518; 20561 case 0x3605A51Au: goto L_3605A51A; 20562 case 0x3605A521u: goto L_3605A521; 20563 case 0x3605A524u: goto L_3605A524; 20564 case 0x3605A526u: goto L_3605A526; 20565 case 0x3605A52Du: goto L_3605A52D; 20566 case 0x3605A530u: goto L_3605A530; 20567 case 0x3605A533u: goto L_3605A533; 20568 case 0x3605A536u: goto L_3605A536; 20569 case 0x3605A538u: goto L_3605A538; 20570 case 0x3605A539u: goto L_3605A539; 20571 case 0x3605A53Cu: goto L_3605A53C; 20572 case 0x3605A543u: goto L_3605A543; 20573 case 0x3605A546u: goto L_3605A546; 20574 case 0x3605A549u: goto L_3605A549; 20575 case 0x3605A54Cu: goto L_3605A54C; 20576 case 0x3605A54Du: goto L_3605A54D; 20577 case 0x3605A550u: goto L_3605A550; 20578 case 0x3605A552u: goto L_3605A552; 20579 case 0x3605A555u: goto L_3605A555; 20580 case 0x3605A557u: goto L_3605A557; 20581 case 0x3605A559u: goto L_3605A559; 20582 case 0x3605A55Cu: goto L_3605A55C; 20583 case 0x3605A55Fu: goto L_3605A55F; 20584 case 0x3605A562u: goto L_3605A562; 20585 case 0x3605A563u: goto L_3605A563; 20586 case 0x3605A566u: goto L_3605A566; 20587 case 0x3605A56Bu: goto L_3605A56B; 20588 case 0x3605A56Du: goto L_3605A56D; 20589 case 0x3605A572u: goto L_3605A572; 20590 case 0x3605A573u: goto L_3605A573; 20591 case 0x3605A574u: goto L_3605A574; 20592 case 0x3605A575u: goto L_3605A575; 20593 case 0x3605A577u: goto L_3605A577; 20594 case 0x3605A578u: goto L_3605A578; 20595 case 0x3605A57Bu: goto L_3605A57B; 20596 case 0x3605A57Eu: goto L_3605A57E; 20597 case 0x3605A580u: goto L_3605A580; 20598 case 0x3605A582u: goto L_3605A582; 20599 case 0x3605A584u: goto L_3605A584; 20600 case 0x3605A58Bu: goto L_3605A58B; 20601 case 0x3605A58Eu: goto L_3605A58E; 20602 case 0x3605A590u: goto L_3605A590; 20603 case 0x3605A597u: goto L_3605A597; 20604 case 0x3605A59Au: goto L_3605A59A; 20605 case 0x3605A59Du: goto L_3605A59D; 20606 case 0x3605A5A0u: goto L_3605A5A0; 20607 case 0x3605A5A2u: goto L_3605A5A2; 20608 case 0x3605A5A3u: goto L_3605A5A3; 20609 case 0x3605A5A6u: goto L_3605A5A6; 20610 case 0x3605A5ADu: goto L_3605A5AD; 20611 case 0x3605A5B0u: goto L_3605A5B0; 20612 case 0x3605A5B3u: goto L_3605A5B3; 20613 case 0x3605A5B6u: goto L_3605A5B6; 20614 case 0x3605A5B7u: goto L_3605A5B7; 20615 case 0x3605A5BAu: goto L_3605A5BA; 20616 case 0x3605A5BCu: goto L_3605A5BC; 20617 case 0x3605A5BFu: goto L_3605A5BF; 20618 case 0x3605A5C1u: goto L_3605A5C1; 20619 case 0x3605A5C3u: goto L_3605A5C3; 20620 case 0x3605A5C6u: goto L_3605A5C6; 20621 case 0x3605A5C9u: goto L_3605A5C9; 20622 case 0x3605A5CCu: goto L_3605A5CC; 20623 case 0x3605A5CFu: goto L_3605A5CF; 20624 case 0x3605A5D0u: goto L_3605A5D0; 20625 case 0x3605A5D5u: goto L_3605A5D5; 20626 case 0x3605A5D8u: goto L_3605A5D8; 20627 case 0x3605A5DBu: goto L_3605A5DB; 20628 case 0x3605A5DDu: goto L_3605A5DD; 20629 case 0x3605A5E0u: goto L_3605A5E0; 20630 case 0x3605A5E6u: goto L_3605A5E6; 20631 case 0x3605A5E8u: goto L_3605A5E8; 20632 case 0x3605A5EEu: goto L_3605A5EE; 20633 case 0x3605A5F0u: goto L_3605A5F0; 20634 case 0x3605A5F3u: goto L_3605A5F3; 20635 case 0x3605A5F4u: goto L_3605A5F4; 20636 case 0x3605A5FAu: goto L_3605A5FA; 20637 case 0x3605A5FBu: goto L_3605A5FB; 20638 case 0x3605A5FCu: goto L_3605A5FC; 20639 case 0x3605A601u: goto L_3605A601; 20640 case 0x3605A602u: goto L_3605A602; 20641 case 0x3605A603u: goto L_3605A603; 20642 case 0x3605A604u: goto L_3605A604; 20643 case 0x3605A606u: goto L_3605A606; 20644 case 0x3605A607u: goto L_3605A607; 20645 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 20646 } 20647 RECOMP_REGS_OUT(); 20648 } 20649 20650 void sub_3605A0E9(void) { 20651 int _fpu_cmp = 0; 20652 uint32_t _cf = 0; 20653 int _df = 1; 20654 uint32_t _flag_k = FK_NONE; 20655 uint32_t _flag_a = 0, _flag_b = 0; 20656 uint32_t _itail_tgt = 0; 20657 RECOMP_REGS_LOCALS 20658 RECOMP_ENTER(0x3605A0E9u); 20659 20660 L_3605A0E9: 20661 PUSH32(esp, 1); /* 0x3605A0E9: push 1 */ 20662 PUSH32(esp, 0x64u); /* 0x3605A0EB: push 0x64 */ 20663 PUSH32(esp, 0); /* 0x3605A0ED: push 0 */ 20664 PUSH32(esp, 0); /* 0x3605A0EF: push 0 */ 20665 MEM32(ecx + 0x8) = edx; /* 0x3605A0F1: mov dword ptr [ecx + 8], edx */ 20666 edx = MEM32(ebp + (-0x24)); /* 0x3605A0F4: mov edx, dword ptr [ebp - 0x24] */ 20667 PUSH32(esp, 0x3F800000u); /* 0x3605A0F7: push 0x3f800000 */ 20668 PUSH32(esp, 0); /* 0x3605A0FC: push 0 */ 20669 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 20670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20671 esp = esp - 0xCu; /* 0x3605A0FE: sub esp, 0xc */ 20672 _flag_k = FK_CMP; 20673 ecx = esp; /* 0x3605A101: mov ecx, esp */ 20674 MEM32(ecx) = edx; /* 0x3605A103: mov dword ptr [ecx], edx */ 20675 edx = MEM32(ebp + (-0x20)); /* 0x3605A105: mov edx, dword ptr [ebp - 0x20] */ 20676 MEM32(ecx + 0x4) = edx; /* 0x3605A108: mov dword ptr [ecx + 4], edx */ 20677 edx = MEM32(ebp + (-0x1C)); /* 0x3605A10B: mov edx, dword ptr [ebp - 0x1c] */ 20678 MEM32(ecx + 0x8) = edx; /* 0x3605A10E: mov dword ptr [ecx + 8], edx */ 20679 PUSH32(esp, eax); /* 0x3605A111: push eax */ 20680 RECOMP_ICALL(0x3601C590u); /* 0x3605A112: call 0x3601c590 */ /* not lifted */ 20681 RECOMP_FLAGS_IN(); 20682 ecx = eax; /* 0x3605A117: mov ecx, eax */ 20683 RECOMP_ICALL(0x3601CBF0u); /* 0x3605A119: call 0x3601cbf0 */ /* not lifted */ 20684 RECOMP_FLAGS_IN(); 20685 edi = POP32_VAL(esp); /* 0x3605A11E: pop edi */ 20686 esi = POP32_VAL(esp); /* 0x3605A11F: pop esi */ 20687 ebx = POP32_VAL(esp); /* 0x3605A120: pop ebx */ 20688 esp = ebp; /* 0x3605A121: mov esp, ebp */ 20689 ebp = POP32_VAL(esp); /* 0x3605A123: pop ebp */ 20690 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A124: ret 0xc */ 20691 RECOMP_REGS_OUT(); 20692 } 20693 20694 void sub_3605A111(void) { 20695 int _fpu_cmp = 0; 20696 uint32_t _cf = 0; 20697 int _df = 1; 20698 uint32_t _flag_k = FK_NONE; 20699 uint32_t _flag_a = 0, _flag_b = 0; 20700 uint32_t _itail_tgt = 0; 20701 RECOMP_REGS_LOCALS 20702 RECOMP_ENTER(0x3605A111u); 20703 20704 L_3605A111: 20705 PUSH32(esp, eax); /* 0x3605A111: push eax */ 20706 RECOMP_ICALL(0x3601C590u); /* 0x3605A112: call 0x3601c590 */ /* not lifted */ 20707 RECOMP_FLAGS_IN(); 20708 ecx = eax; /* 0x3605A117: mov ecx, eax */ 20709 RECOMP_ICALL(0x3601CBF0u); /* 0x3605A119: call 0x3601cbf0 */ /* not lifted */ 20710 RECOMP_FLAGS_IN(); 20711 edi = POP32_VAL(esp); /* 0x3605A11E: pop edi */ 20712 esi = POP32_VAL(esp); /* 0x3605A11F: pop esi */ 20713 ebx = POP32_VAL(esp); /* 0x3605A120: pop ebx */ 20714 esp = ebp; /* 0x3605A121: mov esp, ebp */ 20715 ebp = POP32_VAL(esp); /* 0x3605A123: pop ebp */ 20716 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A124: ret 0xc */ 20717 RECOMP_REGS_OUT(); 20718 } 20719 20720 void sub_3605A112(void) { 20721 int _fpu_cmp = 0; 20722 uint32_t _cf = 0; 20723 int _df = 1; 20724 uint32_t _flag_k = FK_NONE; 20725 uint32_t _flag_a = 0, _flag_b = 0; 20726 uint32_t _itail_tgt = 0; 20727 RECOMP_REGS_LOCALS 20728 RECOMP_ENTER(0x3605A112u); 20729 20730 L_3605A112: 20731 RECOMP_ICALL(0x3601C590u); /* 0x3605A112: call 0x3601c590 */ /* not lifted */ 20732 RECOMP_FLAGS_IN(); 20733 ecx = eax; /* 0x3605A117: mov ecx, eax */ 20734 RECOMP_ICALL(0x3601CBF0u); /* 0x3605A119: call 0x3601cbf0 */ /* not lifted */ 20735 RECOMP_FLAGS_IN(); 20736 edi = POP32_VAL(esp); /* 0x3605A11E: pop edi */ 20737 esi = POP32_VAL(esp); /* 0x3605A11F: pop esi */ 20738 ebx = POP32_VAL(esp); /* 0x3605A120: pop ebx */ 20739 esp = ebp; /* 0x3605A121: mov esp, ebp */ 20740 ebp = POP32_VAL(esp); /* 0x3605A123: pop ebp */ 20741 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A124: ret 0xc */ 20742 RECOMP_REGS_OUT(); 20743 } 20744 20745 void sub_3605A1DD(void) { 20746 int _fpu_cmp = 0; 20747 uint32_t _cf = 0; 20748 int _df = 1; 20749 uint32_t _flag_k = FK_NONE; 20750 uint32_t _flag_a = 0, _flag_b = 0; 20751 uint32_t _itail_tgt = 0; 20752 RECOMP_REGS_LOCALS 20753 RECOMP_ENTER(0x3605A1DDu); 20754 20755 goto L_3605A1DD; 20756 L_3605A111: 20757 PUSH32(esp, eax); /* 0x3605A111: push eax */ 20758 RECOMP_ICALL(0x3601C590u); /* 0x3605A112: call 0x3601c590 */ /* not lifted */ 20759 RECOMP_FLAGS_IN(); 20760 ecx = eax; /* 0x3605A117: mov ecx, eax */ 20761 RECOMP_ICALL(0x3601CBF0u); /* 0x3605A119: call 0x3601cbf0 */ /* not lifted */ 20762 RECOMP_FLAGS_IN(); 20763 edi = POP32_VAL(esp); /* 0x3605A11E: pop edi */ 20764 esi = POP32_VAL(esp); /* 0x3605A11F: pop esi */ 20765 ebx = POP32_VAL(esp); /* 0x3605A120: pop ebx */ 20766 esp = ebp; /* 0x3605A121: mov esp, ebp */ 20767 ebp = POP32_VAL(esp); /* 0x3605A123: pop ebp */ 20768 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A124: ret 0xc */ 20769 L_3605A1DD: 20770 PUSH32(esp, 1); /* 0x3605A1DD: push 1 */ 20771 PUSH32(esp, 0x64u); /* 0x3605A1DF: push 0x64 */ 20772 PUSH32(esp, 0); /* 0x3605A1E1: push 0 */ 20773 PUSH32(esp, 0); /* 0x3605A1E3: push 0 */ 20774 MEM32(edx + 0x8) = ecx; /* 0x3605A1E5: mov dword ptr [edx + 8], ecx */ 20775 ecx = MEM32(ebp + (-0x24)); /* 0x3605A1E8: mov ecx, dword ptr [ebp - 0x24] */ 20776 PUSH32(esp, 0x3F800000u); /* 0x3605A1EB: push 0x3f800000 */ 20777 PUSH32(esp, 0); /* 0x3605A1F0: push 0 */ 20778 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 20779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20780 esp = esp - 0xCu; /* 0x3605A1F2: sub esp, 0xc */ 20781 _flag_k = FK_CMP; 20782 edx = esp; /* 0x3605A1F5: mov edx, esp */ 20783 MEM32(edx) = ecx; /* 0x3605A1F7: mov dword ptr [edx], ecx */ 20784 ecx = MEM32(ebp + (-0x20)); /* 0x3605A1F9: mov ecx, dword ptr [ebp - 0x20] */ 20785 MEM32(edx + 0x4) = ecx; /* 0x3605A1FC: mov dword ptr [edx + 4], ecx */ 20786 ecx = MEM32(ebp + (-0x1C)); /* 0x3605A1FF: mov ecx, dword ptr [ebp - 0x1c] */ 20787 MEM32(edx + 0x8) = ecx; /* 0x3605A202: mov dword ptr [edx + 8], ecx */ 20788 RECOMP_BACKEDGE(); 20789 goto L_3605A111; /* 0x3605A205: jmp 0x3605a111 */ 20790 { RECOMP_REGS_OUT(); return; } /* end of function */ 20791 RECOMP_REGS_OUT(); 20792 } 20793 20794 void sub_3605A5F4(void) { 20795 int _fpu_cmp = 0; 20796 uint32_t _cf = 0; 20797 int _df = 1; 20798 uint32_t _flag_k = FK_NONE; 20799 uint32_t _flag_a = 0, _flag_b = 0; 20800 uint32_t _itail_tgt = 0; 20801 RECOMP_REGS_LOCALS 20802 RECOMP_ENTER(0x3605A5F4u); 20803 20804 L_3605A5F4: 20805 ecx = MEM32(ecx + 0x16C); /* 0x3605A5F4: mov ecx, dword ptr [ecx + 0x16c] */ 20806 PUSH32(esp, eax); /* 0x3605A5FA: push eax */ 20807 PUSH32(esp, edi); /* 0x3605A5FB: push edi */ 20808 RECOMP_ICALL(0x3607A260u); /* 0x3605A5FC: call 0x3607a260 */ /* not lifted */ 20809 RECOMP_FLAGS_IN(); 20810 edi = POP32_VAL(esp); /* 0x3605A601: pop edi */ 20811 esi = POP32_VAL(esp); /* 0x3605A602: pop esi */ 20812 ebx = POP32_VAL(esp); /* 0x3605A603: pop ebx */ 20813 esp = ebp; /* 0x3605A604: mov esp, ebp */ 20814 ebp = POP32_VAL(esp); /* 0x3605A606: pop ebp */ 20815 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3605A607: ret 0xc */ 20816 RECOMP_REGS_OUT(); 20817 } 20818 20819 void sub_3605A730(void) { 20820 int _fpu_cmp = 0; 20821 uint32_t _cf = 0; 20822 int _df = 1; 20823 uint32_t _flag_k = FK_NONE; 20824 uint32_t _flag_a = 0, _flag_b = 0; 20825 uint32_t _itail_tgt = 0; 20826 RECOMP_REGS_LOCALS 20827 RECOMP_ENTER(0x3605A730u); 20828 20829 L_3605A730: 20830 PUSH32(esp, esi); /* 0x3605A730: push esi */ 20831 esi = ecx; /* 0x3605A731: mov esi, ecx */ 20832 eax = MEM32(esi + 0x28); /* 0x3605A733: mov eax, dword ptr [esi + 0x28] */ 20833 /* test eax, eax */ /* 0x3605A736: test eax, eax */ 20834 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20835 _cf = 0; 20836 _flag_k = FK_TEST; 20837 PUSH32(esp, edi); /* 0x3605A738: push edi */ 20838 edi = MEM32(esi + 0x40); /* 0x3605A739: mov edi, dword ptr [esi + 0x40] */ 20839 if (TEST_NZ(_flag_a, _flag_b)) goto L_3605A761; /* 0x3605A73C: jne 0x3605a761 */ 20840 L_3605A73E: 20841 RECOMP_ICALL(0x360F7B00u); /* 0x3605A73E: call 0x360f7b00 */ /* not lifted */ 20842 RECOMP_FLAGS_IN(); 20843 PUSH32(esp, 0); /* 0x3605A743: push 0 */ 20844 PUSH32(esp, edi); /* 0x3605A745: push edi */ 20845 PUSH32(esp, 0x80E8u); /* 0x3605A746: push 0x80e8 */ 20846 MEM32(eax + 0x54) = 0x20u; /* 0x3605A74B: mov dword ptr [eax + 0x54], 0x20 */ 20847 RECOMP_ICALL(0x360F7B00u); /* 0x3605A752: call 0x360f7b00 */ /* not lifted */ 20848 RECOMP_FLAGS_IN(); 20849 ecx = eax; /* 0x3605A757: mov ecx, eax */ 20850 RECOMP_ICALL(0x360F81E0u); /* 0x3605A759: call 0x360f81e0 */ /* not lifted */ 20851 RECOMP_FLAGS_IN(); 20852 MEM32(esi + 0x28) = eax; /* 0x3605A75E: mov dword ptr [esi + 0x28], eax */ 20853 L_3605A761: 20854 eax = MEM32(esi + 0x2C); /* 0x3605A761: mov eax, dword ptr [esi + 0x2c] */ 20855 /* test eax, eax */ /* 0x3605A764: test eax, eax */ 20856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20857 _cf = 0; 20858 _flag_k = FK_TEST; 20859 if (TEST_NZ(_flag_a, _flag_b)) goto L_3605A78B; /* 0x3605A766: jne 0x3605a78b */ 20860 L_3605A768: 20861 RECOMP_ICALL(0x360F7B00u); /* 0x3605A768: call 0x360f7b00 */ /* not lifted */ 20862 RECOMP_FLAGS_IN(); 20863 PUSH32(esp, 0); /* 0x3605A76D: push 0 */ 20864 PUSH32(esp, edi); /* 0x3605A76F: push edi */ 20865 PUSH32(esp, 0x9088u); /* 0x3605A770: push 0x9088 */ 20866 MEM32(eax + 0x54) = 0x20u; /* 0x3605A775: mov dword ptr [eax + 0x54], 0x20 */ 20867 RECOMP_ICALL(0x360F7B00u); /* 0x3605A77C: call 0x360f7b00 */ /* not lifted */ 20868 RECOMP_FLAGS_IN(); 20869 ecx = eax; /* 0x3605A781: mov ecx, eax */ 20870 RECOMP_ICALL(0x360F81E0u); /* 0x3605A783: call 0x360f81e0 */ /* not lifted */ 20871 RECOMP_FLAGS_IN(); 20872 MEM32(esi + 0x2C) = eax; /* 0x3605A788: mov dword ptr [esi + 0x2c], eax */ 20873 L_3605A78B: 20874 edi = POP32_VAL(esp); /* 0x3605A78B: pop edi */ 20875 esi = POP32_VAL(esp); /* 0x3605A78C: pop esi */ 20876 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3605A78D: ret */ 20877 RECOMP_REGS_OUT(); 20878 } 20879 20880 void sub_3605A790(void) { 20881 int _fpu_cmp = 0; 20882 uint32_t _cf = 0; 20883 int _df = 1; 20884 uint32_t _flag_k = FK_NONE; 20885 uint32_t _flag_a = 0, _flag_b = 0; 20886 uint32_t _itail_tgt = 0; 20887 RECOMP_REGS_LOCALS 20888 RECOMP_ENTER(0x3605A790u); 20889 20890 L_3605A790: 20891 PUSH32(esp, ebp); /* 0x3605A790: push ebp */ 20892 ebp = esp; /* 0x3605A791: mov ebp, esp */ 20893 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 20894 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20895 esp = esp - 8; /* 0x3605A793: sub esp, 8 */ 20896 _flag_k = FK_CMP; 20897 PUSH32(esp, esi); /* 0x3605A796: push esi */ 20898 esi = ecx; /* 0x3605A797: mov esi, ecx */ 20899 eax = MEM32(esi + 0x40); /* 0x3605A799: mov eax, dword ptr [esi + 0x40] */ 20900 PUSH32(esp, edi); /* 0x3605A79C: push edi */ 20901 ecx = eax + 0xE4; /* 0x3605A79D: lea ecx, [eax + 0xe4] */ 20902 eax = MEM32(ecx); /* 0x3605A7A3: mov eax, dword ptr [ecx] */ 20903 PUSH32(esp, 3); /* 0x3605A7A5: push 3 */ 20904 PUSH32(esp, 0x168u); /* 0x3605A7A7: push 0x168 */ 20905 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3605A7AC: call dword ptr [eax + 4] */ 20906 RECOMP_FLAGS_IN(); 20907 edi = eax; /* 0x3605A7AF: mov edi, eax */ 20908 /* cmp edi, 1 */ /* 0x3605A7B1: cmp edi, 1 */ 20909 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 20910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20911 _flag_k = FK_CMP; 20912 MEM32(ebp + (-0x4)) = edi; /* 0x3605A7B4: mov dword ptr [ebp - 4], edi */ 20913 if (CMP_GE(_flag_a, _flag_b)) goto L_3605A7C1; /* 0x3605A7B7: jge 0x3605a7c1 */ 20914 L_3605A7B9: 20915 edi = 1; /* 0x3605A7B9: mov edi, 1 */ 20916 MEM32(ebp + (-0x4)) = edi; /* 0x3605A7BE: mov dword ptr [ebp - 4], edi */ 20917 L_3605A7C1: 20918 eax = MEM32(esi + 0x40); /* 0x3605A7C1: mov eax, dword ptr [esi + 0x40] */ 20919 edx = MEM32(eax + 0xE4); /* 0x3605A7C4: mov edx, dword ptr [eax + 0xe4] */ 20920 ecx = eax + 0xE4; /* 0x3605A7CA: lea ecx, [eax + 0xe4] */ 20921 PUSH32(esp, 2); /* 0x3605A7D0: push 2 */ 20922 PUSH32(esp, 0x1A5u); /* 0x3605A7D2: push 0x1a5 */ 20923 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3605A7D7: call dword ptr [edx + 4] */ 20924 RECOMP_FLAGS_IN(); 20925 eax = (uint32_t)((int32_t)eax * (int32_t)edi); /* 0x3605A7DA: imul eax, edi */ 20926 MEM32(ebp + (-0x8)) = eax; /* 0x3605A7DD: mov dword ptr [ebp - 8], eax */ 20927 PUSH32(esp, ecx); /* 0x3605A7E0: push ecx */ 20928 ecx = MEM32(esi + 0x40); /* 0x3605A7E1: mov ecx, dword ptr [esi + 0x40] */ 20929 fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x3605A7E4: fild dword ptr [ebp - 8] */ 20930 _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x3605A7E7: fmul dword ptr [0x36170894] */ 20931 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x3605A7ED: fstp dword ptr [esi + 0x30] */ 20932 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x3605A7F0: fild dword ptr [ebp - 4] */ 20933 _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x3605A7F3: fmul dword ptr [0x36170894] */ 20934 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3605A7F9: fstp dword ptr [esp] */ 20935 RECOMP_ICALL(MEM32(0x3616FC80)); /* 0x3605A7FC: call dword ptr [0x3616fc80] */ 20936 RECOMP_FLAGS_IN(); 20937 edi = POP32_VAL(esp); /* 0x3605A802: pop edi */ 20938 esi = POP32_VAL(esp); /* 0x3605A803: pop esi */ 20939 esp = ebp; /* 0x3605A804: mov esp, ebp */ 20940 ebp = POP32_VAL(esp); /* 0x3605A806: pop ebp */ 20941 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3605A807: ret */ 20942 RECOMP_REGS_OUT(); 20943 } 20944 20945 void sub_3605A810(void) { 20946 int _fpu_cmp = 0; 20947 uint32_t _cf = 0; 20948 int _df = 1; 20949 uint32_t _flag_k = FK_NONE; 20950 uint32_t _flag_a = 0, _flag_b = 0; 20951 uint32_t _itail_tgt = 0; 20952 RECOMP_REGS_LOCALS 20953 RECOMP_ENTER(0x3605A810u); 20954 20955 L_3605A810: 20956 PUSH32(esp, ebp); /* 0x3605A810: push ebp */ 20957 ebp = esp; /* 0x3605A811: mov ebp, esp */ 20958 PUSH32(esp, ebx); /* 0x3605A813: push ebx */ 20959 ebx = MEM32(ebp + 0x8); /* 0x3605A814: mov ebx, dword ptr [ebp + 8] */ 20960 PUSH32(esp, esi); /* 0x3605A817: push esi */ 20961 PUSH32(esp, edi); /* 0x3605A818: push edi */ 20962 edi = ecx; /* 0x3605A819: mov edi, ecx */ 20963 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20964 esi = 0; /* 0x3605A81B: xor esi, esi */ 20965 _cf = 0; 20966 _flag_k = FK_TEST; 20967 L_3605A81D: 20968 eax = 1; /* 0x3605A81D: mov eax, 1 */ 20969 ecx = esi; /* 0x3605A822: mov ecx, esi */ 20970 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((eax) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x3605A824: shl eax, cl */ 20971 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((eax << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20972 eax = eax << ((LO8(ecx)) & 31); /* 0x3605A824: shl eax, cl */ 20973 /* test ebx, eax */ /* 0x3605A826: test ebx, eax */ 20974 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 20975 _cf = 0; 20976 _flag_k = FK_TEST; 20977 if (TEST_Z(_flag_a, _flag_b)) goto L_3605A84D; /* 0x3605A828: je 0x3605a84d */ 20978 L_3605A82A: 20979 SET_LO8(ecx, MEM8(ebp + 0xC)); /* 0x3605A82A: mov cl, byte ptr [ebp + 0xc] */ 20980 /* test LO8(ecx), LO8(ecx) */ /* 0x3605A82D: test cl, cl */ 20981 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 20982 _cf = 0; 20983 _flag_k = FK_NARROW(FK_TEST, 24); 20984 if (TEST_Z(_flag_a, _flag_b)) goto L_3605A840; /* 0x3605A82F: je 0x3605a840 */ 20985 L_3605A831: 20986 PUSH32(esp, eax); /* 0x3605A831: push eax */ 20987 ecx = edi; /* 0x3605A832: mov ecx, edi */ 20988 MEM8(esi + edi + 0x44) = (uint8_t)(0); /* 0x3605A834: mov byte ptr [esi + edi + 0x44], 0 */ 20989 RECOMP_ICALL(0x36059930u); /* 0x3605A839: call 0x36059930 */ /* not lifted */ 20990 RECOMP_FLAGS_IN(); 20991 goto L_3605A84D; /* 0x3605A83E: jmp 0x3605a84d */ 20992 L_3605A840: 20993 PUSH32(esp, eax); /* 0x3605A840: push eax */ 20994 ecx = edi; /* 0x3605A841: mov ecx, edi */ 20995 MEM8(esi + edi + 0x44) = (uint8_t)(1); /* 0x3605A843: mov byte ptr [esi + edi + 0x44], 1 */ 20996 RECOMP_ICALL(0x36059A80u); /* 0x3605A848: call 0x36059a80 */ /* not lifted */ 20997 RECOMP_FLAGS_IN(); 20998 L_3605A84D: 20999 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 21000 esi = esi + 1; /* 0x3605A84D: inc esi */ 21001 _flag_k = FK_INC; 21002 /* cmp esi, 0x20u */ /* 0x3605A84E: cmp esi, 0x20 */ 21003 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u); 21004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21005 _flag_k = FK_CMP; 21006 RECOMP_BACKEDGE(); 21007 if (CMP_B(_flag_a, _flag_b)) goto L_3605A81D; /* 0x3605A851: jb 0x3605a81d */ 21008 L_3605A853: 21009 edi = POP32_VAL(esp); /* 0x3605A853: pop edi */ 21010 esi = POP32_VAL(esp); /* 0x3605A854: pop esi */ 21011 ebx = POP32_VAL(esp); /* 0x3605A855: pop ebx */ 21012 ebp = POP32_VAL(esp); /* 0x3605A856: pop ebp */ 21013 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3605A857: ret 8 */ 21014 RECOMP_REGS_OUT(); 21015 } 21016 21017 void sub_3605A860(void) { 21018 int _fpu_cmp = 0; 21019 uint32_t _cf = 0; 21020 int _df = 1; 21021 uint32_t _flag_k = FK_NONE; 21022 uint32_t _flag_a = 0, _flag_b = 0; 21023 uint32_t _itail_tgt = 0; 21024 RECOMP_REGS_LOCALS 21025 RECOMP_ENTER(0x3605A860u); 21026 21027 L_3605A860: 21028 PUSH32(esp, ebp); /* 0x3605A860: push ebp */ 21029 ebp = esp; /* 0x3605A861: mov ebp, esp */ 21030 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 21031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21032 esp = esp - 0x40u; /* 0x3605A863: sub esp, 0x40 */ 21033 _flag_k = FK_CMP; 21034 PUSH32(esp, esi); /* 0x3605A866: push esi */ 21035 esi = ecx; /* 0x3605A867: mov esi, ecx */ 21036 ecx = MEM32(esi + 0x40); /* 0x3605A869: mov ecx, dword ptr [esi + 0x40] */ 21037 RECOMP_ICALL(MEM32(0x3616FC6C)); /* 0x3605A86C: call dword ptr [0x3616fc6c] */ 21038 RECOMP_FLAGS_IN(); 21039 eax = MEM32(esi + 0x40); /* 0x3605A872: mov eax, dword ptr [esi + 0x40] */ 21040 ecx = MEM32(eax + 0x11C); /* 0x3605A875: mov ecx, dword ptr [eax + 0x11c] */ 21041 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 21042 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21043 eax = eax + 0xE4u; /* 0x3605A87B: add eax, 0xe4 */ 21044 _flag_k = FK_ADD; 21045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFEFFu); 21046 ecx = ecx & 0xFFFFFEFFu; /* 0x3605A880: and ecx, 0xfffffeff */ 21047 _cf = 0; 21048 _flag_k = FK_TEST; 21049 MEM32(eax + 0x38) = ecx; /* 0x3605A886: mov dword ptr [eax + 0x38], ecx */ 21050 esi = MEM32(esi + 0x40); /* 0x3605A889: mov esi, dword ptr [esi + 0x40] */ 21051 eax = MEM32(esi + 0xE4); /* 0x3605A88C: mov eax, dword ptr [esi + 0xe4] */ 21052 ecx = esi + 0xE4; /* 0x3605A892: lea ecx, [esi + 0xe4] */ 21053 RECOMP_ICALL(MEM32(eax + 0x3C)); /* 0x3605A898: call dword ptr [eax + 0x3c] */ 21054 RECOMP_FLAGS_IN(); 21055 PUSH32(esp, eax); /* 0x3605A89B: push eax */ 21056 PUSH32(esp, 0x361C2830u); /* 0x3605A89C: push 0x361c2830 */ 21057 ecx = ebp + (-0x40); /* 0x3605A8A1: lea ecx, [ebp - 0x40] */ 21058 PUSH32(esp, 0x40u); /* 0x3605A8A4: push 0x40 */ 21059 PUSH32(esp, ecx); /* 0x3605A8A6: push ecx */ 21060 RECOMP_ICALL(0x360085B0u); /* 0x3605A8A7: call 0x360085b0 */ /* not lifted */ 21061 RECOMP_FLAGS_IN(); 21062 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 21063 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21064 esp = esp + 0x10u; /* 0x3605A8AC: add esp, 0x10 */ 21065 _flag_k = FK_ADD; 21066 edx = ebp + (-0x40); /* 0x3605A8AF: lea edx, [ebp - 0x40] */ 21067 PUSH32(esp, 0); /* 0x3605A8B2: push 0 */ 21068 PUSH32(esp, edx); /* 0x3605A8B4: push edx */ 21069 RECOMP_ICALL(0x3601C590u); /* 0x3605A8B5: call 0x3601c590 */ /* not lifted */ 21070 RECOMP_FLAGS_IN(); 21071 ecx = eax; /* 0x3605A8BA: mov ecx, eax */ 21072 RECOMP_ICALL(0x3601C8C0u); /* 0x3605A8BC: call 0x3601c8c0 */ /* not lifted */ 21073 RECOMP_FLAGS_IN(); 21074 esi = POP32_VAL(esp); /* 0x3605A8C1: pop esi */ 21075 esp = ebp; /* 0x3605A8C2: mov esp, ebp */ 21076 ebp = POP32_VAL(esp); /* 0x3605A8C4: pop ebp */ 21077 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3605A8C5: ret */ 21078 RECOMP_REGS_OUT(); 21079 }